The Official Status Thread
-
@Tsaukpaetra said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
status woke up at 4:30. Can't sleep. Skin's doing this "let's just start randomly itching in small patches" thing recently. Bah.
Analysis: Stress.
Recommendation: Stop stressing.
-
@error It looks like the top two panels are related--eating ketchup chips (ugh) and then drinking ketchup (double ugh).
-
@Benjamin-Hall said in The Official Status Thread:
@error It looks like the top two panels are related--eating ketchup chips (ugh) and then drinking ketchup (double ugh).
-
@error said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Status: I sure hope this gets compiled out. Why would you do this?!?1?
Probably somebody had a breakpoint on that line.
I could also see it as something like:
result = doStep1(); if( result != STATUS_OK ) return result; result = doStep2(); if( result != STATUS_OK ) return result; // nothing here, but maybe there will be later return STATUS_OK;
-
@error Slightly anonymised recent commit in our code base:
Before:
someFunction(true);
Code after (
m_foo
is the convention for class variables):bool flag = true; if (m_flag) flag = false; someFunction(flag);
Front page material, good habit, or should schedule a visit from Polygeekery?
(at least it's not
if (m_flag == true)
or similar crap)
-
@remi I had a coworker who liked to call
.ToString()
on strings.I asked him why not
.ToString().ToString()
?
-
Status: The least surprising thing I've seen all day:
Shout out to all the people who hate me posting Polish inside jokes!
-
@Tsaukpaetra said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
status woke up at 4:30. Can't sleep. Skin's doing this "let's just start randomly itching in small patches" thing recently. Bah.
Analysis: Stress.
Recommendation: Stop stressing.E_STACK_FAULT
-
Status: Reading a thread where a company's fans justify a company's huge pricejack between two comparable releases by talking about aspects of retail that I personally know to be really off base at best.
On the one hand, I do think much of the pricejack is that shipping from overseas is nuts right now so they're covering their asses in case it doesn't go back to normal by fall 2020. On the other hand, everything they're saying about how retailers never try to charge as high as the market will bear is so willfully ignorant.
-
@HardwareGeek said in The Official Status Thread:
@Tsaukpaetra He's the one with the
headphonesRGBLED gaming headset.And the keyboard with all the red LEDs. My son discovered today that the red LED Caps Lock indicator is very inconspicuous among all the red LED-lit keys when he locked himself out of one of his game accounts by trying to log in repeatedly with Caps Lock on.
-
Status: I am too smart for my own good.
Alternative status: the following, but replace Perl by C++ and regex by templates.
@error_bot xkcd regex problemsI'm starting to think that when my idea implies a partial specialisation of a variadic template... that's too much for me.
-
xkcd said in https://xkcd.com/1171/ :
Perl Problems
(via https://www.explainxkcd.com/wiki/index.php?search=regex+problems&title=Special%3ASearch&fulltext=1)
-
@remi said in The Official Status Thread:
Front page material, good habit, or should schedule a visit from Polygeekery?
If they're changing
someFunction
to be something that takes a reference, necessary. Otherwise, smack upside the head. Unless this is the only placesomeFunction
is called (or it is called with effectively the same parameter in each place) and it is a method of the class, in which case it should just access the class variable itself (inlining it is possible too, but often makes code less clear so that's nuanced) and it is time to find an address for discreet passing on.
-
@HardwareGeek said in The Official Status Thread:
My son discovered today that the red LED Caps Lock indicator is very inconspicuous among all the red LED-lit keys when he locked himself out of one of his game accounts by trying to log in repeatedly with Caps Lock on.
Some password entry fields will show a caps lock indicator (when that's on, of course) precisely because of this sort of blunder. Seems like a good idea to me; one of the better UI/UX tweaks of recent years.
-
@dkf said in The Official Status Thread:
@remi said in The Official Status Thread:
Front page material, good habit, or should schedule a visit from Polygeekery?
If they're changing
someFunction
to be something that takes a reference, necessary.No, the whole of the commit was the bit I posted.
Otherwise, smack upside the head. Unless this is the only place
someFunction
is called (or it is called with effectively the same parameter in each place) and it is a method of the class, in which case it should just access the class variable itself (inlining it is possible too, but often makes code less clear so that's nuanced) and it is time to find an address for discreet passing on.I have no idea if this function is used elsewhere, it's not a module that I actually use/follow/know. But unfortunately, that commit is just a representative sample of many similar things in that module.
They have some weird conventions that lead to the snippet I posted. They probably evolved from vaguely reasonable assumptions made 25 years ago (yes, the code base is about that old...), but that are now blindly used and abused. For example they always declare the variable for the return code at the start of the function, which made sense when they started (in C), but doesn't now. While it might still be a good practice in complex functions with many return paths (although even then, it depends, but at least I can accept that as a valid convention), it's moronic when the function is a one-liner (well it can't be because of that!) or has only one possible return path. In many cases they end up with code similar to the snippet i.e.
bool result = false; /* ... code ... */ result = true; return result;
.
-
@remi said in The Official Status Thread:
They have some weird conventions that lead to the snippet I posted. They probably evolved from vaguely reasonable assumptions made 25 years ago (yes, the code base is about that old...), but that are now blindly used and abused. For example they always declare the variable for the return code at the start of the function, which made sense when they started (in C), but doesn't now. While it might still be a good practice in complex functions with many return paths (although even then, it depends, but at least I can accept that as a valid convention), it's moronic when the function is a one-liner (well it can't be because of that!) or has only one possible return path. In many cases they end up with code similar to the snippet i.e.
bool result = false; /* ... code ... */ result = true; return result;
.Hmm, are they also believers in the cult of “nothing that looks like a
goto
ever!” and as such won't use an earlyreturn
, or abreak
orcontinue
at all?
-
@dkf No, they do use early returns and the rest, thankfully. At least in the bits of code that I've seen.
The amusing thing is that for most developers they seem to be aware it's just the convention for this module, because when they do commits in other modules (that I follow more closely or work on), they don't do this kind of stupid things! So it's not that they've internalised doing it all the time, it's really a conscious choice...
-
Status: I've been rendering all the MIDIs from this collection for a few days now.
I'm intensely interested in what
intheair.mid
will turn out...So far the files from 0 to h (the first symbol in the filename) have totalled some 1,124 hours of audio!
-
@Tsaukpaetra It'll be In The Air Tonight by Phil Collins.
-
@marczellm said in The Official Status Thread:
@Tsaukpaetra It'll be In The Air Tonight by Phil Collins.
Wrong! It's a 185 MB file of a chord of several notes played for three hours.
I can upload if you want, but it's rather boring...
-
@Tsaukpaetra Upload the midi file, please. I'm not going to get 300 meg archive over mobile data (no, it's not unlimited), but I'd like to satisfy certain curiosity that obviously cannot wait till I get home.
-
@Applied-Mediocrity said in The Official Status Thread:
@Tsaukpaetra Upload the midi file, please. I'm not going to get 300 meg archive over mobile data (no, it's not unlimited), but I'd like to satisfy certain curiosity that obviously cannot wait till I get home.
Here you go:
intheair.midI will note that the next file intheair2.mid works fine, and it looks very similar in Notepad.
-
@Tsaukpaetra Eh, DryWetMidi immediately throws
UnexpectedRunningStatusException
.Do you find such arcane problems on your own or do they know where you live?
-
@Applied-Mediocrity said in The Official Status Thread:
@Tsaukpaetra Eh, DryWetMidi immediately throws
UnexpectedRunningStatusException
.Do you find such arcane problems on your own or do they know where you live?
I blame TiMidity for foolishly trying to play a corrupted file.
-
@Tsaukpaetra Also, yes.
-
@Applied-Mediocrity said in The Official Status Thread:
@Tsaukpaetra Also, yes.
This seems to have happened a few times, in fact... Most of them seem to fail to release a note and it just renders that for... a while.
Some are legitimately long though. I'll have to cut them by hand later...
-
@Tsaukpaetra I wonder if that collection has all the awful, unlistenable midis from vgmusic.com
Filed under: mm2wood.mid
-
Status:
CompatTelRunner.exe
is using 70% CPU and messing up my VM. Okay, that's it, you're getting nuked.
It's bad enough that 5%-10% guest CPU usage translates to 70% host CPU usage, I don't need this shit on top of it.
-
Me: "what is the scientific name of cucumber"
Google: "DID YOU MEAN INFORMATION ON COVID-19? CHECK OUT THE LATEST UPDATE FROM THE HEALTH MINISTER OF TURKMENISTAN"
-
@anonymous234 It just so happens, the scientific name for cucumber is SARS-CoV-2
-
@topspin said in The Official Status Thread:
5%-10% guest CPU usage translates to 70% host CPU usage
That doesn't sound right. In fact it's outright weird. No VT-x?
-
@Applied-Mediocrity said in The Official Status Thread:
@topspin said in The Official Status Thread:
5%-10% guest CPU usage translates to 70% host CPU usage
That doesn't sound right. In fact it's outright weird. No VT-x?
- I don’t know, it’s a MacBook Air 2015 if that helps you figure it out.
- I think something was going wrong there. It seems for some weird reason VirtualBox uses a lot more CPU when I move the window to the external monitor, and doesn’t go back to normal when I move back. Or maybe that’s not what happened, but that seemed to coincide with it.
-
@topspin
Right, MacOS... assuming it looks and works roughly the same, take a look at your VM's settings:If it's there and checked, it's some other bug, probably some graphics weirdness of v6.0.
If it's there and not available, there must be some arcane terminal command to enable it. i5-5250U (googled Air 2015 specs) supports it.If none of that sounded like any help whatsoever,Edit: Fake news. It was a different situation that I wrongly recalled. VT-x is required for 64-bit guests. I had to enable it in UEFI settings, because otherwise it wouldn't even start. Apologies for wasting your time, if any.
-
It has Paravirtualization set to "default" and "Hardware virtualization" has nested paging enabled. I don't see this button for VT-x.
I also don't see that enable host IO cache thing @Tsaukpaetra mentioned some time ago (not that I know what it does), only this "activate IO-APIC".I'm probably running a pretty old version, but as long as it's not security related I hate updates because they always break shit. Though in this case, it's not the "breaking shit" that stopped me from upgrading but being told their definition of "personal use" has changed and I don't want Oracle audit on my ass.
-
Status: I know I'm 10 years late to the party, but updating TV feels weird.
-
@topspin said in The Official Status Thread:
I also don't see that enable host IO cache thing @Tsaukpaetra mentioned some time ago
That's under Storage, for every controller separately:
It's also disabled by default.
https://forums.virtualbox.org/viewtopic.php?f=20&t=45245
...it can cause I/O timeouts in the guest if the host faces a high I/O load and the host cache can't cope with it.
...the other reason is that the I/O cache on the host will be trashed with data from the disk image which is unnecessary because the guest uses free RAM for its own cache. Having the host I/O cache enabled can speed up certain I/O operations. Compiling software is one of these operations because it reads a lot of small files.CompatTelRunner
, of course, is collecting all your information and improving your user experience. If you don't feel it being improved, the issue clearly lies with youPerhaps it's trying to update Windows? Backing up system files could cause lots of I/O overhead.
Ok, enough talking out of my ass. For real this time.
I don't want Oracle audit on my ass
That seems wise.
-
@topspin said in The Official Status Thread:
I don't want Oracle audit on my ass.
That's what TP is for, if you can find any.
-
I really don't want to imagine the price and the licensing conditions you'd have to accept to use Oracle® Toilet Paper™.
-
@Zerosquare yeah, they're rather crappy.
-
And you'd have to pay huge fines because someone had the audacity to use two sheets at the same time, while you only have the single-sheet license.
-
@Tsaukpaetra said in The Official Status Thread:
Status: I've been rendering all the MIDIs from this collection for a few days now.
Status: wondering if @Tsaukpaetra recently watched this video:
https://www.youtube.com/watch?v=QYBv6KXSfGI
-
@Zerosquare said in The Official Status Thread:
recently
I watched it when it came out, but that's not what started my rendering.
-
@Zerosquare said in The Official Status Thread:
And you'd have to pay huge fines because someone had the audacity to use two sheets at the same time, while you only have the single-sheet license.
That'd be a per-visitor-in-the-history-of-the-building per-toilet license, even if they never use any of the toilets?
And they'd probably also claim any holes in the paper were just empty paper.
-
Status: My only two posts on imgur are negative.
-
I guess nobody upvotes the upvoters...
-
@Tsaukpaetra Mason has imgur?
-
Status: Apparently, PHP does not handle non-UTF8 files very well. Like, at all.
And the functions to detect and convert shit into UTF8 don't seem to work.
Fuckin' hell....
Edit: Nevermind, according to
mb_list_encodings()
the only supported encoding is UTF8.How the fuck can this even happen?1?!?
-
@Tsaukpaetra If I remember correctly, we use the iconv functions.
-
@PleegWat said in The Official Status Thread:
@Tsaukpaetra If I remember correctly, we use the iconv functions.
That really only helps if you already know the encoding the source file is in.
I guess I'm just going to have to sketch up (or rip from SO, natch) a BOM detector...
-
@Tsaukpaetra said in The Official Status Thread:
@PleegWat said in The Official Status Thread:
@Tsaukpaetra If I remember correctly, we use the iconv functions.
That really only helps if you already know the encoding the source file is in.
I guess I'm just going to have to sketch up (or rip from SO, natch) a BOM detector...
Ah, I didn't read from your post that you only knew the input was unicode.
BOM means the first codepoint is FEFF. That means the first four bytes are
\xFF\xFE\x00\x00
or\x00\x00\xFE\xFF
for the two kinds of UTF-32, otherwise the first two are\xFF\xFE
or\xFE\xFF
for the two kinds of UTF-16. UTF-8 does not allow a byte order mark, though some encoders use it anyway I don't recall the byte sequence. Standard PHPsubstr
&c are byte oriented.If you don't have a BOM, but you expect mostly English text, you can still use heuristics by going through the first N codepoints and look how many of them land in the ASCII plane in each encoding.