Supply

Update: Added sorting and changed the order of assigning values to variables, so that manually set variables through command line options override those from the .supplyrc file. Oh, and also I added the verbose switch. (Apr 27, 11:44 PM)

Supposing you go on trains a lot, and you listen to audiobooks and/or podcasts when you do. I know of two problems that tend to arise then.
  • The trains are too damn loud and you can't actually hear your shows, even if you set your audio player on full blast and your hands over your ears.

  • You do this way too often and you get tired of shifting files by hand, especially if you've gotta do this file by file, since your audio player cares about the order in which files are loaded onto it, and your file system does not cooperate. Geek.
So it would be good if you could automate the process and apply some extra volume! And this is what this script does.

I've been putting it together for several weeks (I actually started last year and then got bored), scripting during lectures and so forth (when I should've really been paying attention to the complexities of MPEG-7) and came up with this wild bunch of code, all tied together.

It seems to work too!

It has several options:
  • Target is the device you want to put stuff on. In my case this can be /media/disk or /media/KINGSTON. I suggest fixing this up in the script itself (line 40) or, preferably, in the config file (more on that later).

  • Subdir(ectory) is a directory on the device that you want to put stuff in. I'd not set this up to fixed values anywhere, and would call it Books and Music. This would result in the files being placed into /media/disk/Books and /media/disk/Music, respectivelly.

  • Quiet will make the script not print out any info comments. It will still print out various warnings and assorted errors - if you want to desperately get rid of those redirect the error stream to /dev/null, like to ./supply 2> /dev/null

  • Gain probably the most important bit for us train-and-tram commuters. Sets a tag in ogg and mp3 files that tells the player to play louder. Setting gain to 5 will make it really loud... if you set it too loud it will start crackling like the bejesus...
Yeah, quite a few options, even if I say so myself...

But the purpose of this exercise to have it all simple! And that's where to config file comes in. You take the file called .supplyrc and put it in your home (~) directory (see line 41 in the source code). You put in the values you like into the config file, and you don't have to worry too much about configuration anymore! Isn't life grand?

So here's a simple example of use (supposing you're using my config file, as shown below):
./supply ~/Books/Nineteen\ Eighty-Four/ -s Books -g 2
This will put the audiobook into the directory /media/disk/Books/Nineteen\ Eighty-Four and increase the gain to 2, so it will be a bit louder.

Oh yeah! I almost forgot. You need to acquire vorbisgain and/or mp3gain to make oggs and/or mp3s louder. I usually install them via apt:
sudo apt-get install mp3gain vorbisgain

Gain modification will only work with oggs and mp3, and they have to have the appropriate extensions (because I have to tell them apart somehow) - ogg or oga, or mp3.

And another thing, this one's GPL v3 or more.

Here's the config file I made for myself and as a general template:
1 #!/bin/bash
2 # Filename: ~/.supplyrc
3 # Default settings for supply.sh
4 
5 # Path to the device. Where to put the files by default. 
6 # Needs to be a directory and end in a slash (/).
7 target=/media/disk/
8 
9 # Where to put the files on the device pointed to by $target.
10# Needs to be a directory and end in a slash (/).
11subdir=Books/
12
13# Gain setup. Leave commented out to have no gain by default.
14# An arbitrary number.
15# gain=0
16
17# Quiet mode: print messages, or not.
18# Allowed values: true, false.
19# quiet=true


