« first day (1469 days earlier)      last day (3479 days later) » 
02:00 - 18:0018:00 - 00:00

6:00 PM
Is there an implementation of Stream that counts the data written to it and then discards it? lol
 
/dev/null?
 
that doesn't even count it
 
Mm, fair point.
 
k, this is frustrating
Cause if they added any files to RadAsyncUpload the clear all content button still process any files they had queued
I will search for code-behind call with jquery
yes.. stupid developers
they always crap out.. typical Offshoring work all of this
grrr
EXACTLY
:)
at least I dont feel alone.. I question my gutt sometimes
cool thanks!
haha
haha
 
6:19 PM
reminds me a bit of a conversation that went on for years at the old place
various people: the company website is old and shoddy, we need it overhauled but it'll be too expensive
in-house devs: we can do it
marketing: no we want [design agency] to do it
in-house devs: they're dreadful and insist on only using classic ASP
marketing: well we like them and we won't use you
devs: fine fine, let us talk to the agency and get them to at least think it through properly
agency: we hate classic asp, you told us that was what you wanted
marketing: ....
 
for real...
 
fairly standard when you have people who don't know what they're talking about making decisions and mediating communication
 
yes and being jr - mid level at best I am not the guy to be talking over a MIT grad .. even though she is a bull in a china shop.. in time.. in time..
 
Why doesn't that like this? cByName.GroupBy(g => g.ForeignId)
It throws an exception when executing
 
what exception?
 
6:29 PM
Unknown column 'Apply1.PLId' in 'field list'
 
you sure it's not something else and deferred execution is fooling you?
 
Yes
I am using this nested grouping to try to eek some performance out
 
hello there!
 
HALLO
 
I have run this exact same set of data already and it all loads properly
 
6:30 PM
Hi Stephen Fry
 
I just wanted to use the grouping prior to loading rather than after
 
@KendallFrey :D
the new civ came out today!
i can't wait to go home!
 
I have a job.
I can't wait to go home.
 
0
A: Using jquery with ASP.net and C#

