Archive for March, 2008

Using Spare Laptop LCD as a VGA Monitor

Monday, March 31st, 2008

We have bunch of old broken laptops lying around at work. Most of them are unusable, but I don’t like to throw them out because they are a great resource of spare parts. Sometimes I’m able to dig in that pile and use stuff like display hinges, bezels, arm rests, touch pads and etc to quickly fix some of the older machines that are still floating around. Naturally all these machines have been stripped out of memory, hard drives and CPU’s long time ago. One thing that doesn’t get replaced that often are LCD’s. There is probably 6 or 7 displays like the one below in that pile.

Spare Laptop LCD

They are just sitting there and not doing anything constructive, so I started thinking about putting them to a good use. There is another problem I often face – lack of spare monitors. Every time someone brings in a desktop for service we have to go an pull a monitor from one of the currently unused machines available in the office. Which is not the end of the world, since I usually have some flat surface available to set it all up.

Sometimes however a friend or relative brings their machine to my house asking for help. This is where the fun begins. I do have a spare CRT up in the attic that I keep for just hat occasion. What I don’t have is space. When I’m fixing someone’s computer you will usually see a scene of pure mayhem on the floor of my room:

Family Tech Support

I’m usually forced to squeeze the old CRT, the desktop, the keyboard and mouse in the tiny little amount of free space between the bed and the TV, and essentially sit with my back wedged against my desk, occasionally turning around to Google something on my desktop in the back. I could buy a LCD screen, but even a tiny 15″ cheepo sells for almost $200 at neweg – which seems a bit high for something that I would use twice a year, and then stash in the attic or at the bottom of some closet.

This is where the two needs begin to merge: my need to do something useful with the spare laptop LCD’s and my need for ultra-small portable LCD screen. I figured that if I could find an Laptop LCD to VGA adapter I would be all set. Or not…

It turns out that I’m not the only person who had this brilliant idea. Unfortunately, it turns out that it is not as easy as one might think. The laptop LCD has a digital output that is designed to pin into a controller circuit which in turn talks to the video card. These things are mostly proprietary, not standardized and not widely available. The difficult part is figuring out exactly what kind of controller circuit do you need, then locating and ordering one. It’s definitely possible though.

For example, I have found this blog describing the process. Unfortunately it is very light on technical details to the point of being relatively useless. It’s more or less photographic proof that it is possible, but not much more:

dyilcd.jpg

