« first day (1497 days earlier)      last day (3454 days later) » 

2:02 PM
what is an example of a application or project that would use a object oriented data base vs a relational one
 
blog
 
release of numeric controls @RoelvanUden @KendallFrey @All
 
@TomW the blog we currently use on our internal site uses a relational type. I know it also make use of stored procedures though
I am still trying to wrap my head around the idea of an object oriented database
 
I've never been that happy with them being called 'database'
 
@JohanLarsson I miss a README.md, or plainly, wut does it do
@Skullomania Any application that knows the queries before design :P
 
2:15 PM
@Skullomania If you didn't know console.log you have a lot to learn about JS
Lol
@RoelvanUden OO Database? Explain pls?
I thought that's what relational was
Well, normalised relational
 
I am hoping there are some WPF people in today :) . I have a usercontrol with some dependancy properties. The UserControl is part of my navigation (I now think a bad idea). The problem I have is how I can detect a button click in my UserControl and update the ContentPresentator of my MainWindow. Is such a thing possible?
So, my usercontrol is like <local:MyControl LinkText ="Click Me" ActionToTake{Binding CanIbindToSomethingLikeThis} />
 
@MyDaftQuestions my wpf isn't good but I can have a stab at the question: Can you find the event for button click on userControl?
 
Hey, Anyone have much experience with silverlight and Playready DRM ?
 
@MyDaftQuestions Commands seem like a good approach
 
Presentator
Nice
 
2:18 PM
The main window can pass a command to the control, which binds the button to it
 
@RoelvanUden Textboxes for binding numeric input, with validation and stuff
alhpa release
 
@Sippy If you can store objects by key, you've got yourself an object orientated database. RMDBS are usually row/column based with all kinds of ORM magic to map data back and forth. In my experience, MongoDB is a great example of an object database (or as they call it, a document database).
 
I always thought alpha was by definition before any public release.
 
@KendallFrey, there is no command
only CommandBindings
 
The gaming industry seems to disagree
 
2:20 PM
@RoelvanUden I'll have a look at that.
 
@MyDaftQuestions There is no spoon
What do you mean?
 
VS shows intellisense. I have this
<local:MyControl

If I type in the letter C afterwards (as to type Command), then Command is NOT an option, only CommandBindings
 
@KendallFrey What about this rusty one? I like rusty spoons
 
@MyDaftQuestions Read the documentation on commands
 
@Sippy You have to think differently, but they have great use cases and are wonderful to develop against (NO SCHEMAS OH JOY!)
 
2:23 PM
@LauraWentworth I like it when the red water comes out
 
Why do I get 'VS wants to make changes to this computer' when starting VS? And then debug devenv.sln?
 
I can do
<loc:MyControl >
<loc:MyControl.CommandBindings>
<CommandBinding
Command=""></CommandBinding>
</loc:MyControl.CommandBindings>
</loc:MenuItem>

Which would work, but I need to pass more than 1 command
 
@KendallFrey It still creeps me out way too much
 
@LauraWentworth It's right up my alley
 
As my user control takes 2 parameters, each is a unique command
 
2:25 PM
@MyDaftQuestions So make 2 properties
 
I have made 2 properties so my control is now

<loc:MyCOntrol prop1 = "Click This" prop2 = "Click That" />

In my UserControl, it uses prop1 as the content of a button
In my UserControl, it uses prop2 as the content of a button2

I dont see how I can pass 2 commands
 
with properties
You're passing strings, commands aren't really that different
 
... really?
Is it that simple?
 
it should be
 
but the code which the Command executes to (using RelayCommand) is in my ViewModel... Does this mean, in my UserControl, I just need to use the RElativeSource to find it?
if that made any sense?
 
2:28 PM
In your usercontrol, you probably have to bind your button's Command property to your usercontrol's SomethingXYZ property
 
dependancyProperty, yes
 
RealtiveSource might be the best way to do that
 
I see... Thanks
 
