Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "trivia"
-
Friends Pandemic December proposal: "We should all get on Zoom every weekend, play Christmas trivia games and do shots"
Family ideal Pandemic December: "Lets send each other Secret Santa presents throughout the whole month, and get on Zoom and unpack them"
Me: Chilled out on a reclining seat next to a freshly slaughtered green fir tree, burning hearth fire, warm wool sweater, faux fur slippers, big mug of liquored up hot chocolate, keyboard on my lap, writing a Rust library on big screen TV.
Sorry friends & family, y'all are doing holidays wrong.
Happy holidays.
-- signed, Grandpa Bittersweet.12 -
On trivia night at a local bar, the emcee had a "sculpt something from Star Wars out of Play Dough" contest. The prize was a plush BB-8 robot.
I made an unidentifiable shape, accompanied with this message.
I won.3 -
I was playing Science trivia with Google assistant. Looks like she didn't want me to get all 5 answers right.
Also, 0.62 != 0.629 -
An excerpt from the best rant about whiteboard interviews posted on the internet. Ever.
"Well, maybe your maximum subsequence problem is a truly shitty interview problem. You are putting your interview candidate in a situation where their employment hinges on a trivia question. — Kadane's algorithm! They know it, or they don't. If they do, then congratulations, you just met an engineer that recently studied Kadane's algorithm.
Which any other reasonably competent programmer could do by reading Wikipedia.
And if they don't, well, that just proves how smart the interviewer is. At which point the interviewer will be sure to tell you how many people couldn't answer his trivially simple interview question.
Find a spanning tree across a graph where the edges have minimal weight. Maybe one programmer in ten thousand — and I’m being generous — has ever implemented this algorithm in production code. There are only a few highly specific vertical fields in the industry that have a use for it. Despite the fact that next to no one uses it, the question must be asked during job interviews, and you must write production-quality code without looking it up, because surely you know Kruskal’s algorithm; it’s trivial.
Question: why are manhole covers round? Answer: they’re not just round, if you live in London; they're triangular and rectangular and a bunch of other shapes. Why is your interview question broken? Why did you just crib an interview question without researching whether its internal assumption was correct? Do you think that “round manhole covers are easier to roll" is a good answer? Have you ever tried to roll an iron coin that weighs up to 300 pounds? Did you survive? Do you think that “manhole covers are circular so that they don’t fall into manholes” is a good answer? Do you know what a curve of constant width is? Do you know what a Reuleaux triangle is? Have you ever even been to London?
If the purpose of interviewing was to play stump the candidate, I’d just ask you questions from my area of specialization. “What are the windowing conditions which, during the lapping operation on a modified discrete cosine transform, guarantee that the resynthesis achieves perfect reconstruction?” The answer of course is the Princen-Bradley condition! Everyone knows that’s when your windowing function satisfies the conditions h(k)2+h(k+N)2=1 (the lapping regions of the window, squared, should sum to one) and h(k)=h(2N−1−k) (the window should be symmetric). That’s fundamental computer science. So obvious, even a child should know the answer to that one. It’s trivial. You embarrass your entire extended family with your galactic stupidity, which is so vast that its value can only be stored in a double, because a float has insufficient range:"
Author: John Byrd
Src: https://quora.com/What-is-the-harde...3 -
Less rant, more mildly interesting Java trivia.
Integer i0 = 3; Integer i1 = 3;
Integer i2 = 300; Integer i3 = 300;
i0 == i1 is true as expected
i2 == i3 is actually false
Java caches -128 to 127 Integer objects for faster perf so when you're inside that range, the objects are indeed the same, but because == checks object equality, the Integer outside of the range is not cached and had to be initialized, so i2 and i3 are two different objects.
You can totally break some tests this way :)9 -
The most awaited "Trivia Bot" is here, asks technical trivia on various topics, uses quizapi.io,
Source Code: https://gist.github.com/theabbie/...
You know it's written in JS, if it fucks up, not my fault.
To use, call, @trivia
Gives a question and atmost 5 options, reply with option ID.
Demo in Comments.302 -
The ascii DEL character 0x7F or b1111111 historically had a special relationship with punch tape programming, if the programmer made a mistake punching out a character then they could simply punch out all the holes and the computer would skip that character, effectively deleting it, and saving the programmer from starting over.8
-
PHP arrays.
The built-in array is also an hashmap. Actually, it's always a hashmap, but you can append to it without specifying indexes and PHP will use consecutive integers. Its performance characteristics? Who knows. Oh, and only strings, ints and null are valid keys.
What's the iteration order for arrays if you use them as hashmaps (string keys)? Well, they have their internal order. So it's actually an ordered hashmap that's being called an array. And you can produce an array which has only integer keys starting with 0, but with non-sequential internal (iteration) order.
This array weirdness has some non-trivial implications. `json_encode` (serializes argument to JSON) assumes an array corresponds to a JSON array if its keys are consecutive integers in increasing order starting with 0, otherwise the array becomes a JSON object. `array_filter` (filters arrays/hashmaps using callback predicate) preserves keys, so it will punch holes in the int key sequence if non-last items are removed, thus turning arrays into hashmaps and changing your JSON structure if you forget to discard keys before serialization.
You may wonder how JSON deserialization works, then? There's a special class for deserialized JSON objects, `stdClass`. It's basically a hashmap too, but it's an object, not an array, and all functions that would normally accept arrays won't work with it. So basically its only use is JSON (de)serialization. You can even cast arrays to objects, producing `stdClass`.
Bonus PHP trivia:
Many functions return nonsensical values. `preg_match`, the regex matching function, returns 1 for success, 0 for no matches and false for malformed regular expression. PHP supports exceptions, so it could just throw one on errors. It would even make more sense to return true, false and null for these three cases. But no, 1, 0 and false. And actual matches are returned by output arg.
`array_walk_recursive`, a function supposed to recursively apply callback to each element of an array. That's what docs say. It actually applies it to leafs only. It will also silently accept object instead of array and "walk" it, but without recursing into deeper objects.
Runtime type enforcing is supported for function arguments and returned values. You can use scalar types, classes, array, null and a few special keywords. There's also a `mixed` keyword, which is used in docs and means "anything". It's syntactically valid, the parser will accept it, but it matches no values in runtime. Calling such function will always cause a runtime error.
Strings can be indexed with negative integers. Arrays can't.
ReflectionClass::newInstanceWithoutConstructor: "Creates a new class instance without invoking the constructor". This one needs no commentary.
`array_map` is pretty self-explanatory if you call it with a callback and an array. Or if you provide more arrays of equal length via varargs, callback will be called with more arguments, one from each array. Makes sense so far. Now, you can also call `array_map` with null instead of callback. In that case it treats provided arrays as rows of a matrix and returns that matrix, transposed.5 -
Ok might as well share my misadventure on a phone screen:
It started pretty normal, the guy talks about his background, the position, and asked me about my background.
Move on to the language trivia; I’m not good at memorizing language features, but I guess it’s what people want, so I’ll be working on that down the road… Anyways it didn’t go well, and the guy somehow made me feel like an idiot even on the questions I got right.
It’s really awkward at this point… but let me tell you I was not prepared for what I can only describe as the fucking coding portion of the phone screen…
No computer. No pencil or paper. No whiteboard. Over the phone I’m saying: “class Dog with a capital ‘D’ colon newline tab def space bark open parentheses close parentheses….”
what the actual fuck4 -
Like someone else already mentioned here, remember that interview goes both ways: youre there to gauge wether workplace suits you or no. Always ask to meet teamleads/project leads or potential colleagues before accepting the job and try talking with them.
I applied to 3 jobs and in all of them managers did put a brave face and told me lots of bs just to get me accept the job. Managers live in their own world, sometimes they dont even know what you will be working on.
Once I accepted a job and got stuck with a perfectionist teamlead for 8 months which could have been avoided given I had the chance to catch the bad vibes during the interview.
Another time I accepted a job and had to work with a backend guy for one year and his accent was so thick+stuttering that I had trouble in understanding anything he says. Every conversation felt like trivia contest. I wish I had knew that stuff before accepting the job -
Craziest prep for an interview?
Way back when I interviewed devs, I prepped a bank of Simpsons and Star Trek trivia questions if the candidate answered one of the softball questions ("What are your hobbies?", etc ) that related to either subject. On rare occasion a candidate claimed to be a big trekkie so I asked..
<Deep Space Nine was in it's 5th season>
Me: "What was the name of Captain Sisko's ship?"
C: "Sisko? Was he from the original series?"
Me: "No, Deep Space Nine"
<awkward silence>
C: "Is that the new series?"
Me: "Not really, but lets do an original series question. What does the middle initial 'T' stand for in James T Kirk?"
<awkward silence>
C: "I have no idea. I don't think it stands for anything."
He didn't make the cut.
My boss at the time said I should not document any of those questions/answers just in case we are sued for discrimination.36 -
I have a discord server where I'm writing the bot. I'm making games, utilities and other activities.
It's a very small server because I have not been actively recruiting players, but if you would like to join, here is the link. I would be happy to make some devRant commands and integrations.
https://discord.gg/sEnwGdjB
Right now, we have Blackjack, connect 4, crossword, and trivia. There's also a "stock market" where you buy shares of other players (rather than stocks).
It's early. There's some stuff to do but I'll admit, not a ton just yet. Maybe a few bugs, testing team is considerably small. But it is good fun and I am actively working on it. Maybe join and play while you're "working" from home :)7 -
Mobilis in mobili.
Yesterday, I was trying to figure out how to open a folder via the linux terminal (like the `open path/to/folder` in MacOS), and I discovered that it can be done via `nemo path/to/folder`. This rang a bell on me because I know that GNOME file manager was named Nautilus.
This got my interest because both names are in Jules Verne's "Twenty Thousand Leagues Under the Sea". Nautilus is the submarine commanded by the great Capt. Nemo, a brilliant individual who plans to explore the depths of the sea with Nautilus.
I learned that the developers of Linux Mint believed the GNOME file manager Nautilus (v3.6) was a catastrophe, and thus, they forked project, giving birth to the awesome Nemo. So instead of exploring the depths of the sea, I guess we could say Nemo is now exploring the depths of our filesystem, right? -
My dream project is to continue and improve my gaming website. It's a blog & community that's supportive of (but not limited to) female gamers. It's a positive place for gamers of any type to go, judgement free.
I have so many big ideas for the site, a forum, possibly user profiles, gaming quizzes and trivia, lots more ways to interact. I would love to do like a "find the right game for you" type of thing and have more time to blog..but I just simply don't have the time right now. :(
Baby steps for now. 🎮4 -
1) Learning little to nothing useful in formal post-secondary and wasting tons of time and money just to have pain and suffering.
"Let's talk about hardware disc sectors divisions in the database course, rather than most of you might find useful for industry."
"Lemme grade based on regurgitating my exact definitions of things, later I'll talk about historical failed network protocols, that have little to no relevance/importance because they fucking lost and we don't use them. Practical networking information? Nah."
"Back in the day we used to put a cup of water on top of our desktops, and if it started to shake a lot that's how you'd know your operating system was working real hard and 'thrashing' "
"Is like differentiation but is like cat looking at crystal ball"
"Not all husbands beat their wives, but statistically...." (this one was confusing and awkward to the point that the memory is mostly dropped)
Streams & lambdas in java, were a few slides in a powerpoint & not really tested. Turns out industry loves 'em.
2) Landed my first student job and get shoved on an old legacy project nobody wants to touch. Am isolated and not being taught or helped much, do poorly. Boss gets pissed at me and is unpleasant to work with and get help from. Gets to the point where I start to wonder if he starts to try and create a show of how much of a nuisance I am. He meddle with some logo I'm fixing, getting fussy about individual pixels and shades, and makes a big deal of knowing how to use GIMP and how he's sitting with me micromanaging. Monthly one on one's were uncomfortable and had him metaphorically jerking off about his lifestory career wise.
But I think I learned in code monkey industry, you gotta be capable of learning and making things happen with effectively no help at all. It's hard as fuck though.
3) Everytime I meet an asshole who knows more and accomplish than I do (that's a lot of people) with higher TC than me (also a lot of people). I despair as I realize I might sound like that without realizing it.
4) Everytime I encounter one of my glaring gaps in my knowledge and I'm ashamed of the fact I have plenty of them. Cargo cult programming.
5) I can't do leetcode hards. Sometimes I suck at white board questions I haven't seen anything like before and anything similar to them before.
6) I also suck at some of the trivia questions in interviews. (Gosh I think I'd look that up in a search engine)
7) Mentorship is nigh non-existent. Gosh I'd love to be taught stuff so I'd know how to make technical design/architecture decisions and knowing tradeoffs between tech stack. So I can go beyond being a codemonkey.
8) Gave up and took an ok job outside of America rather than continuing to grind then try to interview into a high tier American company. Doubtful I'd ever manage to break in now, and TC would be sweet but am unsure if the rest would work out.
9) Assholes and trolls on stackoverflow, it's quite hard to ask questions sometimes it feels and now get closed, marked as dupe, or downvoted without explanation.3 -
PC Trivia-
1. What does a baby computer call his father?
Data
2. What do you call a computer superhero?
A Screen Saver
3. Why did the computer cross the road?
To get a byte to eat
4. Why did the computer get glasses?
To improve its websight
5. Why did the computer sneeze?
It had a virus
6. Where do computers go to dance?
The disk-o
7. Why did the computer squeak?
Because someone stepped on its mouse
8. What happened when the computer geeks met?
It was love at first site
9. What is an alien’s favorite place on a computer?
The space bar
10. What’s the best way to learn about computers?
Bit by bit3 -
Job searches suck. No, I don't have random bits of Java trivia memorized with perfect recall for your shitty little quiz.
-
Update on: https://devrant.com/rants/5877229/...
So. I finally called the number two weeks ago. (Been sick in between. 0/5 would not recommend.) A person with a heavy Indian accent answered. As far as I could tell about what he said, that number couldn't really be used to reserve the certification testing time. Bloody great. So he proceeds to eat half the letters of words and emails to 'someone' about reserving the testing time hand writing all the accommodations I've been granted. Haven't heard back since, don't even know if the email was ever sent.
Screw Pearson VUE and their so called accommodations. >:C
So, next Monday, I booked myself a 3h torture session before I forget every bit of Azure trivia I've memorized the past two months as I start a new client project soon. >.> And after that I'm gonna be spending the rest of the week in fetal position under covers in bed. -
So, what's your IT trivia?
One of my favourites is sosumi.
When Apple Computers started up they were sent a "cease and desist" notice by Apple Music (The Beatles).
They reached a settlement that Apple Computers would never publish music and Apple Music would never sell computers.
So when the Mac came out and played a tune on startup, the filename was sosumi.
Wikipedia now appears to dispute this, saying that sosumi wasn't the startup sound, but some other sound - any Mac experts care to comment?1 -
Anyone used base 12 in a project before?
Read about it on the internet (duo decimal, dodecimal, dozenal, etc) and I wonder if:
* There are useable implementations.
* Actual use cases.
* Have you used it in projects before?
Trivia: before Napoleon raged in Europe, a lot of citizens counted in 12. Think of your clock or legacy money.
I'm especially interested in the use cases. I bet there are implementations, just haven't bothered to Google them yet.3 -
Yeah, so when you create an account just about anywhere nowadays, you need to choose a strong password. Fair enough. But then, some sites/services/systems require a second password, sort of a password hint as an extra security for retrieving your first password in case you forget it. Well OK...That hint question just becomes very *in*secure when you must choose from some extremely stupid presets like "In which town were you born?" or "What was your mother's maiden name?", all of which are trivia that for most people can be easily googled, or looked up on facebook ffs. And these "in which town did this or that happen?" questions? As there is only one town in my country it's not a long shot that I was born in Mariehamn, met my partner in Mariehamn and had my first job in Mariehamn. Security questions for imbecils.4
-
!rant
I used to use quora for most of my programming related trivia and tips but of late I'm glued to devRant.3 -
I had my first trivia yesterday. I made so many dumb mistakes simply because I was nervous due to it being a test.
After it was over I implemented the solution that I fucked up in one of the puzzles.
Good start, I guess. I at least got 50% right, but I expect a rejection due to forgetting random facts, plus the failure to answer the embarrassingly easy puzzle that just required a stack and a reverse loop.
I need to desensitize myself.1 -
!rant
Hi, guys. I'm looking to get into Android development (Xamarin) and to build some simple apps first.
What I have in mind is something trivia-like, with a hosted database (can't find any free & reliable public APIs).
Do you know of any free downloadable databases on the topics of:
- trivia
- humour
- entertainment
http://www.usabledatabases.com/ seemed promising, but it's not free (or I couldn't find any free DBs, as they don't have a price filter).
Thanks in advance!