« first day (1556 days earlier)      last day (3408 days later) » 

7:02 PM
Anyone here know why I get 2 intellisenses after installing Resharper? I got the Resharper one, and the default. I'd like to remove the Resharper one.
 
So, you answered your own question?
 
Hello, I have a search box and i need to make a search engine where the user inserts a name and images and some info next to the images display under each others (similar to facebook search)
 
I'd expect either one. Not both at the same time
 
does anyone know any link can help me with this?
 
14
Q: Completely Disable Formatting and Completion in ReSharper for Visual Studio

Chris LeesI like a lot of the features that ReSharper offers, but I absolutely can't stand the formatting and code completion it does. It trips me up every step of the way. In javascript it's constantly stealing braces attempting to reformat my code making it not work, and hard to find where pieces are m...

I would guess that you'd need to cache last results up to a certain point depending on how much data we are talking about.
If the textbox is empty, you do a new search on keypress
And if you're inputing more data, you refine your search from a cached list
 
7:07 PM
I love it that I don't have that option in my Resharper options (only installed dotCover)
 
so im getting a "The calling thread cannot access this object because a different thread owns it" type InvalidOperationException when I attempt to modify an ObservableCollection. I read a few posts that say I need to use a dispatcher to update components on the UI, except... there are no UI elements involved here... its a View Model for a WPF application, which the UI Binds to, but im not actually touching any controls, and dont have any Dispatcher in context to check access on.
anyone know what im missing?
 
You can't touch a collection the UI binds to from a bg thread
you need to marshal anything that touches a UI-bound collection to the UI thread
or enable collection synchronization
(the UI binding itself causes that)
 
how do I do an invoke on it with no dispatcher?
 
Typically, I use the TPL to handle that
is your VM created from your View?
 
TPL?
yes
 
7:10 PM
@Hanady Do you know StackPanels and adorners? Maybe you can create a stack panel with results and display it on an adorner. You just need to use the correct events to start, update and end the adorner layer
 
one sec - writing out some pseudocode
 
@DennisKuypers thanks for the hint:) actually i have never worked with these but i'll make some research about them
 
I'm out.
 
Basically the adorner allows you to do stuff on top of all other controls. The stackPanel just displays your data in a list fashion. If you use DataTemplates on the stack panel you can have images and text. The good part is that you only need to provide the data to the stack panel (probably a custom class that contains the image and text)
 
ah okay i see now
thank you :)
 
7:17 PM
Hello *
 
Hello
 
Does anyone know how to make a Window in Top, am aware of the TopMost property, but it doesn't work well with my needs, I need to make my Window in Top of a fullscreen game.
 
@Redaa - Typically games have their own window managers rather than trying to put a native OS window on top.
 
So you say it is Impossible ?
 
I doubt it's impossible but it's going to come off as tacky.
 
7:21 PM
Is there a way I can pass an Action<object, object> to an event that could be any type of EventHandler?
contravariance by itself doesn't do it
 
@Redaa - The native OS window isn't going to match the styling and theme of your game.
 
I know couple of games Utilities that have there Windows on top
 
@Redaa - For example? I can't think of any.
 
Counter strike, League of Legends, that's all i know about games :D
 
Counterstrike and LoL use steam windows don't they?
 
7:24 PM
@Redaa Just a wild guess: They might be using WinAPI
 
That's a legitimate option but you'd need to talk to some people who have experience working with Steam.
 
Counter strike there is a Utility that allows you to place a red dot in the center of the screen ...
 
Screenshot?
 
No I don't think that LoL uses steam
 
@Redaa Probably WinAPI
 
7:25 PM
@DennisKuypers Hi, so if they are using WinAPI i can basically place a screen in top of the game ?
 
@Redaa I think so. The tools that are game independent like Teamspeak and XFire might go that way. I don't know about steam because they might have something different for its games
@Redaa Maybe searching for OverWolf (overlay for teamspeak) or XFire might give some answers
 
Thanks dude, Is it possible to use C# for doing this , because most of things i see in Google are in C++
 
@Redaa You can do all the stuff in C# that C++ can. When in doubt a C++ wrapper is needed. The problem is that WinAPI is very low level compared to .Net. I don't know if wrappers or even an API exists in .Net to do that.
 
@Redaa - Kinda just depends on the type of game you're making. If it's pretty processor intensive you're going to lose a lot of performance using C#. But if it's a pretty simple game with regard to graphics there are some C# gaming apis.
 
@SpencerRuport thanks for your reply, for clarifications am not creating a game, but just a Utility for a game that needs to be drawn on top of the game itself :)
 
7:30 PM
@SpencerRuport I think that he's not making a game, he just wants to develop a tool that is capable over being an overlay for one
 
