<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kwatog &#187; Uncategorized</title>
	<atom:link href="http://kwatog.com/category/blog/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwatog.com</link>
	<description>tech notes and general nonsense</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:06:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>String Replace in C++</title>
		<link>http://kwatog.com/blog/uncategorized/string-replace-in-c/</link>
		<comments>http://kwatog.com/blog/uncategorized/string-replace-in-c/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 10:43:24 +0000</pubDate>
		<dc:creator>kwatog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=160</guid>
		<description><![CDATA[As I&#8217;m just a C++ poser, I don&#8217;t know a lot of things programming in this language especially if I have to deal with STL (Standard Template Library). As some of you know, when you&#8217;re not using third party libraries in C++, programming gets a little harder (note : my harder is harder than your [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;m just a C++ poser, I don&#8217;t know a lot of things programming in this language especially if I have to deal with STL (Standard Template Library). As some of you know, when you&#8217;re not using third party libraries in C++, programming gets a little harder (<em>note : my harder is harder than your harder</em>). </p>
<p>So I searched the web and found this solution. Unfortunately, I forgot where I got this. Anyway, the original program doesn&#8217;t work.</p>
<p><code>#include <string><br />
#include <iostream></p>
<p>using namespace std;</p>
<p>int main()<br />
{<br />
    string str( "The Horse and the Yokaba" );<br />
    string searchString( "Yokaba" );<br />
    string replaceString( "Kabayo" );</p>
<p>    string::size_type pos = 0;<br />
    while ( (pos = str.find(searchString, pos)) != string::npos ) {<br />
        str.replace( pos, searchString.size(), replaceString );<br />
        pos++;<br />
    }<br />
    cout << str << endl;<br />
    return 0;<br />
}<br />
</code></p>
<p>When I'm using the MString library, it was a breeze. There's a ton of methods that makes things easy but when you need to make your program faster and leaner, you wouldn't want the extra baggage that comes with a third party library. MString is good but it's just brings with it too much things I don't need on my program. </p>
<p>If I have time(which most of the time I spend sleeping), I'll update the post to include a line by line explanation. It's not exactly for you but for me. It's a note to myself. <img src='http://kwatog.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/uncategorized/string-replace-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modified WP Table Prefix in bbPress</title>
		<link>http://kwatog.com/blog/uncategorized/modified-wp-table-prefix-in-bbpress/</link>
		<comments>http://kwatog.com/blog/uncategorized/modified-wp-table-prefix-in-bbpress/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 02:13:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bbpress]]></category>
		<category><![CDATA[table prefix]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress mu]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=119</guid>
		<description><![CDATA[If you change your WordPress/WordPress mu table prefix (and thus, renamed the tables too) and you have a bbPress integrated with it, chances are your bbPress will lose its connection with WordPress since the configuration is not in bb-config.php. You&#8217;ll need to update the meta tables, too through mysql or phpmyadmin. Here&#8217;s the update query. [...]]]></description>
			<content:encoded><![CDATA[<p>If you change your WordPress/WordPress mu table prefix (and thus, renamed the tables too) and you have a bbPress integrated with it, chances are your bbPress will lose its connection with WordPress since the configuration is not in bb-config.php. You&#8217;ll need to update the meta tables, too through mysql or phpmyadmin. Here&#8217;s the update query.</p>
<p><code><br />
UPDATE bb_meta<br />
SET meta_value = 'wpmu_'<br />
WHERE meta_key = 'wp_table_prefix';<br />
</code></p>
<p>That&#8217;s of course considering your bbPress table is bb_meta and the new prefix for WordPress/WordPress mu is <strong>wpmu</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/uncategorized/modified-wp-table-prefix-in-bbpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create New User in CentOS</title>
		<link>http://kwatog.com/blog/uncategorized/create-new-user-in-centos/</link>
		<comments>http://kwatog.com/blog/uncategorized/create-new-user-in-centos/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 17:23:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=112</guid>
		<description><![CDATA[create the user syntax useradd -d [folder_name] -s /bin/bash -c "[name]" [userid] sample useradd -d /usr/kwatog/ -s /bin/bash -c "Kwatog Admin" kwatog set the password passwd kwatog clean up later]]></description>
			<content:encoded><![CDATA[<p>create the user<br />
syntax<br />
<code>useradd -d [folder_name] -s /bin/bash -c "[name]" [userid]</code></p>
<p>sample<br />
<code>useradd -d /usr/kwatog/ -s /bin/bash -c "Kwatog Admin" kwatog</code></p>
<p>set the password<br />
<code> passwd kwatog</code></p>
<p>clean up later</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/uncategorized/create-new-user-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial for WordPress Plugin Writing</title>
		<link>http://kwatog.com/blog/uncategorized/tutorial-for-wordpress-plugin-writing/</link>
		<comments>http://kwatog.com/blog/uncategorized/tutorial-for-wordpress-plugin-writing/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:17:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=79</guid>
		<description><![CDATA[I&#8217;ve been looking for a good wordpress plugin creation tutorial for some time already and though I found quite a number of them, there&#8217;s always something missing. What I found were like piece meals and I have to connect the dots myself. That&#8217;s the case until I found Ronald Huereca&#8216;s tutorial posted at DevLounge. His [...]]]></description>
			<content:encoded><![CDATA[<p>
I&#8217;ve been looking for a good <strong>wordpress plugin</strong> creation tutorial for some time already and though I found quite a number of them, there&#8217;s always something missing. What I found were like piece meals and I have to connect the dots myself.
</p>
<p>
That&#8217;s the case until I found <a href="http://www.ronalfy.com/">Ronald Huereca</a>&#8216;s tutorial posted at <a href="http://devlounge.com">DevLounge</a>. His tutorial is concise and direct to the point. It was easy to read and follow and most importantly, it follows the <strong>object-oriented approach in wordporess plugin development</strong>. Making a plugin in object-oriented way presents a lot of opportunities and lessens the headache in development.</p>
<p><p>To give you a preview, I&#8217;m listing down the table of contents.
</p>
<h3><a href="http://www.devlounge.net/extras/how-to-write-a-wordpress-plugin">Table of Contents: How to Write a WordPress Plugin</a></h3>
<ol>
<li><a href="http://www.devlounge.net/articles/how-to-write-a-wordpress-plugin-introduction">How to Write a WordPress Plugin &#8211; Introduction</a></li>
<li><a href="http://www.devlounge.net/articles/seven-reasons-to-write-a-wordpress-plugin">Seven Reasons to Write a WordPress Plugin</a></li>
<li><a href="http://www.devlounge.net/articles/how-to-get-ideas-for-wordpress-plugins">How to Get Ideas for WordPress Plugins</a></li>
<li><a href="http://www.devlounge.net/articles/structure-of-a-wordpress-plugin">Structure of a WordPress Plugin</a></li>
<li><a href="http://www.devlounge.net/articles/wordpress-plugin-actions">WordPress Plugin Actions</a></li>
<li><a href="http://www.devlounge.net/articles/wordpress-plugin-filters">WordPress Plugin Filters</a></li>
<li><a href="http://www.devlounge.net/articles/constructing-an-wordpress-plugin-admin-panel">Constructing a WordPress Plugin Admin Panel</a></li>
<li><a href="http://www.devlounge.net/articles/constructing-a-wordpress-plugin-users-panel">Constructing a WordPress Plugin User&#8217;s Panel</a></li>
<li><a href="http://www.devlounge.net/articles/wordpress-plugins-and-database-interaction">WordPress Plugins and Database Interaction</a></li>
<li><a href="http://www.devlounge.net/articles/using-javascript-and-css-with-your-wordpress-plugin">Using JavaScript and CSS with your WordPress Plugin</a></li>
<li><a href="http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin">Using AJAX with your WordPress Plugin</a></li>
<li><a href="http://www.devlounge.net/articles/releasing-and-promoting-your-wordpress-plugin">Releasing and Promoting Your WordPress Plugin</a></li>
</ol>
<p>
To view the tutorial, you can go over to <a href="http://www.devlounge.net/extras/how-to-write-a-wordpress-plugin">Devlounge&#8217;s How to Write a WP Plugin</a>. Alteratively, you can also download the tutorial in pdf form by clicking this <a href="http://www.devlounge.net/publik/Devlounge%20-%20How%20to%20Write%20a%20WordPress%20Plugin.pdf">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/uncategorized/tutorial-for-wordpress-plugin-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor SQL Server DB Processes</title>
		<link>http://kwatog.com/blog/uncategorized/monitor-sql-server-db-processes/</link>
		<comments>http://kwatog.com/blog/uncategorized/monitor-sql-server-db-processes/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 15:39:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=70</guid>
		<description><![CDATA[If you don&#8217;t have DBArtisan or other more advanced SQL Editor, you can use the query below. Take note that you&#8217;ll need necessary rights to be able to run it. select spid, status, blocked, open_tran, waitresource, waittype, waittime, cmd, lastwaittype, cpu, physical_io, hostname, hostprocess, loginame, program_name, net_address, net_library, dbid, ecid, kpid, nt_domain, nt_username, uid, sid, [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t have DBArtisan or other more advanced SQL Editor, you can use the query below. Take note that you&#8217;ll need necessary rights to be able to run it.</p>
<p><code>select spid, status, blocked, open_tran, waitresource, waittype,<br />
         waittime, cmd, lastwaittype, cpu, physical_io,<br />
         hostname, hostprocess, loginame, program_name, net_address,<br />
         net_library, dbid, ecid, kpid,  nt_domain, nt_username, uid, sid,<br />
         memusage, last_batch=convert(varchar(26), last_batch,121),<br />
         login_time=convert(varchar(26), login_time,121)<br />
    from master.dbo.sysprocesses<br />
    --where (blocked!=0 or waittype != 0x0000) </code></p>
<p>If you only want to see those that are blocking or locking, uncomment the last line. One thing that’s lacking here is the list of tables and database objects that each process id is using. That’s important if a user is running stored procedures and you need to know . I’ll provide that later as honestly, I don’t know yet which table holds that information.</p>
<p>I actually contributed this at <a href="http://sqlreviewer.com">SQL Reviewer</a> as I don&#8217;t see a lot of websites that discusses this. For further reading, you may go to the MSDN website.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/uncategorized/monitor-sql-server-db-processes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
