« first day (3455 days earlier)      last day (1476 days later) » 

mr5
3:27 AM
@ntohl what I mean was the 3 then followed by ##/ etc...
 
3:49 AM
yo yo yo
yo Mr give me 5
 
x = 5
--x //4.
 
 
1 hour later…
mr5
4:54 AM
ugh
I just hate it when somebody is creating a non-standard API
auth server is for authentication only
no any other APIs!!!!
 
they add more parameter into oauth2
 
mr5
no. they add the account/register in the same endpoint
that should go to api endpoint and not in auth endpoint
 
grant_type=register like this?
 
mr5
no
auth.servername.com/connect/token
auth.servername.com/connect/authorize
auth.servername.com/account/register <-- THIS!!!
the account/register does not belong to auth endpoint
 
hmm... looks fine for me
account registration processes need some authentication also
robot auth, existed auth, db writing auth, email auth.........
 
mr5
5:10 AM
no. it should be put under api endpoint. by putting the registration under auth server, you're breaking the single responsibility principle
 
5:36 AM
single responsibility are based on api, not endpoint
 
6:04 AM
I have these things together under one Controller: Account. So I have
/account/register
/account/login
/account/logout
/accont/delete
 
6:15 AM
Can someone help me explain this scenario? ^
 
 
1 hour later…
7:26 AM
Most definitely not
 
mr5
@CodingMike can you use quaternions instead?
and I think you shouldn't use negative rotation also, instead: answers.unity.com/questions/554743/…
 
mr5
7:53 AM
why is this chat becomes very inactive Y_Y
 
Cuz we got shit to do
 
8:17 AM
@mr5 what ahahahaha
 
 
1 hour later…
9:26 AM
good morning
 
hi
I made a joke to my office mates today on chat
someone asked, "What should we call this X method"
 
@mr5 I'm talking about that too. The N will be 3, so you can do for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) map[i, j] = readdotorhashtag
 
@ntohl was it funny?
 
@Shad well. Not bad at all
 
thanks. :D
I hope you not kidding because today is april fools :P
 
mr5
@Shad you told your co workers you will name the method short circuit?
 
@ntohl V
well almost
;)
 
🖖
 
:o
 
9:51 AM
EZ
 
@mr5
I said they should name it that
would they have found it funny?
 
mr5
@Shad ehh not bad. I guess so if they're that nerdy nerdy
 
I explained later
 
mr5
if they are highly extroverted people, I don't think so lol
no
never explain joke
 
&& is also known as a short circuiting operator
yup they are highly extroverted lol
 
mr5
10:09 AM
I feel like I haven't eaten for a week already
 
@Shad I think (removed) is not a valid identifier in C#, but I have to check the docs for that
 
lol
The method was having various && operator
comparing various stuff using many &&
So I said Name it shortcircuit_test() method
 
we have a method named "IGaveUp"
 
haha
 
DateTime.Today.Day > 0 && DateTime.Today.Day * DateTime.Today.Day == DateTime.Today.Day && (1 << 2 ^ DateTime.Today.Month) == 0
I hope I hid it well
 
10:20 AM
0.o?
 
mr5
!~>DateTime.Today.Day > 0 && DateTime.Today.Day * DateTime.Today.Day == DateTime.Today.Day && (1 << 2 ^ DateTime.Today.Month) == 0
 
!=>true
 
try it tomorrow
our title changes slightly if it's <the expression>
 
mr5
!~>DateTime.Today.AddDays(1).Day > 0 && DateTime.Today.AddDays(1).Day * DateTime.Today.AddDays(1).Day == DateTime.Today.AddDays(1).Day && (1 << 2 ^ DateTime.Today.Month) == 0
 
<!>'int' does not contain a definition for 'AddDays' and no accessible extension method 'AddDays' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)
 
10:22 AM
Today.AddDays
not on the .Day
and you left 1 out
 
!=>false
 
@Wietbot evalcsharp
var today = DateTime.Today.AddDays(-1);
today.Day > 0 && today.Day * today.Day == today.Day && (1 << 2 ^ today.Month) == 0
 
True
 
lol
 
False
 
10:22 AM
no
 
mr5
!~>4^4
 
