miércoles, noviembre 11, 2009

Moving Windmills

sábado, octubre 31, 2009

Lyon


Un mes y medio en Francia, las palabras que más utilizo son buenos días, buenas noches, gracias, perdón, si, no hablo francés, ¿hablas inglés? y ¿hablas español?, por supuesto en un pseudo-francés que la gente entiende normalmente con una sonrisa.
No tengo muchas ganas de aprender francés, yo creía que con dos idiomas me bastaba, pero fíjate por dónde que no va a ser así, o sí. El sueco, seamos sinceros, lo he dado por imposible, se decir algunas palabras más que en francés, la primera que aprendí: te quiero.

Pero no nos pongamos romanticones que aquí lo que toca es hablar de los franchuchis, así de primeras me doy cuenta de que les gusta mucho discutir las cosas, eso si, en francés, no esperes que te respondan en otro idioma por lo general, tu les puedes preguntar do you speak english? y ellos te responden oui, tu piensas guay uno con el que puedo hablar, y nada, te siguen hablando en francés...
Esto tampoco es tan grave, realmente al tener las mismas raices no es tan difícil entendernos. El otro día estuve hablando con un marroquí, el me hablaba en francés y yo en español, despacio, pero estoy seguro de que nos entendimos más del 50% de la conversación... habría que preguntarle a el.

La ciudad, bonita, muy bonita, los alrededores son increíbles. Este fin de semana queríamos ir en bici al gran lago,


Ver mapa más grande
pero nos quedamos dormidos y el tiempo tampoco acompañaba demasiado, lo apuntamos en el "to do list" que empieza a tener demasiadas líneas.

Internet, mucho más barato que en España, probablemente esta semana me instalan un adsl de supuestos 28 megas de bajada con uno de subida y televisión con unos dos cientos canales, por 30 euros al mes con Free, operadora francesa. Por no hablar de Numericable que te instalan cien megas de bajada y cincuenta de subida por un precio similar, lástima que no los tuviera en zona de cobertura. Cómo anecdota recuerdo un apartado cuando me daba de alta con Free que comentaba algo así como que los artistas tienen que comer, pero no decía nada de la ley Hadopi.
En fin, sin comentarios, creo que ya he hecho suficientes al respecto a lo largo de los casi 5 años de este blog.

Los operadores móviles en Francia, rozan la ilegalidad en mi opinion. Las tarjetas prepago tienen caducidad del saldo, esto es, si recargas 5 euros los puedes gastar en una semana, si recargas 15 tienes un mes, 35 euros dos meses...
Vamos que te obligan a tener un consumo mínimo mensual.
Nada más llegar a Francia nos compramos dos tarjetas prepago de orange y es lo que venimos utilizando hasta ahora con las limitaciones que comento. Además de la sorpresa de la manera de funcionar para prepago, ayer tuve otra sorpresa desagradable, de repente empecé a recibir mensajes de información deportiva sin haberme dado de alta en ningún servicio, cosa que en España puede pasar pero siempre y cuando hayas enviado tu primeramente un mensaje solicitando algún tipo de información. En mi caso no había enviado nada, me puse a investigar un poco y me encontré con muchísima gente en Francia con el mismo problema con Orange, y gracias a los consejos de éste post pude darme de baja, no sin antes perder alrededor de una hora buscando la escondida opción dentro de la web de orange.fr.
Vamos, un robo en todo regla, que por cada mensaje cobren unos 0.35 euros sin ni siquiera haber activado el servicio personalmente, los calculos son sencillos si nos imaginamos que hayan activado el servicio fraudulentamente a digamos cien mil personas.




Se acabó la Stella Artois, nos vemos en los bares ;-)

sábado, octubre 24, 2009

Now that I'm in France

and reading some news about how some entities want to bypass our rights, I have discovered freenet, a decentralized, censorship-resistant distributed data store.
While reading some information about its code, I put on a smile when I realized this.

domingo, octubre 11, 2009

