w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Coded UI - How to prevent Debug mode from enabling LAN proxy server settings and clearing previous proxy settings
I found the answer right here on StackOverflow.com! Thank Ja' for StackOverflow.com See: What is overriding Windows proxy settings (inserting “vsts-proxy-installed-indicator”) and how do I turn it off? What is overriding Windows proxy settings (inserting "vsts-proxy-installed-indicator") and how do I turn it off?

Categories : Visual Studio 2012

DurandalJS 2.0.0 : where is "settings" in the new router?
I misunderstood the docs, the answer is : router.map([ { route: 'home', moduleId: 'viewmodels/home/home', title: 'Home', nav: true, mySetting: ['mySetting'] }, ... ]);

Categories : Javascript

Domain DNS settings redirection (www to https)
The CNAME only tells the browser (or more accurately, the resolver) how to find the IP address of the domain name. In this case, when the browser tries to resolve "www.example.com", it finds a CNAME record, so it needs to follow that alias and resolve "example.com". Eventually, it should arrive at an IP address to which it can make a HTTP(S) connection. In short, yes, you need to setup the redirection on your web server as well.

Categories : Iis

Prevent executing next router if the request already handled
The problem here that it is possible that those are actually different requests triggering your middleware. In order to check this: console.log(req.url). Most annoying issue is favicon.ico which gives lots of headache when you don't know that browser actually is requesting it all the time. If you are developing RESTful API or any other similar application where favicon.ico is not required, then use this middleware as one of the first. app.use(function(req, res, next) { if (req.url != '/favicon.ico') { return next(); } else { res.status(200); res.header('Content-Type', 'image/x-icon'); res.header('Cache-Control', 'max-age=4294880896'); res.end(); } }); This will response with 200 and very long cache life so that way browser will not call it again anymore. As

Categories : Javascript

Accessing HTTPS using Selenium WebDriver
This is due to the more than one reference in the Build path. I have got the same issue as mentioned above. I have refered http-client-4.1 and selenium-rc.jar I remove the http-client,comms and logging. Then it works.

Categories : Java

Accessing Android NotificationListenerService Settings
Am I missing something? Well, in your last one, you are conflating an action string with a class name. The "manual" approach would be: Intent intent=new Intent("android.settings.NOTIFICATION_LISTENER_SETTINGS"); In terms of why Android Studio is not finding Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS, that I can't say. UPDATE Based on the discussion in the comments, Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS is not in the Android SDK at present (marked with @hide). Also, the manifest for the Settings app has a slightly different version of the action string: Intent intent=new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS");

Categories : Android

Reading/Accessing to app settings value issue
the way you are reading is for AppConfig. Whereas you are reading from the custom settings. read it like this string path = Properties.Settings.Default.swPath; to save it Properties.Settings.Default.swPath = "your path"; Properties.Settings.Default.Save();

Categories : C#

HTTPS website accessing HTTP WCF service
it seems that you have enables https and want to consume service vai http. so please change your serviceMetadata <serviceMetadata httpsGetEnabled="true"/> to <serviceMetadata httpGetEnabled="true"/>

Categories : Asp Net Mvc