@RoelvanUden Heh, it sounds weird
 
hello
 
2:30 PM
Like do you have tables or is it literally like having 'one table' with just a key:value list?
 
Weekend time! Have a good one everyone! Cheers :)
 
@LauraWentworth Seeya :)
 
i have problem with conflict concept in SVN
 
@programmer1 It's 2014 why are you using svn ..
 
@Sippy Basically everything gets a GUID as key and you store them! That's it :)
 
2:31 PM
@RoelvanUden Interesting :D
 
@Sippy why not using it?
 
@Sippy It's a really powerful concept to store arbitrary data and index it :P
 
Is it considered illegal to code 'illegal' PoCs for educational purposes?
 
What kind of illegal?
 
Like .. coding a private gameserver from scratch
 
2:32 PM
That's not illegal
 
Oh good.
 
@Sippy what is your alternative, may be GIt ok?
 
Releasing it is I guess :P
 
No it isn't.
 
@programmer1 Anything with actual versioning tends to be pretty good.
@RoelvanUden It's not?
 
2:33 PM
Redistributing proprietary content is illegal.
 
Ah
 
Making a server that happens to work with someones binaries is not.
(So long you don't provide them)
 
But the argument would always be that you can't run a gameserver without hooking into the client to change the connection routine
 
@Sippy SVN is fine, and I don't know where you got the notion that its versioning isn't 'proper' (whatever that means)
 
So if you released the client with teh server as a playable demo then that'd be illegal amirite?
 
2:34 PM
@Sippy False. You don't have to hook, you can change the DNS resolver.
 
@KendallFrey, what can I say other than thank you.
thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you
 
@Sippy If you redistributed a modified version of proprietary software, that's usually illegal
 
when i change one line that before created by another. tortoisSVN not reported ???
 
My command is effictvely an Action<T> so I can pass around the equivalent of a function !!!!!!!!!!!
 
@programmer1 I have no idea what that means
 
2:35 PM
@TomW SVN only tracks state, no history or anything
Unless SVN has changed recently.
 
@Sippy Uh.. yes it does.
 
@MyDaftQuestions ew, but it should work fine
 
SVN is like a centralized Git with a single branch.
 
@Sippy history is the whole point of version control
 
for learning svn or git or?
 
2:36 PM
@programmer1 or?
 
? is your answer
 
yes?
 
@RoelvanUden Since when do you get a history in subversion?? O_O
 
@RoelvanUden clone it and click some imo :)
 
@Sippy Since when was SVN not version control?
 
2:37 PM
wat
I clearly have a wrong concept of SVN :D
 
clearly
 
SVN means Subversion, it's kind of in the name.
 
Best explanation of version control I've seen
 
@JohanLarsson I'll toy with it later on :-) Unfortunately don't use WPF at all lately.
 
in your opinion what is better, svn , git,mercurial or TFS?
 
2:43 PM
git & mercurial are far better than tfs & svn
I don't know which one is the worst of svn & tfs
 
@JohanLarsson i think so too
 
@JohanLarsson why do you think svn is not good?
 
@KendallFrey Ooo this is gud
 
@JohanLarsson TFS has lots of cool enterprisey features that SVN doesn't have
 
@programmer1 svn produces random bs when renaming/moving files for me
 
2:46 PM
@programmer1 SVN does bad things that git doesn't do. Git does good things that SVN doesn't do.
 
@KendallFrey ok then bad things in SVN is more or git? :)
 
@programmer1 Just use git
When in doubt, use git
 
It's ok, imho. Usable, not amazing. Tortoise sucks; screws up regularly. Plain command line is ok. It's the one I'm familiar with and I tolerate it
 
Also, never ever use SourceForge
Or as Mr. Spoonerism at work called it, "SurgeForce"
 
@KendallFrey oh! why sourceforge, its host to a lot of open source project
 
2:51 PM
It sucks ass
I'm being polite there
GitHub is really the industry standard for OSS
 
