« first day (3623 days earlier)      last day (1326 days later) » 
03:00 - 18:0018:00 - 00:00

3:56 AM
Does anyone know how to mock a user session with a js script run with node?
I'm able to make the request, to login to my server, but I need to take the session cookie from the login response.
```
[Symbol(Response internals)]:
{ url: 'http://127.0.0.1:5000/login',
status: 200,
statusText: 'OK',
headers:
Headers {
[Symbol(map)]:
[Object: null prototype] {
'content-type': [ 'application/json' ],
'content-length': [ '84' ],
vary: [ 'Cookie' ],
'set-cookie':
[ 'session=eyJsb2dnZWRfaW4iOnRydWUsInVzZXJuYW1lIjoiam9uYWhsaWJyYWNoIn0.X2GK3g.8B9vtpoXU-swo_ye0ly0y-NFSwk; H
server: [ 'Werkzeug/0.16.0 Python/2.7.16' ],
date: [ 'Wed, 16 Sep 2020 03:47:42 GMT' ] } },
counter: 0 } }
```
 
4:39 AM
Hello folks. Can we embed a youtube video using the <video> tag? developer.mozilla.org/en-US/docs/Web/Guide/…
Actually my goal is to have captions show up elsewhere via some alternate approach
 
 
3 hours later…
7:20 AM
and the video tag helps in the captioning task?
i mean, youtube videos of course can be embeded
in every video you have the html even
@deostroll
@libby you can do that depending on the client you use for the request, a cookie basically is a piece of data that travels through http headers
 
@CarlGentleman I figured out how to take the session cookie from server response, but it felt quite unnatural because, in a browser, session info is automatically stored whereas in my CLI session I had explicitly pass the cookie into the server fetch
I tried the same-origin and {Credentials:'include'}, but they didn't work. Only {headers:{cookie:'my_cookie'}} worked
 
yes, but you r right, browsers automate a lot of things related to the http protocol, a lot more not only cookies
so, it results unnatural, but it is the way
the cookie usually is a small tokento identify the session, which is fully stored in the backend
 
7:46 AM
does anyone want a bike? scott bike
good bike
mountain vike
nevermind
do companies in your countries code in PHP almost the 95%?
but some tvs at tbe same time the main ones, is also important
then also to the main banks, also important
parlament, burse, tvs and banks
booooooooom
how nice
priorities, it is only about priorities and goals, that is the ethics
but their goal is not to make more people happy, but to stay on top of the jubgle
sorry, i cannot stand their lies, coz they are professional liers, their intention is never revealed, and this is an important lesson for them, they think we are all competing, as they like us to be
they see lying as a virtue, probably because a dumb population thinks they are really wise people, and no, they are just greed people
put a homeless as president
 
8:08 AM
@CarlGentleman let me inform you that some of your messages got flagged. Be aware that also in chat the code of conduct applies: stackoverflow.com/conduct. Advocating violence, even as a joke, it frowned upon and you better refrain from using those kind of words.
 
homeless?
words like homeless
 
ok, sorry
 
No problem, be thoughtful.
 
just in case we want to use violence, i meant, like our soldiers do in somewhere we are not daily informed about by tv, you know
ok, focus carl, js
does anyone have experience nesting dynamically determined vue components?
i have heard that the :is can help me to do this
 
 
4 hours later…
12:09 PM
hmm what library do you use for frontend display of google maps and tracking etc?
 
12:35 PM
Can I put an HTML form in a Bootstrap Modal?
 
What happened when you tried it?
 
Ok, I figured it out
The question I should have asked is how can I get this above my DataTable
 
1:23 PM
@JBis how do you keep the commands readme on github up to date?
 
1:41 PM
How can I detect if a user is scolling up or down? This is for a cordova app
 
@OliverSaintilien 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.
 
@Wietlol i don't really. I use github.com/jbis9051/JamesSOBot/blob/master/src/doc_gen.js to generate the docs every so often.
 
ah, I see
 
2:07 PM
When performing a GET, in SharePoint, you can change a list name and it wont change the url path. For example Program1 to Program 1. The url list name will still show Program1. When I call the AJAX it will not pull those list items from the list with the name change now. I have even tried the x0020 (%20) as the space inbetween Program and 1 and nothing
 
