<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Akdora's Blog</title>
	<atom:link href="http://akdora.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://akdora.wordpress.com</link>
	<description>Programming, Oracle, Life, Fun</description>
	<lastBuildDate>Mon, 05 Dec 2011 12:23:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='akdora.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Akdora's Blog</title>
		<link>http://akdora.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://akdora.wordpress.com/osd.xml" title="Akdora&#039;s Blog" />
	<atom:link rel='hub' href='http://akdora.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Solution Your profile could not be opened correctly in Chrome</title>
		<link>http://akdora.wordpress.com/2011/11/03/solution-your-profile-could-not-be-opened-correctly-in-chrome/</link>
		<comments>http://akdora.wordpress.com/2011/11/03/solution-your-profile-could-not-be-opened-correctly-in-chrome/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 08:46:25 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Non-technical]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[Your profile could not be opened correctly]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=346</guid>
		<description><![CDATA[Hi, When you try to open your chrome web explorer, if you get &#8220;Your profile could not be opened correctly&#8221; error, try to following solution: There are several solutions on the web for this, but this is the easiest way: -Close Chrome -Go to &#8220;C:\Users\[user]\AppData\Local\Google\Chrome\User Data&#8221; -Delete &#8220;Web Data&#8221; and &#8220;Web Data-journal&#8221; files. (If you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=346&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
When you try to open your chrome web explorer, if you get &#8220;Your profile could not be opened correctly&#8221; error, try to following solution:<br />
There are several solutions on the web for this, but this is the easiest way:</p>
<p>-Close Chrome<br />
-Go to &#8220;C:\Users\[user]\AppData\Local\Google\Chrome\User Data&#8221;<br />
-Delete &#8220;Web Data&#8221; and &#8220;Web Data-journal&#8221; files. (If you cannot delete it, restart computer)<br />
-Open Chrome</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/346/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=346&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/11/03/solution-your-profile-could-not-be-opened-correctly-in-chrome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>Clear extJS combo value when text is cleared or doesn&#8217;t match</title>
		<link>http://akdora.wordpress.com/2011/10/11/clear-extjs-combo-value-when-text-is-cleared-or-doesnt-match/</link>
		<comments>http://akdora.wordpress.com/2011/10/11/clear-extjs-combo-value-when-text-is-cleared-or-doesnt-match/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 12:58:27 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Non-technical]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[combobox]]></category>
		<category><![CDATA[ExtJS]]></category>
		<category><![CDATA[getRawValue]]></category>
		<category><![CDATA[getValue]]></category>
		<category><![CDATA[lastSelectionText]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=343</guid>
		<description><![CDATA[Here is the scenario; -Type something to combobox -Select something on the list -Search and fill gridPanel -Clear combobox and then search again -It fills gridPanel with value that before we cleared. I this this is a bug. If you use Ext.getCmp(&#8216;myCombo&#8217;).getValue() or Ext.getCmp(&#8216;myCombo&#8217;).lastSelectionText, it does not work. You have to use Ext.getCmp(&#8216;myCombo&#8217;).getRawValue(). This works [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=343&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is the scenario;<br />
-Type something to combobox<br />
-Select something on the list<br />
-Search and fill gridPanel<br />
-Clear combobox and then search again<br />
-It fills gridPanel with value that before we cleared.<br />
I this this is a bug.<br />
If you use Ext.getCmp(&#8216;myCombo&#8217;).getValue() or Ext.getCmp(&#8216;myCombo&#8217;).lastSelectionText, it does not work.<br />
You have to use Ext.getCmp(&#8216;myCombo&#8217;).getRawValue(). This works <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
By the way comboBox is not readonly.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=343&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/10/11/clear-extjs-combo-value-when-text-is-cleared-or-doesnt-match/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Debug Problem &#8220;Source not found.&#8221;</title>
		<link>http://akdora.wordpress.com/2011/05/23/java-debug-problem-source-not-found/</link>
		<comments>http://akdora.wordpress.com/2011/05/23/java-debug-problem-source-not-found/#comments</comments>
		<pubDate>Mon, 23 May 2011 06:10:30 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=341</guid>
		<description><![CDATA[Quick Hint: When you try to debug java code in eclipse, if you get &#8220;Source not found.&#8221; error with red letters. Here is the solution: Down Arrow Icon Next to Debug Icon &#62; Debug Configurations &#62; Classpath Tab &#62; Add Projects to User Entries Add your project that cannot debug to this location.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=341&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quick Hint:<br />
When you try to debug java code in eclipse, if you get &#8220;Source not found.&#8221; error with red letters. Here is the solution:<br />
Down Arrow Icon Next to Debug Icon &gt; Debug Configurations &gt; Classpath Tab &gt; Add Projects to User Entries<br />
Add your project that cannot debug to this location.  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=341&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/05/23/java-debug-problem-source-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>HTML Image Saving Protection (Save Image As &gt;&gt; Point.gif)</title>
		<link>http://akdora.wordpress.com/2011/04/15/html-image-saving-protection-save-image-as-point-gif/</link>
		<comments>http://akdora.wordpress.com/2011/04/15/html-image-saving-protection-save-image-as-point-gif/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 11:04:11 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[blank]]></category>
		<category><![CDATA[image save]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=324</guid>
		<description><![CDATA[If you have a web page with full of your copyrighted photos and do not want to visitors to save images in (easy way!) to their local computers. Let me show a trick about it. In the photo (img) section of the page, we have always something like as following; On the image, when we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=324&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you have a web page with full of your copyrighted photos and do not want to visitors to save images in (easy way!) to their local computers. Let me show a trick about it.</p>
<p>In the photo (img) section of the page, we have always something like as following;</p>
<p><pre class="brush: php;">
     &lt;img id=&quot;myImg&quot;
      src=&quot;http://www.google.com.tr/logoyapsana/images/templates/google_logo_01.gif&quot;
      width=&quot;667&quot; height=&quot;472&quot;
      style=&quot;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;&quot;&gt;
      &lt;/img&gt;
</pre></p>
<p>On the image, when we right-click to the mouse and click to &#8220;Save Image As&#8221; command, we can save the image to our local disk. However, if we create a basic css style with a div below of the image, we can prevent this. </p>
<p>The important thing is in here: blank/point image&#8217;s dimensions has to be same with original image dimensions and css class of the component should include the following properties.<br />
<pre class="brush: php;">
.BlankPixel { 
     position: absolute; 
     top: 0;
     left: 0; 
}
</pre></p>
<p><pre class="brush: php;">
&lt;div id=&quot;Photo&quot;&gt;					
      &lt;img id=&quot;myImg&quot;
      src=&quot;http://www.google.com.tr/logoyapsana/images/templates/google_logo_01.gif&quot;
      width=&quot;667&quot; height=&quot;472&quot;
      style=&quot;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;&quot;&gt;
      &lt;/img&gt; 
	&lt;/div&gt;
       &lt;div class=&quot;BlankPixel&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;http://akdora.files.wordpress.com/2011/04/point.gif&quot; width=&quot;667&quot; height=&quot;472&quot;&gt;&lt;/a&gt;&lt;/div&gt;
</pre></p>
<p>That&#8217;s it. This trick is an only basic measure for basic internet users. If someone want to save the photo, since the resource is downloaded to your computer to show up on the screen. It can be saved in any way.</p>
<p>Here is the full html example:<br />
Copy the code and create a html page called &#8220;a.html&#8221; and open it. Try to save Google logo and see what happens <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  A file dialog box will ask you a location to save &#8220;http://akdora.files.wordpress.com/2011/04/point.gif&#8221; file! Not Google Logo!</p>
<p><pre class="brush: php;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;head&gt;
    &lt;title&gt;My Title&lt;/title&gt;
    &lt;style type=&quot;text/css&quot;&gt;
	.BlankPixel { 
		position: absolute; 
		top: 0;
		left: 0; 
	}
	&lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;Photo&quot; class=&quot;Photo&quot;&gt;					
      &lt;img id=&quot;myImg&quot;
      src=&quot;http://www.google.com.tr/logoyapsana/images/templates/google_logo_01.gif&quot;
      width=&quot;667&quot; height=&quot;472&quot;
      style=&quot;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;&quot;&gt;
      &lt;/img&gt; 
	&lt;/div&gt;
	&lt;div class=&quot;BlankPixel&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;http://akdora.files.wordpress.com/2011/04/point.gif&quot; width=&quot;667&quot; height=&quot;472&quot;&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=324&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/04/15/html-image-saving-protection-save-image-as-point-gif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>C#.Net Download and Merge Images into One Bitmap Image</title>
		<link>http://akdora.wordpress.com/2011/04/05/c-net-download-and-merge-images-into-one-bitmap-image/</link>
		<comments>http://akdora.wordpress.com/2011/04/05/c-net-download-and-merge-images-into-one-bitmap-image/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 19:10:16 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Visual C#.NET]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[merge]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=314</guid>
		<description><![CDATA[Recently, I developed a program that reads imdb.com web page for a specific movie and downloads movie info and images. Then, it merges the thumbnails images into one image file. Firstly, I write the main code, that downloads the image files and merges them and save the merged image to system. Note 1: In the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=314&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently, I developed a program that reads imdb.com web page for a specific movie and downloads movie info and images. Then, it merges the thumbnails images into one image file. </p>
<p>Firstly, I write the main code, that downloads the image files and merges them and save the merged image to system.</p>
<p>Note 1: In the code, arr variable is an ArrayList holds the picture urls.</p>
<p>Note 2: Image class is in &#8220;System.Drawing&#8221;</p>
<p><pre class="brush: csharp;">

                                        Image[] images = new Image[arr.Length];
                                        for (int k = 0; k &lt; arr.Length; k++){
                                             images[k] = Utils.DownloadImage(arr[k]);
                                        }
                                        Image mergedImage = Utils.MergeImages(images);
                                        if (mergedImage != null)
                                        {
                                             mergedImage.Save(fileFolder + &quot;\\&quot; + movieTitle + &quot; Thumbnails.jpg&quot;);
                                        }

</pre></p>
<p>Here is inside of DownloadImage function:</p>
<p><pre class="brush: csharp;">
        /// &lt;summary&gt;
        /// Function to download Image from website
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;_URL&quot;&gt;URL address to download image&lt;/param&gt;
        /// &lt;returns&gt;Image&lt;/returns&gt;
        public static Image DownloadImage(string _URL)
        {
            Image _tmpImage = null;

            try
            {
                // Open a connection
                System.Net.HttpWebRequest _HttpWebRequest = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(_URL);

                _HttpWebRequest.AllowWriteStreamBuffering = true;

                // set timeout for 20 seconds (Optional)
                _HttpWebRequest.Timeout = 20000;

                // Request response:
                System.Net.WebResponse _WebResponse = _HttpWebRequest.GetResponse();

                // Open data stream:
                System.IO.Stream _WebStream = _WebResponse.GetResponseStream();

                // convert webstream to image
                _tmpImage = Image.FromStream(_WebStream);

                // Cleanup
                _WebResponse.Close();
            }
            catch (Exception _Exception)
            {
                // Error
                Console.WriteLine(&quot;Exception caught in process: {0}&quot;, _Exception.ToString());
                return null;
            }

            return _tmpImage;
        }
</pre></p>
<p>Here is inside of MergeImages function:</p>
<p><pre class="brush: csharp;">
        /// &lt;summary&gt;
        /// Merges Images into 1 Image.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;images&quot;&gt;The Images you want merge&lt;/param&gt;
        /// &lt;returns&gt;An Image of all images&lt;/returns&gt;
        public static Image MergeImages(Image[] images)
        {
            if (images == null || images.Length &lt;= 0)
            {
                return null;
            }
            Int32 imageWSize = 0;
            Int32 imageHSize = 0;

            for(int i=0;i&lt;images.Length;i++)
            {
                if (images[i].Width &gt; imageWSize)
                    imageWSize = images[i].Width;

                if (images[i].Height &gt; imageHSize)
                    imageHSize = images[i].Height;
            }

            Int32 width = 0;
            Int32 height = 0;
            int picsInOneLine = 10;

            if (images.Length &gt;= picsInOneLine)
            {
                width = picsInOneLine * imageWSize;
                decimal d = (images.Length + picsInOneLine) / picsInOneLine;
                height = (int)Math.Round(d) * imageHSize;
            }else{
                width = images.Length * imageWSize;
                height = imageHSize;
            }

            Bitmap bitmap = new Bitmap(width, height);
            int hhh = -1;
            int www = 0;
            for(int i=0; i&lt;images.Length; i++)
            {
                Bitmap image = new Bitmap(images[i]);
                if (i % picsInOneLine == 0)
                {
                    hhh++;
                    www = 0;
                }

                //Get All of the x Pixels
                for (int w = 0; w &lt; imageWSize; w++)
                {
                    //Get All of the Y Pixels
                    for (int h = 0; h &lt; imageHSize; h++)
                    {
                        //Set the Cooresponding Pixel
                        int ww = w + (www * imageWSize);
                        int hh = h + (hhh * imageHSize);
                        bitmap.SetPixel(ww, hh, image.GetPixel(w, h));
                    }
                }
                www++;

            }
            //Return the new Bitmap
            return bitmap;
        }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=314&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/04/05/c-net-download-and-merge-images-into-one-bitmap-image/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>PL/SQL Developer User Preferences (Windows 7)</title>
		<link>http://akdora.wordpress.com/2011/03/30/plsql-developer-user-preferences-windows-7/</link>
		<comments>http://akdora.wordpress.com/2011/03/30/plsql-developer-user-preferences-windows-7/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 06:56:04 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Non-technical]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=309</guid>
		<description><![CDATA[If you changed your computer and want &#8220;your PL/SQL developer login history and preferences&#8221; as well in your new computer. Copy the following folder to your new computer in the same path format! C:\Users\[username]\AppData\Roaming\PLSQL Developer If you need only the login history, open the following file: C:\Users\[username]\AppData\Roaming\PLSQL Developer\Preferences\[username]\user.prefs In the file, copy [LogonHistory] part to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=309&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you changed your computer and want &#8220;your PL/SQL developer login history and preferences&#8221; as well in your new computer. Copy the following folder to your new computer in the same path format!</p>
<blockquote><p>C:\Users\<span style="color:#ff9900;">[username]</span>\AppData\Roaming\PLSQL Developer</p></blockquote>
<p>If you need only the login history, open the following file:</p>
<blockquote><p>C:\Users\<span style="color:#ff9900;">[username]</span>\AppData\Roaming\PLSQL Developer\Preferences\<span style="color:#ff9900;">[username]</span>\user.prefs</p></blockquote>
<p>In the file, copy <strong>[LogonHistory] </strong>part to your new user.prefs file. It&#8217;s encrypted but it does not matter. PL/SQL Developer will dencrypt it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I need this, because I deal with a lots of database with a lots of schema.. It is really hard to remember the passwords sometimes, so i let the PL/Developer to remember them <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Preferences &gt; Login History &gt; Store with Password)</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=309&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/03/30/plsql-developer-user-preferences-windows-7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>ORA-14047: ALTER TABLE&#124;INDEX RENAME may not be combined with other operations</title>
		<link>http://akdora.wordpress.com/2011/03/21/ora-14047-alter-tableindex-rename-may-not-be-combined-with-other-operations/</link>
		<comments>http://akdora.wordpress.com/2011/03/21/ora-14047-alter-tableindex-rename-may-not-be-combined-with-other-operations/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 09:40:28 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[alter index]]></category>
		<category><![CDATA[Ater table]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[ORA-14047]]></category>
		<category><![CDATA[rename]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=306</guid>
		<description><![CDATA[When we try to rename  table or index name in Oracle, we use a simple command as following; alter table [prev_table_name] rename to [last_table_name] If we put into schema names to this command, we can deal with ORA-14047 error. This error raise when we put schema name in front of the last_table_name. alter table hr.[prev_table_name] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=306&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When we try to rename  table or index name in Oracle, we use a simple command as following;</p>
<blockquote>
<pre>alter table [prev_table_name] rename to [last_table_name]</pre>
</blockquote>
<p>If we put into schema names to this command, we can deal with ORA-14047 error. This error raise when we put schema name in front of the last_table_name.</p>
<blockquote>
<pre>alter table hr.[prev_table_name] rename to <span style="color:#ff0000;">hr.</span>[last_table_name] &gt;&gt;&gt; <span style="color:#ff0000;">RAISES ORA-14047 ERROR</span>
alter table hr.[prev_table_name] rename to [last_table_name] &gt;&gt; <span style="color:#008000;">CORRECT ONE</span>
</pre>
<p>&nbsp;</p></blockquote>
<p>It is same with Index renaming.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=306&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/03/21/ora-14047-alter-tableindex-rename-may-not-be-combined-with-other-operations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>How to remove spaces in a string in Shell</title>
		<link>http://akdora.wordpress.com/2011/03/08/how-to-remove-spaces-in-a-string-in-shell/</link>
		<comments>http://akdora.wordpress.com/2011/03/08/how-to-remove-spaces-in-a-string-in-shell/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 09:45:36 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Shell]]></category>
		<category><![CDATA[remove spaces]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=304</guid>
		<description><![CDATA[I experienced that when you connect to Oracle database from shell and get some data from the table, if the length of the column value is more than 80 letters. Shell puts space in every 80th letter automaticly. I do not know why, but it is really interesting. I counted the number 80 for my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=304&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I experienced that when you connect to Oracle database from shell and get some data from the table, if the length of the column value is more than 80 letters. Shell puts space in every 80th letter automaticly. I do not know why, but it is really interesting. I counted the number 80 for my environment. It may differ in different systems.</p>
<p>Anyway, I need to remove that interesting spaces. So here is a script to do this.</p>
<blockquote>
<pre>RETVAL=`echo $RETVAL | sed 's/ //g'`
</pre>
</blockquote>
<p>We use the SED command. Its use like &#8216;s/[seach_letter]/[replacement]/g&#8217;. In my example [seach_letter] is &#8221; &#8221; space and [replacement] is nothing. For example; If we want to replace &#8221;  &#8221; (space) characters with &#8220;_&#8221; (underscore) character. Here is how we do this:</p>
<blockquote>
<pre>
</pre>
<pre>RETVAL=`echo $RETVAL | sed 's/ /_/g'`</pre>
</blockquote>
<p>I wrote this quick entry, because if you do not remember how to do something like this and want to google it. It is not easy to find sometimes <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/304/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=304&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/03/08/how-to-remove-spaces-in-a-string-in-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>Calling SQL and PL/SQL codes from Shell</title>
		<link>http://akdora.wordpress.com/2011/03/06/calling-sql-and-plsql-codes-from-shell/</link>
		<comments>http://akdora.wordpress.com/2011/03/06/calling-sql-and-plsql-codes-from-shell/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 11:24:18 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[ksh]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[retval]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sqlplus]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=300</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=300&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!-- v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);} --> <span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;"> </span></p>
<p><pre class="brush: bash;">
#################################################################################
#!/bin/ksh
##################################################################################
# Filename: test.sh
# Name    : Özay Akdora (http://akdora.wordpress.com)
# Date		: 04.03.2011
# Purpose : Oracle - Shell Integration (SQL Operations &amp; PL/SQL Execution )
# Env			: This example is uses Oracle 11G with &quot;/export/home/oracle/app/product/11.2c&quot; path and korn shell script

# First of all we need to define some variable to access Oracle Database
export ORACLE_HOME=/export/home/oracle/app/product/11.2c
export LD_LIBRARY_PATH=/export/home/oracle/app/product/11.2c/lib
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/export/home/oracle/app/product/11.2c/bin:/export/home/ubtool/ubSQL_5.0.1:

# Then, we need to define username/password (@ optional another database TNS definition).
export db_connection_url=scott/tiger@MYDB
# I needed to connect to another database to query a table that has my configuration data.
# Your shell code may locate in an another machine that you want to connect.
# Anyway, You have to define TNS info of MYDB database to /export/home/oracle/app/product/11.2c/network/admin/tnsnames.ora

# You have to give permission to execute this file. For example : chmod 777 test.sh
# You also have to give permission, if you put this file to a folder that you created new.

# Run as : &quot;./test.sh&quot;

#######################################################################
# Let's see what we got here;
# Example 1: Access db and query SYSDATE:

echo &quot;########## Example 1: SYSDATE ############&quot;
RETVAL=`sqlplus -s $db_connection_url &lt;&lt;EOF
select to_char(sysdate,'dd.mm.yyyy hh24:mi:ss') my_date from dual;
exit;
EOF`

echo $RETVAL
# As you see, we connected to database with sqlplus command ( We defined it's path to PATH above.
# Then we set username and password with $db_connection_url variable
# After that, we tell the command line execute what you see between EOF words :) (Note: You can use ENDASDKAJSDK instead of EOF ) :)
# Finally, we set the date to $RETVAL variable and prints it to screen.
# Let me explain that : Think like this way. We are using SQLPLUS (in any environment) and executing some commands and getting some result on the screen
# In this example; We set everything to $RETVAL that we see the results of sqlplus screen. Everything!

#######################################################################
# Example 2 : SQLCODE
echo &quot;########## Example 1: SQLCODE ############&quot;
RETVAL=`sqlplus -s $db_connection_url &lt;&lt;EOF
whenever sqlerror exit sql.sqlcode;
select to_char(sysdate,'dd.mm.yyyy hh24:mi:ss') my_date from dual;
exit;
EOF`

ERROR_CODE=$?

#Let me check the error code.
if [ $ERROR_CODE != 0 ]
then
  echo &quot;There are some errors. ErrorCode: $ERROR_CODE&quot;;
else
  echo &quot;Command executes successfully. ErrorCode: $ERROR_CODE&quot;;
fi

echo $RETVAL
#######################################################################
# Example 3 : SQL(Select) with WHERE clause
echo &quot;########## Example 3: SQL with WHERE clause ############&quot;

#Declare the variable
feed_id=1;

RETVAL=`sqlplus -s $db_connection_url &lt;&lt;EOF
set feed off echo off head off 
select * from extract_external_feeds where feed_id='$feed_id';
exit;
EOF`

#echo $RETVAL
v_result=`echo -n $RETVAL|awk '{printf $4}'`
echo $v_result

# Let's see what we done here. 
# We added &quot;set feed off echo off head off &quot; line to command. So, I do want to see column names as result.
# In (feed_id='$feed_id') section do not forget to use (').
# We writes (awk '{printf $3}') the data of third column in my table.
# Note: We assumes that the data in the columns do not have any space like &quot; &quot; space  :)
#######################################################################
# Example 4 : SQL(Select) with WHERE clause &amp; Multiple Variables
echo &quot;########## Example 4: SQL with WHERE clause ############&quot;

#Declare the variable
feed_id=1;

RETVAL=`sqlplus -s $db_connection_url &lt;&lt;EOF
set feed off echo off head off 
select ROW_LINE from EXTRACT_EXTERNAL_FEEDS_VW where feed_id='$feed_id';
exit;
EOF`

#echo $RETVAL
var1=`echo -n $RETVAL|awk -F\# '{printf $1}'`
var2=`echo -n $RETVAL|awk -F\# '{printf $2}'`
var3=`echo -n $RETVAL|awk -F\# '{printf $3}'`
echo $var1
echo $var2
echo $var3

# Since, I do want to make query for each column value, I return them with and deliminater like &quot;#&quot;. The we parse it with awk command in shell.
# SELECT FEED_ID, FILE_PATH, MAIN_PATH, DB_VIEW_NAME FROM EXTRACT_EXTERNAL_FEEDS
#       
# CREATE OR REPLACE VIEW EXTRACT_EXTERNAL_FEEDS_VW AS
#  SELECT FILE_PATH || '#' || MAIN_PATH || '#' || DB_VIEW_NAME AS ROW_LINE, FEED_ID
#    FROM EXTRACT_EXTERNAL_FEEDS

#######################################################################
# Example 5 : SQL (Select) with dynamic column names
echo &quot;########## Example 5 : SQL (Select) with dynamic column names ############&quot;

feed_id=1;
column_name='DB_VIEW_NAME';

RETVAL=`sqlplus -s $db_connection_url &lt;&lt;EOF
set feed off echo off head off 
select $column_name from EXTRACT_EXTERNAL_FEEDS where feed_id='$feed_id';
exit;
EOF`

echo $RETVAL
# We can pass variables to SQLPLUS commands like ($column_name)
#######################################################################
# Example 6 : Calling PL/SQL 
echo &quot;########## Example 6 : Calling PL/SQL ############&quot;

RETVAL=`sqlplus -s $db_connection_url &lt;&lt;EOF
var x number ;
exec  pk_my_package.prc_my_proc(1,1,:x);
print x;
exit;
EOF`

echo $RETVAL
# We can call PL/SQL codes as we work in SQLPLUS and read the outputs
#######################################################################
# Example 7 : Calling Dynamic PL/SQL 
echo &quot;########## Example 7 : Calling Dynamic PL/SQL ############&quot;
dynamicCode1=&quot;declare v_date date; begin select sysdate into v_date from dual; dbms_output.put_line(to_date(v_date,'dd.mm.yyyy hh24:mi:ss') ); end; &quot;;
dynamicCode2=&quot;
var x varchar2(2000); 
exec prc_my_proc;
print x;&quot;;

RETVAL=`sqlplus -s $db_connection_url &lt;&lt;EOF
set serveroutput on;
$dynamicCode2
exit;
EOF`

echo $RETVAL
# We can also set dynamic variable that contains PL/SQL commands, but you have to set the variable with new lines to execute them successfully.
# If you set the variable like $dynamicCode1. The code does not work. You have to do it as $dynamicCode2. You may read this code from an config file or oracle table.
#######################################################################

# Finally, if we want to do fancy. The following is a way one can describe this script as Oracle job. 
# 
#	BEGIN
#		DBMS_SCHEDULER.CREATE_PROGRAM(PROGRAM_NAME        =&gt; 'akdora_test',
#									  PROGRAM_TYPE        =&gt; 'EXECUTABLE',
#									  PROGRAM_ACTION      =&gt; '/export/home/bonjovi/ozay/test.sh',
#									  NUMBER_OF_ARGUMENTS =&gt; 0,
#									  ENABLED             =&gt; TRUE,
#									  COMMENTS            =&gt; 'Fantasy Program');
#	END;
#	/
#
#
#
# I hope this entry is helpful for you.
# Cheers

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=300&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/03/06/calling-sql-and-plsql-codes-from-shell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
		<item>
		<title>How to write to a path, make a FTP operation, send E-mail a SQL query result in Excel file via PL/SQL</title>
		<link>http://akdora.wordpress.com/2011/03/05/how-to-write-to-a-path-make-a-ftp-operation-send-e-mail-a-sql-query-result-in-excel-file-via-plsql/</link>
		<comments>http://akdora.wordpress.com/2011/03/05/how-to-write-to-a-path-make-a-ftp-operation-send-e-mail-a-sql-query-result-in-excel-file-via-plsql/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 22:08:35 +0000</pubDate>
		<dc:creator>Akdora</dc:creator>
				<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://akdora.wordpress.com/?p=290</guid>
		<description><![CDATA[After I read some blog entries about exporting Excel files via PL/SQL recently, I also decided to share my Excel API code in PL/SQL. I wrote a similar article before .  This API has following features; Most of the interface procedures accepts SQL query as parameter: Creates an excel file content as CLOB variable (PRC_CREATE_EXCEL_BY_QUERY) Writes any CLOB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=290&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After I read some blog entries about exporting Excel files via PL/SQL recently, I also decided to share my Excel API code in PL/SQL. I wrote a similar article <a href="http://akdora.wordpress.com/2009/02/06/how-to-write-excel-via-plsql-and-save-the-file-to-a-directory/">before </a>.  This API has following features;</p>
<p>Most of the interface procedures accepts SQL query as parameter:</p>
<ul>
<li>Creates an excel file content as CLOB variable (PRC_CREATE_EXCEL_BY_QUERY)</li>
<li>Writes any CLOB data to a specific folder that defined before with a filename. (PRC_WRITE_EXCEL_BY_MANUAL)</li>
<li>Writes any SQL query to a specific folder that defined before (PRC_WRITE_EXCEL_BY_QUERY)</li>
<li>Sends e-mail any CLOB data as attachment with TO, CC, BCC features and with also some specific words with spaces in sender name like “John Smith Company”. (PRC_EMAIL_EXCEL_BY_MANUAL)</li>
<li>Sends e-mail with SQL query result in Excel file as attachment (PRC_EMAIL_EXCEL_BY_QUERY)</li>
<li>Writes any CLOB data to a FTP path as file. (PRC_FTP_EXCEL_BY_MANUAL)</li>
<li>Writes SQL query result in Excel file to a FTP path. (PRC_FTP_EXCEL_BY_QUERY)</li>
<li>Downloads SQL query result in Excel file from APEX application using WPG_DOCLOAD package. (PRC_DOWNL_EXCEL_FILE)</li>
<li>You can also create dynamic Excel file content in CLOB variable. For example;</li>
</ul>
<p><code><br />
DECLARE<br />
MYEXCELCONTENT CLOB;<br />
BEGIN<br />
-- Test statements here<br />
PK_EXCEL_API.G_SHOW_BORDER := 'Y';<br />
PK_EXCEL_API.EX_EXCEL_OPEN(MYEXCELCONTENT);<br />
PK_EXCEL_API.EX_WORKSHEET_OPEN(MYEXCELCONTENT, 'test');</code></p>
<p><code> PK_EXCEL_API.EX_ROW_OPEN(MYEXCELCONTENT);<br />
PK_EXCEL_API.EX_CELL_WRITE(MYEXCELCONTENT, 'asdasdasd');<br />
PK_EXCEL_API.EX_ROW_CLOSE(MYEXCELCONTENT);</code></p>
<p><code> PK_EXCEL_API.EX_ROW_OPEN(MYEXCELCONTENT);<br />
PK_EXCEL_API.EX_CELL_WRITE(MYEXCELCONTENT, 'INVOICE NUMBER');<br />
PK_EXCEL_API.EX_CELL_WRITE(MYEXCELCONTENT, 'SEQ NO');<br />
PK_EXCEL_API.EX_CELL_WRITE(MYEXCELCONTENT, 'VERSION..');<br />
PK_EXCEL_API.EX_CELL_WRITE(MYEXCELCONTENT, 'BLA BLA BLA');<br />
PK_EXCEL_API.EX_ROW_CLOSE(MYEXCELCONTENT);</code></p>
<p><code> </code></p>
<p><code> PK_EXCEL_API.EX_WORKSHEET_CLOSE(MYEXCELCONTENT);<br />
PK_EXCEL_API.EX_EXCEL_CLOSE(MYEXCELCONTENT);<br />
PK_EXCEL_API.PRC_WRITE_EXCEL_FILE(P_CLOB     =&gt; MYEXCELCONTENT,<br />
P_FILENAME =&gt; 'test.xls',<br />
P_DIR      =&gt; 'UTL_FILE_DIR');<br />
END;</code></p>
<p>Here is the all package here: <span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;"><a href="http://akdora.files.wordpress.com/2011/03/pk_excel_api_v1-0.odt">PK_EXCEL_API_v1.0</a></span></p>
<p><span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:12px;line-height:18px;white-space:pre;">(Note:Since I could not upload directly txt files to wordpress, I put the code into a odt file and uploaded here)</span></p>
<p><code> </code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akdora.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akdora.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akdora.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akdora.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akdora.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akdora.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akdora.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akdora.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akdora.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akdora.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akdora.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akdora.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akdora.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akdora.wordpress.com/290/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akdora.wordpress.com&amp;blog=661689&amp;post=290&amp;subd=akdora&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akdora.wordpress.com/2011/03/05/how-to-write-to-a-path-make-a-ftp-operation-send-e-mail-a-sql-query-result-in-excel-file-via-plsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6f0355f0f6a7d29eff716154ddcdd3a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akdora</media:title>
		</media:content>
	</item>
	</channel>
</rss>
