« first day (2040 days earlier)      last day (2901 days later) » 

12:03 AM
@SteveG thank you
So I don't even need
        if (node == null)
        {
            node = new BinarySearchTreeNode(value);
        }
        else
 
idk if it's the best way to do it, but looking at your code, yeah, that'll work, and yes you can remove that part
 
12:26 AM
wow sorry
 
 
1 hour later…
1:55 AM
Question : Is the AJAX code used in MVC applications an example of RESTful Service? I ask this because even here we use verbs like GET and POST
 
@The_Outsider Sometimes
just using POST doesn't make it RESTful
 
 
3 hours later…
5:12 AM
@The_Outsider When people use the term REST, they mean one of two things - the original meaning of REST, which is a specific architecture built on top of HTTP which uses standard HTTP verbs (GET, POST, DELETE, etc) to manipulate resources represented by URLs.
@The_Outsider The second usage refers to any application architecture which uses JSON-over-HTTP for its service endpoints, regardless of the implementation specifics. For instance, a WebAPI service with a UsersController that exposes the GetUsers and AddUsers webmethods which receive parameters would often be referred to as a REST service, but doesn't fit the classic REST mold.
(In these cases, REST is often used simply to mean "Not SOAP")
 
5:39 AM
hi
anyone there?
 
@AvnerShahar-Kashtan good potted explanation, +1
 
Maybe there's never anyone there, just ghosts in the chat rooms.
@TomW Yeah. It's not the first time it's come up. :)
 
Well thats interesting. That reply showed me I left the desktop on overnight.
 
i have some memory leak issues in winforms
 
5:42 AM
ping from the study
 
I think the only way for this ambiguity to be resolved is to find a new, better name for the POX/POJSON service architecture.
 