// Are mult-line statements with commas supported in single line if statements?
// This works fine in jsfiddle but errors in vscode
a=1;
if (a) b=2,c=a+b;
else b=3, c=4;
console.log(c)
 
||> a=1;
if (a) b=2,c=a+b;
else b=3, c=4;
console.log(c)
 
@JBis undefined Logged: 3 Took: 1ms
 
@JonClagg seems to be fine but its unreadable, i wouldn't do that
 
@JBis what is this: "||>"
 
2:18 PM
that just calls @JamesBot
 
ah
thanks for the opinion. i guess it does tend to look unreadable
 
it's effectively minimized code, something we shouldn't be writing by hand
 
In Console why does it tell me the error, but never tell me where it is
Uncaught SyntaxError: Unexpected token ':'
I click on the hyperlink to link to where the error is and an empty window pops up
 
2:36 PM
put it into an ide and it will show you the error
 
screenshot
there's probably an arrow or similar
 
Deliverables.aspx?Pa…=WSSWebPartPage:852 Uncaught SyntaxError: Unexpected token ':'
Click on the ...:852 hyperlink and this pops up
 
whats the link?
 
the .aspx file(page) extension:852 which shouldnt 852 be the line where the error is
Bc I only have 350 lines
 
lol
 
2:46 PM
what
Deleted that fast
 
@bigchungus your page is likely being compiled to more lines
 
Gotcha
 
on the left side (not on the screenshot) you should see a file selected with the same name, right click and then open in new tab
 
2:58 PM
Fixed it was missing a quotation and a closing bracket
 
reasons why we use a proper text editor or ide
 
Im on Notepad ++
 
that's code that was injected into the source page
so you won't be able to see it the normal way
 
3:27 PM
Any good react 1-pagers? I'm on a road trip with limited connectivity, so if you have a 1-pager, @-me the direct link... thx!
 
MODS
everyone hide!
 
err, well, i mean, there's always mods here
since the incident
 
hehe
@AaronHall not sure what you are asking for
you want a link to a website written in react in one page?
I have such a website, not really an impressive one though
it is like a few hundred lines of code
not even having a backing server for processing or storage
 
just like a ref/doc page
 
ah, a react guide/tutorial/example/etc you can reach with low network traffic
I suppose you can download this page
 
3:36 PM
One last thing that I cannot quite seem to figure out. Maybe one of you can help. I have this DataTable (of course), but I also have a HTML Form to collect new info, save as JSON, then send through a POST to a SharePoint list.

The current HTML form is below the DataTable and I have created a new button(modal) that I want it to go in for aesthetic purposes. Ive got the button created under the dropdown button, but how do I get the HTML code into the modal? jquery event?
 
3:51 PM
@AaronHall you can download all the docs for offline here devdocs.io/react
 
4:16 PM
hello
sorry for that thing before, i wake up with a demon inside, idk what my dreams are about, but everyday the same... sorry, stop me when i start like so
 
um what
 
nevermind
i havent tested angular +2.0
ANdroid, ANgular, ANnunaki, think about the logo, android
they r here
 
"ust in case we want to use violence, i meant, like our soldiers do in somewhere we are not daily informed about by tv, you know
ok, focus carl, js"
 
4:21 PM
Having convos with yourself everything good man
 
hehe exactly
thank you
i was kicked, but i understand
 
its gibberish though
made 0 sense
 
no, it makes sense for me, but i still priorize peace, idkw
 
