« first day (1719 days earlier)      last day (3245 days later) » 

12:00 AM
Well few lines of code seems pretty easy to maintain to me, I could even add one line comment explaining what is done and why and tada
 
i.e. confusing code, strange bugs, possibly performance issues...
 
Im not changing those fields often, and when I do I update every field
That's why I thought you could just load whole thing again.
 
In that case, it sounds like a better use case to completely swap out objects
No sense giving your chihuahua steroids if you want a bulldog
just get a bulldog
(This is completely unrelated to WPF and INPC)
 
How? I need to do something with WPF if I want to change the values in controls.
Or were you talkin about bulldogs :D
What do you mean by "swapping out objects"
 
@FINDarkside Well, if your controls are bound to properties that never change, then you can get away with not using INPC except in the properties that contain objects that are replaced
@FINDarkside creating new objects with the desired values, rather than setting new values to an existing object
 
12:05 AM
So you are saying that controls will update if the object is changed?
 
If the DataContext of a control changes, then I'm pretty sure everything in that control is re-fetched
 
Creating new objects is not a problem since those will be deserialized from json
Ah now I understood, I just set new datacontext with the new data
Great
 
Yeah, use new objects rather than recycling old ones
 
Like this.DataContext = new Save(); and it should work?
 
If your data is immutable, I won't be angry at you for not using INPC
@FINDarkside maybe, I can't say without more code
looks ok though
 
12:08 AM
The data is not immutable, i edit the data with those controls
 
oh
I don't understand your use case very well then
 
I load the data from json file. I have refresh button which should load the file again
Since the json file could be modified by another program, that's why I have refresh button
 
That sounds like it would swap out the entire datacontext
So if the root property changes, or you switch the context manually, it should refresh
 
Ok I'll try to just set the new dataContext
Thanks for help :)
I'm going to sleep now, I'll ask some help tomorrow if it didn't work
 
Well, I won't be around tomorrow, but there are lots of people who know WPF
 
12:14 AM
Ok
 
(Happy Birthday Canada)
 
What will you do on your day off @KendallFrey ?
 
Day trip with friends
 
I now feel like I am working with structs and pointers in C again
The difference is I am dealing with classes
Weird
 
12:33 AM
If you are actually using pointers, you are probably doing it wrong :)
 
12:51 AM
@BradleyDotNET Classes are beginning to feel like pointers. In fact, all reference types are beginning to feel like pointers one way or the other
 
Well, they kind of are
super awesome pointers that you don't need to worry about
 
1:24 AM
@KendallFrey Canada's cousin's birthday on Saturday :)
 
1:45 AM
@Jeremy The one that ran away from home?
 
2:13 AM
@KendallFrey no, that's quebec.
 
Quebec never ran away from home, they just live in the backyard
 
 
3 hours later…
5:42 AM
yay wednesday
 
6:12 AM
Almost friday
 
6:30 AM
Almost vacation!
 
@scheien Indeed, almost 2 months left!
 
@BenjaminDiele: More like 2 days left (3 included today)
:)
So I did try the migrationstuff in EF yesterday. seemed to work like it should :p
 
6:46 AM
Vacation in 1,5 weeks :(
 
7:15 AM
@MoonOwlPrince We have voting software and different vote systems (because there are a lot of divergences in elections between parties, countries, and even systems between different universities etc). We have a base tabulator, that is the one that does vote counting, and it knows every system and almost everything about them. It's truly a god class, we always initialize one of those and have it figure out how to calculate. Truly bad :D
 
7:42 AM
@Sippy I did figure it out.Good morning
 
7:54 AM
Wow. I finished fixing all Cordova platform-specific issues. Today was a good day.
 
8:09 AM
is there a way in git to fix merge conflicts and have git automatically remove the <<<<<<< left and >>>>>>> right indicators?
I remove them manually, but it's tedious work
I think they're called conflict markers
 
Yes, use a Git GUI :P
You get a visual editor thingy to resolve them
 
I really just want to be able to edit the stuff between <<<<<<< and >>>>>>> in a text editor, save the file and have git remove the conflict markers
it doesn't do that?
 
It's pretty easy to do it with a editor though
You get a diff between the two files, and then select which parts you'd like to use from each of them.
 
8:26 AM
Aah, startup life: gizmodo.com/…
 
8:50 AM
help
help im burning
im meelllllllltinnngggg
 
@Sippy Ow, no rain in the UK?
 
@Loetn No it's 10am and it's 28 degrees already.
 
Hey Guys :D
 
hello
 
@Sippy They invented airco for that (if you're inside ofcourse..) :)
Or a cold shower
 
9:02 AM
currently we have 35-38 degrees
 
Here it's 26 degrees
 
its good weather cuz of rain
26 degrees, Cool :D
 
Yea, and 21 where I am :)
Belgiums weather isn't that hot.
 
@Loetn No aircon in here :)
 
