Knowledgebase

The Knowlege base arranges tips and userful informations scattered on the web.
For more information, take a look to the introduction

Finding the good one: mithril

I have just read this insightful statement on this blog article about congitive load in Javascript jQuery is undoubtedly useful when dealing with browser quirks, but once an application grows over a few thousand lines of code, unstructured jQuery code simply becomes too difficult to maintain, and you start needing the discipline of a framework …

Finding the good one: mithril Read More »

dos2unix for poor basic unix

Do you have cygwin base install right? So no dos2unix…you can convert a windows file to unix format with a small tr command like

[bash] awk ‘{ sub("\r$", ""); print }’ winfile.txt > unixfile.txt awk ‘sub("$", "\r")’ unixfile.txt > winfile.txt [/bash] See also the bash secret power addendum.

ORA-01461: can bind a LONG value only for insert into a LONG column

Okey, you know Oracle. A very good database, a very old database, a very solid rock. Not famous for its error messages. I have already stumbled upon a misleading error on the old rock. This error anyway is incredible. If you try to push a very long text in a varchar2, you can end up with …

ORA-01461: can bind a LONG value only for insert into a LONG column Read More »

Get rid of SVN under Windows

Another subversion repository Wellcome in 2002 subversion users! Some very old and stable customers has just discovered Subversion. Bad luck: a lot of cool  open source software are on git already! You can leave them with the old-as-your-grandpa subversion system, but you can develop with git in your local directory… Migrating from SVN to git under …

Get rid of SVN under Windows Read More »

RaspberryPi 2: The perfect box for your backpack

After my two children grow a little, I have some spare time to play with RaspberryPi. I have bought a Raspberry Pi 2 Model B, a very neat and compact machine with 1GB of RAM, and a quad-core ARM chip on it. I was looking for an easy-to-carry unix box, and I was wrong: raspberry …

RaspberryPi 2: The perfect box for your backpack Read More »

Erlang: a lesson to learn…again!

Erlang is a great language. [2019-UPDATE] Erlang 22 is OUT, so I wanna to come to the party! On April 2015, Erlang father’s Joe Armstrong give us a very interesting lesson I want to tell about. There was a long thread titled “Erlang and Akka, The Sequel” on the erlang mailing list, reasoning about the need …

Erlang: a lesson to learn…again! Read More »

Arduino Stereo sid

Arudino StereoSID emulates the SID sound chip of the famous Commodore 64. It is based on the Atmega8 MOS6581 SID Emulator from Christoph Haberer. Library conversion and memory optimization by Mario Patino. Stereo Effect by Giovanni Giorgi MOS6581 SID Emulator Arduino Library with stereo capabilityhttps://github.com/daitangio/sid-arduino-lib1 forks.13 stars.1 open issues.Recent commits: Merge pull request #3 from …

Arduino Stereo sid Read More »

Arduino programmazione avanzata: makefile!

L’Arduino IDE è uno strumento stupendo se non siete sviluppatori software professionisti, perché fornisce un ambiente molto semplice per sviluppare velocemente sketch e progetti Arduino. Se però siete degli incalliti programmatori C++, vorrete qualcosa di più potente, che vi consenta per es di abiliare le funzionalità C++11 del gcc-4.8.x che viene fornito con la tool …

Arduino programmazione avanzata: makefile! Read More »