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.
The Big Programming Thread - Page 511
| Forum Index > General Forum |
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
United States10467 Posts
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. | ||
|
phar
United States1080 Posts
Ha yea, see my earlier post where I linked exactly that ![]() 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. | ||
|
Blisse
Canada3710 Posts
On August 09 2014 09:41 delHospital wrote: 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. | ||
|
Manit0u
Poland17496 Posts
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. | ||
|
Fission
Canada1184 Posts
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
Poland17496 Posts
On August 18 2014 23:30 Fission wrote: 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). | ||
|
nucLeaRTV
Romania822 Posts
| ||
|
enigmaticcam
United States280 Posts
| ||
|
nunez
Norway4003 Posts
| ||
|
supereddie
Netherlands151 Posts
| ||
|
obesechicken13
United States10467 Posts
I wish I had something to ask here atm... | ||
|
Manit0u
Poland17496 Posts
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 | ||
|
nunez
Norway4003 Posts
| ||
|
obesechicken13
United States10467 Posts
On August 18 2014 23:48 Manit0u wrote: 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? | ||
|
Saumure
France404 Posts
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
Sweden350 Posts
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. | ||
|
Saumure
France404 Posts
Thank you very much It works very wellBut 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
Poland17496 Posts
On August 19 2014 02:26 obesechicken13 wrote: 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... | ||
|
berated-
United States1134 Posts
On August 18 2014 23:48 Manit0u wrote: 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
Poland17496 Posts
On August 19 2014 08:57 berated- wrote: 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:
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. | ||
| ||

![[image loading]](http://imgs.xkcd.com/comics/standards.png)


It works very well