And here's the code:
1  #!/bin/bash
2  
3  # Supply
4  #
5  # A script to supply your audio player with new audio files, with the
6  # extra ability to control gain in oggs and mp3s.
7  #
8  # Usage:
9  #   t, target=<DIR> - Move media onto specified device
10 #   d, subdirectory=<DIR> - Move media to a dir on the device (opt.)
11 #   c, config=<FILE> - Apply specified configuration file (opt.)
12 #   g, gain=<NUMBER - Apply specified gain value to all files (opt.)
13 #   q, quiet - Do not print info messages (but still print warnings)
14 #   v, verbose - Print info messages (opposite of quiet)
15 #   <FILE LIST> - Act on these files and directories
16 #
17 # Requires:
18 #   vorbisgain
19 #   mp3gain
20 #
21 # Addendum regarding Ogg gain controls:
22 #   vorbisgain input files must be Ogg Vorbis I files with 1 or 2  
23 #   channels and  a  sample  rate  of 48 kHz, 44.1 kHz, 32 kHz, 24 
24 #   kHz, 22050 Hz, 16 kHz, 12 kHz, 11025 Hz or 8 kHz. If  an  input
25 #   file  contains  multiple streams  (i.e., it is chained), the 
26 #   streams must all have the same format, in terms of sampling 
27 #   frequency and number of channels. All streams in a chained file 
28 #   are processed, but  the ReplayGain tags are only written to (or 
29 #   removed from) the first stream. 
30 #                                               -- vorbisgain(1)
31 # License:
32 #   Copyright 2009 Konrad Siek <konrad.siek@gmail.com>
33 #   This program is free software: you can redistribute it and/or 
34 #   modify it under the terms of the GNU General Public License as 
35 #   published by the Free Software Foundation, either version 3 of 
36 #   the License, or (at your option) any later version. See 
37 #   <http://www.gnu.org/licenses/> for details.
38 
39 # Default settings
40 target=/media/disk
41 config=~/.supplyrc
42 source=.
43 quiet='false'
44 #subdir=Books
45 
46 # Echo function with possible silencing
47 function sysout {
48     if [ "$quiet" != 'true' ]
49     then
50         echo "$0: $1"
51     fi
52 }
53 
54 # Echo function redirecting to standard error
55 function syserr {
56     echo "$0: $1" >& 2
57 }
58 
59 # Parse options
60 options=$(\
61     getopt \
62     -o c:t:g:d:q:v \
63     --long gain:,target:,config:,subdirectory:,quiet,verbose \
64     -n $0 -- "$@" \
65 )
66 
67 # Stop if there's some sort of problem
68 if [ $? != 0 ] 
69 then
70     syserr "Argh! Parsing went pear-shaped!"
71     exit 1
72 fi
73 
74 # Set the parsed command options
75 eval set -- "$options"
76 
77 # Setup selected options
78 while [ 1 ]
79 do
80     case "$1" in
81     -c|--config) 
82         config=$2
83         shift 2 
84     ;;
85     -g|--gain)
86         custom_gain=$2
87         shift 2
88     ;;
89     -t|--target)
90         custom_target=$2
91         shift 2
92     ;;
93     -d|--subdirectory)
94         custom_subdir=$2
95         shift 2
96     ;;
97     -q|--quiet)
98         custom_quiet='true'
99         shift 
100    ;;
101    -v|--verbose)
102        custom_quiet='false'
103        shift 
104    ;;
105    --) 
106        # Stop parsing options
107        shift
108        break
109     ;;
110    *) 
111        # Weird error
112        syserr "Hide! It's gonna blow!"
113        exit 2 
114    ;;
115    esac
116done
117
118# Source config file if one exists
119if [ -f $config ]
120then
121    sysout "Sourcing configuration file: $config"
122    . "$config"
123else
124    sysout "No configuration file present."
125fi
126
127# Apply the so-called custom settings
128if [ $custom_gain ]; then gain=$custom_gain; fi
129if [ $custom_target ]; then target=$custom_target; fi
130if [ $custom_subdir ]; then subdir=$custom_subdir; fi
131if [ $custom_quiet ]; then quiet=$custom_quiet; fi
132
133# Create full path
134fullpath="$target/$subdir"
135
136# If destination doesn't exist...
137if [ -e $fullpath ]
138then
139    # Ok, so there is something there...
140    if [ ! \( -d $fullpath \) ] 
141    then
142        # ...but that something is not a directory!
143        syserr "$fullpath is not a directory"
144        exit 4
145    fi
146    if [ ! \( -w $fullpath \) ]
147    then
148        # ...but we can't write there!
149        syserr "No write permission for $fullpath"
150        exit 8
151    fi
152else
153    # Create destination
154    mkdir -p $fullpath 2> /dev/null
155    if [ "$?" != 0 ]  
156    then
157        syserr "Can't create destination $fullpath"
158        exit 16
159    fi
160fi
161
162# Apply gain, you daft bugger.
163# Seriously, do I have to spell it out for you?
164function gain { 
165    # Resolve extension
166    ext=$(echo "$1" | awk -F "." '{print $NF}')
167
168    # Use the correct damn gain modification tool
169    if [ \( "$ext" == "ogg" \) -o \( "$ext" == "oga" \) ]
170    then
171        # Print short info
172        sysout "Setting gain to $gain for $(basename "$1") using vorbisgain"
173
174        # Run gain update for oggs
175        vorbisgain -q -g $gain "$1" 2> /dev/null
176    elif [ "$ext" == "mp3" ]
177    then
178        # Print short info
179        sysout "Setting gain to $gain for $(basename "$1") using mp3gain"
180
181        # Run gain update for mp3s
182        mp3gain -k -q -g $gain "$1" 2> /dev/null
183    else
184        syserr "Skiping gain modification for $(basename "$1")"
185    fi
186}
187
188# Process an unknown file type
189# (Direcotries are also a kind of file...)
190function resolve {
191    relative=$topdir${1:$cutoff}
192    #echo $cutoff $relative
193
194    if [ ! -d "$1" ] 
195    then
196        sysout "Copying $(basename "$1") to $(dirname "$fullpath/$relative")"
197
198        # Copy a file to destination
199        cp "$1" "$fullpath/$relative"
200
201        # Apply gain modification
202        if [ "$gain" != "" ]
203        then
204            gain "$fullpath/$relative"
205        fi
206    else
207        sysout "Creating directory $fullpath/$relative"
208
209        # Create a directory at destination
210        mkdir -p "$fullpath/$relative"
211
212        # Copy stuff
213        cp_dir "$1"
214
215        # TODO This could be optional...
216    fi
217}
218
219# Process a directory
220function cp_dir {
221    find "$1" | sort | while read f
222    do 
223        # Do NOT work on your own self, dumbass!
224        if [ "$f" == "$1" ]
225        then
226            continue
227        fi
228
229        # But work on everything else, accordingly
230        resolve "$f"
231    done
232}
233
234# Copy files from the sources to the destination directory
235if [ "$#" == 0 ] 
236then
237    # If no paths were given, use the current directory
238    cp_dir "."    
239else
240    for arg
241    do 
242        cutoff=${#arg}
243        topdir=$(basename "$arg")/
244
245        resolve "$arg"
246    done
247fi


The code is also available at GitHub as bash/.supplyrc and bash/supply.
Continue Reading...

Pirate Bay: a writer's perspective


The Pirate Bay ruling has unleashed a lot of emotion on the web. It's interesting that the discussions have centred on movies rather than music this time. Coming from the music biz, I can safely say to the movie businesses: "you ain't seen nothing yet" in terms of piracy. For creators, trying to find justifications for Pirate Bay is a very dangerous game to play for - in my opinion - two major reasons. 1) it promotes piracy on a very, very large scale indeed, and 2) by centralising free content it also blocks any of the other initiatives that creators might try and put in place.

Let me explain: the one big lesson people are not taking from the music debacle is that creators need to connect directly with their audiences. This is even more important to me than individual distribution. We have to build and nurture audiences so that they are available to us, rather than third-party sites. The good news for people that like it is that giving stuff away is going to be a major part of the new biz anyway. But WE have to be giving it away to OUR audiences. The freebies have to be part of OUR strategy, not Pirate Bay's or YouTube's. People have to come to OUR sites, and be exposed to OUR goodies, T-shirts, Director's Cuts, downloadable scripts, public appearances and OUR ads. Otherwise we will never be able to control our futures.

By giving everything away both YouTube and Pirate Bay short-circuit our ability to build audiences as they hold onto both the visitor data and the advertising revenue, leaving us the crumbs from our own table.

Most people I know are aware that people spend money to create music and movies, and are willing to participate in one way or another. Personally, I like visiting the sites of writers and directors, reading their comments and occasionally buying their books, movies or whatever. But both Pirate Bay and YouTube increase the distance between the creator and the spectator, which is why I think they both should be treated with caution.

All the rest about freedom, copyrights and the end of the world as we know it is editorial chatter.
Continue Reading...

Comment mettre le flux (fil) de son blog sur un site ?

Voici comment mettre le flux (atom) de votre blog sur un site grace à Feedburner.Pour cela, il faut avoir un compte et enregistrer le flux (atom) de votre blog sur Feedburner.Il suffit de cliquer sur l'onglet "Publicize" et sélectionner "BuzzBoost".Il faut ensuite régler les parametres du flux ("Feed Settings") : nombre d'éléments à afficher ("Number of items to display") ...Cliquez ensuite sur
Continue Reading...

"Il Divo" opens in Germany


Paolo Sorrentino's explosive account of Italian prime minister Giulio Andreotti opens in Germany. The film takes a look at the secrets behind power in Italy during Andreotti's successive spells as the Prime Minister. Andreotti was known as the untouchable, with possible links to the Masonic lodge and the Sicilian mafia. Not surprisingly, Sorentino's film had a hard time finding financing and sponsors in Italy but made a deep impression at Cannes, where it won the Prix du Jury. "Il Divo" is also currently playing in Belgium. Official site.
Continue Reading...

Convert file encodings

Here's to a new bit of code!

I wrote this program once, called Tester, which my dad is using in his day-to-day language teaching.

I wrote the thing quite a long time ago, so it's a bit buggy here and there, and one of the problems is that it doesn't handle encodings well. Since dad is thinking about using Ubuntu, the mishandled encodings are a problem: he used to have them encoded as WINDOWS-1250, but the current settings allow him to use only UTF-8 on Ubuntu.

Hence, this program, to convert between the two. Since the files come in bulk, I figured doing entire directories at once is a good idea.

Also, I wrote it in about an hour and a bit, so it might be a bit buggy here and there...

Here's the code:
1 #!/bin/bash
2 
3 # Convert directory 
4 #
5 # Convert text files in the directory from one encoding to another,
6 # all in a simple GUI. Converts between UTF-8 and WINDOWS-1250.
7 # 
8 # Requires:
9 #   zenity
10#   iconv
11# Author:
12#   Konrad Siek
13
14
15# Get directory to convert files in
16directory=$(\
17    zenity \
18    --file-selection \
19    --directory \
20    --title="Select a directory to convert" \
21)
22
23# If none selected, quit.
24if [ $? != 0 ] 
25then
26    exit 1
27fi
28
29# Select source encoding from a list.
30source_encoding=$(\
31    zenity --list \
32    --column="Encoding" \
33    --title="Source encoding" \
34    --text="The files are currently encoded as... " \
35    WINDOWS-1250 UTF-8 \
36)
37
38# If none selected, quit.
39if [ $? != 0 ] 
40then
41    exit 1
42fi
43
44# Select destination encoding from a list.
45destination_encoding=$(\
46    zenity --list \
47    --column="Encoding" \
48    --title="Destination encoding" \
49    --text="And you want these files encoded as... " \
50    UTF-8 WINDOWS-1250 \
51)
52
53# If none selected, quit.
54if [ $? != 0 ] 
55then
56    exit 1
57fi 
58
59# For all files in the selected directory...
60find "$directory" -type f | while read f
61do 
62    # Get information about the file.
63    extension=${f#*.}
64    basename=$(basename "$f" ".$extension")
65    addition=$(echo "$destination_encoding" | tr -d - | tr [A-Z] [a-z])
66    output="$directory/$basename.$addition.$extension"
67    
68    # Convert encoding.
69    iconv \
70        --from-code="$source_encoding" \
71        --to-code="$destination_encoding" \
72        --output="$output" \
73        "$f"
74
75    echo "Created $directory/$basename.$addition.$extension"
76done
77
78# Notify on finish
79zenity --info --text="Operation complete." --title="Complete"
80


The code is also available at GitHub as bash/convert_directory.
Continue Reading...

Google : recherche d' images par couleur

Avec Google il est désormais possible de rechercher des images par couleur.Meme si l'option n'est pas visible dans google images en version française vous pouvez ajouter à la fin de votre requete &imgcolor=couleur en remplacant couleur par la couleur que vous recherchez (il faut utiliser la langue anglaise si vous tapez la couleur en français ça ne fonctionne pas).voici un exemple :je tape
Continue Reading...

Rhino JavaScript working on App Engine Java Edition


I was super-excited this morning, when I saw the announcement that Google had released a Java version of their App Engine environment. My heart sank a bit when I read that they had a class white-list for security reasons, and told myself that I wouldn't be surprised if that means that you cant run Server-side JavaScript at all.

However, after reading Ola Bini's quick article on how to enable JRuby, I felt that it might be doable, after all, JS doesn't even have Threads (which more or less thankfully are disabled in GAE). It _should_ work.  

So I went and downloaded the eclipse plugin, created a new project, which came with its own "Hello World" servlet and dropped the Mozilla labs JS version 1.7 jar (from the Dojo Ajax Toolkit's util/shrinksafe folder) into the lib/ folder of the GAE project, added some paths here and there -- and it worked.

I tried something really simple like this;

...

String s = "var foo = {foo: 17, bar: 4711}; foo.foo;";

Object result = cx.evaluateString(scope, s, "", 1, null);

resp.getWriter().println(Context.toString(result));

...

And out I got a 

17

:)

I just saw that Google has limited the Java GAE SDK for the 10 first to register. I guess Sweden was the right place to be :)  If you want to see my sample project, you can download it from here;

http://genericwitticism.com/rhino.zip

Cheers,
PS

Continue Reading...

New Adjani film debuts on TV


Purely by accident, I caught most of the new Isabelle Adjani film "La journée de la jupe" written and directed by Jean-Paul Lilienfeld on Arte recently. I was impressed by the young cast and wondered why I hadn't heard about it before. The reason is that the film actually premièred on television, and is only now being released in France and Belgium. Isn't this backwards logic? Aren't we told that movies should be in the theatres first and then on TV and lastly on DVD? It's all the more interesting as the film brought Arte its biggest audience rating to date, nearly 2.5 million spectators or almost 9.6% of French TV audiences.

It will be interesting to see if this creates a buzz for the release. It certainly worked for Arte. The film has caused such debate that Arte decided to postpone the re-broadcasts. A message on Isabelle Adjani's blog invites people to catch the movie in theatres. Arte is a co-producer with Mascaret Films, Fontana and the RTBF. Visit the official site (in French).
Continue Reading...

Jar City exclu 9movies

Jar City - AlloCiné


Critiques : (61 critiques)
Synopsis
Inspecteur à Reykjavik, Erlendur enquête sur le meurtre d'un vieil homme apparemment sans histoire. La photo de la tombe d'une petite fille retrouvée chez la victime réveille pourtant une affaire vieille de quarante ans. Et conduit Erlendur tout droit à Jar City, surprenante collection de bocaux renfermant des organes, véritable fichier génétique de la population islandaise...
Lien AlloCiné.Com : http://www.allocine.fr/film/fichefil...lm=131959.html

Nom de la Release : Jar.City.2006.FRENCH.LiMiTED.iNTERNAL.DVDRip.XviD-ZANBiC
Qualité : DVDRiP
Encodage : XViD
Langue : VF


Mu ici
Continue Reading...

L'Armée des morts




Critiques : (588 critiques)
Synopsis
Personne ne peut expliquer comment tout cela est arrivé, mais ce matin, le monde n'est plus qu'un immense cauchemar. La population de la planète se résume désormais à une horde de morts vivants assoiffés de sang et lancés à la poursuite des derniers êtres humains encore en vie. Après avoir miraculeusement réussi à s'échapper de son quartier, Ana Clark se barricade avec un petit groupe de survivants dans un centre commercial. André et sa femme enceinte, Michael et Kenneth, officiers de police, vont tout faire pour rester vivants. Alors que dehors, la situation est de pire en pire, à l'intérieur, il faut aussi faire face aux peurs et aux démons de chacun.
Lien AlloCiné.Com : http://www.allocine.fr/film/fichefil...ilm=51739.html

Qualité : DVDRiP
Encodage : XViD
Langue : VF



Lien Mu ici
Continue Reading...

Alone in the dark






Origine du film : canadien
Réalisateur : Uwe Boll
Acteurs : Christian Slater, Tara Reid, Stephen Dorff
Genre : Thriller, Fantastique
Durée : 1h 36min
Date de sortie : Aucune information ...
Année de production : 2003
Titre Original : Aucune information ...
Distribué par : Aucune information ...
Critiques spectateurs : pour 116 critiques
Bande annonce : Aucune bande annonce disponible pour ce film ...



Les aventures du détective Edward Carnby parti sur l'île de Shadow Island pour enquêter sur le meurtre d'un ami. Sur place, il fera équipe avec une anthropologiste se nommant Aline Cedrac et sera poursuivi par des créatures de l'ombre.



Hébergeur : MégaUpload
Qualité : DVDRiP
Format : XviD
Langue : Français
Sous-titre : Aucun
Découper avec : Aucun
Nombre de fichiers : 1 Fichiers
Taille des fichiers : 700 Mo
Taille totale : 700 Mo




MEGAUPLOAD - The leading online storage and file delivery service

Pour le streaming :

MEGAVIDEO - I'm watching it


Mot de pass : Aucun

Total du post: 700 Mo
Continue Reading...

4 films de bonne qualité

[MU] Martyr DVDRip.fr 2009 -16 ans

France, début des années 70.
Lucie, une petite fille de dix ans, disparue quelques mois plus tôt,
est retrouvée errant sur la route. Son corps maltraité ne porte aucune trace d'agression sexuelle.
Les raisons de son enlèvement restent mystérieuses.
Traumatisée, mutique, elle est placée dans un hôpital où elle se lie d'amitié avec Anna, une fille de son âge.
15 ans plus tard.
On sonne à la porte d'une famille ordinaire. Le père ouvre et se retrouve face à Lucie, armée d'un fusil de chasse. Persuadée d'avoir retrouvé ses bourreaux, elle tire.

Lien sur Mu ici
*****************
******************

[MU] Le chantage DVDRip.fr 2008

La vie de Neil et Abby Warner est à tous points de vue parfaite : un couple idyllique, une adorable petite fille,
une maison magnifique... Mais tout bascule lorsque leur fille est enlevée.
Ils se rendent alors vite compte que le kidnappeur n'en veut pas à leur argent.
Il cherche à les détruire en les confrontant au pire des dilemmes :
tuer un innocent s'ils veulent sauver leur enfant.

Lien sur Mu ici
*****************
******************

[MU] La Copine de mon meilleur ami DVDRip.fr 2009

Un homme nommé Tank est engagé par les ex-petits amis de jeunes femmes pour passer une soirée avec elles
et leur faire vivre un enfer afin que celles-ci retournent vers leur ancien amour.
Mais quand le meilleur ami de Tank a besoin de son aide,
celui-ci hésite entre son envie de conquérir la jeune femme et son amitié...

Lien sur Mu ici
*****************
******************

[MU] Trahison DVDRip.fr 2009

L'agent du FBI Roy Clayton enquête sur un complot international. Tout semble accuser l'ancien officier des opérations spéciales US Samir Horn, personnage mystérieux aux relations inquiétantes.
Horn a le don étrange de surgir juste avant qu'une opération n'échoue, et de prendre le large avant qu'on ait pu l'interroger.
La section inter-agences chargée de l'appréhender rencontre le vétéran Carter, un freelance de la vieille école qui loue ses services à la CIA et semble en savoir long,
et l'agent du FBI Max Archer. L'équipe croit découvrir la preuve des activités illicites de Horn au Yémen,
à Nice et à Londres, mais de nouvelles et surprenantes révélations amènent Clayton à s'interroger sur les motivations de Horn. Est-il un traitre,
ou la vérité ne serait-elle pas plus compliquée ?
Déterminé à résoudre cette énigme, Clayton talonne Horn de ville en ville, de pays en pays,
l'obligeant à s'enfoncer chaque jour davantage dans un monde ténébreux de secrets et de mensonges...

Lien sur Mu ici
Continue Reading...

Slumdog Millionaire DVDRIP

Slumdog Millionaire
Jamal Malik, 18 ans, orphelin vivant dans les taudis de Mumbai, est sur le point de remporter la somme colossale de 20 millions de roupies lors de la version indienne de l’émission Qui veut gagner des millions ? Il n’est plus qu’à une question de la victoire lorsque la police l’arrête sur un soupçon de tricherie.Sommé de justifier ses bonnes réponses, Jamal explique d’où lui viennent ses connaissances et raconte sa vie dans la rue, ses histoires de famille et même celle de cette fille dont il est tombé amoureux et qu’il a perdue.Mais comment ce jeune homme est-il parvenu en finale d’une émission de télévision ? La réponse ne fait pas partie du jeu, mais elle est passionnante.
Infos sur le film

Nationalité : américain, britannique.
Réalisateur : Danny Boyle
Durée : 2h.
Acteurs : 14 Janvier 2009
Genre : Drame, Passion
Date : 14 Janvier 2009

Infos sur l'upload

Langue : Version Francaise
Découpage : winrar
Nombre de fichiers : 8
Taille totale : 700

Les liens

http://rapidshare.com/files/XXXXXXXX/sm.partX.rar
http://rapidshare.com/files/XXXXXXXX/sm.partX.rar
http://rapidshare.com/files/XXXXXXXXX/sm.partX.rar
http://rapidshare.com/files/XXXXXXXXX/sm.partX.rar
http://rapidshare.com/files/XXXXXXXX/sm.partX.rar
http://rapidshare.com/files/XXXXXXXXX/sm.partX.rar
http://rapidshare.com/files/XXXXXXXXX/sm.partX.rar
http://rapidshare.com/files/XXXXXXX/sm.partX.rar
Continue Reading...

Small clouds - Large clouds


So, I attended this seminar recently, in which the usual suspects were paraded in front of a saucer-eyed audience; There was Amazon, Salesforce, local hopes and established players in equal measures. The first presentation was by a Swedish guy named Joakim Lindbom, CTO at Cap Gemini in Sweden - a really sharp guy, by the way.

His talk was about Amazon EC2, and I had heard a lot of it before, but not everything. Joakim focused on the architectural choices that Amazon had made when creating their different services, being an architect himself. He argued successfully the common knowledge that it really isn't possible to scale a relational database to do what Amazon have to do, and that the same apply to services.

In general a cloud-based architecture means that you use a distributed queueing service both to store incoming requests and to communicate between system parts. Yes, a kind of ESB, if you will, but simple!

It also means using schemaless databases that don't mind adding another column even though there's already 1.0E9 items in the table. 

And then it struck me; If it is absolutely critical to use ___SIMPLE___ (meaning non-complex, OK?) services which are both asynchronous (queued, event-driven) and dynamically or non-typed, to be able to build a system over a certain size - why is this not critical when building smaller system?

Or, to phrase the questions differently; How comes it is possible to build systems that does not comply with these traits, since they have been proven to be just critical? Size, is the answer of course.

But to expand that answer is to get to the core of the problem; Smaller sized systems can skimp on doing things right, because it doesn't show up until they get larger. And what small system doesn't?

So, essentially, what has been discovered to be critical in building large-scaled 'cloud' systems is just as essential in building smaller system, it just isn't as evident. Which of course can be translated as saying that it isn't critical. And, no, sure, it isn't critical. But what I'm saying is that even smaller system will by necessity cost less to build, if built according to the same principles the larger-scale system use, if nothing else but the simple fact that they will grow over time.

One of the successes of Erlang has been the reational approach to distributed proecessing; Since interprocess communication in Erlang is message-based, putting those messages on a bus á la Amazon's simple queue service, will be transparent to the processes using it, and also, those very processes need not know where they are and can so be safely dotted out in the cloud somewhere.

Imagine if someone would do that kind of stuff to another cool language, maybe one with first-class and anonymous functions, duck-typing (Simple, 'schemaless'), closures and late binding (i.e. easy to code in), like ... JavaScript? Maybe someone already has? :) 

