« first day (1591 days earlier)      last day (3362 days later) » 

12:33 AM
@Greg The compiler can differentiate between methods and types, so List<T> and Where<T> will not conflict with anything in C#. The methods available in the repo were meant to reflect the same methods you would find in the framework, so that developers wouldnt have to remember weird names like "repository.MagicalSearch<T>" when "Where<T>" is more natural and just plain makes sense.
 
hi
I'm having trouble with binding a string value to a textblock
 
code?
wpf or winforms?
 
@BrianJ onpropertychanged, public namespace, spelling
 
yeah just loading up VS again
 
@CharlieBrown wpf
 
12:36 AM
its wpf
so when I bind it for one property it works, and shows the text value on the textblock.
but when I bind it to another property, no value is shown on the textblock
I have set a break point on the OnPropertyChanged("Gender");
 
debugger shows property is filled? same type? are you using string.format?
 
but it never gets triggered
 
gist?
 
posting code in a sec
 
String Gender {get;set;}?
 
12:40 AM
its the textblock I've bound the "Gender" property to:
and this is the VM associated with it:
If I bind to LoggedIn for instance, the binding works, and "True" is output on the textblock
but if I bind to Gender, nothing shows, although in the initLogin() I have set a breakpoint and ` _loginObj.Gender = me.gender;` is being assigned a gender value
so it must be the way I've set up the property then.
 
does the breakpoint on "Gender" hit?
 
testing that now
 
possibly your Equals method has an issue with string comparison. you should be testing with String.Equals(value, _gender, Invariant)
 
if for example I bind to Gender, and set up a default value for Gender like this ` private string _gender = "male"; the binding does show
`
just testing with brek point now on Gender
okay so after setting breakpoint on Gender, the get is called and then it steps into the initLogin and assigns the values, but the set in Gender is never called..which is where the problem is I think? @CharlieBrown
 
i would agree
remove your equal check
 
12:49 AM
so use this instead? ` if (String.Equals(value, _gender)) return;`
@CharlieBrown did the above but still the same outcome
 
String.Equals(value, _gender, StringComparison.OrdinalIgnoreCase)
so, now you need to check the calling code... what called Gender = "sometyhing?
 
OnPropertyChanged("Gender"); never gets triggered either in breakpoint
@CharlieBrown this code from within the initLogin()
_loginObj.Gender = me.gender;
calls Gender
 
and the _loginObj is what is bound to the view?
Is me.gender blank? set a breakpoint on that puppy
 
set already, its showing as being populated
@CharlieBrown
maybe it needs to be loginObj.Gender?
but when I tried the following, I get ._gender is inaccessible due to its protection level
public string Gender
{
get { return _gender; }
set
{
if (String.Equals(value, LoginObject.Gender, StringComparison.OrdinalIgnoreCase)) return;
LoginObject._gender = value;
OnPropertyChanged("Gender");
}
}
 
no
the other way is correct
_gender = value;
 
1:02 AM
okay but the value still doesn't show in the textblock, using this way
 
whats your OnPropertyChanged method look like?
 
OnPropertyChanged works for other properties like "LoggenIn" but not for Gender
 
ah
make your property like this
        public string Gender
        {
            get { return _gender; }
            set
            {
                if (String.Equals(value, _gender, StringComparison.OrdinalIgnoreCase)) return;
                _gender = value;
                OnPropertyChanged();
            }
        }
 
dammit, how did I not spot that,...
testing now
@1am
lol
@CharlieBrown nope that didn't work either
 
location? its 7pm here...
 
1:09 AM
..
Rep Ireland
 
well, thats at least more correct... something else weird going on then
 
yeah
wish there were a few more hours in the day here
 
lol, yep, everyday
 
yeah
better get used to it I guess :P
 
Im jumping offline... if you need more help consider putting the solution up on GH or something, then I can help better
This is that Myo project youve been working on right?
 
1:11 AM
yeah
the Thalmic Lab's device
just synced up to my latest revision now, see link to Git above
 
if you come accross what it is, ping me here in the morning
:)
 
Will do!
 
logging off..
thanks
 
