Anti-spam take 2

Since the last system was marginally effective, I’ve just upgrade to
a) (re)capture
b) Askimet

Hoping that this can keep the blog clean

Posted in Uncategorized | Leave a comment

IE session bug

I’m just reposting this here so that it can help someone else.
Internet Explorer doesn’t honor php sessions if the domaine name isn’t valid (hint: _ isn’t a valid caracter in domaine names).
This can explain some hard to find bugs where your session works fine on FF, chrome or Safari, but not in Internet Explorer.

Posted in english, php, programming, work | Tagged , , | Leave a comment

Changes and uptime

Will be back soon, upgrading to wordpress 3.0 and changing hosting at the same time…

Stay tuned

Posted in Uncategorized | Leave a comment

A Quick Note to the link spammers

I don’t have much google cred, so I can’t really understand why you are so insistant.

That said, you’re ruining the fun for everyone else, so please go play on someone elses lawn.

It doesn’t cost me much to spam your comments, and to change the challenge response, so don’t think I’ll just give up.

Regards

Posted in english, personnel | Tagged , | 1 Comment

DynDNS and uptime

Anyone who has tried to get into touch with me or read this blog these last few days can atest to the fact that I haven’t been reachable.

My deepest apologies :( .

To understand what happened, here’s a quick lowdown on how my setup works:

I’m self hosting this blog as well as my mail on a converted EasyGate that I got as a beta tester. The machine is connected onto my internet router (a Trio 3D antique) and then onto the internet. My ISP provides a temporary IP address, and as such, I need to use a dynamic DNS record to be able to keep things updated.

Now, the Trio 3D (as with most of it’s features) has a half assed (excuse my French)  DynDNS system built in. I say half assed because it doesn’t accept any provider except the historic DynDNS and because it quite often forgets to update. Last week it completely stopped updating, and as an added bonus, I couldn’t get back into DynDNS to do things manually.

As a work around, I set up OVH (who are my registrar) to route my DNSes manually until I got a permanent fix. That worked until the IP changed Tuesday or Wednesday.

Now things are sorted out. I’m using OVH’s own DynDNS servers (much simpler) and am using a home built client to avoid all the dependancies other clients bought in.

The client is written in bash and depends on bash, sed and wget to work. It’s best used in a cron job, but can also be run on interface specific events if need be.

It uses a web based IP fetcher to work out your IP adresse, and if it’s changed since you last run the script, it updates your DynDNS records for you.

Without further ado, here’s the code:

#/bin/bash

USERNAME='myusername'
PASSWORD='mypassword'
HOSTS=('first_url.test.com' 'second_url.test.com')
SERVER="www.ovh.com"

#
#
#

CURRENT_IP=`wget -O - 'http://checkip.dyndns.org/' 2>/dev/null | sed -e 's/.*Address: \([^<]*\).*/\1/'` if [ -f /tmp/my_ip ]; then 	OLD_IP=`cat /tmp/my_ip`; fi # # Don't update unless ip has changed # if [ "x"$CURRENT_IP == "x"$OLD_IP ]; then 	exit; fi; echo "IP changed from " $OLD_IP " to " $CURRENT_IP echo "Saving new IP" echo $CURRENT_IP > /tmp/my_ip

for HOST in ${HOSTS[@]};
do
	echo "Updating " $HOST " to " $CURRENT_IP
	wget -O - "http://${USERNAME}:${PASSWORD}@${SERVER}/nic/update?system=dyndns&hostname=${HOST}&myip=${CURRENT_IP}&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG" 2>/dev/null
	echo ""
done

Et voila, I hope this helps someone out there

Posted in english, linux, personnel, programming | Tagged , , , , , , | Leave a comment

Histoire de nous veillir tous un peu…

Je ne pense pas être le seul pour qui ce genre de chanson rappelle des souvenirs….

Posted in français, personnel | Tagged , | Leave a comment

Nouvelle an

2010 est avec nous, la dernière année de la première décenie du deuxième millinaire (vas tenter de dire ça trois fois de suite…).

Comme chaque année, il est traditionel de faire de bonnes résolutions, je vais mettre les miennes ici histoire qu’on m’en teinnent rigueur si je ne les respect pas.

Bon, sans plus attendre:

En 2010, je m’engage à:

  1. Faire plus de sport (traditionel celle là ;) , et non, les Fest-noz ne comptent pas :P
  2. Me mettre à la cuisine (Merci Mateo)
  3. Devenir entrepreneur (plus d’infos vers le mois de mars sans doute).
  4. Écrire plus souvent dans mon blog

Voila

Bonne année 2010 à tous, et que tous vos voeux se réalisent

Posted in français, personnel | Tagged , , | Leave a comment

Arthur et les Minimoys 2, quand l'argent triomphe sur le scenario

Le premier Arthur était plutôt bien réussi, il était distrayant sans pour autant trop tomber dans les clichés déjà abusés à mort par Disney entre autres. C’était un voyage magique qui pouvait faire rêver ensemble petits et grands. C’est ainsi avec anticipation que je suis allé avec ma chérie voir le deuxième tomme de cette série de films.

Quelle déception.

Le film, bien réussi sur le plan technique, est quasi dépourvu de scénario, et ce qu’il y à est complément disproportionné et noyé dans des clichés et des anecdotes qui ont pour la plupart déjà été utilisés dans l’épisode 1.

Besson nous dit qu’il faut se souvenir de quand nous avions 5 ans, mais cela n’excuse pas un telle catastrophe. Le pire c’est qu’il y avait matérielle à avoir un bon film, il suffisait de laisser quelques clichés de côté, de se recentrer sur l’arc principal et donner un ordre aux actions. A la place nous avons un fouillis même pas digne d’un étudiant en première année de cinéma.

La grâce salvatrice (désolé pour l’anglicisme) de ce film réside dans les parties non animes, qui sont plus approfondis, mieux gérés et qui ont une existence propre plutôt que d’être un accessoire à la partie animée.

Résumé:

Le bon: Des parties filmés plus aboutis et qui ont une véritable rôle à jouer

Le mauvais: Le manque de scenario complet qui ruine toute l’expérience

La mocheté: Payé 9€ pour une demi-film

Verdict: à éviter

Posted in français, personnel | Leave a comment

On a soduku solver…

Yesterday, when I was on the bus, I got pulled into a sudoku. Then I started wondering how a machine could be programmed to solve these puzzles.

Note: For the rest of this post:

  • A square is the un-devidable unit containing 1 number
  • A section is a 3×3 grid of squares
  • A column is a 10 square vertical strip
  • A row is a 10 square horizontal strip
  • A board is the 9×9 sudoku board

There a few simple rules that go into solving these puzzles. Namely :

  • What are the possible values for this square (based on row, column and section)
  • What are the possible places for this number (in this section)

The two questions aren’t identical, since a numbers position can be influenced by the positions of numbers in other columns or rows that share the section.

The first question comes down to :

  1. Take the ensemble of possible numbers
  2. Remove all that are already in the current row
  3. Remove all that are already in the current column
  4. Remove all that are already in the current section
  5. if there is only one left, put it in the square
  6. lather
  7. rinse
  8. repeat

The second question comes down to:

For each number not entered in each section

  1. Check for number in the rows that pass through this section, eliminate the squares that belong to them if found
  2. Check for number in the columns that pass through this section, eliminate the squares that belong to them if found
  3. if only one square is left, put the number in it
  4. profit

OK, mabey that one’s a bit vague, I’ll try to make it clearer with a drawing

Example of a row and column problem

Example of a row and column problem

In the above image, concentrate on the bottom middle section. If you look, you’ll notice that there are 4s in the top 2 rows of this section, we can conclude that our 4 must be on the bottom row. We also notice that there is a 4 in the left most column of this section, which only leaves the bottom middle square as a possibility for this 4.

By combining the 2 rules stated above, we should be able to solve any sudoku puzzle.

Any how, that’s all for now. Proof by code will be comeing in an update.

Posted in english, personnel, programming | Tagged , | Leave a comment

D'étranges visiteurs à Nantes

Décidement, on n’en finira pas avec les rencontres étranges du côté de Nantes.

Le geant à Nantes début juin

Après la visite des geants qui ont envahi les rues, maintenant ce sont les transports en commun qui ont été pris d’assaut!

Les vaches de l'école de commerce envahissent nos rues

Posted in personnel | Leave a comment