« first day (2895 days earlier)      last day (2275 days later) » 
00:00 - 16:0016:00 - 00:00

16:14
Do you mean a project architecture? Like front/back in the same codebase?
We have like 6 different repos for our codebase
So I'm reading about how to prevent brute force attacks on login info. The thing that seems most popular is to show a captcha after X attempts. - But isn't this just the same as just adding another n-bits (where n is the log of the input size) to the password? IE if one has to insert 2 sub 1000 numbers, there are about 20 extra bits - similar to 2.5 extra characters added to the password.
Joe
Joe
@KevinB this is like some cloud project with a lambda serverless node application, and some tests, and some helper scripts... idk seems a little wonky to me
@SterlingArcher i would prefer something like that, "if it belongs in a different isolated project, put it in its own repo" thats my gut
but here its kind of like splitting out the tests and the deployment scripts and the docker stuff into sub folders with their own package json... seems wrong
user1596138
user1596138
I saw this on FB and I do not get.
user1596138
What does this mean
Joe
Joe
16:22
lol
talking about an extra brace, breaking the code
@LuckyKleinschmidt No idea, this depends on the context.
user1596138
@Joe vs a large program?
this is the context
user1596138
> Who would win
user1596138
The comments are jus full of cringe
a computer program with millions of lines of code will blow up if it has one curlyboi with no friend
Joe
Joe
so its a dumb joke haha, saying just that ^^^
doesnt matter how many billions of lines of code you wrote if your missing one bracket
user1596138
@KendallFrey Okay. That makes perfect sense.... Now who is competing :O
> Only those who have ever actually had to write code from scratch will truly understand the struggle
user1596138
> Works at: The Krusty Crab
16:25
@LuckyKleinschmidt those two
Almost every dev writes code from scratch
curlyboi win everytime
Joe
Joe
its just a dumb meme format thats popular
@SterlingArcher idk i use js mostly
Joe
Joe
and i love it
user1596138
Obama writes scratch
trudeau explains quantum computers
anybody know about ckeditor and its fileupload freatures?
I want to upload images to cloudflare
lmao omg.
Hi everyone
16:30
@Christopher Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@Loktar i made one of these memes the other day
When did you get a fryer?
user1596138
@Loktar What is this lol
a dank meme lol
16:31
hi is anyone here familar with vue-fullpage,js?
deep fried
is that the term for them?
user1596138
Thats what I meant
sorry I meant vue-fullpage.js
I basically posted a question that hasnt been solved for ages.
user1596138
> The official vue-fullpage.js component for Vue.js
user1596138
16:33
Seems legit.
hmmmm yh but I wish the documentaion was better
user1596138
@Christopher Looks like the creator of FullPage.js is offering you advice. Why not open a chat with him or invite him here
user1596138
That's who "answered" your question
so how do I invite him here?
user1596138
16:36
You can figure that out lol
user1596138
@Loktar check out this dank tapestry we got society6.com/product/omaha-nebraska-city-map1246437_tapestry
user1596138
Its Omaha in a slightly GTA looking map
heh that's kind of cool actually
user1596138
We got a Fort Wayne one too. One for each of our home towns
@SomeGuy Just for the sake of learning, I want to try writing something like a very small version of PhantomOS in Rust or C. You in? Long term not like right now ~6 mo time just very basic IO on the vm.
16:50
Hi all I need some help with react props
I am want to pass accessToken and save it in AsyncStorage
When I do this.props.accessToken then I get accessToken, idToken, bearer everything
See screenshot:
How can I get just the accessToken ? this.props.accessToken gives result seen in above screnshot
If I do this.props.accessToken.accessToken I get error
user1596138
Use your devtools.
I am using devtools see screenshot: imgur.com/a/6YISJ9X
user1596138
Sep 5 at 16:22, by Kevin B
Of particular interest, take a look at the Chrome Developer Tools section -> http://facebook.github.io/react-native/docs/debugging#chrome-developer-tools
How should I look if I am getting right props ?
user1596138
So just open this.props and see what's in it :P
16:56
I am using react native and the changes I make are seen in emulator
user1596138
You showed me React devtools. Select the component, look at it's props
element.attributes returns a NamedNodeMap, so I can't forEach it
but, if I decided that I wanted to, is there a way I could make that work?
@LuckyKleinschmidt see the code and emulator -> imgur.com/a/buC7U2W how can I leverage dev tools to see the props
user1596138
@funjoker You just posted a screenshot showing props chat.stackoverflow.com/transcript/message/43993450#43993450
user1596138
There are props right there. Further reading how to debug react native chat.stackoverflow.com/transcript/message/43993454#43993454
17:02
@LuckyKleinschmidt See this screenshot -> imgur.com/a/xwMcFoP I searched for login component but not able to view props
user1596138
The props are shown in your screenshot for the Component you selected
user1596138
Maybe you want a different component. Maybe it doesn't have the prop you're expecting. I can't help tho
if anyone else is interested, I'm game. For those unfamiliar with Phantom OS its a Russian OS written in Java which takes memory snapshots as it runs. I encourage you to look at it at en.wikipedia.org/wiki/Phantom_OS
Obv, without Java my goal will be to either go "Everything is a ref"
sounds like the best surveillance tool ever
17:07
@KendallFrey Do you mean Windows?
Look beyond the "Russian" part its a very different take on an OS.
Jetbrains is almost entirely Czech and Russian
and almost all back-end devs use their IDEs
and volunteer to send their usage data to them
I don't distrust Russian devs
I don't distrust Huawei either.. maybe I'm just overly trusting lol
17:23
169
Q: Array state will be cached in iOS 12 Safari, is bug or feature?

