News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

413 Request Entity Too Large

Started by Kratty256, April 13, 2011, 11:02:03 AM

Previous topic - Next topic

Robert.

Quote from: Yoshi2889 on April 14, 2011, 02:56:03 PM
Quote from: SlammedDime on April 13, 2011, 05:11:40 PM
Quote from: Yoshi2889 on April 13, 2011, 02:19:25 PM
Quote from: Andrew94© on April 13, 2011, 02:16:36 PM
I already use WinRAR. ;)

Almost everything in this mod is used - nothing is considered "unused".
At least try to minimize the code :P

Like
<?php
if (blablabla)
{
echo
'Ohi';
}
?>


Can be
<?php
if (blablabla)
echo
'Ohi';
?>

Snipping out 4 bytes here and there isn't going to help much on compression.
Actually, if you have lots of that kinds of code, it can minimize the size alot.
Actually, that doesn't matter so much. ;)

NanoSector

@ Kindred: Not bothering to read that as it doesn't really interest me.

@ Tah Zonemaster: Really, doesn't it?
Stripped a file of 59 KB down to 26 KB just by doing that...
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Robert.

Quote@ Tah Zonemaster: Really, doesn't it?
Stripped a file of 59 KB down to 26 KB just by doing that...
Nope SD said it by himself, it doesn't matter. And please remember to be nice to other people ;)

NanoSector

If it is not possible, how come my statement is true?
I am only gonna be nice to you if you are so to me (refers to MSN)...
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Robert.


NanoSector

I know  damn well what I am talking about and post counts do not interest me a bit.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Aleksi "Lex" Kilpinen

You can make a file smaller like that, but you can't help compression much by doing so. There's a difference in trying to make a file smaller, and trying to make the compressed package smaller.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

NanoSector

@ LexArma (finally someone who understands me a bit): If yo make the files alot smaller, it can help a bit with compression.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Aleksi "Lex" Kilpinen

Quote from: Yoshi2889 on April 15, 2011, 06:34:22 AM
@ LexArma (finally someone who understands me a bit): If yo make the files alot smaller, it can help a bit with compression.
True. But there is a limit to how much it can really help.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

NanoSector

Also true. Butit can help you to get closer to that (now gome) limit.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

DoctorMalboro

And then if your code has more than 100 lines it would be impossible to understand where does the conditions end or start... maybe making your code more readable is more important than the weight of the package itself...

PS: no one even ask if he has images and other stuff.

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

NanoSector

Quote from: DoctorMalboro on April 15, 2011, 07:05:32 AM
And then if your code has more than 100 lines it would be impossible to understand where does the conditions end or start... maybe making your code more readable is more important than the weight of the package itself...

PS: no one even ask if he has images and other stuff.
^^ That, too. Remove images you don't use :P

Making code readable is important too, but maybe making it smaller in size can be handy too.
Maybe do it both.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Arantor

By the way, stripping spaces like that often actually makes it harder, not easier, to compress a file to get any measurable benefit - and the odds are that the compressed file will not be any smaller, can even be bigger.
Holder of controversial views, all of which my own.


Kindred

exactly...   what compression utilities do is --- remove the spaces.
That's why text documents normally get such good compression and JPG images do not...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: