« first day (2894 days earlier)      last day (2045 days later) » 

12:00 AM
link?
 
It was in the talk with him, krauss, nye, dawkins, M theory guy on the same stage (Arizona uni's origins project)
 
@Meredith Ok, I know, it's weird
 
Is the event called multiple times?
 
@copy v86 is down
 
Hi @ShrekOverflow
 
user8871181
12:10 AM
I think copy.sh is down too
 
It works in US so some DNS / Networking issue it seems
and with that said when v86 becomes more common I can imagine people doing
 
user8871181
School's MWG not configured properly
 
npm install @v86/arch-linux
 
I'm procrastinating as usual
@ShrekOverflow copy.sh isnt working for me and im in us
 
@ShrekOverflow that sounds like a blast
 
12:11 AM
@JBis Aren't we all
 
Dawkins was very embarrassed during the talk tbh he seemed like he felt out of place.
Have you seen his convo with Richard Dawkins though 😃 ?
It's hillarious as he talks about not having time like Dawkins
 
LOL
what a guy
 
all of that aside, he still is pretty active and at-least tries to educate people and is fairly good at getting people curious. I'll give him that.
 
yeah, no, he totally gets points for getting people interested in science, he's genuinely very good at that
it just has a side effect of making him kinda bigheaded
 
hello
 
12:23 AM
@NeonEmmanuel 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.
 
have been using vue.js for sometime now , and i am facing a small issue which is so discouraging, say for instace i have this route project.test/cars , if i go to that link through my home page it loads properly, however if i dont, i see a json response, i actually made my controller to return a json response, i am using laravel 5.5 as my backend and vue.js 2.0 , my question is - is there no way i can make both either method of access the route display as it should?
 
 
morn
 
user8871181
Yeah seen that xd
 
user8871181
1:01 AM
That moment when you finally get an annoying piece of code to work properly..
 
Y u no play SpaceX livestream?
 
Easier to just read the updates on text.
I don't get it wtf happened to text announcements
 
@ShrekOverflow That laugh was like "Although its embarrassing, no ones gonna blame me for it cause you know its true"
 
@JBis I find that sad.
 
1:17 AM
I honestly don't get why Microsoft doesn't give up
They have so many other things and a browser isn't gonna help them.
 
user8871181
*** they ruined MC after they bought it - only in for the money
 
Then again you can't expect intelligence from a company who makes you pay monthly for them to prevent security problems.
@demonhunter24 Lets see what that do with GitHub.
If they lay a finger on it the community will flip shit.
FUCCCCKCKKK i don't want to do work
 
user8871181
@JBis what're you currently working on?
 
@demonhunter24 Random HW. Social studies. (In high school)
Its not even a lot I am just in that mood
 
 
1 hour later…
2:33 AM
@JBis They need to secure the platform and a sandboxed browser will help
@JBis Thats for a 11 year old operating system
Android barely existed back then
Code isn't free, especially legacy code on an attack surface of Win32.
Security wise Win32 desktop apps are a time-bomb the attack surface is huge, the implications are catastrophic.
 
user8871181
What do you think is more important: development time or code quality.
 
Code quality is a tool used to decrease development time. Development time directly incurs development cost, and minimizing cost is a primary goal.
 
user8871181
2:53 AM
So writing a hundred lines of crappy code is OK if dev time is limited?
 
yep, and if maintenance isn't the priority
but there will be a cost down the line that you need to consider.
 
user8871181
what about performance?
 
you can write terrible, fast code
and beautiful, slow code
it another NFR that you need to consider
 
I don't understand [this error](https://pastebin.com/pFTvUYQy).
I'm trying to run [this GitHub repo's](https://github.com/sherjilozair/char-rnn-tensorflow) code.
 
@payne open an issue
Side note: Does anyone know about the Shopify sneaker/other clothing bots?
Doing some research about it
 
2:59 AM
parser = argparse.ArgumentParser(
                    formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# Data and model checkpoints directories
parser.add_argument('--data_dir', type=str, default='data/tinyshakespeare',
                    help='data directory containing input.txt with training examples')
how does this work in Python?
it takes the "args" of the main (passed from command prompt) and treats it ?
 
@payne "Python"
yet "JavaScript" chat
I see an issue there do you?
 
OOHHH
my bad
 
No problem :)
 
a simple missclick :)
 
