<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>jdavid.net</title>
	<atom:link href="http://jdavid.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://jdavid.net</link>
	<description>I moved west from Milwaukee, WI to pursue a life devoted to making technology better.  Today I am searching for my next co-founder or early startup to work with.  I started Babelfin at startweekend.</description>
	<lastBuildDate>Sun, 15 Aug 2010 00:21:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.3" -->
	<copyright>Copyright &#xA9; jdavid.net 2010 </copyright>
	<managingEditor>jdavid.net@gmail.com (jdavid.net)</managingEditor>
	<webMaster>jdavid.net@gmail.com (jdavid.net)</webMaster>
	<category>posts</category>
	<image>
		<url>http://jdavid.net/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>jdavid.net</title>
		<link>http://jdavid.net</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Just another WordPress weblog</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author>jdavid.net</itunes:author>
	<itunes:owner>
		<itunes:name>jdavid.net</itunes:name>
		<itunes:email>jdavid.net@gmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://jdavid.net/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Re-thinking CSS, Can Javascript replace CSS or Simplify it?</title>
		<link>http://jdavid.net/?p=72</link>
		<comments>http://jdavid.net/?p=72#comments</comments>
		<pubDate>Sun, 15 Aug 2010 00:12:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=72</guid>
		<description><![CDATA[Today Javascript is everywhere.  When the web was born you might have a browser that could support it, but so many browsers do, that it&#8217;s almost as common as HTML.  I think it&#8217;s been nearly a decade since I have developed a page without any javascript on it.  We use Javascript for core site menues, [...]]]></description>
			<content:encoded><![CDATA[<div>Today Javascript is everywhere.  When the web was born you might have a browser that could support it, but so many browsers do, that it&#8217;s almost as common as HTML.  I think it&#8217;s been nearly a decade since I have developed a page without any javascript on it.  We use Javascript for core site menues, for google analytics for so much on the site, that if your browser didn&#8217;t support Javascript well you might as well not even browse the web.  Even our phones support Javascript, and if that is not enough, 500 million people a month use sites like Facebook that use Javascript to load content dynamicaly like a desktop application.</div>
<p></p>
<div>So now that we have established that Javascript is everywhere you want to be, and just about everyone has it enabled, you probably can say that it&#8217;s at least as common as CSS.</div>
<p><br/></p>
<div >One of the core problems with CSS is how static it is, and how hard it is to get consistaint results between browsers, where as with Javascript all browser support the core of Javascript extremely consitaintly.  Infact the largest difference between browsers is found in the DOM ( Document Object Model ) for which CSS must conform to.  However with Javascript frameworks have been built to extend Javascript just enough to even create consitiansy at the Document Object Model.</div>
<p><br/></p>
<div >To this point, it might make sense to actually describe page layout via a proper Javascript framework that can describe page layout consistiantly across browsers.  If this could be accomplished, then, we as web designers might finally be free from multi browser design.  I now for my self that designing for IE5, or IE6 can eat 80% of your dev time.  What cool sites could you design if you were 2-5x more productive?</div>
<p><br/></p>
<div >Now, I am not saying that CSS will go away, but I am saying that for a number of design choices, Javascript might be the tool of choice, as it&#8217;s functionality could grow with the framework rather than at the rate of consistian browser implementation.</div>
<p><br/></p>
<div >Consider implementing rounded corners via javascript, in FF, Opera, and Chrome you could use a CSS property, however in IE, you could programaticly solve the problem.  Consider box model consitiancy between the browsers, the framework could addapt quickly.</div>
<p><br/></p>
<div >What about getting more lateral?  CSS can do alot, but what if you wanted to present data in a parrallaxed plane? <a href="http://webdev.stephband.info/parallax.html">http://webdev.stephband.info/parallax.html</a> These UX standards can be brought in easily with Javascript, and not CSS.</div>
<p><br/></p>
<div >Maybe I am stating the obvious, but</div>
<p><br/></p>
<div>Javascript is the new default design language on the web.</div>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=72</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Storage, localStorage, WebDatabase, indexedDB.</title>
		<link>http://jdavid.net/?p=69</link>
		<comments>http://jdavid.net/?p=69#comments</comments>
		<pubDate>Fri, 30 Jul 2010 22:01:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Babelfin]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[LocalStorage]]></category>
		<category><![CDATA[WebDatabase.]]></category>
		<category><![CDATA[WebSQL]]></category>
		<category><![CDATA[WebStorage]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=69</guid>
		<description><![CDATA[For Babelfin, a browser plugin, I have been looking for ways to elegantly store data in the browser for each of the translations of a given word or short phrase.  The goal would be to use a data pattern that was easily portable to the two most popular extensible browsers &#8211; Chrome and Firefox.  I [...]]]></description>
			<content:encoded><![CDATA[<div>For Babelfin, a browser plugin, I have been looking for ways to elegantly store data in the browser for each of the translations of a given word or short phrase.  The goal would be to use a data pattern that was easily portable to the two most popular extensible browsers &#8211; Chrome and Firefox.  I decided to start with Chrome durring startup weekend because it has a newer extension model and has simplified a lot of how extentions work.  Firefox still uses xul which is an odd combination of XML and Javascript, where as Chrome uses native HTML and Javascript with a few additional libraries to work with.</p>
<p>So for Babelfin, the goal would be to list a set of phrases that one would want to learn, or that the user might enter, and then the plugin would pre-fetch the translation and store it in the language that the user wants to learn.  If the phrase list is short, using a key-value store like localStorage would make sense, as almost every browser supports it, including IE8, and even though there are small differences, the data model and pattern would still work. However for anything other than the minimal product, a larger data set will be required for more advanced users.  And as a result it would be nice to have a query-able data set.</p>
<p>Twice google has tried to solve this problem, once with Google Gears, and again with Web SQL Database, which works in Chrome, Opera, and Safari, but does not work in Firefox, or IE.  Microsoft and Mozilla do not want to add SQL as a language to browser side logic, and I happen to agree.</p>
<p>The result is IndexedDB, a javascript data storage model in the front end, however,  IndexedDB is not quite CouchDB or MongoDB, but rather a javascript level abstraction of storage data.  Several Mozilla folks seem to think that CouchDB might be built on top of it, and so there is BrowserCouch which will try to do just that.  But, where is the BrowserMongo ( Maybe we can call it Mango, as a Norwegian, told me that Mongo means retard in Norwegian, oops. )</p>
<p>So in any case there is still a gap for Browser Side Storage that is query-able and indexed.  I suppose something could be built on top of localStorage, but it would be a hack until the browsers fully support it.</p>
<p>I am trying to find out how much work it would be to put a stub wrapper on top of Webkit’s Web SQL Database layer and have it look like IndexedDB since that seems to be what Google will support eventually, once they figure out how to thread it, but it would be nice to have something now. <img src='http://jdavid.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </div>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=69</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dinner Parties &#8211; Mad Scientist Edition</title>
		<link>http://jdavid.net/?p=64</link>
		<comments>http://jdavid.net/?p=64#comments</comments>
		<pubDate>Mon, 26 Jul 2010 21:10:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=64</guid>
		<description><![CDATA[If you have ever thrown a dinner party,  you might know how much work they are, but you also know how rewarding they are as a way to share time with friends, and to eat something good. In San Francisco, I started a new weekly dinner party at my apartment in SoMa, and ever week [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever thrown a dinner party,  you might know how much work they are, but you also know how rewarding they are as a way to share time with friends, and to eat something good.</p>
<p>In San Francisco, I started a new weekly dinner party at my apartment in SoMa, and ever week we try to come up with a theme.  Sometimes that theme is easy to pull off and other times it&#8217;s a bit more of a hassle than it&#8217;s worth.</p>
<p>This week I have been trying to pull stuff together for a mad scientist theme, and in a town like SF you would think there are ton&#8217;s of lab supply stores.  However, google has failed to easily find me any.  Instead every biotech and chemtech startup seems to appear on the list rather than cool stores like <a href="http://www.sciplus.com/">&#8216;American Science and Surplus&#8217;</a> would back in milwaukee and chicago.</p>
<p>So for posterity sake I thought I would pass the ball forwards and document a few sites of interest to help prepare for the next &#8216;Mad Scientist Themed-Dinner party&#8217;.</p>
<p><strong>Links of aspiration and inspiration</strong></p>
<ul>
<li><a href="http://drhorrible.com/">&#8216;Dr. Horrible&#8217;s Sing Along Blog&#8217;</a></li>
<li><a href="http://worlddominationtoys.com/drsteel/about/about.htm">&#8216;Dr. Steel&#8217;s&#8217; Search for a utopian playland</a></li>
<li><a href="http://muppet.wikia.com/wiki/Beaker">&#8216;Beaker&#8217; from the </a><span style="color: #551a8b;"><span style="text-decoration: underline;">Muppet</span></span></li>
<li><a href="http://amzn.to/aQvDDp">&#8216;The City of Lost Children&#8217;</a></li>
<li><a href="http://amzn.to/aRwWSL">&#8216;City of Ember&#8217; by Tim Robbins</a></li>
</ul>
<p><strong>Online Stores for beakers, flasks, funnels, petri dishes and test-tubes</strong></p>
<ul>
<li><a href="http://www.sciencegear.com/">Science Gear</a></li>
<li><a href="http://amzn.to/cMDt89">Amazon &#8211; Pyrex Griffin Beakers</a></li>
<li><a href="http://www.medixcorp.com/catalog/detail.asp?Item_id=2674">Medixcorp &#8211; *requires IE</a></li>
<li><a href="http://www.acmevial.com/products.htm#products">Acme Vial and Glass Co.</a></li>
<li><a href="http://www.sciplus.com/category.cfm/category/42">American Science and Surplus</a></li>
</ul>
<p><strong>Some Geek Chic-ery</strong></p>
<ul>
<li><strong><a href="http://www.weddingchicks.com/wedding-chicks/bridal-fashion/47509/nerdy-chic-butterfly-wedding-ideas/">Testtubes + Wedding = Way COOL!</a></strong></li>
</ul>
<p><a href="http://drhorrible.com/"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A few XPath links to make YQL and HTML scraping easier.</title>
		<link>http://jdavid.net/?p=62</link>
		<comments>http://jdavid.net/?p=62#comments</comments>
		<pubDate>Wed, 26 May 2010 16:38:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[parsing]]></category>
		<category><![CDATA[xpath]]></category>
		<category><![CDATA[yql]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=62</guid>
		<description><![CDATA[quick and basic http://www.w3schools.com/XPath/xpath_syntax.asp great resource for detailed string functions http://oreilly.com/catalog/xmlnut/chapter/ch09.html quick list of all of the functions in xpath http://www.w3schools.com/xpath/xpath_functions.asp great example of more sophisticated function selectors http://www.eggheadcafe.com/articles/20030627d.asp multiple attribute http://www.coderanch.com/t/128329/XML/XPATH-selection-based-multiple-attribute fun with concat http://blogs.sun.com/rajeshthekkadath/entry/xpath_searching_for_a_text http://www.xml.com/pub/a/2002/08/14/xpath_tips.html?page=3]]></description>
			<content:encoded><![CDATA[<p>quick and basic<br />
<a href="http://www.w3schools.com/XPath/xpath_syntax.asp"> http://www.w3schools.com/XPath/xpath_syntax.asp</a></p>
<p>great resource for detailed string functions<br />
<a href="http://oreilly.com/catalog/xmlnut/chapter/ch09.html"> http://oreilly.com/catalog/xmlnut/chapter/ch09.html</a></p>
<p>quick list of all of the functions in xpath<br />
<a href="http://www.w3schools.com/xpath/xpath_functions.asp"> http://www.w3schools.com/xpath/xpath_functions.asp</a></p>
<p>great example of more sophisticated function selectors<br />
<a href="http://www.eggheadcafe.com/articles/20030627d.asp"> http://www.eggheadcafe.com/articles/20030627d.asp</a></p>
<p>multiple attribute<br />
<a href="http://www.coderanch.com/t/128329/XML/XPATH-selection-based-multiple-attribute"> http://www.coderanch.com/t/128329/XML/XPATH-selection-based-multiple-attribute</a></p>
<p>fun with concat<br />
<a href="http://blogs.sun.com/rajeshthekkadath/entry/xpath_searching_for_a_text"> http://blogs.sun.com/rajeshthekkadath/entry/xpath_searching_for_a_text</a></p>
<p><a href="http://www.xml.com/pub/a/2002/08/14/xpath_tips.html?page=3">http://www.xml.com/pub/a/2002/08/14/xpath_tips.html?page=3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unity3d needs a PHPBB3 Theme Contractor</title>
		<link>http://jdavid.net/?p=61</link>
		<comments>http://jdavid.net/?p=61#comments</comments>
		<pubDate>Wed, 14 Apr 2010 21:29:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[contracts]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[unity3d]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=61</guid>
		<description><![CDATA[I thought, I would post this here, maybe someone will respond or google will link this. Length of project: 1-2 weeks Rate: DOE Requirements: • HTML, XHTML • CSS2.1 and CSS3 • Experience with Photoshop or Illustrator ( or equivalent ) • Experience with Theme-ing wordpress, phpbb3, or mediawiki Nice to Haves • PHP5.2 • [...]]]></description>
			<content:encoded><![CDATA[<p>I thought, I would post this here, maybe someone will respond or google will link this.</p>
<p>Length of project: 1-2 weeks<br />
Rate: DOE</p>
<p>Requirements:<br />
•	HTML, XHTML<br />
•	CSS2.1 and CSS3<br />
•	Experience with Photoshop or Illustrator ( or equivalent )<br />
•	Experience with Theme-ing wordpress, phpbb3, or mediawiki</p>
<p>Nice to Haves<br />
•	PHP5.2<br />
•	Javascript</p>
<p>This is a contract position, and the perfect candidate would have skinned at least a few to a few dozen websites, and is demonstrable.   This is a short project, but we have a number of projects that come up.</p>
<p>About Unity Technologies<br />
Unity Technologies is revolutionizing the game industry and was named one of the top five game companies of 2009 by Gamasutra after just four years on the market. Today, Unity Technologies has more than 120,000 registered users worldwide – including leading companies like Coca-Cola, Electronic Arts, Disney, LEGO, Mint.com, NASA and UPS, large and small studios, independent professionals, students and hobbyists – using the Unity platform to develop high-quality interactive 3D content for the web, mobile, and console. In addition to Web, PC, Mac, Wii™, Xbox 360, iPhone and iPad deployment, Unity Technologies has announced upcoming support for PS3 and Android. Unity Technologies is one of the fastest growing software companies and is aggressively innovating to expand usability, power and platform reach so that it can deliver on its vision of democratizing interactive 3D technology. Unity Technologies is headquartered in San Francisco and has development offices worldwide. For more information, visit unity3d.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=61</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Who could buy Palm?</title>
		<link>http://jdavid.net/?p=59</link>
		<comments>http://jdavid.net/?p=59#comments</comments>
		<pubDate>Mon, 12 Apr 2010 16:30:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=59</guid>
		<description><![CDATA[a list of companies that could buy palm Dell, Sony, HTC, etc.. &#8212; Have mobile devices, but this could give them an edge. ASUS, Abit, etc&#8230;. &#8211;  All make hardware and could use a nice mobile platform. Amazon, Barns and Noble &#8212; both make eReaders that could be decimated by the iPad, Palm&#8217;s Web OS [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">a list of companies that could buy palm</div>
<div id="_mcePaste">
<ul>
<li><strong>Dell, Sony, HTC, etc..</strong> &#8212; Have mobile devices, but this could give them an edge.</li>
<li><strong>ASUS, Abit, etc&#8230;. </strong>&#8211;  All make hardware and could use a nice mobile platform.</li>
<li><strong>Amazon, Barns and Noble</strong> &#8212; both make eReaders that could be decimated by the iPad, Palm&#8217;s Web OS could give them the engineering talent along side a great OS to create a new Mobile media device.</li>
<li><strong>nVidia</strong> &#8211;  if nVidia had a platform like WebOS, they could ensure a rockstar platform for their mobile chips.</li>
<li><strong>AMD</strong> &#8211;  I don&#8217;t think AMD has the cash to buy palm.</li>
<li><strong>IBM</strong> &#8211;  Could be interesting, IBM has cash, and they don&#8217;t have a mobile plan.  This may be reason for IBM to go after a mobile leader.</li>
<li><strong>Oracle</strong> &#8211;  Since Oracle has acquired Sun, MySQL, and &#8230;. OpenOffice by default.  It might be interesting to see what this Tech Giant could do in the Mobile Enterprise Space.</li>
<li><strong>Google</strong> &#8211; Could buy Palm to strengthen it&#8217;s position against Apple, and could port Palm&#8217;s intellectual property to the Android OS.</li>
<li><strong>Nintendo</strong> &#8211;  Hmmm, this could be interesting, as I think the companies would culturally work well together.</li>
<li><strong>Microsoft</strong> &#8211;  Yeah, WM7 +++   MS could somehow make windows mobile better, or better arm it&#8217;s lawyers against Apple.  Can you imagine the MS Palm Courier?</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=59</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Large Binary Numbers in Javascript</title>
		<link>http://jdavid.net/?p=52</link>
		<comments>http://jdavid.net/?p=52#comments</comments>
		<pubDate>Sun, 21 Mar 2010 21:49:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=52</guid>
		<description><![CDATA[Have you ever wondered what the largest number is?  At one point it was a googolplex, but unless you write a custom class to deal with really large numbers, your dev environment will never count to a googolplex. For http://loc.is I am reworking a geohash encoding algorithm today, and I wanted to see what Javascript could handle.  Strongly typed [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wondered what the largest number is?  At one point it was a googolplex, but unless you write a custom class to deal with really large numbers, your dev environment will never count to a googolplex.</p>
<p>For http://loc.is I am reworking a geohash encoding algorithm today, and I wanted to see what Javascript could handle.  Strongly typed languages like Java have known upper limits, but languages like javascript are a bit more mysterious, so the only way to know is to find out.  I wrote this function to test it, and I ran it in the firebug console on a random webpage ( firebug won&#8217;t work unless the DOM is ready ).</p>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"><span style="line-height: 19px; white-space: normal;"><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: small;"><span style="line-height: 18px; white-space: pre;">
</span></span></span></span></pre>
<pre style="padding-left: 30px;"><span style="color: #339966;">for( i = 0 ; i &lt; 500 ; i++){</span></pre>
<pre style="padding-left: 60px;"><span style="color: #339966;">var value = Math.pow(2,i) +1;</span></pre>
<pre style="padding-left: 60px;"><span style="color: #339966;">console.log (   i + "\n" +</span></pre>
<pre style="padding-left: 180px;"><span style="color: #339966;">value + "\n" +</span></pre>
<pre style="padding-left: 180px;"><span style="color: #339966;">value.toString(2));</span></pre>
<pre style="padding-left: 30px;"><span style="color: #339966;">}</span></pre>
<p>The output finally looks like this, and reveals that <span style="color: #800080;"><strong>2^52</strong> </span>is the largest number you can <span style="color: #800080;"><strong>add 1</strong></span> to <em>and still represent it as an integer. </em>Any larger and javascript will just use it as a float, and you will not have a sufficient number of bits to represent it.  I wonder if this is the same in all browser/ os combination pairs?</p>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">51</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">2251799813685249</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">1000000000000000000000000000000000000000000000000001</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;"><br />
</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span style="color: #800080;"> </span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">52 </span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">4503599627370497</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">10000000000000000000000000000000000000000000000000001</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;"><br />
</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span style="color: #800080;"> </span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">53</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">9007199254740992</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">100000000000000000000000000000000000000000000000000000</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;"><br />
</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">54</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">18014398509481984</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;">1000000000000000000000000000000000000000000000000000000</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span class="objectBox objectBox-text "><span style="color: #800080;"><br />
</span></span></div>
<div class="logRow logRow-log" style="padding-left: 30px;"><span style="color: #800080;"> </span></div>
<div class="logRow logRow-log"><span style="color: #800080;"><span style="color: #000000;">So in this circumstance, javascript seems to have 54 bits of integer accuracy, a few short of a LONG 64 bit int, or IEEE 80 bit notation.</span></span></div>
<div class="logRow logRow-log"><span style="color: #800080;"><span style="color: #000000;"><br />
</span></span></div>
<div class="logRow logRow-log"><span style="color: #800080;"><span style="color: #000000;"><br />
</span></span></div>
<div class="logRow logRow-log"><span style="color: #800080;"><span style="color: #000000;">Test it yourself, and let me know.</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=52</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New jEdit Syntax Edit Modes for Perl+HTML &amp; XML+CDATA + HTML</title>
		<link>http://jdavid.net/?p=47</link>
		<comments>http://jdavid.net/?p=47#comments</comments>
		<pubDate>Fri, 05 Mar 2010 23:12:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=47</guid>
		<description><![CDATA[I love my syntax highlighting in jEdit, and why shouldn&#8217;t I?  Good Syntax Highlighting helps you catch code errors early.  So about 2 years ago, I created a custom jEdit &#8220;Edit Mode&#8221; so that HTML buried in your XML CDATA tags would be Syntax Highlighted.  Here is the original post on Google Groups ( http://groups.google.com/group/opensocial-api/browse_thread/thread/12e250246ab64054/343c858695e8eb12 [...]]]></description>
			<content:encoded><![CDATA[<p>I love my syntax highlighting in jEdit, and why shouldn&#8217;t I?  Good Syntax Highlighting helps you catch code errors early.  So about 2 years ago, I created a custom jEdit &#8220;Edit Mode&#8221; so that HTML buried in your XML CDATA tags would be Syntax Highlighted.  Here is the original post on Google Groups ( http://groups.google.com/group/opensocial-api/browse_thread/thread/12e250246ab64054/343c858695e8eb12 ).</p>
<p>Here is the custom Edit Mode for XML-&gt;CDATA-&gt;HTML <a title="jEdit XML - CDATA + HTML mode." href="http://jdavid.net/attachments/c-xml.xml" target="_blank">c-xml.xml</a></p>
<p>It uses a simple trick to identify the CDATA with HTML with a special CDATA tag like the one below</p>
<pre><span style="color: #339966;">&lt;![CDATA[&lt;!--HTML--&gt;  </span></pre>
<pre><span style="color: #339966;">&lt;html&gt;
&lt;!-- friendly neighborhood web page --&gt;
&lt;/html&gt;</span></pre>
<pre><span style="color: #339966;">]]&gt;</span></pre>
<p>The perl version is here <a title="jEdit Perl + HTML edit mode" href="http://jdavid.net/attachments/perl-html.xml" target="_blank">perl-html.xml</a></p>
<p>So for the perl version i use the structure of Perl&#8217;s HEREDOCS and use the following java capable regex</p>
<pre>&lt;&lt;\p{Space}*(['"])([\p{Space}\p{Alnum}]*)\1;?\s*&lt;\!--.*HTML.*--&gt;</pre>
<p>Which will HTML Syntax highlight any perl HEREDOC as HTML if it has &lt;!&#8211; HTML &#8211;&gt; in it so the following should syntax highlight.  There is however, one bug.  If your HEREDOC is not well formed, meaning you have an unclosed tag css object, or  javascript call, then the syntax highlighting gets stuck.  Maybe I will figure out how to make this work for non well-formed HTML.  any ideas?</p>
<pre><span style="color: #800080;">print</span> <span style="color: #339966;">&lt;&lt;"EOT"; &lt;!-- HTML --&gt;</span></pre>
<pre><span style="color: #339966;">&lt;html&gt;
&lt;!-- friendly neighborhood web page --&gt;
&lt;/html&gt;</span></pre>
<pre><span style="color: #339966;">EOT</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=47</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life changes you, things learned.</title>
		<link>http://jdavid.net/?p=44</link>
		<comments>http://jdavid.net/?p=44#comments</comments>
		<pubDate>Sun, 28 Feb 2010 22:45:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=44</guid>
		<description><![CDATA[It&#8217;s almost been 2 years since i moved to california and its been a rough adventurous ride, and I don&#8217;t regret a moment of it. However, when I look back it&#8217;s odd to see just how different I am today. Since sundays are for reflection, here are a few bullet points. • living in milwaukee [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost been 2 years since i moved to california and its been a rough adventurous ride, and I don&#8217;t regret a moment of it.  However, when I look back it&#8217;s odd to see just how different I am today.</p>
<p>Since sundays are for reflection, here are a few bullet points.</p>
<ul>
<li>•	living in milwaukee i felt very connected to the community, i knew so many people by name that everywhere i went was like an episode of cheers.</li>
<li>•	i used to drink and eat a lot more, today i eat 2/3rds to 1/2 as much food.  it&#8217;s so warm in california you really don&#8217;t need much.</li>
<li>•	winter seems like someplace you visit, rather than live through.</li>
<li>•	i used to feel tech deprived, now it&#8217;s easily accessible and to some degree less exotic</li>
<li>•	i understand better how some ideas are good ones and others are a waste of time</li>
<li>•	i now know i own too much stuff, too much ownership is a burden; you end up consuming more resources just keeping it and not appreciating it.</li>
<li>•	women like geeks and entrepreneurs here, i feel sexy here</li>
<li>•	hackathons used to be parties, now they seem like work</li>
<li>•	i miss bucketworks, but….. have found noisebridge, and techshop, but don&#8217;t go enough.</li>
<li>•	owning cars seem silly, but i still love my 350z, but now i don&#8217;t have a venue to enjoy it.  i may just sell it and rent a sports car for a day, even at 500 dollars every few months, it&#8217;s cheaper, than paying for insurance and parking.</li>
<li>•	in milwaukee, geeks were most easily found at goth industrial clubs, but out here, they are everywhere.</li>
<li>•	you live in a city, not in an apartment, neighborhoods are probably more important than your home.</li>
<li>•	being able to bike everywhere RULES.</li>
<li>•	public transit is better than no transit, but it still sucks, its a tragedy of the commons.</li>
<li>•	some graffiti is good, some is bad.</li>
<li>•	political parties are not relevant.</li>
<li>•	some people are so angry about somethings, that they will never listen about other things</li>
<li>•	what its like to have a lot of friends that are female, what it&#8217;s like to have a female room mate; the secret is it&#8217;s really not that different, except your guy friends probably are more likely to drink your beer and watch the same tav shows.</li>
<li>•	on average women think about sex way more than I would have thought 2 years ago.</li>
<li>•	women may think differently, but they think about the same things.  ( ok, maybe not all of the same things, or maybe just not at the same level of detail )</li>
<li>•	the goal of any good conversation is to derive respect of and for someone regardless of weather you agree, find enjoyment in their fellowship, however not all people are respectable, and so don&#8217;t spend your time with them</li>
<li>•	no matter how much you may want others to be independent and self capable, some people just want to follow, or lead.  people may not be built for an egalitarian maximum.</li>
<li>•	any good piece of art, creates a deeper connection between people.  it should make good conversation easy.  ( see above )</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=44</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improving PHPBB2 and MySQL performance</title>
		<link>http://jdavid.net/?p=40</link>
		<comments>http://jdavid.net/?p=40#comments</comments>
		<pubDate>Fri, 19 Feb 2010 20:31:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdavid.net/?p=40</guid>
		<description><![CDATA[For the last few days I have been trying to track down why Unity’s PHPBB 2 Forum (http://forum.unity3d.com) was so slow. Page rendering times were taking between 2 and 10 seconds and for me this was just unacceptable. A proper website should be able to render a majority of the page in less than 250ms, [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few days I have been trying to track down why Unity’s PHPBB 2 Forum (http://forum.unity3d.com) was so slow.  Page rendering times were taking between 2 and 10 seconds and for me this was just unacceptable.</p>
<p>A proper website should be able to render a majority of the page in less than 250ms, and delivering most of the content in less than 50ms is ideal.  Sites like Amazon, Yahoo, and Google have studied the effects of response time vs. features, and have found that response time is often times more important.  Greg Linden pulls together a few sources on the topic in his blog.</p>
<p>So, 10 seconds was just unacceptable, and I was bound to find a solution.  I started with the low hanging fruit, and installed PHP’s APC cache which is an OpCode Cache that stores compiled versions of the PHP code to reuse on the next request.  There is evidence out there to suggest that not only do opcode caches reduce CPU requirements, but they also reduce your memory load.  I saw a few sites that claim about a 3-4x performance increase on the CPU and about a 25% reduction in memory usage.</p>
<p>The next step, as the forums were still slow, was to start looking into our MySQL usage.  Did the server have enough memory, were the MySQL caches and buffers large enough, or were searches and queries getting pruned to make room for more queries?  After using MySQL’s GUI tools through an SSH Tunnel I was able to see that the server had 64MB of query cache, and only 90% of it was being used, so the caches were good.</p>
<p>Next was to look for slow queries, however a slow query or two would be hard to fix considering PHPBB was building the queries as part of the application and should have been tested in advance.  If a slow query was the problem, it probably was not part of the application design, but rather an indication of something else that was going wrong.  We did notice a few slow queries, but nothing ridiculous.  However, what we did notice was that a number of queries were running slow because other ones where holding a lock for a long period. Hmmm?</p>
<p>Next we started looking at the problem from a system level using apps like ‘top’, ‘dstat’, ‘mytop’, etc…  From here we found that disk IO was over working.  Hmmm… but why?</p>
<p>I later found out that we were serving large files in our forum, however it did not seem like our forum was being used as a hot linking service, and I would suspect that PHPBB has some defense from that, but going forwards this is a concern of mine.</p>
<p>I finally found a post on the web talking about MySQL CPU spikes, and it was related to a corrupted table index. http://forums.fedoraforum.org/showthread.php?t=232008</p>
<p>After reading the forum for a bit, I thought, well there seems to be a few low risk commands I can run to look into our table integrity.  Here is the full command list http://dev.mysql.com/doc/refman/5.0/en/mysqlcheck.html</p>
<p>First I ran</p>
<pre><span style="color: #339966;">mysqlcheck -A -F -u [username] –p</span></pre>
<p>This reported several table closed improperly errors, and took about 2-6 mins to run without taking down the forums.</p>
<p>Next I ran<span style="color: #339966;"> </span></p>
<pre><span style="color: #339966;">mysqlcheck -A -q -r -u [username] –p</span></pre>
<p>This is basically the fastest repair option, and would only fix minor corruption.  It took about 5-10 min to run.</p>
<p>The result was that our MySQL usage dropped from 100-300% to 3-6% and page response times being about 200-500ms.  I have a few other things I would like to try, from using our CDN with the forums to DB optimizations, to other server upgrades.</p>
<p>Over the weekend, I think I am going to run</p>
<pre><span style="color: #339966;">mysqlcheck --all-databases  --optimize -u [username] –p</span></pre>
<p>Which should be more thorough, but might take an hour.  This will defrag the table and resolve some indexing errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdavid.net/?feed=rss2&amp;p=40</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->