Accessing the new Notification Settings in Android 4.3 through Code
There is an outstanding bug in Android 4.3 where the notification listener screen action is not listed in Settings. The current workaround is: startActivity(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"));

Categories : Android

Are there any directory permission settings in Tomcat to prevent jsp running?
By looking at the path you have provided it seems that you are putting a jsp file directly under webapps directory where a web application is expected. Isn't your jsp file the part of the application? If you want all the JSP files to be restricted so that they cannot be accessed from the browser directly with the url, then you can put all JSPs and whatever you want to protect in the WEB-INF folder. The resources placed in WEB-INF cannot be accessed directly. If you want to apply security-constraint then also you can protect your resources based on url pattern. You will find good information here http://docs.oracle.com/cd/E19798-01/821-1841/bncbk/index.html

Categories : Jsp

accessing oam server hosted in https from java client program
You are getting this error because you have not created an instance of an AMClient. The OAM SDK requires that you create an instance of an AMCLient before you do anything else with the SDK such as starting a new session.

Categories : Authentication

IE10 - how to prevent "Your current security settings do not allow this file to be downloaded" popup from appearing?
WPF WebBrowser is very a limited (yet inextensible, sealed) wrapper around WebBrowser ActiveX control. Fortunately, there's a hack we can use to obtain the underlying ActiveX object (note this may change in the future versions of .NET). Here's how to block a file download: using System.Reflection; using System.Windows; namespace WpfWbApp { // By Noseratio (http://stackoverflow.com/users/1768303/noseratio) public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); this.WB.Loaded += (s, e) => { // get the underlying WebBrowser ActiveX object; // this code depends on SHDocVw.dll COM interop assembly, // generate SHDocVw.dll: "tlbimp.exe ieframe.dl

Categories : C#

ImportError: Could not import settings 'company.foo.settings' (Is it on sys.path?): No module named foo.settings
Have you tried setting the DJANGO_SETTINGS_MODULE environment variable to "company.foo.settings"? From the Djanjo Documentation; https://docs.djangoproject.com/en/dev/topics/settings/#designating-the-settings When you use Django, you have to tell it which settings you’re using. Do this by using an environment variable, DJANGO_SETTINGS_MODULE. The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings. Note that the settings module should be on the Python import search path. EDIT: Can you also add the following to the top of your manage.py file? import sys sys.path.append('/path/to/folder/containing/company') EDIT2: In response to your clarification, you can try relative imports: http://www.python.org/dev/peps/pep-0328/#guido-s-decision

Categories : Python

How to prevent accessing particular database in SQL Server 2008?
SQL Server databases cannot be password-protected - they're not just files that get opened (like dBase or SQLite) "normal" access control is handled via permissions and users - you can define who can see what, modify what, delete what This does not however prevent a system admin from looking at your database schema and contents; there's really no way to prevent this, a sysadmin can also just copy the .mdf file to another server and attach it there and circumvent all your "security" if you really must hide all of this, don't deliver a database - hide the database in your own company and provide a web-service based interface to the customer who can then call those web services to do his work - then the schema and data is under your control, but also: the customer's data is no longer under h

Categories : Windows

Prevent users accessing image directory contents
How about instead of storing your cached images within the actual site structure as static content fed by IIS, you store the images in a path outside the site. That would ensure no unauthorized user could access them directly. Then you can provide access to those images through a Controller (UserImagesController maybe) Action that can validate that the image being requested is one to which the current user has access. Your check might end up being as simple as checking the requested UserName parameter of the action is the same as your current user's UserName. With this approach you can also control the cache headers, expiration, etc, of those images.

Categories : Asp Net Mvc

JS: Prevent Error if Accessing Attributes of Undefined Object
If you have many if statement like if(somethingUndefined && somethingUndefined.anAttribute){ }, then you could assign an empty object to it when it is undefined. var somethingUndefined = somethingUndefined || {}; if (somethingUndefined.anAttribute) { }

Categories : Javascript

Is there a way to prevent certain javascript functions from accessing a jquery library
You can use noConflict() <!-- Putting jQuery into no-conflict mode. --> <script src="prototype.js"></script> <script src="jquery.js"></script> <script> var $j = jQuery.noConflict(); // $j is now an alias to the jQuery function; creating the new alias is optional. Using jQuery.noConflict(); - Lightbox and jQuery conflict

Categories : Javascript

Prevent users from accessing member pages by entering cached url
What you need to do is create a proper login system using something like a session. There are countless tutorials you'll find about this by googling "php login tutorial with session". Here is one of those results. At the heart of all of these are PHP Sessions, which allow you to store information for a specific client throughout their browser session. To understand sessions in php, here's a basic tutorial Let me know if these make sense or if you have any questions :)

Categories : PHP

Prevent azure staging environment from accessing queue messages
There is nothing in the platform that would do this. This is an app/code thing. If the app has the credentials (for example, account name and key) to access the queue, then it is doing what it was coded to do.

Categories : Azure

Are Settings files available for web apps?
I think its possible. Cant remember if I created folder "Properties" and file "Settings.settings" myself though.

Categories : Visual Studio 2010

Multiple settings files
Django's SECRET_KEY has many usages revolving around cryptographic signing. For example, this is how cookies are protected or how Django makes sure hidden form fields are not tampered with. manage.py runserver is the development server that you should not use in production: you're probably using WSGI there: modifying manage.py won't do anything.

Categories : Django

Include .as files using actionscript3 and https
import and include are compile-time calls to use code available at the time of compilation. Those files have no bearing on a compiled swf, which means you probably don't want them on your webserver. To be succinct: include has zero relationship with networking.

Categories : Actionscript

Fat Free router blocks Backbone router, how/when does Backbone router.js work?
If you are not using pushState, then the backbones routes are easy to differentiate from the server routes: /route1 /route2 /route1#route/a /route1#route/b The part before the hash is the one transmitted to the server (F3 routes). The part after the hash corresponds to the backbone routes. //F3 routing $f3->route('GET /route1',…) $f3->route('GET /route2',…) //Backbone routing routes: { "route/a": "routeA", "route/b": "routeB", } Note that the Backbone router doesn't generate any HTTP request to the server (unless you specifically define it of course). What generates automatically HTTP requests is the Backbone model. A backbone model is mapped to a server resource using urlRoot. The methods fetch(), save() and destroy() are then mapped respectively to the GET, PUT and

Categories : Backbone Js

Apache HttpClient and remote files in URL with https scheme
There seem to be a couple of problems: You registered the Scheme to use 3920 as the default port, which is a non-standard port number for HTTPS. If the server is actually running on that port, then you would have to access using this URL in the browser: https://www.thedomain.with:3920/my_resource.pdf. Since the URL that you use in the browser does not include the 3920 port, then the server will be running on the default port of 443, so you should use change new Scheme("https", 3920, sf) to new Scheme("https", 443, sf). It appears that the CN in your server's certificate doesn't match its hostname, which is causing the SSLPeerUnverifiedException. In order for this to work, you would need to use the SSLSocketFactory(TrustStrategy, HostnameVerifier) constructor and pass a verifier that does

Categories : Java

How to read in multiple .settings files and pass them to a method in C#/XNA .Net
File.Exists sees if a specific file exists.There are several ways of testing file existence. File.Exists is the easiest. It is the simplest way of checking that the file exists, it returns true or false.

Categories : C#

IntelliJ-IDEA: Where are settings files saved for v11.x on Windows 7?
IntelliJ saves its config and indexes, which can amount to several gigs worth of data, to your home directory. It's been that way for approximately "a long time". In my experience, if you have default network mounts, your home dir will be set to one of those, so that's very likely your problem. Edit <idea dir>/bin/idea.properties to change the location where it saves stuff. There will be a handful of properties to change because it calls things out individually rather than having one, overall directory.

Categories : Intellij Idea

Wordpress : To load all asset files coming from HTTP to HTTPS?
You could try using a protocol relative URL (dropping both the http and https from the URLs) - see this answer. According to this answer you'll need to be on a recent version of WordPress (I'd assume 3.5) for it to work with wp_enqueue_script.