Good luck with your issue
 
 
2 hours later…
4:37 AM
@JBis Yeah the debate finished lol. We both learned something.
 
@DavidKamer I learned a couple things thanks to you guys. I thank you for that :)
Saw the alert but gtg to bed now. Gn. :) Till' next time
 
user8871181
5:18 AM
Why does everyone think web development is 'hacking'!?
 
Rob
Do they?
 
user8871181
yeah lol, I will be working on some CSS and they be like "what are you hacking".

speaking of which.. I have finally learnt all the ins and outs of flexbox
 
6:19 AM
Hackerman!
!!giphy hackerman
 
@demonhunter24 What's really hilarious are the scenes in movie where the lovable comic relief who's really good at computers is flying through pages of gibberish and making changes to it at lightning speed, only to see that it's just html they're modifying
 
This should be an easy one:
If there is no index page on my directory, it defaults to a directory listing. But I added an index page. How do I direct a remote developer to my directory listing?
 
@JonathonPhilipChambers Hmm.. I think you'd need to override some default value for that
Like make a special address to see the directory listing
Not sure how you could do that though
 
Rob
It'd also depend on what you're using as your server
 
6:37 AM
Thanks for all your help. My server is with Netfirms. In the end, I just renamed index.php, told him what the new name was, and said that would explain any broken links to it
 
Rob
Oh, yeah.. having it hosted by a third party would make that difficult.. if not impossible. Most likely would require changing the configuration files of apache/nginx/iis/whatever's being used
A quick look at apache's docs doesn't apply that it's possible, at least it's not immediately obvious how
 
Sometimes a quick solution is better than a good one
 
Rarely, but still sometimes
 
Also, I wouldn't recommend you ultimately keep the directory listing up
 
6:41 AM
This is just a dev link directory
 
That'll make your application easier to hack into
ok ok :P
 
Exactly, it will be deleted once it oes live
I could make it live right now, but it has Stripe and Paypal integration, so I think geisterfurz007's comic sums up exactly what doing that would do
"Programmers. We yell at our computers, so you don't have to."
2
 
Oh that's how it should work?
I always do "We yell at our computers so you may as well just do so too"
 
Rob
"There are only two kinds of languages software: the ones people complain about and the ones nobody uses"
 
raises hand
 
6:46 AM
Anyone got any more pre-launch tips for me?
Satirical or genuine. Just make sure you specify which if it's not clear to a less experienced dev such as myself.
 
There are really only two problems programmers deal with: naming, cache validation, and off-by-one errors.
 
Genuine laugh out loud on that one
 
Rob
@JonathonPhilipChambers Never deploy on a friday. Both satirical and genuine
And.. make sure you not only have backups, but you've tested your restore strategy.
 
@JonathonPhilipChambers make sure you always have a plan for when things screw up in your program unexpectedly
full out logs, sending e-mails, stacktraces..
 
Well, I have a database, and I have php files. The database routinely backs up because that's the only way I know how to sync the live with the local
As for php files... yeah
 
6:52 AM
It's embarassing when that happens, but trust me, you don't want to be caught with an unexpected error you can't fix
 
They don't update as often, but I probably do need some sort of auto system with that
Any recommendations?
Just version control for local php files
 
Rob
Haven't used PHP in a long time, but just search for CI/CD solutions
 
I just meant small files in general
Here is the dev link. There's no sensitive information there, it will be deleted soon, and the database it's connected with is a duplicate. handcraftedgifts.net.au/test
Can anyone figure out why you can't access the "includes" folder?
I think it's to do with the .htaccess file, but I can't figure out what
 
 
1 hour later…
8:03 AM
Happy Birthday @shmiddty!
11
 
