<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>geedew :: Web Design, Programming, Professionalism</title>
	
	<link>http://www.geedew.com</link>
	<description>Web Design, Web Programming, Programming on Linux, CSS, JavaScript, PHP, HTML5</description>
	<lastBuildDate>Fri, 26 Feb 2010 02:52:47 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/geedew" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="geedew" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>jQuery UI Dialog Accessibility</title>
		<link>http://www.geedew.com/2010/02/25/jquery-ui-dialog-accessibility/</link>
		<comments>http://www.geedew.com/2010/02/25/jquery-ui-dialog-accessibility/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 02:52:17 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[508]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[BugFix]]></category>
		<category><![CDATA[Defects]]></category>
		<category><![CDATA[jQuery UI]]></category>

		<guid isPermaLink="false">http://www.geedew.com/?p=185</guid>
		<description><![CDATA[    jQuery UI is an amazing product.  It&#8217;s not because it offers the best features, or that it offers the best solution, it&#8217;s that it offers a large degree of support for years to come.  Which is saying a lot for something that is nothing more than JavaScript.  It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>    jQuery UI is an amazing product.  It&#8217;s not because it offers the best features, or that it offers the best solution, it&#8217;s that it offers a large degree of support for years to come.  Which is saying a lot for something that is nothing more than JavaScript.  It&#8217;s certainly something that many enterprises have begun to look at and look for in the development world.  At my job at Coventry Healthcare, I&#8217;m responsible for the User Interfaces and generally the User Experience across some very highly visible web applications.  One of the most recent developments in our line of business is the risk of not having an accessible site (we fall under Section 508 guidelines because of our Medicare/Medicaid users).  jQuery UI has literally allowed me to very easily create and maintain large amounts of code so that I can spend more time making sure that it follows WCAG 2.0 and WARIA (which should cover us for S508).<span id="more-185"></span>
</p>
<p class="entry-text">So recently I discovered a very nasty bug dealing with jQuery UI dialog (withe modal:true) widgets that seems to only occur in Internet Explorer.  It goes like this:  If you are using a dialog with a screen reader, your main mode of navigation is with the keyboard.  This is typically driven via the focus on elements.  In jQuery, focus is demanded on the dialog because of the modal command.  You are unable to focus on anything other than the dialog and it&#8217;s elements.  Here&#8217;s the issue however, jQuery successfully  can keep focus on the dialog in all browsers tested (FF, Safari, Chrome) so that the focus cannot leave the dialog.  However in Internet Explorer (6, 7 and 8 ) your focus can get to the address bar, simply by tabbing to it.  Once in the address bar, jQuery is no longer able to track and handle the focus, so inevitable, after tabbing through the menu, focus come back to the window.  But instead of going to the dialog, it goes to the first element that can be tabbed to, which is undoubtedly BEHIND the modal dialog.  jQuery, subsequently locks the tabbing at this point, most likely because you have focus on and element that is unable to be focused (in jQuery&#8217;s dialog algorithm).
</p>
<p class="entry-text">So I cannot have this as that would literally cut 75% of my users from being able to use just a keyboard with the sites I&#8217;m maintaining.  So I had to find a solution.  First, IE seems to be the only browser with this issue and it has something to do with the fact that the focus moves out of the DOM&#8217;s control (out of jQuery&#8217;s control).  But the focus would always at least get back to the first element that could be tabbed to, and then lock.  So I devised a plan.  What if the first element, when focused, looks for an open dialog and if it is there, focuses on that dialog?  So I tried it out, like this.
</p>
<pre class="brush: jscript;">
$(document).ready(function() {
    $(&quot;:tabbable:first&quot;).focus(function() {
           $(&quot;.ui-dialog:visible:last :tabbable:first&quot;).focus();
    })
});
</pre>
<p class="entry-text">
Amazingly enough, this is the exact solution to the issue. This is how it reads.</p>
<ol>
<li>On page load</li>
<li>Get the first element that can be tabbed to in the body</li>
<li>When this element gains focus, check for a visible dialog</li>
<li>Take the visible dialog that is last (the last one drawn in the html) and get the first element that can be tabbed in it</li>
<li>give focus to that first element.</li>
</ol>
<p class="entry-text">
Now, in IE, when focus returns to the document, it goes to the dialog box, specifically, the close icon on the dialog box, thereby not breaking the fact that there a modal open on the page.
</p>
<p class="entry-text">
Now, there are some issues with this.  For one, the code is just assuming that the last dialog in the html that is visible is the one that is to be focused on.  Quite frankly, that&#8217;s what I need it for, as I try not to overlay dialogs, and when it do, the newest one is normally always on top.  However, there are times where you may swap between two dialogs, and the one that is on top is not the last dialog in the html, you would still have this issue in this case.  But for probably the other 95% of the cases, this is a clean and easy way to &#8216;fix&#8217; the accessibility issue in IE with jQuery UI dialog modals.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2010/02/25/jquery-ui-dialog-accessibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Droid Rooted, here’s my take.</title>
		<link>http://www.geedew.com/2009/12/08/droid-rooted-heres-my-take/</link>
		<comments>http://www.geedew.com/2009/12/08/droid-rooted-heres-my-take/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 05:42:30 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[2.01]]></category>
		<category><![CDATA[droid]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[verizon]]></category>

		<guid isPermaLink="false">http://www.geedew.com/?p=144</guid>
		<description><![CDATA[Before you root, you should probably upgrade to 2.01, as that will &#8216;break&#8217; your new root access. You can get that download from here, if you have not already received it OTA (Over the Air). You need to follow the directions below, to apply the 2.01.  The directions for each download it exactly the [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>Before you root, you should probably upgrade to 2.01, as that will &#8216;break&#8217; your new root access. You can get that download from <a href="https://android.clients.google.com/updates/voles/signed-voles-ESD56-from-ESD20.84263456.zip">here</a>, if you have not already received it OTA (Over the Air). You need to follow the directions below, to apply the 2.01.  The directions for each download it exactly the same, except for the ADB access.</p>
<p>This &#8216;root&#8217; is strictly for developers.  It&#8217;s not going to give you any ability to do anything to your phone yet, unless you really know your *nix commands well enough not to screw something up on your phone.  So continue only if you really want this ability (the ability to really screw up your phone).<br />
<span id="more-144"></span><br />
You can follow the direct postings <a href="http://alldroid.org/viewtopic.php?f=210&#038;t=567">here.</a><br />
I&#8217;ve downloaded the file (best link is <a href="http://alldroid.org/download/file.php?id=643">here</a>).  You should also download this file, as it will be needed.</p>
<blockquote><p>md5sum of the boot partition:<br />
3e49d99b320cf5c20bedf09343c1155c /dev/mtd/mtd2
</p></blockquote>
<p>Here is the `how-to` that <a href="http://alldroid.org/memberlist.php?mode=viewprofile&#038;u=1941">embeem</a> posted, I will add to it where I see fit, just to help some of those out as to what is going on.</p>
<blockquote><p>Download the zip file</p></blockquote>
<p>You can find the link at the top of this post.</p>
<blockquote><p>
Rename to &#8220;update.zip&#8221; and copy to the sdcard</p></blockquote>
<p>It is currently named `droid-root.zip`, `update.zip` is required as that will be used internally by the script in the program.</p>
<blockquote><p>Power off the DROID and power back on while holding the X key<br />
When you see a &#8220;/!\&#8221; symbol, press both vol+ and camera</p></blockquote>
<p>This isn&#8217;t magic, it&#8217;s simply a rescue mode. Slide the keyboard out to start. It&#8217;s very easy to figure out what is going on here.  You have to press and hold the volume Up key then press the camera button. </p>
<blockquote><p>Use the onscreen menu to install update.zip</p></blockquote>
<p>You must use your d-pad to do this.  just choose update.zip from the menu.</p>
<blockquote><p>Once installed you will be able to run &#8220;su&#8221; from your adb shell.</p></blockquote>
<p>This one is the kicker, best explained by <a href="http://alldroid.org/memberlist.php?mode=viewprofile&#038;u=2264">syntrix</a></p>
<blockquote><p>you have to attach your droid in debug mode in eclipse and use adb from the sdk. Again, I&#8217;m holding off on this, it&#8217;s my only phone.</p>
<p>But once you get this access, you can run commands natively, and copy files to the sd and pull them off the droid.</p></blockquote>
<p>ADB is only ran from the SDK developers tools.  In other words, you are running command from your computer, not the phone.</p>
<p>Now, to take this a step further, we can also get a terminal emulator running on the phone with root access according to <a href="http://alldroid.org/memberlist.php?mode=viewprofile&#038;u=2309">mjxg&#8217;s</a> post&#8230;</p>
<blockquote><p>
1) download this: http://www.magicandroidapps.com/su.zip<br />
2) push it to your phone</p>
<p>C:\Android>adb push su /data/local<br />
595 KB/s (76200 bytes in 0.125s)</p>
<p>3) C:\Android>adb shell<br />
$ su<br />
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system<br />
# cd /system/bin<br />
# mv su osu<br />
# cat /data/local/su > su<br />
# chmod 6755 su</p>
<p>4) verify</p>
<p># ls -l *su<br />
-rwsr-sr-x root root 76200 2008-08-01 05:00 osu<br />
-rwsr-sr-x root root 76200 2009-05-30 11:28 su</p>
<p>5) finish</p>
<p># sync<br />
# reboot</p>
<p>6) open up a terminal emulator on the phone and run `su` and enjoy</p></blockquote>
<p>With all this said, this is a remarkable, easy root access. It literally is just adding a file  (&#8217;su&#8217;) that the user has permissions to.  &#8216;SU&#8217; means, switch user, and by default, that user is root.  Giving the user access to this file, means they can run that command, and if that file has the right permissions, which is does in the update, it will run &#8216;as&#8217; root.  And tada, you can now begin to get access to the rest of the system!</p>
<p>Developers will now take over.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/12/08/droid-rooted-heres-my-take/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bulletproof @font-face</title>
		<link>http://www.geedew.com/2009/12/07/bulletproof-font-face/</link>
		<comments>http://www.geedew.com/2009/12/07/bulletproof-font-face/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 04:12:55 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Bulletproof]]></category>
		<category><![CDATA[Font-Face]]></category>
		<category><![CDATA[Zeldman]]></category>

		<guid isPermaLink="false">http://www.geedew.com/?p=139</guid>
		<description><![CDATA[There is quite an interesting discussion going on at Jeffrey Zeldman&#8217;s blog concerning the @font-face syntax and how to make sure that it is working in all browsers.  It&#8217;s interesting to see the different &#8216;hacks&#8217; that are being put together for something that should be hashed out to work well in all major browsers. [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>There is quite an interesting discussion going on at <a href="http://www.zeldman.com/2009/12/02/bulletproof-font-face/">Jeffrey Zeldman&#8217;s blog</a> concerning the @font-face syntax and how to make sure that it is working in all browsers.  It&#8217;s interesting to see the different &#8216;hacks&#8217; that are being put together for something that should be hashed out to work well in all major browsers.  Why does this remind me of things like the wonky implementations being played out in html5?!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/12/07/bulletproof-font-face/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usability and a Simple JavaScript hovering menu</title>
		<link>http://www.geedew.com/2009/12/05/usability-and-a-simple-javascript-hovering-menu/</link>
		<comments>http://www.geedew.com/2009/12/05/usability-and-a-simple-javascript-hovering-menu/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 02:20:11 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://geedew.com/blog/?p=53</guid>
		<description><![CDATA[Many web developers ask &#8216;what is usability?&#8217;.  This is one of those topics that I can explain, but it may be easier to demonstrate. My this experiences have led to some principles; one of them is that if I&#8217;m going to build it, it must be usable.   Unfortunately, many sites that I like, that tout [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>Many web developers ask &#8216;what is usability?&#8217;.  This is one of those topics that I can explain, but it may be easier to demonstrate. My this experiences have led to some principles; one of them is that if I&#8217;m going to build it, it must be usable.   Unfortunately, many sites that I like, that tout usability, screw up one important concept that annoys me greatly.</p>
<p>I ask myself, &#8220;when using a menu, why do I have to drag my mouse from one button to the next, and fear losing the menu if I cross it&#8217;s border anywhere?&#8221;  Some menus are just annoying because they disappear mid mouse move, some are extremely hard to use because of several layers of menus, some I have resorted to using `tabs` to get to the correct menu item.  It&#8217;s unfortunate that people can&#8217;t get this right.<br />
<span id="more-53"></span><br />
I have a simple fix that hopefully sharing it will help others.  It&#8217;s basically a menu that buffers the time you are hovering, that way if you mistakenly move your mouse into the wrong area, you have a brief period of time to correct yourself.</p>
<h2>Start with the HTML code:</h2>
<pre class="brush: xml;">
&lt;ul id=&quot;menu&quot;&gt;
	&lt;li class=&quot;nav&quot;&gt;&lt;a&gt;&lt;span&gt;ONE&lt;/span&gt;&lt;/a&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;one&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;two&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;three&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;four&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;&lt;a&gt;&lt;span&gt;TWO&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li class=&quot;nav&quot;&gt;&lt;a&gt;&lt;span&gt;THREE&lt;/span&gt;&lt;/a&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;one&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;two&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;three&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;four&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li class=&quot;nav&quot;&gt;&lt;a&gt;&lt;span&gt;FOUR&lt;/span&gt;&lt;/a&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;one&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;two&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;three&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;&lt;span&gt;four&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>The menu is a simple list within a list.  There are essentially only four main list items; ONE, TWO, THREE and FOUR.  Each of this list items has their own list of list items generically named one, two, three and four.  I personally stick with lists as my menu&#8217;s of choice because they degrade gracefully in case of CSS/JavaScript issues.</p>
<p>This list by itself isn&#8217;t much, in fact it&#8217;s not even a menu. CSS will be needed to really make it work correctly.</p>
<pre class="brush: css;">

#menu li {
	list-style:none;
	float:right; /* Makes IE 6,7,8 act like FF */
	position: relative;}
#menu li a {
	display:block;
	width: 160px;
	height:35px;
	margin-top: 5px;}
#menu li a span{
	padding-left:10px;
	line-height:2.8em;
	color: #000000;
	font-weight:700;}
#menu li a:hover {
	font-weight:bold;}

#menu li ul li a:hover span{ color: #222222; }

	#menu li ul {
		margin:0px;
		position:absolute;
		left: 160px;
		top:-90px;}
	#menu li ul li {
		padding:0px;
		border:0px;
		border-collapse:collapse;
		margin:0px;
		height:34px;}
	#menu li ul li a{ margin:0px;padding:0px;border:0px;}
	#menu li ul li a span{
		display:block;
		padding-top:7px;
		font-weight:100;
		line-height:1em;
		font-size: 83%;}
