« first day (1753 days earlier)      last day (3201 days later) » 

1:05 PM
School doesn't start for another like 2 1/2 weeks after my internship ends. I need something to do in that time.
 
@Griffin you could try becoming a cat whisperer
 
@BenjaminDiele Hah
 
I've heard it's a lucrative field.
 
Very crazy cat ladies have all the $$
 
Single with no children? Yeah sounds like they would.
 
1:09 PM
Hey guys
 
Hello.
 
How do you call a method like DoSomething<TSource, TDest>();
where TSource and TDest are class names
 
....
 
@Henri Hey On-ree
@Henri generic method
 
@Loetn bawn juur
 
1:11 PM
@Henri Hmm, bonjour I suppose? :)
 
@Loetn correct, it was my half assed attempt at writing phonetic English
 
So my younger brother is the active one in the family and it turns out he's got spine problems now. I sit in a chair all day and I don't. Hehehehe
@Henri Don't worry. Everything we do here is half assed.
 
@Henri Magnifique
 
@Griffin sounds like my kind of people
 
@Henri We welcome you brother half ass.
Like right now I have a really good idea for a personal project. Butttt it's too much work so I'm putting off even thinking about it.
 
1:16 PM
@Griffin Aahah, but -_-
 
I don't think I've done any actual code in the past week and a half.
@Loetn I want to do actual work but I don't wnat to at the same time. You feel?
 
@Griffin Yes, but that's not what I meant :)
 
@Loetn Oooopssss
 
More like: half ass and but. Ye, my humour :)
Sorry :(
 
I am wondering how to transfer my async method under .NET 4. May someone assist me please?
                Task.Run(async () =>
                {
                    using (client)
                    {
                        while (!tx.ErrorRaised)
                        {
                            var receivedResults = await client.ReceiveAsync();
                            ParseResponse(receivedResults.Buffer);
                        }
                    }

                }).Wait(CommandTimeout * 1000);
I am wondering for the .Wait ?
 
1:19 PM
Hey has anyone had any luck using Cortana to open their application and do commands?
 
hello Guys ,
need help please

i am using below query to insert data from one table to another

INSERT INTO table2
SELECT * FROM table1;

table1 and table2 have same structure
what if i want to check existence before insert
 
Bassem.. sometimes blind faith is the best way..
 
:D
what do u mean by blind faith
 
Javascript made me dislike async. I don't think I can go back.
 
@Griffin why
javascript has nice async
 
1:26 PM
Because they're too damn async. People want me using this new fangled promise stuff and when I use the promises they are lies.
3
 
for wcf, if i configured it maxConnections = "50" on the server side, do i need to do anything on the client side config? or i don't need to touch the client side?
 
@Sippy Hold up. I'll show you what I'm talking about. The code I have right now is uber messy though. Just warning you. I tried doing a bunch of stuff to get it to work and it's become a cancer. Old methods aren't being removed but new methods keep growing.
 
@Griffin ... use await?
 
@Bassem if you're going to insert a whole table into another table does it matter if it has any records?
 
yes , i don't want to insert dublicated rows
 
1:30 PM
async function downloadHtml(address: string): Promise<string> {
  let html = await http.getString(address);
  let body = html.load(html);
  return body;
}
^ Actual TypeScript I write and use.
 
oh, I see. That becomes tricky then.
 
@tweray as far as I know this is service config. And No, only server should be suffice.
 
@Bassem if you want to check for dupes you may have to either do it in a loop or find some simpler criteria to filter down the second table. Here is someone trying to do something similar I think:
1
Q: Insert distinct values SQL Server

grteiboI'm trying to insert unique values into a table from a View. I have a table as below: the "fromView" has no unique constraint in passport id | passport | name | surname | address 1 44543 John Smith xxxxx 2 10001 Mike Thomps avasfa 3 10001 Mike Thomps ...

 
This is what I've been trying to do. But it doesn't work because they always just skip over assigning the variables. pastebin.com/Vbhsz8f0
 
thanks @cuddlebunny
 
1:34 PM
That's what I got. When I googled looking for an await in JS
 
@Griffin Are you using Babel or TypeScript yet?
 
@RoelvanUden Nope :/ Just plain old JS + JQ
 
Considering using either. Babel has ES7 async/await implemented under the stage one proposals IIRC, and TypeScript has it under an experimental flag in 1.6
Then you can simply write await ... on promises and define async function
 
@Griffin for var datelabels = gettingLabels(); does dateLabels become undefined?
 
It's nice.
 
1:36 PM
ES7? Stable?
 
What's funnier us that I actually just turned async off for my ajax calls there. It broke half of my havascript calls. @CuddleBunny Yes. It's extremely annoying.
 
@Griffin so the reason for that is that the function gettingLabels doesn't actually return anything.
 
@CuddleBunny All of the variables that rely on Ajax calls end up being undefined.
 
the line return getLabels(response.BeginDate, response.EndDate); just returns from the callback.
 
1:37 PM
@RoelvanUden Few more years and C# is in serious trouble with JS recieving language features like that :P
 
but gettingLabels is implicitly void.
 
@CuddleBunny Uhhh ohh. Okay. This is important. So why doesn't that work again?
 
@Sippy It's already in trouble. There is no reason for me to choose C# over Node/TypeScript for most applications (and I don't).
 
