Posts Tagged ‘upgrade’

20091102 ffmpeg ERROR: libx264 version must be >= 0.78

Yesterday, I succumbed to the temptation and clicked on the Upgrade button… which means that I upgraded my Ubuntu system to 9.10. And as expected, my own build of ffmpeg got broken because of the way the binary had been built — it was trying to load a library by its exact name and version, and as it couldn’t locate it, boom! end of the story.

So I understood that I had to rebuild the binary so that it could use the latest version of the libraries which had been updated too. But I had the bad idea of running svn update on the ffmpeg sources folder before rebuilding, and as a result, the latest version can’t be built with the version of libx264-dev which comes with Ubuntu 9.10, giving me the ‘libx264 version must be >= 0.78′ error. Booh!

As I didn’t want to mess with installing custom library versions, I have just made a guesstimate of the revision number I used the last time and have gone back to that revision number:

sole@courgette:~/Applications/ffmpeg$ svn update -r 19900

After that, I just followed the very same process that I described a few posts ago.

(The reason why I didn’t just select an specific SVN tag or something is because well, those guys have only the ‘0.5′ tag under the branches directory!)

20071101 DIY: Replace your intel mac mini’s hard disk drive

Although there are lots of tutorials and guides out there in the internets which try to guide you through the process, I found most of them are outdated (their contents applying only for PowerPC minis only, whose layout is different from intel minis) or confusing (dark pictures, etc). So after I managed to replace my mini’s hard disk yesterday, and not breaking anything (in fact, I’m writing with it now!) I feel with authority enough for writing a how-to.

If you’re willing to replace your mini’s hard disk, I recommend you read this completely first so that you get an idea of what is needed and then decide if you’re adventurous enough for doing so. Although I would say, it wasn’t as difficult as I was expecting.

Tools you will need

Scratching knife, putty knife or however you call it.

You’ll find them in your favourite real hardware store, in the painting area. If you don’t look over 18 years they will ask you for an ID, just in case you’re trying to commit crime with it or something (!!!).

Scratching knife

Philips screwdrivers

I just needed these two sizes. There’s no need for any other exotic format. This is how philips screwdrivers look; they are just the usual plus sign-shaped screwdrivers (+):

Philips screwdrivers

An external hard drive for backing up your data

I have read of people using their ipods in disk mode, but mine is just too small for holding even my songs (it’s a 4gb mac mini) so I used an external USB disk with plenty of space.

A new hard drive

You’ll need a Serial ATA 2.5″ 5400rpm drive. Normal ATA drives won’t work, basically because the connectors are absolutely incompatible. I chose a 160 GB disk.

Before opening the case

We need to duplicate the current contents in the hard disk, so that we can restore all into the new disk later. I used SuperDuper! because I heard it was faster, but I think you can also use MacOSX’s Disk Utility. (I haven’t tried the latter for duplicating). Some people have reported success stories using Carbon Copy Cloner, which I believe works better for Leopard based systems. I leave it up to your judgement.

The ideal would be to have some external enclosure into which you could place your new SATA drive temporarily, duplicate everything into it and then you wouldn’t need to reinstall anything once it is in place of the old hard disk. In reality I hadn’t a SATA enclosure so I just backed everything up to that external hard disk. It takes a while, like 2 hours, to back up the whole disk (it was a 60GB disk). So you could play Metroid 3 in your wii meanwhile.

Apart from that I also copied my stuff (i.e. non System folders or Applications, just my data) to a different computer just to be safe :-)

Opening the case

Now comes the dirty stuff! This may hurt, mainly your psyche, since it looks like you’re going to break your little precious mini. But if you’re careful nothing wrong should happen.

Common sense advice: disconnect everything. Pretty obvious but there’s always crazy people around there.

There’s nothing you can do on the top side…

Mac mini top

But maybe you could do something in the bottom…

Mac mini bottom

Pick up your scratching knife and even if it hurts your heart (it hurt mine) begin inserting it between the case and the white plastic area, and use it then for kindly inviting the plastic area to go out by levering it. This is what I mean:

(Note: I don’t know where do those crazy distortions at the end of the video come from but they are amazing! I have never programmed an effect like that. I might copy it…)

It took me a bit of trying but if you place the knife in the right spots it will go out in just a minute. I guess if I did it everyday it could be out in 30 seconds. And that’s the most difficult part of this process :-)

So here it is:

Mac mini without its case

