tag:blogger.com,1999:blog-21911915013029367832023-11-15T08:58:37.105-05:00Technology at its CrudestTechnology, Linux, Ruby/Rails, Sports, Math, BlackBerry SmartphonesAkshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-2191191501302936783.post-43333656571956196592010-02-12T15:00:00.001-05:002010-03-16T23:55:40.612-04:00Using Funtoo stage3 tarballs for new Gentoo installationsThe hard drive holding the root partition of my Gentoo server is about to be replaced. I could very easily copy it over while using a live CD (preserving permissions, of course), but that would be taking the easy way out.<br />
<br />
Instead, I'm going to reinstall using a fresh stage3 tarball from <a href="http://www.funtoo.org/">Funtoo</a>. If you haven't heard about it, its a fork (?) of the Gentoo project and is run by Daniel Robbins, the original creator of Gentoo. He uses a custom build script (dev-util/metro) to build a stage3 environment from the latest portage snapshot; the ones offered officially from Gentoo are updated every few decades it seems and do not take long to become outdated.<br />
<br />
If you're going to do a new Gentoo install (and if you haven't, why not!?), I can't find a reason NOT to use a Funtoo stage3 tarball.Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-50641293729681019902010-02-03T00:17:00.000-05:002010-02-03T00:17:38.140-05:00Trends in Credit UseThere's an interesting graphic up at Man Vs. Debt showing the use of credit in various contexts.<br />
<br />
The first chart shows credit use in eight major countries in dollars and the percentage of household expenses devoted to food within those countries. I'm not sure how the two are related since two different metrics are used -- its and apples-to-oranges comparison. Even individually, the total dollars an overall number and does not take into consideration the population. Showing "billions of dollars in credit card transactions <i>per person</i>" I believe would've been much more effective. Even with what we have, though, the disparity between China and the US is especially stark considering population.<br />
<br />
The percent of expenses devoted to food is also a bit misleading. I understand that the author is trying to show an inverse correlation between this percentage (implying the societal value of food?) and credit use but even by itself, these data don't show much. For example, a higher percentage could occur if the overall expenses or total income for a household decrease. Ultimately this first chart seems too incredible for me to place any value in its findings.<br />
<br />
I do believe that there has been a steady proliferation of credit use, and the second chart in the graphic is far more straight-forward in pointing that out. That in itself, can't be the problem; when used effectively credit can be a great tool. Indeed, I believe it's essential for many small businesses to grow, for example. Personally, I use credit to pay for anything I can, paying off my balance each month and accruing rewards (points, cash back, miles, etc.).<br />
<br />
I consider irresponsible use to be a symptom of a deeper issue: ignorance. I don't blame anyone in particular, there just aren't too many passively available resources to educate people when they're most malleable: youth. Cultivating a greater understanding of fundamental finances and fiscal responsibility should be a staple of every teenagers' (at least, I would start even earlier) education as much as social studies or history. I wish I could offer a solution but hopefully an optimistic blogger's lament will hold you over until then.<br />
<br />
Anyway, although I agree with Adam's sentiment, I believe his point would have been much more persuasive had he split up the first chart into two distinct graphs and developed his logic within each.<br />
<br />
<a href="http://manvsdebt.com/too-much-credit-graphic/">Man Vs. Debt</a> [via <a href="http://www.getrichslowly.org/blog/2010/02/02/lessons-learned-from-rushing-into-real-estate-investing/">Get Rich Slowly</a>]Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-66467873036651135042010-01-27T22:08:00.000-05:002010-01-27T22:08:55.883-05:00Mint.com's CEO Aaron Patzer gives presentation on building startupsAaron Patzer, the founder and CEO of personal finance site Mint.com gave a presentation last October describing his journey taking Mint from startup to big-time; they were recently acquired by Intuit to the tune of $170 million.<br />
<br />
This is a very insightful and humbling lecture, and just because I'm an engineer and therefore biased doesn't make it any less invaluable.<br />
<br />
Check it out:<br />
<a href="http://www.techcrunch.com/2009/10/08/startups-101-the-complete-mint-presentation/">http://www.techcrunch.com/2009/10/08/startups-101-the-complete-mint-presentation/</a>Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-79232644492635074102009-12-30T20:22:00.000-05:002009-12-30T20:22:18.862-05:00Part II of the Gervais PrincipleI discussed the first part of Venkatesh Rao's essay on the Gervais Principle <a href="http://bubbl07.blogspot.com/2009/10/gervais-principle-of-mangement.html">here</a>. He has since released part II, entitled "<a href="http://www.ribbonfarm.com/2009/11/11/the-gervais-principle-ii-posturetalk-powertalk-babytalk-and-gametalk/">Posturetalk, Powertalk, Babytalk and Gametalk</a>." Just as insightful as his first part, I highly recommend reading it over.Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-23189135421938627242009-12-29T23:28:00.000-05:002009-12-29T23:28:21.811-05:00FOSS drivers for Broadcom Crystal HD creates a lot of potential for low-cost HTPCsBroadcom's Crystal HD is a new technology that for most of us AV nerds that is as revolutionary as is evolutionary. Usually those are mutually exclusive, but bear with me. Anand argues that the available platforms don't make sense for what most people are trying to do. Intel's graphics platforms, while reasonable for the real-time decoding of most content, are simply too underpowered to handle 1080p. NVIDIA's ION platform, on the other hand, is just too expensive; I believe the phrase he used was "not retrofittable." This allows you to take an existing system that may just not have to juice to stream 1080p content and imbue it with that magical power, in the form of a mini-PCIE card. In the future, it should also be available in ExpressCard and 1x PCI-E form factors.<br />
<br />
What makes this release revolutionary is a result of both Broadcom's strategy and the software ecosystem into which it will inevitably end up. First, Broadcom has released the driver under the (L)GPL for both Linux and OS X, and if you know me at all you should know how warm that makes me feel inside. This obviously has its own inherent benefits, such as a rapid update cycle, quick bugfixing, greater compatibility, etc. In combination with existing software for Mac/Linux, though, this is a no brainer. He uses XBMC as an example of one such media center because it has already incorporated the userspace support for the Crystal HD libraries, but I can easily see this being taken up by other projects such as ffmpeg, vlc, mplayer, and MythTV -- just look at how quick those projects were to adopt <a href="http://www.phoronix.com/scan.php?page=search&q=vdpau">NVIDIA's VDPAU library</a>!<br />
<br />
I don't have any 1080p content currently, but that was based on my hardware limitations. Once I was able to move up from SD to 720p streaming my video library quickly upgraded. I don't think this is something I'll tinker with in the coming months, but certainly something I will follow as it combines three of my favorite things: media streaming, open source, and HD!<br />
<br />
[via <a href="http://www.anandtech.com/gadgets/showdoc.aspx?i=3701">AnandTech</a>]Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-2660780315419077822009-12-24T14:10:00.000-05:002009-12-24T14:14:43.896-05:00Full text search indexing in sqlite3I guess I'm a little behind the curve, but I just discovered that sqlite3 has full text search capabilities (appropriately dubbed "FTS3") a la Google. FTS3-enabled tables are actually built atop <a href="http://www.sqlite.org/lang_createvtab.html">virtual tables</a>, about which I also just found out.<br /><br />Anyway, there's a great write-up about it and how to use it <a href="http://dotnetperls.com/sqlite-fts3">here</a>.Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-18569297485117806292009-12-23T19:37:00.000-05:002009-12-23T20:35:20.057-05:00Using ext4 when compiling your own kernelMy parents finally upgraded to a new computer this past weekend so I took their old one (PIII, 384MB SDRAM) and turned it into a file server. I used gentoo to build it and was surprised how little time it took to actually configure (compiling was a different story...). I had an old 120 GB PATA hard drive lying around so I partitioned it as follows:<br /><ul><li>/dev/sda1 | ext2 | 100MB (/boot)</li><li>/dev/sda2 | ext4 | 15GB (root)</li><li>/dev/sda3 | swap | 1GB<br /></li><li>/dev/sda4 | ext4 | 104GB (/mnt/whatever)</li></ul>It was all pretty standard: upgrade to sys-devel/gcc-4.4.2 and sys-libs/glibc-2.11-r1, `make menuconfig`'d sys-kernel/hardened-sources-2.6.28-r9, made sure I included baked-in support for ext4, and compiled. After waiting half an hour (literally -- `time make` took ~32 mins!), I rebooted and was welcomed by an unfamiliar message in my system log:<br /><blockquote>EXT4-fs: dm-5: Filesystem with huge files cannot be mounted read-write without CONFIG_LSF.</blockquote>Fortunately, my root partition mounted cleanly and the error only applied to /dev/sda4. Googling around*, I discovered that the "huge_file" feature is implicit when running mkfs.ext4. I saw 'CONFIG_LSF' in the kernel config and the documentation said it was only necessary for files 2TB or larger -- clearly nothing I'd need to worry about -- so I didn't include it in the kernel.<br /><br />Instead of recompiling my kernel, I figured I'd just reformat the partition without huge_file support. Yes, recompiling the kernel would've been a pain, but reformatting seemed like the more ideal/elegant solution -- especially considering this partition was barely 100GB. The default behavior for mke2fs.ext* can be found in /etc/mke2fs.conf (on gentoo, at least), and the culprit looks like this under the ext4 block:<br /><blockquote>features = has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize </blockquote><br />* <a href="http://old.nabble.com/Bug-509893:-e2fsprogs:-mkfs.ext4-produces-unusable-filesystem-td21193293.html">http://old.nabble.com/Bug-509893:-e2fsprogs:-mkfs.ext4-produces-unusable-filesystem-td21193293.html</a>Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com1tag:blogger.com,1999:blog-2191191501302936783.post-47705711396542785022009-12-21T14:30:00.003-05:002009-12-21T14:53:31.560-05:00Secretly updated version of MidpSSH for BlackBerryIf you've used MidpSSH for Blackberry, you'll find that the most recent version available from the website it hopelessly out of date (last updated March 2008). If you've never heard of it, shame on you! Its the only BlackBerry SSH client of which I'm aware, and if you have a BlackBerry and use *nix, then you'll most certainly find it useful.<br /><br />Anyway, while I was researching which of the myriad versions of the application to install on my new Curve 8900, I stumbled upon an old <a href="http://www.berryreview.com/2008/10/09/custom-blackberry-build-of-midpssh-mobile-ssh-client/">BerryReview article</a> that links to an updated version not listed on xk72.com! It's listed at version "1.7.4 beta 2" and has a timestamp of Oct 2008 -- so its now just plain out-of-date (not hopelessly).<br /><br />The big features added to this release (according to the article) include:<br /><br /><ul><li>BIS-B support (depends on carrier on which ports you might be able to work, IE on mine they block port 22, but I just changed my sshd port of linux box to a higher port,). When configuring the host, just add :PORT (so it would be IP.OF.SERVER:PORT)</li><li>WIFI support</li><li>Application is signed in order to gain access to some RIM protected APIs</li></ul>I was appropriately skeptical but I figured I'd give it a shot and the changelog given is very accurate! I was able to connect to my home linux server over both WiFi and BIS (T-Mobile EDGE) whereas previously I had to be connected to a WiFi network; said server's SSH server is also open to a port other than 22, and specifying that in the connection preferences allowed me to connect; and I wasn't presented with the "untrusted application rah rah" warning when I downloaded and installed it. It also seems noticeably faster, but then that's probably just because I'm coming from an old Pearl 8120.<br /><br />Unfortunately, I doubt we'll be seeing many updates to this application anymore, but this should certainly hold me over until someone else decides to pick up the ball. Besides, its not like SSH standards change very often. The source code is available to anyone enterprising enough to tackle such a huge project for the BlackBerry community.<br /><br /><a href="http://www.deltatech.com.mx/midpssh/">Site hosting the application for OTA install</a>:<br />http://www.deltatech.com.mx/midpssh/beta2/midpssh-bb-ota.jadAkshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-4376521555892499392009-10-15T15:47:00.002-04:002009-10-15T15:57:53.551-04:00The Gervais Principle of MangementA very eye-opening piece. Great idea using the Office as an example. Its almost scary how realistic this is at times. Obviously the Peter and Scott Adams Principles to which he refers are almost laughable, and were probably designed more to be narrow glimpses into an otherwise complex system, but I believe Rao may be on to something.<br /><br />[via <a href="http://news.slashdot.org/story/09/10/14/0042226/Explaining-Corporate-Culture-Through-The-Office">Slashdot</a>]Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-1052408599294244802009-08-06T12:17:00.003-04:002009-08-06T12:20:43.946-04:00The Japanese are so novelAnother example of a combining existing technologies to make something very novel. The nerd in me had his jaw drop and head shake at how freakin' cool this is.Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-8624625885961866042009-06-02T17:13:00.005-04:002009-06-02T17:24:00.060-04:00Steve WiebeIf you've seen <span style="font-style: italic;">The King of Kong: A Fistful of Quarters</span>, then you'll know (and most likely sympathize with) Steve Wiebe, the venerable subject of said documentary. At E3 today, he's had a Donkey Kong booth set up for him in another attempt to break that other guy's record. The best part is that G4TV has a <a href="http://www.woot.com/Blog/ViewEntry.aspx?Id=8377">live webcast and screencast</a> of his attempts! He started at 11am EST and has played twice so far. He's been resting for a few minutes between breaks and its funny to watch other people sit down at the arcade unknowingly trying to play and getting kicked out within seconds. The twitter chat is also keeping me pretty entertained.<br /><br />I'm definitely pulling for him, but if he's this time-committed to DK, I'd hate to see him play Warcraft.Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com1tag:blogger.com,1999:blog-2191191501302936783.post-80778042381221776892009-03-26T11:32:00.003-04:002010-01-26T21:44:02.573-05:00Indian Americans: model minorities perhaps, but not necessarily a byproduct of anything inherentIn response to: <a href="http://www.forbes.com/2009/02/24/bobby-jindal-indian-americans-opinions-contributors_immigrants_minority.html">Indian Americans: The New Model Minority</a><br />
<span style="font-weight: bold;"></span><br />
The way Richwine is arguing it has some very racist undertones. By comparing Indian Americans within a pool of just minorities, he's implying a difference between whites and everyone else that needs to be delineated; by buying into them being a "model minority," they're validating themselves by the gauge of White people. "It values communities -- and their right to be in the U.S. -- based on economic success. It suggests that only immigrants with college degrees or high IQs can contribute to society, when in reality, industriousness knows no boundaries" [1].<br />
<br />
Furthermore, he's also using stereotypes and correlations to imply causation. The reason there are so many Indian doctors/engineers/<br />
<div class="ii gt" id=":ef"><wbr></wbr>professionals might not be because they're naturally smarter. For example, a large proportion of Indian doctors in America now are here because they came here after leaving India. There was a mass expatriation during the second half of the 20th century that saw 10.1% of the 592,215 physicians registered by the Medical Council of India emigrate to the US, UK, Canada, and Australia [2]. As nice as it seems ostensibly to have such a high proportion of Indian doctors in the Western world, I think the skeleton in the closet is that they left India because it had sub-par residency training and practice positions. The same can be said of engineers who leave India because of its wretched working conditions. I think the Germans, for example, are equally intelligent and industrious; but they don't leave Germany in droves the way Indian professionals did. Even if they did, they wouldn't even be considered a minority because of the color of their skin.<br />
<br />
Even Richwine admits his arguments are cursory, despite trying to present them as substantive evidence: "Given the small sample size, the rough IQ measure and the lack of corroborating data sets, this finding of lofty Indian-American intelligence must be taken cautiously. Nevertheless, it is entirely consistent with their observed achievement." He argues that, in contrast, Mexicans "are much less wealthy and educated than U.S. natives, even after many years in the country." This is unfortunately attributed to the Mexican culture as a whole and clearly shouldn't be. First, Mexican emigrants tend to be of the non-educated variety when they come here, looking for new opportunities that they can't get in Mexico. [sarcasm] Second, its not like structural racism, redlining, negative stereotypes and media portrayal (impacting employment), etc. hinder their successes at all [/sarcasm].<br />
<br />
At best, this is poor journalism and, at worst, a glimpse into the reason cultural divides still exist in modern society.<br />
</div><br />
References:<br />
<ol><li>http://www.theroot.com/views/nobodys-model-minority?gt1=38002</li>
<li>http://content.nejm.org/cgi/content/full/353/17/1810</li>
</ol><br />
See also:<br />
<ul><li>http://blog.saalt.org/?p=206</li>
</ul><a href="http://content.nejm.org/cgi/content/full/353/17/1810?ijkey=b632019c84274e46570e631ed99aa737598d2448" target="_blank"></a>Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-89948662995435282202009-02-13T15:39:00.002-05:002009-02-13T15:41:25.874-05:00Water-powered Jet PackThis seriously looks so fun I want it to be warm out that much more now. I can't believe no one's thought of this before (the patent was from 2007, according to the article).Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-18861104876021191282009-02-03T15:03:00.005-05:002009-02-03T15:20:44.018-05:00Indexed is one of my favorite "comics"I use the term "comic" loosely as <a href="http://thisisindexed.com/">indexed</a> is not what you'd typically think of when referring to one. If you can consider <a href="http://xkcd.com/">xkcd</a> a comic (and I'm sure most people can), however, then I think indexed deserves just as much consideration for its humor; isn't that what makes a comic a comic, after all? Sure, the drawings in other popular comics such as Penny Arcade and Ctrl-Alt-Del allow them to create characters with which the readers can more closely sympathize, but that's their artistic prerogative. I think comics like xkcd, <a href="http://www.abstrusegoose.com/">abstruse goose</a>, and indexed convey their messages, however insightful or humorous they may be, equally well without the need for characters that are consistent across comics.<br /><br /><a href="http://thisisindexed.com/2009/02/and-thats-not-always-so-bad/">Today's comic</a> hit especially close to home for personal reasons. In fact, its this type of attention to the ordinary and mundane that makes you step back and realize how overcomplicated we make things sometimes.<br /><br />Sorry if that sounded really artsy.Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-90157763955302479872009-01-27T16:39:00.003-05:002009-01-27T16:52:47.837-05:00Rails ActiveRecord validationFor something so simple, you'd think there'd be a decent amount of documentation out there for it, but you'd be wrong.<br /><br />I was trying to write a validation on a model to ensure a certain condition was met, in this case that one object attribute was never larger than another for the same object before it was saved. Turns out it was as simple as this (sorry for the formatting, not sure how to post code snippets yet):<br /><blockquote>protected<br />_def validate<br />__errors.add_to_base('x cannot be greater than y') if self.x > self.y<br />_end</blockquote>Apparently, Rails looks for a validate method and will call it during the validation process. No need for callbacks here (i.e. before_update, after_validation, etc.). The corresponding test is fairly easy to deduce:<br /><blockquote>it "should have not have more x than y" do<br />_@obj.y = 0<br />_@obj.x = 1<br />_@obj.should_not be_valid<br />end<br /></blockquote>Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0tag:blogger.com,1999:blog-2191191501302936783.post-1785350492530353952009-01-09T14:16:00.005-05:002009-01-27T16:38:56.292-05:00From ESPN Page 2's the Sports Guy, Bill Simmons<a href="http://sports.espn.go.com/espn/page2/story?page=simmons/090109"></a><b></b><blockquote><a href="http://sports.espn.go.com/espn/page2/story?page=simmons/090109"><b>The Todd Marinovich Award for "Worst performance by a rookie QB"</b></a><br />Put it this way, Matty Ice: When the Cards are jumping the snap for four quarters, then one of them goes on a radio show saying they jumped every snap count because you called every play on "one," then you probably should enroll in a "How to vary your snap counts" class at Steve DeBerg College this summer. Although I love the potential of a Boston College product not being able to count to two.</blockquote><blockquote></blockquote><blockquote></blockquote>Yea, I realize this isn't a very good first post, but deal with it.Akshayhttp://www.blogger.com/profile/09337208067837415292noreply@blogger.com0