rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: marbulas on November 14, 2009, 02:17:48 PM

Title: rejetto, can you make an limit option?
Post by: marbulas on November 14, 2009, 02:17:48 PM
As you know that problem,
HFS stops when any connections are downloading big-size file(s).(4GB, 6GB, more else....)

Even if it's a problem in Web Browsers, but some other programs(like Berryz Webshare) are solved.
(by using the plugin or anyways....)

So I have a proposal to make an option in Limits menu 'Allows downloading file(s)s in single address under (n)GBs of sizes'
((n) is a number)
It's a limit prevent uploading files over (n)GBs of file(s) in single address.
Title: Re: rejetto, can you make an limit option?
Post by: SilentPliz on November 14, 2009, 02:34:10 PM
   
Welcome marbulas !  :)

Why you don't just display a warning message on the Web page for users?

...and you make smaller files.  :P :D
Title: Re: rejetto, can you make an limit option?
Post by: marbulas on November 14, 2009, 02:42:00 PM
I made it, but some rude persons ignoring the message. :<
It was driving me little bit crazy for a month.
Title: Re: rejetto, can you make an limit option?
Post by: SilentPliz on November 14, 2009, 03:17:30 PM
   
I think the downloads by quota is in the "to-do list".

It's maybe possible with the current macros, but I think no one has even trying. (?)
Title: Re: rejetto, can you make an limit option?
Post by: SilentPliz on November 14, 2009, 03:33:48 PM
To illustrate my last sentence:

http://www.rejetto.com/forum/index.php/topic,7723.0.html

 ;)
Title: Re: rejetto, can you make an limit option?
Post by: rejetto on November 14, 2009, 03:37:51 PM
welcome marbulas!

i'm not sure i got your problem.
to begin with: it's about files going from HFS to the browser (that we usually call download), or the opposite, adding files from the browser to the server?
Title: Re: rejetto, can you make an limit option?
Post by: marbulas on November 15, 2009, 01:30:13 AM
I mean it's about files going from HFS to the browser.

I agree this problem is on the web browsers -, but I think this post should be an easier way to solve the
problem sending the files.
This problem will stand forever until the web browser developers fix it up or prevent fucntions temporarily making the error like this.
Title: Re: rejetto, can you make an limit option?
Post by: Kremlin on November 15, 2009, 02:13:18 AM
How about encouraging download managers?
Title: Re: rejetto, can you make an limit option?
Post by: marbulas on November 15, 2009, 04:34:47 AM
I encouraged(I even posted the warning about this), but some gatecrashers have a tendency
trying to get my HFS stuck connect my HFS.
I can't manage my HFS 24 hours, so I really need a function to stop my HFS gets stuck.
Title: Re: rejetto, can you make an limit option?
Post by: rejetto on November 15, 2009, 07:54:34 PM
i know nothing about HFS stopping with big dowloads, if you use recent browsers.
what browser (and version) is giving you pain?
Title: Re: rejetto, can you make an limit option?
Post by: marbulas on November 21, 2009, 03:18:32 AM
Sorry for late ;D
Connections are on Internet Explorer 6,7,8 & Google Chrome(Every Version), etc.....
I don't know what browser makes this happen, but connections my HFS are on these browsers.
Title: Re: rejetto, can you make an limit option?
Post by: mrprozac on November 23, 2009, 04:44:45 AM
Why don't you put a banhammer on the ignorant visitors who ignore your warning?

I also host large files/folders on my server (a crappy 1.4GHz Dev pc.:P) and have never had a similar problem.
Title: Re: rejetto, can you make an limit option?
Post by: rejetto on November 23, 2009, 05:54:56 PM
IE version 6 is 8 years old, and i dislike spending time on supporting it.
Title: Re: rejetto, can you make an limit option?
Post by: Sapphirescales on November 24, 2009, 11:43:59 PM
Quote
IE version 6 is 8 years old, and i dislike spending time on supporting it.

AMEN to that!  With the glossy semi-transparent divs, 100% dynamically changing background image, and javascript slide-down menu, my server doesn't support IE6 at ALL.  And ya know what?  I don't care.  It's not like people in undeveloped countries with Windows 98 and IE6 are really gonna need to use my server anyways. ::)  I've also dropped support for IE6 in pretty much all my websites too.  This is a great tool to have if you're not supporting IE6 anymore:

http://www.ie6nomore.com/ (http://www.ie6nomore.com/)

Problem is, my new server design won't work with Firefox versions 2.0 and older.  I wish it was this simple to put a warning on there for firefox and other browsers.  There is a script out there, but I haven't gotten it to work yet.
Title: Re: rejetto, can you make an limit option?
Post by: rejetto on November 25, 2009, 02:23:28 PM
http://www.google.com/search?q=javascript+detect+browser+version
Title: Re: rejetto, can you make an limit option?
Post by: bacter on November 25, 2009, 06:49:04 PM
rejetto
no need for javascript - you made macro ! ;D