Unlike normal computers, here it’s very difficult to spot components at first sight. Everything is so tightly packed that I didn’t touch anything until I examined it carefully. And while you’re on it, touch the metallic inside of the case so that you discharge all possible static electricity you could be carrying around. I have never heard of anything broken because of this but I do it just in case.

Unscrewing the right screws

Where's the mac mini's hard disk?

Here’s where most of the tutorials fail. I was looking at three different tutorials in my powerbook but at the end I was so confused as to which screws did they refer to that I just decided to ignore them and began unscrewing things until I could reach the hard disk. It is underneath the dvd drive, and it is enclosed in that black chassis you can see. So we need to be able to loose the black chassis and then we’ll be able to access the hard disk from the bottom.

Main screws

There are four screws we need to remove. There’s one on each corner of the base, roughly saying (see pic). They are black and the one on front right is bigger:

Screw 1 is easy to get out.

Screw 2 was a little bit stuck on my case. I had to unscrew it very slowly or the screwdriver began to slip and didn’t do any useful movement. It can be possible that the antenna (the Bluetooth one) is a little bit closer than it should be, but as it has a spring it is somehow flexible so don’t worry too much if you touch it while unscrewing that one.

Screw 3 is easy as well, although quite deep (it’s also the largest one).

Screw 4 is relatively tricky. It is underneath that antenna (which is the Airport antenna, by the way) and it seems to be impossible to unscrew it without breaking the antenna! But the antenna can be removed by pressing the two tabs below it at the same time and it will pop out and leave way for you to unscrew the last one:

Battery wire

Wire battery

You need to disconnect a little jumper next to the battery before continuing. It is on the front side, right to the big button battery. If your thumb’s fingernail is long enough you can use it for quickly and harmlessly disconnecting that little jumper. Just pull up with the nail and it will disconnect, without having to grab it from the wires:

Inside the mini (at last!)

Once you’ve completed those steps it’s a question of pulling apart the chassis from the base and carefully turn it so that you can see the inside. Be careful with the antenna you removed from its base while unscrewing the screw below it, it may get in the way (and you don’t want to break it!).

Inside the mini

Here it is. If you want to upgrade your RAM it is now the right moment. Or the processor. I didn’t want to do either so I just went for continuing with the hard disk stuff which is here:

Inside the mini - hard disk

Removing the hard disk

The disk is attached to the chassis with four screws. These are silvered and a little bit fatter than the ones we unscrewed. There are two screws on top of the disk and two more on the chassis side. They are easy to spot – no hidden secrets here.

Hard disk screws

Once the screws are removed you need to pull backwards the disk to disconnect it from the chassis.

Now put there your new big hard disk. It may take a bit to connect it to the chassis but just be patient and you’ll get it. No brute force required…!

Putting things back where they were

Once the new hard disk is in place the rest is way quicker. It just consists in undoing what you did, but just for the sake of completion:

Put the hard disk screws back

Hard disk screws

Carefully flip the chassis again and make sure the connection to the motherboard is fully done

It just needs a bit of pushing and you’ll feel how it’s connected. In any case there’s not any other way of assembling this together and being able to close the case again, so you’ll notice anyway :-)

Put the chassis screws back

Put the Bluetooth antenna back in its tabs

Connect the little battery wire we disconnected before

You could use your fingernail again for pushing it down and making sure it connects.

Testing it before closing the case

What I did for being safe – since it had the case opened and I didn’t want to risk electrocution – was to disconnect the power adapter. Then I connected the screen, keyboard, mouse and power wires, the external USB disk with the clone of the old disk, and finally connected the power adapter to the mains again. Without touching any component from inside, I switched the computer on.

Booting from USB

Because I had done a full clone of the hard disk, the computer could boot from the USB disk. Once it’s booted, everything looks as if it was your normal disk: screen settings, applications, data – only it’s not!

We need to restore the data from the external into the internal disk, but the internal is not showing because it hasn’t been formatted. So go to the usual Applications – Utilities – Disk Utility and make sure the new internal disk is on the list of devices on left:

New device

See how there’s a Samsung disk with no partition (partitions are nested in the devices). I selected the new disk, clicked on the Erase tab and said I wanted a new partition, Macintosh Journaled type. Because it was way bigger than the old Macintosh HD partition, I called it MegaHD.

Then I selected MegaHD in the list of partitions and clicked on the Restore tab, dragged the external disk partition (externito) to the Source field and the MegaHD partition to the Destination field. And clicked Restore!

Restoring with disk utility