1:40 AM
@Rachel are you around by any chance. I had a quick question relevant to one of the answers you had in SO if possible
 
 
1 hour later…
3:03 AM
It's sunday night, this place should be rocking!!!
 
 
1 hour later…
4:17 AM
Guys, is there a site on the SE network where you can ask a programming question asking for advice on how to resolve a particular issue, even if there is no code to show, or, even if the answer is expected to be simply a logical thought process which helps teach how something should be done? That doesn't sound like a good fit for SO, because I always see questions like that get downvoted and closed.
 
 
1 hour later…
5:22 AM
 
 
2 hours later…
7:16 AM
@Jase: You can try programmers or maybe codereview
 
morning!
 
yay, more ways to kill people! That never goes wrong
 
I don't even know if that's legit, it's on 9gag so...
 
 
1 hour later…
8:38 AM
hi
all frenz...
I want to check avoid any server call if net is disconnected!
any one knws how to achieve it?
 
What have you tried so far? Is it web, winforms, wpf, wp, console?
 
@Victor Do a ping for a server you know is up, then you know that you have 1) a connection, 2) access to the internet
 
web application i m using
i mean in ASP.NET, @BenjaminDiele
using any method in C#?
 
Eh, you want to check if your site can access the internet?
 
8:53 AM
u knw, hw gmail works?
If connection is not ther
It won't send any mail
it will give alert that u r disconnected
like that!!
 
Add some javascript, pinging your server then. And fix your english please.
 
You want to let the user accessing your website know if he has access to the internet?
 
morning @TomW, @BenjaminDiele!
 
yup right! @RodrigoSilva
 
What @BenjaminDiele said then
 
8:56 AM
@scheien Yo!
 
Hm... Isn't it weird that my control is not updating the visibility of some of its child controls even though all work is being done in other threads?
Is there a way I can force the control to update from XAML?
 
Don't know how it's like in xaml, but in winforms all controls have a Refresh() method.
 
Even if it the control has that method, I can't call it from XAML, the Visibility property is being set from a trigger
                            <Trigger Property="IsEnabled" Value="true">
                            <Setter Property="Visibility" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Visibility" Value="Hidden"/>
                        </Trigger>
 
morning
 
9:03 AM
@TomW Hi :)
 
Shouldn't it be "notified" by any changes, and update accordingly?
 
Usually yes, but it sometimes doesn't update until I actually click the parent control
Which is a bit weird...
Clicking (focusing) it seems to force the update or redraw
 
Hi guys, is there any recommended tool to log time to first byte metrics for asp.net mvc application?
 
@SiddharthP Have you looked at this? markusgreuel.net/blog/…
 
@BenjaminDiele yes I have but those are just third party different sites that I'm already aware. Is there anything available in .net ?
or should I just use action's begin and end request handler to log?
 
9:17 AM
Mornin lads.
 
Morning
 
whts the Time? up there guys
here clock's showing 2:48 pm and so... Gd afternoon
 
my place its 09:20 am
 
@RoelvanUden Top o' the morning to ya
 
10.19 in the mornin' in the Netherlands
 
9:19 AM
where is it?
 
@Victor UK
 
@SiddharthP?
Alrighty then!
Good Maorning buddies
;)
 
and you?
 
INDIA
 
@SiddharthP No idea honestly. I've searched a bit on google and linked you a result that looked interesting :)
 
9:20 AM
ok
 
Hi guys
 
@BenjaminDiele no worries. thanks. I'm still searching...
 
Have you guys ever got and accepted Counter Offers?
 
counter..?
 
means?
 
9:21 AM
@SiddharthP What exactly was the question?
 
@SamyS.Rathore Nope, haven't. But from what I read it isn't always the best choice
 
I got a job offer with a 50% hike on my CTC
 
@SiddharthP @RoelvanUden
 
and when I told my bosses, they asked me to reconsider to stay
and they said they'll match the offer + a bit more
 
hw many yrs u've completed with ur firm?
 
9:22 AM
1 and a half
but I have a really good relation with my project manager
 
@RoelvanUden I have a asp.net mvc app where some admins complain its running slow. I just need to log TTFB metrics on the machine. So, I thought to ask if there is any existing solution to do it. Or should I just log time using action's begin and end handler?
 
oh, well then u shuld stay a bit more there
@SamyS.Rathore
 
@SamyS.Rathore if you get what you were expecting at new place, then stay there. If ppl are good and work environment is friendly.
 
