Amélioration du script d'ajout d'image sur Black-Frames

Le script cron que l'on utilisais pour mettre à jour les images sur Black-Frames souffrait d'un bug gênant.

En effet, lorsqu'il n'y avait plus d'images à afficher, le script envoyait quand même un tweet vide et moche, du genre :

http://black-frames.net/i- - :

C'est maintenant chose corrigée. Lorsqu'il n'y a plus d'images dans le système de queue, le script prends une ancienne image affichée et la remet au goût du jour, ce afin de toujours proposer des images.

Certains vont penser que du coup, le site semblera un peu répétitif. Nous avons une base de plus de 1500 images. Si on part du principe que l'on affiche 5 images par jours, vous verrez la même image au bout de 300 jours.

Mais cela ne veux pas dire que nous n'ajouterons plus de nouvelles images ! Nous avons encore de côté 300 images à ajouter (il faut juste trouver le temps de le faire) et nous récupérons régulièrement de nouvelles images !

Ce script nous permettra juste d'effectuer une mise à jour constante du site afin de vous proposer des images régulièrement !

Filed under  //  Development   Php   Projects   Scripts   black-frames   bug   cron   tweet   twitter  
Posted by Cyril Nicodème 

Improvment on Black-Frames.net

We just made some new modifications on Black-Frames.net in order to improve your visits.

In fact, after the DDoS indirectly made by a Twitter user, we had to react quickly to avoid our website to be down like that.

So we made some Apache modifications to handle more users (using mod_cband and mod_evasive). We continue to work with these modules to set the perfect values for our server.

We also setted up the GZip component to compress data for the newest browser and added a performant cache system, using memcached.

On the website, we corrected some bugs and added the number of votes for each images. We also moved our feeds to FeedBurner, so you should update your Rss Readers to be up to date.

Enjoy visiting Black-Frames.net and feel free to contact us if something is wrong :)

Filed under  //  Apache   Development   General   Projects   amélioration   black-frames   bug   correction   improvment   website  
Posted by Cyril Nicodème 

Bug de Emesene, libnotify : on_notify_close

Le plugin libNotify de Emesene à un bug gênant, qui génère une erreur (msgbox) indiquant que la fonction on_notify_close n'accepte que deux arguments alors que trois sont donnés :

TypeError?: on_notify_close() takes exactly 2 arguments (3 given)

Pour corriger temporairement ce problème, en attendant une nouvelle version qui corrigera le tout, est de procéder ainsi :

Ouvrez le fichier /usr/share/emesene/plugins_base/LibNotify.py, tout à la fin du fichier, remplacez :

def on_notify_close(self, n):

par

def on_notify_close(self, n, unused):

Voila ! Le bug est parti !!

Bon, cette correction est temporaire et ne corrige pas de manière PROPRE et SURE le problème.

Si vous ne savez pas comment faire ou ce que cela fait, faites attention et/ou attendez la prochaine version de emesene ! :)

Filed under  //  Development   Python   argument   bug   correction   emesene   fix   libnotify   on_notify_close   problem   tree   two  
Posted by Cyril Nicodème 

Trucs et Astuces Fedora 10 : Fedora 10 et flash qui se grise

L'installation de Flash proposée par Fedora est la version 10.0 r12.

Sur ma machine en 32bits, Flash avait la mauvase tendance à se griser et rendait l'application (flash) inutilisable.

Le problème vient en fait de la version 10.0. Un simple downgrade vers la version 9 résout ce problème.

Nous allons voir comment procéder, vous verrez, c'est tout simple :)

Tout d'abord, faites une sauvegarde de votre version actuelle de flash :

cp /usr/lib/flash-plugin/libflashplayer.so /usr/lib/flash-plugin/libflashplugin.so.bak

Ensuite, téléchargez la version 9 ici :

Décompressez l'archive, et mettez le fichier libflashplugin.so extrait dans le dossier flash-plugin :

cp /home/user/downloads/install_flash_player_9_linux/libflashplayer.so /usr/lib/flash-plugin/

Redémarrez Firefox, et voilà ! Plus de problèmes avec Flash ! :)

Filed under  //  Fedora   Unix/Linux   bug   cambridge   flash   gris   problem  
Posted by Cyril Nicodème 

Les commentaires à nouveau fonctionnels

Yop tout le monde !

Comme me l'a fait remarqué Antoine (Skual Designer), j'avais un problème avec mon système de captchas qui empêchait la soumission de commentaires.

Le problème est maintenant réparé ! :)

Bonne journée !

Filed under  //  General   bug   commentaire   probleme  
Posted by Cyril Nicodème 

Problem of JVM with Eclipse Ganymede

