Code Snippet of the Day - self-submissions for code snippets that shouldn't really exist.
304
Topics
11697
Posts
@izzion said in Visual Studio WTfs:
I wouldn't want to be on either side of the bet that Framework 4.8 is going to be available in Windows 12.
I can fairly confidently bet that it won’t be; if it ships with the OS it’ll be 4.8.1 or later.
(It will be… interesting… if they put .NET Framework 4.x on the standalone-component train like 3.5 but not the VB6 runtime.)
Error'd - features fun error messages and other visual oddities from the world of IT.
468
Topics
11434
Posts
@BernieTheBernie said in Error'd Bites:
@boomzilla That's merely a little mix-up of Big Endian and Little Endian.
It's just the latest standard™. After slot, tri-point, Philips, Pentalobe, Allen, double-square and 12-point, behold: the InfiLobe!
@Tsaukpaetra said in Antigrammatical gif:
I am extremely disappointed they did not provide the jip that causes this when Grammarly is installed.
Pics or it didn't happen.
I appreciate the ones that require a password unlock to unpack the codes for this reason. Even though I have copies of my vaults in various places, still need to know Standard Secure local static 2019 password to unlock it.
@HardwareGeek That works as a reason. (I'm not a big fan of git, but I use it at $JOB because that's what $JOB uses. Sigh. At least I know how to make it behave itself without it totally fucking up in all directions.)
@PleegWat said in So Windows 11 Paint supports layers now...:
@Arantor said in So Windows 11 Paint supports layers now...:
For evil points they could support the barest possible minimum subset of PSD.
Embrace, restrict, extinquish?
It’d be nice for someone to do it to Adobe for a change.
@Steve_The_Cynic said in We reset your e-mail password:
@Tsaukpaetra said in We reset your e-mail password:
@Steve_The_Cynic said in We reset your e-mail password:
I have no hope for you.
I'm not that young!
The reference is significantly more recent than I thought...
Wrist Wizard | Dick Tracy Wiki | Fandom
The Wrist Wizard was an invention of Diet Smith. It was introduced during Dick Tracy's encounter with the previously presumed-deceased B-B Eyes. It replaced the Wrist Geenee. The Wrist Wizard...
I thought that's what you were referring too but didn't want to explicitly call myself out. :3
Ah... this thread reminds me of why I used to lurk rather than post. So much vitriol, aimed very personally. Having the Garage around really does make this place more civil. That, and Morbs having fucked off.
And yeah, Morbs performed poorly on this one. Were the arguments deliberately bad for trolling purposes?
@CodeJunkie said in WatchOS 10 designers: have y'all ever heard of muscle memory?:
Wasn't there a trend there for a minute where front end designers where swapping ok and cancel buttons because ? Even though it had been established like 30+ years ago what order they should be in.
and the Windows v Mac wars continue...
@TimeBandit said in Windows 11 Insider program stupidity:
@Steve_The_Cynic said in Windows 11 Insider program stupidity:
I wouldn't know, because Release Preview is, in effect, late Beta or even RC.
We all know that what Microsoft consider release quality is Beta at best
Honestly, every OS is still in early access, but no one has figured that out yet.
Unexpected backfire ensues
Oct 9, 2023
'Tenant from hell'? Airbnb owner says guest hasn't left property or paid in 18 months
Elizabeth Hirschhorn had initially rented an accessory dwelling unit in LA on Airbnb from Sascha Jovanovic as a long-term stay, in September 2021.
@dkf said in Circle of Size:
@Zerosquare said in Circle of Size:
I don't know about humans
I thought about getting an archive picture of DDT usage in the southern US. But
Les nasty buggers are still good for a national crisis these days.
@Gern_Blaanston said in StackGoFYourQuestion:
The biggest problem when you are "new" is that you don't know what you don't know, i.e., you don't even know what question to ask.
Indeed, and not just when you are new overall, but new to the topic. Most of the time once you know exactly what to ask, you can find the answer in the documentation or somewhere too and the main times you need to come asking is when you are not sure where to even start.
@dkf said in Snakes in the cloud for a spreadsheet:
There will be problems, but they will be mostly ones of the users' own making. (It's more likely to be things like getting an Azure bill that is much larger than expected.)
So it is a Great Offer. From Microsoft's point of view.
@Steve_The_Cynic said in On the time I accidentally emptied a workstation printer:
@Polygeekery said in On the time I accidentally emptied a workstation printer:
If you're paying less than a grand for a printer then something about it is total shit.
Hmm. 250è-ish euros (what my HP Color Laserjet Pro m252dw cost(1)) is definitely less than a grand, and the danmed thing Just Works(tm), with the easiest toner-change system I've ever seen. Maybe changing the drum(s) will involve disassembling it down to individual atoms or something.
(1) In an Apple store, no less.
Come to think of it, I have never had a driver issue with HP printers on OS X. We also rarely have any issues on the CUPS print servers that we use to serve printers to Chromebooks.
I blame Windows.....and HP. I always blame HP.
@GuyWhoKilledBear said in What the forward?:
@AgentDenton said in What the forward?:
@jinpa said in What the forward?:
I place more importance on the boss's character/honesty/integrity than on their people skills/personality.
In my opinion positive character / honesty / integrity goes hand-in-hand with better people skills / personality. Exceptions apply, sure, but my point being these aren't mutually exclusive.
: HEY! Quit being an asshole and do your fucking job!
Assuming that the engineer that is talking to is actually doing his job poorly, is demonstrating honesty and integrity.
In most workplaces, though, that's bad people skills.
Sure, that's an extreme example and in almost all cases, there's a more euphemism-y way to phrase that criticism that would be better.
This is in the realm of Dr House where being right is the justification for being rude. However I do agree that it is extreme and most would even think twice before they do it that way (even if it is what they want to do).
But there are a group of very fragile people in the workplace who can't take criticism at all unless it's couched in very, very heavy euphemisms. (This isn't a generational thing. I'm having a problem with the guy I share an office with. He's like this, and he's my father's age.)
Yeah, I have seen this from all of the generations I've worked with. The older generations probably have some sort of trauma response from previous experiences where it went bad (often for no good reason). That's the kind of stuff that sticks with you for years and years. The younger ones can probably be explained by the uncertainty of inexperience (it's the first time this has happened).
It sucks, but ultimately HR has to threaten people's jobs sometimes if they're fucking up. If they've got to call it "feed forward" to get the point across - I mean it sounds dopey to me, but I'm not the one getting called to HR for being a fuckup.
Yeah, when HR gets involved like that it has reached the extreme point which is not pleasant for anyone involved. And some people do need the wake-up call that this is. Generally in the places I've worked at this is called "Performance Management" and it is as serious as it sounds. "Feedback" would already be the euphemistic term to me, but it might belie the severity of the situation.
@dkf said in Do you have lots of pictures of yourself?:
@jinpa said in Do you have lots of pictures of yourself?:
The void has neither birth nor death.
That's more the void*.
Here are more void pointers for you:
Select and enjoy the void.
@Arantor said in Working on FOSS doesn't mean we work for free, right? Right?!?:
Speaking of which, now I need to install PHP 8.2 (alongside 7.4 and 8.1) via Homebrew.
Debian does that nicely. I have 5.6 (yeah, some legacy stuff), 7.4 and 8.2 on the same server. I can configure a virtual host to use any of those versions.
@Carnage said in Feature is loves by who didn't ask for it.:
@xaade said in Feature is loves by who didn't ask for it.:
Business end says it seems to work as intended with property turned off, waiting for customer response.
Customer response will be "why have you not implemented this feature we asked for?"
Other hand in the business will side channel "Why did you turn it off again?"
@flabdablet said in BREAKING NEWS: Online streaming still sucks in every way you can imagine:
@Steve_The_Cynic said in BREAKING NEWS: Online streaming still sucks in every way you can imagine:
You use a US-based proxy, your packets arrive at their servers from a US-based IP address that can be traced back to the proxy service. Game over.
Whenever I need a US proxy, I fire up an Amazon t2.nano Linux EC2 instance and ssh -D1080 into it. Is Netflix proposing to IP-block all of AWS?
Netflix actually did.
@Parody said in Powershell retarded:
I even changed Windows Terminal to default to cmd.
I've always launched the Windows Terminal by doing +R cmd. I didn't realise you could do it the other way round.
@kazitor said in Laptop audio buttons are weird.:
@Zerosquare said in Laptop audio buttons are weird.:
2: A real audiophile would never listen to music generated by a digital source.
Too bad sheet music is digital
Say what, nnnna?
@Tsaukpaetra That's a worse situation, for sure. I was referring to not being able to think of a worse approach to the problem presented.
I did once encounter an application that stored passwords with this line:
pwd = Encrypt(valuetheuserentered, "staticvalue")
This was coded in an obscure platform and Encrypt was a method provided by the base library, so no one could answer my question as to what it actually does.
I did some digging and found out that it uses OpenSSL's crypt function. However, it makes some poor choices. It uses bcrypt, but in ECB mode, so every eight characters is independent and you can find things like "passwords ending in 2023" just by looking at the encrypted data. The static encryption key seed was simply our company name, and the library provides an initialization vector - the same one for every encryption ever done.
@Jaime said in Secure PIN:
HSAs are different from other medical reimbursement plans.
I didn't actually realize that - explains why it's so much easier to use that card... (I figured each company just had different criteria)
@Steve_The_Cynic said in DevOps was supposed to save the world, not destroy it!:
@loopback0 "[more than] enough bandwidth" would be sufficient, without leaving him exposed to ridicule for vaunting what is essentially the minimum you can buy today.
Not to mention, if that was a direct quote, he's saying "yeah, we have a 1Gb port plugged into the server" and nothing about what committed bandwidth they're actually paying for on that port. So it's quite probable that beyond DDOSing them, this little excursion is actually costing them a shitton more money, since they're probably paying for something like a 100Mbps CIR "burstable" connection and paying a bunch for this new peak 1Gbps load.
@topspin said in WTF Office?:
how it seems to anchor formatting at line/paragraph endings.
It seems to do that because it does do that. Well, for paragraph-level formatting(1). Turn on the option to show paragraph markers and you'll be able to see the [REDACTED] things and know easily whether you've selected one (or more) of them.
(1) Character-level formatting (bold, superscript, font, etc.) is stored on the characters themselves, more or less.
@topspin said in WTF Office?:
Look, if I wanted to include the line break, I’d shift-down.
I wouldn't, because, as a universal rule, that causes problems when you start half-way along the line (because shift-down will select the second half of this line and the first half of the line below.
@topspin said in WTF Office?:
This wreaks all kinds of havoc when dealing with bulleted lists, etc. Delete (or cut) some text, it completely fucks up the surrounding text and formatting.
Mostly, it messes those things up only if you fail to bear in mind the paragraph markers. Mostly...
@Luhmann said in The eBike Rant Thread:
@BernieTheBernie said in The eBike Rant Thread:
Yes, sitting on a moving bike is a really hard workout.
Depends, I've had rides where the going down was almost as straining as going up. Climbing over a road and going down offroad
On a steep and winding road downhill with some 60 km/h (that's 10885.529 nautical miles / fortnight for our imperial unitists), my heart rate was in the range of 90-100 beats per minute.
That's not high, but not restful either...
@PleegWat Probably, if you know what you’re doing and understand that spreadsheets are almost always easier to persuade to do what you want them to do by adding more cells or even entire tables … However:—
I doubt your average person who can barely use a spreadsheet will work that out.
@HardwareGeek said in In case you care about the Theranos stuff still:
Yeah, that kind of restitution order is largely symbolic. Fraudsters typically don't have the financial means to repay the people they've defrauded
But what if they do? What if they have a large amount of money hidden away that is discovered later?
I think that's the point of those large restitution orders.
@Gern_Blaanston said in Always online auto updates never fail:
@Applied-Mediocrity said in Always online auto updates never fail:
And the bit? All automatic updates are enabled, but some are more enabled than others:
I have automatic updates disabled but still got hit by this. How nice of them to ignore my settings. For a while I thought my router was broken.
I figured it was my ISP being shit at first. But I tried rebooting things in sequence before I opened a ticket, figured out the router was going stupid, and then had to reset it because I apparently didn’t document the correct password and the auto setup process did the firmware update that fixed it.
@BernieTheBernie Same thing, basically. In handwriting it commonly becomes a single letter, though the letter shape is different than ÿ. The Y is in the dutch alphabet, but is only used in loanwords (typically English).
@dcon said in npm:
@boomzilla said in npm:
Gabi Dobocan
One In Two New Npm Packages Is SEO Spam Right Now
More than half of all new packages that are currently (29 Mar 2023) being submitted to npm are SEO spam. That is - empty packages, with just a single README file that contains links to various malicious websites. https://datawrapper.dwcdn.net/ZkWKj/2...
Looks like more proof npm needs
It may well be possible. ant was pretty well killed off by wrapping it and letting the inside die, and maven is in turn being similarly displaced.
However, the displacing tool will need to be excruciatingly shiny - written in Haskell compiled into WASM or something.
Red-Circle-Man, oh how thou doth elucidate the humor for those who might not otherwise get it,
and that in thy miraculous efficacy all original humor is not lost it is most miraculous,
Look down upon us for it is quite evident that you are not looking up -
Mark clearly for us the portions of content that deviate from conventional expectations,
For we are random arrangements of tubes, sacks and filth,
and would otherwise never experience our crude simulacrum of what you shining ones call "mirth".
@Bulb said in Today's spanner in the network is Azure VPN Client:
it might be a bug in some generic Windows 10 subsystem or library
report it as a bug report so it gets actually treated as bug report
Sent in, sent back, queried, lost, found, subjected to public inquiry, lost again, and finally buried in soft peat and recycled as firelighters?
@PleegWat Bad, bad memories you bring. We had such script in the previous project and it just meant you had to learn a lot of the ways the environment was set up, because it didn't really match how the upstream tool (ptxdist and yocto in that case) author meant them (and the mismatch often already came from the other team providing the base package, so not everything was fixable).
You jest, but:
https://www.pnas.org/doi/full/10.1073/pnas.0611320104
Spontaneous knotting of an agitated string
Abstract
It is well known that a jostled string tends to become knotted; yet the factors governing the “spontaneous” formation of various knots are unclear. We performed experiments in which a string was tumbled inside a box and found that complex knots often form within seconds. We used mathematical knot theory to analyze the knots. Above a critical string length, the probability P of knotting at first increased sharply with length but then saturated below 100%. This behavior differs from that of mathematical self-avoiding random walks, where P has been proven to approach 100%. Finite agitation time and jamming of the string due to its stiffness result in lower probability, but P approaches 100% with long, flexible strings. We analyzed the knots by calculating their Jones polynomials via computer analysis of digital photos of the string. Remarkably, almost all were identified as prime knots: 120 different types, having minimum crossing numbers up to 11, were observed in 3,415 trials. All prime knots with up to seven crossings were observed. The relative probability of forming a knot decreased exponentially with minimum crossing number and Möbius energy, mathematical measures of knot complexity. Based on the observation that long, stiff strings tend to form a coiled structure when confined, we propose a simple model to describe the knot formation based on random “braid moves” of the string end. Our model can qualitatively account for the observed distribution of knots and dependence on agitation time and string length.
@ixvedeusi said in External data files or hardcoding? Why not both?:
: To my knowledge there was no global registry for either type nor creator codes; for types you were supposed to use one of a handful of standard codes if any applied. If not (and for the creator code) you just made up some value and hoped there'd be no collisions.
In the Classic Mac OS days creator codes were supposed to be registered with Apple. (Old FAQ about it from the Wayback Machine.) You could search to see if one was already registered but they didn't give you any other info about it.
Of course, there was nothing stopping a program from using whatever it wanted.
@HardwareGeek said in mott555 tries to backup his ESXi software, and HP sucks:
@dcon said in mott555 tries to backup his ESXi software, and HP sucks:
But the fan almost always cranks up when the screen locks/blanks. Like it's running something. But it winds down as soon as I twitch the mouse. Haven't tracked that down yet...
Hmm, I used to have that issue, too, on one of my older machines. I never did figure out what was causing it, but I haven't heard that happen for a long time.
It's a Heisenbug.
@PleegWat said in Happy Anniversary, Dear Asok!:
@BernieTheBernie You should put your heart in your job, then your job will be hard on you.
Ouch, man. That's some dangerous advice. Have a care.