Categories : Wordpress

Codeigniter - setting up directories and files permissions (chmod settings)
You want to: chmod -R 0644 application system index.php Assuming that CI is installed in the web root, with the application/ and system/ directories residing therein, which is the default setup. What I typically do is put the application/ and system/ directories outside of the web root when I use Codeigniter, at which point you need to edit your index.php file to reflect that: $system_path = '../system'; $application_folder = '../application'; Note, you'd be adding the ../ (and also need to move those directories one level down) but I digress. The permissions for each directory should be 0755 and for each .php file 0644, wherever you end up putting them. This includes any vendor, 3rdparty, sparks, etc, and any custom asset locations. If using a templating engine of some sort, good

Categories : PHP

Meteorite router package installation - Uncaught 'error' event on 'mrt add router'
Node 0.10.9 has a couple of issues. I'm not sure it'll help but try mrt add router --repoPort=80 as suggested here : https://github.com/oortcloud/meteorite/issues/135

Categories : Javascript

KnockOut JS - applying a new binding. Error - Message: ReferenceError: 'router' is undefined; Bindings value: css: { active: router.isNavigating }
Before you execute the problematic code, the Composition lifecycle of Durandal has bound the the shell.jsand subsequently the ViewModel agency.js with the UI. Meanwhile in the addContact function, at the last line you basically change the whole binding applied to the view: ko.applyBindings(objAgency); So your whole UI is now bound to this objAgency which I guess does not contain a router instance as the errors is pointing : ReferenceError: 'router' is undefined; This error comes probably from the binding of the shell because is no longer bound to the UI since your code applied new bindings. SOLUTION: The applyBindings is managed by Durandal in the composition process. If you want to modify some properties of the ViewModel there's no need to update the bindings. I don't know if

Categories : Javascript

How can I manage Linux settings (config) files in different directories in a single Git repo in another directory?
You can use symlinks. It is indeed what dotfiles managers such as homesick do. It is helpful to have a script to generate all the links automatically for you, in case you want to clone your setup to another box.

