Using computers for their original purpose.

Well, computers were invented to perform mundane tasks, so everyone who knows how to use a computer should know how do automate file and folder operations right?

This is your opportunity to pick up a few tricks that will give you a boost towards being the top-geek.

When I need to automate something, I usually run some scripts. These are small pieces of code written in some language which will automate the task for me.

Some common tools that I use, that enable me are,

  • Regex
  • Basic Python
  • Bash
  • Linux applications
  • Stackoverflow, Stackexchange sites, and in general, google.

Regex

Regex  stands for Regular Expressions. Have you ever ended up in a situation where you wanted to search for text which is in some complicated, but regular pattern?

Regex allows you to do so.  Its just amazing.

You want to try it out – Install any text editor that supports regex – My personal favourite – Sublime Text.

http://docs.sublimetext.info/en/latest/search_and_replace/search_and_replace_overview.html#regular-expressions

 

Python

Python is a powerful programming language, but its also extremely easy to learn. Its very difficult to find powerful technology without a steep learning curve, but this one does it very well.

Some of the automation that I have done with python are,

  • downloading of webpages and other resources from web, including mails
  • file and folder operations like renaming etc.
  • operations on date and time with powerful additional modules
  • automate and track key presses and mouse clicks
  • doing all of the above and more parallelly
  • work with images – resizing, converting colors etc.

Python by itself, comes with huge possibilities, but people have worked on their own ideas, which you can find and use. You can do this by using a tool called pip.

If you are a complete beginner to programming, you can learn python the easy way, over here,

https://learnpythonthehardway.org/

Bash

After having a look at python, you might feel that bash shell is the more difficult way of doing the same thing in python.

While that may be true, learning bash, allows you to understand the inner workings of linux, and will help you on your way to becoming a tech-guru

So just suck it up and learn bash. Or be the guy who said, “I dont need linux – I use <insert_language_here> in Windows” – and suffer the wrath of the linux gods when you finally realize that the whole world runs on linux.

Linux Applications

Sometimes what might take you and me hours to write – is already written, and ready to be used – for free.

Just make a quick search for “awesome command line apps“. You’ll find a ton of cool stuff.

Google and StackExchange

And my previous sentence is the real reason why you should know how to “search and learn” on the internet.

Coz tech people are too busy solving real problems, and are unable to write documentation for noobs like us.

But we have something better – question and answer platforms like stackexchange has more information than any book, website, video you’ll ever come across. The only difference is that its organizational structure is aimed at people searching for answers to a particular problem, and not for people looking to learn something new

So get moving, and start working on something. Try and download cat pictures from google images. Or youtube videos. Find out the most used word in this blog post or rank the words by their usage.

 

 

The concept of Joint-Probability

Probability

As a mathematical construct, probability is one of the few which feels intuitive. It’s not like Linear Algebra, which requires some imagination to think in n-dimensional spaces.

But… Add another word in front of it, and you get something that seems to make no sense.

Yup. I took a Probability and Random Processes course in my undergrad, and Joint-Probability was the most difficult concept to wrap my head around.

Joint-Probability

Simply put, joint probability defines the probability of simultaneous occurrence of two things.

Honestly, the best way to explain joint-probability is through an example.

The big bang theory, Season 5, Episode 5

5.png
Someone has to go with the telescope as a payload specialist, and guess who that someone is..
8.png
Mohammed Li

The genius Sheldon Cooper, has a simple logic behind his guess(maybe too simple).

He guessed Mohammed Li by using probability. He states that it is common knowledge that Mohammed is the most common first name, and Li is the most common last name.

Thus, combining the two, he got the most common… hey.. wait a second.. Mohammed Li is a almost impossible name. It is definitely not the most common name.

Why do people face difficulty with it then??

It’s now clear as to what Joint-Probability is and does.

The bigger question is, how is it that undergrad students don’t understand a simple concept like this.

Well, in my course, probability  was taught as a measure. From the set-theoretic definitions and axioms of probability.

Thus, Joint-Probability was introduced using the Joint CDF(Cumulative Distribution Function), and its derivative was the Joint Probability Density.

Thus, the math was conveyed, but the meaning was not.

 

I love The Big Bang Theory, and this post was not made with an intent to pin-point any negatives about the show.

What is sudo?

Sudo is Dangerous!

sudo is a command that people use a lot – without knowing what its for. But sudo is not to be trifled with – It can destroy your system in a multitude of ways.

For example, “sudo rm -rf  /*” tells your system to delete all files. And it will obediently do it.

The only way to protect yourself from getting into such situations is to understand what sudo is, so that you don’t use sudo needlessly.

sandwich.png
xkcd – Look it up, if you don’t know what it is

Continue reading