The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Anything that is unrelated to elephants is irrelephant Anonymous - The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 - Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
From using a tar based moskito repellant (which is indeed effective), I have come to love that slight scent of tar in all my sports clothes.
Since childhood, I loved the scent of tobacco. Yet I detest the smoke when it is burning, whether as cigars or as cigarettes.
So: Keep a few cigars in your pocket, as a kind of perfume. But please do not burn them.
So I'm working with a 3rd party API (why do I need to be ethical and not mention who???) but anyways, one of the parameters when opening a session is simply Name defined as type string with the comment "Session Name".
So I've got a test jig and I figured I'd give the session a name with a timestamp so in the product, I can see when my code created it as part of the testing process.
"Name": "Session 3/6/2020 8:32:22 AM"
And I get back a this:
Seriously, WTF. I try the CURL example they provide (which is actually nice of them) and it works. After having been in this business for as many years as I have, that intuitive "OMG, please don't tell me they can't handle special characters in the name" feeling starts tingling in the fingers that want to reach for the battle axe.
Turns out / and : characters aren't allowed (and probably some other characters too). Dashes and dots are fine, so I instead:
"Name": "Session 3-6-2020 8.32.22 AM"
OK. WTF. What parser are they using, and why the elephant are they even parsing the content of the "name string"? Why would they care??? Someone actually wrote code to verify certain characters are disallowed?
This AM I opened a left-over fortune cookie from last night's Take-Out Tofu Feast. The days of an actual fortune rather than wit and wisdom have been gone as far back as I can remember. I like the latter, better, anyway:
"Optimists believe we live in the best of worlds and pessimists fear this is so."
Company policy is to lock everything down to a degree where it's next to impossible to do anything. So to use some tools we use on a regular basis (which were written in Delphi using stone tablets, back in the day!) we need to Admins on the PC's, which is at odds with IT security! So I am trying to run (I have managed to install it!) one of the Applications on a Windows 8 Laptop... I know I managed to get it running at one stage but how????
I believe Win8 also had compatability mode for older programs. Right-click on the executable and go into properties, or something, and chose compatibility mode and set to Win XP or earlier??? (or something like that - I don't remember Win8's exact steps).