WTF Bites
-
@levicki said in WTF Bites:
It says (.{2}) which accepts ALL characters
As does splitting the string to pairs of characters or the format with bunch of substrings.
-
@levicki said in WTF Bites:
Apparently it is not a correct solution to use custom format providers.
It depends. If you have many places, custom format provider is the right thing (it might still use a regex inside!). If you have just one, it is overkill. And overkill is bad (unless it's 0verkill).
-
@levicki said in WTF Bites:
It says (.{2})
Which is when they could just use the shorter and clearer
(..)
.
-
@levicki It's a background service, and, as I said, for whatever reason the SD card isn't available until a couple of minutes after booting.
Spotify took a minor problem and made it a major problem.
-
@error He understood. He's asking why Spotify is able to start any background service before you (manually) launch the main activity, because one of the first things he does when getting a new phone is find a way to revoke all of the privilege grants for every app regardless of how innocuous. Including the one that lets apps do anything in the background. Because doesn't everyone do that? :
-
@levicki said in WTF Bites:
It says (.{2})
Which is when they could just use the shorter and clearer
(..)
.Which, if you're confident enough that the string you're receiving is of the correct form, results in less work than
([0-9A-Fa-f]{2})
.
-
@levicki said in WTF Bites:
TL;DR -- Microsoft .Net framework devs are a bunch of good-intentioned idiots who create inconsistent APIs which half the time require serious clutches to work and the other half of the time it can't be made to work as intended at all.
I certainly agree with that.
-
Status: Goddamn, and I thought my blueprints were bad...
-
@Tsaukpaetra Without knowing what it does I would say it doesn't look unreasonable? Or is this just a thing to animate a blinking light?
-
@Tsaukpaetra said in WTF Bites:
Status: Goddamn, and I thought my blueprints were bad...
-
@Tsaukpaetra Without knowing what it does I would say it doesn't look unreasonable? Or is this just a thing to animate a blinking light?
It's shrunk down 20x, and it's the "code" that (mostly) handles telling the UI whether or not it should update the score text for each (6 total) player. So, everything is sextuplicated before it gets to some small handling.
-
@error I've got a kind of similar, much more minor problem. Sometimes (maybe always?) when my screen's been off for a while, the phone unmounts my SD card, and remounts next time I use the phone. For the most part it's okay, but if I want to listen to my music, I have to wait for the media library service to rescan the card
-
@levicki said in WTF Bites:
It seems that the only way is to write custom formatter.
You could use .ToUpper()
-
@levicki said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Status: Goddamn, and I thought my blueprints were bad...
When you need such a "blueprint" for the code you wrote that's the moment you should stop writing code, delete everything you ever did and start driving a tractor.
Not my code. Otherwise it would be in the Confessions thread.
-
@levicki said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Not my code. Otherwise it would be in the Confessions thread.
And you would be lying drunk on the floor, half out of your mind?
Well, not drunk. Maybe foaming at the mouth.
-
@levicki said in WTF Bites:
As does splitting the string to pairs of characters or the format with bunch of substrings.
Yes, but if you are already using regex why not use it properly?
You mean like using
[[:xdigit:]]
?Srsly, what would restricting the character class even gain you? If
Replace
's return value is only the modified string and not whether it actually matched, you still have to validate the result, otherwise a malformed string would just be returned as-is or, depending on how your regex works (s/[[:xdigit:]]{2}(?!$)/$&:/g
works in Perl, dunno if C# has$&
but another pair of parens and$1
surely would), partly mangled.
-
It's surprising how many Android apps don't show any kind of useful message when there's no available storage - most just crash.
Error-checking is for old people.
-
dunno if C# has $&
It does. It also has $0.
I don't know what the difference is. I want you to shoow meee...
-
@Zecc That was reply to @LaoC.
Stupid NodeBB changed the target of this post just because I selected text on @hungrier's post. Or something.
-
Stupid NodeBB changed the target of this post just because I selected text on @hungrier's post. Or something.
I bet you just accidentally clicked "reply" on the other post, which has no visual indication except a change in already barely visible "replying to" text.
-
@GΔ ska I've also accidentally quoted @LaoC while doing it.
Edit: I've tried starting a new reply in another tab to see if that was what caused it, but it didn't work.
This post is still a reply to GΔ ska.To be frank it is quite possible I did hit reply to El_Heffe and then quoted LaoC. I honestly don't remember.
-
@GΔ ska I've also accidentally quoted @LaoC while doing it.
Edit: I've tried starting a new reply in another tab to see if that was what caused it, but it didn't work.
This post is still a reply to GΔ ska.To be frank it is quite possible I did hit reply to El_Heffe and then quoted LaoC. I honestly don't remember.
It also happens if you start writing one reply and then hit "reply" on another.
Edit: at least it used to
-
barely visible "replying to" text.
I don't see such text at all. I blame oversight on mobile.
-
My phone, for whatever reason, after a reboot, takes a couple minutes to notice my SD card. Minor annoyance, no big deal, right?
Well, every time this happens, Spotify notices the SD card is gone. It helpfully (and silently, and permanently) switches my default download location to internal storage. Then it notices I don't have a copy of my music and podcast library, so again it helpfully (and silently) starts downloading my >70GiB media library to my 64GiB internal storage. When the very last byte is filled in my internal storage, it considerately doesn't bother me with any kind of notification; it just waits for some more space to become available and immediately fills it!
I, naturally, am blissfully unaware of all this going on in the background, until my other apps stop working. It's surprising how many Android apps don't show any kind of useful message when there's no available storage - most just crash. Eventually, I figure out I'm out of storage space, so I start deleting stuff. Only, mysteriously, the space seems to get filled just as fast as I can free it!
Oh, I just need to go into Spotify and tell it to use my SD card again. That'll free up some space fast. Well, not so fast. Nevermind that the media library is still on the SD card, complete and intact, right where it left it. Spotify goes the extra mile for data integrity, deletes the original library, and copies the files from internal storage to SD card - which takes a while - and doesn't clean up the internal storage until it's done!
Well done, Spotify.
Fucking cascade of bullshit.
Because I had no storage space available, GMail didn't get updated. Because GMail didn't get updated, I failed MDM compliance checking. Because I failed MDM compliance checking, my device is banned from my work network VPN. Because of that, my phone stopped syncing my calendar. Because my phone stopped syncing my calendar...
-
failed MDM compliance
Why I always insist on a separate device. Or virtualize it.
-
Because my phone stopped syncing my calendar...
You're finally free from dumb conference calls and can actually work
-
@TimeBandit said in WTF Bites:
Because my phone stopped syncing my calendar...
You're finally free from dumb conference calls and can actually work
Yes, I can finally deliver these medical devices to the mountaineer, if I can get past these BTs.
-
@TimeBandit said in WTF Bites:
Because my phone stopped syncing my calendar...
You're finally free from dumb conference calls and can actually work
Yes, I can finally deliver these medical devices to the mountaineer, if I can get past these BTs.
Update:
-
Because I failed MDM compliance checking, my device is banned from my work network VPN
There is no way I want my phone going anywhere near the VPN.
-
@boomzilla said in WTF Bites:
Because I failed MDM compliance checking, my device is banned from my work network VPN
There is no way I want my phone going anywhere near the VPN.
It's some kind of Knox sandbox in my phone that's on the VPN, while the rest is not. It's weird.
Now the damn thing is saying my device is rooted or compromised, and I know it's not the former, so I hope it's not the latter.
-
@boomzilla said in WTF Bites:
Because I failed MDM compliance checking, my device is banned from my work network VPN
There is no way I want my phone going anywhere near the VPN.
It's some kind of Knox sandbox in my phone that's on the VPN, while the rest is not. It's weird.
Now the damn thing is saying my device is rooted or compromised, and I know it's not the former, so I hope it's not the latter.
The last thing I need is easier connectivity to work. Maybe not last last, but it's pretty fucking far down on the list. Not far above another hole in my head.
-
@boomzilla said in WTF Bites:
Because I failed MDM compliance checking, my device is banned from my work network VPN
There is no way I want my phone going anywhere near the VPN.
It's some kind of Knox sandbox in my phone that's on the VPN, while the rest is not. It's weird.
Now the damn thing is saying my device is rooted or compromised, and I know it's not the former, so I hope it's not the latter.
The support droids are saying it's a known issue on their end.
-
@Tsaukpaetra said in WTF Bites:
What the fuck is going on with your onscreen keyboard?
-
@Tsaukpaetra said in WTF Bites:
What the fuck is going on with your onscreen keyboard?
Have you never seen it?
-
@Tsaukpaetra Apparently not. I'm not familiar with the qazwsx one-dimensional layout.
-
@Tsaukpaetra Apparently not. I'm not familiar with the qazwsx one-dimensional layout.
Take a qwerty keyboard, smush it down.... what do you get?
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra Apparently not. I'm not familiar with the qazwsx one-dimensional layout.
Take a qwerty keyboard, smush it down.... what do you get?
A broken keyboard.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra Apparently not. I'm not familiar with the qazwsx one-dimensional layout.
Take a qwerty keyboard, smush it down.... what do you get?
A broken keyboard.
You're just doing it wrong then.
-
@Tsaukpaetra I manage to fat-finger the full-sized keyboard. I don't know how anyone could type with the keys all squeezed together.
-
@Tsaukpaetra I manage to fat-finger the full-sized keyboard. I don't know how anyone could type with the keys all squeezed together.
I seem to do just fine.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra I manage to fat-finger the full-sized keyboard. I don't know how anyone could type with the keys all squeezed together.
I seem to do just fine.
Heβs not using his finger
-
Why do we have a Shiva emoji?
-
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra I manage to fat-finger the full-sized keyboard. I don't know how anyone could type with the keys all squeezed together.
I seem to do just fine.
Except for when you get laugh as yep autocorrect errors
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra I manage to fat-finger the full-sized keyboard. I don't know how anyone could type with the keys all squeezed together.
I seem to do just fine.
Except for when you get laugh as yep autocorrect errors
True. But otherwise totally fine!
-
Status: I don't know what the fuck the Unity game did, but now my mouse travels half the distance vertically than it does horizontally (i.e. moving it in a circle produces a wide oval).
Goddammit. I don't want to reboot to fix it (because, natch, launching the game again would of course not fix it) because doing so is just asking for trouble with the fuckin graphics card, but fuck!
-
@Mason_Wheeler said in WTF Bites:
Why do we have a Shiva emoji?
Do βweβ? I don't see it here and it I don't see it in the latest Unicode standard. The only place where I found one is emojidex. And strangely they have Shiva and Vishnu, but no Brahma. Do they want to suggest that everything has already been created?
-
Do they want to suggest that everything has already been created?
That would be epic!
-
@Tsaukpaetra said in WTF Bites:
What the fuck is going on with your onscreen keyboard?
YMBNH
To save more of that precious screen space on his 5 inch 4K phone, he's using a keyboard for ants. Unfortunately, the (virtual) cat sometimes walks over it. Yes, really.
-
@Mason_Wheeler said in WTF Bites:
Why do we have a Shiva emoji?
Do βweβ? I don't see it here and it I don't see it in the latest Unicode standard. The only place where I found one is emojidex. And strangely they have Shiva and Vishnu, but no Brahma. Do they want to suggest that everything has already been created?
Not that Shiva. Have you never played a Final Fantasy game?