user6718998
8:30 AM
Hi there. anybody familiar with Material UI ?\
 
@Thewise 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.
 
8:40 AM
@Thewise Just ask your question
 
8:50 AM
Ohai
@BenFortune that's all he wanted to know
 
@BenjaminGruenbaum are you in Amsterdam? :D
 
@bitten Scotland I think
 
awh too bad
that's the wrong part of the world
 
Oh he's going to Norway too
 
(disclaimer: Scotland is a nice place, i have family there.. it's just that Ben shouldn't be there right now)
 
8:57 AM
Nor in Amsterdam...
 
@bitten oi what's happenin so bad that one shouldn't be tere
That sounded concerning cause I have a mate in Scottish army
 
@KamilSolecki nothing :eyes:
 
9:23 AM
posted on September 18, 2018 by Mathias Bynens

figure { margin: 1em 0;} figcaption { text-align: center; font-size: 90%; } figure, img { max-width: 100%; height: auto; } DataViews are one of the two possible ways to do low-level memory accesses in JavaScript, the other one being TypedArrays. Up until now, DataViews were much less optimized than TypedArrays in V8, resulting in lower performance on tasks such as graphics-intensive workloads o

 
Hi my friends
again noob question: when the user calls a route of express ( eg. "/login" )
I want to set a boolean loginAlreadyVisited = true;

How can I check next time when the user comes back, that he already has visited login?

only possible with sessions?
 
@Suisse Yep
 
because its stateless? (is that the right word?)
 
Think of sessions as the memory of a single user's connection to the server
No, it would no longer be stateless once you need to save information technically
Though sometimes logins are overlooked because otherwise a lot of applications would be considered stateful when they would be stateless
 
it is not about the loginVisited boolean..

actually I have a route: "/startOPCserver"

there I have

const OPC = opcServer.initalize();


and somehow I want to have access to this same instance of the opcServer also in other parts of my express app..
 
9:31 AM
Then you'll need to first check if it has been created
If so, you recycle that instance
Otherwise, you create it and return it
 
yes @Neil right! how to check if its already created? with sessions?
 
No, because such an instance would be part of your server
Think session if it is information you will have for every user connected
 
that means, it has to be initialized in the app.js so that it is available in all routes?
 
If it is one instance throughout your web server, it is not information to be saved in a session
 
yes it is only one instance
 
user6718998
9:54 AM
anyone would know what is wrong here? material UI
 
1 message moved to Trash can
@Thewise Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
@Thewise Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
user6718998
v\
 
1 message moved to Trash can
@Thewise Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
Use ctrl + K before sending
 
user6718998
not working for mac
 
9:56 AM
Also that has nothing to do with MUI
 
user6718998
 
user6718998
anyone would know what is wrong here? material UI
 
@Thewise Ok, we're experts but you have to admit this is an incredibly vague question
If I gave you a 2 page essay on the presidents of the united states and said, "What is wrong here?", what do you think I'm asking for?
 
user6718998
I get mongoldb error: 'Argument to $skip cannot be negative',
 
user6718998
 
user6718998
10:00 AM
reedited code
 
Well seeing how you didn't specify any parameter $skip, I would take a step back and ensure I'm calling everything with the proper parameters
 
user6718998
I get error when I CHANGE table page: "TypeError: undefined is not an object (evaluating 'data.items.map')"
 
not using mongo would probably be a good choice as well :p
 
Wait, you're storing mongo query parameters on the front-end?
 
hi all,

the theme flatkit on themeforest uses echarts. it keeps bars draggable in bar chart. i need to set draggable to false. nothing is working
can anybody help?
 
user6718998
10:40 AM
@BenFortune no, backend with express
 
@Thewise So what does this mongo error have to do with your code?
 
user6718998
No idea
 
fuck me
i'm tapping out
 
