Sunday, 30th September, 2018

Sleep like a baby

Sound sleep is one of the best things you can do for your health & mental peace.

My goto solution in case of any difficult situation is sleeping. Fought with someone? Don’t think too much, just go to sleep. You’ll forget more about the incident than you’ll remember after you wake up.

Struck at a programming task? Sleep. Ways to solve the issue will automatically come to your brain after.

Trying to decide something, confused & need to arrive at a conclusion? Sleep over it, you’ll be able to take a better decision after you wake up.

I have lost friends, money, my thinness, and probably some more things, but one thing I have not lost is my ability to sleep like a new born baby, anytime of the day or night, for long hours at a stretch.

At my age when people are stressing and loosing their sleep over future goals, how to amass more wealth, how to show it off to others, I sleep like a tiny jelly fish meditating in the bottom of the deep dark ocean.

Need help with your sleep?

Try these things to sleep better. But if you have trouble falling asleep naturally, you can even force yourself to sleep! How?

Lie down, dim or turn off lights, close your eyes, count backwards from 100 to 0 slowly. That simple! It works, try it. I dare you to reach zero, I have never reached zero.

And by sleep, I don’t mean 15 minute quick power naps. Thats bullshit. I don’t count it as sleeping if it does not span across atleast a few hours. Sleep like you don’t have a single worry in this crazy world. Sleep like a baby!

Thursday, 20th September, 2018

Search specific text in MacOS

Spotlight search is great if you’re looking for file or folder names. But to search for specific words inside text or code files in a folder, the following command line method is much more effective.

Step 1: Open the Terminal app, use the cd command to navigate to the folder where you want to search for your desired text or file name.

cd ~/Deb/Sites/project1/wp-content/themes/twentyseventen/

Step 2: Use the grep command to search inside this folder & folders further inside it.

grep -ir 'space_below' .

MacOS command grep

Here space_below is the word you are looking for. You can also search for text with quotes such as class or ID names by doing 'class="container"'

Notice the quotes & the dot in the 2nd step, they are required. This should be particularly useful for developers and writers who deal with text & need to find very specific ones.

Monday, 17th September, 2018

Tracking my visitors

Is something I don’t do. I don’t have any analytics or visitor tracking script installed on my site, so I have no idea how many people visit my site & which country they are from. I like it that way.

Tuesday, 11th September, 2018

Slothilda

Slothilda is the only web comic I subscribe to & truly enjoy.

It’s minimal, animated style comics, sent to my inbox infrequently really appeals to me.

The designer has an upcoming printed book, below is the trailer for that book.

Sunday, 9th September, 2018

Shaadi Mein Zaroor Aana

Shaadi Mein Zaroor Aana

Saw it last night. Same as Tom Hanks I will watch anything with Rajkumar Rao in it, except horror.

Horror movies scare me, as they should. I don’t get people who are not scared by horror. Same as people whose thirst is not quenched by water which it should. That can’t be normal.

The movie? Yeah its good.

Wednesday, 8th August, 2018

How to receive SMS while outside India

When you are travelling outside India, if you have wifi or a SIM of that country to get mobile internet, and using that to make Whatsapp calls etc, and you just need to receive SMS from India for some essential services such as One Time Passwords then read this.

You do not need to buy an international roaming pack just to receive SMS. Receiving incoming SMS from India to your mobile while you are abroad is FREE, you do not pay anything for that. You just need to have main account balance of around Rs 200/300 or so.

So whenever I need to use a service that sends an OTP to my Indian mobile number, such as while logging into my your bank account, I do this:

  • Disable mobile data (important)
  • Switch off mobile
  • Remove foreign SIM
  • Insert Indian SIM
  • Switch on mobile
  • Let it automatically search for & connect to a network in that country with whom my Indian mobile network has an agreement.

After I get network signal on the mobile I login to the service which needs to send an OTP and I get it instantly.

Tuesday, 31st July, 2018

Bus stop & train station near Grand Palace Bangkok

If you are looking to use public transport other than the boating system to go to the Grand Palace in Bangkok & come back then this information is for you.

The Hua Lamphong MRT [underground train] is the station closest to the palace. You can get there by MRT trains or BTS trains [sky train]. Then the bus station near to this MRT should have a bus number 1 which will drop you at one of the stops near the palace.

Royal Thai Navy Club

Similarly bus number 1 will take you back from one of the bus stops near the palace to the Hua Lamphong MRT.

Grand Palace being a large area there are several bus stops around it, so it is important to recognize this bus stop. Look for the bus stop in front of Royal Thai Navi Club & besides a group of food stalls/market area. Also “Thanon Maha Rat” will be written on a board near this stop.

Grand Palace Bus Stop

The fair is 9 Baht per person one way between this bus stop & the bus stop near the MRT station.

Friday, 27th July, 2018

Living in Bangkok, Thailand

We have been staying in Bangkok since a week, one more week to go. Thais are a great bunch of hospitable people. Good amount of fruits have already been eaten.

Friday, 6th July, 2018

Error reading file ‘UNOPENED’ (Errcode: 5 – Input/output error)

If you get this MySQL error “Error reading file ‘UNOPENED’ (Errcode: 5 – Input/output error)” while importing a .sql file into your database via the command line, then chances are your sql file is corrupted, was not exported/downloaded properly. Export the file again & try, it worked for me.

Monday, 18th June, 2018

October

October

Very well made movie. Probably Varun Dhawan’s best acting so far. But wow is the movie dark. There is no happy ending.

Since past few years I have been avoiding such serious movies when life is already full of tension. But as I don’t like to know the plot before watching a movie, I had no idea what this movie was about.

I guess once in a while such depressing films are fine.