"$(...).modal is not a function"
$('#myModal').modal('show');
I call that under my DataTable custom button. And nothing happens :(
 
if u knew, ive talked wigh the devil, it wants me to burn local tv, but i refused, i told him: find another one for your dirty jobs
time ago, now it doesnt annoy
you have to load the jquery plugin before doing that
 
4:26 PM
hi there, my smart virtual friends
 
Way ahead of you there patricia
 
i love the face of this guy
 
my face also loves you
 
love is in the air then
 
were you talking about materialzecss?
yes for sure.. but also a pinch of pain.. there is always a pinch of pain there
 
4:28 PM
heheh yes, the guy stands the hit well
 
guys.. since I am not smart (mathematical smart) - what should I read to understand:

I have a circle (div with 50% borderradius) - and want to align 6 small circles around its borders
what is this math called for that? magic math?
 
does anyone here have reasons to hate bootstrap v4?
 
yeah.. just take materializecss.com
 
these are advanced and new css topics for me, ive found the best css help in codepen.io
 
@CarlGentleman if Bootstrap 4 is the devil you are referring too. then yes
 
4:31 PM
194
A: Position icons into circle

Ana2020 solution Here's a more modern solution I use these days. I start off by generating the HTML starting from an array of images. Whether the HTML is generated using PHP, JS, some HTML preprocessor, whatever... this matters less as the basic idea behind is the same. Here's the Pug code that woul...

 
this stupid damn modal is heckling me
 
wow this guy.. he must be working together with the devil.. pentogram is already there
damn, didn't know css is that mighty
 
its more of the JS part
of Bootsrap initializing this damn custom datatable button to hold my form in the bootstrap modal
 
if you can put it into a codepen it will be helpful
 
4:38 PM
when you try to put the button, it disappears?
it=the whole table
 
when I wrapped the div around the HTML to give it the same id as the myModal
The button click yields 0 event. It should open the modal
with my HTML form...
 
i sincerely dont know
why u use that datatable plugin
 
Because it is nice
And I need to present my data in a nice fashion
 
problemmatic
na, but idk sorry
 
@Suisse big circle radius = R
big circle circumference = 2 * pi * R
divide by 6 to get diameter of each smaller circle, and place points spaced equally apart along big circle edge as the centers of the smaller circles
in the field of algebraic topology this is called "qwick maths"
 
4:50 PM
hahaha
@hydro perfectly explained
 
i thought it was called geometry
 
2*pi*R is just a number
how I get x, y ?
@CarlGentleman in my town the cool kids call it trigonometry
but what should I know.. not cool enough for meth
*math
 
xd
idk, it was long ago for me too
 
 const ciclegraph = $("#radial_eat");
 const circleElements = ciclegraph.children();

let angle = 360 - 90;
let dangle = 360 / circleElements.length;

for (let i = 0; i < circleElements.length; i++) {
  let circle = circleElements[i];
  angle += dangle;
    console.log("angle",angle);
    console.log("ciclegraph width",ciclegraph[0].offsetWidth);
  circle.style.transform = `rotate(${angle}deg) translate(${ciclegraph[0].offsetWidth /
        2 -30}px) rotate(-${angle}deg)`;
}
I copied it..
 
but some tvs at tbe same time the main ones, is also important
then also to the main banks, also important
parlament, burse, tvs and banks
booooooooom
how nice
priorities, it is only about priorities and goals, that is the ethics
but their goal is not to make more people happy, but to stay on top of the jubgle
sorry, i cannot stand their lies, coz they are professional liers, their intention is never revealed, and this is an important lesson for them, they think we are all competing, as they like us to be
-Carl
 
4:52 PM
and.. I don't understand it :) but it works painFace
Carl aber das tötet menschen!
 
they control the public perspective, they own it
the main reason is the bullying towards the poor
 
but I like trump.
and turtles.
those two things! not more not less!
 
i still prefer any homeless, despite it seems to be, at least, direct in what he speaks about, not sincere maybe, but direct, not politically correct, which is a step towards true democracy
that thing of "politically correct" is very fascist
imo
 
its for ~snowflakes~
 
im not a turtle, but very slow
im happy, i never talk about coding with anyone
idk if you have some tool that autogenerates a restful api that lets you "privatize" tables and columns by permissions/users/groups per each restful operation?
restful op = get post put delete
this is an important topic i think in web dev
 
5:11 PM
-_-
 
table, column, permission, user, group, get, post, put, delete
loopback maybe, sails maybe, idk
does anyone know any tool for this task in node and open source
this was my task of today, to add permission checking to the rest
but i feel im working for nothing
despite the development is going well
im open sourcing the project
it is not for any company or something
idk, i maybe put a video on kickstarter
rest + auth + history + cli + ui (vue) +...
 
you have to destroy the banks
the numbers.. the numbers Mason
 
it is serious
 
the two of you are quite the pair
 
it will be better than wordpress, however without plugins
 
5:19 PM
I'm surprised the ban hammer hasn't intervened
 
i am serious, this is a beautiful project
 
Hahaha
Carl
you said you know Bootstrap right
 
ok, wordpress can be masterized...
but this will be easier
and more advs
and more secure
 
@forresthopkinsa it's hard to judge whether they should be ban when i cant understand a word they are saying
 
That's fair
 
5:21 PM
1 hour ago, by Carl Gentleman
sorry for that thing before, i wake up with a demon inside, idk what my dreams are about, but everyday the same... sorry, stop me when i start like so
 
lonng story
 
Yeah he was saying some pretty outrageous things last night but it looks like a diamond mod got to those messages already
 
just in case we want to use violence, i meant, like our soldiers do in somewhere we are not daily informed about by tv, you know
ok, focus carl, js
This one really threw me off
 
It was definitely worse than that
 
5:22 PM
really
 
Actively talking about dying young, bombing parliament, etc
Trying to trade his bike for weed or something
 
hate to say it but sounds schizo
 
yep
the cms
we r talking bout js
and the cms
 
does anyone want a bike? scott bike
good bike
mountain vike
 
Carl you gotta do that kind of thing somewhere else next time, this is a programming chat room
 
5:24 PM
i know i know
 
@bigchungus sounds like modern rap
 
lmao
Maybe you shouldnt smoke it if it makes you act like that
 
no, it is when i do not have it
 
1 message moved to Trash can
 
5:25 PM
and tomorrow i do not have it...
i think i will survive, i like to think so
 
jsfiddle.net/y67124Ls/4 Ignore the error messages on page load not affecting what I need to fix rn. Why is the modal popping up (like I want it to), but will not allow me to close with out submitting the form.
 
im afraid
 
I tried switching
$('#myModal').modal('toggle');
$('#myModal').modal('show');
and it doesnt work 0.o
 
add more jquery
 
Ah figured that may be the issue
So another 'onclick' function that will execute $('#myModal').modal('hide');
 
5:29 PM
@foresthopkinsa otherwise, kick me quickly, i do js comments mainly
so, a whole new cms, how would you promote it?
i mean, it is going to take me like 2 months more the ui i guess, i wish it didnt, but most probably...
it is for you for the developers
i will die
 
@CarlGentleman I'm not an RO, just a spectator
 
but this tool can still be around
ro?
 
room owner
 
real operator
 
i just asked if you know already some tool to do rest + auth + history +... automatically
ah, okok
then to the ro
 
5:33 PM
"@foresthopkinsa otherwise, kick me quickly, i do js comments mainly
"
 
exactly, to the ro
so, how do you deal with the backend??
kick nodejs + express apps maybe? laravel maybe?
quick*
sequelize perhaps
let me know these bits and pieces please
 
@CarlGentleman in one understandable short message, what is your problem?
 
Dude I'd have a better chance piecing together japanese script and guessing what it is saying than this mumbo jumbo
 
heh, ok, i want to know if you use some kind of tool to restify or graphqlify some database automatically, and what other features have your frameworks, because my problem is that i dont know how much i can help other's workflows with this new cms, i dont even know the price of this cms
do you understand?
backend frameworks
this is the topic, how much of the backend development do you automate
do you understand better?
no answer
 
5:42 PM
your explanation was not understandable, short, nor one message
you want something that will generate an API for a db?
 
there are so many easily-found ways of doing what you're talking about
 
or know your backend stack at least, how much of this you get done automatically
 
@CarlGentleman is english your first langauge?
 
5:47 PM
nope
ok, but can you handle permissions automatically
in queries
 
wdym "permissions automatically"?
like authentication and authorization?
 
exactly, to make tables and columns access or alteration depend on permissions/privileges
 
sounds like you want a developer, not a library
 
no lib 4 this?
 
If you want to make a CMS to rival WP then you should probably be a competent developer yourself
Or able to hire one
 
5:53 PM
ive seen wordpress code. they improvised
and node is faster
and cooler
the node clis are delightful
 
None of that matters
 
i mean, i run away from wordpress chaos and marketization
 
What Wordpress is known for is its ease of use to non devs
What it’s built with is irrelevant
 
and what matters then
 
Marketing
 
5:57 PM
oh, money, true
 
@CarlGentleman there are plenty of cms's built in node
or other languages
 
of course, i know how to code, not how to manage a compaby
that is the point, wordpress is hateable
 
wordpress is a software
seems a bit much to say you hate it
 
okay, i love it, but far
 
03:00 - 18:0018:00 - 00:00

« first day (3623 days earlier)      last day (1326 days later) »