GregYour on the proper approach, you code actually looks correct (Aside you use jQuery UI Dialog rather than Alert. Here would be some items to help you a bit more. function Submit() { if(!confirm("Are you sure you would like to submit?")) { return false; } else { retu...

 
I hate going home from work without solving some irking problem
 
6:32 PM
That's the best thing you can do to solve it
 
@TravisJ I hear you there.
 
You usually find the solution at 2-5AM
 
Well I left yesterday with this same problem
And it didn't seem to solve itself while I was playing Destiny
 
ty Greg
 
6:34 PM
guys, do you know a book you would recommend for someone who is already a c# programmer, but want to really know all the aspects of c#?
 
C# in Depth
by our own favourite Jon Skeet
 
agree
 
@JoJo ?
@TravisJ Good ol Destiny.
 
@Greg - Trying to get to max level. Managed to kill an entire team in pvp with a rocket a few nights ago :)
 
I use rockets for peaceful purposes
 
6:36 PM
@KendallFrey cool! I'll try this one, thanks man!
 
I am going to blame oracle for this and move on
People are just going to have to accept that they cannot see a report which spans 2 years that was intended to only display 1 weeks worth of information
 
@TravisJ Nice!
@TravisJ I may need to speak to you a bit later, about some architect.
 
k
 
@TravisJ I'm trying to build a Content Management System but cater it to business.
 
But there are already so many out there, with teams of people :(
it would take years to even get your foot in the door for that
 
6:46 PM
@TravisJ I want to cater it for enterprise, PIM / Product System.
 
It has been done, and it is a lot of work. I think you could probably spend your time more effectively if you came up with a problem which needed solving more than a CMS.
 
wcf is not good for my browser memory footprint
 
@TravisJ Well, the CMS is so I'm not having to modify all the content. The goal is really the PIM / Product Management / E-Commerce system my company uses.
@TravisJ I just don't want to lose too much of the core to add the CMS aspects.
 
@Greg - Is this a work project or a personal project?
 
@TravisJ I want to empower our business staff to essentially build their content correctly.
@TravisJ Personal at the moment.
 
6:51 PM
@Greg - But it will use code from work?
 
@TravisJ No, it won't.
 
@Greg - And you cannot find a service that already exists for them to use?
 
@TravisJ The goal is a project that has a clean intranet domain, e-commerce capabilities / nice web-site for internet users, product management, credit management, and countless others. They don't exist, our current solution is garbage.
 
That sounds like it would take years.
I mean, you are essentially starting a business at that point.
 
@TravisJ Kind of.
 
7:02 PM
As of now, I officially don't like WCF
 
@TravisJ ?
 
?
 
5 hours ago, by Kendall Frey
I have 33 tabs open
now 36
 
my record - over 100
computer was dog slow after that so i declared bankruptcy and rebooted
 
What were you doing....
 
7:15 PM
opening tabs and not closing them
part of it was reddit
part of it was msdn/other docs
and I can't remember the rest
probably pandora/youtube and other junk
 
I keep tabs open as reminders
 
me too
read it later type stuff
 
I do that instead of bookmarks
 
I don't use bookmarks at all
 
always spread out over multiple windows
 
7:17 PM
I have a couple of old ones but don't think I created one this year
 
i bookmark stuff, but I never end up going back to them
 
Travis nice script is probably the last bookmark I made
 
Once I get to the point where I can only see one letter from the title, I start trying to find stuff to close
 
:D
 
Actually one of the reasons I'm still on Firefox
It handles 100+ tabs decently well
Not.. not that anyone should..
 
7:26 PM
Do you guys get headhunted often?
 
:d
 
no, but this week I got an email for what looks like a DBA position
 
it would probably be good to always say no to job offerings by asking for more than they can pay.
 
Anyway to view browsing history on the wifi?
Like all sites visited while connected on my network?
 
@JohanLarsson do you?
 
7:31 PM
If many started doing it then maybe the feeling that we need to pay or we will get leftovers would ~happen~ <- can't translate here
@TomW I have done it a couple of times for real jobs I have applied for, usually just ignore headhunt stuff as spam.
 
Recruiters make my phone ring off the hook.
 
@TravisJ Is it a bad idea?
 
@Greg - In my opinion, your idea would require 5 people to complete in two years. It would require funding to start an LLC. It would require funding for materials, wages, licenses, and rent. I think you would need about $500,000 to properly create that product in 2 years. $100,000 if you planned on releasing in 5 years with only 2 people.
Is it a bad idea? Perhaps not. However, there is a lot of cost in creating something that large, especially if it is going to be in a compact time table.
 
7:50 PM
@TravisJ Not really compact.
 
@Greg - By compact I mean 2 - 5 years
 
8:07 PM
Hmph. Why don't people answer the question asked?
I've been trying to find out how to handle a particular case when awaiting tasks, not all that long
but a little while
 
@TravisJ Oh.
 
basically, suppose you have a network stream from which you ReadLineAsync()
suppose the client never sends a newline? How do you give up waiting for that task to complete?
 
@TravisJ Well, I'd like to build a mini simple Content Management System for myself. For simplicity, so they can login and change the site and etc.
 
All I can find is a ton of articles and SO posts telling me not to do that
 
@TomW where?
 
8:13 PM
@TomW - Fire and forget?
@Greg - It doesn't sound that simple :P
 
@TravisJ not necessarily.
 
Task is probably a Reed q, if you dare to ping.
 
More like try and give up
 
TaskCompletionSource?
 
How?
 
8:15 PM
dunno, have not seen the q yet
 
what q?
 
8 mins ago, by Tom W
Hmph. Why don't people answer the question asked?
 
oh, right. Yeah, a few people asking to do the same or a similar thing and getting not very useful responses e.g.
7
Q: Call to await GetFileAsync() never returns and app hangs in WinRT app

jokeefeI'm attempting to load and read a settings file on application launch, and about 90% of the time, the await GetFileAsync("filename.xml"); never returns, thus, hanging the application. About a quarter of the time, if I step through the code, it'll actually return and read the file. Here's a very...

he got what he needed, but it wasn't the question he asked
55
Q: HttpClient.GetAsync(...) never returns when using await/async

deadalus.aiEdit: This question looks like it might be the same problem, but has no responses... Edit: In test case 5 the task appears to be stuck in WaitingForActivation state. I've encountered some odd behaviour using the System.Net.Http.HttpClient in .NET 4.5 - where "awaiting" the result of a call to (...

too much going on in that one
found something, I think
you were right, TaskCompletionSource seems to be the way
 
Gist it when you have something, I'm curious
 
@TravisJ Well, alot of them on the market are super difficult to use, install, and customize. I want to fix that a bit.
 
8:26 PM
@TomW What are you trying to do?
 
@ReedCopsey await lines from a network stream (assuming a protocol like but not necessarily exactly the same as SMTP) and give up after some period of time if the task awaited doesn't complete
ReadLineAsync() doesn't implement cancellation
 
there isn't really a built-in way to do it
but it's easy to wrap any async task into something that supports timeouts
though it's not a "real" timeout - the operation will still continue on
 
yeah, I found a blog post explaining how, but it sounds like quite a lot of overhead
 
        public static async Task<T> TimeoutAfter<T>(this Task<T> task, TimeSpan timeout)
        {
            if (task != await Task.WhenAny(task, Task.Delay(timeout)))
            {
                throw new TimeoutException();
            }

            return task.Result; // Task is guaranteed completed (WhenAny), so this won't block
        }
that's my version ;)
        public static async Task TimeoutAfter(this Task task, TimeSpan timeout)
        {
            if (task != await Task.WhenAny(task, Task.Delay(timeout)))
            {
                throw new TimeoutException();
            }
        }
for the non-generic Task
If you need to pass a token instead, you can use:
 
MVC app hanging when async is involved? The main prescription I've seen is "make all your methods top to bottom async"
 
8:29 PM
       public static async Task WithCancellation(this Task task, CancellationToken cancellationToken)
        {
            var tcs = new TaskCompletionSource<bool>();
            using (cancellationToken.Register(s => ((TaskCompletionSource<bool>)s).TrySetResult(true), tcs))
            {
                if (task != await Task.WhenAny(task, tcs.Task))
                {
                    throw new OperationCanceledException(cancellationToken);
                }
            }
        }

        public static async Task<T> WithCancellation<T>(this Task<T> task, CancellationToken cancellatio
 
@ReedCopsey it's as good as; my compensation logic would be to send a FU to the client and hang up, so I don't care what happens to any remaining data they send and it'll be disposed shortly after
 
@MikeAsdf - Also, remove all static
 
just realize that the original task won't actually "stop" - it'll still come back someday
@TravisJ no reason to remove static - static is fine there
(static methods - not data, of course ;) )
 
@ReedCopsey why return task.result and not return task?
 
@ReedCopsey - I have found static methods to cause problems when they contain non thread-safe instances
 
8:31 PM
@JohanLarsson You'd get a Task<Task<T>> if you returned task
@TravisJ as long as you don't mutate your data, static is preferrable
 
@ReedCopsey I guess the 'cancelled' task will probably throw an exception
 
@ReedCopsey - for example, a static class which contains an instance of a database context
 
I can't reason about where that would propagate up to, if anywhere. I'd find out easily enough what I had to do to handle it though
 
@TomW In that case, the cancelled task won't do anything - but the wrapped one will throw
@TravisJ as I said - static methods are good -s tatic data is never a good idea, though
@TomW It propogates to "nowhere" in my impl. It just "goes away"
 
@ReedCopsey - The database was readonly but it still caused problems at random times
 
8:33 PM
@TravisJ DataContext isn't thread safe - static data is bad in general
doesn't matter if you're only reading - internally, it caches, and the caching isn't thread safe
 
Hm, that makes sense
 
@ReedCopsey oh yes, still feels wasteful to create a new task. Maybe there is a way to microoptimise it.
 
@ReedCopsey thanks, I think I'm getting somewhere now. I'm not really trying to accomplish anything specific, just wondering really
 
@JohanLarsson Yeah - you can microoptimize with TCS
but it's a lot of hassle :)
 
that is what we do!
 
8:45 PM
if you want an optimized version using a Timer
 
VoidTypeStruct, never met one before :)
 
room topic changed to C#: Ask me about my butt joints [.net] [asp.net] [asp.net-mvc] [c#] [entity-framework] [linq] [visual-studio] [wcf] [wpf]
 
@JohanLarsson That's a nice way to make a type that's 1) low overhead and 2) non-public
os if you're making a Task but need TaskCompletionSource, it's a nice thing to have floating around
basically just struct VoidTypeStruct {}
 
