tag:blogger.com,1999:blog-199693882024-02-03T16:00:29.741+08:00Ham is a Geek<i>" I would love to change the world,<br> but they won't give me the source code "</i><br>-- Unknown GeekAnonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.comBlogger233125tag:blogger.com,1999:blog-19969388.post-45280792382492650402014-07-12T23:20:00.003+08:002014-07-12T23:20:57.884+08:00Music #1 : Literally No Words : Yiruma's River Flows in YouI close my eyes and imagine a downpour .... the water flowing into me forming a river ....<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/7maJOI3QMu0?feature=player_embedded' frameborder='0'></iframe></div>
<br />Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-68517255293242536372013-06-11T19:35:00.001+08:002013-06-11T19:35:24.366+08:00Mac "Pron"Surely, only geeks, hardware enthusiasts and apple fan boys get aroused when they see a Mac stripped bare like so ...<br />
<br />
<a href="http://www.apple.com/mac-pro/">http://www.apple.com/mac-pro/</a><br />
<br />
I know I am ;-)<br />
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-37953933452339432772010-03-10T15:42:00.001+08:002010-03-10T15:44:22.779+08:00Ext JS 3.2 beta released to the publicExtJS 3.2 beta is out. In addition to over 180 bug fixes, this new release includes<div><br />
</div><div>1) Multi sorting and filtering on Data Stores</div><div><br />
</div><div>Multiple filtering has been possible for quite some time thanks to the <a href="http://www.extjs.com/forum/showthread.php?t=14503">GridFilter Plugin</a> but multiple sorting is new. The <a href="http://www.extjs.com/deploy/ext-3.2-beta/examples/grid/multiple-sorting.html">demo</a> shows the use of a Toolbar Droppable plugin too. Nice !</div><div><br />
</div><div>2) Animated DataView transitions</div><div><br />
</div><div>Think better looking product catalogs ;-)</div><div><br />
</div><div>3) Composite Fields</div><div><br />
</div><div>I've always wondered how to get the datefield and the timefield components in one line.</div><div><br />
</div><div>4) Slider and Slider Field</div><div><br />
</div><div>Multiple handles in one slide bar and the ability to use it as an alternative input field to say a numberfield.</div><div><br />
</div><div>5) Toolbar plugins</div><div><br />
</div><div>We saw the droppable toolbar plugin in the sorting demo. Seems you can reorder toolbar items now as well.</div><div><br />
</div><div>6) New Theme</div><div><br />
</div><div>A new theme has been created that makes your app compliant with the Section 508 of the Disabilities Act.</div><div><br />
</div><div>7) Unit Tests and lots of it.</div><div><br />
</div><div>Almost 300 test cases. Wow !</div><div><br />
</div><div>Grab the beta from <a href="http://www.extjs.com/products/extjs/download.php?dl=extjs32b">Extjs.com</a></div>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-70371538540469861742010-01-08T15:00:00.000+08:002010-01-08T15:00:47.178+08:00Google Chrome UpdateGoogle must have mind readers in the Google Chrome Team because the latest update I got now supports Flash and Synchronization at least on my OpenSuse 11.1 desktop.<br />
<br />
On top of that, my desktop seems to work much faster when using Chrome than with Firefox.<br />
<br />
I'm very close to making Google Chrome my default web browser.Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-61655097831697066732009-12-09T09:28:00.001+08:002009-12-09T09:29:40.276+08:00Google Chrome BETA for Linux is OUT .... Finally !!!The first thing I did after installing it on my linux desktop was to uninstall Google Chrome in my Windows VM.<br />
<br />
I'm not sure why it took so long but if my experience on occasionally using it inside a windows VM is any indication, it's worth the wait.<br />
<br />
Coinciding with the release of the Linux and Mac versions of the browser is the opening of the <a href="http://lifehacker.com/5421651/chrome-extensions-gallery-officially-opens">extensions gallery</a> (think Firefox Add-Ons).<br />
<br />
I'm still looking but I haven't found anything like Mozilla Weave or Opera Sync yet.<br />
<br />
Here's coverage from some of my favorite sites around the web :<br />
<br />
<a href="http://newsinfo.inquirer.net/breakingnews/infotech/view/20091209-240974/Google-releases-Chrome-browser-for-Macintosh-computers">Inquirer.net</a><br />
<a href="http://apple.slashdot.org/story/09/12/08/177232/Google-Upgrades-Chrome-To-Beta-For-OS-X-Linux?from=rss&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+Slashdot/slashdot+(Slashdot)&utm_content=Google+Reader">Slashdot</a><br />
<a href="http://lifehacker.com/5421633/google-chrome-for-mac-and-linux-finally-hits-beta-very-fast-pretty-stable">Lifehacker</a>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-19656494283841937162009-12-06T16:22:00.002+08:002009-12-06T16:22:56.546+08:00Karmic Koala, an epic fail ?This <a href="http://www.tomshardware.com/reviews/ubuntu-karmic-koala,2484-13.html">review</a> from AnandTech is probably one of the few reviews I've read that, to put it mildly, isn't all praises for Ubuntu.<br />
<br />
I have always thought that it was just me that maybe I was too much of a geek to like Ubuntu but when I installed it for family members and they kept clamoring for me to bring back windows, I knew there was something wrong with the hype.Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-23475473811090441142009-12-06T00:32:00.000+08:002009-12-06T00:32:31.268+08:00Of Web Charts and Public DNS<b>Google Public DNS</b><br />
<br />
I've been using <a href="http://www.opendns.com/">OpenDNS</a> for quite some time now on the recommendation of a friend when I was complaining about slow name resolution on my ISP. That was about a year or 2 ago. Today Google announces <a href="http://code.google.com/speed/public-dns/">it's own free public DNS</a> service. I'm wondering which is better of the two and I may give it a try over the holidays. If you're wondering what this new service means for OpenDNS, you can read up on OpenDNS' CEO's reaction in a <a href="http://blog.opendns.com/2009/12/03/opendns-google-dns/">blog post</a>.<br />
<br />
<b>HighCharts</b><br />
<br />
There's a new kid on the blog with regards to charting on the web. As per the <a href="http://www.ajaxian.com/">Ajaxian, </a>this new javascript library is called <a href="http://highcharts.com/">HighCharts.</a> Unlike, OpenFlash Charts and YUI Charts, this library boasts of generating charts from pure Javascript, no flash ! Looking forward to giving this baby a go one of these days.Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-52159159795338659582009-06-05T15:26:00.004+08:002009-06-05T15:46:19.621+08:00A Naked T61My laptop refused to boot early this week. It beeped and printed "Fan Error" on screen. The laptop has been with me for almost two years and after seeing the error it occurred to me that I have never opened it, not even once, and now I have to.<br /><br />One thing I love about Thinkpads is how well documented they are. I was immediately able to obtain the hardware service manual from Lenovo's website and got to work stripping the bezels, keyboard and palm rest to get to the dirty fan.<br /><br />For the voyeuristic pleasure of my fellow geeks, I took some pics of my naked T61, after I cleaned it up, of course. Enjoy !!<br /><br /><a href="http://www.flickr.com/photos/hgcphoenix/3597628714/" title="PIC_0012 by osirishinzen, on Flickr"><img src="http://farm4.static.flickr.com/3381/3597628714_825ddd8645_m.jpg" alt="PIC_0012" width="240" height="180" /></a><br /><br /><a href="http://www.flickr.com/photos/hgcphoenix/3597627588/" title="PIC_0001 by osirishinzen, on Flickr"><img src="http://farm4.static.flickr.com/3647/3597627588_ce84130101_m.jpg" alt="PIC_0001" width="240" height="180" /></a><br /><br /><a href="http://www.flickr.com/photos/hgcphoenix/3597635054/" title="PIC_0002 by osirishinzen, on Flickr"><img src="http://farm4.static.flickr.com/3410/3597635054_5484318728_m.jpg" alt="PIC_0002" width="240" height="180" /></a><br /><br /><a href="http://www.flickr.com/photos/hgcphoenix/3597628066/" title="PIC_0013 by osirishinzen, on Flickr"><img src="http://farm3.static.flickr.com/2442/3597628066_b36411eceb_m.jpg" alt="PIC_0013" width="240" height="180" /></a>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com1tag:blogger.com,1999:blog-19969388.post-47052556049653631532009-05-30T22:31:00.002+08:002009-05-30T22:35:43.773+08:00ExtJS Tip : Dynamically change a button iconThis works for ExtJS 2 or higher. Oddly, there is no method in the button class that allows you to change the icon dynamically. This is useful if you want to reuse buttons in the toolbar for example.<br /><br />I found an override from <a href="http://extjs.com/forum/showthread.php?t=56335&highlight=change+toolbar+button+icon">this</a> forum post which worked for me after a few tweaks.<br /><br /><blockquote>Ext.override(Ext.Button, {<br /> setIcon: function(url){<br /> if (this.rendered){<br /> var btnEl = this.getEl().child(this.buttonSelector);<br /> btnEl.setStyle('background-image', 'url(' +url+')');<br /> }<br /> }<br />})</blockquote>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com1tag:blogger.com,1999:blog-19969388.post-53002111098506472992009-05-29T11:02:00.004+08:002009-05-29T11:20:39.523+08:00An exercise in Metacognition ... computer for sale adsA Facebook buddy posted this as his status ...<br /><h3 style="font-weight: normal;" class="UIIntentionalStory_Message">60K PHP for brand-new MB466,2.0 GHz, IntelCore2Duo,160GB DDR3 Memory, 160GB HD, NVIDIA GeForce 9400M graphics, stndrd kbrd, aluminum unibo</h3>What went thru my mind during the first few seconds of reading ....<br /><ol><li>60K PHP ? Kinda expensive for a PC</li><li>Is this a laptop or desktop ?</li><li>MB466 ? must be the model number of something.</li><li>2.0 IntelCore2Duo ? really expensive PC, I could probably assemble an entry level Core i7 with 60K<br /></li><li>160GB DDR3 Memory ? WOW must be a server or workstation.<br /></li><li>aluminum unibo ?! Great Scott ! It's a Mac !</li></ol>What I learned about myself ....<br /><ol><li>I immediately knew it was an ad for a computer.<br /></li><li>I focus too much on the price, so much so that it influences everything else about the ad, maybe that's why I don't have a Mac :-)</li><li>I don't know the specs for a Mac when I see one.</li></ol>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-81219832674939539742009-05-19T17:41:00.004+08:002009-05-29T11:24:23.837+08:00Reusing Coffee Grounds<p>A couple of months ago I got myself a coffee press and started trying out different blends from my local Starbucks. </p><p>All this time I've been throwing away the coffee grounds when I could have been using them for something else.</p><p>According to the Natural Home Magazine <a href="http://lifehacker.com/5260189/use-your-old-coffee-grounds-to-clean-dishes-kill-fleas-and-more">article</a> that <a href="http://lifehacker.com/5260189/use-your-old-coffee-grounds-to-clean-dishes-kill-fleas-and-more">this</a> Lifehacker blog post points to, used coffee grounds can be used ...</p><ul><li>as deodorizer for your refrigerator</li><li>dish washing pad</li><li>as fertilizer</li><li>as a facial mask</li></ul>Uhm, I probably won't try that last one :-)<br /><p></p>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-5265542759698263472009-05-12T14:18:00.008+08:002009-05-14T15:00:59.457+08:00the Star Trek rebootFirstly, I think it shouldn't be called a prequal. It's probably fashionable to make prequals after the "Star Wars" movies but this is by no means a prequal.<br /><br />I would rather call it a retelling of sorts.<br /><br />What if James Kirk grew up without a father ?<br />What if Spock is more emotional than logical ?<br /><br />Star Trek : The Next Generation (TNG) was the series that turned me into a "trekkie". Prior to watching that series, I had no idea who Captain Kirk was, let alone Spock. Truth be told, I fell in love with the Star Trek of Capt. Jean Luc Picard in the 24th century because of the tech. I was fascinated by the <a href="http://en.wikipedia.org/wiki/Communicator_%28Star_Trek%29">comm badge</a>, the <a href="http://en.wikipedia.org/wiki/Hypospray">hypospray</a>, <a href="http://en.wikipedia.org/wiki/VISOR">VISORS</a>, <a href="http://en.wikipedia.org/wiki/Dilithium_%28Star_Trek%29">dilithium crystal</a> powered cores, <a href="http://en.wikipedia.org/wiki/Holodeck">holodecks</a>, warp drive engines, force fields and the <a href="http://en.wikipedia.org/wiki/LCARS">LCARS</a> console.<br /><br />Apparently, though, I'm not hard core enough a "trekkie" because I've been trying to get myself to watch reruns of The Original Star Trek series (TOS) but have failed miserably to finish a single episode.<br /><br />I did not like the original TV series but I definitely liked watching this Star Trek movie. Yup, I liked it, in spite of the <a href="http://villageidiotsavant.blogspot.com/2009/05/bright-and-shiny-crap.html">flaws in the story telling</a> and the <a href="http://blogs.discovermagazine.com/badastronomy/2009/05/08/ba-review-star-trek/">scientific inconsistencies</a>.<br /><br />Oddly, I liked it not for the same reasons that I liked watching TNG (the tech) , Heroes (super powers) or Fringe (mystery behind William Bell), nope I liked it because ...<br /><ul><li>James Kirk seems more complex and driven. He is motivated to live up to his parallel self in the other timeline.</li><li>Spock is not stubbornly logical and is giving in to his human side.<br /></li><li>Bones' colorful rhetoric, specially when he's upset.</li><li>Chekov, Scotty and Sulu for the comic relief</li></ul>This was my first time watching a movie on IMAX, btw. I can't say I liked it very much. I thought the screen was too close and too big for me to see all the action.Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-26793705771852914252009-05-12T12:53:00.006+08:002009-05-13T09:51:11.839+08:00I DON'T want free laptops from Sony EricssonI got 3 forwarded e-mails urging me to forward the e-mail to 8 people for me to get a free Sony Ericsson laptop. As a bonus, if I send it to 20 people, I get a higher spec'd Sony Ericsson laptop.<br /><br />I hate to break it to you folks but Sony Ericsson makes cellphones. Both the T18 and R320 are retired cellphone models from Sony Ericcson.<br /><br />A quick google search got me to the following links, all of which says that this is a big hoax !!!<br /><ul><li><a href="http://www.hoax-slayer.com/ericsson-free-lap-top.shtml">Hoax Slayer</a></li><li><a href="http://urbanlegends.about.com/od/internet/a/ericsson_hoax.htm">About.com</a></li></ul>So please stop forwarding these e-mails because no one is getting a free laptop from this. It's not clear what the intent of the perpetrators are but one thing is for sure, you're exposing yourself and your contacts to people you do not know. Internet marketers are the least of your worries, there are spammers, hackers and worst of all identity thieves to contend with, so please think before you click "forward".<br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_wHDGba8khz8/SgkChy9ZoJI/AAAAAAAAAIQ/c52bElBMR4k/s1600-h/noname.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 301px; height: 400px;" src="http://4.bp.blogspot.com/_wHDGba8khz8/SgkChy9ZoJI/AAAAAAAAAIQ/c52bElBMR4k/s400/noname.jpeg" alt="" id="BLOGGER_PHOTO_ID_5334798013235306642" border="0" /></a>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com1tag:blogger.com,1999:blog-19969388.post-22800932679154449822009-04-13T21:31:00.002+08:002009-04-13T21:37:00.695+08:00What Your Webmail Choice Reveals About YouI have accounts on all the free web mail services. You name it, I have it. It's partly because I work in web development but mostly because I love collecting e-mail addresses even if they get neglected every now and then.<br /><br />However, my main web mail account is Gmail, it's been Gmail since 2004 and as the McDonald's ad goes," I'm Lovin It".<br /><br />The Gmail personality description is so me :-) I wonder if they hired a psychologist for this article.<br /><br />So which webmail service reflects your personality. Find out <a href="http://www.pcworld.com/businesscenter/article/162940/what_your_webmail_choice_reveals_about_you.html">here.</a>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com2tag:blogger.com,1999:blog-19969388.post-61823172712465461852009-04-13T13:50:00.003+08:002009-04-13T14:02:13.004+08:00Google Talk Group Chat on PidginI'm not sure if it's just me but every time I am invited to a group chat on Gtalk I am given a link to log in to the gtalk web interface.<br /><br />This has been somewhat annoying that Pidgin doesn't support group chats from Gtalk.<br /><br />Apparently, I've been annoyed for nothing because Pidgin already supports group chats on gtalk.<br />I'm just not sure why pidgin doesn't automatically recognize that it's a group chat and just bring me into the conference like it does on Yahoo, MSN or the other IM services it supports.<br /><br />When someone invites you to join a group chat, you get a message with some text that looks like<br /><span style="font-style: italic; font-weight: bold;">private-chat-xxxxxxx@groupchat.google.com</span> and a link that launches your browser that leads you to a page that launches gtalk gadget. Note that "<span style="font-weight: bold;">xxxxx</span>" represents some random string that is most likely used to identify the group chat room.<br /><br />So here's how to join a Gtalk group chat from Pidgin using the above information :<br /><br />1. Click <span style="font-weight: bold;">Buddies</span> from the menu<br />2. Then click <span style="font-weight: bold;">Join Chat</span><br />3. In the account drop down, make sure you use a Gtalk account.<br />4. For the Room textfield, paste <span style="font-style: italic; font-weight: bold;">private-chat-xxxxxxx<br /></span>5. For the<span style="font-style: italic; font-weight: bold;"> </span><span style="font-weight: bold;"></span>Server textfield, paste <span style="font-style: italic; font-weight: bold;">groupchat.google.com<br /></span>6. Click<span style="font-style: italic; font-weight: bold;"> JOIN<br /></span>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com8tag:blogger.com,1999:blog-19969388.post-70379529250441085402009-04-11T23:35:00.004+08:002009-04-11T23:39:02.113+08:00Recursively add folders and files in CVSOne thing I really like about subversion is that an "svn add" on a folder recursively adds the folders and files inside that directory.<br /><br />It's not the case with CVS, you can always do a "cvs import" but if you really need to use "cvs add", then you may find the following useful:<br /><br />To recursively add <span style="font-weight: bold;">directories</span> inside a folder that is already under CVS :<br /><br /><blockquote>find . -type d -print | grep -v CVS | xargs -n1 cvs add</blockquote><br />To recursively add <span style="font-weight: bold;">files</span> inside a folder that is already under CVS :<br /><br /><blockquote>find . -type f -print | grep -v CVS | xargs -n1 cvs add</blockquote>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-3594568502735282642009-04-11T20:57:00.004+08:002009-04-13T21:39:28.108+08:00ExtJS Tip : Recursively Opening Nodes in a TreePanelThere was one client who requested an improvement that stuck in the <a href="http://hamisageek.blogspot.com/2007/07/ajax-powered-file-manager-demo.html">Ajax File Storage UI package</a> that I developed.<br /><br />This client wanted the user interface to open a particular folder based on the url. For example, http://mysite.com/filemanager/?folder_id=100 should return a page that launches the UI and opens the folder with id 100.<br /><br />This is a perfectly valid request but there were a few challenges, namely ;<br /><ul><li>the treepanel nodes are loaded using ajax</li><li>the nodes or folders to open could be several levels deep</li></ul>The solution had a back-end and a front-end component.<br /><br />The back-end component involved generating a list of folder_id's that led to the target folder_id. If the target folder is 3 levels deep, this folder list would have 3 folder_ids. Luckily this wasn't too hard to do in OpenACS as the heirarchy of folders in the file storage package is easy enough to get from the database.<br /><br />The front-end solution is a javascript function that goes thru this list and opens each folder based on the id's on that list. Just in case it is useful to someone using the ExtJS treepanel, here's the code for that function.<br /><blockquote><br /><pre> asyncExpand : function(x) {<br /> var treepanel = Ext.getCmp('treepanel');<br /> var node = treepanel.getNodeById(this.config.initOpenFolder);<br /> if(!node) {<br /> var x = x+1;<br /> var nextnodeid = this.config.pathToFolder[x];<br /> var nextnode = treepanel.getNodeById(nextnodeid);<br /> nextnode.on("expand",this.asyncExpand.createDelegate(this,[x]), this, {single:true});<br /> nextnode.expand(true);<br /> } else {<br /> node.select()<br /> node.fireEvent("click",node);<br /> }<br />}<br /></pre></blockquote><br /><br />You will notice that it is an example of a <a href="http://www.google.com.ph/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fwww.c-point.com%2Fjavascript_tutorial%2Frecursion.htm&ei=dJzgSZXxH4eVkAXo05jYCw&usg=AFQjCNEIw-87T3f3_wtPW9T9Nqxu6EJMJQ&sig2=LXEqBA96ItSrjanvcO0yOg">recursive function</a> or a function that calls itself. Allow me to break it down for you.<br /><br /><blockquote><br /><pre><br />var treepanel = Ext.getCmp('treepanel');<br /></pre><br /></blockquote><br /><br />Of course you need a treepanel, the one I use just happens to have the id "treepanel"<br /><br /><blockquote><br /><pre><br />var node = treepanel.getNodeById(this.config.initOpenFolder);<br /></pre><br /></blockquote><br /><br /><span style="font-style: italic;">this.config.initOpenFolder</span> is the variable that holds the folder_id that the UI should open into by default. The script calls <span style="font-style: italic;">getNodeById</span> in the hopes of getting a reference to that folder on the treepanel<br /><br /><blockquote><br /><pre><br /> if(!node) {<br /> var x = x+1;<br /> var nextnodeid = this.config.pathToFolder[x];<br /> var nextnode = treepanel.getNodeById(nextnodeid);<br /> nextnode.on("expand",this.asyncExpand.createDelegate(this,[x]), this, {single:true});<br /> nextnode.expand(true);<br /> } else {<br /> node.select()<br /> node.fireEvent("click",node);<br /> }<br /></pre><br /></blockquote>If the node does not exist on the first level of the tree, we presume that it maybe on succeeding levels. This is where we make use of the folder_id list that the back-end should create for you, this list should be a javascript array.<br /><br />In this case it is <span style="font-style: italic;">this.config.pathTofolder</span>. This part of the function ...<br /><ul><li>gets the next id on the list<br /></li><li>gets a reference to the node with that id<br /></li><li>assigns a function to the expand event of the node to call <span style="font-style: italic;">asyncExpand</span> with the index of the next folder_id on the list.</li></ul><br />When asyncExpand is called again, it will check to see if a node with a folder_id that matches <span style="font-style: italic;">this.config.initOpenFolder </span>exists. If not, it will get a reference to, assign a listener to the expand event and call the expand function of the node with the given index (x) .<br /><br />The process repeats until the folder with id equal to <span style="font-style: italic;">this.config.initOpenFolder </span>is found<span style="font-style: italic;">.<br /></span>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-4121273098195191062009-04-06T22:33:00.006+08:002009-04-10T15:20:02.811+08:00Are you technically savvy enough to be a PC ?Ok, so I can believe that Lauren is "not cool enough to be a mac person" because she's on a budget and there is no doubt in my mind that you can find a better deal with a PC just because there are a lot more PC retailers and manufacturers out there.<br /><br />However, I am having a hard time believing that this guy Giampaolo is tech savvy. Maybe Lauren is a better actress ? ;-)<br /><br /><br /><object height="340" width="530"><param name="movie" value="http://www.youtube.com/v/6LzcD5vSH80&hl=en&fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/6LzcD5vSH80&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="340" width="530"></embed></object>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-2129881790213923182009-04-04T20:28:00.006+08:002009-04-05T12:24:00.197+08:00Nograles slams OECDI just had to react to a <a href="http://business.inquirer.net/money/breakingnews/view/20090404-197929/Nograles-slams-OECD">breaking news item</a> on <a href="http://business.inquirer.net/money/breakingnews/view/20090404-197929/Nograles-slams-OECD">Inquirer.net</a> about Congressman and Speaker of the Philippine House of Representatives Prospero Nograles slamming the Organisation for Economic Co-operation and Development(OECD) for black listing the Philippines as "a non-cooperative tax haven".<br /><br />The congressman deserves a round of applause, no, more than applause, a standing ovation for slamming this action of the OECD and further pointing out that it is, in fact, the members of the OECD who are directly or indirectly responsible for the economic crisis the world is experiencing now.<br /><br />Among its members include the United States, the United Kingdom, Germany, Iceland and Spain all of whom have had financial institutions closed or bailed out of bankruptcy. A full listing of its members can be found <a href="http://www.oecd.org/document/58/0,3343,en_2649_201185_1889402_1_1_1_1,00.html">here</a>. I just wonder where the OECD was when the financial institutions of its own member nations were making bad choices and imprudent decisions when their economies were booming.<br /><br />I am no economist but it doesn't take any financial expertise to see how well our local financial institutions have fared compared to the biggest most reknowned institutions abroad. This tells me that, at least in this regard, our government must have done something right.<br /><br />I really thought crab mentality was a Filipino trait, apparently it's international.Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-80371094046388434662009-04-04T15:11:00.013+08:002009-04-10T15:20:24.893+08:00Setting up OpenVPN with dd-wrt for unexpected road trips you don't want to miss<span style="font-style: italic;">Somehow the words "web worker" and "vacation" don't seem to mix well together.</span><br /><br /><span style="font-weight: bold;">Web Working on Road Trips</span><br /><br />I don't have any solid plans for the holy week but I certainly don't want to miss trips to Tagaytay, Bulacan or the nearby Ocean Park if anybody decides they want to go on a road trip.<br /><br />Fortunately, finding an internet connection is easier now than ever before. Between <a href="http://smart.com.ph/bro/">Smart Bro</a>, <a href="http://www.globebroadbandtattoo.com.ph/">Globe Tatto</a>, commercial and free Wi-Fi services, you're pretty much covered, specially if you won't be wandering too far away from Metro Manila.<br /><br />You've got your trusty laptop and internet access is not a problem, so what's keeping you from going on that road trip ?<br /><br />For me, it's secure access to my files and the virtual machines on my home network.<br /><br />The internet may be more accessible here in the Philippines but it isn't necessarily more secure. In fact the data packets, be it from WiFi, 3G or HSDPA, are transmitted over the air. Anyone, with enough knowhow, the proper hardware and software could possibly capture the data as it is being transmitted.<br /><br />What's a mobile web worker to do ? The solution, setting up a Virtual Private Network (VPN) .<br /><br /><span style="font-weight: bold;">Is a VPN Overkill ?</span><br /><br />I know, it sounds overkill but "VPN" should not connote buying expensive Cisco hardware and VPN software. It's now possible to set up a VPN on your home network with relatively inexpensive hardware like the <a href="http://www-ph.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=PH%2FLayout&cid=1139845558921&pagename=Linksys%2FCommon%2FVisitorWrapper&lid=5892185430B04">Linksys WRT54G</a> router (which I happen to own) and free software like <span style="text-decoration: underline;">dd-wrt</span><a href="http://www.dd-wrt.com/dd-wrtv3/index.php"></a>.<br /><br />The first thing to do of course is to acquire a router that supports dd-wrt. This use to be easy as the Linksys WRT54G was the only router that was supported. Today, you have a lot more options from the likes of Buffalo, Asus and Netgear.<br /><br />I won't discuss how to setup dd-wrt on your router as it's out of the scope of this article. You can find instructions from the <a href="http://www.dd-wrt.com/wiki/index.php/Installation">dd-wrt wik</a>i and do a search on google to read about how other people have fared in their attempts at installation. Note though that the process is not for the feint of heart. It's gotten easier with each release but there is still a possibility that you will "brick" (the term used to describe a router that has been rendered useless) your router.<br /><br />dd-wrt has many builds. Make sure to install the vpn build.<br /><br /><span style="font-weight: bold;">What you need for your VPN</span><br /><br />In addition to :<br /><ul><li>A supported router, I used a Linksys WRT54G v2.2 router.<br /></li><li>dd-wrt vpn build, I installed v24-sp1</li></ul>here are the other prerequisites for setting up the VPN :<ul><li>A desktop or laptop computer with Linux , my desktop is running OpenSUSE v11<br /></li><li>OpenVPN on the linux desktop, I installed this using the Yast software manager<br /></li><li>A text editor like Kate or vi</li></ul>Let me stress that this worked for me using the above hardware and software. If you are using a different router and/or a different version of dd-wrt, you might want to do some more research before attempting this.<br /><br />You've been warned !!<br /><br />The computer with OpenVPN is where we generate the certificate files needed to setup the OpenVPN server on dd-wrt. We will not be setting up OpenVPN on this computer.<br /><br />It is also possible to use windows with the OpenVPN GUI installed instead of a linux desktop but I won't discuss how to do it here.<br /><br /><span style="font-weight: bold;">Step by Step Set Up</span><br /><br />Let's get to it.<br /><br />1. On your linux desktop, open a terminal and become root by using su.<br /><blockquote>su -</blockquote>2. Go to /usr/share/openvpn/easy-rsa/2.0<br /><blockquote>cd /usr/share/openvpn/easy-rsa/2.0</blockquote>3. Execute the following commands in the correct order<br /><blockquote># sets some environment variables to make the succeeding scripts work<br />source vars<br /><br /># cleans up any previously created keys if any<br />./clean-all<br /><br /># create a certificate<br /># you will be asked to enter some information<br /># remember what you entered as you will need to use the same information<br /># to generate the server key<br />./build-ca<br /><br /># create a server key<br />./build-key-server server<br /><br /># create the Diffie-Hellman parameters needed by the server<br />./build-dh</blockquote>4. The commands above will create a keys folder inside the current folder you are in with the files you need for the next step. Open the files using your chosen text editor.<br /><br />5. Open a web browser and enter the IP address of your router. If you did not change the default, the IP should be 192.168.1.1. This opens to the web administration interface for dd-wrt<br /><br />6. Click Services, then under OpenVPN daemon click the "Enable" radio button. This should reveal additional textareas where you need to paste the contents of the files from the keys folder.<br /><blockquote>Public Server Cert > ca.crt<br /><br /># note that you only need the portion of ca.crt that starts with<br /># -----BEGIN CERTIFICATE -----<br /># and ends with<br /># ----- END CERTIFICATE -----.<br /><br />Certificate Revoke List (CRL) > (blank)<br />Public Client Cert > server.crt<br />Private Client Key > server.key<br />DH PEM > dh1024.pem<br />OpenVPN Config > (see 7 below)<br />OpenVPN TLS Auth > (blank)</blockquote>7. For the OpenVPN Config textarea, you will need to decide what IP address range you want to use for the private routing network that will be used by OpenVPN. In the sample configuration below, I decided to use 192.168.2.0 as the private routing network. The push parameter should have the IP and subnet of your local area network.<br /><blockquote>push "route 192.168.1.0 255.255.255.0"<br />server 192.168.2.0 255.255.255.0<br />dev tun0<br />proto udp<br />keepalive 10 120<br />dh /tmp/openvpn/dh.pem<br />ca /tmp/openvpn/ca.crt<br />cert /tmp/openvpn/cert.pem<br />key /tmp/openvpn/key.pem<br /><br /></blockquote>8. Once the textareas have been filled up, click "Apply Settings" and just to be sure, click "Reboot Router" to reboot the router.<br /><br />Hopefully, the OpenVPN server on your router should be up and running. To verify, use ssh to log into your router and run<br /><blockquote>ps | grep openvpn</blockquote>You should see an openvpn process running. If you don't, then you'll need to take the following steps to turn on logging and debug the problem.<br /><br /><span style="font-weight: bold;">Troubleshooting with Logs</span><br /><br />To turn on logging, click the Services tab and click the "Enable" radio button under System Log. Leave "Remote Server" blank. Then add <span style="font-style: italic;">verb 5</span> to your OpenVPN config textarea. Click "Apply Settings". Then log into your router via ssh and execute.<br /><blockquote>tail -f /var/log/message</blockquote><span style="font-weight: bold;">Connecting Clients</span><br /><br />Now that you have your server up and running. The next thing we want to do is to setup a client computer to connect to the OpenVPN server. If you're on windows, you can download the OpenVPN GUI.<br /><br />For Linux users, you can use the openvpn applet for the NetworkManager which comes installed by default on most Linux distributions.<br /><br />Before anything else, you need to create the certificates that your client computers (in this case my laptop) will use to connect to the server.<br /><br />Login to your linux desktop and go back to /usr/share/openvpn/easy-rsa/2.0, then execute<br /><blockquote>./build-key client1</blockquote>where <span style="font-style: italic;">client1</span> is the name of the client computer you want to connect to. You can also leave it as client1 if you like.<br /><br />The above will generate 3 files in the keys folder, a client1.crt, client1.csr and client1.key. You need to copy client1.crt and client1.key to the client computer that wants to connect to the server. You also need to copy ca.crt from the keys folder to the client computer.<br /><br />Click on the NetworkManager applet icon on your linux desktop, then click "VPN Connections" -> "Configure VPN".<br /><br />Click on the VPN tab, then click "Add", choose "OpenVPN" from the connection type drop down.<br /><br />In the succeeding form, enter the following information :<br /><blockquote>Connection name : (enter whatever you like here)<br />Gateway : (for now enter the IP address of your router)<br />Type: Certificates (TLS)<br />User Certificate : point this to the location of client1.crt on the client computer<br />CA Certificate : point this to the ca.crt file<br />Private Key: point this to client1.key</blockquote>You should now be able to use the NetworkManger to connect to your router's OpenVPN server.<br />We have tested so far that the VPN server works but for this to be actually useful, the OpenVPN server should be able to accept connections from the internet.<br /><br /><span style="font-weight: bold;">Dynamic DNS and the Router Firewall</span><br /><br />In quickest way to do this is to sign up to a free dyanmic DNS service.<br /><br />dd-wrt supports several free dynamic dns services <a href="http://www.dd-wrt.com/wiki/index.php/DDNS_-_How_to_setup_Custom_DDNS_settings_using_embedded_inadyn_-_HOWTO">here</a> is a comprehensive how to from the dd-wrt wiki.<br /><br />Once you have DDNS set up, you need to open port 1194 on the router's firewall in order to accept connections from the internet.<br /><br />Go back to the dd-wrt web interface, click the Administration tab, then click Commands. Enter the following code and click the "Save Firewall" button.<br /><blockquote># Replace 1194 with your OpenVPN port number:<br />iptables -I INPUT 1 -p tcp --dport 1194 -j ACCEPT<br />iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT<br /><br /># change 192.168.2.0/24 to the private routing network you chose earlier<br />iptables -I FORWARD 1 --source 192.168.2.0/24 -j ACCEPT<br /><br /></blockquote>You may want to click "Reboot Router" to reboot the router and make sure that openvpn is working with the new start up firewall script.<br /><br /><b>Connecting for real</b><br /><br />The next step is to go on a road trip, find free WiFI and connect to the OpenVPN server.<br /><br /><br /><span style="font-weight: bold;">Have a blessed holy week and advanced happy easter to everyone</span>.<br /><br /><br /><span style="font-weight: bold;">References :</span><br /><a href="http://www.dd-wrt.com/phpBB2/viewtopic.php?t=35689&postdays=0&postorder=asc&start=0">http://www.dd-wrt.com/phpBB2/viewtopic.php?t=35689&postdays=0&postorder=asc&start=0</a><br /><a href="http://www.dd-wrt.com/wiki/index.php/OpenVPN">http://www.dd-wrt.com/wiki/index.php/OpenVPN</a>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com4tag:blogger.com,1999:blog-19969388.post-7552919786706779902009-03-30T12:20:00.004+08:002009-04-10T15:20:46.881+08:00I'm not cool enough to be a Mac person<a href="http://mikeabundo.com/2009/03/29/microsoft-laptop-mac/">Mike Abundo</a> dissects Microsoft's new ad. I felt it is genuine and real. While price is not everything, I believe that one is more likely to find value for money with so many PC's (choices) on the market.<br /><br />Just last week, a friend was shopping around at the SM Cyberzone, looking for a laptop. He was totally drooling over a macbook pro but accepts that he can't afford the Mac with the specs he needs. Lo and behold he found and bought a <a href="http://www.laptopking.com.ph/controller.do?action=singleproduct&productid=4685">laptop</a> for just P28,000 ($600). That laptop was a centrino core 2 duo with 2 GB of RAM and 160GB of HDD. When he told me, I couldn't believe it either. Note, though, that the price does not include the OS. He needed to shell out an extra P5,000 for Vista, he decided to save the P5,0000 and installed Ubuntu on it instead. ;-)<br /><br />DISCLAIMER : I'm a PC ... a Linux PC :-)<br /><br /><object height="295" width="480"><param name="movie" value="http://www.youtube.com/v/EIS6G-HvnkU&hl=en&fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/EIS6G-HvnkU&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="295" width="480"></embed></object>Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com1tag:blogger.com,1999:blog-19969388.post-55195797736630244572009-03-17T21:52:00.005+08:002009-04-10T15:21:11.178+08:00Swappiness, virtualziation and a faster systemI've been know to keep my workstation up and running for at most a week before rebooting.<br /><br />I find it necessary because I notice a significant slow down in the performance of my workstation after that period of time.<br /><br />I haven't been able to figure out why until a few weeks ago.<br /><br />My workstation has 2GB of internal memory and as per the rule of thumb, I have a 4GB swap partition allocated on a 250GB hard disk drive. <br /><br />I really can't claim to know what's happening in the background but my hunch is that the stuff that the virtual machines and applications I keep open that are initially on internal memory are gradually being moved to the swap partition.<br /><br />Swap is generally slower because it's on a disk drive.<br /><br />I found <a href="http://fosswire.com/post/2009/2/sysctl-swappiness/">this article from FOSSWire</a> that suggests turning off swap to speed up your system.<br /><br />Its working well for me so far :-)Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-68988058741795946422009-03-02T12:05:00.004+08:002009-04-03T12:20:49.690+08:005 Inspirational WorkspacesSimon Mackie over at <a href="http://webworkerdaily.com/">Web Worker Daily</a> lists 5 inspirational workspaces. My personal favorite on that list is the <a href="http://ramblingrenovators.blogspot.com/2008/04/98-done-o.html">Rambling Renovator's Office Space</a> primarily because of the lime green on the walls.<br /><br />However, a single laptop will probably not suffice for me. I have found that I need 2 monitors to be productive and I am contemplating on getting a bigger 3rd one to get Aptana IDE to fit.<br /><br />I would probably throw in a few elements of <a href="http://www.stefandidak.com/office/index.php">Stefan Didak's Home Office</a> into it and it would be perfect :-)Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-16826076075959751642009-02-26T20:47:00.003+08:002009-04-03T12:21:19.364+08:00Google's Native Client Security Contest and Is this Google's verison of the Java browser plugin ?So I was skimming thru my reading list today when I came across <a href="http://google-code-updates.blogspot.com/2009/02/announcing-native-client-security.html">this</a> blog post from the Google Code Update blog. It looks like Google is running a contest to find bugs, exploits and vulnerabilities on the Native Client.<br /><br />The first thing I asked myself was, what's the Native Client ?<br /><br />The <a href="http://code.google.com/p/nativeclient/?utm_campaign=en&utm_source=en-et-gcblog&utm_medium=et">google code page</a> for the native client project looked straightforward but the possibilities of something like this is astounding. <br /><br />Running Quake on your browser ? Are you kidding ? Get Outta here !!!<br /><br />If you can run Quake on your browser, imagine being able to run other MMORPG's (World of Warcraft anyone ?) on the browser !Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com0tag:blogger.com,1999:blog-19969388.post-78540426412533108582009-02-23T20:09:00.003+08:002009-04-03T12:21:03.872+08:00If I were going to build a new PCSomeone asked me, if I were going to build a high-end PC today, what parts would go into it and how much would it cost. <br /><br />The first thing I asked was, what's it for ? He says it's going to be a windows box for graphics and multimedia with a little gaming on the side.<br /><br />Here's my answer ....<br /><br />------------------------------------------<br /> 14,000 : Core i7 920<br /> 16,500 : Msi Eclipse X58 SLI 1366<br /> 29,000 : Corsair 6gb (TR3X6G1333C9) XMS3 X 2 = 12GB<br /> 3.750 : Palit ATI HD 3850 Super 512mb (256bit) ddr3<br /> 13,000 : 1tb Caviar Black (WD1001FALS) 32mb dual processor X 2 = 2TB<br /> 7,800 : Cooler Master (RC-932) HAF 932 atx w/o psu black<br /> 7.000 : Cooler Master UCP 700W Ultimate 80PLUS Silver Certified<br /> 18,000 : 2693hm SAMSUNG 26"<br />------------------------------------------<br />P109,050<br />------------------------------------------<br /><br />Prices are from TipidPC.com. <br /><br />So what do you think ? A little overkill for graphics and multimedia or should I have gone dual SLI or even a 4870 X2 graphics card ?Anonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.com2