rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Comrade Elisey on August 10, 2007, 11:12:14 PM

Title: A problem with loading template
Post by: Comrade Elisey on August 10, 2007, 11:12:14 PM
I can't load any template such as Terayon and etc., cuz the file of template is very big for HFS. Help me with it pls ???
Title: Re: A problem with loading template
Post by: TSG on August 11, 2007, 02:54:18 AM
Template file is too big for HFS??? HFS shouldn't have any problem with the template filesize... I've seen templates up to 100kb in size work perfectly... Or do you mean you don't have the upload bandwidth to serve a template with that many images and external files...
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 11, 2007, 03:43:31 AM
no... when i copy the code from .tpl file into "Edit HTML Template..." it couldn't be paste, cuz have very much symbols... :-\
Title: Re: A problem with loading template
Post by: radd on August 11, 2007, 04:18:21 AM
have u try import?

copy & paste should work as well
Title: Re: A problem with loading template
Post by: TSG on August 11, 2007, 08:13:01 AM
yes, i have also found that pasting into the template editor can give strange results, when i tested HFS Live on my computer, i found the template pasted incomplete, and when i imported the template file, it worked fine. so try that.
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 11, 2007, 08:43:10 AM
i try import .tpl file & i try pasting code from the template file... => the results was identical  :(
i mean it is bug :-X
Title: Re: A problem with loading template
Post by: TSG on August 11, 2007, 09:52:52 AM
whats the filesize of the .tpl file? the filesize is usually the same as the amount of characters in the file, if the template is 25670 there is usually that many characters (characters include spaces, breaks, tabs everything) present within the document.
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 11, 2007, 06:34:13 PM
yep.
but i still need help in it...
maybe it because of my computer?
celeron 300mhz, 224mb ram
Title: Re: A problem with loading template
Post by: ~GeeS~ on August 11, 2007, 11:49:57 PM
Your computer should be fine ... I've run HFS with Celeron 266 MHz and about the same size of RAM some time ago .... run flawlessly with e.g. The Black and other modified templates (but it took hours to get XP on it  :o )
Nice template you have ... cool and loads very fast. I would not recommend to use other {very heavy "bloated"} templates with your limited bandwith: loading would take ages.

 :D     ;D   "Site was made with  Notepad!" My compliments!!!  8)
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 12, 2007, 12:32:41 AM
yeah! thanks!  :D
i like Notepad and HTML & CSS handwriting! :)
Title: Re: A problem with loading template
Post by: TSG on August 12, 2007, 04:49:21 AM
If you like notepad to edit your code, you might want to try this program, notepad++, its free :)

http://notepad-plus.sourceforge.net/uk/site.htm
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 12, 2007, 07:41:54 AM
thx, but use the classic windows notepad become my habit  :)
Title: Re: A problem with loading template
Post by: rejetto on August 13, 2007, 09:23:58 PM
can you furnish a screenshot of the problem?
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 14, 2007, 01:14:57 AM
screenshot... hmm... maybe video?
Title: Re: A problem with loading template
Post by: rejetto on August 14, 2007, 01:16:05 AM
ok for the video :)
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 14, 2007, 02:37:50 AM
there is video (xvid) about template bug.
http://coel.ath.cx/bug/template_bug.7z (http://coel.ath.cx/bug/template_bug.7z)
notes: coel.tpl is my small template which HFS load succesfully;
HFS Terayon v1.2.1.tpl & en_basic_blue_2009.tpl is big for HFS...
Title: Re: A problem with loading template
Post by: radd on August 14, 2007, 05:53:03 AM
hmm.. anybody use win98 with same problem?
Title: Re: A problem with loading template
Post by: TSG on August 14, 2007, 11:02:03 AM
You are experiencing a very strange bug... I decided to do some testing to see how many characters the template editor could handle with copy/paste... I managed to get the following results.... ;D 117mb template anyone.?. i must say HFS was getting laggy with all that memory usage :P

What exactly is your problem? is it that you cannot import a template that big, or your bandwidth is too slow for the template... or you HFS just wont physically show the template even with local hosting?

*i would have looked at the video but the link is offline*

My specs are as follows:
2.2ghz AMD Athlon 3500+
4x512mb = 2gb 400mhz DDR RAM
60gb IDE, 200gb SATA, 320gb SATA = 580gb total HDD space...


I think HFS could have taken more but CPU usage was peaking rapidly :P
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 14, 2007, 12:45:44 PM
my hfs is always online, but sometimes i restarting the computer...
try download now  :)
Title: Re: A problem with loading template
Post by: TSG on August 14, 2007, 02:33:05 PM
Wow, just watched the video, that is very strange, those templates aren't that huge either...

