« first day (1825 days earlier)      last day (3122 days later) » 

4:59 AM
Hi , any one knows Captcha:CaptchaControl in asp.net .how to check it should allow case sensitive also
 
5:48 AM
I really wish VS had a way to refactor namespace changes
 
@Alex: yep, highly unethical, but still, you couldn't be responsible for what the managers did.
Some other Alex @Alex
:)
 
yeah i noticed i had a tone of mentions
 
It shows both avatars with one username :(
 
I wonder what happens if i do it? @Alex
 
6:40 AM
Hi, I am getting "The request for the Windows Remote Shell with ShellId failed
because the shell was not found on the server"
for getmailbox powershell command in C# .
any idea Why?
 
7:02 AM
awesome. A seal swimming around in the sea outside my office window.
Might even get a sealfie!
 
@scheien I see a swarm of cars :(
 
how do you move code backwards in visual studio
 
'backwards'?
 
yes, like on left side
you select it, then press left - it starts moving left
block of code
 
Oh unindent...I think that's the inverse of indent?
I can't remember the key combination but the buttons are next to comment and uncomment in VS
 
7:12 AM
shift tab?
 
Shift + tab
 
@scheien that's it
 
and auto format ctrl + k then d
 
thank you so much
 
np
 
7:13 AM
@scheien that doesn't help with linq
how can i move it forward now though :L
 
Of course it is. Why could I not remember that
 
Tab?
 
got it
just with tab
thanks again
 
So Safari doesnt obey the html5 validation? That be it supports required but it ignores it on submit. yey!
 
probably not
is Safari even evergreen yet?
 
7:17 AM
evergreen?
 
HI guys
need some C# wpf help
 
AS DB i'm using SQL Compact SDF file and i have a table which contains some data diff ID
can i query that Table based on ID and Split it into Diff table.?
 
What does that have to do with wpf?
What does 'split it into diff table' mean?
 
7:25 AM
SQL and WPF are very similar acronyms..
 
@TomW I think he wants something like Insert into [table] Select ...
 
@BenjaminGruenbaum good point. The word 'queue' implies that it should, doesn't it? But I bet it doesn't...
 
@BenjaminGruenbaum not sure would depend on how many workitems it does in parallel
i would guess it pulls them out in order, but if it takes 3 at a time there is a chance one will finish first
 
@TomW I have no idea. I'd hope so.
@AlexL well, it's possible that it doesn't do concurrency at all - that it just executes them one after the other.
 
7:31 AM
@BenjaminGruenbaum you could test it quite simply
 
Who just created a function that returns Task<QueryResults<List<DomainEntity>>>. Who? Who? This guy!
 
just make a task that waits x seconds and one that waits x - 2 or something and put the longer one in first
 
@AlexL it's entirely possible that in IISExpress it does one thing, it doesn't mean Azure will do the same, and it doesn't mean it'll do the same next week. So really I can't "just test it"
 
I don't know if I'm more pleased or disgusted with myself.
 
@AvnerShahar-Kashtan Meh, I have much worse types than that :P
 
7:33 AM
@BenjaminGruenbaum source code should be available. Chop chop.
 
@TomW the fact it does X in the source code doesn't mean there is an actual guarantee though.
 
It sneaks up on you gradually. You need to return a list of results from several queries, but each returns a different entity, so that's fine. Then you want to return metadata results, like "MoreResultsAvailable" or statistical distribution data, so you add a wrapper QueryResults with the list as the generic payload. Then you want to return it from an async method... before you know it, you're deep down the rabbithole.
 
Yup, looks like it doesn't actually queue anything
 
Happy spelunking
 
@BenjaminGruenbaum what you actually after ?
 
7:37 AM
Impossible to read on phone
 
it calls ThreadPool.UnsafeQueueUserWorkItem in the end
 
You could create one long lived work item that reads from a queue with your own guarantee of ordering
Or observes an Observable<LogMessage> or something
 
i would go with a work item doing BlockingCollection.Take() in a while loop waiting for IsCompleted
just remember to CompleteAdding somewhere when you are done with it and all is good
 
I want to update member's property if any exists, what to do ?
 if (!Members.Any(a => a.eMail.ToLowerInvariant() == am.Email.ToLowerInvariant()))
                {
 
What's wrong with a good old fashioned foreach
 
7:48 AM
@TomW most developer use it, if not started implementing it now, how am i going to understand code of others ?
 
@BenjaminGruenbaum It just runs actions on threads from the thread pool; there is no queue nor any kind of intelligent logic there. You would have to make your own queue, but even then, I recommend against doing so. Running something on a background thread in ASP.NET does not guarantee it can finish its job; your ASP environment can be teared down at any given point whenever your management process thinks it's a good idea.
 
@PleaseTeach It's not because other developers use it, you've to use it :)
 
@Loetn that's not true, what if 90% use it, I will need to deal with it when refractoring
we are in IT industry, you keep yourself updated or start looking for a sweeper job which doesn't change with time :)
 
@RoelvanUden the point of that method is from what I've just read, to provide the strongest guarantee possible given the hosting architecture that the item does get executed. Are you saying you don't think that guarantee is strong enough?
 
@PleaseTeach No, you've to understand what it does, but that doesn't mean that you have to use it.
 
7:56 AM
@BenjaminGruenbaum @TomW To the guarantee there are a lot of "if"s and "but's; like a limited time to complete work and all that. If you have a bit of a queue, or say, a mailing server failing, your ASP.NET environment will not wait for that and just tear down the pool regardless of the state of your tasks or queue
IIS limited time is 30s by default.
Azure, no clue.
 
@PleaseTeach linq is for querying, the clue is in the name. You could use it to get a collection of items to update then loop over those
@RoelvanUden what's the alternative?
 
@TomW I already know that though :|
 
@TomW Hand everything to a service that has a properly managed process.
 
@Loetn sorry but i disagree
 
@PleaseTeach You don't have to be sorry about that :)
 
7:59 AM
@RoelvanUden what would you do then? It's the lowest async thing I can do - log.
@RoelvanUden 30s is way more than enough.
 
@PleaseTeach what do you want? Linq isn't designed to mutate objects and if you read the designers' views they state they made design decisions in places that discourage using it to do that e.g. not including enumerable.ForEach in the main library
 
@BenjaminGruenbaum You specifically stated "We're running an ASP.NET WebAPI 2 service and we want to log some requests with our logger to email/database.". Logging to file is fast enough, you have to be logging like mad to have that be too slow, but it's not at all surprising for your database/email server to have hickups that would cause you to miss reports/logs. I assume that would be a bad thing.
@BenjaminGruenbaum 30s is in IIS by default, check if Azure is different before relying on that
 
@RoelvanUden we log to the trace if a cancellation token is passed in
 
@TomW I agree with that though, you r right
 
@RoelvanUden sending a post request shouldn't be much slower than writing to an azure queue anyway.
 
8:03 AM
You didn't say you were using an azure queue :P
 
@RoelvanUden well then maybe the handoff from the asp.net hosting process to the background process takes an unacceptably long time and that gets killed. It's no more reliable, you still can't guarantee that whatever you're trying to do survives a process shutdown
Even if you do it synchronously
 
I'll hear all about how it was a good idea to run background tasks in an ASP environment after you've had exceptions be sucked up by it
 
I'm not disagreeing with you. I'm saying that avoiding using that particular method is no better than any other method
Bah, words. You know what I meant
 
I know. Still, it's good to differentiate between doing guaranteed fast things and potentially slow things on the background in an ASP environment. It's very important to think about that before you get into trouble
 
@RoelvanUden sending a small http request is usually reasonably fast.
 
8:48 AM
@RoelvanUden If you wanted it "guaranteed" wouldnt you just use some sort of out of memory queue like a redis server or some cloud equiv then just have a process run a background task to deal with the queue. although then you have problems with scaling out i admit
 
HI ,ANY one knows
0
Q: How to allow CaptchaControl not a case sensitive in asp.net(both capital and small character should allow))

MuthuCaptchaControl code like this <Captcha:CaptchaControl ID="Captcha1" runat="server" CaptchaBackgroundNoise="Low" CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="None" CaptchaMinTime...

 
You could fix the scale out problem by having some sort of dedicated worker
Although i dont konw if that would be overcomplicating the problem a little
 
9:03 AM
Morning
 
Indeed it is.
 
Is it?
 
Its always morning
 
just not always in the same place
 
o/
How long has Failsafe been around here?
 
9:15 AM
a number of days, perhaps?
why? do you two have some sort of rivalry going?
Terminology is hard.
 
Nah I wanna knight him
The earliest ref I can find is september 2nd lol
 
We already have the concept of "resources" in our system, but we're introducing another concept of "something that can be owned by someone"
 
Possessions?
Responsibilities?
Work items?
 
nah the other one should have been termed responsibilities, because it deals with assignments and tasks.
 
Was it?
 
9:18 AM
but we called those people "resources" because that's what the old system called them
 
lol
What are the new items for then?
 
and now we have the concept of resources which are owned by... resources
which is lame
 
If they can't come under resources/responsibilities
Ah
 
like, a laptop.
 
uhm
Oh
Inventory
 
9:19 AM
Terminology is so important when it comes to developing a system
does a software license count as inventory?
 
I'd say yes
It's a very broad term
 
what about a bank account?
 
Different altogether I'd argue
 
asset?
 
^
 
9:21 AM
software license that is
 
oh.
 
assets would be a good term. Yas!
 
but yea, assets can be computers, desks and whatever
 
Thanks. I couldn't brain.
 
It's thursday, you're excused.
:)
 