@SiddharthP You can use MiniProfiler AFAIK
 
But doesn't that creates some friction with the upper management
they might think I'm using tactics just to get a raise
 
9:25 AM
@RoelvanUden does it have logging feature?
@SamyS.Rathore if they ask you for a proof, make sure you got it ur offer letter. they may do it as like this anyone can ask for a pay raise.
 
@SamyS.Rathore The stories I've read about counter offers is that when you accept one, your company is usually looking for a replacement that they can get cheaper. That, and no promotions or raises in the future.
Then again, stories.
 
@SiddharthP: MiniProfiler is very flexible, you define the parts it should profile, and you log stuff yourself (e.g. log4net)
 
hahahaa
 
It can even tap into EF and profile queries for you
 
9:28 AM
ah ok
ok thanks I'll give it a try today never used it.
 
Recruiter called into my office. Ladies at the call center picked it up and told me they wanted to talk to me about a reference for a old co-student. I got the call, he was there to recruit me into whatever-the-fuck he was about! Blatant lies, these guys are shameless. Am I the only one that gets seriously pissed off about these tactics and doesn't want anything to do with people that employ them?! I pretty much smacked the horn down..
 
That's pretty rude
 
I don't have that problem. Recruiters never call me :D
 
That was not at all good. I usually ignore calls by unknown numbers in day time :P
they chose you :P
 
Removed some offensive stuff for sanity sake.
 
9:37 AM
Hehe
I don't mind that they call me from time to time, but they have to be upfront about what their intentions are.
 
Exactly that! Don't lie to get to talk to me on my office phone.
 
@scheien You kinda reminded of an overprotective dad, for some reason :P
 
That's the worst part. They didn't bother calling my cell. They called work. And lied.
 
hehehe
 
haha right
 
9:39 AM
If you're going out with my daughter, you better be upfront about your intentions son!
2
something like that?
:p
 
Exactly like that :P
 
It is better to be honest from the start, rather than con your way into something and get caught like a little moron.
 
Oh btw, @scheien I ended up calling CommandManager.InvalidateRequerySuggested();
I had to use a dirty little hack to be able to call it... But meh
 
Dunno what that does, but a wild guess would be that it redraws the controls ;-)
 
It forces the app to evaluate all bindings I guess
I remember using it because of a button not updating aswell
 
10:18 AM
o/
@RoelvanUden I'm always annoyed just by the ones who call/email you having clearly not read any of your CV
And the first thing they always say is "So I've read through your CV and I have an opportunity which I think you're perfectly qualified for!"
My CV has Android mentioned once, and doesn't mention PHP
But those are the majority of calls/emails I get lol
 
no9
hello
what do u guys think of this win8 tablet: computeruniverse.net/en/products/90583782/…
compared to iPad or Android tablets...
 
@Sippy: Then you have the recruiters who does not have any knowledge on software engineering whatsoever
 
@no9 On the heavy side.
 
no9
@RoelvanUden explain :)
 
10:28 AM
@no9: my father-in-law has one those, and as @RoelvanUden said it is quite heavy
 
@Sippy I had a recruitment agency that wanted me to fill out some forms. It included things like "programming in HTML" (what... I don't even...) and things that didn't even make sense (ASP.NET MVC categorized a language, etc)
 
no9
weight vs: usability ... i can live with that :)
 
@no9 I think the average weight for a 10 inch tablet is like 300 grams lighter than that
 
@no9 810g is a bit much. It's also not using an Atom, it eats battery.
 
@RoelvanUden Lol love it
 
10:29 AM
@no9 And it seems like an "old" generation heavier/thicker tablet.
 
I've learned a lot from you guys about when to understand you have a moron for an interviewer as well
like people who only ask technical questions and don't try to understand you as a person
 
no9
@RoelvanUden @Sippy its an i5, 4gigs ram, 128 SSD pc
 
@no9 How much is that
 
no9
500+ eur
 
eesh
Not considering a surface for that price?
 
no9
10:31 AM
dont know if surface 3 is that cheap
 
It's not
 
@no9 If that's what you're after, it's absolutely good. Personally, I value lighter, less thick, more batter saving for a similar price.
 
But it's probably better :P
 
