|
I did. There are 18 instances of Activator.CreateInstance in the code. How else do you think a generic(a product) unity container can work?
I am really curious if there is a way since I use a lot of IOC in my code.
|
|
|
|
|
So this morning I'm testing code I've done for a client to submit property listings to a web service API for inclusion in a popular property sales site, and I notice that a nice little while (true)... loop I've wrapped the API calls in is still in the core code, not the calling code.
I cut and pasted it to around the calling code, and ran the app, expecting my "Hit ENTER to run again, CTRL+C to quit." prompt. Then I was distracted by something, then a bathroom visit, walk in the garden, and some more, before I wondered where my good old prompt was. When I stopped things, I had called the poor (sandbox, not production) web service about 1200 times. Turns out I only copied the loop, not cut, before pasting. But I did cut the code that shows the prompt and waits.
|
|
|
|
|
Well, it's late in the day, we all make mistakes...
At least it was the sandbox, not the production server...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
This was basically the first thing I did today, around 10h00. Haha, yes, I have to send through several OK submissions before they upgrade the client's account for production access.
Their spec notes, "we also noted that we received almost 300k method calls that failed valid business rules", but on the sandbox this morning I found one business rule they weren't aware off: All image URLs must have a ".jpg" extension. They are fixing tomorrow.
|
|
|
|
|
Copy & Past coding?
You copy something but then when you try to paste it you get something you copied 5 years ago instead.
|
|
|
|
|
Oh, have I ever seen that phenomenon on this project. I use Foxit Reader for PDFs, and it really does the job well, except that CTRL+C doesn't copy! And I've been coding off a PDF spec, copying and pasting field names etc. Just a few days ago I was doing it about every twenty seconds. Copy from PDF, paste in code, change in code and copy and paste elsewhere. "Copy" from spec and paste last time's code instead of spec value.
I thought I was going to have to get violent with myself to end the pain.
|
|
|
|
|
A couple NFL (American football) teams are playing in London this weekend. A few others have already done so in previous weeks. There is talk over here about starting a new team (or re-locating an existing team) in London permanently. My question to the fine folks from the UK who frequent the Lounge:
Do you believe there is enough legitimate interest in American football in the UK for a London franchise to be successful?
I know this is probably asking the impossible but please try to refrain from the obligatory cracks about how "it's not football if they use their hands", "our football is a real sport, yours sucks", "they're all candy-asses compared to rugby players", etc... Not that such comments aren't true or sometimes even humourous but I'm hoping for at least one honest opinion on my question.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
It sounds like a scare tactic -- "You hooligans! Behave or we'll make you watch this!"
Did you also know that some MLB games were played in Sydney this year?
|
|
|
|
|
PIEBALDconsult wrote: Did you also know that some MLB games were played in Sydney this year? I did not know that but baseball is a whole other matter. Baseball is already very popular in Southeast Asia and Central America - American football is still rather unique to North America.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Mike Mullikin wrote: American football is still rather unique to North America
Actually, American football is unique to the USA. Canada has Canadian football, which is similar(*), and some Mexico schools have American football teams, but no college (that I am aware of) or pro teams.
(* Canadian football has 3 downs instead of 4, the field is wider and has a 55 yard line instead of 50 and many of the minor rules are different. Since Canada is now metric, I'm surprised that the game hasn't done so as well...)
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
Yeah, I consider American football and Canadian football close enough to be considered the same for this discussion.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Like Rugby Union and Rugby League?
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Fighting words.
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?
--Zachris Topelius
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
|
|
|
|
|
|
Yes I believe there is.
There is a growing and very devoted fan base. We generally have to stop up to two in the morning to watch the Superbowl so we don't get put off easily.
I know quite a few who have been to the Wembley games now, and I'm hoping to do so soon.
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
chriselst wrote: two in the morning to watch the Superbowl
Personally, I don't watch football (either type actually), but having "the Big Game" descend on your town is no picnic either. (Only a first world problem of course.)
|
|
|
|
|
I've started to get in to this. I watched the post season last year and have watched games from this years regular season most weeks.
Do you support a team? Struggling to decide who I like, thinking that if I do choose a team it might take some of the enjoyment out of it as now I just watch good games with no investment in the result. Don't think I have enough attachment to truly support a team anyway.
|
|
|
|
|
I'm sure it'll come as no surprise to you that I support the Rams, LA as they were and St Louis as they are now.
I've been into the game since I was a kid when it was first on Channel 4, then when I went to university I played for 3 years so I know a lot of people who are in to the game too.
When you understand it I think it can be a fascinating game to watch, when you don't then it makes no sense at all.
From a playing perspective (and I have played most team sports to some degree or other over the years) it is by far the most physically and mentally demanding thing I have ever done.
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
chriselst wrote: I'm sure it'll come as no surprise to you that I support the Rams,
Of Course didn't think of that.
chriselst wrote: LA as they were and St Louis as they are now.
Confirms what I was suspecting recently, that the teams are franchised and therefore can move City.
chriselst wrote: When you understand it
I'm getting there, I mean I understand most of it, though I still pick up one or two new vague rules each week which adds to the enjoyment. I agree it's fascinating. I'm often Stoned when I watch it and it's a good sport to just mong out too.
chriselst wrote: From a playing perspective (and I have played most team sports to some degree or other over the years) it is by far the most physically and mentally demanding thing I have ever done.
I remember you posting this awhile back in one of the endless Anglo-American Football debates that crop up here regularly, I often think about that when watching it and can see how right you were. There's no respite at all for the players on the pitch and if they let their player go for one moment, whether that be through Physical weakness or mental lapse, then they get punished.
|
|
|
|
|
I think one of the things that makes it unique amongst team sports is that there is no place for a rest at all when you are on the pitch. Each and every play all 11 on each side have something to do, a move to make, a block to make, a run to make, and if you do the wrong thing then the whole play breaks down.
When we played at uni (I was an offensive lineman) we had 30 second play clocks so when the whistle was blown for the end of the play you had 30 seconds to get back to your huddle, get the play from the QB which was in the form of a code, get the snap count from the QB, remember what you had to do for the play from a play book that ran to several pages, get to the line of scrimmage, get properly set, then wait for the signal to move. Move slightly early and you give away a penalty, move slightly too late and there is a very good chance that your man will be past you. Move into the right position, different for a pass to a run, or for a fake play, or move somewhere else if it is a stunt play, engage your man and then fight him until the whistle goes again. He is trying to get by you towards the man with the ball, you are either trying to stop him or trying to move him out of the way to create a gap for the running back to go through.
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
There used to be an american football league in Europe but it was not successful.
http://en.wikipedia.org/wiki/NFL_Europe[^]
IMO, having a London based team (6 hours away from its closest competitor) is not a good idea; distance and different time zone would kill TV audiences in Europe (and TV is how NFL survives).
I'm all for 2, 3 games per years in different countries; it makes a nice show.
I'd rather be phishing!
|
|
|
|
|
Maximilien wrote: IMO, having a London based team (6 hours away from its closest competitor) is not a good idea; distance and different time zone would kill TV audiences in Europe (and TV is how NFL survives). Certainly a concern. I wonder if delayed broadcast or DVR use would mitigate the problem.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Maximilien wrote: TV is how NFL survives
In fact, that is how the NFL thrives and keeps expanding. The activities on the field and frequent stop action are quite convenient for commercials, beer and bathroom breaks.
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
We all know that football is the correct term for what we know as soccer and Europeans can't call american football "football". So, what would you call it then?
|
|
|
|
|
Let them call it... Lompas.
Large Overpaid Men Pushing And Shoving
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|