« first day (3399 days earlier)      last day (1774 days later) » 

12:00
kotlin's val text: String is equal to C#'s
private readonly String _text;
public String Text
{
    get { return _text; }
}
@CaptainSquirrel is that guy still coming in here posting gibberish?
the only case where there wouldnt be a field, is when you override a superclasses property or when the property is declared in an interface (which has to be redeclared in an implementing class)
Also
> On the JVM: The access to private properties with default getters and setters is optimized so no function call overhead is introduced in this case.
then, there is also the case of compiler optimization, that skips the getter function in some cases where it can assert that it would have equal behavior
no function call overhead is introduced because it's a field and not a property
12:02
ye... that
So you agree?
Finally
so, you agree that you dont have to do propertyinfo ánd fieldinfo in kotlin reflection
Well you would though
there is no reason to access field information in reflection really
but anyway, lunch time
(accounting for the different naming) if it was written in the same dodgy way that C# reflection was written, you'd still need the 2 seperate ones
12:06
@Neil he appears to have returned
Unfortunately
He's still suspended for 5 minutes
flags i imagine
Hmm maybe
No mods came in though that I noticed
12:07
@CaptainSquirrel gotta admire his tenacity considering how easy it is to kick him
Jack, shrug
¯\_(ツ)_/¯
Some people get off on the stupidest things
clearly this guy gets off on speaking klingon to a bunch of people that don't want it lmao
Like J.Doe
Who are we to kink shame them
12:08
Jack, countdown
Only 271 days!
i know lmao
Holy shit he's lurking now lol
hahah
@CaptainObvious he lurks almost every day lmao
12:09
I don't understand why tho
1 min ago, by Captain Squirrel
Some people get off on the stupidest things
Is he getting off on that fact that he can't talk? I thought he was meant to be all free speech and shit
Maybe that's it. He must be a huge masochist
He promotes free speech and gets off on suppression
something something free speech doesn't count if you are using a platform ran by a private non gov entity
12:10
He should be the new president of china
J.Doe for president! of china
Can't be worse than Xinping
xinping?
You spelt Emperor Pooh wrong
The current president of China
heh
lol
1 message moved to Trash can
That's new
The user has been kicked and cannot return for 30 minutes. Moderators have been informed.
I didn't even notice that one
Moderators have been informed.
12:12
That's not new
That came up last time too
On the 30 min kicks
Oh sick I got 25 rep yesterday
For kicking enough people I hope
Winnie Doe
Unfortunately not. My answer to a question got accpeted though
@CaptainObvious first time I've noticed it anyway
Nice
Hey can I do this in one command somehow?
ssh ourserver123
<input password>
docker system prune --volumes -f
You need to set up SSH to work without a password
452
Q: How to automate SSH login with password?

EonilHow to automate SSH login with password? I'm configuring my test VM, so heavy security is not considered. SSH chosen for acceptable security with minimal configuration. ex) echo password | ssh id@server This doesn't work. I remember I did this with some tricks somebody guided me, but I can't...

