<?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>DPJ Online Blog &#187; IT Stuff</title>
	<atom:link href="http://blog.dpjonline.com/category/itstuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dpjonline.com</link>
	<description>Computer Programming, Health, Science and Information Technology, Google Adsense, Online Business &#38; Adventure</description>
	<lastBuildDate>Tue, 10 Aug 2010 07:16:11 +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>samsung usb mobile driver for windows 7</title>
		<link>http://blog.dpjonline.com/2010/08/10/samsung-usb-mobile-driver-for-windows-7/</link>
		<comments>http://blog.dpjonline.com/2010/08/10/samsung-usb-mobile-driver-for-windows-7/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 07:14:38 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[New Samsung PC Studio]]></category>
		<category><![CDATA[Samsung Corby]]></category>
		<category><![CDATA[Samsung PC Suite]]></category>
		<category><![CDATA[Samsung USB Driver]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=258</guid>
		<description><![CDATA[I just got my new samsung corby from smart. USB Cable for this phone is not included in the package. So i have to purchase it separately. The cable is expensive it costs around $15.50 or Php 690.00 I was excited what I can do with this phone, so I attached it with my Compaq [...]]]></description>
			<content:encoded><![CDATA[<!-- AdSense Now! V1.83 -->
<!-- Post[count: 3] -->
<div class="adsense adsense-leadin" style="float:right;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-7497154104883066";
/* 300x250, created 9/28/09 */
google_ad_slot = "1730150639";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>I just got my new samsung corby from smart. USB Cable for this phone is not included in the package. So i have to purchase it separately. The cable is expensive it costs around $15.50 or Php 690.00</p>
<p>I was excited what I can do with this phone, so I attached it with my Compaq laptop w/ W7 OS. Here comes the hardware installation failure (samsung usb mobile driver 1.0) w/c is not working properly.</p>
<p>Another package w/c I was expecting was the CD of this mobile phone that usually comes w/ the PC Studio&#8230; Guess what&#8230;. It was not in the package too!!! <img src='http://blog.dpjonline.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  So i have to google it for download.. I was able to download PC Suite 3.2 and started it. The phone still was not found because the USB driver is not working. I keep on searching and revisiting samsung site for any information that I can get. Until I found the &#8220;Samsung New PC Studio&#8221;. I uninstalled the previous version and install this new one&#8230; booommm!!! it solved my problem&#8230; USB Mobile driver was installed together w/ this new PC Suite.</p>
<p>This Samsung New PC Studio has better user interface compared w/ the PC Suite 3.2. I will try to browse what I can do with this connection&#8230;</p>
<p><a href="http://lnk.dpjonline.com/54">Download Samsung New PC Studio</a> from Samsung Website</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2010/08/10/samsung-usb-mobile-driver-for-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to configure PHP Java Bridge</title>
		<link>http://blog.dpjonline.com/2010/07/01/how-to-configure-php-java-bridge/</link>
		<comments>http://blog.dpjonline.com/2010/07/01/how-to-configure-php-java-bridge/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 01:12:50 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Java Bridge]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=255</guid>
		<description><![CDATA[I&#8217;m using WAMP Server 2.0 on W7 First, edit your php.ini file and add the ff. lines [java] java.java_home = &#8220;C:\Program Files\Java\jre6\bin&#8221; java.java = &#8220;C:\Program Files\Java\jre6\bin\java&#8221; java.class.path = &#8220;C:\wamp\bin\php\php5.3.0\ext\JavaBridge.jar&#8221; java.library = &#8220;C:\Program Files\Java\jre6\lib&#8221; java.library.path = &#8220;C:\wamp\bin\php\php5.3.0\ext;C:\Program Files\Java\jre6\lib&#8221; Just change the directory location according to your java and php installation folders. also place the file &#8220;Java.inc&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using WAMP Server 2.0 on W7</p>
<p>First, edit your php.ini file and add the ff. lines</p>
<p>[java]<br />
java.java_home = &#8220;C:\Program Files\Java\jre6\bin&#8221;<br />
java.java = &#8220;C:\Program Files\Java\jre6\bin\java&#8221;<br />
java.class.path = &#8220;C:\wamp\bin\php\php5.3.0\ext\JavaBridge.jar&#8221;<br />
java.library = &#8220;C:\Program Files\Java\jre6\lib&#8221;<br />
java.library.path = &#8220;C:\wamp\bin\php\php5.3.0\ext;C:\Program  Files\Java\jre6\lib&#8221;</p>
<p>Just change the directory location according to your java and php installation folders.</p>
<p>also place the file &#8220;Java.inc&#8221; on your php include path.</p>
<p>you can download the Javan.inc and JavaBridge.jar at http://php-java-bridge.sourceforge.net/pjb/</p>
<p>Restart wamp services.</p>
<p>To test your java bridge capability just create and open this php file on your browser</p>
<p>test.php</p>
<p>&lt;?php</p>
<p>try {</p>
<p>/* invoke java.lang.System.getProperties() */<br />
$props = java(&#8220;java.lang.System&#8221;)-&gt;getProperties();</p>
<p>/* convert the result object into a PHP array */<br />
$array = java_values($props);<br />
foreach($array as $k=&gt;$v) {<br />
echo &#8220;$k=&gt;$v&#8221;; echo &#8220;&lt;br&gt;\n&#8221;;<br />
}<br />
echo &#8220;&lt;br&gt;\n&#8221;;</p>
<p>/* create a PHP class which implements the Java toString() method */<br />
class MyClass {<br />
function toString() { return &#8220;hello PHP from Java!&#8221;; }<br />
}</p>
<p>/* create a Java object from the PHP object */<br />
$javaObject = java_closure(new MyClass());<br />
echo &#8220;PHP says that Java says: &#8220;; echo $javaObject;  echo &#8220;&lt;br&gt;\n&#8221;;<br />
echo &#8220;&lt;br&gt;\n&#8221;;</p>
<p>echo java(&#8220;php.java.bridge.Util&#8221;)-&gt;VERSION; echo &#8220;&lt;br&gt;\n&#8221;;</p>
<p>} catch (JavaException $ex) {<br />
echo &#8220;An exception occured: &#8220;; echo $ex; echo &#8220;&lt;br&gt;\n&#8221;;<br />
}</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2010/07/01/how-to-configure-php-java-bridge/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Change Boot Options (Wubi Installation with Ubuntu in Windows 7)</title>
		<link>http://blog.dpjonline.com/2010/03/23/change-boot-options-wubi-installation-with-ubuntu-in-windows-7/</link>
		<comments>http://blog.dpjonline.com/2010/03/23/change-boot-options-wubi-installation-with-ubuntu-in-windows-7/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 02:11:16 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Wubi]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=245</guid>
		<description><![CDATA[This is how I changed my default boot option to my Ubuntu 9.10 , I installed my ubuntu through Wubi w/in my W7 1. Click Windows Knob -&#62;Control Panel 2. At the control panel window click &#8220;system&#8221; 3. at the system window, click &#8220;Advnace Settings&#8221; 4. click advance tab-&#62;settings 5. choose ubuntu]]></description>
			<content:encoded><![CDATA[<p>This is how I changed my default boot option to my Ubuntu 9.10 , I installed my ubuntu through Wubi w/in my W7</p>
<p>1. Click Windows Knob -&gt;Control Panel</p>
<div id="attachment_246" class="wp-caption alignnone" style="width: 413px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/03/start.png"><img class="size-full wp-image-246" title="Start Control Panel" src="http://blog.dpjonline.com/wp-content/uploads/2010/03/start.png" alt="blog.dpjonline.com , Start Control Panel" width="403" height="468" /></a><p class="wp-caption-text">Start Control Panel</p></div>
<p>2. At the control panel window click &#8220;system&#8221;</p>
<div id="attachment_247" class="wp-caption alignnone" style="width: 780px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/03/controlpanel.png"><img class="size-full wp-image-247" title="Control Panel Window" src="http://blog.dpjonline.com/wp-content/uploads/2010/03/controlpanel.png" alt="www.blog.djonline.com , Control Panel Window" width="770" height="590" /></a><p class="wp-caption-text">Control Panel Window</p></div>
<p>3. at the system window, click &#8220;Advnace Settings&#8221;</p>
<div id="attachment_248" class="wp-caption alignnone" style="width: 780px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/03/system.png"><img class="size-full wp-image-248" title="Windows System Options" src="http://blog.dpjonline.com/wp-content/uploads/2010/03/system.png" alt="www.blog.dpjonline.com , Windows System Options" width="770" height="613" /></a><p class="wp-caption-text">Windows System Options</p></div>
<p>4. click advance tab-&gt;settings</p>
<p><a href="http://blog.dpjonline.com/wp-content/uploads/2010/03/advance.png"><img title="advance" src="http://blog.dpjonline.com/wp-content/uploads/2010/03/advance.png" alt="" width="426" height="474" /></a></p>
<p>5. choose ubuntu</p>
<p><a href="http://blog.dpjonline.com/wp-content/uploads/2010/03/choose-ubuntu.png"><img class="alignnone size-full wp-image-250" title="choose ubuntu" src="http://blog.dpjonline.com/wp-content/uploads/2010/03/choose-ubuntu.png" alt="" width="401" height="468" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2010/03/23/change-boot-options-wubi-installation-with-ubuntu-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ubuntu 9.10 no sound in compaq cq40</title>
		<link>http://blog.dpjonline.com/2010/03/18/ubuntu-9-10-no-sound-in-compaq-cq40/</link>
		<comments>http://blog.dpjonline.com/2010/03/18/ubuntu-9-10-no-sound-in-compaq-cq40/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 09:23:27 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ubuntu 9.10 alsa sound]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=242</guid>
		<description><![CDATA[these lines worked with my ubuntu 9.10 installed in compaq cq40. edit your /etc/modprobe.d/alsa-base.conf and add the following lines options snd-pcsp index=-2 alias snd-card-0 snd-hda-intel alias sound-slot-0 snd-hda-intel options snd-hda-intel model=dell-m4-1 options snd-hda-intel enable_msi=1 * use alsa in sound configuration]]></description>
			<content:encoded><![CDATA[<p>these lines worked with my ubuntu 9.10 installed in compaq cq40.</p>
<p>edit your /etc/modprobe.d/alsa-base.conf and add the following lines</p>
<p>options snd-pcsp index=-2<br />
alias snd-card-0 snd-hda-intel<br />
alias sound-slot-0 snd-hda-intel<br />
options snd-hda-intel model=dell-m4-1<br />
options snd-hda-intel enable_msi=1</p>
<p>* use alsa in sound configuration</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2010/03/18/ubuntu-9-10-no-sound-in-compaq-cq40/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to unlock Documents and Settings Folder in Windows 7</title>
		<link>http://blog.dpjonline.com/2010/02/26/how-to-unlock-documents-and-settings-folder-in-windows-7/</link>
		<comments>http://blog.dpjonline.com/2010/02/26/how-to-unlock-documents-and-settings-folder-in-windows-7/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 02:28:04 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unlock Documents and Settings Windows 7 Folder]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=230</guid>
		<description><![CDATA[Unlock Documents and Settings Windows 7 Folder]]></description>
			<content:encoded><![CDATA[<p>After updating windows 7, you might also experience that the Documents and Settings folder can no longer be opened.</p>
<p>It happened in my laptop after installing the updates from Microsoft.</p>
<p>This is what I did.</p>
<p>1. Right click documents and settings and click properties menu.</p>
<div id="attachment_231" class="wp-caption aligncenter" style="width: 387px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/02/w71.png"><img class="size-full wp-image-231" title="Docments and Settings Windows 7 Folder" src="http://blog.dpjonline.com/wp-content/uploads/2010/02/w71.png" alt="Docments and Settings Windows 7 Folder" width="377" height="489" /></a><p class="wp-caption-text">Documents and Settings Windows 7 Folder</p></div>
<p>2. On the property window click &#8220;security&#8221; tab.</p>
<p>3. Scroll down on the permission for Everyone.</p>
<div id="attachment_233" class="wp-caption aligncenter" style="width: 388px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/02/w72.png"><img class="size-full wp-image-233" title="Docments and Settings Windows 7 Folder" src="http://blog.dpjonline.com/wp-content/uploads/2010/02/w72.png" alt="Docments and Settings Windows 7 Folder" width="378" height="456" /></a><p class="wp-caption-text">Documents and Settings Windows 7 Folder</p></div>
<p>4. Uncheck Deny on the special permission. If it can&#8217;t be unchecked, remove &#8220;everyone&#8221; from the group or usernames by clicking the &#8220;Remove&#8221; button and proceed below. If it can be unchecked then click apply and you&#8217;re done.</p>
<p>5. After removing &#8220;Everyone&#8221;, add it back by clicking the &#8220;Add&#8221; button.</p>
<div id="attachment_232" class="wp-caption aligncenter" style="width: 482px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/02/w73.png"><img class="size-full wp-image-232" title="Docments and Settings Windows 7 Folder" src="http://blog.dpjonline.com/wp-content/uploads/2010/02/w73.png" alt="Docments and Settings Windows 7 Folder" width="472" height="260" /></a><p class="wp-caption-text">Documents and Settings Windows 7 Folder</p></div>
<p>6. On the &#8220;select user or group&#8221; window, click &#8220;advance&#8221; button.</p>
<div id="attachment_234" class="wp-caption aligncenter" style="width: 538px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/02/w74.png"><img class="size-full wp-image-234" title="Docments and Settings Windows 7 Folder" src="http://blog.dpjonline.com/wp-content/uploads/2010/02/w74.png" alt="Docments and Settings Windows 7 Folder" width="528" height="585" /></a><p class="wp-caption-text">Documents and Settings Windows 7 Folder</p></div>
<p>7. click &#8220;Find Now&#8221; button leaving the text fields empty.</p>
<div id="attachment_235" class="wp-caption aligncenter" style="width: 541px"><a href="http://blog.dpjonline.com/wp-content/uploads/2010/02/w75.png"><img class="size-full wp-image-235" title="Docments and Settings Windows 7 Folder" src="http://blog.dpjonline.com/wp-content/uploads/2010/02/w75.png" alt="Docments and Settings Windows 7 Folder" width="531" height="588" /></a><p class="wp-caption-text">Docments and Settings Windows 7 Folder</p></div>
<p>8. Choose &#8220;Everyone&#8221; and click the &#8220;OK&#8221; button.</p>
<p>9. Apply all changes, and you&#8217;re done.</p>
<p>happy coding!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2010/02/26/how-to-unlock-documents-and-settings-folder-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress index.php File</title>
		<link>http://blog.dpjonline.com/2010/02/10/wordpress-index-php-file/</link>
		<comments>http://blog.dpjonline.com/2010/02/10/wordpress-index-php-file/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 03:33:26 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=225</guid>
		<description><![CDATA[in case you accidentally overridden your wordpress index.php file, just copy the php code below. &#60;?php define(&#8216;WP_USE_THEMES&#8217;, true); /** Loads the WordPress Environment and Template */ require(&#8216;./wp-blog-header.php&#8217;); ?&#62; Happy Coding]]></description>
			<content:encoded><![CDATA[<p style="font-size:12px">
in case you accidentally overridden your wordpress index.php file, just copy the php code below.</p>
<p><em>&lt;?php<br />
</em></p>
<p><em>define(&#8216;WP_USE_THEMES&#8217;, true);<br />
/** Loads the WordPress Environment and Template */<br />
require(&#8216;./wp-blog-header.php&#8217;);<br />
?&gt;</em><br />
Happy Coding<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2010/02/10/wordpress-index-php-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to enable apache&#8217;s mod_rewrite module in ubuntu</title>
		<link>http://blog.dpjonline.com/2009/12/11/how-to-enable-apaches-mod_rewrite-module-in-ubuntu/</link>
		<comments>http://blog.dpjonline.com/2009/12/11/how-to-enable-apaches-mod_rewrite-module-in-ubuntu/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 02:25:54 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=209</guid>
		<description><![CDATA[mod_rewrite in ubuntu]]></description>
			<content:encoded><![CDATA[<p><br/><br/><br/><br/><br/></p>
<div style="width:100%;font-size:16px;">
To enable apache&#8217;s mod_rewrite in ubuntu type the following at the terminal window</p>
<p><em>sudo a2enmod rewrite</em></p>
<p>restart apache<br />
<em>sudo /etc/init.d/apache2 restart</em></p>
<p>a2enmod means &#8220;apache2 enable module <-module->&#8221;
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2009/12/11/how-to-enable-apaches-mod_rewrite-module-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add a favorite icon on your wordpress blog web address</title>
		<link>http://blog.dpjonline.com/2009/11/26/how-to-add-a-favorite-icon-on-your-wordpress-blog-web-address/</link>
		<comments>http://blog.dpjonline.com/2009/11/26/how-to-add-a-favorite-icon-on-your-wordpress-blog-web-address/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 09:28:24 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Favorite Icon]]></category>
		<category><![CDATA[Wordpress Trick]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=205</guid>
		<description><![CDATA[How to add a favorite icon on your wordpress blog web address]]></description>
			<content:encoded><![CDATA[<p><strong>Here are the steps on how to add a favorite icon on your wordpress blog web address</strong><br />
1. Choose your favorite image that you want to place on your web address.<br />
2. Resize your image to 16&#215;16 and save it as an ico image. (favicon.ico)<br />
    (You may use <a href="http://www.gimp.org" title="GIMP Photo Editor">GIMP Photo Editor</a> or any)<br />
3. Upload the image file (favicon.ico) to your wordpress blog root directory through an FTP software.<br />
4. Login to your wordpress admin. Go to dashboard, appearance and click Editor menu. Choose header.php at the right pane and add the following lines<br />
 <*link rel="shortcut icon" href="<*?php echo get_settings('home'); ?*>/favicon.ico&#8221; /*>  without the asterisk. Remove all the asterisk, I just made it so so that it wont be interpreted by the web browser.</p>
<p>here&#8217;s my example:<br />
in the address bar it looks like this <a href="http://cebu.dpjonline.com"><img src="http://img.dpjonline.com/cebu/cebutitle.png"/></a> </p>
<p>in the tab it looks like this <a href="http://cebu.dpjonline.com"><img src="http://img.dpjonline.com/cebu/cebutitle2.png"/></a> </p>
<p>And also on this blog. You can see my favorite icon at the address bar.</p>
<p>If you are going to bookmark it, the little icon will also be shown in the bookmark list.</p>
<p>Happy Coding</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2009/11/26/how-to-add-a-favorite-icon-on-your-wordpress-blog-web-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dojo.query: A CSS Query Engine For Dojo</title>
		<link>http://blog.dpjonline.com/2009/11/24/dojo-query-a-css-query-engine-for-dojo/</link>
		<comments>http://blog.dpjonline.com/2009/11/24/dojo-query-a-css-query-engine-for-dojo/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 06:19:07 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Dojo]]></category>
		<category><![CDATA[dojo.query]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=181</guid>
		<description><![CDATA[dojo.query (returns dojo.NodeList) dojo.require(&#8220;dojo._base.query&#8221;); dojo.query() is the swiss army knife of DOM node manipulation in Dojo. Much like Prototype’s “$$” (bling-bling) function or JQuery’s “$” function, dojo.query provides robust, high-performance CSS-based node selector support with the option of scoping searches to a particular sub-tree of a document. Supported Selectors: dojo.query() supports a rich set of [...]]]></description>
			<content:encoded><![CDATA[<div style="width:85%;">dojo.query (returns dojo.NodeList)<br />
dojo.require(&#8220;dojo._base.query&#8221;);</p>
<p>dojo.query() is the swiss army knife of DOM node manipulation in Dojo. Much like Prototype’s “$$” (bling-bling) function or JQuery’s “$” function, dojo.query provides robust, high-performance CSS-based node selector support with the option of scoping searches to a particular sub-tree of a document.<br />
Supported Selectors:</p>
<p>dojo.query() supports a rich set of CSS3 selectors, including:</p>
<ul>
<li>class selectors (e.g., .foo)</li>
<li>node type selectors like span</li>
<li>descendant selectors</li>
<li> &gt; child element selectors</li>
<li> #foo style ID selectors</li>
<li> * universal selector</li>
<li> ~, the immediately preceeded-by sibling selector</li>
<li> +, the preceeded-by sibling selector</li>
<li> attribute queries:
<ul>
<li>[foo] attribute presence selector</li>
<li> [foo='bar'] attribute value exact match</li>
<li> [foo~='bar'] attribute value list item match</li>
<li> [foo^='bar'] attribute start match</li>
<li> [foo$='bar'] attribute end match</li>
<li> [foo*='bar'] attribute substring match</li>
</ul>
</li>
<li> :first-child, :last-child, and : only-child positional selectors</li>
<li> :empty content emtpy selector</li>
<li> :checked pseudo selector</li>
<li> :nth-child(n), :nth-child(2n+1) style positional calculations</li>
<li> :nth-child(even), :nth-child(odd) positional selectors</li>
<li> :not(&#8230;) negation pseudo selectors</li>
</ul>
<p>Usage<br />
var foo: dojo.NodeList=dojo.query(query: String, root: String|DOMNode?, listCtor: Function?);</p>
<table border="0" width="90%">
<tbody>
<tr>
<th>parameter</th>
<th>type</th>
<th>description</th>
</tr>
<tr>
<td>query</td>
<td>String</td>
<td>The CSS3 expression to match against. For details on the syntax of CSS3 selectors, see</td>
</tr>
<tr>
<td>root</td>
<td>String|DOMNode	Optional.</td>
<td>A DOMNode (or node id) to scope the search from. Optional.</td>
</tr>
<tr>
<td>listCtor</td>
<td>Function</td>
<td>Optional.</td>
</tr>
</tbody>
</table>
<p><strong>Example 1</strong></p>
<p>search the entire document for elements with the class “foo”:</p>
<p>dojo.query(&#8220;.foo&#8221;);</p>
<p>these elements will match:</p>
<p><span class="foo"> </span><br />
<span class="foo bar"> </span></p>
<p class="thud foo">
<p><strong>Example 2</strong></p>
<p>search the entire document for elements with the classes “foo” and “bar”:</p>
<p>dojo.query(&#8220;.foo.bar&#8221;);</p>
<p>these elements will match:</p>
<p><span class="foo bar"> </span></p>
<p>while these will not:</p>
<p><span class="foo"> </span></p>
<p class="thud foo">
<p><strong>Example 3</strong></p>
<p>find elements which are descendants of paragraphs and which have a “highlighted” class:</p>
<p>dojo.query(&#8220;p span.highlighted&#8221;);</p>
<p>the innermost span in this fragment matches:</p>
<p class="foo"><span>&#8230;<br />
<span class="highlighted foo bar">&#8230;</span><br />
</span></p>
<p><strong>Example 4</strong></p>
<p>set an “odd” class on all odd table rows inside of the table #tabular_data, using the &gt; (direct child) selector to avoid affecting any nested tables:</p>
<p>dojo.query(&#8220;#tabular_data &gt; tbody &gt; tr:nth-child(odd)&#8221;).addClass(&#8220;odd&#8221;);</p>
<p><strong>Example 5</strong></p>
<p>remove all elements with the class “error” from the document and store them in a list:</p>
<p>var errors = dojo.query(&#8220;.error&#8221;).orphan();</p>
<p><strong>Example 6</strong></p>
<p>add an onclick handler to every submit button in the document which causes the form to be sent via Ajax instead:</p>
<p>dojo.query(&#8220;input[type='submit']&#8220;).onclick(function(e){<br />
dojo.stopEvent(e); // prevent sending the form<br />
var btn = e.target;<br />
dojo.xhrPost({<br />
form: btn.form,<br />
load: function(data){<br />
// replace the form with the response<br />
var div = dojo.doc.createElement(&#8220;div&#8221;);<br />
dojo.place(div, btn.form, &#8220;after&#8221;);<br />
div.innerHTML = data;<br />
dojo.style(btn.form, &#8220;display&#8221;, &#8220;none&#8221;);<br />
}<br />
});<br />
});</p>
<p><strong>Example 7</strong></p>
<p>Find every element in the page with the class &#8220;blueButton&#8221; assigned<br />
dojo.addOnLoad(function(){<br />
dojo.query(&#8220;.blueButton&#8221;).forEach(function(node, index, arr){<br />
console.debug(node.innerHTML);<br />
});<br />
});</p>
<p><strong>Simple Queries</strong></p>
<p>// all h3 elements<br />
dojo.query(&#8216;h3&#8242;)<br />
// all h3 elements which are first-child of their parent node<br />
dojo.query(&#8216;h3:first-child&#8217;)<br />
// a node with id=&#8221;main&#8221;<br />
dojo.query(&#8216;#main&#8217;)<br />
// all h3 elements within a node with id=&#8221;main&#8221;<br />
dojo.query(&#8216;#main h3&#8242;)<br />
// a &#8216;div&#8217; with an id=&#8221;main&#8221;<br />
dojo.query(&#8216;div#main&#8217;)<br />
// all h3 elements within a div with id=&#8221;main&#8221;<br />
dojo.query(&#8216;div#main h3&#8242;)<br />
// all h3 elements that are immediate children of a &#8216;div&#8217;, within node with id=&#8221;main&#8221;<br />
dojo.query(&#8216;#main div &gt; h3&#8242;)<br />
// all nodes with class=&#8221;foo&#8221;<br />
dojo.query(&#8216;.foo&#8217;)<br />
// all nodes with classes &#8220;foo&#8221; and &#8220;bar&#8221;<br />
dojo.query(&#8216;.foo.bar&#8217;)<br />
// all h3 elements that are immediate children of a node with id=&#8221;main&#8221;<br />
dojo.query(&#8216;#main &gt; h3&#8242;)</p>
<p><strong>Immediate Child Elements</strong></p>
<p>dojo.query(&#8216;#main &gt; *&#8217;)<br />
dojo.query(&#8216;#main &gt;&#8217;)<br />
dojo.query(&#8216;.foo &gt;&#8217;)<br />
dojo.query(&#8216;.foo &gt; *&#8217;)</p>
<p><strong>Queries rooted at a given element</strong></p>
<p>dojo.query(&#8216;&gt; *&#8217;, dojo.byId(&#8216;container&#8217;))<br />
dojo.query(&#8216;&gt; h3&#8242;, &#8216;main&#8217;)</p>
<p><strong>Compound queries<br />
Combining 2 or more selectors to produce one resultset</strong></p>
<p>dojo.query(&#8216;.foo, .bar&#8217;)</p>
<p><strong>Multiple class attribute values</strong></p>
<p>dojo.query(&#8216;.foo.bar&#8217;)</p>
<p><strong>Using attribute selectors</strong></p>
<p><strong>Picking out elements with particular attributes/values</strong></p>
<p>dojo.query(&#8216;[foo]&#8216;)<br />
dojo.query(&#8216;[foo$=\"thud\"]&#8216;)<br />
dojo.query(&#8216;[foo$=thud]&#8216;)<br />
dojo.query(&#8216;[foo$=\"thudish\"]&#8216;)<br />
dojo.query(&#8216;#main [foo$=thud]&#8216;)<br />
dojo.query(&#8216;#main [ title $= thud ]&#8216;)<br />
dojo.query(&#8216;#main span[ title $= thud ]&#8216;)<br />
dojo.query(&#8216;[foo|=\"bar\"]&#8216;)<br />
dojo.query(&#8216;[foo|=\"bar-baz\"]&#8216;)<br />
dojo.query(&#8216;[foo|=\"baz\"]&#8216;)<br />
dojo.query(&#8216;.foo:nth-child(2)&#8217;)</p>
<p><strong>Descendant selectors</strong></p>
<p>dojo.query(&#8216;&gt;&#8217;, &#8216;container&#8217;)<br />
dojo.query(&#8216;&gt; *&#8217;, &#8216;container&#8217;)<br />
dojo.query(&#8216;&gt; [qux]&#8216;, &#8216;container&#8217;)</p>
<p><strong>Sibling selectors</strong></p>
<p>dojo.query(&#8216;.foo + span&#8217;)<br />
dojo.query(&#8216;.foo ~ span&#8217;)<br />
dojo.query(&#8216;#foo ~ *&#8217;)<br />
dojo.query(&#8216;#foo ~&#8217;)</p>
<p><strong>Sub-selectors, using not()</strong></p>
<p>dojo.query(&#8216;#main span.foo:not(span:first-child)&#8217;)<br />
dojo.query(&#8216;#main span.foo:not(:first-child)&#8217;)</p>
<p><strong>Nth-child</strong></p>
<p>dojo.query(&#8216;#main &gt; h3:nth-child(odd)&#8217;)<br />
dojo.query(&#8216;#main h3:nth-child(odd)&#8217;)<br />
dojo.query(&#8216;#main h3:nth-child(2n+1)&#8217;)<br />
dojo.query(&#8216;#main h3:nth-child(even)&#8217;)<br />
dojo.query(&#8216;#main h3:nth-child(2n)&#8217;)<br />
dojo.query(&#8216;#main h3:nth-child(2n+3)&#8217;)<br />
dojo.query(&#8216;#main &gt; *:nth-child(2n-5)&#8217;)</p>
<p><strong>Using pseudo-selectors</strong></p>
<p>dojo.query(&#8216;#main2 &gt; :checked&#8217;)<br />
dojo.query(&#8216;#main2 &gt; input[type=checkbox]:checked&#8217;)<br />
dojo.query(&#8216;#main2 &gt; input[type=radio]:checked&#8217;)</p>
<p><strong>Count of checked checkboxes in a form with id myForm</strong><br />
dojo.query(&#8216;input:checked&#8217;, &#8216;myForm&#8217;).length
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2009/11/24/dojo-query-a-css-query-engine-for-dojo/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Rearrange Your WordPress Navigation Menu</title>
		<link>http://blog.dpjonline.com/2009/11/12/how-to-rearrange-your-wordpress-navigation-menu/</link>
		<comments>http://blog.dpjonline.com/2009/11/12/how-to-rearrange-your-wordpress-navigation-menu/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 01:59:07 +0000</pubDate>
		<dc:creator>pRiMe</dc:creator>
				<category><![CDATA[IT Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Arrange Horizontal Menu]]></category>
		<category><![CDATA[Wordpress Navigation Menu]]></category>

		<guid isPermaLink="false">http://blog.dpjonline.com/?p=177</guid>
		<description><![CDATA[Rearranging Wordpress Navigation Menu]]></description>
			<content:encoded><![CDATA[<p>I was wondering how can i rearrange wordpress navigation menu. I usually place the &#8220;About&#8221; menu at the right most of my page. In wordpress&#8217; case it is placed right after &#8220;Home&#8221; menu. When you add another page, the page&#8217;s navigation menu will be automatically be placed right beside the &#8220;About&#8221; menu. I&#8217;ve rearranged mine like this wordpress blog [<a href="http://cebu.dpjonline.com">Cebu, Philippines. The Queen City Of The South</a>] <br/><br />
<a href="http://cebu.dpjonline.com"><img src="http://img.dpjonline.com/cebu/cebu1.png"></a><br/><br />
To do it please follow the simple steps below:<br/></p>
<ul>
<li>1. Login to your wordpress admin page.</li>
<li>2. On the dashboard, click pages.<br /><img src="http://img.dpjonline.com/cebu/cebu2.png" alt="http://cebu.dpjonline.com"/></li>
<li>3. On the Edit Pages window, click the page you want to rearrange. Do one after the other.</li>
<li>4. At the right part of the edit window, you can find attributes option. Place a number in the &#8220;Order&#8221; field that corresponds to your page menu location. It is arranged in ascending order from left to right.<br/><img src="http://img.dpjonline.com/cebu/cebu3.png" alt="http://cebu.dpjonline.com"/>
<li>
</ul>
<p>To view a working sample, you can visit http://cebu.dpjonline.com </p>
<p>Happy Coding</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dpjonline.com/2009/11/12/how-to-rearrange-your-wordpress-navigation-menu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
