« first day (1568 days earlier)      last day (3366 days later) » 

12:00 AM
hey looking for some advice on WPF data visualization tool kits, any aficionados here?
 
WPF, yes. Toolkits, not so much
Most are very pricey :(
 
ya I gathered that much, $999 just need it for a college project
 
lol, amzn up 14%. glad I bought it in q3
 
I have found this though wpftoolkit.codeplex.com
 
That one is alright
I've only used the datagrid control though
 
12:13 AM
yeah i might try it and see.
 
@ton.yeung did you see the news for AMZN today"?
 
up 42 damm
42.75
there recruiting at my college, hmmm
 
@BrianJ don't work for AMZN, they force their employees to work 60+ hours/week
 
thanks for the tip, finishing college this year, really hard to decide on a company. Avaya seem like a good bet though.
 
HTML works great by itself. I simply cut and paste it into an MVC view and it looses functionality :(
all css and js includes are prefixed with ~/css/ and ~/js/ unlike the HTML
anyone have this problem?
 
12:19 AM
@BrianJ when do you graduate?
@BriOnH MVC5 has root rewriters... so you can use ~/ to point at the root of your project directory. It's not how HTML is actually written, but Razor supports it.
 
do i have to change it also in my .css files and .js files as well?
I have a site template written in html
 
graduated with a lvl 7 already in Software Dev, graduating with a lvl 8 hons Software in July but the actual ceremony will be that November. @Pheonixblade9
 
with accompanying .css and .js files
 
dunno what lvl7/8 are.
@BriOnH I'm not sure what you're asking.
 
I am asking if I need to re-write 'image/x.jpg" included in ~/css/style.css to ~/image/x.jpg to work in the view
 
12:24 AM
@Pheonixblade9 exciting times ahead, the market is great here in Ireland and the UK so a lot of options out there.
 
12:57 AM
Is chat for the pros only or can noobs (like myself) ask really stupid questions?
 
As far as i know you can ask anything you want. ;)
I've also asked some beginner stuff.
 
@Ethan you can definitely ask beginner questions, just try to put a bit of effort in googling it first
 
Beginner != bad
 
stuff like "I don't know where to start with X, I've tried searching for Y" is fine
 
But like @Pheonixblade9 said we appreciate it when you have tried to find the answer without us first.
 
12:59 AM
Alright, thx
Will try a bit harder then :)
 
a bad question would be "how do I write a driver plz give me the codez"
 
@BradleyDotNET I have 2 further questions, if it's ok. 1. To be honest i just learned to use Windows Forms and i'm currently also thinking about taking a deeper look into WPF, is it worth it? The syntax is based on xml, as far as i heard and also very usefull for web applications? I guess you are working with it, right? 2. Are there also other often used kinds of GUI Frameworks? I just know Windows Forms and WPF.
 
lol
 
@Ethan well you can always risk asking a bad question and having us ridicule you :P
 
No, that would be a horrible question
 
1:00 AM
earlier I posted a JSFiddle and somebody was like "uhh dude you forgot the # to reference something by ID in your query string... fail
 
write a driver with C#?
 
@Proton Thats a loaded question :)
Your first one, not the second
But I'm happy to answer :) and yes, I'm experienced with WPF
 
@BradleyDotNET I think the what-have-you-tried part of questions is just noise.
 
@JohanLarsson it depends. it's more to filter out help vampires than anything.
 
@JohanLarsson Sometimes, but a little code goes a long ways.
 
1:02 AM
200
Q: Can we prevent some of the low-quality questions from entering our system?

Jeff AtwoodStack Overflow has been wildly successful. And maybe in some ways too successful. I am concerned that Stack Overflow is being inundated by a stream of low-quality questions from users who are accidentally poisoning our well -- by turning off and turning away the core answerers who do all the rea...

 
@Proton So, in my opinion (and it is just that) WPF is definitely worth it. The code is a lot cleaner than WinForms, and you can do a lot more visually.
The syntax is based on XML, but no, its not useful for web apps at all from my experience.
As far as other GUI frameworks, there is other stuff out there, but WPF and WinForms are the only Microsoft ones
So you are at the mercy of whatever 3'rd party library you are using if you go elsewhere
Most .NET GUI development is either WPF or WinForms.
I will warn you that WPF has a learning curve, that is steepened by needing to understand the MVVM design pattern
Some people... don't like making the switch. But having made it myself, I am much happier with the new paradigm
 
