Profile cover photo
Profile photo
david crosson
About
Posts

Post has attachment
Le vignoble champenois du côté de Sézanne
PhotoPhotoPhotoPhotoPhoto
26/11/2017
10 Photos - View album
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Solutions to a small kids puzzle
How to solve the following kid puzzle by using only digits from 1 to 9 exactly one time : With the following code, I found 20 solutions if we take into account operators priority, 119 without.
Add a comment...

Post has attachment
Parhélie en Savoie... Plus d'infos là : http://fr.wikipedia.org/wiki/Parh%C3%A9lie
PhotoPhotoPhotoPhotoPhoto
2015-02-18
6 Photos - View album
Add a comment...

Post has attachment
Quick hack to automatically ip geoloc people who tried to get access to your server (using SSH)
Which gives this kind of output : ----------------------------- -- SSH illegal access attempts
GeoLoc(211.100.70.54,China,,)
GeoLoc(123.124.153.95,China,Beijing Shi,Beijing)
GeoLoc(218.201.73.58,China,Chongqing Shi,Chongqing)
GeoLoc(202.103.225.230,China,Gu...
Add a comment...

Post has attachment
serial versus parallel isPrime function, parallelization is not always interesting...
Parallel implementation of isPrime function based on promise and futures generates sometime too much overhead in comparison to the simple one. In fact it is really faster with prime number... but with not prime numbers it won't be always the case. So how to...
Add a comment...

Post has attachment

Post has attachment
Primes computation : From home made akka actors based solution to akka-stream
Available on github, Primes is a library dedicated to primes number computation, it is fully generic and can work with various numeric types (Int, Long, BigInt for example). This library generates CheckedValue instances which contains the just tested numeri...
Add a comment...

Post has attachment
scala & drools : project skelon updated
Scala & drools project skeleton updated with latest release of Drools (6.1), more features added (logging, test cases wired, drl errors catched up), and rules clean up. Some advices coming from experiences with big scala drools projects (hundreds of rules) ...
Add a comment...

Post has attachment
Using Stream to simplify execution alternatives...
First thing to remember before using Stream to simplify execution alternatives : Stream(...) will evaluate all its arguments before the stream is created, but if you use the #:: notation, only the first one will be evaluated at stream creation. Now using th...
Add a comment...
Wait while more posts are being loaded