The error:
current transaction is aborted, commands ignored until end of transaction block
Can occur if you’re using PostgreSQL and forget to run your south migration.
The error:
current transaction is aborted, commands ignored until end of transaction block
Can occur if you’re using PostgreSQL and forget to run your south migration.
Reason: Incompatible library version: libMagickCore.5.dylib requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0
Solution:
$ brew uninstall freetype $ brew install freetype $ brew link -f freetype
After an OS upgrade I needed to reinstall all the gems for my Rails project (well, I probably didn’t need to do it, but it seemed the quickest way).
Since I used RVM and only had one Ruby on Rails project I was working on, doing so is easy, though not intuitive.
To uninstall all the gems:
$ rvm gemset empty
Then install them the regular way:
$ bundle install
You might get an error that looks like this: “There was an error in your Gemfile, and Bundler cannot continue.”. Â If that’s the case, run:
$ gem install bundler
I started getting this error in OS X after I switched my Terminal shell from bash to zsh (with oh-my-zsh).
~/.rvm/scripts/initialize:50: __rvm_cleanse_variables: function definition file not found
To fix, run:
$ rm -f ~/.zcompdump
Similar to a previous Android issue, except this time for iOS. Â It’s not really a problem per-se, but it can make your UI look less clean. Â What happens by default in mobile webkit is that when you hold your finger on an element, a grey transparent box is overlayed on it. Â To remove this, use the following CSS property:
-webkit-tap-highlight-color:rgba(0,0,0,0);
What really matters is the last value in the 4 values, which sets the opacity to 0, in other words, makes it transparent.
In the middle of a `brew update`, I killed the process with ctrl+c. Â This left the git repo in a broken state.
Please move or remove them before you can merge. Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
To fix:
$ cd /usr/local $ git add . $ git stash $ git reset --hard
`brew update` should now work.
Karl Seguin just published a great short article on the why and how to log client side Javascript errors.  Read it here with some HN discussion here.
Update: Consider using Google Analytics to log Javascript errors.
If you’re writing code for Node.js, node-inspector is a must-have, and is far superior to Node.js’s built in debugger. Â What you get by using it is a Javascript debugging tool nearly identical to Chrome’s Javascript debugger, but for your Node app.
To install it, just use npm:
$ npm install -g node-inspector
Since you’ll be connecting to node-inspector via your browser, you’ll need to spool up the node-inspector server as so:
$ node-inspector &
Finally, run your app in –debug mode:
$ node --debug app.js
Connect to http://127.0.0.1:8080/debug?port=5858 and you’re good to go!
This setup description and more info can be found in the README.
Trying to play HTML5 video in Safari but getting a blank video screen? Â Possibly with 0:00 second video length?
I posted the solution over on SO but basically this head scratcher can be solved by using a full URL for the <video>’s src attribute. Â If you don’t, Safari doesn’t even try to fetch the video.
I think this bug is only present in very specific versions of Safari (possibly just 5.0.5).