9:22 AM
hello all, i have encountered an issue in my vb.net code, i wanted to ask if any one can have
answer to it..
 
Nope.

C#

General discussions about the c# language, Squirrels | gist.gi...
 
i am getting the data from database where the data might be in lakhs...of records...
 
> Illiteracy helpdesk // Read the rules: csharpchat.com
Irony
 
but it is in general .net code issue..not related to VB.Net or C#.Net
my bad... I guess... I did mentioned as VB.Net but it is not related to specific language...
 
What's the issue in that case?
 
9:24 AM
@Squiggle can u help me on this stackoverflow.com/questions/33140333/…
 
Is that web forms lol
 
i am getting lakhs of records from database and in case, when I am storing the data in the list..I am getting System.OutOfMemoryException...
 
What is a lakh
That's not english.
 
sorry***
 
lakhs = 100 000
 
9:25 AM
Ah.
 
IIRC
 
s
 
million
 
lakhs = lots
 
millions of records**
 
9:25 AM
are they large complex objects or just strings
 
Right
So you have one option really which is don't store all the objects in a list.
why do you need the entire data set?
 
are there images or other Blobs too?
 
I need to get the data and then generate a report file...
nope...simple primitive data types..
 
You'll need to generate the report in stages using pagination of data then.
 
^
 
