Search This Blog

Thursday, December 19, 2013

La Poste (bis) : le tarif de la prestation Livres et Brochures à disparu !

L'offre Livres et Brochures de la Poste

Cette possibilité est très intéressante quand on doit envoyer des livres à l'étranger et qu'on est pas pressé. De fait c'est le tarif de choix pour tout membre de BookMooch. Avec ce tarif il revient moins cher d'envoyer un livre à Zanzibar (7 000 km au sud) qu'à Nantes (depuis Paris).

À noter que cette disparition est aussi signalée sur ce blog : http://livresetbrochures.blogspot.fr/
Qui contient aussi les (anciens ?) tarifs : http://livresetbrochures.blogspot.fr/2011/11/le-tarif-livres-et-brochures-de-la.html

J'ai demandé à "Lisa La Poste" (@LisaLaPoste) sur twitter où était passé ce tarif. Réponse après tergiversation : "contactez nos Conseillers Internationaux" (par téléphone) :


La poste a t'elle le droit d'offrir un service sans communiquer ses tarifs ? Non répond l'Arcep :


Dites non à l'offre Colissimo de La Poste !

Inroduction

Je me rends à la poste pour envoyer un disque dur au centre de réparation en France.

Les dimensions d'un disque dur de 3,5 pouces sont, en gros, 10 cm x 16 cm x 3 cm et le poid inférieur à 750 grammes.

La Poste

Le guichetier palpe le paquet et me dit "ça fait plus de 2 cm d'épaisseur, vous devez envoyer par Colissimo".

Je suis un peu surpris, c'est n'est ni lourd ni encombrant. Enfin bon, je paie mes 7,5 euros et je rentre chez moi. Mais comme cette affaire me travaille, et connaissait les pratiques de la poste, je vais faire un tour sur les interwebs, et je trouve ceci :
http://forum.quechoisir.org/pli-de-plus-de-2-cm-d-epaisseur-colissimo-obligatoire-t7806.html#p53283

Forum Que Choisir

L'article dont le lien est cité plus haut est reproduit ci dessous :


