Just Tweet!

Have you ever wanted to just tweet something and not get into twitter and get lost in the endless tweets there are to look at. I have. I have always thought that I could only do that with some widget on my phone or some add-on in the browser. But just recently did it strike me, when ever I want to share an article from somewhere on the internet, and it has a tweet button on it, what opens is a simple tweet dialog. This made me realize that it should be possible to just post a tweet and not get lost in twitter’s home page. There is an api which all these widgets are connecting to.

A little search on duckduckgo and I end up with this link.


A link that opens a dialog that allows you to just tweet. Bookmark this on your browser, give it a name to be able to easily find it, and when you want to tweet, type the name on the address bar directly, go there, send your tweet!. But yes, you should be logged in to twitter of course, so it only works on personal systems, but well, so do those other widgets and tools.


Renaming Files – An Example With Numbers – 1 to 01

Made this post for personal reference. If it helps you, great!

In a lot of cases, might have files that are named 1-something 2-something and so on. But most often we need them to be in some standard format such as 01-something or 001. This would list them properly on the command line.

On linux systems we would use the rename command along with a perl regular expression.

rename 's/^(\d)-/0$1-/' *.wav

Let me explain the statement above,

  • The stuff in quotes is the regular expression itself.
  • The format is like this, ‘substitute/what ever is matched here/with this/’
  • *.wav – list of files i was trying to rename
  • \d – match one digit
  • ^ – match at the beginning of the filename
  • $1 will just place what ever is matched in that place
  • 0 – because we need zeros in front
  • hyphen – because my file was named like this 1-something.wav adding hyphen would allow me to trap the one that is in between.


Useful Keys

If you had asked me ten years ago, whether I find the keys we are going to talk about in this post any useful, I would have said NO. But ironically, I use them quite a lot these days and I cannot live without them as well.

Home and End Keys

If you program or do document editing a lot you will understand the importance of Home and End. There is no quicker way to get to the start and end of a line.

Ctrl + (Shift) + Left/Right Arrow

Ctrl + the arrow keys, can be used to move over words rather than characters. Can be really useful for programming and document editing. I cannot live without this. Just makes navigation faster and easier.

Using Shift along with this combination helps you select words rather than selecting characters as is the case with Shift + Arrow Keys

Page Up/Down

Again, for people who handle many lines of code on text editors and huge documents, there are no better friends than Page Up/Down. Scrolling can be the most annoying thing sometimes on the mouse and these keys work like a charm in these situations.

F2 Key

F2 is one of those keys you cannot live without whether you are browsing files in a file explorer or working in an excel. F2 can be used to rename a file or edit a cell swiftly. It is very handy.

Ctrl + Shift + T

This combination is extremely useful on browsers. They reopen closed tabs. The function may prompt you to ask if this is really that useful, but once you start managing tabs in the order of 10 to 15 or more, you will start realizing the need for it.


Those would be my top five. Of course the obvious ones like Ctrl + S for save; Alt + Tab for window switching; Super + L for locking the pc and just the Super key for entering into the search menu on Ubuntu are really important too. There are a lot of shortcuts that pertain to specific software and are really useful, but I wanted this list to be as generic as possible.


Stop Sound – Matlab

clear sound will stop a sound that is playing on matlab.

The sound command on Matlab (sound(some_variable,sampling_rate)) plays a sound based on the values in a variable and a sampling rate. But it almost seems like there is no way to stop it. You can, though, if you clear all the variables by typing in clear all. But that can be problematic as it will wipe out all the variables you are working with. The best thing to do instead, is to type in clear sound.

Listing absolute paths with `ls`

Normally when you list the files in your directory/sub-directory with the ls command you would get the paths to those files with respect to the current directory.

But what if you wanted to save this list and you wanted the absolute paths rather than the relative paths. Well it doesn’t strike you first but then when you know it, its like, “Oh its that obvious!”

So you do

ls -d $PWD/what_ever_you_are_trying_to_list

The $PWD gets filled with the path to the current directory.

ls work/*.md

might have yielded


ls -d $PWD/work/*.md

would yield something like


Crossfade – The Smooth Operator

Do you have your crossfade on in your music player? If not, you should turn it on now. You are missing out some really good stuff.

Smooth Transitions from Song to Song. Crossfades create a really smooth transition from one song to another. That means that your brain also transitions much smoother, if you are sensitive to that sort of thing. Usually music producers add a crossfade between songs, themselves, in the mastering stage or during arrangement itself. But still, there are times when this maybe a good thing to have in your music player when you navigate to the next track maybe?.

Smooth Transitions between Pausing and Playing. Abrupt pause and playback can be annoying. You would understand what you were missing so far when you turn on Crossfade. When you pause and play a song without a crossfade, it can get glitchy as well.

But where this makes a huge difference is subconsciously in your brain. Have you tried suddenly halting from running? How did your body feel. So how do you stop running usually? If it was possible to go from 0 to 10 km/hr in an instant, would it be a pleasant experience? But that’s what happens in your brain when pause and play randomly without a crossfade on if you are actively listening to a song.

Easier to handle interruptions. A lot of us don’t like to be interrupted when we are listening to music. We soak ourself in the immense joy of tingling our basilar membranes with a spectrum of frequencies being activated in rhythmic fashion. That is a lot to turn off suddenly, to divert our attention to a pesky request from a friend asking for ten bucks, right? 😛

Well it can get a lot easier if you had your crossfade on. Trust me. It will definitely ease your irritation.

So, switch it on, and let me know how it went for you. 🙂