Follow TV Tropes

Following

XKCD: It's more than a comic

Go To

Medinoc from France (Before Recorded History)
#15851: Dec 18th 2017 at 11:49:02 AM

I'd like to program an online generator (pagetopper edit: For these mad libs calendar facts), but I don't think the web-oriented language/platform I'm most comfortable with (C# ASP.Net) is supported by my current hosting contract (likely *n*x-based)... All I know for sure it supports is PHP, and I haven't programmed in that in years.

That said, I could try making a client-side generator all in javascript...

edited 18th Dec '17 11:50:07 AM by Medinoc

"And as long as a sack of shit is not a good thing to be, chivalry will never die."
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#15852: Dec 18th 2017 at 11:50:49 AM

I could do something in VBA very quickly, but it wouldn't be web-facing.

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
Redmess Redmess from Netherlands Since: Feb, 2014
Redmess
#15853: Dec 18th 2017 at 1:20:37 PM

I imagine this should be a cinch in ANY programming language, really. Just print a sentence picking each part randomly from a set of phrases, something like that.

Is there a point to this comic, or is Randall just having some random fun?

Optimism is a duty.
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#15854: Dec 18th 2017 at 1:24:38 PM

Well, I was sort of wondering if any special wisdom could be gained from decoding which phrase chains lead to real facts, but I'll leave that to someone way more obsessive than I am. Otherwise, it just appears to be for teh lulz.

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
petersohn from Earth, Solar System (Long Runner) Relationship Status: Hiding
#15855: Dec 18th 2017 at 2:01:33 PM

Here you go. In Python.

https://gist.github.com/petersohn/6c8f9d124bd961e909d2dc9a967ade2e

Edit: Now it contains the title text too.

edited 18th Dec '17 2:07:24 PM by petersohn

The universe is under no obligation to make sense to us.
Ninety Absolutely no relation to NLK from Land of Quakes and Hills Since: Nov, 2012 Relationship Status: In Spades with myself
Absolutely no relation to NLK
#15856: Dec 18th 2017 at 8:01:52 PM

I like the way you went about it.

Dopants: He meant what he said and he said what he meant, a Ninety is faithful 100%.
petersohn from Earth, Solar System (Long Runner) Relationship Status: Hiding
#15857: Dec 19th 2017 at 12:37:29 AM

There were some errors in punctuation. Now I corrected them.

The universe is under no obligation to make sense to us.
Redmess Redmess from Netherlands Since: Feb, 2014
Redmess
#15858: Dec 19th 2017 at 6:33:57 AM

Nicely done! Is there a way to run it?

Optimism is a duty.
Aetol from France Since: Jan, 2015
TParadox Since: Jan, 2001 Relationship Status: The captain of her heart
#15860: Dec 19th 2017 at 10:33:24 AM

If Python is installed on your computer, you can also save it as a .py document and open a command line interface to run it with the command "Python (filename)". You'll need to either have the file in the same folder your terminal session is looking at or change the directory it's looking at.

Fresh-eyed movie blog
Brickman Since: Jan, 2001
#15861: Dec 19th 2017 at 9:10:21 PM

"Did you know that the latest sunset might not happen this year because of a decree by the pope in the 1500s? Apparently, it's getting worse and no one knows why. While it may seem like trivia, it is now recognized as a major cause of World War I."

Your script spat out one of the most surreal combinations possible. Yay.

edit: No, on second thought, about half the combinations are this nonsensical. But only half.

edited 19th Dec '17 9:12:11 PM by Brickman

DeMarquis Since: Feb, 2010
#15862: Dec 20th 2017 at 6:14:28 AM

You might consider sharing thet with Monroe. Bet he'd like it.

Demetrios Our Favorite Cowgirl, er, Mare from Des Plaines, Illinois (unfortunately) Since: Oct, 2009 Relationship Status: I'm just a hunk-a, hunk-a burnin' love
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
C105 Too old for this from France Since: Jan, 2012 Relationship Status: Yes, I'm alone, but I'm alone and free
Too old for this
#15865: Dec 20th 2017 at 8:03:36 AM

That one was fun. Reminds me how I expected GPS devices to complain when I don't follow their directions.

