« first day (3167 days earlier)      last day (1773 days later) » 

user10864482
1:00 PM
not sure. I would think it depend on the context
 
Today's a funny day, I somewhat managed to survive, but my car was hit by some idiot. Not on the road, not while driving, it was overnight, parked in the garage.
and the hit was in the windshield
or rather hits, because there were 5 of those
 
lol what the fuck
Someone attacked your car with a bat or something?
 
well it's not massive
but it looks like someone threw rocks at it
 
you don't just "accidentally" hit someone's car with a rock.... 5 times
 
you know that little bump that appears when a pebble jumps at you in a highway?
just like those, except one that actually cracked the windshield
what leads people to do this?
 
user10864482
1:06 PM
maybe its not people; maybe something fell off the garage top
 
probably kids throwing rocks
 
what would fall off the ceiling in a garage
it's a -2
it's more robust than anything I can think of
 
What is the difference between IComparer<T> and IEqualityComparer<T>
 
if the ceiling didn't look cracked or damaged, again, it was probably someone throwing rocks
 
probably kids yes
 
1:07 PM
@Shad One has the word "Equality" in the name
 
but WTF
 
I read List<T>.Sort can use both of them!
but I only see IComparer overload
@Neil lol
 
user10864482
kids are savage
 
user10864482
@Shad I found that useful; stackoverflow.com/a/6434269/10864482
 
oh my ...
thanks anyways xD
 
1:21 PM
there's a small explanation in the docs: This interface supports only equality comparisons. Customization of comparisons for sorting and ordering is provided by the IComparer<T> generic interface.
 
user10864482
i'm facing a race condition with a timer. I found this: https://stackoverflow.com/questions/20165548/the-process-or-thread-has-changed-since-last-step-visual-studio . I implemented the modification into my code but I can't help myself but to wonder if I approach my problem in a proper way.

My 'problem' is that I need to fire (launch) a program using command line. The program support command line but have no callback or option whatsoever. I tough using a timer would be a good idea.

The reason why I'm using a timer is to call that program many time. I'm using the timer event to check some c
 
@Default thanks
 
no worries
 
I find it pretty obvious: Equality comparer goes "equal or not equal". Comparer goes "Greater or smaller than or equal to".
 
hmm
 
1:39 PM
@Squirrelkiller Initial confusion was caused from a line in this page
"..IEqualityComparer<T> generic interface for use with collection classes such as the Dictionary<TKey,TValue> generic class, or with methods such as List<T>.Sort. "
 
@user23333 quick update i had a job interview yesterday that went fairly well i hear back thursdaynight.
 
user10864482
@SamuelWakeman good, I'm glad for you :)
 
thnigs are going ok currently trying to figure out why bootstrap is imcompatible with vs havent done much research yet.
 
user10864482
@SamuelWakeman bootstrap shouldn't create any compatibility issue as it is front-end stuff (what the client see)
 
@SamuelWakeman if you don't hear back thursday, wait until monday and then send an email and simply ask if there has been an update
 
1:45 PM
right
 
Man, fuck CSS
 
If you don't get the answer you want, touch wood, Ask for feedback about your interview, things they thought you could have done better, etc
 
Why is it so hard to vertical-align something
 
@CaptainObvious don't fuck CSS
that's bad
also
sec
    position: absolute;
    top: 40%;
    transform: translateY(-40%);
    left: 50%;
    transform: translateX(-50%);
@CaptainObvious that should veritcally align whatever you apply it to
as well as horizontal too
 
I've just got an icon which I want to align to text
 
1:47 PM
ah
just position: relative and change the top until it looks right
simple things
 
user10864482
@CaptainObvious I was under the impression they (bootstrap) fixed that in their latest version, embracing the flex box model
 
user10864482
but yea, totally f*** css
 
They technically did @user23333
if anything, its harder now because of it
 
user10864482
why its harder? I like the idea of not having to calculating the padding bs
 
user10864482
1:51 PM
darn "image not found"
 
BS4 and Ionicons for reference
 
user10864482
ty
 
Why don't the icons size to the font size of the parent container, then this issue wouldn't even be a thing anyway
 
user10864482
@CaptainObvious maybe css is just outdated. I like less more because of the capability to set variables. What you express would be hard to do just in css imo
 
@CaptainObvious just move them down with top
!!gif do it
 
1:58 PM
@CaptainSquirrel Not a chance
 
U WOT
!!gif do it now!
 
@CaptainSquirrel Doubtfully
 
I hate so much everythig what is based on env
 