</pre>
<p>This is some simple CSS that will make the UL/LI lists to really act like lists.  Now the only issue is that you need it to act like a list. So the final piece of code to this puzzle is to add some JavaScript.  I am using the jQuery library as my choice for creating this script, so it&#8217;s necessary to have that package (1.3+) installed for this to work. You can drop this script into the footer element inside of &#8217;script&#8217; tags so it will run.  It will run automatically on page load.</p>
<pre class="brush: jscript;">
$(document).ready(function() {
	/* Setup the Menu */
	$(&quot;#menu &gt; li &gt; ul&quot;).hide();

	$(&quot;#menu li.nav&quot;).hover(
		/* on mouseover */
		function(e) {
			hoverMenu = this;
			if(this == closingMenu) {
				clearTimeout(closeMenu);
				clearTimeout(openMenu);
				$(this).find(&quot;ul:first&quot;).show(&quot;fast&quot;);
			} else {
				var newMenuOpen = function() {
					$(hoverMenu).siblings(&quot;.nav&quot;).find(&quot;ul:first&quot;).hide();
					$(hoverMenu).find(&quot;ul:first&quot;).show(&quot;fast&quot;);
				}
				openMenu = setTimeout(newMenuOpen, 500);
			}

		},
		/* on mouseout */
		function(e) {
			closingMenu = this;
			var closeMenu = function() {
				$(closingMenu).find(&quot;ul:first&quot;).fadeOut(&quot;fast&quot;);
			}
			closeMenu = setTimeout(closeMenu, 500);
		}
	);
});
</pre>
<p> The final product is quite a nice and simple dynamic menu that adds just the right touch of usability.  Now, typically, I would never say that a menu with sub menus popping up everywhere is something of a usability menu system, it&#8217;s not.  But sometimes, a nice menu like this is needed, especially if there is a lot of information and &#8216;drill downs&#8217; that need to be accessed quickly.  In any case, you can see my <a href="http://www.geedew.com/projects/easyMenu/index.html">demo</a> here.  Leave some comments if you have any questions, and enjoy! You can also see a fully implemented version at <a href="http://x-sqared.com">Xcessorries Squared.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/12/05/usability-and-a-simple-javascript-hovering-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scribd and Slide mode : Why is my height wrong?</title>
		<link>http://www.geedew.com/2009/07/29/scribd-and-slide-mode-why-is-my-height-wrong/</link>
		<comments>http://www.geedew.com/2009/07/29/scribd-and-slide-mode-why-is-my-height-wrong/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 05:06:02 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Scribd]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[BugFix]]></category>

		<guid isPermaLink="false">http://www.geedew.com/?p=106</guid>
		<description><![CDATA[While recently using Scribd&#8217;s services, I came across a very nasty bug, and a nice clean fix.  Scribd allows developers to tap into a great, but somewhat basic API.  One of these settings allows a developer to set a default &#8216;mode&#8217; before the API then builds the flash calls necessary to display the document.  The [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>While recently using <a href="http://www.scribd.com/about">Scribd</a>&#8217;s services, I came across a very nasty bug, and a nice clean fix.  <a href="http://www.scribd.com/about">Scribd</a> allows developers to tap into a great, but somewhat basic <a href="http://www.scribd.com/developers/api?method_name=Javascript+API">API</a>.  One of these settings allows a developer to set a default &#8216;mode&#8217; before the <a href="http://www.scribd.com/developers/api?method_name=Javascript+API">API</a> then builds the flash calls necessary to display the document.  The issue comes up when you choose the &#8217;slide&#8217; mode as the loading view.  No matter what &#8216;height&#8217; you set, with &#8216;auto_size&#8217; set to false, the height will adjust to the wrong height.</p>
<p><span id="more-106"></span></p>
<p class="entry-text">
You can jump to the code <a href="#finishedCode">here</a>, or continue.</p>
<p class="entry-text">
I started by writing some simple code that follows the API.
</p>
<pre class="brush: jscript;">
scribd_doc.addParam( 'mode', 'slide' );
scribd_doc.addParam( 'height', 800 );
scribd_doc.addParam( 'width', 600 );
scribd_doc.addParam( 'jsapi_version', 1 );
scribd_doc.addParam( 'auto_size', false );
scribd_doc.write( 'flash_catalog' );
</pre>
<p class="entry-text">Where &#8216;flash_catalog&#8217; is the container div of the <a href="http://www.scribd.com/about">Scribd</a> PDF.</p>
<p class="entry-text">
This however led me to have a height that follows the default rules (width multiplier of 85/110) where the height matches how much space is in the window. So I progressed further with this code.</p>
<pre class="brush: jscript;">
var oniPaperReady = function(e){
 $(&quot;#flash_catalog embed&quot;)
.attr(&quot;wmode&quot;,&quot;transparent&quot;)
.hide()
.css({&quot;height&quot;:&quot;800px&quot;, &quot;width&quot;:&quot;600px&quot;})
.show();
}

scribd_doc.addEventListener( 'iPaperReady', oniPaperReady );
scribd_doc.addParam( 'mode', 'slide' );
scribd_doc.addParam( 'jsapi_version', 1 );
scribd_doc.addParam( 'auto_size', false );
scribd_doc.write( 'flash_catalog' );
</pre>
<p class="entry-text">So now I am dropping in a listener in the API to wait for the document to load.  I then hide the &#8216;embed&#8217; flash information, then add the height and width, then re-show the flash element.<?p></p>
<p class="entry-text">
You may notice, I&#8217;m using <a href="http://jquery.com/">jQuery</a>, in which you can do the same thing with regular JavaScript, although quite a bit more complicated (ask if you really really need that code).</p>
<p class="entry-text">
An astute reader would also notice one thing, I&#8217;m not adjusting for an &#8216;object&#8217; tag, only the &#8216;embed&#8217; tag (the difference for flash between different browsers).  I figured out this novice mistake while testing in Internet Explorer.  Here&#8217;s the finished code, that works, removing the nasty height issue.</p>
<div id="finishedCode">
<pre class="brush: jscript;">
var scribd_doc = scribd.Document.getDoc( #######, 'key-*******************' );

var oniPaperReady = function(e){
$(&quot;#flash_catalog embed&quot;)
.attr(&quot;wmode&quot;,&quot;transparent&quot;)
.hide()
.css({&quot;height&quot;:&quot;800px&quot;, &quot;width&quot;:&quot;600px&quot;})
.show();

$(&quot;#flash_catalog object&quot;)
.attr(&quot;wmode&quot;,&quot;transparent&quot;)
.hide()
.css({&quot;height&quot;:&quot;800px&quot;, &quot;width&quot;:&quot;600px&quot;})
.show();
}

scribd_doc.addEventListener( 'iPaperReady', oniPaperReady );
scribd_doc.addParam( 'mode', 'slide' );
scribd_doc.addParam( 'jsapi_version', 1 );
scribd_doc.addParam( 'auto_size', false );
scribd_doc.write( 'flash_catalog' );
</pre>
</div>
<p class="entry-text">The final word; I&#8217;m adding the transparent mode so that I can then have a menu that drops on top of the flash.  This works very well!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/07/29/scribd-and-slide-mode-why-is-my-height-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a better notification plugin: jQuery</title>
		<link>http://www.geedew.com/2009/07/22/making-a-better-notification-plugin-jquery/</link>
		<comments>http://www.geedew.com/2009/07/22/making-a-better-notification-plugin-jquery/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 03:33:18 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Notify]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.geedew.com/?p=100</guid>
		<description><![CDATA[I find myself at a crossroads.  I really like using jQuery, and I really like not having to write my own plugins as there are some really good ones out there.  But I have run into a problem when it comes to a notification system.  Let&#8217;s take a step back and discuss [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>I find myself at a crossroads.  I really like using jQuery, and I really like not having to write my own plugins as there are some really good ones out there.  But I have run into a problem when it comes to a notification system.  Let&#8217;s take a step back and discuss the purpose for a minute.</p>
<p class="entry-text" style="background-color:#F7FFBF">
** Update 7/29/2009**<br />
I now have a page dedicated to this at <a href="http://www.alldorks.com/wordpress/notify">http://www.alldorks.com/wordpress/notify</a> where you can also find the source code repository.
</p>
<p><span id="more-100"></span></p>
<p class="entry-text">Within a website&#8217;s user interface you have common tasks.  Of late, with ajax, overlays|dialogs|lightboxes have become common place.  Usually developers will use these to replace their `alerts`, `confirms` and leave it at that.  But what happens when a user does something and they need to be told &#8220;Hey, I got that and it was all ok&#8221;.  So you simply make an `alert` and let them know.  But then you have created this thing that they must read, click and then move on.  Add that up, and a user that is moving right along, may have to do 10 clicks a minute extra.  Or better yet, daily tasks are now incorporating clicks that are basically pointless.  A better solutions is to open up a notification, not unlike what is found in OSX, Gnome and Windows.  I&#8217;m talking about those little rounded popups that show up in some corner and then disappear.  Those&#8230; are notifications, and have been missing from most websites that really need them.</p>
<p class="entry-text">So now you know what I wanted.  A good looking notification system that is robust, adaptive, lightweightish, easy to work with, etc, etc.  Well, I couldn&#8217;t find that.  I did find mainly two that are out there, <a target="_blank" href="http://stanlemon.net/projects/jgrowl.html">jGrowl</a> and <a target="_blank" href="http://boedesign.com/2009/07/11/growl-for-jquery-gritter/">Gritter</a>.  Both are Okay, but I run into issues with both of them whenever I&#8217;m coding. Namely, what if I want multiple notification areas?  That shouldn&#8217;t be that hard, but it becomes a nightmare to edit and maintain their code.  Also, what if I miss the notification (getting coffee), how can I get it back?  Finally, why is it so difficult to change how these dang things look!  So I put my foot down and decided, &#8220;I will go it alone on this one&#8221;.  I rolled up my sleeves and put my knowledge together to form a better notification plugin.  I&#8217;m calling it &#8220;notify&#8221;, and I think it will quickly become a better platform for notifications.</p>
<p class="entry-text">I have a few things that I have been focused on:
</p>
<ul>
<li>Multiple notification spots (middle, top-left, unlimited with css)</li>
<li>Simple default notifications, completely customizable with options</li>
<li>Support for Class A browsers minus IE6, with hacks later to work it into IE6</li>
<li>Notification history manager, along with stickyness, and missed notices handling</li>
</ul>
<p class="entry-text">The list goes on from there.  It&#8217;s probably best to just play with the code, for now, it&#8217;s very raw, I will probably host a page on http://alldorks.com/ for it soon, along with a version control system to get the code from.  In any case, enjoy!</p>
<p class="entry-text">
<a href="http://geedew.com/notify.html" target="_blank">View the Demo Page, code is in the page </a></p>
<p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/07/22/making-a-better-notification-plugin-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slowly and surely</title>
		<link>http://www.geedew.com/2009/07/11/slowly-and-surely/</link>
		<comments>http://www.geedew.com/2009/07/11/slowly-and-surely/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 05:32:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[geedew]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[upgrading]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.geedew.com/2009/07/11/slowly-and-surely/</guid>
		<description><![CDATA[I&#8217;m slowly but surely getting this site up and running to where I want it to be.  Please leave feedback if you are having any issues with it.  I may be having an announcement soon about a new JavaScript Framework I&#8217;m working on that relies on other open sourced tools like jQuery.  [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>I&#8217;m slowly but surely getting this site up and running to where I want it to be.  Please leave feedback if you are having any issues with it.  I may be having an announcement soon about a new JavaScript Framework I&#8217;m working on that relies on other open sourced tools like jQuery.  Also, quite a few other things in the works, like a usable hovering menu that I made.  In any case, enjoy the site as I construct it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/07/11/slowly-and-surely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geedew going through some changes</title>
		<link>http://www.geedew.com/2009/06/01/geedew-going-through-some-changes/</link>
		<comments>http://www.geedew.com/2009/06/01/geedew-going-through-some-changes/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 05:03:30 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://geedew.com/?p=62</guid>
		<description><![CDATA[So I have finally been able to spend some time on one of my own sites!  Hurray for me right?  For the time being, you may be seeing some weird illusions in the design&#8230; and you will notice that some links at the top are not working.  It&#8217;s all in the works, [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>So I have finally been able to spend some time on one of my own sites!  Hurray for me right?  For the time being, you may be seeing some weird illusions in the design&#8230; and you will notice that some links at the top are not working.  It&#8217;s all in the works, I&#8217;m just happy I have time to work on it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/06/01/geedew-going-through-some-changes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perfecting the Linux User Desktop</title>
		<link>http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/</link>
		<comments>http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 07:46:02 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[desktop]]></category>

		<guid isPermaLink="false">http://geedew.com/?p=31</guid>
		<description><![CDATA[The linux desktop over the years has been a large struggle for many users.  I hear many complaints from people that have &#8216;tried&#8217; linux out and they seem to all come to the conclusion that it is difficult or even impossible to use.  The unfortunate part about most of these complaints, is that [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>The linux desktop over the years has been a large struggle for many users.  I hear many complaints from people that have &#8216;tried&#8217; linux out and they seem to all come to the conclusion that it is difficult or even impossible to use.  The unfortunate part about most of these complaints, is that they are reiterating something they read 10 years ago, or something their friend who knows computers becaues he is a &#8216;gamer&#8217; told him so.<br />
<span id="more-31"></span></p>
<p>You can also jump right to the <a title="go to the image gallery" href="gallery1">gallery</a> to just view the images.<br />
Personally, I prefer Linux.  In the past few years I have travelled through many different distributions.  Lately (past year or so), I have solely worked with the fastly becoming forerunner, Ubuntu.  Power linux users can complain all that they want about how Ubuntu is fancying the wrong crowd, but the simple fact is that if Ubuntu wasn&#8217;t doing the things they are doing, we wouldn&#8217;t have the incredible developements that Linux distributions now offer.  To put some fuel for the fire about how Linux is not usable, or that it is simply not capable of being the powerhouse that real users know it can be, I wanted to walk through my setup.</p>
<div id="attachment_157" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-157" title="DesktopNormal" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopNormal-300x225.png" alt="When nothing is brought up or running" width="300" height="225" /><p class="wp-caption-text">When nothing is brought up or running</p></div>
<p class="entry-text">This is my Desktop when I have nothing open.  I have 6 virtual desktops&#8230; meaning I can have up to 6 `windows` with stuff in them.  I can switch between them by either dragging something to another page, or by using ctrl+alt+ left|right|up|down. So how is this usable, where&#8217;s the menu?  Well, for one, it&#8217;s a touch screen (yes it works quite well) laptop (x61t) that has a 1024*768 resolution.  So I need realestate, so that is what is the deciding factor in my choices.  The menu is on the left, just moving the mouse to the left side of the screen shows it.</p>
<div id="attachment_156" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-156" title="DesktopMenu" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopMenu-300x225.png" alt="The Ubuntu menu" width="300" height="225" /><p class="wp-caption-text">The Ubuntu menu</p></div>
<p class="entry-text">As you can see it&#8217;s all there.  But I rarely ever use it.  Usually , I just hit command+space which brings up my GnomeDo options.</p>
<div id="attachment_155" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-155" title="DesktopGnomeDo" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopGnomeDo-300x225.png" alt="Gnome Do 's native functionality; searching." width="300" height="225" /><p class="wp-caption-text">Gnome Do &#39;s native functionality; searching.</p></div>
<p class="entry-text">So as I type, it highlight in blue&#8230; and it has some amazing plugins!  Sometimes I need a quick mouse menu&#8230; like when I&#8217;m browsing&#8230; for that moving my mouse to the bottom of the page solves this with GnomeDo&#8217;s Docky feature.</p>
<div id="attachment_154" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-154" title="Docky" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopDocky-300x225.png" alt="This is the settings menu for Docky." width="300" height="225" /><p class="wp-caption-text">This is the settings menu for Docky.</p></div>
<p class="entry-text">So Docky is good&#8230; and looks good, but sometimes I just need some space for things that I generally need from time to time&#8230;. for this I have my screenlets.  A quick press of f9 will bring them up&#8230; sending everything to monochrome behind.</p>
<div id="attachment_167" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-167" title="Screenlets" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Screenlets-300x225.png" alt="A good view of the Screenlets overlay" width="300" height="225" /><p class="wp-caption-text">A good view of the Screenlets overlay</p></div>
<p class="entry-text">Notice&#8230; Pidgin, Terminal, another Funky clock, Date, the Current moon, Uptime, Battery, and Places.  Over time I&#8217;m sure I will add more&#8230; Still looking for a killer calculator. So now that I have my machine on and running, I need some music.</p>
<div id="attachment_169" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-169" title="Songbird" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Songbird-300x225.png" alt="Excellent Linux media player with a great skin." width="300" height="225" /><p class="wp-caption-text">Excellent Linux media player with a great skin.</p></div>
<p class="entry-text">Bring in Songbird.  yes this is an actual screenshot of my current playlist.  It&#8217;s very slick, and easy to use and understand.  Now that I have my music up, lets fire up some programming tool.</p>
<div id="attachment_163" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-163" title="Geany" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Geany-300x225.png" alt="Excellent Ubuntu programming program; Geany" width="300" height="225" /><p class="wp-caption-text">Excellent Ubuntu programming program; Geany</p></div>
<p class="entry-text">I love Geany.  It&#8217;s very easy to use, and it&#8217;s completly packed with autocompletion, etc.  Notice how it handles all the language, and allows me to set a dark theme.  Once again, pay attention to the realestate usage&#8230; I use the entire screen.</p>
<p>Sometimes I have small windows open.  Ubuntu handles this well.. take a look at what happens when I have more than one open, notice how the previous clicked windows fade out for better attention getting.</p>
<div id="attachment_170" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-170" title="ADDFocus" src="http://cdn.geedew.com/wp-content/uploads/2010/01/TrailFocus-300x225.png" alt="Making sure that the other windows fade so that the one you are on gains best focus" width="300" height="225" /><p class="wp-caption-text">Making sure that the other windows fade so that the one you are on gains best focus</p></div>
<p class="entry-text">Sometimes though&#8230; I have things on other virtual displays that I need&#8230; and a simple alt+tab won&#8217;t get to them.  For those I do ctrl+command+space&#8230; and wha-laa</p>
<div id="attachment_166" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-166" title="ScaleView" src="http://cdn.geedew.com/wp-content/uploads/2010/01/ScaleView-300x225.png" alt="Easy window grabbing by putting them all up together." width="300" height="225" /><p class="wp-caption-text">Easy window grabbing by putting them all up together.</p></div>
<p class="entry-text">So what about this Vista I keep seeing&#8230; you mean this vista?</p>
<div id="attachment_172" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-172" title="VistaMenuItems" src="http://cdn.geedew.com/wp-content/uploads/2010/01/VistaMenuItems-300x225.png" alt="The start menu when running Vista in seamless mode." width="300" height="225" /><p class="wp-caption-text">The start menu when running Vista in seamless mode.</p></div>
<p class="entry-text">That can run all these `Windows` *ick* programs on my desktop?</p>
<div id="attachment_173" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-173" title="VistaPrograms" src="http://cdn.geedew.com/wp-content/uploads/2010/01/VistaPrograms-300x225.png" alt="Vista programs running on the Ubuntu desktop; via Virtualbox" width="300" height="225" /><p class="wp-caption-text">Vista programs running on the Ubuntu desktop; via Virtualbox</p></div>
<p class="entry-text">There is a lot to offer in such a free package of software eh.  It seems that it handles quite alot of &#8216;usable&#8217; features.  Things people never imaged they could have for just a download.</p>
<p>Things like pen recognition and pressure recognition&#8230;</p>
<div id="attachment_174" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-174" title="Xournal" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Xournal-300x225.png" alt="Pen input, pressure sensitivity, shape recognizer" width="300" height="225" /><p class="wp-caption-text">Pen input, pressure sensitivity, shape recognizer</p></div>
<p class="entry-text">And it&#8217;s amazing what firefox can look like&#8230;</p>
<div id="attachment_162" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-162" title="FullScreeFirefox" src="http://cdn.geedew.com/wp-content/uploads/2010/01/FullScreeFirefox-300x225.png" alt="Saving real estate by going full screen with firefox" width="300" height="225" /><p class="wp-caption-text">Saving real estate by going full screen with firefox</p></div>
<p class="entry-text">I think I&#8217;ve shown my point, that linux doesn&#8217;t have to be all drab, it can be pretty slick too.</p>
<p>and I will leave you with my idle screen&#8230; Rain <img src='http://cdn.geedew.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<div id="attachment_165" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-165" title="Raining" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Raining-300x225.png" alt="Neat desktop effects, this is the raining effect." width="300" height="225" /><p class="wp-caption-text">Neat desktop effects, this is the raining effect.</p></div>
<h4>Image Gallery</h4>

<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/desktopdocky/' title='Docky'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopDocky-150x150.png" class="attachment-thumbnail" alt="This is the settings menu for Docky." title="Docky" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/desktopgnomedo/' title='DesktopGnomeDo'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopGnomeDo-150x150.png" class="attachment-thumbnail" alt="Gnome Do &#039;s native functionality; searching." title="DesktopGnomeDo" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/desktopmenu/' title='DesktopMenu'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopMenu-150x150.png" class="attachment-thumbnail" alt="The Ubuntu menu" title="DesktopMenu" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/desktopnormal/' title='DesktopNormal'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/DesktopNormal-150x150.png" class="attachment-thumbnail" alt="When nothing is brought up or running" title="DesktopNormal" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/fullscreefirefox/' title='FullScreeFirefox'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/FullScreeFirefox-150x150.png" class="attachment-thumbnail" alt="Saving real estate by going full screen with firefox" title="FullScreeFirefox" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/geany/' title='Geany'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Geany-150x150.png" class="attachment-thumbnail" alt="Excellent Ubuntu programming program; Geany" title="Geany" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/raining/' title='Raining'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Raining-150x150.png" class="attachment-thumbnail" alt="Neat desktop effects, this is the raining effect." title="Raining" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/scaleview/' title='ScaleView'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/ScaleView-150x150.png" class="attachment-thumbnail" alt="Easy window grabbing by putting them all up together." title="ScaleView" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/screenlets/' title='Screenlets'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Screenlets-150x150.png" class="attachment-thumbnail" alt="A good view of the Screenlets overlay" title="Screenlets" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/songbird/' title='Songbird'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Songbird-150x150.png" class="attachment-thumbnail" alt="Excellent Linux media player with a great skin." title="Songbird" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/trailfocus/' title='ADDFocus'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/TrailFocus-150x150.png" class="attachment-thumbnail" alt="Making sure that the other windows fade so that the one you are on gains best focus" title="ADDFocus" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/vistamenuitems/' title='VistaMenuItems'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/VistaMenuItems-150x150.png" class="attachment-thumbnail" alt="The start menu when running Vista in seamless mode." title="VistaMenuItems" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/vistaprograms/' title='VistaPrograms'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/VistaPrograms-150x150.png" class="attachment-thumbnail" alt="Vista programs running on the Ubuntu desktop; via Virtualbox" title="VistaPrograms" /></a>
<a href='http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/xournal/' title='Xournal'><img width="75" height="75" src="http://cdn.geedew.com/wp-content/uploads/2010/01/Xournal-150x150.png" class="attachment-thumbnail" alt="Pen input, pressure sensitivity, shape recognizer" title="Xournal" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/03/08/perfecting-the-linux-user-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Dialog Shadow Issues.</title>
		<link>http://www.geedew.com/2009/03/01/jquery-dialog-shadow-issues/</link>
		<comments>http://www.geedew.com/2009/03/01/jquery-dialog-shadow-issues/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 07:12:20 +0000</pubDate>
		<dc:creator>Drew</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://geedew.com/?p=30</guid>
		<description><![CDATA[While working on a dialog in the new jQuery UI 1.6rc6.  I have come accross an issue.
If you were to open a dialog, and then dynamically change the content in the dialog, the shadow border will not resize.  The problem is, the code does not &#8216;know&#8217; the box is larger, and is not able to [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=b02858dd9961de60a8a7d0f9efe9c758&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=20 height=20/><p>While working on a dialog in the new jQuery UI 1.6rc6.  I have come accross an issue.</p>
<p>If you were to open a dialog, and then dynamically change the content in the dialog, the shadow border will not resize.  The problem is, the code does not &#8216;know&#8217; the box is larger, and is not able to watch for the changes.   Their have been some solutions that I have found to solve this, like turning off shadows, etc.  But I think I have a better one, a 3-line solution so to speak<br />
Go into your code, mine is in my jquery-ui-personalized-1.6rc6.js file&#8230; Also could be in ui.dialog.js etc.</p>
<p>Inside the code (mine is line 4218) after this function</p>
<pre class="brush: plain;">

$.widget(&quot;ui.dialog&quot;, {

_init: function() {
</pre>
<p>add this function</p>
<pre class="brush: plain;">

refresh: function() {
this._refreshShadow(1);
},
</pre>
<p>Then from within your code you can call something like this&#8230;</p>
<pre class="brush: plain;">$(&quot;#dialogbox&quot;).dialog(&quot;refresh&quot;);</pre>
<p>Check for updates, I may write a drop-in style patch so the coding isn&#8217;t necessary.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/03/01/jquery-dialog-shadow-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