Code: [Select]
{.set|uagent|{.header|User-Agent.}.}
{.for each|tt|MSIE|Firefox|Opera|Chrome|Safari|Mosaic|GranParadiso|Galeon|Konqueror|
{:{.if not|{.^browsername.}|{:{.if|{.pos|{.^tt.}|{.^uagent.}.}|{:{.set|browsername|{.^tt.}.}:}.}:}.}:}.}
{.set|tt|{.substring|{.^browsername.}| |{.^uagent.}.}.}
{.switch|{.^browsername.}|,|
MSIE        |{:{.set|brvers|{.cut|6||{.substring|{.^browsername.}|;|{.^uagent.}.}.}.}:}|
Firefox     |{:{.set|brvers|{.cut|9| |{.^tt.}.}.}:}|
Opera,Mosaic  |{:{.set|brvers|{.cut|7| |{.^tt.}.}.}:}|
Chrome,Galeon|{:{.set|brvers|{.cut|8| |{.^tt.}.}.}:}|
Safari     |{:{.set|brvers|{.cut|9||{.substring|Version| |{.^uagent.}.}.}.}:}|
Konqueror       |{:{.set|brvers|{.cut|11||{.substring|{.^browsername.}|;|{.^uagent.}.}.}.}:}|
default:|
.}
{.for each|tt|iphone|ipod|Android|Symbian|IEMobile|Elinks|Googlebot|Yahoo|
{:{.if not|{.^browserext.}|{:{.if|{.pos|{.^tt.}|{.^uagent.}.}|{:{.set|browserext|{.^tt.}.}:}.}:}.}:}.}

this returns browsername, brvers (and browserext for mobiledevices and bots)
Executing it with first connection you have all the information you need. ;)
Title: Re: rejetto, can you make an limit option?
Post by: rejetto on November 26, 2009, 10:18:03 AM
good to put in a file and {.load.} it as a lib :)
Title: Re: rejetto, can you make an limit option?
Post by: rejetto on November 27, 2009, 03:26:56 PM
what does bacter think about it?
Title: Re: rejetto, can you make an limit option?
Post by: bacter on November 27, 2009, 06:13:04 PM
from mars:
Quote
why not include it as an alias? Wink

from rejetto:
Quote
what does bacter think about it?

Sorry, but even with the help of the search function of this forum and the wiki i was not able to find out what mars means by an alias.

I can imagine that he means to define the functions in a way that they are not directly executed.
something like:
Code: [Select]
{.set|browsername|{:
     {.for each|tt|MSIE|Firefox|Opera|Chrome|Safari|Mosaic|GranParadiso|Galeon|Konqueror|
{:{.if|{.pos|{.^tt.}|{.header|User-Agent.}.}|{:{.^tt.}:}.}
        :}.}
     :}.}
{.set|brvers|{: .. the whole junk of code ..  :}
...


if you mean this, that is another way to do it  :D

Title: Re: rejetto, can you make an limit option?
Post by: Mars on November 27, 2009, 07:29:09 PM
there is already compiled four aliases found in the sources of hfs

Quote
var length=length|var=$1

cache=trim|{.set|#tempCache123|{.from table|$1|$2.}.} {.if not|{.^#tempCache123.}|{:{.set|#tempCache123|{.dequote|$3.}.}{.set table|$1|$2={.^#tempCache123.}.}:}.} {.^#tempCache123.} {.set|#tempCache123.}

is substring=pos|$1|$2

set append=set|$1|$2|mode=append

an alias could be defined as follows

Code: [Select]
get browser={.set|uagent|{.header|User-Agent.}.}
{.for each|tt|MSIE|Firefox|Opera|Chrome|Safari|Mosaic|GranParadiso|Galeon|Konqueror|
{:{.if not|{.^browsername.}|{:{.if|{.pos|{.^tt.}|{.^uagent.}.}|{:{.set|browsername|{.^tt.}.}:}.}:}.}:}.}
{.set|tt|{.substring|{.^browsername.}| |{.^uagent.}.}.}
{.switch|{.^browsername.}|,|
MSIE        |{:{.set|brvers|{.cut|6||{.substring|{.^browsername.}|;|{.^uagent.}.}.}.}:}|
Firefox     |{:{.set|brvers|{.cut|9| |{.^tt.}.}.}:}|
Opera,Mosaic  |{:{.set|brvers|{.cut|7| |{.^tt.}.}.}:}|
Chrome,Galeon|{:{.set|brvers|{.cut|8| |{.^tt.}.}.}:}|
Safari     |{:{.set|brvers|{.cut|9||{.substring|Version| |{.^uagent.}.}.}.}:}|
Konqueror       |{:{.set|brvers|{.cut|11||{.substring|{.^browsername.}|;|{.^uagent.}.}.}.}:}|
default:|
.}
{.for each|tt|iphone|ipod|Android|Symbian|IEMobile|Elinks|Googlebot|Yahoo|
{:{.if not|{.^browserext.}|{:{.if|{.pos|{.^tt.}|{.^uagent.}.}|{:{.set|browserext|{.^tt.}.}:}.}:}.}:}.}
{.^browserext.}

then the macro {.get browser.} give the distant browsername or nothing if unknow ;)
Title: Re: rejetto, can you make an limit option?
Post by: bacter on November 27, 2009, 11:16:30 PM
I don't know if it would be interesting to include such aliases for two reasons:

1) the actual list of browsers isn't very complete, so we would have to update that definitions from time to time.

2) This aliases are called very few times, as in a well written template you only need this information when a user establishes his first connection - after you save the interesting value for the browser in a #global-user-style variable or in a cookie.

So we can keep this things more flexible, including this macros when needed with a {.load.} in special:begin.

In my case i only use this macro only for statistical purposes, and to distinguish IE from the rest of browsers, - not to support IE , but to give the users the advice that they should use a browser that complies with the standards and with IE the template does not work as expected. And to distinguish if its a mobile device: there information is presented in a more 'spartanic' matter through the template.

Title: Re: rejetto, can you make an limit option?
Post by: rejetto on March 02, 2010, 01:02:34 PM
i'm a bit late on this :)
we have already the {.get|agent.}
we may just improve his detection system, if it's not enough.