« first day (1845 days earlier)      last day (3094 days later) » 

7:00 PM
@RyanTernier That's fantastic advice
Thank you lol
 
in my world, our clients see all our work, so I have to be damn PC with everything.
I got a client asking me about this once:
        /*
          ( •_•) Looks like this...

          ( •_•)>⌐■-■

          (⌐■_■) ...Is a unit test

        */
 
It's 7pm and there are still three devs here
wtf
 
@Sippy we have that in Seattle :) Drizly, Amazon Prime Now both do it
 
@Sippy 8pm, and 4 devs in the office here
 
brb movin mah cah
 
7:02 PM
If you guys were asked to build a simple application, let's say an inventory management system, and 100% of your clients are Windows clients, your database is MS SQL Server, what technologies would you use ? Entity Framework -> Web API --> WPF ? Entity Framework in a service layer in the client app ? Dapper ? Web app ?
 
@loser a new app? definitely SAP ABAP or Cold Fusion, they're cutting edge
 
yeah an app from scatch
scratch*
 
@loser press up in the text box - you can edit your messages like this
 
@loser probably WPF > WCF > EF > SQL Server because it's comfortable and supportable and someone is probably going to have to maintain it after I get bored
 
7:04 PM
I used Angular as the front end with WebAPI as middle tier and EF code-first back end on my last project
 
but if I had a choice, Angular, NancyFx, possibly MongoDb for persistence
I've had enough of EF
 
I've never used Nancy stuff... is it really that awesome?
 
I was doing .Net dev on my Mac last night. Felt like a right rebel.
 
did someone say REBEL
 
makes sense, I've never bothered to look at it.
 
7:17 PM
@Codeman HAHAHAHAHAHAHAAHAHAHAH SO FUNNY
 
Oct 13 at 17:58, by Pheonixblade9
SAP/ABAP coincidentally is the same sound my butthole makes whenever I get an email asking me to come be a consultant for it
OK yes I'm bored.
 
none pizza with left beef
classic
 
@Squiggle holy shit lmfao
 
Nancy feels a lot like doing Express/Node work
 
7:23 PM
Hi there!
 
Hey All how is it going
 
Program 'h:\Visual Studio 2012\Projects\WindowsFormsApplication6\WindowsFormsApplication6\obj\Debug\Window‌​sFormsApplication6.exe' has more than one entry point defined: 'WindowsFormsApplication6.Program.Main()'. Compile with /main to specify the type that contains the entry point.
Help
Trying to use this code from msdn.microsoft.com

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new Form2());
}
 
@Codeman yeah, but it's, like, type safe.
 
@Squiggle JS is type safe ;)
 
@kolton you've... got more than one entry point.
hur hur
 
7:32 PM
But where...
First one is Form2 and second one is Form1
 
UE4 blueprint scripting is awesome
btw
 
@kolton In there
You have one in each form
That's not what you want
 
Oh
Can I have some tips on how to make the UI more modern?
 
@kolton just call it HTML5 and you're golden
throw some drop shadows on that shit
 
Not WinForms, for starters
@Codeman I haven't seen a shadow in years
 
7:38 PM
Lol
 
There is also this for WPF: mahapps.com
 
Ooo
Lets see how this works. Maybe I can make it look nice with that link @CuddleBunny
 
Are rounded corners still a thing?
 
Don't think so
 
@Squiggle Subtle ones, yes.
 
7:47 PM
Ok. I honestly don't know how to implement mahapps. @CuddleBunny Do you think you can help me?
 
@kolton Look at the demo application.
 
I did D:
 
I cri erietiem
 
@kolton For an exercise, start by just copying the demo application. Like actually just copy all the files. Then take code out piece by piece until it breaks. When it breaks, figure out why.
Then you should have a sense of how/why it all works.
 
Ok
 
7:50 PM
@KendallFrey Uh, what?
Do you use no google products?
 
google.com
gmail
um
 
Google Um?
I love that app
 
lol
 
Yeah. Search, mail, and youtube aren't very "material"
 
Google's UI design spec is all about drop shadows
and i suspect gmail will get a facelift soon...
Youtube is inching its way towards "material"
 
7:54 PM
 
run
 