As with most other things, the trick is to find a healthy balance. Some things are ok to have depending on the environment.
Any, gtg, bye bye. Have fun.
 
2:01 PM
Things can be based on env but if have way to normal put this as command arg
 
user10864482
I like to put every parameter in App.config now.
 
Go 1.12 finally removed dependency on gopath but still have evil things like above
@user23333 Thats the good way
 
user10864482
2:15 PM
I'm having a race condition on a timer and its driving me nuts
 
2:25 PM
Maybe stop racing against timers
 
user10864482
ahah. I wished I knew a different way.
 
DONT STOP HIM hes gonna beat the clock #Ibelieve
 
ofcourse, I have to test auto generated programs
 
You know when you first reference a type in a new class file in Visual Studio? You get the quick actions lightbulb (ALT+Shift+F10) and you can select the "using some.namespace" option and it adds the using statement at the top of the file?
 
user10864482
ye
 
2:33 PM
Well that no longer appears for me since this afternoon! Any idea what dumb thing I have accidentally triggered to make it disappear?
I still get the options, it's just the specific one for adding a using is gone.
 
user10864482
@HollyStyles have you tried to restart vs in safe mode? maybe you installed a vsix that messed with that?
 
have you tried turning it off and on again?
 
LOL
I know this so well and yet it's never my first action :)
 
user10864482
devenv /SafeMode
 
restarts Visual Studio …
 
2:35 PM
have you tried it on another machine?
can you reproduce the issue in development environment?
 
devenv /SafeMode Wow that's slooooowwwwwww… On my VM anyway ...
 
@HollyStyles namespace name same as class name?
 
VS is slow anyway
I miss IJ UX
 
my boss why is the motionswitch light not working? you figure it out. me sorry thats ahardware problem
 
OK it launched. I went to open the solution. Dialog box: The 'Visual Studio Manager Package' package did not load blah installation of another extension blah … examine this file (long path)\ActivityLog.xml
@Default No name clashes. It is happy to fully qualify my statement, just doesn't offer to add a using. So will do some.namespace.class_i_am_instantiating, but not using some.namespace;
 
2:42 PM
is it global or just one file / one class / whatever?
 
Hmmm no longer builds, all references in all projects have yellow triangles!! I think it's time for the full reboot, take and nuke site from orbit...
 
FUCK YOU CSS
I did it
 
thank you
@HollyStyles it is time...
now go and install Rider
:)
 
And learn to ride all over again? Like starting again with bowling and curling it like you should have done in the beginning coz you have finally plateaued with the straight technique?
 
2:47 PM
@Wietlol ...if you want it to continue to not build even after reboots
 
DashboardHistory.Today ?
Rider is more successful in building than VS
vOv
 
HAHAHAHAHA
 
Does it do laser builds?
 
it uses butterflies under the hood
 
mr5
Have you guys heard about libra.org?
This is the reason why FB shuts down all crypto currency ads before. They're planning on taking this universal currency project.
 
2:50 PM
Tsk more blockchain hyperbole
… The evolution of the blockchain will be overseen by the Founding Members of the Libra Association … Overseers? Not exactly Libra then is it?
 
user10864482
@mr5 i personnaly think that they did shut down ads for initial coin offering because at the time there was a lot of scam regarding that. Like a bunch of ppl forking ether, call it coinAbc and then sell a bunch of coin that worth shit a premium price with some bs about it
 
Ok so this project I inherited has .Net Standard class library I didn't notice, if you install .Net Framework based NuGet package into that project … well weird shit happens.
Like missing quick action options.
 
user10864482
@HollyStyles strange stuff.
 
Rob
What visual studio version are you running?
 
2017
 
3:04 PM
a cryptocurrency with one of the biggest companies that will mismanage your data? no thanks
 
Rob
Hmm, that's not it then
 
user10864482
@CaptainSquirrel I can see future FB app as smart contract. It would be funny to try to track personal information violation when that will happen.
 
Yeah no
Then only reason I haven't deleted facebook is because i have family on there
also protip
 
user10864482
@CaptainSquirrel i deleted fb even if i have family there
 
If you don't want to be tracked as much by facebook, get rid of messenger and use messenger lite
it's a loose-loose situation, but it won't have as much tracking shite on there
 
3:07 PM
what do you guys mean being track by fb what data do they get a hold of that i might care about
 
plus it doesn't listen to you like the regular messenger does....
Do you have messenger on your phone @SamuelWakeman ?
 
like the regular messenger
Have you ever noticed how when you speak about something and your phone is out
 
