Author Archives: LZH

Return json string with proper name

In C# 7, it is now possible to have tuple return type. You would have to use a var to store the return value. However if you simply return the var as a json, the json will be slightly messed … Continue reading

Posted in C#, Json | Tagged , | Leave a comment

Android Volley Sending data twice

When you use Android Volley Library to make a http post request, the default situation is that the data will be send twice. In order to avoid this, you would need to add the line 2 of the below code … Continue reading

Posted in Android, Java | Tagged , , , , | Leave a comment

Free Microsoft eBook

Once again, there is a large give away of Microsoft eBooks from Eric Ligman, Microsoft Director of Sales Excellence. The whole list of the free eBooks is available at Eric’s msdn blog. However, as a developer, we would always love to … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Backup of outlook data file

Doing backup of your personal files are very critical. That would include backup-ing your outlook pst/ost file. In this post, I would teach you how to automatically create a backup of the pst/ost. A good idea would be to backup … Continue reading

Posted in backup, Uncategorized | Tagged , , , , , | Leave a comment

Detecting OS and Redirect to a specify site

There will be some instance where we need to redirect user to different site based on their platform. As such the following javascript will do the job to which OS the user is on. In this case, Android, iOS, and … Continue reading

Posted in Web Development | Tagged , , , , , , , | Leave a comment

Flask: Hello World

It works on raspberry pi too! techtutorialsx The objective of this post is to explain how to create a simple “Hello world” application with Python and Flask. View original post 985 more words

Posted in Uncategorized | 2 Comments

Backup Digital Ocean VPS to image

While Digital Ocean does provide backup service, it would also be advisable that we have a local backup of our VPS. You could do the following It might take a while to load the entire depending on how huge your … Continue reading

Posted in Digital Ocean, Uncategorized | Tagged , , , , | Leave a comment

Deploying WAR file to Tomcat

In this post, I will continue to go thru the steps required to deploy a WAR file to the raspberry pi. And yes, it will works for other linux based system. To deploy the WAR file, simply copy the WAR … Continue reading

Posted in apache tomcat, Raspberry Pi | Tagged , , , , | Leave a comment

Backup a img of Raspbian for Raspberry Pi

We cannot deny that it is important to always backup your data. It is even much more important to backup your entire Raspberry Pi SD card after going thru so much to setting up all the configuration which you never … Continue reading

Posted in Raspberry Pi | Tagged , , , , , , | Leave a comment

Tomcat: redirecting traffic from port 8080 to 80 using iptables

Originally posted on Glass Onion Blog:
First verify that Tomcat is running on port 8080. Run the following command # netstat -ntl The output will look something like Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address               Foreign Address            …

Posted in Uncategorized | Leave a comment