« first day (1593 days earlier)      last day (3360 days later) » 

12:00 AM
Well i would hop so lol
 
I just realized KSP doesn't have atmospheric gradient drag torque
 
@KendallFrey THOSE BASTARDS
 
i guess that's to be expected, they don't have gravity gradient torque either, which is pretty well-known in orbital mechanics
so in theory, putting the control part at the front of the ship gives you better efficiency
I just blew my own mind
 
Async stuff blows my mind (poof)
 
now I remember the video Scott Manley made on free altitude from fuel transfer
@EliteGamer You should talk to Steve
 
12:06 AM
Its been a while since iv'e gotten back into C# and Parsing JSON and using the HttpClient async / different thread...like.
its confusing haha
 
12:30 AM
@Pheonixblade9 I think it just needs some good ol' encapsulation. I told him such.
Though I think an IoC container would solve a more general problem
 
today I get to explain to my coworker why you cant do this:
(from a in this.DBContext.a select new KeyValuePair<int, string>(a.Key, a.Value))
I remembered that fun little tidbit when it threw an exception on me :)
 
12:46 AM
Why does that throw an exception?
 
@KendallFrey KeyValuePair is not a SQL type, essentially
 
oh, SQL stuff
bleh
 
Hi all
 
yeah if it was LINQ-Object, it would be fine, but this is EF LINQ-SQL
 
how do you deal with referencing a project to your project that has different version of dependent dlls
???
 
12:48 AM
very carefully
 
let's say i have web project and class library dll both of them share one dll but two different versions
@KendallFrey is it a common concern?
 
1:09 AM
evening guys, have a good night
 
have a good one
 
user1630889
1:27 AM
I am so fricken confused about async and await in OWIN / Katana right now.
 
user1630889
My understanding of this was that if I return the result of the "next" method in the pipeline, that it will execute asynchronously. I can continue processing, then "await" the result to mimic synchronous behavior.
 
user1630889
But I'm not seeing that. For one, every middleware component seems to run on the same thread ID.
 
user1630889
Does the compiler simply know somehow that I don't actually need or want multithreaded processing?
 
@AlexanderPritchard asynchronous != multithreaded
 
user1630889
@KendallFrey How is something running asynchronously, then, other than say, waiting on an external operation (like a web request) to complete?
 
user1630889
1:40 AM
Unless that's the use case, which is fine.
 
Most of the time, await is waiting on something to happen on the same thread, and it will run when the thread is available
 
user1630889
Sure, but that is surely something like I/O or a web request - aka something your thread specifically isn't executing.
 
user1630889
Otherwise why would it be async at all?
 
I phrased that poorly
when you use await, it schedules the rest of the method as a continuation to the task you're awaiting
you can await any task, and when it's finished, the method resumes on the original thread
 
user1630889
Sure.
 
1:44 AM
so if you await a method with await in it, you're likely awaiting something on the same thread
 
user1630889
Ah.
 
user1630889
I'm still stuck trying to come up with an await / async demo for OWIN / Katana that actually demonstrates async behavior.
 
user1630889
Not just awaiting on something not truly asynchronous.
 
Tasks are kind of interesting, because they can run on the GUI thread, on a background thread, on multiple threads, or on no threads. And you can await them regardless.
@AlexanderPritchard Well, most practical applications await something properly async, like disk access or network access.
You can easily demonstrate async behaviour, but if you don't want to fake it, you will have to use something like a web request.
 
user1630889
@KendallFrey So basically for a simple example I can create an asynchronous scenario (say, using threads) and then demonstrate how await creates a synchronous-like pattern to their execution?
 
1:52 AM
Folks, there is a function that I'm writing. It's an extensions method, but I don't know if that's important. The function takes an object (this) and writes it to a log. Is is better to make it a template method with argument this T extendee, or is it better to do this Object extendee without template?
 
await is not synchronous, and you shouldn't treat it as such
 
user1630889
@KendallFrey But these methods are executing synchronously... They're tasks, but they're running one at a time.
 
it merely simplifies code to abstract away most of the async cruft
(JS programmers know it as "callback hell")
 
user1630889
Yes.
 
user1630889
I've done that :) And I've done the alternative of chaining promises together.
 
1:53 AM
@AlexanderPritchard What are? Tasks don't need to run sequentially
 
user1630889
@KendallFrey My OWIN/Katana "Use" delegates.
 
user1630889
 