not fb messenger or yes messenger
 
@Rob It's because added .NET Framework 4.6.1 nuget package into .NET Standard 2.0 class library project.
 
3:07 PM
and then you go on facebook
and see ads for the thing you were talking about
(its not that instant but still)
 
user10864482
imo fb have just proven themselves unreliable over the years. For me it was when I heard they lobby in my country to loose privacy law. That was the point of no return
 
thats trippy if that happens
 
I'm not sure if it is as obvious now but a couple years ago it was
 
my browser blocks almost everything
 
well isnt that just data analytics if I want to see add for id rath see adds for league
 
3:08 PM
for example, I cannot see samuel's image
 
then anything else
 
Rob
@HollyStyles 4.6.1 should work with standard 2.0
 
I'm gunna set a pihole up at some point i think
 
because it is from graph.facebook.com
most others are from i.stack.imgur.com, which it approved
 
inttresting its a picture of a 20 year old holding a cat
its my fb profile because stack overflow lets you log in with fb and im lazy
 
3:09 PM
no, no it is not
 
but again why do i ccare if its showing me relevant ads
 
(the content doesnt matter, only the url)
interwebz is dangerous nowadays
 
i understand the content doesnt matter i was jsut letting you know what it is
 
if you arent careful, you are paying a 20% bonus on your flight tickets
 
^^^
That one is definitely real
 
3:11 PM
how ?
 
ads
 
where does that 20% go
?
 
people
 
to the airline
they just inflate the prices each time you come back
 
thats great...
anyone know if there is a way to add a filter google imagees so it only shows square images
 
3:16 PM
hahaha wiet filters facebook
 
I dont
my browser does
 
i hate facebook
its for old people and kids nowadays
 
my browser says "u is facebook? u is block"
funny how wikipedia is allowed to store cookies, but nothing else
these appear to be fine
 
3:38 PM
damn
what is that
 
Privacy Badger?
That's the app photoed
 
what kind of browser to do you use @Wietlol
 
Chrome
the extension, as juanvan mentioned, is Privacy Badger
 
chrome or chromium?
 
Chrome
one day, I will write my own browser
but it is not this day
that day will come when JavaScript is removed
anyway, im off
laytar
 
3:48 PM
Is wietlol J.doe?
 
oh rip
Samuels avatar is gone
I like privacy badger
 
you calling me ugly
??
 
no
it's just blocking graph.facebook.com :D
 
i know
 
4:02 PM
It is bothering me tho
mainly because of the following
Waits
 
