« first day (3084 days earlier)      last day (1859 days later) » 

12:00 AM
did I ruin it?
 
you did
 
gnarly
 
@rlemon I'm a huge fan of this gif service. Thank you for this gift.
 
Lol. Well you know the accuracy. It's what cap had always used
 
I'm still trying to figure out what sippy did
!!sippy
 
sippy gave you the image you were looking for
 
so confused
!!soi
 
@DavidKamer That didn't make much sense. Use the !!/help command to learn more.
 
weird... lmao
 
Anyone here used machinepack a bit? I still am trying to find "why" would anyone use it, it seems to be a very verbose way to do a combination of what typescript & javadocs do way more concise.
 
12:17 AM
job security
 
I mean the whole waterline orm is riddled with those, and I just end up reading lots of code which could just be simply self-explaining functions.
"Machines make your app more stable and maintainable by encouraging thin controllers, encapsulation, and reusability. It protects your app from errors by providing strongly typed inputs and return values, and by catching errors that would normally crash your app. Not to mention..."
So.... functions?
 
12:59 AM
morn
 
afternoon
 
1:17 AM
@forresthopkinsa why aren't you ever in the java room
 
1:46 AM
@Rick Probably the "java" part
;)
 
1:56 AM
Shall I need to take action against the scanners spamming my webserver?
 
 
1 hour later…
3:02 AM
@Rick whoa, you're alive?
@nyconing fail2ban?
 
3:48 AM
Ideas for coming up with names for software products?
 
@JBis add double, tripple letters and stupid stuff like that. Seems to be the trend
that and random words
 
use names from a coffeeshop
 
4:01 AM
@KevinB lmao
 
4:30 AM
food names are probably next
 
 
1 hour later…
5:34 AM
 
lol
 
user707779
5:54 AM
Guys, need help. I'm looking for JS documentation engine to crate API reference, tutorials and product blog with the following requirements:

