<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>sourcecode &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/sourcecode/</link>
	<description>Feed of posts on WordPress.com tagged "sourcecode"</description>
	<pubDate>Sun, 29 Nov 2009 02:36:16 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[How to post source code on Wordpress]]></title>
<link>http://ilea.wordpress.com/2009/11/29/how-to-post-source-code-on-wordpress/</link>
<pubDate>Sun, 29 Nov 2009 00:04:17 +0000</pubDate>
<dc:creator>Razzor</dc:creator>
<guid>http://ilea.wordpress.com/2009/11/29/how-to-post-source-code-on-wordpress/</guid>
<description><![CDATA[As I said in another post, I will post predominantly IT content.These days I started to learn the Ja]]></description>
<content:encoded><![CDATA[As I said in another post, I will post predominantly IT content.These days I started to learn the Ja]]></content:encoded>
</item>
<item>
<title><![CDATA[Get Directory path than added to imageList]]></title>
<link>http://myxjulius.wordpress.com/2009/11/24/get-directory-path-than-added-to-imagelist/</link>
<pubDate>Tue, 24 Nov 2009 04:14:19 +0000</pubDate>
<dc:creator>Xjulius</dc:creator>
<guid>http://myxjulius.wordpress.com/2009/11/24/get-directory-path-than-added-to-imagelist/</guid>
<description><![CDATA[Sourcecode for Getting Pictures to Images-ArrayList 'New Code mFolder = &quot;%systemroot%&quot; If ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Sourcecode </strong>for Getting Pictures to Images-ArrayList</p>
<pre class="brush: vb;">

'New Code
 mFolder = &#34;%systemroot%&#34;
 If (Not String.IsNullOrEmpty(mFolder)) Then
 txtImageDirectory.Text = mFolder
 Else
 Return
 End If

 mImageList = New ArrayList()

 Dim Dir As New DirectoryInfo(mFolder)
 Dim f As FileInfo

'loop
 For Each f In Dir.GetFiles(&#34;*.*&#34;)
   Select Case (f.Extension.ToUpper())
   Case &#34;.JPG&#34;
   mImageList.Add(f.FullName)
   Case &#34;.BMP&#34;
   mImageList.Add(f.FullName)
   Case &#34;.GIF&#34;
   mImageList.Add(f.FullName)
   Case Else
 End Select
 Next
'end loop

 mImagePosition = 0
 SetImages() 'Set Image form array to list []

' End of New code
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Wallpaper.vb]]></title>
<link>http://myxjulius.wordpress.com/2009/11/23/wallpaper-vb/</link>
<pubDate>Mon, 23 Nov 2009 19:25:25 +0000</pubDate>
<dc:creator>Xjulius</dc:creator>
<guid>http://myxjulius.wordpress.com/2009/11/23/wallpaper-vb/</guid>
<description><![CDATA[Imports System Imports System.Runtime.InteropServices Imports System.Drawing Imports Microsoft.Win32]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><pre class="brush: vb;">
Imports System
Imports System.Runtime.InteropServices
Imports System.Drawing
Imports Microsoft.Win32

Public Class Wallpaper
    Const SPI_SETDESKWALLPAPER As Integer = 20
    Const SPIF_UPDATEINIFILE As Integer = &#38;H1&#38;
    Const SPIF_SENDWININICHANGE As Integer = &#38;H2&#38;

    &#60;DllImport(&#34;user32&#34;)&#62; _
    Public Shared Function SystemParametersInfo(ByVal uAction As Integer, _
        ByVal uParam As Integer, ByVal lpvParam As String, ByVal fuWinIni As Integer) As Integer
    End Function

    Public Enum Style As Integer
        Tiled
        Centered
        Stretched
    End Enum

    Public Sub SetWallpaper(ByVal path As String, ByVal selectedStyle As Style)
        Dim key As RegistryKey = My.Computer.Registry.CurrentUser.OpenSubKey(&#34;Control Panel\Desktop&#34;, True)

        Select Case selectedStyle
            Case Style.Stretched
                key.SetValue(&#34;WallpaperStyle&#34;, &#34;2&#34;)
                key.SetValue(&#34;TileWallpaper&#34;, &#34;0&#34;)

            Case Style.Centered
                key.SetValue(&#34;WallpaperStyle&#34;, &#34;1&#34;)
                key.SetValue(&#34;TileWallpaper&#34;, &#34;0&#34;)

            Case Style.Tiled
                key.SetValue(&#34;WallpaperStyle&#34;, &#34;1&#34;)
                key.SetValue(&#34;TileWallpaper&#34;, &#34;1&#34;)
        End Select

        SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, path, SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE)
    End Sub
End Class
</pre>
<p>I got this source form <a class="wp-caption" title="Setting Wallpaper" href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/912569.aspx" target="_blank"><span class="wp-caption">Coding4Fun</span></a></pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mini Mario Kart]]></title>
<link>http://moorx.wordpress.com/2009/10/29/mini-mario-kart/</link>
<pubDate>Thu, 29 Oct 2009 08:12:19 +0000</pubDate>
<dc:creator>moorx</dc:creator>
<guid>http://moorx.wordpress.com/2009/10/29/mini-mario-kart/</guid>
<description><![CDATA[I&#8217;m going to host a workshop on game for a class of high school final graders at Technikum Wie]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="aligncenter size-medium wp-image-30" title="minimariokart" src="http://moorx.wordpress.com/files/2009/10/minimariokart1.png?w=300" alt="minimariokart" width="300" height="167" /></p>
<p>I&#8217;m going to host a workshop on game for a class of high school final graders at Technikum Wien. I&#8217;ll be talking about the game development process and the roles of the various people employed in a game development team. I don&#8217;t want to get too technical, but to show some basics of game and graphics programming, I prepared a little tutorial that will be part of the workshop. You can download the source code and all resources <a href="http://cid-dbfa33db98a79fe9.skydrive.live.com/self.aspx/%c3%96ffentlich/minimariokart.zip?authkey=zeW0Rt7enMw%24">here</a> and you will need <a href="http://www.processing.org">Processing</a> to run it. As soon as I&#8217;m finished with preparing the workshop slides, I&#8217;ll put them up too!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Open Source Digital Voting's TrustTheVote project]]></title>
<link>http://digitalsarkaar.wordpress.com/2009/10/27/open-source-digital-votings-trustthevote-project/</link>
<pubDate>Tue, 27 Oct 2009 07:05:20 +0000</pubDate>
<dc:creator>sandeep</dc:creator>
<guid>http://digitalsarkaar.wordpress.com/2009/10/27/open-source-digital-votings-trustthevote-project/</guid>
<description><![CDATA[The OSDV&#8217;s, flagship project &#8211; TrustTheVote has been released to the common public among]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The <a href="http://osdv.org/about" target="_blank">OSDV</a>&#8217;s, flagship project &#8211; <a href="http://www.trustthevote.org/background" target="_blank">TrustTheVote</a> has been released to the common public amongst much <a href="http://www.wired.com/threatlevel/2009/10/open-source" target="_blank">fanfare</a> &#8211; Hollywood and all participating. The goals of the project are very simple &#8211; trusted, auditable, secure voting systems.</p>
<p>the project plans, software downloads and hardware specs can be found <a href="https://wiki.trustthevote.org/index.php/SHARP_Project#SHARP_Prototype" target="_blank">here</a>. The source code version tracker is <a href="http://github.com/trustthevote" target="_blank">here</a>.</p>
<p>Given our status as the world&#8217;s largest democracy, I&#8217;m really surprised we are&#8217;nt actively contributing to such projects.</p>
<p>Then again, I&#8217;m not surprised.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sequoia Sourcecode im Internet verfügbar]]></title>
<link>http://murdeltas.wordpress.com/2009/10/21/sequoia-sourcecode-im-internet-verfugbar/</link>
<pubDate>Wed, 21 Oct 2009 11:22:28 +0000</pubDate>
<dc:creator>marc</dc:creator>
<guid>http://murdeltas.wordpress.com/2009/10/21/sequoia-sourcecode-im-internet-verfugbar/</guid>
<description><![CDATA[(der beitrag ist auch auf papierwahl.at zu lesen) Das Projekt studysequoia, hinter dem die Election ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://murdeltas.wordpress.com/files/2008/11/papierwahl1.jpg"><img src="http://murdeltas.wordpress.com/files/2008/11/papierwahl1.jpg?w=300" alt="papierwahl1" title="papierwahl1" width="300" height="56" class="alignnone size-medium wp-image-44" /></a><br />
<i><font size="1">(der beitrag ist auch auf <a href="http://papierwahl.at/2009/10/21/sequoia-sourcecode-im-internet-verfugbar/">papierwahl.at</a> zu lesen)</font></i></p>
<p>Das Projekt <a href="http://studysequoia.wikispaces.com">studysequoia</a>, hinter dem die <a href="http://electiondefensealliance.org/">Election Defense Alliance</a> steckt, hat jetzt erstmals Sequoias (proprietären) Sourcecode im Internet zugänglich gemacht. Der Code wurde dabei auf völlig legalem Weg beschafft.<br />
Wie es dazu kam, wird auf der Seite erklärt:<br />
<blockquote>The Election Defense Alliance filed a public records request under California law for a copy of the final election databases from recent elections in Riverside County California. Riverside coughed them up, after sending them first to Sequoia for &#8220;redaction of trade secrets&#8221; and forcing EDA to pay a substantial amount for this &#8220;service.&#8221;</p>
<p>As near as we can tell, instead of stripping out proprietary stuff of any sort, Sequoia simply committed vandalism <i>[*]</i>: they stripped the Microsoft SQL header data off the top, expecting that this would ruin access to the data under any possible database utility and making the contents unreadable.</p>
<p>While they succeeded in ruining the files as data, they didn&#8217;t realize what a Linux user could do with the &#8220;strings&#8221; command: strip out unreadable characters and leave everything left as readable plain text. This in turn revealed thousands of lines of Microsoft SQL code that appear to control the logical flow of the election.</p></blockquote>
<p> <i>[*]</i> Auf der Seite wird derzeit nicht mehr von <i>vandalism</i>, sondern von &#8220;<a href="http://studysequoia.wikispaces.com/Discussion+Related+To+The+Original+Data+File+And+What+Sequoia+Did+To+It.">failed redaction</a>&#8221; gesprochen.</p>
<p>Die 3 Hauptziele des Projekts lauten jetzt folgendermaßen:<br />
<i> Determine the security risks associated with editing this code in the field.<br />
 Determine what this code does, and if it does so honestly, effectively or in a legal fashion.<br />
 Determine if this code even legally exists or meets the legal definitions for a &#8220;voting system&#8221; at all under federal or state published guidelines.</i></p>
<p>Downloadmöglichkeiten gibt es <a href="http://studysequoia.wikispaces.com/downloadlocations">hier</a>.<br />
Das 153MB große komplette Paket steht als <a href="http://www.fossfactory.org/sequoiacompletefile.zip">sequoiacompletefile.zip</a> und <a href="http://studysequoia.wikispaces.com/file/view/sequoiacompletefile.zip.torrent">sequoiacompletefile.zip.torrent</a> bereit.</p>
<p>[via <a href="http://www.bradblog.com/?p=7477">The Brad Blog</a>]</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sequoia Sourcecode im Internet verfügbar]]></title>
<link>http://papierwahl.at/2009/10/21/sequoia-sourcecode-im-internet-verfugbar/</link>
<pubDate>Wed, 21 Oct 2009 11:19:07 +0000</pubDate>
<dc:creator>marc</dc:creator>
<guid>http://papierwahl.at/2009/10/21/sequoia-sourcecode-im-internet-verfugbar/</guid>
<description><![CDATA[Das Projekt studysequoia, hinter dem die Election Defense Alliance steckt, hat jetzt erstmals Sequoi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Das Projekt <a href="http://studysequoia.wikispaces.com">studysequoia</a>, hinter dem die <a href="http://electiondefensealliance.org/">Election Defense Alliance</a> steckt, hat jetzt erstmals Sequoias (proprietären) Sourcecode im Internet zugänglich gemacht. Der Code wurde dabei auf völlig legalem Weg beschafft.<br />
Wie es dazu kam, wird auf der Seite erklärt:<br />
<blockquote>The Election Defense Alliance filed a public records request under California law for a copy of the final election databases from recent elections in Riverside County California. Riverside coughed them up, after sending them first to Sequoia for &#8220;redaction of trade secrets&#8221; and forcing EDA to pay a substantial amount for this &#8220;service.&#8221;</p>
<p>As near as we can tell, instead of stripping out proprietary stuff of any sort, Sequoia simply committed vandalism <i>[*]</i>: they stripped the Microsoft SQL header data off the top, expecting that this would ruin access to the data under any possible database utility and making the contents unreadable.</p>
<p>While they succeeded in ruining the files as data, they didn&#8217;t realize what a Linux user could do with the &#8220;strings&#8221; command: strip out unreadable characters and leave everything left as readable plain text. This in turn revealed thousands of lines of Microsoft SQL code that appear to control the logical flow of the election.</p></blockquote>
<p> <i>[*]</i> Auf der Seite wird derzeit nicht mehr von <i>vandalism</i>, sondern von &#8220;<a href="http://studysequoia.wikispaces.com/Discussion+Related+To+The+Original+Data+File+And+What+Sequoia+Did+To+It.">failed redaction</a>&#8221; gesprochen.</p>
<p>Die 3 Hauptziele des Projekts lauten jetzt folgendermaßen:<br />
<i> Determine the security risks associated with editing this code in the field.<br />
 Determine what this code does, and if it does so honestly, effectively or in a legal fashion.<br />
 Determine if this code even legally exists or meets the legal definitions for a &#8220;voting system&#8221; at all under federal or state published guidelines.</i></p>
<p>Downloadmöglichkeiten gibt es <a href="http://studysequoia.wikispaces.com/downloadlocations">hier</a>.<br />
Das 153MB große komplette Paket steht als <a href="http://www.fossfactory.org/sequoiacompletefile.zip">sequoiacompletefile.zip</a> und <a href="http://studysequoia.wikispaces.com/file/view/sequoiacompletefile.zip.torrent">sequoiacompletefile.zip.torrent</a> bereit.</p>
<p>[via <a href="http://www.bradblog.com/?p=7477">The Brad Blog</a>]</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Ball Game - Making the camera follow the player in Panda3D]]></title>
<link>http://moorx.wordpress.com/2009/10/07/the-ball-game-making-the-camera-follow-the-player-in-panda3d/</link>
<pubDate>Wed, 07 Oct 2009 22:39:39 +0000</pubDate>
<dc:creator>moorx</dc:creator>
<guid>http://moorx.wordpress.com/2009/10/07/the-ball-game-making-the-camera-follow-the-player-in-panda3d/</guid>
<description><![CDATA[Progress on The Ball Game is great so far and I&#8217;m happy to announce my first blog post in our ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Progress on The Ball Game is great so far and I&#8217;m happy to announce my first <a href="http://theballgame.wordpress.com/2009/10/07/panda3d-following-camera/">blog post</a> in our project blog. It&#8217;s about our camera behaviour, with sample source code!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[mmopirox Aion Bot out!]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/10/05/mmopirox-aion-bot-out/</link>
<pubDate>Mon, 05 Oct 2009 20:28:55 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/10/05/mmopirox-aion-bot-out/</guid>
<description><![CDATA[Hello readers, In the previous post I told you that I&#8217;m currently working on an Aion Bot. It i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hello readers,</p>
<p>In the previous post I told you that I&#8217;m currently working on an Aion Bot. It is for <strong>mmopirox.com</strong> and while it&#8217;s under <strong>DDos</strong> I want to tell you that this Bot is already released. It is currently free and usable for everyone. (if mmopirox is back online again).</p>
<p>Now I want to tell you something about the last weeks.<br />
I started developing it after pre Release on 22 o&#8217;clock. (It has been released at 21 o&#8217;clock).<br />
I thought it was easy to code an Aion Bot cause it should be nearly the same structure than World of Warcraft. But it isn&#8217;t.</p>
<p>I take the rotation for example. Normally your rotation (in degrees) is from 0° to 360° but in Aion it is from -180° to 180° that mean that you have to convert it if you want to calculate the needed Rotation for waypoint X , Y.</p>
<p>Here is an example :</p>
<p><strong>Normal :</strong><br />
East  = 0<br />
North  = 90<br />
West  = 180<br />
South = 270</p>
<p><strong>Aion :</strong><br />
East = 180<br />
South = 90<br />
West = 0<br />
North -90</p>
<p>If you calculate  Rotation you need in degree with Arctan2 then you have to convert it to Aion. This is really simple and I show you how to :</p>
<p><code>        public double RotNeeded(float X, float Y)<br />
        {</p>
<p>            X = X - GetPlayerX(AionPid); // &#60;- X = Desitnation X<br />
            Y = Y - GetPlayerY(AionPid);  360)<br />
                inverseTangent -= 360;</p>
<p>            if (inverseTangent &#62; 180)<br />
                inverseTangent = GetPlayerRotation(AionPid) + 360 - inverseTangent;<br />
            else<br />
                inverseTangent = GetPlayerRotation(AionPid) - inverseTangent;</p>
<p>           </code></p>
<p>After that I thought that everything should work now. Mhh. Rotation works. Waypoints works.. OH NOES. My offsets are wrong. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Ok here i got the next problem a lot of Offsets are stored in the Game.dll which is loaded by Aion.bin. The Game.dll (module) &#8211; adress changes every restart and if you want to get the PlayerHitpoints you need the Game.dll + 0xXXXXX (which is the Hitpoints offsets)</p>
<p>Now you have to options :</p>
<p>Double click on CheatEngine Adress Copy the Adress after &#8220;game.dll&#8221; and do following math formula :<br />
Aion.bin Adress &#8211; copy after game.dll adress = Game.dll adress</p>
<p>But this is bullshit because you have to calculate it everytime if your game restarts. Here is a code written in C# gets the Game.dll Adress automatically.</p>
<p><code>        private void AccessGame()<br />
        {<br />
            if (client != IntPtr.Zero) return;</p>
<p>            hwnd = (IntPtr)FindWindow("AIONClientWndClass1.0", null);<br />
            int pid = 0;<br />
            GetWindowThreadProcessId(hwnd, out pid);</p>
<p>            //client = OpenProcess(PROCESS_ALL_ACCESS, false, pid);</p>
<p>            BlackMagic read = new BlackMagic();<br />
            read.OpenProcessAndThread(pid);</p>
<p>            Process proc = Process.GetProcessById(pid);<br />
            ProcessModuleCollection col = proc.Modules;</p>
<p>            for (int i = 0; i &#60; col.Count; i++)<br />
            {<br />
                if (col[i].ModuleName == &#34;Game.dll&#34;)<br />
                {<br />
                    gamedll = (uint)col[i].BaseAddress;<br />
                    ToHexadecimal((int)gamedll);<br />
                    break;</p>
<p>                }<br />
            }<br />
        }</code><br />
<code>        private void ToHexadecimal(int n)<br />
        {</p>
<p>            BaseAdressTextbox.Clear();</p>
<p>            if (n == 0)<br />
                return;<br />
            else<br />
            {<br />
                int r = n % 16;<br />
                n = n / 16;<br />
                ToHexadecimal(n);</p>
<p>                switch (r)<br />
                {<br />
                    case 10:<br />
                        //Console.Write("A");<br />
                        BaseAdressTextbox.AppendText("A");<br />
                        break;<br />
                    case 11:<br />
                        BaseAdressTextbox.AppendText("B");<br />
                        break;<br />
                    case 12:<br />
                        BaseAdressTextbox.AppendText("C");<br />
                        break;<br />
                    case 13:<br />
                        BaseAdressTextbox.AppendText("D");<br />
                        break;<br />
                    case 14:<br />
                        BaseAdressTextbox.AppendText("E");<br />
                        break;<br />
                    case 15:<br />
                        BaseAdressTextbox.AppendText("F");<br />
                        break;<br />
                    default:</p>
<p>                        BaseAdressTextbox.AppendText(r.ToString());<br />
                        break;</p>
<p>                }</p>
<p>            }<br />
        }</code></p>
<p>Lookup the using things yourself. Try msdn <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I use the BlackMagic lib but you can use the Windows API , too.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[dolar-latex dan kurungkotak-sourcecode di WordPress]]></title>
<link>http://erikdt.wordpress.com/2009/09/25/dolar-latex-dan-kurungkotak-sourcecode-di-wordpress/</link>
<pubDate>Fri, 25 Sep 2009 14:18:10 +0000</pubDate>
<dc:creator>Erik D.T.</dc:creator>
<guid>http://erikdt.wordpress.com/2009/09/25/dolar-latex-dan-kurungkotak-sourcecode-di-wordpress/</guid>
<description><![CDATA[Hmmm&#8230; ternyata WordPress bisa dan sourcecode. Cari LaTeX Cari code di http://support.wordpress]]></description>
<content:encoded><![CDATA[Hmmm&#8230; ternyata WordPress bisa dan sourcecode. Cari LaTeX Cari code di http://support.wordpress]]></content:encoded>
</item>
<item>
<title><![CDATA[A faster and more compact Set]]></title>
<link>http://ontopia.wordpress.com/2009/09/23/a-faster-and-more-compact-set/</link>
<pubDate>Wed, 23 Sep 2009 12:28:36 +0000</pubDate>
<dc:creator>ontopia</dc:creator>
<guid>http://ontopia.wordpress.com/2009/09/23/a-faster-and-more-compact-set/</guid>
<description><![CDATA[Looking at some of the new code that is being added to Ontopia I thought it might be useful to point]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Looking at some of the new code that is being added to <a href="http://code.google.com/p/ontopia/">Ontopia</a> I thought it might be useful to point out that as part of Ontopia we have a class called <a href="http://code.google.com/p/ontopia/source/browse/trunk/ontopia/src/java/net/ontopia/utils/CompactHashSet.java">CompactHashSet</a>, which is both faster and more compact than java.util.HashSet. So when you use Sets in your code, it might be worth your while to use the CompactHashSet instead of HashSet.</p>
<p>The in-memory engine uses Sets throughout to for all the collections in the core API. There are a <em>lot</em> of these: the set of topics, the set of names for each topic, the set of item identifiers for each topic, &#8230; Ontopia originally used a lot of memory, and we identified HashSet as the source of a lot of this, and CompactHashSet was written in order to reduce memory usage somewhat. An interesting side-effect was that it also turned out to be faster.</p>
<p>HashSet uses open hashing, which means that each bucket in the hash table refers to a linked list of entries whose hash codes place them in the same bucket. This means that for each entry in the set an extra linked list element object must be allocated, which of course requires extra memory.</p>
<p>CompactHashSet, by contrast, uses closed hashing. This is a strategy where if the bucket you want to place a new entry in is already occupied, you run further down the hash table (in a predictable way!) looking for free buckets. This means you can do away with the linked list, thus saving memory.</p>
<p>So how much faster and more compact is CompactHashSet? I put together a little unscientific test and ran in three times for each of the implementations. The test first adds to the set 1 million times, then does 1 million lookups, then traverses the set, then removes 1 million objects. (See below for the test code.) This is the results:</p>
<pre>
CLASS          TIME   MEMORY
HashSet        4477   44644624
HashSet        4447   44651984
HashSet        4500   44632824
CompactHashSet 2416   22886464
CompactHashSet 2351   22889408
CompactHashSet 2370   22895872
</pre>
<p>In other words, in our little test, CompactHashSet is nearly twice as fast and uses about half as much memory compared to HashSet. When you win on both speed and memory use there isn&#8217;t much left, really&#8230;</p>
<p>Except, of course, reliability. Initially, there were some problems with the CompactHashSet class. In some cases, the run down the hashtable to find free buckets could get into an infinite loop without ever finding a bucket. That&#8217;s now been solved. And, many years ago, there was a memory leak in it, causing deleted objects to be kept when rehashing. This caused serious performance problems for some customers and took months to track down.</p>
<p><b>EDIT:</b> Discussion on <a href="http://www.reddit.com/r/programming/comments/9nafo/javautilhashset_sucks_or_how_to_save_both_time/">reddit.com</a> shows that many people misunderstood the above. The infinite loop bug was found during initial testing. The memory leak was found once customers started deploying the code for real, which may have been about a year after it was implemented. This was in 2003. Since then we have found exactly zero bugs in the code. <b>END EDIT</b></p>
<p>By now, however, we have an extensive test suite for the class, and it&#8217;s been in use unchanged for many years with no problems. Using CompactHashSet should be entirely safe.</p>
<h2>The test code</h2>
<p>If you want to try the test yourself, here is the test code:</p>
<pre>
import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;
import net.ontopia.utils.CompactHashSet;

public class TestHashSet {
  private static final int TIMES = 1000000;
  private static final int MAX = 5000000;

  public static void main(String[] argv) {
    // first, get the JIT going
    test(false, new CompactHashSet());
    test(false, new HashSet());

    // then, do real timings
    for (int ix = 0; ix &#60; 3; ix++)
      test(true, new HashSet());
    for (int ix = 0; ix &#60; 3; ix++)
      test(true, new CompactHashSet());
  }

  public static void test(boolean output, Set set) {
    long start = System.currentTimeMillis();

    if (output) {
      System.gc(); System.gc();
    }
    long before = Runtime.getRuntime().totalMemory() -
      Runtime.getRuntime().freeMemory();

    // add
    for (int ix = 0; ix &#60; TIMES; ix++)
      set.add(new Long(Math.round(Math.random() * MAX)));

    if (output) {
      System.gc(); System.gc();
      long after = Runtime.getRuntime().totalMemory() -
        Runtime.getRuntime().freeMemory();
      System.out.println("Memory before: " + before);
      System.out.println("Memory after: " + after);
      System.out.println("Memory usage: " + (after - before));
    }

    // lookup
    int count = 0;
    for (int ix = 0; ix &#60; TIMES; ix++) {
      Long number = new Long(Math.round(Math.random() * MAX));
      if (set.contains(number))
        count++;
    }

    // iterate
    Iterator it = set.iterator();
    while (it.hasNext()) {
      Long number = (Long) it.next();
    }

    // remove
    for (int ix = 0; ix &#60; TIMES; ix++) {
      Long number = new Long(Math.round(Math.random() * MAX));
      set.remove(number);
    }

    if (output)
      System.out.println("TIME: " + (System.currentTimeMillis() - start));
  }
}
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Teaching to write a Bot [Part 4]]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/09/15/teaching-to-write-a-bot-part-4/</link>
<pubDate>Tue, 15 Sep 2009 17:46:03 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/09/15/teaching-to-write-a-bot-part-4/</guid>
<description><![CDATA[Hey people, this is part 4. Sorry for the long wait time. I had so much problems with my internet an]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hey people,</p>
<p>this is part 4. Sorry for the long wait time. I had so much problems with my internet and other real life things. Also I am very busy right now. Working for Pirox, for my private things for my blog and so on. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But I won&#8217;t stop this series of posts. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Okay we stopped that you&#8217;ll need $hProcess and $CurObject. I hope that you can understand a little bit of code because I&#8217;m tired today and won&#8217;t explain everything <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Replace the whole existing code with this :</p>
<p><code>#cs ----------------------------------------------------------------------------</p>
<p> AutoIt Version: 3.3.0.0<br />
 Author:         Unkn0wn0x</p>
<p> Script Function:<br />
	Template AutoIt script.</p>
<p>#ce ----------------------------------------------------------------------------</p>
<p>; /* The Graphical User Interface */</p>
<p>#RequireAdmin</p>
<p>#include<br />
#include<br />
#include<br />
#include<br />
#include<br />
#include </p>
<p>$Form1 = GUICreate("myFirstWoWBot", 205, 251, 192, 124)<br />
$StartButton = GUICtrlCreateButton("Start", 112, 216, 83, 25, $WS_GROUP)<br />
$StopButton = GUICtrlCreateButton("Stop", 8, 216, 83, 25, $WS_GROUP)<br />
$OutputLog = GUICtrlCreateEdit("", 8, 8, 185, 193, BitOR($ES_UPPERCASE,$ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL,$WS_BORDER))<br />
$hProcess = 0<br />
$CurObject = 0</p>
<p>GUISetState(@SW_SHOW)</p>
<p>While 1<br />
	$nMsg = GUIGetMsg()<br />
	Switch $nMsg<br />
		Case $GUI_EVENT_CLOSE<br />
			Exit<br />
		Case $StartButton<br />
			_start()<br />
		Case $StopButton</p>
<p>	EndSwitch<br />
WEnd</p>
<p>Func _GetY()<br />
	Return _BMReadMemory($hProcess, $CurObject + $UnitY, "float")<br />
EndFunc ;==&#62;_GetY</p>
<p>Func _GetZ()<br />
	Return _BMReadMemory($hProcess, $CurObject + $UnitZ, "float")<br />
EndFunc</p>
<p>func _getX()<br />
	Return _BMReadMemory($hProcess, $CurObject + $UnitX, "float")<br />
EndFunc</p>
<p>Func _getpBase($hProcess)<br />
	$ptr1 = _BMReadMemory($hProcess, $PlayerBase, "ptr")<br />
	$ptr2 = _BMReadMemory($hProcess, $ptr1 + $PlayerBaseOffset1, "ptr")<br />
	return _BMReadMemory($hProcess, $ptr2 + $PlayerBaseOffset2, "ptr")<br />
EndFunc</p>
<p>func _start()<br />
	_BMInitialize()<br />
	$hWnd = WinGetHandle("World of Warcraft")<br />
	$hProcess = _BMOpenProcess($hWnd, False)<br />
	$pBase = _getpBase($hProcess)<br />
	$CurObject = $pBase<br />
	$X = Round(_GetX())<br />
	MsgBox(0,"",$X)</p>
<p>EndFunc<br />
<code></p>
<p>Go through the code and try to understand. If you click now the Button "START"  it will call intern the function "_START()" and there will pop up a new Message Box with your Players X Coordinate. Now lookup the Autoit Manual and read someting about <strong>IniReadSection</strong> and <strong>IniWriteSection</strong>. We will use this for profiles.</p>
<p>If you have any questions , comment it and I will answer.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Teaching to write a Bot [Part 2]]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/09/08/teaching-to-write-a-bot-part-2/</link>
<pubDate>Tue, 08 Sep 2009 16:15:13 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/09/08/teaching-to-write-a-bot-part-2/</guid>
<description><![CDATA[Hey guys, I have got some time now and want to share Part 2 to you. I hope you read Part 1. Okay, yo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hey guys,  I have got some time now and want to share Part 2 to you. I hope you read Part 1. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Okay, you&#8217;ve got the <strong>BlackMagicAu3</strong> and <strong>ConstantsWoW. </strong>Go to your new script and start coding. The first thing that I prefer is a GUI. (Graphical User Interface) You can design one with Koda, but I won&#8217;t explain it cause for this tutorial it&#8217;s better if u use the same GUI that I use.  You need 4 <strong>includes</strong> for our Graphical User Interface. Add them to the top of your code.</p>
<blockquote><p>#include &#60;ButtonConstants.au3&#62;</p>
<p>#include &#60;EditConstants.au3&#62;</p>
<p>#include &#60;GUIConstantsEx.au3&#62;</p>
<p>#include &#60;WindowsConstants.au3&#62;</p></blockquote>
<p>After that you create the Form , 2 Buttons and a Edit (used for Output Log):</p>
<blockquote><p>While 1<br />
nMsg = GUIGetMsg()<br />
Switch $nMsg<br />
Case $GUI_EVENT_CLOSE<br />
Exit<br />
Case $StartButton<br />
; Add here something later<br />
Case $StopButton<br />
;Add here something later<br />
EndSwitch<br />
WEnd</p></blockquote>
<p>If you hit F5 and compile it then you should see a new Window.</p>
<p>It should look like this you see here. <img class="alignleft" title="Main - Form Screenshot" src="http://wowgathermate.wo.ohost.de/Unkn0wn0x/MainForm.png" alt="" width="133" height="173" />You can go through the code and think what the &#8220;Case&#8221;&#8217;s are. I added a comment to that lines , this two cases are very important for the future. Tomorrow i will show you how to read X Y Z Cooardinates and how to  move. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Just go through the code and learn and try to understand. If you have questions feel free to ask.</p>
<p>You can get the whole source code here : <a href="http://wowgathermate.wo.ohost.de/Unkn0wn0x/">http://wowgathermate.wo.ohost.de/Unkn0wn0x/</a> and all other needed files.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Lista de "ShortCodes" o atajos de Wordpress.]]></title>
<link>http://miscellaneousisbetter.wordpress.com/2009/08/16/lista-de-shortcodes-o-atajos-de-wordpress/</link>
<pubDate>Sun, 16 Aug 2009 13:23:25 +0000</pubDate>
<dc:creator>fernandog22</dc:creator>
<guid>http://miscellaneousisbetter.wordpress.com/2009/08/16/lista-de-shortcodes-o-atajos-de-wordpress/</guid>
<description><![CDATA[Qué es un shortcode? Un shortcode es un atajo para lograr algunas funciones que, sin estos códigos, ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Qué es un shortcode?</strong></p>
<p>Un shortcode es un atajo para lograr algunas funciones que, sin estos códigos, serían un poco mas complicados de usar en tu blog de WordPress.com.</p>
<p><strong>Lista de Shortcodes:</strong></p>
<p><strong>[</strong><strong>archives] </strong>muestra el archivo de los posts de tu blog. <span style="text-decoration:underline;"><a href="http://support.wordpress.com/archives-shortcode/" target="_blank">Instrucciones aquí</a></span>.</p>
<p><strong>[</strong><strong>audio]</strong> convierte un enlace .mp3 en un reproductor. <a href="http://support.wordpress.com/audio/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>blip.tv]</strong> colocar un vídeo de Blip.tv. <a href="http://" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>contact-form]</strong> añadir un formulario de contacto. <a href="http://support.wordpress.com/videos/contact-form/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>dailymotion]</strong> colocar un vídeo de DailyMotion. <a href="http://support.wordpress.com/videos/dailymotion/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>digg]</strong> colocar un botón de votación para tus links de Digg. <a href="http://support.wordpress.com/digg/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>flickr]</strong> colocar un vídeo de Flickr. <a href="http://support.wordpress.com/videos/flickr-video/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>gallery]</strong> insertar una galería de imágenes en un post o en una página.</p>
<p><strong>[googlemaps] </strong>colocar un mapa de Google Maps. <a href="http://support.wordpress.com/google-maps/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>googlevideo]</strong> colocar un vídeo de Google Video. <a href="http://support.wordpress.com/videos/google-video/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>kyte.tv ]</strong> colocar un vídeo de Kyte.TV. <a href="http://support.wordpress.com/videos/kytetv/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>livevideo]</strong> colocar un vídeo de LiveVideo. <a href="http://support.wordpress.com/videos/livevideo/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>odeo]</strong> colocar un archivo de audio de Odeo. <a href="http://support.wordpress.com/audio/odeo/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>podtech]</strong> colocar un archivo de audio o vídeo de PodTech Network. <a href="http://support.wordpress.com/videos/podtech/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>polldaddy]</strong> colocar una encuesta de PollDaddy. <a href="http://support.wordpress.com/polls/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>redlasso]</strong> colocar un vídeo de Redlasso. <a href="http://support.wordpress.com/videos/redlasso/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>rockyou]</strong> colocar diapositivas de RockYou. <a href="http://support.wordpress.com/slideshows/rockyou/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>scribd] </strong>colocar un documento/archivo de Scribd. <a href="http://support.wordpress.com/scribd/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>slideshare]</strong> colocar diapositivas de Slideshare.net. <a href="http://support.wordpress.com/slideshows/slideshare/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>sourcecode]</strong> conserva el formate de un código fuente, ya sea HTML, Jscript&#8230;. <a href="http://support.wordpress.com/code/#posting-source-code" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>splashcast]</strong> colocar un media de Splashcast. <a href="http://support.wordpress.com/videos/splashcast/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>ted]</strong> colocar un vídeo de  TED Talks. <a href="http://support.wordpress.com/videos/ted-talks/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>vimeo]</strong> colocar un vídeo de Vimeo. <a href="http://support.wordpress.com/videos/vimeo/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p><strong>[</strong><strong>youtube]</strong> colocar un vídeo de YouTube. <a href="http://support.wordpress.com/videos/youtube/" target="_blank"><span style="text-decoration:underline;">Instrucciones aquí</span></a>.</p>
<p style="text-align:center;"><span style="color:#ffffff;">-</span></p>
<p><strong><span style="color:#ff0000;">Nota</span></strong> &#8211; Las instrucciones de los enlaces están en inglés, pero muy fácil de entender.</p>
<p style="text-align:center;"><span style="color:#ffffff;">-</span></p>
<p>Fuente: <a href="http://support.wordpress.com/shortcodes/" target="_blank">WordPress.com</a></p>
<p style="text-align:center;"><span style="color:#ffffff;">-</span></p>
<hr />
<p style="text-align:left;"><span style="color:#000000;"><strong>Entradas relacionadas</strong>:</span></p>
<ul>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/14/la-radio-del-gta-iv-en-tu-blog/" target="_blank">La radio del GTA IV en tu blog!</a></li>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/12/quieres-saber-como-colocar-un-archivo-swf-flash-en-tu-blog-de-wordpress-com/" target="_blank">Cómo colocar un .SWF en tu blog de WordPress.com.</a></li>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/10/quieres-colocar-un-formulario-de-contacto-en-tu-blog-de-wordpress/" target="_blank">Cómo colocar un formulario de contacto en WordPress.com.</a></li>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/03/como-colocar-un-gadget-de-igoogle-en-nuestro-blog-de-bogger/" target="_blank">Cómo colocar un Gadget de iGoogle en Blogger.</a></li>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/03/como-cambiar-el-favicon-de-vuestro-blog-de-blogger/" target="_blank">Cómo cambiar el favicon de un blog de Blogger.</a></li>
</ul>
<hr />
<p style="text-align:center;"><span style="color:#808080;"><embed src='http://widgets.vodpod.com/w/video_embed/Groupvideo.3111516' type='application/x-shockwave-flash' AllowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' flashvars='' /></span></p>
<p style="text-align:center;"><span style="color:#808080;">No olvides<span style="color:#3366ff;"> suscribirte</span>!</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Quieres colocar un formulario de contacto en tu blog de WordPress?]]></title>
<link>http://miscellaneousisbetter.wordpress.com/2009/08/10/quieres-colocar-un-formulario-de-contacto-en-tu-blog-de-wordpress/</link>
<pubDate>Mon, 10 Aug 2009 21:28:42 +0000</pubDate>
<dc:creator>fernandog22</dc:creator>
<guid>http://miscellaneousisbetter.wordpress.com/2009/08/10/quieres-colocar-un-formulario-de-contacto-en-tu-blog-de-wordpress/</guid>
<description><![CDATA[Es muy fácil, tan solo tienes que poner el siguiente código en la entrada en la que quieres colocar ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="color:#808080;">Es muy fácil, tan solo tienes que poner el siguiente</span> <span style="color:#3366ff;">código<span style="color:#808080;"> </span></span><span style="color:#808080;">en la entrada en la que quieres colocar el formulario de contacto:</span><span style="color:#808080;"> </span></p>
<p style="text-align:center;"><span style="color:#3366ff;"> </span></p>
<p style="text-align:center;"><span style="color:#3366ff;"> </span></p>
<p style="text-align:center;"><span style="color:#ff0000;">[<span>contact-form<span>]</span></span></span></p>
<p><span style="color:#808080;">Este es el resutado:</span></p>
<p style="text-align:center;"><span style="color:#808080;"> </span><a href="http://www.shareapic.net/View-18754267-Miscellaneous.html" target="_blank"><img class="aligncenter" src="http://preview.shareapic.net/preview6/018754267.jpg" border="0" alt="" /></a></p>
<p style="text-align:center;"><span style="color:#ffffff;">-</span></p>
<p style="text-align:center;">
<hr />
<p style="text-align:left;"><strong>Entradas relacionadas</strong>:</p>
<ul>
<li><a href="../2009/08/12/quieres-saber-como-colocar-un-archivo-swf-flash-en-tu-blog-de-wordpress-com/" target="_blank">Cómo colocar un .SWF en tu blog de WordPress.com.</a></li>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/14/la-radio-del-gta-iv-en-tu-blog/" target="_blank">La radio del GTA IV en tu blog!</a></li>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/03/como-colocar-un-gadget-de-igoogle-en-nuestro-blog-de-bogger/" target="_blank">Cómo colocar un Gadget de iGoogle en Blogger.</a></li>
<li><a href="http://miscellaneousisbetter.wordpress.com/2009/08/03/como-cambiar-el-favicon-de-vuestro-blog-de-blogger/" target="_blank">Cómo cambiar el favicon de un blog de Blogger.</a></li>
</ul>
<hr />
<p style="text-align:center;"><span style="color:#808080;"><embed src='http://widgets.vodpod.com/w/video_embed/Groupvideo.3111516' type='application/x-shockwave-flash' AllowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' flashvars='' /></span></p>
<p style="text-align:center;"><span style="color:#808080;">No olvides<span style="color:#3366ff;"> suscribirte</span>!</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Project Gathermate - the third]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/08/09/project-gathermate-the-third/</link>
<pubDate>Sun, 09 Aug 2009 10:40:49 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/08/09/project-gathermate-the-third/</guid>
<description><![CDATA[Hey people, this is my last post about my Project Gathermate. Today my WoW Account got banned (lol) ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hey people,</p>
<p>this is my last post about my Project Gathermate. Today my WoW Account got banned (lol) and I could not finish everything but that it easy for you. You only have to read and understand and change a little bit. Here&#8217;s the source code for you.</p>
<p>At this point I want to give a thank to <strong>rootKilla </strong>and <strong>Pirox</strong></p>
<p>Thanks for some help and tricky functions.</p>
<p>Download Link : <a title="http://www.mediafire.com/download.php?jinjj5u2i2y" href="http://www.mediafire.com/download.php?jinjj5u2i2y" target="_self">http://www.mediafire.com/?sharekey=954b0104a771c192e5c3dee5769931ece04e75f6e8ebb871</a></p>
<p>Have fun and maybe comment it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>edit : link fixed</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Menampilkan Highlight Kode Source Pada Postingan Wordpress Gratisan]]></title>
<link>http://odolgigi.wordpress.com/2009/08/02/menampilkan-highlight-kode-source-pada-postingan-wordpress-gratisan/</link>
<pubDate>Sun, 02 Aug 2009 03:19:17 +0000</pubDate>
<dc:creator>odolgigi</dc:creator>
<guid>http://odolgigi.wordpress.com/2009/08/02/menampilkan-highlight-kode-source-pada-postingan-wordpress-gratisan/</guid>
<description><![CDATA[Terkadang dalam sebuah script sering kita jumpai source code atau kode dasar dari script itu sendiri]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Terkadang dalam sebuah script sering kita jumpai source code atau kode dasar dari script itu sendiri. Kode tersebut dapat berupa HTML, PHP, CSS, JavaScript, Java, C++ ataupun kode pemograman lainnya. Lalu bagaimana jika kita ingin membagi ilmu mengenai kode tersebut melalui tulisan di blog? Jika sebuah kode HTML langsung kita tulis pada tulisan kita, maka yang tampilkan bukanlah kode tersebut, melainkan output dari kode HTML tersebut. Begitu juga dengan JavaScript, malah wordpress melarang penggunaan JavaScript karena dianggap berbahaya. Lalu bagaimana jika kita ingin sebuah kode dapat dibaca oleh pengunjung? <!--more--></p>
<p>Coba perhatikan contoh kode di bawah ini:</p>
<pre class="brush: xml;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Odol Gigi&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#000000&quot;&gt;Mari menggosok gigi&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Contoh diatas adalah contoh kode HTML yang telah di highlight. Sekarang WordPress.com telah memberikan kemudahan bagi kita untuk meng-highlight kode tersebut dengan cara yang sangat praktis. Yaitu dengan menambahkan sedikit kode yang mereka beri nama shortcode.</p>
<p><strong>Cara penggunaan shortcode untuk highlight source code</strong><br />
Untuk dapat menampilkan sebuah kode HTML, PHP maupun kode lainnya di dalam postingan, yang kita perlukan hanya memasukkan kode <em>[<span>sourcecode language='html'</span>]</em> dan <em>[<span>/sourcecode</span>]</em> diantara kode HTML yang ingin kita tampilkan. </p>
<p><strong>Contoh penggunaan</strong><br />
Jadi jika kita ingin menampilkan kode HTML yang diatas tadi, maka sisipkan kode <em>[<span>sourcecode language='html'</span>]</em> dan <em>[<span>/sourcecode</span>]</em> diantara kode HTML tersebut. Kode lengkapnya seperti ini:<br />
<code><em><br />
[<span>sourcecode language=&#39;html&#39;</span>]<br />
&#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;Odol Gigi&#60;/title&#62;<br />
&#60;/head&#62;<br />
&#60;body bgcolor=&#34;#000000&#34;&#62;Mari menggosok gigi&#60;/body&#62;<br />
&#60;/html&#62;[/sourcecode]<br />
</em></code></p>
<p>Lalu bagaimana dengan kode PHP dan CSS? Penggunaannya tetap sama hanya saja untuk kode PHP kamu harus mengganti kode pertamanya menjadi <em>[<span>sourcecode language='php'</span>]</em>. Begitu juga dengan CSS dan kode lainnya. Mudahkan?</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Zural e7 Network Sourcecode]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/07/31/zural-e7-network-sourcecode/</link>
<pubDate>Fri, 31 Jul 2009 20:27:23 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/07/31/zural-e7-network-sourcecode/</guid>
<description><![CDATA[Hello my dear visitors, some of you noticed trouble about the &#8220;Zural &#8211; e7 Bot&#8221;. It]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hello my dear visitors,</p>
<p>some of you noticed trouble about the &#8220;Zural &#8211; e7 Bot&#8221;. It was a bot for World of Warcraft which grind&#8217;s. But they&#8217;re offline now because no one was there who pays his server. (lol) I leaked a version but there are a few Errors to fix if you want to compile. But this does not take a lot of time. ( This is not a fake , it&#8217;s the real source. Try out yourself).</p>
<p><a href="http://www.mediafire.com/?sharekey=954b0104a771c192e5c3dee5769931ece04e75f6e8ebb871" target="_blank">http://www.mediafire.com/?sharekey=954b0104a771c192e5c3dee5769931ece04e75f6e8ebb871</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Simple Object]]></title>
<link>http://unkn0wn0x.wordpress.com/2009/07/31/simple-object/</link>
<pubDate>Fri, 31 Jul 2009 20:16:29 +0000</pubDate>
<dc:creator>unkn0wn0x</dc:creator>
<guid>http://unkn0wn0x.wordpress.com/2009/07/31/simple-object/</guid>
<description><![CDATA[This is my second post now and I want to show you my little Object Dumper. It&#8217;s a very simple ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is my second post now and I want to show you my little Object Dumper. It&#8217;s a very <strong>simple</strong> Objectdumper. If I say simple I mean it. (just a little notice) It scans the World of Warcraft Memory for every Object near you and it&#8217;ll displays the <em>Objectname, X Coord, Y Coord, Z Coord. </em>You can use a simplre refresh by pressing <strong>F1</strong> .</p>
<p>Screenshot : <img class="aligncenter" title="Object Dumper Preview" src="http://img339.imageshack.us/img339/6360/screenkiz.jpg" alt="" width="366" height="504" /></p>
<p>How to Use : Login into World of Warcraft. Start the Objectdumper. Enjoy.</p>
<p>Sourcecode Download (includes executable) :  <a href="http://www.mediafire.com/?sharekey=954b0104a771c192e5c3dee5769931ece04e75f6e8ebb871" target="_blank">http://www.mediafire.com/?sharekey=954b0104a771c192e5c3dee5769931ece04e75f6e8ebb871</a></p>
<p>Feel free to use the source. It may help.</p>
<p>P.s.: More tool will follow. (I start with easy simple tools.. and if i get more visits I&#8217;ll show you what you can do with WoW. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[db-1 (didi block-1) Desain Algoritma Block Cipher Efisien]]></title>
<link>http://supriadi.wordpress.com/2009/07/28/db-1-didi-block-1-desain-algoritma-block-cipher-efisien/</link>
<pubDate>Tue, 28 Jul 2009 05:33:40 +0000</pubDate>
<dc:creator>Didi Supriadi</dc:creator>
<guid>http://supriadi.wordpress.com/2009/07/28/db-1-didi-block-1-desain-algoritma-block-cipher-efisien/</guid>
<description><![CDATA[/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*/<br />
/*            Desain Algoritma Block Cipher db-1            */<br />
/*                                                                                                        */<br />
/*            Oleh :     DIdi Supriadi                                                    */<br />
/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*/<br />
/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;TES VEKTOR&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*/<br />
/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*/</p>
<p>#include &#60;stdio.h&#62;</p>
<p>/* &#8211;Definisi Operasi XOR dan Rotasi untuk proses Enkripsi&#8211;*/</p>
<p>#define A cipher[3]^(cipher[0]^(cipher[1]^(cipher[2]^cipher[3])))<br />
#define B cipher[0]^(cipher[1]^(cipher[2]^cipher[3]))<br />
#define C cipher[1]^(cipher[2]^cipher[3])<br />
#define D cipher[2]^cipher[3]<br />
#define E PUTER(plain[0], plain[1], ShiftLeft)<br />
#define F PUTER(plain[0], plain[2], ShiftLeft)<br />
#define G PUTER(plain[1], plain[2], ShiftLeft)<br />
#define H PUTER(plain[2], plain[3], ShiftLeft)</p>
<p>/*&#8211;Definisi tipe data yang digunakan (Dirham= 16 bit, Diday= 8 bit)&#8211;*/</p>
<p>typedef unsigned long Dirham;<br />
typedef unsigned int  Diday;<br />
typedef enum { ShiftLeft, ShiftRight } ShiftDir;</p>
<p>/*&#8211;Definisi variabel&#8211;*/</p>
<p>Dirham     gabung[2];<br />
Dirham  kunciInternal[8];<br />
Dirham     input1,input2,outTabel;<br />
Dirham     plaintext1,plaintext2;<br />
Dirham     plaintextKe[2];<br />
Dirham     ciphertextKe[2];<br />
Dirham     n = 65536;<br />
Dirham     nsatu = 65537;<br />
Diday    result;<br />
Diday     cipher[4],plain[4];</p>
<p>/*&#8211; Fungsi Rotasi&#8211;*/</p>
<p>Diday PUTER(const Diday x, const Diday y, const ShiftDir dir)<br />
{</p>
<p>const Diday geser = (y % 8);<br />
const Diday balik = (8 &#8211; geser);<br />
Diday result;</p>
<p>if (dir == ShiftLeft)<br />
result = ((x &#60;&#60; geser)&#38; 0xff) &#124; ((x &#62;&#62; balik)&#38; 0xff) ;<br />
else<br />
result = ((x &#62;&#62; geser)&#38; 0xff) &#124; ((x &#60;&#60; balik)&#38; 0xff) ;</p>
<p>return result;</p>
<p>}/* &#8211;PUTER&#8211; */</p>
<p>/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*/<br />
/*&#8211;Fungsi Penjadwalan Kunci&#8211;*/</p>
<p>KeySchadule() {</p>
<p>/*&#8211;Tabel Ajaib&#8211;*/</p>
<p>Dirham tabel [4][8]=<br />
{{0xb7e1,0&#215;5618, 0xf450, 0&#215;9287,0&#215;30bf, 0xcef6, 0&#215;6d2e, 0&#215;0b65},<br />
{0xa99d, 0&#215;47d4, 0xe60c, 0&#215;8443,0&#215;227b, 0xc0b2, 0&#215;5ee9, 0xfd21},{0&#215;9b58, 0&#215;3990, 0xd7c7, 0&#215;75ff,0&#215;1436, 0xb26e, 0&#215;50a5, 0xeedd},<br />
{0&#215;8d14, 0&#215;2b4c, 0xc983, 0&#215;67bb,0&#215;05f2, 0xa42a, 0&#215;4261, 0xe099}};</p>
<p>Dirham hasilkali;<br />
static Diday kolom,o,baris,inTabel,outTabel;</p>
<p>/*&#8211;algoritma pembangkitan kunci internal&#8211;*/</p>
<p>printf(&#8220;Rangkaian Kunci Internal: &#8220;);</p>
<p>for(o=0;o&#60;=7;o++)<br />
{</p>
<p>/*operasi perlkalian modul 2^16+1*/</p>
<p>hasilkali= (input2*input1)% nsatu ;</p>
<p>/*mendapatkan 6 bit input tabel*/</p>
<p>inTabel = (hasilkali &#38; 0&#215;003f) &#38; 0Xff ;</p>
<p>/*&#8211;menetukan alamat index tabel&#8211;*/</p>
<p>baris = (inTabel &#38; 0&#215;18)/8;<br />
kolom = (inTabel &#38; 0&#215;07) &#38; 0xf;</p>
<p>/*&#8211;output kunci internal&#8211;*/<br />
outTabel= tabel[kolom][baris];</p>
<p>kunciInternal[o]= (outTabel + input1)% n;</p>
<p>input1=kunciInternal[o];<br />
input2=outTabel;</p>
<p>printf(&#8220;%x&#8221;,kunciInternal[o]);printf (&#8221; &#8220;);<br />
}</p>
<p>}<br />
/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*/<br />
/*&#8211;Fungsi Enkripsi DIRHAM&#8211;*/</p>
<p>enkripsi(Dirham ciphertextKe[2])<br />
{</p>
<p>static int a,i,j,k;</p>
<p>Dirham gabung[2];<br />
Diday cipher[5];</p>
<p>ciphertextKe[0]= plaintext1 &#38; 0xffff;<br />
ciphertextKe[1]= plaintext2 &#38; 0xffff;</p>
<p>/*&#8211;proses enkripsi 4 round&#8211;*/<br />
for (i = 0; i &#60;= 3; i++)<br />
{<br />
printf(&#8220;Round %d    : &#8220;,i+1);printf (&#8220;\n&#8221;);<br />
printf(&#8220;Plain : %x &#8220;, ciphertextKe[0]);<br />
printf(&#8221; %x &#8220;, ciphertextKe[1]);<br />
/*&#8211;memecah 2 blok 16 bit menjadi 4 blok 8bit&#8211;*/</p>
<p>for (k=0;k&#60;=1;k++ )<br />
{</p>
<p>plain [k+k+1] = ciphertextKe[k] &#38; 0xff;</p>
<p>plain [k+k] = ( ciphertextKe[k] &#62;&#62; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> &#38; 0xff;</p>
<p>}</p>
<p>/*&#8211;oprasi XOR dan ROTASI pada Plainteks&#8211;*/<br />
cipher[0]= G^H;<br />
cipher[1]= H^(PUTER(plain[3], E, ShiftLeft));<br />
cipher[3]= E^G;<br />
cipher[2]= PUTER(plain[3], E,ShiftLeft)^(cipher[3]);</p>
<p>/*&#8211;gabung 4 blok 8 bit menjadi 2 blok 16bit&#8211;*/</p>
<p>for (j=0;j&#60;=1;j=j++)<br />
{<br />
a = (cipher[j+j] &#60;&#60; 8)&#38; 0xffff;<br />
gabung[j] = a + cipher[j+j+1];<br />
}</p>
<p>/*&#8211;mendapatkan output akhir ciphetext&#8211;*/</p>
<p>ciphertextKe[0]= (gabung[0]+ kunciInternal[i+i]) % n;<br />
ciphertextKe[1]= (gabung[1]+ kunciInternal[i+i+1]) % n;</p>
<p>printf(&#8220;Kunci Internal : %x  &#8220;, kunciInternal[i+i]);<br />
printf(&#8221; %x &#8220;, kunciInternal[i+i+1]);<br />
printf(&#8220;Cipher : %x &#8220;, ciphertextKe[0]);<br />
printf(&#8221; %x  &#8220;, ciphertextKe[1]);printf(&#8220;\n&#8221;);</p>
<p>}<br />
printf(&#8220;Cipher Akhir : %x &#8220;, ciphertextKe[0]);<br />
printf(&#8221; %x  &#8220;, ciphertextKe[1]);printf(&#8220;\n&#8221;);</p>
<p>}  /*&#8211;DIRHAM enkripsi selesai&#8211;*/</p>
<p>/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*/</p>
<p>/*&#8211;Fungsi Dekripsi DIRHAM&#8211;*/</p>
<p>dekripsi(Dirham plaintextKe[2])<br />
{</p>
<p>static int i,j,k,l,a;<br />
Dirham gabung[2];<br />
Diday plain[5];</p>
<p>/*insialisasi array ciphertextKe[] dengan nilai pada array plaintextKe[]*/</p>
<p>plaintextKe[0]= ciphertextKe[0] &#38; 0xffff;<br />
plaintextKe[1]= ciphertextKe[1] &#38; 0xffff;</p>
<p>for (i=3;i&#62;=0;i&#8211;)<br />
{<br />
printf(&#8220;Round %d    : &#8220;,4-i);printf (&#8220;\n&#8221;);<br />
printf(&#8220;cipher : %x &#8220;, plaintextKe[0]);<br />
printf(&#8221; %x  &#8220;, plaintextKe[1]);<br />
/*Operasi penjumlahan Ciphertext dengan kunci*/</p>
<p>gabung[0]= (plaintextKe[0] + n)- kunciInternal [i+i];<br />
gabung[1]= (plaintextKe[1] + n)- kunciInternal [i+i+1];</p>
<p>/*&#8211;memecah 2 blok 16 bit menjadi 4 blok 8bit&#8211;*/</p>
<p>for(j=0;j&#60;=1;j++)<br />
{</p>
<p>cipher [j+j+1]= gabung [j] &#38; 0xff;<br />
cipher [j+j]= (gabung [j] &#62;&#62; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> &#38; 0xff;</p>
<p>}</p>
<p>/*&#8211; Operasi XOR dan Rotasi Pada Ciphertext&#8211;*/</p>
<p>plain[3]=PUTER(D,A,ShiftRight);<br />
plain[2]=PUTER(C,plain[3],ShiftRight);<br />
plain[1]=PUTER(B,plain[2],ShiftRight);<br />
plain[0]=PUTER(A,plain[1],ShiftRight);</p>
<p>/*&#8211;gabung 4 blok 8 bit menjadi 2 blok 16 bit&#8211;*/</p>
<p>for (k=0;k&#60;=1;k++)<br />
{<br />
a = (plain[k+k] &#60;&#60; 8)&#38; 0xffff;<br />
plaintextKe[k] = a + plain[k+k+1];<br />
}</p>
<p>printf(&#8220;Kunci Internal : %x  &#8220;, kunciInternal[i+i]);<br />
printf(&#8221; %x &#8220;, kunciInternal[i+i+1]);<br />
printf(&#8220;Cipher : %x &#8220;, plaintextKe[0]);<br />
printf(&#8221; %x  &#8220;, plaintextKe[1]);printf(&#8220;\n&#8221;);<br />
}</p>
<p>for(l=0;l&#60;=1;l++)<br />
{</p>
<p>printf (&#8220;Plaintext Akhir : %x&#8221;,plaintextKe[l]); printf(&#8221; &#8220;);</p>
<p>}</p>
<p>}/*&#8211;Dekripsi DIRHAM selesai&#8211;*/</p>
<p>/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*/</p>
<p>/*&#8211;Fungsi Utama&#8211;*/</p>
<p>void main()<br />
{</p>
<p>int o;</p>
<p>clrscr();</p>
<p>/*&#8211;Input Kunci 32 Bit&#8211;*/</p>
<p>input1= 0&#215;0000;<br />
input2= 0&#215;0000;</p>
<p>/*&#8211;Input Plainteks 32 Bit&#8211;*/</p>
<p>plaintext1= 0&#215;1111;<br />
plaintext2= 0&#215;1111;</p>
<p>KeySchadule();printf(&#8220;\n&#8221;);</p>
<p>enkripsi(ciphertextKe);printf(&#8220;\n&#8221;);</p>
<p>dekripsi(plaintextKe);</p>
<p>getch();</p>
<p>}/*&#8212;Alhamdulillah&#8211;SELESAI&#8212;Coming soon&#8212;DIRHAM2&#8211;*/</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Days between two dates]]></title>
<link>http://skinn3r.wordpress.com/2009/07/25/day-between-two-dates/</link>
<pubDate>Sat, 25 Jul 2009 10:24:38 +0000</pubDate>
<dc:creator>horgasz</dc:creator>
<guid>http://skinn3r.wordpress.com/2009/07/25/day-between-two-dates/</guid>
<description><![CDATA[Just a quick python function to calculate the days between two dates. It is really simple and easy i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Just a quick python function to calculate the days between two dates. It is really simple and easy <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: python;">
import datetime

def date_diff_days(from_date=datetime.date.today(),to_date=datetime.date.today() ):
    return (to_date - from_date).days
</pre>
<p>And an example to use it:</p>
<pre class="brush: python;">
date1 = datetime.date(2009, 03, 26)
date2 = datetime.date(2009, 07, 25) 

print date_diff_days( date1, date2 )
</pre>
<p>That&#8217;s it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Getting SyntaxHighlighter to work in WordPress]]></title>
<link>http://numberformat.wordpress.com/2009/07/18/syntaxhighlighter/</link>
<pubDate>Sat, 18 Jul 2009 01:53:32 +0000</pubDate>
<dc:creator>numberformat</dc:creator>
<guid>http://numberformat.wordpress.com/2009/07/18/syntaxhighlighter/</guid>
<description><![CDATA[I always wanted to get source code to display nicely in wordpress. There are many sites that show yo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I always wanted to get source code to display nicely in wordpress. There are many sites that show you how this can be done. Unfortunately they need you ftp a plugin to your blog directory.</p>
<p>After much searching I found a site with the info I needed&#8230;</p>
<p><a href="http://support.wordpress.com/code/" target="_blank">http://support.wordpress.com/code/</a></p>
<p>Example of how nicely formatted code looks like&#8230;</p>
<pre class="brush: java;">
public static void main(String args[]) {
    System.out.println(&quot;hello world!!!&quot;);
}
</pre>
<p>possible options for language</p>
<ul>
<li>bash</li>
<li>cpp</li>
<li>csharp</li>
<li>css</li>
<li>delphi</li>
<li>html</li>
<li>java</li>
<li>jscript</li>
<li>php</li>
<li>python</li>
<li>ruby</li>
<li>shell</li>
<li>sql</li>
<li>vb</li>
<li>xml</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[Code to look] شنبه 20 تیر 88]]></title>
<link>http://farasun.wordpress.com/2009/07/11/code-to-look-2/</link>
<pubDate>Sat, 11 Jul 2009 12:08:36 +0000</pubDate>
<dc:creator>ایمان</dc:creator>
<guid>http://farasun.wordpress.com/2009/07/11/code-to-look-2/</guid>
<description><![CDATA[سلام، قرار بود هر 10 روز يکبار در اين وبلاگ شاهد پست هايي با عناون &#8220;Code to look&#8221; باشيد ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><blockquote>
<p style="text-align:justify;">سلام، قرار بود هر 10 روز يکبار در اين وبلاگ شاهد پست هايي با عناون &#8220;Code to look&#8221;  باشيد که شامل لينک هايي به سورس کدهاي آموزشي جالب و مناسب باشد. متاسفانه به علت هاي گوناگوني اين کار انجام نشد و حالا با گذشتن دو ماه از<a href="http://farasun.wordpress.com/2009/05/10/code-to-look/" target="_blank"><strong> اولين پست Code to look</strong></a>، دومين مطلب اين دسته بندي جديد وبلاگ منتشر مي شود. <strong>از اين به بعد هر يک ماه يکبار و نه هر 10 روز يکبار، در اين وبلاگ شاهد يک مطلب در اين دسته بندي خواهيد بود.</strong> يک ماه هم فرصت مناسبي است براي من که کدهاي جالب پيدا کنم و هم براي شما که حداقل نگاهي به آن ها بيندازيد.</p>
</blockquote>
<h2><span style="color:#ff9900;">کد نمونه های دات نت<br />
</span></h2>
<p><a href="http://www.codeproject.com/KB/threads/ThreadSafeCodeInCSharp.aspx" target="_blank"><strong>Writing Thread Safe Code in C#<span style="color:#ffffff;">x</span></strong></a></p>
<p>نحوه نوشتن برنامه های چند خطی امن در سی شارپ را به شما آموزش می دهد. در برنامه های چند خطی ممکن است یکی از threadها باعث مختل شدن threadهای دیگر شود. این کد نمونه به شما نشان می دهد که چطور از این اختلال جلوگیری کنید.</p>
<p><a title="Download" href="http://www.codeproject.com/KB/threads/ThreadSafeCodeInCSharp/SingletonCSharp.zip" target="_blank">دريافت کنيد</a></p>
<p><a title="Download" href="http://www.codeproject.com/KB/threads/ThreadSafeCodeInCSharp/SingletonCSharp.zip" target="_blank"> </a> <a href="http://www.codeproject.com/KB/database/sample_entity_framework.aspx" target="_blank"><strong>مثال ساده کار با Entity Framework</strong></a> <a title="Download" href="http://www.codeproject.com/KB/database/sample_entity_framework/Solution.zip" target="_blank"></a></p>
<p>یک مثال ساده که نحوه کار کردن با Entity Framework را به شما در قالب یک پروژه ASP.NET آموزش می دهد. Entity Framework یک فریم ورک <a title="Object Relational Mapping on Wikipedia" href="http://en.wikipedia.org/wiki/Object-relational_mapping" target="_blank">ORM</a> برای دات نت فریم ورک است که مایکروسافت در سرویس پک دات نت فریم ورک 3.5 آن را عرضه نموده است.</p>
<p><a title="Download" href="http://www.codeproject.com/KB/database/sample_entity_framework/Solution.zip" target="_blank">دريافت کنيد</a></p>
<p><a title="Download" href="http://www.codeproject.com/KB/database/sample_entity_framework/Solution.zip" target="_blank"> </a> <a href="http://www.codeproject.com/KB/cs/SkypeBot.aspx" target="_blank"><strong>ايجاد يک Skype bot در دات نت</strong></a></p>
<p>نحوه ارتباط با نرم افزار Skype و ایجاد یک سیستم جواب دهی خودکار در این نرم افزار را توسط دات نت و سی شارپ به شما آموزش می دهد.</p>
<p><a title="Download" href="http://www.codeproject.com/KB/cs/SkypeBot/SkypeBot.zip" target="_blank">دريافت کنيد</a></p>
<p><a title="Download" href="http://www.codeproject.com/KB/cs/SkypeBot/SkypeBot.zip" target="_blank"> </a> <a href="http://www.codeproject.com/KB/silverlight/Azurelight.aspx" target="_blank"><strong>ساخت يک اپليکيشن سه لايه با استفاده از سيلورلايت 3، <span style="color:#ffffff;">x</span>.NET RIA Services و Azure TableStorage</strong></a> <em><span style="color:#3366ff;"><span style="color:#0000ff;">کد نمونه روز!</span></span></em></p>
<p align="center"><img src="http://farasun.wordpress.com/files/2009/07/azureplatform_web.png" alt="azurePlatform_web" /></p>
<p>اگر با مباحث تئوری &#8220;محاسبات ابری&#8221; آشنایی دارید، زمان آن رسیده است که به صورت عملی با این مفهوم آشنا شوید. این کد نمونه به شما نشان می دهد که چگونه می توان با استفاده از ابزارهای توسعه مایکروسافت یک اپلیکیشن روی ابر ساخت. در این پروژه سیلورلایت 3.0 به عنوان لایه نمایش، <span style="color:#ffffff;">x</span>.NET RIA Services برای لایه Business logic و Azure TableStorage برای پیاده سازی لایه دسترسی به داده مورد استفاده قرار گرفته اند.</p>
<p><a title="Download" href="http://www.codeproject.com/KB/silverlight/Azurelight/Azurelight_SourceCode.zip" target="_blank">دريافت کنيد</a></p>
<p><a title="Download" href="http://www.codeproject.com/KB/silverlight/Azurelight/Azurelight_SourceCode.zip" target="_blank"> </a> <a href="http://www.codeproject.com/KB/collections/genericsort.aspx" target="_blank"><strong>پياده سازي مرتب سازي در يک مجموعه Generic</strong></a></p>
<p>عنوان اين کد نمونه بسيار واضح است. نويسنده اين کد نمونه، از LINQ براي مرتب سازي يک Generic Collection بهره گرفته است.  <a title="Download" href="http://www.codeproject.com/KB/collections/genericsort/Sorter.zip" target="_blank"></a></p>
<p><a title="Download" href="http://www.codeproject.com/KB/collections/genericsort/Sorter.zip" target="_blank">دريافت کنيد </a></p>
<h2><span style="color:#ff9900;"><a title="Subcribe to Farasun feed" href="http://feeds2.feedburner.com/Farasun" target="_blank">مشترک فید فراسان شوید!</a></span></h2>
<p><span style="color:#c0c0c0;">قرار نیست فقط برای دوستان دات نتی کد نمونه معرفی کنم و دوستان PHPکار را فراموش کنم!</span></p>
<h2><span style="color:#ff9900;">کد نمونه های PHP</span></h2>
<p><a href="http://www.weberdev.com/get_example-4975.html" target="_blank"><strong>اسکریپت کاربران آنلاین سایت</strong></a></p>
<p><a href="http://www.weberdev.com/get_example-4967.html" target="_blank"><strong>سیستم تصدیق هویت کاربر با PHP و MySQL</strong></a></p>
<p><a href="http://www.weberdev.com/get_example-4976.html" target="_blank"><strong>ایجاد تصاویر بند انگشتی یا Thumbnail روی هوا!</strong></a></p>
<p><strong><a href="http://www.weberdev.com/get_example-4970.html" target="_self">اسکریپت ایجاد صفحه دانلود در هر سایتی با قابلیت شمارش تعداد دریافت فایل ها</a></strong></p>
<p><a href="http://www.phpbuilder.com/columns/marc_plotz05122009.php3" target="_blank"><strong>نکاتی برای افزایش بهره وری PHP و MySQL در سرور</strong></a> &#8211; مقاله</p>
<p><strong><a href="http://www.phpbuilder.com/columns/peter_shaw05182009.php3" target="_blank">پردازش پیشرفته رشته ها با تکنیک های Regular Expression</a> </strong>- مقاله</p>
<h2><span style="color:#ffffff;"><strong>farasun.wordpress.com</strong></span></h2>
<p><span style="color:#333333;"><em>امیدوارم این مطلب برای شما مفید واقع شود.</em></span></p>
<p><span style="color:#333333;"><em> برای از دست ندادن مطالب بعدی این وبلاگ </em><a title="Subcribe to Farasun feed" href="http://feeds2.feedburner.com/Farasun" target="_blank"><strong>مشترک فید فراسان</strong></a><em> شوید! </em><a href="http://farasun.wordpress.com/about/rssfeed" target="_blank"><strong>نمی دانید فید چیست!؟</strong></a><br />
</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[An introduction to Bezier Curves]]></title>
<link>http://gurumeditations.wordpress.com/2009/07/07/122/</link>
<pubDate>Wed, 08 Jul 2009 00:48:43 +0000</pubDate>
<dc:creator>imaginaryhuman</dc:creator>
<guid>http://gurumeditations.wordpress.com/2009/07/07/122/</guid>
<description><![CDATA[I just added a new article, an introduction to bezier curves, which you can read here. It covers som]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I just added a new article, an introduction to bezier curves, which <a href="http://gurumeditations.wordpress.com/articles/calculating-and-drawing-bezier-curves-with-blitzmax/">you can read here</a>. It covers some theory about bezier curves, how to calculate them, an algorithm and some useful sourcecode.</p>
<p>I wrote this as part of a first publication at a new Blitz magazine website, <a href="http://www.blitzmaxcoder.com">blitzmaxcoder.com</a> &#8211; which is currently going through a birthing process. I thought it would be a good idea to share it with the world here as well.</p>
<p>Of course, this means that I had to add a new section to the site &#8211; Articles &#8211; just click on the tab above <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Wikileaks: Dokument zu Österreichs E-Voting-System nominiert als "Most Wanted Leak 2009"]]></title>
<link>http://papierwahl.at/2009/07/04/wikileaks-dokument-zu-osterreichs-e-voting-system-nominiert-als-most-wanted-leak-2009/</link>
<pubDate>Sat, 04 Jul 2009 19:00:42 +0000</pubDate>
<dc:creator>marc</dc:creator>
<guid>http://papierwahl.at/2009/07/04/wikileaks-dokument-zu-osterreichs-e-voting-system-nominiert-als-most-wanted-leak-2009/</guid>
<description><![CDATA[Wikileaks hat zur Zeit einen kleinen Wettbewerb laufen, der die &#8220;Most Wanted Leaks of 2009]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="https://secure.wikileaks.org/wiki/Wikileaks">Wikileaks</a> hat zur Zeit einen kleinen Wettbewerb laufen, der die &#8220;Most Wanted Leaks of 2009&#8243; ermittlen soll. Dazu kann jeder <i>heißbegehrte</i> Dokumente vorschlagen, die den auf der Seite genannten Kriterien entsprechen.<br />
<blockquote>WikiLeaks requests nominations for 2009&#8217;s Most Wanted Leaks—the concealed documents or recordings most sought after by a country&#8217;s journalists, activists, historians, lawyers, police, or human rights investigators. Nominations are currently OPEN. Prizes will be award to the winner for each country.</p></blockquote>
<p>Für Österreich sind derzeit zwei Dokumente gelistet. Eines davon fordert etwas mehr Licht in das, bei der ÖH-Wahl getestete, E-Voting-System zu bringen:<br />
<blockquote><a href="https://secure.wikileaks.org/wiki/Draft:The_Most_Wanted_Leaks_of_2009#Austria">Austria</a></p>
<p>   1. Source-code as well as certifications for the Austrian e-Voting system used in students elections.</p></blockquote>
<p>Wie lange der Wettbewerb noch läuft, wird auf der Seite nicht verraten.</p>
<p>[via <a href="http://blog.fefe.de/?ts=b4b25af2">fefe</a>]</p>
<p><b>Update:</b><br />
Wikileaks hat auf der Seite mittlerweile auch festgesetzt bis wann der Wettbewerb läuft: bis 01. August kann noch nominiert werden. Die Gewinner werden auf der <a href="https://har2009.org/">HAR</a> (Hacking at Random) bekanntgegeben (13. &#8211; 16. August).</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
