﻿<?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 &#38; Co</title>
	<atom:link href="http://kwatog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwatog.com</link>
	<description>tech notes and general nonsense</description>
	<lastBuildDate>Sun, 19 May 2013 11:00:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>SBL-EIM-00205: Failed to load the application dictionary</title>
		<link>http://kwatog.com/blog/sbl-eim-00205-failed-to-load-the-application-dictionary/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sbl-eim-00205-failed-to-load-the-application-dictionary</link>
		<comments>http://kwatog.com/blog/sbl-eim-00205-failed-to-load-the-application-dictionary/#comments</comments>
		<pubDate>Fri, 17 May 2013 01:55:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Siebel]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=945</guid>
		<description><![CDATA[If you hit the error in the title, the best thing to investigate this is by looking at the log file. In my case, I found the log below. Error.. <a href="http://kwatog.com/blog/sbl-eim-00205-failed-to-load-the-application-dictionary/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>If you hit the error in the title, the best thing to investigate this is by looking at the log file. In my case, I found the log below.<br />
<span id="more-945"></span><br />
<code>Error SBL-EIM-00205: Missing temporary column for S_EVT_FUL_REQ.X_SR_ID from</code></p>
<p>That gave me an idea that there could something amiss in the data dictionary. Hat tip to my  <a href="http://sg.linkedin.com/pub/anton-misael-de-jesus/70/a62/485">Siebel Consultant friends</a> for pointing me to the data dictionary cache files to begin with. </p>
<p>So this is what we did. </p>
<p>Try the following to resolve the issue:<br />
1) Reapply latest changes in the table<br />
2) Delete diccache.dat and eimcolrelcache.dat file from SiebSrvr\Bin directory.<br />
3) Restart Siebel<br />
4) Try running the EIM job again</p>
<p><img src="http://kwatog.com/wp-content/uploads/2013/05/siebel_eim_data_dic_library.jpg" alt="siebel_eim_data_dic_library" width="591" height="122" class="aligncenter size-full wp-image-948" /> </p>
<h3>Some Thoughts</h3>
<p>I couldn&#8217;t have find the cause of this if I did not ask somebody. That&#8217;s why it comes handy if you have the <a href="http://sg.linkedin.com/pub/lorenzo-bercasio/2a/42a/baa">Siebel Administrators</a> as your friend. </p>
<p>No thanks to the Siebel Bookshelf.</p>
<p>http://docs.oracle.com/cd/B31104_02/books/ImpAppsDB2390/ImpAppsDB2390_MigratDataUsEIM14.html</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/sbl-eim-00205-failed-to-load-the-application-dictionary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expect Debug Mode Enable/Disable</title>
		<link>http://kwatog.com/blog/expect-debug-mode-enabledisable/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=expect-debug-mode-enabledisable</link>
		<comments>http://kwatog.com/blog/expect-debug-mode-enabledisable/#comments</comments>
		<pubDate>Tue, 23 Apr 2013 11:03:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=939</guid>
		<description><![CDATA[If you want to debug your expect program, just add the code below at the very top of your program. #!/usr/bin/expect -d Notice the -d at the end of the.. <a href="http://kwatog.com/blog/expect-debug-mode-enabledisable/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>If you want to debug your expect program, just add the code below at the very top of your program.<br />
<code><br />
#!/usr/bin/expect  -d<br />
</code><br />
Notice the -d at the end of the line. That puts the expect in debug mode. Also, take note that your expect program may be in another path. The code above is just an example.<br />
<span id="more-939"></span></p>
<h3>Side Story</h3>
<p>One of the previous developer forget to remove the -d parameter. So when the expect program runs in production, the log is too big. When the issue was raised to me, I didn&#8217;t have a clue. I&#8217;m not an Linux expert anyway. I just got lucky that I noticed that parameter on first line.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/expect-debug-mode-enabledisable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HDC Galaxy S3 EX / Star B92m Singapore Review</title>
		<link>http://kwatog.com/blog/hdc-galaxy-s3-ex-star-b92m-singapore-review/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hdc-galaxy-s3-ex-star-b92m-singapore-review</link>
		<comments>http://kwatog.com/blog/hdc-galaxy-s3-ex-star-b92m-singapore-review/#comments</comments>
		<pubDate>Thu, 31 Jan 2013 16:19:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[b92m]]></category>
		<category><![CDATA[galaxy s3 ex]]></category>
		<category><![CDATA[hdc]]></category>
		<category><![CDATA[htc one x]]></category>
		<category><![CDATA[samsung]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=895</guid>
		<description><![CDATA[After my Samsung Galaxy S2 met a terrible accident,  I was on a hunt for a replacement. Galaxy Note 2 was the frontrunner  but due to its size,  price and.. <a href="http://kwatog.com/blog/hdc-galaxy-s3-ex-star-b92m-singapore-review/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>After my Samsung Galaxy S2 met a terrible accident,  I was on a hunt for a replacement. Galaxy Note 2 was the frontrunner  but due to its size,  price and weight,  I needed some serious and compelling reasons beyond its magic wand (stylus) to convince me. And then later,  I realized I needed a dual-sim phone. That&#8217;s where the <strong>HDC Galaxy S3 EX</strong> came into the picture. I bought one and I&#8217;ll be giving sharing my experience with it.<br />
<span id="more-895"></span><br />
<strong>The Star B92m/HDC Galaxy S3 EX Specification </strong></p>
<table align="left">
<tbody>
<tr>
<td><strong>CPU</strong></td>
<td>MT6577 Dual Core 1.0GHz<br />
GPU: PowerVR SGX 531</td>
</tr>
<tr>
<td><strong>OS</strong></td>
<td>Android 4.0.4 Ice Cream Sandwich (ICS)<br />
Language: English, Italian, French. Spanish, Russian, Thai, Vietnamese, Arabic, German, Indonesian, Chinese, Turkish, Portuguese, Malay, others</td>
</tr>
<tr>
<td><strong>Memory</strong></td>
<td>RAM: 1GB / ROM: 2.5GB<br />
Micro SD Memory Card (TF-Card), MAX support 32GB</td>
</tr>
<tr>
<td><strong>Size</strong></td>
<td>138 x 70 x 9 mm</td>
</tr>
<tr>
<td><strong>Weight</strong></td>
<td>180 g</td>
</tr>
<tr>
<td><strong>Screen</strong></td>
<td>4.7 inch IPS Capacitive Multi-touch Screen<br />
HD resolution (1280 x 720 pixels)<br />
16 million colors</td>
</tr>
<tr>
<td><strong>Network</strong></td>
<td>GSM + WCDMA (Dual SIM)<br />
    GSM 850/900/1800/1900 MHz<br />
    WCDMA 850/2100MHz</td>
</tr>
<tr>
<td><strong>Color</strong></td>
<td>Black</td>
</tr>
<tr>
<td><strong>GPS</strong></td>
<td>Built In GPS &amp; A-GPS</td>
</tr>
<tr>
<td><strong>Connection</strong></td>
<td>Bluetooth with EDR &amp; A2DP<br />
Wi-Fi : IEEE 802.11 b/g<br />
micro USB 2.0</td>
</tr>
<tr>
<td><strong>Camera</strong></td>
<td>Dual Camera<br />
Back 12.0 megapixel with Auto Focus and LED Flash<br />
Front 1.3 megapixel<br />
Supports recording of video</td>
</tr>
<tr>
<td><strong>Radio</strong></td>
<td>FM</td>
</tr>
<tr>
<td><strong>Video</strong></td>
<td>AVI , MP4 , FLV , 3GP , MOV , ASF , MPEG , RMVB , etc.</td>
</tr>
<tr>
<td><strong>Audio</strong></td>
<td>MP3 , AAC , WAV , etc. / 3.5 mm Audio Jack</td>
</tr>
<tr>
<td><strong>Special functions</strong></td>
<td>Gravity Sensor, Proximity Sensor, Light Sensor, FM Radio, Wifi, GPS, Multi-touch Capacitive Screen, Dual SIM, Schedule Power On/Off</td>
</tr>
<tr>
<td><strong>Battery and Accessories</strong></td>
<td>- Li-ion battery 2000 mAh<br />
- Earphone / 3.5 mm Audio Jack<br />
- USB Cable<br />
- Charger</td>
</tr>
<tr>
<td><strong>Price</strong></td>
<td>Click the link below.<script src="http://www.fastcardtech.com/affiliate.php?charset=UTF8&#038;gid=7699&#038;u=78263&#038;type=5"></script></td>
</tr>
</tbody>
</table>
<div class="wp-caption aligncenter" style="width: 509px"><img src="http://kwatog.files.wordpress.com/2013/02/wpid-20130201_132419-1-1_01.jpg?w=630" width="499" height="357" class />
<p class="wp-caption-text">The Real Samsung Galaxy S3 and the HDC Galaxy S3 EX KIRF</p>
</div>
<p>Here&#8217;s my take on the individual functions</p>
<p><strong>Overall Performance</strong><br />
To be honest, I never expected so much with MediaTek SoC. This device is my first mobile phone equipped with it. But then, it was a pleasant surprise to realize that MTK6577 is really a very capable processor and deserves some respect on its own right. After rooting my phone and installing Nova launcher, it now performs even better than my Galaxy S2. Navigation is fast and the response is quick. It&#8217;s still on ICS now so I imagine performance will be even betteronce I install the buttery smooth Jelly Bean.<br />
<a href="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_s3_ex_b92m_speedtest.png"><img src="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_s3_ex_b92m_speedtest-168x300.png" alt="Star B9M Speed Test" width="168" height="300" class="aligncenter size-medium wp-image-918" /></a><br />
<strong>WiFi</strong><br />
The WiFi works well, an wifi-b of the bygone era. It was able to detect and connect to my Wireless-N router in no time, though. However,  I think it is having problem when the router is a bit far. When I say far, I mean around 15 meters away from the router with doors and concrete walls in between. It can detect and connect to the router but the connection randomly drops. </p>
<p>I didn&#8217;t get encounter that in all my other devices. Maybe it&#8217;s a bit early to make conclusions so I&#8217;ll do further tests later. I&#8217;d like to emphasize that the phone can connect but there are random resets of connection. </p>
<p>I also encounter this on our office WiFi. It&#8217;s not a big issue yet since it is able to reconnect rather quickly. Actually,  I think it just shows the actual and real time connection status. Other phones may still be showing some connection when in reality,  it is already dropped. </p>
<p><strong>Bluetooth</strong><br />
It works flawlessly.  I was able to connect to my Creative bluetooth speakers without problems and nor any noticeable difference in sounds. If anything,  the sound in the bluetooth speaker is even better with its sub-woofer.  It works as expected and does the job really well. </p>
<p><strong>Display</strong><br />
This 4.7 IPS 720p SuperLCD is just crisp and gorgeous. I was initially concerned about the high resolution not being able to be driven well by a rather dated graphics processor. However,  it actually turned really well.  I tried to use the GS2 again and the resolution looked awful. I played Subway Surfer with no stuttering observed. I haven&#8217;t used it for more graphics intensive games yet,  though. </p>
<p>As for the color, I think is a bit washed just like in HTC One X. It doesn&#8217;t compare to Samsung Galaxy S2&#8242;s SuperAMOLED which has more vivid colors and darker black.  </p>
<p>HD videos runs well as well as HD YouTube videos. Honestly,  I don&#8217;t have real complaints about it. I love it.  </p>
<p>I&#8217;m also not sure if it is really a gorilla glass as claimed in the ads. I don&#8217;t want to try to scratch so I have installed a screen protector(comes in the package) on it. </p>
<p><strong>Battery</strong><br />
This phone has an enormous 2000mAh battery. It partly explains the added heft. At the same time, it also means it can last longer. In the past week that I was using this, I&#8217;m getting an average of 11 hrs of use time. Last Tuesday, it even lasted for almost 16hours with normal use. That&#8217;s enough time to last a workday plus more.<br />
<a href="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_s3_ex_b92m_battery_meter.png"><img src="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_s3_ex_b92m_battery_meter-168x300.png" alt="Star b92m Battery " width="168" height="300" class="aligncenter size-medium wp-image-917" /></a><br />
For comparison&#8217;s sake, my GS2 only lasts 6hours max. At around 4hours, I already need to plug the device into the charger. That doesn&#8217;t happen with the B92m. </p>
<p>And what&#8217;s more?  I have a spare battery that came wth the package. Sweet! </p>
<p><strong>Camera</strong><br />
The HDC Galaxy S3 EX camera is good but not exactly great. It is advertised as 12mp but we cannot independently confirm that despite what Antutu says. The reason being is that reports say MTK6577 can only handle up to 8mp. While the it may be true that the sensor is capable in capturing 12mp images,  the SoC limit may resample the image and then another software upsampling happens to make resize it to 12mp. It&#8217;s a pure speculation on my part so,  I don&#8217;t really know. </p>
<p>On the quality of the output,  it&#8217;s not as sharp as I wanted. Any change on the default settings results to a different color output(i. e,  yellow becomes a bit pale when you change the output settings from 12mp to 8mp. </p>
<p>It won&#8217;t be able to hold a candle if compared to HTC OneX but I can say the image output is on par with the Samsung Galaxy S2. One thing hat it does stand out over GS2 is the speed on which you can take photos.  It&#8217;s not  as fast as the OneX but it blows GS2 over the water.  Dare I say that its camera is faster than the iPhone5.</p>
<p>However, we have to remind ourselves that regardless of the claims on on he sensor,  it is still a smartphone. It&#8217;s not like it would replace our real cameras but I think it is good to enough. </p>
<p>Here are some shots.</p>
<div id="attachment_906" class="wp-caption aligncenter" style="width: 310px"><a href="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_s3_sample_shots_01-Medium.jpg"><img src="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_s3_sample_shots_01-Medium-300x225.jpg" alt="HDC Galaxy S3 EX Sample Indoor Shot" width="300" height="225" class="size-medium wp-image-906" /></a>
<p class="wp-caption-text"><a href='http://www.fastcardtech.com/goods.php?u=78263&#038;id=7699'>HDC Galaxy S3 EX</a> Sample Indoor Shot</p>
</div>
<div id="attachment_905" class="wp-caption alignnone" style="width: 310px"><a href="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_ex_camera_sample-Medium.jpg"><img src="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_ex_camera_sample-Medium-300x225.jpg" alt="HDC Galaxy S3 EX Sample Outdoor Shot" width="300" height="225" class="size-medium wp-image-905" /></a>
<p class="wp-caption-text"><a href='http://www.fastcardtech.com/goods.php?u=78263&#038;id=7699'>HDC Galaxy S3 EX</a> Sample Outdoor Shot</p>
</div>
<div id="attachment_904" class="wp-caption alignnone" style="width: 235px"><a href="http://kwatog.com/wp-content/uploads/2013/01/b92m_camera_sample_img-Medium.jpg"><img src="http://kwatog.com/wp-content/uploads/2013/01/b92m_camera_sample_img-Medium-225x300.jpg" alt="HDC Galaxy S3 EX Sample Shot" width="225" height="300" class="size-medium wp-image-904" /></a>
<p class="wp-caption-text"><a href='http://www.fastcardtech.com/goods.php?u=78263&#038;id=7699'>HDC Galaxy S3 EX</a> Sample Shot</p>
</div>
<div id="attachment_900" class="wp-caption aligncenter" style="width: 310px"><a href="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_S3_ex_flowers-Medium.jpg"><img src="http://kwatog.com/wp-content/uploads/2013/01/hdc_galaxy_S3_ex_flowers-Medium-300x225.jpg" alt="HDC Galaxy S3 EX Sample Flower Shot" width="300" height="225" class="size-medium wp-image-900" /></a>
<p class="wp-caption-text"><a href='http://www.fastcardtech.com/goods.php?u=78263&#038;id=7699'>HDC Galaxy S3 EX</a> Sample Flower Shot</p>
</div>
<p><strong>GPS</strong><br />
This is one of the biggest blot on this phone. GPS simply doesn&#8217;t work. There are fixes available from xda,  though.  So if you need GPS(I really need),  you&#8217;ll have to root the device and apply the fixes. </p>
<p>I haven&#8217;t fixed mine yet. I&#8217;ll do it over the weekend. </p>
<p><strong>Call Quality</strong><br />
A few minutes after inserting the SIM and powering up the phone,  an office colleagues called. It was an unexpected call and I didn&#8217;t know what to expect. I was surprised with the call quality.  It is on par with the branded phones. Nothing special but it&#8217;s not like we&#8217;re expecting hifi stereo sound there. </p>
<p><strong>Summary</strong><br />
The HDC Galaxy S3 EX is a very capable phone and a polished clone of the real Samsung Galaxy S3. It is not for everybody but if you need a dual-sim phone, then this phone is for you. It has an almost stock Android on it. The phone costs a third but almost as capable of the real thing. Buying this clone phone will be worth every penny.</p>
<p>This phone serves me well on my daily tasks. Since it has Android on it, it can do what most of the other smartphones can do. In some cases, I&#8217;m sure this phone excels. Even now with my Samsung Galaxy S2 back to life, I&#8217;m still using the b92m as my main phone. That&#8217;s primarily because of the battery life, the 720p screen and most importantly, the dual-sim capability. Sad to say, the GS2 is now my spare phone regardless of how I loved it. </p>
<p><script src="http://www.fastcardtech.com/affiliate.php?charset=UTF8&#038;gid=7699&#038;u=78263&#038;type=5"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/hdc-galaxy-s3-ex-star-b92m-singapore-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Get Version of HP-UX</title>
		<link>http://kwatog.com/blog/how-to-get-version-of-hp-ux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-version-of-hp-ux</link>
		<comments>http://kwatog.com/blog/how-to-get-version-of-hp-ux/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 03:35:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[hp ux]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=889</guid>
		<description><![CDATA[In case you wonder what version of HP-UX you are running, the command to use is uname. Here&#8217;s the syntax. uname -r The output will be something like this B.11.31.. <a href="http://kwatog.com/blog/how-to-get-version-of-hp-ux/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>In case you wonder what version of HP-UX you are running, the command to use is uname. Here&#8217;s the syntax.<br />
<code><br />
uname -r<br />
</code><br />
The output will be something like this<br />
<code><br />
B.11.31<br />
</code><br />
<span id="more-889"></span><br />
You can also play around with other parameters like -s<br />
<code><br />
uname -s<br />
</code><br />
Output would be<br />
<code><br />
HP-UX<br />
</code></p>
<p>As always, check the manual for this command to the other options.<br />
<code><br />
man uname<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/how-to-get-version-of-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Media Upload Failure [SOLVED]</title>
		<link>http://kwatog.com/blog/wordpress-media-upload-failure-solved/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-media-upload-failure-solved</link>
		<comments>http://kwatog.com/blog/wordpress-media-upload-failure-solved/#comments</comments>
		<pubDate>Sat, 05 Jan 2013 01:33:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=881</guid>
		<description><![CDATA[The other day, I&#8217;ve been pulling my hair because suddenly, the media upload on WordPress is not working properly on one of my servers. I&#8217;m sure this kind of problem.. <a href="http://kwatog.com/blog/wordpress-media-upload-failure-solved/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>The other day, I&#8217;ve been pulling my hair because suddenly, the media upload on WordPress is not working properly on one of my servers. I&#8217;m sure this kind of problem happened to me before. For this time, I traced back what I did the previous days to identify the possible cause of problem. </p>
<p>Based on my log, I only did two things as listed below.</p>
<ul>
<li>Upgrade WordPress to 3.5</li>
<li>Upgrade MySQL to 5.5 (see <a href="http://kwatog.com/blog/how-to-upgrade-mysql-5-0-to-5-5-in-centos/">instructions here</a></li>
</ul>
<p>I initially suspected it was a problem brought by WP 3.5 with their brand spanking new media upload module. But endless googling says otherwise. It must be an access rights problem.<br />
<span id="more-881"></span></p>
<h3>Symptoms and Problems</h3>
<p>To be clear, there are three different symptoms that I see on the websites loaded into this server.</p>
<ol>
<li>A website cannot create the folder (wp-content/uploads/2013/01). I created the folders but the problem stays.</li>
<li>Another site says &#8220;Unable to move image.jpg to wp-content/uploads/2012/01&#8243;</li>
<li>One website asks for FTP credentials when trying upgrade WordPress. It should be automatic.</li>
</ol>
<p>By now, I&#8217;m pretty sure that I&#8217;m dealing with an access rights problem. So I started troubleshooting.</p>
<h3>Troubleshooting</h3>
<ol>
<li><strong>Check File/Folder Owners</strong> &#8211; Since I run suPHP, I have different users for every group of websites. I made sure that all the folders are owned by the respective users. Even after doing that, the problem still persists. </li>
<li><strong>Check /tmp folder access</strong> &#8211; I made sure that all my suPHP users have access to this folder. they all have. I remove the access and the error message is now different. So I put back the access rights again Symptom #2 came back. That means Apache can upload the file but just can&#8217;t transfer it to the destination folder.</li>
<li><strong>Who is writing the file</strong> &#8211; This is where things get interesting. Remember I use suPHP? Files must be written by the suPHP users and not apache. So what I did was chmod wp-content/uploads/2013/ and wp-content/uploads/2013/01 to 777 (write accessible to the world) and then tried to upload a file. <strong>IT WORKED!</strong> I checked the owner of the file and found out that it was apache and not the suPHP user. So there must be something wrong on my server.</li>
<li><strong>Check if suPHP is running</strong> &#8211; As it turns out, suPHP is not running. I still don&#8217;t know when it started but somehow, it does not work. How I manage to bring it back will be for another post.</li>
</ol>
<h3>The Solution</h3>
<p>In the end, the root cause is that suPHP is not running on my server. That means it is the apache user that is actually running on all those sites. Since the files and folders are owned by different users, apache cannot write into those folders. It also cannot create folders.<br />
Once I sorted out the problem with suPHP, re-ran chown on all the folders just to make sure that all files and folders are owned by the correct user. I also put back the correct folder rights(755) on wp-content/uploads/2013/ and wp-content/uploads/2013/01 folders so that it won&#8217;t be writeable by the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/wordpress-media-upload-failure-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Admin Rights to Existing User in CentOS/Linux</title>
		<link>http://kwatog.com/blog/add-admin-rights-to-existing-user-in-centoslinux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-admin-rights-to-existing-user-in-centoslinux</link>
		<comments>http://kwatog.com/blog/add-admin-rights-to-existing-user-in-centoslinux/#comments</comments>
		<pubDate>Sun, 30 Dec 2012 10:15:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=873</guid>
		<description><![CDATA[One of the important things to do in setting up a VPS or any Linux webserver is to NOT use the root user after the initial setup. The reason is.. <a href="http://kwatog.com/blog/add-admin-rights-to-existing-user-in-centoslinux/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>One of the important things to do in setting up a VPS or any Linux webserver is to NOT use the root user after the initial setup. The reason is obvious, root is so powerful. When connecting remotely to our server from a not-so-secure internet connection, a small mistake would mean your root password can be viewed by unscrupulous people. To work around it, we need to create a user that can act as administrators. For linux, particularly RedHat based Fedora and CentOS, it is called sudoers.<br />
<span id="more-873"></span><br />
Sudoers (/etc/sudoers) allows delegation of roles and permissions for users or groups without sharing the root password. To add/del/edit the sudoers, connect as root and then run visudo.</p>
<p><code><br />
[root]# visudo<br />
</code></p>
<p>Append the following<br />
<code><br />
userid  ALL=(ALL)       ALL<br />
</code></p>
<p>example:<br />
<code><br />
kwatog  ALL=(ALL)       ALL<br />
</code></p>
<p>Once logged-in into the ssh, you can run the command below to gain root access.<br />
<code><br />
[kwatog]# sudo -s<br />
</code></p>
<p>References:</p>
<p>http://daddy-linux.blogspot.sg/2012/02/creating-super-user-with-root-rights.html</p>
<p>http://www.cyberciti.biz/faq/linux-sudo-allows-people-in-group-admin/</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/add-admin-rights-to-existing-user-in-centoslinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel Date To String Formula</title>
		<link>http://kwatog.com/blog/excel-date-to-string-formula/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=excel-date-to-string-formula</link>
		<comments>http://kwatog.com/blog/excel-date-to-string-formula/#comments</comments>
		<pubDate>Thu, 27 Dec 2012 08:08:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=867</guid>
		<description><![CDATA[Of some of the important commands in excel that I use often, I always tend to forget the syntax for converting date cell into a string/text. So here it is,.. <a href="http://kwatog.com/blog/excel-date-to-string-formula/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>Of some of the important commands in excel that I use often, I always tend to forget the syntax for converting date cell into a string/text. So here it is, I&#8217;m logging it again so that I can easily find the syntax.</p>
<p><span id="more-867"></span><br />
Syntax:<br />
<code><br />
=TEXT(cell id,"format")<br />
</code></p>
<p>Here&#8217;s the sample:<br />
<code><br />
=TEXT(A1,"DD/MM/YYYY hh:mm:ss")<br />
</code></p>
<p>Output</p>
<div id="attachment_868" class="wp-caption alignnone" style="width: 459px"><a href="http://www.agoda.com/asia/philippines/bohol.html?CID=1421580"><img src="http://kwatog.com/wp-content/uploads/2012/12/excel_date_to_text_string_formula.jpg" alt="uses vba format" width="449" height="88" class="size-full wp-image-868" /></a>
<p class="wp-caption-text">uses vba format</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/excel-date-to-string-formula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cp -f not working? check alias</title>
		<link>http://kwatog.com/blog/cp-f-not-working-check-alias/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cp-f-not-working-check-alias</link>
		<comments>http://kwatog.com/blog/cp-f-not-working-check-alias/#comments</comments>
		<pubDate>Sat, 15 Dec 2012 15:55:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=863</guid>
		<description><![CDATA[Every wonder why somehow in CentOS, you cannot overwrite files with the cp command even with the -f option? The man page clear shows the -f will force the overwriting.. <a href="http://kwatog.com/blog/cp-f-not-working-check-alias/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>Every wonder why somehow in CentOS, you cannot overwrite files with the cp command even with the -f option? The man page clear shows the -f will force the overwriting of the files and yet it keeps on asking if you want to overwrite the file. As it turns out, the problem lies on the fact that there&#8217;s an alias defined for cp. It was added by default to prevent newbies like me to overwrite files important system files.<br />
<span id="more-863"></span><br />
In my case, here are the aliases.<br />
<code><br />
[kwatog@vps ~]# alias<br />
alias cp='cp -i'<br />
alias l.='ls -d .* --color=tty'<br />
alias ll='ls -l --color=tty'<br />
alias ls='ls --color=tty'<br />
alias mv='mv -i'<br />
alias rm='rm -i'<br />
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'<br />
</code></p>
<p>As you see, the cp command is added with -i parameter which means you&#8217;ll need confirmations in case you&#8217;ll be overwriting files or folders. As a workaround, you can remove the alias by invoking the following commands.</p>
<p><code><br />
unalias cp<br />
</code></p>
<p>source:</p>
<p>http://ubuntuforums.org/showthread.php?t=1225602</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/cp-f-not-working-check-alias/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write SQLPlus Output to Local</title>
		<link>http://kwatog.com/blog/write-sqlplus-output-to-local/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=write-sqlplus-output-to-local</link>
		<comments>http://kwatog.com/blog/write-sqlplus-output-to-local/#comments</comments>
		<pubDate>Tue, 02 Oct 2012 10:26:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[dbms_output]]></category>
		<category><![CDATA[spool]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=854</guid>
		<description><![CDATA[The most common method of writing into a file is via UTL_FILE. However, this package cannot direct the output to your local folder. That means you have to create a.. <a href="http://kwatog.com/blog/write-sqlplus-output-to-local/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>The most common method of writing into a file is via UTL_FILE. However, this package cannot direct the output to your local folder. That means you have to create a logical directory in the db server and get the physical file from there.<br />
<span id="more-854"></span><br />
But by using DBMS_OUTPUT together with other sql*plus settings and spool mechanism, we can write the output into a local client file. Here&#8217;s how I do it.<br />
<code><br />
SET SERVEROUTPUT ON<br />
SET FEEDBACK OFF<br />
SET DEFINE OFF<br />
SET LINESIZE 1000<br />
SET PAGESIZE 0</p>
<p>spool c:\sample.xml<br />
DECLARE<br />
   CURSOR c_data IS<br />
   SELECT '&lt;ns1:data&gt;The Quick Brown Fox&lt;/ns1:data&gt;' content_line<br />
   FROM  dual;</p>
<p>   l_content_line VARCHAR2(1000) := '';<br />
BEGIN<br />
   DBMS_OUTPUT.ENABLE;<br />
   l_content_line := '&lt;?xml version="1.0" encoding="UTF-8"?&gt;';<br />
   DBMS_OUTPUT.PUT_LINE(l_content_line);<br />
   l_content_line := '&lt;ns1:SiebelMessage xmlns:ns1="http://www.kwatog.com/xml/TerminateLine"&gt;';<br />
   DBMS_OUTPUT.PUT_LINE(l_content_line);    </p>
<p>   FOR c IN c_data<br />
   LOOP<br />
   l_content_line := c.content_line;<br />
   DBMS_OUTPUT.PUT_LINE(l_content_line);<br />
   END LOOP;<br />
   l_content_line := '&lt;/ns1:SiebelMessage&gt;';<br />
   DBMS_OUTPUT.PUT_LINE(l_content_line);<br />
END;<br />
/</p>
<p>SPOOL OFF<br />
</code></p>
<p>I&#8217;d like to emphasize again that this may be just one of the ways of doing this. I know it works because I used it extensively. I just needed to write it down because of several instansces lately when I was tutoring new staffs.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/write-sqlplus-output-to-local/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloud3K $6 1GB VPS</title>
		<link>http://kwatog.com/blog/cloud3k-6-year-promo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cloud3k-6-year-promo</link>
		<comments>http://kwatog.com/blog/cloud3k-6-year-promo/#comments</comments>
		<pubDate>Sun, 30 Sep 2012 14:48:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=848</guid>
		<description><![CDATA[RockMyWeb&#8217;s subsidiary Cloud3K is offering $6 unmanaged VPS on RockMyWeb&#8217;s 6th anniversary. It so happened that I&#8217;m actually looking for an affordable VPS host so I signed up with them... <a href="http://kwatog.com/blog/cloud3k-6-year-promo/" class="readmore">read more</a>]]></description>
				<content:encoded><![CDATA[<p>RockMyWeb&#8217;s subsidiary Cloud3K is offering $6 unmanaged VPS on RockMyWeb&#8217;s 6th anniversary. It so happened that I&#8217;m actually looking for an affordable VPS host so I signed up with them. I already started moving some of my sites there including this site. That means I had to follow the instructions in my <a href="http://kwatog.com/apache/lamp-install-on-vps-centos5/">LAMP Installation</a> post.<br />
<span id="more-848"></span><br />
Anyway, here&#8217;s what you&#8217;ll supposed to get for your $6. </p>
<ul>
<li>RAM : 1GB</li>
<li>Disk : 50GB</li>
<li>Bandwidth : 2TB</li>
<li>CPUs : 4</li>
</ul>
<p>Take note that I chose the semi-annual billing so I&#8217;m really diving into it. Hopefully I won&#8217;t regret it. <a href="http://www.jdoqocy.com/lg98y1A719PVVXWWVUPRQZWQWQZ" target="_blank" onmouseover="window.status='http://www.jaguarpc.com/';return true;" onmouseout="window.status=' ';return true;">JaguarPC</a><img src="http://www.ftjcfx.com/2o115h48x20MSSUTTSRMONWTNTNW" width="1" height="1" border="0"/>, my current hosting provider, has been very reliable. However, I&#8217;m already outgrowing my VPS there and upgrading it makes the VPS too expensive.</p>
<p>By the way, it must be noted that Cloud3K is not actually a cloud hosting like the Amazon or Azure. Instead they have a mirror server such that if your physical server fails, requests are redirected to the backup server. Hopefully we don&#8217;t come to a point where we need those failover servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/cloud3k-6-year-promo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