!=>0
 
mr5
?
 
oh, ofc, it is a XOR operation, not an EXP
 
yeah. And the only number that's cube is itself is 0 or 1
 
10:26 AM
why Day > 0 tho?
 
mr5
I mean, what's up with these dates?
 
I just see that lol
 
isnt day always 1 <= X <= 31
 
it's not necessary
 
mr5
@Wietlol that's only true for Earth
 
10:27 AM
April Fools' Day or April Fool's Day (sometimes called All Fools' Day) is an annual custom on April 1 consisting of practical jokes and hoaxes. Jokesters often expose their actions by shouting "April fools" at the recipient. Mass media can be involved in these pranks, which may be revealed as such the following day. The day is not a public holiday in any country except Odessa in Ukraine, where the first of April is an official city holiday. The custom of setting aside a day for playing harmless pranks upon one's neighbor has been relatively common in the world historically. == Origins == ...
 
not even true
it is only true for some calendars such as the gregorian or julian calendar
 
@mr5 it's true for the DateTime class
 
mr5
We only have 6.4 days in Pluto just so you know
 
correction, it is not even true for the julian calendar
> Intercalation shall commence on the day after 14 Peritius [a.d. IX Kal. Feb, which would have been 15 Peritius] as it is currently constituted in the third year following promulgation of the decree. Xanthicus shall have 32 days in this intercalary year.
- https://en.wikipedia.org/wiki/Julian_calendar
> Thus Xanthicus began on a.d. IX Kal. Mart., and normally contained 31 days. In leap year, however, it contained an extra "Sebaste day", the Roman leap day, and thus had 32 days.
so, even julian calendar has had 32 day months
> Sweden, being a Protestant country, was initially suspicious of the "papist" Gregorian calendar, but decided to adopt it in the early 18th century. However, there was an idea to do so gradually, by simply skipping all the leap days until the calendars were in synch. This was done in 1700, but then, the Great Northern War broke out and people seemed to forget about this, so 1704 and 1708 had 29 days in February. Then someone realized how silly it all was, and decided to go back to the Julian calendar by adding an extra leap day in 1712.
omg... I am so happy I dont have to write a date library :D
also, there is the Tamil calendar
> The number of days in a month varies between 29 and 32.
- https://en.wikipedia.org/wiki/Tamil_calendar#Months
 
mr5
wtf wiet
stop being obsessed with calendars!
 
10:36 AM
ok
 
mr5
lunar calendar > all calendars
 
luni-solar calendars: get on my level
 
Morning
Who else is having some lemonade right now?
 
afternoon
 
Fun fact: Spanish lemonade is mostly red wine with some fruits
 
10:47 AM
I'm having some ice tea
like every day
its lemon ice tea
does it count as lemonade ?
 
10:59 AM
Yes... I believe what doesn't count as lemonade is Spanish lemonade
But oh boy, spanish lemonade.
 
so you re having spanish lemonade right now ?
 
I was, 15 minutes ago.
Sank it down the throat like it was water
 
mr5
spanish
 
Maybe it was. Maybe I'm Jesus. JK, Jesus is my coworker
 
mr5
throat
ahh
 
11:02 AM
Im not much of a wine drinker
 
mr5
does your productivity decreases as soon as you started wfh or it's just me?
 
but its too early for a beer
hmm
 
@Hans1984 me neither, but this is not wine.
That's like saying steel is iron.
This is an alloy of grapes and lemons.
 
I see
 
11:33 AM
@HéctorÁlvarez I believe that is called Sangria
Although I only know it from vacation
 
11:52 AM
Yeah that definitely sounds like sangria to me
 
12:29 PM
i could go for some alcohol right now
 
That's my kinda beer
 
12:44 PM
More or less they are similar, but not the same
Sangria is wine with sugar, soda water, and diced fruit. The cheaper versions have no diced fruit, but more sugar
Zurra is like Sangria, but uses drinks over 20% alcohol, like whisky.
And lemonade (apparently a thing only in Leon, not all Spain) it's wine with sugar, also has cinnamon, and the fruit is added whole. Then the whole pot is left to rest for a couple days, and the drink is served without the fruit.
The result is glorious blood of the angels.
 
1:09 PM
sup?
 
suppe
= soup in german
 
would you like one?
haha
    public int TableBId { get; set; }
    [ForeignKey("TableBId")]
    public TableB TableB { get; set; }
is the foreign key annotation need here?
wouldn't the convention of entity framework work?
 
Nope ef convention should pick it up
You might need to mark TableB property as virtual though
 
1:40 PM
thank you sir :)
no I don't want to support lazy loading
 