Categories : Linux

How to test Meteor router or Iron router with laika
I had the same problem. I needed to navigate to some page before running my tests. I'm using iron router as well. I figured you can't just execute Router.go('foo') and that's it. You need to wait until the actual routing took place. Fortunately the router exposes a method Router.current() which is a reactive data source that will change as soon as your page is ready. So, in order to navigate to a specific route before running my tests, I firstly run the following code block: // route to /some/path client.evalSync(function() { // react on route change Deps.autorun(function() { if (Router.current().path == '/some/path') { emit('return'); this.stop(); } }); Router.go('/some/path'); }); Since this is within an evalSync()everything that

Categories : Meteor

Accessing files from another jar from applet
Well, there are two possible solutions to your problem: 1. being that you certify your applet so it has full control over the jvm, look into self-certified applets. 2. Combine the two jars, this works in MOST cases, just take the contents of say mysql connector, and add them to your jar prefferably post-compilation... or just add the mysql connector jar into your compilation build-path.

Categories : Java

Accessing files in iOS safely
Api's that check for the existence of files typically return a true or false. False usually means that the file is in-accessable not that it doesn't exist. So for example if the file existed on a file share but you had no read permission it would return false. It maybe the same if another thread or user had the file open already for example. Obviously on iOS some of these reasons are unlikely but something similar could be occurring.

Categories : IOS

Accessing an array across files in C
This: *option++; doesn't do what you think it does. What it actually means is: *(option++); which first applies the increment operator to the option pointer and dereferences it afterwards. The effect is: option++; *option; // This is a statement with no effect, hence the warning. You need this instead: (*option)++;

Categories : C

Blocked a frame with origin "https://www.facebook.com" from accessing a frame with origin "http://myapp.herokuapp.com"
Pretty old question, but it's still open- so In case you didn't see this answer already, Mademoiselle Geek is spot-on. A quick double-check on my heroku app verifies that you can, in fact, just type https: instead of http: and it will accept an SSL connection automatically- no set up required. The only thing you do have to set up is in your Facebook.js.coffee- this section.. initializeFacebookSDK = -> FB.init channelUrl : 'http://app.heroku.com/page/fbchannel' Change to.. initializeFacebookSDK = -> FB.init channelUrl : 'https://app.heroku.com/page/fbchannel' Then, depending on your operating system (I use linux) do a quick grep search (or search the text of files within a directory) for http://app.heroku and change it to https, just to be safe.

Categories : Ruby On Rails

Prevent deletion of files
I think you need to find out what system it is. For that use this System.getProperty("os.name"); Based on the system, use either NIO or POSIX in JDK 7 or jna For examples, have a look at this post

Categories : Java

Accessing files within contained directories
Use find and xargs: find . -type f -name '*.filetype' | xargs chmod ugo-w Replace . with the name of the directory, if it is not the current one. Or, just use find: find . -type f -name '*.filetype' -exec chmod ugo-w '{}' '+'

Categories : Bash

Accessing hundreds of files as fast as possible
Use memory-mapped files for better performance. http://msdn.microsoft.com/en-us/library/dd997372.aspx MSDN: These memory-mapped files are suitable for working with extremely large source files Wikipedia: The primary benefit of memory mapping a file is increasing I/O performance, especially when used on large files... Accessing memory mapped files is faster than using direct read and write operations for two reasons. Firstly, a system call is orders of magnitude slower than a simple change to a program's local memory. Secondly, in most operating systems the memory region mapped actually is the kernel's page cache (file cache), meaning that no copies need to be created in user space. For easy implementation see: http://www.boost.org/doc/libs/1_54_0/doc/html/inte

Categories : C++

Accessing Uploaded Files in Golang
Answer Download the latest golang release. I experienced the problem before, using the old golang versions, I do not know what happened, but with the latest golang its working. =) My upload handler code below... Full code at: http://noypi-linux.blogspot.com/2014/07/golang-web-server-basic-operatons-using.html // parse request const _24K = (1 << 20) * 24 if err = req.ParseMultipartForm(_24K); nil != err { status = http.StatusInternalServerError return } for _, fheaders := range req.MultipartForm.File { for _, hdr := range fheaders { // open uploaded var infile multipart.File if infile, err = hdr.Open(); nil != err { status = http.StatusInternalServerError ret

Categories : Http

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.