News for hackers. Stuff that matters.
Re:My Favourite Git Commit by beefhash on Friday October 18, 2019 @07:53AM (#21290517)
I think my favorite (in terms of humor) is a commit from mpv complaining about locales and encodings. You can practically feel the committer's sheer frustration.

[1] https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...

Re:My Favourite Git Commit by jplayer01 on Friday October 18, 2019 @08:00AM (#21290571)
Final paragraph:

> 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.

Re:My Favourite Git Commit by rpmisms on Friday October 18, 2019 @10:48AM (#21291838)
Pure, rage-filled, git commits are possibly the most honest form of art.
Re:My Favourite Git Commit by kitd on Friday October 18, 2019 @12:11PM (#21292579)
It's where the commit message comes in the process that makes them noteworthy. They're the final chance for a developer to vent their spleen or blow their trumpet before signing off on the results of possibly days of work.
Re:My Favourite Git Commit by jugad on Saturday October 19, 2019 @12:10AM (#21296716)
George Carlin would probably approve and applaud.
Re:My Favourite Git Commit by thameera on Saturday October 19, 2019 @05:57AM (#21297685)
Also from the commit message:

> 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.

Re:My Favourite Git Commit by mikehollinger on Friday October 18, 2019 @08:30AM (#21290788)
My favorite (in terms of dark humor, if we’re honest) is YOLO, one of the more interesting deep learning object detectors. [1] It is the exact opposite of yours in every way. The code is brilliant however.

Even the papers are snarky. [2]

[1] https://github.com/pjreddie/darknet/commits/master

[2] https://arxiv.org/pdf/1804.02767.pdf

Re:My Favourite Git Commit by jplayer01 on Friday October 18, 2019 @08:45AM (#21290893)
> But maybe a better question is: “What are we going to do with these detectors now that we have them?” A lot of the people doing this research are at Google and Facebook.I guess at least we know the technology is in good hands and definitely won’t be used to harvest your personal information and sell it to.... wait, you’re saying that’s exactly what it will be used for?? Oh.

> 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.

Re:My Favourite Git Commit by magashna on Friday October 18, 2019 @09:20AM (#21291107)
That resume is something else.
Re:My Favourite Git Commit by woodrowbarlow on Friday October 18, 2019 @10:55AM (#21291895)
i'm all for adding an artistic flare to set your resume apart from others... but that's a bold move, cotton.
Re:My Favourite Git Commit by ISO-morphism on Friday October 18, 2019 @11:05AM (#21291979)
It's not about trying to catch attention, it's saying "I'm so good that even though this is totally unprofessional you're still going to want me"
Re:My Favourite Git Commit by shrimp_emoji on Friday October 18, 2019 @03:01PM (#21294160)
It's the resume equivalent of Culture ships with silly names/AI personas.

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.

Re:My Favourite Git Commit by magashna on Friday October 18, 2019 @11:10AM (#21292041)
...you're going to want me...kept away from others due to HR cringing at my presence.
Re:My Favourite Git Commit by AceJohnny2 on Friday October 18, 2019 @11:32AM (#21292215)
You're not filtering him out of the hiring pool, he's filtering you. ;)
Re:My Favourite Git Commit by badsectoracula on Saturday October 19, 2019 @11:23AM (#21298941)
Yeah, my own resume isn't (or wasn't, it has been years since i updated it) that flair-y, but it does have a sidebar with screenshots of stuff i worked on (with my face doing a weird look at the top) and is in mostly prose style with bold text for each of the projects i worked on (bold helps to scan for stuff, at least that was the idea). I've been told a few times (by friends) that this isn't how resumes are supposed to look like but my line of thinking is that if you are so stuck up that you want a specific format for a resume, then you're most likely too stuck up for me to want to work with you :-P.
Re:My Favourite Git Commit by AceJohnny2 on Sunday October 20, 2019 @03:36AM (#21302734)
My team is in a full-on hiring spree right now. I've opted out of it because there's no process.

Ultimately, it boils down to people's gut feelings, which is so disgustingly random.

Re:My Favourite Git Commit by passiveincomelg on Friday October 18, 2019 @12:40PM (#21292818)
The real WTF is: Apparently there is a place called "Unalaska" in Alaska!
Re:My Favourite Git Commit by reaperducer on Friday October 18, 2019 @03:20PM (#21294306)
My understanding is that the in the local language "Alaska" means "Peninsula," and "Unalaska" means "Near the peninsula."
[dead]
Re:My Favourite Git Commit by russh on Friday October 18, 2019 @03:57PM (#21294588)
Thats swell, we don't think about you at all.
Re:My Favourite Git Commit by SamBam on Friday October 18, 2019 @10:39AM (#21291744)
I was reading it and kind of interested, and thought this line was funny:

> 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...

Re:My Favourite Git Commit by camochameleon on Friday October 18, 2019 @11:16AM (#21292075)
On the topic of cats vs automation, I'd recommend reading this post [1] describing the arms race created by the writer's cat attempting to break into an automated feeding machine. HN discussion here [2]

[1] http://quinndunki.com/blondihacks/?p=3023 [2] https://news.ycombinator.com/item?id=13230904

Re:My Favourite Git Commit by SamBam on Friday October 18, 2019 @11:55AM (#21292441)
We had an automated feeder with two chambers, each held down by a rotating, ticking timer switch. You rotate the switch to, say, 12 hours in the future, and 12 hours later the slot lines up and the lid pops over.

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.

Re:My Favourite Git Commit by jstarfish on Friday October 18, 2019 @12:55PM (#21292962)
Never underestimate captive animals (or humans). They have nothing but time to observe your patterns of behavior and learn from them...
Re:My Favourite Git Commit by Bartweiss on Friday October 18, 2019 @11:43AM (#21292323)
There are few tech stories I enjoy more than the back-and-forth of breaking and improving a thing. A story where one side of the conflict is a cat means this might be my new favorite!
Re:My Favourite Git Commit by rurp on Friday October 18, 2019 @12:07PM (#21292546)
I've had good luck using low tech puzzle feeders with my cats. Each one is a bowl with a maze inside or a tower with various windows and trap doors they need to work the food out of to be able to eat. As the food levels get lower the pieces get harder to reach, which allows their laziness to take over and stop them from eating too much.

One example: https://sep.yimg.com/ay/entirelypets/kyjen-dog-games-slo-bow...

Re:My Favourite Git Commit by balabaster on Friday October 18, 2019 @11:07AM (#21291996)
I love how he just randomly carries on his own internal dialog in his writing as if he really just doesn't give a fuck who's reading it. Totally brilliant!
Re:My Favourite Git Commit by lobo_tuerto on Friday October 18, 2019 @10:27AM (#21291636)
I really like his licensing model, specially the META license: https://github.com/pjreddie/darknet/blob/master/LICENSE.meta
Re:My Favourite Git Commit by a_e_k on Friday October 18, 2019 @02:58PM (#21294131)
> 4. Things We Tried That Didn’t Work

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.)

Re:My Favourite Git Commit by krick on Friday October 18, 2019 @04:54PM (#21294999)
Yeah, it's fun, but, seriously, git log is messy AF. I wouldn't appreciate it a bit, if somebody would do that to a project I'm involved in.

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.

Re:My Favourite Git Commit by balabaster on Friday October 18, 2019 @11:04AM (#21291972)
Number 2 might be the greatest technical paper I've ever read. Brilliant :D
Re:My Favourite Git Commit by btilly on Friday October 18, 2019 @11:55AM (#21292437)
Oh. Locales. The remembered pain.

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!

Re:My Favourite Git Commit by hermitdev on Friday October 18, 2019 @12:37PM (#21292790)
> Oh. Locales. The remembered pain.

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}")
            raise
Re:My Favourite Git Commit by btilly on Friday October 18, 2019 @01:07PM (#21293101)
I would call that Windows pain at this point, not locales.

In 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...

Re:My Favourite Git Commit by hermitdev on Tuesday October 22, 2019 @01:33AM (#21320630)
Linux is not entirely UTF-8, though plenty of people treate it as if is so. Even if on Linux, you might need to consume files from other OS's or other Linux systems with different locales. Once had issues with systems configured with "C" locale vs "en-US" should have been near identical, but enough slight differences to cause failures. Been +10 years, so I dont remember the details.

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").

Re:My Favourite Git Commit by batat on Saturday October 19, 2019 @04:26AM (#21297465)
SQL Server prior to 2019 stores unicode data in UCS-2 (UTF-16 analog, rougly). SQL Server 2019 supports UTF-8.
Re:My Favourite Git Commit by jburgess777 on Friday October 18, 2019 @02:58PM (#21294127)
Bugs in the C library string localisation have previously caused a problem in PostgreSQL as well:

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...

Re:My Favourite Git Commit by testplzignore on Friday October 18, 2019 @08:48AM (#21290912)
Re:My Favourite Git Commit by zentiggr on Friday October 18, 2019 @11:15AM (#21292072)
I have an Untagle game on my phone... is there an SVG editor that could do something similar?
Re:My Favourite Git Commit by throw0101a on Friday October 18, 2019 @01:44PM (#21293462)
I've found Graphviz / DOT to be surprisingly handy at times:

* https://www.graphviz.org/gallery/

* https://en.wikipedia.org/wiki/DOT_(graph_description_languag...

Re:My Favourite Git Commit by pault on Friday October 18, 2019 @02:09PM (#21293685)
"this is a simplified representation" :D
Re:My Favourite Git Commit by microcolonel on Friday October 18, 2019 @09:06AM (#21291023)
Wonder if there's some more ideal way to lay out those so they are less of a tangled web. This graph makes me want an adjacency list.
Re:My Favourite Git Commit by cryptonector on Friday October 18, 2019 @12:59PM (#21293015)
This needs to be REQUIRED READING at the Open Group and the ISO C standards committees.

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.
Re:My Favourite Git Commit by dmitryminkovsky on Friday October 18, 2019 @10:02AM (#21291412)
> “Those not comfortable with toxic language should pretend this is a religious text.”
Re:My Favourite Git Commit by Daemon404 on Friday October 18, 2019 @09:10AM (#21291053)
Not a commit but from the same author, so you may enjoy: https://github.com/wm4/dingleberry-os/blob/master/README.rst

It does go off on a few tangents, but it's an interesting read.

Re:My Favourite Git Commit by antsar on Friday October 18, 2019 @11:32AM (#21292220)
> Descent 2 custom level reviews

You weren't kidding about the tangents.

Re:My Favourite Git Commit by twic on Friday October 18, 2019 @10:32AM (#21291683)
This message says much more about the author than it does about the commit.
Re:My Favourite Git Commit by johnisgood on Friday October 18, 2019 @05:12PM (#21295133)
Really? I would say 90% of the commit message is technical, rest is just emphasizing his frustration, which is pretty much justified. Yes, he is a person that seemingly gets pissed off by bullshit design decisions and whatnot. So?
Re:My Favourite Git Commit by john-radio on Friday October 18, 2019 @11:47AM (#21292374)
Yeah. People who use the term "retarded" that way are stupid, no matter how smart they are.
Re:My Favourite Git Commit by computerex on Friday October 18, 2019 @12:37PM (#21292785)
I disagree. Words are just words and we give them meaning. Being derogatory and unkind to mentally deficient folks is ethically wrong. Using that word in a different context to communicate frustrating imo is fine.
Re:My Favourite Git Commit by pault on Friday October 18, 2019 @02:11PM (#21293700)
Try telling that to my boss, who has an autistic child. I held your opinion until I stuffed my foot in my mouth in a meeting. Now I don't use that word.
Re:My Favourite Git Commit by carapace on Friday October 18, 2019 @03:18PM (#21294284)
There it is.

"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.
Re:My Favourite Git Commit by hellllllllooo on Friday October 18, 2019 @06:55PM (#21295703)
Wait until a derogatory word being used effects you directly. It's really easy to just not use words flippantly that you know some people have an issue with. You are clearly aware of how it can be offensive and for a lot of people your definition is still just a callback to people being unkind about mental illness. History matters too and if you choose to ignore that and use it anyway you're just being unnecessarily inconsiderate.
Re:My Favourite Git Commit by EugeneOZ on Friday October 18, 2019 @01:23PM (#21293243)
I don't recommend you to join chats in competitive online games.
Re:My Favourite Git Commit by 0az on Saturday October 19, 2019 @03:53AM (#21297387)
That may be so, but its active usage in one social group does not justify the discourtesy of its usage, especially in a professional setting.
Re:My Favourite Git Commit by john-radio on Thursday October 24, 2019 @05:02PM (#21349136)
Yeah, people are idiots. Incremental progress is better than nothing, though.
Re:My Favourite Git Commit by RHSeeger on Friday October 18, 2019 @09:08AM (#21291037)
That is... wonderful. I've spent some time dealing with locales in C and other places that depend on the things being discussed in the commit. Just reading it bring back some of the rage I felt.
Re:My Favourite Git Commit by mark-r on Friday October 18, 2019 @11:16AM (#21292078)
Agreed, that's an over the top commit message.

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

Re:My Favourite Git Commit by oefrha on Friday October 18, 2019 @02:12PM (#21293712)
“mpv”, “sheer frustration”... I didn’t have to click the link to know it was authored by wm4.
Re:My Favourite Git Commit by badsectoracula on Saturday October 19, 2019 @11:24AM (#21298947)
This is why i stick with ASCII :-P.