|
In fact, you are right and I was wrong
It is
C(N,k) = N! / ((N-k)! k! )
with k=2 .
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Even the best slip up sometimes
It also depends on whether you count the AA, BB combinations, I think not in this case, but if so then it would simply be N+N(N-1)/2.
Either way your are still correct in that no factorials have to be calculated!
|
|
|
|
|
You may find this useful: Permutations, Combinations, and Variations using C# Generics[^]
I use his code in a couple of projects, and the explanations are pretty good.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Ah thanks
Real programmers use butterflies
|
|
|
|
|
|
I know someone out there would buy this.
The password keyboard[^]
The Password Keyboard™️ Enter your password in record time with complete accuracy. We all know the feeling of messing up a password and starting over. With our super compact keyboard, simply type your password and only your password. Choose an ultra secure 8 character password and start tapping down the line. The integrated LEDs will alert you when you somehow still screw it up.
[Edit] Fixed link.
"When you are dead, you won't even know that you are dead. It's a pain only felt by others; same thing when you are stupid."
Ignorant - An individual without knowledge, but is willing to learn.
Stupid - An individual without knowledge and is incapable of learning.
Idiot - An individual without knowledge and allows social media to do the thinking for them.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
I know someone who would throw that across the room every time "it screwed up" her password ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi All,
Looking at the Daily News Win 11 has leaked (?), Sorry but 'Huh? ' Win 10 was the last Windows released constant updates that you may or may not want, your PC being controlled from Redmond... I am amazed it took this long, Win 10 is not too bad (it does have the moments but mostly is well behaved) I'm guessing the connect via web to the mothership is causing the problems, At least it is not as dependant as a Chrome book. But...Come on... who drank the cool aid of the last version of Windows (hardware changes too much to release one OS wipe your hands and say 'That Done')
|
|
|
|
|
Meh. I like how Apple does it. I just get free updates.
|
|
|
|
|
Christian Graus wrote: Meh. I like how Apple does it. I just get free updates.
Provided you keep buying new hardware. I haven't been able to upgrade the OS on my old MacBook Pro in years. In that sense, I'd rather stick with the Windows model.
|
|
|
|
|
I have a super old iMac. One assumes you stop getting offers when it will kill the mac
|
|
|
|
|
...which is totally at Apple's discretion. They regularly leave their own users behind on a whim. "Buy new hardware" is always their solution.
I can still install the latest version of Windows on systems that are way too old to be appropriate for it. It shouldn't be done, but the decision is mine.
|
|
|
|
|
|
And, it's going to be pushed to you in the form of yet another automatic corruptdate. Whether you want it or not.
net stop wuauserv
sc delete wuauserv
del c:\windows\softwaredistribution in it's entrity.
|
|
|
|
|
Updates are being pushed out for a reason.
Enjoy your unpatched exploits.
|
|
|
|
|
Make it all clean and clear again ... the way it should be!
1) Right click on the desktop.
2) Select "Personalize" from the pop up menu.
3) On the left of the screen, select "Themes".
4) Under "Related Settings" select "Desktop icon settings".
5) Uncheck "Recycle Bin" and click OK.
Presto! No more icons on your desktop! Ahhhh ...
(You can still open it by searching for "recycle" when you do need it.)
Why under "Themes"? Explains why I never saw it before ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yes, it's been there since Windows 95. I use it on all new Windows installations.
Themes? I guess to save it as an option when saving theme packages as to not interfere with background images. I know back during the Vista years, moving wallpaper was a big thing.
"When you are dead, you won't even know that you are dead. It's a pain only felt by others; same thing when you are stupid."
Ignorant - An individual without knowledge, but is willing to learn.
Stupid - An individual without knowledge and is incapable of learning.
Idiot - An individual without knowledge and allows social media to do the thinking for them.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
Disabling and hiding that (and all other desktop icons) is one of the first things I always do with a fresh install.
|
|
|
|
|
I stumbled upon this article: The coding language used by the most elite developers in finance | eFinancialCareers[^]
I've never heard of K or Q, but apparently programmers of the languages are earning £1k a day in London
Another great earner is OCaml, a language I have heard of because F# was influenced by it, which earns you $200k + a $100k sign-on bonus + a $100-$150k performance bonus.
That's $400-$450k in your first year and $300-$350 every year after, or also about $1k a day
This is a forum with almost 15 million users... Does anyone here know any of these languages (that is, be productive in it)?
If you know someone who knows someone (heck, who knows someone) who uses K, Q or OCaml, I'd be happy to know too
Really, just out of curiosity, not really looking to land a job in finance with any of those languages.
|
|
|
|
|
I know people doing around 300K on plain old C++ and not in financial industry.
A few thoughts about those salaries in fin services:
- if you put them in perspective, as percentage of company's earnings, they are paid peanuts.
- up to a point the choice of language increases productivity but in the end any Turing complete language can do any job. Why would you choose only one esoteric language is beyond me.
- financial industry is not a paragon of intelligence. 2008-2009 crisis springs to mind.
Mircea
|
|
|
|
|
Thanks for not answering my question
Mircea Neacsu wrote: Why would you choose only one esoteric language is beyond me. According to this article, because some lead dev liked the language.
Also, I do believe a language like OCaml, or F#, makes it harder to make certain mistakes in your code.
Mircea Neacsu wrote: - if you put them in perspective, as percentage of company's earnings, they are paid peanuts. Salaries aren't usually based on what a company makes.
Or maybe they are, but based on the lowest charging company.
If company A makes $1.000.000 a year and has ten employees, which it pays $90.000 each (saving $100.000 for the owner), then company B can pay $100.000 and get all the best employees, even if they make $10.000.000 a year (saving $9.000.000 for the owner!).
Roughly said.
In this particular case, you're not going to earn more than $300k anytime soon as a developer, even if your boss makes a 100 times what you earn.
Mircea Neacsu wrote: - financial industry is not a paragon of intelligence. To be fair, neither is the IT industry! A whole lot of examples come to mind
|
|
|
|
|
Sander Rossel wrote: saving $9.000.000 for the owner!
I get what your saying but the company gets 9 million, not the owner. IF the owner is like most owners, they will actually pocket <= to the developer, probably, putting everything back into the company, etc.
|
|
|
|
|
Depends on the company structure, but if you're making 9 million and the owner gets it all you're doing something wrong
It was an oversimplified example, of course, to make a point
In real life, other factors will play a role as well, such as company car, laptop, pension, commute, company culture...
Take Amazon, one of the largest and richest companies in the world, with the richest owner in the world, but employees are treated like Chinese sweatshop workers.
If people are desperate enough for a job, they'll take anything, apparently.
|
|
|
|
|
Perhaps the company gets the 9 million rather than the owner because of the tax implications for the owner - his wealth is better influenced long term by the capital growth of the company. Other than the tax dodge - I'm not sure that the difference is significant.
|
|
|
|
|
Sander Rossel wrote: I've never heard of K or Q, but apparently programmers of the languages are earning £1k a day in London
Another great earner is OCaml, a language I have heard of because F# was influenced by it, which earns you $200k + a $100k sign-on bonus + a $100-$150k performance bonus.
That's $400-$450k in your first year and $300-$350 every year after, or also about $1k a day
...
Really, just out of curiosity, not really looking to land a job in finance with any of those languages.
Why not?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|