is there a shortcut in VS to add a reference for a missing library . for instance i need to know the exact library for DefaultAuthenticationTypes
I usually google the class name and then figure out the name of the library to add
 
@Osadellah Of course not, it could be in any library, how would it know which is the correct one?
 
I could swear i saw a MS video the other day where a guy said it's possible
let me find the video
 
2:06 AM
For example, which assembly is the Timer class in?
 
2:26 AM
@KendallFrey go to 09:10 youtube.com/watch?v=9pWfXyY5pYw
they are talking about ctrl , or ctrl . but not clear
 
@Osadellah There's nothing there about references
 
my bad then
 
 
3 hours later…
5:05 AM
 
 
2 hours later…
7:02 AM
Morning all
 
@scheien yo!
 
 
1 hour later…
8:30 AM
Morning ...
 
9:12 AM
RIP Chat
 
?
 
0
Q: SQL Contains exact phrase

Maria GustavsonI try to implement a search-mechanism with "CONTAINS()" on a SQL Server 2014. I've read here https://technet.microsoft.com/en-us/library/ms142538%28v=sql.105%29.aspx and in the book "Pro Full-Text Search in SQL Server 2008" that I need to use double quotes to search an exact phrase. But e.q. i...

So numerictest shouldnt contain test?
:p
 
I think it's more about the wildcards that are not needed to get numerictest
 
meh, I guess exact mean different then what she thinks
contains search for a specific (exact) match test => would hit numerictest
whereas FREETEXT searches for term + inflections of the term
recipe => recipies
 
10:16 AM
@RoelvanUden Did you do something with my LinkedIn? I got a call yesterday from a recruiter, and a mail from another one today :D
 
@BenjaminDiele I didn't do anything hehe
But that's nice :-)
 
coincidence eh!
 
o/
 
In FormsAuthenticationTicket, what sort of information would you store to identify the user in your system ? For example would I store the logged in email address
Or what about the UserId that the logged in user corresponds to
 
10:37 AM
what happened to the rooms description?It looks like some one threw up all over it
userid would be better @Tommassiov
I am getting a rounding off problem when I copy data from one datatable to the other Its affecting the column with a euler string.
I have 2 dts sysprotb and tbcombined
In tbcombined I get this value in column -7.22722e+006
then I add it to sysprotb like this
For Each dr As DataRow In tbcombind.Rows
sysprotb.Rows.Add(dr.ItemArray)
Next
I get -7227220
how can I stop it from rounding up like that
 
@Gotalove HE COMES!
 
who comes @Squiggle
and good afternoon
 
@Gotalove Z͚̺A͕̹͕L͟G̬O҉̫̦̯͙̯
4428
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
C̜t̢̙̫͙͇̣̯̠ḩ͉̟̗̪̼u̵̬̻l̯̠h̨̲̣͇͈̲u͇̲̞̫͕̻̩. was ere 2k15
 
how are you guys doing this
 
10:47 AM
@Gotalove would you store the logged in email address too ?
Basically I am wanting to store UserName, Email, UserId
 
I used username once
not sure its good practice bt I suppose you can
@Sippy you know more on mvc what do you think of @Tommassiov question
 
vOv
I don't write internet applications yo
 
what do you write intranet apps?
oh yea you do intranet apps
anyway any idea how to avoid my rounding off problem? @Sippy
here is a pastie of the actual code if it helps pastie.org/9980826
 
No idea.
Ask in SQL room lol
 
no the datatable conversion from euler string to what am assuming is an int is C#
or VB
but am thinking of the sql angle too
 
10:58 AM
Dunno
Not a maths guy either :D
 
@Gotalove Ow ow ow my eyes my eyes
 
@RoelvanUden But it's so clean and well formatted ..
 
@RoelvanUden sorry dude its VB
 
Spent all of yesterday trying to repwhore
Made like 60 rep lol
i cri
 
anywho the queries themselves are not really the issue
 
11:02 AM
@RoelvanUden You know how my uni experience wasn't quite as well rounded as yours, do you have any suggested reading or things I should try to achieve to 'get on your level' as such?
 
@RoelvanUden pastie.org/9980925 better I hope
 
hi any wpf guys?
 
I try to learn something new every day but sorta feel like I'm in the dark with it, wondered if you can think of a more structured approach
Question directed to anyone who feels they can answer it, also
 
hehe @Sippy you give me hope coz even though I consider you skilled you still think your shit
 
I'm not skilled lol
 
11:05 AM
which is what I am at programming.Slowly climbing from the bottom of this giant shit pile
 
