WTF Bites


  • Discourse touched me in a no-no place

    @anonymous234 It's still not as big a crime as writing a single script that combines both Perl and Python into one thing.


  • ♿ (Parody)

    @bb36e said in WTF Bites:

    Why does it say I have 12 notifications? If we count each individual upvote as a separate notification, it only adds up to 9.

    They aren't all necessarily shown at a time. If you clear some of them or go to the "all notifications" page you'll see the others. I assume. Because that happens to me whenever I've been away for a while.


  • BINNED

    @anonymous234 said in WTF Bites:

    @DCoder said in WTF Bites:

    proper Unicode support is hard

    Somehow Python3 seems to (mostly) manage it.

    Besides, "it's hard" has never been an excuse. Of course it's hard, that's why you have a job doing it. You can't just call your client and say "oh yes we replaced all the weird names in your database with Joe Smith because unicode is hard".

    proper Unicode is not hard! All you peasants should learn to speak proper language (of course that would be American English), then use ASCII (not even extended ASCII). 🍥
    You should learn a thing or two from @blakeyrat .



  • @anonymous234 said in WTF Bites:

    @DCoder said in WTF Bites:

    proper Unicode support is hard

    Somehow Python3 seems to (mostly) manage it.

    Well, python went the way of creating separate types for text and byte arrays and then killed the implicit conversions between them in the version 3, which goes a long way towards not losing track of which set of operations should be used when.

    But it is absolutely not necessary. UTF-8 is excellent in that, when it still makes sense for Unicode, the old functions written for ASCII still work on it. The other operations, well, the problem usually is that for Unicode most of them does not make sense. In Unicode: Count number of characters? TDEMSYR. Take first two characters? TDEMSYR. Reverse string? TDEMSYR.... And collate and case folding was already locale-specific before Unicode anyway.

    So you don't actually need much of a "Unicode support" from the language. You just need to know whether you are dealing with unicode or byte arrays (which the language can help with, but if it doesn't, you should still be able to do it yourself) and know which operations can be applied to which (which is almost none on unrestricted Unicode).


  • Discourse touched me in a no-no place

    @Bulb said in WTF Bites:

    the problem usually is that for Unicode most of them does not make sense. In Unicode: Count number of characters? TDEMSYR. Take first two characters? TDEMSYR. Reverse string? TDEMSYR...

    The big one that matters a lot is concatenation. Arguably even that doesn't truly make sense in Unicode, but that's because Unicode is a god-awful mess with its shenanigans in the non-printable space. However, we need concatenation anyway since that's what lets us create new strings to show to users.

    The second most important operation is some form of parsing so that our computers can understand the strings that we have creation. Again, that's arguably nonsensical in Unicode but we'll do that parsing anyway, damnit! The Unicode purists can bugger off somewhere to make ivory towers out of weird characters that nobody cares about, as even ordinary academic computing thinks they're unrealistic.

    Of course, if we pretend that doing our usual operations on real-life Unicode strings works (as long as we're aware that we're working with codepoints) then it usually does… Amazing!


  • ♿ (Parody)

    @dkf said in WTF Bites:

    Arguably even that doesn't truly make sense in Unicode, but that's because Unicode is a god-awful mess with its shenanigans in the non-printable space.
    ...
    Again, that's arguably nonsensical in Unicode but we'll do that parsing anyway, damnit!

    This reminds me of when @blakeyrat rages about weird characters allowed in filenames in typical Linux file systems. Yeah, yeah, that's problematic, but most people will never actually see it. Still, makes you want to pull your hair out if you're the sort who has to or needs to be correct.


  • Discourse touched me in a no-no place

    @boomzilla said in WTF Bites:

    Still, makes you want to pull your hair out if you're the sort who has to or needs to be correct.

    I found that the biggest correction of my attitude in that respect was trying to actually figure out how to make it both correct and performant. After a while, I realised that the number of people who really want correct can be counted on the fingers of one bowling ball, and that making stuff simply fast and not inclined to be outright stupid was genuinely good enough.


  • ♿ (Parody)

    @dkf said in WTF Bites:

    and that making stuff simply fast and not inclined to be outright stupid was genuinely good enough.

    Unless you're writing forum software for TDWTF.



  • @dkf said in WTF Bites:

    The big one that matters a lot is concatenation.

    Well, concatenation on utf-8-encoded-byte-arrays works just as well as any, so no issue there and

    @dkf said in WTF Bites:

    The second most important operation is some form of parsing

    Extracting bits delimited by characters in the ASCII range (which is the most common form) works just fine on utf-8 too, so what remains is making the regex matcher and the string-to-number conversion function understand utf-8. At least to the point it can interpret what is needed in that case; e.g. decimal numbers don't contain marks in any script and taking numbers in decimal format is enough for vast majority of cases.



  • @Bulb said in WTF Bites:

    But the encoding (which was already written) first converts the Unix time to split time and then uses the formula (insane floating point calculation) taken from WikiPedia. Including handling switch-over from Julian calendar, which is totally absurd, since the file may never contain timestamp from before the first version of the product was published.

    This looks "interesting" when using a dark NodeBB theme:
    0_1473940123092_svg_fuckup.png



  • @OffByOne I would have retyped if we had MathJax here. Or $do we$? Seems not.


  • I survived the hour long Uno hand

    @OffByOne said in WTF Bites:

    a dark NodeBB theme:

    Looks fine to me:

    0_1473940278588_upload-37972c6c-7aee-4bd7-a064-91e68512646c


  • ♿ (Parody)

    @Bulb said in WTF Bites:

    I would have retyped if we had MathJax here. Or $do we$? Seems not.

    No. We enabled a plugin for it briefly on Discourse but it was too easy for the denizens to break out of so it was quickly disabled.


  • kills Dumbledore

    @OffByOne said in WTF Bites:

    This looks "interesting" when using a dark NodeBB theme

    There's a lot of black on transparent stuff:

    PJH
    :pendant:
    ◾

    etc.



  • @boomzilla said in WTF Bites:

    too easy ... out of

    WAT?

    Is that a problem of MathJax or of the way the 🎵 👶 plugin is done?


  • ♿ (Parody)

    @Bulb The plugin could be made to do all sorts of Signature Guy level shenanigans. I can't find the thread where it happened.



  • @dkf said in WTF Bites:

    @anonymous234 It's still not as big a crime as writing a single script that combines both Perl and Python into one thing.

    I really should publish my (WIP) Discourse to NNTP gateway. Written in Perl, using @mott555's MottBot (written in Python) as the backend to communicate with Discourse.


  • :belt_onion:

    @Bulb said in WTF Bites:

    the plugin is done?

    We never had a Note Baby MathJax plugin, but the Discourse one was very easy to break



  • 0_1474014792862_upload-c62b2b0d-b2e4-421a-a98c-827f3be42286

    I dragged a directory into a playlist in VLC.

    0_1474014782746_upload-615d4acc-c42b-4bf5-b9c4-e1ac32d57bd4

    It added all files, including .lrc-s. No filtering whatsoever.

    So now every time autoplay reaches a .lrc file, it gets stuck until I manually skip it over.

    Can I tell it to clean up the list based on extension / type? No.
    Can I sort by extension and then delete all lrc-s? No.

    Oh, I know! I'll enable the file sizes column, then sort by the size, then delete all the small files!
    Sort by size doesn't work.

    ...

    VLC IS FUCKING HORRIBLE!

    Why the fuck does this piece of garbage has the good reputation it does?

    If I was on Windows, I wouldn't give it a second look. The best media players on Mac and Linux wouldn't even peak into the top 5 on Windows. But I guess I'm stuck using this (and Clementine), because there are NO good alternatives.

    Did you notice this situation is slightly pissing me off? Yes it does.



  • @cartman82

    0_1474015445968_upload-bda58855-fb48-4b4d-9f24-3a9ad774b98f

    Of course it did.


  • kills Dumbledore

    @cartman82 said in WTF Bites:

    Why the fuck does this piece of garbage has the good reputation it does?

    Purely for the variety of formats it can play. It has no other redeeming features

    @cartman82 said in WTF Bites:

    @cartman82

    0_1474015445968_upload-bda58855-fb48-4b4d-9f24-3a9ad774b98f

    Of course it did.

    Is it still unexpected when it happens all the time? When I was using OSX, there was one app (possibly iTunes) that would "quit unexpectedly" every time I told it to quit


  • BINNED

    @cartman82 said in WTF Bites:

    But I guess I'm stuck using this (and Clementine), because there are NO good alternatives.

    One of the MPlayer family players? I personally like SMPlayer on Linux, but I also used UMPlayer for a while.



  • @boomzilla said in WTF Bites:

    @dkf said in WTF Bites:

    and that making stuff simply fast and not inclined to be outright stupid was genuinely good enough.

    Unless you're writing forum software for TDWTF.

    In which case,

    making stuff simply not fast and not inclined to be outright stupid was genuinelyseems to be good enough.

    🚎


  • ♿ (Parody)

    @cartman82 said in WTF Bites:

    VLC IS FUCKING HORRIBLE!
    Why the fuck does this piece of garbage has the good reputation it does?

    I've never really used it for audio. I just use it to play the occasional video, for which it works well.



  • Looking for a house or apartment to rent. Found a nice house at a reasonable price. Rental application asks some pretty intrusive financial questions, which is not unexpected; of course the potential landlord wants to make sure I can actually pay the rent. Including my actual bank account number. :wtf:?

    The real kicker, though, is the fine print at the bottom:

    Read before signing above. Applicant agrees to: (1) release and indemnify WTF Credit Bureau, Inc, its officers, employees, vendors and members, from all liability arising from WTF's access to or disclosure of information as presented in the application, ... (4) Additionally, applicant agrees to release and indemnify WTF of any violations of the FCRA or other applicable laws due to the acts or omissions of WTF or its members or vendors.

    So let me get this straight. I give you enough personal and financial information to steal my identity and empty my bank account. Agreeing not to blame WTF Credit Bureau if somebody else (e.g., the landlord) abuses the information is not entirely unreasonable, but saying that I can't take action against them if they, themselves, do something illegal — but wait, there's more; I have to indemnify them (compensate them for their expenses) if someone else (e.g., the Attorney General) were to file charges because of their illegal use of my information — that's ridiculous. :wtf::wtf::wtf::wtf::wtf: At least that's what it seems to be saying. Is a clause like that even enforceable in court? I know a contract in which one party agrees to do something illegal is not enforceable, but is one in which a party agrees not to do something legal in response to the other party's illegal act? (I know, I know. Not legal advice. Nobody here is a lawyer. AFAIK, nobody even plays one on TV.)


  • kills Dumbledore

    @HardwareGeek said in WTF Bites:

    Is a clause like that even enforceable in court?

    I kind of doubt it, but I have no actual knowledge.

    Generally, "you agree to let us break the law" sounds like the kind of thing that shouldn't be enforcable



  • @boomzilla said in WTF Bites:

    I just use it to play the occasional video, for which it works well.

    The main reason I like it is its ability to play a video along with a subtitle text file, possibly obtained from a third party (e.g., opensubtitles.org), not embedded in the video, with various adjustments to synchronize them. There may be other players that do that, too, but VLC was the first I found, and it works (and it's free, which is by far the most important criterion), so I haven't bothered looking for something else.


  • ♿ (Parody)

    @HardwareGeek And I'll bet neither of us is trying to use it on a hackintosh like @cartman82 is.



  • @boomzilla said in WTF Bites:

    And I'll bet neither of us is trying to use it on a hackintosh like @cartman82 is.

    No, definitely not. Ick.


  • kills Dumbledore

    @HardwareGeek said in WTF Bites:

    The main reason I like it is its ability to play a video along with a subtitle text file

    Sounds like something SSDS could do. Even in fast forward



  • @Jaloopa said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    The main reason I like it is its ability to play a video along with a subtitle text file

    Sounds like something SSDS could do. Even in fast forward

    Perhaps. But even if it does, the answer to "Can your media player do this?" is "Yes. Yes, it can." SSDS offers no advantage over other, sane programs. (Features, perhaps, but why would anybody actually want random-random?)



  • @HardwareGeek said in WTF Bites:

    Nobody here is a lawyer. AFAIK, nobody even plays one on TV.

    I'm pretty sure @apapadimoulis does.


  • Discourse touched me in a no-no place

    @Jaloopa said in WTF Bites:

    Generally, "you agree to let us break the law" sounds like the kind of thing that shouldn't be enforcable

    Generally, “you agree to let us break the law” gets struck from the contract as soon as it goes past a real judge. A contract cannot include an agreement to break the law, ever; contracts are defined to be always subject to the law.



  • @ben_lubar Yes, but he isn't really an active participant here. He pops in every once in a while, but usually only for stuff related to the forum, itself, not for general discussion. (Also, to the best of my personal knowledge, he claims to be one on the internet. I've never bothered checking whether he is who he claims to be (I have no particular reason to think he isn't, but I've never checked), so relying on legal advice from some random guy on the internet would be a :wtf:, too.)



  • @HardwareGeek said in WTF Bites:

    he claims to be one on the internet

    Some people use TVs as monitors, so that's basically what I said.



  • @Cursorkeys I think I once saw someone convert an episode of haruhi to a spreadsheet.



  • We have full day training (MS Dynamics) next week.

    I have to move bug fixes to LIVE today.

    Bug 1 has been in production since 7/1 and only reported this week.
    Bug 2 has been in productions for 3 1/2 years and only reported in the last 6 weeks.



  • @HardwareGeek said in WTF Bites:

    The main reason I like it is its ability to play a video along with a subtitle text file, possibly obtained from a third party (e.g., opensubtitles.org), not embedded in the video, with various adjustments to synchronize them. There may be other players that do that, too, but VLC was the first I found, and it works (and it's free, which is by far the most important criterion), so I haven't bothered looking for something else.

    Ummm... I'm pretty sure EVERY FUCKING VIDEO PLAYER under the sun can do that.

    "The main reason I like corn is that I can swallow it and it will make me not starve. There may be other items that would do this, but this one was the first I found (and it's cheap, which is by far the most important criterion), so I haven't bothered looking for something else."



  • @cartman82 said in WTF Bites:

    I'm pretty sure EVERY FUCKING VIDEO PLAYER under the sun can do that.

    Apparently, from what I can find on answers.microsoft.com, Win10 Movies&TV app doesn't. WMP does, but only if the .srt file name exactly matches the .mp4 (or whatever) file name. VLC allows playing any .srt file with any movie, so I can have multiple versions, say, in different languages or editing one to fix timing that is a bit off, or whatever. (I could even watch a movie with subtitles for an entirely different movie, if for some silly reason I wanted to do that.) I suppose there are probably other players that do that, too, but why would I bother looking, when the most popular non-built-in one does what I need?


  • Notification Spam Recipient

    @cartman82 said in WTF Bites:

    I dragged a directory into a playlist in VLC.

    What did you expect a player that "plays everything" to do? :doing_it_wrong:

    Be happy it didn't add desktop.ini and thumbs.db!


  • Notification Spam Recipient

    @HardwareGeek said in WTF Bites:

    (I could even watch a movie with subtitles for an entirely different movie, if for some silly reason I wanted to do that.) I

    That could be hilarious!



  • @HardwareGeek I gave up on VLC years ago because of how terrible their video rendering is. Common alternatives include Mediaplayer Classic Homecinema, Pot Player, The KMPlayer.



  • Just use Kodi.


  • Dupa

    Why I hate that software people seem to hate dates:

    0_1474093661323_image.jpeg

    What does it mean? Did the submitter have a really shitty year so that he smiled for the first time in September? Or was it maybe January 1st? Who knows?


  • area_can

    @cartman82 I also like how vlc can play online streams. Again, it's probably not the best but it's ok and doesn't have too much bullshit.

    Everyone online keeps recommending foobar2000, but I don't get the hype. Is it basically like MPD but with a GUI for windows? :/



  • @cartman82 said in WTF Bites:

    VLC IS FUCKING HORRIBLE!
    Why the fuck does this piece of garbage has the good reputation it does?

    You click twice and it plays stuff, no hassle, no adware, no need to build a "library", no problem. Which is how most people watch videos, and which is why it's primarily praised as a video player and not an audio player.

    I agree the playlist feature is crap, but I think I have maybe used it once.



  • @bb36e said in WTF Bites:

    Everyone online keeps recommending foobar2000, but I don't get the hype. Is it basically like MPD but with a GUI for windows?

    The GUI is pretty nice though. Takes a while to set up (ColumnsUI is a must, but it has a rather unintuitive layouting interface), but once it's up and running, pretty much all your tasks are one click away.

    It Just Works (tm) - again, no fireworks, but listening to an album is as easy as dragging it from one pane to another.


  • I survived the hour long Uno hand

    Ended up on a StackExchange site looking for advice on Kodi. Every second or so like clockwork another one of these appears:

    0_1474120055730_upload-5d396508-fe13-4280-80f4-5b28fdb70906



  • Talking about Kodi, here's my keymap file. The default is to bring up the OSD every time the mouse moves a millimetre, which is annoying as hell.

    This one makes it so that right-click hides/shows the OSD, middle-click toggles fullscreen (or press ), double-click pauses/resumes, and the mouse wheel does volume.

    <keymap>
    <global>
    	<mouse>
    		<middleclick>togglefullscreen</middleclick>
    	</mouse>
    </global>
    
    <fullscreenvideo>
    	<mouse>
    		<leftclick>noop</leftclick>
                        <mousemove>noop</mousemove>
                        <rightclick>OSD</rightclick>
                        <doubleclick>PlayPause</doubleclick>
                        <wheelup>VolumeUp</wheelup>
                        <wheeldown>VolumeDown</wheeldown>
    	</mouse>
    </fullscreenvideo>
    
    <videoosd>
    	<mouse>
    		<doubleclick>PlayPause</doubleclick>
    	</mouse>
    </videoosd>
    </keymap>

  • I survived the hour long Uno hand

    I'm on a roll today:

    0_1474145552926_upload-1cc3dd64-a8f3-4154-8864-89cc8d7c8098

    ...what video?


Log in to reply