WTF Bites
-
-
@sebastian-galczynski said in WTF Bites:
PESA is a small rolling stock manfuacturer based in Bydgoszcz, Poland
My first guess at the other PESA's domain name got me to the train company's website. Since I don't read Polish, and it was obviously not the PESA I was looking for, I didn't bother trying to figure out what they do with trains. Apparently, the answer is, "smash them".
-
In general relativity the math does work, no? It's QM where you play silly math games a.k.a. normalization.
Ok, and the infamous Navier-Stokes equations that nobody knows whether they have a solution in all the cases we'd like.
There's also the equations for magnetohydrodynamics. Which are what you get Navier-Stokes has a dalliance with Maxwell and spawns a monster; not just non-linear, but non-linear with significant long-range terms so you can't use a simple grid-cell-based simulation. Yes, that's math for "fuck you, solvability!"
-
No reason why this constant exists
There is one reason - typos become compile errors rather than silent failures that propagate without notice through however many layers. Though that's more for individual values rather than conjunctions such as that one.
-
No reason why this constant exists
There is one reason - typos become compile errors rather than silent failures that propagate without notice through however many layers. Though that's more for individual values rather than conjunctions such as that one.
It also gives you the opportunity to give it a meaningful name.
#define KURWA_1 2.5
-
Status: Logging in is broken for .
But it's totes better in the APP!!!
-
@dkf Yeah, there's that famous alt text from https://xkcd.com/1851/
Magnetohydrodynamics combines the intuitive nature of Maxwell's equations with the easy solvability of the Navier-Stokes equations. It's so straightforward physicists add "relativistic" or "quantum" just to keep it from getting boring.
-
No reason why this constant exists
There is one reason - typos become compile errors rather than silent failures that propagate without notice through however many layers. Though that's more for individual values rather than conjunctions such as that one.
It depends on how many times it's used. If many, then yes, it limits typos. If it's only used once …
-
No reason why this constant exists
There is one reason - typos become compile errors rather than silent failures that propagate without notice through however many layers. Though that's more for individual values rather than conjunctions such as that one.
It depends on how many times it's used. If many, then yes, it limits typos. If it's only used once …
In my XFdTYklbKroIDE program, all the constants are at the top in lieu of a non-existing config file by dint of embedded microprocessor environment.
But I definitely concur.
-
So .. obviousIy clicked it. Now the UI is frozen.
-
"The power of the cloud in your datacenter"
"The cloud" is a bunch of datacenters.
-
No reason why this constant exists
There is one reason - typos become compile errors rather than silent failures that propagate without notice through however many layers. Though that's more for individual values rather than conjunctions such as that one.
It depends on how many times it's used. If many, then yes, it limits typos. If it's only used once …
If you put it in a variable, it also makes it easy to tell if it's used more than once.
-
@Gern_Blaanston said in WTF Bites:
Servers as they should be. Hardware, with the software baked in, for running infrastructure at scale.
How long and at what temp do you need to bake the software?
-
There's no hard and fast rule, but if it looks like Discourse, it's definitely half-baked and you should keep it longer in the oven before releasing it.
-
@Gern_Blaanston said in WTF Bites:
Hardware, with the software baked in
That’s not what software means. It’s also the opposite of what anybody would want.
-
-
@Gern_Blaanston said in WTF Bites:
Hardware, with the software baked in
That’s not what software means. It’s also the opposite of what anybody would want.
OK, then go for hardware with software that is half-baked in.
-
@Gern_Blaanston said in WTF Bites:
Hardware, with the software baked in
That’s not what software means. It’s also the opposite of what anybody would want.
OK, then go for hardware with software that is half-baked in.
Ah, firmware.
-
I hate this shit soooooooo much. I'm signed into Microshit Teams on one end, try to follow a link, the page redirects for a while, and then this. I'm trying to view a document some asshat sent as .docx, so I don't even really want to open it up, but alas.
So ... clear out cookies and spend the next hour or so restoring random login sessions, state and all the rest of the universe that talks to the Microshit account?
-
@cvi You are too fast with that cookie gun. First, try a few reloads, it usually clears itself, and second, there is an option to clear data for specific site, so there is no reason to destroy any of those sessions unrelated to Microsoft.
… though if it happens often to you (it doesn't to me; I never had to go as far as clearing the cookies, it always started working after asking me to log in four or five times, an keeping me on my toes by occasionally trying to log me out instead), it's probably worth to create a separate browser profile for this shit and for other shit. I've already created a separate profile for logging in with all the non-standard accounts (test accounts, accounts from other tenants not linked to the main one) I have for various Microsoft shit.
-
Microshit Teams
Honestly feels more like Macroshit at this point. Maybe Megashit, even.
-
@topspin It totally does. ATM I'm rebuilding some Azure resources because Microsoft recently updated something, broke something else we are using (granted, it's a bit of abuse) and turning the option off again didn't undo the changes. Yeah, .
-
Yesterday we had a get together that included several people who work in technology of various disciplines and as nerds are wont to do, we started telling stories of major s that we have run into, which reminded me of one that I do not believe I ever mentioned here.
Sorry for obscuring some of the details here as much as I am, but roll with it.
So we have some devices that we work with that normally the data gets pulled from and stored by a server. We had the need to interface with them in a non-conventional manner. You can login to these devices and they will present you with a web interface, but normally the server does this for you through an application-level network protocol. The web interface is for one-offs and stuff like that.
I do some snooping and find that after logging in to the device the data exists at a URL something like:
http://<IP address>/cgi-bin/api.cgi?rs=<16 digit token>?cmd=<path to needed data>
That is all well and good if I am accessing it from a client that is already logged in and the session has not expired. Now how to do that from our application? Of course there is no documentation, or this would be much shorter. Or, well, there is documentation, but it is rubbish as per usual and I cannot find anything to help me with this.
After much digging I find a support email address and reach out to them. The first reply was from someone that had no idea I was talking about and their grasp of English was only slightly better than my grasp of women's emotions. But I was pretty sure that they said they were going to forward my request along to their developers.
Roughly a week passes and I get a reply from someone else with roughly the same familiarity with the English language and what I can make out is that the URL I need to get that data is roughly:
http://<IP address>/cgi-bin/api.cgi?rs=<16 digit token>?cmd=<path to needed data>&user=<username>&pwd=<password>
Okay, so let's ignore the implications of sending usernames and passwords in plaintext via the URL. Yes, bad idea. But for this deployment it doesn't matter. If someone is in this part of the network snooping traffic we already have bigger problems. He did not tell me how to get that token for the URL. So I email back asking about this. The reply was roughly like this:
Please to be helping you sir and I handsomely apologize for failing to enumerate that part of the request process. The 16 digit token can be any of the hexadecimal numbers. Please to be telling me if you require any further assistance.
Well yeah, I still need assistance. How do I get the fucking token? I do not see anywhere that this token is returned from the device and the requests fail without a token. So I ask once again with more specificity and more detail.
Please to be helping you sir and I extremely apologize for the confusion in my answering process. The token can be made of any 16 hexadecimal numbers which is inclusive of the natural numbers of 0-9 and the capital letters A, B, C, D, E and F.
Okay, thank you for explaining to me what hexadecimal numbers are, but how do I get the goddamn token?
Wait.........is he trying to tell me that any 16 digits of hexadecimal will be accepted as a token ?
I fire off a request to:
http://<IP address>/cgi-bin/api.cgi?rs=0000000000000000&cmd=<path to needed data>&user=<username>&pwd=<password>
And it responds with the needed data. Sure, it is formatted as I would expect it to be by people with such communication skills so it needs a bit of cleaning up before we can ingest it but......like.......what the actual fuck? Why is that even in there if it literally does nothing? To this day I still have so many questions about this.
The next time I am on those systems I may fire off a request that includes some non-hex characters in the URL just to see what happens. Will it fail? Are they actually using that hex, or are they just verifying that there are 16 characters of something there? Are they just dropping those characters when they parse the URL? If it is just some legacy cruft that remains around because , then why not branch the URL parser at the token part of the URL?
-
@Polygeekery said in WTF Bites:
how do I get the goddamn token
you make one up yourself?
@Polygeekery said in WTF Bites:
And it responds with the needed data
Called it.
-
@Polygeekery said in WTF Bites:
there is documentation, but it is rubbish
Documentation is like sex. When it's good, it's really, really good. When it's bad, it's better than nothing
-
@Polygeekery said in WTF Bites:
And it responds with the needed data. Sure, it is formatted as I would expect it to be by people with such communication skills so it needs a bit of cleaning up before we can ingest it but......like.......what the actual fuck? Why is that even in there if it literally does nothing? To this day I still have so many questions about this.
Does this create a session token which you can then reuse?
-
@TimeBandit said in WTF Bites:
Documentation is like sex........When it's bad, it's better than nothing
I would disagree with that. On a few occasions I have had really rubbish sex. I have also encountered documentation that was worse than not having anything at all. This is usually a result of documentation that has not been updated for a loooooooong period of time and you end up chasing your tail on something that does not even exist anymore.
-
Does this create a session token which you can then reuse?
You do not need it.
I forgot to mention that I tested this in the web interface. You can change the token in the URL to whatever you want, so long as it is 16 digits in length, and nothing changes. Although I only tested hex characters and I am really kicking myself for not trying non-hex characters.
-
@Polygeekery I mean, once you've done a request with
?rs=0123456789ABCDEF&user=...&pwd=...
, can you then do more requests with just?rs=0123456789ABCDEF
.
-
@PleegWat Yes. I literally just hardcoded a token of sixteen 0's into the URL generator in the polling script. This works for all of the nearly 100 devices on the network.
-
@TimeBandit said in WTF Bites:
@Polygeekery said in WTF Bites:
there is documentation, but it is rubbish
Documentation is like sex. When it's good, it's really, really good. When it's bad, it's better than nothing
Fat chicks need loving too…?
-
@TimeBandit said in WTF Bites:
@Polygeekery said in WTF Bites:
there is documentation, but it is rubbish
Documentation is like sex. When it's good, it's really, really good. When it's bad, it's better than nothing
Prove it.
-
-
@TimeBandit said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Prove it.
You would need to have sex first
I am pretty sure he was saying that he wants to have sex with you. Your move.
-
@Polygeekery said in WTF Bites:
Your move.
-
there is an option to clear data for specific site, so there is no reason to destroy any of those sessions unrelated to Microsoft.
That's the one I was planning to do. Work uses it for their central authentication, so it'll nuke a bunch of sessions there. Logging in isn't the core problem, it's that some of the session state gets nuked along the way. :-/
it's probably worth to create a separate browser profile for this shit and for other shit.
Hmm, that might actually be a good idea.
-
@Polygeekery Yeah, one gives you emotional scars and trauma and for the other one you just stop replying to their calls.
-
@Polygeekery said in WTF Bites:
And it responds with the needed data. Sure, it is formatted as I would expect it to be by people with such communication skills so it needs a bit of cleaning up before we can ingest it but......like.......what the actual fuck? Why is that even in there if it literally does nothing? To this day I still have so many questions about this.
A transaction / conversation id sort of mechanism to keep multiple requests grouped together? Did you try omitting it?
-
@TimeBandit said in WTF Bites:
@Polygeekery said in WTF Bites:
Your move.
-
@boomzilla said in WTF Bites:
A transaction / conversation id sort of mechanism to keep multiple requests grouped together?
Not applicable.
@boomzilla said in WTF Bites:
Did you try omitting it?
Yes. It will fail without the "token".
-
@Polygeekery said in WTF Bites:
On a few occasions I have had really rubbish sex.
Just to elaborate and to add some color to this, I have literally faked an orgasm in order to get it all over with. There were other times that I can vaguely recall but were not as memorable as those but in those cases I just ended it with a simple "Sorry, it's just not going to happen for me tonight" with the occasional vague excuse that I had drank too much or something even though that was not the case. But the time I faked an orgasm in order to get it over with was the absolute worst.
-
@BernieTheBernie said in WTF Bites:
@TimeBandit said in WTF Bites:
@Polygeekery said in WTF Bites:
Your move.
-
@Polygeekery said in WTF Bites:
Just to elaborate and to add some color to this,
Hey, let's not start a competition, now!
-
I almost believed you when you said you've faked orgasms, but this was too much. Next time try to be more credible.
@Polygeekery said in WTF Bites:
the occasional vague excuse that I had drank too much or something even though that was not the case.
-
@Zecc I didn't say that I hadn't been drinking. I also never said that I have not drank so much that it interfered with those faculties. I just had not been drinking so much as to interfere with those faculties on those specific occasions.
Side note: I've always referred to the phenomenon of having drank enough to "rise to the occasion" but not "finalize the transaction" as "whisky dick". But when looking up that definition it seems that the consensus of the internet is that term refers to alcohol induced ED. I have never had that issue due to alcohol but my ADHD meds have on occasion caused it. I'm sure that age doesn't help that at all but I can predict with near perfect accuracy whether or not my Adderall has kicked in enough to stimy my stiffness via the heart rate monitor on my smartwatch.
"The kids are busy outside and I don't have any calls for an hour, want to head to the bedroom?"
-looks at watch, sees 90+bpm- "Sure, but we're going to just worry about you because it probably isn't happening for me."We really have too much technology in our lives and too much information at our ready.
-
@Polygeekery said in WTF Bites:
@Polygeekery said in WTF Bites:
On a few occasions I have had really rubbish sex.
Just to elaborate and to add some color to this, I have literally faked an orgasm in order to get it all over with. There were other times that I can vaguely recall but were not as memorable as those but in those cases I just ended it with a simple "Sorry, it's just not going to happen for me tonight" with the occasional vague excuse that I had drank too much or something even though that was not the case. But the time I faked an orgasm in order to get it over with was the absolute worst.
well there was that time when I... Nah. Better not. 😆
-
@cvi What's your battle.net tag?
-
@cvi What's your battle.net tag?
Can't believe my account still exists unhaxored! Mine happens to be
Tsaukpaetra#1862
I guess.
-
@Tsaukpaetra said in WTF Bites:
@BernieTheBernie said in WTF Bites:
@TimeBandit said in WTF Bites:
@Polygeekery said in WTF Bites:
Your move.
-
@Tsaukpaetra said in WTF Bites:
@BernieTheBernie said in WTF Bites:
@TimeBandit said in WTF Bites:
@Polygeekery said in WTF Bites:
Your move.
Grew up with Bryan Adams lol. Accidental memory recall, could not resist.