« first day (2412 days earlier)      last day (2537 days later) » 

mr5
2:34 AM
o/
 
mr5
your name sounds familiar
 
That's usually not a good thing
 
mr5
don't worry. we live in in different continent
 
 
2 hours later…
4:47 AM
good morning
 
5:08 AM
Mornin
 
 
1 hour later…
6:32 AM
Good morning.
You know what I would like? The option to star a conversation - say, two consecutive messages. Context.
Heh. Stack Overflow: Helping One Million Developers Exit Vim:
David Robinson on May 23, 2017

This morning, a popular Stack Overflow question hit a major milestone:

You’re not alone, jclancy. In the five years since this question was asked, there have been over a million other developers who got stuck in Vim and couldn’t escape without a bit of help. Indeed, the difficulty of quitting the Vim editor is a common joke among developers.

I’ve been told by experienced Vim users that this reputation is unfair, and I’m sure they’re right (even I’ve gotten the hang of it in the last few years). I think there are two reasons it’s easy to forget how to exi …

/looks at stars.
We're going to get the room locked again, aren't we?
 
mr5
In Android Java, having a static reference to an Activity will cause a memory leak if not set to null. Is this true in C#/Mono as well?
 
o/
 
@AvnerShahar-Kashtan do you know any good beginner - intermediary books for C# developers that you can recommend ?
 
@AdiMohan No, sorry. Never read any dev books.
No, wait, sorry. I read Jesse Liberty's C++ in 21 days when I was 16.
Never finished it, though.
And I still don't really know much C++. 21 years, not 21 days, later.
 
What is VIM actually? IDE?
 
6:45 AM
@nyconing Text editor.
@mr5 Static members are never released throughout the lifetime of your application. You can consider it a leak or a feature.
But if your non-static instance holds a reference to a static member, that instance can still be collected and released.
@Squiggle \o
 
Text editor that does not get killed?
 
@nyconing Text editor whose interface is non-intuitive for people who come from the windows mindset.
There are no menus. You have to switch from editing mode (where what you type goes into the document) into command mode (where you type commands), and then type the non-intuitive command :quit to quit.
vim is really minimal in its feedback. If you don't know where to find the subtle signals, you don't even know if you're in editing or command mode.
 
@AvnerShahar-Kashtan seems legit, thanks for your input :)
 
I get it.
:quit
 
Goog mornig neglegerinos
 
6:50 AM
in command mode.
 
Or :q! to quit without saving changes.
 
@AdiMohan can you speak german?
 
Deutsch ist verboten.
 
Deutsch Masterrace
 
Mast Terrace?
 
6:53 AM
After english, spanish and french
 
Mandarin, Urdu, Hindi...
 
Arabic, Klingon...
 
ein bischen
aber meine deutsch ist schlecht
 
Auch meine, Adi.
 
7:00 AM
Und ich arbeite im einem Deutcher Buro :/
 
@Nerdintraining i'mma need to proxy that link, for you see, my wonderful company blocks stuff
 
Warum machen du sowas @Squiggle?
@AdiMohan my company blocks urban dictionary
 
@Nerdintraining Ich wohne in der Schweiz
 
@Squiggle oooooh schön
 
@Squiggle Ach diese schwitzer
 
7:01 AM
@Nerdintraining omg really.. ?
 
@AdiMohan yeap funny actually, i don't really know why but i don't want to ask :D
 
Schwiizer, yoh.
 
Is there a way to make an XmlSerializer fail if there are extra elements/attributes in the xml that isn't in the POCO?
 
@Nerdintraining i get why you would block youtube and stuff but... meh... they are absurd as it is
 
morning :)
 
7:02 AM
Anyway, that is the book with wich i started C#, it's for absolute beginners to OOP and Programming in general. But it covers allot and goes into the intermediate levels quite fast..
It is lacking Linq, WPF and some other essentials though :) @AdiMohan
 
@WilliamMariager Why, for versioning?
 
Youtube is not blocked for us ^^
 
 
@SebastianL I WISH YOU A PLEASENT GOOD MORNING SIR!1!1!!111
 
Slightly late there
 
7:03 AM
@Nerdintraining i will check it out as soon as i get home, thank you very much
 