hey people.
 
9:05 AM
@Sippy Too bad. :)
 
Maybe someone had something like this: I'm currently using Visual Studio 2013. I'm trying to set a breakpoint in a .cs file called 'DataAdapter' but when I do, Visual Studio decides to set that breakpoint in System.Data.DataAdapter.
 
@Loetn It's hot enough outside :(
 
:/
 
does someone know where VisualStudio stores the information about .cs files and the assembly belonging to it?
 
@BenjaminDiele awesome lecture :D
 
9:06 AM
@BenjaminDiele It looks hot outside, but I liked the temperature this morning.
 
@Loetn This morning was bearable. I don't look forward to this weekend though.
 
@BenjaminDiele BBQ weather!
 
@Loetn Survivable weather > BBQ
 
@BenjaminDiele It is survivable :) Unless you don't drink enough water...
 
I hate temperatures > 20°. It's good for nothing.
 
9:10 AM
posted on July 01, 2015 by Scott Hanselman

Windows 10 is coming on July 29th! I've been doing Build to Build videos on my YouTube showing what's changing and how it will affect you. I got a request to do a video showing Windows 7, Windows 8, and Windows 10 and how to reserve your upgrade, as well as a little demo of the Start Screen. Here's that video! NOTE: I apologize for the mediocre audio. I had a microphone failure and ended up

 
hah. I got my parents migrated to Linux(first Ubuntu then Fedora) nearly a decade ago. They're always smiling now when other people their age complain about their Windows problems :)
 
TF401190: The local workspace has 120316 items in it, which exceeds the recommended limit of 100000 items. To improve performance, either reduce the number of items in the workspace, or convert the workspace to a server workspace.
l0l
 
the fuck did you do?
 
Not mine
:)
 
ohhh ok
 
9:12 AM
Well it is mine
But I didn't do that.
 
huh?
yeah that's what my users always tell me...
 
That's how big our project is.
Apparently.
 
how old is that project? In decades? ;)
oh, it's 100000, not 1000000
nevermind. That's pretty low.
 
Hello everyone, could anyone help me with this question? stackoverflow.com/questions/31156915/…
 
hah, solved my problem.
had to delete the .suo files belonging to the .sln file that contained the affect .csproj file which contained the affected .cs file.
 
9:20 AM
@wouter Have you tried debugging it yet?
 
which also means that VisualStudio stores links between .dll/.pdb/.cs in the .suo file
 
Looking over it quickly it looks like an issue which is pretty solvable with some debugging
 
I did a lot of Console.Writelines ^^
but couldnt find the problem
trying the Trace.Assert(!ReferenceEquals now
 
Wil
Hi, I don't suppose there is anyone here who knows a little a bit about Oauth and can help me with an issue - stackoverflow.com/questions/31157178/… - I think I'm misunderstanding something and just want to talk to someone who has done it before...
 
I'm not aware of that package, but I am aware of OAuth protocol.
 
9:25 AM
it's @RoelvanUden :)
 
@wouter I meant with the debugger :)
 
@BenjaminDiele never used the debugger, im gonna google it out
 
@wouter ..................................
You should learn to use the debugger.
It's pretty important.
 
You mean the debug.WriteLine, right?
 
@wouter what the... how do you even devel- ...the fuck...how --- WHAT?
 
9:28 AM
@wouter What?
 
... You don't know the debugger? What the hell?
 
aaaaah Debugger.break, to see the values in your code at that moment?
 
Wil
@RoelvanUden Good enough! I'm just confused - I have a link that requires oauth/signing, I do that - it posts back the key, I use the key to do a query - I have seen I also get two further keys back in the header... Are these keys I should cache/save for future use? I wonder if the standard code I get back should only be used to get those further keys and I am maxing out the API or something...
 
maybe it's just really hot where @wouter lives
 
@wouter Are you ..
 
9:30 AM
yo its 33degrees
 
