Browsing articles in "Code"

Why awk is better than cut

Monday, August 1st 2011, 12:45

I am currently working with some text files from which I have to extract some data. Generally, when you have to do this kind of work on a *nix machine, you use cut or awk. However, even for simple tasks cut is superseded by the mighty awk. Let’s look at the following examples which are
[Continue reading]

How to secure your SSH server from brute-force attacks

Friday, February 18th 2011, 20:13

There are a lot of tutorials online that will tell you how to secure your SSH server. Most of them will tell you not to allow the root account to login, to use only keys for authentication and possibly to change the port on which your server listens from 22 to any other. Although this
[Continue reading]

Java, HTTPS and REST web services using Apache CXF

Thursday, December 16th 2010, 23:39

Securing REST web services is a very debated topic on the Internet. Because REST represents an architecture, and not a protocol – like SOAP -, there aren’t any specifications dealing with security, leaving this aspect as a design decision for the software engineers / developers. Still, if you search the web to find out what
[Continue reading]

jQuery .click() and the double submit of a form

Tuesday, September 7th 2010, 14:21

jQuery is one of the greatest JavaScript frameworks with plenty of documentation for just about everything one can do with it. In my latest project I have used jQuery extensively for any UX aspect: form validations, dialogs, error messages, AJAX, UI, etc. A feature that I would really like to see implemented on all HTML
[Continue reading]

Gitosis and read-only Git repositories

Monday, July 26th 2010, 20:50

When I’ve started working with Git, besides using the quick how-to guides from the official site, I’ve also wanted to read a more detailed book about how this distributed VCS tool should be used in order to benefit from all of its functionalities. One of these books is Pro Git by Scott Chacon, from Apress.
[Continue reading]

A very simple JavaScript diff function

Tuesday, June 15th 2010, 15:14

I was faced today with the problem of getting the difference between two JavaScript arrays. After Googling a bit, I haven’t found anything to catch my attention and so I decided to write my own function. It’s not the most efficient way of doing the job and probably not the most elegant either, but it
[Continue reading]

Oracle TopLink, the ORA-00900 error and stored procedures

Monday, May 31st 2010, 12:11

I was introduced to Oracle’s TopLink ORM package during my second internship at Oracle. Although the API (because TopLink actually became the reference implementation for the JPA 2.0) seemed a bit overwhelming at first, I’ve managed to get a grasp of it quite fast, allowing me to finish the assigned projects in time. The familiarity
[Continue reading]

Automated cPanel backup

Friday, May 7th 2010, 03:07

A great man once said: Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it ;) While it works for him, for us pure mortals this trick doesn’t get the job done. That’s why we have to use backups. Protecting your data is
[Continue reading]

Put your latest tweet as Pidgin’s status on Ubuntu (Linux)

Tuesday, December 22nd 2009, 01:27

Twitter became a trend nowadays when almost everything important is being found out via this social-networking micro-blogging service. And now with Google’s real time search-results that includes tweets too, Twitter is recognised as a powerful platform by even the Internet’s giant. Since your (and mine too) online presence might include a few tweets a day,
[Continue reading]

Pages:12»

Projects that I support

Recent Comments

  • nope said:
    yeah that was my first thought too, but: mount: warning: seems to be mounted read-write. too bad, would have been just perfect. more»
  • Klaus Deiss said:
    Dear Radu, I tried it on Ubuntu 10.0.4.2 and 10.0.4.3 with different kernel versions (amd64 server 2.6.32 kernel). No... more»
  • scompo said:
    Nope.. Now it’s not working again.. This printer it’s a real pain in the butt.. The other hp printer I had... more»
  • Dmitrij said:
    Thank you Peter and Patrice. Could you please post the updated script? more»
  • hd_flash_pains said:
    didn’t work for me more»

Recent Tweets

Bear