Monthly Archives: February 2010

Replace newlines with p tags in ExtJS DataView

Another fun usage of XTemplate with an assist from DataView’s prepareData function, let’s wrap each paragraph separated by two newlines in actual paragraph tags instead of using Ext.util.Format’s nl2br function, as BR tags cannot be styled. var config = { xtype:’dataview’, singleSelect:true, autoScroll:true, cls:’custom’, overClass:’x-view-over’, itemSelector:’div.wrap’, prepareData:function(recordData, ri, record) { recordData.message = recordData.message.split(/\n{2,2}/); return recordData; [...]

Hack for remotely bouncing ZyXEL modem EQ-660R

EmbarqCenturyLink goes down so often, I finally had to hack together a lame heartbeat script to bounce the connection if it’s down. I run the script below via cron every 5 minutes. The target IP is this blog host, because it ought to be up and reachable. I later considered using the default route’s IP, [...]

Intuit, always trying to rip you off

When Intuit originally came out with its Web based version of TurboTax, they’d save your information and let you access it again the following year and file at no change, assuming you’re using the “free” option they offer. While they still offer it this year, unlike last year, they won’t pre-fill your personal information, even [...]