<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Juggling Eggs &#187; Hack</title>
	<atom:link href="http://sonnygill.net/category/hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://sonnygill.net</link>
	<description>Priceless eggs, variable gravity</description>
	<lastBuildDate>Sat, 17 Apr 2010 17:28:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Friendster hacked</title>
		<link>http://sonnygill.net/css/friendster-hacked/</link>
		<comments>http://sonnygill.net/css/friendster-hacked/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 17:11:37 +0000</pubDate>
		<dc:creator>Sonny Gill</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://sonnygill.wordpress.com/2007/08/16/friendster-hacked-profile-blank-firefox-web-developer-to-debug/</guid>
		<description><![CDATA[(or how to use Firefox web developer to impress your wife   )
Looks like Friendster is suffering from some kind of CSS attack.
So, if your Friendster profile page is showing up a blank page, go to this link &#8211; Friendster Hacked and follow the instructions there to fix it.
Now on to how Chris Pederick&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><strong>(or how to use Firefox web developer to impress your wife <img src='http://sonnygill.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</strong></p>
<p>Looks like Friendster is suffering from some kind of CSS attack.<br />
So, if your Friendster profile page is showing up a blank page, go to this link &#8211; <a href="http://ramblings.ignorantcow.net/posts/friendster-hacked/">Friendster Hacked</a> and follow the instructions there to fix it.</p>
<p>Now on to how <a href="http://chrispederick.com/work/web-developer/">Chris Pederick&#8217;s Web developer</a> made me look like a hero (at least in my wife&#8217;s eyes) <img src='http://sonnygill.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  :-</p>
<p>Wifey comes home and tells me her Friendster site is not working. Being the good samaritan that I am, I immediately open up my browser to have a look. The page shows up all blank, so of course the first thing I do is View &#8211; Source.<br />
All the page data is there in the source, it just isn&#8217;t showing up.<br />
Hmmm&#8230;time to download and install Web Develoer and <a href="http://www.getfirebug.com/">Firebug</a> in her browser. That done the following few steps led to resolution of the problem :-</p>
<p>Using Web Developer extension -<br />
1. Try Disable -&gt; Javascript &#8211; no effect<br />
2. Try CSS -&gt; Disable Styles -&gt; All Styles &#8211; Cool! The page shows up without all styles; time to narrow it down<br />
3. Try CSS -&gt; Disable Styles -&gt; Embedded Styles &#8211; The page shows up<br />
(CSS -&gt; Disable Styles -&gt; Inline Styles has no effect, so the problem is in an embedded style)<br />
4. Do CSS -&gt; View CSS &#8211; All the different styles are listed in a new tab. Luckily there are only two embedded styles, and one of them immediately seems like the problem -<br />
<code><br />
Embedded Styles from http://www.friendster.com/user.php?uid=XYZ<br />
body {background-color:#ffffff;<br />
background-attachment:fixed}<br />
.commonbox h2 {background-color:transparent; color:#ffffff}<br />
.commonbox {border-color:transparent}</p>
<p>div{display:none}<br />
</code></p>
<p>Back to View &#8211; Source, and a search for <code>div{display:none}</code> brings up the offending code -<br />
<a href='http://sonnygill.files.wordpress.com/2007/08/friendster-code.png' title='Friendster code'><img src='http://sonnygill.files.wordpress.com/2007/08/friendster-code.png' alt='Friendster code' /></a></p>
<p>Ha! I actually LOL when I saw this.<br />
It was easy to fix this after getting so far. Go to the Profile page, bring up the edit box for the shout out. For my wife&#8217;s account, it came up as this -<br />
<a href='http://sonnygill.files.wordpress.com/2007/08/friendster.png' title='Friendster'><img src='http://sonnygill.files.wordpress.com/2007/08/friendster.png' alt='Friendster' /></a><br />
Remove, reset and save, and the profile was back to the way it was.</p>
<p>After fixing it, I google for friendster hacked, and one of the first few links is the one mentioned above.<br />
Darn! Could just have googled first, but then I would have missed out on having all this fun, and my wife wouldn&#8217;t have been as impressed he he.</p>
<p>BTW, anybody at Friendster looking for an <a href="http://sonnygill.wordpress.com/resume/">exceptional software developer</a>? <img src='http://sonnygill.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>P.S. If you use Firefox, go get the <a href="http://chrispederick.com/work/web-developer/">web developer</a> extension. It is priceless for the web developers and the power users alike.</p>
]]></content:encoded>
			<wfw:commentRss>http://sonnygill.net/css/friendster-hacked/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bloglines &#8211; claiming your wordpress.com blog feed</title>
		<link>http://sonnygill.net/hack/bloglines-claiming-your-wordpresscom-blog-feed/</link>
		<comments>http://sonnygill.net/hack/bloglines-claiming-your-wordpresscom-blog-feed/#comments</comments>
		<pubDate>Sat, 26 May 2007 12:34:41 +0000</pubDate>
		<dc:creator>Sonny Gill</dc:creator>
				<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://sonnygill.wordpress.com/2007/05/26/bloglines-claiming-your-wordpresscom-blog-feed/</guid>
		<description><![CDATA[Bloglines allows you to claim the feed for your blog. Verifying a claim requires adding two Bloglines provided keys to your blog, one in a post, and the other one in the template of your blog.
Adding a key to a blog post is easy enough, but the free wordpress.com account does not allow you to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bloglines.com">Bloglines</a> allows you to claim the feed for your blog. Verifying a claim requires adding two Bloglines provided keys to your blog, one in a post, and the other one in the template of your blog.</p>
<p>Adding a key to a blog post is easy enough, but the free wordpress.com account does not allow you to edit your template. No problem&#8230;just add a text widget to your blog and add the second key there.</p>
<p>BTW, when adding the first key in a blog post, I was only able to get it to work by including it using the code tags.</p>
<p>(Suggested by Jack Whitsitt, via <a href="http://en.forums.wordpress.com/topic.php?id=2735&amp;page&amp;replies=6">Wordpress forums</a>. Thanks, Jack.)</p>
]]></content:encoded>
			<wfw:commentRss>http://sonnygill.net/hack/bloglines-claiming-your-wordpresscom-blog-feed/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Making Auto-Login user script work on Flock</title>
		<link>http://sonnygill.net/hack/making-auto-login-user-script-work-on-flock/</link>
		<comments>http://sonnygill.net/hack/making-auto-login-user-script-work-on-flock/#comments</comments>
		<pubDate>Tue, 12 Dec 2006 02:06:48 +0000</pubDate>
		<dc:creator>Sonny Gill</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://sonnygill.wordpress.com/2006/12/12/making-auto-login-user-script-work-on-flock/</guid>
		<description><![CDATA[I use the Auto-Login user script at http://labs.beffa.org/greasemonkey/ to ease some of the pain of JEE development.
Recently, I decided to try out Flock for a few days, and the script didn&#8217;t work with it.
Thanks to Dive Into Greasemonkey, here is a quick fix.
This part of the script fails when running on Flock browser -

//to prevent [...]]]></description>
			<content:encoded><![CDATA[<p>I use the Auto-Login user script at <a href="http://labs.beffa.org/greasemonkey/" title="http://labs.beffa.org/greasemonkey/">http://labs.beffa.org/greasemonkey/</a> to ease some of the pain of JEE development.</p>
<p>Recently, I decided to try out Flock for a few days, and the script didn&#8217;t work with it.</p>
<p>Thanks to <a href="http://diveintogreasemonkey.org/toc/index.html">Dive Into Greasemonkey</a>, here is a quick fix.</p>
<p>This part of the script fails when running on Flock browser -</p>
<pre class="brush: jscript;">
//to prevent submit to stupid site which put fake login / pass value
if (thisElement.value != thisElement.defaultValue) {
passfield = true;
thisElement.addEventListener(&amp;acirc;keypress&amp;acirc;, al_KeyPress, true);
}
</pre>
<p></p>
<p>For some reason,  <span style="color:#808080"><em><em>thisElement.value </em></em></span>is always empty on Flock. On Firefox, it shows the actual value of the field.<br />
Anyway, since I only use this script to login into a particular web page, I removed that if condition, and it works fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://sonnygill.net/hack/making-auto-login-user-script-work-on-flock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