9:27 AM
one set of data...contains millions of records...and then i have to generate a txt file
i cannot partition the data also...
 
@Ganesh Get the data in parts and save the data to the same txt?
 
@Ganesh I disagree.
 
@Muthu Not really. Have left a comment though.
Stick it in a SQL Server database and use Excel pivot tables to do the magic. Rawk \m/
 
then...getting the data in parts..not possible in my case..as for one day's records will be millions..of it.
 
@Ganesh why do you need an entire day?
you could just process one row at a time
 
9:34 AM
@Ganesh what sort of processing are you doing on these records? Aggregating? Just generating statistics? Or is the output text file also going to be millions of records?
 
@Ganesh You're.. thinking in an odd way.
I'm not saying split it into multiple reports
I'm saying be smart when generating one report.
Pull 10,000 rows, write them to the report, then pull the next 10,000 rows
That way you're not going to get memory overflows.
It will hit your database a lot but you have no choice, unless you want to build a bigger server.
 
@Sippy smart use of a SQL DataReader means you only load one record at a time into memory :)
 
@Squiggle That's what he should do then :D
I dunno I've never done 'big data' before
 
@Sippy unless he's aggregating information, like, the average value of 10,000,000 transactions
in which case OLAP that bastard
 
k...@AlexL @Squiggle @Sippy
 
9:38 AM
Yeah but you wouldn't do that with data in the report you'd do it in the database.
amirite
 
@Sippy totes. C# isn't a good place for that sort of calculatin'.
 
Also
I'm getting the impression it's far more performant to hit the database 3m times for 1 record each time than to hit it 300 times for 10k records each time?
 
no it probably isn't, but the bottleneck is entirely dependent on what you're doing
 
@Sippy if it has to do other work at the same time them yes i would think
 
Ah
 
9:39 AM
\o/
"it depends"
 
I miss databases
Can you use SSMS to manage MySQL?
Cos PhpMyAdmin is balls
 
just use MySQL Workstation
its the same as SSMS
 
Workbench?
 
yeah thats the one
 
Looks alright actually
Not sure about the Metro home screen
 
9:44 AM
It's faster to hit it once for all the records, and iterate over them using a cursor from C#. Don't try to materialize everything into memory, that'll be bad.
 
@RoelvanUden Cursor?
 
10:03 AM
In computer science, a database cursor is a control structure that enables traversal over the records in a database. Cursors facilitate subsequent processing in conjunction with the traversal, such as retrieval, addition and removal of database records. The database cursor characteristic of traversal makes cursors akin to the programming language concept of iterator. Cursors are used by database programmers to process individual rows returned by database system queries. Cursors enable manipulation of whole result sets at once. In this scenario, a cursor enables the rows in a result set to b...
 
ooo
 
Databases are overrated
bring back schemaless CSVs
 
@Squiggle I think you should leave.
 
10:26 AM
I was playing devil's advocate. Or something.
 
