Apprendre à composer avec les particularités de la valeur NULL en SQL, c’est parfois chiant et difficile. Mais c’est possible, quand on sait comment s’y prendre et qu’on évite les pièges. Tel qu’expliqué ici.
Vous cherchez des solutions à des problèmes 1000 fois rencontrés? Il y a de grandes chances que vous trouviez ce qu’il vous faut ici!
Un excellent blogue consacré à MySQL sur lequel je suis tombé par hasard, lefred.be.
Un article portant sur l’erreur 1215 (« Cannot add foreign key constraint« ).
Les InnoDB Page merge & split expliqués en détail dans ce billet.
As you can see, Freewill now supports 17 different selection policies. At this point, all of them are coded but only half of them have been tested.
The 11 available termination policies are coded, half of them tested.
So far, only 2 mutation policies are available. Both of them are coded and tested. I will probably need a few extras for TSP type of problems as well as numerically parametrized problems (e.g. De Jong functions with a domain for each variable). I’ll probably add 3-4 other ones specific to the problem that started all this adventure!
Only one immigration policy (no immigration!) is available and it will stay that way …[Lire plus]
This was originally posted in French here.
There’s no string function in MySQL (and many other databases!) to help you find the number of occurrences of a string within another string. For example, how many times does « abc » appear in « abcbcbabcbacbcabcababcabacb » ?
I was asked this question on IRC a long time ago. Some poor soul was trying to find a particular subsequence in a genomic string (for instance « TAT ») in the following sequence :
Obviously, you can use your favorite programming language and do this kind of search programmatically but is there a way to do it in SQL?
Luckily, the answer is yes! The solution is simple and looks like …[Lire plus]
After a major data loss (I haven’t given up on getting back all my data, mostly code repositories and databases!), I had to start all my pet projects from scratch. Luckily, it’s easier second time around as they say! And, lucky me, I store all my personal stuff on the web! So here’s a list of what’s coming up on this blog.
Even though I had a decent working version of the genetic algorithm program to find the best ruzzle grid (original posts in French here, here and here), I wasn’t satisfied with the code. It slowly evolved from a bunch of code …[Lire plus]