@CuddleBunny Oh, neat.
Wait, no way. I can install it on my phone via my computer
That's... interesting...
 
not sure how much I like material, but I literally use nothing that implements it so...
 
@CuddleBunny I love it.
 
Read the spec. It's really good.
 
7:57 PM
Now that they've backed down from the "animate everything for 400-500ms lol" position to a more modest 200ms or so + ease in.
Yeah. The spec is my bible.
 
yeah, the spec is fantastic
 
best UI design ethos I've seen. They state their reasons perfectly.
 
I like the idea but I still don't feel it in practice.
 
@CuddleBunny Try google music out
 
The inbox page is neat though.
google music feels cluttered
 
8:00 PM
you'll see a lot more of it when Polymer becomes more adopted
 
Does anyone here have any experience with deploying self hosting services to Azure?
 
music.microsoft.com is very simple and pleasant.
and I have all my music on OneDrive so I use that
 
'planet'. Definitely not an ancient evil roaming the galaxy looking for civilizations to consume. Nope.
 
@TomW 800c without a star... D:
could be a new kind of post-star body
 
I can imagine Dethklok recording an album there. So metal the weather is made of iron.
 
8:07 PM
I just got 3 iOS developer positions reqs in the last hour
...I don't know iOS
 
I get them all the time too :(
 
Anyone know if I can disable all the datagridview columns from being edited? So like disable them?
 
@kolton DataGridViewColumn.ReadOnly
 
oh god, I forgot how to do basic math
is b = y/m - x?
to find intercept?
oh wait I got it
b = y - mx
 
8:15 PM
DONE
going home now
12 hour days--
 
still 12 hour days > 0 ?
 
8:32 PM
can I set a full path for background: url()?
doesn't seem to detect the image even though I double checked the path
 
8:45 PM
of course you can
that's just a url
 
@Squiggle lame
 
@Codeman NSReject
NSI NSAlmost NSCan NSWrite NSObjective NSC
 
myTask = GetThingAsync();
await myTask;
var thing = myTask.Result;
// Is this utterly stupid? It's supposed to eliminate a race condition when GetThingAsync is called multiple times.
 
@KendallFrey Seems like you should be locking in GetThingAsync instead
 
why not just
myTask = GetThingAsync();
var thing = await myTaks;
 
8:59 PM
@Jeremy no, that would cause unneeded pauses in the UI
if GetThingAsync is called twice, the first value should be discarded
@tweray because if myTask changes during the await, it will pull the original value from the original task
 
@KendallFrey I don't follow.
 
It's a poor man's version of cancelling the task
 
@KendallFrey um... are you able to change myTask while it's in await ? i never tried
 
Would it help to see it expressed as continuations without the async sugar?
 
@tweray await doesn't reference the variable, I don't see why not
the important part is that the variable can change between the await and the .Result
 
9:03 PM
well, i'd rather spend more time to make sure myTask won't get overwritten, like creating a queue or stack of tasks something
 
overwriting the task isn't the problem
it's the solution
let me try to back up a bit
 
ah... ok, i guess i got what you mean
 
let's say the user clicks a button, which gets some data asynchronously
if they click the button before the previous get returns, I want to forget about the data from the first click and use the data from the second click
importantly, I don't want the second click to wait for the first click to finish
 
to be safe i'd rather just do
myTask.Dispose();
myTask = GetThingAsync();
var thing = await myTaks;
 
@KendallFrey TaskCancellationSource
 
9:07 PM
.End()?
 
confused with thread lol
 
@Jeremy Don't think I can use that
 
.Dispose()
 
@tweray wouldn't that throw an exception or something?
 
@KendallFrey are you in a position to write the Async method to be cancellable, if it isn't already?
 
9:09 PM
Although I could make the task check the cancellation at the end, in my code
@TomW Not the meat of it, but I did write that actual method
 
@KendallFrey Cases like these are what task cancellation was made for
I don't understand why you can't use it
 
i know :(
What happens when you await a cancelled task?
 
Actually, is the only problem the race condition?
 
@KendallFrey Exception
OperationCancelledException
 
I'd assume the natural way to do it is to reassign the task like you're doing so that the first result just gets thrown away. But I guess from what you're saying the problem is that two tasks running at the same time fuck up, somehow
 
9:11 PM
@TomW The problem is I don't want the UI updated with non-current information, overwriting current information
so yeah, race condition
@TomW The tasks don't interfere with each other, only the results
@Jeremy ty
 
Oh I'm with you now. You're registering a continuation that can't be stopped once it's requested, gotcha. Yeah I think cancellation tokens are the proper way of dealing with this like @Jeremy said
 
I use a set of tasks to run db contexts sometimes
In no circumstance can a task disallow other contexts to not be disposed.
I ended up having to take an approach of simply awaiting tasks, and then awaiting them in a loop after surrounded by a try catch
just to ensure they did not leak connection threads
 
@TravisJ wow, how many negatives?
 
Of taking that approach?
 
Why are MSDN examples so fucked? :(
 
9:19 PM
Or of not using the try catch?
 
in that sentence
you can't not disallow from not being not disposed...
 
@TomW - lol, for every negative there, there is a try catch nested
Allowing a task which throws an exception to prevent a context from being disposed is catastrophic.
I guess that would be the inverse^
 
Hm. @KendallFrey would a fire-and-forget, but cancellable, task work in this case?
 
I'm working on a SilverLight app, and it's giving me an error. The error is just System.Collections.Generic.KeyNotFoundException, but the weird thing is that it's showing up in the console, outside of the Silverlight App. I'm running it in debug mode and not having any problems on the back end. I can't even figure out where the error is happening. The line that the console is giving me is just the javascript exception handler for the SL app.
 
i.e. don't await it, but hold a reference to the token and cancel it if it exists, in the first line of the button event handler
Task doesn't run its continuation and just...I dunno. Disappears, I guess
I need to try this
 
9:25 PM
@KendallFrey - Can't you just use a flag in the code for completion that would prevent the data being returned if a different request was made?
 
@Hypersapien If you try to break on all exceptions, do you break when the exception is thrown?
 
@KendallFrey - MSDN examples are messed up for version 4.5+ because they attempted to port them to github and bit off more than they could chew. 4.0 still shows valid stuff
 
No. I've been breaking on all exceptions, and the only error is the one in the IE error box.
 
@TomW - That would work, unless the completion of the task also included handling the underlying data connection
 
@TomW What's the difference between fire-and-forget, and continuations?
 
9:27 PM
@KendallFrey - What .net version are you using?
 
4.5.1
 
k
fire and forget is supposed to be for reporting only as far as I have seen
 
@TravisJ Don't see how that could work
 
I have a tab box in the app, and I get the error when I click on one particular tab, with one particular record loaded in. Weird as hell.
 
@KendallFrey - In your completion method, check to see if the data should be sent for modification or simply awaited and then discarded.
 
9:29 PM
Is there another way of tracking down where it's happening?
 
@KendallFrey - Are you using a CompleteAsync() method?
It is common practice
 
@TravisJ And how do I determine that?
 
@KendallFrey ah, erm. Brain not fully in gear. I shouldn't have said fire-and-forget, what I had in mind was 'not awaiting the result'. However there would be a continuation that sets the UI state when the work is done. I'm mixing up sugared and non-sugared versions of continuations, I think
 
@TravisJ no, what's that?
 
@KendallFrey - Use a datetime for requests. If the datetime of the task set doesn't match the most current datetime for the request then it doesn't send its data on for updating the UI.
 
9:30 PM
ewww
 
That would be a way to flag the content.
@KendallFrey - Basically just a method that handles the completion of your set of tasks and is awaitable.
 
@TomW Hey there. How is it going
 
That way it isn't ever done manually and can be ensured to complete correctly.
 
@Alex ok thanks. How are you
 
@Hypersapien No idea.
 
9:31 PM
@KendallFrey - What issue do you have with using some sort of flagging mechanism
 
@TravisJ I dunno what that means
@TravisJ That's what my original code was supposed to be
I'm trying cancellation now
 
What flagging mechanism were you using
 
34 mins ago, by Kendall Frey
myTask = GetThingAsync();
await myTask;
var thing = myTask.Result;
// Is this utterly stupid? It's supposed to eliminate a race condition when GetThingAsync is called multiple times.
 
@KendallFrey - You are creating a set of async method calls to gather data right? That set should feed into a data structure that can be monitored with logic rather than manually
 
wasn't exactly discarding data, just overwriting it with newer data so the continuation would use the new data
 
9:33 PM
@KendallFrey - Why aren't you just awaiting getthingasync when you call it?
 
@TravisJ I'm not repeating the entire conversation, scroll up if you must know
 
Okay, I guess then yes. It is utterly stupid in my opinion. There is no difference.
Your three lines of code, basically two after the compiler gets a hold of it, doesn't properly outline the design that you describe.
 
no difference between what?
 
using await on one line or two
I had already scrolled, you didn't exactly have an in depth conversation on this that I can see
Who else would overwrite myTask?
Where is the data from the result being sent
 
@TravisJ me, in the future
 
9:36 PM
Is this event based? Are multiple events tied to this code?
 
@TravisJ to a control on the UI
 
Does this process always return information to the view?
 
How would you have the ability to overwrite myTask? (i.e. what is the scope of that task)
How long is the task expected to take for completion?
 
@TravisJ see the "myTask ="? That's how
 
9:38 PM
Yeah, but what I don't see is where myTask is declared. Is it part of the global namespace?
 
sooo my SO careers page is hidden, and my info is private on my SO profile, however i'm getting e-mails with my name in it and my SO username... how?
 
@TravisJ ~2s for failure, ~instant for success
@TravisJ just a field outside the function
kind of a global
 
So you are experiencing the issue where a user clicks, process is going to fail, reclicks, process is successful and reports, and then the failed process overwrites the successful data.
 
sudden silence, chairs scrape across the floor, patrons dive for cover
"Whisper whisper global"
 
@TravisJ BAM
yep
 
9:41 PM
Okay, so in my opinion that problem is the result of always sending the information back to the view, or always populating the view once that data is received more than it is using just one "myTask". I think that the myTask should probably be shielded from that, and the data itself should be where the control occurs.
 
@TravisJ Which is why I'm now working on cancellation
 
So you want to
myTask.somecancel
myTask = newasynccall()
Have you considered locking the UI with a transparent layer and a little graphic while they wait for 2 seconds of failure instead of handling this in the backend?
 
unacceptable
 
Is this for some sort of game?
 
This is supposed to be kind of invisible
 
9:44 PM
So the data comes from a trigger of some sort?
 
and it updates on TextChanged, so every time they hit a key
I can't stop them typing for 2 seconds
or won't
 
@TravisJ while they tab through the other controls ? :D
 
@NETscape - I guess it depends on what the data represents. In this case it seems to be some sort of autocomplete or dropdown suggestions so I can understand not locking.
 
@TravisJ um... reaches for tinfoil hat
 
If you have to create the tasks then I agree about the cancellation.
I still don't think you should overwrite the task though, if the completion method is sending data to the view, why can't it be a separate task?
 
9:47 PM
well it's gotta be async because I won't do network code on the UI thread
@TravisJ I'm not overwriting the task anymore
 
If you spawn a task from cancellation you are going to reach the UI thread
You can spawn the task after cancellation, but automatically creating one in the cancellation method will be potentially use the global sync context
 
So this is what it feels like when I talk about Haskell...
 
@TomW I'm good. Finally gaining some traction on that problem. Looking forward to going home this evening and taking a stab at an angular side project I want to get started on
 
wat ._.
 
Im gonna fuck around with UE4 today
 
9:50 PM
i miss you all
 
@KendallFrey - If you create a delegate to handle the cancellation of the task, do not have that delegate create another task is all I am saying.
 
no, I just used ThrowIfCancellationRequested
 
okay
and in then in the catch you create another?
 
another... what?
my catch is empty
 
9:54 PM
okay that sounds fine
 
Wow, that song is actually pretty good
 
first time that conversation ever happened
 
lol
 
I have had parts of that conversation with Reed before
 
9:55 PM
what?
I was just referring to the last two messages
 
oh
 
> my catch is empty
> okay that sounds fine
quick, to bash.org
 
haha
 
put some semicolons in the catch, just for fun
 
anyone have any idea if its possible to get windows 10 command prompt (version 10) on windows 7? googling that crap doesn't help at all since all the results are about how to use the command prompt in Windows 10
 
9:57 PM
I suppose you could log some sort of AggregateException which contained a TaskCanceledException or just the taskcanceled. But considering your code did the cancel, I don't know what good it would do.
 
Hello... Sorry to ask such a n00b question but I am trying to recreate a valid path by combining @"C:\t\" with a string + ".xlsx" But I keep getting invalid characters in path errors.. In code -> string fn = @ReqNameArray[tt].Trim() + @".xlsx";
string dest = Path.Combine(@"C:\t\",MakeValidFileName(fn));
 
Have you set a breakpoint to look at the rendered path string?
 
Ya and as i am new to c# seeing all the "\"" is confusing to me
not sure why its displayed that way in a mouse over or in a watch
 
Help, I'm trapped on bash.org
 
Not used to a IDE adding shit to my vars ...
 
10:02 PM
@KendallFrey - bash.org/?954321 me too
 
@KendallFrey can't you just disable the button, then enabled it in continuewith?
 
Nevermind.. I fixed it with : foreach (char invalidchar in System.IO.Path.GetInvalidFileNameChars())
{
fn = fn.Replace(invalidchar, '_');
}
 
@NETscape it's not actually a button :)
 
Yeah, basically you are going to have to handle that server side. Hopefully it is hitting a cache or something so that if people like me are connected to your server en masse the database isn't spammed at however fast I type per character.
I got sent to a google captcha for that recently
 
u tipe so f@st!
 
10:11 PM
@TravisJ I was only talking about client side code
the server side is soooooooper lightweight
also, remember I don't do web
 
ah cool
memory is so much nicer to beat the crap out of than a shared database
 
@KendallFrey - bash.org/?801390
 
@KendallFrey - bash.org/?813967
that site is bad for your health
 
10:21 PM
i hate you guys
click Random
 
10:34 PM
What is the best way to get the name of a project just from the project (.csproj) file?
xml parser?
 
name of the project is going to just be the file name isn't it?
 
Not always. I was thinking of just making that assumption though.
 
@BrandenBoucher in what context?
 
@KendallFrey Just reading the .csproj file from a stream
 
@BrandenBoucher what do you mean? what tag can be in the project structure?
rootnamespace and assemblyname... i don't think either of those need to match file name
 
10:39 PM
I'm guessing it's the <AssemblyName> tag inside the .csproj file
 
change it in the file, but don't change the filename, and open the project file. see if the project name changes
 
I wasn't sure if trying to load up the project in reflection some how was easier than just parsing the xml. But I'm guessing xml is easier
@NETscape, not my files. I'm just reading them.
 
i'm saying, to test the assumption
@BrandenBoucher confirmed... name of the project is the file name
 
but you can change the file name without changing the assembly name
 
right, and the project name is still the file name
 
10:43 PM
Alright. Gotcha!
Tnx
 
so.. you want to know the best way to pull out the assembly name from the project file?
 
Nah. I was also trying to determine what is used when you see the project inside of the Solution Explorer
I guess if you are loading up a project, it uses the file name.
Well
It probably uses the setting inside the .sln file first
 
@BrandenBoucher nope
actually idk
you can always just use ILSpy and look at how Visual Studio parses the solution and project file
 
fun little exercise... that gets you no where really lol
 
10:47 PM
lol
 
@BrandenBoucher - Can't you just look in the AssemblyInfo.cs?
 
I only have the .csproj file
 
and not all projects have assemblyinfo.cs
 
@BrandenBoucher - So Project.PropertyGroup[0].AssemblyName?
 
@TravisJ I think I'm just going to use the file name
 
10:54 PM
What are you going to use the name for?
 
To show in a list
I think it will be accurate enough 99.9% of the time
 
Does the list load the assembly?
 
Does it open the file?
 
beyond possibly parsing the xml in it, no
and if I just use the File Name itself, then no parsing even.
 
10:56 PM
So the only relevant information that the user could use would be the file name anyway right?
 
That's going to be hard to answer for you without going into a full explanation of the project
So, the short answer is No
 
If you parse, RootNamespace would also be available
Is that useful to the project?
 
Not yet. It might be in the future but I'm not sure yet.
 
That concludes the question part of this meeting. Does anyone else have any questions? :P
 

« first day (1845 days earlier)      last day (3094 days later) »