How to install Picasa 3.5 for Linux

The thing is that I took some RAW photos with my new brand Canon 500d and I wanted to view them and edit under Linux.

First thing I did was compile the last version of dcraw and copy the binary to /usr/bin/ in my case using ubuntu. dcraw is the usual decoder that almost all programs use with Linux. This step is not really necessary to run Picasa 3.5 but it helps if you later want to configure other programs or add a plug in for gimp.

I was quite happy with Picasa, but when I tried to read CR2 raw files from the camera it showed a pink/magenta image instead the real one, so the fix to bring compatibility with the camera comes with the last 3.5 version, that Google has not released yet for Linux.
If you want to run latest 3.5 feautures for Linux, like face recognition and raw compatibility just follow the instructions under:
http://cybercom.net/~dcoffin/dcraw/

;-)

miércoles, septiembre 16, 2009

Boot ubuntu in text mode and have sound after running startx

I've disabled gdm by:
user@machine:~$ sudo update-rc.d -f gdm remove

probably not the nicest solution.

It is just the matter to add the user to the audio group, that's the way I did it, and it works. So I don't grant permissions to all users for audio devices.

user@machine:~$ find /dev -group audio -type c -exec ls -l '{}' ';'
crw-rw----+ 1 root audio 14, 0 2009-09-16 19:16 /dev/mixer
crw-rw----+ 1 root audio 14, 4 2009-09-16 19:16 /dev/audio
crw-rw----+ 1 root audio 14, 3 2009-09-16 19:16 /dev/dsp
crw-rw----+ 1 root audio 14, 12 2009-09-16 19:16 /dev/adsp
crw-rw----+ 1 root audio 14, 1 2009-09-16 19:16 /dev/sequencer
crw-rw----+ 1 root audio 14, 8 2009-09-16 19:16 /dev/sequencer2
crw-rw----+ 1 root audio 116, 7 2009-09-16 19:16 /dev/snd/controlC0
crw-rw----+ 1 root audio 116, 5 2009-09-16 19:18 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 6 2009-09-16 19:18 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 4 2009-09-16 19:16 /dev/snd/pcmC0D1p
crw-rw----+ 1 root audio 116, 3 2009-09-16 19:16 /dev/snd/seq
crw-rw----+ 1 root audio 116, 2 2009-09-16 19:16 /dev/snd/timer

We can see by default that our user doesn't belong to audio group

user@machine:~$ id -Gn user
user adm dialout cdrom plugdev lpadmin admin sambashare

So let's add user to group audio:

user@machine:~$ sudo usermod -a -G audio user

Now group audio has rw permissions over audio devices and after running startx we will hear sound.

martes, septiembre 15, 2009

don't run gnome on startup of ubuntu

sudo update-rc.d -f gdm remove

then you can startx manually if you want

if you want to revert

sudo update-rc.d gdm defaults

Give color to ubuntu bash login

http://siddharta.kubuntu-es.org/5852/resaltar-color-prompt-terminal-usuario-root

remember type:

source ~/.bashrc

after changing .bashrc files

Ubuntu text boot up and colorful

http://ubuntuforums.org/showthread.php?t=192675

Enable syntax color while editing with nano

Edit /etc/nanorc

and comment out all the last lines regarding different programming languages.

Add syntax color while editing with vi

sudo apt-get install vim-full

and then just add :syntax enable inside your vi /home/user/.vimrc

viernes, septiembre 11, 2009

Ahí te dejo Madrid...

domingo, agosto 30, 2009

El visor de imágenes más rápido

GQview

Reducir imagenes en linux

sudo apt-get install imagemagick
mogrify -resize 400x300 *.jpg

sábado, agosto 01, 2009

Next stop... Lyon, mind the gap

Let's see... probably in about two months we'll move to a new country. New language, new culture... It's a mix of excitement and nerves.


Ver mapa más grande

domingo, julio 12, 2009

el blog de Erika

