« first day (2444 days earlier)      last day (2521 days later) » 

6:41 AM
........and its sunday!
 
6:52 AM
The day where I log in and discover lots of people were kicked over hte weekend.
 
7:07 AM
Also, the day where I come in to work and look at my Pending Changes just to remember what I was working on before the weekend.
 
is there drama every weekend/friday and we miss it?
 
There are certain people here that tend to get a bit overexcited.
 
how thrilling
ugh I have been reading too much oscar wilde and it affects my speech now
 
There are worse influences.
Which? I've only read Dorian Grey, myself.
 
just dorian grey
but I want to move on to his other stuff after that
maybe his books about socialism
 
 
3 hours later…
10:40 AM
 
11:00 AM
Can't really see how that relates to Dorian Grey, personally.
 
well he invented IIS
 
Oh, right. While in prison.
 
right
 
hi everyone
 
11:12 AM
does anybody have idea about that when we say Task.WaitAll() for worker thread in main thread, CLR schedular ensures the execution period for only this worker thread?
 
I'm not sure what you're asking.
Tasks aren't necessarily "worker threads", though they're often executed on threads from the threadpool.
And I don't know what you mean by "execution period".
 
I mean lets assume that I have a worker thread called inside main thread new Thread(Func).Start(). I want this worker thread to block till it finishes its work with no interruption from any thread
what I know is CLR thread schedular ensures all active threads are allocated appropriate execution time
I want to override this.
 
You can set the thread's priority higher, but that can have negative effects on other things running.
Basically, you can't be 100% sure you'll never be interrupted.
Also, I'm not sure if you're talking about Tasks or Threads now.
 
It is Threads, I may misquote..
 
Well, you can simply set the priority: var thread = new Thread(Func); thread.Priority = ThreadPriority.Highest; thread.Start();
But this is from the MSDN reference:
> Operating systems are not required to honor the priority of a thread.
The machine isn't yours alone. No one process can freeze every thread and demand all the computer's resources.
To quote Raymond Chen's recurring question on his blog: "What if every process did what you want to do?".
 
11:23 AM
Ok, that's a good question :)
Then Thread.Join() is not performing what I am asking, right?
 
@ibubi Thread.Join simply means that the currently executing thread will halt and wait for the given thread to complete.
It's logically equivalent to Task.Wait.
It doesn't say anything about how other threads and processes execute.
 
@AvnerShahar-Kashtan I had a weird behaviour while I am testing my code, let me tell you if you have time
I have two threads in Main thread, where I use producer-consumer queue technic. a concurrentQueue, one thread reads from database to queue, and the other one is read from queue and write to database again.
the code handle all this stuff in total 10 seconds which is a very long period for my puposes, Iwanted to refoctor the code and start a visual studio perofmance profiler
while I am inspecting I saw that the total execution time was 90msec while the code run via profiler
I couldn't believe that and re-run multiple times and it is all the same
So it means there something behind the secenes in process/thread level that boost the performance of the code via profiler
 
A old article
And thank you
 
11:40 AM
@ibubi Boosting a thread's priority is almost never the solution.
In 10 seconds, every thread in the system would have gotten its moment in the sun. It's a logical error that prevents it from responding instantly, not a scheduling issue.
Have you considered using a BlockingCollection in your consumer thread?
 
I have read the BlockingCollection but I am not sure this is what I am looking for, I have used AutoResetEvent
 
Basically, it's a class that wraps around a ConcurrentQueue and uses AutoResetEvents to notify when it's written to. :)
 
Yes it should be using an event to notify :)
Do you think it is the best praacticee to have a good performance on conqurrentqueues?
Btw, I am still wondering this visual studio perf profiler thing? How is that happening, maybe I should ask this as a new post
 
11:55 AM
Having a thread sitting on top of a BlockingCollection (either the built-in one or your manual one) is a good practice. You might have a bug in your event logic.
 
