« first day (3637 days earlier)      last day (1294 days later) » 
00:00 - 10:0010:00 - 00:00

10:00 AM
Also Tobogan, plus now there is always a crowd watching lol
Tobogan is actually still possible without much of a wait because Tobogan haha
 
I see
 
10:23 AM
I started to play Deadly Premonotion yesterday since I got PSNOW
man that game is weird af
I like it
 
mr5
10:36 AM
@c0dem0nkey 1 month ago
o/
in Linq, is it possible to select two or more property for .Max?
 
Depends.
Maybe.
Make a sentence you want me to translate to code.
Like "From these people give me the person with the maximum Age".
-> people.Max(person => person.Age)
 
mr5
would a Dictionary<string, int> work?
 
1 min ago, by Squirrelkiller
Make a sentence you want me to translate to code.
I don't know what you want
 
I take it you want to get the greatest value of both the keys of the dictionary and the values of the dictionary?
or do you want the key-value pair that corresponds with the highest value?
 
mr5
from Dictionary<string, int>, select the max key.length and value
 
10:40 AM
@mr5 then whatre you working on?
 
so the value for the longest key in the dictionary?
 
anybody the the idea on his error "apt2126 file not found?"
 
mr5
the value may have the maximum "value" but the corresponding key should be too.
 
@mr5 Ah you want two results?
 
mr5
@c0dem0nkey nothing. I'm doing nothing for the past month.
@Squirrelkiller no
 
10:41 AM
??????
 
looking for job tho? @mr5
 
mr5
@c0dem0nkey yeah. starting next week.
@Squirrelkiller this ^
I want to select the 2nd index
.Max(p => p.Key.Length && p.Value)
 
gotten some rest
 
@mr5 Why? Key of [7] is longer.
 
thats nice
apt2126 file not found?
when deploying to android emulator
 
mr5
10:44 AM
@Squirrelkiller but the corresponding value should too. not necessarily the max value but those two property should balance out.
 
Define "balance out"
 
The maximum combined value, like "the sum of keylength and value should be the highest of the mall"?
 
exampleDictionary.Max(kvp => kvp.Key.Length + kvp.Value)
 
fl has two characters, value is 3, so 2+3 = 5, 5 is the value you want to compare? [0] has f+1=4, 4<5?
Most programming problems are not actually programming problems but domain problems, and developers make the mistake of pulling it into a coding context so damn often.
 
mr5
10:49 AM
lets feed the vector machine
this should select the 2nd index too.
I can't find the proper words to define it yet...
 
so string length takes priority over the value?
 
mr5
hmm I think so
 
what are you going to use that info for anyway
 
help when deploying
to androi emulator
its sooo informative
 
mr5
@JansthcirlU nothing. just a leetcode problem.
 
10:51 AM
which problem?
 
mr5
@c0dem0nkey why do you always encounter weird errors?
@JansthcirlU the "longest common prefix"
> Input: ["flower","flow","flight"]
Output: "fl"
 
HAHAHAAHAHAHAH
@mr5 you got that right.
 
mr5
> Input: ["aaa","aa","aaa"]
Output: "aa"
 
then why are you using integers?
 
mr5
it's my way to identify how many of that particular prefix occurred in the array
say for example
4 mins ago, by mr5
user image
the input was ["aaa","aa","aaa"]
 
10:54 AM
I'd take a different approach then
 
mr5
the "a" occurred 3 times, and "aa" occurred two times.
@c0dem0nkey hmm, what happens if you deploy on a real device?
or can you try to deploy the apk manually using adb?
 
@mr5 What if you have ["flower", "flow", "general"] - is flow the answer, or none because there is no commong prefix?
 
that should return "" @Squirrelkiller
 
Then your current approach is one level too complicated
 
mr5
@Squirrelkiller "flow" would be the common prefix.
 
11:00 AM
It's not common to "general" though
["flower", "flow", "general", "generic"] ?
any brb, lunch
 
prefix should be common for all strings in the array
 
mr5
@Squirrelkiller ah yeah my bad. the output should be empty string.
@JansthcirlU what would be your approach?
 
