February 4, 2020

Long time, no blog

Six years.

So long since I did not post anything on my blog. Long time - sure, it is.

At times, time does not pass. And, at other times, you wonder how time simply flies by just like that with life keeping you completely occupied and not giving you enough time to do things like, for example, blogging. Or, it's just that you have not allowed the life to give that time to yourself as you prioritized other state of affairs. Or, lack of time management skills, you say? Meh!

Anyway, I will try to get back to blogging in a regular manner.

See you back very soon!

January 29, 2014

Freeplane: Mind mapping tool

To those who are not aware of Mind Mapping, it is a very interesting technique that promotes non-linear thinking and changes the way one thinks/organizes/presents. Google to understand more about this concept.

I started off with FreeMind, which is a free software available at http://freemind.sourceforge.net/wiki/index.php/Main_Page and can be used to develop mind maps. As is the case with many Open Source Software, it had a fork due to one of the core developers leaving the team. Result: Freeplane!

Apart from Freeplane having many more features, it is also more actively being developed compared to FreeMind, the latter of which is seeing very infrequent updates.

Freeplane is available for download at http://freeplane.sourceforge.net.

On a side note, I was shocked to learn that this technique is being taught to children nowadays at a level as early as elementary school education!

January 23, 2014

CoLT: Copy hyperlink text/details

CoLT is a very useful Firefox add-on to help you copy the text and the actual URL of a hyperlink in a variety of ways. Let me just put in the add-on’s brief straight from its homepage:

CoLT (short for "Copy Link Text") makes it easy to copy either a link's text, or both the link text and its URL in a format you specify. This non-invasive extension simply appears as context menu items when you right-click a link. Fully customizable!

The add-on can be installed from https://addons.mozilla.org/en-US/firefox/addon/colt/.

January 18, 2014

Merge, Split and Collate PDFs

Ever felt the need to take merge multiple PDF documents? How about taking just a page or two from a PDF document? Or how about updating the PDF document’s metadata? If yes or if you now want this functionality, then this Techbit is for you!

PDFTK Builder is the tool that can help you all that was mentioned in the above paragraph and much more. You could password protect a PDF document, you could add watermarks to the pages, you could rotate the PDF pages etc.

PDFTK Builder can be downloaded from http://angusj.com/pdftkb/#pdftkbuilder.


There is also a PortableApps compatible version available at http://portableapps.com/apps/office/pdftk_builder_portable. If you're unaware of what PortableApps is, check out http://spatnala.blogspot.com/2013/12/are-your-applications-portable.html.

January 11, 2014

lsof: A very useful Unix command to list the open files

lsof – shortened form for “list open files” – is the command that can be used to report the list of open files on Unix-based systems. There are a number of options available that can be used to control how the command behaves: list all the open files on a system, find out which processes and users have a file opened, see what files does a user or program have open etc.

Just to draw parallel, this Unix command is equivalent to Windows’ Process Explorer that was previously shared as a Techbit.

http://www.catonmat.net/blog/unix-utilities-lsof/ has given lot more details on the various usages of the command in a very user friendly way.

January 7, 2014

How to delete blank or certain lines in a text file?

Notepad++ is the text editor used for these tasks. Refer to this Techbit in case you're not aware of it.

How to delete blank lines?

Under the menu path “TextFX” >> “TextFX Edit”, there exists an option “Delete Blank Lines” to serve this purpose. A similar option to achieve this is present under “Edit” >> “Line Operations” as well.

How to delete certain lines i.e. lines having a specific text pattern?
  1. Search i.e. Ctrl+f
  2. Select the “Mark” tab
  3. Put in the pattern you want to search for
  4. Tick the checkbox of “Bookmark line”
  5. Select “Mark All”
  6. Select the menu path “Search” >> “Bookmark” >> “Remove Bookmarked Lines”

January 3, 2014

Unix command: screen

Consider this scenario: you’re connected to a remote Unix-based server (like Solaris or Linux); you invoke a program; the process starts running; while the process is still running and has not yet completed its execution, you lose the network; the process dies! The program you invoked could be anything like an installer which is just halfway through. How do you make sure you do not end up in b-e-a-utiful situations like this?

One way is to use nohup command that detaches the process from the terminal and makes the process ignore the HUP/SIGHUP signal (which is sent when the terminal session closes and the process usually exits as part of signal handling). This explains the origin of the command name too: no HUP ~ no hup ~ nohup. Other ways to detach include setting shell specific process control options like disown. However, this mechanism only detaches the process i.e. once detached, it cannot be attached to a terminal. This does not also handle processes that are interactive i.e. which expect input from the user where the ability to pause/resume or plug back into the session is required.

screen is a wonderful command that addresses all the aforementioned shortfalls and provides many more new features in the context of remote session management capabilities. It can be used to attach & detach sessions, share a session with another user, split the window horizontally/vertically and so on. You can create as many sessions as you want and manage as per your wish.

What the command essentially does underneath is that the process is detached from the connected terminal and rather managed by the screen process. Note that screen may not be available by default on your Unix system and may need to be installed explicitly.

Links

Good tutorial: http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/
Short introduction: http://www.pixelbeat.org/lkdb/screen.html
Official Website: http://www.gnu.org/software/screen/