To make sure all fields are parsed, so I don't accidentally miss some information. I'm parsing some very large XML files and I need to make sure I catch everything.
 
I would block urbandictionary in firewall rules, sure.
 
@TomW more or less acurate^^
 
@Nerdintraining atleast you've got that going for you, youtube i mean, it's really annoying to have to proxy it all the time
 
@AvnerShahar-Kashtan but why
 
7:05 AM
@Nerdintraining For being a cesspit of stupidity. Real slang and jargon interspersed with tasteless in-jokes and plain wrong information.
 
@Nerdintraining mhmmhmmhhmmmm ty
 
Morn all
 
@AvnerShahar-Kashtan but thats where i look up all of the abrieviations that you crazy guys use here
like RTFM
 
@AvnerShahar-Kashtan if it wasnt for urbandictionary I would never know what it is to be a gabber
 
!!urban gabber
 
7:07 AM
@SebastianL gabber A derivitive of a Yiddish word meaning "friend", a gabber is a person who likes hardcore techno originating out of Rotterdam that goes by the same name. The name was coined supposedly when a club bouncer stopped someone, saying "Gabber, you can't come in here." Gabber can be used widely however, such as for a substitute for "dude" or "brother". Gabbers are also often mistakingly confused with neo-Nazis(snip)
 
its just people who like hard techno
 
The Newtonsoft Json serializer has a MissingMemberHandling field you can set to Error to make it stop if it hits extra data.
 
why is there a reference to neo nazis there
 
But I can't find anything like it for the XmlSerializer.
 
i dont get it
 
7:09 AM
@misha130 you know gabba gandalf?
 
@misha130 because (at least in germany) many neo nazis like hardcore/hardbase techno
 
@misha130 because it's urban dictionary.
 
I found it! UnknownElement/UnknownAttribute events
 
@WilliamMariager Oh, cool.
 
7:22 AM
@WilliamMariager events? lol.
 
It's okay :P All I need to do is flag the import as "needs attention".
 
@Squiggle Binding is essentially still eventsdriven
 
Did you know you don't actually need the PropertyChanged event to support binding?
Not sure how it works, but it does.
Only with UI initiated events though as far as I remember.
 
Pics or it didn't happen!
 
Oh, then it didn't happen. Who has the time to procure pics?
 
7:27 AM
I bet you it still compiles a PropertyChangedEvent
 
Hello.
 
mornin sensai
 
morning
 
Binding doesn't need anything, just a property with a getter.
But you won't be able to update the binding easily without INPC.
And even then, you can have code in your view to initiate refreshing the binding, without INPC. The PropertyChanged event is a mechanism for the viewmodel to tell the view to pull updated data.
 
7:49 AM
@AvnerShahar-Kashtan I suggest we call this Listning once instead of binding^^
 
@Nerdintraining Not necessarily. Push binding (from view to viewmodel) will still work.
Since the view-side dependency properties do have code to support it.
 
^ yeah, I was surprised some times, that a binding still works, tho implementation of INotif... and event firing are missing.
 
is there a reason why upvoted comments don't add rep?
 
@SebastianL To discourage commenting, basically.
Comments are meant to be transient. Not a real part of the site's content.
 
k thanks for explaining ^^
 
8:05 AM
We shoulda make chat rep
With dank memes and midget spinners
 
@KamilSolecki don't forget smug gif signatures after every post.
 
morning
 
8:22 AM
o/
 
\o
 
morning.
 
is it hard to teach caprica something like !!cowsays {...} ?
 
@SebastianL cowsays is hardcoded afaik.
 
8:28 AM
@AvnerShahar-Kashtan Information on interacting with me can be found at this page
 
but since it's possible to teach her new commands i thought it may be possible to teach her a js function as command instead of a link ^^
 
!!> 'hmpff';
 
@AvnerShahar-Kashtan "ReferenceError: alert is not defined"
@AvnerShahar-Kashtan "hmpff"
 
everytime i read capricas help page i end up on this answer
4426
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
8:45 AM
Ah, this beauty.
 
!!cowsays beep beep im a sheep
 
@Kieran That didn't make much sense. Use the !!/help command to learn more.
 
WOT
 
!!kieran2
 
8:51 AM
Morning
Anyone used Code Map in Visual Studio ?
 
