How do you refresh PreferenceActivity to show changes in the settings?

Instead of finish(); startActivity(getIntent()); I prefer the following code : setPreferenceScreen(null); addPreferencesFromResource(R.xml.preferences); This will reset the display as well but without the whole finish procedure and its consequences. Plus this code works well with PreferenceActivity and PreferenceFragment. This is interesting if you would like to change dynamically the locale value for example. In this case, … Read more

What is optimal value for Phusion passenger PassengerMaxRequestQueueSize

Why you should limit queuing Any requests that aren’t immediately handled by an application process, are queued. Queuing is usually is bad: it often means that your server cannot handle the requests quickly enough. A larger queue means that requests are less likely to be dropped. But this comes with a drawback: during busy times, … Read more

Open Settings app from another app programmatically in iPhone

Good news : You can open settings apps programmatically like this (works only from iOS8 onwards). If you are using Swift 3.0: UIApplication.shared.open(URL(string: UIApplicationOpenSettingsURLString)!) If you are using Objective-C: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; For other lower versions (less than iOS8) its not possible to programatically open the settings app.

Google Chrome: This setting is enforced by your administrator

I found a better solution on the Chrome product forums by a user called Gary. The original thread is here. Navigate to C:\Windows\System32\GroupPolicy Open each subdirectory there and change the *.pol files to *.sav, E.g. registry.pol becomes registry.sav. Hit Windows-Key + R, type the following in the box and hit enter reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome In … Read more

How do I set my development web browser in VS2010 RC?

The solution really is not that difficult, though it is not as direct as it ought to be… In Visual Studio 2010, the Browse With option is available. However, it is not available for MVC Views! Simply add a Web Form or HTML Page to your project, and Browse With is readily available in it’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)