Monday 29 March 2010

e-machines, weird machines

I have nothing against no-brand-names or emerging brand-names; actually I'm against monopole in general so I prefer to give a chance to smaller players on the market instead of over-feeding the already fat ones.
But, after seeing/installing a bit more than few dozens notebooks in my professional life, I have encountered the worst ever: emachines e525-902g25mi, and I felt I should point my finger to it. Here are the reasons:

- It never felt so bad inserting a cd in the unit of any laptop ever. The cd bumped in to a metal part inside the slot and jumped out of the tray, several times; also the movement of the tray itself is rough.
- it refused to even do the POST after changing in bios sata mode from ahci to ide. Not even booting from cd. Not even spinning the cd.
- none of the 3 drivers for the wireless delivered on the install cd worked. On their site they have 4 different products/manufacturer/chipset drivers for the same device. One of them finally worked, however, even if entering the exact model the list of possible drivers was not narrowed down to one, giving me unwanted freedom of choice. (Albeit this happens with some other notebook manufacturers too. Is so hard to write on the case, or a piece of paper exactly what type of lan card, wifi, etc, is fitted in that notebook?)
- only 2 usb ports, no modem, no bluetooth but the most hilar one:
- an "interesting" increasing/decreasing screen brightness result. See the photos:

Screen as bright as possible (looks normal):


Screen as dimmed as possible (is not a problem with the photo even if you can see me reflected in the left side... it's just half dimmed half not-so-dimmed :) )


I'm not sure how much it costs, I'm not even curious. It feels and behaves too cheap.

Friday 26 March 2010

XP Pro install using AHCI

Well, the internet is pretty much full of this subject, even so I spent 2 hours to solve this. Because information is a bit outdated. So here is my very brief version:

1. Download AHCI drivers from Intel
I needed XP professional, english so got: http://downloadmirror.intel.com/18859
/eng/iata96enu.exe If you need something else or link is no longer available try to find your drivers at: http://downloadcenter.intel.com

2. THIS TOOK ME MUCH TO FIND-OUT HOW: extract the drivers from the iata96enu.exe like this (in the command prompt line):
c:\> iata96enu.exe -a -p c:\drivers

3. Follow the excellent instructions (even with pictures!) from http://www.docstoc.com/docs/29315686/How-To-Slipstream-Windows-XP-With-AMD-SATA-AHCI-Driver but adapt them to your Intel drivers already extracted in our step 2.

It worked for me this way. And, it wasn't a matter of installing windows in IDE compatible mode (from BIOS) and then changing it to ahci after installing Windows and the drivers from Intel.
The stupid laptop I had to install wasn't running at all in IDE mode! Not even booting the CD. It just freezed...
Btw, it's a Emachines E525.

Saturday 27 February 2010

Using ImageMagick with perl to rotate/resize/etc tiff images makes them negatives

Solution is to add option=>'quantum:polarity=min-is-white' to the image object like this:

my $image = Image::Magick->new(magick=>'TIFF', option=>'quantum:polarity=min-is-white');

This is the perl equivalent (found after hours of searching the net :) of the convert.exe command line:

convert file.tif -define quantum:polarity=min-is-white -resample 200x200 [...]

Monday 15 February 2010

HTTP Sniffers

If you're in search for a HTTP sniffer that could show/dump the HTTP/SOAP conversation (headers and body) between your application and a server here are the free/trial choices I found usable:

- HTTP Debugger Pro (http://www.httpdebugger.com/) - sniffer for all traffic on any interface. However it is not showing the body of HTTP/SOAP requests/responses, only headers. This happened at least in my config were I had the client and server on the same machine ( a VM one; maybe they have problems with virtual interfaces?)

- Effe Tech HTTP Sniffer (http://www.effetech.com/) - it worked pretty well until the point it should catch a SOAP with DIME attachment HTTP conversation. There it failed to get the body of the request.

- SoapUI (http://www.soapui.org) - Their SOAP Monitor feature (described here http://www.eviware.com/blogs/oleblog/?p=827 ) is Santa's choice because it did the trick indeed, capturing all what I needed.
It should be used as a http tunnel but even so it works with both client and server on the same localhost. You should do 2 things to configure:
-- you need to create a new project
-- you need to add a wdsl file to the project in order to have an interface to listen to(?). I just added one WSDL file (http://www2.roguewave.com/support/docs/leif/leif/html/soapworxug/A-1.html) found on the internet and it started working without complaining that the file had nothing to do with my application.

Actually I tested even more applications but have found that:
- they need you to specify proxy in your app (they're built probably for browser sessions testing)
- they are completely buggy (too many to mention)
- they don't do what you expect (notably SOAP Sonar that looks impressive but doesn't do sniffing)

Saturday 6 February 2010

Slow laptop could mean subtle damaged harddisk

I encountered a strange case with a notebook that was really slow now and then, especially noticeable when writing something on its keyboard (like a simple web address in the browser).

It's true that it was badly treated and it has a broken corner due to a slip out from its case, associated with free falling from 1 meter or so. However, other than this slightly broken corner everything run apparently fine. Tried de-virus, de-frag, a successful hard disk thorough check (WD Diagnostics), almost reinstalled window$ but no change.

The explanation sprung naturally when the user noticed that, when playing movies (from hard disk) if shaken, the playback will be interrupted and then automatically restarted when stopped shaking it.

In other words there is something probably broken inside the hard disk that makes the whole system wait and request a re-reading of the current data if notebook shaken. I'd say is a damper broken or so.

Why lingering when typing?? Because of the small shocks from the fingers, the original user being an impetuous email writer.

Oddly enough, if shaken during the thorough WD diagnostics testing, it stops and waits for device to become ready each time it's shaken, however in the end the test result says everything is ok.