@BradleyDotNET MFC
 
@KendallFrey Is that actually used in C#?
I remember that from Win32 GUI, but never heard of someone doing C# with it
 
@BradleyDotNET I think MVVM sounds more scary than it really is. Learn how binding work and use bindings for all things.
 
@BradleyDotNET So you also started with Windows Forms?
 
1:07 AM
@BradleyDotNET In C#? Not by anyone sane.
 
and may the first sane person in the industry cast the first stone
 
hahaha
good point
 
@JohanLarsson I agree, but people on SO seem to have a hard time with it. Perhaps its just them that have the questions!
 
WWPJD - What would programmer Jesus do?
 
@Proton Yes, my first development efforts in GUI were in Windows Forms
Then I learned Win32 (ugh) in school, and WPF a bit after that.
 
1:11 AM
I like Win32
 
@BradleyDotNET I think it can also be that MVVM sounds so fancy and scary.
 
ok guys, stupid javascript question
 
well i like the idea of it
 
I just want to create a list of test data for a demo
var data = [];

for (i = 0; i < 5; i++) {
    data.push({
        key: 2010 + i, value: 'Message for ' + this.key
    });
}
any idea why that isn't working?
 
define "isn't working"
 
oh, you mean this.key
this refers to the current context
 
yeah, I'm just being lazy about my object declaration
 
it doesn't change in an object literal
loop from 2010 to 2015
instead of adding
 
ok good idea.
I'm still getting "Object object" in the dropdown
 
you'll need to either override toString or use something else
 
1:14 AM
@NETscape What idea is that?
 
@KendallFrey really? even though I'm using the properties?
 
Massive functions with 18 parameters (two of which are massive structures)?
 
@Pheonixblade9 It won't magically know to use the value property
 
$.each(data, function(key, value) {
    $('#options').append($("<option/>", {
        value: key,
        text: value
    }));
});
I'm specifically assigning the value and text here though
 
1:16 AM
that's my main problem
 
@BradleyDotNET that you have access to all the low level stuff natively, you don't gotta pinvoke
 
it won't magically know to pass value as the second parameter though
Sorry, gotta leave for hockey
 
have fun!
 
@NETscape Okay, but both WinForms and WPF wrap everything up so you don't have to deal with the low level stuff. I certainly don't miss it :)
 
i just like the low level stuff
i've spent a good amount of time opening windows .dlls in notepad++ and looking for strings
then trying to rundll32 with them and get things to happen
 
1:26 AM
@BradleyDotNET I would like to do something like this imgur.com/TjOgal7 with Winforms but how could i do it, that the main windows is changing? Currently i'm just working with Forms and also Tabpages sometimes. I heard that it's also not often done, to use a new form for everything. If i would use a Tabpage i couldn't add this "space" between the areas or?
I've also thought about using a TableLayoutPanel but that would also not work, because the columns and rows are overlapping. How could i do that? The Main Window should change, depending on what the user wants to do. Search a user, delete. The Menu should also change and the left area also.
(Just a rougly concept)
 
@Proton that's something similar to my layout right now, and its wpf
 
@NETscape You're crazy :)
 
Nocturnal nerds! :D
Oh wait it's not post midnight for you lot is it
 
In WinForms, doesn't sound like fun
Super easy with a WPF DockPanel though
 
Is it possible to make rounded rectangles in winforms?
 
1:28 AM
Ummm.... probably. I think the VB Power pack will let you
also much easier in WPF
Its been awhile ;)
Anyways, I have to get going. Ping me if you have any more questions, I'll see them eventually!
 
k, thx.
I guess i will take a look at WPF.
 
1:51 AM
@BradleyDotNET haha which part? my layout or the notepad++
 
2:23 AM
@NETscape You're crazy for liking the low level stuff :). And if you are coding in notepad++, that's crazy too.
 
