August 9th, 2009


9
Aug 09

Daily Digest for August 9th

googlereader (feed #5)
Shared iMuffler
twitter (feed #2)
@zoster Probably… he wouldn’t remember it though… he had no concept of space :P [#]
twitter (feed #2)
A good talk on copyright and file sharing and the future of entertainment by @stephenfry check it out http://bit.ly/eDOAI [#]
twitter (feed #2)
@zoster That is better than fuzzy and white! [#]
twitter (feed #2)
RT @StephenAtHome: i just saw a triple-g rated movie. that was some seriously hardcore family fare [#]
twitter (feed #2)
Simply amazing… http://bit.ly/24o551 [#]
twitter (feed #2)
http://twitpic.com/d74v2 – Ubuntu on one screen Vista on the other… nice [#]
twitter (feed #2)
It is sad that you have to install a virtual machine to run IE 6 if you want to be able to test things properly… [#]
twitter (feed #2)
Maybe I should plug in one of my other monitors and use it as the virtual machine test screen… [#]
twitter (feed #2)
So… I have Ubuntu running in a virtual machine so I can run wine so I can run IE6… sigh… [#]
twitter (feed #2)
@gavinblair Haha Bell started doing that now too? [#]
twitter (feed #2)
@gabearnold Well… it was either that or I install the M$ virtual machine… which expires every couple of months [#]
twitter (feed #2)
@gavinblair You should switch to Teksavvy instead… they don’t hijack your Internets :P [#]
twitter (feed #2)
@hijinksensue You just made me want to see it [#]
twitter (feed #2)
Hmmm… the ‘seamless mode’ in Virtualbox isn’t showing me the Ubuntu toolbar when Vista is the host [#]
twitter (feed #2)
@gavinblair I made one of those once… not sure where it went though [#]
twitter (feed #2)
@codinghorror That is what you do in php… except there seems to be no way to check if something does not exist rather than being null [#]
twitter (feed #2)
@hijinksensue So… that is a big GI No? [#]
twitter (feed #2)
Does anyone else think that the Breen look like they have dustbusters attached to the front of their helmets? [#]
twitter (feed #2)
RT @codinghorror: why do decisions made *only weeks ago* seem like they were made while we were apparently high on crack? I blame me. [#]
twitter (feed #2)
@TheGingerDog isset($nonExistant) = isset($null) = false…. hmmm… is it null or not set? [#]
twitter (feed #2)
@TheGingerDog The same goes for empty… array_key_exists works fine for arrays… [#]
twitter (feed #2)
twitter (feed #2)
Hmmm… Apparently chrome can only show 201 iFrames per page… [#]
googlereader (feed #5)
Shared Foxtrot – 9 August 2009
twitter (feed #2)
@TheGingerDog $doesNotExist === null === $null [#]
twitter (feed #2)
@TheGingerDog What I really want is something like !defined(CONST)… except for variables… ah well [#]
twitter (feed #2)
Gowron has such popped out eyeballs… [#]
twitter (feed #2)
@gavinblair Careful… if it does too well it might collapse [#]
twitter (feed #2)
@zoster Have you seen how long Dr. Bashir’s name is in real life? http://bit.ly/jVP2X [#]
twitter (feed #2)
@zoster Betcha he never signs his full name… [#]
twitter (feed #2)
Storm keeps taking out the power [#]
twitter (feed #2)
@markstahler I was trying to watch the last episode of DS9… but no… stupid storm… [#]

9
Aug 09

A couple useful jQuery Snippets

For popups, just add class=”popup”

jQuery('a.popup').live('click', function(){
	newwindow=window.open($(this).attr('href'),'','height=200,width=150');
	if (window.focus) {newwindow.focus()}
	return false;
});

To open in a new tab, add class=”newTab”

jQuery('a.newTab').live('click', function(){
	newwindow=window.open($(this).href);
	jQuery(this).target = "_blank";
	return false;
});

Check if something is in view

function in_view(elem){
	var docViewTop = jQuery(window).scrollTop();
	var docViewBottom = docViewTop + jQuery(window).height();
 
	var elemTop = jQuery(elem).offset().top;
	var elemBottom = elemTop + jQuery(elem).height();
 
	return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom) && (elemBottom <= docViewBottom) &&  (elemTop >= docViewTop));
}