J'ai besoin d'intimité. Non pas parce que mes actions sont douteuses, mais parce que votre jugement et vos intentions le sont.
5208 links
Via ecirtam
Base64 encoding of large files.
Base64 encoding converts triples of eight-bit symbols into quadruples of six-bit symbols. Reading the input file in chunks that are a multiple of three bytes in length results in a chunk that can be encoded independently of the rest of the input file. MIME additionally enforces a line length of 76 characters plus the CRLF. 76 characters is enough for 19 quadruples of six-bit symbols thus representing 19 triples of eight-bit symbols. Reading 57 eight-bit symbols provides exactly enough data for a complete MIME-formatted line. Finally, PHP's default buffer size is 8192 bytes - enough for 143 MIME lines' worth of input.
So if you read from the input file in chunks of 8151 (=57*143) bytes you will get (up to) 8151 eight-bit symbols, which encode as exactly 10868 six-bit symbols, which then wrap to exactly 143 MIME-formatted lines. There is no need to retain left-over symbols (either six- or eight-bit) from one chunk to the next. Just read a chunk, encode it, write it out, and go on to the next chunk. Obviously the last chunk will probably be shorter, but encoding it is still independent of the rest.
while(!feof($input_file))
{
$plain = fread($input_file, 57 * 143);
$encoded = base64_encode($plain);
$encoded = chunk_split($encoded, 76, "\r\n");
fwrite($output_file, $encoded);
}
Conversely, each 76-character MIME-formatted line (not counting the trailing CRLF) contains exactly enough data for 57 bytes of output without needing to retain leftover bits that need prepending to the next line. What that means is that each line can be decoded independently of the others, and the decoded chunks can then be concatenated together or written out sequentially. However, this does make the assumption that the encoded data really is MIME-formatted; without that assurance it is necessary to accept that the base64 data won't be so conveniently arranged.
À télécharger d'urgence
Édit : après utilisation, il s'avère que je n'ai pu réparer aucun fichier...
C'est, en cas de fellation, pour éviter de tomber sur un os... Je ->[]
Quelques mots sur la sécurité relative au protocole TCP/IP
Une série de tutoriels sur les technologies du web : html, css, javascript
Et avec tout ça, on est toujours fliqué par google (utilisé pour charger jquery + google analytics).
Et deux rubriques non accessibles sans javascript. Je croyais qu'ils avaient bossé sur l'accessibilité. Y a encore du boulot à ce que je vois (ou pas du coup...).
Des calendriers à imprimer au format Libreoffice.
Via Sebsauvage
C'est la justice : faux ami de "ce qui est juste".
Selon Larousse, la justice de Droit, c'est la "Fonction souveraine de l'État consistant à trancher les litiges entre sujets de droit et à définir, sur le fondement des lois de la société, les comportements antisociaux".
Le pot de fer contre le pot de terre.
Il ne faut pas que l'état perde la face. Ça nuirait aux affaires (vente du savoir faire français en matière de "gestion" des manifestations).
C'est d'une débilité sans nom. D'autant qu'en plus de risquer sa vie connement, il risque celle de ceux qui circulent au pied du bâtiment. Qu'il aille faire ça à la montagne ! S'il se crache, il n'y a que lui qui en souffrira...
Ce genre de vidéo devraient être censuré (oui, j'ai bien dit censuré). Ça n'apporte rien mais ça peut être pris en exemple par certains. Je trouve ça encore plus dangereux que les vidéos de propagande du gouvernement des terroristes.
Une piqûre de rappel. Ça ne fait pas de mal...
Pas mal ce site.
via Librement Shaarli
Trouvé dans les commentaires de yodablog.
Dialogue entre George Bush et Condoleeza Rice:
A l’époque, le secrétaire de l’ONU était Kofi (coffee) Annan.
Playwright Jim Sherman wrote this the day after Hu (who?) Jintao was named
chief of the Communist Party in China.
(We take you now to the Oval Office.)
George: Condi! Nice to see you. What’s happening?
Condi: Sir, I have the report here about the new leader of China.
George: Great. Lay it on me.
Condi: Hu is the new leader of China.
George: That’s what I want to know.
Condi: That’s what I’m telling you.
George: That’s what I’m asking you. Who is the new leader of China?
Condi: Yes.
George: I mean the fellow’s name.
Condi: Hu.
George: The guy in China.
Condi: Hu.
George: The new leader of China.
Condi: Hu.
George: The Chinaman!
Condi: Hu is leading China.
George: Now whaddya’ asking me for?
Condi: I’m telling you Hu is leading China.
George: Well, I’m asking you. Who is leading China?
Condi: That’s the man’s name.
George: That’s who’s name?
Condi: Yes.
George: Will you or will you not tell me the name of the new leader of
China?
Condi: Yes, sir.
George: Yassir? Yassir Arafat is in China? I thought he was in the
Middle East.
Condi: That’s correct.
George: Then who is in China?
Condi: Yes, sir.
George: Yassir is in China?
Condi: No, sir.
George: Then who is?
Condi: Yes, sir.
George: Yassir?
Condi: No, sir.
George: Look, Condi. I need to know the name of the new leader of China.
Get me the Secretary General of the U.N. on the
phone.
Condi: Kofi?
George: No, thanks.
Condi: You want Kofi?
George: No.
Condi: You don’t want Kofi.
George: No. But now that you mention it, I could use a glass of milk.
And then get me the U.N.
Condi: Yes, sir.
George: Not Yassir! The guy at the U.N.
Condi: Kofi?
George: Milk! Will you please make the call?
Condi: And call who?
George: Who is the guy at the U.N?
Condi: Hu is the guy in China.
George: Will you stay out of China?!
Condi: Yes, sir.
George: And stay out of the Middle East! Just get me the guy at the U.N.
Condi: Kofi.
George: All right! With cream and two sugars. Now get on the phone.
(Condi picks up the phone.)
Condi: Rice, here.
George: Rice? Good idea. And a couple of egg rolls, too. Maybe we should
send some to the guy in China. And the Middle East.
Can you get Chinese food in the Middle East?
Si on prend full options, ce qui est quand même le minimum pour le faire fonctionner correctement, le prix n'est plus du tout le même...
| Image | Product Name | Model | Unit Price | Total |
| NanoPi NEO | NanoPi NEO DDR3 RAM: 512M RAM NanoPi NEO Purchase Combination: NanoPi NEO Heat Sink NanoPi NEO Purchase Combination: NanoPi NEO 3D Printe.. NanoPi NEO Purchase Combination: SanDisk Ultra 8GB Cl.. NanoPi NEO Purchase Combination: 5V 3A Universal USB .. NanoPi NEO Purchase Combination: Micro USB Cable NanoPi NEO Purchase Combination: TTL To RS232 Module NanoPi NEO Purchase Combination: 4-layer Dual Stack A.. NanoPi NEO Purchase Combination: Mini USB Wi-Fi |
NanoPi NEO | $57.63 | $57.63 |
Petite introduction à strace, l'outils Linux qui permet d'examiner en détails tous les appels système (fichiers, réseau, mémoire) d'un programme.
Via SebSauvage
Tout est dans le titre. Sur un dédié uniquement, vu les manip à faire (mais je n'ai pas testé plus avant)...
À lire.
Le plugin "DL" pour convertir de grosses pièces jointes en liens sans l'intervention d'un tiers fournisseur de service, mais en utilisant notre propre serveur.