<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.2" -->
<rss version="0.92">
<channel>
	<title>Squash</title>
	<link>http://balpreetpankaj.com/blog</link>
	<description>Just another weblog</description>
	<lastBuildDate>Sun, 16 Oct 2011 23:32:05 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Delta nightmare</title>
		<description>I normally post only technical stuff on the blog but I had to rant about this nightmare on Delta that I had last night.

I was flying DL1152 from Honolulu(boarded on Oct 15th) to San Francisco with my wife and I had my worst flight experience ever right from getting my ...</description>
		<link>http://balpreetpankaj.com/blog/2011/10/16/delta-nightmare/</link>
			</item>
	<item>
		<title>Browser and NodeJS</title>
		<description>I am writing a new javascript library and I wanted the library to work server side ( nodejs ) and in the browser. The main question that I had was how to design my code so that I can use the same files both with node and in the browser. ...</description>
		<link>http://balpreetpankaj.com/blog/2011/08/07/browser-and-nodejs/</link>
			</item>
	<item>
		<title>Greasemonkey and avoiding the sandbox</title>
		<description>Recently, I was trying to write a greasemonkey script to override the HTMLHeadElement.appendChild function in the browser DOM. Well, the reason I was trying to do that was to redirect a json-p call to my servers instead of the once mentioned in the webpage. Json-p works by dynamically adding a ...</description>
		<link>http://balpreetpankaj.com/blog/2011/08/07/greasemonkey-and-avoiding-the-sandbox/</link>
			</item>
	<item>
		<title>install_name_tool to the rescue</title>
		<description>I upgraded to Rails 3 and the mysql2 gem. And then:

balpreet-pankajs-macbook:youmash balpreetpankaj$ rake db:create
rake aborted!
dlopen(/opt/local/lib/ruby/gems/1.8/gems/mysql2-0.3.6/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib
  Referenced from: /opt/local/lib/ruby/gems/1.8/gems/mysql2-0.3.6/lib/mysql2/mysql2.bundle
  Reason: image not found - /opt/local/lib/ruby/gems/1.8/gems/mysql2-0.3.6/lib/mysql2/mysql2.bundle

(See full trace by running task with --trace)


This is when install_name_tool came to the rescue. Apparently mysql2 gem is not ...</description>
		<link>http://balpreetpankaj.com/blog/2011/07/27/install_name_tool-to-the-rescue/</link>
			</item>
	<item>
		<title>Skip Validations</title>
		<description>How many times have you felt like skipping validations on a particular model while writing rspec tests ?  Last night, I was trying to write rspec tests for one of my models which tested transactions of money between two users. My user model has tens of validations and I ...</description>
		<link>http://balpreetpankaj.com/blog/2009/08/09/skip-validations/</link>
			</item>
	<item>
		<title>Facebook Iframe Application: Resize Iframe</title>
		<description>If you are using Rails and Facebooker, and you have a resizable Iframe application and you are having problems with resizing, do the following:

a) Make sure that the Iframe is set to Resizable in the Facebook appplication settings.

b) Instead of calling just &#60;%= init_fb_connect "XFBML" %&#62; (as mentioned in all ...</description>
		<link>http://balpreetpankaj.com/blog/2009/07/24/facebook-iframe-application-resize-iframe/</link>
			</item>
	<item>
		<title>Facebooker: Creating an Iframe Application (Incorrect Signature)</title>
		<description>I started developing a Facebook app for one of my existing websites.  Since, I already had a working website and I prefer normal html and js over fbml and JS over FBML and FBJS, I decided to take the IFrame route. While working with my app, I ran into this ...</description>
		<link>http://balpreetpankaj.com/blog/2009/07/24/facebooker-creating-an-iframe-application-incorrect-signature/</link>
			</item>
	<item>
		<title>SMERF and issues with MySQL</title>
		<description>SMERF is the meta form generator plugin for Rails. The plugin I would say is very useful. It takes in a form definition file, defined in YAML and creates a form on the fly. These forms are associated to users and the responses to the forms are also persisted in ...</description>
		<link>http://balpreetpankaj.com/blog/2009/02/10/smerf-and-issues-with-mysql/</link>
			</item>
	<item>
		<title>Div inside a p : Invalid HTML</title>
		<description>I was trying to center an element using the p tag. Like :
&#60;p style="margin-left:auto; magin-right:auto; width: 50 em;"&#62;
&#60;%= show_simple_captcha %&#62;
&#60;/p&#62;

show_simple_captcha is a helper method from the simple captcha rails plugin. This view helper generates a div which helps in captcha validation. Now, this created a problem. This piece of code ...</description>
		<link>http://balpreetpankaj.com/blog/2009/01/28/div-inside-a-p-invalid-html/</link>
			</item>
	<item>
		<title>action_mailer_tls and Ruby 1.8.7</title>
		<description>If you are using action_mailer_tls rails pluin and you shifted to Ruby 1.8.7, your app might break. I recently ran into this problem, coz my host providers shifted to Ruby 1.8.7 and I started getting errors when I was trying to send emails. The problem is because the check_auth_args function ...</description>
		<link>http://balpreetpankaj.com/blog/2009/01/21/action_mailer_tls-and-ruby-187/</link>
			</item>
</channel>
</rss>