Then it might be doable?
12:23
I'm root, so I can easily make a key work
@Squirrelkiller no, you're squirrelkiller
Don't forget to execute rm /rf /* --no-preserve-root for maximum performance
It's less fun now that you have to add --no-preserve-root to it, but without it most will reject it
12:50
I'm not sure if we should be concerned about the fact that he's not said anything since I posted that command
1 message moved to Trash can
@CaptainObvious Ok that was hilarious, I'll give ya that
@CaptainObvious ye, but that is basically looking at where you want the responsibility
also, in C#, a lot of things have a weird inheritance setup
Weird how
I think it all makes sense
missing interfaces for types with some equal functions (where those types should also be interchangable)
(basically your example of PropertyInfo and FieldInfo)
I think things like that are down to history though
12:56
ye, but you should be able to introduce a new interface that existing classes can implement
Oh right, I mean I kinda understand why they did it
I assume FieldInfo is since C# 1
and PropertyInfo since C# 1 + x
But yeah they should both implement something along the lines of DataMember which had it, and could seperate from the methods
when PropertyInfo got introduced, they could have made an interface as IStatefulMemberInfo
Yeah that essentially
But backwards compatibility is microsoft's thing
12:58
that should be perfectly backwards compatible tho
would it not?
If they added something else to the existing one? In theory it should work
But they avoid doing stuff that changes because something might rely on something not being the case
they dont add something to the existing ones
Or at least they used to anyway. They tend to be a bit more lenient in recent years
just add a supertype
I thought you meant they'd have to make FieldInfo implement the interface
13:00
only thing that could break is if someone relies on FieldInfo having X supertypes
where after the change, it would be X + 1
FieldInfo would implement the interface
but that interface would have SetValue and GetValue functions
which FieldInfo already has
and implements
Yeah but microsoft used to be super anal
used to be?
No like wayyyy worse than they are now
that implies they arent any more
ah... well...
And came up with really odd reasons for things
13:03
such as dynamic :D
Like they probably thought about that, and decided "A developer may rely on the behavious of FieldInfo not implementing any interfaces for something" or somethign equally stupid
They often used to intentionally not fix odd behaviour of methods if people may rely on the odd behaviout
There's a method or property or something somewhere callled something like "IncludeAccepted" or something, and the docs acknowledge that the name suggests it does the complete opposite of what it actually does
its like Java 9 (or 8 perhaps)
Ah I found it
where String's memory changed from char[] to byte[]
13:09
and people were like "WHAT?! NO!!! that is not backwards compatible"
> AssemblyNameFlags.EnableJITcompileOptimizer: Specifies that just-in-time (JIT) compiler optimization is disabled for the assembly. This is the exact opposite of the meaning that is suggested by the member name.
I was like "fuck you, if your code relies on java.lang.String's PRIVATE fields being of a certain type, your code is meant to break"
Maybe they have strings of specific length which they expected to take up a set amount of memory or something
Switching from byte to char or vice versa would change that, so I agree with them, it's bad
if the public methods behave the same as before (aside from any potential resolved bugs), there is literally no problem here
also, you might be interested in implicit typing
it would solve this case (multiple types with equal methods without common interface) much better than dynamic can
it relies on a feature that could be even better, but I am not sure I should allow people to write that
13:15
if we have to worry about backwards compatibility of private methods/fields then really, we're talking about any change
Rob
Rob
2 messages moved to Trash can
Rob is the saviour
all hail Rob
mr5
mr5
43
Q: Does GDPR include UK customers, or not anymore?

NunoNow that Brexit happened, does GDPR include UK customers, or not anymore?

