Skip to content


Page 39 of 49

Search exact string in a file on Windows

June 6, 2014Category: IT
The other day I found a file with a peculiar format and I needed to find it again. There are two problems I've encountered: Size: It's one of 20,000,000 XML files Search: I need to find a file containing a string "xocs:doi", which is not interpreted as a single word (due to the colon character, of…

Monument Valley

May 28, 2014Category: Random
Here's a catchy puzzle game. Love the perspective visual tricks and the Escher stuff! :)

Root a LG G2 on OSX

May 19, 2014Category: IT
I've got a LG G2 the other day to replace my old Galaxy Nexus (RIP). I've seen a lot of info about benefits of having different ROMs like Cyanogen, and I've decided to have a go. However, in order to do it, I needed to root the phone... on OSX. Since all tutorials show the windows install, here are… APIs

May 15, 2014Category: Software
Multipool is a multi-coin mining pool, capable of dynamically switching between currencies, to maximise the profitability. They offer an API which allows nice access to their data. Unfortunately, I've found that it's quite difficult to find what's what, so I've decided to document it. Below you'll…

Insert in PostgreSQL in (Almost) Constant Time

May 15, 2014Category: Software
One of the things I did was to write a script to insert records in a PostgreSQL database. The records have with a quite simple structure: id - char(20) content - XML field aside - XML field I was working with a sample of 10,000 entries out of 40 million and the script went through several…

PostgreSQL: Call a Stored Procedure for Every Row

May 13, 2014Category: Software
I guess that newbies in PostgreSQL like me have first question when they create a store procedure: How do I call it? The answer is simple; you just execute Then, usually immediately the second question pops up: I wrote a procedure which I need to call for each row in a table. How do I do that? The…

Formless Step in FormWizard

May 7, 2014Category: Software
Sometimes you'd need to show a purely informational page as part of a FormWizard. As far as I could see, there are two solutions to the problem: If the info is something like a summary, you have it available in the "success" page (the one after the wizard is finished) Alternatively, you can make it…

Create Data Once in a FormWizard

May 6, 2014Category: Software
At one of the sites I'm building I need to walk users through a registration process: Select a supported tool Generate an ID Create a configuration based on the previous two steps To do this, I chose to use a FormWizard with three steps, one for each of the above. The problem then becomes to…

Drawing QR-Code on Browser in Javascript

May 2, 2014Category: Software
In my quest to make the pages of one site a bit more mobile-friendly, I've got the idea to provide a QR-Code for an unique identifier generated for users. This is part of a wizard and the end-product is: QR Code in JavaScript To reach this outcome, I've started by looking for a QR javascript snippet…

Copy Text to Clipboard in HTML Page using JavaScript

May 1, 2014Category: Software
I've got a problem on one of my sites: I have a unique identifier displayed on one page, which I need to make it easy After looking online, I've found three approaches using only JS. Clipboard.js Clipboard.js is a new (September 2015) approach which uses only JS to copy the text transparently…

All tags