« first day (2447 days earlier)      last day (2518 days later) » 

Quick question but how can I fire an event Whenever a private variable is set? It seems like all the solutions I can find make the variable public. (Not my post but the top answer seems to be what I need except it would make my Private Variable able to be set publicly stackoverflow.com/questions/5842339/…)
 
@JasonBrown The answer has nothing to do with whether it's public or not. Just make a property.
 
err I think that was the wrong link... trying to find the correct one
anyway if I use Get;set; like that wouldn't it allow the private variable (_myProperty) to be set (myClass.Myproperty = something). The only thing that is allowed to set Myproperty is the class itself...
basically nothing outside the class should be able to change myproperty, and myproperty needs to fire an event when it changes.
 
Like Kendall said, just make it a property.
 
Is it possible in web api??
 
12:11 PM
Wat.
 
Il see if that works roel... although i sorta dont think it will
 
@JasonBrown well, make it a private property.
 
I have search alot but couldnt find anything
So right now this seems like it is not possible in web api
 
@JasonBrown I'm sorta sure it does.
@Learning You didn't ask a question bruh
 
let me make a quick mock up of what i mean...
and if it works great lol
 
12:12 PM
@RoelvanUden Sorry sir right now i am bit panicking so forgot to ask
 
when you come into the room and there were like 7 kick notifications
 
@Learning sentence missing.
-Hi guys
-Is it possible in web api??
-I have search alot but couldnt find anything
So right now this seems like it is not possible in web api
 
Ok i have web api
which have a post method
 
Stop panicking. Panic doesn't do any good.
Be calm and collected.
 
Now this post method will recive a json object but the problem is this json structure is not fixed so i cant predefine a model on this post method
So this situation seems like not achievable for me or in general
 
12:14 PM
in Root Access on The Stack Exchange Network Chat, Jun 23 at 6:24, by satibel
@Rahul2001 you know the saying: worrying is suffering twice.
 
@RoelvanUden Sir this is the problem i am facing
Do you think this is possible?
 
@Learning Eh.. so what do you want to do with the unstructured data?
 
@Learning you'll be in reflection land.
 
you still have not asked your question
 
I want to save that json
I.e i will insert in to table
 
12:16 PM
Great. Don't model-bind a POCO, just read the input stream as text and store it.
 
just insert is as a string :P
 
Might want to validate its validity as JSON though, but hey, your call there.
 
But problem is user will always post it as a json through post man or with rest client
chrome://restclient/content/restclient.html
@satibel How does reflection will help me in this scenario?
 
@Learning if you need to access the internals of the object.
 
@RoelvanUden It is possible to read that json body as input stream as text?
 
12:19 PM
@Learning Yes, I just told you how.
2 mins ago, by Roel van Uden
Great. Don't model-bind a POCO, just read the input stream as text and store it.
 
Can you please share any link with me as how to do that please
As i ddont know what do you mean by read json as input stream as text
Can you please explain me a little bit as it woiuld be helpfull for me
 
Hell no. You panicking is not my problem, and it's generally bad for your own reasoning and logic capabilities, as well as your mental health and general welfare. Calm down, grab a nice cup of tea, and then use the newly collected information and read up on the newly acquired strategy.
You'll see it's dead simple as long as you are in a normal mental state.
 
Ok i will.thank you sir
 
@learning reflection is not needed if you just need to save the object.
 
@Learning Roel is right, this is one of the easiest googleable questions. "how to save json as stream"
 
12:23 PM
@Failsafe "Read input stream as string", really.
 
so from JSON -> stream -> string?
why not just JSON -> string
 
Nah, the JSON bit is irrelevant. He's getting text in a WebAPI that happens to be JSON formatted, but that is just irrelevant. Could be XML for all you care. Or RoelFormattedLanguage. So it's just 'reading input stream as string'.
 
Public JsonResult Post(string json)
{

}
 
Read. Then write code.
Don't write code and wait for us to fix it. Ain't gonna happen
 
12:26 PM
@RoelvanUden Did i read burn everything down?
!!lemmy
 
@Nerdintraining That didn't make much sense. Maybe you meant: lenny
 
How do you guys program in C# btw?
 
I've already done all my homework for my college education
 
Sorry i am just trying to imagine what you guys just said
 
darn what was it again?
 
12:26 PM
I don't need to do any more
 
@paul23 Very carefully
 
@paul23 what does that even mean
 
I tend to be unable to watch a screen more than 30 minutes - so in most languages I program by writing the code on a piece of paper.
Using a pencil
 
@Learning Google WebAPI InputStream
 
@paul23 nacked
 
12:26 PM
oh God
 
@Learning go outside, and do that
 
But in C# that's just annoying without being able to look up everything online
 
@paul23 Why can't you watch a screen for more than 30 minutes?
 
@paul23 There is really no alternative than to look at a screen
 
My eyes start to hurt
 
12:27 PM
I don't know what you want us to do about that
 
@paul23 try f.lux
 
See an optometrist, this is not normal
 
Stop using a CRT man.
 
sounds like an issue you should discuss with a medical professional
 