2:37 AM
Is there any reason someone want to use win form from scratch?, isn't it outdated?
 
 
7 hours later…
9:44 AM
@BradleyDotNET Hey?
 
 
2 hours later…
11:34 AM
Hm, I've been reading a bunch of news about this BlackShades software and got curious... Is it illegal to develop and/or distribute this type of software?
I mean, I understand that infecting someone's PC with it is indeed illegal, but from what I've read, the author also got arrested, or so they say.
BlackShades is a RAT btw.
 
12:21 PM
hi, can i ask Linq questions here
 
 
3 hours later…
3:14 PM
What question
 
 
2 hours later…
4:57 PM
@stom - just ask :)
 
5:26 PM
@RodrigoSilva Hi
@stom Yeah, go ahead
 
@BradleyDotNET Hi, did you use to make youtube videos about VB?
 
nope, never made a youtube video at all in fact
 
I think I remember watching videos by someone named Bradley, his forums really helped me out a few years ago :P
Oh well, as you were!
 
I don't think you'd want to watch any VB videos by me anyways
Not my speciality
 
Oh, don't worry, that was a couple of years ago, your name just reminded me of it :P
 
5:37 PM
hi
 
hi
 
I'm having a problem with a message dialog not being triggered in WPF, can I ask about the issue here?
 
@BrianJ - I reckon
 
okay here goes..
@Ethan in my class I need to trigger a message box that submits user data when the user control is closed. To achieve this, I called the message box code in the window_closing event, but when I run the application and change between user controls the message box doesn't show..this is the complete class: hastebin.com/upabiyayok.cs
I'm using an MVVM model to change between user controls so maybe this is why the window_closing event isn't triggered?
 
user3079266
5:52 PM
@BrianJ what exactly is the problem? the method async void window_Closing(object sender, System.ComponentModel.CancelEventArgs e) doesn't get called on the event?
 
@Brian J - I wouldn't know... I'm a noob to programming + I've yet to use a wpf
 
@Mints97 ya it doesn't get called so my message box isn't triggered, I had a further look at my code and it shows that there is an ApplicationViewModel that handles changing the user control, so I'm guessing that this window_closing event won't be fired.
 
@RodrigoSilva: I guess that depends on how you license the application, and what the intended purpose is. If it is for educational use, and free you would probably not get arrested or prosecuted. However if you sell this kind of software with profit as the only goal, you would probably get arrested, since the individuals who purchase it will be using it for criminal activities. It probably depends on where you live, and the laws for that country/area.
 
user3079266
@BrianJ I haven't used this stuff, but a wild guess from looking at MSDN's docs is that you're doing this: window.Closing += window_Closing; and should probably be doing this: window.Closing += new CancelEventHandler(window_Closing);
 
@Mints97 That shouldn't change anything
 
5:58 PM
@Mints97 tried the above but the event still doesn't get triggered.
 
@scheien Makes sense, thanks :)
 
does the GetWindow(this) return the same as this?
 
WindowClosing will only be called in a specific scenario
 
does it matter if this.Closing += ... rather than window.Closing += ...
 
@scheien Called from where?
 
user3079266
5:58 PM
@BradleyDotNET oh, screw that, forgot that the syntaxis allows this as a shortcut. Sorry.
 
Looking at the code he posted
Window window = Window.GetWindow(this);
window.Closing += window_Closing;
as compared to this.Closing += ...
 
My guess is that the window isn't actually closing
 
Are the window instance different from this?
 
User controls don't usually close anyways, is that actually a dialog?
 
or is it the same, just more code doing the same thing
 
6:00 PM
@BradleyDotNET yeah I'm thinking window closed isn't going to be called, this is the ApplicationViewModel that handles the changing of views, ie user controls: hastebin.com/obacuharac.cs
so I think I need to be calling this messgae box code from inside the view model class?
 
If all you are changing is view models, that will not raise that event
probably, or raising an event to call it
 
@BradleyDotNET what would be the correct procedure to call the message box, if the view models are being changed in this manner?
 