user6718998
but I noticed if from productconfigs, If I. change page: number to 1, it will show the item I need
 
user6718998
otherwise, I click any button it will redirect me to error again
 
10:57 AM
@Thewise Fix the error first
Then you can fix the redirect problem
they may even be related (I doubt it, but hey, there's always a chance)
 
const write = fs.createWriteStream(<path>);
I am calling that within a docker application based on Node
and it writes files in a mounted volume
however these files that get written are owned by the root user
is it due to Node or docker?
 
11:38 AM
@Nerva If I'm not mistaken, it is given ownership based on the user who launched node
I don't think docker has anything to do with it
 
Guys, how would I use setState in componentDidMount?
 
1 message moved to Trash can
@Shamaran Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
componentDidUpdate(prevState) {
        if (this.state.item !== prevState.item) {
            this.setState({ item: 'something' });
        }
    }
This just crash my browser, Maximum update depth exceeded
 
@Shamaran Do you understand why it did that?
 
@Neil thank you
 
11:50 AM
@Neil I guess it get caught up in a infinite loop, not sure why tho
Let me show you my full code, what am I missing?
state = {
        cart: JSON.parse(localStorage.getItem('CartLocalStorage')) || []
    }

    componentDidUpdate(prevProps, prevState) {
        if (prevState.cart !== this.state.cart) {
            this.setState({ cart: JSON.parse(localStorage.getItem('CartLocalStorage')) || [] });
        }
    }
 
@Shamaran does prevState ever get set to "this"?
not that that would cause a recursive loop
 
@Neil Sorry, I'm sorry but I'm all new to this, just learning react and javascript in school
 
@Shamaran don't apologize for being new, we were all there once
 
React says like, "You may call setState() immediately in componentDidUpdate() but note that it must be wrapped in a condition"
And as far as I understand, it is wrapped in an if statement?
 
well that "wrapped in a condition" part means it may be recursively called
in other words, make it so that if it were to be recalled, the second time, the condition fails
I assume in the if statement before calling this.setState, you should update prevState
make it so that prevState.cart === this.state.cart
 
12:01 PM
How would I update prevState?
 
prevState = this.state I assume
 
Thats what I thought.. "Expected an assignment or function call and instead saw an expression no-unused-expressions"
componentDidUpdate(prevProps, prevState) {
        if (prevState.cart !== this.state.cart) {
            prevState.cart === this.state.cart;
            this.setState({ cart: JSON.parse(localStorage.getItem('CartLocalStorage')) || [] });
        }
    }
 
yeah, that'll just return true or false (well false in this case)
Used like that, it is just an expression
 
Im getting confused here: D
 
=== means "are these two equal?"
What you want to do is assign prevState to this.state
So for that you'd use just "="
 
12:08 PM
also, never modify the state directly
always use setState
 
Ohh thats obvious, probably should take a break making stupid mistakes like that
Theif, do you talk about prevState.cart = this.state.cart?
 
12:28 PM
How to resolve No data available in table in DataTable?
 
@SamDasti Add data
 
yes
 
lmao
 
also, modifying prevState makes no sense
 
12:31 PM
@SamDasti You're trying to force the value for "response" but you're not
 
you over write response
 
rename inner handler variable name from response to "actualResponse"
or outer response to "testResponse" (and rename the usage thereof to "testResponse" too)
 
Allright so now Im all confused, modify prevState or not?
 
its displaying data but giving No data available in table error at the top.
 
 state = {
        cart: JSON.parse(localStorage.getItem('CartLocalStorage')) || []
    }

    componentDidUpdate(prevProps, prevState) {
        if (prevState.cart !== this.state.cart ) {
            this.setState({ cart: JSON.parse(localStorage.getItem('CartLocalStorage')) || [] });
        }
    }

    render() {
        const totalItems = this.state.cart.length;
        return <p>Total Items: {totalItems}</p>
    }
Or is this the wrong way, maybe not even possible to auto update the Total Items when localstorage changes?
 
12:34 PM
localStorage shouldn't hold your live state
 
@rlemon its displaying data but giving No data available in table error at the top.
@Neil its displaying data but giving No data available in table error at the top.
 
you don't need to double up the reply :P
 
@rlemon i thought its not delivered
 
@SamDasti The error, I'm guessing, is because you're genuinely performing the request
And you're genuinely not receiving any data..
But you're making it work with test data so it shows up anyway
 
@Neil then how could i receive this data genuinely.
 
12:45 PM
@SamDasti You make the data.php request to the server return that data
 
12:55 PM
Just found my missing money, apparently my bank's account number isn't really a number, but a string... don't forget those leading zeros! Talk about a frustrating couple of weeks
 
that happened to me once
very scary
 
Leading zeros?
 
Not sure exactly, though the iban was wrong in some way or another
 
I've never known that to be an issue, it is an 'account number', a number, a number has meaning, they want an account id or something
 
The bank receiving it didn't know where to put the money (it wasn't any account they had), so they rejected the transfer
Had that been proper coordinates, I'd have lost that money to be sure
always best to talk in terms of ibans
hard to mess that up as it has all the information one could possibly require
 
