« first day (3250 days earlier)      last day (1697 days later) » 

mr5
2:53 AM
o/
1. Request Resource
2. Requires Authorization
3. Request Authorization (concurrent A)
4. Request Resource (concurrent B)
5. Request Resource (concurrent C)

Prevent 4 and 5 from proceeding and wait for concurrent A to finish first
What would be the best approach to solve this?
I think I need semaphore here but I'm kinda hesitated to use it
 
mr5
3:28 AM
If there is no Request Authorization, all concurrent request are allowed
 
 
2 hours later…
5:41 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
5:53 AM
Morning. Or rather, evening here.
Has anyone had to use basic TCP? I'm trying it out with TCPClient and TCPListener. I just discovered that TCPListener only works if the IP I give it is my LAN IP (private IP). Tested with a friend across the internet, who was using a TCPClient to connect over an unused port targeting my public IP.
I understand how TCPClient connects to someone's public IP, seems simple. If TCPListener connects to my own private IP, is there a reason I need to specify it and can I still know who is connecting to me?
 
> targeting my public IP
Was it really though?
Or was it just the public IP of your router which uses a NAT internally?
If so then you'd probebly have to set up port forwarding in your router
I tried to mingle with it once, didn't manage to get it to work and gave up subsequentely :D
 
Well technically my friend (who can modify his router -- I share mine with people who don't like me touching the router) did set up port forwarding and HE was the listener. I was the client. But I wrote it from his POV as if it was me. guilty
That said, I thought the public IP of the router was what the public IP was. One and the same; no two public IPs. I'm only aware of the existence of a public IP, a private IP like a LAN, and a MAC address.
 
My good old friend @Squirrelkiller has got a Azure server set up, I've writen a program wich uses TCPListner and TCPClient, we ran it on his server and it worked.
So I guess the problem stands and falls with the router and it's security settings.
@person27 MAC is not connected to IPv4 in any way.
 
Nope and it shouldn't be.
 
And you're right, there is only one IP which is visible to the outside.
 
6:06 AM
But my understanding of networking is that when I least expect it, I realize I knew nothing. And I'm already fairly certain I know nothing to begin with. So I kind of threw it in as a freebie
 
Morning killerino
On your device you've got your 192.168.x.x (quite often that range is used) IP which is only shared in your LAN. Your router has 2 addresses, one 192.168.x.x and one in the Network of your ISP.
This should be your public visible IP.
On your router, if port forwarding is configured, you should be able to reach the computer behind the router from the outside, else not.
 
6:23 AM
'sup
 
How do you do?
We gotta set up that Connect4 LAN server on your azure machine killerino!
 
ohayou
 
6:59 AM
Build me a docker image bruh, fastest way
 
docker wat
Also I dislike that you have to register for docker in order to use
 
You don't have to? Just don't login, click skip, continue as normal.
 
To downlaod Docker I had to register IIRC.
 
7:17 AM
oracle used to flash this login screen when you wanted to download java
but there was a skip button or something that was rather inconspicuous
 
@Neil Yeah, a tiny link in a nonstandard location
 
@Neil But to download the actual Oracle database, even the developer edition, you had to register and fill in a questionnaire with things like "Do you plan to use this software for selling drugs, human trafficking, or any other illegal activity?"
 
7:36 AM
@mr5 considering those requests are completely out of scope of each other, your authentication provider would provide the authentication to the resource requests
that authentication provider can see if it is currently doing a request to receive a valid auth token and can make additional auth requests await the same response
 
@AvnerShahar-Kashtan Only correct answer would be "who doens't".
also @AvnerShahar-Kashtan, have you checked out mr5s 9gag link on the star board?
I think you as language enthusiastic would quite enjoy it.
 
Yeah, I know that bit.
There's no lack of words with dozens of usages. They're usually either very basic, old words ("do", "have") or profanities, which (as profanities) are often used to replace many other parts of speech when you want to, well, profane it up.
 
@mshwf on a min heap, the top node has a lower value, so each child node has a value higher than or equal to the parent node
that root node is always considered the highest priority node
independent of if it is a min heap or max heap
because the root is what you access
 
7:54 AM
ahoy mateys o/
 
heyho mutiny victim to be
 
nothing nothing waves paw in the air
 
8:09 AM
Smile and wave boys, smile and wave
 
@AvnerShahar-Kashtan Gotta love questions like that.. it's like asking passengers at the airport if they're carrying a bomb
 
You obviously haven't seen the US ESTA questionnaire
> “Do you seek to engage in or have you ever engaged in terrorist activities, espionage, sabotage, or genocide?”
The rest of the questions are excellent too
 
“Do you seek to engage in or have you ever engaged in terrorist activities, espionage, sabotage, or genocide?”
Surely if you answered yes to this they wouldn't take you seriously
 
oh us customs is a joy
i've lost how many times they verbally assaulted me
 
8:24 AM
lol what
 
calling me stupid a dumbass, stupid
etc
while yelling
 
lol wat
> Start getting shouted at and insulted
> Start filming said us customs agent
 
oh and the best are the US marshalls who nick you right before you board the plane and make you recite your life history and if you trip "STOP BEING A MORON"
 
> Stop getting shouted at
 
its normal
I can't do shit
I want to film? dont come in
leave
 
8:26 AM
lol wat
 
@CaptainSquirrel The point isn't for you to answer "yes". It's for you to answer "no", but to have the option of deporting you without process if you lied on your forms.
 
I have no rights, I am not a citizen
 
@AvnerShahar-Kashtan fair enough
The whole us customs agents will look through your phone thing is amazing
 
once they took my phone and literally told me look either give your phone so we inspect it or leave
take a 10 hour flight back
 
morn
 
8:27 AM
Yeah if that ever happened to me i'd immediately turn around and get back on the plane
 
vacation is over
rip x_x
 
Either that OR
 
after flying 11 hours and then to fly 11 hours back? @CaptainSquirrel
and its not like I come to US for fun
 
Fill all my social media and everything they can look at with very VERY x-rated photos
Then stare them in the eyes and ask them if they like what they see
 
well I kind of told him look you are going to see some pictures
 
8:28 AM
@CaptainSquirrel Who exactly do you think you'll be punishing here?
 
pretend you dont see them
 
@AvnerShahar-Kashtan Not punishing anyone, just trolling the troll
 
it aint a troll, its his job to be annoying
 
It will cost you thousands of dollars and disrupt your plans. But surely that's nothing compared to the satisfaction of watching a bored TSA officer watch porn he's seen dozens of times before.
 
You assume this would be normal porn
idgaf, you gunna look through my phone? I'll make sure that there's some freaky shit on there
 
8:29 AM
Ah, so it would be something you will be detained and arrested for?
 
I also get body searched by el al everytime @Avner :^)
but thats because i am a special person
 