abelyaoToday I found some problem of Array's value state in the newly released iOS 12 Safari, for example, code like this: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <title>i...

@ShrekOverflow The global address space is something I'd want to investigate more
> Security is achieved through the absence of pointer arithmetic and the inability of an application to get linked to an object other than by calling a public method.
Hi guyz, how can i pass an additional value in middleware in express ??
@forresthopkinsa Which is why I want to try writing one in Rust or C 😃
Heck yeah, Rust would be fun
router.get('/profile',[passport.authenticate('jwt',{session:false}),middleware.r‌​ole('HERE I WANT TO PASS')],profileController.profile);
17:26
Ok C would be a bit massochistic
hahaha
@user7747472 format your code with ctrl-k
router.get('/profile',[passport.authenticate('jwt',{session:false}),middleware.role('HERE I WANT TO PASS')],profileController.profile);
eh I guess that helped a little
bad idea
router.get('/profile',passport.authenticate('jwt',{session:false}),middleware.ro‌​le('HERE I WANT TO PASS'),profileController.profile);
17:28
I don't think if it even supports arrays or will flatten arguments
so how can i check if the user is admin or user or moderator .shall i create separate middleware for each of these?
lul I don't know Express
you think they'll ask about Express @ShrekOverflow
@forresthopkinsa yes.
oh that, no xD
@forresthopkinsa we don't do technical ques
but we ask about your experience
17:29
hahahahahhahahaha
okay!
we let that in the exercise
user1596138
Some extension that stops when a XHR is sent and allows you to edit before sending?
user1596138
I have a very specific need.
mitmproxy?
17:34
@user7747472 you can pass values to middleware
Fiddler2 If you are on windows.
just make sure it returns a function
fiddler4 pls
user1596138
@ShrekOverflow No. I have to do in the browser
user1596138
I'm on Fiddler V5.X anyway
17:34
I think we had this conversation like a week ago
@rlemon how?
@LuckyKleinschmidt Fiddler will capture you browser trace
it's like MITMProxy
user1596138
@ShrekOverflow No it won't, I have a very specific need
user1596138
I have to catch and edit it for reasons that are hard to explain lol
user1596138
17:35
It's just something silly
I don't think so, there is a generic handler
in chrome.* apis that can be used for this use-case though
user1596138
This is what I need. Or Tamper Request or whatever from wayyyyyy back when
user1596138
But it doesn't work anymore
17:36
function MyMiddleware(...roles) {
  return function (req, res, next) {
    // the returned function is what is called on the route
    // check against the roles
  }
}

