This post is only relevant to you if you use browserify
. For a good introduction to this powerful Javascript bundling tool, check this doc.
First of all, I'd like to take my hat off to James Hallyday and Peteris Krumins who have built such amazing tools as browserify
, testling
and …
I'm happy to introduce you with genealogic-d3, a Javascript visualization library to nicely display genealogy trees that I've been working on during the past 3 days.
I'm quite satisfied by the result. You'll find a live demo you can play with at https://chezsoi.org/lucas/genealogic-d3/skywalker.html
I …
Inspired by this tweeter post by Marcus Lagergren and the JS1K competition, here is a valid Javascript code snippet for you obfuscated code lovers:
ー=!+[]+!+[]+!+[]+!+[],ߺ=ー+ー,ǀ=ߺ+ߺ,ꓹ=!+[]+[],ǃ=!+[]+!+[]+!+[],ᚐ=ꓹ[+[]],ꓹ=ᚐ+ꓹ[ǃ]+(![]+[])[ǃ]+ᚐ,ᚐ=/,/[ꓹ]+[],ꓹ=ǀ+ߺ+!+[]+!+[],ꓹ=ᚐ[ǃ]+ᚐ …
This post aims to introduce a very useful tool to debug low-level issues in Python, how to enhance it and finally how to solve two annoying common problems.
1. Debugging Python with gdb
All the basics are there : https://wiki.python.org/moin/DebuggingWithGdb
Tl;dr :
gdb -p $(pgrep -f …
I've got many post ideas in the past two weeks, but none of them made it to the blog yet. While those scribbles are maturing, there is a short hack for the wonderful datepicker pluging for bootstrap.js.
Given a datepicker initialized on a $('#date-picker …
To illustrate my previous post and keep images at a reasonable size, I had to shrink down the top GIF from 14Mb to 3.2Mb.
Usually, online GIF converters will provide the ability to lower down the image dimensions. Another solution to reduce its size is to simply skip some …
I truly think Etherpad is an amazing piece of software. Not so much for its code base quality than for its extraordinary range of usages.
Now, while I'm still unsure if todo-lists are useful or a complete waste of energy, I'm convinced that keeping a developer logbook / diary / journal has …
Do you know the pv
command ? It's really nifty.
There are a few use cases:
echo "You can simulate on-screen typing just like in the movies" | pv -qL 10
# Show the incoming TCP packets rate:
tcpdump tcp -w - | pv -btr >/dev/null
# Show the maximum throughput between two machines:
# (provided …
Just relaying the information about this "ShellShock" vulnerability:
This seems to affect Apache, sshd
, DHCP clients and even potentially git
.
TL;DR here is how to check your Bash version
env x='() { echo Never called; }; echo YOUR BASH IS VULNERABLE …
I was asked the other day by my grand-mother in law to try to recover her photos from a diaporama video she created years ago.
The diaporama was made of a succession of photos, occupying the whole screen for a moment and then transitioning with various effects to the next …
I often find myself grep
-ing for information in system or application log files. And often, by combining pipes, I end up generating a flow of values that is sometimes difficult to interpret.
In this post I'll show you a quick-and-dirty but handy solution to get basic statistical quantities from …
As a tabletop RPG game master, whenever I need to imagine a universe background for a scenario, I need illustrations to picture myself the atmosphere, and get some inspiration. I usually simply surf the web from blog to blog, or spend some time on inspirational websites like DeviantArt, Tumblr, Unurth …