[1] https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...
[1] https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...
> All in all, I believe this proves that software developers as a whole and as a culture produce worse results than drug addicted butt fucked monkeys randomly hacking on typewriters while inhaling the fumes of a radioactive dumpster fire fueled by chinese platsic toys for children and Elton John/Justin Bieber crossover CDs for all eternity.
I also nominate this commit.
> like Shift JIS (sometimes called SHIT JIZZ)
Back then when I was working for a Japanese outsourced project, the code won't compile unless the computer's locale was set to Japanese because the C code had comments in Shift JIS.
Even the papers are snarky. [2]
> Well the other people heavily funding vision research are the military and they’ve never done anything horrible like killing lots of people with new technology oh wait.....
> The author is funded by the Office of Naval Research and Google.
He's being funded for this. This is fantastic.
https://pjreddie.com/darknet/yolo/
https://pjreddie.com/static/Redmon%20Resume.pdf
This is the kind of guy I'd love to hang out with.
At a certain level, it's boring to just be good. The interesting challenge becomes to stay good while being silly as fuck.
And that's why I'm serious and professional.
Ultimately, it boils down to people's gut feelings, which is so disgustingly random.
> I have a lot of hope that most of the people using computer vision are just doing happy, good stuff with it, like [...] tracking their cat as it wanders around their house
And then suddenly realized I've wanted to do exactly that for a long time. Well... specifically install a camera that can detect my cat on the counter (and not my hands doing stuff) and sound an alarm/puff air to get him off.
Could this work for that? I think it could! I know my winter project...
[1] http://quinndunki.com/blondihacks/?p=3023 [2] https://news.ycombinator.com/item?id=13230904
After many months, my cat learned to stand on top of the lid and use both paws to rotate the switch forward until the lid popped open.
This blew my mind. The switch was separated from the lid. I could imagine the cat attacking the lid itself, but this separate mechanism, requiring a motion completely distinct from the motion of an opening lid, and requiring patience without instantaneous reward or even evidence that it was going to work.... I just couldn't believe it.
One example: https://sep.yimg.com/ay/entirelypets/kyjen-dog-games-slo-bow...
I love seeing a section like this when reviewing a paper. I really wish more authors would include one. (Goodness knows I've chased down enough dead-ends in some of my own research efforts.)
What's funny, though, the paper (written in a pretty much the same "fuck you" manner) is much more readable and informative than the average. Which says a lot about science papers out there.
Save a file in Notepad. Open in vi. See that it is different. Find data in the database, no clue the weird characters were originally supposed to be. And so on and so forth.
I once wrote a reasonable program and sent it as a bug report to the maintainer of the Perl module DBD::File. He sent it as a bug report to BerkeleyDB. They said they never thought about it but yes, that would be silent data corruption with no way to recover. The program? Maintain an address book in a BTree sorted in the current locale. Enter names. Change locale and insert something else. Voila! Lost data with no way to recover!
More like the ongoing pain.
I had to write the following just this year because SQL Server still defaults to using CP 1252 for text. The culprit? One of those damned stylized quotes that Office loves to insert for you. The code:
def _wrap_str(value: str):
try:
return SqlVarChar(
value.encode("cp1252")
)
except UnicodeEncodeError:
logging.getLogger("bulk copy").exception(f"value causing error: {value}")
raiseIn the Linux/Postgres world, everything is UTF-8. Which is the default for all internet protocols. Do that and the pain is gone.
Of course Windows doesn't do that...
Windows, the OS, is UTF-16 (or UCS-2 - I forget the details between the two), SQL Server has, for historical reasons, defaulted to CP1252, probably for compatibility with Office components.
But, it's not really a Windows problem, per se, because you have to deal with this issue if you deal with data originated from numerous Windows apps, even if on Linux. Yeah, you can insert a byte order mark (BOM) to indicate UTF-8, but most tools expecting UTF-8 actually dont check for the BOM and blow up in interesting ways if present. Ive seen this far too many times. Enough that anytime I see an encoding error from the likes of Python or Ruby, its an instant recognition (I do a lot ETL work from a number of vendors, so I see a lot of different files "types").
https://wiki.postgresql.org/wiki/Abbreviated_keys_glibc_issu...
Since Postgres 10 they use ICU instead of relying on the C library string routines to give more control.
https://www.2ndquadrant.com/en/blog/icu-support-postgresql-1...
* https://www.graphviz.org/gallery/
* https://en.wikipedia.org/wiki/DOT_(graph_description_languag...
I'll quibble just a bit and say that:
a) the C locale should be a UTF-8 locale...
that tolerates invalid sequences (because
the C locale historically is a just-use-8
locale),
b) even with new functions that take a locale
handle, we need functions that use a global
one, however that global one should be set
once and NEVER changed in the life of the
process, and it should be set either before
main() starts, or before main() does anything
that needs a locale, or starts any threads.It does go off on a few tangents, but it's an interesting read.
You weren't kidding about the tangents.
"When you omit courtesy you're throwing sand in the gears of a machine that doesn't work too well in the first place."
~Heinlein (I'm paraphrasing.)
There's no glory in being a boor, and no shame in being courteous.
None of this is news: https://en.wikipedia.org/wiki/Etiquette#History
A fool never learns,
A man learns from his mistakes,
A wise man learns from the mistakes of others.I do disagree with the assertion that it takes a lot of code to convert between the various UTF variants, 3 pages is an overestimate. https://stackoverflow.com/a/148766/5987