Al final no se ha podido resistir... tanto ordenador, cables, pantallas y linux producen que mi niña tenga un blog. Esperemos todos que escriba algo mas en español or in english, así nos enteraremos mas ;-)


http://yquetedijo.blogspot.com

besicos.

martes, junio 23, 2009

Spotify para Android

domingo, junio 07, 2009

Closer - Travis

El vídeo original no permite la inserción en blogs.

En el siguiente está la traducción:

viernes, marzo 27, 2009

Viernes, al fin

alrededor de las seis de la mañana, dormido en el cercanías, me doy cuenta de que tengo esto del blog un poco abandonado. Llevo unos meses bastante liado de curro y la verdad no me quedan ganas para escribir, seguramente en breve cambiara la cosa, feliz viernes.

sábado, marzo 07, 2009

Surge

ese compañero de curro :-), que grande, seguro que llegáis muy lejos...



http://www.surgemusic.es/
http://www.myspace.com/surgedosmilsiete

viernes, febrero 27, 2009

Juicio a The Pirate Bay

http://thepiratebay.org/blog

sábado, febrero 14, 2009

Oasis y Travis en concierto

Las fotos las hice en ambos conciertos con el android G1, la calidad deja bastante que desear, también mi pulso con una cerveza en la mano no es muy fino ;-)

http://www.youtube.com/watch?v=BseffSA3eTA

Veamos que lal funciona publicar en blogger desde Android.

domingo, febrero 01, 2009

How to stream media and TV to your Android G1

The first thing I had in mind when I got the T-mobile G1 was to try a kind of TV streaming to the phone, just in case I have to travel to other countries, for example Sweden, and I would like to hear some Spanish voices :-).

At the end what really you can achieve is a full streaming server with support to stream your music files, videos and of course your dvb-t or dvb-s channels
Another important point for the project was to use open software as much as possible.

So lets go, and I'll explain how I did it:



Main components used:

-Ubuntu Hardy 8.04
-Capture card: Hauppage HVR-4000
-ffmpeg
-x264
-VLC
-Darwin Streaming Server

First thing's first, we will need to compile manually almost all the components to add the necessary features that we want.
We must know also that our beloved phone support some codecs and file containers, as said here, G1 by now doesn't let as port codec library onto it and Adobe says they'll publish flash player 10 for mobile on 2009.

Screen:
3.2-inch TFT-LCD flat touch-sensitive screen with 320 x 480 (HVGA) resolution

Codec:
H.264/AVC
H.263/MPEG4 Part-2
WMV/8 (9 is not playable)
AAC/mp4a/AMR/mp3/wave/wma8 audio

Supported File Container:
.mp4
.3gp

Knowing the requirements lets prepare the server machine for that.
We have to compile the latest ffmpeg and x264 from source, for that you should follow the explanations from:
http://ubuntuforums.org/showthread.php?t=786095

Once finished the installation of ffmpeg, now move to install the latest vlc possible following this guide:

Before building vlc we need the rtsp support that arrive to us thanks to live555, again here we have to compile the sources. To do so follow the tips in:
http://www.live555.com/liveMedia/#config-unix

After that, I built vlc with the next configuration command:

../configure --prefix=/usr --enable-snapshot --enable-debug --enable-dbus-control --enable-musicbrainz --enable-shared-libvlc --enable-mozilla --enable-lirc --enable-x264 --with-x264-tree=/you/path/x264 --enable-shout --enable-taglib --enable-v4l --disable-xvmc --enable-svg --enable-dvdread --enable-dc1394 --enable-dv --enable-twolame --enable-real --enable-flac --enable-tremor --enable-skins2 --enable-qt4 --enable-ncurses --enable-aa --enable-caca --enable-esd --disable-portaudio --enable-jack --enable-xosd --enable-galaktos --enable-goom --enable-ggi --disable-cddax --disable-vcdx --disable-quicktime --enable-lua --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-mp4 --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-x11 --enable-xvideo --enable-dvb --enable-pp --enable-realrtsp --enable-live555 --with-live555-tree=/home/dani/live --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-x11 --enable-xvideo --enable-dvb --enable-pp --with-ffmpeg-tree=/your/path/ffmpeg --disable-zvbi --disable-swscale