I used to run my HFS from a 500mhz PIII with 320mb of ram, on windows 2000. And i found everything i threw at HFS would work. I find this puzzling... And as you can see using a computer with 2.2ghz, 2gb RAM and windows XP you can get up to 117mb and higher templates happening :P as if u'd ever use that tho.

I have a feeling its your processor... When you paste in the template code, take a look at the amount of CPU HFS is using in your task manager. With 117mb template, it raced up to 1,200,000k for hfs.exe. Maybe. I am unsure. It could even be windows98 at fault. But i doubt it because HFS is actually running and you can use a smaller template. Which to me says you computer can only handle so many characters in the template editor...This is just my theory, don't count on it :P
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 14, 2007, 02:39:45 PM
maybe rejetto can fix this bug for win98?  :-\
Title: Re: A problem with loading template
Post by: MarkV on August 14, 2007, 04:39:55 PM
Could you run the resource monitor please? And what it says when you try to load the template. Especially User and GDI resources. It may be that is your problem.

Also please read this article, it may have to do with your issue: http://apptools.com/rants/resources.php
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 14, 2007, 04:45:07 PM
maybe maybe...
Title: Re: A problem with loading template
Post by: rejetto on August 15, 2007, 06:03:30 PM
why you say the problem is the size? couldn't be something else?

try this

