Switching SSH keys between Heroku accounts
by CodeMangler | July 11, 2013 | Programming, Software | 0 Comments
At times, I have to switch between a few different Heroku accounts. Apart from having to login again, the other annoyance is having the right SSH key active. If you don't have the right SSH key active, (i.e. if the SSH auth agent has more than one key added to it, or...
Capture HTTPS traffic from Java applications with Fiddler
by CodeMangler | July 3, 2013 | Programming, Software | 6 Comments
Fiddler usually works out of the box, with a few exceptions. One of those exceptions is capturing traffic from a JVM. To capture plain HTTP traffic from a JVM, you can configure Fiddler as the proxy by setting these VM args: -DproxySet=true -DproxyHost=127.0.0.1...
Take control of your Heroku Git repository
by CodeMangler | June 28, 2013 | Programming, Software | 2 Comments
Have you ever wished to have a finer control over your Heroku git repository? There's a neat little Heroku plugin that gives you just that: heroku-repo. Around the first release of my current project, things were happening in a frenzy. There were plenty of last minute...
Missing ldconfig and /etc/sudoers
by CodeMangler | February 10, 2013 | Programming, Software | 0 Comments
I was trying to upgrade my Ubuntu installation to 12.10 (Quantal Quetzal), and the update manager (Muon) kept failing with error messages like: dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: warning: 'start-stop-daemon' not found in PATH or not...
Bypassing SSL certificate checks during gem installation
by CodeMangler | June 28, 2012 | Programming | 1 Comment
I had to re-install rvm on my MacBook because my gemsets were a bit messed up, and I thought I should start over with a clean install. I just rm -rf'ed ~/.rvm, and then went ahead and re-installed it according to the instructions at https://rvm.io/. Installed ruby...
Ruby 1.9.3 segfault in OSX Lion due to OpenSSL
by CodeMangler | April 13, 2012 | Programming, Software | 1 Comment
I just set-up my new MacBook Pro, running OSX Lion (10.7.3), for Rails development. Installed rvm, installed Ruby 1.9.3 using rvm and did a gem install rails -v 3.2.3. Everything went fine, until I tried to create a new rails app. rails new <app_name> would...
Tabby – the missing tab switcher for eclipse
by CodeMangler | February 7, 2012 | Programming, Project, Software | 4 Comments
My job for the past few years primarily involved developing eclipse based applications, and so, I've had to use eclipse full-time for quite some time. My pet peeve with eclipse has always been it's usability. It's not particularly keyboard friendly (not the same as...
First triangle number to have over five hundred divisors
by CodeMangler | January 28, 2009 | Programming | 2 Comments
This was another interesting problem at Project Euler (Problem 12). Interesting because the naïve solution to this was all too trivial but slow, which forced me to seek out a better approach and I finally ended up learning something new 🙂 The nth triangle number is...
Identifying Auto Properties in Assemblies
by CodeMangler | January 17, 2009 | Programming | 0 Comments
My current project is a UML modeling tool, and I'm working on the C# 3.0 bits. One of the things it lets you do is to Reverse Engineer your code and obtain the model. And that includes reversing the assemblies too. C# 3.0 introduced Auto Properties (or Automatically...
Subtext
by CodeMangler | December 27, 2008 | Programming, Software | 0 Comments
Subtext is a visual programming language where you express the application logic in a tabular fashion. I'm not gonna try to explain Subtext in this post. You can find out more from its homepage: http://subtextual.org/. I learned about Subtext nearly 2 months back. It...