hi there
 for (int i = 0; i < 8; i++)
                    {
                        if(i == 0)
                        {
                            Debug.Log("in Pojo:");
                            Debug.Log(carrierCollection.carriers[i].X);

                        }
                        // opcPositions[i].Set(carrierCollection.carriers[i].X, carrierCollection.carriers[i].Y, 0);
                        opcPositions[i].Set(333,666,0);
                        if (i == 0)
                        {
                            Debug.Log("in the list:");
 
Yep, that's some code alright
 
nice code
hehe ok ehm question:
 
inPojo:


7.6596


in list:

(0.0, 0.0, 1.0)
I don't know why its not setting the value
 
4:12 PM
what type is opcpositions?
 
Jon Ericson on June 18, 2019

Analytical

Documentation badges

Tumbleweed and Reversal

Julia Silge’s analysis demonstrated that the Tumbleweed badge wasn’t serving its purpose.

Meg Risdal is our Product Manager who led us to make these changes.

Jane Willborn wrote the code.

Nick Craver made sure the Lifejacket and Lifeboat triggers don’t break the site.

Ben Voigt suggested the trigger we used first for Winter Bash hats and now for two new badges.

A bunch of people tested those triggers on our sites and prodded us to keep considering something like these new badges. We also got a bunch of feedback about Reversal and especially Tumbleweed that helped us understand how they worked in practice. We’ve got an amazing community here! …

 
@CaptainSquirrel
    private List<Vector3> opcPositions = new List<Vector3>();
in the init I am doing this:
for (int i = 0; i < 8; i++)
{
    opcPositions.Add(new Vector3(0.0f, 0.0f, 1.0f));
}
 
user10864482
is 8 equivalent to opcPositions.Count?
 
Is this system.numerics.vector3?
 
no its:
@user23333 I mean yes.. I am looping from 0 to 8 and adding new Vector3 to
 
4:19 PM
well shit, that would have been useful to know at the start lmao
I was wondering why .set didn't work with numerics
@Suisse if you set the x, y & z values individually does that work?
like
opcPositions[i].X = 333;
opcPositions[i].Y = 666;
opcPositions[i].Z = 0;
 
let me try that.. It takes like 15mins to make a small change and build and deploy :)
 
damn dude
 
surface book2 is the biggest mistake ever
such a #@##* computer
 
user10864482
@Suisse is the bsod on undocking still a thing?
 
@user23333 using graficcard gives me bluescreens
trying using Cuda gives me bsod
trying to work with visual studio giving me bsod
unity.. bsod
photoshop bsod
@CaptainSquirrel no thats not working.. because vector3.x is a getter and you can't set it like that
 
user10864482
4:34 PM
darn
 
Rob
4:48 PM
@Suisse There's no set method in Vector3. Is it an extension method?
Oh, it's unity
Nevermind
 
squirrels!
@CaptainSquirrel you can enable it tho
it will still block all other potential "trackers"
 
its not working :/
 
how do you deal with CSRF in .net core spa's when you dont have the html helper for antiforgery and only a webapi to call directly?
 
5:06 PM
quick question on css html logic if I link 2 css pages to an html page and the most recent page doesnt have a rule for images will it use the image rule from the first
?
or do i have to link the right thing at the right time really specifically
?
 
5:19 PM
nvming i psure i dont have to
 
user10864482
5:48 PM
I won the timing race yah
 
user10864482
if you do something like
img { /* some css code here */ }

it would apply to any image on any page, as long as you include that css sheet in the html document head

also you might want to use a css master reset. What it does is remove any style that browser add by themselve. When I need a reset I use this one

https://meyerweb.com/eric/tools/css/reset/
 
on a different note what would be a good way to go about setting up the image grid i was trying to follow this link w3schools.com/bootstrap/bootstrap_grid_basic.asp
 
user10864482
@tahtoh can you use session?
 
but the format doesnt exactly agree with
current format
 
user10864482
do you want to do it dynamically or manually?
 
user10864482
5:56 PM
like do you want to slice an image into different shape and then add those shape as background image on a grid?
 
user10864482
w3school refer to an older version of bootstrap, namely version 3
 
basically create a X x 4 grid
images are straight squares
consisted 150 150 size
consistent*
@foreach (var item in Model.Category)
    {
            <div class="img-with-text">
          image data
    }
is how it looks rn
 
@user23333 what do you mean by can i use session
 
user10864482
@tahtoh yes, can you use session?
 
i dont know what does that mean to be honnest
 
user10864482
6:00 PM
session is a kind of storage . a csrf is just a nounce you add to a form to prevent replay attack
 
user10864482
if you have access to session storage you can set a random value , add it in your form as a hidden field and then compare the value to what you have in session
 
user10864482
@SamuelWakeman what i would do is create a css class to specify minimum size on grid rows and set another css class to get part of your image as background image
 
user10864482
if that make any sense
 
but uou can modify a session no?
 
user10864482
@tahtoh from server side yes. on the client it appear as a key in their cookie. The key itself is encrypted. The client cannot modify it if thats your question
 
6:08 PM
ok thats what i wanted but does that work with spa's too ?
 
user10864482
@tahtoh spa as single page application? yes, it doesn't matter. In your implementation I guess you are generating form on the fly, correct?
 
yes
 
user10864482
@tahtoh then you just need to modify your form to add a hidden field and insert the value of your nounce in it
 
with this if i put validateantiforgetytoken datanottation on the web api it should work right?
 
user10864482
what is the purpose of your web api?
 
6:12 PM
well everything from logins to registrations etc
 
user10864482
@tahtoh then yes, you would need to change your api but at that point I think it would like to point out that a api per def is stateless. I think a jwt token would be more appropriate. Do you have different user role in place?
 
THE THing
is a token is better
but token = suceptible to being seen
so im thiking of sending the token in a cookie
so you cant modify it
 
user10864482
@tahtoh it's serve a different purpose. Security is not about obscurity
 
but this opens up crsf attacks
 
user10864482
cookie is pretty visible too
 
6:17 PM
but you cant modify it
 
user10864482
the token is set on the server side and given to the client
 
user10864482
if the client modify it, its no longer valid, then it serve its purpose
 
but i can take your cookie
 
user10864482
@tahtoh no
 
if i have access to it and use it
i mean token
 
user10864482
6:18 PM
@tahtoh if you have local access you are a god yes, but at that point the whole security system failed
 
ugh security is quiet hard
 
Do you need AD B2C for web api authentication??
 
user10864482
@tahtoh yes. don't try to reinvent it yourself, use a proven framework and implement that
 
what could you advise me as free frameworks?
ive seen auth2
oath2
 
user10864482
thats fine, you could use that, oauth2
 
6:22 PM
last question
where does this differ from using the built in token return of .net core @user23333
 
user10864482
do you mean like the one described in this article?
https://developer.okta.com/blog/2018/03/23/token-authentication-aspnetcore-complete-guide
 
user10864482
6:34 PM
Question
I need to perform a bunch of insert & update. The context is that I'm performing a certain task on a bunch of files. Once the files are processed I need to interact with the db. The thing is I have around 80,000 files to process and every file have 2 entry in the db.

Would it be more efficient to do 2 transaction or 1 file equal 2 query and process them as I process the files?
 
has anyone here successfully achieved this?

1. Create a web api and Authorize it using Azure AD
2. Request an authorization token from azure for that api
3. Used that token
 
Why, I did it just yesterday
 
im so sorry that i've been on here like a broken record...could you possibly show me the steps you did to achieve this?
every tutorial has you create a client to consume that api...that's not real world.
 
like, what scenario are you doing
it's different if you have a piece of native code running on the user's machine
 
to start, all i want to do is authenticate against my ad tenant using the [authorize] attribute in a .net core web api
nothing native
 
6:40 PM
well, who's doing the authenticating
like, who's giving you this token
another web api
 
azure ad
 
Who is consuming your API
 
for testing, me
eventually i will hand out instructions for others in the organization to consume it
 
And then they do this
will they be using a web site
or a native application
or what
 
they have their own applications, and want to pull data from my api
we are all on the same AD tenant
 
6:42 PM
@user23333 fewer transactions is faster, but this matters less if you only have to do it once.
 
so for the first example, i want to use postman
create api, authorize, get token with postman
 
user10864482
@Grace it's a one time thing and it will run outside rush hours, ty for your reply
 
User, you might find it easier to make each set of queries per file a transaction, so only the bad ones fail
var clientApp = ConfidentialClientApplicationBuilder.Create(clientId for this app)
.WithAuthority(AzureCloudInstance.AzurePublic, "common")
.WithRedirectUri("(your redirect uri)")
.WithClientSecret(clientSecret)
.Build();

var token = await clientApp.AcquireTokenForClient(new[] { "https://microsoft.onmicrosoft.com/client id for the app I want to call/.default" })
.ExecuteAsync();

var clientApp = ConfidentialClientApplicationBuilder.Create(clientId for this app)
.WithAuthority(AzureCloudInstance.AzurePublic, AdalConfig.Tenant)
 
ill see if i can run that, going to create the web api using the default asp.net core web api template
 
Heck, this is running in a console app on my machine
(you're not supposed to use this flow on apps running on someone's computer, but sssh)
but that is the flow you would use if someone else had a server for calling your API
 
6:47 PM
thank you grace
 
hello guyz
 
also, that new[] { "https://microsoft.onmicrosoft.com/client id for the app I want to call/.default" should be "the url copied from going to your app registration in azure and copying it from the Expose an API tab"
but notice that my client ID is different form the ID of the app I want to call
 
Can someone explain to me what is the FTP protocol?
I'm a little embarrassed to do this question...
 
The File Transfer Protocol (FTP) is a standard network protocol used for the transfer of computer files between a client and server on a computer network. FTP is built on a client-server model architecture using separate control and data connections between the client and the server. FTP users may authenticate themselves with a clear-text sign-in protocol, normally in the form of a username and password, but can connect anonymously if the server is configured to allow it. For secure transmission that protects the username and password, and encrypts the content, FTP is often secured with SSL/TLS...
 
AH
I meant in simple words
maybe
hahaha
 
6:52 PM
like, what do you want to know
it's a way for computers to send files over the internet
 
yeah, but it's implementation in a network
yep, how does it work
 
like, you want to know how the bytes move over the network
 
@grace to keep things simple, this is how im creating the api imgur.com/a/ghhQJaK
 
yeah, yes that is the idea
 
@user23333 yes
 
6:54 PM
better get reading, buddy tools.ietf.org/html/rfc959
 
user10864482
@tahtoh then not that different but I would argue that jwt serve a different purpose and that in your situation I think that is more appropriate
 
Follow your heart, Tom.
 
@Grace thank u!
 
@user23333 you mean using jwt instead of oauth2?
 
But know that at the end of the day, you're going to have your actual API that people call, and a client app that you use for testing to actually get the the token from
 

« first day (3167 days earlier)      last day (1773 days later) »