May 2009
22 posts
Many a man who falls in love with a dimple make the mistake of marrying the...
– Evan Esar
The greatest mystery is not that we have been flung at random between the...
– Andre Malraux
It is a mistake to think you can solve any major problems just with potatoes.
– Douglas Adams
5 tags
PHP: get the image source complete URL from HTML
function GetImageSource($strHtml){
$strRegExp = ‘/
$arrMatches = array();
$bolMatched = preg_match_all($strRegExp,$strHtml,$arrMatches);
if( $bolMatched!==false && isset($arrMatches[1]) )
{
return $arrMatches[1];
}
else
{
return false;
}
}
?>
6 tags
REGEX If you wanted to write in 'hell language'......
I’ve spent most of my time running away from regular expressions and using them ONLY when necessary, most of the time it involves putting a gun to my head to get me to use a preg_match().
But this must change… Behold, a list to become Regex knowledgeable…
In PHP the following should be escaped if you are trying to match that character
\ ^ . $ | ( ) [ ]
* + ? { } ,
...
2 tags
3 tags
Economía
Agosto, una pequeña ciudad de costa …, en plena temporada; cae una lluvia torrencial desde hace varios días, la ciudad parece desierta.
Todos tienen deudas y viven a base de créditos. Por fortuna, llega un ruso forrado y entra en un pequeño hotel con encanto. Pide una habitación.
Pone un billete de 100€ en la mesa del recepcionista y se va a ver las habitaciones.
El jefe del hotel...
2 tags
3 tags
Faith is, at one and the same time, absolutely necessary and altogether...
– Stanislaw Lem
5 tags
Semiótica
¿Ves las señales?
Creo que no vamos por buen camino.
Creo que aqui se acabará esto.
Las señales lo dicen.
Los símbolos lo dicen.
Las señas lo anuncian.
Sus significados nos hablan
y no estamos escuchando,
todo significa algo,
tiene una manera
de hablar.
¿Puedes ver las señales?
¿Puedes descifrar los símbolos?
Las señales no indican
el camino recto.
No nos enseñan una verdad.
No...
We are the people our parents warned us about.
– Jimmy Buffett
Speech is conveniently located midway between thought and action, where it often...
– John Andrew Holmes
It is a paradoxical but profoundly true and important principle of life that the...
– Arnold Toynbee