• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:18
CEST 13:18
KST 20:18
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
IntoTheTV X SOOP SC2 League : Weekly & Monthly4Clem: "I don't have that much hope in Blizzard"2ZeroSpace Early Access is Now Live!23Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters2Balance hotfix patch 5.0.16b (July 16)90
StarCraft 2
General
Balance hotfix patch 5.0.16b (July 16) How would you feel about frequent/monthly balance patches for SC2? Reynor: GSL Loss Wasn't About Preparation Format Clem: "I don't have that much hope in Blizzard" Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters
Tourneys
IntoTheTV X SOOP SC2 League : Weekly & Monthly INu's Battles#18 - Cure, herO, Rogue & ByuN RSL Revival: Season 6 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2) WardiTV Summer Cup 2026
Strategy
[G] Having the right mentality to improve
Custom Maps
[M] (2) Industrial Park New Map Maker - Looking for Advice - Love or Hate
External Content
Mutation # 535 Assembly of Vengeance The PondCast: SC2 News & Results Mutation # 534 Burning Evacuation Mutation # 533 Die Together
Brood War
General
BW General Discussion ASL22 General Discussion How Famous was FlaSh before his Debut? Animated Gateway BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Escore Tournament - Season 3 Small VOD Thread 2.0 [Megathread] Daily Proleagues [IPSL] Spring 2026 Grand Finals - This Weekend!
Strategy
Simple Questions, Simple Answers PvT advise for noobs Fighting Spirit mining rates Creating a full chart of Zerg builds
Other Games
General Games
ZeroSpace Early Access is Now Live! General RTS Discussion Thread Path of Exile Nintendo Switch Thread Diablo IV
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance Vanilla Mini Mafia
Community
General
US Politics Mega-thread Artificial Intelligence Thread Russo-Ukrainian War Thread How to buy a book - shipping from Korea to Europe The Games Industry And ATVI
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Series you have seen recently... Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
How Games can Help with Majo…
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4034 users

The Big Programming Thread - Page 511

Forum Index > General Forum
Post a Reply
Prev 1 509 510 511 512 513 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2014-08-18 15:57:09
August 15 2014 13:50 GMT
#10201
On August 15 2014 22:14 tofucake wrote:
Show nested quote +
On August 15 2014 13:21 phar wrote:
On August 11 2014 09:23 delHospital wrote:
On August 10 2014 12:08 phar wrote:
I mean in the real world, you're going to run into ascii, utf-8, koi8, shift-jis, and who knows wtf else. Why? Because a) legacy, and b) some people have really shit internet, so cutting down filesize still helps. Shit in a lot of places people will just turn off data on their phone when they aren't explicitly using it because it's exorbitantly expensive.

That's definitely true (except for the fact that you can save much more bandwidth by enabling compression than by switching to an obsolete encoding). All I'm saying is that everything and everyone should use/default to UTF-8, unless they have a very good reason not to.


UTF-16 is by definition always at least 2 bytes per character (sometimes 4). I don't know what you mean by "can take up to 2 bytes".

OK, I meant "2 code units", not bytes.


Also, UTF-16 can be encoded in two different byte orders, that's twice the fun, right?


This is generally true of every single thing on a computer ever:

http://en.wikipedia.org/wiki/Endianness

Not computing's greatest moment.

There is, or at least used to be, a reason why most processors work in the counter-intuitive little-endian mode. However, before you send those integers over the network, they're converted to network (big-endian) order (well, some people are evil and define "network order" as "little-endian" in their protocols, anyway, there's some kind of standard). But why would a character encoding explicitly allow for different endiannesses? What's the benefit?


Ha ok I think we're saying the same thing then. Yea, in an ideal world we'd all be standardized, but



The Egyptian government broke one of my unit tests by changing their timezone information. @#$^(*#@&^)(#&^

Standards, how do they work?


First,
[image loading]

Second,