github is good but that's opensource project is very little
 
but what?
 
please see me big and good project on github
 
what?
 
introduce good project on github
 
2:53 PM
You mean you want to see a big project on GitHub?
How about .NET? That's pretty big, isn't it?
 
oh .net is on github. then i using it
 
lmao
 
what is you mentioned about codeplex?
 
hey guys, sorry for disturbing you, i have a quick problem...
 
I didn't mention CodePlex
 
2:57 PM
i was trying to create a property and save it to the settings (windows form)
 
But it is a pretty good site for OSS
 
but it doesn't saves anything...i used this code....
var property = new SettingsProperty("Settings1");
property.DefaultValue = textBox1.Text;
property.PropertyType = typeof(string);
Settings.Default.Properties.Add(property);
Settings.Default.Save();
 
How can I use tasks instead of thread in wp8.1. any tutorial point would be great
 
@TusharTushKhush google
 
Can you help me, Kendall?
 
2:59 PM
I am searching in google,,, but I cant understand
There is something called backgroundworker
I am following this link
but it gives me error
 
i just wanted to learn svn now. but a lot of people say me it's not good tool to version control
 
@TusharTushKhush How on earth do you think that information is going to be any use to us?
What error?
 
@TusharTushKhush Don't use BackgroundWorker, use tasks
@programmer1 Learn git
 
BackgroundWorker bw = new BackgroundWorker(); @TomW
 
@KendallFrey git is good for windows?
 
3:02 PM
@programmer1 oh yes, I recommend using it with SourceTree
 
it says generate calss for BackgroundWorker @TomW
 
@KendallFrey and for integrating with visual studio?
 
Can someone tell me why it doesn't get saved the property?
 
@programmer1 You can use VS too
@TusharTushKhush Use Tasks
 
thank you kedall frey
 
3:24 PM
Kendall, can you help me too?
 
^ lol
lololololol
ye kindle
halp me
pls
 
Good morning and afternoon and evening and go to bed!
In WPF, the datacontext is inherited. Is this also true for resource dicationaries. If I have a resource diciotnary defined on the same Window as a ContentControl, and the ContentControl points to a ViewModel/View, will that View also automaticlaly use the Dictionary or do I have to declare it every time?
I'm guessing not based upon what I've done
but, didn't know if it could be
 
@Dave read up on merged dictionaries
 
@Dave Dave can you help me with my issue?
 
I've used merged dictionaries before, but, that does seem to mean every XAML page/usercontrol needs to decalre it's own Resourcedictionary?
@KraziiKiiD only if it's easy
Do you get any exception/warnings errors
How do you know it is not saving and then being overwritten?
 
3:39 PM
@Dave well i tried with this code to create a property type (string) in the settings files (windows form) but it doesnt get saved anything
var property = new SettingsProperty("Settings1");
property.DefaultValue = textBox1.Text;
property.PropertyType = typeof(string);
Settings.Default.Properties.Add(property);
Settings.Default.Save();
 
What would be the least intrusive approach to add a spinner to a web-form page, where when you hit a button it does a server side Postback that is quite slow.
 
ajax
:)
@KraziiKiiD, ask on the main site
I don't know I@m sorry
 
@KraziiKiiD you're not setting the value of the property, only its default value. From the documentation it looks like you could force the value in by calling Reset() on Settings.Default, but that's probably not what you want]
 
@TomW i have tried many code, from reading from google, but neither works...
i want to create in the settings like this:
string Settings1 = textBox1.Text;
(user Scope)
 
Extends the wpf textbox
Is ^ correct engrish?
 
3:43 PM
but i cant
 
@Dave ...?
 
@Dave Ajax, how would it keep it consistent?
@Dave Like hold those values.
 
What needs to be consistent
 
Well, if you hit the button it initiates a Postback- Once the DataBind() completes it would need to be turned off.
 
