How not to store user passwords

If you are running a Web App and you are storing user passwords, it is very easy to get things horribly wrong, it’s better to use third-party sign-in services like Facebook, Twitter or Google. In my experience, I have seen a lot of Web-Apps and Services going this route, not because they are lazy – but because they are offloading an aspect of your app that is incredibly difficult to get it right and secure.

5 Tips to Learn Any Programming Language

Recently I have been spending an unholy amount of time learning a new programming language and improve my existing knowledge with lots of practice. My eventual goal is to reach a stage with a single programming language where I won’t have to refer to the documentation as frequently as I currently do.

How to auto redirect to HTTPS links

I have been recently on a binge mode in converting all my sites to https. Including this one. It was long overdue. Thanks to the guys at “Let’s Encrypt” and their automated script called certbot, the whole process is insanely easy to set up. It literally took me less than 3 minutes each on all the sites I have enabled HTTPS for. I highly recommend that you also do the same.

Why wanting to learn programming can be so overwhelming

For you to be a decent web application developer, you need to have a good grasp of HTML, CSS (has frameworks), PHP, MySQL/MariaDB/Postgres/SQLite (or frameworks/language like PHP-Laravel, ruby on rails, Python/Django/flask – I don’t want to even list a large number of javascript framework or many alternatives of javascript for that matter (typescript, Dart) maybe even bootstrap or similar libraries.

How to flush DNS cache on Mac OSX

In order to use the internet, we need a DNS server to resolve domain names to IP address, in the early days of the internet you DNS server address all most always used to be your ISP’s DNS server. Nowadays we have many options with a lot of free and open DNS servers, most notably Google DNS (8.8.8.8 or 8.8.4.4) and OpenDNS (208.67.222.222 or 208.67.220.220) to name a few.

How to Automate SSH login

I have to remotely log in to a lot of servers quite often, which is why I have setup several ssh related aliases on `~/.bash_profile` (Mac) or `~/.profile` (Ubuntu) to automate my login process so that I could simply type `sg` on the terminal and get logged in to my remote server without any prompts. But this is the last part. Let’s start from the beginning.

about | twitter | facebook | archive | rss