Printing with Opera under Linux
Monday, December 12, 2011 2:42:15 PM
Sticky post
Sunday, March 27, 2011 9:05:47 PM
Sunday, December 18, 2011 10:34:06 PM
<html>
<head>
<style>
p:first-letter{
color:red;
font-size:50px;
}
</style>
</head>
<body>
<p id="p">L'image bleue.</p>
<button onclick="document.getElementById('p').firstChild.nodeValue='The blue image.';return false;">Write "The blue image." using nodes</button>
<button onclick="document.getElementById('p').innerHTML='The blue image.';return false;">Write "The blue image." using innerHtml</button>
</body>
</html>
Monday, December 12, 2011 2:42:15 PM
Thursday, November 24, 2011 4:51:47 PM
#!/usr/bin/php
<?php
// OPENSOURCED BY METRALLIK
if($argc>1 && !is_file($argv[1])) exit("$argv[1] is not a file\n");
if($argc==3){
echo "INPUT FILE : $argv[1]\n";
$d=$argv[2];
echo "DELAY : $d\n";
$f=$argv[1].'.delayed_'.$argv[2].'.yb';
file_put_contents($f,preg_replace_callback('#(\d+:\d+:\d+,\d+) --> (\d+:\d+:\d+,\d+)#sim','delay',file_get_contents($argv[1])));
echo "OUTPUT FILE : $f\n";
}
elseif($argc==6){
echo "INPUT FILE : $argv[1]\n";
$o1=strToMs($argv[3]);
$o2=strToMs($argv[2]);
$r=(strToMs($argv[4])-$o2)/(strToMs($argv[5])-$o1);
echo "RATIO : $r\n";
$f=$argv[1].'.sync_'.$o1.'_'.$o2.'_'.$r.'.yb';
file_put_contents($f,preg_replace_callback('#(\d+:\d+:\d+,\d+) --> (\d+:\d+:\d+,\d+)#sim','sync',file_get_contents($argv[1])));
echo "OUTPUT FILE : $f\n";
}
else{
echo <<<HELP
Just delay :
> sync.php file.srt sub_delay_in_ms
Resync (date format : 01:23:45,678 ; leading zeros are not mandatory) :
> sync.php file.srt time_A_in_movie time_A_in_srt time_B_in_movie time_B_in_srt\n
HELP;
}
function sync($m){
global $o1,$r,$o2;
return msToStr(round((strToMs($m[1])-$o1)*$r)+$o2).' --> '.msToStr(round((strToMs($m[2])-$o1)*$r)+$o2);
}
function delay($m){
global $d;
return msToStr(strToMs($m[1])+$d).' --> '.msToStr(strToMs($m[2])+$d);
}
function strToMs($s){
preg_match('#^(\d+):(\d+):(\d+),(\d+)$#Usi',$s,$m);
return $m[4]+1000*$m[3]+60*1000*$m[2]+3600*1000*$m[1];
}
function msToStr($t){
$nbH=floor($t/3600000);
$nbM=floor(($t-3600000*$nbH)/60000);
$nbS=floor(($t-3600000*$nbH-60000*$nbM)/1000);
$nbMs=$t-3600000*$nbH-60000*$nbM-1000*$nbS;
return sprintf("%02d:%02d:%02d,%03d",$nbH,$nbM,$nbS,$nbMs);
}Thursday, November 3, 2011 11:45:18 PM
Tuesday, August 23, 2011 2:50:26 PM
<?php
// SAMPLE FILE
$cFtpServer='ftp.serv.fr';
$cFtpUser='username';
//$cFtpPass='pass';
$cIgnore=array('#^\.ybvs#');
//$cIgnoreGet=array(...);
//$cIgnoreSubmit=array(...);
?>
Tuesday, June 21, 2011 10:50:34 PM
$user='Metrallik';
$min_size=100000;
$ext=array('png','txt','zip','rar','7z','txt','htm','html','xml','ppd','cat','avi','wma','mp3','mov','wmv','mpeg','ogg','ogv','mkv','chm','js','jpg','jpeg','bmp','gpd','ps','df','psd');
$max_date=time()-(3600*24*30*23);
$backup=true;
$floppy='d';
$dirs=array('c:\Windows\winsxs');
echo "OPENSOURCED BY METRALLIK : http://my.opera.com/metrallik/blog/\n";
while(current($dirs)){
foreach(glob(current($dirs).DIRECTORY_SEPARATOR.'*',GLOB_NOSORT) as $d){
if(is_dir($d)) array_push($dirs,$d);
elseif((in_array(strtolower(substr(strrchr($d,'.'),1)),$ext) || filesize($d)>$min_size) && fileatime($d)<$max_date && file_exists($d)){
echo $d,"\n";
echo exec("takeown /f \"$d\""),"\n";
echo exec("icacls \"$d\" /grant $user:F /t"),"\n";
if($backup){
if(!is_dir(dirname($floppy.substr($d,1)))) mkdir(dirname($floppy.substr($d,1)),null,true);
echo copy($d,$floppy.substr($d,1)),"\n";
}
echo unlink($d),"\n";
sleep(2);
}
}
next($dirs);
}
Monday, February 21, 2011 8:20:40 PM
Titre : La DuchesseMonday, February 21, 2011 7:06:06 PM
var res='';
for (sItem in r.results) {
res+=res+sItem.term;
}
Saturday, May 8, 2010 8:19:27 AM
<form action="http://wwww.opera.com" method="post">
<input type="text" name="name" />
<button onclick="alert('clicked')">Click me !</button>
<input type="submit" />
</form>
anonymous
normilla writes: il ya longtemps que j ai lu ce livre et bi ...
anonymous
nivampe writes: j ai lu ce livre il y a bien longtemps, je ...
anonymous
Anonymous writes: How to make this shortcut please mention ...
anonymous
nuklon writes: j'ai pris un grand plaisir à lire des roman ...
anonymous
Maroua writes: J'ai 14ans Et J'ai Lus Ce Livre Et Je L'ai T ...
anonymous
Anonymous writes: Salut, Comment parametrer la messagerie ...
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||