No wait, nobody has to, right. It usable that way right off the bat. 

Have a nice weekend all y'all.

Cheers,
PS

Continue Reading...

12th international scriptwriters festival in France


The French town of Bourges will host the 12th International Scriptwriters festival, between March 25 and 29. The event is popular, featuring round tables, a writing competition, workshops (with a focus on writing for TV), audience-friendly events that include the analysis of popular films and events around animation and documentaries. All events are in French.

Find more details here.
Continue Reading...

RIP: Tullio Pinelli, writer of "La Dolce Vita"

Tullio Pinelli, writer of the screenplay of "La Dolce Vita" and "8 1/2", died in Rome on March 7. Pinelli, who was 100 years old, wrote more than a dozen of Fellini's films as well as working with other "maestros". Although nominated four times, he never won an Oscar, but did pick up numerous other awards, the most recent being the David Di Donatelo screenplay award for "Speriamo che sia femmina/Let's Hope It's a Girl" in 1986. A script of his, "Voyage to Tulum", is currently in production.
Continue Reading...

Czech award goes to "The Karamazovs"


In further award news, the Czech TV and film announced the winners of the 2008 Czech Lions at a gala ceremony March 7 at Prague's Lucerna Palace. Petr Zelenka's The Karamazovs [trailer] was the big winner, taking home Best Film and Best Director, as well as being named Best Feature by Czech film critics. Zelenka wrote the script, based on the book "The Brothers Karamazov" by Dostojevsky. It was Czech Republic's Oscar contender this year.

