@heterodox said in I dunno...passports or something:
Well, you couldn't have two personal passports.
@heterodox said in I dunno...passports or something:
Well, you couldn't have two personal passports.
@pie_flavor said in Look, I changed the title now:
It takes you two seconds to learn the abbreviations,
And when looking at a language I do not regularly use, that "two seconds" really multiplies into (potential) comprehension issues [I have 120 seconds to look at 100 lines of your code]
@dangeRuss said in Neighbor WTF:
If she really wanted to, could she have gotten the letter from the post office? Probably. Should she be faced with that burden? I don't think so. When people take you to court they make sure that you are served with the papers. If the landlord wanted her to receive the letter, he could've hand-delivered it or have the super do it. She should not be forced to go out of her way to the post office to pick up said letter.
Check the lease documents. In many jurisdictions part of the lease is what constitutes legal notice, and in many cases a certified letter to an approved address is sufficient.
IF that is the case, it may be appropriate to change that address to something that is monitored frequently
@Zecc said in Suggest appropriate goals for a super-basic Python class (HS level):
@dfdub said in Suggest appropriate goals for a super-basic Python class (HS level):
dependency inversion
We no longer call it that. (inb4 "who's 'we'?")
"Dependency injection" is a better name.
Actually, "Dependency Injection" (both Constructor injection and Property injection) is simply one method of achieving "Dependency Inversion".....
@ScholRLEA said in Not Dates, but Hours:
I have to rebuild every time I access this not-a-variable?
In many cases, that is actually the correct paradigm.... If the list is easy to create and the lifetime of the outer object is long, then keeping the values in a field will increase pressure on the GC for the entire duration.
@xaade - Just look at the "I" in SOLID....
Retention Policy depends on data content. 15 years is about the maximum I regularly see.
@admiral_p - So many words where the current meaning has little (if anything) to do with the original.... Taking them literally [according to first definition) can be fun.
Best ever EULA was HavenTree Software [Interactive EasyFlow was one of their popular products] back in the early 1980's...
The guts were.... "Violate this and the HavenTree Shark will attack you, and your conscience will haunt you"
If you want integers....
[Serializable]
public enum EnumToSerialize
{
[XmlEnum("1")]
One = 1,
[XmlEnum("2")]
Two = 2
}
@PJH said in Branching is bad, use feature toggling instead!:
The following March...
Refer back to my previous post... Once the code was structured to use Feature Flags, the posted code would not need any edits "two months later" and probably not even "the following March"
@dcon said in Branching is bad, use feature toggling instead!:
Ugh. I wouldn't even want to do that when I'm the only one coding, let alone trying to coordinate that shit with other people.
We have to do that. Because how else are we going to A/B test it?!? Of course, that's developed in a feature branch.
The 5 principles of SOLID go a long way. The inlint part of the code:
var invoiceProcessor = Factory.GetInvoiceProcessor(…);
invoiceProcessor=>DoStuff();
Now we can centralize the conditional (perhaps database driven) code to return the "right" class based [DIP] on the current enabled feature set. If the interface that is returned is minimal and focused [ISP] the operations that can be performed will be small. If the implementation is such that the implementation class is minimal and well encapsulated [SRP] then overlap will be minimized. Since a new capabilities are added by new concrete implementations, the existing implementations do not need to be changed [OCP]...
@Tsaukpaetra said in Hmmmmmmm - part 391 VS Code suspicious amounts of memory:
The fuck???! How come nobody told me Visual Studio supported Python? The most recommended "IDE" still mostly amounted to a plain text editor with keyword coloring and brace matching!
Well, only since VS-2010..... Perhaps you are still using VS-2008??????
@Deadfast said in Branching is bad, use feature toggling instead!:
@JazzyJosh I have an excellent example of how this looks like in real life courtesy of a legacy code base I used to work with (thankfully not too much!). In this case preprocessor macros are used to toggle the "features":
Those are not feature toggles... (The big hint's are that you can not change them at runtime, nor can you expose different features to different users of the same executable - concurrently)
@The_Quiet_One said in Branching is bad, use feature toggling instead!:
How the fuck does this reduce conflicts? It will make conflicts even MORE confusing and possibly even go missed. If I'm working on the new feature on the "if true" block, and someone changes something in the legacy code that's in the "else" block which I should have ported to my new feature, then GIT IS NOT EVEN GOING TO REPORT THAT AS A CONFLICT! Communication is great, but it isn't foolproof.
Your Build Verification Tests should catch that. :)
@pie_flavor said in Branching is bad, use feature toggling instead!:
@TheCPUWizard Rust, of course, has this functionality built in.
I checked the docs [https://doc.rust-lang.org/unstable-book], and could not find that; but5 it really does not matter.
Feature Flags go far beyond annotations at the line/block of code level. Consider a "server" type application. All users in Geography "A" should see "Feature 101", All "Early Adopters" should see "Feature 102".... DYNAMICALLY determined on a per request basis!
If you (or anyone) is interested, spend some time with https://launchdarkly.com/ to get a feel as to where this can head.
Feature Flags can easily become a nightmare, but when done well (which requires a good design) they are AWESOME. One team I am working with pushed out a new version of production code (public facing commercial with financial aspects) nearly every night (about 4% of the time an issue is flagged, but 96% of work nights is pretty darn good.
They can then turn the various features on/off based on many different criteria. This allows for A/B testing, Staged Rollout, Effective Rollback, all with a single code base.
@loopback0 said in Hmmmmmmm - part 391 VS Code suspicious amounts of memory:
But it'd be considerably quicker, so in theory the $120 pays for itself in extra productivity fairly soon.
Using standard median loaded labor rates for developers in the USA, "fairly soon" is well under 90 minutes....
@anotherusername said in Yet another weird question:
@blakeyrat said in Yet another weird question:
@Gąska Roughly 50% of the machine's RAM is occupied by its ROM.
Unless you turned off the ROM mapping...
And slowed things down massively in many (most) cases. Quite often the ROM were extremely slow (as slow as 650nS)
@Tsaukpaetra said in Desktop as a service, the future of Windows:
and a CAL (to my knowledge, at this point) is merely a piece of paper saying yes, indeed, you spent money for this certificate that says you have a CAL.
In most cases yes. However it is possible [i.e. the infrastructure and API's exist] to count the usages of items, allocate/release CAL's as appropriate and deny access if there is no free CAL.
However this is VERY rarely used.
@boomzilla said in Desktop as a service, the future of Windows:
@dkf said in Desktop as a service, the future of Windows:
@TheCPUWizard said in Desktop as a service, the future of Windows:
I am not sure how something that is documented can be considered "hidden".
When the documentation is “in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying ‘Beware of the Leopard’” (a.k.a., it's somewhere on one of MS's sites but they keep changing the URL) it's pretty much considered hidden by any reasonable person.
Bah! Everyone knows the only way to read MS documentation is to
Fixed
@HardwareGeek said in Desktop as a service, the future of Windows:
@TheCPUWizard And Windows again hid the option to hibernate. It's now the default action for closing the lid... Until Windows Update disables it again.
It's not like sleeping instead of hibernating is a bad thing, per se — my battery isn't dieing overnight, like a previous laptop — but if I enable hibernation, don't mess with my settings!
I am not sure how something that is documented can be considered "hidden".
Hibernate has always had (and IMHO with current architectures - always will) have certain issues and considerations that are beyond the comprehensive of the mean (or median, take your pick) average user.
@HardwareGeek said in Desktop as a service, the future of Windows:
the laptop doing things when it's supposed to be asleep
That is how they are designed. "sleep" is not "dead", nor is it "hibernate". The OS (and applications) are still running. Some self suspend (if they handle the notifications) but others (usually services) are quite active.
There are still some "interesting" edge-cases out there [not necessarily related to Microsoft]. One project I was working on got killed (and would have made some significant income).
The EULA for the packages in question were free to "download, install, AND use". However the language made it so if person A downloaded, then person B installed, or person C used - it was a violation. All three elements had to be done by the SAME person.
@HardwareGeek said in Desktop as a service, the future of Windows:
At 22:26, my laptop was locked in a drawer, presumably asleep, and I was at home playing Skyrim. I was certainly not giving a presentation.
Are the machines both associated in any way with the same Microsoft [or AD or AAD] account????
@Deadfast said in Internet access in rural America and StraightTalk Wireless WTF:
@swayde said in Internet access in rural America and StraightTalk Wireless WTF:
@Polygeekery doesn't your engine have a knock sensor?
Iirc most modern cars can use almost any octane, with reduced effiency.
Fake edit: seems I'm wrong: https://oppositelock.kinja.com/the-real-impact-of-using-wrong-fuel-octane-1785829176Within reason. The manual will state the minimum octane rating. It should also state the maximum octane rating it can take advantage of. There is absolutely no reason to go any higher, despite what a lot of people think so. No, your 15 year old Camry isn't going to get any faster/get better fuel economy if you put 98 in it.
True, but it will almost certainly burn hotter which can have an impact [positive or negative]
@Onyx said in Internet access in rural America and StraightTalk Wireless WTF:
@Gribnit said in Internet access in rural America and StraightTalk Wireless WTF:
@Polygeekery That's how I learned to swim!
On the other hand, that's the way I got pretty much the only real fear I have, which is deep water. The fact that the person who threw me in was not a family member or something but a random asshole might've also been a factor.
I am a scuba diver. Normally I dive in water where the bottom is visible, but far far below the safe dive depth. If I go into an uncontrolled sink, I will (almost) certainly die, but they will (likely) find the body...
A few time I have dove where the bottom was completely out of reach (say 1000M). A sink here would surely mean they would never find my body.
For some strange reason that made me nervous, despite there being no meaningful difference in the odds of having such an event. The human mind is strange....
@TimeBandit said in Desktop as a service, the future of Windows:
@sloosecannon said in Desktop as a service, the future of Windows:
Yep
For now
Microsoft WILL eventually stop selling Office and Windows. In fact, Microsoft will eventually cease to exist. Given time, Earth will cease to exist.
What is the point???
@ApoY2k said in On-Premise package server mirror:
@TheCPUWizard said in On-Premise package server mirror:
"License Hostage"
I think I know what you mean, but I'm not too sure. Can you elaborate?
Nearly every package is convered by a License (either explicitly or implicitly). So a software company writes a license that says "if you use this you must give us access to all your software" [or some such]. They also bury in "phone home code"....
Developers never read the licenses [nor are they usually lawyers]….
Time passes and the company gets a legal demand letter [one actually filed with a court] and the option to settle for some amount of money. The cost of a legal defense is likely to be more that then amount for a settlement, so the company merely pays.
This is wrong/immoral/evil/et. al. but multiple courts have judged it to be perfectly valid from a legal point of view [most cases are being appealed].
One risk that often will tip the balance for management I the "License Hostage" issue. I have encountered it directly with 2 different packages that clients were using (fortunately both escaped the trap - others have not been so lucky).
@Gąska said in Windows Update removed my Home Group:
@parody said in Windows Update removed my Home Group:
@cheong said in Windows Update removed my Home Group:
@loopback0 said in Windows Update removed my Home Group:
@polygeekery said in Windows Update removed my Home Group:
Do you even have the option of not installing an update?
It's a feature release not a normal update. I had to tell it to do so rather than it just doing it itself.
Not for me. I installed it as normal update last night.
Feature updates will install with the other updates if you don't have a known hardware conflict
I have a known hardware conflict. Busted GPU. Always hangs up mid-update. Had it happen like 30 times already. Tried every method I could to prevent it. Revoking the SYSTEM user permission to access certain C:\Windows subdirectories worked for like two months, but it's updating again now. Thankfully it's summer break and I don't actually need that laptop until September.
Did you try replacing things so you have working hardware???
@dkf said in MessageBox:
@blakeyrat said in MessageBox:
It shouldn't. Even libraries that GUARANTEE GUI availability (say, WinForms) shouldn't dictate how their clients express errors.
I sort of agree. I certainly agree that clients of the library should be able to say exactly how they want to express errors, but there are cases where it's acceptable to provide a default mechanism (provided it is easy to override, of course) to avoid the other case: errors just getting swallowed with no reporting at all. Which is definitely how some people seem to want to write code despite it being the very worst of the worst of ideas for programming…
Thus exceptions... if the client (aka something up the call stack) does not "do something" the application promptly terminates...
@anotherusername said in MessageBox:
@blakeyrat If there's really no way for the code tell whether it even has a desktop to display its window on (where the user can interact), then that's TRWTF.
What is wrong with System.Environment.UserInteractive
@Zerosquare said in Next Windows 10 major update will use machine learning to "try" not to force-reboot at the wrong time:
@El_Heffe said in Next Windows 10 major update will use machine learning to "try" not to force-reboot at the wrong time:
It's my computer. Microsoft needs to piss off and mind their own business.
The usual counter-argument is "but average users would never update their systems otherwise, and their machine would end up in a botnet!".
Which is stupid, because you can fix this by leaving mandatory updating enabled by default, but providing a way to disable it in the advanced options. Average users won't look there, and real power users know enough to keep their machines up-to-date themselves. Self-proclaimed power users will disable it and get bitten, but they have a hundred ways of shooting themselves in the foot anyways, so it doesn't matter.
(and if users hate updates that much, maybe, just maybe, you could think about how it ended up like that. Just sayin'.)
Also it is not "your computer" if you are connected to the Internet. A failure to update increases the risk of malware, which allows it to HARM other peoples computers. If you don't want to keep a computer system up to date, then don't put it in a scenario where you can harm others [i.e. a disconnected computer will never see the need for any updates, hence never prompt or reboot]
Hugo's House of Horrors - about $6 USD... One of my all time favorites (for personal raisins). Definately not a "modern" style game though.....
@sockpuppet7 said in Google launched something called knative, but it's website won't tell you what it does:
@cvi it has servers in the cloud, but what server will run your code, that you upload as separated functions, is abstracted away
That is sort of close (proximity is dependent on interpretation of "abstracted").
Consider that when you run a simple VM you your not necessarily aware what PHYSICAL server your VM is running on, but you are acutely aware of what Server Operating System is in play, because you actually have it installed in the VM.
With Containers [I am going to be a little loose there to prevent this from being pages long] the OS itself is external to the containers, but still has significant impact on what is inside the container.
With "Serverless" that is (or at least should be) completely gone. There is just your code along with a set of "libraries and services" (usually represented as some type of API) to consider.
Clearly the code is executing on some physical computer [server] somewhere, and that machine is running (directly or indirectly) some type of system to operate, but [when done correctly] there is zero exposure to what is typically considered OS or Server capabilities.
@blakeyrat said in Google launched something called knative, but it's website won't tell you what it does:
@thecpuwizard said in Google launched something called knative, but it's website won't tell you what it does:
NO.
CPU WIZARD HAS SPOKEN.
Merely being succinct and providing a direct answer. Explanations/Details/etc. were not asked for, so not provided.... [plus I was deliberately being a PITA for raisins].
More than happy to provide more information to support either or both of my previous responses. :)
@Luhmann said in Google launched something called knative, but it's website won't tell you what it does:
@loopback0 said in Google launched something called knative, but it's website won't tell you what it does:
serverless
So ... It's only Cliëntside?
NOPE
@cvi said in Google launched something called knative, but it's website won't tell you what it does:
@loopback0 said in Google launched something called knative, but it's website won't tell you what it does:
serverless
If I guess that this is an other way of saying in the
buttcloud, would I be right?
NO.
@blakeyrat said in Google launched something called knative, but it's website won't tell you what it does:
@TheCPUWizard I guess it could be useful if you have to go across multiple clouds, but I'm also guessing the interface to it is confusing and God-awful and probably involves lots of manual API calls and JavaScript.
Here is a side by side comparison of different approaches completely with Visual Studio and VSTS for a full automated deployment/release. Primarily make some selections when you create the project and configure a few simple tasks via a UI.
@blakeyrat said in Google launched something called knative, but it's website won't tell you what it does:
Just because you can use Kuberererererrernerer on Azure doesn't mean you should or need to.
If you have not tried it, then don't knock it. Heck there are very few things you have to do [death being the primary exception].