<?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>My Tutorial</title>
	<atom:link href="http://dailycode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dailycode.wordpress.com</link>
	<description>Code, Algorithm, and Database</description>
	<lastBuildDate>Wed, 23 Sep 2009 04:24:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dailycode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My Tutorial</title>
		<link>http://dailycode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dailycode.wordpress.com/osd.xml" title="My Tutorial" />
	<atom:link rel='hub' href='http://dailycode.wordpress.com/?pushpress=hub'/>
		<item>
		<title>TwitterFeed testing</title>
		<link>http://dailycode.wordpress.com/2009/09/23/twitterfeed-testing/</link>
		<comments>http://dailycode.wordpress.com/2009/09/23/twitterfeed-testing/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 04:24:58 +0000</pubDate>
		<dc:creator>anthonysteven</dc:creator>
				<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://dailycode.wordpress.com/2009/09/23/twitterfeed-testing/</guid>
		<description><![CDATA[This post is made to test twitterfeed. Hopefully it can revived this blog also<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=12&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is made to test twitterfeed.</p>
<p>Hopefully it can revived this blog also <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailycode.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailycode.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailycode.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailycode.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailycode.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailycode.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailycode.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailycode.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailycode.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailycode.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailycode.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailycode.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailycode.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailycode.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=12&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailycode.wordpress.com/2009/09/23/twitterfeed-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/079568eb4405447628919f0fcdfb8263?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anthonysteven</media:title>
		</media:content>
	</item>
		<item>
		<title>Hiding Detail Section In Crystal Reports (.Net)</title>
		<link>http://dailycode.wordpress.com/2008/01/11/hiding-detail-section-in-crystal-reports-net/</link>
		<comments>http://dailycode.wordpress.com/2008/01/11/hiding-detail-section-in-crystal-reports-net/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 05:06:16 +0000</pubDate>
		<dc:creator>Andra</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Hide detail]]></category>
		<category><![CDATA[hide section]]></category>

		<guid isPermaLink="false">http://dailycode.wordpress.com/2008/01/11/hiding-detail-section-in-crystal-reports-net/</guid>
		<description><![CDATA[I&#8217;m not a Crystal Report Expert. This article is for newbie only. You can read this article in Indonesian Language too here. I’ve faced this problem two days ago. If there is any extension data, I have to show it in my report where the number of extension table(s) = extension data. So, I’ve to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=8&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><font color="#ff0000">I&#8217;m not a Crystal Report Expert. This article is for newbie only. You can read this article in Indonesian Language too <a href="http://anwarchandra.wordpress.com/2008/01/11/hiding-detail-section-in-crystal-reports-net/">here</a>. </font></p>
<p class="MsoNormal">I’ve faced this problem two days ago. If there is any extension data, I have to show it in my report where the number of extension table(s) = extension data.</p>
<p class="MsoNormal">So, I’ve to put the extension data in a datatable, and locate its fields in Details section of my Crystal Report Designer.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><!--[if gte vml 1]&amp;gt;                                                  &amp;lt;![endif]--><!--[if !vml]--><a href="http://dailycode.files.wordpress.com/2008/01/details_section.jpg" title="Detail Section"><img src="http://dailycode.files.wordpress.com/2008/01/details_section.jpg?w=563&#038;h=105" alt="Detail Section" height="105" width="563" /></a><!--[endif]--></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">As its behaviour, when the datatable has 4 records, 4 extension tables printed in my report. When it is 3 records, 3 tables printed.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Okay. That’s perfect!! When it is N record(s), N table(s) printed. But I don’t know why. When the datatable empty, N = 0, it printed empty table.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">My boss warned me not to display this extension table template.<!--[if gte vml 1]&amp;gt;   &amp;lt;![endif]--><!--[if !vml]--><a href="http://dailycode.files.wordpress.com/2008/01/boss_warned.jpg" title="Warning"><img src="http://dailycode.files.wordpress.com/2008/01/boss_warned.jpg?w=458&#038;h=107" alt="Warning" height="107" width="458" /></a><!--[endif]--></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">I’ve browsed report document object properties to find a property which could hide details section, but failed to find the associated property.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">I’ve googled this problem for hours, but failed to find a solution.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">So I tried to solve this problem on my own creativity.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">I made two Crystal Report Template (rpt files): Report.rpt and Report_noExtension.rpt.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Report_noExtension.rpt is copied from Report.rpt but with little modification to Detail Section.</p>
<p class="MsoNormal"><a href="http://dailycode.files.wordpress.com/2008/01/hide_section.jpg" title="Hide a section"><img src="http://dailycode.files.wordpress.com/2008/01/hide_section.jpg?w=562&#038;h=269" alt="Hide a section" height="269" width="562" /></a></p>
<p class="MsoNormal">Right click on detail section <span style="font-family:Wingdings;"><span>à</span></span> Section Format <span style="font-family:Wingdings;"><span>à</span></span> select Details in Section Expert <span style="font-family:Wingdings;"><span>à</span></span> check <i>Hide (Drill-Down OK) </i>option.</p>
<p class="MsoNormal">Yeah..!! I can hide this section in Report Designer only.</p>
<p class="MsoNormal"><span style="color:red;">ATTENTION!! IF YOU CAN DO THIS MODIFICATION IN C# 1.1, PLEASE TELL ME HOW TO DO THAT.</span></p>
<p class="MsoNormal">Change this code</p>
<blockquote>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';">                <span style="color:blue;">Dim</span> rpt <span style="color:blue;">As</span> <span style="color:blue;">New</span> ReportDocument</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';">rpt.Load(ROOT_RPT + &#8220;Report.rpt&#8221;)</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';">rpt.SetDataSource(ds)</span></p>
</blockquote>
<p class="MsoNormal"><span> </span>to be</p>
<blockquote>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';">                <span style="color:blue;">Dim</span> rpt <span style="color:blue;">As</span> <span style="color:blue;">New</span> ReportDocument<br />
<span style="color:blue;">If</span> datatable.Rows.Count = 0 <span style="color:blue;">Then</span><br />
rpt.Load(ROOT_RPT + &#8220;Report_noExtension.rpt&#8221;)<br />
<span style="color:blue;">Else</span><br />
rpt.Load(ROOT_RPT + &#8220;Report.rpt&#8221;)<br />
<span style="color:blue;">End</span> <span style="color:blue;">If</span></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Courier New';"><span style="color:blue;"></span>rpt.SetDataSource(ds)</span></p>
</blockquote>
<p class="MsoNormal">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dailycode.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dailycode.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailycode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailycode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailycode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailycode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailycode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailycode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailycode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailycode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailycode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailycode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailycode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailycode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailycode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailycode.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=8&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailycode.wordpress.com/2008/01/11/hiding-detail-section-in-crystal-reports-net/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4cb774ed2f4d30b274e884f6fc79b07?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anwarchandra</media:title>
		</media:content>

		<media:content url="http://dailycode.files.wordpress.com/2008/01/details_section.jpg" medium="image">
			<media:title type="html">Detail Section</media:title>
		</media:content>

		<media:content url="http://dailycode.files.wordpress.com/2008/01/boss_warned.jpg" medium="image">
			<media:title type="html">Warning</media:title>
		</media:content>

		<media:content url="http://dailycode.files.wordpress.com/2008/01/hide_section.jpg" medium="image">
			<media:title type="html">Hide a section</media:title>
		</media:content>
	</item>
		<item>
		<title>Coming Up Next (Work or Hobby?)</title>
		<link>http://dailycode.wordpress.com/2007/08/26/coming-up-next-work-or-hobby/</link>
		<comments>http://dailycode.wordpress.com/2007/08/26/coming-up-next-work-or-hobby/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 05:37:29 +0000</pubDate>
		<dc:creator>anthonysteven</dc:creator>
				<category><![CDATA[From Me!]]></category>

		<guid isPermaLink="false">http://dailycode.wordpress.com/2007/08/26/coming-up-next-work-or-hobby/</guid>
		<description><![CDATA[It&#8217;s quite a time since I post my last tutorials. Coming up next will be one of these two: 1. Ms. SharePoint 2007 2. Fuzzy Logic, Concept and Implementation  The first one is related to my current work in my office and the second one is purely hobby. Which one goes first? Well&#8230;. Work or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=6&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s quite a time since I post my last tutorials. Coming up next will be one of these two:</p>
<p>1. Ms. SharePoint 2007</p>
<p>2. Fuzzy Logic, Concept and Implementation</p>
<p> The first one is related to my current work in my office and the second one is purely hobby. Which one goes first?</p>
<p>Well&#8230;. Work or Hobby Guys?</p>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dailycode.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dailycode.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailycode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailycode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailycode.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=6&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailycode.wordpress.com/2007/08/26/coming-up-next-work-or-hobby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/079568eb4405447628919f0fcdfb8263?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anthonysteven</media:title>
		</media:content>
	</item>
		<item>
		<title>Running .dtsx from C#</title>
		<link>http://dailycode.wordpress.com/2007/08/02/running-dtsx-from-c/</link>
		<comments>http://dailycode.wordpress.com/2007/08/02/running-dtsx-from-c/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 05:14:03 +0000</pubDate>
		<dc:creator>anthonysteven</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dailycode.wordpress.com/2007/08/02/running-dtsx-from-c/</guid>
		<description><![CDATA[I figure out this code when I try to run the .dtsx package from C#. Quite a prospect, I guess. The .dtsx package (Sql Server Integration Service) itself has open many possibilites to do some ETL and Data Warehousing. I won&#8217;t cover the ETL Tutorial with SSIS in this post though, I&#8217;m still learning on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=5&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I figure out this code when I try to run the .dtsx package from C#.<br />
Quite a prospect, I guess. The .dtsx package (Sql Server Integration Service) itself has open many possibilites to do some ETL and Data Warehousing. I won&#8217;t cover the ETL Tutorial with SSIS in this post though, I&#8217;m still learning on it.</p>
<p>I just want to share the code I made to run simple .dtsx package. When I try searching the tutorial in <a href="http://msdn2.microsoft.com/en-us/library/ms136090.aspx">http://msdn2.microsoft.com/en-us/library/ms136090.aspx</a> I got some errors when I compiled it, therefore I made some slight changes to make it work:</p>
<p>Here is my code:</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using Microsoft.SqlServer.Dts.Runtime;<br />
using Microsoft.SqlServer.Dts.Runtime.Wrapper;<br />
namespace MyConsole<br />
{<br />
    class Program<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            string pkgLocation;<br />
            <br />
           <br />
            Package pkg;<br />
            Application app;<br />
            DTSExecResult pkgResults;</p>
<p>            pkgLocation =<br />
            @&#8221;C:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\TheIntegration\TheIntegration\Package.dtsx&#8221;;<br />
            app = new Application();<br />
            pkg = (Package)app.LoadPackage(pkgLocation, true, null);<br />
            pkgResults = pkg.Execute();</p>
<p>            Console.WriteLine(pkgResults.ToString());<br />
            Console.ReadKey();<br />
        </p>
<p>          <br />
        }<br />
    }</p>
<p>}</p>
<p>Please note that the location string is the location of your .dtsx file. One more thing, don&#8217;t forget to add Microsoft.SQLServer.DTSRuntimeWrap.dll as reference.</p>
<p>Hope it help!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dailycode.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dailycode.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailycode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailycode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailycode.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=5&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailycode.wordpress.com/2007/08/02/running-dtsx-from-c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/079568eb4405447628919f0fcdfb8263?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anthonysteven</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP Tricks RC4 (With Slight Changes)</title>
		<link>http://dailycode.wordpress.com/2007/07/17/php-tricks-rc4-with-slight-changes/</link>
		<comments>http://dailycode.wordpress.com/2007/07/17/php-tricks-rc4-with-slight-changes/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 23:28:58 +0000</pubDate>
		<dc:creator>anthonysteven</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dailycode.wordpress.com/2007/07/17/php-tricks-rc4-with-slight-changes/</guid>
		<description><![CDATA[Below, is a code for encoding password with RC4 Algorithm with PHP. I got this code from PHP Tricks, however when I try the code, it return a &#8220;division by zero&#8221; error, so I make some slight modification to it. Enjoy! &#60;?php /* Security Code. */ $SEC_CODE = &#8216;kdjfhgO(*&#38;lojidsgoYOIM&#8217;; /* First Encoding Step, High Level [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=4&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below, is a code for encoding password with <a href="http://en.wikipedia.org/wiki/RC4">RC4 Algorithm</a> with PHP. I got this code from <a href="http://www.phptricks.com/lesson.php?id=6">PHP Tricks</a>, however when I try the code, it return a &#8220;<a href="http://en.wikipedia.org/wiki/Division_by_zero">division by zero</a>&#8221; error, so I make some slight modification to it. Enjoy!</p>
<p>&lt;?php<br />
/*<br />
Security Code.<br />
*/<br />
$SEC_CODE = &#8216;kdjfhgO(*&amp;lojidsgoYOIM&#8217;;</p>
<p>/*<br />
First Encoding Step,<br />
High Level Encoding<br />
Using RC4 Alogrithem<br />
*/<br />
function RC4($data,$pwd) {<br />
$pwd = $keyfile;<br />
$pwd_length = strlen($pwd);<br />
if ($pwd_length &gt; 0){ // add by anthonysteven<br />
for ($i = 0; $i &lt; 255; $i++) {<br />
$key[$i] = ord(substr($pwd, ($i % $pwd_length)+1, 1));<br />
$counter[$i] = $i;<br />
}<br />
}// add by anthonysteven<br />
for ($i = 0; $i &lt; 255; $i++) {<br />
$x = ($x + $counter[$i] + $key[$i]) % 256;<br />
$temp_swap = $counter[$i];<br />
$counter[$i] = $counter[$x];<br />
$counter[$x] = $temp_swap;<br />
}<br />
for ($i = 0; $i &lt; strlen($data); $i++) {<br />
$a = ($a + 1) % 256;<br />
$j = ($j + $counter[$a]) % 256;<br />
$temp = $counter[$a];<br />
$counter[$a] = $counter[$j];<br />
$counter[$j] = $temp;<br />
$k = $counter[(($counter[$a] + $counter[$j]) % 256)];<br />
$Zcipher = ord(substr($data, $i, 1)) ^ $k;<br />
$Zcrypt .= chr($Zcipher);<br />
}<br />
return $Zcrypt;<br />
}</p>
<p>/*<br />
Hex to Binary Converter<br />
Used to get the password<br />
after encoding<br />
*/<br />
function hex2bin($hexdata) {<br />
for ($i=0;$i&lt;strlen($hexdata);$i+=2) {<br />
$bindata.=chr(hexdec(substr($hexdata,$i,2)));<br />
}<br />
return $bindata;<br />
}</p>
<p>/*<br />
Encoding The Info<br />
*/</p>
<p>// Add by anthonysteven<br />
echo &#8220;<br />
&lt;form method = &#8216;post&#8217; action=&#8221;.$_Server["PHP_SELF"].&#8221;&gt;<br />
Enter Password:<br />
&lt;input type=&#8217;text&#8217; name=&#8217;pass&#8217;&gt;<br />
&lt;input type=&#8217;submit&#8217; value=&#8217;submit&#8217;&gt;<br />
&lt;/form&gt;&#8221;;<br />
// Add by anthonysteven</p>
<p>$my_password = $_POST['pass'];</p>
<p>$new_password = bin2hex(RC4($my_password,SEC_CODE));</p>
<p>echo &#8220;New Password (After RC4) = &#8220;$new_password;<br />
echo &#8220;&lt;BR&gt;&#8221;;<br />
/*<br />
Decoding The Info<br />
*/</p>
<p>$my_password =     RC4(hex2bin($new_password),$SEC_CODE);</p>
<p>echo &#8220;Old Password = &#8220;$my_password;<br />
?&gt;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dailycode.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dailycode.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailycode.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailycode.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailycode.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=4&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailycode.wordpress.com/2007/07/17/php-tricks-rc4-with-slight-changes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/079568eb4405447628919f0fcdfb8263?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anthonysteven</media:title>
		</media:content>
	</item>
		<item>
		<title>K-Means</title>
		<link>http://dailycode.wordpress.com/2007/07/16/k-means/</link>
		<comments>http://dailycode.wordpress.com/2007/07/16/k-means/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 15:56:37 +0000</pubDate>
		<dc:creator>anthonysteven</dc:creator>
				<category><![CDATA[Algorithm]]></category>

		<guid isPermaLink="false">http://dailycode.wordpress.com/2007/07/16/k-means/</guid>
		<description><![CDATA[This is an english version of the tutorial I posted here (in bahasa Indonesia). K-Means is a classic algorithm that are used for data mining or to be more specific partitional clustering type of data mining. What did K-Means do? Two things that we should keep in mind: 1. K-Means is an unsupervised learning algorithm. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=3&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is an english version of the tutorial I posted <a href="http://anthonysteven.wordpress.com/tutorial/algoritma-kmeans/">here </a>(in bahasa Indonesia).</p>
<p>K-Means is a classic algorithm that are used for data mining or to be more specific partitional clustering type of data mining.</p>
<p>What did K-Means do?</p>
<p>Two things that we should keep in mind:</p>
<p>1. K-Means is an unsupervised learning algorithm. It means K-Means, after given some initial condition will &#8220;learn&#8221; by itself without any supervision or human intervention</p>
<p>2. K-Means is a partitional clustering algorithm. It divides data into a number of clusters given without giving any hierarchies. You won&#8217;t find tree in this algorithm, consider it luck <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To ease my explaining and you understanding, let us head to the example. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For example, I have a data set S = {3,6,7,2,3,12} and I want to divide it into, say, two clusters using K-Means. This are the steps:</p>
<p>1.  Centroid Initialization</p>
<p>Each cluster has a center value named centroid, now the first thing we will do is initialize the value of the centroids. How? The first way is to simply make a random choice on the data set. The second way (and the better way, is to sort the data and choose the data that are located in a position that will divide the data set into some number of cluster given.</p>
<p>Now, we will try the second way, first we sort the data:<br />
S` = {2,3,3,6,7,12}</p>
<p>Than we make the first data &#8217;2&#8242; and the fourth data &#8217;4&#8242; to be the initialized.</p>
<p>So, C1 (centroid 1) = 2, and C2 = 6.</p>
<p>2. Divide the data into the clusters.</p>
<p>How? Simply by comparing the data with the centroids (to achieve distance). Data goes to a cluster that has less distance.</p>
<p>S` = {2,3,3,6,7,12}<br />
C1 = 2<br />
C2 = 6<br />
Clu1(Cluster 1) = {2,3,3}<br />
Clu2(Cluster 2) = {6,7,12}</p>
<p>3. Update Centroid Value</p>
<p>Update Centroid Value by counting the means of the cluster.</p>
<p>C1` = 2+3+3/3 = 2.67<br />
C2` = 6+7+12/3 = 8.33</p>
<p>4. Compare the new centroid value with the old ones</p>
<p>If the new and old on values the same or their distance is below minimum tolerance, it means the algorithm has reach a stable point, and it&#8217;s time to stop.</p>
<p>C1` &#8211; C1 = 0.67<br />
C2` &#8211; C2 = 2.33</p>
<p>Because it is not stable, we go back to step 2 with the new centroid value.</p>
<p>5. (Step 2)</p>
<p>S` = {2,3,3,6,7,12}<br />
C1&#8242; = 2.67<br />
C2&#8242; = 8.33<br />
Clu1(Cluster 1) = {2,3,3}<br />
Clu2(Cluster 2) = {6,7,12}</p>
<p>6. (Step 3)</p>
<p>C1&#8220; = 2+3+3/3 = 2.67<br />
C2&#8220; = 6+7+12/3 = 8.33</p>
<p>7. (Step 4)</p>
<p>C1&#8220; &#8211; C1` = 0<br />
C2&#8220; &#8211; C2` = 0</p>
<p>The algorithm stable! so, now we get the result:</p>
<p>Clu1(Cluster 1) = {2,3,3}<br />
Clu2(Cluster 2) = {6,7,12}</p>
<p>~hopeItHelp!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dailycode.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dailycode.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailycode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailycode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailycode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailycode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailycode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailycode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailycode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailycode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailycode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailycode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailycode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailycode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailycode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailycode.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=3&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailycode.wordpress.com/2007/07/16/k-means/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/079568eb4405447628919f0fcdfb8263?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anthonysteven</media:title>
		</media:content>
	</item>
		<item>
		<title>All About Code</title>
		<link>http://dailycode.wordpress.com/2007/07/16/hello-world/</link>
		<comments>http://dailycode.wordpress.com/2007/07/16/hello-world/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 15:03:55 +0000</pubDate>
		<dc:creator>anthonysteven</dc:creator>
				<category><![CDATA[From Me!]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This blog is my online tutorial place where I will put my knowledge or others proven good knowledge about coding. I&#8217;m still learning though and I&#8217;m not a code-freak myself so I&#8217;m just trying to share and help. Your responses for my tutorial will be a tremendous help. niceDay!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=1&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This blog is my online tutorial place where I will put my knowledge or others proven good knowledge about coding. I&#8217;m still learning though and I&#8217;m not a code-freak myself so I&#8217;m just trying to share and help.</p>
<p>Your responses for my tutorial will be a tremendous help.</p>
<p>niceDay!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dailycode.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dailycode.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailycode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailycode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailycode.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailycode.wordpress.com&amp;blog=1376072&amp;post=1&amp;subd=dailycode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailycode.wordpress.com/2007/07/16/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/079568eb4405447628919f0fcdfb8263?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anthonysteven</media:title>
		</media:content>
	</item>
	</channel>
</rss>