np ^^
 
There's no problem with lazy loading when used correctly.
 
@Shad no im good
just had pasta ;)
 
Ah I see. We have something similar in germany, we put fruit into prosecco and serve that, but usually including the fruit. It's called Bowle.
 
2:03 PM
!~shiba
 
playing nioh these days
kinda fun if you like the dark souls games
 
2:23 PM
@Hans1984 Heresy
Dark Souls is BAE, Nioh is shit.
 
its way worse than ds
but if you played over 1k hours of dark souls its still nice to have a similair game
 
the only similarity is the existence of different combos for different weapon types
 
like me
 
Wow, 1k?
 
since there wont be another dark souls
yes 600 in ds3
around 300 in ds 2
in 100 something in ds1
this was mainly multiplayer of course
 
2:25 PM
This is only my main account
 
Anyone have experience with url rewrite?
https://stackoverflow.com/questions/60972797/why-is-my-url-redirect-command-not-working-properly
 
implying I have several accounts just for DS3
 
I can't figure out what I am doing wrong
 
@Skullomania Nope sorry, not for IIS, I usually did that with JS
 
@Skullomania whats your question?
 
2:27 PM
unless you are talking about server-side redirection, iun which case my controllers handled the target URL
 
I hear ya, normally I could use the httpredirection tool in iis and just redirect the whole thing
 
I could be wrong
but i think this is your problem
<match url="(.*)" />
I Think that's the source of everything being caught
 
I will try removing it one sec
 
wow almost 1k in ds3 nice @HéctorÁlvarez
 
@Skullomania i don't think you need to remove
 
2:29 PM
I have over 2k in DS3 if we count the secondary accounts
 
the url="whatever" bit needs to be your regex
 
Aat some point it was easier to just log in the account with the twinks I wanted than it was to manually swap save files
DS2 another 1k hours
DS1 around 600
 
@CaptainSquirrel holy shit, I think that did it. Ill wait about 15 minutes or so but I think we are good!
 
2:37 PM
Oh and bloodborne, another 600-1k easily
demon's souls, not so much, probably closer to 200-300
 
@Hans1984 almost in the top 10 :D
 
;)
 
@Skullomania glad i could help :)
 
i only need 8.6k more hours of playtime
 
ez quarantine ez life
Tür ist ein echt seltsamer Nachname.
 
2:52 PM
ja
one year hast 8760 hours
so i only need to play for 1 year 24h/day
ez
 
@Hans1984 ye... you sure?
 
I should be at rank 222, this ranking is bullshit
 
round about
365x24
 
The list is made up
 
Don't trust any statistics you didn't fake yourself.
- Albert Einstein
 
2:56 PM
Only 39% of them statistics are real.
-Jesus Christ, 113 BC.
 
But 84% of statistics are faked, everyone knows that
So yours doesn't add up
 
@Wietbot evalkotlin
val start = java.time.LocalDateTime.of(2020, java.time.Month.JANUARY, 1, 0, 0)
val end = java.time.LocalDateTime.of(2021, java.time.Month.JANUARY, 1, 0, 0)
val period = java.time.Duration.between(start, end)
println(period.toHours())
 
javax.script.ScriptException(error: unresolved reference: LocalDateTime
val start = LocalDateTime.of(2020, JANUARY, 1, 0, 0)
^
error: unresolved reference: JANUARY
val start = LocalDateTime.of(2020, JANUARY, 1, 0, 0)
^
error: unresolved reference: LocalDateTime
val end = LocalDateTime.of(2021, JANUARY, 1, 0, 0)
^
error: unresolved reference: JANUARY
val end = LocalDateTime.of(2021, JANUARY, 1, 0, 0)
^
error: unresolved reference: Duration
val period = Duration.between(start, end)
^
)
 