The Best Screenplay went to Bohdan Slama for his Venice title A Country Teacher.
Continue Reading...

Google Friend Connect Public Key finally released :)

Yes! After months of general agonizing and a feeling that everything I knew about security *might* be wrong, Google releases the public key for the certificate that signs the signed requests coming from custom GFC gadgets back to your server.

Arne Rooman-Kurrik (at Google) posted the certificate to the OpenSocial mailing list yesterday, and it looks like this;

-----BEGIN CERTIFICATE-----
MIICSjCCAbOgAwIBAgIJAKy5FQe8xe
W/MA0GCSqGSIb3DQEBBQUAMCMxITAfBgNV
BAMTGGZyaWVuZGNvbm5lY3QuZ29vZ2xlLmNvbTAeFw0wODEyMTkxOTQ3NDlaFw0w
OTEyMTkxOTQ3NDlaMCMxITAfBgNVBAMTGGZyaWVuZGNvbm5lY3QuZ29vZ2xlLmNv
bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAvvHLRIP0tKwFGExqfIOf25Ad
2WHq/Oz4CuuspA75pvXg5+w9E4P5oMNmGNENO7LAA+xSrXLND+FdDg4STH/5FW0Y
ycPhw7LvqsefQwnntn1oHGTYffWRPbovHZBDcCBJZ2cgzXnmsXG9D7rO06fikTaa
6aSw1mVt7sFvwZDegEkCAwEAAaOBhTCBgjAdBgNVHQ4EFgQUITh3OCFLiiyTPEsq
LKmuALCpfXwwUwYDVR0jBEwwSoAUITh3OCFLiiyTPEsqLKmuALCpfXyhJ6QlMCMx
ITAfBgNVBAMTGGZyaWVuZGNvbm5lY3QuZ29vZ2xlLmNvbYIJAKy5FQe8xeW/MAwG
A1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAvnVl15uganMvEwABVxRwMAys
ICPuzrxvdgAHXDl1/FCv68CEbTatHYPHBTLiY66DL8HICWwFuIx4j0DTuj6IWHRG
iP2BFvtcRvogURixojA+JXsvIjafoShzqAioDptVUx1aIHM+af3B5zE6+wDVmRUz
1WeG3BvhoqPq1pUdWig=
-----END CERTIFICATE-----

