Joined May 2011
·
Posted to
Find files that have changed between two commits
over 1 year
ago
I hadn't seen --name-only
. I tend to use this a lot instead (which also tells you how many lines were added/removed from each file):
git diff --stat HEAD^
Posted to
Fade out page when clicking links
over 1 year
ago
I don't want to be a party pooper, but I'm really not sure this is a good idea.
It needlessly slows down page load speed (fairly significantly) and deviates from a browser's standard behaviour, neither of which are a great idea from a usability perspective.
The delay isn't just caused by the timeout; you're waiting for the DOM ready event before you start fading it in. Having said that, even if you changed the code so that you started the fade as soon as jQuery itself was loaded, I wouldn't be a fan.
Posted to
Avoid Heroku idling with New Relic pings
over 1 year
ago
Using heroku scheduler to do it is a nice touch. I use a bash script on a VPS...
Achievements
168 Karma
0 Total ProTip Views
Lab
Have at least one original repo where C# is the dominant language
Forked 100
Have a seriously badass project that's been forked at least 100 times
Raven
Have at least one original repo where some form of shell script is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Velociraptor
Have at least one original repo where Perl is the dominant language
Octopussy
Have a repo followed by a member of the GitHub team
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Altruist
Increase developer well-being by sharing at least 20 open source projects
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Forked 50
Have a project with a thriving community of users that's been forked at least 50 times
Forked 20
Have an established project that's been forked at least 20 times
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python 3
Have at least three original repos where Python is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
I too was having trouble connecting to Postgres after upgrading to 9.2 on Mountain Lion, but it all turned out to be do with my PATH variable.
You need to make sure that /usr/local/bin preceeds /usr/bin in your PATH on ML, as by default it doesn't (Mac's
path_helper
is run from/etc/profile
and will put/usr/bin
first). ML ships with Postgres client binaries, which can cause confusion when starting Postgres, initialising the db, and building client libraries (e.g. thepg
gem).I was wise to this so rebuilt the
pg
gem, but failed to do it in a shell that had/usr/bin
before/usr/local/bin
.Uninstalling
pg
and then reinstalling it having set PATH up to use/usr/local
solved all my issues, and I didn't need to create the old/var/pgsql_socket
directory.