• ATF meets XML

    During the last couple of days, I've been working on the main major change planned for the upcoming ATF 0.3 release: the ability to generate XML reports with the tests results so that they can later be converted to HTML.It goes like this: you first run a test suite by means of the atf-run tool, then use the atf-report utility to convert atf-run's output to the new XML format and at last use a standard XSLT processor to transform the document to whichever other format you want. I'm including sample XSLT and CSS style-sheets in the package to ease this process.I've uploaded an example of what this currently looks like, but be aware that this is still a very preliminary mockup. For example, adding more details for failed stuff is needed to ease debugging later on. Comments welcome! [Continue reading]

  • ATF 0.2 released

    I am pleased to tell you that ATF 0.2 has just been released! This is the first non-SoC release coming exactly after a month from the 0.1 release, which means that the project is still alive :-)This is just a quick note. For more details please see the official announcement. Enjoy! [Continue reading]

  • Getting started with Cocoa

    I recently subscribed to the Planet Cocoa aggregator and it has already brought me some interesting articles. Today, there was an excellent one titled Getting started with Cocoa: a friendlier approach posted at Andy Matuschak's blog: Square Signals.This post guides you through your first steps with Cocoa. Its basic aim is making you gain enough intuition to let you guide yourself through Cocoa documentation in the future. If you have ever programmed in, e.g. Java, you know what this means: you first need to have some basic knowledge of the whole platform to get started and, at that point, you can do almost anything by driving to the API documentation and searching for what you need — even if you had no clue on how to accomplish your task before.Attacking the in-depth documentation directly is hard because it overwhelms you with details that are not important to the beginner. Plus it does not show you the big picture.I am by no means a Cocoa expert yet (in fact I'm very much a beginner), so this post will be extremely helpful to me, at least; thanks Andy! I hope it is to you too in case you wanted to begin programming for Mac OS X. [Continue reading]

  • TV series: Jericho

    Just finished watching Jericho's first season, aired during the summer on the Spanish Tele 5 channel. What an incredible drama show! It has all ingredients to keep you hooked: well balanced characters, good acting and scenery, lots of action and, of course, a good dose of suspense (OK, not as much as in Lost, but that's exaggerate). It is a pity it was cancelled and, after looking at their site, I don't really understand if there will be a second season or not; I hope there'll be.And yeah... I think it's hard to avoid comparing this show with 24 (hmm, sixth season starting on Thursday here), specially when Hawkins is in action. Just watch it and you'll probably understand this point ;-)Highly recommended. [Continue reading]

  • Me @ deviantART

    I have been a deviantART member for a bit more than three years already — wow, time passes fast... too fast —, but I never submitted any stuff I was really proud of. In fact, I have just removed the three deviations I had in my account.Now that I own a decent digital camera, I think I'll start posting some of the photos I like most in that place after retouching them a bit. I don't know if I'll keep up with this, but I'm optimist right now ;-) Feel free to dive into my member page and see the two photos I posted!"Why not Flickr?", I hear. At the moment I think I won't be posting lots of photos nor personal ones; that is, not full photo rolls and not photos of me nor any other person I know. Hence deviantART seems a better place to share my "selected" stuff. [Continue reading]

  • Serial console cable for an old Mac

    I'm currently working on the NetBSD/mac68k kernel to migrate it from the old rcons framebuffer driver to a more modern one that supports colors, virtual terminals, custom fonts and all other assorted goodies that come with wscons. Unfortunately, I've found a very mysterious system hang-up with my code that I cannot easily debug from the machine itself because the console does not work at all. Hence, I needed to have a serial console for this machine, a Performa 630.The problem is that old Macintoshes use a DIN-8 connector for their serial line, as opposed to the DE-9 (or DE-25) used in PCs. Fortunately it is possible to connect the two by properly wiring a conversion cable, and that's what I've done today. My first attempt failed because I built a DTE-DCE cable (used to connect to modems and other communications equipment), but in the end I got it, which resulted in a "null-modem" cable to connect the two machines.Here is the scheme I used:DIN-8 (DTE)DC-9 (DCE)DC-9 (DTE)1782873324555236N/CN/C7N/CN/C855N/C stands for "Not connected". Use at your own risk. [Continue reading]

  • New camera (and current desktop)

    After some time complaining about the slowness, the size and the non-working zoom of my old camera, a Kodak Easyshare DX4530 that my father gave me when replacing it, I am now a proud owner of a Canon PowerShot A570 IS. This is my first "decent" digital camera, and I'm looking forward to learning the basics of photography with it.This camera is bigger than what I planned — it is not much smaller than the Kodak —, but, on the other hand, it offers lots of features worth having. To mention some: it has good lens quality, complete manual controls, optical image stabilization, a standard optical zoom (4x) and a very intuitive and easy-to-manage interface (but, of course, this last point is my personal opinion).I thought I could share some pictures of the mess my desktop currently is &mdash. OK, OK, maybe it's not that messy; I have seen photos depicting much worse scenarios than this one. I wish mine could be similar to this one, powered by a huge Apple Cinema Display and a Mac Pro, but I'm not there (yet!) ;-) The laptop and the desire to hack NetBSD on old computers makes keeping things tidy hard.So here we go: this is the main view, where you can easily see the MacBook Pro, an old Apple keyboard to the left and a relatively old PC on the right-low corner, connected to an old flat screen seen at the top-right corner. There is also too much garbage on top of the table that should not really be there: batteries, the speakers, papers... scissors?And here you can see the "vintage corner", currently composed of a couple of old Macintoshes (68040-powered) and a DNARD (also known as a "shark"). There are also a couple of USB hard disks, but those are not old ;-) [Continue reading]

  • Weird laptop keyboard

    My aunt asked me if I'd do a full reinstall of the software in her laptop, a Compaq Presario 1200, because it was not working properly. This was horrible to do due to the speed of the machine, which feels incredibly slow nowadays. Plus there was a problem with the keyboard: it had never worked properly as in "some keys were not mapped to the right place". The keyboard looks like this:After reinstalling the system and all the drivers from Compaq, I was deceived to see that the keyboard still did not work properly. How could it be that it had never worked before (not even after buying it with the preinstalled system!) and that it could not work after a clean install?I messed with the two Spanish keyboard mappings (traditional and international sorting) and tried to remap the incorrect keys using some free tools that I found, but neither of the two fixed the problem. After a while, though, I realized that the fact that the keyboard did not have the C cedilla (ç) key would mean that it was not manufactured for Spain: that key is used in Catalan (among other languages, of course), and it has to be there for "Spain Spanish" keyboards.And you know what? That was the correct rationale. Switching the keyboard to a south-american Spanish layout made it work as expected (tried the one from Argentine). Now, the generated characters match the letters printed in the physical keys, even though they won't be able to write a ç. (Will resolve this with some ugly hack or with an external USB keyboard.)What I'm wondering now is... how could a very popular reseller here in Spain sell them laptop with a non-native keyboard!? That's nonsense.For comparison with the above keyboard, this is how it should have looked: [Continue reading]