It was later verified to work by a guy called videomap (should work at Google).

For old readers of my blog the magnitude of this event is simple to understand, but just to be sure, it goes like this;

1) You think that GFC is kind of cool. You put a gadget (or several) on the pages of your site, Google manages login, authentication, friend management et.c and people can chat , rate and have fun on your pages.
2) You realize that allthoug people are having fun there is zero (0) interactivity between the GFC gadgets and your site, and/or
3) You would really like to know the unique user id of the GFC loggged in user that sees you page right now.

So, you..

4) Learn how to create a custom GFC gadget (Exactly like creating a custom OpenSocial gadgets. Just grab one of the smallest sample code files, and you're done. Well, you have to get the 'wrappin' HTML for it from the GFC admin console for your site. Whatever).
5) You put the gadget on your ite in a nice, shiny directory
6) You enter the wrapping code in your page that loads you custom gadget *through* Google's GFC servers.
7) You browse through the OpenSocial 8.x AP docs and realize that you need to do a makeRequest() call back to an url of your server, getting the usr id (and picture) is dead simple, so you have that already in the other hand.
8) Yay, Your custom gadget actually send back the info! Great.

But then you realize...

9) Anythion on your page could actually have sent back that info. A malign ad might inject some script which runs and just send back 0000 or something. Translation: You can't trust informatiuon sent from the client.
10) You find a great option to makeRequest in the OpenSocial API called SIGNED requests. This will make the container (the GFC server in this case) sign the data you send. But also add signed and correct user ids for the viewer and owner of the current data. Yay!