It appear that the JVM (under Linux apparently (I've only tested on it)) has some problems that makes Eclipse crash a lots of time (just by saving a file, for example).
It's very boring.

I've found a solution to avoid this problem, just edit the eclipse.ini file and add this line :

-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,<init>

Normally, your problem is now away ! :)

Filed under  //  Development   Java   bug   eclipse   ganymede   jvm  
Posted by Cyril Nicodème 

Windows Usability Systematic degradation flame

---- Original Message ----

From: Bill Gates
Sent: Wednesday, January 15, 2003 10:05 AM
To: Jim Allchin
Cc: Chris Jones (WINDOWS); Bharat Shah (NT); Joe Peterson; Will Poole; Brian Valentine; Anoop Gupta (RESEARCH)
Subject: Windows Usability Systematic degradation flame

I am quite disappointed at how Windows Usability has been going backwards and the program management groups don't drive usability issues.

Let me give you my experience from yesterday.

I decided to download (Moviemaker) and buy the Digital Plus pack ... so I went to Microsoft.com. They have a download place so I went there.

The first 5 times I used the site it timed out while trying to bring up the download page. Then after an 8 second delay I got it to come up.

This site is so slow it is unusable.

It wasn't in the top 5 so I expanded the other 45.

These 45 names are totally confusing. These names make stuff like: C:\Documents and Settings\billg\My Documents\My Pictures seem clear.

They are not filtered by the system ... and so many of the things are strange.

I tried scoping to Media stuff. Still no moviemaker. I typed in movie. Nothing. I typed in movie maker. Nothing.

So I gave up and sent mail to Amir saying - where is this Moviemaker download? Does it exist?

So they told me that using the download page to download something was not something they anticipated.

They told me to go to the main page search button and type movie maker (not moviemaker!).

I tried that. The site was pathetically slow but after 6 seconds of waiting up it came.

I thought for sure now I would see a button to just go do the download.

In fact it is more like a puzzle that you get to solve. It told me to go to Windows Update and do a bunch of incantations.

This struck me as completely odd. Why should I have to go somewhere else and do a scan to download moviemaker?

So I went to Windows update. Windows Update decides I need to download a bunch of controls. (Not) just once but multiple times where I get to see weird dialog boxes.

Doesn't Windows update know some key to talk to Windows?

Then I did the scan. This took quite some time and I was told it was critical for me to download 17megs of stuff.

This is after I was told we were doing delta patches to things but instead just to get 6 things that are labeled in the SCARIEST possible way I had to download 17meg.

So I did the download. That part was fast. Then it wanted to do an install. This took 6 minutes and the machine was so slow I couldn't use it for anything else during this time.

What the heck is going on during those 6 minutes? That is crazy. This is after the download was finished.

Then it told me to reboot my machine. Why should I do that? I reboot every night -- why should I reboot at that time?

So I did the reboot because it INSISTED on it. Of course that meant completely getting rid of all my Outlook state.

So I got back up and running and went to Windows Update again. I forgot why I was in Windows Update at all since all I wanted was to get Moviemaker.

So I went back to Microsoft.com and looked at the instructions. I have to click on a folder called WindowsXP. Why should I do that? Windows Update knows I am on Windows XP.

What does it mean to have to click on that folder? So I get a bunch of confusing stuff but sure enough one of them is Moviemaker.

So I do the download. The download is fast but the Install takes many minutes. Amazing how slow this thing is.

At some point I get told I need to go get Windows Media Series 9 to download.

So I decide I will go do that. This time I get dialogs saying things like "Open" or "Save". No guidance in the instructions which to do. I have no clue which to do.

The download is fast and the install takes 7 minutes for this thing.

So now I think I am going to have Moviemaker. I go to my add/remove programs place to make sure it is there.

It is not there.

What is there? The following garbage is there. Microsoft Autoupdate Exclusive test package, Microsoft Autoupdate Reboot test package, Microsoft Autoupdate testpackage1. Microsoft AUtoupdate testpackage2, Microsoft Autoupdate Test package3.

Someone decided to trash the one part of Windows that was usable? The file system is no longer usable. The registry is not usable. This program listing was one sane place but now it is all crapped up.

But that is just the start of the crap. Later I have listed things like Windows XP Hotfix see Q329048 for more information. What is Q329048? Why are these series of patches listed here? Some of the patches just things like Q810655 instead of saying see Q329048 for more information.

What an absolute mess.

Moviemaker is just not there at all.

So I give up on Moviemaker and decide to download the Digital Plus Package.

I get told I need to go enter a bunch of information about myself.

I enter it all in and because it decides I have mistyped something I have to try again. Of course it has cleared out most of what I typed.

I try (typing) the right stuff in 5 times and it just keeps clearing things out for me to type them in again.

So after more than an hour of craziness and making my programs list garbage and being scared and seeing that Microsoft.com is a terrible website I haven't run Moviemaker and I haven't got the plus package.

The lack of attention to usability represented by these experiences blows my mind. I thought we had reached a low with Windows Network places or the messages I get when I try to use 802.11. (don't you just love that root certificate message?)

When I really get to use the stuff I am sure I will have more feedback.

Source : http://blog.seattlepi.nwsource.com/microsoft/archives/141821.asp French source : http://www.gizmodo.fr/2008/06/26/du_grand_bill_gates_qui_va_certainement_nous_manquer.html

Filed under  //  Bill Gates   General   Humour   Projects   bug   degradation   problem   unusable   windows  
Posted by Cyril Nicodème