Pretty much true to use a library for anything that gets complicated. You often need to build things from the ground up and often that just causes errors. With regards to the video, I think you can just use the Unix timestamp and be fine for most things. His example of physicists coming to discuss a leap second, and farfetched and don't really affect you unless you're a contractor doing work for Nasa.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2014-08-16 03:03:31
August 16 2014 03:02 GMT
#10202
On August 15 2014 22:14 tofucake wrote:
Show nested quote +
On August 15 2014 13:21 phar wrote:
On August 11 2014 09:23 delHospital wrote:
On August 10 2014 12:08 phar wrote:
I mean in the real world, you're going to run into ascii, utf-8, koi8, shift-jis, and who knows wtf else. Why? Because a) legacy, and b) some people have really shit internet, so cutting down filesize still helps. Shit in a lot of places people will just turn off data on their phone when they aren't explicitly using it because it's exorbitantly expensive.

That's definitely true (except for the fact that you can save much more bandwidth by enabling compression than by switching to an obsolete encoding). All I'm saying is that everything and everyone should use/default to UTF-8, unless they have a very good reason not to.


UTF-16 is by definition always at least 2 bytes per character (sometimes 4). I don't know what you mean by "can take up to 2 bytes".

OK, I meant "2 code units", not bytes.


Also, UTF-16 can be encoded in two different byte orders, that's twice the fun, right?


This is generally true of every single thing on a computer ever:

http://en.wikipedia.org/wiki/Endianness

Not computing's greatest moment.

There is, or at least used to be, a reason why most processors work in the counter-intuitive little-endian mode. However, before you send those integers over the network, they're converted to network (big-endian) order (well, some people are evil and define "network order" as "little-endian" in their protocols, anyway, there's some kind of standard). But why would a character encoding explicitly allow for different endiannesses? What's the benefit?


Ha ok I think we're saying the same thing then. Yea, in an ideal world we'd all be standardized, but



The Egyptian government broke one of my unit tests by changing their timezone information. @#$^(*#@&^)(#&^

Standards, how do they work?


First,

Ha yea, see my earlier post where I linked exactly that

On August 15 2014 22:14 tofucake wrote:
Second,
http://www.youtube.com/watch?v=-5wpm-gesOY

Yea unfortunately some part of code will have to deal with timezones, because they're a real thing that customers rely on. Even if you have almost everything end-to-end timezone agnostic, you'll have to show stuff on screen in a timezone. If you have proper testing, and say the Egyptian government decides to change their timezone rules on a whim with like 8 days notice, then shit's gonna break.

Some more detail:

http://codeofmatt.com/2014/05/15/egypt-goes-back-to-daylight-saving-time/

The short version here is: everyone does use a library, and Egypt still broke everything. The libraries broke, because nobody had sufficient notice to rebuild and redeploy everything under the sun.
Who after all is today speaking about the destruction of the Armenians?
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2014-08-16 06:42:20
August 16 2014 06:33 GMT
#10203
i'm free!

On August 09 2014 09:41 delHospital wrote:
Show nested quote +
On August 09 2014 09:07 Blisse wrote:
english is the default communication standard nowadays and localization to and from is a huge pain and takes time away from engineers, and is very dry job material for most people. if you want to not be hit by random unicode/language issues, use english only, because it's looking like that's the main medium of communication and programming for the next 100 years.

saying that these moments drive all those promising newcomers away from coding is a bit pretentious of you..

every half decent programmer encounters day long struggles with seemingly trivial things in hindsight. if the process or chain broken, hey, you can try your hand at fixing it, because there's probably a reason it was broken in the first place.

Is using a German version of Windows also pretentious? And by "English-only" you really mean "ASCII-only". Which implies no math symbols, ugly typography, etc. The fact that UTF-8 is still not the default format of text interchange for many applications/programming languages is absurd. And struggling at a task as easy as reading a text file definitely can scare away newcomers, why would you deny that?


my pretentious comment was for this "I swear to you, these are the moments that drive all those promising newcomers away from coding...". it's a bit pretentious to think that the problems he faces are the problems everyone faces and so on. really could be miscommunication because it all hinges on the world 'promising' there, but on the internet to me it just sounds like "omg i have a really annoying problem, i can't believe it exists, it's problems like these that can turn promising developers like me away from programming"

