Catégorie Web - posté le 23/07/08 12:18:24
$('id_objet').style.backgroundColor='red';
var item=$('id_objet')
item.style.backgroundColor='red';
0 commentaire(s) Astuce CSS IE Bug BackgroundColor Javascript
Catégorie web - posté le 08/07/08 21:49:36
Catégorie web - posté le 08/07/08 16:34:21
Catégorie Astuce - posté le 02/07/08 22:20:38
Catégorie Jeux vidéo - posté le 29/06/08 15:33:42
Catégorie Programmation - posté le 27/06/08 14:28:02
create table matable (id serial, nombre varchar NULL);
insert into matable (nombre) VALUES (0); insert into matable (nombre) VALUES (1); insert into matable;
select id,nombre from matable where nombre=1;
select id,nombre from matable where nombre!=1;Nous remarquons que la ligne ayant un nombre=NULL n'a pas été sélectionnée...
select id,nombre from matable where coalesce(nombre,0) != 1;
Catégorie Perl - posté le 20/06/08 13:06:49
$date="28/02/08 13:53";
if($date =~ /^
(?:
(?:
(?:(?:[0-2][0-9]?)|(?:3[0-1]))
\/
(?:(?:0?[13578])|(?:1[02]))
)|
(?:(?:(?:[0-2][0-9]?)|30)\/(?:(?:0?[469])|11))
|
(?:
(?:
(?:[0-1][0-9]?)|2[0-8])\/(?:0?2)
)
)\/\d{2}(?:\d{2})?\s+(?:[0-1]?[0-9]|2[0-4]):(?:[0-5]?[0-9])$/x)
{
print "Date oK\n";
}
ou sa version 1 ligne:
/^(?:(?:(?:(?:[0-2][0-9]?)|(?:3[0-1]))\/(?:(?:0?[13578])|(?:1[02])))|Note: les années bissextiles ne sont pas prises en compte malheureusement...
(?:(?:(?:[0-2][0-9]?)|30)\/(?:(?:0?[469])|11))|(?:(?:(?:[0-1][0-9]?)|
2[0-8])\/(?:0?2)))\/\d{2}(?:\d{2})?\s+(?:[0-1]?[0-9]|2[0-4]):(?:[0-5]?[0-9])$/x
if( preg_match("/^(\d\d?)\/(\d\d?)\/((?:\d\d){1,2})/",$mdate))
{
echo "la date est correcte";
}
Exemple d'utilisation Perl:if($mdate=~ /^(\d\d?)\/(\d\d?)\/((?:\d\d){1,2})/)
{
print "la date est correcte";
}
Catégorie web - posté le 17/06/08 17:56:52
This is rather old stuff, I was looking for an easy way to create html templates in an easy but open source kind of way. It is a perl-fu plugin for Gimp which allows you to draw your template as a multi-layered image, then automatically export it to html + individual png files. It was originally written for Gimp v.1, but it seems to work fine with Gimp v.2
Catégorie blog - posté le 14/06/08 18:58:06
• Google will store the Firefox browser settings that you select in association with your Google account and use them to synchronize settings for Firefox browsers on other computers. You can choose to encrypt Google's stored copies of your settings. When you update or delete your browser settings, the copy stored with your Google Account will be updated or deleted as well. • Any user of your browser can see its history and other settings. Google Browser Sync synchronizes these settings across every browser on which you install Browser Sync. This means that anyone who uses one of those browsers can see browser settings created on the others. In addition, by using the browser anyone can create new settings, such as browsing history, that will be synchronized.J'ai essayé sans succès d'installer le plugin sous iceweasel, car "Google Browser Sync requieres Firefox 1.5 or later". Pas de chance...
Catégorie General - posté le 12/06/08 23:04:58