and using the guide:
http://www.jbkempf.com/blog/post/2008/03/28/Build-VLC-media-player-under-Ubuntu-Hardy-804

If you find problems during make of vlc regarding libdvb read the next link
http://freshmeat.net/projects/libdvbpsi/
If you find any other issues during vlc set-up, read the comments on the above guide, read the output in the screen, copy and paste it in google and look for the solution. Usually this compilations complain about dependencies dev library's that also needs to be installed. Nothing from another world if you use Linux.

Where are we know?, at this point your system is able to convert videos for watching in your G1, so if you feel tired you can rest a bit by trying to convert an avi file to mp4 and pass it to your SD card to see the quality. You will need to install a video player from Android Market.
So try to do a:

ffmpeg -i source-video.avi -s 480x320 -vcodec mpeg4 -acodec libfaac -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 output-video.G1.mp4

If you want more information about the parameters in that line you can read:
http://androidcommunity.com/forums/showthread.php?p=88879#post88879

Now we are able to do a lot of types of streaming thanks to VLC, but we miss the important one, stream a mp4 container over rtp to be received via rtsp in the G1 client. As we can see in the Output method/muxer matrix table from VLC features

For doing that we are going to rely on Darwin Streaming Server, that is the open source version of Apple's QuickTime Streaming Server technology that allows you to send streaming media to clients across the Internet using the industry standard RTP and RTSP protocols.
We have to install it in our system, I followed a spanish guide for that, but I'm sure that it is possible to find a lot of guides over the internet for this purpose, so choose the one that you like.

After the installation we have to configure it, in my case I only set up the IP address of the server and checked the ports on the configuration file:

/etc/streaming/streamingserver.xml

http://wiki.dlib.indiana.edu/confluence/display/V3/Darwin+Streaming+Server

After the configuration it is a good idea to kill the server (DarwinStreamingServer) and run it again in order to pick up the changes.
At this point you can put your converted mp4 videos into the /usr/local/movies and access them via rtsp://yourserver:yourport/yourfile.mp4
Take into account that for some reason ffmpeg doesn't prepare the mp4 file to use it directly with Darwin, and you will have to prepare (hint) the file before being accesible. For that use:


MP4Box -hint yourfile.mp4

Well, lets move now to watch live television, in my case dvb-t channels. There are some texts on the internet on how to make vlc read from your tv-card, for example this one. But for this tutorial I prefer to access separately each channel, you would have to know the frequency's and other stuff to set it up, and to know that, you can review your channels.conf file after you scan the card with your country/zone settings.
I did it with Madrid-Spain channels, yes I live here, if you want to take a beer let me know :-).
For example let's test that we can see TV with vlc, for example with:

vlc dvb:// --dvb-adapter=1 --dvb-frequency=706000000 --dvb-bandwidth=8 --program=5001

wow, vlc, probably the best media player of the history of the media players.
If you can't get this working review your parameters with the channels.conf or go back to review the outputs of your installation to solve other problems. More information about this in http://www.videolan.org/doc/videolan-howto/es/ch06.html

Finally we can stream creating a sdp file inside /usr/local/movies with the proper permissions, look at the ones that already have webcam.sdp inside that folder.
If you want to stream h264 codec it could be possible that you have to patch a file, h264.c, see more information here https://trac.videolan.org/vlc/ticket/1494

There are multiple ways to do the streaming, changing supported codecs and more options, the one I choose is the next one:


vlc -vvv --color --ts-es-id-pid dvb:// --dvb-adapter=1 --dvb-frequency=706000000 --dvb-bandwidth=8 --program=5001 --sout-standard-access=udp --sout-standard-mux=mp4 --file-caching=3000 --sout'#transcode{fps=13,width=480,height=320,vcodec=mp4v,vb=96,scale=1,acodec=mp4a,\
ab=32,channels=1,cropleft=20,cropbottom=6,cropright=4,croptop=6}:\
duplicate{dst="rtp{dst=127.0.0.1,port=1230,sdp=file:///usr/local/movies/tv.sdp}"}'

