Visualizing Git diffs in Meld.

Here’s a quick way of configuring your (Linux-based) Git installation to use the excellent Meld program by default for displaying/editing the outputs of the git diff and git merge commands (e.g. git diff «filename»). Install Meld …if you haven’t already (note that we assume Git to be present): # on Debian-based distros (ymmv) sudo apt-get install meld Viewing/editing file diffs via Meld Configure Git to use Meld as the default

Continue reading

Luca

Again, I have to break the tradition to only post programming-related articles. This is because on the September 22nd 2012, this guy said hello. I know I was a bit late in letting him say say “Hi!” on the web too, but daddy’s been really busy and he forgot :(. But have no fear sonny-boy, here’s your shot…

Continue reading

Quickly filtering large lists of texts.

Recently, I had to make a mock-up of a filtering function (something I need for a project I work on) so I can show-case it around. And since this mock-up seems to impress some people, I decided to share this function with everybody so others may enjoy the “loot” :). Briefing The function (i.e. filter()) basically receives a query, a large list of text items and (optionally) some options. It

Continue reading

JS classes for the masses.

Following on an older post of mine, I decided to write a new article about an(other) implementation of OOP Classes in JavaScript. This is something that brings a lot of value from very few lines of code and I want to share it with everyone and see how it can be improved. First let’s see the code (you should check here for the latest version) and then I’ll try and

Continue reading

Loomiere 2.0.1-beta finally out!

All right! I finally got around to releasing this code to the public. I won’t say much now (since I’m tired) but I will say that this software has been functioning in production environment for over 1 year and a half serving all the video content available on the romanian website http://peteava.ro (about 800 TB of data each month out of 14 servers). Some (old) statistics showing it’s power can be found here.

Continue reading

Lua-TTyrant: a TokyoTyrant binding for Lua.

Some time ago I started a small project to implement a C-to-Lua binding of the TokyoTyrant library, called “lua-ttyrant“. A few days ago, while working with a script that was actually using it, I decided to polish it up, finish it and eventually submit it to be included in the LuaRocks repositories. Given the fact that the “rock” was just accepted by the LuaRocks team, I thought a new post

Continue reading

A simple(r) approach for class-based OOP in JavaScript.

Like others before me, I found JavaScript’s prototype-based OOP support – while very powerful – quite cumbersome in some situations where I needed a certain structure or hierarchy of objects, situations in which one quickly comes to the conclusion that the best answer would be the concept of a Class. However, while I am well aware that the web is filled with various implementations of classical (i.e. class-based) object orientation

Continue reading

Command-line option parser in JavaScript.

Here’s a small but very effective command-line option parser written in JavaScript (uses NodeJs). You can get the up-to-date source code at http://gist.github.com/982499. I wrote this because I needed it for a project and I did not think it was worth it to install some npm package just for this. The comment should explain most things you will need but ask me if you don’t understand something. Note that this

Continue reading

Anastasia

My blog is about programming, that’s a fact and while I never broke this tradition so far, today I feel like making an exception. Why, you ask? For her: mademoiselle… Anastasia. 😀 She was born on the 5th of January, 2011 and she really wanted to say “Hi!” on daddy’s blog. Who am I to say no to such a gorgeous girl. For more pictures go here. Enjoy! (I know

Continue reading

“Loomiere 2.0 teaser” reloaded

UPDATE: http://vpalos.com/1165/loomiere-2-0-1-beta-finally-out/ «Update… Today this machine reached 6500+ active concurrent connections for a total traffic of 2841.19 Mbps (2778.1 output + 63.09 input) while the SSD’s were still below 20% load. Now that’s what I call serious FUN! 😀 Here are some pictures… …end!» Since my last post about describing the performance of Loomiere in production, quite a few things have happened. I tested a lot and found many things I

Continue reading