x_(hu4jnn) newer than x_(n0vm93) ?

Everything else that doesn't fall into one of the other PB categories.
Rozek
User
User
Posts: 64
Joined: Thu Jul 05, 2007 12:19 pm
Location: Böblingen (Germany)

x_(hu4jnn) newer than x_(n0vm93) ?

Post by Rozek »

Hello!

I just visited the PureBasic site to see if there would be a new version available for download - and was quite surprised that the current version for MacOSX had a smaller build "number" than the one I got in january (namely (hu4jnn) instead of (n0vm93)).

The Windows version has a larger build number (as one would expect)

Does anybody know what this discrepancy means? Did Fantaisie Software had to go back to an older version for MacOSX? Or are build numbers pure phantasy ;-) ?

Thanks in advance for any response!

Kind regards,

A.Rozek
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

this name in the downloadfile had nothing to do with versionnumber
SPAMINATOR NR.1
Rozek
User
User
Posts: 64
Joined: Thu Jul 05, 2007 12:19 pm
Location: Böblingen (Germany)

Post by Rozek »

Wow, that was fast!

Thanks for the immediate response!

Thus, these "numbers" are completely random? That makes it a bit more difficult to hold several versions of PureBasic in the same folder (when sorted by name - which is my default), but, well...I will survive!

Thanks anyway for the immediate response!

Kind regards,

A.Rozek
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

sort them by date maybe ?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

If the download is an arbitrary stream and not a direct link I don't see why random information needs to be added to the filename. Regardless, if the user is required to be logged in to access the download then the whole idea is completely redundant anyways.
Little John
Addict
Addict
Posts: 4871
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

Rozek wrote:Thus, these "numbers" are completely random? That makes it a bit more difficult to hold several versions of PureBasic in the same folder (when sorted by name - which is my default), but, well...I will survive!
After downloading, I always give the files meaningful names such as
PureBasic_4_30_Win_x86.exe
PureBasic_4_30_Lnx.tgz
Regards, Little John
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Mistrel wrote:If the download is an arbitrary stream and not a direct link I don't see why random information needs to be added to the filename. Regardless, if the user is required to be logged in to access the download then the whole idea is completely redundant anyways.
However. if it's not arbitrary, it may not be redundant.

cheers
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

If the file is passed to the user as a stream with an unknown location then it's not possible to link to it or to know where it's coming from. If the folder the file is located in is locked down using .htaccess then it will be impossible for the user to access it outside of the stream. If the stream is only accessible when the user is logged in.. then there's no point in using any further obsfucation.

My point is that if it originates as a stream then adding random letters to the filename is already redundant, unless the file being linked to has the same name, which wouldn't be an issue if .htaccess is used to block access.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

But if the letters are not random, it may provide some level of traceability, should the file show up somewhere else.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

rsts wrote:But if the letters are not random, it may provide some level of traceability, should the file show up somewhere else.
You do have a point there.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

The current solution was probably chosen because of its ease of implementation, not its technical merits.

Using a htaccess file for all the registered users would probably kill performance.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I don't think a simple

Code: Select all

<Files /files/PureBasic.exe>
order allow,deny
deny from all
</Files>
Would kill performance.
User avatar
idle
Always Here
Always Here
Posts: 6239
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Post by idle »

Probably just a session Identifier being tacked on to the file name from a DB query after looking up the user. You can name your stream whatever you want.

Something like this in PHP

Code: Select all

$content_len=@filesize("SecretPathToTheFile/ItsName.exe"); 
Header("Content-type: application/exe"); 
Header("Content-type: octet-stream"); 
Header('Content-Disposition: attachment; filename="WhatEverName.exe"'); 
if($content_len!=FALSE) 
{ 
Header("Content-length: $content_len"); 
} 
readfile("SecretPathToTheFile/ItsName.exe"); 

//do logging to db ...

exit;

Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Mistrel wrote:I don't think a simple

Code: Select all

<Files /files/PureBasic.exe>
order allow,deny
deny from all
</Files>
Would kill performance.
It wouldn't, but then no one could get the file...
Post Reply