I wouldn't go that far @AvnerShahar-Kashtan
just enough to make someone feel uncomfortable
 
Internet trolling is easy. I assure you will meekly do whatever the TSA officer tells you to do.
@CaptainSquirrel There's no "far". If you seem like you're trolling, disrupting their work or being probelmatic, you will be arrested and deported.
 
Either that or i'd just wipe my phone and hand it to them in setup mode
 
@CaptainSquirrel Either do it at home, or - again - be arrested.
 
8:30 AM
I dont think TSA can arrest you actually
detain you yes
 
that's the thing
 
but not arrest
 
I wouldn't be disrupting them
just don't look through my fucking phone
 
It's common opsec these days to travel with a blank phone and laptop. Certainly to China and some other countries who demand access to your electronics. The US as well.
 
its not really the point @Captain
they are trying to figure out if you are worthy enough of getting in their country
 
8:31 AM
@CaptainSquirrel So don't go into their fucking country, is what they'll say, and send you back. *shrug*.
 
so they look for clues on your phone, if they have a blank phone they have less evidence of your trustworthiness
 
Sure it's stupid security theatre that does nothing for safety, but you'll still pay thousands of dollars for a flight back.
You can rail about justice. You can plan elaborate trollings. It doesn't matter. They control the border, and they can send you back. Your move.
 
and by the way even though they rail me everytime I can 100% say the TSA are filled with mostly very nice people who are just trying to do their job effeciently
 
welcome @JinLee
 
Hello sir.
 
8:35 AM
see we have squirrels here and also one roach
but hes very mean
 
C# is so fun.
 
(X) Doubt.
 
those squirrels are bots?
 
yeah i almost forgot about green lion
 
yes
definitely
 
8:35 AM
no they are hooomaans
 
robotic squirrels
 
....what am i?
 
hooomaaans?
 
They say they're not bots, but hey, that's just what bots would say, right?
 
you are a captiain robotic squirrel
 
8:36 AM
I should point out, I don't plan on travelling to the US any time soon
 
@JinLee yes
 
Those squrriels are AI?
 
A, maybe. I? Not so much.
 
SI
 
I am not sure about intelligence, but certainly Artificial
 
8:36 AM
Squirrel Intelligence
 
(damn, avner beat me to it)
 
Those squrriels are made with C#?
 
An exception of type 'System.StackOverflowException: Morality Questioned'
System Rebooting
 
@JinLee Filled with C# and Spice, and Everything Nice.
 
if they dont get their hazlenuts they riot
 