summons hail
Rob
Rob
o/
mr5
mr5
13:23
@CaptainObvious
hail
mr5
mr5
rain
@CaptainObvious what if you can make an interface... and it gets automatically applied on every single class that can implement it based on the members it already has...
so, you make an interface IStatefulMemberInfo with SetValue and it automagically applies to FieldInfo and PropertyInfo
then you can do IEnumerable<IStatefulMemberInfo> members = properties.Concat(fields);
would that be an idiotic feature or not?
13:58
!~shiba
14:24
Need a good ASP.NET boilerplate with user management + web UI
I dont recall writing that
SO being silly again saying messages are by me
'am bakk
The moment when you read a PS4 emulator already exists and runs close to perfectly because PS4 runs on x86-64 and can be emulated natively.
Armored Core runs like a potato, but watch out, Bloodborne 60FPS
PS4 emulator? is that legal?
are any emulators legal?
V.7
V.7
It's even free and OS
14:35
nintendo ds, gameboy advanced, wii, xbox, ps
I had a nintendo 64 emulator some time ago. First time I played ocarina of time was on that
I used to play pokemon games on emulators
I think I played the original pokemon games for gameboy using a simulator
but cheating was so easy on the emulators
"oh, there is a 1% chance on a really rare item"
"lets save the game state right now just before the roll is done"
"if I dont get the rare item, I just load the game state right before it"
"might do 100 rolls in about 5 minutes"
on top of all the cheats that already exist in the game itself
for pokemon, that is a load of masterballs, every pokemon in the game being encountered at any level you desire, etc
I was watching about super smash brothers target minigame for peach. There is a super fast run with peach, but only if you manage to pull a turnip, bomb, and a blade in that order (and it was already like a 1 in 50 chance of pulling a blade)
then someone figured out that they could modify the seed by doing a series of operations before the trial run
I suppose the emulator just pulls a random number from a hat
14:41
ye, speed runs are crazy like that
the series of operations is quite common tho
you just have to figure out how to set the seed and offset
for example, on seed X, if you open an epic item bag as the third bag, you gain a legendary item
so, you need 2 other item bags to waste them just to get the offset right
even tho you might have the epic item bag at the beginning of the game, you have to wait until you looted 2 more item bags
I used to mod a game, where a lot of people were caught off guard by the world editor, which always used the same seed when you test the game
and people be like "I said it should create random stuff, but it always does this stuff" or "it is always the same sequence"
there was an option to use random seeds each test, but that was not the default
was kind of fun
If anyone is interested:
The guy who did it is very passionate about the speedruns, you can tell
14:57
@mr5 Yes is the short answer
The "General Data Protection regulation" in programming terms is like an interface, and each country has to have implementations of it
the weeb is missing today
:o
I mean the other weeb
AlRey
hmmm
In the UK we implemented it as the Data Protection Act 2018, which includes the required provisions
good. so
no one was interested to my post so ill share the link here then we can talk about the problem xD
https://stackoverflow.com/questions/60064569/combine-multiple-lambda-expression-to-one-expression
ofc if anyone was interested ...
15:21
@Neil Aaaah your usual video of a speedrun under 10 seconds... that lasts 1 hour.
See that ellipsis there, it implies the timezone is UTC+1
I thought it was interesting
it is
But you know what else is interesting? Messing up with you from time to time
...
@HéctorÁlvarez make not does this sense
pang pang
@Neil Masterful use of this lyrical license.
15:26
I think he meant "messing with you"
Yes, I messed up
That's what happens when you write stuff with your brain focused on something else.
there are no mistakes, only happy accidents
here' s a happy little tree
and happy little tree' friends
15:43
I don't think you know what happy tree friends is
I understand he wasn't even paid to do those
he'd come on down and do like a bunch of episodes all at once at no cost
@CaptainObvious I most definitely do.
@Neil :o
||hmmmmmmmm
15:47
Invalid command! Did you mean: hmmmmmm, hmmmmm, hmmmm? Try help for a list of available commands..‍
Damn it why don't you have the rest
What do I need to change in a new ASP.Net framwork MVC+API project to dishout http entry point instead of https
||hmmmmmm
15:49
||hmm
IIS express is suppose to create a localhost ssl certificate right?
yeah a self signed one
3700 people must be more interesting than like 70
May as well just stay on the cruise for another 2 weeks
15:57
>!Does the spoiler tag work?!<
@Hans1984 lets hope they still have plenty of booze
the password tag works
You have been here before havent you? Stack's markdown is garbo
*******
see?
15:58
@Neil yeah that only way to sitt it out
I wouldnt want to be on that ship
@Wietlol hunter2
@Hans1984 There's another boat south of China suffering the same fate.
you dont see it turning to stars on your side tho
15:59
only on the other side
nope, I see my password
yes, and I see stars
wait really?
*******************************
Wut.
just stars
No, I forgot to add the 1 at the end
you still see stars?
16:04
you mean before or after the v3?
Oh now it's working! :D
yeah, just stars
Cool.
dude if you miss 1 character it doesn't show as hidden tho
It says I've logged in elsewhere.
OK nice joke, who sent the viagra thing.
XD
aww, I'm disappointed. Is gibberish boy not going to try again today?
I was just thinking I was starting to understand his language
That's really annoying
That's an interesting username
16:20
Has mr jibberish been back yet?
probably trying to earn reputation here and there so that he can come back and expel some more wisdom upon us all
God i hope not
user11348254
can anyone please help me with this problem?stackoverflow.com/q/60065801/11348254
Damn I was so ready to say NOPE but it was asked last night so I'll actually take a look
16:27
@sparky smells like a bit of an XY problem
Like the comments say, you can't do it. But depending on what you're trying to achieve, there may be ways of doing what you want. So what do you intend to do with the filename?
wouldn't local files access the ones where the exe is placed?
@Neil Maybe he's trying to use something like the Target property on shortcuts
user11348254
yes im trying to use argument property to add an argument to the target path
user11348254
how do i find the filename?
16:29
Wait what
Are you trying to use command line arguments in your application?
user11348254
WshShell shell = new WshShell();
string shortcutPath = Path.Combine(path, "_" + taskID + ".lnk");
var wLink = (IWshShortcut)shell.CreateShortcut(shortcutPath);
wLink.TargetPath = System.Windows.Forms.Application.ExecutablePath;
wLink.Arguments = "testarguments";
wLink.Save();
user11348254
@CaptainObvious no
I don't get it then
||XY
1608
Q: What is the XY problem?

GnomeWhat is the XY problem? When asking questions, how do I recognize when I'm falling into it? How do I avoid it? Return to FAQ index

