2009-06-29

Oktapodi

Aunque parezca mentira este video me ha llegado a través de flapa

2009-06-27

LinuxJournal - Putting Processes in the Background (and bringing them back)

An helpful tip at LinuxJournal about putting processes in the background and bringing them back

2009-06-18

font joke - chite de fuentes

comic sans walks into a bar...
barman says...
we don't serv your type here...

--

Entra una Comic Sans en un bar...
El camarero le dice...
“Aquí no servimos a tipos como tú.”

2009-06-15

15 Minutes or Less with Robert Eckstein: Basic JavaFX Graphics

Just 15 minutes (or less) to see the fantastic new graphics capabilities of JavaFX

Use full screen mode, you'll see text better.

2009-06-13

FindRepe 0.5.1

Today a new version of FindRepe has been released, this new version 0.5.1, is focused on performance, when there are files of the same size but different content, especially big files. No gain would be notice when there are no differences in the content of files under 8KB and depending on the media even under 1MB. So the bigger file and the slower media, the bigger difference in performance.

There is also a improved control of objects that wouldn't be useful, so they are discarded earlier in order to reduce the minimum memory needed to run.

-Download findrepe-0.5.1.zip

-Decompress it using the command

unzip findrepe-0.5.1.zip


-Install the launcher with one of the following commands

java -jar findrepe-0.5.1/FindRepe.jar --install

java -jar findrepe-0.5.1/FindRepe.jar --install-home

sudo java -jar findrepe-0.5.1/FindRepe.jar --install-home=/opt/jdk1.6


-Play and enjoy it with

Windows users:

findrepe c:\ e:\


GNU/Linux, OpenSolaris and any other unix flavor users:

findrepe /backup/mp3 /backup/src


2009-06-12

Limpiar caché de disco en GNU/Linux

Para evitar el efecto que el caché de disco tiene sobre los tests de rendimiento de findrepe he tenido que encontrar una forma de evitar dicho caché. De momento sólo se me han ocurrido dos formas:

  1. Saturar el caché - Si el caché tiene un máximo de 3GB, sólo es necesario leer 3GB para que al comenzar el test nuevamente, no se noten los efectos del caché de disco. Si el programa se interrumpe, o no se llega a dicho tamaño no funcionará. He usado este método varias noches y aunque cumple perfectamente su función en cualquier sistema operativo, no es óptimo puesto que saturar el caché requiere bastante tiempo.

  2. Limpiar el caché - Dado que, excepto en el trabajo, desarrollo en GNU/Linux, existe otra posibilidad para núcleos 2.6.16 o posteriores usar /proc/sys/vm/drop_caches

    • Liberar pagecache
      echo 1 > /proc/sys/vm/drop_caches

    • Liberar dentries e inodes
      echo 2 > /proc/sys/vm/drop_caches

    • Liberar pagecache, dentries e inodes
      echo 3 > /proc/sys/vm/drop_caches

    • No liberar nada
      echo 0 > /proc/sys/vm/drop_caches



Dado que sólo root tiene permiso para realizar esta operación será necesario hacerlo como root. Además esta operación sólo libera las páginas que ya están sincronizadas con el disco, por lo que se recomienda el uso de sync

sync; echo 3 > /proc/sys/vm/drop_caches


Para verificar el resultado de la operación podemos usar

free -mo


un ejemplo del resultado antes de la operación

total used free shared buffers cached
Mem: 3033 1842 1191 0 72 889
Swap: 9538 0 9538

despues de la operación
total used free shared buffers cached
Mem: 3033 1011 2022 0 0 143
Swap: 9538 0 9538


Y puesto que es especifica de Linux (no de sistemas GNU) mi recomendación para los que usan windows es, ¡¡¡Cambiad a GNU/Linux!!!

2009-06-09

C# 4 Java Programmers

I've just read this interesting entry (C# 4 Java Programmers) from Find Time for Java and more! with a brief comparison between C# and Java

2009-06-06

Projecto de AppEngine en NetBeans por Andrew Skiba

He encontrado esta Entrada de Andrew Skiba sobre como crear un Proyecto de Netbeans para Java AppEngine de Google puedes leerlo aquí. Puede que no sea muy util para la mayoría de los que usan Eclipse, pero es bastanta util para aquellos como yo que tienen predilección por NetBeans :-)

AppEngine project on NetBeans by Andrew Skiba

I've found this interesting post by Andrew Skiba about creating a Netbeans project for the Google Java AppEngine you can read it here. Maybe not so useful for most people using Eclipse, but very useful for those like me "in love" with NetBeans :-)