I may be more skilled than I give myself credit for but I'm definitely not on a level I'm happy with
 
@ArijitMukherjee am guessing Roel made that starred comment there coz he knows sth a bout WPF so ask your query someone will have a look
 
ok thanks @Gotalove :)
@RoelvanUden

This solution is very helpful but I want to know whether the same can be achieved in the complete window and replace the tab with user control?
 
Uhm, what?
 
@ArijitMukherjee you failed to copy the solution
 
11:11 AM
no @Gotalove
when we run the solution what is does is exactly same like windows 8 right side help bar when mouse goes to the right corner
 
You didn't even ask a question. You just made some awkward statement. If that's supposed to be question, give some details and background ;-)
 
im trying to achieve the same with wpf application but the application form will be small image and on hover of the same
@RoelvanUden sorry i know :(
 
yata!!eureka!!
I have goten an idea
since I want it to have - sign why not just multiply by -1
 
11:55 AM
-|x|
 
12:06 PM
Heh. This XML schema allows for up to 6 wives.
(or husbands)
 
@Squiggle Decent!
Extensible Mormon Language?
 
@Squiggle Y'all need jesus
 
Actually the strict Mormon faith doesn't permit multiple wives, and hasn't for a long time.
Although they are weird in other ways.
 
Oh
TIL
 
@Squiggle Is there someone that isn't weird in any way?
 
12:08 PM
@KendallFrey A rock.
 
I've seen some weird-ass-shit rocks in my day
 
@KendallFrey I dunno. I once knew a chap called Chris who was pretty normal.
 
@Squiggle What was normal about him?
 
@Sippy He was called Chris. He wore jeans and studied history, and occasionally played badminton.
 
Huh. Weird.
 
12:11 PM
the fact that you knew him nullifies him from being normal your weirdness is contagious Squiggle :-P
 
You speak like you know me.
 
@Squiggle I think you should set ̀C̜t̢̙̫͙͇̣̯̠ḩ͉̟̗̪̼u̵̬̻l̯̠h̨̲̣͇͈̲u͇̲̞̫͕̻̩ on him.
 
set your mom on him
squish
 
Lol
 
your name is Squiggle :)
 
12:17 PM
the mystery thickens ...
 
*plot
 
my english idioms (?) aren't my strongest point :(
 
damn I cant even rememember the definition of the word idiom
 
there are only two things that thicken, the plot, and my dick
OH: Bob is dead, but we are not.
 
Hi guys quick rant:: Beware of Visual Studio 2010. You will lose all but one of your projects if you are not careful. VS2013 Community Edition is the way to go. At least it never loses any of your projects.
 
12:21 PM
Do any of you guys have pluralsight subs?
 
@MoonOwlPrince how can you lose a project
 
@MoonOwlPrince wtf are you on about ...
 
Hello @MoonOwlPrince
BTW I find Visual Studio 2013 Premium to be just fine, TYVM.
 
I prefer VS2012 because it doesn't fuck with your bracket sizes
 
I used VS 2010 for several years, with no problems
 
12:22 PM
I don't know how the hell my tutor and I lost all five of our projects in one solution except the last project we worked on. :(
 
@MoonOwlPrince Probably cos you didn't back anything up
 
deleted from disk?
 
Which is like
 
@MoonOwlPrince just get it back from source control?
 
why weren't you using git?
 
12:23 PM
duuuuuh
 
