« first day (1684 days earlier)      last day (3251 days later) » 

12:10 AM
o/
 
Whats up Steve
 
nada, about to go to red lobster, what about you
 
Working on wedding invites 2 weeks till the wedding
 
1:01 AM
hello guys
I need your opinions for one of my problem ::
I am developing a win form desktop application where the database will be on client machine and without any internet connection.
so how can I maintain security in such cases? Please provide me your valuable opinions
??
 
1:45 AM
less easily if you don't have anything to authenticate against. Remember authorization is not authentication.
 
 
3 hours later…
4:46 AM
 
5:20 AM
morning!
 
 
1 hour later…
6:41 AM
Morning!
 
7:13 AM
Morning guys :D
 
Hi everyone !
 
 
1 hour later…
8:44 AM
I hate it when you get a task to fix "stuff", but you need to look for yourself where "stuff" is. JUST TELL ME WHAT I SHOULD FIX and give me an example, holy shit.
 
I feel you @BenjaminDiele.I always want the requirements of my task simple and clear
 
@BenjaminDiele "It doesn't work. Fix it please"
 
The worst part is, they'll most likely complain that it's taking too long. "How hard can it be to change some things"
It's not hard work, not even complicated, BUT I HAVE NO DATA HOLY SHIT
yes i'm frustrated
 
guyss i dont know if it's the right place to ask but i got a very weird problem
does anyone here know sockets? networkstreams? etc?
 
8:54 AM
May 9 at 20:36, by Roel van Uden
Kittens die if you ask whether you should ask a question. Save kittens. Ask your question directly.
 
okayy
 
@RoelvanUden What if you hate kittens?
 
@BenjaminDiele Nobody hates kittens.
@itapi I do, but I'll be off for several hours in 5 minutes or so. Just ask tho! ;-)
 
i just build a socket program which keeps the conenction between the client and the server and i wanted to be aware when the client has disconnected tothe server i run a  while loop on a thread which calls this mehod                                                      public bool IsConnected(Socket s)
    {
        try
        {
            return !(s.Poll(1, SelectMode.SelectRead) && s.Available == 0);
        }
        catch (SocketException) { return false; }
    }
it works great and really notifty me when the client has disconnected but than im trying also to read from the stream (when the client sends information) and immediently the method return false and it notifty me like it disocnnected and it's not
 
9:25 AM
Hello guys, any1 could help? stackoverflow.com/questions/30476974/…
 
 
3 hours later…
12:09 PM
@itapi why not using the NetworkStream?
 
Scumbag Manager meme:
MOVES SPRINT DATES
DOESN'T TELL DEVS
4
 
well it depends... it is moving it forward or backward?
 
doot doot
 
@TomW Well, shouldn't you guys be agile? /s
 
12:28 PM
Awesome, it's already a thing
 
Uhm. Apparently Microsoft has had quite a few anime-style "mascots" for their products. Now one for Windows 10. The budget used on that must have been staggering. crunchyroll.com/anime-news/2015/05/26-1/…
 
12:48 PM
hah
OS-tan!
The OS-tan is an Internet phenomenon or meme that originated within the Japanese Futaba Channel. The OS-tan are the moe anthropomorphism/personification of several operating systems by various amateur Japanese artists. The OS-tan are typically depicted as women, with the OS-tan representative of Microsoft Windows operating systems usually depicted as sisters of varying ages. Though initially appearing only in fan work, the OS-tans proved popular enough that Microsoft branches in Singapore and Taiwan used the OS-tan concept as the basis for ad campaigns for Internet Explorer and Microsoft Silverlight...
 
Japanese Mascots are HUGE - think John Oliver did a skit on them
 
The thing that I found staggering are the voice actresses names.
They aren't small time names.
Hell, the Windows 7 mascot, Nana Mizuki, is the most popular JPop singer.
Budget++
 
1:06 PM
I assumed OS-tans were a 4chan kind of thing
not official
 
1:18 PM
Hi guys ! please help me with my problem .
Assuming I have View1 and View2 in my WPF project. Now from WPF View1 , I want to go to View2 via Click event . How will I do that? I already tried stkContent but doesnt work.
any reference ?
Thanks guys!
 
@TomW Hehe, it's real :P
 
any idea guys?
 