Basically im processing a large batch of images
so i put the code like this using(var source = Bitmap.FromFile(filepath)) { //do stuff
but in some cases
VS reports out of memory exception
that points to this same line
but since this object is within the using clause
how can it go out of memory
strangely the application works fine
when run outside VS
 
@techno OOM exceptions are hard to trace. Just because it throws on a specific line doesn't mean the leak is on that line, only that it triggered on that specific allocation.
 
Out of memory means a lot of things in .net. Usually with bitmaps it means the runtime can't allocate that much contiguous memory
 
@AvnerShahar-Kashtan yeah.. but the application works fine in the same scenario
that produces errror in VS2010
when executed outside VS
i tried ANTS profiler
but just saw some graphs and
bulk data..
 
5:46 AM
It's nondeterministic, when you run without VS it's probably allocating in the multiple GB that has just been freed by closing VS
 
@TomW The application takes less than 150MB
memory it spikes
and frees itself
should i dive deep into this expection ?
*exception since
the app works fine outside and is not eating full system memory
i really cannot point out where the issue comes from it only occurs in a specific case
 
Do you know what contiguous means?
 
hmm?
yeah continuous i guess
 
Yes, however many bytes are required to store the image, in sequence. If those aren't available OutOfMemoryException is thrown
 
okay..
@TomW So what do you suggest ?
 
5:50 AM
If the system is busy memory is likely to be fragmented. You can't prevent it, only make it less likely
 
ah.. okay
is there a tool by which i can check for non disposed off objects
 
This top answer here might be helpful stackoverflow.com/questions/4154648/…
I didn't know that. So you can at least get feedback if what you're trying to do can't be done
 
okay...
thanks
 
Fastest way for Get Value of a property using reflection ??
 
@KalpeshRajai please don't use chat as an alternative to Google
 
5:57 AM
Last 1 hrs I am doing the research on it
They said create the delegate and many more
I just want to there is any safe and faster way to get the property value of the object in c# using reflection @TomW
 
Faster than what?
 
Light.
 
lol
 
I have 960 properties in my class and in LOOP every time i use like this myObj.GetType().GetProperty('proppertyName').getValue(myObj);
 
960? wow.
 
6:05 AM
Yes, that is how you get properties using reflection. You could cache the PropertyInfo though
 
so there I am trying to store the `GetProperty' method into the Delegate. So every time here I called the GetType and GetProperty methods..
 
Hi guys. I'm looking to download all contents of a directory on an FTP server when a button is clicked in an application. Can anyone help me out?
 
If I stored that method into any delegate so It will increase the speed and every timeGetType and GetProperty method will not called
 
having 960 properties in one class smells a little to me
sounds like its doing way to much
 
yeah right
 
6:12 AM
but as @TomW said just cache the PropertyInfo returned by GetProperty in a dictionary or something
 
@JTYoerger As far as I know, the FTP protocol doesn't support "get folder", so you'll need to use an FTP client library to get a list of folder contents and download them separately.
 
I am asuming you are stuck with this monstrous class, but do you have to use reflection or is there some other way to solve your problem, it will likely be a not insignificant performance hit
 
Thanks @AlexL. There is no another way to complete my task without using reflection.
 
@KalpeshRajai Are you sure?
For instance, if you have 960 fields but need to access them by name many times, but you do know the type, you can create, at static initialization, a dictionary mapping between a property name and a property accessor.
    Dictionary<string, Func<MyType, object>> accessors = new Dictionary<string, Func<MyType, object>>();
   accessors.Add("Name", obj => obj.Name);
   accessors.Add("Prop1", obj => obj.Prop1);
   ...
   accessors.Add("Prop960", obj => obj.Prop960);
Write this terrible, terrible code in a static initializer, and then get values using var val = accessors["Prop511"](myObj);
 
I am getting the property name from the database and want the only value of that property from the object @AvnerShahar-Kashtan
 
6:37 AM
@KalpeshRajai So? Once you have accessors initialized, you can get the property name from wherever.
Would be even cleaner to create a MyTypeAccessor class which wraps the dictionary.
So you can pass your instance in the ctor and save it as _instance, and then simply have a object this[string propName] which returns accessors[propName](_instance)
Basically, you'll be buying runtime performance using more memory (all those function signatures) and more developer-time typing.
Hmm, it wouldn't really be too hard to write code that generates such a wrapper class automatically, if one is so inclined. That's basically what VS does with the XmlSerializer assemblies, I think.
 
6:55 AM
hi
which is the best tool for checking m/y utilization by a winforms app
 
memory
 
I'm assuming you don't mean "month/year", but rather "memory".
That's an odd and not really useful contraction.
 
hmm...
 
Visual Studio 2013 has a pretty decent memory profiler.
 
6:59 AM
im using VS2010
0
Q: Processing Large Number of Images-Out of Memory-VS2010

technoI'm doing Image processing of a Large Number of Bitmaps so implemented a code like this for(i=0;i<filcount;i++) { using(var source = Bitmap.FromFile(filepath)) { } } I get an Out of Memory Exception that points to using(var source = Bitmap.FromFile(filepath)) when running in VS2010 but when...

this is the problem im trying to tackle
 
You can try using JetBrains' dotMemory. It has a trial version. jetbrains.com/dotmemory
 
the app works just fine in release mode
or outside VS .. but in debug mode
i get out of memory
i will try that thanks
 
7:12 AM
@JakobMillah With a lot of pain and effort. You separate a project into 3 components, the client, the server, and the login server. The client is obviously the GUI, the visual interface into your game. As programmer, focus a lot of attention on the networking protocol and performance of all related calculations. The server should be dealing with those, validating everything, and advancing the game state. The authentication server is used for initial connection (the server list and hand-off).
 
Good morning all, This is spartaaaaaa!
 
Tips: Absolutely hammer down on the network protocol. Minimize bandwidth, don't send unnecessary information, and cache cache cache. It should be very efficient. The server must be async and probably should thread out different parts of logic, potentially over hardware. Darkfall has a great write up on a message queue and having multiple hardware pieces deal with messages to artificially expand a server capacity. Again, hammer down on networking; ESPECIALLY MOVEMENT.
Also, good morning people.
 
@RoelvanUden Oh thank you, thank you, thank you meister! Now I go create dis game!
But ye, networking tend to be the bottleneck
Darkfall actually had insanely good netcode tbh
 
Is it better to solve git merge conflicts early, even if it halts my progress completing the feature, or to complete the feature I'm working on first and then merge?
 
solve conflincts early..
fuck conflicts
Then figure out why you get conflicts and prevent them from occuring
 
7:27 AM
@JakobMillah Yeah. And they chunked out processing. Did you read the post mortem?
 
Thank you @AvnerShahar-Kashtan. I will give a try to your idea of wrapper class
 
One does not simply prevent merge conflicts from happening.
 
One should if soloing, unless there are multiple personalities involved.
I gotta get going, norwegian national day and all. Have a nice day everyone!
 
@RoelvanUden Nope, havn't read that
DFUW is probably ripped now... Havn't heard a thing from developers in months
It's sad. Best PvP experience I've had
 
It's a really good read.
 
7:48 AM
This went smoother than expected.
 
Hello people. I am now one of you :)
 
!!youtube abba one of us
 
@JanDvorak Something went on fire; status 403
 
I know, my dear, they are hot.
 
Too old for my taste :/
 
7:59 AM
The music isn't
 
good morning people
 
I was talking about the music :/
 
@RoelvanUden Oh damn, thanks! Never seen that before.
Dem swedes
I agree with @betarunex. Too old for my taste as well :)
 
Thanks goodness. almost thought I was the only one
 
anybody know how do i access main page variable from a user control?
 
8:09 AM
is this still the correct chatroom for all TFS complaints?
 
@StevenLiekens I think it's time to make a TFS chat
 
Yes, flame away at TFS and noone will disagree.
 
Hello SO
 
team four star?
 
TFS will happily restore packages before building my solution in 1 repo
but it won't restore packages for my other repo
and I'm about to break something
 
8:12 AM
Don't break TFS, it will even if you're not trying to.
 
Hi guys, i have a question about a way to use a class in all the project. I am working on an MVC .Net project and I have a class named MyBaseClass having several properties. Now on login, I need to fill these properties and use this class with these properties whenever I want in any controller. Can anyone please guide me to a way for using this class in all controllers with same properties stored on login?
 
Just.. either inherit or construct it from your base constructor.
 
@RoelvanUden What I am trying to do now is inheriting all controllers from this class, but the question is how i would be able to use the same object of this class created on login?
for example i need to store some config info in this class and need to use these info in all controllers
 
Morning all
 
@Hanady Put it in a session.
 
8:18 AM
@RoelvanUden is there any other way?
 
Of course, when you're not logged in, make sure they are redirected to login.
 
MORNING
 
@Hanady Yeah, hit the database each request for the data. Which has different pro's and con's.
 
sry caps
 
Heyya
 
8:21 AM
@RoelvanUden so there is no way i can use same instance of this base class object in all the controllers?
 
good morning
 
Im having seconf thoughts about my final project
Dont know if it's something good or not
damn :\
 
@Hanady Sure, just put the entire object in a session and expose it as a property.
@Mr.Toxy What is it? And final for what?
 
Morning
 
@RoelvanUden the final project for my course. I'm thinking of doing a job intervew manager. It will allow people who are signed in to be matched with employees and than the interviews will be assigned and it will be automatically created and apointmend in the outlook agenda with the possibility to cancel those interviews, postpone them or even cancell them.
The application should also allow to had a new user (job seeker) and update their info.
The front end web based app for the user will allow them to view all the scheduled interviews and either accpet them or decline them and change all h
and the interviews can only be managed by the person who has created them
 
8:34 AM
^ funny I built this system for a client
there are hr people from companies and recruiters and they trade candidates for interviews between themselves
 
@misha130 wow fancy. The thing is that time is scarse, Im in the inernship 8 hours a day and have to do their projects and I live 2h30 from here and I also have to study for the finals T.T
 
I need to get a part time job to be eligible to obtain my certificate :/
 
it was a 2 weeks project @Mr.Toxy
well, we took ready html templates
 
@misha130 full time? how many people?
 
4 people or so....
 
8:38 AM
"cancel those interviews, postpone them or even cancell them" - I just noticed tou said cancel 2ce
 
hahahaha ya
didnt noticed it
my bad
 
!!urban 2ce
 
@JanDvorak [2C-E](http://2c-e.urbanup.com/734489) [\[2C-E\]](http://urbandictionary.com/define.php?term=2C-E)
2,5-dimethoxy-4-ethyl[\[phenethylamine\]](http://urbandictionary.com/define.php?term=phenethylamine)
[\[C\]](http://urbandictionary.com/define.php?term=C)12 [\[H\]](http://urbandictionary.com/define.php?term=H)20 [\[Cl\]](http://urbandictionary.com/define.php?term=Cl) [\[N\]](http://urbandictionary.com/define.php?term=N) [\[O\]](http://urbandictio(snip)
 
I have an interesting problem.
 
oh my that sounds terrible Sippy
quit and go home right now!
 
8:39 AM
I think it's .NET related as opposed to VB
Could be wrong
 
Of course you're wrong. Always blame VB.
 
We have prices stored as strings in the database. These are converted from XML strings into Doubles in the code. This is fine as long as you use a culture which uses . as the decimal point.
It all falls over when you switch to a culture which uses , as the decimal point.
I'd have figured .NET handled that on its own
apparently not.
 
And the format theyre stored is random depending on where the user was?
 
No no, they're all decimals.
.
 
how can you know the culture? o.O can't you just use the . as default?
 
8:42 AM
Ok, so whats the problem?
 
I can't think of a non-hack way to convert them to doubles.
Like if I switch to french culture the whole thing falls over
cos they use ,
 
Can't you pass a specific culture when parsing?
 
Don't know
Never seen this CType shit before
what even is VB
 
I thought the . was used in europe. well aparently not
 
@Mr.Toxy The culture is set by the client running .NET
 
8:44 AM
@Sippy if so, why can't you just change it for what they have inputed when parsing?
 
.NET provides some support for it
 
CType is vb specific, you can ignore it
 
@Mr.Toxy Hack
 
.parse still works
 
.parse has culture settings doesn't it
 
8:45 AM
@Sippy You can set your own thread culture (easy, but forces everyone into your convention) or you can pass an invariant culture into the parsing functions.
 
I almost never use culture but I get it
 
Yes
 
@Sippy yes
 
@Roel option number 2 would be easier here.
I'm not refactoring this shit
noooo no no no
 
Whats the culture of the machine that saves it?
 
8:45 AM
Well you could just force the entire app into en-US :P
 
en-GB or US
 
and all culture problems go awayyy
 
@RoelvanUden can't
 
use a default culture
 
Sure you can! Thread.CurrentThread.SetCulture(...)!
 
8:46 AM
The whole point is to enable the app to be able to use fr cultures.
 
Aw goddamn.
 
so much trouble over a . hahahahahaha
 
You are a troll
Lol
Or not.
That solution is fine but it's for french schools
Can't expect the kiddies to speak english unfortunately.
 
@Sippy why not checking the current machine culture instead of user input? in the load you check and then use the culture
 
if (value.Contains(",")) MessageBox.Show("Apprendre l'anglais vous tromper.");
 
8:48 AM
@Sippy , is not legal in xsd anyway
 
@Mr.Toxy ?
 
xs:double specifies ., regardless of culture
 
.NET does that
 
sou why all the trouble?
 
@TomW As if they're using fucking xsds are you mad
 
8:48 AM
just change it acordingly
 
@RoelvanUden Read the blog post. Was goodek. cool stuff
 
This is hand-parsed XML
 
Ffs
Is everyone incompetent
 
roflmao
LEGACY CODE BOIS
 
never heard that one b4
 
8:49 AM
@Sippy You can't hand parse something like this> 1.000
 
I'm talking about the XML structure
 
you can XDD if you aint got a life
 
@JakobMillah You're about to design your own MMO then? :P
 
or if they pay you well
 
It's literally a bunch of "<node>" + value + "</node>" in a code file somewhere lol
 
8:50 AM
@RoelvanUden No freakin way.. I want to finish my app though xD
 
Ouch.
@JakobMillah Awh :(
What app was that again?
 
@RoelvanUden A while back you told me the whole process of API login with a token verification time. I was wondering, for "updating" the token and receive the new token, is it fine to just give the ID as input, or should that be email/password?
 
I'm forgetful.\
 
morning all
 
@JakobMillah btw nice FF stream :)
 
8:50 AM
@RoelvanUden Too meet people. Focus on an activity
 
morning
 
@JakobMillah Oh yes that.
@ErwinOkken Email/password.
 
Stuff like this is the reason we all use c# ...
 
just 1 more dll to go
damn
 
@Mr.Toxy Thanks bro ^^ FFX is fun, but not that fun for stream :P Not much I can troll with eheh
I played FFX all evening yesterday. Love that gaem
 
8:51 AM
@ErwinOkken you shouldn't give either, you should hand over the token (before it expires) and request a new one
 
@JakobMillah get your hands on Just cause 3. that game is mad fun
 
Would look like shit on stream
 
@JakobMillah Isn't FFX is a tad slow and boring?
 
@RoelvanUden Depends. It's a nice story, imo
 
@RoelvanUden FFX boring? :o no more cookies for you XDD
 
8:52 AM
@RoelvanUden Because I'm creating a webpage with Javascript now, which should also automatically login but that means that Javascript should know the hashed password?
 
well I find undertale kinda boring but the story is awesome
 
I don't care about stories in MMOs @Mr.Toxy @JakobMillah :P
 
@Mr.Toxy When you get into your current legacy project you'll see why things like this are difficult.
 
Not an mmo, it's singleplayer :)
 
Combat should be glorious.
 
8:53 AM
wow is this the place to shit on FFX?
 
@JakobMillah whats ur connection? 100 up and 100 down?
 
am I at the right address?
 
Wait. What.
 
cause HAHAHAHAHHAHA
 
@Mr.Toxy 500 down, 50 up
 
8:53 AM
Oh good god, you meant the HD remaster of X.
 
@RoelvanUden Yes
 
I TAKE BACK EVERYTHING I SAID
 
Taje ut vacj!
 
@Sippy I hope not, but it will be a local app so I wont worry much about it, but thank you I will use it for some extra points and maintability
@JakobMillah liar? :o are you being legit?
 
I just wrote something in middle european
 
8:54 AM
@ErwinOkken Nah, just pass in the password/email again.
 
@Mr.Toxy Very legit. And it's not even fiber
 
The JS client can just remember it for the session ;o
Or, if you want to be super secure, just prompt again
 
@Mr.Toxy Paying about 35 euro a month
 
Hello guys, if anyone has worked with graphs in C#, would you take a look at this question stackoverflow.com/questions/37271338/… ?
 
@Mr.Toxy Lol
 
8:54 AM
@JakobMillah ADSL 500Mb hehehehehehehe. ur trolling me damn you
 
@RoelvanUden But if I want to do that, then javascript knows my unhashed password?! :x
 
@Sippy yes sippy?
 
@ErwinOkken Yeah.. so?
 
Nothing
 
Ta emot filer (receive)
300-500 Mbit/s
Skicka filer (send)
30-50 Mbit/s
 
8:56 AM
wow
 
@RoelvanUden You mean it's secure because you were already logged in, so you already know it's the authenticated user? But that also means that when I'm logged in and someone will sit behind my pc, he will be able to see the password?
 
@JakobMillah do you actually get those speeds?
 
@Mr.Toxy Up always stable 50, down tend to be around 400
 
Lol @TomW @Roel cheers
CType can sukmanutz
 
I downloaded Overwatch @ 70MB/s
 
8:57 AM
Jakob can you shut up
No one cares about your perfect internet
 
jel
i mean not jel
 
@ErwinOkken If he digs into memory, yes, that'd be possible. That's why it's better to just forget the password and prompt the user again when your token expires. That is to say, no 'remember me'.
 
shut up jakob
how can you get 500 down without fibre
 
@Sippy Your brittish internetski can suck my schlong
 
8:58 AM
@JakobMillah Let's make a deal. I buy the ethernet cable and I hook it up to your router. deal? :p
 
is that even a thing
 
Of course you can do, like, an encrypted password being stored for a limited time but that's vulnerable, too.
 
I question that myself, but I do get that
 
@Sippy I dunno but it's a thing
 
wotdafoq
 
8:58 AM
@Mr.Toxy Hahah Sure xD
 
Honestly, "remember me" is the root of all evil in terms of security.
 
fibre in this country goes up to 200 rofl
 
70MB/s? or 70Mb/s?
 
we are clearly doing it wrong
 
there is a huge difference lol
 
8:59 AM
@Sippy only that? o.O
 
consumer fibre, yeah
 
how the f portugal has more?
 
business fibre obv goes up higher
 
you're richer
 
@SteveG Mb, sorry
 
8:59 AM
reacher lol
 
here client have 400Mb
 

« first day (2040 days earlier)      last day (2901 days later) »