8:37 AM
I see. Two awesome Squirrel. (so hard spell)
 
@JinLee: if we were to stop being cute for a second - no, the squirrels are not bots. The only bot here is @CapricaSix, and even she's not always very good at it.
 
@Hans1984 how could you forget me?
 
( Can confirm, am not robot )
 
@Wietlol I was one vacation for one week thats why
 
I see.
 
8:37 AM
forgive me
 
I always wanted to be one vacation
 
I don't know who to believe in this world. I believe I can c#.
 
he already knows caprica very well ;)
 
!! Do you like C#?
 
!!Caprica
 
8:38 AM
@JinLee All signs point to yes
@AvnerShahar-Kashtan That didn't make much sense. Use the !!/help command to learn more.
 
@JinLee if you can C the problems in this world, you C#
 
Caprica Six is lying
I can prove it.
 
on a side note
in Java, yesterday, by geisterfurz007
user image
 
Well, yes. She's a bot bent on spearheading the cylon invasion to replace humanity. Of course she's lying.
 
//tumbleweed
!!tumbleweed
 
@Wietlol lol Javascript blank space
 
@JinLee Well, she's a bot, so GIGO applies.
 
I see. I don't get Javascript part :(
 
@JinLee People like making fun of Javascript. Usually due to their own lack of confidence in their own pet language. *shrug*.
 
@AvnerShahar-Kashtan what's GIGO?
 
8:42 AM
 
@JinLee Garbage In - Garbage Out. If your inputs are wrong, your outputs would be too. The bot doesn't lie if it's told to lie.
> On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
 
python is not beautiful at all
but anyway
 
Hmmm How many squirrels do we have in this room?
 
4
 
@AvnerShahar-Kashtan thank you for your answer~
 
8:43 AM
4?
 
aye
we have three red squirrels
One black squirrel
A professor squirrel that shows up every so often
and then Squiggle
 
I thought more, but perhaps one was cured
 
Why all upside down?
 
ah, squiggle
 
black squirrel enjoys bad company thats why hes next to the roach
i bet they are plotting something evil
lets better be carefull
@JinLee it refers to their mental state
 
8:45 AM
wow
 
:D
 
we took squiggles avatar and rotated it
 
so philosophical
 
so we are all on unique rotations
 
Captain ! ARe you in charge of other squirrels, sir?
 
8:46 AM
I should hope so, or he shall be stripped of his rank.
 
I heard there was a heavy storm in south korea ? did you witness any of it ? @JinLee
 
did you? hansuru?
 
I was home playing World of Warcraft Classics. Didn't hear a thing. but on the news, three people died.
 
@Wietlol I wasnt there , I was in japan
 
WoW can save your lives.
 
8:47 AM
lol
 
I think that there are more lives lost to WoW than it saved tho
 
Wow can save even animals. Even squirrels!
 
but japan was hit today
 
@Wietlol You are right
 
tokyo
 
8:49 AM
Maybe all the squirrels are upside down due to storm.
 
@JinLee no, I am Wietlol
 
maybe
 
(why do people always mistake me for right?)
 
@Wietlol You are Wietlol.
and I like menthol. Also like thistle.
 
yay
 
8:52 AM
Last time I played WoW wasn't that long after Classic, so if I play it now, it will probably seem the same.
(I played around 2005-2006, Burning Crusade)
 
Classic WoW is alright
levelling is a biatch tho
 
I dont like the slow pace of WoW combat
so... not much hype from me
 
Aye Captain, what you said is true, sir!
Squirrels are smart!
 
Jin Lee... is that Lee Buttlers sibling?
 
buttler sir?
 
8:55 AM
@CaptainObvious can you either deny or confirm?
 
I don't know what that word is , sir!
I am an uneducated cat, sir!
 
Just ping LeeButtler (@CaptainObvious) a gazillion times.
 
Jin Lee butler Obvious?
 
FYI, I sometimes eat squirrel.
 
8:57 AM
I dont like squirrel, too much hair and too little meat
 
I looked him up
no I'm not gay sir
Captain, is this you?
 
Aahhhh the glory days
Before i retired and came here
 
You didn't retire. You were fired for refusing to sign the Sokovia Accords.
 
Squirrel America?
 
Fired, Retired, What's the difference
I'm Captain Squirrel now, that's all that matters
 
9:09 AM
No longer affiliated with any army, government or shadowy organization.
You're fighting for the little guy. Very little. And fuzzy.
 
Captain Hazelnut
 
so... question
how can I avoid calling some methods?
to be more specific, how can I avoid calling Microsoft.Extensions.Logging.LoggerExtensions.LogDebug (and all the others)
 
decorators?
 
thats not how a decorator works
 
well what do you expect
 
