Refactoring - Code written by others

As you might have noticed from my recent posts, I’ve just recently jumped from one platform to another. And my current project is a bit of a legacy thing. A lot of people worked on it previously and those who did weren’t necessarily experts in the technology that they used when they initially developed it. They did a lot of hacky things, to get things going. But such hacks are good for getting a product moving, but not really good for maintaining them. And now that I’m having to implement changes to them, I realized how hard they have made this for me. ...

April 21, 2014 · 3 min · 472 words

Perl Catalyst - VBox Network Configuration on Ubuntu

In my previous post regarding PerlCatalyst tutorial setup I mentioned about setting up a virtual machine inside a virtual machine. I didn’t provide you with much information regarding how I did it because all the tutorials related to that is already available online. Pasting the links below: Catalyst::Manual::Tutorial::01_Intro But I had a serious problem with my virtual box inside a virtual box. Not so serious actually, just that it stopped me from proceeding ahead because of my ignorance of network configuration. The tutorial says that after downloading the virtual machine for the tutorial and setting it up as mentioned in the website, I could start using it as a server and log into it using ssh from my host computer. But for some reason the VM (virtual machine) provided by Catalyst just had a loopback network configuration. It wouldn’t show me a proper ip address to which I could connect to. And hence I had no way of connecting to this new tutorial virtual machine that I started from within an Ubuntu Virtual machine. I played around with the network configuration of VBox for a couple of hours trying out the different settings provided: ...

February 9, 2014 · 6 min · 1112 words

Perl Catalyst Tutorial needs us to download a virtual machine

I was trying to explore more about how and where Perl is used on the web. I figured out that there are a lot of web frameworks that are based on Perl. Catalyst seems to be a nice MVC framework that is really popular. I thought I’d take some time off to learn more about it. And I downloaded all the necessary packages and modules and then went on to check out the tutorial which is posted here: Catalyst Tutorial. I am already using Ubuntu on a virtual machine. My laptop came pre-loaded with Windows 8. And I’ve upgraded it to Windows 8.1. I always wanted to own a Linux laptop. But thinking about the lack of availability of games, I chose Windows over Linux. But I still can’t avoid using Linux as I always use it at work. Though recently I made a move to a windows based development team, which still has some code on non-windows based boxes. ...

February 9, 2014 · 2 min · 305 words

emacs - Why do I use it?

Over the past few years, the only text editor I’ve been using on Linux is emacs. Not because I wanted to. But after I joined the firm that I currently work for, I was trained in emacs. And I found it difficult to use initially. But then I decided that if every one else in the firm could use it and become an expert, then so can I. So I spend some time with the built-in emacs tutorial and I just learned it really quick. ...

February 9, 2014 · 8 min · 1608 words

Perl module installation - Ubuntu

Ever wondered how to install a Perl module from CPAN: sudo perl -MCPAN -e 'install ModuleName'

February 5, 2014 · 1 min · 16 words

Perl - Modules and path on disk

I don’t know if you have ever wondered where a module that you have been using is installed. Working in a corporate with multiple operating systems and having to maintain data update systems on multiple platforms that run on Perl based scripts, you might have to make sure that the CPAN modules you use are of the same versions, to keep your code portable. So recently I ran across one of these problems and came up with some interesting solutions as suggested by my colleague. I didn’t understand what I was doing at the time. So I took a break and tried to understand how I actually got to know what it was. ...

February 2, 2014 · 10 min · 2123 words

GNU Screen - Dynamic Window Titles, etc - tmux after this

So in one of my previous posts I told you about terminal multiplexing and also mentioned how cool it was. Now is the time to introduce you to GNU Screen. The wikipedia page is a good introduction already. But I should talk about it from my point of view, about how I use it. To be honest, if I knew of the abilities of tmux at the time I got to know about screen, I would have just started using tmux. It isn’t too hard to switch though. It would just take a day or two of getting used to the new short cuts. Or you could go ahead and manually configure your shortcuts to keep you happy. ...

February 2, 2014 · 7 min · 1451 words

BASH - keymap and binding

Hello there folks! I have been using [BASH](http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) for quite a long time. Yet I feel like there is a lot that I don’t know. The irony is that I am doing the BASH and Linux Basics training for new hires at my firm. I am not that bad, you see. It is just that there is so much to know. And I am never happy with what I know. ...

January 26, 2014 · 9 min · 1797 words · eakangk

GNU Screen - Introduction to terminal multiplexing

I thought everyone knew it. But very few actually do. Especially young software engineers. Probably everyone uses a GUI today and don’t interact much with the terminal. In fact many of the new hires at my firm have only heard of the term multiplexer, but never really bothered to use one. So I thought I’d just write a bit about it. I used to be normal putty user till 2011 (which is a shame). Then my friend introduced me to screen. At first I thought “OMG! What a mess! I would have to remember so many commands!”. But in less than a month I was a big fan of screen and had learned a lot more than necessary information about it. When you work in a company that gives you laptops as your primary workstation, your putty session dies off when you dock your laptop off or go to the next floor. So screen helped me maintain my session and made me less worried about saving work on the terminal. And it is so convenient, when I have long running tests or scripts, I just don’t bother waiting, switch to another window and keep working. ...

January 22, 2014 · 3 min · 522 words

Windows 8 and Windows 8.1 shortcuts

I was playing around with Windows 8.1 on my computer and I figured out there are some cool shortcuts maybe you haven’t known. Did you know that the icons in your task bar starting after the start button on the left bottom corner of your screen are numbered from 1 - 9. + 1 - opens the application or whatever your 1st icon after the start menu + 2 & and so on. Does the same. + ShiftKey + [n] - opens up another instance of whatever that icon points to. Now if that is not clear, I hope the following image kind of helps understand that. ...

December 23, 2013 · 1 min · 111 words