If you know Git, then you know very well its productivity benefits over other source code control like Subversion. If you work on a project that uses Git entirely, then good for you. However, some software projects are still using … Continue reading →| Alvin Abad Boldly Going Nowhere
If you use cryptsetup to encrypt your Linux root file system, the default setup requires console access to enter the password and boot up the system. If your system is remote or doesn’t have console access, you will need to find … Continue reading →| Alvin Abad Boldly Going Nowhere
I wrote a simple script that will display the history of CVS commits similar to the way Git or SVN do. You can download the script from Github: https://github.com/alvinabad/cvs-utils/blob/master/cvs-history.py Basic usage cvs-history.py [-b BRANCH] module or files For more options, … Continue reading →| Alvin Abad Boldly Going Nowhere
There is a builtin command in bash named getopts that can process command-line options of a shell script. It works pretty well except that it can only handle single-letter options like -a, -b, -c, etc. It cannot handle long option … Continue reading →| Alvin Abad Boldly Going Nowhere
This little beauty is a lot of fun. The Raspberry Pi Image linked from – http://www.raspberrypi.org/faqs For only $35, you can set up a small Linux server. I’ve documented the steps below on how to set it up. This assumes … Continue reading →| Alvin Abad Boldly Going Nowhere
EDITOR=nano I’m not sure why Debian and Ubuntu decided to make the EDITOR default to nano instead of vi. It is annoying whenever I run the visudo command the sudoers file gets opened up by nano instead of vi. Isn’t it why … Continue reading →| Alvin Abad Boldly Going Nowhere
You can use LUKS to encrypt a partition of a disk drive or USB. If you store sensitive information in portable drives it’s more compelling than ever to protect them using encryption since they carry a high risk of getting … Continue reading →| Alvin Abad Boldly Going Nowhere
This morning, my Ubuntu laptop won’t boot up. My immediate reaction was shivers at the back of my neck and then down the shoulders. I don’t understand why it felt that way. It’s like one of those situations when you … Continue reading →| Alvin Abad Boldly Going Nowhere
OpenSocialDevApp or Google’s CodeRunner is a great tool for testing code snippets using OpenSocial API. It allows you to easily test code by cutting and pasting your JavaScript code into a textbox. You don’t need to load a gadget XML … Continue reading →| Alvin Abad Boldly Going Nowhere
In my previous blog post, I’ve shown how to use Firebug’s console object to log debug messages. I’ve also shown how to perform graceful degradation if the console object is not available like when using a non-Firefox browser or if … Continue reading →| Alvin Abad Boldly Going Nowhere
Thanks to Firebug, debugging JavaScript has never been easier. Firebug is an add-on to the FireFox browser. It has many wonderful features. One of my favorite is the console logger. This is where you can call the function console.log() in … Continue reading →| Alvin Abad Boldly Going Nowhere
If you are a fan of Twitter and also a Unix user who spends most of your waking hours on the command line, wouldn’t it be nice if you can send your Twitter update from the Unix command line? Twitter … Continue reading →| Alvin Abad Boldly Going Nowhere
Although administering WebSphere is best done using the Wsadmin API (with scripting languages like Jython or Jacl), there may be situations when this is not a good option. One example is when your application is already using Java and calling … Continue reading →| Alvin Abad Boldly Going Nowhere
In spite of the power of the XMLHttpRequest API, its usage is limited by the “same-origin” policy. What this means is that the hostname of the url you are sending the XMLHttpRequest cannot be different from the hostname of the … Continue reading →| Alvin Abad Boldly Going Nowhere
If you are the kind of programmer who works on multiple projects using different languages at the same time, I bet you sometimes can’t help mix things together and subconsciously expect that a method/function you commonly use in one language … Continue reading →| Alvin Abad Boldly Going Nowhere
If you already know JUnit or PyUnit, it shouldn’t take you more than ten minutes to learn how to use JsUnit. JsUnit is a Unit Testing Framework for Javascript. It is a JavaScript version of JUnit. Below are five easy … Continue reading →| Alvin Abad Boldly Going Nowhere
You can use the unittest module from Python to write unit testing for Websphere’s wsadmin Jython scripts. As of WASv61, this module comes shipped with the product so there is no need to refer externally to your CPython library. To … Continue reading →| Alvin Abad Boldly Going Nowhere
In spite of Google’s power, finding information about WebSphere is still a chore. I can’t really blame Google because IBM WebSphere documentation is huge. Until search results get better or I figure out how to find things faster on the … Continue reading →| Alvin Abad Boldly Going Nowhere
In Websphere Jython (as of WAS6.1), the administrative objects are not automatically accessible from imported modules, unlike when you call them from your main script. It is also not possible to im…| Alvin Abad Boldly Going Nowhere
If you want to use an ssh-key file whenever you run the ssh command, one convenient way to do this is to use the -i option. ssh -i ~/.ssh/thatuserkey.pem thatuser@myserver.com This is pretty neat. …| Alvin Abad Boldly Going Nowhere