6:13 PM
what event can I call that would recognize the user control changing?
 
I think you would need to raise a "ViewModelChanging" event or something
that the view could then subscribe to
 
void Register(...)
{
if(UserWorker.IsRegistered(userName))
{
UserWorker.AddUser();
}
}
it code equals this:
using (var context = new MyContext())
{
bool isRegistered = context.Users....
if(isRegistered)
{
using (var context2 = new MyContext())
{
User newUser = new User(...);
context2.Users.Add(newUser);
context2.SaveChanges();
}
}
}
is context in context is good?
 
6:29 PM
Hi all
 
hello
 
i want to use @Url.Action inside @Html.TextBoxFor but having some issues
here's my code
@Html.TextBoxFor(m => m.ID_Code, new { @class = "form-control" , @data_otf_autocomplete="@Url.Action(\"AutoCompleteAccountID\")" })
when i use this html code instead , it works: <input type="search" name="searchTerm" data-otf-autocomplete="@Url.Action("AutoCompleteAccountID")" />
looks to me that the server doesn't translate @Url.action when I passed as an html attribute
 
@GLeBaTi No thats bad
 
or maybe i am missing the syntax
 
@GLeBaTi Why would you want two contexts, let alone nested?
 
6:33 PM
any thoughts?
 
Sorry, I don't know MVC
 
Thanks @BradleyDotNET
i think i will end up using the <input? and give up on the Textboxfor in this case
the html code works OK
 
6:47 PM
i got it
instead of the textboxfor you can call the action directly
in my case it's /account/autocomplete
 
you want a link in a text box?
 
no , i wanted to call an action and send it to a jquery function from a textboxfor
 
7:37 PM
I want to configure TFS to send a mail to all project members if the number of tests decreases.
 
Is someone commenting out tests they shouldn't?
 
8:09 PM
@BradleyDotNET I lost connection.
Yes it has happened. Can be honest mistakes sometimes I think.
Also we have a workflow where we mark tests with [Explicit] if:
1) you have written code for something
2) I break your tests
3) I can't fix it easily
4) you are busy and can't help me right now.
Not a super workflow but it solves a problem.
Also [Explicit] is not a huge deal. I scan the explicits regularly.
An email is not much protection from evil either. One can always comment out the offending assert
 
Hm, what could be causing me not to be able to access my web server using my external IP if the port is forwarded correctly and no AV or firewall is blocking it?
 
8:25 PM
@RodrigoSilva nothing listening on that port?
 
How did you try to reach it? Does it respond to ping?
 
It does
But accessing it from chrome should show me the web-server content
It only does if I access it through localhost
 
@JohanLarsson figured out that problem yesterday, I had set the image source path in the code behind and the xaml which is why it didn't show, its working now.
 
Ah, that must of been fun to find
 
8:32 PM
ouch
 
@TomW telnet my_external_ip 80 fails ofc. I should be able to access it through port 80...
 
Always use xaml unless you have a good reason not to in the future.
 
yeah good pointer
 
Strings in code are almost always smelly
 
@BradleyDotNET, i am trying to resolve this Linq query
 
8:36 PM
I have a new feature I'm trying to add now, will ping here if there are any issues.
 
What is the feature?
 
hi, can i ask Linq questions here
 
I'm using a wearable movement device, https://www.thalmic.com/en/myo/ to output the current pitch of a person's arm from 0 - 180 degrees, this is working. But what I need to do now is when the user makes a "fist" pose up until they stop making the "fist" pose, output the pitch readings for that period to a textbox.

Currently I have this partly working, so when a user makes the "fist" pose the pitch reading is output, but I want to get the range of the reading from start of holding the pose until finish. @JohanLarsson
 
@stom of course
@BrianJ it sounds like you want Rx
 
@JohanLarsson whats that?
 
8:48 PM
@Johan, i am trying to resolve this Linq query
 
@stom ouch. That is more a matter of debugging I think.
I would really try to split things up.
Do you write unit tests?
 
@JohanLarsson, nope
 
Hi guys :)
 
@stom start now then
 
Has anyone ever tried using the Google Drive API and the Google Maps API on Windows Phone? If so, how smooth was the experience?
 