@CuddleBunny My fault I didn't include that function. I tried to clean it up before sending it to you guys.
 
So I found that music that I thought was a national anthem. It's not, but I think I heard it at the World Cup.
 
1:40 PM
@CuddleBunny This is the more correct one. pastebin.com/vNx3HTF8
 
here from 0:03 to 0:07, what is the name of this song?
 
gettingLabels calls your async jQuery function then returns because async calls are non-blocking. When the AJAX call completes, the success function gets called but the data gets returned to nowhere.
 
@CuddleBunny Yeah that's what I found. I don't understand a good fix though.
 
so in c# you would just await the ajax call, but since that isn't a thing yet I would get the data before you call your display multiline.
something like:

getLabels().success(function() { getLines().success(function() { displayStuff() })})
 
@CuddleBunny Yeah I thought of that.... WAIT A MUDAFUKEN SECOND. DIS IS WHERE WE NEED RECURSION
AWWWWWWW SNAP
 
1:45 PM
if you want the lines and labels to load in parallel you can keep a bool that becomes true when the first one finishes and when the second one finishes it runs displayStuff
 
@RoelvanUden I need to get busy building shit with Node and TypeScript
 
@Sippy If you want to contribute to a project of mine I can give you work :p
 
I'm going to re-write my e-learning Shell in TS.
 
@CuddleBunny My problem is I need to get all the lines in the list before I continue. Would recalling it recursively work?
 
@RoelvanUden I know nothing yet :D
Can just about JS
Wouldn't mind contributing when I can hold my own though ^_^
 
1:47 PM
@Griffin It wouldn't really be "recursive" but yeah the best way to do it the way you want is to force it to execute synchronously by only running the next function in the previous operation's callback.
 
guys halp
 
@CuddleBunny Hold up. Once I finish with this BS I'll try that.
 
@KendallFrey no faku kindle
 
@KendallFrey Wot u nyd fukboi? <3
 
1:50 PM
uh
what did you call me
 
Ok, I have to relearn the English language
 
I called you lovely.
 
yeah... you did...
11 mins ago, by Kendall Frey
here from 0:03 to 0:07, what is the name of this song?
so anyway, i need this cleared up since weeks
 
Darude - Sandstorm
 
We gonna take this to the scrap yard? Get our crunk on.
 
@Squiggle Get. Out.
 
NO U
 
I'm too excited for 10:00 on a Tuesday.
 
@KendallFrey that goal from midfield was humiliating
 
@Squiggle lol <3
 
1:55 PM
It's like I'm really in twitch chat
 
@KendallFrey cut out the clip and use shazam or something?
 
@Jeremy ヽ༼ຈل͜ຈ༽ノ RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ
 
To me it sounds like something Queen would do, but I dunno.
 
dotnetfiddle.net/S5A79M someone explain this
 
@StevenLiekens DayOfWeek isn't a valid type?
 
1:59 PM
it is
I'm just confused about why the Cast extension throws an exception
 
So we know it's line 14 being weirdo. Lets see what fixes it.
 
full intro
 
The first example is a user-defined conversion, not a cast
 
^
 
2:00 PM
Or something similar, anyway
 
I suspected that was the case with Enums
 
C# goofed by making the syntax for conversions the same as for casts.
 
I rarely use enums anymore
 
public class YourEnum
{
    public readonly YourEnum SomeValue = new YourEnum("Title", 1);
    private YourEnum(string title, int value)
    {
        Title = title;
        Value = value;
    }
    public string Title { get; private set; }
    public int Value { get; private set; }
}
 
2:02 PM
didn't know that
thanks @KendallFrey
 
@TravisJ you magnificent bastard
@TravisJ made +8.96% on MNDI so far and climbing
 
eject eject!
 
real trades?
 
So how do I use async await in .NET 4 ?
 
2:08 PM
haha
 
@StevenLiekens yup
 
That is some Good Rate
some expensive stock Gezzz
 
high leverage
it hasn't actually increased that much. I don't think, hold on
yeah more like 2% in actual price
 
ya that is what google is showing, but still good rate
 
22
A: How can I use the async keywords in a project targeting.net 4.0

Jon SkeetYou want the Microsoft.Bcl.Async package. That's a properly released, non-CTP package that is stable. This also requires VS2012 since an updated compiler is needed to understand async and await. In theory one could use older tools from VS2010 along with the older CTP library, I'd strongly recom...

 
2:15 PM
I'll put massive leverage on anything Travis recommends next time. And blame him when it goes wrong, obv.
 
Dump the bank account!!
 
Went out, I'm getting tetchy.
 
Arse. I've got a drop-down for 'country of birth' here.
What if people were born in the former Yugoslavia or Rhodesia? Does anyone know of a canonical list of such places?
 
