« first day (2146 days earlier)      last day (2811 days later) » 

1:02 PM
Oh, you're skipping the whole signing again.
 
War
well this is just doing encryption at the moment
thinking though I might wrap the encryptor in something to add the signing
i'm feeling ab it lost atm though
 
Yeah, that's exactly what you shouldn't do.
122
Q: Why shouldn't we roll our own?

PolynomialWhy shouldn't we create our own security schemes? I see a lot of questions around here about custom crypto and custom security mechanisms, especially around password hashing. With that in mind, I'm looking for a canonical answer, with the following properties: Easy for a newbie to understand....

 
Yeah security is fine just use a library and away you go
its such a specialist area
 
I'm not saying it can't be done, but if you don't want to go down the rabbit hole, stick with something like AES-GCM and call it a day.
 
NO RABBIT HOLES
 
1:09 PM
(I personally enjoy the cryptography world, but I'm one of a handful probably)
 
I would go with roel, since you just want it to get working. And plus, you need something to start off with.
btw @RoelvanUden your profile is very visible on the net. I kinda googled you. :P
Just if you care about security much, letting you know.
 
I know. GitHub, Facebook, LinkedIn, you can pretty much narrow down everything on me.
Hell, with some clever reverse image searching you could probably find even dating site profiles and whatnot.
I enjoy cryptography, but I don't need to be shrouded in mystery. :P
 
Hahaha, I kinda feel that people must not be able to know shit bout' me unless they ask me. Politely.
 
Yeah, I was like that. Until I realized nobody cares about me anyway, why bother.
 
I believe it's for that one time that it might matter, you are well protected.
 
1:17 PM
Hiii
 
I actually like the number of google hits you can find about me.
(Mostly in Hebrew, though).
 
War
@RoelvanUden i'm having trouble finding examples fo what I should do :(
it may sound weird but I can actually understand a block of code that does something rather than a description of a block of code
 
my phone number is publicly available but so far only one person has been able to find it
 
Could anyone lend me some help with something
 
Aug 22 at 12:29, by Roel van Uden
People, just ask your question. If somebody knows something to help you, and feels like it, they will. If you don't ask your question immediately, we first have to go through a huge 'try to extract the actual question' game first.
 
1:19 PM
I have several active blogs. I used to be a reporter, so there are a lot of stories with my byline. I'm public on twitter and I use my real name on SO and chat.
 
@AvnerShahar-Kashtan found ya! Why use same pic man? :P
 
War
^^^ @HansAjani
 
^^^^ @HansAjani
 
@ElieSaad Well, I'm probably listed through my work, our government, health care, insurance, my mobile phone, home phone, house owner registrations, car registrations, motorcycle registrations, etc.
 
0
Q: Windows Authentication box when Session Expires

Hans AjaniIm working on a project with Windows Authentication and Session States. I have this code where i get the username, save it in a session and also in a label. if (!IsPostBack) { using (var context = new PrincipalContext(ContextType.Domain)) { var usr = UserPrincipal.FindByIdentity...

 
1:19 PM
@War Yeah that doesn't apply to crypto. Get crackin' on documentation
 
War
I have a funny feeling that anyones number is findable online
 
@War naw
 
@RoelvanUden are these not confidential to the company?
 
Do you know how often these companies get hacked?
Also, no, some things are public domain (e.g. house records)
 
1:21 PM
lol
 
In some countries even taxes etc are public domain
 
@KendallFrey you be the hotshot man ^
 
You've changed a lot
 
The only time in my life I've been surrounded by women
11
 
1:22 PM
LOL
 
@RoelvanUden true in a way. Time to abort the system.
Hahaha
 
Its my first time working with Windows Authentication so want a popup box to apear when the session expires but I dont knonw how to get that working
 
@War You can find anything online
Where I live taxes, car registrations, house and a lot of things are available to the public.
 
@scheien you .. how do we find you online? Hmm
 
phone catalog (you can resevere against that=
@ElieSaad that's pretty easy.
The trick is to know what information to keep for yourself, and what you can share.
 
1:27 PM
@scheien umm, not with your current name ova here :P
 
War
hmmm looks like i might be going the right way ... the object in question is my signature for the message I want to send
 
@ElieSaad hehe. You're right.
 
I wish school was less technical more general testing. Like there some things I don't need to know the specific details but I see why knowing the general ideas are important
 
meh, i find everything useless the more i go into the internet.
 
But I can't test out because I don't know like the percentages and stuff
 
War
1:29 PM
@RoelvanUden it seems like the usual approach is to encrypt the whole message which I include my signature on, I have SSL for that message level protection, this an additional "for this request only" type of signature that denotes that the source of the message was part of my back end infrastructure
 
@ElieSaad Eh, the only two things I really use the internet for at this point is porn and StackExchange
2
 
War
it seems that just generating an encrypted custom header here for the signature should be enough
 
@Griffin try quora out. Some really awesome stuff about whatever you might ask about. SO and Quora are life for me.
 
@ElieSaad I've seen it. Quora to me is essentially Yahoo answers not run by Yahoo. Yeah it's a bit better but the bar isn't very high.
 
@ElieSaad Quora? I always got these really weird answers whenever a Google searched ended me up there.
 
1:40 PM
@RoelvanUden I think google trust SE first and if there isn't a viable option there it gives you Quora answers and if that doesn't work you might as well give up because its last option is yahoo answers
 
I am kinda addicted to quora, i have to read a couple of answers a day, or maybe write something.
 
@ElieSaad Why can't you do that on SO?
 
@Griffin I've only hit Quora for non-IT stuff.
 
@Griffin Because I care about other than coding.
 
Like a specific question about a cat or dog breed :P
But the answers man...
 
1:42 PM
@RoelvanUden Pets
 
@RoelvanUden Friend got it for other things
 
@ElieSaad I actually write more in non-coding SE sites than I do in SO itself.
 
@AvnerShahar-Kashtan I never/rarely went to SE, i reside in SO.
 
SO is so high-traffic that it's hard for an answer to get noticed much. In smaller SE sites, there's more of a community, and also answers stay on the front page longer, get more attention.
 
Does anyone know If I override a Base Property from a child class and there are attributes on both the base property and overridden property do the base attributes get completely ignored?
 
Hmm. That's an interesting question. I don't know off the top of my head.
 
Well.. then I will find out momentarily
 
Apparently you can declare whether or not the attribute is inherited
 
@mikeTheLiar interest.. but how does this make sense:

Gets or sets a Boolean value that determines whether the indicated attribute is inherited by derived classes and overriding members.
 
overriding members
 
Gah message too long
 
Why would you ever allow something to be inherited when it is overridden?
 
> By default attributes are inherited but this is not necessarily the case. When an attribute is created the AttributeUsage attribute is applied to identify when an attribute can be used and whether it can be used multiple times or not. One of the other options controls whether child objects will inherit the attribute from base classes. In almost all cases this flag is true so the attribute will be inherited by any child classes if applied to a base class.
> Of course the child class can override the attribute with their own value, preventing inheritance. Therefore the only way to know if an attribute would be inherited by a child would be to look at the attribute definition.
 
Remember that attributes aren't code. They're metadata. For them to do something, someone has to call GetCustomAttributes to inspect them.
The question is whether that someone wants all inherited attributes or only the ones on the final type itself.
 
1:51 PM
@AvnerShahar-Kashtan I'm going to take a huge leap and assume this is somehow related to EF
I could be way off base though
 
I suppose.. yeah, it gives you options
@mikeTheLiar no this is related to just general inheritance. I was curious what would happen with Validation attributes.
 
@Michael tl;dr it's complicated and don't worry about it until you need it
Spoilers: I have never needed it
 
I do need it.
 
I question that assertion
 
@mikeTheLiar Well, let me rephrase. I needed to know what would happen. Because I have a base class, and some children classes that inherit. 1 of the children should override one of the base class properties and have different validation.
 
2:01 PM
Anyone ever have an issue where VS freezes every time they try to open a project and it will only work if they delete the .suo file?
 
@Hypersapien what version
 
2015
 
@Hypersapien Ive had weird vs 2015 issues not that one in particular though
do you get an error message?
 
No. The Solution node just says "(loading...)" and nothing else happens.
 
@Hypersapien odd. have you tried reinstalling or repairing vs itself?
 
2:06 PM
I'll try repairing
 
@Hypersapien honestly ive never had too much luck with repairing vs
 
I've never had much luck repairing any app or installation.
 
true dat
 
@Codeman What exactly is a bike trainer, and what type of bike rack?
Anyone know of some good example and tutorials for IQueryable, to really get a solid understanding.
 
@Greg An understanding of what?
The underlying mechanics? The main API?
 
2:21 PM
Yeah.
The example on MSDN simply shows creating the provider, then implementing the IQueryable interface, except I want to really understand it to structure it in my application well.
 
you mean how to implement IQueryable?
:s
that's madness
 
...?
 
you want to implement IQueryable? :D
 
Yes, I would like to implement.
 
from scratch?
 
War
2:24 PM
what's wrong with that ?
it is an interface after all
 
@StevenLiekens what are you after?
 
have you talked to your therapist recently?
 
Well, I have this:
 
War
ROFL
 
        public static async Task<IEnumerable<TEntity>> MapEntityToCollection<TEntity>(this SqlCommand command) where TEntity : class, new()
        {
            var collection = new List<TEntity>();
            using (var reader = await command.ExecuteReaderAsync())
            {
                var table = Enumerable.Range(0, reader.FieldCount).Select(reader.GetName).ToArray();
                while(await reader.ReadAsync())
                {
                    var entity = new TEntity();
                    foreach (var column in table)
 
2:25 PM
Building something that can translate expression trees is not easy.
 
HOLY ARROW CODE BATMAN
 
And I was thinking I could potentially make it cleaner.
 
You could make it cleaner by deleting it
 
So many ifs, poor soul.
 
2:26 PM
MapEntityToCollection? This.. should be done by Dapper or EF or whatever.
 
I don't even have to read that to understand that it stinks like a three week old dead fish
 
therapy won't help you at this point
 
Why are you still using raw SQL @Greg?
 
@RoelvanUden I've been working on building it with my own code, rather than Entity Framework or Dapper. Simply because my current shop is so against ORM's.
 
!!doge arrow, antipattern, indents, madness
 
2:27 PM
         wow
very arrow
                so  antipattern
                            much  indents
many  madness
 
@Greg Don't even go down into IQueryable's then..
 
@Greg your current shop is stuck in 2002 apparently
 
I've been trying to simplify my life, due to the lack of desire to grow in their careers.
I know I could simply drastically if I didn't have the custom column / mapping on a poco feature set.
 
You could simplify dramatically by finding a different job
says the guy who arbitrarily had to drop all windows development because the CTO said so
rip me
!!doge node, python, docker, linux, kill yourself
 
   wow
                          such node
so  python
              very  docker
                          many  linux
much  kill yourself
 
2:30 PM
!!tell mike to breath
 
@mike breath
 
> breath
 
@mikeTheLiar that's what I did :) next week is my last week in this shithole
 
You guys have great potentials, yet all i read is you are living in shitholes.
 
@Greg Just stick to mapping SQL to POCOs then. Don't wander into the IQueryable domain. If anything, write a simple SQL builder.
 
2:31 PM
@mikeTheLiar I did find another job, I start the 19th.
 
create a company for this room for god's sake
 
@RoelvanUden Any thought's?
 
@Greg Congrats! Stop polishing the turd
 
what turd.
 
@ElieSaad nobody here is interested in the business side of things, it's just something we have to deal with to be able to do what we love
 
2:33 PM
I would start looking for another job but unfortunately my wife and I want to find a job that will relocate us cross-country and there's just too much going on in our personal lives right now to even think about doing that until at least November
 
@mikeTheLiar Well, I want to better myself.
@mikeTheLiar Which part of the country?
 
@StevenLiekens Mhm i get you.
 
@Greg East -> West
 
@Greg Specifically PetaPoco's SQL Builder
 
2:35 PM
We're in Boston right now, we want to be... well at this point basically anywhere on the west coast
 
dammit someone save me from this SDS!!
 
@mikeTheLiar Like Portland?
@RoelvanUden I'll take a look.
 
I hope this is SFW
 
it is :)
 
2:47 PM
Hey everyone, I have a question regarding NSubstitute. Hoping someone can help me out.

I have a method with a signature like this:

myObj.UpdateData(int inputParam, out OutputType outputParam);

In my test, I'm using Substitute.For to create a mock of myObj. I want to set up UpdateData to return a hard-coded result regardless of the 2 parameters, but I can't seem to use Arg.Any<OutputType>() for the out parameter because the compiler can't resolve the object being passed in as a variable. Is there another approach I can use?
 
@RoelvanUden But, I might as well use Dapper. Since they're identical basically.
 
Dapper has a custom SQL syntax. Dapper does not have a SQL builder.
 
Oh, I'll have to take a look.
 
@JakobMillah what the .. y u do dis birdy?
 
Wildlife fighting against humanity
We are doomed
 
2:49 PM
They have joined forces!
 
So it begins.
 
I was thinking it would be cool to work on a program that takes text and uses context and converts it to code statements and conditionals LOL
Just for fun lol
 
@RoelvanUden So that works well with Stored Procedures?
 
@Greg sure, that's an option.
Top choice is SoCal but I believe the wife has expanded her acceptable destinations. I'm not picky either way
 
@mikeTheLiar Well, that is the largest problem with Entity Framework for instance.
 
2:51 PM
What, Portland?
 
@mikeTheLiar I was going to say Portland has a ton of developer position's available. A lot of Californians and people in Washington are moving here for them.
 
Ah nevermind, got it working :) I created a local variable and passed that into the out param. My other issue was checking the Received() call, but I changed it to ReceivedWithAnyArgs() to ignore the params since I don't care about them anyway and that worked
 
Good to know. I'll look into it.
 
Mike also NYC
lol
 
@Greg sure
 
2:53 PM
Apply for StackOverflow!
 
I don't think I want to work for SO anymore
 
aw why?
 
That used to be real high up on my list of places to work
 
@mikeTheLiar Within a single day I had an option to interview for the state, Nike, Carmax, Space X, and a couple other local companies.
 
But either the community is getting increasingly toxic or maybe I'm just waking up to the fact of how toxic it is
 
2:54 PM
The community is pretty toxic now.
I almost don't like asking or answering questions.
 
aww
 
Yeah
I'm just wondering if it's always been like that and I'm just noticing now
 
I still ask or ask Roel to help me clarify my question LOL
 
Or if it's become more toxic in the recent past
 
You guys are the best, so C# community is safe :)
 
2:55 PM
But for example
 
idk about other communities
 
Some of the people here are great resources in chat, that I prefer to speak to then ask the rest of the community.
 
So far the vast majority of my excursions into the Python chatroom have been met with mainly derision and barely concealed contempt
 
Oh work for Xamarin, they're located in Boston
 
And almost no help whatsoever
 
2:56 PM
Mike you're in Boston right?
 
I am but I want to get out
 
hmm yeah the west coast is nice
I visited WA and it's sooo beautiful
It's a mix of city and nature
 
But yeah. At least WRT the Python chatroom, either every other programming community I've participated in is wrong and I'm just a complete moron or they're a bunch of toxic assholes
 
@KalaJ Oregon and Washington are like that, California not so much.
 
Occam's Razor and all that
 
2:57 PM
they are toxic.
 
@ElieSaad I mean to be fair we're not saints either
But I like to think we give people the benefit of the doubt
Like, we need evidence that you're a vamp
 
people nowadays think that knowing whatever gives them pride and lets them crush the less knowing person
I honestly never/rarely seen anyone in this room talk badly to a new comer.
 
Yeah
Like
We'll shit all over you if you're a vamp and put forth no effort
But we need to see you do that first
 
I know this random arbitrary fact and you don't! That means you are less than me!
2
 
Yeah you guys gave me a chance and I had literally no idea what I was doing 2 years ago
Now I'm much better and I feel more confident in C# :)
 
3:00 PM
You still don't have a clue! #burn
 
haha
 
Yeah for real, all those people with no sense of humanity or whatever are gonna be replaced by robots.
Why is @KalaJ a room owner. I want this to be taken to court.
 
Because why not.
 
Haha Rubert believed in me :P
 
@ElieSaad Sure present your case
You'll be laughed out of the room but go ahead
 
3:02 PM
Yeah state your reasons haha
 
He paid you, didn't he?
I can see it in your eyes.
 
haha that's why he's barely around anymore
He's like I can't take this responsibility anymore. Here, you have zeal, take this position
 
wait, who is Rubert?
 
The sensei entrusts his mission to his kouhai-chan. Isn't it glorious
 
@RoelvanUden Does PetaPoco support Asp.Net Core yet
 
3:04 PM
@Greg ¯\_(ツ)_/¯
 
!!tell roel shrug
 
@roel ¯\_(ツ)_/¯
 
!!tell roel lenny
 
@roel ( ͡° ͜ʖ ͡°)
 
I am improving some code and I am so bored with it.
I'm just polishing this turd. Making it shine a little more with each stroke. But it's still a turd.
 
3:12 PM
Hm, okay.
 
Hello peoplez
 
hello fellow Aliens
 
this is pretty kwel
 
yeah
 
I'm only here two more weeks, screw it. I'm going to install Dapper.
 
3:24 PM
@Greg, only at your job for two more weeks?
 
is there a good guide of 'using threads in windows form application' ?
 
Yeah.
 
dear god, plz don't use windows forms
 
I got a new position.
 
@Greg, congratz!
What will you be doing?
 
3:26 PM
A new Software Engineer position for Clean Water Services.
 
its a requirement to use windows forms.
and since it is a part of VS still. It is not obselete.
 
A lot of Python, SQL, Sharepoint, Asp.Net, and diagnosing third party software.
 
obsolete
 
@Greg, awesome
 
Yeah, thank you.
 
3:27 PM
so, @nathvi, please, don't be ignorant.
 
@ARr0w, o hush you.
 
and ignore if you can't give a good response.
 
Don't tell me what to do. You're not my real mom.
 
Honestly Microsoft wishes they could abandon Web Forms and Windows Forms, but it is integrated into .Net so deep they support it.
 
^
 
3:28 PM
its their fault. LOL
blame them.
curse them
 
@ARr0w, you are a pretty annoying leech. I'm blocking you.
 
lol, okay, do it. But trust me, not more than you.
and a ignorant leech that is.
 
guys a fast way to exclude zero values during xml serialization?
 
you can't exclude them
 
@ARr0w if they can't let it go, you let it go. New techs are there for a reason.
They are giving you a work around because they can't abandon it maybe.
 
3:34 PM
Just because something is new, doesn't make it better or worse
 
Winforms is incredibly obsolete
I mean, I get the legacy requirement because we have it too
But don't try to defend it
We have a requirement to maintain VB6, that doesn't make it a good idea
 
@juanvan fixed it
 
this is a product. I will move to the new technology as soon as i am done with it.
 
just return it as a string..
null are excluded during xml ser
 
@Nathvi i didn't say that. But win forms is way too old. There is the in between and the new
 
3:38 PM
@ARr0w You keep saying that but you also keep coming in here with Winforms questions
 
@mikeTheLiar, because, i'm working on that windows form app and i'm asking questions for it.
i really want to complete it asap myself.
i'm struggling. Growing myself from ground. Can't i?
 
Schifity-Five.
 
@Kob_24 glad you got it
 
lamo
 
why would anyone smell armpit ..
 
3:42 PM
@ElieSaad who knew... people prefer good smells to bad.
 
@Michael don't ignore the fact that women smelled armpits!
 
@ElieSaad it was for testing lol
 
@ElieSaad, yeah.. i agree with you and cheers man.
 
would go with the Pineapple example on that one @ElieSaad
 
@ARr0w you do know that there is a channel on youtube that talks about for example webforms and mvc, and helps you develop it, and then tells you why mvc. It contains a lot of other stuff about .NET as well
You really don't have to go the full hassle reinventing the wheel
@Michael STOP DEFENDING THEM. I am gonna make you do it if you say it one more time. In a unit test. (to keep it C#-ish)
@juanvan I would go for bananas.
!!tell juanvan lenny
 
3:47 PM
@juanvan ( ͡° ͜ʖ ͡°)
 
4:02 PM
So random but what's that windows tool that shows how much space different sections of your machine are taking up?
 
I use windirstat
 
@KalaJ Are you talking about disk space...? or something else
 
It might have been windirstat
@StevenLiekens lol yup, that's the one. Thanks :)
 
It doesn't run on Windows 10?
 
4:06 PM
@KalaJ check out Tree View as well
 
Hello, can someone give me some help here?
 
it does run on windows 10
 
ok, thanks
@DavidAmaral ask your question
 
@KalaJ I'm trying to transform user's input of Tab into a Ctrl + Tab inside a WebBrowser Control. Do you have any idea of how can I do this?
@KalaJ I can't use KeyDown event because WebBrowser doesn't support those events so I have to use PreviewKeyDown.
 
What are you using? .NET MVC?
 
4:11 PM
Eh, the only two things I really use the internet for at this point is porn and StackExchange
 
Why can't you use Js or jquery for that?
 
"WebBrowser Control" suggests something...old
Something old and smelly
 
Yap, I know...
But does someone know how can I do this?
.Net yes.
I'm searching for hours now with no effect.
 
6
Q: Handling key events on WebBrowser control

Tony the PonyI am using the WebBrowser control in a C# application and want to handle all key events while the WebBrowser has the focus, regardless what individual content element (input field, link, etc.) is focused. I tried to simply add an event handler to browser controls KeyDown event, but this does not...

2
Q: How to provide KeyPress event to WebBrowser control?

Pritoriani really need to catch "ESC" key press while focus is on WebBrowser control. I tried something like this: (webControl as Control).KeyPress += new KeyPressEventHandler(MyKeyPressEventHandler); But it doesnt work. The method is not called. I tried some methods, described here, but dont get any ...

 
Thanks for the links. I'm going to check those out.
 
4:15 PM
> The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and KeyUp events.
 
I already know how to catch KeyPresses on webbrowser but...
I need to convert Tab in Ctrl + Tab without using any KeyDown or KeyPress
I can only use PreviewKeyDown...
 
well... I did it... got into a GTF Position. now I walk away from the industrial world, and back to the academic.
 
Hey people. This is driving me nuts. How do I set the current user as admin or member using mvc? All I want is to just allow certain users such as admin, employee, customer etc. I have the following:
View:
        [AuthorisationTest(AccessLevel="admin")]
        public ActionResult test()
        {
            return Content("Hello world");
        }

Model:
    public class AuthorisationTest : AuthorizeAttribute
    {
        public string AccessLevel { get; set; }
        protected override bool AuthorizeCore(HttpContextBase httpContext)
        {
            var isAuthorized = base.AuthorizeCore(httpContext);
            if (!isAuthorized)
            {
                return false;
            }
But no matter what I do, i cant access it. Where do I actually set the current user to be employee?
 
@roscoe_casita, what's GTF?
 
4:32 PM
Graduate Teaching Fellowship
 
@RoelvanUden are you still around today? I'm curious about the DBcontext filter example you mentioned to me yesterday
 

« first day (2146 days earlier)      last day (2811 days later) »