3:46 PM
there is a complete function as well
I mean success
so, you remove the spinner (or hide it) in the success call (if I've understsood you)
 
I would normally agree, but this page is simply hiding / showing panels.
So once you hit the button, it takes awhile.
But once it is done it shows the panel.
 
what panel? Do you want to show a spinner in a pannel?
Or is the issue the GUI doesn't refresh quick enough?
so the spinner never shows?
 
@Greg Can you help me telling me how can i save a property to the settings?
 
@KraziiKiiD In a second.
 
@Greg Thanks
 
3:49 PM
@JohanLarsson pretty much
 
OK added a readme for Roel :)
Think I have a bug that hangs VS in them :)
 
@Dave Well, the issue with your approach would work but in this lovely legacy application is flawed. Because currently when you hit the button:

- Executes Postback (Page Load)
- Executes Data Bind / Count / Index
- Makes current Panel invisible
- Makes Grid Panel Visible
 
@KraziiKiiD try Default.Settings["propertyName"]=something
once you've added the property definition
it looks like it should work, but I've never tried it
 
@KraziiKiiD You can only save to user scope settings
Properties.Settings.Default.PropertyName is nicer
 
@JohanLarsson can't add those at runtime
 
3:52 PM
@Dave So how can the Client or the Ajax correctly anchor to the page?
 
Unless settings can be dynamic? No idea whether that's possible
 
@TomW not even user scope ones?
 
it can be dynamic..
but i still miss something
 
ah the grid panel visiblity controlled by the server? @Greg So you have the visible or visibility setting *Assuming web forms?
 
@Dave Yeah, painful legacy application.
 
3:53 PM
Well i cannot assign a value to a string, because i need to create that string variable too...
 
Right........ What takes the time?
the binding?
 
@KendallFrey did you try them?
 
nope
 
Please do.
 
@Dave The binding, because the SQL Query is slow.
@Dave Not slow per say, but tons and tons of data.
 
3:56 PM
do the results of the binding dictate which panels will be displayed or not
 
@JohanLarsson for what?
 
For me, a friend.
 
@Dave No, when the Query is completed shortly after the Panel Visibility is set to true.
 
Find some bugs :)
 
You could cache the query results!

- Ajax - Executes Postback, saves to cache with spinner
- Executes Data Bind / Count / Index whilst spinner
- forwards to the same page to execute real postback
- Makes current Panel invisible
- Makes Grid Panel Visible
- Load form cache
 
3:58 PM
@Dave I can't cache the query results, they are manipulating live product data.
 
... this is tricky
hide the panels with jquery instead of using the post back?
 
Wouldn't that require a refactor to account for Client / Server interaction?
 
@JohanLarsson that would be a class member. How would you add a class member at runtime?
Unless the settings type is dynamic
 
Ok testing it now
 
Im still trying to create a string value to the settings, and assign to it a value, but i doesn't wants to be saved..................... =((((
 
4:03 PM
I don't know :(
 
@KraziiKiiD did you do what I said?
You're sounding like begging now
 
@TomW I know, sorry, but you sent me how to assign to the value ["propertyName"]
but that property needs to be saved before assigning something to it
 
Ok, so do that
 
static void Main(string[] args)
{
    Console.WriteLine(Properties.Settings.Default.Value);
    Properties.Settings.Default.Value++;
    Properties.Settings.Default.Save();
    Console.ReadKey();
}
^ That works. prints n+1 on each run
 
@JohanLarsson But try to create a string type variable and save it to the settings, and then load it into the app, see.
 
4:07 PM
static void Main(string[] args)
{
    int value = Properties.Settings.Default.Value;
    Console.WriteLine(value);
    string name = Properties.Settings.Default.Name;
    Console.WriteLine(name);
    Properties.Settings.Default.Value++;
    Properties.Settings.Default.Name = "Name" + value;
    Properties.Settings.Default.Save();
    Console.ReadKey();
}
^ works, think I'm missing something
 
@JohanLarsson that's not creating a property
 