Cannot tell if trolling.
 
I was thinking more like 50 degrees
 
Or 60.
 
Wil
Sorry if this is yammer specific... It just said it follows Oauth 2 spec, so, hoping there is similarities between other oauth apps...
 
F or C?
 
9:30 AM
you guys mean breakpoints?
 
@wouter Ye
 
@Loetn C, who uses F?
 
@wouter Among other things.
 
U S and A?
 
yeah...and look who rammed a probe into a foreign body in space because of not using correct measurement units.
 
9:31 AM
@SteffenWinkler Haha. They do everything different.
 
@SteffenWinkler Was it @Kendall? He's always ramming his probe into foreign bodies.
 
@Loetn that slightly incorrect
@Loetn they do everything wrong
well, not everything
they did manage to come up with Coca Cola.
 
What do they do right?
 
also McDonalds
 
@SteffenWinkler Ok, they think they do it correct
 
@Loetn that's more like it
 
@SteffenWinkler Aye captain!
 
@wouter Press F9 in your code where you want to stop, press F5 to run your code, and you should see the debugger popping open when you use that code.
That's it in short.
 
okay thank you
im gonna use this: object.ReferenceEquals(list1, list2);
 
But read the linked msdn, because you need to know how to execute code when debugging (such a very useful tool!)
 
9:34 AM
it should terun a true or false somewhere, right?
 
Yes
 
where? in my "test results"-tab?
 
@wouter If you hover over the variable whilst paused on a breakpoint it will show you what's in it.
 
@Sippy edition.cnn.com/TECH/space/9909/30/mars.metric.02 well it could also made it into space. But I always liked the theory that they rammed Mars head on
 
If you assign it to a variable
 
9:34 AM
okay and then print it? :)
 
no, hover it
 
What is this, php?
Stop printing stuff.
 
Or you can use the 'watch' window
 
or the immediate window
 
Lot's of possibilities!
 
9:35 AM
I like it because you can debug a method without starting the entire application/assembly
 
@Sippy That reminds me of an ex-colleague. After 6 (SIX!!) years of programming in PHP, he finally found the debugger.
 
can find/add that toolbar (watch/immediate)
 
it's in Debug -> Windows -> immediate.
 
Debug > Windows
 
thank you very much :)
 
9:38 AM
@BenjaminDiele There's a debugger in PHP?#
2
I thought it was just cancer
@SteffenWinkler Quite interesting :P
"No one's pointing fingers at Lockheed Martin"
no shit.
 
;) yeah there is a wikipedia page somewhere with some more informations but my google fu only got me to the cnn site
 
@Wil Yeah, essentially you send off the browser to the OAuth credential provider with a 'Generate a token that says you've allowed me to access your details'. At some point, perhaps, the browser comes back with some kind of key. You then ask the credential provider for 'Give me user details for this token' and you should get it. It's, essentially, quite basic like that. You need to have your app configured correctly tho, and that's the hardest part.
 
Wil
@RoelvanUden So, the key that comes back first - is that single use to get further auth keys? It just seems that key only works once and it driving me bonkers trying to understand it...
e.g.
 
thanks for helping guys found the problem :D
the lists were refering to the same object
 
Stepping through your code with a debugger and actively checking stuff solves 90% of problems.
The other 10% are solved with a bottle of whisky and some internet.
 
9:52 AM
:) gonna use it from now on
hahahaa
 
@Wil Yeah, it's single use. At that point you got the information for the user and you can use your own authentication mechanism from that point on (e.g. put all of that in a session and continue on). If you ever need a new update on user information, just send the browser to the OAuth provider again and he'll have to accept again (if he didn't remember the auth) and you can ask for new data at that point. Once, or, for a limited time. Tokens expire :P
 
Wil
@RoelvanUden But, what I don't get there is that if you look at the URL, I requested a new token each time... and got one :/
but, the data was still blank
 
@Wil Disable the 'remember me' stuff (if you can) on Yammer. Or look at your Fiddler (You have it right?). You'll see the browser bouncing back and forth between your site and the OAuth provider trying frantically to get new tokens.
Might be a bug in your code? Or the lib? Like I said, I only know how OAuth works :-P
 
Wil
That's the thing, the requests look the same... that was a particularly bad clip, it is usually 25% working 75% not - The app is approved on the account and when I redirect, it always gets a token, but, just randomly 25% of the time displays the data
 
10:17 AM
can i ask someone a really quick question about VBA, I tihnk its a general programming solution though)
 