Wait, we aint allowed to swear in here?
 
how can we hide System... namespaces from result without explicitly deleting them
 
butbutbutbutbutbut thats my favourite thing
 
@Kieran We've had the room closed by chat mods before because people couldn't accept the fact they can't say whatever is on their minds. It really, really isn't that difficult to stay civil.
 
oh so i can swear so long as im not swearing at someone in a bad way?
 
8:53 AM
!!c#
 
May 5 '16 at 15:17, by BoltClock
THIS ROOM IS OUT OF CONTROL
 
@Kieran Or, you can refrain from that as well.
 
@AvnerShahar-Kashtan okay :c
 
Troll alert !
 
Where?
 
9:05 AM
 
lmao
 
phrack.org/issues/7/3.html that's quite funny, It feels like reading myself.
 
9:26 AM
@satibel naise
 
@satibel you went to jail?
 
@SebastianL nah, just the school part :p
 
@satibel same here :D
during CS lessons i could do whatever i wanted, i only got interrupted when all the other students stagnated on a single question
or something like that
 
9:43 AM
I was not that nice of a student, I told my college math teacher "well, sorry but listening to your class is useless to me, as I could read through it an hour before the exam and get 14/20", I actually did that and got 14.5/20 XD
 
@satibel we had a rule, that you have to attend at least 2/3 or you need to have a doctors note for every missed course
so i was sitting there anyway
 
We had the same thing ^
 
9:58 AM
Are there any disadvantages of dynamically type loading ?
 
@SebastianL I kinda sayed fuck it not that long after, and quit school.
 
@satibel i'd like too do that too, but sadly you need some kind of certificate to get into the industry
@Mathematics you mean dynamic ?
 
@Mathematics I'd say no intellisense, and maybe more complex code.
 
@satibel what else is there then ? I mean it's whether you add dependencies or not :)
Dynamic loading is a mechanism by which a computer program can, at run time, load a library (or other binary) into memory, retrieve the addresses of functions and variables contained in the library, execute those functions or access those variables, and unload the library from memory. It is one of the 3 mechanisms by which a computer program can use some other software; the other two are static linking and dynamic linking. Unlike static linking and dynamic linking, dynamic loading allows a computer program to start up in the absence of these libraries, to discover available libraries, and t...
 
@Mathematics Sure. DLL hell is a side effect of dynamic loading.
Ah, you're asking about dynamic loading, not dynamic linking.
Still, yes - it pushes validations and checks to runtime, rather than compile-time.
It introduces a more vulnerable surface for code injection attacks.
 
10:06 AM
Dynamic loading.. happens all the time. It's no big deal so long as your contract is correct.
 
@AvnerShahar-Kashtan we have design flaws, and now circular dependencies, we can't automate build, only solution I can think of is to converting static references into dynamic
@RoelvanUden Thanks that helps build my confidence into it
 
@Mathematics That... probably isn't a good idea in the long term.
Or medium term.
 
@Mathematics For that use case, though, it sounds like you just need to refactor your code to avoid the circular dependency.
 
And possibly short term.
 
Obliviously we can look into modelling projects properly but PM wants things to be done
 
10:08 AM
Dynamic loading is good for stuff like addons, or lazy loading modules that occasionally need to be used but not always (performance). They key point is that the contract needs to be correct, and you must avoid dependency version hell
@Mathematics Tell the PM to go suck it, you can't build on crap.
Structural solutions are absolutely mandatory if you want to keep using the product
 
Hello all.. any one have good idea on Azure AD authentcation?
 
@RoelvanUden it's like orderService depends on paymentService and paymentService depends on orderService and so on..
both of them might not have anything in common
creating an interface would not really solve the problem
 
10:25 AM
Sure it would.
 
^^.
You create an Interfaces project with the IOrderService and IPaymentService interfaces in it.
 
you guys are right
seems like this circular dependencies messed my mind up :D
 
@Mathematics DoNotInterpretDoNotInterpretDoNotInterpretDoNotInterpret
 
10:46 AM
Hi. I'd like to test build performance between two machines. Can anyone suggest a good-sized open-source .NET project that would take at least a minute to build? My first idea was github.com/dotnet/roslyn , which would be perfect, except it has a pretty technical Restore step (installing extra build tools) which wouldn't run on one of the machines. A project with few or no dependencies would be ideal.
 
