Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

duckfan77

Popular Member
Mar 18, 2013
80
683
118
50 That is painful. I just tried it. It's insanely slow you need to type. Thankfully when I need to add things I usually have my TI-83 in reach, which actually will take inputs.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
52 what to do when you have too much time on your hands?
Simple, make a world map program but with a twist: it runs inside the terminal.
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
57 Note to self. Check file output code with console output before running it. Infinite loops that write to disk are BAD.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
57 Note to self. Check file output code with console output before running it. Infinite loops that write to disk are BAD.
57 ouch.

in other news, I decided to set the portfolio stuff that I need to make for school online.
upload_2017-10-30_16-16-13.png
Considering this is build as an SPA and I did nothing to make the files smaller and this is the busiest page, I say that this is a success.

Also, note that due to this being an SPA it means that if you are following the links it technically stays on the same page and just displays the new content. As a result, after the initial load it just needs one or two extra requests when you visit another page instead of it needing all this CSS,JS and HTML again. On top of that, if you visit a page you already looked at it needs no requests.

The same is true for the back/forward buttons :)

One thing I want to do is to detect if your browser can actually run the JS (read: if your browser is retarded and devilish IE or if it has JS turned off) and if it can't to not load any of it and just let it be a normal site.
 

triggerfinger12

Well-Known Member
Apr 17, 2017
255
457
89
Rock
58 That sounds cool, maybe even do it on a promotional site that tells people to stop being stupid with Internet Explorer. (Seriously, the only reason to use IE is because you're too lazy to change) If you're using IE, the page will look retarded, just like the browser. If you're not, there will be rainbows and dancing cats and the dankest memes ever. Also dubstep, plenty of dubstep.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
58 That sounds cool, maybe even do it on a promotional site that tells people to stop being stupid with Internet Explorer. (Seriously, the only reason to use IE is because you're too lazy to change) If you're using IE, the page will look retarded, just like the browser. If you're not, there will be rainbows and dancing cats and the dankest memes ever. Also dubstep, plenty of dubstep.
59 the problem with browser detection is that in theory it is very simple as each browser sends a so called user agent string with each request which should say what browser it is.
The problem: it became very messy as back when new browser renderer's actually got made (read: back when Netscape still existed) a lot of sites gave completely different html depending on what browser you visited the page.

This quickly became a problem for new browsers as they more often than not got rather bad looking sites where as browsers that the developers already knew of got the nicer pages. So, in order to be able to compete browsers ended up mimicing the user agent strings of others. This, never changed so we now have user agent strings that look like

Yes, this is an user agent string that claims to be Mozilla 5.0 running on windows. Its also claiming to be Applewebkit which claims to be KHTML which claims to be like Gecko. And of course it says its chrome, safari and Edge as well.

Another fun one
This one claims to be Mobile safari while its an android only app. (I now also learned that there is a browser called yolo browser.
Email clients however seem to have reasonable user agent strings. Though... this one claims to be voyager
And yes, there is an email client called "The Bat!".

Also, can we talk about the fact that browsers have worse user agent strings than e-mail clients and web-crawlers? Also, even windows media player has a saner user agent string than browsers >_>