
I use a text to diagram tool called PlantUML. It's perfect! Now, I want to use it with my hugo site, through a short code. So, I I type a code like below, I should see out like as the image. 1@startuml 2A -> B : Hello 3A <- B : Hi There! 4@enduml Update: I spend many hours trying to work this out. Created a firebase …
Read More
I am embarking on this new journey to use Static Site Generator. So far, I have managed to setup: Hugo base project GitHub repository Travis CI based build and deploy I have a shared hosting service (for many years now) so I want to use that to host my site. This added some (small) challenges in my journey. I will …
Read More
Good list of commands to be SSH 'Yoda'. I like the tunnels and screen the most in these. They have been so useful over the years, for development and troubleshooting. Here is a short list that I use ofter: 1# Copy SSH public key 2$ ssh-copy-id user@host 3 4# Alternative for ssh-copy-id 5$ cat ~/.ssh/id_rsa.pub | ssh …
Read More
I use linux for all production deployments (Obviously). Here is a quick one image run down for all optimizations. Source: linux.com
Read More
I have finally released my first vagrant box. Its been a long time coming, but it's here now. How to get it? Create a new vagrant project with: 1vagrant init yogendra/trusty32 Or Create/update your Vagrantfile as 1# -- mode: ruby -- 2# vi: set ft=ruby : 3 4# Vagrantfile API/syntax version. Don't touch unless you know …
Read More
I don't like the whole concept of installers for my development tools like JDK, Eclipse, Netbeans, etc. I just keep a batch/shell script to setup my environment variables for JAVA_HOME, PATH and aliases. So, on Windows, updating JDK involves installing new version of JDK and then copying what I need and then uninstall …
Read More
C++11 is the latest specification for C++. Have a look at some of the cool new features in it.
Read More
Map of India, drawn form C Code. Going through social networks, I stumbled upon this code. It didn't make much sense to me, except for the fact that there were 2 loops doing something with a large string. But when I compiled it (with a tiny modification), it gave a great result. Here's code and result. 1 2// File: …
Read More
With local telcos slimming data bundle with phone plans and charging extra S$2+ /gb, having radio on phone is great. Saves me 50megs a day. Or 1.5 gb a month. Samsung Galaxy SIII Widgets are great for quick updates glances, phone controls, etc. Big screen is great for reading pages. Otg (32gb), sd card (64gb) and 16 gb …
Read More
