Flatten

Update: Applied changes in accordance with a comment. [Fri Aug 28, 8:46 AM CEST]

And then there are these times when you have a music album or something that's split into 2 CDs, or a bunch of PDFs in very deep directories.

Sometimes you'd like to move them to one directory, for instance, because your crappy car audio player can only play music files from its root directory (because its designer had a problem with their brains being missing).

And that's exactly what this script does! Hurray!

I actually wrote about writing this one in chapter 10 of my fabulous book (NaNoWriMo)! I was struggling with the problem then, and then finally did it all in a very roundabout way. I wasn't exactly happy with the solution... and today I did it in 1 line because of inspiration (and probably sugar). So I split it up into more lines for readability and here it is!

The script itself has one brilliant bit, which I didn't invent. I got it from the Internet somewhere, probably from this guy, but I'm not certain... Anywho, the thing you see at line 42 is pure brilliance and deals neatly with the problem of spaces in filenames.

There are a lot of things that can be tweaked in this script, like filtering out filenames (add a rule at line 44) or ask if files should be overwritten (add a -i flag at line 47). However, I'm not going to do any of those things. I like this script the way it is. and if you don't... well, it's CC, init?

Here's the code:
#!/bin/bash
#
# Flatten
#
# Copies all the files from a given directory tree to one directory.
# For instance, if you've got a directory tree like this one:
#   moo/cow.txt
#   other/cats/cheezburger.txt
#   other/cats/evil.txt
10#   other/ferrets/evil.txt
11# The result of running `flatten . out` will be:
12#   out/other_cats_cheezburger.txt
13#   out/other_cats_evil.txt
14#   out/other_ferrets_evil.txt
15#   out/moo_cow.txt
16# Parameters:
17#   source - which tree to copy, default: here,
18#   target - where to dump the files, default: here.
19# Warning:
20#   Some names might overlap! Check if everything copied propery
21#   before removing anything.
22# Author:
23#   Konrad Siek
24
25# Set source.
26if [ "$1" == "" ] 
27then
28    source="."
29else
30    source="$1"
31fi
32
33# Set target.
34if [ "$2" == "" ]
35then 
36    target="."
37else
38    target="$2"
39fi
40
41# Copy all files.
42find -L "$source" -not -type d | while read i
43do 
44    e=${i#./}
45    cp "$i" "$target/${e//\//_}"
46done


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

The Secret of Kells scores a home victory


The Irish-themed animation "The Secret of Kells" brought it all back home recently, when it won the Best Irish Film award at the 2009 Jameson Dublin International Film Festival. It won against strong challenges from fellow nominees Five Minutes of Heaven, The Yellow Bittern: The Life and Times of Liam Clancy and The Daisy Chain.

Writers on Kells are Tomm Moore for the story and Fabrice Ziolkowski for the screenplay. Ziolkwski is a prolific writer for TV in France, reflecting the fact that Kells was a co-production between France, Ireland and Belgium, with a lot of talent from each country involved. It is currently on release in France and Belgium.

Full list of nominations and winners:

BEST PERFORMANCE
Tom Hardy - Bronson (Winner)
Toni Servillo - Il Divo
Clint Eastwood - Gran Torino
Meryl Streep - Doubt

BEST DOCUMENTARY
Anvil! The Story of Anvil (Winner)
Religilous
Chris & Don: A Love Story
American Teen
Encounters at the End of the World

BEST IRISH FILM
The Secret of Kells (Winner)
Five Minutes of Heaven
The Yellow Bittern: The Life and Times of Liam Clancy
The Daisy Chain

BEST DIRECTOR
Paolo Sorrentino - Il Divo (Winner)
Laurent Cantet - The Class
Werner Herzog - Encounters at the End of the World
Tomas Alfredson - Let The Right One In

BEST FILM
Let the Right One In (Winner)
Il Divo
In the Loop
The Class

Continue Reading...

Walkyrie [R5]


Film américain, allemand Lecteur : MegaVideo
Genre : Historique, Drame, Thriller
Réalisateur : Bryan Singer
Acteurs : Tom Cruise, Carice Van Houten
Durée : 1h 50min Année de production : 2008


Synopsis:
S'il a toujours été un fidèle serviteur de son pays, le colonel Stauffenberg s'inquiète de voir Hitler précipiter l'Allemagne et l'Europe dans le chaos. Comprenant que le temps presse, il décide de passer à l'offensive : en 1942, il tente de convaincre plusieurs officiers supérieurs de la nécessité de renverser Hitler. Un an plus tard, tandis qu'il se remet de ses blessures de guerre, il rejoint la Résistance allemande pour mettre au point l'Opération Walkyrie destinée à éliminer le Führer. Alors qu'il n'était au départ qu'un des nombreux conspirateurs, Claus von Stauffenberg se retrouve bientôt en première ligne : c'est lui qui devra assassiner Hitler...

Continue Reading...

En cloque, mode D'emploi



Film américain Lecteur : MegaVideo
Genre : Comédie
Réalisateur : Judd Apatow
Acteurs : Seth Rogen, Katherine Heigl, Paul Rudd, Leslie Mann, Jason Segel
Durée : 2h 10min Année de production : 2007

Ben Stone coule des jours heureux avec ses quatre inséparables copains Jonah, Jayson, Jay et Martin, aussi glandeurs et débraillés que lui. Outre leur amitié, un projet hautement culturel les réunit : créer un site payant, "starsapoil.com", qui offrira aux internautes des scènes de nu de leurs actrices favorites. La belle Alison Scott, assistante de production d'une chaîne télé hollywoodienne, habite avec sa soeur aînée Debbie et son beau-frère Pete un quartier résidentiel qui sied à son style bon chic bon genre. Bosseuse et ambitieuse, la jeune femme vient tout juste d'être promue au rang d'intervieweuse de célébrités. Pour fêter l'événement, elle se rend en boîte avec Debbie, et au terme d'une soirée passablement arrosée, ramène Ben chez elle pour un "quickie" sous la couette. Le lendemain, dégrisée, elle l'éjecte gentiment mais fermement. Fin de l'histoire ? Pas tout à fait, car, huit semaines plus tard, des nausées suspectes lui révèlent son état...


Continue Reading...

Google Friend Connect finally support signed request

Why is that a big deal?

Here's the short answer; Now you can get the viewer id of a user loading your page and send it back to your server in a trusted way.

Before (up to two weeks ago, when I last tried it) it was only possible to send back info from the web page in an untrusted way.

What I mean by that is that you could load a custom opensocial gadget, which got the viewer id using the opensocial api, and then proceeded to use the opensocial makeRequest() call to route that information back to an url on your server. However, since this information orgiginated in the browser, potentially someone might somehow get a malign script to run on your page (from an ad, perhaps) and make up any old id, to then send back to your server.

In the opensocial specification, there is different modes of makeRequest, of which one is to make a signed request. To describe a signed request, I've drawn a small diagram above. Let's walk through it, and return to the signed request in a little while.

Let's say that you have copied in some Google Friend Connect gadgets on one of your pages, by registering your site with GFC, noting your sites code, and so on, the first thing that happens is that a person going to you site loads your page (1). In your page lies the gfc gadget references, which load the gadgets themselves from the GFC proxy servers (I call them proxies since much of what they do is route information back and forth third parties) (2). If this is the first time the users has been to the site and/or the user have not 'joined' the site on a GC sense, he/she may now proceed to do so (still (2)).

Now you have written your own, custom opensocial gadget, which is also loaded into the page in (2). It probably resides on your server, but could actually be loaded from any server on the internet. That gadget does the following;

a) Get the id of the viewer
b) tell the gfc/opensocial JavaScript api that is loaded to post the data to an url on your server. Two weeks ago, this could only be done without authentication.