Whatever your favourite work is, there is a Vocal Minority that considers it the Worst. Whatever. Ever!.
FuzzyBoots from Outlying borough of Pittsburgh (there's a lot of Since: Jan, 2001 Relationship Status: And they all lived happily ever after <3
#15866: Dec 20th 2017 at 8:06:37 AM

Heh. I always find it a bit funny how, when the GPS talks, people automatically pause their conversation to avoid interrupting.

It also has an element of The Tape Knew You Would Say That.

Ninety Absolutely no relation to NLK from Land of Quakes and Hills Since: Nov, 2012 Relationship Status: In Spades with myself
Absolutely no relation to NLK
#15867: Dec 20th 2017 at 10:36:10 AM

the alt text is even better

Dopants: He meant what he said and he said what he meant, a Ninety is faithful 100%.
TParadox Since: Jan, 2001 Relationship Status: The captain of her heart
#15868: Dec 20th 2017 at 4:39:30 PM

The first GPS devices announced they were "recalculating" your route when you took an unexpected turn, which could sound a bit passive aggressive.

Fresh-eyed movie blog
Ninety Absolutely no relation to NLK from Land of Quakes and Hills Since: Nov, 2012 Relationship Status: In Spades with myself
Absolutely no relation to NLK
#15869: Dec 20th 2017 at 5:27:28 PM

Don't they still? Waze does.

Dopants: He meant what he said and he said what he meant, a Ninety is faithful 100%.
petersohn from Earth, Solar System (Long Runner) Relationship Status: Hiding
#15870: Dec 21st 2017 at 12:56:14 AM

[up][up]I once rode a taxi where the driver knew better than the GPS (the road parallel to the main road had less traffic and no traffic lights), so it kept recalculating after every crossing. It gets annoying after some time.

[up]I would guess that Waze should regularly recalculate even if you follow the route because it has to follow live traffic changes.

The universe is under no obligation to make sense to us.
C105 Too old for this from France Since: Jan, 2012 Relationship Status: Yes, I'm alone, but I'm alone and free
Too old for this
#15871: Dec 21st 2017 at 1:21:51 AM

[up] I'm sometimes confused as to how GPS compute their timings, especially when you "disobey" them and they end up predicting an earlier time to arrival after recalculating their itinerary. I have had more than one GPS doing that.

Whatever your favourite work is, there is a Vocal Minority that considers it the Worst. Whatever. Ever!.
Redmess Redmess from Netherlands Since: Feb, 2014
Redmess
#15872: Dec 21st 2017 at 1:57:35 AM

That just means they calculate the time based on a less than optimal route, and you disobeying means you found a shorter route and saved some time.

Just because it is a computer does not mean it knows best.

Optimism is a duty.
FuzzyBoots from Outlying borough of Pittsburgh (there's a lot of Since: Jan, 2001 Relationship Status: And they all lived happily ever after <3
#15873: Dec 21st 2017 at 4:50:57 AM

Add to that things like predictive traffic weighting (they assume that that side street will be slower because it's often clogged with parked cars and people pulling out of driveways, but when you force yourself on it, it displays the ideal case since it just doesn't know for sure) and traffic shaping (IIRC from a news article, Waze actually does not always give ideal routes to its users, but will instead give varying ones with similar timing both in an effort to get more data on roads that might otherwise be little traveled and to reduce traffic jams). It's a good tool, though. I like being able to warn following motorists of things like potholes, police ahead, and cars stopped on the shoulder.

TParadox Since: Jan, 2001 Relationship Status: The captain of her heart
#15874: Dec 21st 2017 at 5:50:17 AM

I haven't had Google Maps or Waze speak to me to tell me they were recalculating. They might show a text status, but they don't tell me verbally.

Fresh-eyed movie blog
Cidolfas Since: Jan, 2001
#15875: Dec 21st 2017 at 6:51:52 AM

Yeah, Waze just plays a little beep when it has to recalculate. It's the same beep it plays when it's found a better route for you while you drive.

My problem is that I *think* Waze saves me time, but I have no real way to know because I didn't actually travel on any of the other possible routes. :) Most of the time its expected time is creepily accurate, but I have been in situations where I've arrived 15-20 minutes later than expected (usual travel time is 50 minutes) on a particularly traffic-crazy day.


Total posts: 25,847
Top