What are you trying to do? And don't say "get the filename" I mean what are you doing with the filename
Because I'm 90% sure you're doing it wrong
user11348254
16:34
im trying to create a shortcut for an application which when run will perform some steps in the application without user intervention
Well it looks like you've already created the shortcut
you could create a batch file for that if you need to run some steps prior to launching the application
shortcut just launches the batch file
I don't see what extra information you require
user11348254
i need to run steps after launching the application. so when the user runs the shortcut ill use automation to perform those steps. but i have to first determine if the user ran the shortcut or the actual exe
Well if the shortcut has the arguments in it, then you can just check the arguments to see if the one you put in the shortcut is there
That's exactly what command line arguments are for - Telling the program what you want it to do without having a user to interact with it
Take a look at this on the docs about command line args and how to use them
16:39
it shouldn't matter if it was run directly or from the shortcut
You don't care how the user opens the application, as long as they do it with the arguments.
if you wanted to check if it is the exe so that you could create the shortcut if it doesn't already exist, you can do that anyway
do it even if it is run via shortcut..
user11348254
yes so when i use this line wLink.Arguments = "testarguments"; it updates the file name as "test.exe arguments"
can you not use default parameters if none is passed?
16:41
So when the application starts, Environment.GetCommandLineArgs() will contain a string "arguments"
If it was started from the shortcut
If it wasn't started from the shortcut, it won't contain anything
so you've solved the direct issue, but it's still an XY problem
Good morning !
Good afternoon
Good evening
Nah not yet
Little over an hour until evening
16:44
it's 15 to 6
The sun is literally down, I think that qualifies
IMO evening starts at 6
So in an hour and 15 minutes
evening starts when the sun starts to set
user11348254
16:47
@CaptainObvious it just shows the path of the exe not arguments
It's an array, you'll need to check the other values
The first one is always the name of the exe
adding parameters to the shortcut is a bad idea
No it isn't, it's very common practice
double clicking the exe should do what the shortcut does..
I am sorry i said good morning that lead to 5 minutes of IsItEveningYet conversation
16:48
oh you think that's bad? That's cute
user11348254
im checking the the array
Agreed, lots of valid reasons to use arguments. Not sure the current thread on that question is one of them though. I can't think of a reason to care if the calling operation is a link, and the location of the shortcut.
user11348254
im able to get the filename with arguments. i was missing quotes "" for the arguments. Thank you @CaptainObvious and others who have helped.
17:13
hi, is it possible to cast a ActionFilterAttribute to IActionFilter
Is stackoverflow shutting down the chat?
like all chats?
What have you heard?
Ah nevermind. Saw it as a starred comment on the C++ Q&A lounge or the C++ lounge
That would be terrible if they shut down the chat. The extra support really comes through when needed.
17:29
paragraph.IsMixedTextNumer = paragraph.WordsInParagraph.TrueForAll(p => (p.WordType ==WordModelTypeEnum.MonoLinqualWord && p.WordType == WordModelTypeEnum.Number));
a paragraph has List<Word> collection and each word has a WordModelTypeEnum property. I want to set IsMixedTextNumber bool true if the paragraph has a words that are number and monolingual word combined.
but the current code will always return false because i believe i check if each word is both number and monolingual word ? any linq gods, help appreciated
 
2 hours later…
19:03
How come asp.net web api starter template does not have the UI to register and login users but asp.net mvc starter template has it?
@YousufHossain Why would API's need a UI to register ?
Applications integrating with an API must follow API protocols to register via the service and get authenticated with tokens. NOT UI !
I wanted a project where it will have the UI so that I dont have to develop it and also have accountController for web API so that I can have my mobile apps communicate using web calls
 
2 hours later…
21:08
Anyone here ever use "static implicit operator" for custom class casting?
i can make it work for casting individual objects, but not for casting an entire list...
21:22
i made a formal question for it, code and errors provided stackoverflow.com/questions/60084302/…
21:57
So I'm running EF core 3.1.1, and this code base has a few times where it spins off a number of Tasks to do some parallel queries from the database. The problem is, this is all against the same dbContext, which is a big no-no and throws exceptions when you do it. Is there something I'm missing, or do I have to figure out how to get my DI container to cough up a bunch of new dbcontexts?
It's all reads, so there's no race condition or anything, and I really don't wanna have to lock on the dbcontext.
22:19
22:29
Never mind, I think I figured it out.
23:12
What kind of feature is this in C#: Action<List<RoomInfo>>
All the words (action, list, roominfo) are types
Rob
Rob
It's a function that returns a list of room infos
Sorry, a function that takes a list of room infos and is a void return type
23:28
yeah, Action<List<RoomInfo>> describes a type
whether it's in a function return statement or a variable declaration or what, I can't tell you
or are you looking for a word like "generics"

« first day (3399 days earlier)      last day (1774 days later) »