-_-
 
You never let me down Wietbot.
Well, sometimes you actually manage a result. Unlike Jack, who messes up all by himself.
 
2:58 PM
Result: null
Output:
8784
 
@Hans1984 ^
I think I actually have to handle some default imports, just like evalcsharp
 
every 4 year its 8784
of course this year its different
 
at least leap seconds arent changing the hours tho
speaking of which, I wonder how epoch deals with it
 
3:16 PM
Jack, echo :49000371 sad bot noises
fucking christ
 
@HéctorÁlvarez sad bot noises
 
had to do it MANUALLY
C'MON JACK
 
|| echo :49000371 sad bot noises
excuse me
 
||echo :49000371 sad bot noises
 
kekekekekek
 
Is it even here?
 
||echo hello
he is
@JamesBot u ded?
|| echo :49000371 sad bot noises
 
:49000371
 
obviously
 
Time to shop for katanas again, cya bois
 
3:33 PM
It's not a zombie Virus
 
not yet
 
@mr
@mr5 nvm :P
 
alright
bye
<o
o>
 
4:12 PM
@mr5 in your experience, does prism work for visual studio form mac , xamarin forms?
or anyone here for that matter
 
 
1 hour later…
5:24 PM
@CaptainSquirrel yep it did, you the man!
gonna start the middle of the day by stating the obvious. This quarantine sucks ass! However, now that I have got that out of my system - I can tell you all what new recipe I tested out for all you fellow foodies out there
I made salmon with a cajun seasoning, brownsugar, and garlic rub. It was insanely good!
I did 1 1/2 tablespoons of brown sugar, 2 1/2 tablespoons of Cajun seasoning and 1/2 tablespoon of garlic salt, mixed it together to form a rub
then put it on the salmon. Tonight I think i might try to add lemon juice to it
 
6:00 PM
So, I'm working on this website that was outsourced before I started working at the place, right? The (pre-login) change password page just required a user Id in the querystring and you just put in the new password in two textboxes on the page. And boom, password for that account is changed. No username, no old password, no nothing.
Holy fuck
Yes, by the way, the passwords are in plain text in the database.
 
6:40 PM
Ben Popper on April 01, 2020
Embrace the darkness.
 
The user Id's at least GUID?
 
6:58 PM
Uhhhhhhhhh
Is this an april fools joke from Jetbrains
 
yep
 
7:45 PM
I'm trying to use the Regular Expression Dataannotation and I'm having an issue. The string I'm putting in should work. I put it in a regex tester and it passed, but in the .NET form it fails.
[RegularExpression("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])", ErrorMessage = "Password should contain at least one lowercase letter, one uppercase and one digit")]
 
ye... dont use regex for that
 
Ok. How do I do that?
 
just do validation yourself
 
This is a preexisting system.
 
password.Any(it => it.IsDigit()) && password... bla bla bla
 
7:58 PM
Are you talking about doing it on the backend
 
definitely do it on the back end
but also on the front end
 
Just code my own js on the front end for it?
 
if that is required for it to work, sure
validation must be done on the back end
if you want to avoid doing a web call to your server if you already know it is going to fail, then also do validation on the front end
use whatever tool you need to make that work
I wouldnt use JS... but I would also not use C# then
 
Why are dataannotations bad to use for this?
 
8:46 PM
data annotations are not necessarily bad
but you should not use regex for contains checks
 
9:03 PM
Why?
 
9:21 PM
because that is not what you should use it for
same why you dont use a .txt file to store your user data, you put it in a database
 
 
1 hour later…
10:34 PM
Hi guyz, other than for allowing us to use null conditional operator ?., what is the purpose of calling Do.Invoke() rather than just Do()?
This blows my mind.
please ping me if you answer my question above. Thank you in advance!
 
11:26 PM
because "Do" is often not the word you name your stuff
 
@Wietlol What does it mean? I did not get it.
 
naming
validator() vs validator.invoke()
it is a subtle difference really
 
Other methods don't need Invoke, for example, Console.WriteLine.Invoke does not exist.
 

« first day (3455 days earlier)      last day (1476 days later) »