Git unable to resolve reference and unable to update local ref messages

I’ve recently had an error of:
[code]error: unable to resolve reference refs/remotes/origin/…[/code]
while doing a “git pull”. Since I’ve never seen this one before, I’ve turned to the net for some resolutions. According to many one has to do either a:
[code]git gc –prune=now[/code]
or a
[code]git fetch[/code]
Whatever I’ve tried did not work. After a while I saw that all the files in the refs/remotes/origin/… directory where being reported with “0”. In the end, my solution was to remove all those file and then issue a simple “git pull” in order to bring down the references again.

Switching from brew to nvm for node install
Many people use a simple "brew install node" to get node running on their machines. However, today I discovered that all global node modules could not be updated properly. I got errors like: [code]npm ERR! error rolling back Error: Refusing to delete: /usr/local/bin/npm not in /usr/local/lib/node_modules/npm npm ERR! error rolling…

MySQL replication - Query caused different errors on master and slave
MySQL replication works quite reliable most of the time. But from time to time, especially if you change network, servers or the master has gone away the slave will get in a "weird" state. Today, I've encountered the following error message on one of the slaves; Query caused different errors…

Python wxPython install on MacOS X 10.8.x
wxPython is a GUI library kit for developing desktop application with Python. Since it is cross-platform you can actually run your code on MacOS X, Windows and Linux. Now, while installing wxPython on my development environment (MacBook Air 13", MacOS X 10.8.x) and the standard installer from the wxPython website I've…

Updating Confluence and Jira is a nightmare and keeps you hunting for solutions
First off, I really like Jira and Confluence and we have been using them successfully for all our open source applications. We also use HipChat for our IM communication and use SourceTree for managing code on Github. Just realised that Atlassian has become a company to depend on... This post…

CFML and Cannot run program "chmod": java.io.IOException: error=24, Too many open files
Migrating one of my customers the other day, bought up an ugly error when I had to create 2000 directories on one go. The error was: [code]Cannot run program "chmod": java.io.IOException: error=24, Too many open files[/code] While, "too many open files" usually means one can raise the limit of open…

Python and Django: ImportError: No module named django.core
Python is without a doubt a great language. Django is a great framework. It is just obvious to use them and get your site up and running. So, today, while setting up a new site with "django-admin.py startproject mysite" I've run into the "ImportError: No module named django.core" error. While…