windows
How to start psql.exe
You don’t run some psql.exe file, but the file C:\Program Files\PostgreSQL\10\scripts\runpsql.bat , for example programmatically, e.g. from AHK: run, “C:\Program Files\PostgreSQL\10\scripts\runpsql.bat” Then you get a generic Windows command window which asks you the right questions (see above) and, when answered correctly, gives you the psql command prompt.
Windows Username maximum length [closed]
The maximum lengths are hash defined in lmcons.h. DNLEN is the maximum domain length and UNLEN is the maximum user name length. In the version of this file I have on my XP machine (installed as part of Visual Studio 8), DNLEN = 15 and UNLEN = 256.
Passing around multi-line strings
You can create directly multiline strings with the caret (one empty line is required). setlocal EnableDelayedExpansion set multiLine=This is a ^ multiline text^ line3 echo !multiLine! Or you can create first a newline character. setlocal EnableDelayedExpansion set LF=^ rem Two empty lines are required set multiLine=This is a!LF!multiline text!LF!line3 echo !multiLine! An explanation how this … Read more
Invalid syntax with setx
Your path to the Ogre SDK has a space character in it, which is interpreted as a delimiter to another argument. Surround your path with ” to keep it as one single argument to setx: setx OGRE_HOME “D:\Program Files\OgreSDK” To see the current value of the OGRE_HOME environment variable: echo %OGRE_HOME% You may have to … Read more
How to make Windows key the IntelliJ IDEA Command/Meta key under Windows?
Here’s a workaround that works partly. In IDEA do the following: Help -> Edit Custom Properties… In the file that opens, add this on a new line: keymap.windows.as.meta=true Choose your Mac keymap under File -> Settings… -> Keymap. For example, “Mac OS X 10.5+”. If you use a Windows keyboard and you want the same … Read more
Run a shortcut with a batch file
The help for start contains this tidbit: START [“title”] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B] [command/program] [parameters] “title” Title to display in window title bar. In other words the first quoted string will … Read more
XAMPP Object not found error
Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. You’re having problem because the object really doesn’t exist in your htdocs directory. You don’t have to append xampp after localhost or 127.0.0.1 because xampp will treat it as an … Read more
Why does < C-a> (CTRL+A) not work under gvim on windows?
This is because of mswin.vim that is sourced by the default _vimrc generated when you install vim. Just override your _vimrc with the .vimrc you are using under *nix, or delete mswin.vim.