That will take quite a bit of time since it needs to read everything from the USB disk. You can have a walk or something while it completes. It took almost two hours here.

Once it’s done, shut down the computer, disconnect the USB disk and try to boot up as normal (only with the case still open). It is normal for a folder with a question mark to appear the first time, it disappears after it finds the boot volume. Test your system, make sure everything keeps working, etc…

As it worked for me, I shut it down, put the case back and congratulated myself :-)

Now, as requested by a happy reader in the comments (hey cowboy!), I have added a paypal donation button. So if this tutorial was helpful and you want to say thanks the donation way, feel free to do so:


20070716 Serene observations on php4 controversy

Since the PHP group announced they weren’t going to support php4 any more when 2007 ends, I have been watching with amusement the reactions this fact has sparked. In general, it feels quite similar to previous public announcements of product discontinuing, such as Windows 98, or Firefox for windows 98, etc.

The most absurd reactions come from very angry people which not only demand support for that product to be extended indefinitely but also do not use the product at all or do not have any decision power about the use of that product in their organisation or environment. They can fill in pages and pages writing infuriating comments about how evil is vendor X for not supporting product Y, and how bad is it for everybody, without giving any solid reason usually.

And the rest of the blame is equally distributed amongst sys admins and developers. Sys admins say they can’t upgrade to php5 because the applications running in their systems are not designed with php5 in mind. Developers say they can’t develop for php5 because their sys admins do not offer support for php5.

I say stop blaming each other.

It’s not that hard to migrate an application to php5, unless it’s a complete disaster. For instance, I saw one which had some functions named public and private. Honest! Those functions were repeatedly called thorough the whole code base. Obviously when trying to run this with php5, it failed spectacularly. (Somebody tried to fix it replacing every public with pub and private with priv, and then it broke other parts of the application, but that’s another story…)

Personally, I wished every host in Earth had moved to php5. I never use php4 in my projects and it’s really annoying to have to downgrade the code for distributing it publicly. It also breaks my heart to have to emulate some php5 functions when working with legacy php4 code for php4-running servers, such as for example array_combine.

And at the end I wonder, can we take seriously a developer or a sys admin which have not learnt about php5 yet, even if it was released more than three years ago? I can’t.

20041228 I can’t stop updating!

Ok, so I’ve fixed the css bug (remember to reload everything in the page, css and html, with ctrl+f5 or shift+f5), it was quite simple but I had a complete mess with the layers and the floats, the clears, blabla. It’s as simple as:
a) I have a layer with some content: the content layer
b) I want to have a layer on the right with some contents

So easy, assign a width to both layers, and then set float: right to the layer which must appear on the right. (look at the code of this page).

I also have taken this opportunity to fix some minor things in the blog and the best of all… adding the comments feature! Now you can say something about one of the posts without going to the fanclub section. I think this is a good idea and will be useful… one day at least… :D

20041214 ¿No querías caldo? ¡Toma diez tazas!

Ilusa de mí, intentando que las webs que hiciera en el trabajo fueran tableless, o al menos, menos table que de normal, hasta que llega el momento de ver las páginas en un mac más antiguo que yo (bueno, no tanto, pero antiguo), y mi gozo en un pozo. Así que, ante la disyuntiva de seguir predicando las virtudes (indemostrables en un mac con ie5.1) de las capas y el diseño tableless o acabar el trabajo y conseguir que la página se vea (teniendo en cuenta el público destino de la página), me he visto obligada a pensar: si quieren tablas, las tendrán.
Me ha dolido en el alma, pero no sólo he tenido que anidar tres y cuatro tablas, sino que he tenido que utilizar spacer.gif y “enebeesepe” a tutiplén. Madre mía que dolor de principios.
Claro que, para compensar y demostrar que tengo ánimo de redención, he decidido subir esta versión tableless de mi web. Supongo que debe quedar algo por pasar a div’s (no estoy 100% segura) pero lo que sí sé es que bajaba 10kb sólo con cambiar el layout este… También está más claro de mantener, pero a vosotros eso no os importa (en el buen sentido ;)).
De paso he añadido nuevas versiones de la página de blog y de links. Ahora en la página de blog podéis ver un resumen de lo último añadido al site, y en links los podréis encontrar un poco más aseados (pero tampoco demasiado, que si no son aburridos).
Y lo que ya es el megacolmo… he añadido un rss para todos los geeks que de cuando en cuando leen la página, en especial para mi amiga Madieta que si no le dan un rss no se pasa por las páginas. Que lo disfrutéis!!