« first day (3699 days earlier)      last day (1241 days later) » 

3:57 AM
linqpad is awesome!
 
 
1 hour later…
mr5
5:13 AM
o/
Have any of tried to develop standalone apps in Mac using C#?
I'm looking for a solution that is not WinForms. Thanks!
Not a Console application either (well technically all Windows apps started from console, it's just hidden)
ohh Xamarin.Mac
 
 
2 hours later…
7:36 AM
morning dudes
 
mr5
morning nudes
 
8:02 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
good morning
 
@Squirrel.Downy yes, yes irt is
Fork is awesome 2
 
I want to make a class to hold all the APIs routes, it looks like:
class Routs{
const string BASE = "https://localhost:44327/api/";
const string SAVE = BASE + "save";
const string UPDATE = BASE + "update";
}
but looks ugly with the duplicate "BASE"
 
mr5
8:17 AM
yep, looks ugly
 
Don't add BASE then, just the stuff behind it, and the caller then goes Routs.BASE + ROUTS.SAVE
Aside from that: Maybe don't put the BASE in the code file, but a config file
 
mr5
What I typically do is store the domain address (BASE in your case) as a private field of a service. This service would have a single ctor that only accepts Uri as an argument which is the domain address. The service will manage all the http requests with methods the accepts a relative url as one of its parameter.
Advantage of using a Uri is that it's expressive, URL concatenation, and ensures the URL you put into it is valid in form.
 
mr5
8:52 AM
That moment when you see an exact replica of one of your code/class from an outsourced project 🤔
 
9:07 AM
Imitation is the highest form of flattery
 
no it's not
 
I think it's more related to lazyness
 
me trying to figure out why my devops pipeline is not triggering
meanwhile devops: "master branch does not exist"
-_-
 
mr5
9:43 AM
mybe you named it to main olredi?
 
I didnt name it
I just assumed it was master
but yes, their default master branch is called main
 
they ditched master/slave since BLM
 
Fuck it, I'm still using master.
 
we are still going to use master
once this figuring out is all done, we will make an application to generate projects, which includes the repo exactly how we want it
because we want to be slaves to our code
 
mr5
making template codes?
 
9:53 AM
template codes?
 
mr5
> we will make an application to generate projects
this ^
 
just an application to use the devops sdk and a project template to get the defaults up
 
mr5
now all of a sudden, you're back on C# again huh. What happened to Kotlin? Did it betray you? xD
I found the Git master main. I wonder how he learned all those git knowledge.
 
im on both C# and Kotlin
 
mr5
what's up with US and their EST,DST,MDT, etc timezones.
 
The country is just too big
 
mr5
oic well, as an alternative, they could say for example: "Meet me at 7pm UTC+0700"
fairly easy to digest /s
 
mr5
10:50 AM
?
 
"Your repository will be initialized with a master branch."
but it is "main"
 
mr5
oh
you got bamboozled
 
11:25 AM
now I remember why I chose AWS...
 
11:56 AM
@CaptainObvious botler down
 
12:25 PM
Hard bug, prio 0 ticket plz
 
I should test Wietbot's connectivity actually
I think I finally (a few weeks ago tho) fixed the bug that caused it to remain connected even if I wanted it to shut down
it only took me a year :D
 
@Botler get yo ass in here
Guess we gotta ping @CaptainObvious now to annoy him into getting back here?
 
Guys I'm busy in work
 
Or @Squirrelintraining for taking people to Discord
 
not busy enough
 
12:27 PM
Why do people buy shit on black friday
It's totally fucked us
 
haha
 
I was in the warehouse yesterday and today I've driven down to the other warehouse and I'm working there
 
where is white friday?
WLM
 
people who speak barely above a mumble into the phone like a shy child trying to give a speech in 5th grade should be fired from their phone job
 
I whisper all the time :D
it is funny
 
mr5
12:31 PM
@Freerey hey, that is probably me :3
 
next time the insurance company does that to me, I'm gonna say "how about you talk to me like a normal f*cking person and then we can discuss?"
 
@DAustin mmmhhhh pizza
 
depends on what the phone call is about
 
literally it was to check up on therapy or something idk
 
||sandbox
 
12:43 PM
Please go and play in the Sandbox
 
@JamesBot you will never be able to replace caprica
:'(
cap or...
୧༼ಠ益ಠ༽୨
 
botler, hi
 
Hello friends!
 
I wonder who Botler is talking to
 
[Hans1984] long live the jaba
 
12:55 PM
indeed
who is this Hans1984
is he from another timezone ?
i it myself from the past?
or the future
 
[Hans1984] ah this is terrible
[Hans1984] need to turn the serverto silent
 
ok hans from the future
 
[SebastianL] you can just mute a single channel
 
I'm trying to add Html.Raw to a element in ASP (Core):
<a asp-action="Sign" asp-route-Id="@item.Id" @Html.Raw(item.Status?"vv":"aa")></a>
but it's telling me (under Html.Raw()): the tag helper must not have c# in the element's attribute declaration area.
I'm looking for helpful resources, but with no help!
 
@Botler yes thanks. I just did
 
1:08 PM
[Squirrel in Training] heyho yes no
 
Pff brain is frying in reflexion. I got lost in multiple factory that instead of switch get their info in Database and use reflexion to invoke the class constructor.
 
[SebastianL] mehhh
[Squirrel in Training] #hansis-mimi-channel new best channel confirmed!
[SebastianL] merge my stuff already
 
I think you guyz need a bot to post Chat from So into Discord.
People in this room will be able to talk to discord people. A reverse Botler.
 
> I think you guyz need a bot to post Chat from So into Discord.
um
 
it is already doing that
 
1:19 PM
[Squirrel in Training] I don't belieb sebastian
[Squirrel in Training] I have to tab inbetween SO and discrod to answer here
 
mr5
Why are you shouting
 
BECAUSE WE CAN
 
nobody was shouting until finn asked why we're shouting
 
mr5
I can hear SiT's voice from across the room!
 
2:34 PM
I have to wonder if 2001 was a momentous year purely because of the sci-fi movie
people were like "oh let's make this year special" and so they did
 
terrorists also made it a special year
not the best year i would say
also we got rid of the "Deutsche Mark" just one year earlier
which was obviously a terrible decision
 
[Ntohl] terrible?
 
yes
 
[Ntohl] why?
 
that's what everyone remembers it for, but srsly like
>the end of DOS
>Xbox and Gamecube released
>Shrek came out
>US got its worst president inaugurated
>the death of nu metal
>the start of Bionicle
and then yeah, some deranged terrorists got a hold of some planes and rekt the US
oh yeah a few others
>iPod
>Mac OS X
>Halo: CE
 
2:42 PM
@Botler Things were better to me with the DM
 
@Freerey Worst president yet
 
I was fine in 2001 because I was in pre-school and had no idea that two buildings being destroyed was an uncommon occurrence
according to superhero stuff I consumed, it was totally normal
 
fair enough
 
I remember liking GWB for awhile just because "he's the president so he good!" even though my parents didn't like him...didn't take until like 2007 for me to despise him
 
3:37 PM
[Squirrel in Training] hans 9/11 was an inside job
[Hans1984] by squirrels ?
[Squirrel in Training] all the squirrels know that
 
smart squirrels
 
[Hans1984] stop quoting me Blechbüchse
[Hans1984] 😉
 
madness
!~shiba
 
Can I somehow inject a service into an action filter?
 
3:43 PM
ugh, why cant I find how to do stuff using the C# sdk for Azure?
 
Also that is an interesting shiba.
@Wietlol Weak Google-Fu
 
"azure devops c# sdk create pipeline"
should be sufficient
 
I always forget devops is part of azure
 
meanwhile "aws codepipeline c# sdk create pipeline" => docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CodePipeline/…
ez pz
although, I wouldnt have to google for it
with the exception of 1 specific service in AWS, their SDKs are self explanatory
with Azure, I first have to correctly guess the name of the service, then find the correct method (which is easy, if present) and then guess which 3 to 5 of the 30 properties I have to set for this specific call
 
You forgot a step: You have to do a certification first
 
3:50 PM
hmm... perhaps that is what I am missing
also, I only get results on google about the rest api and the gui
not the sdk
"oh but you need the sdk in your pipeline", "yes, but I want to use the pipeline via the sdk"
not sure if google being smart is actually useful
but what can I expect?
 
Hello friends!
 
sup
 
Botler back
 
> 0 more and I'll join room 7
@CaptainObvious what is dis?
if (i-- == 0) ?
what is the repo link again?
(also maybe add it to botler's profile)
 
mr5
4:09 PM
@CaptainObvious PR
 
[Squirrel in Training] have a nice day off
 
mr5
o/
 
mr5
4:22 PM
@Wietlol u lukin for borktler link?
 
[Ntohl] you can add a note at the bot
[Ntohl] in Discord
 
5:22 PM
I have a list<T> with one bool property and another sub List<T>. Is there a way to check if count of sub list > 0 for where all the bool property of parent list are true without using two Where() ?
 
okay checking
 
Although I don't really understand your structure
Anyway time to go eat something, bye!
 
see ya squirrel
 
mr5
6:02 PM
@Freerey I just realized you wake up way way earlier than I thought.
 
I'm usually up by 5:30am EST
 
mr5
And you sleep at 1am too?
 
ofc I'm asleep by then
if I'm not asleep by then, it's gonna be a crappy day :P
 
mr5
It's always crappy day for me because I always sleep at 4am then wake up at 7am xD
 
I gotta check out go go hypergrind some day
all I know about it is there's animals and the music is amazing
 
mr5
6:52 PM
10 hours ago, by mr5
That moment when you see an exact replica of one of your code/class from an outsourced project 🤔
The reason being is that my client was actually working with my former colleague, and he copy-pasted the code base I made in their project xD
I asked my client if I got referred by my former colleague, he said no. So this is just all coincidence.
What a smol world we live in.
 
7:37 PM
does anyone know why an asp.net page would suddenly just start sending NULL images to a sql server table?
 
@mr5 What PR?
 
we were using this table to hold all the image data, but now whenever someone uploads an image from our asp.net page, new images show up as NULL, yet the row is added to the table anyway
 
Simple
Wait how big is the image data
like per image size
 
it's a super long application/octet-stream
also I just noticed that on another page, adding one image actually manages to update another that I wasn't even touching
 
7:53 PM
yeah but how long
 
7408 characters
wait no
43680
 
hmm, weird
 
that's how sql server stores images
 
I mean there is one obvious solutoion
 
the fact that we're storing them in sql server is bs but it was set up by a guy who doesn't work here anymore
 
7:57 PM
STOP STORING IMAGES IN THE DATABASE
 
that's what I wanna do after we fix this
 
WHy not fix it by doing that
 
because I need to get this done soon
 
I mean blob storage is rly easy
 
okay but there are a bunch of things connected to these images
our plan is to put the images somewhere in the file system
 
8:00 PM
wtf do you mean things connected to the images
 
there are pdf reports, pages, and emails connected to the current database
 
Aaaand?
 
man I thought I knew a site that coul convert this code into an iamge but guess not
 
@mr5 merged
 
mr5
8:10 PM
nice. thanks!
is the bot running now with latest code?
 
@CaptainObvious AAAAAAAAAAAAAAAAAAAAAAAAND if you change something like that so suddenly you'll have to update a bunch of stuff at once and I didn't make this system so it's possible that if I change one little thig the whole damn thing fall allt heh ella part
 
It will be next time he restarts
 
mr5
Botler, restart
 
@mr5 Sorry, I don't know that one.
 
mr5
@Freerey DO IT!
ah maybe wait until Friday afternoon.
it's also fun to debug in production.
2
 
8:14 PM
I do onot understand why the thing on one page doesn' insert the data a all bt ona nother page it isnerts TWO of the same value like wtf
 
Sounds like something is fucked
 
mr5
You probably put some border-radius somewhere in your CSS.
 
CLEALRLY!!!!!!!!!!!!!!!
afdn a;sldfjdio dcans't cnfind fout ow hat it si fsanad iM" gion t ofg ha ver a heart attack!!1
 
mr5
right. then go remove it.
 
no it ins't cause of a borderrasidus
 
8:41 PM
yeah screw this I'm just gonna make the new image system now
@CaptainObvious so hold on a second....what I described to you with storing images in the database....isn't that blob?
and I found out why the image was being inserted for multiple things at once....the sql insertion procedure is really stupid
"hey I know; let's not use the row ID to identify rows!"
 
 
2 hours later…
11:12 PM
[Captain Obvious] @freerey ah no you're thinking on binary blob data in SQL, I was talking about azure blob storage
 
hey guys quick question, not exactly C# related but it's an OOP concept
I'm trying to think of the name of a certain term, I used to know it but I can't remember the name of it
it's when you have a complicated object in your backend which would be too clunky to represent in things like API transactions, so you flatten the object and make a much simpler version of it which hides a lot of the internal complexity
 
11:30 PM
[Captain Obvious] Oh lol Ive both seen a done that a few times, didn't know it had a fancy name
 
hi all, does anyone understand encryption? i have questions
 

« first day (3699 days earlier)      last day (1241 days later) »