Tom's right.
 
ok I missed context
 
this is my exact code i wrote:
int count = Settings.Default.Properties.Cast<SettingsProperty>().Count();
            var property = new SettingsProperty("Reason" + (count + 1).ToString());
            property.DefaultValue = textBox1.Text;
            property.PropertyType = typeof(string);
            Settings.Default.Properties.Add(property);
            Settings.Default.Save();
            textBox1.Text = "";
            Close();
in the settings i have 3 strings (Reason1, Reason2, Reason3)
so i want to count them and add + Reasons
i used LinQ
So any ideea why it doesn't get saved for example: Reason4 = (textBox1.Text)
?
 
Why not have a list of strings?
 
4:12 PM
Not sure what you're talking about (probably someone I ignored), but @JohanLarsson approach is correct in storing and saving things in settings.
 
Why do you think that what you've written is saving a property? You're creating the definition of a property. You don't have any code that sets its value
 
because i need to keep the strings in the settings
 
How about doing it the old fashion way
 
I made a suggestion of how to do that, which you ignored
 
@TomW Sorry, tell me again.
 
4:15 PM
Krazii Kiid, have you considered using plain text files that are read once the app is opened
 
@RonaldMunodawafa Yes, the reason i want with settings (stored in apps) is because i dont want to create a "settings.txt" file, for example.
 
What is the target platform of your app?
 
windows form
well "Any CPU"
 
@KraziiKiiD after saving, set the property by passing its name to the index of Default.Settings
 
Thanks to ambiguity of terms. What I wanted to know is whether it is Desktop Windows or not.
 
4:18 PM
Default.Settings["propertyname"] = value
I don't know whether that will work or not, but it looks to me like it should
 
Just out of interest, has anyone implemented binary search before?
 
@TomW then by me it should be
Settings.Default["Reason" + (count + 1).ToString()] = textBox1.Text;
but i get the error saying that that property doesnt exists...
 
@Dave Might have to try paging, see if it speeds it up enough.
 
hi everyone
 
this is why im saying it doesnt want to get saved
 
4:21 PM
@Dave If not, I'll have to rewrite the whole page correctly.
 
