Archive for 'Code'

Gitosis and read-only Git repositories

Posted on July 26th, 2010 at 20:50.

2

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

Posted on June 15th, 2010 at 15:14.

1

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

Posted on May 31st, 2010 at 12:11.

0

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

Posted on May 7th, 2010 at 3:07.

0

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)

Posted on December 22nd, 2009 at 1:27.

0

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

Python and Pidgin’s status on Ubuntu (Linux)

Posted on August 26th, 2009 at 18:01.

1

If you remember Fortune and Pidgin’s status on Ubuntu (Linux), Tudor has found a better solution to accomplish this using Python. I did argue with him a bit regarding the number of requests made (you can see that in the comments on his blog post) but finally I would agree that his solution was better [...]

Continue Reading

Configuring Eclipse for J2EE development

Posted on August 4th, 2009 at 12:01.

1

Starting to learn about Servlets and JSP from “Head First Servlets and JSP 2nd edition“, I have reached a level where just editing my files from gedit wouldn’t suffice, as typos began to generate frustrations on my side. Although this is the recommended way by the book authors to build your projects while learning, which [...]

Continue Reading

Resolving vertically flipped images from webcams in Ubuntu

Posted on July 31st, 2009 at 1:53.

40

UPDATE 2: I strongly recommend against using this patch any more and relaying on the solution provided by UPDATE 1. UPDATE 1: Please check the solution from here as it represents the correct approach for fixing this problem in Ubuntu (all releases). Also, the patch from this post doesn’t work for the kernel included in [...]

Continue Reading

Lazy programmers do…

Posted on July 30th, 2009 at 16:21.

3

Scripts to avoid clicking in three places once they start their computer: #!/bin/bash firefox mail.cotescu.com & thunderbird & pidgin & sleep 5s purple-remote "setstatus?status=available&message=http://radu.cotescu.com" exit 0 This starts those three programs in the background once I log in provided that I add this script in System – Preferences – Startup Applications in Ubuntu.

Continue Reading

Bugs

Posted on May 22nd, 2009 at 17:58.

0

Because all this week I have been a steady bug fixer (both at home and at work), this comic really rocks given the circumstances: via XCKD.com

Continue Reading

How to send null values in soapUI requests

Posted on May 16th, 2009 at 0:58.

0

soapUI is a pretty useful web service testing tool that can help you generate a multitude of tests like load testing, functional testing, data consistency testing and many more. I have started using it for real two days ago when I needed to test some SOAP web services for work. The main issue that kept [...]

Continue Reading

Bear