Just another blog prev - next

--- BCE revenu universel economie ---

BCE, revenu universel : Simple constat, si chaque citoyen européen pourrait emprunter auprès de la BCE, aux taux interbancaires actuels qui sont négatifs, cela relancerait la consommation et non l'épargne Revenu universel : une idée qui peut paraitre délirante à la base, mais si chaque citoyen recoit 50€ / mois de base, cela injecterait autant dans l'économie .. ( non épargnable, sous forme de "tickets restaurant" probable )

--- about:world news ---

4 days off .. thought the world wouldn't be that bad once back to work, terrorism in france, lot of casualties, black lives matters, trump, turkish dictatorship rising and then .. always think about that movie called "Idiocracy", here are we now .. Sometimes I hope our planet would get rid of our specie, a stable and peacefull ecosystem getting rid of its parasits, then something good shall emerge .. It takes a few people and some hours to take over 3 billion years of biological evolution .. I'm ashamed ..

--- July 2016 >> Fast Forward || Life.Resume() ? ---

Long time not posted here .. since 2009, back at the time where I had zilion of things tio say .. as I did move lots of photographs during the last year to flickr, some people were asking for them so this is a real economy of time for me , thus #work : found some security issue in Magento, cleaned the server from several hacks, just finished the invoices generating module ( querying sage mssql database ) -> then generates nice printables pdf ( took me lot of Brain / Hour units ) so I'll catch up with telling my life to strangers on the web, anyways, I don't care, gotta head for the lake soon, meet some friends, take a swim, and fly away :) Besides .. some links and articles for the week : .. Small energy resume ( MPH style fact sheet & formulaes ) | WIP : CV format JSON/JS expandable nodes | My Flickr Gallery

--- Css sprites dynamic updates ---