@ColonelPanic maybe you'll find something here: github.com/Microsoft/dotnet/blob/master/…
 
@SebastianL thanks let me take a look
 
11:41 AM
Anyone here run Powershell scripts in C#?
I'm trying to get piping working in my pipeline.
 
@AvnerShahar-Kashtan I run powershell scripts in tfs
 
I'm trying to covnert this to C#:
Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'Subject:"test"
Basically, the first part finds mailboxes, and the second searches them.
In C#, I have this:
   var getMailboxes = new Command("Get-Mailbox");
   getMailboxes.Parameters.Add("ResultSize", "5");
   var deleteEmails = new Command("Search-Mailbox");
   deleteEmails.Parameters.Add("SearchQuery", "Subject:\"blah\"");
   pipeline.Commands.Add(getMailboxes);
   pipeline.Commands.Add(deleteEmails);
   var res = pipeline.Invoke();
I get an error: The target mailbox or .pst file path is required.
Which seems to imply that the output of Get-Mailbox isn't feeding into Search-Mailbox
Maybe I need to specify the TargetMailbox param with no value?
 
@AvnerShahar-Kashtan you want to open a .pst and search for mails and delete some, right?
 
If I just call the first command, I do get results.
@SebastianL Yeah.
I don't know how to tell the pipeline to pipe the output of Get-Mailbox into Search-Mailbox.
Samples I've seen seem to imply it should just work.
 
@AvnerShahar-Kashtan you do know MAPI?
 
11:55 AM
@SebastianL Yeah, but that's out of scope. I need this to work, not find other alternatives right now.
This is just one example script, I'll have more PS scripts.
 
@AvnerShahar-Kashtan so you want a cmdlet for searching a pst?
 
No. I have it.
I just need my C# pipeline invoker to properly pipe the output of Get-Mailbox into Search-Mailbox.
 
and you're required to use it
@AvnerShahar-Kashtan i just read a little, and pipeline.Invoke() runs the commands after another without piping any content to anywhere
2
A: C# and powershell multiple command

Jason ShirkI would recommend not using AddScript if you are just invoking commands. Assuming you want to invoke both commands but not pipe the results from the first to the second, and assuming you are using PowerShell V3, I would write the code like this: powershell.AddCommand("Enable-Mailbox") .AddP...

 
I've tried running them as two different pipelines, passing the result of the first one into the second one as the input data, but still nothing.
 
@AvnerShahar-Kashtan there is a c# library for powershell commands
 
12:08 PM
i think he's already using it
pipeline seems to be an PowerShell object
 
It seems that Search-Mailbox has two mandatory parameters - TargetMailbox and TargetFolder - that for some reason aren't mandatory when calling from PS directly.
 
powershell uses .net so i don't see why you can't execute a script and get a return code from it
 
The piping was working fine. It was just that I needed to specify those params.
 
oh
im kind of in and out of this convo
haven't had caffeine yet
 
 var pipeline = rsRemoteRunspace.CreatePipeline();

            var getMailboxes = new Command("Get-Mailbox");
            getMailboxes.Parameters.Add("ResultSize", "unlimited");

            var deleteEmails = new Command("Search-Mailbox");
            deleteEmails.Parameters.Add("TargetMailbox", "Discovery Search Mailbox");
            deleteEmails.Parameters.Add("TargetFolder", "Deleting");
            deleteEmails.Parameters.Add("SearchQuery", "Subject:\"blah\"");
            deleteEmails.Parameters.Add("DeleteContent");
This gets all mailboxes, then runs a search for the subject-line "blah" on all of them and erases the results. It needs the temporary targetmailbox/targetfolder for it.
 
12:27 PM
Hi guys
 
Hi Sebastian what's up?
 
has anyone ever taken an online course on udemy.com?
 
I have a controller and another class in another namespace. In that namespace, I have made a method inside that class, but I can't use the method from the controller. When I type, the namespace comes, then the class comes, but the method doesn't come. Can you tell me what's wrong?
By the way all of the classes, controllers and methods are public.
 
Show me your memes
 
12:32 PM
is anything static?
 