This will send the data (viewer id) first to the gfc proxies(3), which will then route it forward to your server (4).
On your server is a special script that parses the post data out from the HTTP request (5).

The only thing that has changed now is that the makeRequest call can use the authentication mode gadgets.io.AuthorizationType.SIGNED, which will result in a 'stamp' made by the gfc proxies as the message passes through them. This is what it looks like in a small PHP script I wrote to collect the incoming signed info;


2009-02-22 12:41:36>---------------------> id=82146293318299142645, nick=psvensson
2009-02-22 12:41:36> post param -- the_user_id -> 32146007816295742145
2009-02-22 12:41:36> post param -- the_user_nickname -> psvensson
2009-02-22 12:41:36> get param -- opensocial_owner_id -> 03600513378691222179
2009-02-22 12:41:36> get param -- opensocial_viewer_id -> 78096296444182405045
2009-02-22 12:41:36> get param -- opensocial_app_id -> 09127246177732455082
2009-02-22 12:41:36> get param -- opensocial_app_url -> http://xxxyyyzzz.com/osaccess.xml
2009-02-22 12:41:36> get param -- xoauth_signature_publickey -> pub.1008283802.-8019269915578004945822.cer
2009-02-22 12:41:36> get param -- oauth_version -> 1.0
2009-02-22 12:41:36> get param -- oauth_timestamp -> 981102302897
2009-02-22 12:41:36> get param -- oauth_consumer_key -> friendconnect.google.com
2009-02-22 12:41:36> get param -- oauth_signature_method -> RSA-SHA1
2009-02-22 12:41:36> get param -- oauth_nonce -> 01831428822001149500
2009-02-22 12:41:36> get param -- oauth_signature -> MviLJcsxuU2tN9hQTkMEqZrEaC7ZUX31Cz7HH17I00vT2q8NJWH28OzvDab1Cl,01YtetX+Yln/IkuTj+I11SzFwZu5aXQda5D9HBeq+zjdxwWfuLGo62AaMjm5lvJGwWrMW6q+vm33MVOFWecxuXzSPmDfsCE9Tyf+b3M=