ascii has been the default format because you have billions of lines of legacy code in the world all running ascii, and then utf16 is proposed and everyone goes to that and then some people make utf8 and utf32 and now we have billions of lines of legacy code that have to be rewritten to support whatever communication protocol is now and millions of developers that would rather build a new feature than spend half a year supporting everything and making sure everything runs perfectly.

next, you have windows support utf16 normally and unix support utf8 normally but then you have people who realize that "hey i dont actually need extended character sets because i work in english and i want to save time and use ascii because utf8 is another line of code in their development chain", and you have languages who default to utf16 like python and java and c#.

the idea is that the internet world wasn't built in a day, and even if we only all use utf8 or utf16 right now you're talking about adding probably decades of combined development time to provide backwards compatibility to everything. and if you want to start your own standard you end up like that xkcd. yes it sucks balls and it should be the standard but try convincing all 10-100m developers in the world to all agree on the same thing and then convince someone to pay for it. just stuff we have to deal with, unless you want to try your hand at pioneering.


---

it's being more and more the case where a lot of companies are taking things to the cloud since it's more robust and you can make a sweeping change pretty instantly. i think that could make the egypt time zone issue just a 1 day pass.
There is no one like you in the universe.
Manit0u
Profile Blog Joined August 2004
Poland17800 Posts
August 18 2014 13:10 GMT
#10204
Guys, are you familiar with how IE reads CSS files? I'm having a big problem on my hands... Client demanded that the project supports IE8 and it keeps ignoring the CSS.

I'm using less, compiling and minimizing it to plain CSS which I then cache on the server (there are no @import, mixins or anything like that in there). I know that IE8 will ignore a ton of stuff I put there and I don't care, it doesn't have to load all the CSS, I don't care if there are no shadows etc. but it seems to ignore practically everything.

Do any of you have some ideas how this could be done?

Best solution - creating a separate css stylesheet for IE8 - is the last thing I'd like to do since there are many thousands of lines of CSS spread across hundreds of files and writing it all anew with IE compatibility in mind would take me a week or so.
Time is precious. Waste it wisely.
Fission
Profile Blog Joined August 2010
Canada1184 Posts
August 18 2014 14:30 GMT
#10205
On August 18 2014 22:10 Manit0u wrote:
Guys, are you familiar with how IE reads CSS files? I'm having a big problem on my hands... Client demanded that the project supports IE8 and it keeps ignoring the CSS.

I'm using less, compiling and minimizing it to plain CSS which I then cache on the server (there are no @import, mixins or anything like that in there). I know that IE8 will ignore a ton of stuff I put there and I don't care, it doesn't have to load all the CSS, I don't care if there are no shadows etc. but it seems to ignore practically everything.

Do any of you have some ideas how this could be done?

Best solution - creating a separate css stylesheet for IE8 - is the last thing I'd like to do since there are many thousands of lines of CSS spread across hundreds of files and writing it all anew with IE compatibility in mind would take me a week or so.


Shot in the dark here - but check that IE is running in document standards mode and not compatibility mode (for IE6/7).
Manit0u
Profile Blog Joined August 2004
Poland17800 Posts
Last Edited: 2014-08-18 14:52:05
August 18 2014 14:48 GMT
#10206
On August 18 2014 23:30 Fission wrote:
Show nested quote +
On August 18 2014 22:10 Manit0u wrote:
Guys, are you familiar with how IE reads CSS files? I'm having a big problem on my hands... Client demanded that the project supports IE8 and it keeps ignoring the CSS.

I'm using less, compiling and minimizing it to plain CSS which I then cache on the server (there are no @import, mixins or anything like that in there). I know that IE8 will ignore a ton of stuff I put there and I don't care, it doesn't have to load all the CSS, I don't care if there are no shadows etc. but it seems to ignore practically everything.

Do any of you have some ideas how this could be done?

Best solution - creating a separate css stylesheet for IE8 - is the last thing I'd like to do since there are many thousands of lines of CSS spread across hundreds of files and writing it all anew with IE compatibility in mind would take me a week or so.


Shot in the dark here - but check that IE is running in document standards mode and not compatibility mode (for IE6/7).


Was not the case.

Solved:

