Java Spring: Display Chinese Characters in Email

May 26, 2015
My current task is to implement localization for a website. There is no issue with displaying the Chinese characters in the website. However, I just have one problem: Chinese characters appear as question mark in emails. Already set the encoding to UTF-8 but it still won't work. I did some research and come up with these links: http://www.pinyinjoe.com/faq/outlook-chinese-display.htm https://support.google.com/mail/answer/17091?hl=en https://productforums.google.com/forum/#!topic/gmail/vnSf4HxYAXs http://mytechanalysis.blogspot.com/2011/01/display-chinese-characters-in-gmail.html These...
Read more ...

Localize jQuery Validate

May 20, 2015
Here is a code snippet on how to localize the custom error messages for the jQuery Validation Plugin, assuming I have already imported the proper libraries. I have created a separate function in my script to set the proper error messages. function addCustomMessages(){ $("#inputName").rules("add", { messages: { required: errorRequired, minlength: errorMinLength } }); } where...
Read more ...

Remove Member From Skype Group (Windows)

Mar 5, 2015
If ever you are someone - like me - who used to think that in order for a member to be removed from a Skype group, he needs to voluntarily leave the group, well, TANAAAN! We are wrong! Haha. Below are the very simple steps on how to remove a member from the group if you are an administrator. 1. Get the names of the members shown...
Read more ...

JQuery: Send Post Data and Redirect

Mar 2, 2015
Basically, what I wanted to do is to send data from one page to another page. Apparently, I don't have any form to submit and I don't want it to appear on the URL, either. Here's one simple solution: var form = $("<form action='" + url + '' method='post'>" + " <input type='hidden' name='id' id='id' value='" + id + "'/>" + " <input type='hidden' name='username' id='username' value='" + username...
Read more ...

Python: Crawling Static Pages

Feb 24, 2015
As a software developer assigned to test and create crawler scripts for a few months... or years.. I would like to share to you how to scrape the page source from a static webpage. Here's what we need: IDLE (Python GUI) (I am using 2.7.5) The code is simple as: #imports import urllib2 # variable declaration url = "http://techno-ob.blogspot.com" # get page source data = urllib2.urlopen(url).read() # print source print...
Read more ...