You know that latter is the right answer @Greg
:(
 
@KraziiKiiD why would you not just say that was what the problem was?
You know what, I give up. Blocked.
 
I want to hit my head on something hard :(
 
we can block people?
 
@TomW I told that it doesn want to get saved.....
 
4:22 PM
ignore, yes
 
wow
 
i am having problem while working on server application, problem is that applicaiton is throwing out of memory exception but i still have 40% free memory \
 
@KraziiKiiD If you can't give error messages to people who are trying to help you, you don't deserve to be using this site.
 
+1 @KendallFrey - The first thing I asked you was any error message or exception @KraziiKiiD
 
@RoyaanKhan OutOfMemory means virtual memory, not physical memory
 
4:23 PM
@Dave Fuck the ladder!
 
:)
 
ok let me explain , first time when application take up to 80 GB of physical memroy it didn't throw any exception after that due to GC the memroy is back to 50 GB but after that when i add some more that it throws exception on 60 GB :(
 
private Boolean search(Int32 value, Int32[] values, Int32 n)
{
// An implementation of binary search
if (n < 1)
return false;
Int32 middle = n / 2;
if (value == values[middle - 1])
return true;
else if (value < values[middle - 1])
return search(value, values, middle);
else if (value > values[middle - 1])
return search(value, values, n + middle);
return false;
}

This method is supposed to work with a sorted array but for some weird reason it won't find anything and I cannot even pinpoint what the issue is. Is someone able to assist me?
 
@RoelvanUden ok let me explain , first time when application take up to 80 GB of physical memroy it didn't throw any exception after that due to GC the memroy is back to 50 GB but after that when i add some more that it throws exception on 60 GB :(
 
4:27 PM
It never returns true
 
@RoyaanKhan Fragmentation is the key. .NET memory usage is anything but easy to grasp.
Hint: It's the GC and where stuff is stored :P
 
@RoyaanKhan OutOfMemoryException really means 'could not allocate N bytes of contiguous memory'
The GC might clean up enough crap to allow allocations some time later. I've never yet seen a case where some well-meaning noob writes a catch(OutOfMemoryException){ Thread.Sleep(1000);}but I'm sure they must exist
 
@RoyaanKhan You have 80GB of RAM? HOW???
 
sysadmin
:D
 
i have 120 GB on my servers
 
4:31 PM
#swag
 
flips table
 
#allaboutthepentiums
 
ha ha
 
I think I'll go smoke some snow
today hates me
 
ha ha, what an excellent thing to say
 
4:32 PM
@RoyaanKhan take a selfie of you holding a fan of DIMMs as though they're 20s :p
 
I wanna write code, not fiddle around with snippets and read documentation
 
Has anyone deployed a C# application on an embedded device and known what the memory usage was like?
 
@TomW Sorry i can't as they are amazon servers :P
is there any way to compact LOH forcefully from code ???
 
4:56 PM
How does tracing work? Do I have to litter my code with Debug.Trace stuff?
(I never used it)
Want to see how things bounce around in the code, lots of events.
 
@JohanLarsson Debug and Trace just write stuff to the Output window
 
Ok maybe it is an x/y thing
I want to see what paths the code takes.
 
can configure trace listeners in the config file
 
5:05 PM
have you done it?
 
yeah, common for WCF
 
ah nice, I'll harass you later.
 
@JohanLarsson for the purpose of longterm analysis of which branches users are more likely to execute?
 
can have them write to the event log or whatever
 
or for short-term debugging of some problem
 
5:05 PM
Dinner party now, hope it ends early.
 
You might have to be nice to people who aren't programmers :)
 
@JohanLarsson We use PostSharp for that
 
@MikeAsdf Nope short term. I want to see the mess I have created.
 
I want C# 6 :*(
 
Yes same here. When is VS2015 gonna be official?
 
5:07 PM
We use log4net and plenty of log.Debug statements in many methods+loops+branches
 
used log4net for the first time today
got it working eventually
the docs ramble on a great deal instead of telling you what to do
 
there is a good get-you-started article on codeplex
copy-paste samples
 
figured it out now
 
@MikeAsdf the log debug stuff will be ugly since I just want a temporary thing
@KendallFrey postsharp is not free right?
maybe free for foss?
 
Hmm, I forget
I think there's an express version
I think we use that
 
5:20 PM
Does anyone use any of the community editions
 
Anyone here use NuGet's Jasmine.js in Visual Studios?
 
6:16 PM
crickets
 
Well, I don't use either :)
 
6:35 PM
@Austin I have used it a bit, but only for the AngularJS startup project. Never actually done anything with it.
 
6:55 PM
@Pheonixblade9 Okay! I think I am figuring it out now, I was having trouble including .js files to test on
 
7:06 PM
Just got my Nexus 6, we will see how I like it.
 
Am I right in thinking that the new Visual Studio Community version is better than VS Express? By better I mean more fully featured?
Considering whether an upgrade is worth it.
 
It is of course
I am now building a custom IDE that automates language interfaces if I am working on a polygot project that say uses say IL and Go at the same time
 
@Greg yeah, let us know. It got good reviews
 
Jeff Atwood lioved it
 
7:30 PM
My god, I'm just uninstalling Android SDK tools and even on my SSD it's taking about 20 minutes and only about 1/4 way though - how many damn files are there to uninstall!
 
The only think from Google you should trust is Chrome
 
Hmm, maybe a couple of years ago - now it just a hog that crashes more than I'd like. Not sure I 'like' any of the browsers any more. Just put up with them!
 
The problem I have with Chrome is it does not always clean up after itself
I wonder why its processes will still be alive even after the application has been closed
 

« first day (1497 days earlier)      last day (3454 days later) »