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.