I really wish to get a job programming, but my doctor said I can't do that :(.
 
Sounds like you need an LCD and some glasses.
 
Or well he implied that, I can't sit behind a computer for too long and.
 
@paul23 Pathetic
 
@RoelvanUden i did a quick mock up of whats happening... could you take a quick peak? dotnetfiddle.net/#&togetherjs=AbkIuxw55T
 
dim your screen to the minimum needed.
 
12:28 PM
They make glasses for graphic designers. Might be worth a try
 
@RoelvanUden Sensai since when are you so harsh?
 
I have a pair. They are hella expensive, but worth it imho
 
0
Q: percentage and vice versa calculations has issue in points jquery or javascript

Ram SinghI have three textboxes one for Quantity, second for amount and third for percentage. If i enter any value in quantity then according to it, i have to calculate the other two things and need to do this for all textboxes. I have separately the total amount of quantity and all other factors. Please ...

 
Well it's the fact a screen "lights up" - I notice for example that I have hardly any problems if I use electronic paper.
 
please help me
 
12:30 PM
But my old prof used to tell me that "programming isn't done on the computer, it's done by paper, any monkey can type in code".
 
@paul23 He's old for a reason, that shit is ancient
 
Yet when I go to a company and tell them that they don't want me obviously.
 
@Nerdintraining Since day 1. I'm honest, and that's sometimes harsh.
 
i take that as a no?...
 
@paul23 your old professor was wrong
and slightly arrogant
 
12:31 PM
He's called Dijkstra fyi :P.
 
we dont program on punchcards anymore
this isnt 1968
 
@paul23 you could get an e-paper screen with a keyboard.
 
@paul23 Brilliant man, absolutely fantastic, love his work, but that's not an attitude that works in modern day development work.
 
@Kramb I have yellow tinted glasses, those are like 10-15$, and works well.
 
@paul23 So did you try a projector
 
12:33 PM
I believe in the mighty Troll in all of us and I believe that paul is here just for shits and giggles at this point.
 
hmm a projector might actually be an idea, that wouldn't make the "light" from a part of my view much stronger than the rest.
 
@RoelvanUden You are really genius sir
Thank you..Thanks alot
Your just 2 words saved me :)
 
Nah I really get teary eyes when I look at a computer screen for 30-60 minutes
 
You're welcome. See, don't panic, be calm. You'll get there. :-)
 
You know what they say, every one likes the Dutch.
 
12:34 PM
anyways, @paul23 try f.lux, it works well for me.
 
@satibel Yea I've heard those work too. I was given my pair and they don't discolor the screen so your colors don't look off
 
DONT PANIC
IT's written on the back cover of the hitchhikers guide
 
@hilli_micha is it because of drugs?
 
I was struggling to find a way since from morning but just your hint saved me
 
@Failsafe IT IS
 
12:34 PM
always useful words
always bring a towel
 
But iwth an apastroph
 
I have a homework assignment in 20 miuntes guise, how do I write to console???
 
And in large friendly letters Failsafe
 
I just looked up Edsger Dijkstra to find out when he died. Much is made of his notorious dislike of actually using computers
it turns out
So don't take the advice of a man who rarely if ever actually wrote software for a living.
 
@Nerdintraining true that
 
12:35 PM
@hilli_micha Console.Write();
 
@hilli_micha Enviroment.BurnEverything
 
I only know him of the pathfinding algo tbh.
 
@RoelvanUden same
 
Yes, I answered seriously to a silly question.
 
@TomW Well, unfortunately, that's one of those situations that fits under the addage "Those who can, do. Those who can't, teach."
 
12:37 PM
@hilli_micha what one teaches best, is what one has to learn most.
 
@satibel Yeah, but theory and classroom application often differ from real world experience.
Especially in professions.
 
Also, just saying, mathematicians are brilliant at math, but often are absolutely garbage at actual programming. There's a reason why maths guys write their algorithms and hand them off to dev guys to make it work fast/properly/in a system.
 
@RoelvanUden Wouldn't that usually be attributed to the mathematician, more or less, being unfarmilar with modern development conventions and code organization?
 
Source: I did math optimization for my graduation :P
 
@hilli_micha what that means is that if you know the theory on how to do it, you aren't great at it.
 
12:39 PM
might try flux for a few days
 
@hilli_micha Nah. I firmly believe math and programming are two different skill set. Programmers encroach on the math territory with algorithms and such, and mathematicians encroach on the programmers territory with writing basic programs. Neither is an expert it either field, so a collaboration brings the best.
 
@satibel Well, no, a lot of times things don't operate based on strict, on-paper, theories does not teach problem solving skills or understanding the mechanics of 'why' something is the way it is.
Being able to be fluid is important, but something some* people don't have. Which is one of the biggest complaints I often hear about college grads with no actual professional experience. Thats just anecdotal though.
@RoelvanUden True! With 3D development, I have to be pretty decent in Geometry, Trigonometry, and some Calculus, but I'm hardly an expert, which is why I'm currently in college anyway. To improve my math.
 
