Opinion http://blog.samat.org/taxonomy/term/20/0 en Changes that caught my eye in Python 3.2 http://blog.samat.org/2011/02/22/Changes-that-caught-my-eye-in-Python-32 <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Python 3.2 was released a few days ago. Reading the <a href="http://docs.python.org/dev/whatsnew/3.2.html">What&#8217;s New document</a>, some of the stuff that caught my&nbsp;eye…</p> <p><a href="http://docs.python.org/dev/library/argparse.html"><code>argparse</code></a> is a new command-line option parsing module that replaces <a href="http://docs.python.org/dev/library/optparse.html"><code>optparse</code></a>. I found optparse, now deprecated, a pain to use—argparse looks a lot better. argparse can be used in older programs today with a third-party module (E.g. <a href="http://packages.debian.org/squeeze/python-argparse">argparse Debian package</a>). I actively avoided adding command-line parsing to my applications because optparse was such a pain—something now much less of a&nbsp;problem.</p> <p>The new <a href="http://docs.python.org/dev/library/concurrent.futures.html"><code>concurrent.futures</code> module</a> seems to be a port of <a href="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/package-summary.html">Java&#8217;s <code>java.util.concurrent</code> package</a>. I haven&#8217;t looked into it yet, but with the <abbr title="Global Interpreter Lock"><span class="caps">GIL</span></abbr>, how many people <i>really</i> care about Python threads? The simple examples given can easily be done with <a href="http://docs.python.org/dev/library/multiprocessing.html">Python&#8217;s <code>multiprocessing</code> module</a>, for both processes <i>and</i> threads, though without the Java paradigm. The threading module also has a new <a href="http://docs.python.org/dev/library/threading.html#threading.Barrier"><code>threading.Barrier</code> class</a>.</p> <p><a href="http://www.python.org/dev/peps/pep-3333"><abbr title="Web Server Gateway Interface"><span class="caps">WSGI</span></abbr> for Python 3</a> appears to be finalized. I&#8217;m looking forward to finally porting my <span class="caps">WSGI</span> web applications to Python 3. The <a href="http://docs.python.org/dev/library/email.html"><code>email</code> module</a> also received the same makeover that <span class="caps">WSGI</span> needed for Python&nbsp;3.</p> <p><a href="http://docs.python.org/dev/library/xml.etree.elementtree.html">ElementTree</a> has been updated to v1.3. Not that I care—lxml&#8217;s namespace handling is much better (which is to say, it&#8217;s just terrible as opposed to near unusable, as is with pure&nbsp;ElementTree).</p> <p>Quite possibly the most badass addition to Python 3.2: the <a href="http://docs.python.org/dev/library/functools.html#functools.lru_cache"><code>functools.lru_cache</code> decorator</a>. I use this pattern <i>all the time</i>, but have never gotten around to making it a generic class or decorator I could reuse across applications. With Python 3.2, I no longer need to. The idea: decorate a slow-performing function (where it makes sense) with functools.lru_cache, and Python will instantly and easily <a href="http://en.wikipedia.org/wiki/Memoize">memoize</a> the return values of that function making subsequent calls to the function&nbsp;faster.</p> <p><a href="http://docs.python.org/dev/library/html.html#html.escape"><code>html.escape()</code></a> is a simple function that escapes <span class="caps">HTML</span> markup for you with the appropriate <span class="caps">HTML</span>/<span class="caps">XML</span> entities (I forget how I used to do this usually; something in one of the <span class="caps">CGI</span> utils, I think? Or maybe stuff in my template&nbsp;engine…).</p> <p>This is just from a quick reading of the release notes—it&#8217;s very likely I missed something. What&#8217;d I miss? And what do you like that&#8217;s new in Python&nbsp;3.2?</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Programming" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Programming</a></div><div class="field-item odd"><a href="/tag/Python" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Python</a></div></div></div> Wed, 23 Feb 2011 01:30:03 +0000 Samat Jain 171 at http://blog.samat.org Deciphering Intel's new X25-M G2 SSD http://blog.samat.org/2009/07/22/deciphering-intels-new-x25-m-g2-ssd <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>My laptop hard disk is beginning to die. In what seems like perfect timing, Intel has released a refresh of their X25-M solid state disk (<span class="caps">SSD</span>) lineup (via <a href="http://www.engadget.com/2009/07/21/intels-34nm-ssds-go-official-no-320gb-model-in-sight/">Engadget</a> and <a href="http://arstechnica.com/hardware/news/2009/07/intels-new-34nm-ssds-cut-prices-by-60-percent-boost-speed.ars">Ars Technica</a>). The new models offer much over the old&nbsp;ones:</p> <ul> <li>Manufactured on a 35 nm vs 50 nm&nbsp;process</li> <li>Faster seek times, both read and write, leading to more I/O operations per second&nbsp;(<span class="caps">IOPS</span>)</li> <li>Significantly less expensive (Cited as a 60% price drop, though that&#8217;s comparing at-introduction MSRPs. It&#8217;s still at least 25%&nbsp;less.)</li> <li>Greater shock tolerance (1500 G vs 1000&nbsp;G)</li> <li>Future <span class="caps">TRIM</span> command support, via firmware upgrade. The <span class="caps">ATA</span> <span class="caps">TRIM</span> command mitigates <span class="caps">SSD</span> fragmentation problems that have been the cause of many performance&nbsp;issues.</li> </ul> <p>While die shrinks usually lead to parts that consume less power, the new X25-M uses the same amount of power when active (150 mW), and actually more power when idle (75 mW vs 60 mW). Still, it&#8217;s significantly less power than most laptop hard disk drives (my Hitachi 7K200 idles at 800 mW). [Source: <a href="http://www.intel.com/design/flash/nand/mainstream/index.htm">Intel&#8217;s technical specifications</a>]</p> <p>Of course, with all these changes, Intel decided to <strong>name the drives the same as the old ones</strong>, making it difficult for people who want to buy one right now to know what device they&#8217;re actually&nbsp;getting.</p> <p>This kind of inane marketing isn&#8217;t new, with the most infamous example on my mind being the Linksys <span class="caps">WRT54G</span>. Linksys (so far) as made 6 different revisions of the exact same model, drastically changing the internal hardware throughout the revisions. While most people don&#8217;t care, a few did, such as those in the modder community (like myself) who wanted to run modified firmwares. Purchasing anything took a lot of research on the part of the buyer. Manufacturers really should be in the business of making their products easier to buy, not more&nbsp;difficult.</p> <p>Fortunately, I&#8217;ve done the research for you: the new Intel SSDs do have slightly different part numbers, so you can tell the old parts from the new. For example, the old X25-M 80 <span class="caps">GB</span> disk has a part number of <span class="caps">SSDSA2MH080</span><strong>G1</strong>C1, while the newer model has a part number of <span class="caps">SSDSA2MH080</span><strong>G2</strong>01. That is, the part numbers contain either a &#8220;G1&#8221; or a &#8220;G2&#8221; corresponding to the&nbsp;revision.</p> <p>With the glowing positive reviews for the X25-M since it&#8217;s introduction a few months ago, its new lower price, and most importantly, the failure of my current laptop disk, I&#8217;m going to pick up one of these drives within a&nbsp;week.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Corporations" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Corporations</a></div><div class="field-item odd"><a href="/tag/Computer-Hardware" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Computer Hardware</a></div><div class="field-item even"><a href="/tag/Marketing" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Marketing</a></div></div></div> Wed, 22 Jul 2009 06:52:31 +0000 Samat Jain 158 at http://blog.samat.org Amarok 2 uses MySQL embedded as a metadata store http://blog.samat.org/2008/10/13/amarok-2-uses-mysql-embedded-metadata-store <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>There&#8217;s been a bit of turmoil in the Amarok and <span class="caps">KDE</span> communities the past week with Amarok&#8217;s decision to only support MySQL Embedded in Amarok 2. Jeff Mitchell has written about the <a href="http://amarok.kde.org/blog/archives/812-MySQL-in-Amarok-2-The-Reality.html#extended">Amarok design decisions made</a>.</p> <p>I&#8217;m a little bothered by this, as it forgeos all the &#8220;semantic desktop&#8221; work that has gone into <span class="caps">KDE</span> 4, namely what&#8217;s provided by the <a href="http://strigi.sourceforge.net/">Strigi</a> and <a href="http://nepomuk.semanticdesktop.org/">Nepomuk</a> libraries. One thing the whole semantic desktop concept entails is that other applications will be able use data another application stored, but without care to what that other application was or how it was stored. For example, I should be able to share the list of all tracks in my music library, how many times I&#8217;ve played tracks, what tracks I think are my favorite, etc across music players. This kind of abstraction is, obviously, good for users, but bad for developers of proprietary software. They don&#8217;t want you to easily switch between applications that they do not control. Amarok switching to it&#8217;s own database store is a stab at this kind of desktop interoperability. I&#8217;ve my own thoughts to add, though, that support what the developers are&nbsp;doing&#8230;</p> <p><a href="http://amarok.kde.org/">Amarok</a> is an awesome application. Dare I say, it&#8217;s a <em>killer</em> application on Linux&#8212;on several occasions this past year I&#8217;ve recommended people install Linux just so that they could play with Amarok and see how much better it is compared to what they were using (yes, I&#8217;m looking at you,&nbsp;iTunes).</p> <p>Before Amarok, I used <a href="http://musicpd.org/">Music Player Daemon (mpd)</a>. I stopped using it after a while: the playlist management wasn&#8217;t very good; it would eat those playlists that I spent a lot of effort to make; the GUIs available at the time were lacking; and it was very slow when working with tens of thousands of songs. Some of this may have changed but I&#8217;ve not been motivated to look&nbsp;back.</p> <p>Enter Amarok: I switched because the playlist management was so much better. I setup a MySQL server on my workstation to store metadata, as SQLite was much too slow. Amarok backed with MySQL is very fast&#8212;I dare others to find a library-based music manager that is faster with the number of songs I&#8217;ve thrown at&nbsp;it.</p> <p>Balancing desktop interoperability with performance is a delicate balancing act. Interoperability is the hot thing these days&#8212;look at how Apple&#8217;s line of integrated software and hardware continue to sip market share from the Microsoft-powered desktop. But when it comes down to it, performance and other more perceived benefits are going to win out over desktop interoperability. The Amarok developers&#8217; decision to go with MySQL embedded is a good one that will hopefully keep people moving to Amarok over proprietary&nbsp;alternatives.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Linux" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Linux</a></div><div class="field-item odd"><a href="/tag/Software" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Software</a></div><div class="field-item even"><a href="/tag/KDE" typeof="skos:Concept" property="rdfs:label skos:prefLabel">KDE</a></div></div></div> Mon, 13 Oct 2008 06:16:25 +0000 Samat Jain 146 at http://blog.samat.org jQuery: the new defacto Javascript web framework http://blog.samat.org/2008/10/02/jquery-the-new-defacto-javascript-web-framework <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>News from a couple days ago: both <a href="http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/">Microsoft and Nokia are now including the jQuery Javascript framework as part of their development kits</a>. That is: jQuery will be part of <a href="http://www.asp.net/ajax/">Microsoft&#8217;s <span class="caps">ASP</span>.<span class="caps">NET</span> <span class="caps">AJAX</span> framework</a> and be available for use in applications written for <span class="caps">ASP</span>.<span class="caps">NET</span>; and jQuery will also be distributed on millions of Nokia&nbsp;phones.</p> <p>Defacto standards, I believe, are a good way to inform the development of real standards. Standards developed the other way around, at least in the tech industry, have had a habit of taking a very long time to reach end consumers&#8230; for example, how many decades has it taken for your average web user to gain access to a fully <span class="caps">CSS2</span>-compliant web browser? How many more decades will it take for <span class="caps">OASIS</span>&#8217;s OpenDocument format to supplant Microsoft Word and its *.doc&nbsp;files?</p> <p>Hopefully, this is the beginning of a path that will lead to jQuery&#8217;s inclusion into the Javascript language, as well as initiatives that will improve jQuery&#8217;s&nbsp;performance.</p> <p>I like the fact that Microsoft and Nokia are not trying to reinvent the wheel, and roll their own Javascript frameworks. Sun did this with <a href="http://java.sun.com/javaee/javaserverfaces/">Java Server Faces</a>. A frequent lament with <span class="caps">JSF</span> is that it&#8217;s nearly impossible to customize any of the widgets. There is too much complex, custom Javascript, and the adoption of the frameworks used makes figuring out how to work with them&nbsp;difficult.</p> <p>Also, as <a href="http://tirania.org/blog/archive/2008/Oct-01.html">others have noted</a>, this is the first time Microsoft itself is distributing an open-source project with one of their products. A sign of things to&nbsp;come?</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Programming" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Programming</a></div><div class="field-item odd"><a href="/tag/Software" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Software</a></div><div class="field-item even"><a href="/tag/Microsoft" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Microsoft</a></div><div class="field-item odd"><a href="/tag/Java" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Java</a></div><div class="field-item even"><a href="/tag/jQuery" typeof="skos:Concept" property="rdfs:label skos:prefLabel">jQuery</a></div><div class="field-item odd"><a href="/tag/Javascript" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Javascript</a></div></div></div> Thu, 02 Oct 2008 16:38:47 +0000 Samat Jain 142 at http://blog.samat.org Has the war on spam been lost? http://blog.samat.org/2007/03/06/has-the-war-on-spam-been-lost <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>O&#8217;Reilly Radar has an article written by Dale Dougherty, a roundtable set of opinions on <a href="http://radar.oreilly.com/archives/2007/03/another_war_wer.html">whether the war on spam can be won</a>. <a href="http://rc3.org/2007/03/the_war_on_spam.php">Rafe Colburn</a> also has his own&nbsp;response.</p> <p>Rafe&#8217;s solution is to use <a href="http://www.gmail.com/">GMail</a>. In the Dougherty&#8217;s article, Paul Vixie mentions that the internet is going to become a &#8220;walled garden;&#8221; relying on proprietary technology provided from a single company is the same thing in my eyes. There&#8217;s no way I&#8217;m going to advocate a proprietary solution for something as important as my&nbsp;e-mail.</p> <p>Eric Allman mentions <acronym title="DomainKeys Identified Mail"><span class="caps">DKIM</span></acronym>, which I think is an excellent weapon in the war on spam. I&#8217;m not using it however, as it doesn&#8217;t fit in with the way I use e-mail, and <acronym title="Mail User Agent"><span class="caps">MUA</span></acronym> (e-mail client) and <acronym title="Mail Transfer Agent"><span class="caps">MTA</span></acronym> (e-mail <span class="caps">SMTP</span> server, essentially) is extremely&nbsp;sparse.</p> <p>My unfortunately ineffective and impractical solution to this problem is use of <a href="http://pgp.net/"><span class="caps">PGP</span></a>. Besides identity verification via digital signatures, it is also a generic platform for encrypted digital communication, and provides a distributed, robust trust model. Unfortunately, its learning curve is high, and that is why it&#8217;s basically been a failure for the past 10&nbsp;yrs.</p> <p>Though, lack of user education is why the spam problem keeps getting worse too. It&#8217;s users who click links in spam e-mail; it&#8217;s users who allow spammers to take over their machines through their negligence in applying security updates; it&#8217;s users (sometimes) who allow their identities to be&nbsp;stolen.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Politics" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Politics</a></div><div class="field-item odd"><a href="/tag/Software" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Software</a></div></div></div> Tue, 06 Mar 2007 23:34:23 +0000 Samat Jain 139 at http://blog.samat.org The GNOME font dialog, why? http://blog.samat.org/2007/02/18/the-gnome-font-dialog-why <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Fredico M Quintero pointed out <a href="http://primates.ximian.com/~federico/news-2007-01.html#font-sizes">some serious flaws in <span class="caps">GNOME</span>&#8217;s font configuration dialog</a>; the <a href="http://primates.ximian.com/~glesage/wiki/doku.php?id=font-config-dialog">Novell Product Design wiki also describes some problems</a>. In a sentence that fits in with what I believe is <span class="caps">GNOME</span>&#8217;s “simplicity mantra”, <b><span class="caps">GNOME</span> should just get rid of its useless, confusing fonts configuration dialog</b>.</p> <p>Why does it have a font configuration dialog anyway? Well, unfortunately, <span class="caps">GNOME</span>&#8217;s setting daemon completely ignores several fontconfig settings and instead uses its own settings for things like antialiasing type, whether hinting is used, <span class="caps">DPI</span>, etc. You need the font configuration dialog to change these settings, or you have to dig through gconf. Most of this was put in place probably to subvert a broken X setup; instead of implementing these hack-ish workarounds <span class="caps">GNOME</span> should instead push to fix X&nbsp;instead.</p> <p>It&#8217;s extremely difficult to discern the difference between the different types of antialiasing. <span class="caps">GNOME</span>&#8217;s dialog doesn&#8217;t let you select arbitrary text, or let you render text in-place so that you can quickly compare between different antialiasing styles and subpixel orderings. These settings, along with <span class="caps">DPI</span>, are unlike the rest of the settings in the font configuration dialog because they don&#8217;t apply immediately. They only affect newly started applications, and the dialog does nothing to alert you of&nbsp;this.</p> <p>Do users really need to be able to select subpixel ordering from a dialog? There are very few <span class="caps">LCD</span> monitors that do not use an <span class="caps">RGB</span> subpixel ordering. The very few people who rotate their <span class="caps">LCD</span> monitors into portrait mode (including me, see my past article <a href="/weblog/20060419-misery-with-online-reading-of-pdfs-and-the-need-for-portrait-monitors.html">Misery with online reading of PDFs and the need for portrait monitors</a>) would use <span class="caps">VRGB</span>. Why not just set <span class="caps">RGB</span> subpixel ordering if the user is using an <span class="caps">LCD</span>? <span class="caps">VRGB</span> if their display is rotated? Again, these are things <span class="caps">GNOME</span> could discover by querying&nbsp;X&#8230;</p> <p>Lastly, do users need to change the fonts used by their <span class="caps">UI</span> in the first place? The majority of Windows and MacOS X users don&#8217;t deviate from the defaults at all—why would <span class="caps">GNOME</span> users be given a choice through this confusing dialog? <span class="caps">GNOME</span> instead should use the fontconfig aliases “Sans”, “Sans Serif”, and “Monospace” rather than letting users choose fonts. A fresh <span class="caps">GNOME</span> setup already uses these aliases as the defaults&nbsp;anyway.</p> <p>Of the settings in the font configuration dialog users may actually want to set, whether to use antialiasing or not is the only one that sticks out to me as needing an option. I think that the dialog could be replaced with a simple, descriptive checkbox somewhere that read “Antialias text” that would toggle all the heuristics I&#8217;ve described&nbsp;above.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Linux" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Linux</a></div><div class="field-item odd"><a href="/tag/Usability" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Usability</a></div><div class="field-item even"><a href="/tag/GNOME" typeof="skos:Concept" property="rdfs:label skos:prefLabel">GNOME</a></div></div></div> Mon, 19 Feb 2007 02:23:55 +0000 Samat Jain 136 at http://blog.samat.org India's rejection of the OLPC $100 laptop http://blog.samat.org/2006/07/29/indias-rejection-of-the-olpc-100-laptop <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>India&#8217;s Ministry of Education has said that <a href="http://www.theregister.co.uk/2006/07/26/india_says_no_to_olpc/">India will not take part in the $100 laptop project</a> [The Register]. Quoting the news&nbsp;article:</p> <blockquote> Education dismissed the laptop as &#8220;pedagogically suspect&#8221;. Education Secretary Sudeep Banerjee said: &#8220;We cannot visualise a situation for decades when we can go beyone the pilot stage. We need classrooms and teachers more urgently than fancy tools.&#8221; </blockquote> <p><a href="http://www.playlibrary.com/2006/07/28/india-rejects-laptops-for-children/">The Playground</a>, as well as many Internet commentators, think this is &#8220;fair reasoning.&#8221; I don&#8217;t see how&#8211;who ever said the laptop would replace teachers or classrooms? How exactly would they do that&#8211;is this supposed to make any&nbsp;sense?</p> <p>Yes, the $100 laptop is a &#8220;fancy tool.&#8221; It is a fancy tool to facilitate a new age of electronic learning. Funds used to purchase these laptops should not be taken away from providing facilities and teachers, but instead on school supplies such as paper, pencils, and textbooks which themselves are generally&nbsp;expensive.</p> <p>While India and much of the developing world may need more teachers and classrooms, yes, it&#8217;s a completely different problem that the $100 laptop isn&#8217;t meant to address. I&#8217;m waiting to see if there is valid criticism from India&#8217;s government in the&nbsp;future.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Politics" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Politics</a></div><div class="field-item odd"><a href="/tag/OLPC" typeof="skos:Concept" property="rdfs:label skos:prefLabel">OLPC</a></div></div></div> Sat, 29 Jul 2006 05:59:35 +0000 Samat Jain 117 at http://blog.samat.org Lenovo to discontinue Linux support for Thinkpads http://blog.samat.org/2006/06/05/lenovo-to-discontinue-linux-support-for-thinkpads <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><a href="http://www.lenovo.com/">Lenovo</a>, the company that bought <span class="caps">IBM</span>&#8217;s personal computer division, including the Thinkpad brand, has decided to <a href="http://www.crn.com/sections/infrastructure/infrastructure.jhtml?articleId=188701277">no longer support Linux</a> on their computer&nbsp;products.</p> <p>I do not see how the customer benefits from this, because Lenovo is effectively offering its customers <i>less</i> choice. Supporting Linux tends to not cost anything up front and instead affects design decisions, decisions that lead to a better, more high-quality product. It is not as if much was spent on marketing Linux offerings,&nbsp;either.</p> <p>This move is probably to appease Microsoft, who almost surely offers Lenovo discount Windows licenses for shunning Linux. This will improve Lenovo&#8217;s bottom line, but will not give the consumer any more quality, any more service or support, and probably no change in&nbsp;price.</p> <p>Of course, not supporting Linux has never stopped people from trying to run it anyway. But, think of it as a sign of things to come. No longer having <i>any</i> inclination to support Linux means that in the future they can go with completely proprietary components. Proprietary components that won&#8217;t work in Linux, and are almost universally more unstable and buggy, on Windows and Linux, than their non-proprietary&nbsp;counterparts.</p> <p>So, I&#8217;m calling this the beginning of the end of the ThinkPad&#8217;s legendary quality. Smart move&nbsp;Lenovo.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Linux" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Linux</a></div><div class="field-item odd"><a href="/tag/Corporations" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Corporations</a></div><div class="field-item even"><a href="/tag/ThinkPad" typeof="skos:Concept" property="rdfs:label skos:prefLabel">ThinkPad</a></div></div></div> Tue, 06 Jun 2006 04:20:02 +0000 Samat Jain 110 at http://blog.samat.org Distributing sources with modern Linux distributions http://blog.samat.org/2006/06/04/distributing-sources-with-modern-linux-distributions <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Playing around with Ubuntu 6.06, I noticed that in the <i>Software Preferences</i>, that part of the default &#8220;Channels&#8221; (which are in actuality lines in /etc/apt/sources.list) include those for the Ubuntu&#8217;s packages&#8217;&nbsp;sources.</p> <p>I&#8217;m not sure why these are there by default&#8230; How many users actually need to recompile a package when the distribution came with a binary one? In my 5 yrs of using Linux, I&#8217;ve never needed to. Yes, I understand the whole free software and <span class="caps">GPL</span> thing, where sources must be available with software. This doesn&#8217;t mean that new users (a large part of Ubuntu&#8217;s user base) need to waste bandwidth and disk space on things they will hopefully <i>never</i> need to&nbsp;use.</p> <p>I don&#8217;t see the practical use for distributing sources with a distribution. If you do need to compile something to get an install up and running, you may need the source for one single piece of software, and you won&#8217;t be going to the sources included with the distribution&#8211;after all, if their original binary package didn&#8217;t help, what use is re-creating a binary for the same version? You&#8217;ll be getting the latest version off the Internet and using that. It probably won&#8217;t even be by the makers of the distribution, but upstream somewhere. E.g. ditching a vendor kernel for one from <a href="http://kernel.org/">kernel.org</a>.</p> <p>With Ubuntu, I can&#8217;t really complain much, as one only ends up downloading some relatively small text files. Back in the days when I used Redhat it was a different story: I&#8217;d spend a month downloading the latest Redhat <span class="caps">ISO</span> image, half of which was source RPMs that as a Linux newbie I had no use&nbsp;for.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Linux" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Linux</a></div><div class="field-item odd"><a href="/tag/CentOS" typeof="skos:Concept" property="rdfs:label skos:prefLabel">CentOS</a></div><div class="field-item even"><a href="/tag/Ubuntu" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Ubuntu</a></div></div></div> Sun, 04 Jun 2006 10:27:34 +0000 Samat Jain 107 at http://blog.samat.org monoprice.com vs Dell OEM DVI cable--the thick vs the thin http://blog.samat.org/2006/05/06/monoprice-com-vs-dell-oem-dvi-cable--the-thick-vs-the-thin <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>The latest rearrangement of my desk has had one goal: to get my <span class="caps">CPU</span> tower <span class="caps">FAR</span> away from me, so the noise does not drive me crazy. Doing this, however, has left my 6-foot <acronym title="digital video interface"><span class="caps">DVI</span></acronym> cables a little&nbsp;short.</p> <p><figure class="right"> <img typeof="foaf:Image" src="http://blog.samat.org/sites/blog.samat.org/files/styles/large/public/monoprice-vs-dell-oem.jpg" alt="" title="" /> </figure></p> <p>I did not feel like paying a lot, and after hearing good reviews, I went and bought a few <a href="http://www.monoprice.com/products/product.asp?c_id=102&cp_id=10209&cs_id=1020901&p_id=2687&seq=1&format=2&style=">monoprice.com&#8217;s 10 ft premium 24-<span class="caps">AWG</span> <span class="caps">DVI</span> cables</a>.</p> <p>These things are <i>thick</i>. As you can see in the photo, at least three times thicker than a Dell <acronym title="original equipment manufacturer"><span class="caps">OEM</span></acronym> cable. The picture is not really to scale, and because the monoprice.com cable was new and so thick, I could not get it to lie&nbsp;flat.</p> <p>Seriously, if you could strangle someone with the Dell <span class="caps">DVI</span> cable, you could just use the weight and stiffness of the monoprice.com cable to beat someone to&nbsp;death.</p> <p>I&#8217;m not sure if I can draw much from this, though: the new cables are what are known as &#8220;dual-link&#8221; <span class="caps">DVI</span> cables, and the old ones were &#8220;single-link.&#8221; Dual link cables essentially have twice the number of wires, and are used to provide a digital signal to high-resolution displays such as the Dell <span class="caps">3007FPW</span> and the 30&#8221; Apple Cinema Display. Also, for all their thickness, the picture does not really look any&nbsp;different.</p> <p>But they work, and they were pretty cheap. I&#8217;m glad I didn&#8217;t go down to CompUSA or Best Buy and end up paying too&nbsp;much&#8230;</p> <p>I bought two cables, and am using them to hook up my dual Dell <span class="caps">2405FPW</span> displays to my machine. They work great so&nbsp;far.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Computer-Hardware" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Computer Hardware</a></div></div></div> Sat, 06 May 2006 23:25:47 +0000 Samat Jain 93 at http://blog.samat.org Google sues Microsoft over default search engine in Internet Explorer 7 http://blog.samat.org/2006/05/04/google-sues-microsoft-over-default-search-engine-in-internet-explorer-7 <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><a href="http://news.com.com/New+Microsoft+browser+raises+Googles+hackles/2100-1032_3-6066759.html">Google sues Microsoft</a>. Google claims that Microsoft is a monopoly, and by setting the default search engine in Microsoft&#8217;s Internet Explorer 7 to Microsoft-owned <a href="http://search.msn.com/"><span class="caps">MSN</span> Search</a>, they are abusing their power as a&nbsp;monopoly.</p> <p>I do not see Google making a good case here&#8230; <span class="caps">MSN</span> Search is a Microsoft product, as is Internet Explorer 7 and Windows. Microsoft has the right to promote its own products, and so far there is no evidence that Microsoft prevents or impairs use of Google or any other search&nbsp;engine.</p> <p>Microsoft does not appear to care that Google is the default search engine for America Online&#8217;s client software, <a href="http://www.mozilla.com">Mozilla Firefox</a>, Opera, Konqueror, and Safari. It can be difficult to add <span class="caps">MSN</span> Search to these browsers as well: in Firefox, it took as many as 6-clicks and skimming through several pages to add <span class="caps">MSN</span> Search (it is now down to 2 clicks, with more simple&nbsp;pages).</p> <p>Before you compare this to the Netscape versus Microsoft antitrust lawsuit back in the 1990s, understand it is a bit different. The case did not get traction till the issue of Internet Explorer using secret Windows <acronym title="application programming interface"><span class="caps">API</span></acronym>s came up. Microsoft could use these secret APIs to make its browser faster; since they were secret no other 3rd party would be able to use them. It gives the Microsoft product a distinct, unfair advantage: it&#8217;s an abuse of power as a&nbsp;monopoly.</p> <p>So far, there is no evidence of Microsoft doing anything like this in Google&#8217;s&nbsp;lawsuit.</p> <p>I think it&#8217;s pretty clear Microsoft and Google are at war. And because everyone and their grandmother uses Windows, Microsoft will win. Of course, this will change if Google decides to introduce their own operating system, and can market it well enough so that a significant amount of people switch to it. Things are going to get&nbsp;interesting&#8230;</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Corporations" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Corporations</a></div><div class="field-item odd"><a href="/tag/Microsoft" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Microsoft</a></div></div></div> Thu, 04 May 2006 05:17:31 +0000 Samat Jain 91 at http://blog.samat.org Python 2.5 alpha released http://blog.samat.org/2006/04/05/python-2-5-alpha-released <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><a href="http://www.python.org/download/releases/2.5/">Python 2.5&#8217;s first alpha has been released</a>. From a quick look at the <a href="http://docs.python.org/dev/whatsnew/whatsnew25.html">What&#8217;s New in Python 2.5 document</a>, what I thought was interesting&#8230; </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Programming" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Programming</a></div><div class="field-item odd"><a href="/tag/Python" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Python</a></div></div></div> Thu, 06 Apr 2006 00:00:00 +0000 Samat Jain 84 at http://blog.samat.org New TV show: Rome http://blog.samat.org/2005/09/07/new_tv_show_rome <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><span class="caps">HBO</span> has a new <span class="caps">TV</span> show: <a href="http://www.hbo.com/rome/">Rome</a>. It&#8217;s about&#8230; Rome. Particularly, the fall of the Roman Republic and the rise of the Roman empire. Episode 2 aired this week, and I&#8217;m so far liking how they&#8217;re <em>not</em> improvising Roman history to make for good <span class="caps">TV</span>. Well, <span class="caps">OK</span>, they&nbsp;are.</p> <p>It&#8217;s typical <span class="caps">HBO</span>. There&#8217;s totally uncensored sex. Not enough violence in my opinion (so far anyway). And totally superb acting. The show keeps historical context, at least as well as I know it, as a clear&nbsp;focus.</p> <p>Though, it&#8217;s only the end of episode 2, and Caesar is already marching on Rome. This looks like it&#8217;s going to be a short&nbsp;series&#8230;</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Entertainment" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Entertainment</a></div><div class="field-item odd"><a href="/tag/Television" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Television</a></div></div></div> Wed, 07 Sep 2005 05:04:00 +0000 Samat Jain 54 at http://blog.samat.org My take on Grand Theft Auto: San Andreas http://blog.samat.org/2005/06/22/my_take_on_grand_theft_auto_san_andreas <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I finished <a href="http://www.rockstargames.com/sanandreas/">Grand Theft Auto: San Andreas</a> for the <span class="caps">PC</span> this past week. Overall, I liked it&#8211;better than the previous games Grand Theft Auto: Vice City and Grand Theft Auto&nbsp;3.</p> <p>Rockstar really added some pointless crap, probably to appeal to a larger audience. I almost felt like I was playing The Sims (why is this game still on the top 10? I mean, really, they have to run out of idiots to buy it?) when I had to work-out <span class="caps">CJ</span> (your character), muscle-up <span class="caps">CJ</span>, feed <span class="caps">CJ</span>, go out on dates with <span class="caps">CJ</span>&#8217;s multiple girlfriends, and worst of all, <span class="caps">DANCE</span> <span class="caps">DANCE</span>&nbsp;<span class="caps">CJ</span>.</p> <p>The game starts off sort of slow at first, with a lot of emphasis on story. Not a particularly wonderful story either, I didn&#8217;t really get into it, and almost stopped playing because of how boring it was getting (one of the missions is to drive your homies to the equivalent of the Taco Bell&nbsp;drive-thru).</p> <p>The girlfriends suck (not in that way). Probably alluding to the fact that I don&#8217;t have a girlfriend myself (ehhh&#8230; after the last one), I took great glee in shooting all the girlfriends (who weren&#8217;t crucial to the story) in the head with my&nbsp;<span class="caps">AK</span>-47.</p> <p>One of things that bothered me about the Vice City game in the series was how much smaller it was than Grand Theft Auto 3&#8211;San Andreas rectified this completely, the game world is <span class="caps">HUGE</span>, with the performance much better than <span class="caps">GTA3</span>. Part of the story, your character wakes up and asks &#8220;Where am I?&#8221; to which you&#8217;re given the response &#8220;In the middle of fucking nowhere.&#8221; And, you are! It took me 10 minutes of driving in-game (though, I later found out faster ways) to get back to the part of the map I was&nbsp;previously.</p> <p>You can tell they didn&#8217;t give <em>too</em> much thought into the <span class="caps">PC</span> port with respect to game control. Controlling airplanes is next to impossible to do with the keyboard. Not until I took out my gamepad could I even get the airplane to stay level in the air. What I thought was the absolutely most difficult mission in the game (and all 3 of the 3D ones, and actually was pretty difficult in the original 2D Grand theft Auto) was the <span class="caps">RC</span> missions, particularly the <span class="caps">RC</span> plane. Luckily, apparently you don&#8217;t have to win this mission to complete the game. The camera movement when driving is not too great either (different than from previous games), but you get used it after a&nbsp;while.</p> <p>So, yeah, I liked it. Best single-player game I&#8217;ve played in a long while. Too bad there is no multiplayer. </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tag/Video-Games" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Video Games</a></div></div></div> Wed, 22 Jun 2005 15:32:00 +0000 Samat Jain 38 at http://blog.samat.org