- Implemented in JS and has JS API
- Generates static content preferred (I just don't know why I need dynamic, but you can change my mind)
- Support themes
- Does not require accounts except Github, so Gitbook with their migration to his own commercial service looks like a shame
- Well designed, created by developers for developers
- Has live community, tutorials and documentation
 
@YuriS.Cherkasov 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…
7:04 AM
1 hour ago, by David Kamer
user image
Can someone tell me Javascript can do API calls. I hear serverside JS is a thing now.
 
7:22 AM
@MisterGeeky It's not a JS thing anymore than it's a PHP thing
JS can do backend now
@YuriS.Cherkasov you'll find oodles of resources if you search for REST API documentation
 
@MisterGeeky that "serverside js" you are talking about is Node.js
 
@KarelG morn'
 
morn
 
7:41 AM
@Carlos sorry for delayed response: it is a questionable framework. It does not attract a lot people. Yet, that framework is present in the project I am working with. A decision got made to remove all dojo/dijit related stuff from it because it is just a horror.
it even provides - I am serious - synchronous xhr requests.
that is really bad practice unless there is a really good reason for that.
 
if you had some sort of internal page navigation, it might make sense to use synchronous xhr requests
 
If you have question, feel free to ping. But I cannot guarantee to provide an answer as I worked with it because of code maintenance or issue fixes.
@Neil background pre-loading with animation
 
then you could have some sort of phasing in and out between page changes for instance which wouldn't be possible without ajax
just make some gif visible before the request begins
 
a gif image? so 2000 ish
😀
 
for a page transition, sure :P
 
8:00 AM
Is JS capable of creating new pages that do not exist, like in wikipedia and all.
 
you need data. So "yes" if you have data
 
@MisterGeeky Yes, most modern applications are written such that routing is done on the client-side.
 
@MadaraUchiha I meant like, you go to a.com and there's a text input field , you search for something, it doesn't exist, you are taken to page where you can create it. Then, you type in the content for it and then it's made under a.com/newpage
can this be entirely done with javascript and html alone?
 
yes. Look for "javascript text editor". But you still need a backend to save that data for newpage
 
@MisterGeeky That requires server-side support to create the page in a way that others can access it too.
 
8:13 AM
@MisterGeeky Wikipedia does this all the time
You click on a link on a page where the article doesn't exist, and Wikipedia given only the presumed title, will take you to a page where you can create that page
 
what you do locally in javascript is only visible to you. (or on your pc if you use browser's storage API)
 
And really, it is just a 404 page for wikipedia if you think about it
I doubt they return 404, but still.. my guess is that this is how they handle "missing pages"
 
@Neil i like that strategy, it's knowledge oriented.
@KarelG wow, that's new. never seen it before.
 
you only have to understand how wikimedia works :P
 
8:19 AM
Oh, they really have a 404 page
 
what kind of backend does this need? Is MySQL on cPanel enough?
 
everything after /wiki route is and should be an article.
 
Then they must do something to the links on pages pertaining to articles which don't exist instead
 
if there is no one, show that page that it cannot be found and offer to create a new one
 
which is a subtle difference
wait let me try
 
8:20 AM
yup
 
yep, you're right
then it's a rule they apply only to pages with /wiki/*
 
yet there is also a localized difference :P
you see a "refer" page
well, scroll down and open the same page in a different language.
 
well that makes sense
 
some languages have added _(disambiguation)
 
the ambiguity is language-dependent
 
8:23 AM
that is because /Fe points to a main article. I did not have figured out why that odd approach
 
@Neil oh, it doesn't exist so, you can create it. I want to replicate this behavior.
 
@MisterGeeky then probably it would be best to apply the rule only under a subfolder, like they did with /wiki/*
You need to override the default behavior for a 404
 
@Neil this sounds like i need to configure a webserver, not like i have to code javascript.
 
and instead forward to another page containing an editor with the extracted information pertaining to that page (like /wiki/doesnt_exist takes you to /newPage?title=doesnt_exist)
@MisterGeeky well if you're using node.js, it's the same thing really
 
@Neil ok, I'll begin with that, then. What about the storage?
 
8:28 AM
@MisterGeeky well, depends on scale, but you'll probably eventually need a database
 
@Neil Do I get that for free anywhere? x)
 
And in that same way, you need to be able to load a page
Yeah, most databases are free. Some database cloud hosting services are free up until a certain amount of space (after which you'll have to pay, but usually it's well above what you'll need to test it)
If you're writing it for yourself, then I recommend that route because you'll probably not fill up 2 GB of space anytime soon
And if you're not, I still recommend it because it is a lot of hassle to maintain
the logic is if someone navigates to /wiki/some_page, you extract some_page, and check if it exists in your database. If it exists, return the page requested. If it doesn't, reroute to /newPage?title=some_page where the user can add the data himself and submit
When that happens, you create the page in your database pertaining to some_page so that /wiki/some_page will work next time requested
Then you forward to /wiki/some_page (because it's nice to see the page you just created)
really the only static page you should have up to this point would be /newPage and maybe a login page?
 
:D I'm going to try my best and maybe in 50 years, I can look like this guy: upload.wikimedia.org/wikipedia/commons/transcoded/3/31/…
 
You know there already exists a platform for creating your own wiki, right?
I wouldn't try to recreate the wheel
Our company used it to give our own documentation
Clients liked it so much, they wanted to be able to add their own documentation in the same wiki
So we ended up having to create two separate namespaces
 
I set that up on kartha.000webhostapp.com/wiki like weeks ago, but I couldn't finish the install because of a database issue.
 
8:56 AM
Does anyone knows about any technical test platform for JS ?
 
@Pointless-Ai Hey AI, we don't take kindly to AIs learning JS
 
@Bizniztime 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.
 
@Bizniztime and why is that
 
why to worry? He's pointless...
 
@Pointless-Ai U gonna take ur job
He is isn't he?
Quite dull
 
9:03 AM
@Bizniztime That does not make much sense lol
 
@Pointless-Ai No I really think you are AI
sry Now..
 
I don't agree with everything you say, but I agree with what you just said
 
Oh you say that to everyone
You're not really charming like that AI from movie
 
it'd be hard to pinpoint what a true AI would actually be like
There's no reason to think it would be nurturing or even about self-preservation
Since these are traits we've seen in life up until now, but we don't have anything else to compare to
 
AI is what it is
 
9:09 AM
It could be that to be considered "true AI", the defining factor is self-preservation, which may never happen
when you look at it that way, then true AI isn't possible
 
A lot of intelligent humans were not about self-preservation
I think most
OK, overreacting, some
 
why are you using "true AI" Neil ?
 
most humans aren't put in situations where they have to fear for their lives
 
there are different AI models like different human intelligence
 
@KarelG You know what I mean by true AI? The mythical unobtainable "true AI"?
 
9:12 AM
i'm thinking about suicides, but they are usually in 'entertainment' persona
 
@Bizniztime Thank goodness that's a small minority or we'd all have committed suicide by now I think
 
@Neil AGI or ASI.
 
one has a better emotional intellect, another has a better creative intellect
or abstract
or social
 
I don't think being emotional is a prerequisite for being sentient
 
I believe that there are 5 of main categories but cannot find the last one. Wiki lists only 4
 
9:14 AM
and perhaps not even being creative is a prerequisite
 
you see creativity at animals though
like getting food from little "puzzles"
 
That's different
I would call that ingenuity
 
I would call that heuristic.
 
If you can draw a painting that people will oogle at, that means you have creativity, not ingenuity
and often times ingenuity is about thinking outside the box (but not always)
My friend wrote a genetic algorithm to generate beings which could fly in a physics simulator
His metric was how high they could get with fixed number of resources at their disposal
You know what he got? He got beings which were very good at balancing on stilts :)
 
what have I started :L
 
9:21 AM
@Pointless-Ai the singularity, sir. The singularity
 
@Pointless-Ai jsfiddle.net ?
@Neil el psy congroo.
 
@Neil I am at stage where I am really annoyed by loss of passion by humans, most people I see around are just chasing money
 
@Pointless-Ai why do you say that sir? Please, I'd love all your money that you're willing to give.
 
@Pointless-Ai Money can be a good incentive for passion
 
incentive, mhh, let's cut the middleman. Blockchain of passion please, let's make it a currency.
 
9:33 AM
But generally money fuels passion, and it isn't usually passion that fuels money
In other words, you work so that you can have money to dedicate towards the things you love.. it isn't usually the same as what you do for a living
If you can get money doing what you love, then you've got it made :)
 
Most people just want sex and drugs
Or fa(s)t foods
 
"most" is not true
same for fast food
 
Maybe most americans?
It seems there is obesity and drug epidemics all around
 
@coderboy 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.
 
9:52 AM
Are you aware of what's the most active project for the moment in github?
Are you aware of what the most active project is for the moment in github?
 
@ZhengquanBai Almost certainly the Linux Kernel.
 
Not really
This project is exploding in China.
 
@ZhengquanBai What "project" is it? github.com/996icu/996.ICU
It's only got 36 commits and 5 contributors...
By what standard is it "the most active project"?
 
Ah Airpods 2.0 are out
 
By the star rise and people's attention, regardless of the intent of being a code repo.
 
9:57 AM
@MadaraUchiha China
</joke>
 
@ZhengquanBai I mean... 6.7k stars within a day is definitely impressive
 
We Chinese people sometimes abuse github for something not appropriate there.
 
But the project doesn't really have that much activity. You could say that it is trending, that would be more accurate.
 
Nvm the whole thing looks like a convo
@BenFortune Totally not surprising, they hit on everything ...
 
10:02 AM
How's your work load?
 
Lawsuits against God have occurred in real life and in fiction. Issues debated in the actions include the problem of evil and harmful "acts of God". == Actual suits == === Betty Penrose === In 1970, Arizonan lawyer Russel T. Tansie filed a suit against God on behalf of his secretary, Betty Penrose, seeking $100,000 in damages. Penrose blamed God for his "negligence", allowing a lightning bolt to strike her house. When God "failed to turn up in court", Penrose won the case by default. === Ernie Chambers === In the U.S. state of Nebraska, State Senator Ernie Chambers filed a suit in 200...
Wow.
 
that is a thing in usa
 
@KarelG Not only in the USA, but only in the USA the guy actually won.
 
@MadaraUchiha lol, that repo does not contain any code. The author is just abusing github to act as a voting feature.
I don't think I have seen such thing in my country. Gotcha ask around.
> However, a judge finally did throw out the case, saying the Almighty was not properly served due to His unlisted home address
I loved the formulation
 
@ZhengquanBai very bad
 
10:14 AM
Could you enlighten me what you're referring to as being bad?@ShrekOverflow
 
NO work :(
It's basically the wrong workload for me 😃
I'll spend cycles sitting idle for an idea
 
@ShrekOverflow Play some Screeps
 
@MadaraUchiha I am at work
 
@ShrekOverflow What's your point?
(Playing Screeps involves writing code)
 
then i won't work at all
 
10:17 AM
(Actually something I want to get back to, but need motivation/time)
 
don't gimme a chance to write code xD
i am supposed to make slides
something i am only good at if I have a story in mind
 
@ShrekOverflow use jupyter slides
 
@MisterGeeky can't
 
or impress.js because this is a javascript room
 
I used impress.js before it was cool
 
impress is an overkill for most presentations
 
@ShrekOverflow Then you know about Strut and the other editors out there.
 
too much time for too little gain
yes
ofcourse I do
 
wait, is there no work at OAuth atm or you are just unemployed, Shrek?
 
I am at the presenters version of writers pause
I have 0 idea on how to approach this presentation, all I have is a lot of data
 
10:23 AM
OAuth (Open Authorization) is an open standard for token-based authentication and authorization on the Internet. @KarelG , it's not a company, afaik.
 
did you have tried to walk around in the park/mall nearby?
 
@KarelG I just did
will probably watch some stupid anime
 
heh
 
as a PRNG
 
@ShrekOverflow Make up a story, once upon a time, we had a lot of data...
 
10:24 AM
actually
that doesn't sound bad
 
don't skimp out on the climax, what the data shows, add fireworks/shiny dragons to that slide.
 
@MisterGeeky media.giphy.com/media/L8XuphFGqlSfe/giphy.gif explaining to me what OAuth is
 
@MisterGeeky I work for Auth0
see why KarelG got confused?
 
user707779
@Neil I know how to use Google. I found ESDoc, Docify and Documentation.js, but I hope to find comparison from the first hand (I tried CoolDoc.js and ESMoreCool, and I like ... because ...)
 
@ShrekOverflow dammit
 
10:26 AM
@KarelG also ... SAMLP
and WS-fed
it still lives
 
is samlp not kinda limited atm?
 
@KarelG Saml now has an ability to give you an access token
which sounds like the stupidest decision I have read
why would you not use OIDC is beyond me
but hey ... it does now :P
 
@ShrekOverflow I have so easily signed up for your whatever that is.
 
you work there. /shrug
aah now back to my shizzle problem
 
why do you need passwords anyway, I like the room system, or coat system.
Everyone has a designated coat.
No one needs to open a lock to wear their coat,
we trust no one else is going to use anyone else's coat,
 
10:29 AM
WebAuthn my friend
 
because why should they?
 
keep calm and webauthn
 
security key is a nice concept, but I was just saying not having any protection at all. Just type in a name and go into the dashboard. Surely, there must be some service like that out there.
oh right, guerrilla mail is an example.
 
That wouldn't fly
remember person, people can literally influence nukes today
 
not for anything serious, yeah.
 
10:32 AM
also, at this point I should recommend you my book
to learn more however, its still WIP, I shall ping you 6 months later
 
shit, I need that book. Take my money!!
 
It's open source [see what i did there?] , although you can pay 😛
 
TIL Duo is now part of Cisco
 
@ShrekOverflow are you richard stallman?
 
I might have missed that news back in October
 
10:34 AM
Google Duo? It's no skype or Zoom or whatever.
So, it's Cisco Duo now. ehhh
OH, duo security. Another duo.
 
@KarelG yeah...
you can use Guardian (Auth0) to build your own Duo btw ;)
@MisterGeeky The fact that you remembered yet another awfully underthought and weird google product over Duo Security makes me worried
 
@ShrekOverflow I was also remembering the pokemon Doduo and Dugtrio ... although I wasn't sure how to bring it up.
 
!!giphy original facepalm
 
@ShrekOverflow That didn't make much sense. Maybe you meant: sippy
 
:O
!!gif original facepalm
 
10:38 AM
@ShrekOverflow That didn't make much sense. Use the !!/help command to learn more.
 
When did we remove giphy?
 
always happy to help find holes in the matrix, neo (..sounded cooler in me head..) :D
 
@ShrekOverflow literally all my professors here in the lab with me right now
 
god shrek
check sandbox, after list command
 
user8444404
11:02 AM
why error : Uncaught SyntaxError: missing ) after argument list in below line :
 
user8444404
'<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElem‌​entById('fade').style.display='block'"> ' +
 
user8444404
below is full code :
 
user8444404
$('.container').append(
            '<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'"> ' +
            '<div class="textcontainer" contenteditable="true" ' +
			'style="' +
            'left: ' + layer.x + 'px; ' +
            'top: ' + layer.y + 'px; ' +
            'font-size: ' + layer.size + 'px; ' +
            '">' +
            layer.text +
            '</div></a>');
 
11:17 AM
@KarelG too many chats
too **** many chats to remember
which command does what 😃
we need a OChatBot standard
 
meh
 
that standardizes these things
 
And now there are 15 competing standards
 
I tried !!list in the sandbox room to display known commands
its response was so funny for me :|
 
user8444404
@ShrekOverflow @KarelG can you help me on above issue ?
 
11:24 AM
1 stop writing javascript like that
 
It is advisable to not ping others for some support. Please check the room rules for that. I did not have time for that.
 
2 stop writing javascript like that
3 stop writing javascript like that
problem solved
 
yours code is difficult to maintain. Better to reconsider your approach
 
also use a good editor
ie, stop using notepad
 
@vickeycolors use some sort of template library here.. nobody wants to have to debug javascript which dynamically constructs html
 
11:25 AM
for example your <div> element
 
@vickeycolors use a syntax highlighter to see all of your mismatched / nested quotes
 
user8444404
sorry @KarelG
 
@Neil Which dynamically constructs javascript this is a full circle
 
you should create it and then add the attributes to it instead of doing it literally
 
then listen to everyone else and reconsider
 
user8444404
11:26 AM
@ShrekOverflow notepad++ i am using
 
Use VSCode
 
@ShrekOverflow For the definition of recursion, see recursion.
 
// example for div:
 
obvious
 
11:26 AM
If Notepad++ can't detect that you either need to either set it up or get a new thing
 
!!afk 🚗 💼
 
user8444404
$('.container').append(
    '<a href="javascript:void(0)"> ' +
    'onclick="document.getElementById(\'light\').style.display='
    block ';" ' +
    '<div class="textcontainer" contenteditable="true" ' +
    'style="' +
    'left: ' + layer.x + 'px; ' +
    'top: ' + layer.y + 'px; ' +
    'font-size: ' + layer.size + 'px; ' +
    '">' +
    layer.text +
    '</div></a>');
 
I mean chrome dev-tools catch that
 
// example for div:
const div = document.createElement('div');
div.classList.add('textcontainer');
div.style.left = '10px';
div.style.top = '10px';
// ect
then add that to your element.
 
user8444404
@ShrekOverflow i got Uncaught SyntaxError: missing ) after argument list in console
 
user8444404
11:29 AM
@KarelG thanks, i will rewrite it.....
 
that helps you to avoid those escaping problems and adds to readability
 
11:48 AM
Hi everyone. Long time!

I would like to know if any of you use a Bundler (like Rollup/Webpack) and know a Logger library that will be active only when the bundle in build in ENV === development ?
 
use a different approach: most bundlers have a config options set. Only allow console logging when the environment is development
by default, console logging is removed during the bundling.
 
Rollup doesn't like those kind of automatic behavior. They aim at bundling, all the rest is handled by plugins.
I guess a plugin would strip them. Didn't think of just stripping the console logs.
Thanks
 

« first day (3084 days earlier)      last day (1859 days later) »