pick a string, iterate through its letters and check if every one of its letters is present in all the other strings
(as long as there are common letters at least)
 
mr5
and if it's present, what would you do?
 
tack it onto the variable for solution
 
mr5
11:11 AM
 
for example: ["flow", "flower", "flowmeter"] => "flow" right?
 
mr5
yeah
 
so you just initialize an empty string for your solution: string solution = ""; or something
then you choose one of the strings
for each letter in that string check if its index and value match that of ALL the other strings in the array
if true => solution += letter
else => return solution
 
mr5
that would fail for words with different high number of prefixes
 
@mr5 dunno never tried dont have an android phone
@mr5 this is actualy a sample solution from microsoft so i just downloaded it and hit run.
best of my memory it was working awhile back
 
mr5
11:15 AM
["flow", "flower" ,"flowah", "dubi" ,"dubid", "dubida", "dubidap"]
 
mr5
wait. I'm overcomplicating my sol'n
 
it seems so
prefix must be common to ALL strings
so not the prefix that occurs the most
can you do spoilers in chat?
 
mr5
yeah. sort + your method
 
sort?
 
mr5
11:23 AM
input may appear in random order
 
why would the order matter?
    string[] strings1 = {"flight", "flow", "flower"};
    string[] strings2 = {"flower", "flow", "flight"};
    string[] strings3 = {"flower", "flight", "flow"};
    Console.WriteLine(LongestCommonPrefix(strings1));
    Console.WriteLine(LongestCommonPrefix(strings2));
    Console.WriteLine(LongestCommonPrefix(strings3));
should all return "fl"
 
mr5
@c0dem0nkey I think your emu is faulty.
@JansthcirlU yeah right. I overthink this.
 
don't optimize prematurely, just try to figure out the steps you yourself would take to do this physically
and then translate that to C#
 
mr5
I'm not doing any optimization. It's my initial solution and I stick with it without double checking the problem.
 
how would you describe your train of thought then
 
11:29 AM
I kinda finished the Naomi thing
oh you're busy
 
let's say I give you the strings "apple", "application", "appointment" and "apparatus"
how would you go about it yourself, without code
 
mr5
"app"
 
2 mins ago, by Freerey
oh you're busy
So casual 🤣
 
@mr5 that's correct but HOW did you figure that out
"by just looking at it" is not something you can translate to code
 
mr5
@Freerey why is it posing like a mermaid? 😁
@JansthcirlU where's my cookie?
iterate + find common prefix
 
11:34 AM
@mr5 idk I just kinda wanted it to look like she just got out of bed :P
 
well yeah explain that part more explicitly as if you're telling a computer to do it
 
mr5
@Freerey the feet looks odd though
 
then write code that reflects those instructions
 
@mr5 aw damn cause I thought they looked good in the original sketch 😂
 
mr5
@JansthcirlU thank you for this advice. I will remember this in the interview.
 
11:36 AM
it's called the rubber duck method, let me know if you got the solution to that problem
I got working code if you want to compare once you got it
 
@Freerey good job
 
thx boi
ok holy shit I didn't see the debate last night, but I think "shut up man" just won Biden the election
 
Biden didn't have to try hard to win
Trump did all the hard work
by being a complete moron
 
and yet I still see comments saying Trump ran circles around him lol
the same way an excited pissing chihuahua puppy runs circles around the person trying to walk it
 
well of course he was just being a bully
but the whole debate was essentially a waste of everyone's time
 
11:50 AM
@Freerey orly?
 
yeah I love it when Biden shows some of that attitude and Trump is giving him all the reason to
 
Still doesn't change his wats.
 
12:18 PM
is this guy overreacting or what: stackoverflow.com/questions/64123312/…
why does an 11k rep member get butthurt over a question that he could've flagged or commented on before answering
gonna cry about it on meta I think
cause I'm bored
 
@JansthcirlU Welp, y'all are butthear IMO
 
yeah I'm not actually gonna cry about it on meta
 
@JansthcirlU lmao what an ass
 
12:35 PM
oh well, whaddaya gonna do about it
 
I reported him for being toxic
 
But don't listne to Freerey he's a littl' bitch :P
 
