June 2010
1 post
Is that "jugard"-ing?
PC graphics card blew up. Grrr.Took 3 broken graphics cards, and exchanged few capacitors (putting a not working electric soldering iron into cooking gas fire). I did never really expected this to work (only some unsound secret hope!). Booted the PC, it just works. Wow. Still atheist though. Posted via email from Ludovic’s posterous | Comment »
December 2009
1 post
Compiling libpcap + flex + bison locally
To compile flex, bison and libpcap in a local folder, need to tweak a bit the build of libpcap:
> diff runlex.sh.orig runlex.sh 70c70 < if [ “${LEX}” = flex ] —- > if [ `basename “${LEX}”` = flex ]
Then:
V_LEX=”/my/local/folder/bin/flex -Ppcap_” \ V_YACC=”/my/local/folder/bin/bison -y -p pcap_” \ ./configure...
June 2009
1 post
Heaven and Hell
Posted via email from Ludovic’s posterous | Comment »
February 2009
3 posts
hellotxting :)
Netezza muti-proc system give nearly always different ordering on the same query/same data (no ‘order by’ in query of course!). Even partitioned table in Oracle seems to give always same ordering.
November 2008
2 posts
Haskell tutorial for concurrency →
Great tutorial of all (lot) things about concurrency.
Written in Haskell, this is a good read even for non Haskell programmer. That’s a long time I’m saying I should digg into data paralell haskell … there are great example in the last part of this article.
join on command line
join -t’,’ -1 2 -2 1 -o “1.1 0 2.2” -a 1 f1 f2
This create a join of 2 CSV files f1 and f2, using column 2 as key for f1 and column 1 for f2, printing column 1 fo f1 and the key and column 2 of f2, and ensuring all lines of f1 are in output (left outer join).
October 2008
1 post
Flash, disk or RAM? →
August 2008
1 post
blackhole
This is not a dead pixel on my LCD screen … this is a dead mosquito inside my screen :(
July 2008
9 posts
VB callback from C++ library
Spent few hours learning to call C++ from VB and VB from C++. It’s relatively easy (type convertion is ok, just be carefull that calling conventions is not the same in IDE (require std call conventions) and executable (both C and std are ok)).
Biggest problem is that a thread not managed by VB cannot call a VB callback (it’s here:http://support.microsoft.com/kb/q198607), so I will...
My new homepage: Cuil →
cronjob on every 3rd Friday of the month
[[ `date “+%u”` == 5 && $(( `date “+%d”` / 7 )) == 2 ]] && do_my_job.sh
Update: this is NOT the 3rd Friday, this is the Friday of the 3rd week! If you wanna 3rd Friday, simply check date +%u == 5 and 3*7 < date +%d < 4*7
High-order Perl
Reading “High-order Perl” … was hoping to reconciliate with the language … doen’t work as expected :(
http://books.google.com.sg/books?id=4_q8JJWNaTsC
“The day Microsoft makes something that doesn’t suck is probably the...
Neo FreeRunner (OpenMoko-based mobile phone) →
Purely Functional Data Structure
I thought this book will be tough and a bit boring … I was wrong: it is tough, but quite entertaining!
Each chapter describes shortly (clearly!) a data-structure or a technic, and end with few exercices … very interesting! (at least the first few chapters I’ve read). I will take some time to read and solve the exercices … arg, precious time is always vanishing!
Expert F#
I did pay SGD110 to buy Expert F# … more than worthy!
It’s really a very very good technical book about F# on course but also about programming technics in general.
I read only first few chapters for now … but I expect a *lot* of following chapters assuming that quality stay constant!
Thanks to the authors!
Emerging ideas ... why?
Recently, I have been reading/listening to presentations of SimpleDB, CouchDB and LiveMesh (and have seen some blog post about related projects in java, ruby and others).
Looks like there is some kind of common global idea of a distributed storage (I would say that Mesh is more than DB … much more … but I dont care in this post).
Yet the best explanation I got is from CouchDB...
June 2008
3 posts
Google archive ;)
At the time of writing, the wonderful blog post to explain how to make FSharp 1.9.2.17 work on mono is not available: http://laurent.le-brun.eu/site/index.php/2008/05/24/36-how-to-use-fsharp-1-9-4-17-on-mono
So I went to google to look into the cached … unfortunately, google did not refer this page!
Thus I used Google Reader which had this page! Thanks.
Now I have FSharp again on my linux...
Discussion about twoorl and MI architectures →
Jan on relational DB and new DB paradigm →
May 2008
8 posts
Monad in Python →
Starting with example of Python list comprehension, this is a very good article on usefulness of Monad. There is not a lot on ‘how to do’ monad in python but the main thing is presented in a very small blog post. Very nice
Book: Pro LINQ
With a background of python/ruby and functional programming, I was a bit disapointed to not be impress by LINQ library (even if subtitle says “ground-breaking new technology”). But it’s always nice to see lot of principles integrated in one lib/language.
Steve Vinoski on "RPC is bad" →
Quite interesting: RPC is bad because remote call cannot be seen as local call (even with all the heavy infrastructure provided by CORBA or alike) Erlang has good design by showing to developer this complexity (timeout, failure …)
google video: about ant colonies behaviours →
Nice video about principles of ant colonies behaviours. This is a great work of ethology! I would love to try to embed some ideas (behaviour rules) in simulation.
couchDB
At least I took time to get more info about couchDB: http://mwrc2008.confreaks.com/10lehnardt.html Finally understood why some people say relational DB haven’t been design to support the kind of concurrent load they are use with. First I heard Jan talking … I like its “simple” style! And btw, I also love the so simple architecture picture of couchDB on the Apache...
immediate nonjudgmental feedback” as one of the main advantages of using...
– http://r7.sharedcopy.com/5qouog9#shcp0
Compiling erlang source distrib
Just install a fresh Ubuntu Hardy Heron. The configure script of erlang install catch all dependencies … but one: the M4 preprocessor is not installed by default on Ubuntu!!! And you need to run ‘make clean’ after the message ‘m4 not found’ else some files may be generated but empty.
April 2008
12 posts
Polymorphic variants ... or tagged tuples :) →
I was nearly decided to ask on ocaml list when is it recommended to use polymorphic variant instead of variants … but this blog post just came handy at the right time! :) Need to read more ocaml code to find some patterns where programmers like polymorphique variants. By the way, this intro may looks complicated … although it isn’t! At first, we can compare those polyvariants...
Google video: thinking beyond borders →
1 year scholarship: 6 months in 4 countries, working for ONG; 6 months to build bases of economic/political science. Delightfull to see such a project! thanks!
Ambition project
CK often told me that I too often assimilate different things to be the same kind of thing … but yet I still need to understand the common parts to be able to see where they may differ. This time, I’m comparing LINQ and Ambition … they have a lot in common! But Ambition enable to write plugin for any backend :)
svn ... very fast in fact!
I hit a “svn revert” command in bash history … by mistake. I thought git is damn fast, but sometimes svn is already too fast :)
LINQ and F.P.
My current reading list includes the book Pro LINQ. While reading the second chapter I was thinking that all the “powerful features” (lambda, extension methods, anonymous types) introduced in C# 3.0 (mainly to support LINQ) are kind of well known in funtional programming world. LINQ was ringing bells of deja-vu. All this query processing was a bit like (lazy) list manipulation, but a...
Wrong tools ;)
My Tumblr is un-readable! In fact I was mainly using Tumblr to do something that FriendFeed do better. Now will use Tumblr for real micro-blogging.
Tired of "You old stupid guy! 80 columns is not...
No, no and no! 80 columns is not a limitation of old console/terminal! It’s a well-thought design following typographic’s rules! … I should create a website: RantACoder! ;)
6 months!
Today Linh is 6 months old … we have seen fireworks from our window! thanks :))
ERTS documentation →
Since R12, ERTS doc embed formats and protocols spec for distributed Erlang! nice!
feeling good after ror sg guru talk … at php meetup ;)
Outsourcing crawler, and running open source... →
Bayesian Optimisation Algorithm for Nurse... →
Bayesian network to solve linear programming problems (eg. nurse scheduling).