Juzhax Technology

Use CSS to do fade text from Black to White at tail.

I found out that using this way to white fade out the text. <div style=”font-size: 6pt; overflow: hidden; text-decoration: none; position: relative; white-space: nowrap; -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 99%);”> Fade away my text</div>

How to Setup Temporary WordPress Staging Site

I’m going to Setup Temporary WordPress Staging Site using same MySQL database. It is very useful for you to develop themes or plugin without affect to your current running sites, and you need to use real data to test it out. Prepare your contents Copy all your current contents from /var/www/juzhax.com to /var/www/dev.juzhax.com Set a Continue reading “How to Setup Temporary WordPress Staging Site”

How to remove ver from js and css in WordPress ?

Remove the ver=date behind the JS and CSS in wordpress. // Load in any own plugin function juz_remove_wp_ver_css_js( $src ) { if ( strpos( $src, ‘ver=’ ) ) $src = remove_query_arg( ‘ver’, $src ); return $src; } add_filter( ‘style_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 ); add_filter( ‘script_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 );

Installing MySQL Plugin for NewRelic

wget https://github.com/newrelic-platform/newrelic_mysql_java_plugin/blob/master/dist/newrelic_mysql_plugin-1.2.0.tar.gz?raw=true mv newrelic_mysql_plugin-1.2.0.tar.gz\?raw\=true newrelic_mysql_plugin-1.2.0.tar.gz tar -zvxf newrelic_mysql_plugin-1.2.0.tar.gz cd newrelic_mysql_plugin-1.2.0 yum install java-1.7.0-openjdk java -version cp config/template_newrelic.properties config/newrelic.properties vim config/newrelic.properties cp config/template_mysql.instance.json config/mysql.instance.json vim config/mysql.instance.json java -jar newrelic_mysql_plugin*.jar nohup java -jar newrelic_mysql_plugin*.jar &

Set Static IP for Raspberry Pi

vi /etc/network/interfaces modify iface eth0 inet dhcp to iface eth0 inet static Then add this below address 192.168.1.200 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1

GA-H87-D3H F3 F6 F5 F6c BIOS

Gigabyte GA-H87-D3H BIOS My Gigabyte H87-D3H freeze randomly and I’m trying to try all the BIOS to test. Here are the link that i found for the oldest and beta BIOS. mb_bios_ga-h87-d3h_f3.exe mb_bios_ga-h87-d3h_f4.exe mb_bios_ga-h87-d3h_f5.exe H87D3H-2.F6c I found some of the users comments Change graphic card from AMD to NVidia -> Intel network card working without Continue reading “GA-H87-D3H F3 F6 F5 F6c BIOS”

Query WordPress Jetpack Stats using API and return as CSV

http://stats.wordpress.com/csv.php?api_key=123456789abc&blog_id=56174071&end=2013-12-31&day=500&limit=-1 Error: api_key is a required parameter. Required parameters: api_key, blog_id or blog_uri. Optional parameters: table, post_id, end, days, limit, summarize. Parameters: api_key String A secret unique to your WordPress.com user account. blog_id Integer The number that identifies your blog. Find it in other stats URLs. blog_uri String The full URL to the root directory Continue reading “Query WordPress Jetpack Stats using API and return as CSV”