ohhh
I see.
 
Stupid apple autocorrect
 
@DennisKuypers - You can press up to edit a message.
 
It seems a bit confusing to me that you're using a MAC to talk in C# room :D
 
vmware Fusion is the best ;)
 
7:32 PM
XD
Oh, the game i want to develop an utility for is using DirectX
 
For a class that holds the data for an ListView, what should i inherit from to be able to use Dependency Properties?
 
@SpencerRuport You might like this: jsfiddle.net/kendfrey/Ljgpxwnr
 
I use FrameworkElement, but isn't that more of a UI thing?
 
@KendallFrey - Ooooo pretty!
 
interesting webinar going on right now join.me/biztalk360
they were handing out tickets but it seems to be publicly available
 
7:48 PM
I am very very slow today, so bear with me, but why doesn't this work?
Action<object, object> thing = (s, e) => stuff();
EventHandler eh = thing;
 
As in doesn't compile?
 
correct
> Cannot implicitly convert type...
 
I'm just taking a wild stab but maybe Action<object, object> thing = (s, e) => { stuff(); };
 
something to do with contra/covariance I think? Type deduction can't figure out that EventArgs is an object without a co/contra declaration?
 
According to this it seems like it should be fine
 
7:51 PM
stick in and out on the action type arguments to test it, I guess
if it's not that, no idea
 
@TomW I can't, I didn't define it
they are already there
 
I can't remember which is which
 
in is for parameters, out is for return values
(logical, once you remember it)
gah fuck mondays
My brain is not working
y u no work
 
Does stuff return void?
 
7:58 PM
What if you did:
Action<object, EventArgs>  thing
 
@KendallFrey - Have you read this? stackoverflow.com/questions/1551953/…
 
fuck, I think it only works for methods, not delegate variables
@SpencerRuport just did
And it was going so well this morning
I just wanna make a common event handler for 50 billion event types
Is that so hard?
 
Apparently
So is there a reason why del variables are not implicitly convertible?
 
i dunno
presumably
but this is a bit ridiculous
I want my function pointers back
7
A: Action<object, EventArgs> could not be casted to EventHandler?

QrystaLAction<Object, EventArgs> a = (o, ea) => { }; EventHandler e = a.Invoke;

hehehehe totally doing that
 
@KendallFrey - That's clever.
 
8:09 PM
That's downright dirty
also, a lifesaver for me today
 
Definitely remembering that one.
 
Definitely hoping to forget
 
It doesn't seem that smelly.
 
My brain thinks everything is stupid right now
I woke up badly this morning.
 
@KendallFrey Which is different you normally how?
 
8:19 PM
My brain is so befuddled it can't even write a response.
 
P.S. Buy a Zymatic
 
This is my central nervous system typing.
 
@ton.yeung it's a perfectly cromulent sentence
 
It's not grammatically correct
 
Grammar is convention. People use that construction all the time
So it's fine
 
8:26 PM
@TomW Not people I've ever met
 
8:40 PM
so if I go
=]~
people can probably figure out that means 'plug'
How can I represent 'shameless plug'?
ha oh yeah
don't rotate it
 
=D~
better?
still drool, but...
 
that's probably better
 
game
 
Depends what you mean by 'good'. I'm going to choose to interpret it as 'involves only basic programming principles and with an achievable amount of effort to produce a working program'
 
a simple game
if you want something worth selling, well, glhf kthxbai
 
8:49 PM
Various calculator-type apps are usually fairly straightforward i.e. given a specific hobby or work task, automate a calculation you'll need e.g. homebrewing/strike temperature, fishkeeping/pH buffering capacity, rifle shooting/bullet drop
^ three examples I've actually heard someone into those things talk about
 
The one I remember doing in school is a BMI calculator
One of the simplest games I ever made was a multiple-choice quiz
 
I guess a good metric for how high to pitch ideas to non-programmers is how much they use Excel. If they've ever written spreadsheet formulae to do something they're interested in, assume that they'll pick it up as rapidly as you did. If they haven't; go slower
 
In my viewmodel I have a boolean to which I bind to toggle the visibility on some form items. I've implemented INotifyPropertyChanged in my VM but it doesn't seem to update. Do I need to implement it in my view as well?
 
@BenjaminDiele Why would you implement it in your view? Isn't your view made of built-in controls?
 
I assumed it'd work like magic if my VM implemented it
 
8:54 PM
    public CreateMeterWindow()
    {
        _CreateMeterViewModel = new CreateMeterViewModel(this);
        InitializeComponent();
        **DataContext = CreateMeterViewModel;**
    }
 
Ow sorry, I snipped too much of my xaml
I updated the gist. I forgot to add that I have bound my DataContext via the xaml
 