a few methods are
Actually I can reach another method, but can't reach the method I just wrote
Oh
When I made that method static, it worked
 
Mornin' folks!
 
but I have no idea why...
 
 
Good morning
Design question ahead
 
12:35 PM
@Shoe Cleared for landing
 
6
Q: SQLite3 not using covering index with json_extract expression

Roel van UdenI am attempting to create an index in SQLite3 (3.18) using json_extract expressions. My aim is to execute queries that only require the index to yield results. The reason for this is that json_extract is an expensive operation which would hinder performance when operating on larger data sets and/...

 
I have a web api asp.net controller. I see that the Post/Patch/Delete/Put will probably be reused for many other controllers. Is it common to abstract away the logic in there in some other class?
@Kramb :)
 
@Shoe As in creating a generic handler?
 
@Kramb What I mean is... logic like "For a patch, try to fetch the entity data, if I can't find the data return NotFound, otherwise try to update the data, etc..." is logic that is common to all entities
Copy pasting that or scaffolding that doesn't seem like a good idea
 
You can do that, sure.
 
12:38 PM
What is the most idiomatic way?
 
has anyone taken a course on udemy?
 
Just create a static class and call it from your controllers.
 
But the static class needs access to the Ok(), NotFound() methods of the ApiController class
 
have the static class return a bool and if true run Ok(), else run NotFound()
 
@Shoe Just create a generic controller that handles POST, PUT, GET, etc and make them call and return the result of an abstract OnDelete(T entity) etc.
 
12:41 PM
@RoelvanUden Problem is that some entities only respond to certain verbs, not all.
 
I've never used abstracts. Reading the msdn on it, I don't see me using it anytime soon lmao
 
@Shoe Put those into properties ;-) IsCreateEnabled etc, and return a 404 when the setting is not enabled.
 
