@Gribnit said in The Day Tsaukpaetra Died:
You're drinking at least Trappist, yeah? Hopefully. This ain't no lager code.
I noticed that regular beer didn't help, so I switched to whiskey. Worked like a charm.
@Gribnit said in The Day Tsaukpaetra Died:
You're drinking at least Trappist, yeah? Hopefully. This ain't no lager code.
I noticed that regular beer didn't help, so I switched to whiskey. Worked like a charm.
@remi let's suppose the is weak today: this hypothesis can be tested. If you change the codepage of your console before running the utility it might actually show the รป you hoped for.
REM show current codepage
chcp
REM Change to Windows-1252
chcp 1252
REM do your thing...
sillyCultureSemiAwareUtility.exe
@dcon yeah, what else would you expect from boeing these days. Back when boeing delivered real quality their planes didn't care about pesky details like fuel in their tanks, they just kept flying.
or has "trying to fly without fuel" always been an antipattern for jet planes? Don't know, I am not into planes so much...
@PleegWat said in The Belt Onion club:
@Gurth Wouldn't "Verdelger" be a better translation?
"De tot een abrupt einde brenger". Catchy title that would be.
@mott555 where did the rest of this thread go? I see only two posts now.
Edit: ok, got it, NodeBB upgrade. Nothing to see here, please move on...
@GuyWhoKilledBear said in The Way of the Sheddi:
So, I've got 1978 to 2021 (and three garages). Can anyone beat that?
The unanswered question is: did you already use it (which is cool, and you might win the challenge), or is it now waiting for you to pass it on when you move to Florida... ๐
@Benjamin-Hall I think one of the most important aspects is getting management to buy into the idea that fixing bugs (of a certain priority) is more important than churning out new features.
The few projects that I've been in that did it right all had in common that feature work was delayed until all >= major issues were fixed. The minor issues were fixed when you were in that part of the code. And tech debt was on a separate list, and worked on during feature development (never let a manager decide on tech debt...).
Once your issue list gets over a certain threshold you might as well delete all old and/or minor issues. No reason to fool yourself anymore, you've proven that you will not fix them anyway.
@remi hmm, this makes me think that I should do some maintenance on my motorbike. In the 20 years I have had it I replaced the oil and filter exactly once.
Well, lets see how long I can postpone it before it breaks, it was still working today, so
Open Skype for Business, start a meeting with yourself. Share desktop/program, and start recording.
Only drawback is that you need a functioning Skype for business...
@Rhywden I've used IdentityModel's OidcClient in the past. It has a RefreshTokenDelegatingHandler that refreshes the token when needed during the SendAsync call. Looks a lot like what you're wanting to do. See https://github.com/IdentityModel/IdentityModel.OidcClient/blob/main/src/OidcClient/RefreshTokenDelegatingHandler.cs
@sweaty_gammon never had problems with cmder myself, but Scott Hanselman had a post on shell replacements recently terminus etc. . Maybe there is one for you there.
@Gurth see https://www.rdw.nl/particulier/voertuigen/auto/de-kentekenplaat/kentekenplaat-verloren-of-gestolen (in Dutch). You need to provide id and proof of ownership, and you will get new plates marked with a sequence nr. The certified license plate maker will report to RDW that they created the plates, which will invalidate the unmarked (or with previous sequence) plates.
Or you might be under similar rules as my workplace where the proxy denies "everything media streaming" and "everything file sharing".
Cloud storage version history could be quite useless for backups
My sister was hit by ransomware at some point, and she was using cloud-storage-with-file-history. The ransomware wrote the cloud-synced files often enough that all the versions retained there were ransomwared and could not be recovered. ( yes, dropbox states days, not # revisions. This was OneDrive, which only kept 5 revisions at the time)
@Vault_Dweller said in Visual Basic for Quantum Computers:
@Zecc I think (or rather, hope) that's the point they were trying to make:
where you can work while
on vacationat a vacation destination, instead of the office.It's just marketing speak for WFH.
Sadly, no.
I'm allowed to WFH half the time, but I'm not allowed to do that from a different country (for tax reasons). And ymmv, but living in , my holiday destination is guaranteed to be in a different country .
@cvi said in Is clean architecture controversial?:
@robo2 said in Is clean architecture controversial?:
fix Python3
get rid of Python2
Can we just simplify and get rid of both?
Fine by me. You will still need your two jerry cans, so no loss there.
@dkf true, but if it exceeds more than 4 weeks the "other" country wants a piece of tax as well (or so I have heard). And the company probably doesn't want me to "spend" those weeks on a workation so they can decide. .
@djls45 summary: WW2, NL occupied by ๐ฉ๐ช , switch to same time as ๐ฉ๐ช. With a final remark on "be happy, you get 1:40 of extra light in the evening"
When I was there I really liked cycling around Manhattan (as in along the waterfront). From Central Park to WTC, over Brooklyn Bridge, a bit of Brooklyn, back to Manhattan, half day activity tops.
@topspin said in US / EU Level:
nobody ever stays overnight in Luxembourg.
single night, once, but still...
@Zerosquare yeah, the point is that with chcp you can change the code page to change how those single bytes are displayed. With codepages 65000 or 65001 you can specify utf16 and utf18 as well, so the console does support multibyte character sets if you want. Off course the default is 437 because backwards compatibility, or something.
@topspin said in Can I trust the order of parameter execution in C# function calls?:
@Watson said in Can I trust the order of parameter execution in C# function calls?:
and the overhead of unwrapping the thunk would count toward the timing
Unlikely to be above the timer's resolution.
And if you care about those kinds of microbenchmarks, then you're better of using BenchmarkDotNet anyway.
@Gฤ ska doesn't Java have something similar to .Net's HashSet<T>? Just add to the set, no explicit searching needed. And if you need a list then just ToList at the end. May not be the most runtime efficient way to do it, but it will make very simple and readable code.
@BernieTheBernie original is Czech (Mat&Pat), but as far as I know only the Dutch version has dialogue. It's old (70s, 80s) but kids still love it, or at least, mine did.
@Gฤ ska said in Visual Studio WTF:
@PleegWat C++11 or above? The solution is likely variadic templates. C++03 or below? The solution is upgrading to newer C++.
Given that earlier in the thread he said
@PleegWat I keep forgetting that this is a whole lot more shenaniganny in C++ than in C, and all my experience is in C.
It seems like your solution doesn't exactly match the environment he's in...
And if you're moving away from C, why not pick a saner language while at it?
@Bulb Afaik they did call it a fortnight, although it requires you to set a value in the registry (it is still not the default ). See https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd#enable-long-paths-in-windows-10-version-1607-and-later
@Zecc said in Joinphobia:
Incidentally, I have NFC how to escape database names with [] or "" in their names, so I hoping really hard I'll never need to find out.
According to https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers?view=sql-server-ver16#rules-for-regular-identifiers you'll never need to find out (if I read that correctly)
@Zenith can you call System::Environment.CommandLine
perhaps (using whatever syntax powershell uses to call static properties on a .Net class).
@Tsaukpaetra said in I, ChatGPT:
@dkf said in I, ChatGPT:
@Tsaukpaetra said in I, ChatGPT:
They'll feel like they're talking to a "real" person that actually understands. Until realization settles in.
Would you prefer an AI prone to confabulation that doesn't understand, or a peon on minimum wage who doesn't understand?
It remains to be seen, but I feel like the customer will be enthusiastic. At least the vast swaths that don't actually need real support.
I'm not sure how often you contact enterprise level support, but when I need to pass the tier-0 support first, then for sure would prefer the AI experience.
Come to think of it (and remembering discussions with colleagues), it'll probably increase the number of support calls. Currently I usually don't even try, as wrangling past tier-0 is just too painful...
@TimeBandit said in From Pure Windows 7 to Linux Dual Boot:
@BernieTheBernie I use x2go
Yes! I have got good experience with that as well. Much better than xvnc and xrdp.
@Bulb said in Hacking News:
SSH doesn't have any method of signing certificates or even certificates at all.
it is (or at least openssh does). The first duck hit for signing ssh key gave me this hashicorp link, but we are using it also in our environment (without hashicorp)
@robo2 said in Screen recording software:
lick the generated link.
Or click it, if you rather do that... (note 2 self: Don't do text entry on a phone)
@cvi for the livestock part nitrogen is in de form of ammonia (NH3), which degrades into NO1, for traffic/planes/etc the initial form is NOx. To be able to compare industries all types of emission are converted into a standardized form (1kg of NH3 is equivalent to 0.82kg of "nitrogen", etc).
Technicalities aside, nobody cares to comment on why those NOxes are so bad for nature reserves, so yeah
@Grunnen pfff, I have seen test like these with 100% coverage. And zero asserts.
All it actually tested was that the system under test didn't throw an exception. (and they would probably have surrounded the code with try/catch if they would have realized that an exception was a possibility)
@Benjamin-Hall I'll stop posting in this thread, I'm getting jealous...
Irresponsible, you're acting like threads are free or something. The "Fun with maps" thread is
@loopback0 thanks for saving me the typing, I agree with everything you said.
I haven't found a benefit yet big enough to offset the minor annoyances w.r.t. the changes in UX.
That said, I am on W11 with all my machines...
@DogsB said in Required reading for everyone!:
I liked the first book, but to me the series lost its appeal at book 3. YMMV
@dkf Yes.
I did a side-by-side comparison, and this is the shit you get depending on the .net runtime environment
Oh, and double.NaN.ToString()
is just "NaN"
.
@blakeyrat said in Arithmetics...:
In any case, I don't know the answer to your question. Look it up. But if it is required, since Attributes in C# are just methods, it'd be easy enough to write a version that checks the ".dll" path and if there's no file there also checks the ".so" path. So it's not like a huge emergency anyway.
Warning ry ahead, my apologies in advance...
Attributes in C# are actually classes, usually annotating to a runtime or framework that something non-default is appropriate. In the case at hand the DllImportAttribute is applied to a static extern
method. When code tries to call the static extern
method the .Net runtime will read the (properties on the) annotation and perform the LoadLibrary/GetProcAddress dance to get to the actual code, and uses other properties and annotations to determine the calling convention for the method, the string format (length-prefixed, zero terminated, COM, single/multi/unicode/utf-8 encoding), it takes care that objects are pinned in memory (i.e. can't be moved by the garbage collector) for the duration of the method call, and a whole lot more.
The runtime is free to take the dllname as 'hint', e.g. mono on linux translates DllName.dll
to libDllName.so
, and supports a "dll mapping" configuration, for those cases where it's not that simple.
On the .Net framework, depending on some parameters, the proc name is adapted at runtime - name + 'A'
on ANSI based, name + 'W'
on Unicode based Windows'.
All that said, and while it is an interesting subject, it is quite a pain to work with (there's a reason someone started pinvoke.net). Everything is so much easier when it is in the same eco-system and runtime. And if you must use it you always try to isolate it as much as possible from the rest of your code.
@cvi said in Is clean architecture controversial?:
@dkf said in Is clean architecture controversial?:
Fixing things properly will need an axe and a jerry can of petrol.
Is there a GoFundMe or something for that?
Please get funding for two jerry cans. One to fix Python3, and another to finally get rid of Python2.
@Parody said in WTF is happening with Windows 11? And nothing else:
We still have xcopy.
What is that newfangled stuff? Isn't copy
good enough?
I'd use GETUTCDATE
instead of GETDATE
, you don't want DST changes messing with your history ordering. (unless GETDATE has datetimeoffset type, then you should be ok.)
@blakeyrat said in Keeping track of statistics about a web server?:
Is that better than what I have, or just less code (but the same operations occur)
Main difference is that you'll have only a single Dictionary operation instead of 3. I've seen enough perf problems where cutting down on the number of Dictionary lookups improved perf significantly.
Even changing
if (dict.ContainsKey(...)) entry = dict[...];
to a simple
dict.TryGetValue(..., out entry);
Would reduce the lookups to 2 (in your original example). Changing the struct to a class would allow you to reduce to (usually) just 1 lookup: if (!dict.TryGetValue(..., out entry)) { /* adding to the dict is rare */ dict[...] = (entry = new CacheHitEntry());}
.
Or a localhost deployed kafka queue or ravendb 4 instance (we use the former in one of our systems, and I read good reviews on the latter).
If your persistence service is on localhost then networkoverhead isn't a big factor (but serialization overhead might)
Does the problem go away if you add a .ToList()
after the .OrderBy()
? A Dictionary is not threadsafe, so if a thread is assigning the otherThing
while the view is updating you could well get into this behaviour, I think.
@Onyx said in [Linux] Finding the correct HID device path from /dev/input/by-id/xxx ?:
Run readlink on that file and capture its output (because there's apparently no way to read symlinks on Linux from the code itself
Have you tried using Mono.Posix ? It has a Syscal.readlink(path) that pinvokes into libc for you. It might be easier than scraping text output from a child process.
@bobjanova said in What questions should I ask in an interview with a technical person?:
if people care too much about that it implies they don't care about more important things
They might just be nanoHitlers that care about everything.
If the code reviewer is able to state anything about code formatting, then in my opinion you've f*cked up your development process. There are tools to ensure consistency, there is no reason you should be able to .