The last entry is particularly discouraging – apparently the merchant who was supplying the circuits used in the example no longer produces them, and is currently out of stock. :(

A slightly more informative but less complete post can be found on the mp3car forum. They actually post a link to a vendor who seems to have quite a few different models for sale. There are two caveats though – the vendor seems to be located in Europe, and they only sell in bulk (100 units of more) which makes them useless as a resource. I found few others but none of them was really selling anything online.

Then I remembered a piece of old internet wisdom – if it exist, someone is probably selling it on ebay. Believe it or not, I found some interesting looking kits for sale. Here is a closeup pic of one of them:

tft_lcd_panel__back_light_1.JPG

It is a TFT LCD controller with a back light inverter, which seems to be exactly what I would need. It also looks astonishingly simillar to what the dude in the first blog I linked to was using. Good news is they seem to be selling for $35 + shipping and handling (which will probably be another $30 or more knowing these types of ebay stores). So I’m tempted. It could work, provided that my LCD is one of the models supported by this device and that there are no funky drivers required to actually run this thing.

Anyone ever did something like that? Should I do it? It could make for a nice, space saving, ultra portable monitor, provided that I could find a semi-decent frame to mount the circuit and LCD…

Taking Weekends Off

Saturday, March 29th, 2008

Just wanted to drop a quick note here – I won’t be doing Saturday posts anymore. I already gave up on Sunday posting back in January and I mentioned I might go down to a much healthier 5 day schedule. So this is what I’m doing right now.

This doesn’t really mean anything negative. Rather, I noticed that over time I’ve been putting more and more thought, research and time into every post here. More often than not I’m actually trying to write something that’s either meaningful, interesting or worth discussing rather than just posting 3 paragraph rants apropos the newest hot issue found via digg or slashdot. More often than not I’m trying to post original material here rather than reiterating stuff that you can easily find elsewhere. I don’t know if this is gradual improvement in quality, but it does tend to be more time consuming. So the drop in posting frequency is good for my sanity, and will hopefully let me queue up posts, and perhaps even proofread all of them before they go live. :P

I don’t think I will drop below 5 days, but perhaps that will turn out to be necessary in the future. For now though, you can expect to see posts appearing here Mon-Fri usually between 11am and noon (although Google reader doesn’t pick it up until few hours later).

Only Trolls wear Martian Headsets

Friday, March 28th, 2008

I wasn’t going to comment on Joel Spolsky’s Martian Headsets ramble for two reasons: it was an obvious troll-bait, and people much smarter than me already pounded it into the ground. But alas, the Spolsky FUD seems to have infected one of the less known blogs that I really enjoy. I don’t blame Shamus though – he is a good man. It’s just that well written FUD is contagious like brain rot. And Spolsky went all out – he even has pretty pictures all over that article. So I kinda feel that I must counter measure this until it spreads any further.

Joel is essentially trying to tell us that W3C standards are bad because there is no 100% compliant implementation in existence. Therefore he advocates completely ignoring them, and and claims that the efforts make IE8 default to standards mode are ill conceived.

Only he is missing the forest of the trees here. If there is no standards, how can we even strive for interoperability between browsers? Joel doesn’t care because he only uses IE and he is convinced that 98% of the universe does the same (which is gross exaggeration). In the real world however, the standards give us an ideal towards which we can strive for. Different platforms will implement things in different ways, and by comparing implementations we can slowly improve and creep toward that ideal. Sooner or later everyone will be roughly on the same page, and the differences in implementations will be small enough to be negligible. Stefano Mazzocchi does a much better job of describing this process, so take a look on his post on the topic.

In a way this has already happened. Most of the major browsers out there including Firefox, Opera and Safari are perfectly happy displaying the same pages in very similar ways. The standards problem only becomes apparent when IE enters the equation – it has always been a problem. If we bring IE8 into the manifold, then this inter operation and compability issue will slowly phase itself out of existence. I think Sam Ruby hit he nail on the head when he said:

Web pages like Google Maps work on other browsers. Not because of a mythical, platonic “standard” in scare quotes. But because of standards that are actually implemented compatibly. And because in standards mode, these other browsers don’t implement the non-standard IE only Javascript objects that Google Maps checks for.

After reading Joel’s long winded rant, one might come to the conclusion that these “standards” are some truly arcane mysterious texts. But they are not. Granted, they are not simple and straightforward, but it’s not like there is no existing body of knowledge, and interpretations out there. Volumes of text have been written on the nuances of these standards, and there are groups and communities out there completely devoted to pouring over these documents and interpreting them. There are people who specialize in this stuff and will actually hire them to consult you on any and all standards related questions and concerns. But Joel conveniently ignores this fact. He goes on to say:

The precise problem here is that you’re pretending that there’s one standard, but since nobody has a way to test against the standard, it’s not a real standard.

Mark Pilgrim, whose post on this topic is hilarious, eloquently sums with one short sentence:

I have never heard of test suites.

There are test suites, applications and comparison tables you can use. And if anything else fails, you can go straight to the source and hit up the W3C mailing lists. But Joel is not done, he goes on this weird tangent – just bear with me while I quote it in it’s entirety:

If you’ve ever visited the ultra-orthodox Jewish communities of Jerusalem, all of whom agree in complete and utter adherence to every iota of Jewish law, you will discover that despite general agreement on what constitutes kosher food, that you will not find a rabbi from one ultra-orthodox community who is willing to eat at the home of a rabbi from a different ultra-orthodox community. And the web designers are discovering what the Jews of Mea Shearim have known for decades: just because you all agree to follow one book doesn’t ensure compatibility, because the laws are so complex and complicated and convoluted that it’s almost impossible to understand them all well enough to avoid traps and landmines, and you’re safer just asking for the fruit plate.

WTF in hell? I actually laughed as I was reading this. I hope you find this funny too, because this whole big paragraph shows exactly where Joel is coming from, and how far he is of the mark. They are nothing like religious orthodoxy. The interpretation of religious scriptures accepted by the Mea Shearim Jews is pretty much set in stone. In 50 years they will probably be using the same interpretation – perhaps slightly adjusted to account for advances in technology and changing lifestyles. Implementations of web standards are not meant to be religious orthodoxies. If MS doesn’t make IE default to standards mode now, then they will be in the exact same situation in a year or two when they are ready to release IE9. If we keep defaulting to quirks mode, and continue rendering web pages in the same half assed IE6-7 mode, then why even bother implementing the standards? Why even make any changes to the rendering engine? Let’s freeze the code at IE7 stage and only improve the browser by adding UI features from now on. That seems to be what Joel is implicitly suggesting.

Gordon Weakilem makes a very good point when he says:

I mean, really, after Joel harping on about “smart, gets things done”, would Joel accept “Those documents are super confusing” as an excuse in an interview, or for why a developer doesn’t understand something like operator precedence? Really, is there an excuse for ignorant or lazy?

Indeed my friends. Joel’s whole rant is about how difficult, confusing and impossible to implement the standards are. I guess we ought to give up then, right? A mark of a good software developer is that he simply abandons a project at the first sign of trouble. :P

But the best part is that even Joels summary near the end of his lengthy triad contains a hidden contradiction:

98% of the world will install IE8 and say, “It has bugs and I can’t see my sites.” They don’t give a flicking flick about your stupid religious enthusiasm for making web browsers which conform to some mythical, platonic “standard” that is not actually implemented anywhere. They don’t want to hear your stories about messy hacks. They want web browsers that work with actual web sites.

Let’s for a minute assume that 98% of the world does use Windows, and that they will all install IE. If my website doesn’t work in IE8 on the release date, guess who is going to get publicly flogged and then castrated by the upper management? If you guessed it was me, you are right. My boss is not going to give a flying fuck that the IE changed the way it is rendering pages. The people who will notice this change the most will be web developers who will have to fix hundreds of web pages, not the customers. No major company will allow their page to remain broken once IE8 release is imminent.

Here is what I secretly think will happen – IE8 will get released, and end users will blog at length about all the new features in the browser. Most of them won’t even notice the standards thing. Few legacy applications, and poorly maintained pages will break, but Google, Yahoo, Myspace, Facebook and all the other big and popular sites will work like they always did, or better.

Sure, few people here and there will blame IE8. Are they going to install Firefox? Yeah, right. The people who know about Firefox either don’t like it, or are already using it. IE8 breaking won’t push people towards alternative browsers. And surely it won’t make them abandon windows altogether. That would be the day! Worst that will happen is that they will downgrade back to IE7 – if they can figure out how to do it. Most of the clueless users from Joel’s example will simply shrug it off and learn to live with it.

You don’t even want to know hoe many times I heard my users complain about “the new Microsoft” (IE7 in luser speak) that got installed on their computers. When I offered to downgrade them back to IE6 almost all responded with a surprised “you can actually do that?”. Users will survive – they are already used to Microsoft breaking their shit.

So there. This is my Spolsky headsets rant. Regrettably, that’s another link to Joels page, and probably few dozen page views (considering my click through rates) and few extra dollars in his adsense account. Maybe I should take cue from Mr. Spolski and post some horribly inflamatory, nonsense every once in a while and then just sit back and rake in the cash. Unfortunately, while I’m shameless and blunt at times I have that thing… I think they call it integrity or something like that. Oh well… Now that it’s over with, let’s get back to usual craziness.