The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Do you really think you need to check the item for null here? It is, after all, a list of <T>, so no item in the list will/should be null (unless you're doing some really weird stuff in terms of removal).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 - You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 - When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
Useful code, John, thanks ! Also a great discussion, the kind I most enjoy.
I second Kevin's suggestion you write this up as a tip/trick.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
As was pointed out in the comments, BITS wasn't fooled. A program with admin access told BITS to do something and it did it. Once you have admin/root access, any accusations of compromise are specious.
So I'm staying in an Extended Stay hotel while I work on a project for client.
Last night at 11:30 I was awoken with "entertainment" from the adjacent room... bed banging the wall, loud expressions of... well you get the idea..
So half an hour into this I decide to call the front desk. It's midnight at this point and I have to work in the morning. So I explain what's going on and the woman at the front desk says, while laughing, "Well we won't charge you for the entertainment package. I'll go up and talk to them". She never did.
Eventually, since all good things must come to and end, they stopped.
until 5:30 this morning when they woke me up AGAIN. Same thing.. bed banging the wall, woman going off.
My worst: A night in a hotel "up north" before a big meeting the next morning.
Midnight and I'm woken up by a huge amount of noise - it sound like someone is running a bunch of Pneumatic drills[^] outside my room. I look out the door - the corridor is clear (but noisy).
I look out the window - nothing.
I call reception.
"Ah. We're remodelling the hotel."
"Oh yes! It's so we don't inconvenience the guests..."
They moved me to a new room on the opposite side of the building, and I didn't get a bill...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Had the same thing happen to me on a cruise, only there was a lot of yelling and furniture being tossed prior to the "rendezvous." After several hours of this, I went next door and banged loudly on their door. It got deathly quiet, and there was no more noise until the next morning, which was departure day. That cabin's occupants were being escorted off of the ship.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Were they wearing complementary stainless steel bracelets from the local police?
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
I don't understand why you would want to refuse?
Windows 10 is working fine for me - and for the silent majority out there.
If you have issues with 10, my heart pumps chocolates for you [evil cackle!].
Get me coffee and no one gets hurt!
Last Visit: 31-Dec-99 18:00 Last Update: 18-Jun-21 4:56