WTF Bites
-
@hardwaregeek my_gmo_health_escape_real
They were designed intelligently to prevent all health effects, but some dipshit had magic quotes enabled, a few key pairs were backslash escaped, and now they give you cancer.
-
[09:57:15] <Onyx47_> and now Hangouts is in Croatian... [09:57:52] <Onyx47_> Google is in English, it's set to English in setttings, GMail is in English, YouTube is in English, but Hangouts, nope, it gives not a single fuck, Croatian [09:58:00] <Onyx47_> dan't find a fucking thing in the settings now [09:58:09] <Onyx47_> s/dan't/can't
Fuck you, Google
-
[09:57:15] <Onyx47_> and now Hangouts is in Croatian... [09:57:52] <Onyx47_> Google is in English, it's set to English in setttings, GMail is in English, YouTube is in English, but Hangouts, nope, it gives not a single fuck, Croatian [09:58:00] <Onyx47_> dan't find a fucking thing in the settings now [09:58:09] <Onyx47_> s/dan't/can't
Fuck you, Google
Reminds me of languages options in videogames. In the happy days of early Nintendo GameCube games (like Super Smash Bros. Melee or The Legend Of Zelda: The Wind Waker), the games had a setting for language, that defaulted to the one set in the console. By the time Soulcalibur II came around, the setting had disappeared from the game and the language was always the one from the console settings.
I've seen the same thing on Steam, only even dumber: Half-Life 2 (and other Valve games, now that I think of it) has a setting to choose the audio language, but the subtitles language is hardwired to Steam's language setting.
-
no one bat an eye
You can't tell me what to do!
@ben_lubar: is the height attribute of images whitelisted in the preview but not on baked
potatoesposts?
-
Printer WTF, continued:
I got an update on the status on the big printer/copier here. The company we lease it from which was so tight on "security" that we couldn't get the admin pass apparently did give it to us so we could finish configuring it, as they never sent the techie that was supposed to do that. And while the admin pass protects some settings, it doesn't protect all settings so any prankster can do things like change the language on it, which the administrator was swearing about as I walked past her today.
Didn't ask about the status on us being allowed to have our own printers in our own office nowadays, as we were apparently disallowed that when we got this printer. As doing a quick single-page printing job must go through the central printer too apparently! At least that gives some exercise when you have to walk upstairs to get your printing job...
-
What the fuck is this?
It's still there. It goes away if I +D and comes back if I +D again or select a window, so it's definitely a window.
-
This post is deleted!
-
@pie_flavor That's AutoHotKey, as you can tell by the
ahk_class
andahk_exe
. It has to have a top-level window so that it can run a message pump so that it can steal messages from other applications. Normally that window is hidden, but some other program probably found it and thought it was something else and accidentally made it visible.
-
@ben_lubar: is the height attribute of images whitelisted in the preview but not on baked
potatoesposts?The
height
attribute gets overridden by aheight: auto
CSS style, located in two places:
-
@gąska This discussion of C++ redists is boring.
That is my WTF Bite. It's boring as shit and yet people are going on and on about it. WTF. Bite.
-
@blakeyrat are you a third wave feminist? Because you're complaining about something that has ended long ago.
-
-
@tsaukpaetra Sometimes people have to really stretch to call me an idiot when I've said something perfectly reasonable.
-
@blakeyrat it's not like you ever keep yourself from calling others names.
-
@blakeyrat it's not like you ever keep yourself from calling others names.
No, he just claims others are calling him names. Totally different.
-
@twelvebaud You are apparently unaware of the standard format.
ahk_class
andahk_exe
are supposed to be followed by something, like this:
https://i.imgur.com/up80Uc0.png
Those bits only appeared when I clicked the desktop; as you can see from the video, nothing happened when I clicked the white rectangle, and the WindowSpy window's title bar didn't even gray out, meaning it was impossible to select it.
So no, that's not remotely correct.It's still there.
It's watching me.
-
@scarlet_manuka said in WTF Bites:
Fix problems that occur overnight by remoting into my work machine: fine.
Admin-controlled overnight updates with forced reboots: annoying, but understandable.
SOE has BitLocker enabled for security reasons: reasonable.
Combination of the above: bad.
Likelihood of changing any of the above behaviours: negligible.Yup. But my BitLocker is controlled via USB key. Solution - leave USB inserted. What!!! The machine is locked!
Our machines have USB keys blocked by policy. I have to physically type the BitLocker password in on the keyboard, which is so far proving difficult to do remotely.
-
Microsoft: When I say "Update and shut down", I mean do all the update work and then shut down. If you have to reboot during the process, that's fine, the goal is to do all the updating work and then turn off the computer.
It does NOT mean "spend one minute doing update work and shut down the computer, then when it gets turned on again in the morning spend an hour doing updates before anyone can use the machine."
("an hour" is a minimum here; it was still going when I left for work)
-
@scarlet_manuka The update system can't do it all in one go unfortunately, sometimes it even requires two or more restarts (looking at you, Windows 7). I have no idea what kind of mess they got themselves in that some stuff can only be done on next boot and not while shutting down, multiple restarts is even messier.
-
@scarlet_manuka protip: instead of "update and shut down", add shutdown command to RunOnce registry key and hit "update and restart".
-
@pie_flavor Why
if (i > 36 && i < 38)
instead of simplyif (i == 37)
?
Actually, why the loop at all? Wouldn't this do the same thing?if(mnode.instructions.size() >= 37) { ((LdcInsnNode) mnode.instructions.get(36)).cst = (double)4; }
Edit: updated indices to better match original code and fixed issues noted a few posts below.
-
@pie_flavor said in WTF Bites:
@twelvebaud You are apparently unaware of the standard format.
ahk_class
andahk_exe
are supposed to be followed by something, like this:
https://i.imgur.com/up80Uc0.png
Those bits only appeared when I clicked the desktop; as you can see from the video, nothing happened when I clicked the white rectangle, and the WindowSpy window's title bar didn't even gray out, meaning it was impossible to select it.
So no, that's not remotely correct.It's still there.
It's watching me.If you open Windows Task Manager (Ctrl+Shift+Esc), can you find the process that owns it?
Or can you use Windows Process Explorer to find it?
-
@djls45 If you replace the array access with a
get()
call andelements()
withsize()
, yes. Except no because the if statement checks to make sure the method hasn't been modified in some way, which the original code doesn't.
Other things that could be done are- an
instanceof
check on theAbstractInsnNode
before casting - using a foreach loop rather than a while loop with iterators
- naming your variables something other than
test
andtest2
- writing
4.0d
instead of(double)4
- correctly indenting your code
- consistently linebreaking your braces
- using the Mixin library instead of mucking about with bytecodes
- an
-
@pie_flavor Ah. I had "size" at first, but then I googled "ListIterator", and the reference I found seemed to indicate that the related List collection type used "elements" instead. And the code looks to me like C#, which I thought accepted square-bracket index notation for lists. Looking at your post you were replying to, I guess it's Java?
Also, how does my
if
statement check for modifications? All it does is make sure that the list index operation won't end up with a NullPointerException. The original just looped through all the items in the list and operated on the 37th item if it existed. It didn't do any modification check either. Those are essentially the same thing. Unless there's some weird side effects going on by hitting every element in the list...?
-
I guess it's Java?
That it is (the general syntax, lower-case field and method names, and
@override
attribute give the game away). It's terribly-written Java…
-
@scarlet_manuka The update system can't do it all in one go unfortunately, sometimes it even requires two or more restarts (looking at you, Windows 7).
Yeah, that's why I explicitly said "If you have to reboot during the process, that's fine". Reboot as often as necessary, do your stuff, then shut down, rather than leaving all the work to next startup. That's all I'm asking. (And the work in this case was pre-login, so authentication shouldn't be an issue - not that that computer has a password anyway. But in general, I'd be happy with "do all the work that can be done before user login, get to the login screen, then shut down". That's the way it should work.)
-
@scarlet_manuka said in WTF Bites:
which is so far proving difficult to do remotely.
Let me introduce you to this wonderful thing I call "Rubber Ducky"
-
Another one for today: had to restart my machine because drag and drop stopped working in one of my main applications, and that's the only convenient way to migrate stuff between environments. (There's also "export to XML, import into other environment" if you like pain.) Restarting the application didn't fix the problem, I had to restart the whole machine. How does that even happen? (It was the "drag" part that broke. Try to drag and you get a flicker of the drag animation, then nothing.)
-
@scarlet_manuka said in WTF Bites:
Try to drag and you get a flicker of the drag animation, then nothing.
Something intercepting the clipboard maybe?
-
@djls45 I was referencing the fact that the original code made the blind assumption that the 37th bytecode was
ldc
, and your code introduced any sort of checking on this at all.
-
-
@ben_lubar It could be a single-precision
float
. But that would implicitly cast todouble
just fine.
Actually,4
should implicitly cast todouble
just fine, too.
-
@ben_lubar It could be a single-precision
float
.If we're talking Java,
4.0
is a double in most cases. I'm not sure whetherfloat f = 4.0;
would be an error or an exception to the rule set by the previous sentence.
-
@pie_flavor said in WTF Bites:
@djls45 I was referencing the fact that the original code made the blind assumption that the 37th bytecode was
ldc
, and your code introduced any sort of checking on this at all.What checking?
The original loop skips all but the 37th element, and since it's in a loop, it would stop if there are fewer than 37 elements. My code just ensures that there are at least 37 elements before it attempts to grab the 37th. I don't see how those are effectively different without unlisted code shenanigans.Also, they both cast to
LdcInsnNode
without a type check first, so that part's functionally equivalent.
-
@tsaukpaetra said in WTF Bites:
@scarlet_manuka said in WTF Bites:
which is so far proving difficult to do remotely.
Let me introduce you to this wonderful thing I call "Rubber Ducky"
Sharing my BitLocker password with Rubber Ducky is probably against corporate policy...
-
@ben_lubar said in WTF Bites:
If we're talking Java,
4.0
is a double in most cases.A floating-point literal is of type
float
if it ends with the letterF
orf
; otherwise its type isdouble
and it can optionally end with the letterD
ord
.I guess there must be a special case in the semantics for using a
double
literal in a context that expects afloat
.
-
@scarlet_manuka said in WTF Bites:
@tsaukpaetra said in WTF Bites:
@scarlet_manuka said in WTF Bites:
which is so far proving difficult to do remotely.
Let me introduce you to this wonderful thing I call "Rubber Ducky"
Sharing my BitLocker password with Rubber Ducky is probably against corporate policy...
It's not a flash drive, technically, so.... ;)
-
@djls45 The variable type is Object. Thus, an appropriate type is needed. Which 4d would do just fine.
-
@tsaukpaetra I think I was perhaps unclear before - flash drives being blocked by policy isn't corporate policy, it's group policy (I presume) - in that if you connect one it simply is not read by Windows. You can hook up all your devices, but all that happens is that you charge them. I wanted to put some new music files on my work machine; it looks like I'll have to put them on OneDrive from home and download them from there, rather than just transferring them across from my music player like I used to. (Copy and paste files over RDP doesn't seem to be working any more.)
The other thing was just because I assume it is against corporate policy to share my BitLocker password with anyone, and I doubt they'd make an exception for Rubber Ducky.
-
@scarlet_manuka said in WTF Bites:
flash drives
Unless your group policy disables standard HID keyboards, it will work just fine.
Basically, my script just waits 40 seconds, enters the password, and presses Enter.
For most people, if plugging in a flash drive didn't pop up after a few seconds then they assume it's just busted and try another, or (in your case) that of course it was blocked. Nobody's the wiser so far. :D
-
@scarlet_manuka Does that protect against PoisonTap and similar?
-
-
@pie_flavor said in WTF Bites:
@scarlet_manuka Does that protect against PoisonTap and similar?
I am not inclined to experiment.
-
@scarlet_manuka Lame. Call it 'complimentary QA analysis'.
-
@djls45 Would that I could, but I've already rebooted for purposes of update. It's gone now.
-
@scarlet_manuka protip: instead of "update and shut down", add shutdown command to RunOnce registry key and hit "update and restart".
A truly workaround for a process…
-
-
@pie_flavor Sorry, i'm not used to WindowSpy. I use Spy++ instead. @djls45 Even though it's a top-level window, it's not showing in the taskbar, so it won't show up in "Apps" in task manager; therefore, how do you know which entry it is to go process-hunting on? Same for Sysinternals Process Explorer.
-
@pie_flavor if it happens again, try using this and mousing over it:
-
Status: Considering if I want to give proper names for these anonymous variables...
//Left join .GroupJoin(thelist, x=>x.ID, y=> y.ProductID, (x,y) => new { x, y }) //Ugly ugly ugly .SelectMany(xy => xy.y.DefaultIfEmpty(), (x,y) => new { x, y }) .Select((x,y) => x.y == null ? x.x.x: x.y) .ToList()