<?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 on: Cache and carry</title>
	<atom:link href="http://www.p2pnet.net/story/31717/feed" rel="self" type="application/rss+xml" />
	<link>http://www.p2pnet.net/story/31717</link>
	<description>p2pnet.net - reader powered</description>
	<lastBuildDate>Wed, 01 Feb 2012 15:11:09 -0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Reader's Write</title>
		<link>http://www.p2pnet.net/story/31717/comment-page-1#comment-991788</link>
		<dc:creator>Reader's Write</dc:creator>
		<pubDate>Tue, 01 Dec 2009 04:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.p2pnet.net/?p=31717#comment-991788</guid>
		<description>&quot;Until last year Opera&#039;s cache included file endings (which looked something like opr088LY.xyz), making it simple to pull up pictures, mp3s, video files and games, but no more. By version 8 or 9 they had joined other browser makers and eliminated the endings, and what had been another in a long line of good reasons for using Opera as well. Now they’re just indeterminate files like opr088LY.

So when I dumped these mysterious little units into Winamp I didn’t think they’d play. But they did.&quot;

Congratulations, you&#039;ve just discovered that file extensions have absolutely no effect on the contents of a file.

Back in the early days of home computers (AKA before the dawn of recorded history for most of today&#039;s users), computers didn&#039;t have a GUI. There were no mice and no icons to click on. When you wanted to run a program, you typed in its name. Once it was loaded, if you wanted to open other files with it, such as pictures, you used the &quot;Open File&quot; option provided by the program and usually selected the file to be opened by using the arrow keys to move the selection bar to the file you wanted. Although there were some programs that insisted on files having the proper extension, for the most part, filename extensions existed to serve as a visual reminder of what each file was.

When GUI based OSs came along, the idea of double-clicking to open files was born. You could run programs by double-clicking them and you could open data files by double-clicking them. To do this, the OS looks at the extension, looks up that extension in its internal list, sees what program is &quot;associated&quot; with that extension, loads that program and passes the file to it. The OS doesn&#039;t really know what the file is, it just relies on the extension. If the extension is wrong, the file will be passed to the wrong program. Since this can lead to crashes when a program tries to process random data, file &quot;headers&quot; were invented. A file&#039;s header contains information that tells the program what type of file it is. If the program doesn&#039;t recognize the header, it will probably refuse to open/play/display the file. In the case of audio/video files, the header contains information about the codecs needed to play the file.

If you use the same program to view JPG and GIF files, you can rename one to the other and they will still work, because both extensions are passed to the same program. On the other hand, if you rename a JPG file to TXT, Notepad or whatever program you use for a text editor isn&#039;t going to know what to do with the file.

This also means that removing the extension in no way changes what the file is, it only eliminates the OS&#039;s ability to automatically pass it to the apropriate program when you double-click it. If you were to rename a file from &quot;Some-Song.mp3&quot; to &quot;Some-Song&quot;, you haven&#039;t changed anything other than the filename. It&#039;s still an MP3 file. If you drag &amp; drop that file on your media player, or you use the Open option from the file menu, it&#039;s going to look at the file&#039;s header, see that&#039;s an MP3 file and play it.

There&#039;s nothing magical about file extensions, they&#039;re simply a convenience feature that allows you to load files by double-clicking and which serves as an easy indicator or what the files are.

&quot;Files have no extension for a reason – to prevent users from wandering in the cache and opening files by double-clicking. Files in the cache can have malicious content and should not be opened just by double-clicking.

There is a MIME type served by server and there is a file association that is used to choose an application to open the file with. When the two do not match, we have e-mail viruses (e.g. file.exe marked as image/png, and Outlook Express running it as executable on preview).&quot;

Which is a perfect example of why people shouldn&#039;t be using any of the software that Microsoft provides with Windows, not even the picture and fax viewer. Any piece of software that is broken enough to execute an EXE labelled as JPG, should be disabled and/or uninstalled immediately and replaced with something designed by someone who knew what they were doing.

I just renamed a harmless EXE file (a small game) to several popular extensions;

JPG - Irfanview opened and displayed the program&#039;s icon.

RAR/ZIP - WinRAR &amp; WinZip both told me it was a bad archive.

AVI - Media Player Classic told me that the video was in an unknown format.

HTML - Firefox showed me a raw listing of the file&#039;s contents.

PDF - Foxit Reader failed to open at all.

TXT - Metapad told me that it wasn&#039;t a text file, asked if I wanted to load it anyway and then displayed the raw file contents.

TORRENT - uTorrent told me it was an invalid file.

DOC - My Word viewer (I don&#039;t have Word) told me it was a bad file.

PAR2 - Quickpar opened, but ignored the file.

SFV - Fsum opened then immediately closed.


I&#039;m failing to see the danger here, especially considering that 99% of today&#039;s users have no idea what a browser cache is, let alone how to actually find it on their system. Anyone with the expertise to find the files would hopefully be intelligent enough to be using software that doesn&#039;t act like a universal file opening system that tries to figure out what each file is and open it regardless.

And I can&#039;t help commenting on the sad state of today&#039;s computer competency level, when the ability to find files on your hard drive needs to be classified as &quot;expertise&quot; rather than a basic skill that every computer user should have.</description>
		<content:encoded><![CDATA[<p>&#8220;Until last year Opera&#8217;s cache included file endings (which looked something like opr088LY.xyz), making it simple to pull up pictures, mp3s, video files and games, but no more. By version 8 or 9 they had joined other browser makers and eliminated the endings, and what had been another in a long line of good reasons for using Opera as well. Now they’re just indeterminate files like opr088LY.</p>
<p>So when I dumped these mysterious little units into Winamp I didn’t think they’d play. But they did.&#8221;</p>
<p>Congratulations, you&#8217;ve just discovered that file extensions have absolutely no effect on the contents of a file.</p>
<p>Back in the early days of home computers (AKA before the dawn of recorded history for most of today&#8217;s users), computers didn&#8217;t have a GUI. There were no mice and no icons to click on. When you wanted to run a program, you typed in its name. Once it was loaded, if you wanted to open other files with it, such as pictures, you used the &#8220;Open File&#8221; option provided by the program and usually selected the file to be opened by using the arrow keys to move the selection bar to the file you wanted. Although there were some programs that insisted on files having the proper extension, for the most part, filename extensions existed to serve as a visual reminder of what each file was.</p>
<p>When GUI based OSs came along, the idea of double-clicking to open files was born. You could run programs by double-clicking them and you could open data files by double-clicking them. To do this, the OS looks at the extension, looks up that extension in its internal list, sees what program is &#8220;associated&#8221; with that extension, loads that program and passes the file to it. The OS doesn&#8217;t really know what the file is, it just relies on the extension. If the extension is wrong, the file will be passed to the wrong program. Since this can lead to crashes when a program tries to process random data, file &#8220;headers&#8221; were invented. A file&#8217;s header contains information that tells the program what type of file it is. If the program doesn&#8217;t recognize the header, it will probably refuse to open/play/display the file. In the case of audio/video files, the header contains information about the codecs needed to play the file.</p>
<p>If you use the same program to view JPG and GIF files, you can rename one to the other and they will still work, because both extensions are passed to the same program. On the other hand, if you rename a JPG file to TXT, Notepad or whatever program you use for a text editor isn&#8217;t going to know what to do with the file.</p>
<p>This also means that removing the extension in no way changes what the file is, it only eliminates the OS&#8217;s ability to automatically pass it to the apropriate program when you double-click it. If you were to rename a file from &#8220;Some-Song.mp3&#8243; to &#8220;Some-Song&#8221;, you haven&#8217;t changed anything other than the filename. It&#8217;s still an MP3 file. If you drag &amp; drop that file on your media player, or you use the Open option from the file menu, it&#8217;s going to look at the file&#8217;s header, see that&#8217;s an MP3 file and play it.</p>
<p>There&#8217;s nothing magical about file extensions, they&#8217;re simply a convenience feature that allows you to load files by double-clicking and which serves as an easy indicator or what the files are.</p>
<p>&#8220;Files have no extension for a reason – to prevent users from wandering in the cache and opening files by double-clicking. Files in the cache can have malicious content and should not be opened just by double-clicking.</p>
<p>There is a MIME type served by server and there is a file association that is used to choose an application to open the file with. When the two do not match, we have e-mail viruses (e.g. file.exe marked as image/png, and Outlook Express running it as executable on preview).&#8221;</p>
<p>Which is a perfect example of why people shouldn&#8217;t be using any of the software that Microsoft provides with Windows, not even the picture and fax viewer. Any piece of software that is broken enough to execute an EXE labelled as JPG, should be disabled and/or uninstalled immediately and replaced with something designed by someone who knew what they were doing.</p>
<p>I just renamed a harmless EXE file (a small game) to several popular extensions;</p>
<p>JPG &#8211; Irfanview opened and displayed the program&#8217;s icon.</p>
<p>RAR/ZIP &#8211; WinRAR &amp; WinZip both told me it was a bad archive.</p>
<p>AVI &#8211; Media Player Classic told me that the video was in an unknown format.</p>
<p>HTML &#8211; Firefox showed me a raw listing of the file&#8217;s contents.</p>
<p>PDF &#8211; Foxit Reader failed to open at all.</p>
<p>TXT &#8211; Metapad told me that it wasn&#8217;t a text file, asked if I wanted to load it anyway and then displayed the raw file contents.</p>
<p>TORRENT &#8211; uTorrent told me it was an invalid file.</p>
<p>DOC &#8211; My Word viewer (I don&#8217;t have Word) told me it was a bad file.</p>
<p>PAR2 &#8211; Quickpar opened, but ignored the file.</p>
<p>SFV &#8211; Fsum opened then immediately closed.</p>
<p>I&#8217;m failing to see the danger here, especially considering that 99% of today&#8217;s users have no idea what a browser cache is, let alone how to actually find it on their system. Anyone with the expertise to find the files would hopefully be intelligent enough to be using software that doesn&#8217;t act like a universal file opening system that tries to figure out what each file is and open it regardless.</p>
<p>And I can&#8217;t help commenting on the sad state of today&#8217;s computer competency level, when the ability to find files on your hard drive needs to be classified as &#8220;expertise&#8221; rather than a basic skill that every computer user should have.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.p2pnet.net/story/31717/comment-page-1#comment-991758</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 30 Nov 2009 22:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.p2pnet.net/?p=31717#comment-991758</guid>
		<description>That is one unnatural mix of wax. Like Roger Waters once said, &quot;I can&#039;t imagine anyone who would buy Englebert Humperdinck&#039;s new record and the Cream&#039;s.&quot;</description>
		<content:encoded><![CDATA[<p>That is one unnatural mix of wax. Like Roger Waters once said, &#8220;I can&#8217;t imagine anyone who would buy Englebert Humperdinck&#8217;s new record and the Cream&#8217;s.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JasonN</title>
		<link>http://www.p2pnet.net/story/31717/comment-page-1#comment-991713</link>
		<dc:creator>JasonN</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.p2pnet.net/?p=31717#comment-991713</guid>
		<description>Shhhhhhhhhh!  I&#039;ve been keeping that on the downlow and for videos too!</description>
		<content:encoded><![CDATA[<p>Shhhhhhhhhh!  I&#8217;ve been keeping that on the downlow and for videos too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reader's Write</title>
		<link>http://www.p2pnet.net/story/31717/comment-page-1#comment-991709</link>
		<dc:creator>Reader's Write</dc:creator>
		<pubDate>Mon, 30 Nov 2009 14:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.p2pnet.net/?p=31717#comment-991709</guid>
		<description>Files have no extension for a reason - to prevent users from wandering in the cache and opening files by double-clicking. Files in the cache can have malicious content and should not be opened just by double-clicking.

There is a MIME type served by server and there is a file association that is used to choose an application to open the file with. When the two do not match, we have e-mail viruses (e.g. file.exe marked as image/png, and Outlook Express running it as executable on preview).

Unfortunately, there is still &quot;magic&quot; guessing in MS file handling, e.g. try to rename your file.doc to just &quot;file&quot; with no extension and double-click it.</description>
		<content:encoded><![CDATA[<p>Files have no extension for a reason &#8211; to prevent users from wandering in the cache and opening files by double-clicking. Files in the cache can have malicious content and should not be opened just by double-clicking.</p>
<p>There is a MIME type served by server and there is a file association that is used to choose an application to open the file with. When the two do not match, we have e-mail viruses (e.g. file.exe marked as image/png, and Outlook Express running it as executable on preview).</p>
<p>Unfortunately, there is still &#8220;magic&#8221; guessing in MS file handling, e.g. try to rename your file.doc to just &#8220;file&#8221; with no extension and double-click it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>