Numbers and other stuff are messed with a bit, due to posting :) But the thing is that two weeks ago, only the two POST lines were getting though, and any signed request returned and error in th browser.

This is the dawn of maybe not a new era, but a new eralischimo. Now you can use trusted user ids without having to manage the users, changing password, creating capthcas (and keeping up with the bots), listing friends and manage those connections, et.c. Now you just slam a gadget on the page, and get an id back you can trust. Not half bad eh?

Cheers,
PS

[UPDATE]

OK, this is a bit silly. There is more to this than just using signed makeRequests :) The reason I forgot this, is that the magic sauce was something I added in desperation some time ago when I tried to make signed requests work; I added a certificate to my domain using google accounts;

https://www.google.com/accounts/ManageDomains

Where you can upload a x.509 certificate that you can associate with your domain. The process is explained in more detail here;

http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html

Including how to generate x.509 certs from scratch on Windows and Linux (Maybe mac as well).
Continue Reading...

"Special reward for Mangesh Hadawale-Shivneri Bhushan"


O
n a special occasion of 'ShivaJayanti' at birthplace of great maratha king Chatrapati Shivaji Maharaj Junnar,Mangesh Hadawale felicited by 'Shivneri Bhushan' award.Forest Minister Mr.Babanrao pachpute and Junnar taluka MLA Mr.Vallabhsheth Benke honoured him.Mangesh looked emotional on receiving this award said"receiving such great reward on my own soil is great honour!". As his debut film misses trip to Oscars as official entry,he promised his village people that he will again create new projects to give India Oscars every year.
Continue Reading...

L'Etrange histoire de Benjamin Button

'L'Etrange histoire de Benjamin Button BONNE QUALITE !!!

http://zizprez.free.fr/img_cat/blanc/info_film.png


Origine du film : américain
Réalisateur : David Fincher
Acteurs : Brad Pitt, Cate Blanchett, Julia Ormond
Genre : Drame, Fantastique, Romance
Durée : 2h 35min
Date de sortie
:
04 Février 2009
Année de production : 2008
Titre Original
:
The Curious Case of Benjamin Button
Distribué par : Warner Bros. France

http://zizprez.free.fr/img_cat/blanc/syn_film.png


"Curieux destin que le mien..." Ainsi commence l'étrange histoire de Benjamin Button, cet homme qui naquit à 80 ans et vécut sa vie à l'envers, sans pouvoir arrêter le cours du temps. Situé à La Nouvelle-Orléans et adapté d'une nouvelle de F. Scott Fitzgerald, le film suit ses tribulations de 1918 à nos jours. L'étrange histoire de Benjamin Button : l'histoire d'un homme hors du commun. Ses rencontres et ses découvertes, ses amours, ses joies et ses drames. Et ce qui survivra toujours à l'emprise du temps...