9:18 AM
I want it to be a compiler error
or something similar
 
@Wietlol Ah, you want a Roslyn analyzer that gives you warnings if that method is called.
 
I prefer a compiler error
something that prevents me from building
 
Set your project to treat warnings as errors.
A good thing, in any case.
If you can't (until you get other warnings fixed), you can turn it on, but add all other errors to the exemption list.
 
@AvnerShahar-Kashtan how do I do this?
 
9:30 AM
Uh hold on
Let me catych up and then I'll respond
 
I cant do it with just some weird settings, right?
have to write this special project?
 
Analyzers are code.
 
Capjin Obvious
!!hmmm
 
hmm... I think I will just create an identical overload
then, the call in our code is always ambiguous and therefor throw an error
 
9:39 AM
Also I've been to the US 3 times, I even got "Specially selected" for seconday screening once, and they've never wanted to go through my phone or laptop or anything
 
You can try that. Of course, it gives you the wrong error, which you will know, implicitly, means something else. Why not write an analyzer?
@CaptainObvious I've been to the US just once after 9/11 and also had no problems at all, but that doesn't mean that things don't change, especially with the current administration's views of immigration, or even suspected immigration.
 
It also helps that I'm not brown
 
Hey We're not all upside down!
 
@AvnerShahar-Kashtan too much work
the only problem now is that some of my tests fail to compile...
> AssertThat_DefaultLogs_BlaBlaBla
 
10:16 AM
@Wietlol isn't there a simple way if I think about it? simply not exposing this at all to the user by not referencing this library in most of your projects
 
ye... not referencing Microsoft.Extensions.Logging.Abstractions, that will do /s
 
10:32 AM
My pants have just fucking ripped
fuck my life
 
depending on where the pants ripped, that might have become a lot easier
 
heh
That's funny
I can't really tell how bad the damage is
cuz i'm in my chair
and i don't want to get out of my chair
because i don't know how bad the damage is
 
#lazy
 
not lazy, i'm just in a really bad fucked if i do, fucked if i don't situation
 
if you dont, you wont get lunch?
 
10:39 AM
wtf, why can't you match more than 9 elements using regex?
 
ofc you can
wait... lemme rephrase that
ofc I can
 
Well i'm leaving earlier than normal because my body is fubar today
so i won't be getting lunch at the regular time anyway
 
sigh
 
@Neil can you reproduce your issue in an mcve?
is it C-harp related?
or just plain regex?
 
I've got a series of very long constructor calls with parameters that I need to convert into SQL inserts
and while I could create them one at a time, I'd rather not risk making a mistake with one of the values (it's sort of an eyesore)
and of course, there are more than 10 values
 
10:45 AM
@Wietlol That seems like a really easy-to-pay-upfront cost that will cost more as "weird build errors" technical debt .
 
I hoped I could use the [Obsolete("some useful message")] on my overloads, but ofcourse, it cannot understand that since it doesnt know which function it refers to
@Neil and?
 
@Wietlol and regex matches only the first 9
I think I'll just duplicate the lines and make two "passes"
 
then one of the following is probably your case
1, your regex is wrong
2, your values are wrong
3, you use Visual Studio (or VS Code)
 
ok, great advice. very useful
 
well...
for me it works
so without knowing your values, regex or environment, I cant tell which one is wrong
 
10:52 AM
if there is a limitation such that you cannot match more than the first 10 values, then it isn't 1, 2, or 3
 
what is your regex?
 
I don't see how that's relevant
 
I dont see how you dont see how that is relevant
"I have an issue with regex"
"what is your regex?"
"that is irrelevant"
 
@Wietlol +
 
in which case, your issue with regex is personal, or that last one was wrong
 
10:56 AM
886
Q: Is there a regular expression to detect a valid regular expression?

psytekIs it possible to detect a valid regular expression with another regular expression? If so please give example code below.

 
3 mins ago, by Neil
if there is a limitation such that you cannot match more than the first 10 values, then it isn't 1, 2, or 3
either you demonstrate that this isn't true, or it is irrelevant what regex I use
If you can't buy happiness, it is irrelevant how much money I have unless you demonstrate that that isn't true
 
there is no limitation that prevents you from matching more than 10 values
except if you (in the expression) or the environment (in its usage) defined it as such a limitation
 
well gee, you sure convinced me
 
I expect that your values simply (for some reason) dont match by your regex
perhaps a newline interfered, or some weird name is used, perhaps default arguments
 
> Release security hotfix
> make the hotfix link 404
how2besecurityengineerin2019
 
10:58 AM
it could be anything, but I dont know what it could be until I see the regex and/or the values
but first, lunch
 

« first day (3250 days earlier)      last day (1697 days later) »