Profile cover photo
Profile photo
Leif Ringstad
50 followers -
Dad, Developer, kitesurfer
Dad, Developer, kitesurfer

50 followers
About
Posts

Post has attachment

Post has attachment

Post has attachment
Limit MongoDB disk usage on your machine
When doing local development, you might want to limit how much space mongodb uses. Note: Do not do this in production unless you know what you are doing. It will affect performance. If you are on Ubuntu perform these steps: Stop mongodb sudo service mongodb...

Post has attachment
Dropping a database after running rspec tests with MongoMapper or Mongoid
The mongodb folder on my development computer was using 11 gb, and I needed to free up some space on /var, since that was on the / partition. (Yes, it is recommended to have it on separate partition, but that is another discussion). In your rspec add this: ...

Post has attachment
Your development log files in Rails is probably huge
I always forget to truncate my development logs, and when I need to debug or dig into the logs, they are dead slow to work with. Use this simple gist to truncate your logs automagically. It will only touch your development.log, as I do note like when initia...

Post has attachment

Post has attachment
SVGs in browsers (Firefox is the new IE)
Intro SVGs in browsers are fun, and if you say goodbye to IE8 and older, it is almost working cross-browser. I'm working on a basic editor-like application that involves a lot of SVG hacking, but it's quite fun due to the great Snap.svg lib by Dmitry Barano...

Post has attachment

Post has attachment

Post has attachment
Wait while more posts are being loaded