<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Intrepid Blog</title>
	<atom:link href="http://blog.affien.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affien.com</link>
	<description>A few thoughts</description>
	<lastBuildDate>Mon, 23 Aug 2010 14:18:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on Reversing CRC by Bas Westerbaan</title>
		<link>http://blog.affien.com/archives/2005/07/15/reversing-crc/comment-page-1/#comment-178694</link>
		<dc:creator>Bas Westerbaan</dc:creator>
		<pubDate>Mon, 23 Aug 2010 14:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=113#comment-178694</guid>
		<description>Hi Tushar,

At the moment I haven&#039;t got the time to update my utilities to support CRC64.  However, it is pretty straightforward if you&#039;ve read http://stigge.org/martin/pub/SAR-PR-2006-05.pdf .</description>
		<content:encoded><![CDATA[<p>Hi Tushar,</p>
<p>At the moment I haven&#8217;t got the time to update my utilities to support CRC64.  However, it is pretty straightforward if you&#8217;ve read <a href="http://stigge.org/martin/pub/SAR-PR-2006-05.pdf" rel="nofollow">http://stigge.org/martin/pub/SAR-PR-2006-05.pdf</a> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reversing CRC by Tushar</title>
		<link>http://blog.affien.com/archives/2005/07/15/reversing-crc/comment-page-1/#comment-178693</link>
		<dc:creator>Tushar</dc:creator>
		<pubDate>Sun, 22 Aug 2010 15:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=113#comment-178693</guid>
		<description>Hi Bas,

I have tried the reverse crc code and it works perfectly, that is: to get the four bytes when I input only four bytes for the CRC32 checksum generation. I now have C# CRC64 generation code with me. I would like to know if I can reverse CRC64 checksum to get four-8 bytes back. If there&#039;s a way, please explain what I have to do. It would be nice if you can provide CRC64 reverse samples, steps.

Regards,
Tushar</description>
		<content:encoded><![CDATA[<p>Hi Bas,</p>
<p>I have tried the reverse crc code and it works perfectly, that is: to get the four bytes when I input only four bytes for the CRC32 checksum generation. I now have C# CRC64 generation code with me. I would like to know if I can reverse CRC64 checksum to get four-8 bytes back. If there&#8217;s a way, please explain what I have to do. It would be nice if you can provide CRC64 reverse samples, steps.</p>
<p>Regards,<br />
Tushar</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on md5(microtime()) by Youri</title>
		<link>http://blog.affien.com/archives/2006/12/03/md5microtime/comment-page-1/#comment-178668</link>
		<dc:creator>Youri</dc:creator>
		<pubDate>Thu, 08 Jul 2010 11:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/12/03/md5microtime/#comment-178668</guid>
		<description>I agree rand is better, but if you realy wan&#039;t to use the microtime use somthing randomley like

$random = md5(microtime() . &quot;confusion and fustration in modern times&quot;);</description>
		<content:encoded><![CDATA[<p>I agree rand is better, but if you realy wan&#8217;t to use the microtime use somthing randomley like</p>
<p>$random = md5(microtime() . &#8220;confusion and fustration in modern times&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reversing CRC by Bas Westerbaan</title>
		<link>http://blog.affien.com/archives/2005/07/15/reversing-crc/comment-page-1/#comment-178663</link>
		<dc:creator>Bas Westerbaan</dc:creator>
		<pubDate>Sun, 04 Jul 2010 19:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=113#comment-178663</guid>
		<description>You might be interested in http://stigge.org/martin/pub/SAR-PR-2006-05.pdf</description>
		<content:encoded><![CDATA[<p>You might be interested in <a href="http://stigge.org/martin/pub/SAR-PR-2006-05.pdf" rel="nofollow">http://stigge.org/martin/pub/SAR-PR-2006-05.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reversing CRC by Peter</title>
		<link>http://blog.affien.com/archives/2005/07/15/reversing-crc/comment-page-1/#comment-178662</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 23 Jun 2010 14:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=113#comment-178662</guid>
		<description>Hey,
I just found your page after crawling the internet for days and weeks and it looks like I&#039;m getting close to the solution of my problem. I already read Anarchriz&#039;s paper on reversing crc, but I just can&#039;t find the solution to my problem.

The thing is:
I&#039;ve got a file with some binary content. There are multiple data blocks (Header, data, CRC code). They are separated by 00 bytes, like this:

-----------------------------------
12 34 56 78 00 87 65 43 21 00 33 33 33 33

Header          00 Data               00 CRC code
-----------------------------------

As you can see, the crc code is already embedded in the file.The file is checked by an application, and it compares the crc value of the whole file with the crc value, that is written into it. ( In this case 33 33 33 33).

With your method and your scripts, I created 4 &quot;fakeTheCRC&quot; bytes and appended them. Now the file had the CRC that were written into it. But there is still a problem.
The application checks if there is anything after the crc code (e.g. the &quot;fake bytes&quot;). So i have to go another way.

For now, It doesn&#039;t matter which data is contained in the file, we can leave that out.

So for the correct crc, I have to:
1. Define a user-defined crc, e.g. 33 33 33 33
2. Calculate the data that is needed to get this crc

Now my problem is:
- How do I achieve this? I simply have to plan, I tried many many things, but I just don&#039;t know what to do...

I hope you still answer questions after 5 years ;)

Regards</description>
		<content:encoded><![CDATA[<p>Hey,<br />
I just found your page after crawling the internet for days and weeks and it looks like I&#8217;m getting close to the solution of my problem. I already read Anarchriz&#8217;s paper on reversing crc, but I just can&#8217;t find the solution to my problem.</p>
<p>The thing is:<br />
I&#8217;ve got a file with some binary content. There are multiple data blocks (Header, data, CRC code). They are separated by 00 bytes, like this:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
12 34 56 78 00 87 65 43 21 00 33 33 33 33</p>
<p>Header          00 Data               00 CRC code<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>As you can see, the crc code is already embedded in the file.The file is checked by an application, and it compares the crc value of the whole file with the crc value, that is written into it. ( In this case 33 33 33 33).</p>
<p>With your method and your scripts, I created 4 &#8220;fakeTheCRC&#8221; bytes and appended them. Now the file had the CRC that were written into it. But there is still a problem.<br />
The application checks if there is anything after the crc code (e.g. the &#8220;fake bytes&#8221;). So i have to go another way.</p>
<p>For now, It doesn&#8217;t matter which data is contained in the file, we can leave that out.</p>
<p>So for the correct crc, I have to:<br />
1. Define a user-defined crc, e.g. 33 33 33 33<br />
2. Calculate the data that is needed to get this crc</p>
<p>Now my problem is:<br />
- How do I achieve this? I simply have to plan, I tried many many things, but I just don&#8217;t know what to do&#8230;</p>
<p>I hope you still answer questions after 5 years <img src='http://blog.affien.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Parsing $_SERVER[&#039;PATH_INFO&#039;] by cancuengt</title>
		<link>http://blog.affien.com/archives/2004/12/12/parsing-_serverpath_info/comment-page-1/#comment-178650</link>
		<dc:creator>cancuengt</dc:creator>
		<pubDate>Mon, 05 Apr 2010 16:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/archives/2004/12/12/parsing-_serverpath_info/#comment-178650</guid>
		<description>You must provide $default with an array containing the values you want to extract as key and the default value for each.

By example, to extract the page topic, book and page and the number with this path: &#039;/support/bash/8&#039; you must pass $default with
array(&#039;topic&#039; =&gt; &#039;defaulttopic&#039;,&#039;book&#039;=&gt;&#039;defaultbook&#039;,&#039;page&#039;=&gt;1)

The following elementh in the path will be returner in a name = value pairs as follows: (/support/bash/8/link/title1)

array(
  &#039;topic&#039; =&gt; &#039;support&#039;,
  &#039;book&#039; =&gt; &#039;bash&#039;,
  &#039;page&#039; =&gt; 8,
  &#039;link&#039;   =&gt; &#039;title1&#039;,
)

Enjoy. 

function router($default)
{
    $keys    = array_keys($default);
    $pos     = 0;
    $res     = array();
    $name    = isset($keys[$pos])?$keys[$pos]:&#039;&#039;;
    foreach(explode(&#039;/&#039;,isset($_SERVER[&#039;PATH_INFO&#039;])?$_SERVER[&#039;PATH_INFO&#039;]:&#039;&#039;) as $value){
        if($value != &#039;&#039;){
            if($name == &#039;&#039;){
                $name = $value;
            }else{
                $res[$name] = $value;
                $pos++;
                $name = isset($keys[$pos])?$keys[$pos]:&#039;&#039;;
            }
        }
    }
    if($name != &#039;&#039;){ // Si se pasó un parámetro pero no su valor
        $res[$name] = &#039;&#039;;
    }
    foreach($default as $key =&gt; $value){ // Valores default, por si no existen
        if(!isset($res[$key]) &#124;&#124; ($res[$key] == &#039;&#039;)){
            $res[$key] = $value;
        }
    }
    return $res;
}</description>
		<content:encoded><![CDATA[<p>You must provide $default with an array containing the values you want to extract as key and the default value for each.</p>
<p>By example, to extract the page topic, book and page and the number with this path: &#8216;/support/bash/8&#8242; you must pass $default with<br />
array(&#8216;topic&#8217; =&gt; &#8216;defaulttopic&#8217;,'book&#8217;=&gt;&#8217;defaultbook&#8217;,'page&#8217;=&gt;1)</p>
<p>The following elementh in the path will be returner in a name = value pairs as follows: (/support/bash/8/link/title1)</p>
<p>array(<br />
  &#8216;topic&#8217; =&gt; &#8216;support&#8217;,<br />
  &#8216;book&#8217; =&gt; &#8216;bash&#8217;,<br />
  &#8216;page&#8217; =&gt; 8,<br />
  &#8216;link&#8217;   =&gt; &#8216;title1&#8242;,<br />
)</p>
<p>Enjoy. </p>
<p>function router($default)<br />
{<br />
    $keys    = array_keys($default);<br />
    $pos     = 0;<br />
    $res     = array();<br />
    $name    = isset($keys[$pos])?$keys[$pos]:&#8221;;<br />
    foreach(explode(&#8216;/&#8217;,isset($_SERVER['PATH_INFO'])?$_SERVER['PATH_INFO']:&#8221;) as $value){<br />
        if($value != &#8221;){<br />
            if($name == &#8221;){<br />
                $name = $value;<br />
            }else{<br />
                $res[$name] = $value;<br />
                $pos++;<br />
                $name = isset($keys[$pos])?$keys[$pos]:&#8221;;<br />
            }<br />
        }<br />
    }<br />
    if($name != &#8221;){ // Si se pasó un parámetro pero no su valor<br />
        $res[$name] = &#8221;;<br />
    }<br />
    foreach($default as $key =&gt; $value){ // Valores default, por si no existen<br />
        if(!isset($res[$key]) || ($res[$key] == &#8221;)){<br />
            $res[$key] = $value;<br />
        }<br />
    }<br />
    return $res;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reversing CRC by Vipul Popat</title>
		<link>http://blog.affien.com/archives/2005/07/15/reversing-crc/comment-page-1/#comment-178629</link>
		<dc:creator>Vipul Popat</dc:creator>
		<pubDate>Tue, 02 Mar 2010 14:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=113#comment-178629</guid>
		<description>Hi

I need a java library or algorithm to generate 4 bit CRC.
Can anyone plz help ?

Regards</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I need a java library or algorithm to generate 4 bit CRC.<br />
Can anyone plz help ?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RGB to Hex (and why the python interactive mode is so damned handy) by sameer</title>
		<link>http://blog.affien.com/archives/2004/12/20/rgb-to-hex-and-why-the-python-interactive-mode-is-so-damned-handy/comment-page-1/#comment-178602</link>
		<dc:creator>sameer</dc:creator>
		<pubDate>Thu, 28 Jan 2010 22:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/archives/2004/12/20/rgb-to-hex-and-why-the-python-interactive-mode-is-so-damned-handy/#comment-178602</guid>
		<description>Eric, you might want to use 

return &quot;#%02X%02X%02X&quot; % (r,g,b) to get a 0 to show up as 00</description>
		<content:encoded><![CDATA[<p>Eric, you might want to use </p>
<p>return &#8220;#%02X%02X%02X&#8221; % (r,g,b) to get a 0 to show up as 00</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GStreamer: accurate duration by Kwikrick</title>
		<link>http://blog.affien.com/archives/2009/04/19/gstreamer-accurate-duration/comment-page-1/#comment-178520</link>
		<dc:creator>Kwikrick</dc:creator>
		<pubDate>Thu, 29 Oct 2009 11:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.affien.com/?p=371#comment-178520</guid>
		<description>Thanks, this is just what I was looking for...</description>
		<content:encoded><![CDATA[<p>Thanks, this is just what I was looking for&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Php sucks (and I still use it) by LS</title>
		<link>http://blog.affien.com/archives/2005/02/21/why-php-sucks-and-i-still-use-it/comment-page-1/#comment-178484</link>
		<dc:creator>LS</dc:creator>
		<pubDate>Mon, 05 Oct 2009 16:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/archives/2005/02/21/why-php-sucks-and-i-still-use-it/#comment-178484</guid>
		<description>Yes, PHP suck,.. I use it,.. but it sucks!! really sucks!.. if you don&#039;t use a framework (ej: Symfony, Zend, etc) sucks more,.. Sessions have a magic rare behaviour, OOP?? LOL... is simply based on a bunch of functions,... variables?? LOL, magic methods? there are just official workarounds, debugers / IDE.. you have to use 5 tools at least to reach 10% of the IDE of other languajes...  I got a certification in php but is a pain in the ass doing big project with it... 

ASP.NET, Java, FLEX are much better...</description>
		<content:encoded><![CDATA[<p>Yes, PHP suck,.. I use it,.. but it sucks!! really sucks!.. if you don&#8217;t use a framework (ej: Symfony, Zend, etc) sucks more,.. Sessions have a magic rare behaviour, OOP?? LOL&#8230; is simply based on a bunch of functions,&#8230; variables?? LOL, magic methods? there are just official workarounds, debugers / IDE.. you have to use 5 tools at least to reach 10% of the IDE of other languajes&#8230;  I got a certification in php but is a pain in the ass doing big project with it&#8230; </p>
<p>ASP.NET, Java, FLEX are much better&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