IE8 only reads 4096 selectors/file, which was causing the issues (as it simply discarded half the css file). I had to dig deep though since the css optimizer plugin was automatically pulling everything and dropping it into a single, minimized file. I have managed to split it into several files (by unlinking some files from optimization and including them directly as separate <link> tags). It's ugly and non-optimized now, but at least it works (at least parts of the style that are compatible with IE8). Took me 6 hours of digging through the net for solutions, testing stuff and reading freaking IE8 specs...

IE sucks monkey balls (and so do companies that run on Win XP + IE and refuse to modernize their intranet/infrastructure).
Time is precious. Waste it wisely.
nucLeaRTV
Profile Joined May 2011
Romania822 Posts
August 18 2014 15:03 GMT
#10207
That sucks and could help me in future.
"Having your own haters means you are famous"
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
August 18 2014 15:15 GMT
#10208
Hi guys, I had a question. I'm developing a .NET public web site that will require authentication. Most of my experience has been at work developing internally with active directory, so I'm not really sure how to handle usernames and passwords on a public site. Is there anything out there that will take care of managing accounts for me, so my website doesn't have to? Any advice would help greatly. Thanks.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
August 18 2014 15:27 GMT
#10209
post them here and i will manage them for you personally.
conspired against by a confederacy of dunces.
supereddie
Profile Joined March 2011
Netherlands151 Posts
August 18 2014 15:37 GMT
#10210
Just use the standard Membership/Roleproviders?
"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2014-08-18 16:00:50
August 18 2014 15:54 GMT
#10211
Yeah, IE is pretty disgusting. I had hoped by 8 they'd at least have modernized a bit.

I wish I had something to ask here atm...
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Manit0u
Profile Blog Joined August 2004
Poland17800 Posts
Last Edited: 2014-08-18 16:37:59
August 18 2014 16:32 GMT
#10212
On August 19 2014 00:03 nucLeaRTV wrote:
That sucks and could help me in future.


http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/10164546.aspx

For future reference

On August 19 2014 00:15 enigmaticcam wrote:
Hi guys, I had a question. I'm developing a .NET public web site that will require authentication. Most of my experience has been at work developing internally with active directory, so I'm not really sure how to handle usernames and passwords on a public site. Is there anything out there that will take care of managing accounts for me, so my website doesn't have to? Any advice would help greatly. Thanks.


Make them sign-in with G+ or FB.

https://developers.google.com/ /quickstart/csharp

Time is precious. Waste it wisely.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2014-08-18 16:39:39
August 18 2014 16:38 GMT
#10213
that way the nsa and gchq also gets access.
conspired against by a confederacy of dunces.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
August 18 2014 17:26 GMT
#10214
On August 18 2014 23:48 Manit0u wrote:
Show nested quote +
On August 18 2014 23:30 Fission wrote:
On August 18 2014 22:10 Manit0u wrote:
Guys, are you familiar with how IE reads CSS files? I'm having a big problem on my hands... Client demanded that the project supports IE8 and it keeps ignoring the CSS.

I'm using less, compiling and minimizing it to plain CSS which I then cache on the server (there are no @import, mixins or anything like that in there). I know that IE8 will ignore a ton of stuff I put there and I don't care, it doesn't have to load all the CSS, I don't care if there are no shadows etc. but it seems to ignore practically everything.

Do any of you have some ideas how this could be done?

Best solution - creating a separate css stylesheet for IE8 - is the last thing I'd like to do since there are many thousands of lines of CSS spread across hundreds of files and writing it all anew with IE compatibility in mind would take me a week or so.


Shot in the dark here - but check that IE is running in document standards mode and not compatibility mode (for IE6/7).


Was not the case.

Solved:

IE8 only reads 4096 selectors/file, which was causing the issues (as it simply discarded half the css file). I had to dig deep though since the css optimizer plugin was automatically pulling everything and dropping it into a single, minimized file. I have managed to split it into several files (by unlinking some files from optimization and including them directly as separate <link> tags). It's ugly and non-optimized now, but at least it works (at least parts of the style that are compatible with IE8). Took me 6 hours of digging through the net for solutions, testing stuff and reading freaking IE8 specs...

IE sucks monkey balls (and so do companies that run on Win XP + IE and refuse to modernize their intranet/infrastructure).

Has anyone tried out modernizr to deal with IE web development?

Maybe you could try this out and see if it helps you. Report back?
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Saumure
Profile Joined February 2012
France404 Posts
August 18 2014 17:26 GMT
#10215
Hi TL,
i am currently doing some test, and I have written a bash script that executes my stuff 20 times and appends all results.txt into another .txt file. But, the executable I am running 20 times also outputs a lot, and I would like to copy the last 10 lines of each run in some other .txt file. Does someone know which commands I could use for that in my script? I can't find a solution.

Sorry if my explanation is perhaps a little confusing.
Prillan
Profile Joined August 2011
Sweden350 Posts
August 18 2014 17:34 GMT
#10216
On August 19 2014 02:26 Saumure wrote:
Hi TL,
i am currently doing some test, and I have written a bash script that executes my stuff 20 times and appends all results.txt into another .txt file. But, the executable I am running 20 times also outputs a lot, and I would like to copy the last 10 lines of each run in some other .txt file. Does someone know which commands I could use for that in my script? I can't find a solution.

Sorry if my explanation is perhaps a little confusing.


Check out tee and tail.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
Saumure
Profile Joined February 2012
France404 Posts
August 18 2014 18:23 GMT
#10217
On August 19 2014 02:34 Prillan wrote:
Show nested quote +
On August 19 2014 02:26 Saumure wrote:
Hi TL,
i am currently doing some test, and I have written a bash script that executes my stuff 20 times and appends all results.txt into another .txt file. But, the executable I am running 20 times also outputs a lot, and I would like to copy the last 10 lines of each run in some other .txt file. Does someone know which commands I could use for that in my script? I can't find a solution.

Sorry if my explanation is perhaps a little confusing.


Check out tee and tail.

Thank you very much It works very well
But do you think there is an impact on the run time if I have to copy ~1000 lines my program puts out in a file every time?
Manit0u
Profile Blog Joined August 2004
Poland17800 Posts
August 18 2014 19:15 GMT
#10218
On August 19 2014 02:26 obesechicken13 wrote:
Show nested quote +
On August 18 2014 23:48 Manit0u wrote:
On August 18 2014 23:30 Fission wrote:
On August 18 2014 22:10 Manit0u wrote:
Guys, are you familiar with how IE reads CSS files? I'm having a big problem on my hands... Client demanded that the project supports IE8 and it keeps ignoring the CSS.

I'm using less, compiling and minimizing it to plain CSS which I then cache on the server (there are no @import, mixins or anything like that in there). I know that IE8 will ignore a ton of stuff I put there and I don't care, it doesn't have to load all the CSS, I don't care if there are no shadows etc. but it seems to ignore practically everything.

Do any of you have some ideas how this could be done?

Best solution - creating a separate css stylesheet for IE8 - is the last thing I'd like to do since there are many thousands of lines of CSS spread across hundreds of files and writing it all anew with IE compatibility in mind would take me a week or so.


Shot in the dark here - but check that IE is running in document standards mode and not compatibility mode (for IE6/7).


Was not the case.

Solved:

IE8 only reads 4096 selectors/file, which was causing the issues (as it simply discarded half the css file). I had to dig deep though since the css optimizer plugin was automatically pulling everything and dropping it into a single, minimized file. I have managed to split it into several files (by unlinking some files from optimization and including them directly as separate <link> tags). It's ugly and non-optimized now, but at least it works (at least parts of the style that are compatible with IE8). Took me 6 hours of digging through the net for solutions, testing stuff and reading freaking IE8 specs...

IE sucks monkey balls (and so do companies that run on Win XP + IE and refuse to modernize their intranet/infrastructure).

Has anyone tried out modernizr to deal with IE web development?

Maybe you could try this out and see if it helps you. Report back?


Modernizr won't help you at all if IE simply rejects half of your CSS (it doesn't parse it, takes 4095 selectors and stops reading the file after that).

I tried making it more compatible with modernizr.js and respond.js but there wasn't that much difference. I didn't get to test responsiveness everywhere yet, might take some time. Also, from what I gather, modernizr simply tags your classes so that you know which won't work in the browser you're testing on and can adjust them. Not that much help if you use a lot of mixins and your classes can inherit stuff from multiple sources.