note that I use --dvb-adapter=1 because my card is an hybrid one that has dvb-t and dvb-s and the adapter for dvb-t is 1, usually you would have to use 0, also the codecs used by me are mp4v for video, mp4a for audio and muxer mp4. It is also possible to increase the video bitrate(vb=96) to obtain more image quality. Feel free to change the settings for your case.

You can test first that the streaming is working from another station via wifi, by typing something like

vlc rtsp://yourserver/tv.sdp

don't worry if the size of the image looks weird, the important thing is to have a good image on the G1.
I tried to play it with Meridian player because the rtsp support, I got it from the market, but I didn't have good results with rtsp streams. So I moved to use the G1 built-in, that one that pops up when you visit youtube.
So what I did and because G1 browser doesn't allow to type a rtsp url was to make a little html page on the server machine with the rtsp links:


<html>
<head>
</head>
<body>
<a href="rtsp://serverip:port/tv.sdp">DVB Channel 1</a>
<a href="rtsp://serverip:port/myvideo.mp4">Myvideo.mp4</a>
<a href="rtsp://serverip:port/tv.sdp">DVB_channel_ssh?</a>
<a href="rtsp://myserver.dyndns.net:port/tv.sdp">Internet stream?</a>
</body>
</html>


And then I access the url of that html in the server machine with the G1 browser and click on one of the links.
And there you are, you have live television, live videos, live mp3s wherever you are, streaming from your home.
note: The links with question mark (?) I haven't implemented yet, but looks possible, feel free to add your experience.

miércoles, diciembre 31, 2008

Escucha música

un pequeño regalito, viene bien para satisfacer todos los gustos en una fiesta.

Feliz 2009!!!!!!

http://songza.com/

lunes, diciembre 22, 2008

Feliz Navidad

Bueno, pues eso, que espero que paséis unas felices navidades y una muy buena entrada de año rodeados de aquellos que más os quieren.

Playing for change: Song around the world "Stand by me"

sábado, diciembre 20, 2008

Si eres legal eres legal

Si eres legal, comparte..


http://siereslegalcomparte.com/

domingo, diciembre 14, 2008

Instalando Ubuntu en la Play Station 3

Hace ya algún tiempo que tengo la ps3, elegí esta y no la xbox 360, porque sabía que la gente de Sony había hecho un guiño al software libre con esta consola. También alguna chapucilla como no tener un firmware actualizado para la gestión de auriculares con micro vía usb.
Así, dentro del menú principal hay una opción que nos sugiere instalar otro sistema operativo...


Finalmente hoy me he puesto manos a la obra, y siguiendo las recomendaciones para la instalación en

https://help.ubuntu.com/community/PlayStation_3

he finalizado la instalación de la version 7.10 y mediante kboot puedo seleccionar si cargar el sistema operativo de la play con un boot-game-os o bien ubuntu.


Las posibilidades que se me ocurren son muchas, la play viene equipada con un procesador cell , una gran potencia de cálculo que puede ser aprovechada con cualquier propósito, por ejemplo, para colaborar con el proyecto folding home de la Universidad de Stanford. En otras palabras, tu linux puede colaborar en la búsqueda de curas para enfermedades como el alzheimer, el parkinson y otras relacionadas con el cancer.
También es posible aprovechar su rendimiento en aplicaciones que muevan gráficos, por ejemplo para ver vídeos en alta definición, o bien hacer copias de seguridad de tus discos blue-ray mediante dd .

Por el momento no he decidido cambiar el disco duro de 40Gb que lleva, pero también es posible hacerlo por otro SATA de 5400rpm y 2,5p., por aquí se me ocurre montar un centro multimedia, backup de otros pcs, o montar unidades por red... ya veremos.