i don't have Win98, and it's not officially supported. i may try getting a virtual machine running it.
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 15, 2007, 06:09:47 PM
the problem is persist  :(
Title: Re: A problem with loading template
Post by: radd on August 15, 2007, 06:28:42 PM
have u try copy & paste the code little by little? i know this shouldnt be the right way to do, but just to check where the problem lies in ur case. whether hfs couldnt stand too many character in template editor or the problem start during the "copy" process.
if u can paste let say half of template, then paste another half and the template are working, most probably problem during copying. not enough memory? or like markv said? i dont know..
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 15, 2007, 06:33:48 PM
i try copy & paste little by little, but when limit is archieved i can't type any  character...
Title: Re: A problem with loading template
Post by: radd on August 15, 2007, 06:59:11 PM
hmm.. looks like template editor itself having limit. rejetto might want to look at this. sorry, i use winxp, cant confirm your problem.

p/s- your templates very nice though, and fast. i might suggest u stick on this template unless u need the extra part like mp3player, thumbnail view.. and i love your avatar too, where did u get them.. hehe
Title: Re: A problem with loading template
Post by: rejetto on August 15, 2007, 09:18:14 PM
i try copy & paste little by little, but when limit is archieved i can't type any  character...

and what is this limit?
Title: Re: A problem with loading template
Post by: MarkV on August 16, 2007, 02:12:21 AM
Meh... I still think his resources are depleted. It would explain the 9x vs. NT thing. NT based OS have unlimited resources (only limited by RAM), while Windows 98's GDI and user resources are only 2MiB each - shared for ALL programs running. If you run some resource-intensive programs, 98 goes down the drain...
Title: Re: A problem with loading template
Post by: rejetto on August 16, 2007, 02:14:43 AM
in the link you posted before, edit controls are reported to have no limits under win9x
Title: Re: A problem with loading template
Post by: MarkV on August 16, 2007, 02:21:27 AM
I referred more to this:
Quote from: article
GDI stands for Graphics Device Interface and is in charge of the visible components of Windows. It stores fonts, brushes, bitmaps, and other graphics stuff, as well as lends support to other graphic output devices such as printers.

Everyone owning Windows 9x could do the following to test

-SAVE YOUR STUFF!!!
-Now open as many windows as you can (or run some graphically-intensive programs)
-It doesn't take long before the fonts distort, you can't open more windows, you can't type text in Notepad, it may even freeze.


edit: Don't get me wrong, I don't say that it is the problem, but it could have to do with it. I recommended to run the resource monitor to remove it from the list of possibilities, but he hasn't done yet. Well, another possibility is a limitation in a DLL HFS makes use of...
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 16, 2007, 02:49:20 AM
yes, i have very little of system resources  :'(
sometimes i reloadin' computer that resources were restored...
Title: Re: A problem with loading template
Post by: MarkV on August 16, 2007, 03:06:47 AM
Exactly what I mean. I did a test myself (You made me do it! lol)

(http://img155.imageshack.us/img155/9633/98shot1st4.th.jpg) (http://img155.imageshack.us/my.php?image=98shot1st4.jpg)

You see what happens if you open too many windows here. What resource depletes first depends on the type of application you run.
I typed some text in Notepad2 and marked it (grey area). You can not even see it (it is text, no spaces)!

(http://img179.imageshack.us/img179/479/98shot2iv2.th.jpg) (http://img179.imageshack.us/my.php?image=98shot2iv2.jpg)

You see that even after closing the folders there are most funny things happening. Note that you never get all your resources back, some stay allocated and some are lost (resource leaking). You have to restart your computer to get 'em back.
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 16, 2007, 03:14:08 AM
yes, that's true.
Title: Re: A problem with loading template
Post by: MarkV on August 17, 2007, 11:44:54 PM
Unfortunately, the only way to get rid of this limitation us to upgrade the OS, at least to Win2k. Here the resources are managed differently and are virtually unlimited (up to the RAM).

By the way, Windows 98 notepad can only load 64KiB of text, there must be some limitation in this OS. XP notepad can open much larger size.
Title: Re: A problem with loading template
Post by: MarkV on August 18, 2007, 12:15:51 AM
Right now I'm testing the limits of the template editor. I will edit the results in as I get them:

Windows 95C: max. 34781 Bytes
Windows 98SE: max. 34781 Bytes
Windows ME: max. 34781 Bytes
Windows NT4 SP6a: virtually unlimited (Well I stopped at ~50 MiB...)
Windows XP SP2: unlimited, tested up to ~50 MiB

Forget about resources. This 9x limitation is present even with full resources.
Title: Re: A problem with loading template
Post by: TSG on August 18, 2007, 06:03:57 AM
Windows 2000 should run 'ok' on a 300mhz system with 256mb ram... it will be very slow boot, once it is up it should run fairly smooth... I have win2k pro on my sisters 500mhz 320mb ram machine, and it is reasonably fast.

But i would just stick to a little template below 35bytes :P, for my own curiosity does my template work with the win9x restrictions?
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 18, 2007, 06:49:01 AM
i used win2KProSP4, but it was very slow on my computer...

rejetto, can you make so that the size of a template didn't depend on resources of system?
Title: Re: A problem with loading template
Post by: TSG on August 18, 2007, 07:28:21 AM
If notepad in windows 98 has the same problem, then it is not a problem with HFS.
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 18, 2007, 07:32:23 AM
but Wordpad, Notepad++, Tigerpad & other doesn't have this problem
Title: Re: A problem with loading template
Post by: rejetto on August 18, 2007, 07:41:40 AM
indeed it is possible
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 18, 2007, 07:46:30 AM
ok, thanks! i wait that fix in next release!  :D
Title: Re: A problem with loading template
Post by: rejetto on August 18, 2007, 07:48:45 AM
possible doesn't mean that will be, or when...
you asked if it was feasible

anyway, i care about it and i will spend some time on it.
Title: Re: A problem with loading template
Post by: Comrade Elisey on August 18, 2007, 11:59:33 AM
okay
Title: Re: A problem with loading template
Post by: MarkV on August 18, 2007, 07:51:02 PM
If notepad in windows 98 has the same problem, then it is not a problem with HFS.

Well I think that limitation in Notepad is intended, for larger files it opens Wordpad (MFC app).
Title: Re: A problem with loading template
Post by: Comrade Elisey on September 04, 2007, 08:31:19 PM
i install winXPsp2 and try to Import HFS Live2 template, but it can't loading into html editor...  :-\ :-[ :'( >:( AAARGH!!
but Terayon template is loading properly!
Title: Re: A problem with loading template
Post by: TSG on September 05, 2007, 05:45:11 AM
lol we are talking about such tiny amounts of textual data... i think its time to upgrade that ancient computer lol cause my computer here uses about 300mhz idling sometimes :P

You can build a decent computer quite cheap now, only a few hundred dollars. I built my PC originally with...

2.2ghz AMD Athlon 3500+
1gb RAM (2x 512mhz DDR) Kingston/Kingmax
200gb Seagate SATA.
ASUS A8V Motherboard.
Basic 64mb Video Card. NVIDIA Geforce 4 (actually borrowed it from my cousin, until i could afford to buy a decent one)
Basic office case with 450w powersupply. Generic no name brand, i think it might be Antec. :P
Total: Around $500 (AUD)

I built it because i needed something for university, i used my old monitor and peripherals (i upgraded from my 500mhz with 320mb ram, 15gb hdd)... Man... my computer has changed a lot since then! That was about this time last year, so you could achieve a similar computer for half that now.

Cause seriously, i don't mean to insult... but is that computer steam driven?
Title: Re: A problem with loading template
Post by: Comrade Elisey on September 05, 2007, 07:44:37 AM
oh damn... not all people have enough money for that...  :-\
but i trying to archieve that.