you mean as 3D modeling or?
 
Mostly modeling. I develop an extension for AutoCAD MEP. So I have to build and transform 3D objects in space, particularly HVAC duct fittings.
 
I don't aim to be the best in multiple disciplines. I'll just be a kick ass programmer and collaborate with people of those disciplines, like math, artists, musicians, etc, if ever needed.
But if you can, major kudos to you.
 
12:45 PM
i dunno i have a friend who is doing 3d modeling and animation and he is good at it, but he has no idea about the math behind it
 
TBH with affordable motion capture I can see massive amount of animation work going away :P
 
@hilli_micha Given that 3D space is a coordinate system, which comes from math, it's not surprising.
 
i mean sure if you want to optimize stuff you will need math, or to develop new tools but just for creating models i don't think its that important
 
depends if you do CAD or 3d graphics.
for CAD, you generally need maths, for making movie models, not so much.
 
@Proxy Well, your friend is probably modeling static 3D object, these are parametric objects. So I have to create parameters (utilizing formulas) to allow these objects to be easily manipulated.
 
12:47 PM
CAD requires surprisingly little math with decent software
 
dunno i'm not much into it but he does models&animation
 
@satibel wut? I've used CATIA a lot - but how do you need "maths" there? If you been my maths: numbers - yes
 
@KendallFrey Correct, most of the softwares now have sort of 'fool-proofed' everything for the users..
When I say "most" softwares, I basically mean any AutoDesk product, since they essentially own that segment.
 
That said, I did write my own software for generating 3D models programmatically
 
CAD typically works by things like "this is a sphere, this is a hollow cilinder with radius x, and thickness y - it connects the other sphere at point Z. And this second cilinder is symetrical to the first, with point symetry in the sphere.
 
12:49 PM
very math, such fun, wow
 
If that is a lot of math yes.
 
So, Revit is actually the weakest in aiding its users.. AutoCAD has actual Matrix transformation routines in its API, Revit does not. So anything transformation related I had to put together myself, which was actually quite fun.
 
@paul23 you still need more than in 3d modelling. But yes, most is automated nowadays, though you need mid-high school level algebra.
 
I hope anyone who is in this room/programming in general can do that.
 
Have any of you tried OnShape? I've been using it and loving it since the last time I re-learned CAD
 
12:51 PM
I'm a catia fanboi - spent too much time during my AE studies using it to now neglect it :P
 
even flow and forces engineering is automated in solidworks.
 
@KendallFrey It looks like AutoDesk's Fusion software.
 
@paul23 solidworks FTW è.é
 
@hilli_micha But significantly cheaper for someone like me
 
Don't be shocked if Autodesk buys that company lol
 
12:53 PM
@KendallFrey tried, though it needs internet, right?
 
They've been on a huge buying spree for the last few years..
 
Solidworks; cheap version of catia for those mechanical engineers who don't need curved surphases :P. They actually put a price tag on solidworks, instead of price on demand, weaklings!
 
@satibel yeah, is that a problem?
 
@KendallFrey for me it was, as I didn't have internet everywhere when I tried it.
 
It needs continuous internet connection to work? That sounds silly for a serious dev tool.
 
12:54 PM
@paul23 Why?
 
@paul23 Why is it silly?
 
Have you not noticed the recent boom in cloud-based products?
 
He's still living in 1980 when Dijkstra was alive and kicking, Kendall.
 
I also tend to do CAD work in "spare time", travelling a lot and many many trains don't have internet...
 
12:56 PM
tunnels?
 
Never heard of that.
 
@RoelvanUden Ha. Ha. Ha. I'd be lucky to get any signal where I take the bus.
 
tunnels don't exist.
 
It's like that thing you see in movies, what's it called...
Oh yeah, mountains! Hah!
 
1 Reason why paul is a troll:

Claims he can't sit infront of a PC for more then 30 minuets bevor getting eye aches.
     Sits here for over 1 hour happely chatting away.
1 reason why you should care:
   dont.
 
12:57 PM
I'm now not intenselly checking the view - it's a lot different when I program.
then I tend to think and get my face to my screen just because I don't know the solution
 
Anyways g2g have a nice day guys seeing you later
 
Actually I'm right now cleaning my room
 
@Nerdintraining Don't forget, he's also taught bij Dijkstra whom died in 2002. Meaning that's been at Uni for about 15 years or so. Which is nice I gues
 
@RoelvanUden Totally missed that one!
 
1999, was before uni actually, a masterclass while I was still at high school.
 
12:59 PM
Cool. You've been studying for a while now.
 
But still remember it since it was amazing about arteficial intelligence and sparked my interest in that
 
You could've been like Terry Davis and put together your own compiler and OS by now lol
 
Still, TU/e > Delft. Just saying.
 
Got a problem, I have a console project only Console.Write(1), but when I use windows 2008 task scheduler to trigger it and it let my CUP% to 20% also when I use task scheduler to trigger a power shell cmd to send a http request it let my CPU% to 100%
 
Well I studied physics @ tu/e already
 

« first day (2447 days earlier)      last day (2518 days later) »