Una vez instalado y debido a que la ps3 sólo viene con 512 Mb de RAM, puedes adecuar tu distribución con algunos consejos que creas oportunos.


viernes, diciembre 12, 2008




muestra de unos 15 días, los picos de bajada de temperatura son debidos al apagado del pc...

viernes, noviembre 21, 2008

Configurar el mando de la wintv hvr 4000 en Ubuntu

Para hacer funcionar el mando a distancia de esta peacho tarjeta,

sudo apt-get install lirc lirc-x

configura: (fuente linuxtv.org)

Debian: edit /etc/lirc/hardware.conf
DRIVER="dev/input"
DEVICE="/dev/input/eventX"



y para que funcionen las teclas para el kaffeine(gran programa) edita:

/etc/lirc/lircd.conf (Works)

con la siguiente información:

begin remote

name Hauppauge-HVR4000-Remote
bits 16
eps 30
aeps 100

one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x8001
gap 133325
toggle_bit_mask 0x8001001C

begin codes
Power 0x0074
Go 0x0161
TV 0x0179
Video 0x0189
Music 0x0188
Pictures 0x016F
Guide 0x016D
Radio 0x0181
Up 0x0067
Down 0x006C
Left 0x0069
Right 0x006A
OK 0x001C
Back/Exit 0x00AE
Menu 0x008B
PrevCh 0x019C
Mute 0x0071
Vol+ 0x0073
Vol- 0x0072
Ch+ 0x0192
Ch- 0x0193
Rec 0x00A7
Stop 0x0080
Play 0x00CF
Pause 0x0077
Rewind 0x00A8
Forward 0x00D0
Replay 0x00A5
Skip 0x00A3
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
Text 0x0184
Sub/CC 0x0172
Red 0x018E
Green 0x018F
Yellow 0x0190
Blue 0x0191
end codes

end remote


Para que todo se inicie al arranque del ordenador necesitarás iniciar lircd con permisos de root, para ello edita el fichero /etc/rc.local, añade la carga del demonio lirc allí.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

logger "iniciando lircd"
sudo lircd --driver=dev/input --device=/dev/input/eventX
exit 0


mira dentro de dmesg para asignar el número X concreto al event del device.

También son necesarios los procesos irxec e irxevent lanzados como demonios -d, para ello yo he creado un script con permisos de ejecución en init.d. Probé a iniciarlos con el aranque mediante un update-rc.d defaults, pero necesitan tener cargadas las X de Ubuntu primero para funcionar, lógico, vienen del paquete lirc-x. Así que dentro de System-Preferences-Sessions de tu Ubuntu añade la ejecución de /etc/init.d/lircinit

chmod +x /etc/init.d/lircinit

more /etc/lircinit
#!/bin/bash
#echo "iniciando lircd"
logger "iniciando irexec"
irexec -d
logger "iniciando irxevent"
irxevent -d

Reinicia tu ordenador y comprueba que se han arrancado

tail -n 100 /var/log/messages

....


yo@peachomaquina:/$ ps aux | grep ir
root 7124 0.0 0.0 2932 552 ? Ss 20:06 0:00 lircd --driver=dev/input --device=/dev/input/event5
yo 7305 0.0 0.0 1716 332 ? Ss 20:06 0:00 irexec -d
yo 7310 0.0 0.0 2936 644 ? Ss 20:06 0:00 irxevent -d
yo 11837 0.0 0.0 4068 788 pts/1 S+ 23:15 0:00 grep ir



ps: no me hago responsable del aumento de peso de los lectores ;-)

sábado, noviembre 08, 2008

Marriage of Figaro - Le Nozze Di Figaro (The Shawshank Rdmp)



otra de las mejores películas de la historia de las películas...

Youtube link: http://www.youtube.com/watch?v=U8z_i3NAxbM

martes, septiembre 16, 2008

Detta är för dig flicka


 

Creative Commons License
Esta obra está bajo una licencia de Creative Commons.