Sublime Text from Command Line

Windows Command Prompt For Windows cmd.exe you could just add the sublime text installation directory to your PATH environment variable, this would allow you to type: Personally, I add a doskey (in a .bat file set to autorun with cmd) so I can type subl file.rb: Cygwin For the default bash shell add an alias to your ~/.bashrc file, e.g:

In which cases does program exit with 0x40010004 code?

On the theoretical side it could be anything, since TerminateProcess has an exit code parameter. On the practical side, it’s most likely due to system shutdown. When Windows shuts down, it tries to exit running programs gracefully (more on that here). If they refuse to quit, they might be terminated by the system with the exit code 0x40010004. For … Read more

Setting the Vim background colors

As vim’s own help on set background says, “Setting this option does not change the background color, it tells Vim what the background color looks like. For changing the background color, see |:hi-normal|.” For example will write in white on blue on your color terminal.

What does ls -d command stand for in linux terminal? 

In Linux (or generally, UNIX-like systems), all directories contain the entries: . is the relative reference to the current directory .. is the relative reference to the parent directory Since you’re adding the -d flag, it’ll list the directory itself, not its content. See ls –help: -d list directory entries instead of contents, and do not dereference symbolic links

Configuring Apache for localhost

/xxx/xxxx also needs to be readable by www-data in order to work as document root. You’ll also need the permissions defined in a directory block. Or set your DocumentRoot /xxx/xxxx/Web

Adding a new entry to the PATH variable in ZSH

Here, add this line to .zshrc: EDIT: This does work, but ony’s answer below is better, as it takes advantage of the structured interface ZSH provides for variables like $PATH. This approach is standard for bash, but as far as I know, there is no reason to use it when ZSH provides better alternatives.

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