http://www.megaupload.com/?f=B9KHKR2T

Mot de pass : Aucun

Continue Reading...

"Slumdog" and "In Bruges" pick up Bafta awards

With a remarkable seven out of eleven nominations, last night was definitely "Slumdog Millionaire"s night at the annual BAFTA award ceremony in London. The film won Best Film and six other awards: director for Danny Boyle, adapted screenplay, music, cinematography, editing and sound.

According to a report in Screen Daily, Boyle said it felt 'amazing' to win, adding that he wished to keep his links with India and was in talks about shooting a thriller in the country. Writer Simon Beaufoy said he believed the film had captured the imagination of the world. "It has come out at a time when we need a film about hope," he said.

The Best Original Screenplay went to Martin McDonagh's "In Bruges", another personal favourite. For the full list of awards and interviews with Boyle, Beaufoy and others, visit the Bafta site.

UPDATE: Martin McDonagh picked up the Best Script award for "In Bruges" at the Irish Film & Television Awards. The film itself won the best International award. "Hunger" picked up the Best Film award.
Continue Reading...

Slumdog Millionaire: the writer's review


If you haven't seen "Slumdog Millionaire" yet, I can but join the people recommending that you do so. It is very much the film of the season, matching only "Gomorra" in terms of intensity and scope.

The film is based on Vikas Swarup's book "Q&A", adapted by Simon Beaufoy (the writer of "The Full Monty"). As The Script Factory points out, the movie is an absolute masterclass in the use of the flashback. Trevor Johnston has posted a review of the movie on their site. But do yourself a favour, only read the review after seeing the movie.

Meanwhile, the shooting script has been published with notes from Danny Boyle and an intro from Beaufoy. The book is interesting as there are some minor differences between the script and the final edit.
Continue Reading...

La Derniere legion

La Derniere legion





Origine du film : britannique, américain, français, slovaque, tunisien, italien
Réalisateur : Doug Lefler
Acteurs : Colin Firth, Ben Kingsley, Aishwarya Rai
Genre : Aventure, Guerre, Action
Durée : 1h 41min
Date de sortie : 19 Septembre 2007
Année de production : 2007
Titre Original : The Last Legion
Distribué par : Quinta Distribution




Rome, 476 après J-C : l'empire est menacé par les armées barbares.Oreste, maître de l'Empire romain d'Occident assiste au couronnement de son fils Romulus Auguste. Celui que l'on va nommer à présent le dernier des Césars est désormais menacé d'un grand danger.Malgré la protection d'Aurelius, commandant de la quatrième légion, Romulus est capturé par Odoacre, chef des Goths. Emmené sur l'île forteresse de Capri, il y découvre la légendaire épée de César marquée de la prophétie "Un côté pour défendre, un côté pour vaincre... Destinée à celui... appelé à régner."Avec ses frères d'armes, Aurélius, la magnifique et dangereuse Mira, Romulus et le magicien Ambrosinus partent en Angleterre à la recherche de la valeureuse neuvième légion, dernière armée fidèle à Rome...



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


megaupload


Mot de pass : Aucun

Continue Reading...

Le bal de l'horreur

le bal de l'horreur



[RS] [DVDRiP] Prom Night - le bal de l'horreur

Origine du film : américain
Réalisateur : Nelson McCormick
Acteurs : Brittany Snow, Johnathon Schaech, Jessica Stroup
Genre : Epouvante-horreur
Durée : 1h 28min
Date de sortie : 30 Juillet 2008
Année de production : 2008
Titre Original : Prom Night
Distribué par : Sony Pictures Releasing France


[RS] [DVDRiP] Prom Night - le bal de l'horreur

Trois ans après le massacre de sa famille par un dangereux psychopathe, Donna a enfin repris une existence normale et se prépare à vivre la soirée la plus importante de l'année : le bal de promo du lycée. Ce qu'elle ignore, c'est que Richard Fenton, le tueur, s'est échappé de l'asile pour la retrouver...Le détective Winn se lance à sa poursuite pour éviter le pire, mais Fenton a de l'avance. Alors que la fête bat son plein, le tueur passe à l'attaque...