@RoelvanUden And that's the idiomatic way? I'm not personally too fond of base classes.
:(
 
Now you can just extend a GenericController<MyEntity> and do Is...Enabled in its constructor, then implement the abstract.
@Shoe There is no idiomatic way other than just implementing the entire goddamn thing again.
Which, honestly, is not much code at all.
 
About 100 lines of code for put/patch/post
 
12:45 PM
I uh...I just learned yesterday that I can inherit my DbContext from the base ViewModel I use for all of my ViewModels.
 
Don't do that.
@Shoe That's a lot of code.
 
@RoelvanUden Me don't do that?
 
@Kramb Yeah
 
Oh
 
@RoelvanUden It seems to cover a lot. Including concurrency issues when updating the model.
 
12:47 PM
@Shoe Eh throwing an exception kinda works for that too lol
 
1:00 PM
weird, it seems windows has a file tag for devices.
System.IO.FileAttributes.Device
 
@satibel aren't the devices on windows stored like ///?/Volumes/{GUID} ?
you can use the tool mountvol to check the guid
 
@SebastianL kinda, this is for Volumes only
you have other syntaxes for different devices.
 
like?
oh
just googled it
 
\\\?usb#vid_vvvv&pid_pppp#ssss#{gggggggg-gggg-gggg-gggg-gggggggggggg}
 
yeah ^^
 
1:13 PM
Alyssa Mazzina on May 24, 2017

About two years ago, a significant event happened at Stack Overflow: a new system, named Providence, was released. Providence would allow us to tell which technologies a visitor is interested in, and measure the “fitness” between a visitor and a job. The release of Providence marked a stepping stone in Stack Overflow’s continuous effort to be “smarter” and invest in data science, and it was only the beginning.

Aurélian Gasser, a developer on the Stack Overflow Jobs team, has detailed the long road towards building the greatest developer job search tool on the internet in his Medium post, A Dive …

 
why can't windows do it like linux
it's so much easier
 
Because Windows is superior.
 
what's superior about /dev/sd*n
 
HAIL WINDOWS
 
because there's no need to make everything a file in most use cases.
 
1:15 PM
it's a symlink not a file, even on linux
 
@RoelvanUden Do you work with Asp.Net?
 
So what you're saying is "Windows isn't good at doing things the same way as Linux - it's forcing me to do things the Windows way!". Well, yes.
 
@Shoe Yes
 
@AvnerShahar-Kashtan that's not what i meant :D
 
(Incidentally, are these devices available as Linux-style /dev/ paths under the Linux subsystem for Windows 10?)
 
1:17 PM
@RoelvanUden How do you easily debug applications? I'm currently working on a website project so with IIS every change is immediate. I tried to convert it to web application and it's so slow to start the local machine every time I make a change.
 
@AvnerShahar-Kashtan i don't think so (but i do not know)
 
Because it has to compile and all.
 
My nav-menu gets forced to a new line at 1102 pixels -_-. That sucks
 
@Shoe Eh. You just use a Web Application type of project running on IIS Express. Sure, it has to compile and that takes a tiny bit of time, but you get the debug everything just as you'd expect.
 
It takes so long for non trivial projects. Something like 30 seconds on my machine, it's absurd.
 
1:18 PM
What's taking that much time for you?
 
@SebastianL I'd check, but I'm on my work PC running the LTSB edition of Windows 10, meaning no Linux subsystem.
 
We have something like 100+ code behind classes with many lines of code each.
 
@Shoe It takes about ~1 second for a pretty large web application here.
 
Maybe the computer specs suck as well
 
Code behind. Sounds WebFormy. That might be a part of the reason too
 
1:19 PM
Yeah, it's webforms
Are you working on Asp.net core by any chance?
 
ASP.NET MVC5 EF6
 
I see
 
I used to work on webforms, until I was shown the light and glory of MVC.
 
@RoelvanUden Do you have JS based logic as well?
 
@Kramb i used to do Java but then i took a C# to the knee
 
1:23 PM
@AvnerShahar-Kashtan just installed linux subsystem ^^
 
@Nerdintraining I used to think I took an entire college course on javascript and even passed with a 98 average, then I later learned it was a Java class.
Then I took a palm to the face.
 
lol
Really?!
 
Java is short for JavaScript
2
 
get out
 
Which class?
!!kieran2
 
1:24 PM
 
haha yea, had no idea until I started developing with C#. I was like, hey this is familiar
 
slams face into desk
after seeing that screenshot
 
!!deskface
 
@mikeTheLiar That didn't make much sense. Use the !!/help command to learn more.
 
1:26 PM
@mikeTheLiar tell me where to apply
 
Aw, we lost deskface?
 
@Shoe It depends on the project, but generally, as little as possible. Unless it's a SPA or mobile application, then it's entirely JS.
 
@RoelvanUden With Web API?
 
@mikeTheLiar WE HAVE kieran2 to compensate though
 
@Shoe Yeah.
 
1:27 PM
@RoelvanUden And OData?
 
@Shoe No, we don't expose OData end-points to consuming clients (yet). But we do use OData to communicate between website and core data provider. That is, we decoupled the GUI from the thing that does the actual work.
 
@mikeTheLiar god why
 
I see
 
@mikeTheLiar was that a real job profile?
 
1:29 PM
@Kieran coz htm is basic for java
 
@Kieran didn'T you read the comments?!
 
@AvnerShahar-Kashtan just tried it, harddrives are not available, at least not directly
 
@Nerdintraining Probably. Have you never worked with recruiters before? They have no idea what they're talking about.
 
@mikeTheLiar Dude, i'm still in training^^
 
Tis a fair cop.
 
1:31 PM
@mikeTheLiar im so confused
@Nerdintraining I did read the comments but its confusing to me
 
@AvnerShahar-Kashtan you can access your windows partitions with /mnt/DRIVENAME.ToLower()
 
Because you can't figure out why the rum's gone?
 
We have a UserInteraction utility class in our project. It has a ShowInfoMessage and ShowErrorMessage methods. Both receive two parameters - a title and the message itself. One of them has the title as the first param. The second has it as the second param.
 
WHY IS THE RUM ALWAYS GONE
 
I don't know who's responsible for that.
 
1:33 PM
!!kiearn2
 
@Nerdintraining That didn't make much sense. Maybe you meant: kieran2
 
This reminds me of 007 yesterday @mikeTheLiar
 
darn
@Kieran
 
Related: If you dont know Java its not my fault
 
1:39 PM
Anyone knows a good article/tutorial/walkthrough for setting up proper development/homologation/deployment environments on a agency?
 

« first day (2412 days earlier)      last day (2537 days later) »