I was stupid :(
 
Lesson learned
 
truth
 
@MoonOwlPrince We're using VS2010 and VS2013 and no issues with either of them.
 
Just sayin, I wouldn't blame VS
 
12:23 PM
Blame yo teach.
 
She must have done something
All she had to do was rename the projects and submit them on my behalf to my lecturer
 
She?! There you go!
 
omg lol
 
@RoelvanUden rlyroel
 
that was harsh
 
12:25 PM
I am confused. @RoelvanUden, what are you on about?
 
@MoonOwlPrince Why the fuck would you trust someone to submit something for you?
In fact why would you even ask someone to do that?
 
It is because the procedure is our tutors submit our work for us to the lecturer so they make sure our work is correct
 
Lol you didn't get the obvious rudeness towards all womanfolk.
 
wat
 
Perhaps it's a good thing you didn't pick that up harr
(Woman reading; I was joking of course; don't butcher me for my terrible sense of humor)
 
12:27 PM
Are you okay, Roel? xD
 
Peachy.
 
That way you are guaranteed to never fail practicals for any reason
 
@MoonOwlPrince Well .. no
The only way you're guaranteed not to fail is by working hard to pass them and submitting your own work by yourself
Having anyone do anything for you is no guarantee.
Regardless of who they are.
 
Well, the procedure here is that you submit through your tutor
You are not allowed to submit directly to your lecturer
 
VS 2013 express does have a bug though
 
12:28 PM
Did you prepackage it so that all your tutor needed to do was pass it on?
 
I cant use dataset visualizer
 
Or did you trust your tutor to package it?
 
All I did was just zip it up, send it to her and she unzipped it and she renamed it following the procedures she was given by the lecturer
 
...
Sounds like a flawed system.
 
anyone here have a problem with VS 2013 dataset visualizer
@Squiggle I was joking in case you actually did take me seriously
 
12:31 PM
Also doesn't sound like a bug with VS, if you refactor outside VS then the likelihood of things going wrong increases quite dramatically.
 
I can name two projects FlowChartMVC and DBServerConnections under a solution named Random and then all she had to do was rename them to Exercise1, Exercise2 and Practical1 before submission :(
 
@Gotalove In regards to what? Sorry, I must have missed something.
 
She is the one who also checks to see if there was any copying and stuff.
 
oh good never mind then carry on
 
@MoonOwlPrince so how do you fix it?
 
12:33 PM
It is too late, sadly :(
 
or did you just come here to rant about someone we don't know?
 
"Too late"?
 
She sent me a Whatsapp message apologising but still a 5/20 for exercises I know were correct is bs
The other three exercises are missing but i am wondering how. She says it is Visual C# 2010 Express
 
Lunchtime. Cheerio.
 
So guys... be warned... If IDE's can have bugs human beings can have them as well
 
12:42 PM
Protip: it wasn't the IDE
 
1:02 PM
Protip: Just the tip
4
 
Wonder what happened to that Shaun guy
 
same here
 
1:37 PM
wtf is this code
 
Back from lunch. Ready for round 2.
 
@KendallFrey wat code?
 
List<Action> actions = new List<Action>();
foreach (Action action in actions)
{
    action.Invoke();
}
 
Probably need to get some pizza and alcohol so I work efficiently tonight
Sounds like a terrible idea?
 
yeah.
 
1:46 PM
> Code drunk, debug sober - @rlemon
 
I have the spec so it is just coding
 
@KendallFrey make it interesting...
foreach (Action action in actions.AsParallel()) { ...
 
@MoonOwlPrince I don't see how that is implied
 
Coding is the same as colouring in, surely?
 
As long as you don't color over the borders
 
1:50 PM
@KendallFrey true story
9/10 of my userscripts are written under the influence of alcohol
 
@rlemon That explains a lot ...
 
Your mom explains nothing
she can't even talk
 
2:18 PM
in JavaScript, 18 mins ago, by Kendall Frey
@NickDugger in C#: things.Select(a => a.Foo) | in JS: things.map(a => a.foo);
@KendallFrey Can you actually use arrow notation in JS?
 
GOOD MORNING C SHARRRRRRRP
 
@Steve shhh
 
'appen, Steve.
 
:)
just figuring out this async await stuff still
learned a lot over the last few days, woooo
 
@Steve I'm reading a book written by one of the guys who worked on async/await I believe
 
2:22 PM
concurrency in c#?
 
nope
CLR Via C# by Jeff Richter
I think it has some stuff on concurrency in it though.
 
cool
i'll have to read it some time
i say that knowing full well i'll probably never get to it, my todo reading list is like 50 books long
 
Lol
I've never actually read a C# or .NET book so
 
Does anyone know of a good stand-alone assembly/object browser, like the one built into Visual Studio? I'm not looking for a decompiler, which is basically all I've found so far. Something simple that just focuses on method signatures and the XML comments.
 
Figured I probably should.
 
2:24 PM
i've never read a C# book either, i just picked it up as i read framework books
 
@Sippy In ES2015, yes
 
@KendallFrey Ah.
 
!!> [1,2,3].map(x=>x*x)
 
@KendallFrey [1,4,9]
 
I love me some lambda notation
 
2:25 PM
enable the harmony flag in your browser to try it
 
To use ES do you just have to include it as a dependency or do you need to do some funky shit with engines?
 
1 min ago, by Kendall Frey
enable the harmony flag in your browser to try it
 
oic
 
babeljs.io for using in production
 
So just include babel.js and you can use ES6 shit?
 
2:30 PM
You can, but whether you should is a completely different matter.
 
@Sippy I don't know how it works, I think it's a compiler
 
@KurtHutchinson Generate a documentation?
 
@RoelvanUden Care to elaborate?
I thought the point of ES was to bring JS up to speed?
 
ES != ES6 BTW
 
2:31 PM
ES6/ES2015 is the next version of JS
JS is an implementation of the ES ECMA standard
JScript and ActionScript are too IIRC
 
@Sippy Transpilers are great and all, but by no means necessary or always wanted. It is a build step.
 
:)
 
they also can generate lots of overhead
 
Aren't transpilers roughly equivalent to JIT, though?
 
uh
how are they related to JIT
 
2:42 PM
@Squiggle No, they're basically like a program that translates your C# to VB
- WHY WOULD YOU DO THAT?!
Exactly. :-P
 
ah
 
transpiler is just a made up word by people who don't understand compilers. A transpiler is a compiler.
 
What about GWT? :D
 
what about it?
 
scored 4.07 out of 4.5 on js test
 
2:45 PM
That's a transpiler, right?
 
hi guys can anyone help me with a method im trying to get to work here
 
@MishMish if it's C#, probably
 
asp.net / c#
 
why databinding, converter in WPF is not getting triggered from async function
because of different thread?
 
@Squiggle I dunno, what does it do?
 
2:46 PM
I pulled my hair yesterday and could not make it work
 
Alright ill post my code here
 
@Teomanshipahi You'll have to be more specific than that. stackoverflow.com/help/mcve
 
TextBox box = new TextBox();
box.ID = "txt_" + rowIdx.ToString() + "_" + colIdx.ToString();
// the ID's could be tossed in session variables for later retrieval
if (rowIdx == 0)
{
using (InfoEntities ie = new InfoEntities())
{
int id = Convert.ToInt32(DropDownListServicesAvailable2.SelectedValue);
var respo = (from a in ie.SS_Label
orderby a.Position
where a.ConsolidationID == id
select a).ToList();
foreach (var name in respo)
{
if (respo[0].ConsolidationID != 0)
{
box.Text = name.ShownName;
}
}
 
!!tell MishMish format
 
@MishMish Format your code - hit Ctrl+K before sending and see the faq
 
2:47 PM
okay sorry
sec
   TextBox box = new TextBox();
            box.ID = "txt_" + rowIdx.ToString() + "_" + colIdx.ToString();
            // the ID's could be tossed in session variables for later retrieval
            if (rowIdx == 0)
            {
                using (InfoEntities ie = new InfoEntities())
                {
                    int id = Convert.ToInt32(DropDownListServicesAvailable2.SelectedValue);
                    var respo = (from a in ie.SS_Label
                                 orderby a.Position
 
@KendallFrey I will paste my code here when I reach home, it is my side project and I am in the office now. Stay awake!
 
is this working?
 
@MishMish Why are you asking me? I'm asking you
Is it working?
 
it's a dynamic table that should post all these "showName horisantlly
 
Simply I have databinding in my View like <button background={Binding IsLike, Converter=MyConverter} />

and IsLike is getting updated from async method call. Owner of IsLike property is implementing INotifyProperty changed but when IsLike is getting updated converter is not getting triggered
 
2:50 PM
AFAIK that shouldn't cause a problem
 
If I update IsLike from main thread converter gets triggered
I tried Dispatcher.BeginInvoke no luck
 
are you sure the converter isn't just getting triggered later?
 
Yes, when I set breakpoint it works from main thread but not from async call
 
the breakpoint never gets hit, even when you press F5?
 
@KendallFrey it's working, but in my list i have 4 items, but it's only showing 1, probably because my foreach is wrong somehow
 
2:52 PM
yes, it never gets hit. Only time I make it work, I set value from Navigated_To event in page.xaml
 
@Teomanshipahi Make a super tiny example, and I'll take a look at it
 
but after my function (which is async) finish and update property it does not get hit
Ok I will paste the code here when I reach home, thanks.
 
don't just paste your code
make a minimal example
 
Can I get some personal feedback.
 
got it.
 
2:57 PM
Anyone host a personal web-site with Azure Virtual Machine? Thinking about spinning one up.
 
@Greg possibly
 
I have mid-size ec2. never tried azure
I think I wasted my 90 days trial
 
Hm.
 
do you have trial? I think they started to support also free tier
for testing purposes
 
Yeah, I've got money from MSDN Account each month, was thinking about it.
 

« first day (1593 days earlier)      last day (3360 days later) »