It doesn't work. Until..

11) It suddenly does, a couple of weeks ago GFC decides to activate SIGNED requests. Wild joy. Everything seems ok.

Until

12) You realize you don't have the public key the GFC uses, so you can't actually verify that some *other* server on the internet tries to look like it is a GFC server and feed you false data. Eugh.

But then

13) They did publish the public key (Above), so now the circle is finally closed. We can now use GFC as a universal login mechanism, get a unique user id back to our server,a nd connect that to any data we choose.

Thanks Google!!!


Cheers,
PS



Continue Reading...

Millenium explodes onto Nordic screens


The first instalment of the best-selling "Millenium" trilogy opened to explosive figures in Sweden and Denmark. Some 350,000 people queued for the 140-minute film of Stieg Larsson's sweeping tale of dark secrets in a darker family, putting it at the top of both box offices over the weekend.

Directed by Niels Arden Oplev and written by Nicolaj Arcel and Rasmus Heisterberg it will soon be released in Norway (March 13), Finland (March 27) and France, where UGC is planning to release it May 13, the opening day of the Cannes Film Festival. Rumours in the press have it that Millenium will open the festival.
Continue Reading...

"Seraphine" picks up 7 awards in France


The biopic "Séraphine" walked away with no less than 7 Césars at France's annual film awards. It had been nominated in nine categories and took prizes including best actress for Yolande Moreau, best original screenplay, best cinematography, best score, best art direction and best costumes. It pushed out the impressive "Mesrine" series, with Vincent Cassel nonetheless picking up a best actor award.

