« first day (3819 days earlier)      last day (1353 days later) » 
05:00 - 11:0011:00 - 21:00

11:05
Hey there ^^ May I ask a quite simple(supposedly) question regarding MsSQL? I didn't find any room related to SQL, thus thought it's related to C# due to them sometimes discussed together, at least a little. So, the question is why would it output rows which don't exist if they actually do? This is how it looks like: i.imgur.com/VNGAmKt.png
I mean, selecting using JOIN shows that rows with such Ids don't exist in second table, but they do.
[Captain Squirrel] @butler1233 why did this come through four times...
[Captain Squirrel] 😦
I'd appreciate for a suggestion.
@F8ER what is the joined id?
on B.id = A.fooId
It's like Table1.Id = Table2.Table1Id
and that value is... also 4435?
11:12
Yes. That's an Id from Table1
I highly doubt that considering the length
[Captain Obvious] @Wiet why should someone from asia or america be able to buy domains from european countries?
@CaptainObvious iDunno
@Wietlol I'm sorry, but what do you mean?
11:13
[Captain Obvious] You just said it before
maybe because they want to make it easy for their customers?
like...
google.com is just global
google.it is automatically switching language to italian
google.de is automatically switching language to german
etc
does google have to have an office in every country now?
or just for reservation purposes
to make sure that google.it is not some weird shet
[Captain Obvious] It has offices in enough countries to get local registrations
it has
but if I want to do the same, then how about me?
11:15
[Captain Obvious] Thanks to the power of the EU you can be resident in any EU country and use the tld for any other country in the UK
do I have to buy a house in countries all over the world?
oh, so EU is special in that I am allowed to buy other EU extensions?
[Captain Obvious] What about you? Say you're resident in south africa, why would you need a german domain?
so... if I live in China, I cannot buy a domain for Japan?
11:16
[Captain Obvious] (probably)
also...
"why would you need a german domain?"
again, for ease of use for globalization/localization and reservation purposes
[Captain Obvious] Limitations are entirely down to the country's registry. Some countries do not limit to different countrie
What the heck...
@F8ER can you also show the column that is used to join?
at least the values
and the corresponding records
It has ~20K rows. What do you mean by values?
11:18
[Captain Obvious] Country specific TLDs were originally meant for companies/entities who are in that country and don't want an international looking tld
none of these columns have the value 4435
@Wietlol Why are these required if joined only by Id?
so, the row from the B table, that you join on, is not the row with id 4435
you join by Id from table B, but not Id from table A
> on B.id = A.fooId
what is the fooId value?
Oh. Wait a second. You're right! I was selecting incorrectly from *Visits.
I was joining like Table1.Id = Table2.Table1Id and then incorrectly selecting(for verification) Table1.Id and Table2.Id instead of Table2.Table1Id
11:21
@CaptainObvious I see...
<3
Although... I don't get why does it show rows which don't exist in first table when I tried to look which rows don't exist in second table.
[Captain Obvious] @wiet what am I looking at there?
not the azure you expected :)
or perhaps... not the azure you didn't expect
Isn't it like:

SELECT * FROM Table2 A
LEFT JOIN Table2 B ON B.Id = A.Table1Id
WHERE B.Id IS NULL
11:23
[Captain Obvious] I wasn't expecting anything in particular
mr5
mr5
@Wietlol oh fuck. azure changed their design already
[Captain Obvious] I wouldn't have been surprised if it had stuff to do with the german goverment azure stuff
@F8ER again, re-check your columns
Which ones?
I use only 2 columns
the one you are "where"-ing on
11:26
Id and Table1Id
@Wietlol lol
but yes, the query above in chat should be fine
except...
you select twice from the same table
These are different tables
select *
from TableA
left join TableB on TableA.bId = TableB.Id
where TableB.id is null
@F8ER I beg to differ
mr5
mr5
@Wietlol if I use EB, am I already using an EC2?
11:28
This is the query:

SELECT * FROM [DB1].[dbo].[Visits] AS [A]
LEFT JOIN [DB2].[dbo].[Parts] AS [B] ON [B].[id] = [A].[VisitId]
WHERE [B].[Id] IS NULL
ORDER BY [A].[Id];
@mr5 again, iDunno
I dont use EB
mr5
mr5
AWS is charing me EC2 although I don't use it
so I assume EB is tied to EC2
I am only a week of use of AWS and my credit is already $9
you can look at the detailed billing to see which specific feature of EC2 you are being billed for
mr5
mr5
dang
hmm...
sounds like VPC billing
are you using security groups?
I think those still are under EC2
but yea, you should be looking for the detailed billing information, which can pinpoint cost per feature
11:31
@Wietlol This one must show rows which exist in TableA, but do not in Table2 with the same Id, right?
MSSQL can also do left join like