10:43 AM
Hi guys, is timetaken field in logging for IIS same as ttfb for a site?
 
@no9 You may want to consider the Asus Transformers Chi series.
(Personal hype-point honestly)
 
no9
thanks ill look into that
 
11:05 AM
@RoelvanUden xD
You like dem Chis
 
I want one. I'll get one. As soon as they become available.
I'll retire my old notebook and tablet (bye bye Android)
And I'll have only Windows remaining!
On all devices!
 
Lol
I was talking to a guy I went to school with yesterday, he's in the final year of his computing degree
And he basically told me that he thinks all web technologies are a waste of time and that mobile device tech is the way forward
I just lold
 
Uhm.. web technologies are the only thing to survive the fragmentation IMO
 
11:21 AM
@Sippy: He seem like a bright fellow
 
11:32 AM
Developing for android must be pain due to all those 3million different versions
 
Lol
IE ..
 
THE
11:45 AM
Is there anyway - I can find out what is making a certain div - disappear from screen ?
 
Damnit, why is it so hard to find a 24h fitness where I live?
 
THE
@BenjaminDiele where you live ?
 
hi guys Can I load datagrid view data along with columns name to display them in crystal report? Windows Form
 
@THE Ghent, Belgium
 
I do not want to use database expert fileds
 
11:50 AM
@KendallFrey Snollebollekes. Damn you.
 
@Sippy Bam Bam Bam
 
0
Q: Export to pdf in MVC 4(Embed Html in pdf)

vishu minhasI am trying to export pdf using MVC 4. While exporting when trying to embed Html in pdf document error occur: The type or namespace name 'tool' does not exist in the namespace 'iTextSharp' I have added iTextSharp.dll but i dont know why i am getting error. Please help me thanks in advance. ...

 
cooooffeeeee
 
12:06 PM
hi !
i'm looking for some help, i try to create a visual studio add-in, but i don't find the project in visual studio (i use VS 2013)
 
hi
morning
oooops evening
ohooooo no man It's after noon :D
 
@user2736704 I think you may need coffee ...
 
@Sippy :) sure
 
lmfao
our offshore team just sang happy birthday
 
12:12 PM
happy birthday to lmfao :d
 
A bunch of ESL programmers singing, over Skype. It sounded... fantastic :P
 
@KendallFrey Lol
 
fml, my respiratory system is fried
too much cold air yesterday
 
You mean fresh air?
 
COLD AIR
 
12:16 PM
fresh!
 
fuk yo
 
hehe
 
 
2 hours later…
I don't get it. Who's the dude in the last panel? Why's he angry?
 
Uhh
So I don't know a lot about signalr
But it's in my MVC application and it's making 200 requests a second
 
@Sippy
 
Can I make it go away
 
probably not
you could make it more efficient though
(i mean, you could delete it, but replacing it would be difficult)
 
2:03 PM
I don't .. need it
I'm not doing real time anything
 
When returning a object from a method, if the object doesn't exist e.g no record in the database is it normal to return null, or is it better to return a list with 0 count for that object
 
It's just going HAM doing something I never installed it to do lol
 
Or doesn't it really matter ;)
 
oh you installed it? if you don't need it just ax it
 
@Tommassiov Totally up to you.
@Steve Nope
It's just there.
Doing things.
Dunno what those things are.
 
2:05 PM
i dont get it - if it's sending 200 requests a minute does that mean it has a hub? who created a hub for it, and why is it no longer required?
 
@BenjaminDiele Because he went back to jQuery. :P
 
@RoelvanUden But why would somebody be mad about that?
 
shiiiiiiit
 
I'm not getting the joke :(
 
@Sippy It went back to polling mode. Ensure it uses WebSocket transport.
 
2:06 PM
this guy knows whats up ^
 
@BenjaminDiele Because it's a running joke that jQuery is not necessary anymore. :P
 
@RoelvanUden Ah, that kinda jokes.
 
:o
 
jQuery is the newest thing to 'not use anymore cuz its cool not to'
 
isn't that nodejs?
or angular?
 
2:08 PM
No, node and angular are 'cool'. jQuery isn't 'cool'. That, pretty much :P
 
Oh, they're still cool? I thought io.js was the new hype of the week.
 
Oh, right, you're absolutely right. node is dead and iojs is the bomb
 
