Setting up raspberry pi & touchscreen display
This is a step by step guide to build a raspberry pi with the touchscreen display. Before we get started, this is the final result of the setup at my work table. Step 1 Install …
This is a step by step guide to build a raspberry pi with the touchscreen display. Before we get started, this is the final result of the setup at my work table. Step 1 Install …
This task/project started with a simple comment from our team. Mindy (who is the EA to Vivek) shared this comment in one of the internal Google documents. It was very unusual to get a coding …
I set up my first website using WordPress way back around 2007 or 2008. I was amazed by the simplicity to install WordPress. My website was up and running within 2 minutes. Even now, the …
Every year, I work with a smart bunch of college kids during their summer/winter internship at HackerRank. While I’ve learned a lot of things from them, they usually ask for feedback/advice at the end of …
I follow Inbox Zero to take control of my inbox. Initially, it was great and ‘felt’ very productive. But later at some point, it became an addiction to check email very often. The urge to …
WebAssembly has been there for quite some time. While I understand the overall idea, I never had a chance to build anything production-ready so far. I had a chance to play around with WebAssembly during …
This is a follow up of the post I’ve shared earlier to create files earlier at https://sp2hari.com/mail-merge-to-pdf-files/ While the first version of the post I made for creating multiple PDF files from Google Doc and …
This contest started as a fun chat with an employee at HackerRank and how it ended up with a coding contest. One of the engineers from our team, Aditi Tayal, has recently started learning to …
This post is a result of an article I came across recently. https://csswizardry.com/2020/05/the-fastest-google-fonts/. This is a nice post which in detail about improving the performance of a website when loading fonts from Google. There is …
This post is the result of writing a LOT of Google apps scripts and watching a lot of ‘Forensic Files‘ in Netflix. An interesting function I used so far to attach a menu is the …
Mail merge is a great feature (truth be told, everything that automates a repetitive job is a great feature). One of the tedious repetitive task our team keeps doing often is generating PDF files for …
Very rarely, you will want to delete all friends from Facebook and start a “fresh” facebook account. Now, it’s hard to do this manually. Thanks to phpunit + selenium + a few lines of code, …
VIM is an awesome editor, but comes with a big big learning curve. These are the the top 3 Vim tutorials from where I learnt to use Vim. 1. http://www.vi-improved.org/tutorial.php 2. http://vim.runpaint.org/toc/ 3. http://www.swaroopch.com/notes/Vim_en:Table_of_Contents If …
Git reflog saves you from all screw-ups you do while using git. Here is a sample output of git reflog. hari@hari-desktop:/var/www/recruit$ git reflog e458f54 HEAD@{0}: checkout: moving from test1 to e458f54fe99202c82c2690be4fa2fe2d7aa7be32^0 a3281d1 HEAD@{1}: checkout: moving …
Want to check if all changes in your new branch is merged to main branch before you delete the new branch. git log feature1 ^master The above command displays all commits which are present in …
HTML5 seems to be the buzz word now. People around me are excited about HTML5 or already working on something with HTML5. Curious to know what the hell is this HTML5, I started reading something …
We use Git here at interviewstreet. Using Git, branching, testing and reverting is so easy. Almost all commands are simple and easy to remember in Git, except for deleting a remote branch. The command to …
The problem statement is as follows : The Playfair Cipher encrypts text by substitution of digrams (2-letter groupings). It is traditional to use a 5 x 5 letter scrambled-alphabet key square for the encryption and …
CodeIgniter by default won’t allow you to use query strings in the URL. This is how you enable query string in url in codeigniter. 1. Set $config[‘uri_protocol’] = “PATH_INFO” in config.php 2. Set $config[‘enable_query_strings’] = …
This is my second post in the fetch contacts from email account series. In this post, we are going to fetch contacts from a Google account. This isn’t a detailed tutorial, but a quick 2 …
Importing contacts from mail accounts using OAuth is a long solved problem which doesn’t have a good implementation. I googled and googled for a good library which imports contacts from Yahoo/GMail/Hotmail. Finally, I was forced …
Security is the major concern for anyone hosting a website on the internet. These are the preliminary security settings to be performed to protect your server. iptables Our server stack is LAMP. Hence iptables as …
I get this error every time I install apache web-server in an ubuntu machine. We use LAMP stack at Interviewstreet and this error was nagging me all the this while. The error message shows up …
The other day, I was poking a few sites on the web lazily, looking how they’ve designed the CSS, HTML etc blah blah blah.. I take a quick look at the tumblr source code and …
Finally we’ve started doing all our development using a framework, Codeigniter. It has a small learning curve, simple to use and very flexible with how much you want to adhere to MVC pattern. You have …