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.)
Briefly tried the whole mmap to output thing. mmap tends to fail with MAP_FAILED / ENODEV (i.e., filesystem/specified files doesn't support memory mapping). Which makes sense. Sanity restored, but wtf talk dude?
@HardwareGeek said in Amazon out to kill every WISP in existence:
@cvi said in Amazon out to kill every WISP in existence:
Bluetooth range (120 meters)
I can't always get my Bluetooth keyboard to work reliably at 120 mm.
Depends on which Bluetooth standard it uses. Most motorcycle intercoms use Bluetooth and has a range of several hundred meters.
@boomzilla said in VS Code is a steaming pile of shit. Change my mind.:
@loopback0 said in VS Code is a steaming pile of shit. Change my mind.:
I use it every day though and very rarely have issues. The SSH Remote feature is excellent.
I have not used that, but I've thought about it
I use it for all my bot development. So there's a mark against it.
@Medinoc said in Am I the only one who remembers when ... ?:
I liked animated GIFs, but to me, they were "ruined" by people cramming movie excerpts into them.
And by "ruined", I mean "inspired platforms like Twitter to convert GIFs to actual videos on-the-fly when uploaded, leaving no trace of the original, lossless GIF". Yeah, it makes sense when it's a movie, but it does not when it's an actual, hand-crafted pixel art animation!
When I was on a 256kbps line for a couple of years and hung out on a forum that had a lot of GIFs posted, I actually wrote myself a proxy CGI to cut down on bandwidth. Some Greasemonkey script would rewrite all GIFs to my CGI address, the script downloaded the image and just delivered it verbatim if it was below 50k or so, otherwise transcoded it in ffmpeg to divx or whatever the codec of the day was.
@dangeRuss said in Multivoltz:
Why would you need such a huge device just to block the data pins?
If you want to charge at a higher rate than is possible with the current delivered by the base USB spec, you need to negotiate for it. Which requires a data connection…
@Bulb said in Docker is shit:
@Shoreline said in Docker is shit:
Windows Insider
Why? That shouldn't be needed. Enabling hyper-v might be needed. At least it used to be unless WSL2 learned to enable it itself.
Unfortunately I don't remember specifics, but I do remember that I tried to do that and either it wouldn't enable or it enabled and something undiagnosed was blocking me.
@dkf said in Atwood's ducks, that backfired?:
The way I heard it was this was a story from the development of Battle Chess. It would therefore originate with one of the animators who worked on that.
Jeff seems to think otherwise:
But really, I think you're both wrong, and that in reality it comes from Interplay (while making Battle Chess).
Filed under: not sure how that turned out for the miners in The Expanse
@Polygeekery said in 3D Printing :
@MrL said in 3D Printing :
@Gribnit said in 3D Printing :
@Polygeekery said in 3D Printing :
@Rhywden it seems to be, but it still boggles the mind how this could occur. Especially so since it appears from the releases I read that they were the one that originated the feature and then totally screwed the pooch by substituting a MOSFET.
But weirder things can happen and I can sort of see how this can happen. They also claim that it was ~100 boards that made it out with this defect and they have implemented a V2 that seems to have fixed the issue.
Distract even a competent engineer badly enough and consistently enough and you can probably get them to fuck up.
So what you are saying is that people in IT are constantly distracted?
Also:
@bstorer said in Google:
@morbiuswilters said:Worship is a demand of the insecure, lesser gods. Speaking of which, why aren't you fuckers worshipping me? Nobody told you to stop.
the lone and level sands stretched far away
@HardwareGeek said in DHL are TRWTF:
@El_Heffe said in DHL are TRWTF:
U.S Postal Service Tracking:
We don't know anything about your package
We don't know anything about your package
We don't know anything about your package
We don't know anything about your package
Your package has been delivered to the wrong address,
FedEx and UPS have been especially bad lately. They keep delivering my packages to the house next door and the people who live there are quite unfriendly and I really don't like going over there.
But my all time favorite was when I got the "Your package has been delivered" e-mail from UPS. But I couldn't find it anywhere, so I checked the tracking and, it really was delivered. In another city, 2000 miles away.
@Luhmann said in Unicode (of course):
now I'm waiting for the back facing chick ...
I'm waiting for vomiting same-sex married right-facing baby chick of skindown colour variant 3.
@Planar said in In Spain, every time an OAP carks it, they take a child with them...:
noticeable proportion of "young" people (i.e. below 50) who die from Covid
well maybe if people wouldn't notice so hard, that would stop.
@dkf said in Cloudy:
@MrL said in Cloudy:
Ah, everything makes sense now.
I really wouldn't go that far.
Don't worry. Anybody goes too far into that rye, I'll catch 'em.
@error
Ok, on second though I was wrong. But what you wrote isn't quite correct.
ITYM: No, you're wrong that we don't all believe that loopback0 believes that Gribnit is incorrect when believing that loopback0 means disregardless.
@Zecc I know it's linked from the update on the article, but the patch is now live.
Rich Stanton / Mar 16, 2021 / Grand Theft Auto
GTA Online load time fix released, shaves off actual minutes of waiting for some
Our tests show a definite improvement, and some players are reporting a massive reduction in load times.
"Insane. GTA menu -> GTA: Online. Dropped from 7 minutes to 1:57," writes user Ontyyy, who says they're using an i7-2600k with a GTX 1070 and 16 GB RAM. Xim claims that their load times "dropped from 5-8 minutes to 35 seconds."
A little over a year ago, the FBI and law enforcement partners overseas seized WeLeakInfo[.]com, a wildly popular service that sold access to more than 12 billion usernames and passwords stolen from thousands of hacked websites. A lapsed domain registration let someone plunder and publish account data on 24,000 customers who paid to access the service with a credit card.
WeLeakInfo Leaked Customer Payment Info
A little over a year ago, the FBI and law enforcement partners overseas seized WeLeakInfo[.]com, a wildly popular service that sold access to more than 12 billion usernames and passwords stolen from thousands of hacked websites. In an ironic turn…
@Tsaukpaetra said in Computer vision system can be fooled by handwritten notes:
@Flips Goddamn your punctuation is causing a shitton of errors. Is this what "feeling triggered" is?
He's flipping your bits in all the right ways.
@hungrier said in In what timezone is this okay?:
@error said in In what timezone is this okay?:
@boomzilla She seems to be running a multithreaded search for "the one."
I believe there are reality TV shows about this method.
Are they anything like the Jet Li movie, or should I not even bother?
They are something like the Jet Li movie, in that they are more similar to yon movie than to say, a ham sandwich.
@Gribnit said in Australia Tax: the price of international routing:
@Luhmann yup. Next time you die, you'll be standing somewhere in there.
Unlike the last time he died.
@izzion The last graf of the linked article contains this excellent advice: "...As a temporary measure to neutralize the flaws, Nichols recommends blacklisting the kernel if its’s not being used...."
Yes, we know what he means; but...
@topspin said in Lies, damned lies and Intel benchmarks:
Well, how the turntables...
Not very surprising for an application that's quite strongly bottlenecked by memory bandwidth. (It's been one of the things that it's hardest to do anything about in the hardware; the electrical requirements of a functioning motherboard bus are quite stringent.)
@remi said in VLC - The new poster child for everything wrong with software development:
almost every bad joke you can think of has actually been used by a band at some point.
Yes.
The 100 Best Band Names of All Time
Paste Magazine is your source for the best music, movies, TV, comedy, videogames, books, comics, craft beer, politics and more. Discover your favorite albums and films.
@Rhywden said in Waaah, I don't get paid to use new shiny languages:
The guy complains about the lack of built-in immutability in C# using one sentence (does not exist)
And then says that Javascript has good libraries for immutable data.
Oh, just because I've been reminded due to an upvote: C# 9.0 has Records now. Which are immutable by design.
The Equals operator for Records works on a value equality (not reference) and they have the equivalent of the spread operator if you need to copy a record with one value changed.
@Gribnit said in pendants.stackexchange:
@dkf said in pendants.stackexchange:
I guess that “pendant” started here as an autocarroted version of “pedant”, and amused people so it entered the forum lexicon…
you could NOT be further off.
I'm sure he could if he wanted.
@error said in Let's be evil:
local webserver that is set up to transparently proxy
Thought of such things in the past. But I am too lazy.
In case of doubt, use Firefox (which at version 85 still supports proxy.pac files).
@NeighborhoodButcher said in IT departments of the world:
@boomzilla said in IT departments of the world:
@NeighborhoodButcher yeah but it sounds like you're already in one, you're just not fighting back yet.
The problem is - we're working in different countries and he's in the one with management. So everyone knows how this would end anyway.
Is that still at that one company, or are you in a better place now?
@Groaner said in So I decided to try to update part of my toolchain...:
The default shaders for HydraX are HLSL, and won't work with the D3D11+ renderer because it uses the D3D equivalent of fixed-function pipeline
This sentence doesn't make sense to me. HLSL still seems like the language of choice in DX11 and 12, and AFAIK even in DX9, HLSL and fixed functions didn't mix well, if at all.
@PleegWat said in Your internet traffic can be tracked, news at 11:
@dangeRuss said in Your internet traffic can be tracked, news at 11:
@remi said in Your internet traffic can be tracked, news at 11:
@PleegWat you mean that you have less trust in a random business that could be anywhere in the world and could possibly do anything they'd like with your data, including leaving it totally unsecured for anyone to hack, and could go bust any day the CEO decides to blow up your money on cheap hookers, rather than in an ISP who is necessarily in your own country (and thus subject to its laws), under a (presumably) strict regulatory framework?
Not to mention that if I was FBI and I wanted to look for traffic of people who may have something to hide, it would be a lot easier to eavesdrop on some servers that shady people tend to use, than to have to find their traffic in the giant haystack of the whole internet.
I've heard rumours (years ago) that the NSA runs a significant fraction of tor exit nodes.
Alex Lekander
Is Tor Trustworthy and Safe?
There is a lot of misinformation being promoted in various privacy circles about Tor. This article will examine some facts about Tor and assess whether it is the infallible privacy tool it’s made out to be by some. There is a growing chorus of people who blindly recommend Tor to anyone looking for...
Tor is dead if you want to be anonymous.
SolarWinds Patches Vulnerabilities That Could Allow Full System Control - Slashdot
An anonymous reader quotes a report from Ars Technica: SolarWinds, the previously little-known company whose network-monitoring tool Orion was a primary vector for one of the most serious breaches in US history, has pushed out fixes for three severe vulnerabilities. Martin Rakhmanov, a researcher...
Holy mother of Chtulu. It’s like they looked at the OWASP top 10 and used it as a checklist.
My existing password that's previously been set is too long for the login page
Urgh. Fine. I go to reset it, but the validation on password also disables the "Forgot password?" link
Naturally the set password page doesn't tell you the maximum is 20 characters.
Also the validation event fires on mouseout, and if you click into the first textbox it instantly sets focus on the second and complains neither have been filled in even though you can't actually fill them in because of the validation firing.
@Gąska said in Windows 10 and spinning rust:
@Parody I think you missed my point. @acrow was saying that Quick Boot actually slows down things on non-SSDs because it has to write down all that RAM to the disk.
I hate when multiple people get into the same argument with me. They can never keep their story straight.
Fine: he said "in the worst case". Fast Startup is unlikely to need to compress and write all of your RAM (but it might). The couple of GB it does need can still take a bit to write on a hard drive or even slow flash.
Even if it does end up being a boot speedup on a particular device, I still don't think it's worth the hassle.