Here’s a nice video that explains it:
Category Archives: How to?
How to install Ubuntu, FreeBSD and Solaris under Parallels?
Parallels is an incredible tool; however, installing some operating systems other than Windows can get tricky. Here’s a couple of good links I’ve found to get some OSs installed properly:
How to Resize a Parallels Drive?
This article explains it all very nicely! (local PDF if the link does not work).
Como bajar los videos de YouTube?
facil!
- metete aca
- pones el URL del video que queres bajar
- te baja el archivo directamente a tu compu
- si el archivo no tiene extension, ponele “.FLV” al final (flash video)
- despues lo podes ver con el democracy player
listo!
para los videos de google video que es diferente pero es lo mismo, tenes el google player.
truquito CSS…
… que por ahi te sirve. tiene que ver con la presentacion de las paginas de un sitio cuando se imprimen.
constato:
- que uno no quiere que la gente, cuando imprime paginas de tu sitio, imprima los menues que aparecen a los costados, u otras partes de la pagina, porque ocupan espacio en la hoja y no sirven de nada (no se pueden clickear!);
- queres que los links que aparecen subrayados en pantalla, no aparezcan subrayados en la pagina impresa, y que ademas aparezca, entre parentesis, la direccion web a la que apuntan (lo cual es interesante para referencia futura)
- que no queres tener que mantener una “version imprimible” o “printer friendly” de la pagina, que es considerada una mala costumbre, y te duplica el quilombo de tu sitio
- queres usar algo estandar
entonces, en el CSS de tu blog, pone algo asi:
[source:css] @media print { a { color: black; text-decoration: none; }
.noprint {
display: none;
}
a:after {
content: " (" attr(href) ") ";
}
} [/source]
explicacion:
- @media delimita un sector de tu CSS para que se use solamente… en algun tipo de medio: print, screen y all son los valores mas comunes.
- a:after “inyecta” despues de cada elemento “a”, un texto; en este caso, el valor del atributo href.
- si le pones class=”noprint” a cualquier elemento, este desaparece de la version impresa.
lamentablemente esto no funciona en internet exploder 6, pero si en firefox (supongo que en safari tambien, pero no “testie” aun).
si queres fijate como aparece impresa esta pagina cuando la imprimis con firefox: cada link de la pagina aparece en parentesis en el texto impreso, para que no se pierdan esos datos.
que se yo, me parecio piola. contame que te parece!
How to create a BibTeX file from a Delicious Library database?
Well, you’re pretty much on your own for that :)
I think that Delicious Library should definitely include this export option; it is a great application to manage your books, CDs and DVDs (and even games!). On the other side, I use a lot LaTeX for my Master degree’s papers, and being able to export my own library to a BibTeX file is something that really helps.
In the meantime, I created a Ruby script that reads your Delicious Library XML file, and outputs a list of BibTeX entries. Once exported, you can use BibDesk or TeXShop to open and edit the file, and use it for your papers and reports (as I do).
Here’s a sample BibTeX file with some classics in my own Library.
Hope that you find it useful! Feel free to use it and, as usual, I’m not responsible of what might go wrong with it!
How to Grab (or Capture) your Screen with Cocoa?
Lately I got curious to know how could I grab the entire desktop of my computer, and save it into a file, or display it into an NSImageView component. I started to look around on the web and discovered that:
- There’s no direct support for that in Cocoa
- There’s a lot of different ways to do it, both supported and unsupported, cross-processor and not, easy and complicated
I have found several useful resources in my quest, like this one, this other one, and finally this one. But what I wanted most was a complete application to play with, so what I did is to put all the different implementations I’ve found in one single application, called “ScreenshotDemo”:
Amazingly, the approach that seems the ugliest turned to be the most appropriate, that is, using an NSTask instance wrapping the /usr/sbin/screencapture utility. With it, the application feels lighter, easier to maintain, in the true, purest Unix style: using a collection of small utilities, all chained one to the other, is better than having an overbloated tool that does everything, but just bad.
You can just download the (universal) binaries and the source code from the ScreenshotDemo Project page.
By the way, for those that would like to do the same in C#, like me :) just check out this code. It isn’t much easier in .NET, as you can see ;)
And last but not least, here’s how to do it in wxWidgets, explained by Julian Smart, the creator of this incredible library.
Java on Ubuntu for PowerPC
Ubuntu bundles a great application, Synaptic Package Manager, which makes an excellent job to manage the dependencies, installation and desinstallation of applications of any kind in the Ubuntu platform. This usually works for all the platforms supported by Ubuntu, including the PowerPC architecture, which is the one that concerns my good old G3 iBook.
As I said, it usually works. Particularly for Java, the installation via Synaptic Package Manager does not work, since Sun does not provide Java, in any version, for the Linux/PowerPC platform (there is a Java version for Linux, but it targets the x86 architecture). And since Java is not an open source project (yet), it becomes harder to know what to do.
So this is where this page comes in: it provides all the information needed to install Java in a PowerPC-based Mac, from the 603 to the G5. It even provides the instructions to configure Firefox, Mozilla and Opera to use your newly installed Java installation properly!
Update Xfce in Ubuntu Dapper
Just found this article about how to update the Xfce desktop with the latest version, 4.4rc1, released earlier last September.
The problems I had with following those instructions in my PowerPC G3 iBook were:
- I could not have the Trash icon working in the panels
- The “Thunar” version that kept appearing was version 0.3, not the latest 0.4.
As such, I rebuilt Thunar following these instructions, and then I applied this quick fix found here:
- cd /usr/bin
- sudo mv Thunar Thunar.backup
- sudo mv thunar thunar.backup
- sudo ln -s /usr/local/bin/Thunar Thunar
- sudo ln -s Thunar thunar
This did it! I now have the latest version of Xfce and Thunar running in my computer.
Xubuntu
Since I discovered Ubuntu I’ve been trying to install it in different hardware, in different computers, even in virtual machines, and I just love it. It installs without problems, I can add and remove the coolest productivity and development tools fast and easy, everything is ready to use, and it just feels great.
My latest discovery is Xubuntu. It is basically the same as Ubuntu and Kubuntu, but with the Xfce desktop instead or GNOME or KDE. The nice thing is that I have not had to uninstall Ubuntu: I just typed “sudo apt-get install xubuntu-desktop” at the command prompt, and 10 minutes later I logged into Xubuntu.
The net result is a sooooooo much faster user experience.
The main machine where I have Xubuntu installed is a rather old G3 iBook that I bought in 2002, with only 256 MB of RAM and 30 GB of hard disk. The machine runs like a charm, but of course with GNOME and KDE there’s a lot of swapping. As soon as I installed the Xfce desktop, things went really faster. I can only recommend using Xubuntu in old machines: the base system only takes 90 MB of RAM, and applications load faster than in GNOME or KDE.
I just love (X)(K)(Ed)Ubuntu :)