private void fillprinterslist()
{
System.Management.ManagementScope objMS =
               new System.Management.ManagementScope(ManagementPath.DefaultPath);
    objMS.Connect();

    SelectQuery objQuery = new SelectQuery("SELECT * FROM Win32_Printer");
    ManagementObjectSearcher objMOS = new ManagementObjectSearcher(objMS, objQuery);
    System.Management.ManagementObjectCollection objMOC = objMOS.Get();

    foreach (ManagementObject Printers in objMOC)
    {
        if (Convert.ToBoolean(Printers["Network"]))     // ALL NETWORK PRINTERS.
not retrieving all network printers what am i doing wrong??
i want to be able to get all network printer better yet if i could filter the result and get only the zebra label printers on the network
 
each zebra printer have "zbl" in common when they named it soo something like where name has "zbl" in it....
 
1:30 PM
how can i clear elements on stack panel
in wpf
 
!!tell slek google clear contents of stack panel
 
i tried doing it. it doesnt work.
 
@slek Thanks. That's obviously all the information we need to help you.
 
Try doing it harder and/or louder?
 
1:34 PM
Why can't you just set visibility to collapsed? Why do you need to actually clear the elements?
 
the scenario is: The button that triggers deleting the element is currently on the stack panel.
how do i collapse visibility
 
Ew. Don't delete the element.
Collapse it.
!!tell slek google UIElement visibility msdn
 
Thanks guys.. will try it .
 
@Squiggle Me-tan is the best
 
1:50 PM
bless her
 
> While she is considered to be a hard worker, webcomics often depict her failing at anything she tries to do, often literally crashing and irritating her sisters. When she is not frozen or out of control, she tends to do things showing a lack of common sense or knowledge, such as putting a soda can into a microwave oven or defending herself by swinging a Welsh onion.
 
Sounds like my gf
 
lol, i will start to love msft if that setting is official
 
"They do things differently in Japan"
- Oscar Wilde
 
> Master, up until now, it's been very fun. I always got scolded for freezing, and I'm sorry for not being of any use. The XP that master is planning on installing, is my younger sister. She is younger than me, but she is not useless like me. She always listens, and also does defrags which she is good at that. Her style is also good, and to tell the truth, I'm a bit regretful of that. As her older sister, I'd be happy if she was loved. I'm sorry that up until now I have been unuseable.
> And also thank you for using me. I'll be vanishing soon, but I have a last request. I'd be happy if you would hear my request. Master, please don't throw away the ME disc. I am still in it. It's not the current me, but it is me. I'd be very happy if you would occasionally look at it and caress it. I'm very fortunate to have met master......
 
1:58 PM
@Jeremy These mascots go all the way back to ME? The hell..
 
I love the Japanese. They are so wacky it's great.
 
> Part of a series on Gijinka (擬人化) / Humanization.
That's a dangerous rabbit hole to peer down at work...
 
@Jeremy Hah, it is.
@Jeremy Then again, everyone here knows I have fucked up tastes, so what the hell, go for it!
 
@RoelvanUden to be fair, it's not that fucked up
 
2:03 PM
posted on May 27, 2015 by ericlippert

The nice people at the programmerchat section of reddit have asked me to do an Ask Me Anything, and of course I am happy to do so. Thanks to reddit for the invitation. For those of you unfamiliar with the … Continue reading →

 
@tweray It's definitely not the social norm, that's for damn sure.
I have rocked half naked drawn girls as my wallpaper. Nobody bats an eye anymore.
So there is that.
 
if non social norm = fucked up. then fuck the society
 
Exactly :D
 
@RoelvanUden Isn't this like street cred in developer world
 
@Jeremy Unfortunately not
 
2:05 PM
@RoelvanUden Maybe you'd be a "cultural fit" in the financial sector? ;)
And maybe you'd get performance reviews like this:
worst engineer at the company, but third coolest
 
@Jeremy Really? I imagined financial sector as even worse :D
Suits and all that
 
for using MemoryCache. is it best practice to have a single instance for the whole application, or it's more proper to create multiple instances of them for different values?
 
> Richard was a recent college grad with roughly a 1.8 GPA from a decent-but-not-prestigious CS program. Miraculously (if you're Richard), someone decided he was a "cultural fit" and therefore deserved $70K per year. For readers who have only ever been exposed to polite society, it is important to note that this is standard practice in the financial industry and is considered "normal."
 
2:30 PM
"Broseph"
 
o/
@SpencerRuport unfortunately not, on vacation in phoenix
 
3:08 PM
.OrderBy(x => x.AccountHolder)
AcocuntHolder is an long?
would ordering be indeterminate?
 
why wouldn't it order?
 
sorry, meant to point out
.HasValue = false
on every record
 
Now please show the code and question in one go.
 
I'm tracking down an edge case and wanted to validate my suspicions by rubber duckery, not by debug breakpoints
Ya really wanna see my code?
 
I don't want to, but if I am to make some sense of your question, I must.
@Squiggle All yours
 
3:10 PM
I'm going to apply a new reordering over the top at the end in the case where .HasValue is false on all of them
 
hurf
 
I kind of know a thing or two about Stack Overflow
Been here for a while
 
congrats
 
I'm more curious about the rubber duckery of .OrderBy(nullable selection)
 
You are talking about rubber ducky debugging aren't you?
 
3:11 PM
I only rubber duck debug
I get the hard problems
 
sure, you can order by nullable. It will translate into a SQL ORDER BY, which I assume will make nulls appear first.
 
Nobody tosses me the "wire up this crud app"
@Squiggle and when they're all null, it's indeterminate right?
 
Assuming he's using SQL
 
No, this is all C#
 
assuming EF
ah
 
3:12 PM
See how incredibly vague your question is.
 
Pure List<T>
 
We still have no clue what it is you're doing or asking.
 
then I assume it would behave the same way?
 
@RoelvanUden what about this was vague?
Roel van Uden, Heesch, Netherlands
2.4k 12 38
 
I love my 141 rep :D
 
3:13 PM
So?
 
@RoelvanUden not a commentary, just curious about the fast stats.
 
Do we look like people who care about rep or main SO? :D
 
"c# complete crud" ...pretty accurate.
 
@ton.yeung it was literally drag and drop
that is less effort than open in new tab and scroll
I literally took the least amount of effort
Let's try again for Roel ...
 
If you can't take the effort to open a tab, how do you expect us to take the effort to comprehend your vague question and help you?
 
3:16 PM
Given a strictly C# List<T> where one property (Example) is long?, when doing .OrderBy(x => x.Example) does the ordering have a deterministic or nondeterministic ordering result?
 
hah
 
@jcolebrand Did you try it out? Why don't you do an OrderBy and ThenBy for != null and then your .Value?
Since you had to ask, for the sake of clarity, that'll be a good one.
 
@RoelvanUden I specifically said I was interested in not testing this. I can write code all day long. If I only give it perfect test cases, I don't get the edge cases do I?
 
Can I kick him now?
 
3:19 PM
yes
also who do you wanna kick?
:P
 
@rlemon me
 
why?
 
He thinks because I came in here with a vague question I was trying to rubberduck that I'm somehow a rude inconsiderate asshole
 
are not all monkeys in suits assholes? :P
you even have a gun!
 
it's all cool, guys.
 
3:21 PM
@rlemon regardless we carry guns :p
 
@jcolebrand you did kinda just turn up and start waffling. We're used to people dropping in and asking questions.
 
i vote he stays, for what its worth
 
but I have no issues with that. Also we really don't care about rep.
 
@Squiggle I know, I thought the question was at least partially well formed
 
nah it was pretty incoherent
 
3:22 PM
really?
 
something something linq ordering
you clarified, though :)
 
I live in the JS room, getting coherent questions from people is an ongoing battle. read between the lines?
 
You don't tolerate someone who specifically refuses to test something simple either @rlemon :P
 
@RoelvanUden I can't test every edge case. I can get consensus on expected behavior.
I am capable of learning from those who know more and can say "well, it's indeterminate until..."
 
Seems like an OK question to me. I interpreted it as "Is OrderBy a stable sort?"
 
3:25 PM
@RoelvanUden no, but I don't kick them. I urge them to test it 9 times, mock them 5 times, THEN kick them
 
Probably googleable. I think the answer is probably "it depends"
 
@rlemon so we're on mockery #3 then :p
 
It was a rhetorical question anyway.
 
@TomW my answer is "why wouldn't it be?
 
Nevermind, I'm burned out from doing stupid things all day.
I'm probably taking it out on a stupid question. Sorry about that.
On that note, I'm taking off. Fuck this shit today.
 
3:27 PM
@jcolebrand just reply with "listen, if you don't know the answer clearly you're too stupid to understand the problem so just be quite"
it often goes over well in the js room :D
 
Im hungry
 
@rlemon quite what? :p
@RoelvanUden Have a brew and watch a movie and I hope things get better
 
quite the typo, that's what
 
@rlemon quite
@Squiggle That was my original suspicion
 
My answer is NOPE.
 
3:30 PM
@Squiggle ask the people who write unstable sorts
 
But I'm wrong apparently so I wonder where I got that idea.
 
@KevinStricker skype
 
@TomW LINQ is, afaik, deterministic. Of course, if you're using EF or similar, the ordering will be done in SQL and then you're at the mercy of the database's implementation.
 
12
Q: OrderBy and OrderByDescending are stable?

devoured elysiumI am currently reading Pro LINQ c# 2008, and in page 87 the guy says OrderBy and OrderByDescending are stable. But he says exactly the opposite in page 96. It looks to me as he is referring to exactly the same functions, so I don't get it. Are they stable or not?

Yeah, this is pure C# List<T> with a known list of objects, we're beyond any ORM
Thanks @KevinStricker pointing out the link that says they are stable for sure
which I think squiggle said already
 
3:35 PM
@jcolebrand Jon Skeet has spoken.
also 'lo @KevinStricker
 
@Squiggle exactly my point.
 
I have been coding in .net for quite some time.. I tried asp.net webform which was a complete failure, then I checked in to linq which did not make sense to me why would someone waste enormous amout of time to learn it... Then I heard of entity frame work and tried to learn it then I moved to MVC and could not figure out how to learn all the stuff their like unit testing and dependency injections etc... In reality I forgot what I was about to code for... I just kept reading and reading and reading ... and now I am trying to pull myself out ...
 
Why are you so poor at learning?
 
So you need a pet project you LOVE and you will learn
 
3:42 PM
I spent lots of time learning asp.net ajax which was later replaced by jquery... :D
 
Keep in mind that Entity Framework is nothing to do with MVC
 
...can I kick?
 
They are cooperating frameworks to achieve a task, not replacement technologies
@TomW only if you do it under the table barefoot
@whatever we all did >.>
 
@whatever "coding in .net for quite some time" years? months? days?
 
@jcolebrand We did?
 
3:43 PM
lol... the poor desgin is self evident.. like asp then aspx.. MVC... Web page.. WEBAPI.. OWEN/katana.. lol.. God knows what else
 
All of those technologies work in concert
 
I spent years shoehorning jquery into ASP.NET
 
ew
 
I like to think they finally caught up.
 
it's owin not owen btw
 
3:44 PM
XD
 
hhh
 
jQuery makes me feel like I just ate a big mac.
 
ok.. OWIN .. Whatever!!!
 
@KevinStricker YOU DID AND YOU LOVE IT
 
3:45 PM
@whatever You honestly didn't ever start on C and progress to writing for a windowed system and add in web functionality ...
 
well, you don't call something suck when you can't even spell its name right
 
They make a lot of sense as a set of progressions for the older crowd
 
I'm currently working on a project using all of the above, plus Angular, Node, Mongo, Jasmine, Gulp, etc
 
So why are you people so ardently depend the shit of microsoft
 
When you're 21 you should learn Lisp then Ruby
 
3:45 PM
In this industry, learning never stops
 
ew Ruby
Lisp is okay
 
@whatever and now you just got to where I want to kick
 
I still had remnants of a "Microsoft wrote this platform and therefore it sucks" attitude when I learned ASP.NET.
 
You learn then you hate then you learn to hate the learn
 
@whatever for me, it's the tooling. Visual Studio is fricking awesome.
 
3:46 PM
try to import a package in netbeans
 
@Squiggle you take that back! Notepad++ is the awesomest. Except when Sublime is better. Except when devenv.exe is better.
 
VIM MASTER RACE!
 
WebAPI is a breeze, C# is a really productive language, and the support network is great.
 
No but microsoft has some bluders too which should be figured out... Its for the new comers to stop them from wasting time there
 
3:47 PM
my day is probably 60% ST3, 40% VIM
 
nano ftw
@whatever I mean, for fuck's sake man
 
I wanna get into emacs
seems powerful
 
show me a perfect tech stack
it doesn't exist
 
c++
 
@jcolebrand PJMA
 
3:47 PM
hahahahahhah
 
developers try to write progressively better stacks over time
 
But I can give you the worst example...
 
c# is one of the easiest to learn languages, and the toolset for web is very simple if people would just RTFM
 
ASp.net Web forms.. :D
 
in HTML / CSS / WebDesign, 3 hours ago, by rlemon
I use the PJMA (pronounced pajama) stack. PHP jQuery MySQL and Apache
 
3:47 PM
TAKE THAT BACK.
 
And yet, a huge number of sites have been written with web forms and work quite well
 
No .. My stand here is like a mountain.. won't budge
 
@CharlieBrown naw. Webforms is garbage
 
up until last year I was still writing winforms :D
mongo is also proving to be pretty shitty as well.
 
Sure, its garbage... but that doesnt mean it didnt work
 
3:49 PM
@CharlieBrown you may just be playing devil's advocate :) But you know it sucks
 
some classic asp -
 
Webforms is insulting to my intelligence.
 
@TomW you know it
 
Lol.... GridView... ListView... hhh.. How on earth can you give that sort of complicated functionality that would never be needed and could never be optimized without wasting weeks
 
"We're going to assume desktop developers don't want to figure out how the web actually works so we're going to inefficiently try to hide all that from them."
Bam! Webforms.
 
3:50 PM
hhhh....
 
Inflexible mindset
 
wasn't it the "single concept to rule them all" mentality, you could seamlessly move from winforms to webforms.
 
That is plain stupid.. to drive a car without looking at the road... @KevinStricker
 
Either been programming 2 years total or more than 25
 
hhhh
 
3:50 PM
Can't be that inflexible unless you're on either end
 
Yeah, it could have been a good idea in theory.
 
node worked out
 
@whatever poor analogy, more like driving a car without knowing how an engine works... which is exactly what most people do
 
kinda
 
i have done coding in it for long time and it was more than a garbage..
 
3:51 PM
Or you're gonna end up in a early grave
@rlemon "you take that back!"
 
it's like all technologies. just because we can we will. then we'll smarten up.
 
@rlemon This was the goal of WebForms, yes
And they saw that it was a bad path, so they changed it
 
Can someone explain and justify the ViewSTate to me?
:D :D
 
@whatever I can
but will you listen
 
hhhhh
yes mate
 
3:53 PM
I mean that in the noblest way possible
I don't mean to be snarky at all
 
@jcolebrand "whatever"
 
@whatever It's to hide the statelessness of web development from the developer. At the cost of making each request HUGE
 
lol
 
Consider this
 
@KevinStricker.. lol.. now justify working ajax.. with viewstate..
 
3:54 PM
Once upon a time, developers on Windows didn't have a web to write to, so they did everything on the local network, and every computer ran WinForms applications. We just called them Windows Applications, of course, and they all implemented a thing called "Form"
 
hhh
 
If you've ever done any recent GUI work you've seen that in the designer
 
I dislike webforms as well, make a living writing angularjs, but it wasnt all doomsday.... and that shit came out almost 15yrs ago. At the time, it was welcomed by many
 
So when we moved to a web model, they wanted to keep things simple for developers, and even invented drag-drop UI design windows/tooling to help people do that
They also needed to wire things up on the back end (hence the AJAX stuff later)
Do you follow the basic "beginnings" of this story, or have you completely blocked me out and you've moved on?
 
yes I am listening
 
3:55 PM
Sure, Web Forms was intended Windows Forms for the interweb.
Remember when people "surfed the net"?
 
So when you have a local application, you have complete scope
Everything is happening "right now" and in the same memory pool
 
And then MVC was born and Kevin wanted to drop forms like a hot potato but he was stuck using DotNetNuke as a platform. The end.
 
You can new up all the objects you want and they are all available to you
 
so they should have wrote that in bold in the begining.. for windows developer... I want mhy precious time back
 
When you have to work with a remote service, tho, or render in a page, those things are intended to be stateless
So you have to maintain state somewhere, so the workaround was to add a hidden form field and do ViewState
It's actually a pretty elegant solution when it isn't fucked with
 
3:57 PM
and hence the night mare for custom develper.. :d
 
@jcolebrand I resemble that remark.
 
And most developers never learned how to implement MVP correctly, and a generation of godawful hacks was born.
2
 
you just drag and drop the microsoft shit and can't think out of the box set by microsoft
 
Then along came Infragistics and Telerik, and marketed their wares to managers who demanded their adoption into the code base, and made everything twice as complicated.
 
fucking stupid design.. I need my wasted time back
 

« first day (1684 days earlier)      last day (3251 days later) »