![]() |
|
Spaces home AsH //pufProfileFriendsBlogMore ![]() | ![]() |
AsH //pufno friegues o_O ...
|
|||||||||||||||||||||||||||
Practica 13 de SQL-- Victor De la Rocha perrruno ...Has recibido 1 imagen. IMG_3767.JPG Estas imágenes fueron enviadas desde Google mediante Picasa. Prueba el programa aquí: http://picasa.google.com/ una imagen para tiHas recibido 1 imagen. IMG_4077.JPG Estas imágenes fueron enviadas desde Google mediante Picasa. Prueba el programa aquí: http://picasa.google.com/ O_Oa ver, perate no. -- Victor De la Rocha inforamación, información y mas información.Gracias por la recopilación a los de sentidoWeb /eei
update messages (gettext)dir /a /b /-p /o:gen *.php > sources.txt cd admin dir /a /b /-p /o:gen *.php > sources_admin.txt cd .. PATH C:\Program Files\GnuWin32\bin for /f %%a in ('dir /b languages') do call :add_strings "%%a" cd admin del sources_admin.txt cd .. del sources.txt goto :eof :add_strings xgettext --keyword=__ --language=PHP --files-from=sources.txt -j --from-code=UTF-8 -d languages/%1/messages cd admin xgettext --keyword=__ --language=PHP --files-from=sources_admin.txt -j --from-code=UTF-8 -d ../languages/%1/messages cd .. cd languages/%1 msgfmt messages.po cd ../.. -- Victor De la Rocha Create Messages (Gettext)dir /a /b /-p /o:gen *.php > sources.txt cd admin dir /a /b /-p /o:gen *.php > sources_admin.txt cd .. PATH C:\Program Files\GnuWin32\bin for /f %%a in ('dir /b languages') do call :add_strings "%%a" cd admin del sources_admin.txt cd .. del sources.txt goto :eof :add_strings xgettext --keyword=__ --language=PHP --files-from=sources.txt --from-code=UTF-8 -d languages/%1/messages cd admin xgettext --keyword=__ --language=PHP --files-from=sources_admin.txt --from-code=UTF-8 -d ../languages/%1/messages cd .. cd languages/%1 msgfmt messages.po cd ../.. -- Victor De la Rocha Gelato CMSThe gelato project is open source (you can use and change the original source code freely). You can browse the source code, request features and read the wiki from the Gelato home at Google code.The post formats found on gelato include photos, video, audio, links, quotes and dialogues.
-- Victor De la Rocha Diac! Parchando la hoja de estiloDebería darle vergüenza al tió Bill dejarnos usar estos parches /puf <style> .algoAqui{ <?php if(strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 6.0')): ?> padding-left:16px; <?php endif;?> } <style> -- Victor De la Rocha Rename for Windowsfunction rename_win($oldfile,$newfile) { if (!rename($oldfile,$newfile)) { if (copy ($oldfile,$newfile)) { unlink($oldfile); return TRUE; } return FALSE; } return TRUE; } -- Victor De la Rocha IE Update objectstheObjects = document.getElementsByTagName("object"); for (var i = 0; i < theObjects.length; i++) { theObjects[i].outerHTML = theObjects[i].outerHTML; } -- Victor De la Rocha ReflexiónTodos nos equivocamos, por eso los lápices llevan goma. (Homero Simpson) Número sagrado.46556104334 -- Victor De la Rocha allHtmlEntities/* php function */-- Victor De la Rocha Acordeón SQLMi Acordeón SQL antes de que se pierda y no lo re-encuentre nunca muajajajaja
Observación: Yo no lo escribí, me lo pasaron hace años y solo me sirve de referencia :P Salvando utf8No sabía que se podía hacer esto... function UTF8($contenido) { $contenido = Reemplazar("á", "á", $contenido); $contenido = Reemplazar("é", "é", $contenido); $contenido = Reemplazar("Ã", "í", $contenido); $contenido = Reemplazar("ó", "ó", $contenido); $contenido = Reemplazar("ú", "ú", $contenido); $contenido = Reemplazar("ñ", "ñ", $contenido); $contenido = Reemplazar("¡", "¡", $contenido); $contenido = Reemplazar("Ã'", "Ñ", $contenido); $contenido = Reemplazar("¿", "¿", $contenido); return $contenido; } -- Victor De la Rocha Detección de dispositivos moviles con PHP//usada por GPL de wordpress-mobile-edition foreach ($small_browsers as $browser) { Changes to gettext.php /* Permite agregar en el log la palabra que hace falta. */ function guardaLog($string,$locale){ $log = dirname(__FILE__)."/../log/$locale- log.txt"; $logStr = "$string\n"; $gestor = @fopen($log, "r"); if($gestor){ while (!feof($gestor)) { $linea = fgets($gestor, 4096); if($linea=="$string\n") return true; } @fclose ($gestor); $gestor = @fopen($log, 'a'); @fwrite($gestor,$logStr); @fclose($gestor); }else{ if(!$gestor = @fopen($log, 'a')) $gestor = @fopen($log, 'w'); @fwrite($gestor,$logStr); @fclose($gestor); } return true; } /** * Translates a string * * @access public * @param string string to be translated * @return string translated string (or original, if not found) */ function translate($string) { global $locale; if ($this->short_circuit) return $string; $this->load_tables(); if ($this->enable_cache) { // Caching enabled, get translated string from cache if (array_key_exists($string, $this->cache_translations)) return $this->cache_translations[$string]; else{ $this->guardaLog($string,$locale); return $string; //no encontró traducción } } else { // Caching not enabled, try to find string $num = $this->find_string($string); if ($num == -1){ guardaLog($string,$locale); return $string;//no encontró traducción } else return $this->get_translation_string($num); } } -- Victor De la Rocha Mi primer programa en Matlabx = input ('valor x: ') y = input ('valor y: ') z = input ('valor z: ') cilindrica_x = sqrt((x*x)+(y*y)) cilindrica_y = atan(y/x)*(180/pi) cilindrica_z = z radio = input('Radio: ') angulo = input('Angulo: ') zeta = input('z: ') angulo_rad = (angulo*pi)/180 rec_x = radio * cos(angulo_rad) rec_y = radio * sin(angulo_rad) rec_z = zeta fprintf('Cilindricas x: %0.2f \n', cilindrica_x); fprintf('Cilindricas y: %0.2f \n', cilindrica_y); fprintf('Cilindricas z: %0.2f \n', cilindrica_z); fprintf('\nRectangular x: %0.2f \n', rec_x); fprintf('Rectangular y: %0.2f \n', rec_y); fprintf('Rectangular z: %0.2f \n', rec_z); -- Victor De la Rocha Re: Solicitando script/// Funcion sacada de sabrosus, modificada por Victor Bracco... function enviaMail($to, $title, $body, $from) { $rp = trim($from); $org = " sabros.us"; $mailer = "sabros.us Mailer"; $head = ''; $head .= "Content-Type: text/html \r\n"; $head .= "Date: ". date('r'). " \r\n"; $head .= "Return-Path: $rp \r\n"; $head .= "From: $from \r\n"; $head .= "Sender: $from \r\n"; $head .= "Reply-To: $from \r\n"; $head .= "Organization: $org \r\n"; $head .= "X-Sender: $from \r\n"; $head .= "X-Priority: 3 \r\n"; $head .= "X-Mailer: $mailer \r\n"; $body = str_replace("\r\n", "\n", $body); $body = str_replace("\n", "\r\n", $body); if(is_array($to) { for_each($to as $suscriptor) { @mail($to, $title, $body, $head); } } else { @mail($to, $title, $body, $head); }
|
There are no categories in use.
|
||||||||||||||||||||||||||
|
|