SELECT * FROM Visits, Parts
WHERE Visits.VisitId = Parts.Id

Looks nicer IMO
@Squirrelkiller Isn't it MySQL?
like... €3,00 for EC2 running instances
€2,00 for EC2 Security Groups
€40,00 for EC2 Network Verifications
ah
there you go...
mr5
mr5
how much are you paying with your AWS for personal projects?
11:32
@F8ER I haven't worked with MySQL yet so, no idea about MySQL^^
€0,00
mr5
mr5
wadaheck
although, I am cheating
[Captain Obvious] Imagine paying for personal projects 🤣
mr5
mr5
either way, I wont be charged still since my credit card detail is a bluff
11:32
I have one reserved RDS t4g.micro (iirc)
which means I paid it up front
[Captain Obvious] So you did pay
mr5
mr5
he
so, although I am not billed per month any more, I did pay quite a bit up front
mr5
mr5
so you paid $1000 ahead huh
no
much more less
mr5
mr5
11:33
$5000?
You guys know GCP gives you one micro VM for free for ever right
[Captain Obvious] Why are you paying for the instance they give away for free
mr5
mr5
I tried that before. I am bad at configuring the server.
@CaptainObvious it's a joke
Free tier is never free
@Squirrelkiller It seems it doesn't work if you want to find rows which don't exist in the second table. Like appending ` AND B.Id IS NULL`.
11:35
200 up front for 3 years
so... 200/36 = $5,50 per month
> until june 30th
true...
@CaptainObvious but now I am doubting which instance type I used
[Captain Obvious] Yeah now they give away the t2.micro instead
11:36
I might be using t2.micro instead of t4g.micro
t2.micro always has been free
but only for one year
mr5
mr5
@Wietlol are bills still calculated even if they are free? Might be the reason I have that.
@mr5 nope
you are using a t3.medium
that is not within the free tier
mr5
mr5
then how is AWS suppose to get those money from me if I entered a fake credit card info?
mr5
mr5
eh. AWS configured that one for me.
11:37
[Captain Obvious] You got shafted mate
mr5
mr5
fuck you Bezos!
but yes, it looks like EB is using EC2 on the back-end
you just have to select an option that is not t3.medium
mr5
mr5
^ shafted
why is AWS lying
It's british for get fucked
11:40
[Captain Obvious] Pretty much
[Captain Obvious] holy fuck
[Captain Obvious] I forgot what utter shite the AWS interface is
Well that's not very british of you now is it
"bloody hell"
Stay safe ^^. Found the issue.
"that right there, is bloody unbelievable, mate"
@Botler Looks like the old Bootstrap to me + MacOS or something.
11:42
[Captain Obvious] Ah okay, the T2.micro for a year upfront is currently $59
[Captain Obvious] Wait you have to pay for the basic storage on the vm too 🤣
@mr5 if you select an u-24tb1.metal on an EC2 instance, then you gotta pay
there is no one stopping you from doing whatever you want
It looks like AWS act like EA with their DLCs
[Captain Obvious] Y'all should use azure
but the same with being on a webshop, you dont just add everything to your shopping cart carelessly and not caring about the price
[Captain Obvious] it's just better
11:43
"You have a glass for $4.99. Water is an additional DLC for only $1.99"
mr5
mr5
It's the same on Azure. It's lying. Plus, their dashboard is very confusing for me.
[Captain Obvious] The azure dashboard is ezpz
"You have a CPU on an AWS server for $14.99. A 1GB storage drive is an additional DLC for only $34.99"
The azure dashboard is literally what you make of it lol, you can put whatever you want there
@Squirrelkiller Tetris?
Basically
Although you gotta find the fully qualified name for tetris then :P
For some reason you can't find Extension/Microsoft_Azure_Billing/PartType/SubscriptionDetailBurnRateChart in the search list naymore
mr5
mr5
So far, Heroku is the only honest company out there to me.
Which is really helpful for ppl like me who just use the monthly free credits to fuck around
@F8ER that is basically how AWS works, yes... if you want to go into the details
except... it is much cheaper than that :)
11:47
and they have pricing calculators and examples of almost every service
[Captain Obvious] I clicked a link on my blazor application
[Captain Obvious] And the server ram usage quadrupled immediately
Why does @CaptainObvious use a bot to talk? ^^
Where the fuck did that link send you
11:47
Oh. I see.
if you hit an unexpected charge, then you either carelessly bought something, or someone else is using your AWS account
[Captain Obvious] The invite is the link
mr5
mr5
@Wietlol "There is no additional charge for AWS Elastic Beanstalk." then proceed with "Elastic Beanstalk can vary based on several factors such as the number of Amazon EC2 instances needed..."
for mr5's case, he is yet to find out which of the two is the cause of his spenditure
mr5
mr5
so EB requires an EC2 to operate
11:48
yep
> The principal costs for a web application will typically be for the Amazon EC2 instance(s) and for the Elastic Load Balancing that distributes traffic between the instances running your application.
you pay for the EC2, ELB and whatever else you attached to it, not for the Elastic Beanstalk itself
mr5
mr5
I'm not gonna pay for that. Let's what happens after the payment due.
you can just remove your application
you could also just get an EC2 t2.micro instead of your EC2 t3.medium
@mr5 why not use the GCP free vm?
[Captain Obvious] Wait so beanstalk is just Appservice??
that should lower your monthly cost to $0,00 for EC2 on-demand for at least a few months
(12 months since sign-up date)
mr5
mr5
11:51
@Squirrelkiller tried that last August. It didn't go well. Even though the VM is free, I think there's a service, which I forgot, I needed which will cost me.
[Captain Obvious] Appservice has an always free plan 🤣
[Captain Obvious] There's also shared hosting plans so if you're only hosting something small you don't need an entire vm (even just a little one) just to host your app
How does the Bot convert markdown from Discord? I.e. a code (```...```)?
[Captain Obvious] With great difficulty
[Captain Obvious] See the repo
11:53
Roger that
Discord by itself has some issues with Markdown :D
[Captain Obvious] Code blocks from discord to stack is a bad time
[Captain Obvious] Yes it does. Having to deal with 2 shit markdown implementations, which are both shit in different ways, is a right pain in the arse
there is also the case of unsupported operations
iirc, links in discord cannot have custom text
IMHO StackOverflow chat should use Markdown too... why didn't they?
I mean... why not use ``` for code, but margin? This also makes it nearly impossible to have margins one the left in a code in StackOverflow chat.
[Captain Obvious] They kinda did, they just butchered it
11:55
[Captain Obvious] Yeah, so things like that come through as plain, non-linked text
@Wietlol I see that as a possible security measure for users. I.e. fake links etc.
[Captain Obvious] There usually isn't just me chatting from the bot, there's a few people in here
[Captain Obvious] oh noes, is meeting o clock
you guys breathe c#
@Shad Sometimes...
mr5
mr5
11:57
Googles "what happens if I didn't pay Bezos"
I'd expect some underpaid thugs
@mr5 More taxes
mr5
mr5
I'm going to jail for $9
fucking Bezos
I didn't put my tax details there
the only personal info I have there is my first name and phone number (and probably some @Wietlol 's remnant personal info)
Oh. No problem then. @Wietlol should consider buying a Magnum then. Just in case.
12:22
Nah, thugs gonna get hit by a passing bicycle if they try to get to Wiet
Hi
how can I get filename any ideas?
from controller
return File(ms, System.Net.Mime.MediaTypeNames.Application.Octet, fileName);
Have you tried calling that from postman/swagger/whatever and look at the response?
in js
fetch(url)
.then(x => { debugger; console.log(x); return x.blob();})
.then(x => downloadBlob(x, 'myfile.xlsx'));
12:23
Second line there
I don't find filename inside x
x => console.log("Response as json:", x,json());
What does it look like?
Also what's File() there?
uhm...that imgur link just gives me a blank page
12:26
@Shad Is ms the url here?
@Shad Return both the headers and the blob, then pick out the content-disposition header from the headers.
yes
@Deathspike because of you I learned something new today. Can't thank you enough
may I buy you a coffee?
I'm good, but thanks for the sentiment :-D
Where's that, x.headers["content-disposition"]?
it's empty
x.headers
12:28
o/
\o/
<o>
12:29
Lol
\o7
/\
@Deathspike the headers are empty
Show the whole object
sec
That's a very weird response header
network analysis doesn't show anything helpful either?
12:33
It's not empty, it's just an iterator.
fetch('/')
.then(x => x.blob().then(y => ({blob: y, headers: x.headers})))
.then(x => {
  x.headers.forEach(console.log);
  downloadBlob(x.blob, 'bla.xlsx');
});
will output all your headers
headers.entries() will give you access for lookups
wow
Or just use the browser
He wants to get the filename the server sent, so he has to pick out the content-disposition header from the fetch response (which he's using for a spinner)
@Squirrelkiller yes I can see the value in browser
13:30
silence
but wait...
!~shiba
thanks doctor shiba
 
2 hours later…
15:22
@Squirrelkiller blurk white console
Yup makes for a great context switch
 
1 hour later…
16:52
Is there a name for model classes that are used to represent API body?
I think of View Model, but I think this is more Web apps than APIs
Schema?
or Meta?
I haven't heard of both in this context, but they seem reasonable
17:23
@mshwf I tend to use DataModel
17:51
I totally forgot to come here today
18:40
anyone know how to get the "default page" for an ASP.NET site?
 
1 hour later…
20:09
05:00 - 11:0011:00 - 21:00

« first day (3819 days earlier)      last day (1353 days later) »