OSJournal – Back to my root and giving back to the community

I have been blessed to be able to make my living by utilizing open source software and community. I remember during my freshmen days in college, I was introduced to Unix shell by my professor, and from there on, my interests in how operating system works peaked- especially Linux.

I was involved in several open source projects such as FoxServ, Fedora, and BlueLinux by contributing community engagement and documentations, and went on to other development projects such as Post-Nuke CMS. Since 2005, I have been focusing on publishing and datacenter operation of my company in Japan – both, are powered by open source technology.

Today, we launched a site dedicated to Open Source and FOSS advocacy called OSJournal – a site where we would share/publish sysadmin guide, analysis of the industry, and spotlight of open source projects. If you would like to contribute, feel free to contact me.

Regex to remove URLs inside WordPress Post

There were time where I have to take down a web apps and making thousands of URL reference broken. So the only way to fix that is to remove all those links. Thankfully wordpress has a vast variety of regex search and replace.

I am using Search Regex plugins (You can find it on WP Plugins directory)

/<a href="http:\/\/www\.domain\.com\/subfolder\/[^>]*>([\s\S]*?)<\/a>/

Placing an ad or content block on single post after certain paragraph – WordPress Tip

If you ever have to show an ad or content block on a single post page – under a certain paragraph (eg. right after the first paragraph) – you can use the code below by replacing the_content.

$ad_placement_p = 2;
$content = apply_filters('the_content', $post->post_content);if(substr_count($content, '<p>') > $ad_placement_p)
	$contents = explode("</p>", $content);
	$p_count = 1;
	foreach($contents as $content)
		echo $content;
		if($p_count == $ad_placement_p)
               Your Ad Code
		echo "</p>";

The way it works is by using < p > as marker of position. Feel free to change $ad_placement_p value to assign locations of this content/ad block.

How to setup pptp VPN server on Linux [Tutorial]

I’m moving to Japan very soon and remembered that Google Voice won’t be working once I step onto Land of the Rising Sun. So I figured I should setup a VPN tunneling for me to access services that is available only in the US. Setting up PPTPD is fairly easy and straight forward. I’m using SoftLayer BYOC (Build Your Own Cloud) which cost $70/month for 2TB bandwidth (inbound bandwidth is free – unlike Rackspace cloud).

Read More

Finding the right CDN for SlashGear

It has been interesting and educational two months; I had the chance to use several major CDN services on SlashGear. Choosing the right CDN is a matter of pricing/budget, delivery technology or features and POP availability. The CDN vendors I had the opportunity to try are MaxCDN, InterNAP, Highwinds, Akamai, and EdgeCast.

Read More

SlashGear is on WordPress Showcase

I’m honored that SlashGear was added to WordPress showcase for our unique implementation of WordPress & BBPress.

Quoted from WordPress Showcase

Why it’s in the Showcase: SlashGear is a major gadget and technology blog that receives millions of readers per month and uses WordPress to power its entire site, including main site, bbPress-powered forums, and video site. All three sites have integrated user tables and login session sharing.