[RS] [DVDRiP] Prom Night - le bal de l'horreur

Hébergeur : RapidShare
Qualité : DVDRiP
Format : DivX
Langue : Français
Sous-titre : Aucun
Découper avec : WinRar
Nombre de fichiers : 4 Fichiers
Taille des fichiers : 100 Mo
Taille totale : 700 Mo

[RS] [DVDRiP] Prom Night - le bal de l'horreur


Continue Reading...

Trahison

(¯`·._.·[ Trahison ]·._.·´¯)

[RS] [DVDRiP] Trahison



[RS] [DVDRiP] Trahison

Origine du film : américain
Réalisateur : Jeffrey Nachmanoff
Acteurs : Don Cheadle, Guy Pearce, Neal McDonough
Genre : Espionnage, Thriller
Durée : 1h 54min
Date de sortie : 04 Février 2009
Année de production : 2007
Titre Original : Traitor
Distribué par : Paramount Pictures France

[RS] [DVDRiP] Trahison

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...

[RS] [DVDRiP] Trahison

Hébergeur : RapidShare
Qualité : DVDRiP
Format : DivX
Langue : Français
Sous-titre : Aucun
Découper avec : WinRar
Nombre de fichiers : 4 Fichiers
Taille des fichiers : 200 Mo
Taille totale : 700 Mo

[RS] [DVDRiP] Trahison

PARTIE 1

PARTIE 2

PARTIE 3

PARTIE 4

Continue Reading...

Wolfhound



Wolfhound











Origine du film : russe
Réalisateur : Nikolai Lebedev
Acteurs : Aleksandr Bukharov, Oksana Akinshina, Igor Petrenko
Genre : Fantastique
Durée : 2h 16min
Date de sortie : 21 janvier 2009









La vengeance de Wolfhound qui a vu toute sa tribu se faire tuer.




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








1 Seul Lien Megaupload ou Free

Continue Reading...

BATS 2

BATS 2
La nuit des chauves-souris 2





Origine du film: américain
Durée: 1h 27min
Genre: Epouvante-horreur
Réalisateur: Jamie Dixon
Acteurs: David Chokachi, Michael Jace, Pollyanna McIntosh
Date de sortie: inconnue
Réalisé par Jamie DixonAvec David Chokachi, Michael Jace, Pollyanna McIntosh Plus...Film américain.
Genre : Epouvante-horreur
Durée : 1h 27min.
Année de production : 2007
Titre original : Bats: Human Harvest





Quelque part dans le Sud-ouest de la Russie, un groupe de soldats cherche à capturer un scientifique fanatique. Ce dernier s'est réfugié dans un labyrinthe de cavernes peuplées de chauves-souris génétiquement modifiées plutôt agressives, qui peuvent détecter aisément l'odeur de la chair humaine avant de s'en repaître




Découper avec: Aucun
Nombre de CD/DVD: 1 CD
Nombre de fichiers: 1 Fichiers
Taille des fichiers: 700 Mo
Taille totale: 700 Mo







[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*

[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*


[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*

Continue Reading...

A TEACHER'S CRIME

A TEACHERS CRIME



[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*
[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*
Carrie a la réputation d'être un professeur modèle qui consacre sa vie à ses élèves malgré une vie privée chaotique.
Elle prend sous son aile le jeune Jeremy, essayant de le pousser jusqu'à l'université. Elle ignore que l'adolescent, élevé par son oncle,
est un garçon malhonnête qui va lui attirer de nombreux ennuis...

[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*
[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*
Genre : suspense
Date de Sortie : 31/12/2008
Langue : Français
Sous-Titre : Aucun
[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*
[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*
Découper avec: WinRar
Nombre de CD/DVD: 1 CD
Nombre de fichiers: 1 Fichiers
Taille des fichiers: 700 Mo
Taille totale: 700 Mo

[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*

[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*





[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*
[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*

[MU/RS/GUp] Les Seigneurs de la guerre DVDrip VOSTFR 28/01/09 *Exclue*


Continue Reading...

lala moulati ana9a maghribia

seo

 

Blogroll

Site Info

Text

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