Running something like
bundle install --without nothing
should clear the cache, not sure if it is recommended though. This is one seems a lot better
rm .bundle/config
See this issue apparently it was already fix :D
Running something like
bundle install --without nothing
should clear the cache, not sure if it is recommended though. This is one seems a lot better
rm .bundle/config
See this issue apparently it was already fix :D
I started getting “Failed to fetch” error messages when updating the software sources:
Failed to fetch http://ppa.launchpad.net/pitti/postgresql
which may be due to a bug related to a clean up in Launchpad’s PPAs. After serveral hours -.-, Here is what I finally works
In the terminal open the file located at /etc/apt/sources.list.d
true ? "true" : "false" | |
false ? "true" : "false" | |
nil ? "true" : "false" | |
1 ? "true" : "false" | |
0 ? "true" : "false" | |
"false" ? "true" : "false" | |
"" ? "true" : "false" | |
[] ? "true" : "false" |
class DummyClass | |
def self.im_awesome | |
end | |
def my_awesome_method | |
end | |
end | |
# En cada uno de los ejemplos, ¿cuál es el valor final de 'a'? | |
# Ejemplo 1 | |
a = nil | |
b = 2 | |
a ||= b | |
# Ejemplo 2 | |
a = false | |
b = 2 |
# Ejemplo 1 | |
def mixed_args(a,b,*c,d) | |
puts "Arguments:" | |
p a,b,c,d | |
end | |
# ¿Cuál es la salida de este método? | |
# mixed_args(1,2,3,4,5) | |
# Ejemplo 2 | |
def args_unleashed(a,b=1,*c,d,e) |
resources :posts do | |
member do | |
get 'comments' | |
end | |
collection do | |
post 'mark_as_archived' | |
end | |
end | |
# ¿Qué rutas genera? |
class Person | |
attr_accessible :first_name, :last_name | |
has_many :pets | |
end | |
class Pet | |
attr_accessible :name, :person_id | |
belongs_to :person | |
end |
I don't yet know why, but installing Mavericks removes some directories in /usr/local/var/postgres.
To fix this you simply recreate the missing directories:
mkdir /usr/local/var/postgres/pg_tblspc
mkdir /usr/local/var/postgres/pg_twophase
mkdir /usr/local/var/postgres/pg_stat_tmp
Or in one line: