• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 01:31
CET 07:31
KST 15:31
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
StarCraft Evolution League (SC Evo Biweekly) RSL Offline Finals Info - Dec 13 and 14! RSL Offline FInals Sea Duckling Open (Global, Bronze-Diamond) $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BW General Discussion Which season is the best in ASL? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread ZeroSpace Megathread Nintendo Switch Thread The Perfect Game Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Big Programming Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
James Bond movies ranking - pa…
Topin
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1693 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
Poland17496 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
Poland17496 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
Poland17496 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
Poland17496 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
Poland17496 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
Replay Cast
00:00
WardiTV Mondays #62
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 186
SortOf 80
trigger 48
-ZergGirl 16
StarCraft: Brood War
Stork 783
Tasteless 216
Shine 122
NaDa 44
Bale 34
ZergMaN 20
Icarus 10
Dota 2
NeuroSwarm124
febbydoto37
League of Legends
JimRising 636
Other Games
summit1g11266
WinterStarcraft539
C9.Mang0336
ViBE128
Mew2King47
Organizations
Other Games
gamesdonequick755
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH125
• practicex 35
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki21
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1281
Upcoming Events
The PondCast
3h 29m
OSC
9h 29m
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
17h 29m
Korean StarCraft League
1d 20h
CranKy Ducklings
2 days
WardiTV 2025
2 days
SC Evo League
2 days
BSL 21
2 days
Sziky vs OyAji
Gypsy vs eOnzErG
OSC
2 days
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV 2025
3 days
OSC
3 days
BSL 21
3 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
4 days
Wardi Open
4 days
StarCraft2.fi
4 days
Monday Night Weeklies
4 days
Replay Cast
4 days
WardiTV 2025
5 days
StarCraft2.fi
5 days
PiGosaur Monday
5 days
StarCraft2.fi
6 days
Tenacious Turtle Tussle
6 days
Liquipedia Results

Completed

Proleague 2025-11-30
RSL Revival: Season 3
Light HT

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
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 © 2025 TLnet. All Rights Reserved.