12:07 PM
@AvnerShahar-Kashtan thank you let me try
 
 
3 hours later…
3:25 PM
Hi Guys.. Can u tell me quickly that whether a checkbox can be added to property grid or not.
I want to add only the checkbox with NO TEXT and NO DROPDOWN. in the field of property grid.
 
 
3 hours later…
6:48 PM
@Rish read about controlTemplate (if it's WPF)
 
hiii
 
Why doesn't Microsoft dedicate a site for learning WPF like ASP.NET?
 
7:05 PM
What's the purpose of using ngen.exe? From what I understand, it compiles your entire program into machine code before the program runs.
 
@Nathvi That's the purpose of it.
 
7:22 PM
@KendallFrey, I imagine this is for performance purposes?
 
mostly, yeah
 
Does JITting really have that much of a performance hit? idk, I've never used ngen.exe
 
it's not a big deal
 
Is a normal jr dev position salary ~$70k ?
 
It depends where, surely
 
7:28 PM
maybe in SV, idk
 
sv?
 
7:40 PM
what is that? @KendallFrey
 
Silicon Valley?
 
7:54 PM
oh
 
 
1 hour later…
9:11 PM
I've been wondering lately. I worked at a large software company for a while, changed careers, and if I have to fall back on software in the spring, I'd have to rely on my prior skill set with C#/.Net. I'm a few versions behind, plus the SQL tools etc. I've been away for 5 years. I got into C++ since I liked the idea of making games. Since game development is more of a indie dev than something I want to do professionally now, is it more of an advantage to get updated with .Net?
 
well, for games, there's Unity... and not much else
MonoGame is supposed to be a XNA reboot but haven't tried it
 
Since I see myself making casual and educational games, I'm assuming C# can do this.
SharpDX would be my approach.
 
too low level
 
I'm a low level programmer, so I don't mind it.
 
it's rather about not wasting your time with all the plumbing
assuming you don't have infinite time
 
9:20 PM
That's why C# programs are often slow.
 
yes, C# programs are slow because programmers don't have infinite time optimizing everloving shit out of them
at least it's better than not releasing your game at all, I guess
 
I guess the advantage of being a C++ programmer is I can go into native to boost performance if needed, which is a good benefit.
But this is more than games though. If I need to fall back on my old career, it may be necessary to go back into .Net.
 
How can I make this async?
var request = WebRequest.Create(FooURL);
                request.ContentType = "application/json";
                request.Method = "GET";

                using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
                {
                    if (response.StatusCode != HttpStatusCode.OK)
                        Console.Out.WriteLine("Error fetching data. Server returned status code: {0}", response.StatusCode);
                    using (StreamReader reader = new StreamReader(response.GetResponseStream()))
 
@Phil sure, but do "casual and educational" games need MOAR PERFORMANCE?
 
Not for what I'm doing, no
 
9:26 PM
in that case I don't really get it: a.) performance is your focus, and you choose tools that let you go low-level to optimize better b.) performance is not your focus, and so you choose that let you design a prototype faster
 
I love C++, but my old job was with C#/.Net 4.0, and I wonder if a job interview might want me to be updated with .Net, and not by showing a C++ portfolio.
I have used C# for prototypes, it's a great language to do something quick in.
But this discussion is probably highlighting I'm more of a low level programmer..
 
9:42 PM
From what I get you want to prove your potential employer that you didn't get rusty with your C# knowledge, so I suppose you could write a small hobby project and put it on your github account
 
10:21 PM
posted on June 25, 2017 by jonskeet

9 days ago, I posted Imposter Syndrome (part 1) and then immediately listened to Heather Downing‘s excellent NDC talk on the topic. This is the “reflections afterwards” post I’d expected to write (although slightly more delayed than I’d hoped for). I’m not going to try to recap Heather’s talk, because that wouldn’t do justice to … Continue r

 
10:33 PM
Howdy.
 
10:46 PM
Anyone know how to get data in and out of excel without too much manual messing with the data in between?
Using LoadFromDataTable in Epplus and then ADO to query the data back in causes inconsistent results. For example, date data is written to Excel as long and reading back to deposit back to SQL is not successful without taking steps to manually parse back the formats. Any help?
 

« first day (2444 days earlier)      last day (2521 days later) »