Author Archives: qianggan

About qianggan

Sr. Software Engineer

Laravel Oracle DB issue on User Authentication

[Laravel 5.2++] Oracle User Provider When using oracle, we may encounter a problem on authentication because oracle queries are case sensitive by default. By using this oracle user provider, we will now be able to avoid user issues when logging … Continue reading

Posted in Laravel | Leave a comment

jQuery .each() which better than for loop

Want to introduce jQuery .each() method, which is very useful method when you handle array of objects. For example, we have 4 dispatch fields in the form, and we don’t want dispatch time is in the future, so we have … Continue reading

Posted in Computers and Internet | Leave a comment

jQuery .attr() and .prop()

In jQuery, you have to be careful to use .attr() and .prop(). .attr() Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element. .prop() Get … Continue reading

Posted in Computers and Internet, Laravel, Uncategorized | Leave a comment

Fix JSON decoding syntax error

I got a long JSON string from DB, and try to decode the string using json_decode() in PHP, I get null, the empty object. But when I tested it in a JSON pretty page http://jsonprettyprint.com/, everything looks good. It’s no single/double-quotes … Continue reading

Posted in Computers and Internet, Laravel, Lumen, Uncategorized, Yii | Leave a comment

Follow these 17 Proven Rules to Hire the Best Job Candidate

Author: Art Torres Follow these 17 Proven Rules to Hire the Best Job Candidate No matter which industry you are in, it is critical to employ top performers. I often hear managers complain about a particular employee who is not … Continue reading

Posted in Human Resource Management | Leave a comment

css: make checked checkbox label bold

In many case, we want to highlight the checked checkbox label, so user know it’s checked without mistake. If you know CSS syntax, it becomes very easy: In below case, we just want a certain check box (service, and network … Continue reading

Posted in Computers and Internet | Leave a comment

3 Autocomplete fields reuse same AJax call.

This is a typical customized request, which in one page, they want to enter same ticket number to search, and same time can search 3 fields, and do 3 different functions. So like below code showed, we reused same search … Continue reading

Posted in Computers and Internet | Leave a comment