<?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>MemoSoup</title>
	<atom:link href="http://www.memosoup.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.memosoup.com</link>
	<description>Mix of the things I always forget</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:03:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>mySQL: How to reset root password</title>
		<link>http://www.memosoup.com/20120206/mysql-how-to-reset-root-password.html</link>
		<comments>http://www.memosoup.com/20120206/mysql-how-to-reset-root-password.html#comments</comments>
		<pubDate>Sun, 05 Feb 2012 22:48:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=455</guid>
		<description><![CDATA[<p>If the password for the mysql &#8220;root&#8221; user is lost, it&#8217;s still possible reset it to some other value. The restart of the mySQL server will be necessary, of course.</p> <p>The following should be done:</p> <p>Stop the server It could be done normally:</p> /etc/init.d/mysql stop <p>or effectively:</p> ps -ef &#124; grep mysql ... mysql 25079 [...]]]></description>
			<content:encoded><![CDATA[<p>If the password for the mysql &#8220;root&#8221; user is lost, it&#8217;s still possible reset it to some other value.<br />
The restart of the mySQL server will be necessary, of course.</p>
<p>The following should be done:</p>
<p><strong>Stop the server</strong><br />
It could be done normally:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql stop</div></div>
<p>or effectively:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> mysql<br />
...<br />
mysql <span style="color: #000000;">25079</span> <span style="color: #000000;">1</span> &nbsp; <span style="color: #000000;">0</span> &nbsp; Jan <span style="color: #000000;">31</span> ? &nbsp;<span style="color: #000000;">0</span>:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqld<br />
...<br />
<span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #000000;">25079</span></div></div>
<p><em>Please ensure that the proper process is killed!</em></p>
<p><strong>Start MySQL server without security checking</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqld_safe <span style="color: #660033;">--skip-grant-tables</span> <span style="color: #000000; font-weight: bold;">&amp;</span></div></div>
<p><strong>Connect to mySQL without password</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> root</div></div>
<p><strong>Reset mySQL root password</strong></p>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=USE"><span style="color: #990099; font-weight: bold;">use</span></a> mysql<span style="color: #000033;">;</span><br />
<a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=UPDATE"><span style="color: #990099; font-weight: bold;">update</span></a> <a href="http://dev.mysql.com/doc/refman/%35%2E%31/en/information-functions.html"><span style="color: #000099;">user</span></a> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SET"><span style="color: #990099; font-weight: bold;">set</span></a> <a href="http://dev.mysql.com/doc/refman/%35%2E%31/en/encryption-functions.html"><span style="color: #000099;">password</span></a><span style="color: #CC0099;">=</span><a href="http://dev.mysql.com/doc/refman/%35%2E%31/en/encryption-functions.html"><span style="color: #000099;">PASSWORD</span></a><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">&quot;NEW<span style="color: #008080; font-weight: bold;">_</span>PASSWORD&quot;</span><span style="color: #FF00FF;">&#41;</span> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=WHERE"><span style="color: #990099; font-weight: bold;">where</span></a> <a href="http://dev.mysql.com/doc/refman/%35%2E%31/en/information-functions.html"><span style="color: #000099;">user</span></a><span style="color: #CC0099;">=</span><span style="color: #008000;">'root'</span><span style="color: #000033;">;</span><br />
flush <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=PRIVILEGES"><span style="color: #990099; font-weight: bold;">privileges</span></a><span style="color: #000033;">;</span></div></div>
<p>Use the real new password instead of the string &#8220;NEW_PASSWORD&#8221;.</p>
<p><strong>Restart mySQL server</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql stop<br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql start</div></div>
<p><strong>Check the connection</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20120206/mysql-how-to-reset-root-password.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VBA: how to read text file</title>
		<link>http://www.memosoup.com/20120205/vba-how-to-read-text-file.html</link>
		<comments>http://www.memosoup.com/20120205/vba-how-to-read-text-file.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 23:55:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=461</guid>
		<description><![CDATA[<p>This is just example, how to read text file in Visual Basic for Applications (for example, in Excel macro). </p> <p>It&#8217;s just a stub: there is no error processing here, the source file is really text file, no problems with permissions etc.</p> Sub read_from_text_file() txtFile = Application.GetOpenFilename(&#34;Text Files (*.txt), *.txt&#34;) If txtFile = False Then [...]]]></description>
			<content:encoded><![CDATA[<p>This is just example, how to read text file in Visual Basic for Applications (for example, in Excel macro). </p>
<p>It&#8217;s just a stub: there is no error processing here, the source file is really text file, no problems with permissions etc.</p>
<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E56717; font-weight: bold;">Sub</span> read_from_text_file()<br />
<br />
txtFile = Application.GetOpenFilename(<span style="color: #800000;">&quot;Text Files (*.txt), *.txt&quot;</span>)<br />
<span style="color: #8D38C9; font-weight: bold;">If</span> txtFile = <span style="color: #00C2FF; font-weight: bold;">False</span> <span style="color: #8D38C9; font-weight: bold;">Then</span><br />
&nbsp; &nbsp; MsgBox <span style="color: #800000;">&quot;No file to process&quot;</span><br />
&nbsp; &nbsp; <span style="color: #E56717; font-weight: bold;">Exit</span> <span style="color: #E56717; font-weight: bold;">Sub</span><br />
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span><br />
<br />
<span style="color: #151B8D; font-weight: bold;">Open</span> txtFile <span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #151B8D; font-weight: bold;">Input</span> <span style="color: #151B8D; font-weight: bold;">As</span> #1<br />
&nbsp; &nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Input</span> #1, myString<br />
&nbsp; &nbsp; &nbsp; MsgBox myString<br />
<span style="color: #8D38C9; font-weight: bold;">Close</span> #1<br />
&nbsp; &nbsp;<br />
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20120205/vba-how-to-read-text-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIX: reset user password</title>
		<link>http://www.memosoup.com/20120130/aix-reset-user-password.html</link>
		<comments>http://www.memosoup.com/20120130/aix-reset-user-password.html#comments</comments>
		<pubDate>Mon, 30 Jan 2012 13:17:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=446</guid>
		<description><![CDATA[<p>Change the password for the user (as root):</p> passwd username <p>Reset the login counter and unlock the user:</p> chsec -f /etc/security/lastlog -a &#34;unsuccessful_login_count=0&#34; -s username chuser &#34;account_locked=false&#34; username ]]></description>
			<content:encoded><![CDATA[<p>Change the password for the user (as root):</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">passwd</span> username</div></div>
<p>Reset the login counter and unlock the user:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">chsec <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>lastlog <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;unsuccessful_login_count=0&quot;</span> <span style="color: #660033;">-s</span> username<br />
chuser <span style="color: #ff0000;">&quot;account_locked=false&quot;</span> username</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20120130/aix-reset-user-password.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: get the tablespace structure</title>
		<link>http://www.memosoup.com/20120119/oracle-get-the-tablespace-structure.html</link>
		<comments>http://www.memosoup.com/20120119/oracle-get-the-tablespace-structure.html#comments</comments>
		<pubDate>Thu, 19 Jan 2012 09:35:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[tablespace]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=439</guid>
		<description><![CDATA[<p>The easiest method to get the tablespace structure is to use the dbms_metadata package:</p> SET linesize 200 LONG 50000 pagesize 5000 SELECT dbms_metadata.get_ddl&#40;'TABLESPACE',tablespace_name &#41; FROM dba_tablespaces WHERE tablespace_name IN &#40; '&#38;your_tablespace' &#41;; <p>Additionally, exp/imp (or expdp/impdp) utilities could be used. They could generate the DDL statements for all objects in the database, which could be [...]]]></description>
			<content:encoded><![CDATA[<p>The easiest method to get the tablespace structure is to use the <strong>dbms_metadata</strong> package:</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">SET</span> linesize <span style="color: #cc66cc;">200</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LONG</span> <span style="color: #cc66cc;">50000</span> pagesize <span style="color: #cc66cc;">5000</span><br />
<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> dbms_metadata.get_ddl<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'TABLESPACE'</span><span style="color: #66cc66;">,</span>tablespace_name <span style="color: #66cc66;">&#41;</span><br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> dba_tablespaces<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> tablespace_name <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IN</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'&amp;your_tablespace'</span> <span style="color: #66cc66;">&#41;</span>;</div></div>
<p>Additionally, exp/imp (or expdp/impdp) utilities could be used. They could generate the DDL statements for all objects in the database, which could be very useful.</p>
<p><strong>exp/imp</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exp <span style="color: #007800;">userid</span>=<span style="color: #ff0000;">&quot; '/ as sysdba' &quot;</span> <span style="color: #007800;">rows</span>=n <span style="color: #007800;">file</span>=my.dmp <span style="color: #007800;">full</span>=y<br />
imp <span style="color: #007800;">userid</span>=<span style="color: #ff0000;">&quot; '/ as sysdba' &quot;</span> <span style="color: #007800;">file</span>=my.dmp <span style="color: #007800;">full</span>=y <span style="color: #007800;">show</span>=y <span style="color: #000000; font-weight: bold;">&gt;</span> full_structure.sql <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span></div></div>
<p><strong>Warning!</strong> exp could not get the contents of the encrypted tablespaces.</p>
<p><strong>expdp/impdp</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">expdp <span style="color: #ff0000;">&quot;'/ as sysdba'&quot;</span> <span style="color: #007800;">dumpfile</span>=mydp.dmp <span style="color: #007800;">directory</span>=DATA_PUMP_DIR <span style="color: #007800;">content</span>=metadata_only &nbsp;<span style="color: #007800;">full</span>=y<br />
impdp <span style="color: #ff0000;">&quot;'/ as sysdba'&quot;</span> <span style="color: #007800;">dumpfile</span>=mydp.dmp <span style="color: #007800;">directory</span>=DATA_PUMP_DIR <span style="color: #007800;">sqlfile</span>=full_structure.sql</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20120119/oracle-get-the-tablespace-structure.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook 2007: set default font in Outlook</title>
		<link>http://www.memosoup.com/20111220/outlook-2007-set-default-font.html</link>
		<comments>http://www.memosoup.com/20111220/outlook-2007-set-default-font.html#comments</comments>
		<pubDate>Tue, 20 Dec 2011 13:10:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS Office]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[outlook]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=435</guid>
		<description><![CDATA[<p>I think, the &#8220;Options&#8221; window in Outlook is one of the most tangled things in IT. The programmers were so smart to create real &#8220;spaghetti&#8221; window! Did they ever hear about &#8220;user friendly&#8221; interfaces? They could at least add the &#8220;Search&#8221; field somewhere &#8211; otherwise, it&#8217;s not possible to find anything.</p> <p>Here is the way [...]]]></description>
			<content:encoded><![CDATA[<p>I think, the &#8220;Options&#8221; window in Outlook is one of the most tangled things in IT. The programmers were so smart to create real &#8220;spaghetti&#8221; window! Did they ever hear about &#8220;user friendly&#8221; interfaces? They could at least add the &#8220;Search&#8221; field somewhere &#8211; otherwise, it&#8217;s not possible to find anything.</p>
<p>Here is the way to change the default font:</p>
<ul>
<li>Tools -> Options</li>
<li>Click “Mail Format” tab</li>
<li>Click “Stationery and Fonts…” button</li>
<li>Select “Personal Stationery” tab</li>
<li>Click &#8220;Font&#8221; button to change the font</li>
</ul>
<p>It&#8217;s nice, isn&#8217;t it?</p>
<p><a href="http://www.howto-outlook.com/faq/locatefeature.htm#global_outlook_options_and_features" title="Outlook feature locate">Here</a> there are even more paths for different options.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20111220/outlook-2007-set-default-font.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: checksum function for strings</title>
		<link>http://www.memosoup.com/20111117/oracle-checksum-function-for-strings.html</link>
		<comments>http://www.memosoup.com/20111117/oracle-checksum-function-for-strings.html#comments</comments>
		<pubDate>Thu, 17 Nov 2011 09:40:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=432</guid>
		<description><![CDATA[CREATE OR REPLACE FUNCTION get_checksum&#40;source_string IN VARCHAR&#41; RETURN VARCHAR IS &#160; raw_string RAW&#40;2048&#41;; &#160; result &#160; &#160; RAW&#40;2048&#41;; BEGIN &#160; raw_string := utl_i18n.string_to_raw&#40;source_string&#41;; &#160; result := sys.dbms_crypto.hash&#40;raw_string, sys.dbms_crypto.hash_sh1&#41;; &#160; RETURN result ; END; / ]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container plsql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="plsql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://www.oracle.com/pls/db92/db92.drilldown?word=CREATE"><span style="color: #00F;">CREATE</span></a> <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=OR"><span style="color: #00F;">OR</span></a> <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=REPLACE"><span style="color: #000;">REPLACE</span></a> <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=FUNCTION"><span style="color: #00F;">FUNCTION</span></a> get_checksum<span style="color: #00F;">&#40;</span>source_string <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=IN"><span style="color: #00F;">IN</span></a> <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=VARCHAR"><span style="color: #00F;">VARCHAR</span></a><span style="color: #00F;">&#41;</span><br />
<a href="http://www.oracle.com/pls/db92/db92.drilldown?word=RETURN"><span style="color: #00F;">RETURN</span></a> <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=VARCHAR"><span style="color: #00F;">VARCHAR</span></a> <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=IS"><span style="color: #00F;">IS</span></a><br />
&nbsp; raw_string <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=RAW"><span style="color: #00F;">RAW</span></a><span style="color: #00F;">&#40;</span><span style="color: #800;">2048</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span><br />
&nbsp; result &nbsp; &nbsp; <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=RAW"><span style="color: #00F;">RAW</span></a><span style="color: #00F;">&#40;</span><span style="color: #800;">2048</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span><br />
<a href="http://www.oracle.com/pls/db92/db92.drilldown?word=BEGIN"><span style="color: #00F;">BEGIN</span></a><br />
&nbsp; raw_string <span style="color: #00F;">:=</span> utl_i18n<span style="color: #00F;">.</span>string_to_raw<span style="color: #00F;">&#40;</span>source_string<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span><br />
&nbsp; result <span style="color: #00F;">:=</span> sys<span style="color: #00F;">.</span>dbms_crypto<span style="color: #00F;">.</span>hash<span style="color: #00F;">&#40;</span>raw_string<span style="color: #00F;">,</span> sys<span style="color: #00F;">.</span>dbms_crypto<span style="color: #00F;">.</span>hash_sh1<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span><br />
&nbsp; <a href="http://www.oracle.com/pls/db92/db92.drilldown?word=RETURN"><span style="color: #00F;">RETURN</span></a> result <span style="color: #00F;">;</span><br />
<a href="http://www.oracle.com/pls/db92/db92.drilldown?word=END"><span style="color: #00F;">END</span></a><span style="color: #00F;">;</span><br />
<span style="color: #00F;">/</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20111117/oracle-checksum-function-for-strings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl: SOAP problem with dateTime</title>
		<link>http://www.memosoup.com/20111110/perl-soap-problem-with-datetime.html</link>
		<comments>http://www.memosoup.com/20111110/perl-soap-problem-with-datetime.html#comments</comments>
		<pubDate>Thu, 10 Nov 2011 16:29:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[perl soap date]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=428</guid>
		<description><![CDATA[<p>The following error message was received by Perl application: Unrecognized type &#8216;{http://www.w3.org/1999/XMLSchema}dateTime</p> <p>The problem is caused by &#8220;dateTime&#8221; type: it was not supported in the 1999 XML Specification. The solution is to switch to 2001 schema:</p> &#160;my $soap = SOAP::Lite-&#62;uri&#40; $NAMESPACE &#41;-&#62;proxy&#40; $PROXY_URL &#41;-&#62;xmlschema &#40;'2001'&#41;; ]]></description>
			<content:encoded><![CDATA[<p>The following error message was received by Perl application:<br />
<strong>Unrecognized type &#8216;{http://www.w3.org/1999/XMLSchema}dateTime</strong></p>
<p>The problem is caused by &#8220;dateTime&#8221; type: it was not supported in the 1999 XML Specification.<br />
The solution is to switch to 2001 schema:</p>
<div class="codecolorer-container perl default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$soap</span> <span style="color: #339933;">=</span> SOAP<span style="color: #339933;">::</span><span style="color: #006600;">Lite</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">uri</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$NAMESPACE</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">proxy</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$PROXY_URL</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">xmlschema</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'2001'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20111110/perl-soap-problem-with-datetime.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl: Soap deserialization error</title>
		<link>http://www.memosoup.com/20110729/perl-soap-deserialization-error.html</link>
		<comments>http://www.memosoup.com/20110729/perl-soap-deserialization-error.html#comments</comments>
		<pubDate>Fri, 29 Jul 2011 13:08:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[soap]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=423</guid>
		<description><![CDATA[<p>Sometimes the following error is displayed, if application uses the old version of CPAN SOAP module: &#8220;Client Application failed during request deserialization: no element found at line 1, column 0, byte -1 at XML/Parser.pm&#8221;</p> <p>The possilbe solution is to change SOAP::Transport::HTTP module (SOAP/Transport/HTTP.pm), function &#8220;handle&#8221;:</p> sysread&#40; STDIN, $buffer, $length &#41; <p>should be replaced by</p> read&#40; [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes the following error is displayed, if application uses the old version of CPAN SOAP module:<br />
<em>&#8220;Client Application failed during request deserialization: no element found at line 1, column 0, byte -1 at XML/Parser.pm&#8221;</em></p>
<p>The possilbe solution is to change SOAP::Transport::HTTP module (SOAP/Transport/HTTP.pm), function &#8220;handle&#8221;:</p>
<div class="codecolorer-container perl default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://perldoc.perl.org/functions/sysread.html"><span style="color: #000066;">sysread</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000000; font-weight: bold;">STDIN</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$buffer</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$length</span> <span style="color: #009900;">&#41;</span></div></div>
<p>should be replaced by</p>
<div class="codecolorer-container perl default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://perldoc.perl.org/functions/read.html"><span style="color: #000066;">read</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000000; font-weight: bold;">STDIN</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$buffer</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$length</span> <span style="color: #009900;">&#41;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20110729/perl-soap-deserialization-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AutoIt: script for hotkeys usage</title>
		<link>http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html</link>
		<comments>http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html#comments</comments>
		<pubDate>Fri, 08 Apr 2011 17:15:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows & DOS]]></category>
		<category><![CDATA[autoit]]></category>
		<category><![CDATA[hotkey]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=415</guid>
		<description><![CDATA[<p>This script allows You to define the global Windows hotkeys via the configuration file.</p> <p>The syntax of the config file is simple:</p> <p> Hotkey,Program,Parameters </p> <p>Here &#8220;Hotkey&#8221; is the combination of the keyboard key with one of the identifiers:</p> <p> ^ Ctrl ! Alt + Shift # Windows-Key </p> <p>Example:</p> <p> ;Win+C &#8211; start calculator [...]]]></description>
			<content:encoded><![CDATA[<p>This script allows You to define the global Windows hotkeys via the configuration file.</p>
<p>The syntax of the config file is simple:</p>
<blockquote><p>
Hotkey,Program,Parameters
</p></blockquote>
<p>Here &#8220;Hotkey&#8221; is the combination of the keyboard key with one of the identifiers:</p>
<blockquote><p>
^ Ctrl<br />
! Alt<br />
+ Shift<br />
# Windows-Key
</p></blockquote>
<p>Example:</p>
<blockquote><p>
;Win+C &#8211; start calculator<br />
#{c},calc.exe</p>
<p>;Win+Shift+N &#8211; start notepad<br />
+#{n},notepad.exe</p>
<p>;Win+N &#8211; start notepad++ together with apploc.exe<br />
#{n},%windir%\AppPatch\AppLoc.exe,&#8221;%ProgramFiles%\Notepad++\notepad++.exe&#8221; -nosession /L0419
</p></blockquote>
<p><span id="more-415"></span></p>
<div class="codecolorer-container autoit default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="autoit codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #F000FF; font-style: italic;">#Include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>File<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<br />
<span style="font-style: italic; color: #009933;">; ^ Ctrl</span><br />
<span style="font-style: italic; color: #009933;">; ! Alt</span><br />
<span style="font-style: italic; color: #009933;">; + Shift</span><br />
<span style="font-style: italic; color: #009933;">; # Windows-Key</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a>&nbsp; <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">3</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a>&nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ENUM</span></a>&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$sPATH</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$sProgramFiles</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$sAppData</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;TrayAutoPause&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;TrayMenuMode&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-weight: bold; color: #AA0000;">$mnuReadSettings</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;Read settings&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$mnuHelp</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;Help&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$mnuExit</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;Exit&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a> read_settings<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Local</span></a> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/FileChangeDir.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileChangeDir</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@scriptdir</span></span></a> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Not</span></a> <span style="color: #0080FF; font-style: italic; font-weight: bold;">_FileReadToArray</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;hotkeys.txt&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4096</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Error&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot; Error reading hotkeys.txt@CRLF error:&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@error</span></span></a><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4096</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Error&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot; No hotkeys defined&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ReDim</span></a> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">3</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;ExpandEnvStrings&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">for</span></a> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">to</span></a> <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringLen.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringLen</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">or</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringLeft.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringLeft</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">=</span> &nbsp;<span style="font-weight: bold; color: #9977BB;">&quot;;&quot;</span> &nbsp;<span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ContinueLoop</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aCurLine</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringSplit.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringSplit</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;,;&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$lCurLine</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$lCurLine</span><span style="color: #FF0000; font-weight: bold;">&lt;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">or</span></a> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> &nbsp;<span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">or</span></a> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> &nbsp;<span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4096</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Error&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot; No program or hotkey defined: &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Are the parameters for the command line?</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$lCurLine</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$sParam</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$sParam</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Switch</span></a>&nbsp; <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #9977BB;">&quot;SPECIAL&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/HotKeySet.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">HotKeySet</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;_run_special&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> &nbsp; <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span>&nbsp; <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$sParam</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #9977BB;">&quot; &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="font-style: italic; color: #009933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/HotKeySet.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">HotKeySet</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;_run_it&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">+</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="font-style: italic; color: #009933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndSwitch</span></a><br />
<br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;ExpandEnvStrings&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a>&nbsp; &nbsp; _run_special<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;No action&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;Reserved for future use&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a>&nbsp; &nbsp; _run_it<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">to</span></a> <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@HotKeyPressed</span></span></a> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/Run.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">Run</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ExitLoop</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a>&nbsp; &nbsp; show_help<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Local</span></a> &nbsp; <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">for</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">to</span></a> <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #9977BB;">&quot; &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@CRLF</span></span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Help&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<span style="font-style: italic; color: #009933;">; ##### Main ######</span><br />
read_settings<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">While</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayGetMsg.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayGetMsg</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Select</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$mnuReadSettings</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read_settings<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">case</span></a> <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$mnuHelp</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; show_help<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$mnuExit</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndSelect</span></a><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/Sleep.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">sleep</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">100</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">WEnd</span></a></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: buffer overflow (ORU-10027)</title>
		<link>http://www.memosoup.com/20110406/oracle-buffer-overflow-oru-10027.html</link>
		<comments>http://www.memosoup.com/20110406/oracle-buffer-overflow-oru-10027.html#comments</comments>
		<pubDate>Wed, 06 Apr 2011 13:03:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[buffer]]></category>
		<category><![CDATA[overflow]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=409</guid>
		<description><![CDATA[<p>Sometimes it&#8217;s necessary to show the output of the PL/SQL script. Usually the dbms_output package is used:</p> SET serveroutput ON DECLARE &#160;i NUMBER ; BEGIN &#160;i:=0 ; &#160;WHILE i&#60; 100000 LOOP &#160; i:=i+1 ; &#160; dbms_output.put_line&#40;'This is just test line #' &#124;&#124; TO_CHAR&#40;i&#41; &#41; ; &#160;END LOOP ; END; / <p>After several thousands lines the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s necessary to show the output of the PL/SQL script.<br />
Usually the <strong>dbms_output</strong> package is used:</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">SET</span> serveroutput <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ON</span><br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span><br />
&nbsp;i <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NUMBER</span> ;<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span><br />
&nbsp;i:<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span> ;<br />
&nbsp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHILE</span> i<span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">100000</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOOP</span> <br />
&nbsp; i:<span style="color: #66cc66;">=</span>i<span style="color: #66cc66;">+</span><span style="color: #cc66cc;">1</span> ;<br />
&nbsp; dbms_output.put_line<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'This is just test line #'</span> <span style="color: #66cc66;">||</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO_CHAR</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> ;<br />
&nbsp;<span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOOP</span> ;<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>;<br />
<span style="color: #66cc66;">/</span></div></div>
<p>After several thousands lines the following error message is displayed:</p>
<blockquote><p>
ORA-20000: ORU-10027: buffer overflow, limit of 20000 bytes<br />
ORA-06512: at &#8220;SYS.DBMS_OUTPUT&#8221;, line 32<br />
ORA-06512: at &#8220;SYS.DBMS_OUTPUT&#8221;, line 97<br />
ORA-06512: at &#8220;SYS.DBMS_OUTPUT&#8221;, line 112<br />
ORA-06512: at line 8
</p></blockquote>
<p>The error message means, that the internal buffer of dbms_output is full. How to increase it?<br />
The following methods could be used:</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">...<br />
dbms_package.enable<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100000</span><span style="color: #66cc66;">&#41;</span> ;<br />
...</div></div>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">...<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SET</span> serveroutput <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ON</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span> <span style="color: #cc66cc;">100000</span><br />
...</div></div>
<p>In Oracle 10gR2 the new addition <strong>&#8220;size unlimited&#8221;</strong> could be used:</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">...<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SET</span> serveroutput <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ON</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span> unlimited<br />
...</div></div>
<p>If these methods do not work, the <strong>temporary table</strong> could be used:</p>
<div class="codecolorer-container oracle8 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="oracle8 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SEQUENCE</span> my_output_seq ;<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> global <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TEMPORARY</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> my_output_table<span style="color: #66cc66;">&#40;</span> my_row <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NUMBER</span><span style="color: #66cc66;">,</span> my_out <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR2</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">120</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> ;<br />
...<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">INSERT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">INTO</span> my_output_table <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VALUES</span> <span style="color: #66cc66;">&#40;</span> my_output_seq.<span style="color: #993333; font-weight: bold; text-transform: uppercase;">NEXTVAL</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'This is some string'</span> <span style="color: #66cc66;">&#41;</span> ;<br />
...<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> my_out <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> my_output_table <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ORDER</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BY</span> my_row ;<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DROP</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> my_output_table ;<br />
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DROP</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SEQUENCE</span> my_output_seq ;</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20110406/oracle-buffer-overflow-oru-10027.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

