|
My wife is Greek, I don't get that excuse.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
/ravi
|
|
|
|
|
Are you suggesting that you understand your wife??
I think a lot of people would be happy if you would give them a course in how to achieve that!
|
|
|
|
|
Over the years I've picked up enough to know when I'm in the dog house, usually said when she's talking to her mother.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Bob is celebrating his discovery that, in firefox browser, on the CP webpage "Spam and Abuse Watch", setting his "Spacing" to Relaxed then "Layout" to Open then refreshing, gets his list of spammers and abusers in full flare mode ... that way he can contextually right-click using his mouse and select "Take a Screenshot" to capture an arm's-length facsimile of his display window for copying then pasting in his image processing software as a data reference for future dispatch.
|
|
|
|
|
RedDk wrote: he can contextually right-click using his mouse Which is made slightly more difficult by the fact that he's down a couple of fingers due to his less than safe habit of holding onto fireworks as they explode.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
True story:
Dad stored some firecrackers in a moving box in the attic (I know, right? Hot/going off/burning down the house/etc?) and when I was 8 or 9 I found them. And I stole a few packs, as I recall because there were actually quite a few of them, reasoning that they'd never be missed. And, being in cohutes with the local gang of kids my age decided this discovery was not only cool but lucrative so I decided to sell some and, as I recall others actually bought them from me.
One morning, at the busstop, standing among about a dozen kids waiting to be picked up and driven to school, some packs made an appearance ... then a match or two ... and suddenly firecrackers were going off. In the ensueing audible melee the flicking of the lit firecracker culminated in one sizzling and blue-printed (one doesn't forget things like this being the active flicker) landed on this girl's shoulder ... r-i-g-h-t ... u-n-d-e-r ... h-e-r ... E-A-R! For some reason, perhaps deus ex machina perhaps her quick reflexes perhaps someone elses quick reflexes I don't recall exactly, the firecracker ended up on the ground before it detonated.
I came this close to paying dearly for blowing off someone's ear if not at least permanently deafening them. Which, now that I think about it, could never top doing something as heinous as the other thing that almost happened around that same time in my life, growing up ...
|
|
|
|
|
While not a firework story, when I was 8 or 9, my best friend found a .22 blank cartridge. We looked at it closely and in our infinite pyromaniac wisdom thought if we held a match to it, that it would 'fizz', like when you break a firecracker in half and light the exposed gunpowder. Well that didn't exactly happen, it exploded about 18 inches away from our faces. Somehow, the shrapnel did not hit our eyes. We were picking small bits of metal out of our arms for a couple of days. Never had a yearning to play with fireworks after that...
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: shrapnel did not hit our eyes Technically, not schrapnel, but nails (in the leather pocket of a Wristrocket) released and flying downhill across the slope of a hill for about 50 yards through trees and such ... make such a sweet singing noise ... oops. (PHEW! (more than deux))
|
|
|
|
|
Ah, the sheer amount of luck we experience sometimes (mostly seen in hindsight)!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I was one of those kids that took apart everything I could get my hands on, to learn how it works.
My father, being a pragmatic man, realized it was only a matter of time before I started to fiddle around with more dangerous stuff, decided to teach me how to handle explosives and guns in a safe way.
In hindsight that was probably one of the best decisions he made.
|
|
|
|
|
My dad, though a marksman in the Marines, didn't like guns. He just happened to be real good with them. We never had a gun in the house, I didn't know a cartridge from my a$$. I was extremely fortunate not to be seriously injured that day.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I have a coding problem that is hard to solve
Given an array of positive integers arr[900, 800, 700, 600, 500, 90, 80, 70, 60, 50, 9, 8, 7, 6, 5, 4, 3, 2, 1] anda sum 3400, find all unique combinations in the arr[] where the sum is equal to 3400. The same repeated number may be chosen from arr[] at most 5 times or thereafter x times-multiple(number), or excluded if not possible. Elements in a combination (a1, a2, …, ak) must be printed in non-descending order. (ie, a1 <= a2 <= … <= ak).
The combinations themselves must be sorted in ascending order, i.e., the combination with smallest first element should be printed first. If there is no combination possible the print "Empty" (without quotes).
Examples:
Input : arr[] = 2, 4, 5, 6, 8
x = 10
Output : [2, 2, 2, 2,2]
[2, 4,4]
[4, 6]
[5,5]
the challenge in this problem is to list the numbers or exclude them for the large sum when there is small numbers like 2, 4, 5
modified 1-Feb-22 10:19am.
|
|
|
|
|
Hmmm, it seems homework hasn't changed much over the years.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Even if you were to post this in a the correct place, we won't do your homework for you.
What about [ 2 , 2 , 2 , 4 ] and [ 2 , 8 ] ?
Where did [ 4 , 6 ] come from?
|
|
|
|
|
PIEBALDconsult wrote: Where did [ 4 , 6 ] come from?
Maybe that is what makes it "hard to solve"?!?
Because the OP clearly understands the problem (as demonstrated by the rest of the example). Or maybe I am the one not understanding something 
|
|
|
|
|
yah! focusing on the example to get a hint is a way of the novice, good try!
|
|
|
|
|
I think 2+4 is 6, from [2,4,4].
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Its an example.....recursion and backtracking would ring the bell not loudly!
|
|
|
|
|
That's not how coding specs work.
|
|
|
|
|
Questions about programming should be posted in the Q&A section for the language required.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Normally we'd point to the Lounge Rules post at the top of the page, but it's missing.
Where'd it go?
Also dude, if you don't have the mental determination to work out your own problems, I'm not sure that this would be the career for you.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
This is a valid discussion topic; I didn't post the codes here.. I don't claim to be the master of the art...and about mental determination how about you come up with your own coding reality instead of learning others' work and boasting to be its master...
|
|
|
|
|
I've always been a big fan of Microsoft's original Intellimouse from decades ago. When they stopped making them for (IMO) worse models, I feared the day my last one would die. Fortunately a few years ago MS has started making them again - same shape, same feel, same buttons in the same location. This is all important to me, so I figured I'd be smart and buy enough so I have a stack of spares that would outlast me. Given how long the previous ones lasted, I figured I'd have plenty buying a set of 5 of them. That was probably 3-4 years ago.
This morning I've switched over to my last spare.
There's 2 that are hooked up to systems I use constantly.
Of the three that went bad:
- One suddenly had the pointer stuttering - jumping all over the place - on both X and Y axis.
- The other two - including one I replaced this morning - has had the scroll wheel go bad. I'd scroll down one "tick" (if you wanna call it that), it would do it but then scroll back up again by 2 or 3 ticks. Incredibly annoying when you're trying to read through - well, anything that need scrolling through.
I'm unimpressed. I'll (eventually) take the time to open them up and clean them as best I can, but none of my (much) older generation ones ever even needed any sort of cleaning. The last one lasted longer than this entire set I bought all at once.
Not seeking any response. Just saying I'm annoyed at buying multiples of something that should outlast me, and turns out all need to be replaced after such a short amount of time.
|
|
|
|
|