10:36 AM
Wanna know something funny
This forms reporting shit lets you export data
Guess what format it's in
 
sure
CSV?
 
Yep.
In excel spreadsheets
 
valid CSV? or does it corrupt when the data contains quotation marks and commas?
 
corrupts
 
of course it does :D
 
10:37 AM
:D
I ain't fixing it.
My answer would be "No, build an API. Stop being a retard."
We have no APIs and it annoys me, because we have a lot of data, and a lot of services that interact with each other.
 
@Sippy welcome to the Enterprise!
 
I've already been here long enough lol
It worries me that private might actually be worse.
 
we've got a years-long project to API all the things in this company. It's paying off in some awesome and unexpected ways :)
 
Head up - think of the day rate.
fuuuu
Can I come work there
 
it took 8 years of pestering to get the budget for it though
 
10:39 AM
You can be my cool mentor
With your snapback n shades
 
@Sippy how do you know about my shades?
they have red frames. They're so cool.
 
@Squiggle I'm still young enough to know everything.
 
then again I can afford cool shades on my obscene day rate
(disclaimer: that may or may not be true)
(but I can at least afford the £6 it costs for a pint of beer over here)
 
I want an obscene day rate :(
I actually had a sad face then lol
 
@Sippy want a job in The City? I've got some contacts...
 
10:44 AM
I do but I suck
Maybe in a few years.
 
at least you know that you suck - many developers don't realise how bad they are
jk u dont suck lol
 
Lol
Is demoralising when I write something cool and people say "Oh.. how does that work? I can't read it."
Cos delegates are difficult for seniors
Ah well.
I definitely need to learn parallel C#
Then I'll feel more comfortable
async all the things
 
async is froody
 
@Sippy Hah, like my old teacher on my exam -_-
 
Lol
 
10:58 AM
problem i have with async is it can be a bit picky on when it throws exceptions in my exp
although i may be doing something wrong
 
You probably are. Aggregations are important to handle correctly. Or, in a full async workflow, it just works (tm).
 
hi any one help me on this issue stackoverflow.com/questions/33140333/…
 
11:13 AM
@RoelvanUden Quite right i was missing a continue with onfault to rethrow the errors from the async side of things
 
@Sippy async != parallel
 
Now there's 3 things I don't understand instead of 1 :D
 
:)
 
11:31 AM
@Sippy I worked in a project a while back that tried to discourage lambdas and Tasks, because "we can't understand that stuff".
 
:)
Sounds familiar.
 
Mind you, they were all C++ devs slowly transitioning to C#. And not C++11 here, no, no.
Visual Studio 2005, and refusing to migrate, because their previous migration (from VS6) was horrendous.
 
@Muthu so what you've got there is a 3rd party control.
 
@AvnerShahar-Kashtan They sound like dinosaurs.
 
@Sippy They were... set in their ways.
 
11:54 AM
@Sippy there are some complete retards in contracting. You'd fit righ....er I mean, if they can get in, you'll have no problem
 
@TomW You know what Tom
I'VE HAD ENOUGH OF YOUR SHIT MATE
LET'S GO
 
FIGHT FIGHT FIGHT!!
 
/me oils himself up
 
erm
 
That's what you do in fights right
No?
 
11:59 AM
Depends
 
Ah
 
Are you fighting in mud?
^ no use
 
It'll be gentlemens' fisticuffs.
@Squiggle You can be the ref.
 
how gentlemenly?
do i need my monocle or is the top hat enouth?
 
 
12:01 PM
Do I need a big hat?
 
that is the exact picture I was thinking of
 
Lol
Monocles and tophats are appropriate
inb4 I walk out of work later and Tom punches me in the face.
 
Have at you, Sir!
 
12:27 PM
OK chaps. Marquess of Queensberry rules. Nothing unsavory please. Have at it, you scoundrels!
Alternatively you could settle this using the even manlier art of rochambo...?
 
The fuck is rochambo
 
it's where you kick each other in the nads until one of you concedes defeat
do you even google bro?
 
I concede.
 
...
> Bug: inside page navigator on the complex item page lands upon the subnav section when scrolled to the top of the page on Ipad
"Sippy can you investigate please, regards Project Manager"
"You guys are right, it does do that. Case closed."
 
12:44 PM
"Cannot replicate. Please supply me with an iPad."
 
"If possible, multiple, so that I'm sure ."
 
"Unable to install debugging tools. Please provide MacBook Pro."
 
Yay dentist appointment later ..
About to get robbed.
 
@Sippy A golden tooth?
 
Lol
 

« first day (1825 days earlier)      last day (3122 days later) »