Sanity in Insanity

Upon showing an App we developed, my good friend from service based company said that he could make that app in a week. I said – of course you can. He was a bit sceptical with my comment and tried to validate his point. He shown me some of his codes and then talk about how he created a bunch of libraries which he just imports to the project. The language he is talking about is PHP. This is a sane way to do things right? Of course!

It is easy to build an app. He said he can create that app in a week, I say, I can make that app in 5 days. Some, who can type even faster would make that app in few hours. But what about benchmarking?

A few weeks earlier, I had a LinkedIn comment giving the more efficient way to do the code. The guy commented that under the hood everything is probably the same. Then I shared the link: https://jsperf.com/from-vs-spread-map/1 The codes were 1% faster. This is insane – just that a bit right? No!

Insanity in Attitude!

As I said, it is just a matter of typing speed who will finish the app first! But is it really a race? I don’t think so! I am sure most of you would agree with me.

A programmer who is doing benchmark his codes, profiling the code even the bit which has absolutely shown no alerts will create a nearly perfect app. Every day he will be learning which is more efficient. This will look insane but after say over 300 benchmarking and recognizing over 1000 places of these small bits, he will be writing the efficient codes right? Then it will come down to typing speed! But the result will be more efficient codes. I strongly recommend you hire these insane people, that will be the sanest thing to do!

Worth Sharing?

Self Hosted Solutions with Android and iOS apps to protect privacy and data

More I have used Google, Facebook, Disqus – more I feel that I have been tracked! This time it was insane, I am not sure if it is coincidence or not – I created a Google Keep checklist while on the call and put Antifragile to list – since then I have been seeing its ad. I haven’t even searched for it yet but somehow Ads knows that I want this book. So far, I was only worried about re-targeting and it is easy to ditch it – simply keep shuffling your cookies and do browsing on Incognito. Look at the curious case of Whatsapp – They say they can’t read the Whatsapp messages as they have an end to end encryption. THOUGH! Cops/Hackers could trace back to the origin. Even it has been requested to Whatsapp to add the digital signature. Every link you through on Skype is visited by MS Bot – for parsing but it does. Now it is known where you are right now. The Google DNS will always know what is your IP address and pinpoint your location. Even with the encryption, this is known!

What does a 20$/month Linode spin will get you? – A lot

  1. TODO: Most innocent looking is your ToDo list. You can simply have EtesSync to stop worrying about it.
  2. DNS: Deploy CoreDNS with TLS for E2E Encryption and forwarded Google will always have your server IP address. You must have some sort of checking to allow only a few IP ranges which you will get.
  3. Messenger – Riot based on Matrix can help you chat with your friends without worrying about messages being read/shared or tracked.
  4. Files: You can either use Standard FTP or use OwnCloud to share data and get Google Drive like experience
  5. Ad Block: As long as you are living near the server, it is okay to host on Linode. You can spin AdGuardHome and control what can be open. This can be running on a different port and DNS can proxy to this.
  6. Location Sharing – For location sharing – you can use owntracks

What is my status?

I have been using everything I have mentioned personally except OwnTracks. I have helped a few clients and friends to spin all of them for their use. I can also help you 🙂

Worth Sharing?

How to set the password for Redis in Docker for Development?

I just spun a docker and found this error.

ERR Client sent AUTH, but no password is set

Then I realized I haven’t set the password. The traditional way is to create the redis.conf file and go with it but then again it is a lot of work as I would be maintaining another file.

Solution

If you are using Docker compose then simply override the CMD (command) like this:

command: redis-server --requirepass SUPER_SECRET

Worth Sharing?