@RoelvanUden I turned off browser link
 
It was, then node.js announced they would create an open source panel for governance
 
They announced that?
 
2:10 PM
which was about 50%+ the reason io.js was created
Yeah, its offical now
They announced at the last Nodejs event
 
Got a link?
 
Ah. If you don't keep up in JS world for about 2 weeks, you're totally a dinosaur that's waaaay behind the facts. On the other hand, if you don't keep up for 2 years in C# you're pretty much up-to-date (but nearing the next big release).
 
no kiddding
 
Yeah, every week there's a new framework or new best thing to be found
always in pre-alpha state though
 
2:13 PM
im always amazed how many 0.0.1 versions are promoted in production
 
Or how many libraries just say, "use our dev branch"
 
Have we ever known him otherwise?
 
sample size is way too small, 250 people
 
Of course it's a bogus report. I think that if you interview 250 construction workers, around the same percentage would say the same.
That's not to say that people are perhaps pretty quick to bully.
 
2:43 PM
-30F this morning. winter suucks
 
3:00 PM
@CharlieBrown Is there a little Unit Of Work in that example you gave me?
 
The joy when something stops working for no particular reason.
 
sure
    public IEnumerable<InventoryItem> List()
    {
        using (var context = _dataContextFactory.Create())
        {
            return context.List<InventoryItem>().ToList();
        }
    }
@Greg
 
3:20 PM
Well if Meta is any indication the industry certainly doesn't have a lack of people who could use a lesson in manners.
 
hey
html question
so we're using this cool hip new tech called frames right
 
Or simply dropping the constant dismissive and pedantic tone.
 
@CharlieBrown Is that not all industry?
The world is full of bullies and twats
 
any industry, not tech specific i think
 
i add a scroll bar to the top frame, and it allows the user to scroll farther down than they should, e.g.

//html tag ends here, i can enter text after it and see it here




/// it scrolls all the way to here, with the white space above, whyyyyy
 
3:23 PM
@SpencerRuport i love it, when i hire people i look at their SO content. Would not hire any of them
 
Yeah it surprises me anyone would.
 
@Steve changes per browser as well, each browser puts its own styling on frames
@SpencerRuport Hm, that would make a good blog post
 
95
Q: Can we get some explicit clarification on the *intended* legal usage of code from SO answers?

Spencer RuportI was recently told by someone that due to the fact that Stack Overflow uses the CC BY-SA 3.0 license any code examples cannot be used in a commercially available closed source application. This individual works for a relatively large international corporation and regularly speaks with lawyers of...

 
@CharlieBrown I thought so, I was looking at the code and it kind of felt like it.
 
Some patterns are very small. Here is the "Variable assignment pattern" TM
 
3:25 PM
Maybe I'm just being sensitive but a lot of the discussion in there seems unnecessarily personal and antagonistic.
 
var k = "Tacos!";
@SpencerRuport What is your intent for that question? i.e. What do you want/need it answered for?
@SpencerRuport actually, your comments on some answers could use a bit better tone as well
 
@SpencerRuport - Damn man, that question did great! :)
 
@SpencerRuport really looking it over, some of your answers are the most offensive of the entire post
 
Although, I think there is speculation on your part when you say "If that is the intention there is a problem because the current terms of the site do not support that intent." in your edit, as the terms seem to me to support the reuse of code without license or attribution.
 
3:40 PM
But i do love the question, imo, the copyright extends to the answer or question, not to the individual parts of it. And it would be very difficult for someone to win a legal argument that you stole there code from SO
 
Also, so answers are $(function(){}) is the shortcut for $.ready() . Would that mean no one can use that code anywhere?
 
Is it worth clearing a StringWriter's internal buffer, or should I just discard it and create a new StringWriter?
 
@KendallFrey - You could look at how Json.NET does it
 
Where does JSON.NET do it?
 
They wrap it in a JsonWriter which is really just a StringWriter
That is what they use to form their strings though, or the json as it were
 
3:51 PM
Are you telling me to search their whole codebase looking for clearing a StringWriter?
 
Ah, now my machine is working better.
 
@KendallFrey - Yes
@KendallFrey - It seems to me that they discard and use a new one.
 
right then
 

« first day (1591 days earlier)      last day (3362 days later) »