Wordpress - ericwijaya.wordpress.com - Eric Wijaya
General Information:
Latest News:
Git Flow Command 8 Apr 2013 | 08:55 am
To list/start/finish feature branches, use: git flow feature git flow feature start [name] [base] git flow feature finish [name] To push/pull a feature branch to the remote repository, use: git flow f...
Git change remote URL 5 Apr 2013 | 06:00 pm
git remote -v # View existing remotes # origin https://github.com/user/repo.git (fetch) # origin https://github.com/user/repo.git (push) git remote set-url origin https://github.com/user/repo2.git # C...
PHP command line syntax checking 4 Apr 2013 | 08:42 am
Thanks to this bro for the post that help me find the syntax error inside my bunch of php code (http://www.electrictoolbox.com/php-command-line-syntax-checking/) Syntax checking a single PHP file from...
Add Currency to Woocommerce 12 Feb 2013 | 04:24 am
Add this code to your functions.php file: function add_my_currency( $currencies ) { $currencies["IDR"] = 'Rupiah'; return $currencies; } add_filter( 'woocommerce_currencies', 'add_my_currency', 10, 1 ...
Access Remote file share with username and password in C# 6 Feb 2013 | 07:19 am
If you want to access a network sharing folder, you can use this class to provide username and password. using System; using System.Runtime.InteropServices; using BOOL = System.Boolean; using DWORD = ...
Add Watermark to Textbox using jQuery 28 Jan 2013 | 09:12 pm
jQuery(document).ready(function() { var watermark = "Type the code seen above"; jQuery(".wpcf7-captchar").val(watermark); jQuery(".wpcf7-captchar").focus(function() { if (jQuery.trim(jQuery(".wpcf7-ca...
Contact Form 7 watermark for select menu 28 Jan 2013 | 08:36 pm
Put this code in your functions.php file: function my_wpcf7_form_elements($html) { $text = 'Please select...'; $html = str_replace('---', '' . $text . '', $html); return $html; } add_filter('wpcf7_for...
Add User to SQL Server Database 18 Jan 2013 | 05:31 am
Add User Using Windows Authentication -- Create user windows Authentication CREATE LOGIN [YourDomainNameJohnJacobs] FROM WINDOWS WITH DEFAULT_DATABASE = [YourDatabaseHere]; GO -- Now add user to datab...
Retina Display Media Query 13 Jan 2013 | 07:23 pm
For including high-res graphics, but only for screens that can make us of them. “Retina” being “2x”: @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { /* Retina-specific stuff her...
Add “first” and “last” CSS classes to dynamic sidebar widgets. 29 Dec 2012 | 02:39 pm
/** * Add "first" and "last" CSS classes to dynamic sidebar widgets. Also adds numeric index class for each widget (widget-1, widget-2, etc.) */ function widget_first_last_classes($params) { global $m...