Replaces the previous 2007 version, faster, accurate, easy to change + spritesgenerator ( don't miss the run button ) :

--- Energies petrole uranium hydro comparaison formules ---

Rappel Energétique Sommaire

prequisites:{ $heures par an = 365 *24 = 8760 1 cal = heat 1G eau +1°C; ( 14,5° => 15° @sea level pressure ) ( 1 cal : 4.184 joules ) 1KW*h = 1kJ * 3600sec; 1 J = 1W * 1sec = 1 N * m = 1 kg . m² .s-² = 1 ohm * 1A² * 1sec 3600 joules = 860 Cal = 1W*1H 1Gev = 1,6022^-10J = 3,8^-11 C Certaines sources énergétique rendent plus d'énergie sur moins de temps ( explosifs, essence pour moteur ), d'autres nécessitent plus de temps ( graisse, uranium ) } Formules { E = mgh; E= mc²,E = ½ m v2 P = Q.ρ.H.g.r #hydroelectrique { 1KW = 1m^3 * 1000 * ( 222(h) * 9,8 ) * 0.9 (e:hoover dam) = 2.175MWh * 0.9 ... 1m^3/s en continu sur une heure sur 222 mètres ( 1000m3/s = débit trou 4 mètres diamètre ) : capacité maximale du hoover dam, soit 2.079 GWs reste à savoir en combien de temps se vide le lac mead } Rendements { Nucléaire : 30% Moteur Thermique : 40% Moteur Electrique : 80% Hoover Dam : 90% Barrage réversible ( STEP, hydroélectrique gravité ): 82% ( rendement électrique pour 1 tonne pompée et stockée, puis passée via la turbiine ) => super moyen de stocker l'énergie } pouvoir énergétique { 1g prot : 4kCal = 4.65Wh 1g fat : 9kCal 1g gluci : 4 kCal ( energie libérée sur le temps ) 1g TNT : 1.1 kCalories ( mais réaction explosive rapide, effet de souffle, energie libéré d'un coup ) Pile AA haute capacité { 1.2V x 2.3A = 2.76 Wh => 9926 joules, de quoi allumer une led (1.5w ) pendant 1h50 } 25,6g => 0.107 W.h / g Batterie lipo 1.3 Ah 3s => 12 x 1.3 => 15.6 Wh ( 97g ) => 0.16 W.h / g Lipo H501s : 7.4 * 2.7 / 105 g => 0.19 Wh/g ( bon ratio ) 1 kg d’anthracite (teneur en humidité : 4 %) = 36 MJ = 10 kWh 1 kg charbon (teneur en humidité: 5 à 10%) = 37 MJ = 10,3 kWh 1m3 de gaz naturel = 39 MJ = 10,8 kWh 1 litre d’essence = 34 MJ = 9,4 kWh ( rendement énergétique moteur : 40% , 60% dissipation thermique ) 1 ml essence : 34kJ => 8.12 kCal ( à peu près comme la graisse sur plus de temps ) 1 litre de carburant diesel = 40 MJ = 11,1 kWh 1 litre de gasoil = 41 MJ = 11,4 kWh 1 litre de mazout = 44 MJ = 12,2 kWh 1 uranium naturel (2,7g /tonne ) : 10K* petrol in light water reactors ( see : euronuclear.org/info/encyclopedia/images/fuelcomparison.jpg ) 1 uranium 235 : 24 Gwh ( the only one to be fissioned ) 4% enriched => 4% fissionables, autre enrichis in process => 69K * petrol - efficacité conversion énergie via eau, turbines, refoidissement, remplacement barres combustible ) } Une centrale nucléaire de puissance 1000MW électrique consomme 27 tonnes d'uranium (enrichi à 3,2%) par an, une centrale thermique de même puissance consomme 170 tonnes de fuel (ou 260 tonnes de charbon) par heure, et qu'une centrale hydraulique de même puissance nécessiterait la chute de 100m de haut de 1200 tonnes d'eau par seconde! cf : http://www.emploi-2017.org/bilan-quantitatif-des-modes-de-production-d-energie-electrique,a0228.html https://fr.wikipedia.org/wiki/%C3%89lectron-volt physique B chap5 diff petrole uranium.pdf http://physics.ucsd.edu/do-the-math/2011/12/how-much-dam-energy-can-we-get/

--- phpoo++ notfound classes ---

#-notfound.class.php class notfound{ public $data=[];#fs, mais individuelles #appels functions not set function __call($name,$args){ #die("__CALL:".$name.":".print_r(compact('args'),1)); $name=strtolower($name); if(array_key_exists($name,$this->data))return $this->data[$name];#obj->name(); #failsafe for _ method differences $name=strtolower(str_replace('_','',$name)); $matches=[$name,'get'.$name,'set'.$name]; foreach($matches as $method) if(method_exists($this,$method))return $this->$method($args); #aliases $aliases=['gettitre'=>'getnom']; foreach($aliases as $souhait=>$exists) if($name==$souhait && method_exists($this,$exists))return $this->$exists($args); #getters, setters not found $reste=substr($name,3); if(substr($name,0,3)=='get')return $this->$reste; if(substr($name,0,3)=='set')$this->$reste=reset($args); #global namespaces functions if(in_array($name,['ajoutsessionpubaffiliation','create_centre_fiches_offre_fiche']))return; if(function_exists($name))return call_user_func(''.$name,$args[0]); #$f=__FILE__.':'.__LINE__;die('
'.print_r(compact('f','name','args'),1));              
        return $this;#anyways
    }
    /*private function __construct(){}*/
    function __construct($p=[]){
        if(is_array($p))foreach($p as $k=>$v)$this->$k=$v;#register those parameters if passed
        #$class=static::class;if(!isset(static::$instances[$class]))static::$instances[$class]=$this;else static::$additional[$class][]=$this;
    }#register him anyways, la seconde construction ne sera pas bindée..
}

#-autoloader.php

spl_autoload_register('load1');
function load1($classname) {/*__autoload*/
  static $loaded;if(is_array($loaded)&& in_array($classname,$loaded))return;
  $f = "./". $classname .".php";
  if(is_file($f)){require_once($f);}#but the globals remains nested here forever ..
  else{
      require_once'notfound.class.php';
      eval("class {$classname} extends notfound{};");#;echo',nf:'.$classname;
      #file_put_contents('/home/500.clog',"
".date('YmdHis').':'.__FILE__.__LINE__.':'.$classname,FILE_APPEND);
  }
  $loaded[]=$classname;
}

--- Bikini ---

Did I success in catching your attention for at least 5 seconds ? Anyways personnal portfolio has been updated. Huge updates to come in 2016

--- PCRE php regex ---

PCRE php regex

--- Any brighter day yet ---

.. I has been a while .. a real long time since I haven't expressed in written thought in English, perhaps I would feel ashamed of my poor vocabulary or whatever some people say .. 2014 - 2015 have really been shitty years, like being throught a 600 days ++ storm .. No here it is : PHP7-FPM, brand new server, no more errors, all projects cleared, looks like a brand new shinny road ahead .. might be naive, as I'm expecting lots of good things to come for 2016

--- Back office developer Annecy ---

Développement de sites internets, back office, symfony sur Annecy : Back office developer Annecy#
web - php - eco - science - astro - php - rando
Summer is coming .. Paradisio Annecy 2011 pop plage


0