12:57 PM
The worse part is they accepted a payment on my behalf just over a month ago with exact same payment credentials... they fixed the account number as a one time courtesy but didn't mention anything to me about it being a problem.
 
if you just give them account number and then the bank name and such, it may end badly
ouch
 
Yeah I always worry when money doesn't arrive on time
 
yeah, they really should have communicated that
 
That's nothing, I had once a few millions € too much on my account
(for a few months)
 
Found the prince of Nigeria?
There's gotta be a story behind that one
 
1:03 PM
It was just a misattribued account in the middle of the selling of a startup I was part of. There were dozens of accounts and money transfers in this mess and the bank messed this one. We just let it there until the money could be moved to its recipients
startup selling is often complex...
 
You'd think banks had better method to handle transfers... perhaps a routing/account number checksum
 
blockchain
 
But you don't everyday look at your bank account and wonder "so, why do I have those 3.5 M€ already ?"
@TravisWhite Many accounts are special (provisionning, locked) during complex operations, and aren't attached to a specific person or legal entity. It can get messy
 
How easy would it be to send money to wrong person via bitcoin?
 
like very easy, no ?
 
1:07 PM
I'd assume so, but wasn't sure of the implementation details... You'd think they used some sort of checksum.... so if one character is off, it fails
 
that wasn't the problem. The bank was legally responsible for hosting some special funds during the operations. And they didn't know where to put them... so one of them ended with just my name (but I guess I wouldn't have been able to take money out of it)
 
I found this example for a splitter bar using jquery UI, jsfiddle.net/silkfield/4gq7z45a/59 but when I try to copy the code into my own project, I can't get it to work.gist.github.com/Hypersapien/1c38b7124d4f82cda5820770515718a7 Can someone figure out what I'm doing wrong?
 
@Neil as i replied before that i made request and getting data from data.php its displaying data and giving this error above the data.
 
@DenysSéguret Well if you had been able to, they'd have found a way of getting it back, don't worry :P
 
1:19 PM
I'm sure of that
 
Never underestimate the insistence of banks
@SamDasti You didn't provide any logic for showing this error message, but I stand by my idea. data.php isn't returning data.
Get rid of the test data and see if it still shows data.
It happened the other day that someone accidentally used their account number (16 digits) where the amount should have been
We ended up getting a request to transfer 10 times more money than there is on the planet earth
 
1:57 PM
@Neil how can i provide sceenshot of my table output
 
@SamDasti I believe you, you don't have to show me proof
I'm telling you to check what data.php returns
heck, put it in your browser and show me what it gives you
if it isn't a http code 200 followed by some json, I'd say you're doing something wrong
 

« first day (2894 days earlier)      last day (2045 days later) »