10:42 AM
has anyone here ever used SMO?
 
 
1 hour later…
11:56 AM
hi
how to get unique color
means
Color = Black,Blue,White,Beige,MultiColor,Grey,Gunmetal,Bronze
 
don't store CSV in a database
 
@VIPULPARMAR in c# LINQ you can do list.Distinct() to remove duplicates
 
get rid of the CSV and then you can boil it down to a simple SELECT DISTINCT
 
hi @StevenLiekens in my database one product has either one color or two color that's why i stored like this
so that now i want to display only unique color
 
show what you tried
 
12:06 PM
@VIPULPARMAR One or two? How come that productid 27 has three colors? Or doesn't it work that way?
 
i tried distinct but it display all color
 
are you using strings or real lists?
 
@SebastianL all the values are from database
 
!!tell VIPULPARMAR google sqlserver split string by comma
 
12:12 PM
user image
4
 
I want only that colors
 
I want you to stop random pinging ppl and read the fucking google result
 
@tweray Think he's about to get banhammered
 
12:28 PM
@Sippy this :D
 
Just some question.. Im looking to create a native iOS/Android app using PhoneGap/Cordova. I want to use the camera to stream between to clients but I can't find a camera stream option, only a method to get the current image from the camera. If I get the current image and send it to the other user, with 10 FPS, will it become useable you think? Because I think it will cost way too much bandwidth.
 
12:46 PM
Why does this complain about 'Cross-thread operation not valid' ? I'm already invoking ???
for (int i = Application.OpenForms.Count - 1; i >= 0; i--)
if (Application.OpenForms[i].Handle != (IntPtr)splashForm.Invoke(new Func<IntPtr>(delegate { return splashForm.Handle; })))
Application.OpenForms[i].Close();
 
Looks like I might as well become a saleforce Architect
 
@Griffin Probably good money
 
why does freelancing pay so little
like, 2k for an entire ecommerce site, relaly lol
 
@SteveG you always get less when you're a person. If you're a shop (even a one man shop), you can ask for more
 
@Sippy Insanely good money. Like write your own check money. It looks like my company is going to go up to $500/hour for one.
 
12:50 PM
yeah, thats like 1/10 of what i'd charge
 
@Sippy And that might not be enough. They don't have enough people to go around so they're being fought over.
 
@Griffin well shit.
I'm in the wrong job.
 
That's what everyone on my team is saying.
 
Brb, learning SF.
 
@ErwinOkken It's possible but requires quite a bit of bandwidth. And you must be really smart about it, like sending only differences and such. I'm sure the JS engines are fast enough though.
 
12:52 PM
I know that my dad has been authorised to hire analysts for £3000 a day before
Assuming an 8 hour working day that's almost 600 dollars an hour lol
 
They went to a conference and Salesforce payed Derek Jetter to come out and ramble for 10 minutes. They even had a mascot which has a red circle with a line through it on top of the word software
Which they found funny because well.... salesforce is a software company.
 
@RoelvanUden If that means that I have to build it myself, I consider it "not doable" for now. If there were plugins with those features, there is some hope :P. It's for a commercial project, not just a learning one.
 
Being in a niche job does mean you can ask for lots of money. The problem is that niches don't always survive.
 
@ErwinOkken It's actually really not that difficult. All it requires is capturing snapshots quickly and comparing differences with the previous frame, create a delta (LEB encode index + 3 bytes for colors), and send it across the network. I was able to stream a 800x600 screen like this with ~50kb/s usage.
(At 30FPS)
 
@BenjaminDiele Oh no one on my team expect it to survive which is why they aren't doing it. I just looked it up though and they have a 60 question multiple choice test where you anything 63% or above is passing. Basically you can get 20 questions wrong and still pass.
I figure it shouldn't be that hard....
It seems like it's going to be the equivalent of a certified wordpress architect
 
12:58 PM
@RoelvanUden I get your point, but a commercial project requires knowledge about the subject. For a learning project it's awesome. I get the idea tho
 
Haha commercial projects rarely require knowledge. We're all just guessing. I'd argue that hobby projects (except for niche markets like game dev) are often put together better than commercial projects :D
 
@RoelvanUden What is the LEB encode index? the index of the pixel? Google doesn't say much :P
 

« first day (1719 days earlier)      last day (3245 days later) »