nice read ty for the link
I think the units turned out ok. The ui stuff is hackish but with some useful features.
 
9:06 PM
Fail :( I was trying to test a feature on my live site and not my dev local machine site.
Couldn't figure out why my changes weren't affecting the output
 
but only wasted time?
 
Yeah
Only like 5 minutes
But still
 
We made bread in a fire powered oven today. Took > five minutes. The result was ok.
Very low level, should probably tell the c++ guys instead :D
 
9:24 PM
pizza tends to do pretty well in very hot oven, very quickly
that's like bread
 
yeah plan was to start with bread and then do pizza if it worked
it got so hot inside so we stopped after bread
wrong link
 
Similar to ^
 
9:41 PM
hmm... I'm using IoC to define some behavior in my inherited class. I have a property

protected virtual bool UsesThing{get{return true;}}

and in my inherited class I have

protected override bool UsesThing{get{return false;}}

I'm using the property in my top level class, and it's using the top-level value. Is there a way to make it use the inherited value? I thought that's what virtual was supposed to do.
 
maybe downcast it?
 
Hi, not sure if anyone here does cross-platform app development, but can anyone confirm for me what I'm reading - that iOS app development can only be done if you have a mac. There are no PC iOS emulators or similar?
 
@ReedCopsey any idea for my question?
 
that is what it does - are you sure you're getting teh right type for the actual instance?
you should be able to check the actual runtime type in the debugger, but it sounds like it's returning an instance of your base class...
 
 
2 hours later…
11:38 PM
posted on October 24, 2014 by Scott Hanselman

This is a rant. More and more I'm finding myself using mobile devices, often on my iPhone, but also desktop applications in Windows and I'll push a button and find myself, as user, stuck inside your for loop. Have you felt like this? The application locks up and you're stuck. Maybe it's Outlook saying Not Responding as the Curtain of Patience (tm) comes down, or perhaps it's Facebook on

 
02:00 - 18:0018:00 - 00:00

« first day (1469 days earlier)      last day (3479 days later) »