Stop default Autocomplete behavior when hitting spacebar

Edit -> Intellisense -> Toggle Completion Mode From : https://msdn.microsoft.com/en-us/library/hcw1s69b.aspx “You can also change to suggestion mode, in which only the text you type is inserted into the code. For example, if you enter an identifier that is not in the list and press TAB, in completion mode the entry would replace the typed identifier. … Read more

Changing Django settings at runtime

AFAIK, the Django settings are supposed to be immutable. There are multiple reasons for this, the most obvious being that Django is not aware of the server’s execution model (prefork / multi-threaded). Also, you can’t load the settings themselves from a Django model because the settings need to be loaded before you can use anything … Read more

What is the difference between app.config file and XYZ.settings file?

UPDATE: In ASP.NET Core Land, configuration is no longer managed via either of these – see this fantastic writeup from Travis Illig with the a-z on Microsoft.Extension.Configuration and Microsoft.Extensions.Configuration.Binder which are effectively a superset of all this Settings (Both from a .settings set and Configuration.AppSettings), are stored in the .config file [alongside lots of other … Read more

avoid string printed to console getting truncated (in RStudio)

This is an RStudio-specific feature, intended to help resolve problems where printing overly long strings could cause IDE sluggishness. (I believe it was added with the latest release, v0.99.896) You can opt-out of this truncation by setting the Limit length of lines displayed in the console to: option to 0 (see the final option in … Read more

How can I export/import settings of Sublime Text 3 from one PC to another using Windows?

The best way is to sync the User directory, there are multiple available ways to do this – dropbox, git and manual ways. Installed packages are registered in Package Control.sublime-settings, which is located in the user folder as well, thus, it does not require you to sync anything besides that. A pretty good guide to … Read more

Django Local Settings

You can’t just add local_settings.py, you have to explicity import it. At the very end of your settings.py, add this: try: from local_settings import * except ImportError: pass The try/except block is there so that Python just ignores the case when you haven’t actually defined a local_settings file.

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