@Squiggle What next, the moon on a stick?
 
:P
 
2:21 PM
it's nice when forms have autocomplete for place names but it sucks when they are enforced
 
@TomW it's a valid question, if a little retarded.
 
@Squiggle ISO3166
Contains current and former countries and metadata saying which of them are assigned and which are former
contains places which are emphatically not countries however.
 
Good morning, C#-ers
 
morning? it's almost 4:30
 
aha yep I'm using the current countries list, but didn't include the former.
@JGrindal the correct term is "C-sharpians"
 
2:32 PM
@Squiggle Fairn enough.
 
only 1030 here :(
 
@Squiggle @Squiggle yeah ISO3166 looks like what you want, with a specific blacklist to exclude the silly ones
 
@StevenLiekens Some of us live in Freedom countries.
 
I've still got 7 hours of converting another vendor's Flash menus... yawn.
 
@TomW jup. Thanks :)
 
2:34 PM
@CuddleBunny Hey, I get to spend the day sifting through 70,000 lines of someone else's code to try to figure out how they're doing what they're doing.
 
@JGrindal I get to do this for the next 45 days because we're understaffed right now :D
 
@Squiggle some clown will tell you they were born here
So some scientists must have committed a breach of protocol and safety regulations, if not adultery :)
 
But still possible!
 
> Neutral Zone; Romulan
(not really. But that was my first thought on seeing it)
 
This is a list of notable people born at sea. == References... ==
I love wikipedia lists
This article is a list of articles that are themselves lists of articles that are also lists on Wikipedia; i.e., each of the articles linked here is an index to multiple lists on a topic. == General reference == List of lists of academic journals Lists of important publications in science == Culture and the arts == === Literature === Lists of books Lists of 100 best books Lists of The New York Times Fiction Best Sellers Lists of The New York Times Non-Fiction Best Sellers Publishers Weekly lists of bestselling novels in the United States Lists of bookstores Lists of LGBT figures in f...
best by far
Dahala Khagrabari (#51) was an Indian enclave belonging to the District of Cooch Behar in the State of West Bengal. This was a piece of India within Bangladesh, within India, within Bangladesh. It was one of the smallest—7,000 square metres (1.7 acres)—of the Indo-Bangladesh enclaves, albeit not the smallest of the 106 Indian exclaves inside Bangladesh and 92 Bangladeshi exclaves inside India. It was the only third-order enclave in the world until 1 August 2015, when it was ceded to Bangladesh. == Overview == Dahala Khagrabari (#51) was completely encircled by the Bangladeshi village of Upanchowki...
for those who like meta-geography
I'll stop now. Sry.
 
2:43 PM
OK, I need some help. Can someone help me understand just what in the hell this does:
        public T GetExportedValueByTypeName<T>(string typeName)
            where T : class
        {
            try
            {
                lock (_exportedValuesLockObject)
                {
                    T instance;
                    IEnumerable values;
                    var type = typeof(T);
                    if (_exportedValues.TryGetValue(type, out values))
                    {
                        instance = values.OfType<T>().FirstOrDefault(x => x.GetType().MatchesTypeName(typeName));
 
can you put it in a pastie?
 
@JGrindal That's a lot of code, can you narrow down your question?
 
@JGrindal it looks like it loops through a list of values and gets all of them with the specified type?
 
That LINQ query scares me
 
2:47 PM
It looks like T should be the same as typeName though... so not sure why you need the string in the first place.
 
@KendallFrey I wish I could. I'm trying to figure out what this function does and how it does it, but my Kung Fu is weak on this.
 
It's searching MEF for a part matching the given types, I guess
 
the values variable looks like it's a collection of instances that is added to if there isn't already a match within. I'm not sure what that's used for though.
 
the function of:
                var selectedPart = _compositionContainer.Catalog.Parts
                    .Select(x => new { part = x, Type = ReflectionModelServices.GetPartType(x).Value })
                    .Where(x => type.IsAssignableFrom(x.Type))
                    .Where(x => x.Type.MatchesTypeName(typeName))
                    .Select(x => x.part)
                    .FirstOrDefault();
OK, let me see if I can follow this.
 
@Squiggle It's a cache
@JGrindal I can rewrite it to be more readable if you want
It's a bit of a mess
 
2:50 PM
@KendallFrey I would be willing to buy you a soda if you could. I'm getting lost.
 
k, 2min
 
lol wikipedia
 
Of Lists
 
var selectedPart = _compositionContainer.Catalog.Parts
    .FirstOrDefault(x => type.IsAssignableFrom(ReflectionModelServices.GetPartType(x).Value) && ReflectionModelServices.GetPartType(x).Value.MatchesTypeName(typeName));
 
@Jeremy we have to go deeper
 
2:53 PM
there you go, the de-optimized query
@Jeremy It is true
A list of lists of lists is itself a list of lists
 
GOT it.
@KendallFrey Muchos Gracias.
 

« first day (1753 days earlier)      last day (3201 days later) »