« first day (4234 days earlier)      last day (697 days later) » 

6:15 AM
[Squirrel in Training] It's friday my dudes
[Squirrel in Training] <@226165836899942410> why ?
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
@Freerey why?
 
Good morning
||friday
 
@Squirrelkiller o7 hackaman
 
Wait what happened to the friday command
 
6:28 AM
I dont know
I am sad
In other new, did you know about this new feature of VS 2022?
news*
 
Oh I knew that one long before you posted it :P
 
7:27 AM
I wonder what else we can onebox
Apparently not dailymotion
 
ATM
7:49 AM
hi guys
 
8:01 AM
Hi ATM
 
why is friday friday
 
@Botler lol
 
 
4 hours later…
11:57 AM
@Squirrelintraining cuz his nipples are tiny and he won't just buy twitter already cause he's scared of paying a fine
 
12:27 PM
why would he have to pay a fine?
 
Hi Guys, I have a json content like below
"parameters": {
"location": {
"value": "india"
},
"networkInterfaceName": {
"value": "testrevan"
},
I want to update the network interfaceName to "testrevan2" with powershel. Any lead here ?. Thanks in advance
 
Why use an object for each value, instead of just putting the value there directly like "location": "India"?
 
@Squirrelkiller, do you some snippet ?
 
"parameters": {
  "location" : "India",
  "networkInterfaceName": "testrevan"
}
Look way nicer IMO
 
Could be related to whatever tool is consuming that.
 
12:43 PM
Fair enough
 
$a = Get-Content 'C:\ARMTest\MainSubnet\Parameters.json' -raw | ConvertFrom-Json
$a.update | % {if($_.value -eq 'testrevan1'){$_.value='testrevan2'}}
$a | ConvertTo-Json -depth 32| set-content 'C:\ARMTest\MainSubnet\Parameters.json'
 
$Content= (Get-Content 'yourFile.json' -raw | ConvertFrom-Json)
$Content.networkInterfaceName.value = 'testrevan2'
$Content | ConvertTo-Json | Out-File 'yourFile.json' -Append
 
@Wietlol some legal thing involving a lawsuit, idk exactly..but if he backs out of this deal, he'd have to pay a lot of money anyway
since tesla was sued for its racist workplace environment
 
Ah ok I lack the if^^
 
Thumps up man @Squirrelkiller. It worked with little modification. Thank you
 
1:52 PM
I'm used to @Logger from java's lombok and therefore find it cumbersome in dotnet to inject a logger instance over constructor injection every time (also I notice developers mixing up the type variable (through typos or copy / paste) which leads to strange unlogical logs).
Is there any way to achieve the same behaviour with c# (maybe the new code generators? But they would need to be ran specifically, and they generate actual code in my source files which i dont want...)

For those who dont know lombok: I want to create an attribute [Logger] such that any class which has this attribute get
 
2:08 PM
you'd need a static factory
then you can do private static ILogger<X> Logger { get; } = Factory.CreateLogger<X>();
 
Well, thank you. I know that I could use the (actually already present microsoft-) factory to create instances without constructor injection.
But this adds the same cumbersome line of code (well okay, only one instead of 3) for an ever repeating task. This is why I would like to reproduce this behaviour via an attribute
 
if you are using a contextual logger, you'd need to provide a context through the async local / thread local
 
[Captain Obvious] DI'ing a logger isntance isn't that hard tho
 
if it is more code than the line above, then you should wrap it in a function and reuse that
C# attributes dont provide you with the same capabilities as the Java annotations do
 
It's not about being hard, its about being superfluous and the other disadvantage (mixing up the type) I wrote above.
Obviously, as you stated correctly, it is not hard though.
 
2:12 PM
you'd have to write a compiler plugin to handle code generation based on attributes
 
@Wietlol Okay that's what I was afraid of, in the hope of the existence of some dark forbidden magic that would allow it. Thank you!
 
im wondering why you would even need the type though
you could be in luck that someone else bothered enough to make the plugin before
 
Well the type provides some more information in the log output, no? I actually never actively looked at it, let me check
But even without the type the same "problem" persists
 
im oblivious to problems with the ILogger stuff as I dont use them
I wrote my own logging library
 
[Captain Obvious] Goddammit Google
[Captain Obvious] The system is english, everything is in english
[Captain Obvious] Why the fuck does it install in Dutch
 
2:18 PM
@Botler Did you ever try to write selenium tests and changing the language of the browser? this stuff is so broken (hint: it's impossible without braindamage)
 
! ! ! G E K O L O N I S E E R D ! ! !
 
[Captain Obvious] Don't you fuckin colonise me
 
too late :p
 
[Captain Obvious] I never used Selenium
 
Happy you
 
2:19 PM
[Captain Obvious] I also managed to avoid installing chrome until now 😦
 
What changed?
 
[Captain Obvious] Luckily I know enough dutch to navigate the menus to chan geit to English
[Captain Obvious] We have a team testing where everyone who isn't QA gets invited to do an hour or so of testing
 
I means it's basically a mix of german and english
 
[Captain Obvious] And my assigned testing is in chrome
 
Well, have fun
You could make a game out of this, how many rBPM (recognized bugs per minute) you find
 
2:22 PM
[Captain Obvious] What dictionary does the second one use then?
 
lol
 
[Captain Obvious] In fiarness, we have assigned testing but I usually go for the money approach
 
@Botler Turns out british is not the same as oxford english: reddit.com/r/chrome/comments/ja5pwk/comment/gmcl079/…
@Botler means?
 
[Captain Obvious] The monkey approach? Testing like a money, ie doing stupid shit (aka shit a user would do) and see what breaks
 
i'd like some money approach
especially if that money approaches me
 
2:55 PM
Yeah that's what i read also
 
3:27 PM
[Captain Obvious] Yeah I didn't realise I fucked it uo
[Captain Obvious] It's fine, Im' bored now of being a moron, I reported 3 bugs so that;ll do 🙂
 
4:01 PM
[Squirrel in Training] YEAH CUFK MICOROSOFTR
[Squirrel in Training] dasihfuüo gh2w4
[Squirrel in Training] bYEE .WAVE:A.
 
 
4 hours later…
8:22 PM
Thank you to Katie Mack for teaching me about this effect, and to Janelle Shane for describing redshifts as 'like galaxies sinking into a pool of dilute blood,' which is how I'll see them from now on.
2
 

« first day (4234 days earlier)      last day (697 days later) »