app.post('/foo', MyMiddleware('rlemon', 'kendall'), handler);
developer.chrome.com/extensions/webRequest you'll probably need to use that unless you want to hijack the prototype.
user1596138
I know how to do it in Opera lol
user1596138
I'll just do that
@rlemon, thank you :)) that worked
18:15
random personal project shill: been working on this for a couple of days, all contributions are welcome! github.com/SaitamaSama/Centaur
pls less weeb in the readme
there's relatively waaay less weeb
 
1 hour later…
19:24
I'm thinking on moving from PHP(Laravel( to NodeJS, is there anything better than Express to build a web app?
better? probably
as much documentation and community? probably not
why the move?
user1596138
Isn't recruiter spam against TOS for jobs.SO?
wha?
user1596138
> “A bat and a ball cost $1.10 in total. The bat costs $1.00 more than the ball. How much does the ball cost?”
> A lot of people answer, "$.10". It's wrong. The answer is $.05.
user1596138
19:36
I must be a tard because I swear $1.00 + $0.05 is $1.05
user1596138
Yep, I'm a tard. I was homeschooled, judge me
user1596138
I wanna delete that. But I wont
that is a tough one tbh
susan is one of four children from her parents. Three of their kids are named "North", "East", and "South". what is the last one named?
19:42
susan you dumb fuck
it gets enough people
Susan
The bat one is stupid, "$1 more than the ball" implies that the bat costs $1 more than the cost of the ball
yes, that's the question
yea, what's stupid about that?
How is it $.05
19:43
lol
if the ball was ten cents, then the bat is $1.10, and the total is $1.20
user1596138
Yea so the ball cost 0.5, the bat cost 0.5 + 1.00 (1.05)
ball is 5 cents
what is .10 + 1?
bat is $1 more, or $1.05
$1.10 for both
19:44
it's 1.10, and the bat can't possibly cost 1.10
if the total is 1.10
user1596138
If the ball cost 0.10 and the bat cost 0.10 + 1 the total would be $1.20. I really didn't get it either
No it's not $1.05 it's $1 and the ball costs $0.10 >:(
user1596138
Lemme post the sentence before this on this article haha
@SterlingArcher but $1 is not $1 more than $0.10
user1596138
> index funds have an enormous psychological advantage for people who are not inherently good with math. ... To demonstrate it, take the so-called bat and ball question.
19:44
If somebody said "oh that piece of chicken is $5 more I'm not giving them $5 + the cost of whatever came before it
user1596138
So yea. Apparently I want index funds. Because I'm dumb
@SterlingArcher yea, that's just your lack of understanding
most people would clue in it's an additional $5
I blame america
yea dumi
you ignored one part of the equation
19:45
I ignore many things
you just looked at adding up to the total, but ignored the x is n more than y
user1596138
Anyone using Robinhood btw? Thoughts?
"The bat costs $1.00 more than the ball."
If the ball is $.10, the bat is $1 and it costs $1.10
user1596138
The bat is BallPrice + 1
user1596138
Idk if that's offensive tbh haha
19:47
Nobody would ever follow that logic at a real store
user1596138
If the ball is .10 the bat is 1.10
@SterlingArcher again dude, I'm pretty sure it's just you in this one
user1596138
And nobody would ever eat 77 apples, but people in math books are fuckin weird
pats @SterlingArcher on the back
19:47
oh son of a bitch
I was so vehement
@SterlingArcher It's okay to be wrong
dammit I was wrong
LOL @SterlingArcher
no it's not
19:47
y = 1.10 - x
1.10 = x + y
wrong, and very publicly so
user1596138
@SterlingArcher Me too lol. Look at my original message I was so confident
calling yourself a tard is confident? makes notes
user1596138
> I swear $1.00 + $0.05 is $1.05
user1596138
Oh shit I actually answered the question by mistake
user1596138
19:49
Just realized.
nah i'm bad at forming equations
there's an x + 1 belonging somewhere in there
user1596138
@KendallFrey Except that one isn't even math
at least I'm not 80mph dumb
user1596138
It's like. A foot is a foot how far is a foot.
19:51
@LuckyKleinschmidt well, it's at least some kind of dimensional analysis
or, basic arithmetic depending how you look at it
x = bat, y = ball

x + y = 1.10
y + 1 = x
y + y + 1 = 1.10
y + y = .10
y = .5
you can also solve it with statistical approximation
assume x = 0.10, answer = 1.20
assume x = 0, answer = 1
user1596138
Thats how I think most people do this type of thing
user1596138
19:53
And most simple math in general.
so the answer is in the middle
I asked my brother the question and he immediately got it right, and he added, like a typical finance major... "Then add tax"
it's the "lion in the desert", or binary search
standard divide and conquer
@SterlingArcher I bet he fucking murdered his sister too
what
that's my sister too
you heard me
user1596138
19:54
You have a sister?
having
user1596138
Zirak just bets she ded. Until it's confirmed..
I have 2 siblings and I'm the youngest
@RyanKinal happy belated birthday!
I initially shut out the 1 dollar more part, which of course threw me off
user1596138
19:57
If Sibling One to Sibling Two's age is a ratio of 2:4 and One is 30 years old... How old is nah I'm not doing this
i assume most who get it wrong do the same
@LuckyKleinschmidt there was one like this that i spent way too much time on
@SterlingArcher lol rekt
user1596138
lmao
user1596138
Or .5:1
19:58
A princess is as old as the prince will be when the princess is twice the age that the prince was when the princess’s age was half the sum of their present ages.

What are their ages?
think it was this one
user1596138
I can't even read that
I had a graph to explain it and everything
user1596138
Wait there is actually an answer?
So what's the answer
user1596138
Aren't there a lot of answers?
user1596138
20:01
Is the answer essentially a ratio
user1596138
Okay
but presumably an integer ratio
user1596138
4:3
user1596138
20:01
Idk. Prince and Princess don't even look like words anymore
I hate it when that happens
yeah the website says it's 4/3
user1596138
Im trying to summarize my conclusion but I can't seem to prove it to myself
idk how you worked it out
user1596138
20:03
So Idk. How do you solve this easily?
algebra mainly
i think
user1596138
Prolly
random(0, 10):random(0, 10) and lucked out
I had like a sort of intuitive timeline graph to explain this but this was years ago
I'd use my whiteboard but it's got wiring diagrams all over it
20:04
did you trial and error?
@SterlingArcher mine has squan algs, nerd
user1596138
I was never sure at all
user1596138
Just one of a few answers that popped out when I read it the 40th time
user1596138
Then I immediately got lost again
user1596138
I've only managed to "prove" to myself that it's NOT 4:3 :O
user1596138
Lmao
20:09
well that's odd
user1596138
Wait a minute
user1596138
Does "0" count as an answer
user1596138
I think it does.
user1596138
Ahaha yea it works ;P
user1596138
Unless there is such a thing as half of zero
20:12
lmao
-1
Q: JS/JQuery branch prediction

DirkWhen the server returns a 429 "Too many request" status, the alert will pop up but the page gets changed to /ProjectCanvas. "OK" never gets printed. $.post("/createProject/", null, ).fail(function() { alert("You are doing that too much. Please wait before trying again."); }).done(function(d...

@LuckyKleinschmidt why would there not be
user1596138
So what is that then?
half of zero?
!!> 0 / 2
@KendallFrey 0
user1596138
20:23
Yea, zero fits all the criteria
user1596138
They are both zero. lmao.
user1596138
The "When"s in the question are immediately met.
user1596138
Maybe not? Idk I am tired af have already messed up like 3 problems today
user1596138
!!afk taco bell
@ShrekOverflow Honestly, I doubt it - I've already taken on more than I think I can manage in the coming few months. I don't mind doing having access to the repo and perhaps doing some reviews every now and then, though (and who knows, maybe even contribute if I can make the time :P)
Coming off of GSoC, I'm feeling a bit jaded with OSDev, honestly :P
20:32
@SomeGuy it doesn't have to be OSDev I am just fascinated by the concept of continous memory snapshots
its essentially thinking of the persistent storage (which with SSDs is addressable as RAM anyway) as memory.
Ah, PhantomOS specifically is the key to your inspiration then, I didn't realize that
That does sound interesting
@SomeGuy Heh
I am more or less excited by Rust's ownership concept and how that'd seamlessly apply in the entire project.
But I think you have better understanding and knowledge of those things than I do @SomeGuy
For the next few months this will be in the research phase for me, as I'll need to focus on writing stuff.
user1596138
@KendallFrey this is how I knew but it's still hard to wrap my head around it piece by piece dan.hersam.com/2006/11/22/a-rather-difficult-brain-teaser/…
user1596138
The main issue for me was the damn english in the question. Getting lost in prince/princess X6
find/replace x/y
user1596138
20:46
Well. "knew". This is how I got an intuitive guess and blurted it out
21:00
hey friends. in e commerce applications, when a customer receives notification 🔔 about 'delivery', 'out for delivery'.
So how does that "notification" table stay updated?
Is there any scheduled query fired everyday everytime that fetches today's delivery date orders and notify the customers?
@Meredith it was something to do with the cache break server side..when I left a trailing slash on the api route..the req=24fwe4r param wasn't appended correctly
which caused the server to send a redirect, was checking for the req param
21:28
@ArunRaaj depends on the implementation
if you want notifications to be pushed to the customer via an icon on the web page (such as the inbox icon on SO) without the webpage being refreshed, you'd need websockets to push that to the client in real time, or a polling setup using xhr. but you'd then need to somehow track whether or not the client has viewed said notification
so what you can do is setup a notification queue or system that holds notifications that the user hasn't seen yet, then once the user has seen it, mark it as read.
When the order status changes, simply push a notification to the queue
21:45
hi
I'm working on a grid layout in react native, easy so far just wrap two views in another view.

But each item in the grid are bunched together rather than stretching to take up the whole view.
any hints on what style setup to use for that?
I have assigned alignSelf: 'stretch', to each item in the grid but doesn't effect the item width or height in this case
pretty much this is a gist of the view - gist.github.com/BrianJVarley/495d94849d1f684f8d3a84ce76b4511b
22:01
scratch that, needed to add flex values in each column
thanks, it's not live notifications, it's like when a patient booked an appointment a week ago, u notify them today to their 🔔 icon that u hav an appointment today.
So u hav to store the notifications first into a table
:43996662
@KevinB
when they load the page
or app
ys
when they load the page, login
yeah so... i don't understand the question then
22:04
so would it be like an ajax call made from the client side?
it can be
but you can also just return that notification icon as active from the server
ajax call can become stale, wss better
how does it happen in facebook, what's ur guess?
do they use ws?
i would assume
but
thankfully we have this tool at our disposal that will tell us what is being sent to/from the browser
F12
so we don't have to assume or guess
if u use ws, can "status" of notification be changed to "viewed" in "notification" table if the user has viewed it?
22:08
yup
just send a message back to the server when the user performs an action that indicates they've read it
ok so who will initiate it, will user request for notification or it will be send from the server first?
both are viable
if its real time, better server pushes out the notification
by ws, can server send message to a specific user?
if that user is currently connected, yes
22:14
how is the user identified? by socket id?
Is there a way to trim images in JS, front end, to trim automatically white spaces, transparent spaces and so on?
@LeandritFerizi Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
1 hour later…
23:24
!!>(073).toString()
@Rick "59"
!!>(73).toString()
@Rick "73"
!!>(073).padStart(1,"0")
@Rick "TypeError: 59.padStart is not a function"
23:32
!!>parsInt(00073).toString()
@Rick "ReferenceError: parsInt is not defined"
user8871181
I have a question that's not entirely relevant to JavaScript:
My city's introducing an app that displays where there are available on-street carparks. I would assume this works by having sensors detecting whether a car is presently occupying the carpark in question and then sending that info to databases on the server. My question is: how is data sent from a physical object, like a sensor, to the server?

Another example, most city's have public transport - people swipe a metro card and that reduces the current balance on their card. How does the server get this info?
23:49
morn
@demonhunter24 For an IoT sensor like might exist in a carpark, it's usually through a cell data connection or wifi. For a metro card, I'm guessing the sensor is connected to a network mostly like a regular computer.
user8871181
"IoT" - first time I have heard about those. Already capturing my interests. Any good reading material?
00:00 - 16:0016:00 - 00:00

« first day (2895 days earlier)      last day (2275 days later) »