Posts

Intel is back on top

Image
Although media messages have been a bit confusing, it seems that Intel is regaining customers from AMD. At the same time that AMD is buying ATI (an therefore expanding the number of fronts the company will be fighting), Intel is presenting new versions of their saga of confusing names: Pentium D Core Duo Core 2 Duo Code names are not helping either as Yonah, Conroe or Merom tell you nothing about the processor (unless you are an Intel engineer). So will tell you my simplified version: Pentium 4 is dead. Hyperthreading is not bad but having a dual core is better. It means more instructions executed per time unit (faster processing). Trouble is that the thing tends to be hot, hotter as it gets faster. It gets hotter because it uses more power, so computers need these 400W or 500W power supplies to keep all the parts properly sourced of energy. Intel has moved from 90nm to 65nm which means transistors are now smaller (they have to be if you plan on packing 350 million transistors in a sma...

Advanced Web Publishing Service

This is the name of a new service offered on my university campus. It really is a Plesk -based control panel with a choice of databases and content management tools running on top of Windows 2003 servers. As I have been running several servers and databases I thought I was well prepared to use this "advanced" new system: I was wrong. While Plesk's control panel looks nice (and you can chose the skins that pleases you the most) it was not very easy for me to manage through all the system. Eventually I was hitting against the wall when trying to import an ASCII file to fill-in a MySQL database table using phpmyadmin (because of wrong default options). I did not like the default management for SQL Server databases was done over (insecure) http connections. For reasons that were not explained PHP scripts returned a 404 Not Found error while at the same time I could not change any of the file access rights and, surprisingly, ASP files worked without any problem. Later on the s...

New article

Image
I already mentioned in this column that I was waiting for an article I wrote to be published on Circuit Cellar magazine. And there it is in the #193 August issue. It describes some of my work to get an RFC 2217 serial device server based on a Rabbit Semiconductor 8-bit microcontroller. Some of the problems were mentioned here in the past but I've put together all the details to give readers an understanding of the full process. My experience with Rabbit cores has been quite successful and I think it is a nice, cheap and low-power platform for not so complex systems' automation. The learning curve is not steep and the development tools work as expected, just keep in mind you need a serial port to get it working (and a real one will be faster than a USB-serial dongle).

World's smallest development kit

Image
I've just got one sample ToolStick devolopment kit. It consists of a USB dongle and a credit card sized CD with the software. As the ToolStick is USB powered there is no new for an external power supply. The drawback is that it only contains a couple of outputs connected to a pair of LEDs so you can check whether your software is working as expected or not. It is certainly a minimalistic setup and the easiest one to carry around. I'm not sure it can be very useful for general purpose development, but it seems like a cheap tool to be used (and given away) in the the classroom. A ToolStick costs $10.99 plus shipping. If you are happy with just two output LEDs I do not think any other system can beat this one as this one contains a nice Windows IDE and C compiler.

Minix is back

Image
When I was a Computer Science student I've learned some of the Operating System basics with Andy Tanembaum 's Minix educational Unix-clone. It was not powerful but it worked on a PC with less than 1 MB of RAM off a floppy disk. While the aim of Minix, and later on that of Minix 2, was to provide an educational tool, the new version Minix 3 is intended as a microkernel OS for embedded and resource-limitted computers and for applications that require high-reliability too (I like this latter one). Minix 3 is still a work in progress and ports to other targets different than x86 are underway. But if you want to give a try you can download the CD or USB dongle image so you boot a live system and to perform a hard drive install. While not even close to what you get with a current GNU/Linux or FreeBSD it is still worth trying it out. Full C source is available.

"Paella Valenciana" HOWTO

Image
It is time to get out and have some fun while your computers are powered off. So I propose a radical change just for today: Cooking a typical dish from my area that all of my friends love. First of all the ingredients you need (I assume you already have a paella pan): You add some olive oil (to cover 2/3 or the pan surface) and start deep frying the chicken you previously have salted. Once the chicken is getting brown, spread it to the side of the pan and put the beans in the oil to fry it a bit too (beware not to burn it). Once this is done add the tomato and garlic and fry it too. Add one spoon of sweet paprika (non hot!) and stir and mix thoroughly. Then add water up to half an inch of the border of the pan (for this to work you have to have quite flat to start with) and add the yellow food colorant too (or safron if you can afford it). Let the water boil for half an hour so all the ingredients will get fully cooked. Afterwards add the rice (that has to be half the volume of water y...

S.M.A.R.T. HDD temperature, too

Image
When I installed Speedfan software to my children's computers I realized it allowed you to measure the HDD temperatures if they are SMART compatible (which they are). So I thought it would be nice too to have such info on my Ubuntu desktop too. So I google for a moment to learn that hddtemp allows you exactly that: to measure your SMART-compatible HDD temperature from command line: just install it sudo apt-get install hddtemp and type sudo hddtemp /dev/hda (or any other drive name you have). It works as expected and you may consider to run it as a daemon so you can use the nice Gnome sensors applet that does a very nice job of showing all the temperature (and fan info if you wish) collected by several means, including acpi, lm-sensors and hddtemp. It is not installed by default so you'll have to install it too.

Motherboard temperatures

One of the important things when you plan on overclocking a system is to have an eye on the system temperature. Some systems are providing all data you need through ACPI and it is shown in the /proc/acpi/thermal_zone/ folder. However my /proc/acpi/thermal_zone/ folder is empty. I thought that this was because a bad ACPI implementation. You know, the BIOS contains a description of the capabilities of the hardware that is handed over to ACPI and it is called dsdt. Sometimes this file is broken and it contains errors but because they only test it against some version of Windows some errors are not fixed. You can extract your system's dsdt and fix it yourself. Linux boot process can either use the dsdt provided by BIOS or it can use a fixed copy you create on initrd. To do the latter, you need a patched kernel. The kernel that ships Ubuntu's Dapper Drake is already patched to support this feature, so you can store your patched dsdt to /etc/mkinitramfs/ and name it exactly as DSDT....

Fired for porn surfing (II)

Some time ago (March 2006) I mentioned I was being asked to write a judicial report. The case was about a big company (supermarket chain) firing a worker for alleged porn surfing using the company laptop. This week I have learned that my client has won the case and he is either getting his job back or a significant amount of money for leaving the company. What I do not know yet is if my client will sue the company for building a false and humiliating case against him. It seems that big players have to stick to the rules too, at least sometimes.

Trying to get some music ...

Image
... into my old Creative DAP Jukebox in Ubuntu on my new machine revealed that USB ports were not working properly. Although they were recognized nothing much happened as if interrupts were not getting to the system, however network card, keyboard and mouse were working and are also interrupt based. Rebooting the system with the " noapic " keyword as a boot option cured the USB problem. It confirms that it was somehow due to a bad routing of interrupts. I've added this my kernel boot line in /boot/grub/menu.lst to have it as default. Unfortunately life is always challenging us and this fix of the USB did not solve my problem. Neither Gnomad2 2.8.1 nor Neutrino software were able to talk to my MP3 player (though I have successfully communicated with it and an Ubuntu-based laptop at home). Because I've just downloaded the latest version of Knoppix that my friend Victor Alonso kindly translates into Spanish. I decided to give it a go to see if it included newer versions...

uli526x annoyances

Image
When testing the Asrock775Twins-HDTV almost everything went ok. The keyword here is "almost". The built-in network card did not work. It seemed like the cable was not detected. As it is a Gigabit Ethernet I was not sure if the link auto-sensing could be creating the trouble (as the computer it is connected to a Fast Ethernet switch). I had a cheap Realtek 8139 Fast Ethernet card on my desk so I installed and I got the system working. But just to be sure I decided to reconnect the network cable to the previously non-working built-in socket to see if it was still dead. To my amazament this time the interface worked. Next day I'm getting rid of the Realtek NIC but then here it comes again. The built-in NIC does not work. A "dmesg" command output informs me the "Link is down" so it looks like a cable problem. I install back the Realtek and everything works again, including the built-in NIC. I'm kind of tired with this fight so I just disable the built-...

Motherboard replacement

By now, I've replaced three computers' motherboards, two of them were brand new and the third was actually relocated from one box to another. I have used a couple of cheap Pentium D 2.66Ghz to equip the new ones (around 115 Euros each taxes included). The motherboards came with this nice install video . So if you wonder what's all this thing about LGA775 socket you may have a look at it. In case you wonder LGA stands for Land Grid Array and it is type pin-less chip carrier, similar to BGA but where the balls have been replaced by flat conductive pads. So now the pins are on the socket instead of on the chip and you have to exercise caution not to damage them (or you'll need a new motherboard). As usual the replacement of the motherboard of a computer (and sometimes also the graphics card) is not without problems: All my systems had some version of an AMD K7 processor, so the change meant a new CPU type, new chipset and in one case, new graphics card (as the Asrock775Twi...

Hard disk upgrade

Image
One of my computers needed an larger hard disk. It had WinXP installed and I did not want to reinstall it (and the many other applications that it had installed). But on the other hand I wanted to have a larger C: drive. I have used Symantec Ghost in the past and it does the job quite nicely. However I wanted to do this using free software, as I was not sure if the Ghost version I got was NTFS compatible and I did not want to buy a new one. Googling a bit will lead me to HDClone 3.1 of which there is a free version. This program clones your old harddisk content to the new one, keeping the partitioning scheme intact. You can create a bootable CD-ROM with the software so you can use it with systems without a floppy disk (alternatively you can boot from a floppy disk too). The program does a great job with a nice graphical interface. Once I was done with the cloning I used another shareware program called Boot it . It's main goal is to act as a boot manager, enabling you to have up ...

Getting 3D to work

Image
Until recently, I have been happy without decent 3D performance on my computer graphics card. But the Linux version of Google Earth spiced my curiosity. This and the fact that my old ATI Rage 128 Ultra refused to work properly with the "ati" driver that Ubuntu Dapper installed by default. I then learned that I could install an accelerated driver from ATI but I was not lucky enough to have it working flawlessly: The system was freezing quite easily, forcing me to hardware reset it. So I recover an old card my kids had discarded, that was in fact more powerful than the ATI one. It is an NVIDIA MX440 GeForce 4 with 64MB RAM. Again, I needed to install the special Nvidia driver for it, but now it is working. Do not think it was easy: I actually needed to perform some dark magic to get it working. The problem this time was not with the 3D not working but with Firefox. Everything was working fine till I started Firefox, then the mouse still could move but the rest of the system wa...

Aging computers

I've kept my children happy with their old computers for several years, with some graphic card upgrades every now and then. But after reading this article in Tom's Hardware site I decided it was the moment to give a try to the new Dual core Intel processors. I've to admit that I've been a happy AMD customer since the 386-40Mhz. Most of the time AMD delivered good performance cheaper than Intel. The exception to this rule had been several laptops non based on AMD processors (G4, PIII & Pentium-M) and one eventual Celeron so I could make some use of an ASUS Pundit box. So, I got ready for the challenge and decided I was going to buy a new motherboard, new memory and an 2.6Ghz 805D processor. I wanted to buy a 1GB 667Mhz DDR2 RAM to have room for some overclocking but unfortunately it was not available at the shop. I wanted a motherboard with a basic 3D card (Asrock775-TWIN-HDTV) but unfortunately was not available so I bought another mobo that had at least an AGP slo...

Fighting with Ubuntu 6.06

Image
After some success on my laptop and using the released version, I have decided to install Ubuntu 6.06 on my main computer at the office that has been happily running SuSE Linux 10.0. I guess it is against my own advice (and common sense) to install a new software when the old one was giving you a good service, but I can't help it, I enjoy trying out new software versions (maybe I'll have to start a branch for "Installers Anonymous"). There is always a catch: My hard drive does not have space available and I really would like to keep SuSE Linux just in case. After all I have lots of stuff installed and working, like VMware or CrossOver Office and I do not know whether all these will run trouble-free on Dapper Drake (DD is the name of Ubuntu's 6.06) or not. I know from experience that VMware use to be quite picky about kernel versions. So I needed some free space on my hard drive before I could install Ubuntu. Catch 2 : I could not resize my Linux partition from SuS...

Google Earth for Linux!!!

I've just tested the Google Earth beta for Linux with not very good results. First the install, you get a single .bin file that contains all what you need (or almost, read on). To install it you execute the downloaded file as a shell script. It will unpack the installation files and you get a nice window informing you about the install process. It does not take long. My first attempt was on SuSE Linux 10.0 and when trying to run the software I get a complain that I did not have Bitstream Vera font installed (the message contained a link for me to install it too). I wonder why they have not included that font (if required) in the first place in the installation file. Next the program starts but it just ends up blocking the system to a hardware reset. This time I cannot put all the blame on Google's camp as my ATI Riva 128 graphics card might be the cause of the system freezing. The 3D support on the driver is enabled and Yast2 tells you 3D support is "experimental". Ev...

USB booting and more

Image
I've always been curious about booting from USB devices. With most motherboards, the use of an external USB CD or DVD-ROM seems to be a no brainer. As USB flash memories now offer up to several gigabytes of storage, it seems they might serve for many pursposes. The guys behind Damn Small Linux think that it is a good idea to have a simple GNU/Linux setup that can boot from a credit card size CD-ROM or from a USB flash memory with only 50Megabytes!! I needed to try this out. I had most success using the USB-ZIP configuration on most of the BIOS on the systems I tried this out. I even have found a new life for that old 64MB USB 1.1 pendrive I bought several years ago. The system that includes a graphical environment, wordprocessor, Firefox browser, pdf reader, spreadsheet, xmms, vnc viewer, and a long list of other useful applications. All that was quite an achivement, and the developers want to keep the system size small. One of the drawbacks is DSL is based on a 2.4 kernel, but th...

UPV wireless network access with Ubuntu

I'm getting the hang of the different flavors of the Ubuntu thing. I tried Kubuntu while Dapper was in beta and now I've just installed Xubuntu (xfce4-based version of Ubuntu) which is specially crafted for "old" computers (low resources). The LiveCD allows you the same install as with the two more powerful siblings. I ran out of network sockets but I had a spare USB wireless device so I used it with this computer. The fact that the computer is old means it is only USB 1.1 so I won't be able to handle the maximum speed over the network, which is not a problem at the moment. The easiest way to access our campus WLAN infrastructure is by using a VPN tunnel over the open wireless link. There is nice webpage telling you how to do it, even if you use Linux, but I always like to try something new. Today I did it: I installed pptpconfig and I got it working at the moment. Defaults are ok but the "All to tunnel" option on the Miscellaneous data of the connectio...

NSA wiretapping

Image
I saw the link on Bruce Schneier's blog and and I found it quite funny (if you forget about the sad part, of course) Click on the image to start playing it