well then you have to notify there was a change after you set _CreateMeterViewModel
aka CreateMeterWindow would have to implement INPC as well, I think...
 
Ah, too bad
But I wonder why, because my VM implements it, and that should be enough, no?
 
I don't have much experience with MVVM, but why would you store your VM in a property of your View?
If you put it directly into the datacontext, it would bind properly
 
remove the XAML DataContext stuff
and do what I first said
 
9:02 PM
Because I'm a dummy probably
 
I think I've seen XAML instantiating the context before, but almost all samples do it in code-behind
going with what @NETscape is saying
 
@TomW that would be <Window.DataContext><vms:MyVm /></Window.DataContext>
 
Ok, so declaring it in code-behind gets me a PropertyChangedEventHandler. Good. But my visibility is still not updating
I think I found it in my output :D Cannot create default converter to perform 'one-way' conversions between types 'System.Boolean' and 'System.Windows.Visibility'
 
you need a converter <BooleanToVisibilityConverter x:Key="ConvertVisibility" />
 
@NETscape I just changed my property from boolean to Visibility. Seemed easier
 
9:09 PM
<Button Visibility="{Binding IsVisible, Converter={StaticResource ConverVisibility}}" /> or whatever
@BenjaminDiele when you used Visibility, did it make you resolve a new reference?
 
You mean in my ViewModel?
 
probably... so use bool and do it right
yes
 
Ah, so I should avoid System.Windows in my viewmodel?
 
yeah, otherwise it adds dependency
 
alright, thanks for the help!
 
9:26 PM
Things I knew I wanted but always forgot about.
 
yes.
Oh. Enumeration. Not enum
 
Enumeration != Enumerable
 
That was not a misapprehension I resided under.
 
I don't see what the use case would be for that, that would normally be a use case for an enumerable
If you need to know if you're in the last iteration of a foreach loop, you're probably doing something wrong.
This obviously won't work well with infinite enumerables
 
It would be useful if you're trying to do something like currentRow.Add(entry); if(entry.IsLast) { rows.Add(currentRow); currentRow = new Row(); }
 
9:35 PM
ew
 
I think that's a lot more readable than if(enumerable.Count() > 0) { ... } following the loop
 
you could just put that after the loop maybe?
 
ha!
Too slow @KendallFrey ;)
 
@SpencerRuport I think it's not
 
9:37 PM
It's really counterintuitive to put logic that happens after a loop is finished inside the loop.
 
I like how you never qualify your statements with an opinion.
 
I like it too
Especially since "never" apparently means "not the last time, but the time before"
 
Clearly. :)
 
I need to get out and play hockey tonight
 
How long have you been playing?
 
9:43 PM
What do you mean?
Since I was a kid. Since September. Since about 3 weeks ago.
 
@KendallFrey are you part of a league?
or just pickup games
 
just pickup, basically
 
somewhere local to you?
 
nothing serious, all fun
 
or within driving distance to me
 
9:46 PM
< envious of living in a country where pickup hockey can be a thing
 
yeah, some backyard rinks and some arenas
 
so not driving distance for me
you're what? an hour away from KW?
 
about
 
yea I don't know about driving an hour each way to play a pickup game :?
otherwise I'd totes be down
 
@TomW - Do you guys have pickup Cricket?
 
9:48 PM
I suppose so. It's probably too much of a structured game for that to really make sense though
Kids do, I guess
I'm not into cricket so I wouldn't know
 
pickup futbol?\
 
sure
 
see, for 6mo out of the year we're jealous of you!
 
We mostly have pickup basketball.
 
@SpencerRuport isn't looting a sport there?
</joke>
 
9:51 PM
Seems to be. Tends to happen when governments start abandoning large subsets of the population.
 
I can just about see the university artificial pitches from my house. Used to play there every week. Randoms showing up didn't happen often but we used to scrounge people who were finished with their games if they didn't feel like going home
 
10:08 PM
@SpencerRuport a secure browser page
 
@Greg - I forget what this is in reference to.
Oh right a custom protocol. I'd recommend taking a smaller bite unless you are already familiar with a lot of cryptography concepts. Dealing with custom protocols and cryptography at the same time doesn't seem like fun to me.
 
Yeah don't, you'll fuck it up
unless for learning, in which case go for it
 
@Greg - If you want to learn a bit about cryptography I'd highly recommend looking into bitcoin. It employs a lot of current cryptography concepts and there's a lot of documentation and tutorials available.
I bought some glass bottled coke and put it in my work desk. I wonder how long until someone suspects I'm drinking beer.
 
@SpencerRuport I'll have to check it out.
 

« first day (1556 days earlier)      last day (3408 days later) »