<?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"
	>

<channel>
	<title>Daniel15's Blog</title>
	<atom:link href="http://www.daniel15.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daniel15.com/blog</link>
	<description>Daniel15's personal blog...</description>
	<pubDate>Fri, 21 Mar 2008 12:15:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Using TCP sockets in Pascal, connect to remote servers</title>
		<link>http://www.daniel15.com/blog/2008/03/21/using-tcp-sockets-in-pascal/</link>
		<comments>http://www.daniel15.com/blog/2008/03/21/using-tcp-sockets-in-pascal/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 10:59:30 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[HIT1301 Portfolio]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[pascal]]></category>

		<category><![CDATA[hit1301]]></category>

		<category><![CDATA[sockets]]></category>

		<category><![CDATA[synapse]]></category>

		<category><![CDATA[tcp]]></category>

		<category><![CDATA[winsock]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2008/03/21/using-tcp-sockets-in-pascal/</guid>
		<description><![CDATA[TCP sockets in Pascal are generally hard to use; Free Pascal doesn&#8217;t come with any high-level socket libraries by default, only a relatively low-level socket library. Some external libraries are available to make using sockets with Pascal easier, and one of these libraries is Synapse. Synapse is an easy-to-use socket library for Pascal, and in [...]]]></description>
			<content:encoded><![CDATA[<p>TCP sockets in Pascal are generally hard to use; Free Pascal doesn&#8217;t come with any high-level socket libraries by default, only a relatively low-level <tt>socket</tt> library. Some external libraries are available to make using sockets with Pascal easier, and one of these libraries is <strong>Synapse</strong>. Synapse is an easy-to-use socket library for Pascal, and in this blog post I&#8217;ll try to show how to use Synapse to connect to a remote server and send/receive data from it. </p>
<p><span id="more-69"></span>From <a href="http://synapse.ararat.cz/">the official Synapse site</a>:</p>
<blockquote><p>
This project deals with network communication by means of blocking (synchronous) sockets or with limited non-blocking mode. This project not using asynchronous sockets! The Project contains simple low level non-visual objects for easiest programming without problems. (no required multithread synchronisation, no need for windows message processing,…) Great for command line utilities, visual projects, NT services
</p></blockquote>
<h3>&#8220;Installing&#8221; it</h3>
<p>Firstly, you&#8217;ll want to <a href="http://synapse.ararat.cz/doku.php/download">download the stable release of Synapse</a>, and place them somewhere. At the time of writing, the latest Synapse version is release number <strong>38</strong>. Once you&#8217;ve downloaded it, extract the files somewhere (it doesn&#8217;t matter where you extract them to, as long as you remember the directory name. I&#8217;d suggest to create a directory for all your Free Pascal library code). Next, we need to edit the config file, so that Free Pascal can find these libraries. Open your Free Pascal configuration file (on Linux, this is at<tt>/etc/fpc.cfg</tt>. On Windows, this <em>should</em> be in the directory you installed Free Pascal to). Search for this:</p>

<div class="wp_syntax"><div class="code"><pre># searchpath for libraries</pre></div></div>

<p>Right before that, add <tt>-Fu</tt> followed by the path to the directory you made earlier. In my case, I added:</p>

<div class="wp_syntax"><div class="code"><pre>-Fu/home/daniel/fpc</pre></div></div>

<h3>Using it in your code</h3>
<p>In most cases, you&#8217;ll be using the <tt>TTCPBlockSocket</tt> class. This is included in the <tt>blcksock</tt> unit, so add this unit to the <em>uses</em> clause of your application:</p>

<div class="wp_syntax"><div class="code"><pre class="pascal"><span style="color: #000000; font-weight: bold;">uses</span> blcksock;</pre></div></div>

<h3>Example</h3>
<h4>Connecting to a server</h4>
<p>This is probably the most common way you&#8217;d use a socket &mdash; Connecting directly to another server. The functionality for this is contained in the <tt>TTCPBlockSocket</tt> class. Firstly, we need to define a variable to store the socket in:</p>

<div class="wp_syntax"><div class="code"><pre class="pascal"><span style="color: #b1b100;">var</span>
	sock: TTCPBlockSocket;</pre></div></div>

<p>And then we need to actually create the socket:</p>

<div class="wp_syntax"><div class="code"><pre class="pascal">sock := TTCPBlockSocket.<span style="color: #202020;">Create</span>;</pre></div></div>

<p>This creates a socket named <strong>sock</strong> that we&#8217;re able to use. The next step is to connect to the remote server, using the <a href="http://synapse.ararat.cz/doc/help/blcksock.TTCPBlockSocket.html#Connect">Connect</a> method:</p>

<div class="wp_syntax"><div class="code"><pre class="pascal">sock.<span style="color: #202020;">Connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'66.79.183.71'</span>, <span style="color: #ff0000;">'80'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// Was there an error?</span>
<span style="color: #b1b100;">if</span> sock.<span style="color: #202020;">LastError</span> &lt;&gt; <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">then</span>
<span style="color: #b1b100;">begin</span>
	<span style="">writeLn</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Could not connect to server.'</span><span style="color: #66cc66;">&#41;</span>;
	halt<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">end</span>;</pre></div></div>

<p>At this point, the connection to the remote server has been established, and we may send and receive data.</p>
<h4>Sending Data</h4>
<p>Sending data is done via the <a href="http://synapse.ararat.cz/doc/help/blcksock.TBlockSocket.html#SendString">SendString</a> method. Note that this is slightly different to some other languages; it <strong>does not</strong> add a carriage return and linefeed to the end of the line, you have to add this manually if required.</p>

<div class="wp_syntax"><div class="code"><pre class="pascal">sock.<span style="color: #202020;">SendString</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'GET /blog/ HTTP/1.1'</span>#<span style="color: #cc66cc;">13</span>#<span style="color: #cc66cc;">10</span><span style="color: #ff0000;">'Host: www.daniel15.com'</span>#<span style="color: #cc66cc;">13</span>#<span style="color: #cc66cc;">10</span>#<span style="color: #cc66cc;">13</span>#<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<h4>Receiving Data</h4>
<p>There are several methods for receiving data, but the two main ones are <tt><a href="http://synapse.ararat.cz/doc/help/blcksock.TBlockSocket.html#RecvString">RecvString</a></tt> and <tt><a href="http://synapse.ararat.cz/doc/help/blcksock.TBlockSocket.html#RecvPacket">RecvPacket</a></tt>. RecvString reads a single string (terminated by a carriage return and linefeed) from the socket, and returns this string <strong>without</strong> the carriage return. RecvPacket reads all data waiting to be read, and returns it unmodified (all carriage returns and linefeeds will still be there). Both commands take one parameter: A timeout. If the socket doesn&#8217;t contain any data within this timeout, it returns a blank string.</p>

<div class="wp_syntax"><div class="code"><pre class="pascal">buffer := sock.<span style="color: #202020;">RecvPacket</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2000</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<h4>Putting it all together</h4>
<p>Here&#8217;s an example application that connects to a web server, does a simple HTTP request, and writes the response to the console:</p>

<div class="wp_syntax"><div class="code"><pre class="pascal"><span style="color: #000000; font-weight: bold;">program</span> TestApp;
&nbsp;
<span style="color: #000000; font-weight: bold;">uses</span>
	blcksock;
&nbsp;
<span style="color: #b1b100;">var</span>
	sock: TTCPBlockSocket;
&nbsp;
<span style="color: #000000; font-weight: bold;">procedure</span> Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">var</span>
	buffer: <span style="color: #993333;">String</span> = <span style="color: #ff0000;">''</span>;
<span style="color: #b1b100;">begin</span>
	sock := TTCPBlockSocket.<span style="color: #202020;">Create</span>;
&nbsp;
	sock.<span style="color: #202020;">Connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'66.79.183.71'</span>, <span style="color: #ff0000;">'80'</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">// Was there an error?</span>
	<span style="color: #b1b100;">if</span> sock.<span style="color: #202020;">LastError</span> &lt;&gt; <span style="color: #cc66cc;">0</span> <span style="color: #b1b100;">then</span>
	<span style="color: #b1b100;">begin</span>
		<span style="">writeLn</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Could not connect to server.'</span><span style="color: #66cc66;">&#41;</span>;
		halt<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">end</span>;
	<span style="color: #808080; font-style: italic;">// Send a HTTP request</span>
	sock.<span style="color: #202020;">SendString</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'GET /blog/ HTTP/1.1'</span>#<span style="color: #cc66cc;">13</span>#<span style="color: #cc66cc;">10</span><span style="color: #ff0000;">'Host: www.daniel15.com'</span>#<span style="color: #cc66cc;">13</span>#<span style="color: #cc66cc;">10</span>#<span style="color: #cc66cc;">13</span>#<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">// Keep looping...</span>
	<span style="color: #b1b100;">repeat</span>
		buffer := sock.<span style="color: #202020;">RecvPacket</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2000</span><span style="color: #66cc66;">&#41;</span>;
		<span style="">write</span><span style="color: #66cc66;">&#40;</span>buffer<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">// ...until there's no more data.</span>
	<span style="color: #b1b100;">until</span> buffer = <span style="color: #ff0000;">''</span>;
<span style="color: #b1b100;">end</span>;
&nbsp;
&nbsp;
<span style="color: #b1b100;">begin</span>
	Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">end</span>.</pre></div></div>

<p>The loop is needed because the data may come in multiple packets.</p>
<p>Not that this is <strong>not</strong> really a good example, as there&#8217;s a HTTP library built-in to Synapse. The in-built HTTP library has several advantages, including the ability to use HTTP proxies. Perhaps I&#8217;ll cover that in a future blog post <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2008/03/21/using-tcp-sockets-in-pascal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New layout</title>
		<link>http://www.daniel15.com/blog/2008/03/10/new-layout/</link>
		<comments>http://www.daniel15.com/blog/2008/03/10/new-layout/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 13:19:04 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[Website]]></category>

		<category><![CDATA[design]]></category>

		<category><![CDATA[layout]]></category>

		<category><![CDATA[template]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2008/03/10/new-layout/</guid>
		<description><![CDATA[Well, as you can see here, my blog has a new layout. The layout itself was written from scratch by me, although some parts of it were based off a nice two-column CSS layout tutorial I found whilst searching in Google. This layout is not yet complete, I&#8217;m still working on it. What do you [...]]]></description>
			<content:encoded><![CDATA[<p>Well, as you can see here, my blog has a new layout. The layout itself was written from scratch by me, although some parts of it were based off a <a href="http://www.maxdesign.com.au/presentation/two-columns/index.htm">nice two-column CSS layout tutorial</a> I found whilst searching in Google. This layout is not yet complete, I&#8217;m still working on it. What do you think so far? <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The only problem now is my lack of blog posts. I haven&#8217;t really had time to blog, but I&#8217;ll definitely try to write some more posts here soonish <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2008/03/10/new-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Transparency issues fixed</title>
		<link>http://www.daniel15.com/blog/2007/11/28/transparency-issues-fixed/</link>
		<comments>http://www.daniel15.com/blog/2007/11/28/transparency-issues-fixed/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 08:10:42 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[Facebook - Flash Embed]]></category>

		<category><![CDATA[embed]]></category>

		<category><![CDATA[Facebook]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[opaque]]></category>

		<category><![CDATA[transparency]]></category>

		<category><![CDATA[wmode]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/11/28/transparency-issues-fixed/</guid>
		<description><![CDATA[Today, I fixed the &#8220;transparency&#8221; issue on the Facebook Flash Embed application. Rather than using a transparent background for all Flash animations, it now allows you to set the background colour.  Some animations that did not display correctly previously will now appear correctly.
Additionally, a few minor bugs with the Import a Flash &#8220;embed&#8221; code [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I fixed the &#8220;transparency&#8221; issue on the Facebook Flash Embed application. Rather than using a transparent background for all Flash animations, it now allows you to set the background colour.  Some animations that did not display correctly previously will now appear correctly.</p>
<p>Additionally, a few minor bugs with the <i>Import a Flash &#8220;embed&#8221; code</i> were fixed as well. FlashVars in &lt;embed&gt; tags should now work properly.</p>
<p>As usual, please report any bugs to me <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/11/28/transparency-issues-fixed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Easter egg in Windows XP&#8230; &#8220;Sometime this millennia&#8221;</title>
		<link>http://www.daniel15.com/blog/2007/11/04/easter-egg-in-windows-xp-sometime-this-millenia/</link>
		<comments>http://www.daniel15.com/blog/2007/11/04/easter-egg-in-windows-xp-sometime-this-millenia/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 04:08:35 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Easter eggs]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[easter egg]]></category>

		<category><![CDATA[future]]></category>

		<category><![CDATA[millenia]]></category>

		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/11/04/easter-egg-in-windows-xp-sometime-this-millenia/</guid>
		<description><![CDATA[A funny easter egg I recently came across in Windows XP, relating to files created in the future:

Set your system clock to a date in the future (something far in the future; eg December 2030).
Create a new file (anything, a blank text document will do).
Set the system clock back to the real date.
Open the directory [...]]]></description>
			<content:encoded><![CDATA[<p>A funny easter egg I recently came across in Windows XP, relating to files created in the future:</p>
<ol>
<li>Set your system clock to a date in the future (something far in the future; eg December 2030).</li>
<li>Create a new file (anything, a blank text document will do).</li>
<li>Set the system clock back to the real date.</li>
<li>Open the directory containing the newly-created file.</li>
<li>Choose the View &rarr; Arrange Icons By &rarr; Modified option.</li>
<li>Tick View &rarr; Arrange Icons &rarr; Show in Groups.</li>
<li>Look at the group heading of the newly-created file:<br /><img src='http://www.daniel15.com/blog/wp-content/uploads/2007/11/windowsxp-egg.png' alt='Windows XP Easter Egg - “Sometime This Millenia”' /></li>
</ol>
<p><i>Of course, that should be &#8220;Millenium&#8221;&#8230; Millennia is plural <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </i></p>
<p><script type="text/javascript">
digg_url = 'http://www.daniel15.com/blog/2007/11/04/easter-egg-in-windows-xp-sometime-this-millenia/';
DIGG_URL = 'http://www.daniel15.com/blog/2007/11/04/easter-egg-in-windows-xp-sometime-this-millenia/';
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/11/04/easter-egg-in-windows-xp-sometime-this-millenia/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Survivor: English Exam Edition</title>
		<link>http://www.daniel15.com/blog/2007/11/02/survivor-english-exam-edition/</link>
		<comments>http://www.daniel15.com/blog/2007/11/02/survivor-english-exam-edition/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 10:05:42 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[School]]></category>

		<category><![CDATA[english]]></category>

		<category><![CDATA[exams]]></category>

		<category><![CDATA[sucks]]></category>

		<category><![CDATA[survivor]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/11/02/survivor-english-exam-edition/</guid>
		<description><![CDATA[Around 46,000 students did their English exam today, me being one of them. The English exam sucks; I&#8217;m so bad at writing essays  . It was alright, but I screwed up a bit of it. Basically, we have to write four essays &#8212; Two text response essays (essays based on texts we read in [...]]]></description>
			<content:encoded><![CDATA[<p>Around 46,000 students did their English exam today, me being one of them. The English exam sucks; I&#8217;m so bad at writing essays <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . It was alright, but I screwed up a bit of it. Basically, we have to write four essays &mdash; Two text response essays (essays based on texts we read in class), a language analysis piece (analyse the ways language is used in some articles), and a persuasive/opinionative piece. I spent too long on the analysis and persuasive pieces (as these are what I&#8217;m good at). I completed one of the text response essays and then noticed I only had like 25 minutes or so to do the last one. So it was horribly rushed and probably quite incoherent <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>So yeah, I&#8217;m soooo glad that exam is now over; it was the one exam I was really dreading. The exams I have left are:</p>
<p><strong>Monday 5th November</strong><br />
3:00 PM&ndash;4:15 PM &mdash; Specialist Maths Exam 1 (non-calculator)</p>
<p><strong>Friday 9th November</strong><br />
9:00 AM&ndash;10:15 AM &mdash; Maths Methods Exam 1 (non-calculator)</p>
<p><strong>Monday 12th November</strong><br />
11:45 AM&ndash;2:00 PM &mdash; Maths Methods Exam 2 (calculator)</p>
<p><strong>Wednesday 14th November</strong><br />
11:45 AM&ndash;1:30 PM &mdash; Physics</p>
<p><strong>Thursday 15th November</strong><br />
9:00 AM&ndash;10:45 AM &mdash; Chemistry (ewwww <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</p>
<p><strong>Friday 16th November</strong><br />
3:00 PM&ndash;5:15 PM &mdash; Specialist Maths Exam 2 (calculator)</p>
<p>So yeah, after that, <strong style="font-size: x-large">No more school!</strong> On to University next year. I&#8217;m hoping that I get an ENTER score above 87, that way I&#8217;ll get into Computer Science at Melbourne University <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>Edit: Some people were asking about the title of this post. It was referring to my MSN Messenger display name, which I had set to &#8220;<strong>It&#8217;s Survivor: English Exam Edition. 46000 students, 4 hours, 3 essays. Who will survive?</strong>&#8221; for a while <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/11/02/survivor-english-exam-edition/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MySpace Friend List Export - Code now available</title>
		<link>http://www.daniel15.com/blog/2007/10/27/myspace-friend-list-export-code-now-available/</link>
		<comments>http://www.daniel15.com/blog/2007/10/27/myspace-friend-list-export-code-now-available/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 11:38:36 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[MySpace]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[cURL]]></category>

		<category><![CDATA[export]]></category>

		<category><![CDATA[friends]]></category>

		<category><![CDATA[mspagerstate]]></category>

		<category><![CDATA[viewstate]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/10/27/myspace-friend-list-export-code-now-available/</guid>
		<description><![CDATA[The code for the MySpace Friend List Export script I wrote a while back is now available for download. If you&#8217;re a PHP programmer and are interested in viewing the source code for it, take a look at http://stuff.daniel15.com/php/myspace/get_friends.txt  
The code is quite ugly, but, well, so is MySpace. That&#8217;s my excuse. 
]]></description>
			<content:encoded><![CDATA[<p>The code for the <a href="http://www.daniel15.com/blog/2007/09/19/myspace-friend-list-export/">MySpace Friend List Export</a> script I wrote a while back is now available for download. If you&#8217;re a PHP programmer and are interested in viewing the source code for it, take a look at <a href="http://stuff.daniel15.com/php/myspace/get_friends.txt">http://stuff.daniel15.com/php/myspace/get_friends.txt</a> <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The code is quite ugly, but, well, so is MySpace. That&#8217;s my excuse. <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/10/27/myspace-friend-list-export-code-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>37 things a girl probably doesn&#8217;t know about a guy</title>
		<link>http://www.daniel15.com/blog/2007/10/26/37-things-a-girl-probably-doesnt-know-about-a-guy/</link>
		<comments>http://www.daniel15.com/blog/2007/10/26/37-things-a-girl-probably-doesnt-know-about-a-guy/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 01:09:54 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[MySpace bulletins]]></category>

		<category><![CDATA[girl]]></category>

		<category><![CDATA[guy]]></category>

		<category><![CDATA[love]]></category>

		<category><![CDATA[MySpace]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/10/26/37-things-a-girl-probably-doesnt-know-about-a-guy/</guid>
		<description><![CDATA[Saw this in a MySpace bulletin&#8230; And it&#8217;s mostly so true. Except for 11 and 13, which I kinda disagree with 

1. Guys are more emotional then you think, if they loved you at one point, it&#8217;ll take them a lot longer then you think to let you go, and it hurts every second that [...]]]></description>
			<content:encoded><![CDATA[<p>Saw this in a MySpace bulletin&#8230; And it&#8217;s mostly so true. Except for 11 and 13, which I kinda disagree with <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
<span id="more-62"></span></p>
<p>1. Guys are more emotional then you think, if they loved you at one point, it&#8217;ll take them a lot longer then you think to let you go, and it hurts every second that they try.</p>
<p>2. Guys may be flirting around all day but before they go to sleep, they always think about the girl they truly care about.</p>
<p>3. Guys go crazy over a girl&#8217;s smile.</p>
<p>4. Guys will do anything just to get you to notice him.</p>
<p>5. Guys hate it when you talk about your ex-boyfriend or ex love-interest. Unless they&#8217;re goin for the let-her-complain-to-you-and-then-have-her-realize-how-wonderful-and-nice-you-are method.</p>
<p>6. A guy who likes you wants to be the only guy you talk to.</p>
<p>7. Boyfriends need to be reassured often that they&#8217;re still loved.</p>
<p>8. Guys are more emotional than they&#8217;d like people to think.</p>
<p>9. Giving a guy a hanging message like &#8220;You know what?!..uh&#8230;nevermind..&#8221; would make him jump to a conclusion that is far from what you are thinking. And he&#8217;ll assume he did something wrong and he&#8217;ll obsess about it trying to figure it out.</p>
<p>10. Girls are guys&#8217; weaknesses.</p>
<p>11. Guys are very open about themselves.</p>
<p>12. If a guy tells you about his problems, he just needs someone to listen to him. You don&#8217;t need to give advice.</p>
<p>13. A usual act that proves that the guy likes you is when he teases you.</p>
<p>14. Guys love you more than you love them if they are serious in your relationships.</p>
<p>15. Guys use words like hot or cute to describe girls. We rarely use beautiful.If a guy uses that, he likes you a whole hell of a lot.</p>
<p>16. No matter how much guys talk about asses and boobs, personality is key.</p>
<p>17. Guys worry about the thin line between being compassionate and being whipped.</p>
<p>18. Guys think WAY too much. One small thing a girl does, even if she doesn&#8217;t notice it can make the guy think about it for hours, trying to figure out what it meant.</p>
<p>19. If the guy does something stupid in front of the girl, he will think about it for the next couple days or until the next time he spends time with the girl.</p>
<p>20. If a guy looks unusually calm and laid back, he&#8217;s probably faking it and is spazzing inside.</p>
<p>21. When a guy says he is going crazy about the girl, he really is. Guys rarely say that.</p>
<p>22. When a guy asks you to leave him alone, he&#8217;s just actually saying, &#8220;Please come and listen to me.&#8221;</p>
<p>23. If a guy starts to talk seriously, listen to him. It doesn&#8217;t happen that often, so when it does, you know something&#8217;s up.</p>
<p>24. When a guy tells you that you are beautiful, don&#8217;t say you aren&#8217;t. It makes them want to stop telling you because they don&#8217;t want you to disagree with them.</p>
<p>25.When a guy looks at you for longer than a second, he&#8217;s definitely thinking something.</p>
<p>26. A guy has more problems than you can see with your naked eyes.</p>
<p>27. Don&#8217;t be a snob. Guys can be intimidated and give up easily.</p>
<p>28. Guys talk about girls more than girls talk about guys.</p>
<p>29. Guys really think that girls are strange and have unpredictable decisions and are MAD confusing but somehow are drawn even more to them.</p>
<p>30. A guy would give his right nut to be able to read a girl&#8217;s mind for a day.</p>
<p>31. No guy can handle all his problems on his own. He&#8217;s just too stubborn to admit it.</p>
<p>32. Not all guys are assholes. Just because ONE is a jackass doesnt mean he represents ALL of us.</p>
<p>33. They love it when girls talk about their boobs.</p>
<p>34. When a guy hits your butt it means that he wants you sexually</p>
<p>35. Even if they refuse it all guys are ticklish on the ribs.</p>
<p>36. Guys love neck rubs and if he lets you keep doing it ..it means that he really likes you or his neck really hurts.</p>
<p>37. When a guy sacrifices his sleep and health just to be with you, he really likes you and wants to be with you as much as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/10/26/37-things-a-girl-probably-doesnt-know-about-a-guy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Updates to the Flash Embed application</title>
		<link>http://www.daniel15.com/blog/2007/10/03/updates-to-the-flash-embed-application/</link>
		<comments>http://www.daniel15.com/blog/2007/10/03/updates-to-the-flash-embed-application/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 08:40:18 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[Facebook]]></category>

		<category><![CDATA[Facebook - Flash Embed]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/10/03/updates-to-the-flash-embed-application/</guid>
		<description><![CDATA[Based on requests from users, I&#8217;ve now made the Flash Embed Facebook application much more user-friendly. Now, instead of entering in the Flash animation details manually, you can paste in a Flash embed code, and everything should be detected automatically. I tested this with some YouTube videos, CollegeHumor videos, and Miniclip.com games, and it all [...]]]></description>
			<content:encoded><![CDATA[<p>Based on requests from users, I&#8217;ve now made the Flash Embed Facebook application much more user-friendly. Now, instead of entering in the Flash animation details manually, you can paste in a Flash embed code, and everything should be detected automatically. I tested this with some YouTube videos, CollegeHumor videos, and Miniclip.com games, and it all seems to be working fine <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As usual, please report any bugs here as a comment, or via email.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/10/03/updates-to-the-flash-embed-application/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Facebook Flash Embed app - News and Updates section</title>
		<link>http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-app-news-and-updates-section/</link>
		<comments>http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-app-news-and-updates-section/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 14:55:05 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[Facebook]]></category>

		<category><![CDATA[Facebook - Flash Embed]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-app-news-and-updates-section/</guid>
		<description><![CDATA[Thanks to everyone that&#8217;s been testing my &#8220;Flash Embed&#8221; Facebook application and reporting problems to me. I&#8217;ve added a &#8220;Latest News and Updates&#8221; section to the application, so users are able to quickly see the latest updates. The bugs that have been reported so far are:

The animations display with a transparent background, even if a [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to everyone that&#8217;s been testing my &#8220;Flash Embed&#8221; Facebook application and reporting problems to me. I&#8217;ve added a &#8220;Latest News and Updates&#8221; section to the application, so users are able to quickly see the latest updates. The bugs that have been reported so far are:</p>
<ul>
<li>The animations display with a transparent background, even if a background colour has been specified in the Flash animation. <i>[Unconfirmed]</i></li>
<li>The icon for the application does not have a transparent background. <em>[Fixed on 2nd October 2007]</em></li>
<li>The dimensions of the Flash animation need to be entered manually. I&#8217;m not quite sure how to fix this, though (as I don&#8217;t think there&#8217;s a way to automatically detect how big the animation is).</li>
</ul>
<p>If you find a bug in the application, please tell me about it (either by posting a comment here, or emailing me at <strong>facebook -[at]- daniel15.com</strong>)</p>
<p>Thanks guys! <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-app-news-and-updates-section/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Facebook Flash Embed application - Put Flash animations on your Facebook profile</title>
		<link>http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-application-put-flash-animations-on-your-facebook-profile/</link>
		<comments>http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-application-put-flash-animations-on-your-facebook-profile/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 13:54:15 +0000</pubDate>
		<dc:creator>Daniel15</dc:creator>
		
		<category><![CDATA[Facebook]]></category>

		<category><![CDATA[animation]]></category>

		<category><![CDATA[embed]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[metacafe]]></category>

		<category><![CDATA[video]]></category>

		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-application-put-flash-animations-on-your-facebook-profile/</guid>
		<description><![CDATA[If you want to put a Flash animation on your profile, you may use my Flash Embed application, available from http://www.facebook.com/apps/application.php?api_key=fa3e01813e0bb57df6c615a84f3e6838. You can also use this to add videos that give you an embed code (eg. YouTube, Metacafe, etc.)
Enjoy! 
]]></description>
			<content:encoded><![CDATA[<p>If you want to put a Flash animation on your profile, you may use my Flash Embed application, available from <a href="http://www.facebook.com/apps/application.php?api_key=fa3e01813e0bb57df6c615a84f3e6838">http://www.facebook.com/apps/application.php?api_key=fa3e01813e0bb57df6c615a84f3e6838</a>. You can also use this to add videos that give you an embed code (eg. YouTube, Metacafe, etc.)</p>
<p>Enjoy! <img src='http://www.daniel15.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daniel15.com/blog/2007/10/01/facebook-flash-embed-application-put-flash-animations-on-your-facebook-profile/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
