Last updated: 12/31/2013
- Edit
/etc/default/locale
as sudo. - Append
LC_ALL="en_US.UTF-8"
at the end of the file, save and quit. sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales
Last updated: 12/31/2013
/etc/default/locale
as sudo.LC_ALL="en_US.UTF-8"
at the end of the file, save and quit.sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>org.postgresql</string> | |
<key>ProgramArguments</key> | |
<array> |
If, for some reason, you do not want to install PostgreSQL using Homebrew.
postgres
user from terminal" Many stuff from http://www.drbunsen.org/text-triumvirate.html | |
" Visual mode unmap | |
" Bring back the functionality to press shift+e, shift+w, shift+b | |
" while in visual mode to go to the character right before the next | |
" whitespace | |
vunmap E | |
vunmap W | |
vunmap B |
# see Metaprogramming Ruby, p. 118 | |
module MyModule | |
def my_method; 'hello'; end | |
end | |
obj = Object.new | |
class << obj | |
include MyModule | |
end |
# see Metaprogramming Ruby, p. 116 | |
# this will not work | |
#module MyModule | |
# def self.my_method; 'hello'; end | |
#end | |
module MyModule | |
def my_method; 'hello'; end | |
end |
class PersonalChef | |
def make_toast | |
puts "Making your toast!" | |
end | |
def make_milkshake | |
puts "Making your milkshake!" | |
end | |
def make_toast(color) |