Another problem that just surfaced for me:



IGE plays a major part in important project feature. Now I have to work around that too...
Time is precious. Waste it wisely.
berated-
Profile Blog Joined February 2007
United States1134 Posts
August 18 2014 23:57 GMT
#10219
On August 18 2014 23:48 Manit0u wrote:
Show nested quote +
On August 18 2014 23:30 Fission wrote:
On August 18 2014 22:10 Manit0u wrote:
Guys, are you familiar with how IE reads CSS files? I'm having a big problem on my hands... Client demanded that the project supports IE8 and it keeps ignoring the CSS.

I'm using less, compiling and minimizing it to plain CSS which I then cache on the server (there are no @import, mixins or anything like that in there). I know that IE8 will ignore a ton of stuff I put there and I don't care, it doesn't have to load all the CSS, I don't care if there are no shadows etc. but it seems to ignore practically everything.

Do any of you have some ideas how this could be done?

Best solution - creating a separate css stylesheet for IE8 - is the last thing I'd like to do since there are many thousands of lines of CSS spread across hundreds of files and writing it all anew with IE compatibility in mind would take me a week or so.


Shot in the dark here - but check that IE is running in document standards mode and not compatibility mode (for IE6/7).


Was not the case.

Solved:

IE8 only reads 4096 selectors/file, which was causing the issues (as it simply discarded half the css file). I had to dig deep though since the css optimizer plugin was automatically pulling everything and dropping it into a single, minimized file. I have managed to split it into several files (by unlinking some files from optimization and including them directly as separate <link> tags). It's ugly and non-optimized now, but at least it works (at least parts of the style that are compatible with IE8). Took me 6 hours of digging through the net for solutions, testing stuff and reading freaking IE8 specs...

IE sucks monkey balls (and so do companies that run on Win XP + IE and refuse to modernize their intranet/infrastructure).


Is your site public? I'd love to see your css. Not that I haven't had my fair share of ie 8 fun but... over 4096 selectors has to be pretty edge use case.
Manit0u
Profile Blog Joined August 2004
Poland17800 Posts
Last Edited: 2014-08-19 09:27:08
August 19 2014 08:16 GMT
#10220
On August 19 2014 08:57 berated- wrote:
Show nested quote +
On August 18 2014 23:48 Manit0u wrote:
On August 18 2014 23:30 Fission wrote:
On August 18 2014 22:10 Manit0u wrote:
Guys, are you familiar with how IE reads CSS files? I'm having a big problem on my hands... Client demanded that the project supports IE8 and it keeps ignoring the CSS.

I'm using less, compiling and minimizing it to plain CSS which I then cache on the server (there are no @import, mixins or anything like that in there). I know that IE8 will ignore a ton of stuff I put there and I don't care, it doesn't have to load all the CSS, I don't care if there are no shadows etc. but it seems to ignore practically everything.

Do any of you have some ideas how this could be done?

Best solution - creating a separate css stylesheet for IE8 - is the last thing I'd like to do since there are many thousands of lines of CSS spread across hundreds of files and writing it all anew with IE compatibility in mind would take me a week or so.


Shot in the dark here - but check that IE is running in document standards mode and not compatibility mode (for IE6/7).


Was not the case.

Solved:

IE8 only reads 4096 selectors/file, which was causing the issues (as it simply discarded half the css file). I had to dig deep though since the css optimizer plugin was automatically pulling everything and dropping it into a single, minimized file. I have managed to split it into several files (by unlinking some files from optimization and including them directly as separate <link> tags). It's ugly and non-optimized now, but at least it works (at least parts of the style that are compatible with IE8). Took me 6 hours of digging through the net for solutions, testing stuff and reading freaking IE8 specs...

IE sucks monkey balls (and so do companies that run on Win XP + IE and refuse to modernize their intranet/infrastructure).


Is your site public? I'd love to see your css. Not that I haven't had my fair share of ie 8 fun but... over 4096 selectors has to be pretty edge use case.


Nope. It's company training site used over intranet. There are a lot of selectors because some custom fonts and icons need a class for each character with ::before and ::after pseudo-elements, making it over 2k selectors/font.

