lundi 12 décembre 2011

OpenData

Qu'est-ce que c'est ?

Twitts à ce sujet
https://twitter.com/#!/search?q=%23opendata

Différentes sources de données ouvertes
US : http://www.data.gov/
UK : http://data.gov.uk/
FR : http://www.data.gouv.fr/ 


Autres :
FR, SNCF : http://data.sncf.com/
FR, Région : http://datablog.loire-atlantique.fr/

lundi 5 décembre 2011

Carrier IQ detection

La semaine passée, cela a un programme a été révélé comme ayant été installé de base sur de nombreux téléphones par les "Carier" (opérateurs). Il semble que ce programme ne soit qu'un loggueur officiellement mis en place pour adapter le service. Mais cela laisse un arrière goût assez malsain de les savoir installant ce genre de choses sur nos téléphones...

Test : Application pour tester la présence sur votre device : market.android.com : voodoo simple carrier IQ detector

Articles : http://www.linuxfordevices.com/c/a/News/Voodoo-Carrier-IQ-detector/ & autres.

lundi 31 octobre 2011

pdf and images without X

This software allows you to view pdf, images, etc. without launchning th X server. It just uses the framebuffer :-)


You can find it here :

vendredi 14 octobre 2011

CMYK, 300DPI and Linux (Ubuntu)

Wishing to participate in a graphic contest, I had to follow some strict rules:

  • Less than 5MB

  • "CMNJ" which I found is the french for "CMYK colors"

  • JPEG hi-def




It took me some time to find the appropriate tools for Ubuntu Linux, since Gimp was not much help with all that. CMYK seemed to be planned for the Gimp-v3.0, but all I found were comment on this "future release" (I'm now using "GNU Image Manipulation Program version 2.6.11", standard one with Ubuntu...).


DPI problem



I used the XnView tool to reset the DPI to 300.
xnview : (sudo apt-get install xnview was enough to install it !)


I found this tool following what is explained here : http://www.rideau-info.com/photos/changedpi.html.



CMYK problem



First of all, I had never heard about it, so I was gonna assume it was the default format... In French CMYK is called CMJN, and referred as "Quadrichromie" (opposed to "RGB"(en) "RVB"(fr) "trichromie").

Of course, the pictures I had were in RGB, so I had to convert them to CMYK.

I found a tool able to do that easily, coming on the side of the LittleCMS image library : jpegicc !

Hoping my quest was over, I read the doc on how to use it, and found that CMYK needed some "profiles definition". Looking around on the net, I found some distributed by Adobe doing a search on their website "research" tool. I then found a .zip, unpacked it and had RGB and CMYK profiles (~10 differents).



In order to test them, I applied all of them (in the folder "profiles/CMYK_Profiles/" ) to a sample file "test2.jpg" to see the resulting colors :
for i in profiles/CMYK_Profiles/* ; do jpegicc -o"$i" test2.jpg test2.cmyk--`basename "$i"`.jpg ; done


To the lazy ones, the command for a single profile (or to copy-past it) :
jpegicc -oProfile.icc file-In-RGB.jpeg file-Out-CMYK.jpeg


Those were rendering quite different colors at the end, and I said good bye to my white background.

samedi 16 avril 2011

Eeepc RT2860 Driver Wifi problem

Solution qui fonction pour moi sous Ubuntu pour installer le driver Ralink sur Ubuntu en remplacement du driver par défaut fourni avec le kernel. Le module incriminé est "rt2860sta.ko", utilisé pour le wifi sur un Asus Eee 1000H.



Ceci est un mini tuto rédigé pour cette machine:

> Linux kilt 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:21 UTC 2011 i686
> GNU/Linux
>
> Ubuntu en distrib 10.04
>
> module wifi rt2860sta


Il faut avoir téléchargé sur les sites appropriés ce paquet :

2010_01_29_RT2860_Linux_STA_v2.3.0.0.tar.bz2
2010_07_16_RT2860_Linux_STA_v2.4.0.0.tar.bz2


Voici les commandes à taper :

lsmod |grep rt

<désactiver le wifi>
sudo rmmod rt2860sta

<décompresser l'archive>
cd <Répertoire créé>
make
cd os/linux/
ls
sudo insmod rt2860sta.ko

<SI insertion réussie : Réactiver le wifi>
<SINON refaire la même avec l'autre tar.bz2>

<tester si ça marche>
<Si ok, pour que ce soit le driver par défaut, copier dans les modules du kernel>
sudo cp rt2860sta.ko /lib/modules/2.6.XXX-generic/kernel/drivers/staging/rt2860/rt2860sta.ko

vendredi 15 avril 2011

Lastest stable version of firefox

Directly from mozilla, have the repository point directly to firefox (found looking for the ubuntu release of firefox 4).

sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update && sudo apt-get upgrade

lundi 7 mars 2011

(android app) Son en Morse en fonciton du numéro

http://www.aigarius.com/blog/2011/02/11/morzesms/

Application émettant un son (+ ou - en morse) différent en fonction de la personne qui vient d'envoyer un sms.

jeudi 24 février 2011

Enlever les dictionnaires inutiles de firefox, ooffice, thunderbird, etc.

Problème :
Les menus pour changer de langue pour la correction orthographique sont saturés par des dictionnaires installés par défaut par les distributions (exemple : la correction orthographique Français installe également les versions canadiennes, belge, suisse, etc.). On se retrouve ainsi avec des dizaines de langues disponibles dans les menus où choisir la langue, là où 2 ou 3 seraient suffisant.

Solution :

  • Trouver où sont définis ces dictionnaires :

    Pour firefox par exemple, le repertoire
    /usr/lib/firefox-3.6.13/
    contient un repertoire nommée
    dictionaries
    qui est en fait un lien vers
    /usr/share/hunspell
    .


  • Enlever les références vers les dictionnaires inutilisés:
    Le répertoire précité contient en fait un certain nombre de liens pointant vers les quelques dictionnaires (exemple :
    es_AR.aff -> es.aff
    ).
    Soit vous supprimez tout ceux qui ne vous intéressent pas, soit vous créez un repertoire et les y déplacez, au cas où vous souhaitiez faire la manipulation inverse plus tard.

    Dans mon cas, cela m'a donc donné :

    cd /usr/share/hunspell/
    sudo mkdir removed
    sudo mv *AU* *CA* *ZA* *DO* *EC* *GT* *HN* *MX* *NI* *BE* *UY* *SV* *LU* *MC* *CH* *CL* *AR* *BO*
    *VE* *PA* *CO* *CR* *PY* *PE* *CU* *PR*
    removed/





Solution adaptée de :
http://ubuntuforums.org/showpost.php?p=5293436&postcount=8

jeudi 3 février 2011

ROM alternative pour android gallaxy S

DARKY : ROM pour Gallaxy S


http://forum.xda-developers.com/showthread.php?t=814091


Boosterait parrait-il plus que sensiblement les performances du tel.

lundi 3 janvier 2011

Google Spreadsheet tricks

(link)

On y trouve les trucs suivants :

  • =IMAGE(A2), where A2 must contain a valid URL


  • =GOOGLETRANSLATE(A2, “en”,”it”)

  • =SPLIT(A2; “;”)

  • =hyperlink(“URL”,”Title”) =HYPERLINK(A2, B2)

  • =DAYS360(A2,B2) with A2 and B2 containing dates