8:55 PM
@JohanLarsson, off course , but can you figure out any Linq error in my query
 
@JohanLarsson so this is the class hastebin.com/fawuciwope.cs, the code to get the painful arc is near the bottom in Myo_OrientationDataAcquired
 
@stom nope but I could not read it.
 
@JohanLarsson, ok no problem , do you know how to track facebook share status, this question
 
I have never used the facebook api
 
I feel .NET is not taken seriously by the surrounding world
 
9:01 PM
@JohanLarsson, thank you
 
It feels like a second-class citizen
 
@stom Stay around and lurk. Someone might have exp with facebook.
I don't think anyone will be able to help with the linq monster :)
 
@JohanLarsson,why ?
 
It is so huge and probably very specific to your data.
best help can be to recommend you to try to split things up + unit tests.
 
@JohanLarsson, ok thank you for the advice
@BradleyDotNET,hi, there?
 
9:16 PM
@JohanLarsson just updated my code, will post after testing..
@JohanLarsson tried this, hastebin.com/omiribiwer.cs but the startArc and endArc readings don't output any value..
 
9:54 PM
@stom yeah, just got back from getting some pizza
Holy LINQ Batman!
 
10:06 PM
decent humor in this one.
 
10:18 PM
@BradleyDotNET, hi, i am trying trying to resolve this Linq query, may i know what changes can be made
 
That query is huge
You'll need to narrow down what your problem is a bit
 
@BradleyDotNet,this, has the working query which shows all points, and this image shows it, i want to sum all the collection in linq
 
hey anyone know of any free WPF gauges? I've been looking all day but all of options are part of a package like Telerik and cost about $900.

The closest solution I came across so far is this: http://wpfgauge.codeplex.com/ but the gauge isn't resizeable, when I reduce the radius in xaml only the outer ring reduces in size not the dial...
 
10:36 PM
@JohanLarsson is this a gauge? How can I implement into a project? :D
 
Anyone have experience with MediaPlayer and MediaState in XNA format?
 
@BrianJ It has a sample project. Linear gauge.
 
@JohanLarsson just downloaded, is this in "GaugeBox" or "Gauges" ? can't seem to find it in the source folder.
 
hold on, lemme check. Been a while since I wrote it.
@BrianJ downloaded? Don't you use git?
The control is in the Gauges project. GaugeBox is the demo/sample project
 
@JohanLarsson I use Git to upload my college projects and keep them in sync, don't know much about it after that.
 
10:43 PM
get git and clone github stuff instead of downloading
 
is there a .dll for gauges?
 
then you get full history and can pull updates later.
@BrianJ when you build it
 
don't want to include the full project in my solution.
 
build it and copy gauges.dll to your lib folder
 
Is choosing GPL V3 for open source project bad?
 
10:44 PM
@JohanLarsson I'll have to get a crash course from you on cloning during the week, seems like a decent feature :)
 
btw don't see the liner gauge in Gauges, is it named something else? Just testing the demo now.
 
cloning is really easy. Installing & configuring git is some work but def worth it.
 
I already have most of my projects hooked up to Git, I just use the commit feature to upload any chages made, don't reallt use any other functionality.
 
10:52 PM
@JohanLarsson yeah found it, thanks a lot, literally spent all day looking for a suitable free gauge and now I've found one in the 11th hour :D I'll have to ping you tomorrow in relation to binding the indicator on the gauge to the degree output in my application, should be fairly straight forward anyways?
 
I hope so. I have not used it much, just wrote it for fun.
 
@JohanLarsson do you know off hand if there is a property that allows setting of the gauge's indicator to a value, eg a double variable?
for example value=degreeOutput
 
do you want a linear or angular gauge?
degrees sounds like angular
 
yeah angular would suit my application better.
@JohanLarsson what is the angular gauge named under? This would suit better than linear type.
 
11:18 PM
@JohanLarsson I see the property ` Value="{Binding Value}" ` but how can I set this Binding Value to my double variable degreeOutput ?
 

« first day (1568 days earlier)      last day (3366 days later) »