Example:

@charset "UTF-8";
@font-face {
font-family: "megaicons1";
src: url("/fonts/megaicons/megaicons1.eot");
src: url("/fonts/megaicons/megaicons1.eot?#iefix") format("embedded-opentype"), url("/fonts/megaicons/megaicons1.woff") format("woff"), url("/fonts/megaicons/megaicons1.ttf") format("truetype"), url("/fonts/megaicons/megaicons1.svg#megaicons1") format("svg");
font-weight: normal;
font-style: normal;
}
[data-icon]:before {
font-family: "megaicons1" !important;
content: attr(data-icon);
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[class^="megaicon1-"]:before,
[class*=" megaicon1-"]:before {
font-family: "megaicons1" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.megaicon1-accept:before {
content: "a";
}
.megaicon1-adressbook:before {
content: "b";
}
.megaicon1-agent:before {
content: "c";
}
.megaicon1-api:before {
content: "d";
}
.megaicon1-apple:before {
content: "e";
}
.megaicon1-application:before {
content: "f";
}


And so on for 13k lines... Then you get the training game with JS engine and all graphics done via html/css, which easily doubles your regular css code.

Also, I didn't make it. It was done 4 years ago or so by someone else. I'm just updating it.
Time is precious. Waste it wisely.
Prev 1 509 510 511 512 513 1032 Next
Please log in or register to reply.
Live Events Refresh
CrankTV Team League
11:00
Crank Gathers S4: Playoffs
LiquipediaDiscussion
Escore
10:00
Season 3 Week 4
escodisco1891
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko299
StarCraft: Brood War
Shuttle 2510
Hyuk 1072
Bisu 793
Horang2 505
Jaedong 492
Mini 383
firebathero 378
Light 376
BeSt 347
Larva 234
[ Show more ]
Soulkey 185
actioN 178
EffOrt 177
Leta 149
Snow 138
Soma 125
JYJ 118
ggaemo 92
Dewaltoss 89
Hyun 82
ZerO 62
Mind 57
Hm[arnc] 56
soO 45
Rush 44
Sexy 41
Bale 40
hero 34
Sharp 34
ToSsGirL 32
Barracks 32
[sc1f]eonzerg 30
sorry 20
NaDa 20
Shine 17
scan(afreeca) 17
Icarus 15
Aegong 11
Yoon 10
ajuk12(nOOB) 8
Rain 1
Counter-Strike
shoxiejesuss710
Other Games
gofns15122
FrodaN1679
singsing1198
crisheroes240
Happy218
B2W.Neo203
XaKoH 163
Liquid`LucifroN54
CosmosSc2 41
Trikslyr15
ZerO(Twitch)12
uThermal0
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 12 non-featured ]
StarCraft 2
• Berry_CruncH344
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV388
Upcoming Events
WardiTV Summer Champion…
42m
Big Brain Bouts
4h 42m
Soulspirit vs goblin
TriGGeR vs Bunny
OSC
10h 42m
Korean StarCraft League
15h 42m
Afreeca Starleague
16h 42m
RSL Revival
21h 42m
Serral vs SHIN
herO vs Solar
Online Event
1d 3h
Replay Cast
1d 12h
RSL Revival
1d 21h
Clem vs ByuN
Rogue vs Lambo
OSC
2 days
[ Show More ]
WardiTV Weekly
2 days
Sparkling Tuna Cup
3 days
INu's Battles
3 days
Cure vs herO
ByuN vs Rogue
PiGosaur Cup
4 days
The PondCast
4 days
Kung Fu Cup
4 days
Patches Events
5 days
Replay Cast
5 days
CrankTV Team League
5 days
Replay Cast
6 days
CrankTV Team League
6 days
Liquipedia Results

Completed

Proleague 2026-07-22
HSC XXIX
Eternal Conflict S2 E3

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
Escore Tournament S3: W4
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

ASL S22 SEASON OPEN Day 2
Escore Tournament S3: W5
ASL Season 22: Qualifier #1
ASL Season 22: Qualifier #2
CSLAN 4
ASL Season 22
Blizzard Classic Cup 2026
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.