Inevitably, the blogosphere was again full of claims that the Césars snub the French audience (as in previous years). A notable absence was the runaway hit "Les Ch'tis" (Welcome ot the Sticks) that only managed a nomination in the original screenplay award. Although it unikely that it deserved to win in that section, it is unusual that such a huge hit should be passed over on the night. As actor Dany Boon pointed out, there should be a section for Best Comedy - a genre that France can still excel in but is perhaps a little too low-brow for the august academy.

The full list of César winners:

Best Picture
Seraphine, dir : Martin Provost

Best Actor
Vincent Cassel, Mesrine

Best Actress
Yolande Moreau, Seraphine

Best Director
Jean-Francois Richet, Mesrine

Best Original Screenplay Martin Provost, Seraphine

Best Adapted Screenplay Laurent Cantet, Francois Begaudeau and Robin Campillo, The Class

Best First Film
I've Loved You So Long, dir: Philippe Claudel

Best Supporting Actress
Elsa Zilberstein, I've Loved You So Long

Best Supporting Actor
Jean-Paul Roussillon, A Christmas Tale

Best Newcomer, Male
Marc-Andre Grondin, Le Premier Jour Du Reste De Ta Vie

Best Newcomer, Female
Deborah Francois, Le Premier Jour Du Reste De Ta Vie

Best Score
Michael Galasso, Seraphine

Best Cinematography
Laurent Brunet, Seraphine

Best Costumes
Madeline Fontaine, Seraphine

Best Art Direction
Thierry Francois, Seraphine

Best Editing
Sophie Reine, Le Premier Jour Du Reste De Ta Vie

Best Sound
Alexandre Widmer, Francois Groult, Gerard Hardy, Herve Buirette, Jean Minodo, Mesrine

Best Foreign Film
Waltz With Bashir, dir: Ari Folman

Best Documentary
Les Plages d’Agnes, dir: Agnes Varda

Best Short Film
Les Miettes, dir : Pierre Pinaud
Continue Reading...

lala moulati ana9a maghribia

seo

 

Blogroll

Site Info

Text

telechargementz Copyright © 2009 WoodMag is Designed by Ipietoon for Free Blogger Template