aand I just noticed the comment is gone so go me
 
Still needs to learn the way of the chill.
 
I mean hey man I'm basically on a retreat again right now
only people I talk to atm are here and in some private areas
 
12:43 PM
Like the hole-in-one-night club?
 
lol I didn't know you could report comments
 
@Squirrelintraining what does that even mean?
 
@Freerey That for you to know and us to ask ourself.
 
you guys know any good tutorials on git?
I get so anxious when I touch it cause I know how devastating the consequences can be
 
OnTopic:
I was legit surpised just now.

Inellicode Actually suggested the right variables
 
12:50 PM
lol
 
@JansthcirlU branch, apply changes to branch, see if works, then apply changes to actual branch.
learning by screwing it up
 
hmm
how would I undo what went wrong in the test branch then
or do I just kill it off
 
Just kill it off
 
Just kill it off.
p3k mimi Just kill it off @mr5
 
When I want to test something I just do git checkout -b dev/testing-whatever and mess with it.
 
12:54 PM
Sounds right.
 
1:13 PM
fair enough
 
1:46 PM
@mr5 over it. lacked me some necessary components
is there a xamarin inspector for visual studio community or is it only for enterprise
 
Mate it's not even available for VS Professional
It's utter bullshit
 
Ha you plebs.
I have VS ENTERPRISE
BOW IN MY MIGHT
BASK IN MY AURA OF UTTER SUPERIORITY
Not only am I german - from the most superior race ever - but also I am in possesion of a VS Enterprise subscription
Thou shall fear MY WRATH
 
prepare for the Eichhörnchenrevolution
 
most superior race indeed
also called übermenschen
anyway
user image
2
 
2:01 PM
@Hans1984 🤣
> This is nuts
 
xD
 
Foamy's plans to exterminate the human race have finally gone underway
 
squirrels attack !
ouch !
rabies activated
 
@Freerey 🤣🤣
ATTAACK
REEEE
 
2:54 PM
hotfix during release phase goes not only into master/develop but also into release, right?
 
Evening. Anyone know the syntax to get Automapper to map from two source properties into a single destination property? Maps for both sources already exist.
 
What do you mean from two source properties?
Like dest.Name = src.FirstName+src.LastName?
 
Have a ncie day of wörl giys
sseing
u
 
Cya @Squirrelintraining, I see your writing power decreases significantly near closing time.
 
No, sorry. Imagine source has two properties like MyProp1 List<MyObject>, MyProp2 List<MyObject> and destination has MyProp<MyDestObject> and I want both to to map to MyProp<MyDestObject>
I have the type mappings MyObject > MyDestObject
 
3:06 PM
Ah so dest.MyProp = src.MyProp1.Concat(src.MyProp2)
 
Kind of, yes. Would something that simple work?
 
Absolutely
 
Oh ok, sweet!
 
configuration.CreateMap<SourceClass, DestinationClass>()
                .ForMember(dest=> dest.MyProp,
                    opts => opts.MapFrom(src=> src.MyProp1.Concat(src.MyProp2)))
Better check if I closed all the parenthesis' there
 
Thanks :)
 
3:31 PM
mr5 is asleep
weakling
 
4:08 PM
Jon Chan on September 30, 2020
In response to COVID-19 and its impact on SYEP, over 50 nonprofits and technology companies came together to design the Summer Bridge 2020 plan to continue the program. As one of Summer Bridge’s partners, Stack Overflow designed a workplace challenge to give students a taste of what it’s like to work in the tech industry and to give us a chance to learn more about how students engaged with our developer community.
 
 
3 hours later…
7:17 PM
Hey Guys, can attribute properties only be basic types? I.E. not a class property?
 
 
1 hour later…
8:30 PM
you can do typeof(MyClass)
but iirc, you cant do new MyClass()
so it is really limited there
 
8:50 PM
Anyone in here have much knowledge of AMSI?
 
 
1 hour later…
10:08 PM
 
 
2 hours later…
11:50 PM
Happy birthday c# room?
 
00:00 - 10:0010:00 - 00:00

« first day (3637 days earlier)      last day (1294 days later) »