447 points · by tekacs · 11y ago · 100 comments
"Something is misbehaving, this is annoying!"
vs. "This is literally impossible. How is this happening!?"https://www.youtube.com/watch?v=RkTvDjhImwo https://www.youtube.com/watch?v=lnlRwPgy3NA
It is generally a sign of how good the faculty are at an institution based on how they respond to this sort of exceptionalism.
The first lab featured a typing test app where you had to be able to type 40wpm or they made you drop the class. The app was a DOS app that a) made you type a certain bit of unchanging text every time for the test, and if you finished it type it again until you made a certain number of mistakes.
I wrote a borland basic TSR that pretended to be a keyboard, and typed in the corpus repeatedly.
The instructor apologized repeatedly for making me take the class, and looked utterly terrified of me for the rest of the semester after receiving my 300,000wpm test result.
I wanted to make it a proper GUI-style board with arrow key movement, randomised mines (the assignment tasked us with reading mine locations from stdin at the start), auto-expanding zeros, varying board sizes...so I did.
However, I knew the assignment would be marked on automated test results. I wanted to show off, but still pass the auto-tests. So I made it ask for game "mode" at the start, implementing both the requested behavior and my desired behavior. But if stdin wasn't a tty, it just did the requested behaviour without asking, thus foiling the tests.
That said, I can see an argument that an RPN calculator "trivializes" the assignment compared to an infix calculator, especially if the latter was supposed to do order-of-operations.
But that experience did teach me a valuable lesson -- always follow the specifications as close as possible, don't try to innovate (unless working on your own projects). And, I've learned to spot (and explain) contradictory / intractable specifications up front.
I managed to implement it using only wires, with no extra gates at all. Apparently this surprised the instructors; the best known solution used two extra gates. They gave full marks to me, but also to the many students who used two gates. Given that the exam was designed to not have anyone answer everything correctly in the time allotted and was graded on a curve, I found this distasteful: I had devoted extra time to finding the optimal solution, at the expense of spending more time on other parts of the exam. The instructors were not sympathetic, and I got a B on the exam despite teaching them something new.
Sounds like a good lesson for someone graduating into the workforce ;)
I wrote up a pretty simple implementation and realized I had 50 minutes left to sit around, so I started refactoring it into classes and writing unit tests. I was pretty happy with the result, but I turned in both versions just in case I would get docked for not following the instructions exactly.
Got a B. Other people in the class who did a straight imperative style got As.
This is what computer science instruction is like at a for-profit college.
One thing that still amazes people today is just how tiny a component can be, and yet provide so much functionality. I've been working with electronics for many years and the feeling still doesn't go away. The die of that microcontroller is even smaller than the package, and if he had access to the right equipment he could encapsulate one and make it basically identical to anyone who didn't look inside: http://www.bunniestudios.com/blog/?p=208
On a more serious note, this brings up thoughts of surveillance implants and backdoors: He could've made that "simulated" display driver record data into the EEPROM of the MCU, and play it back at a later time. An external EEPROM, if the internal one isn't big enough, isn't much bigger; you can get a 256KB EEPROM in a 2x1mm package.
http://www.keyghost.com/photos.htm
A well funded TLA could make these really hard to find.
The machines have far outlived their electronics.
The number of things you could bury a little QFN MCU or similar in to play silly buggers with people is huge, especially if you have the luxury of them providing the 'support components'.
https://www.youtube.com/watch?v=PC55DPXSpr4
I've been watching this video about once a month since 2013 and I still have no idea what's going on!
It's a really neat hack, the guy must have amazing skills if he really has that much hardware tucked away inside the guts of an LED, you'd basically have to hollow out the whole thing, then put an SMD LED at the tip of the housing and use the remainder of the space for the circuitry.
Time will tell how much of this was right if and when he reveals how this trick was done.
(Though at the age when you are most likely to be a student at a university it probably would seem better to conform and get a good grade)
I'm familiar with the concept of getting a swirlie (head flushed), but what in the world is getting your balls greased?
They're held down while someone else grabs a wad of black, filthy engine grease. Then they shove said grease up the guys shorts and onto his balls
...It's really hard to get off, man
There are super expensive options like TIL311 and weird unobtanium that no on has ever heard of.
But you can use a PIC in a tight loop checking the 4 inputs, lookup a byte in a 16 byte table, and squirt out 7 bits of LED that display nice A thru F along with the digits.
It'll be enormously slower than TTL so you can't build latches that way but works fine for a nice slow asynchronous UI like a LED decoder / driver.
This has been redone a zillion times online. Its a good "first microcontroller project".
There is at least one ancient 12 or 16 series PIC thats pin compatible with a 7447 with the proper programming although its been 20 years.
I really respect and appreciate that this article addressed pitfalls where mistakes are common and disastrous. The step involving a router to clear a cavity: lots of mistakes were made, because it's hard to do that step. It takes courage to for an instructor to admit mistakes, and the pupil learns all the better from those admissions.
For all of the Instructable, Pinterest, and various other how-to articles on the internet, I believe we could all benefit from instructors being more forthcoming about pitfalls like the author(s) of this article.
That kind of small, non-microprogrammed machine is really common, but people don't build them out of discrete logic any more, or probably even design them by hand. They're written in VHDL or something, and synthesized into silicon or a gate array. They're how a programmable controller is implemented (something has to be under the bottom-most layer of microcode), but they're also used for lots of other little peripheral tasks.
I'd guess the student in the article will be formally taught about them in another quarter or two.
Make the discrete-component circuit to do this inside the logic gate.
(Especially hard as there are components that physically cannot be made small enough (large caps / inductors, etc))
This is the PM whose latest innovation is to setup a ministry for science. Or rather, re setup a ministry for science because he formed the first Australian Federal government in 50 years that had no science ministry.
Turns out, that's a bad idea. headslap