En en effet, quand on regarde les tarifs de la poste (http://www.laposte.fr/Particulier/Envoyer-et-recevoir-du-courrier/Tarifs-Courrier) on voit dans le tarif Lettre Prioritaire :


Dimensions minimales 14 x 9 cm ... bien... maximales L +l + H = 1m avec une longueur maximum de 60 cm... mon disque dur prend 50 fois moins de place que ça ! J'aurais du donc payer 4,40 euros. Ah ! Il faut rajouter le suivi, et ça je ne sais pas où trouver le tarif...

L'Arcep

L'ARCEP (Autorité de régulation des communications électroniques et des postes) dénonce aussi le comportement de la poste :
http://www.arcep.fr/fileadmin/reprise/communiques/lettre/pdf/lettre57-page11-postal.pdf

Il est parfaitement légitime que l’opérateur développe des produits orientés vers certains usages (envoi de livres, envois de photos, de bouteilles de vin) mais il ne peut pas contraindre les usagers à y recourir. En effet, une tarification qui tient compte des coûts, et par extension du contenant, ne signifie pas pour autant qu’elle peut être intrinsèquement liée à la nature du contenu des envois.

Réclamation

J'ai donc déposé une réclamation. On verra bien quelle sera la réponse de la poste.



Wednesday, December 18, 2013

How to make a blogger blog fluid ?


Fluid means that the content displayed changes with he size of the browser window. A liquid or fluid blog has a default width, for example 950 pixels, not matter what, e.g. changing the size of your browser window will just add more pixels fille with the background on each side of the main (inner) view (rectangle) :



To make the blog fluid, click Template (just above Settings, last item of the list on the left, this menu is in your blog dashboard window), click on the Edit HTML button and change:

.content-outer, .content-fauxcolumn-outer, .region-inner {
    min-width: 800px;  /* $(content.width); */
    max-width: 2200px; /* $(content.width); */
    _width:    100%;   /* $(content.width); */
}

Which means that the inner page will never be smaller than 800 pixels but can be as large as 2200 pixels, and that is 100%  of this space should be filled. The value between /* ... */ are the original (commented) ones.

To try it just resize your browser window. The left and right column width should stay the same, while the blog text area should change.

There are also a bunch of Blogger free templates out there, do an internet search "free blogger template fluid" or something !

unix: an example of | (pipe) abuse

Something that really makes me mad: people using pipes when they should not. Most common example is:

cat foo.txt | grep bar

when looking for the list of lines containing the string "bar" inside the file named "foo.txt".

The correct command should read:

grep bar foo.txt

If you use cat filename | command the drawbacks are :

  • You created a bunch of processes where just one was enough. 
  • The communication between process cat and process grep is pretty slow, you're moving the data twice, once from the disk to the cat process space, then again from there to the grep process space.
  • Defeat any clever OS hack made to read file faster, like "mapping" them.
Since almost all file related commands accept a list of filenames as last argument you should use grep frob foo.txt bar.txt quux.txt but not cat foo.txt bar.txt quux.txt | grep frob . Also grep will output the filename where a match was found:

$ >a
$ date>b
$ >c
$ >d
$ grep 1 a b c d
b:Wed, Dec 18, 2013  9:28:21 PM
$ cat a b c d |grep 1
Wed, Dec 18, 2013  9:28:21 PM


Timing example :
$ time grep f00bar largefile

real    0m2.136s
user    0m0.078s
sys     0m0.078s

$ time cat largefile | grep f00bar

real    0m13.928s
user    0m0.077s
sys     0m0.139s

Error 7 (Windows error 193) and/or "bad image" for some DLL

Error 7 (Windows error 193) and/or "bad image" for some DLL

The popup error message says that for example "C:\Program Files (x86)\Common Files\Apple\Apple Application Support\CoreAudioToolboxBAD.dll Bad Image".

Desintalling and reinstalling doesn't work. Installer fails.

Step 1: To solve the error 7, Apple claims that Microsoft .NET must be reinstalled, see: http://support.apple.com/kb/ts3074
Note that they specify the version number of .NET, for example 4 (four). In that case, if you had 4.5 installed you must first uninstall the 4.5 version, other wise the 4.0 installer will NOT work saying that a newer version is installed.

Step 2: Open an Explorer window [Windows]-e. Navigate to the the faulty dll folder. Find the bad DLL file and rename it (eg. click right on its name, choose Rename, append BAD to its name). 
Notice that the file size was wrong, it was reseted to 0.
Click on picture to enlarge.


Step 3: reinstall iTunes. A new dll file must be added next to the old, bad, renamed one, with the good size and attributes.

iTunes: Error Entry Point Not Found SQLite3.dll (or any other dll)

Error Entry Point Not Found SQLite3.dll

This popup happens at boot time. The solution which solved my problem is given there: https://discussions.apple.com/message/15711716#15711716 but it is NOT the recommend answer.

What I did is:
Open an Explorer window (type [windows]-e) on your keyboard, start from disk C: (your system disk) and navigate down to
C:\Program Files (x86)\Common Files\Apple\Apple Application Support
Select the SQLite3.dll file, press [Control]-c.
Navigate (up) to:
C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
and copy the file here, e.g. press [Control]-v.

Restart your computer.

ps: Program Files (x86) should read Program Files if your system is 32 bits.

How to move a google site from a google app account (domain) to another

The idea is: add the administrator of the target domain name as owner of the first one, then copy the site. The difficulty comes from the fact that when you're logged in as admin on the target domain you don't see the source domain name listed...

Suppose you have a google app under domain name source.com. You have built a web site named "foo" and you want to move it another google app account named target.com.


Step 1: login under your admin account on source,com google app (probably from http://admin.google.com/source.com).
Step 2: go to sharing page (hit the Share button, top right).
Step 3: add the administrator of target.com domain as owner (of source.com), e.g. you share source,com with admin@target.com.
Step 4: logout from source.com admin account and login as admin at target.com.
Step 5: visit https://sites.google.com/a/target.com , Or if you want you can go to https://sites.google.com but even if you see all the sites inside target,com you still don't see the site from source.com even if you are the owner of it since step 3. That's because Google writes "My Sites in target.com" so they don't include sites from other accounts.
Step 6: Now that you are in "My sites in source.com", click on the site you want to import (eg. click on foo.source.com, the site to copy to target.com).
Step 7: From https://sites.google.com/a/source.com/foo/ choose manage sites from the menu.
Step 8: Select Copy this site. Enter a site name, for example bar, it'll be appended Next to https://sites.google.com/a/target.com/ .
Step 9: click COPY. Wait. It's done. 

Now the new site bar.target,com is a copy of foo.source.com. You should Login under the admin of foo.source.com and remove the account @target.com from the owners list.

[EDIT]

It seems this free fine app does exactly that : Site Copier for Google Apps

Connect to to Justin TV IRC

I was trying hard to connect to justin.tc IRC server (irc.justin.tv) using an IRC client. All I could get was a this message :

* Connect retry #9 irc.justin.tv (6667) (dns pool)
-
-tmi.twitch.tv- Login unsuccessful
-

The problem is that the password you must give is not the same than the one you use to connect to justin tv on the web using your browser.

Here is how you resolve this problem :

Step 1: find your password. 
Short version: in your favorite browser visit this page :
http://www.justin.tv/chat/embed?channel=NAME_OF__THE_CHANNEL&is_popout_chat=true&chat_debug=true
after replacing NAME_OF__THE_CHANNEL by the actual name of the channel you want to connect to.
Long version
To do so connect to the page on http://www.justin.tv/<the channel you want to watch> for example http://www.justin.tv/winning_shows_05/.

Click on the Tool icon on top of the chat. 






Click on the Popup icon.

 





Now the chat is own its own window. On top of this page you have its address, looks like :
http://www.justin.tv/chat/embed?channel=NAME_OF__THE_CHANNEL&is_popout_chat=true
What you need to do is connect to :
http://www.justin.tv/chat/embed?channel=NAME_OF__THE_CHANNEL&is_popout_chat=true&chat_debug=true
(that's the same address with the string "&chat_debug=true" appended).

Something like this will display (you might need to scroll UP the page) :
DEBUG: Connecting to THE_CHANNEL_NAME
DEBUG: Connecting to 199.9.252.5:443
DEBUG: connected
DEBUG: trying to log in as 'YOUR_USERNAME' 'SOME_VERY_LONG_STRING'
DEBUG: Joining THE_CHANNEL_NAME
DEBUG: Received irc message IRCMessage from 'tmi.twitch.tv' to 'YOUR_USERNAME', with command '001' and message 'connected to TMI'

THE_CHANNEL_NAME is the name of the channel you are connecting, for example winning_shows_05. 
YOUR_USERNAME is your justin.tv username.
SOME_VERY_LONG_STRING is your password, encrypted.

DO NOT GIVE YOUR PASSWORD TO ANYONE.

Step 2: Now, go to your IRC client and use this password (the long string) as the server password. Your nick must be your justin.tv username.
The IP below can be used instead of irc.justin.tv.




Justin IRC help page:
https://help.justin.tv/entries/24339362-Chat-Guide-Everything-You-Need-To-Know


DO NOT GIVE YOUR PASSWORD TO ANYONE.

Apple iTunes: how to sync a device with a given playlist

I have a 160 GB iPod, and a 64 GB iPhone and my iTunes library is larger than 300 GB. How can you sync all or only given songs to a particular device ?

About Compression levels

My iTunes library is huge because many CD are stored in the Apple lossless format ALAC. Here are some compression ratios for a given CD.

 WAV  ALAC  AAC256K  AAC192K  AAC128K  Format
 424776   284684   77544   58280   39008   Size in KB
 100%  67.02%  18.26%  13.72%  9.18%  % ratio
 0%  -32.98%  -81.74%  -86.28%  -90.82  Compression %
Wav is the raw CD ROM uncompressed file format. ALAC is the Apple lossless format.

Another example: my playlist is 99.64 GB in iTunes and 27.57 when stored in 128 kbps on my iPhone.

How-to create and sync your iPhone/iPad with a playlist

To store selected albums/tracks/songs to your iThing you must do two things:
  1. create one playlist per device
  2. tell iTunes to compress the files to 128 Kb/s (or more) when syncing the device.
Step 1: Create a playlist by using the menu File item New then Playlist, or hit [Control]-n. Put any songs/album you want inside the playlist. 
Watch the status bar at the bottom of the iTunes window displayed values grow:




Step 2: Select the device, select the tab Summary. Down the page select the option "Convert higher bit rate songs to 128 Kbps AAC (or 192 or 256).
In the Music tab select Selected playlists, artists, albums and genres on top of the page, and the playlist on the playlists list, of course.
Press the Sync button at bottom of this page.