About Hoan Huynh
Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at
hoan@4rapiddev.com
JavaScript Detect Protocol (HTTP/ HTTPS) To Load Or Handle Accordingly
Posted by
Hoan Huynh in
Javascript
|
Leave a comment
If you site’s running on both HTTP and HTTPS, we will need to determine whether the HTTP protocol for the requested page is either secure (HTTPS) or standard (HTTP) to load/write the appropriate external assets files or handle process correspondingly. Continue reading →
Tagged: HTTP, HTTPS, Protocol
Encrypt With MD5, SHA Or SHA1 In MS SQL Server
Posted by
Hoan Huynh in
SQL Server
|
Leave a comment
This article shows SQL statements that encrypt an input string by using MD5/SHA/SHA1 algorithm. And you should play with these SQL statements in the Microsoft SQL Server Management Studio (New Query) to see the results. Continue reading →
Tagged: fn_varbintohexstr, HashBytes, md5, SHA, SHA1, substring, VarBinary, varchar
WordPress Get Recent Posts And Recent Comments
Posted by
Hoan Huynh in
PHP
|
2 Comments
In this article, I’ll show pieces of PHP script that retrieve and display Recent/Latest Published Posts and Recent/Latest Approved Comments. They’re being used in my current WordPress template and placed in the footer. Continue reading →
Tagged: comment_author_url, get_permalink, get_results, numberposts, strip_tags, Wordpress, wp_get_recent_posts
Display Technorati Media Ads In Iframe
Posted by
Hoan Huynh in
Tips And Tricks
|
Leave a comment
I’ve just realized that Technorati Media Banner Ads load very slow compare to Google AdSense Ads and all pages are not rendered properly until Technorati Media Banner Ads appear. Meaning users have to wait few seconds to see a complete page with all style sheets and assets. Continue reading →
Tagged: Google Adsense, HTML, Iframe, Technorati Media
WordPress Get All Custom Fields
Posted by
Hoan Huynh in
PHP
|
Leave a comment
This article shows a piece of PHP code that query all Custom Fields (extra fields or meta data) of a particular post instead of hitting the WordPress database for every custom field. Continue reading →
Tagged: Custom Field, postmeta, Wordpress
Share Link/ Url Of Facebook, Twitter, Google Plus, Stumbleupon, Reddit, Digg and Tumblr
Posted by
Hoan Huynh in
Internet
|
1 Comment
This article just provides share link/url of Facebook, Twitter, Google Plus, Stumbleupon, Reddit, Digg and Tumblr and instruct How to add share link/url of the most popular social media websites in WordPress detail post. Continue reading →
Tagged: Digg, Facebook, get_permalink, Google, Reddit, Social Bookmarking, StumbleUpon, Tumblr, Twitter, Wordpress, wp_get_shortlink
Display User Current Location On Google Map
Posted by
Hoan Huynh in
Google API
|
Leave a comment
This article provides a simple HTML example which automatically detects the current location of the user based on the latitude/longitude then display a marker on the Google Map that is tied to latitude/longitude coordinates. Continue reading →
Tagged: geolocation, getCurrentPosition, getElementById, Google, Google Map, GPS, ip address, LatLng, marker, navigator
Which Browsers And Mobile Devices Support Geolocation API
Posted by
Hoan Huynh in
Internet
|
Leave a comment
Before using and implementing Geolocation API to get the geographical location information of the current user on your websites or mobile applications, you should need to know which browsers and mobile devices Support Geolocation API. Continue reading →
Tagged: geolocation, Geolocation API, navigator
Google Map Supported Type And Simple Example
Posted by
Hoan Huynh in
Google API
|
1 Comment
There are 4 Google Map Types that we can specify: ROADMAP, SATELLITE, HYBRID and TERRAIN. And below is a simple example that displays Google Map with MapTypeId is ROADMAP on a web page. Continue reading →
Tagged: Google Map, HYBRID, MapTypeId, ROADMAP, SATELLITE, TERRAIN
iPhone 4s Cannot Get Mail imap.gmail.com
Posted by
Hoan Huynh in
Problem Issue Error
|
2 Comments
I had a problem with setting up Google Mail (Gmail account) in my iPhone, it works in few days then stop working. It works again then stop working all the time. And I get the error message: Cannot Get Mail. The mail server ‘imap.gmail.com’ is not responding. Verify that you have entered the correct account info in Mail settings. Continue reading →
Tagged: Gmail, Google, Imap, iPhone, iphone 4s, Microsoft Exchange