« first day (2764 days earlier)      last day (2406 days later) » 

17:00
stop trying to make vue happen
my vue devtools extension lit up
there's some vue in there
haven't checked the actual source
also, THE CHICKENING IS HAPPEN
@Blank Using same CSS?
@Blank Can you be more specific about the web site.. is it a CMS like WordPress or Drupal?
@towc What's the CHICKENING
@twoc sounds ominous
anyone feeling up to explaining the Jquery find method
all the strength is absorbed by victor chickens until there is only one?
because I have a situation where instead of matching just something with the exact ID, it also catches other elements with ids that start with the same id
which is weird to me
cockfighting?
17:07
@Btuman I don't know anything about jQuery find, but there's got to be something (an argument or something) where you can force it to match exact and not just strings where a substring is "foo"
@Btuman What the syntax of your find?
%(thingy).find( 'a[href^="#' + $( x ).attr( 'id' )+'"]' )
looking at that, and seeing that it would provide an id (lets say cat enclosed in parentheses, I don't understand why it would also match cat-gun
am i missing something obvious?
@Btuman Can you walk through what in the parens for me?
you mean x and thingy?
thingy is a list
no inside find()
ah, so basically we have a list, thingy, and on tthat list we have a bunch of list items with in page links to ids. x is the element with the important id
the issue I have is when x has an id that matches the start of other (kebab cased) ids
does that clear things up?
17:17
so what's an example of what 'a[href^="#' + $( x ).attr( 'id' )+'"]' could end up as literally
can or does?
does
give me something more concrete
what's $(x)
@Earth2Eddie An abomination.
it can hit <div class='cats'> and <div class = 'cats-everywhere'>
found the issue
^ means starts with
17:27
Hey JS Room! I have a question. I deployed a React app in S3, and I faced a 404 err, when directly accessing URLs formed by React Router, I could solve it by simply redirecting to the index when that happens, but couldn't find a cleaner way purely S3.
How do you normally handle that?
@MehdiB. If you're using S3 in website mode (requires a different hostname) you can set a 404 handler path pointing to your index or whatever.
@MehdiB. Your solution is the correct one.
Also, not redirect, rewrite.
@user1114 He doesn't want a fancier 404, he wants links which are handled by React Router to work
@MadaraUchiha If you have a client-side router with dynamic paths, and static S3 hosting, there is no option for sending arbitrary paths to a page that servers your router except for the 404 handler, unless I'm misunderstanding the situation.
@MadaraUchiha oh, but when inspecting the network console, I still see a 404 error showing there before the rewrite, is it ok? no latency added? (I read somewhere in SO that this hurts the SEO)
It's not semantically correct to be serving the page with the 404 status, but I'm not aware of an alternative.
17:33
Gotcha
what
user2620028
looks like xkcd is getting lazy
What's the proper way to use includes on an array of objects?
array = [{label: "x", value: "y"} ...];
array.includes(objectValue);
I think I'm overthinking
@Feeds what
how did you find that?
prolly google
@towc NobodyNada mentioned it in SOBotics.
how did they find it?
I have no idea. They mentioned that the "Non-retina image" was borked so maybe some browsers display a different image?
17:52
I guess he has multiple monitors, one of them is retina, and he tried many of them?
@towc <img src="//imgs.xkcd.com/comics/safetysat.png" title="During launch, in the event of an unexpected sensor reading, SafetySat will extend prongs in all directions to secure itself and any other cubesats safely in the launch vehicle until the source of the problem can be determined." alt="SafetySat" srcset="//imgs.xkcd.com/comics/safetysat_2x.png 2x"/>
@SterlingArcher If you aren't comparing primitive value/identity then maybe you want array.some() with a predicate function instead.
oh, or that
my job has become fixing performance problems other people cause :| what do
cause performance problems
then you'll be also fixing the ones you cause
I'm not good enough at react to fix my own problems
18:01
get better at react
introduce regex, you'll have a much more familiar problem then
and threads
just use coldfusion
<cfthread>
i've used cfthread once
18:03
never again
Put <cfthread> in uv_task
cfflush was the wrong tool
this.state.deviceCommands.forEach((device) => {
  if (chipArrayContainer.length) {
    if (!chipArrayContainer.some(chip => chip.value === device.id)) {
      multiList.push({ label: device.name, value: device.id });
    }
  } else {
    multiList.push({ label: device.name, value: device.id });
  }
});
@user1114 worked nicely, great suggestion :)
Cheers. :)
> Code editable via a public wiki
the way cfflush seems to work now is the browser will render any text i flush to it, but the moment i flush script to it it doesn't render anything until the whole page is ready
which kinda defeated the purpose
18:19
> Please have vba code for this quiery.
Visual basic GUIs are great to trace IPs
@KamilSolecki potatoes in oven are looking very dry
is it because I shouldn't have had it on fan? Is there something I should do about it?
cover it with tin foil half an hour ago
18:23
15
A: How to create a nested object given an array of keys

Mihai Alexandru-IonutYou can use reduceRight method by passing an arrow function as argument. var level = ["a", "b", "x"]; let result = level.reduceRight((obj, elem) => ({[elem]: obj}), {}); console.log(result);

other than that, it looks ok so far:
ohhhhh tasty
leaving it in the oven for another 30 mins with some tinfoil
invited some friends over, telling them that I can't guarantee the food will be edible
are you going to eat all of that
i c
where's the invite @towc
18:29
@KevinB actually, none of the friends replied
I asked them after they usually have dinner
I mean, some replied but said they already ate
maybe some pics will change their minds
@towc Yummy
Are we going to our first so.javascript cookout?!
@towc Assuming it's not, come up with the actually reason the plant would go limp
@Earth2Eddie I would lose miserably
rlemon used to be a chef for a living
kamil's plates have artistic values
plants definitely don't have 'emotions' but it's generally accepted that they respond negatively to negative attention
18:39
trasiva does a lot of cooking too
@towc I'm going to tgive it a go. 1) Plants need carbon dioxide but too much carbon dioxide (from dirty humans) is a bad thing ? 2) The bully's hovering over it constantly are blocking light
I feel like it might more realistically be chemicals that aggression releases
@towc damn boi, progress!
I'm not a biologist so I'm making wild guesses lol
@KamilSolecki that low-res pic does look good, don't it?
18:41
sure does!
I think it's mainly because it's low-res
that's not even a joke
i prefer my chicken medium rare
but I am happy about what I'm making :)
lmao @hilli_micha
@hilli_micha do you remember the chicken drama from around 8 months ago?
18:42
people have been doing polygraph tests on plants for decades, doesn't make it science
yes
I remember your chicken debacle
that plant is a lying piece of shit, arrest it
2
Hey guys, wanted to let you know - I started out a Javascript beginner this morning, and after hanging out in this room all day I'm now an expert. So thanks
you're also an expert in plant psychology
damn right
by being in this room
18:43
and chicken makings
for context: I haven't had easy access to a usable oven for 5 months, before moving here last week
0
Q: Is there a magic criterion for having over 999 reputation?

Eric AndersonMy reputation has been exactly 999 on StackOverflow for a while. That seems like it's probably not a coincidence. Is there some rule for what events can and can't increase reputation beyond that point?

wait, is there?
@KevinB Getting reputation will get you above that limit
That's upvote baiting. Let me go downvote them.
(just kidding, I'm too lazy)
18:47
@AndrasDeak it's meta anyway
oh, they have 1002 on main
i wonder why
I wonder what the "privilege" awards are at that level.. free massage?
Because a special event has occured which enabled reputation increase beyond 999 rep.
Gunicorn 2 workers vs Express 😃 and this was taken sequentially
and this makes a lot more sense
19:15
@towc because you like this kinda stuff, I made a proper wolfram api wrapper
I am not sure if I am good at functional programming, or the worst ever
That's literally me when I'm driving
19:29
@KamilSolecki perfect. Hook it up to speech recognition, and you're golden
@SterlingArcher If you have push inside of forEach you almost certainly want a .map()
@towc we are actually gonna use it in cap 2.0
she is becomming so cool
There's a cap 2.0?
@MadaraUchiha this.state.deviceCommands is a Map, not an array though
who's we?
19:32
in progress
we have lots of cool ideas
Sounds neat
feel free to contribute! :P
Anything that needs work?
It's a filthy TS bot
you are filthy
19:33
Where does Lex come into play?
@MadaraUchiha hmm, im currently about to start working on a wolfram handler, ssube just done learn, storage and I think he is doing github gitlab
@MadaraUchiha lex is a parser that allows you to type human like and she will match it with correct handlers
currently only one handler is hooked up to that (weather)
so you can ask for a weather in any way you want
!!lex hey whats the weather like in boston massachusets?
@KamilSolecki That didn't make much sense. Use the !!/help command to learn more.
well you dont do that dummy
Honestly, what I really wish was a thing at the moment is a proper SO chat client
Not a bot, something lower level than that
you're thinking of an API
19:37
@KendallFrey A chat client, that has a programmable API, yes.
import { Client, UserPassAuthentication } from 'so-chat-client';

const client = new Client(new UserPassAuthentication('user', 'pass'), 17);

client.on('message', message => {
  if (message.room.id === 17 && message.contents === '!!Hello') {
    client.sendMessage(message.room, 'Goodbye!');
  }
});
Something along those lines, not necessarily an API specifically like that
@MadaraUchiha well @BenFortune made interfacing with SO much nicer
@KamilSolecki Do you rely on that for the bot?\
yeah
I mean we havent tried it yet
the bot is currently only in discord
but its fully implemented in, yeah
19:43
@MadaraUchiha I started writing one for the terminal using blessed
@towc I've been playing with one for isolex using Alexa
im writing that handler tomorrow I guess
A discord voice api
tonight is games night
@KamilSolecki what you playing?
hit me up if you start overwatch
I will after it downloads
my laptop was fresh reinstall last week
19:46
what's the discord link?
!!giphy jjj laugh
you're not invited
I feel unwelcome
19:46
That's probably the lamest version of that gif I've ever seen.
@BenFortune are we buddies on battle.net?
probably not
@SterlingArcher xbenjii#2723
I guess I can't add friends outside the battle.net client so I'll add you when I get home
may I ask an off top question related to .css stylesheets?
off topic*
19:53
yup
I want to load 2 .css stylesheets on my web page
I checked sintax and path and they are correct
but only one on the 2 stylesheet is loaded
the other one is completed ingored
ignored, or overriden
I then put all the code in the stylesheet that was loading and the page came out as expected.. however I need 2 stylesheets cause it's a multiple pages website
basically... "ignored" isn't a very useful description. it could mean a lot of things.
and I want some style to be common in the pages and some to be personalized
19:56
is it failing to load with an error code?
is it loading but not having any effect?
is it not loading or failing to load at all?
the only thing I know is that when I load my web pages the style from a stylesheet are ok.. the other don't exist at all
no error code
i guess i'm done then
the dev console may give you more insight into what is happening
F12
I think it's failing to load
if it is, the network tab would confirm that.
asd.. don't know how to use it but I'll have a look xD sorry Im just a beginner
I just checked
it doesn't load the file.. 0 rules declared
while the other one has all its rules
20:06
@SterlingArcher hehe thank you, been busy, forgot to announce it here :)
let's start with some code, how are you referencing these files?
<link rel="stylesheet" type="text/css" href="websiteCss.css">
<link rel="stylesheet" type="text/css" href="homeContent.css">
normal way I guess
in the head tag
And those definitely exist, no typos?
so, uh, my 2nd son was born yesterday at 6:48am, Paris time. He's doing good. One step closer to @Loktar.
41
20:07
no types
@FlorianMargaine I can't pin it but have a star <3
typos*
@FlorianMargaine <3
@SterlingArcher <3
@FlorianMargaine CONGRATSS MAAN!!
20:07
Why can't we pin it ?
@ShrekOverflow Cause he's not RO
Oh well I did it
weird.
why did it getting pinned undo my star
anyone any idea? on the Q&A section there's a similar topic and someone says it's possible to load as many file as you desire
if the file is loading with a 200 status code, it's working
and the file is just empty
20:09
and someone said that the server can't load 2 files declared like that, but no solution
the network tab has most of the information you need to debug this
@FlorianMargaine Nice-o, congratulate him from me for making it out!
@KamilSolecki I think his mom has more merit in that regard
I have a stupid question on react lifecycles.
@FlorianMargaine well then congratulate her as well :)
20:13
> SpaceX launch in 1 min: spacex.com/webcast
Suppose you have an element that is conditionally rendered based on state (i.e., this.state.modalOpen && <Modal />). Then suppose you have a ref on it. Is that ref ensured to exist on the callback of setState?
20:24
space is so nice
@KamilSolecki I did!
That's one pretty frisbee planet
ikr?
even the music is on point
bongobuntu's satellite? I'm like, totally not sure if I'm being trolled rn
20:40
@FlorianMargaine Did you make sure to give him his complimentary baguette and beret?
@blank Did you try to just load the one that doesn't appear to be working?
@blank It should still not work, because there's no reason you can't load more than one
@blank what are the first 5 lines of the one that doesn't work
@FlorianMargaine Happy literal birthday!
@corvid On the Modal?
Like this.state.modalOpen && <Modal ref={...} />?
20:57
Does anyone have any strong opinions on what a navbar should like like with a single page application like React (I know it isn't a questions that is exclusive to react, but the opinion of a javascript UI developer is what I want)
link me any pictures of what is right or wrong to make it look modern.
nope
well, other than it should look like a nav bar
-1
Q: Executing each section script a conversion to JS

Danny LeeI made this jQuery script it haves the ability to send values per container. When you press each send button without any interference's from the other containers the values are sent to x.php were those values are echoed by x.php. So I want to create a similar effect in a pure JS structure but th...

21:28
hI all
I am developing a dictiomaryApi
dictionaryAPI
using google search for define + word.
Problem I am facing is suppose I search 'https://www.google.co.in/search?q=define+depressed
from browser.
Page return contains this
but If I search from my nodejs server using request
the body return contain this
the header I am using is only this one
 "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0"
I know when making requst from browser lots of other information is also sent in header
But I tried searching 'https://www.google.co.in/search?q=define+depressed' using postman with same header as my server is using
Still response is different
Postman shows what my browser showed
Why is response different for my server?
@KevinB
@KevinB damn that return, sorry. Earlier your posted that "Q: Executing each section script a conversion to JS" question. Did you manually post it or did it auto post here because you down voted it?
21:46
i just posted it here because it was weird that there was seemingly random newlines inserted in the middle of sentences
almost as if it were copied out of a pdf
Theoretically, how would someone go about selling a web app?
like, one that already exists?
1) Find someone who needs it. 2) Tell them that they need it. 3) Take their money.
@KevinB Yeah, like I build something and it works really well and looks neat af with great business logic but don't want to spend time maintaining and don't want to spend money marketing it to users. @KendallFrey I was wondering if there were marketplaces. I don't think people like to do business with me... I could piss money and no one would want to work with me (from my horribly negative point of view) so how could I sell as a reject without getting entirely ripped off?
If you don't want to maintain it, is it reasonable to expect people to use it?
22:00
@DavidKamer? Maybe find a company that has web apps that are already similar and see if they would be interested in buying the rights from you?...
@KendallFrey no, not what I mean. It will have an admin panel and everything, I'm just wondering if it would be possible to turn it into a sale to move on to something else. Like this: people don't sell their house because it's a piece of shit, they just want a different house.
right... but an app that isn't being maintained is an app that isn't worth using
You say that's not what you mean, yet you explain that's exactly what you mean...
@Earth2Eddie That makes sense. I was just wondering if anyone had experience with it.
hmmmm I don't think that's a thing
22:03
@DavidKamer couldn't you throw it up on GitHub or something but advertise some kind of tip jar?
@KendallFrey I mean give the responsibilities of the application to a new owner. Like if someone paid you to build an app for them but I'm bundling the idea, concept, all the logic, and the design/creativity all into one through an existing project. I've read at least one article by a guy who did that. I thought it was more common but I guess not.
Maybe asking for tips from an opensource GitHub hosted app is a no-no..you guys would know better than me
@DavidKamer you should definitely email that guy and ask him how he did it
@DavidKamer find a trustworthy freelance business partner? (I'm just spit balling here)
@forresthopkinsa So you've never heard about something like that? I know that people used to sell websites and domains on marketplaces. It has a domain with it and everything. I've just never done anything like that.
22:06
The main issue is that it's

a. Dynamic -- this is a web app, not a static immortal site

b. Not going to be maintained by you -- whoever buys it will have to allocate and train their own devs on it
but I don't know, I haven't really looked into that kind of thing and the internet is a pretty big place so I'm sure you could find somewhere that people do that
all I know is that in mainstream cases of webapps (or any software really) being bought out, they're not just buying the code, they're buying the developers
generally you sell apps like this after they are making money
@forresthopkinsa I mean I would maintain it if there was recurring payment involved beyond the purchase price. It's dynamic. Full login system and will have a payment processing. Messaging posting and the whole gammot including full customization by users and site searching.
after you've proven that they are profitable
maybe you should just look for an investor
@forresthopkinsa lol, everyone hates me
22:09
with that attitude I'm sure
lol
Yep. I'm a nice guy, but I think I might come across as a mix of sheldon cooper and toby from the office
damnit toby
I don't really like people, but I need to pay the bills lol. At least I'm not meg griffin
Dude, I'm just cursed when it comes to people.
listen, software is not profitable by making the software and then finding a need for it. it needs to be designed around an existing observable demand.
finding a real-world problem is ALWAYS step one
yet another ecommerce platform isn't going to be profitable unless you've proven its usefulness
22:11
Any book suggestions
for massive 80 hour flights
try "girl on a train", I've recently been recommended it
@forresthopkinsa Oh, it solves one. I understand that whole thing. I'll probably run it myself and make ok money with it, but I don't know how to get people to use it. I AM NOT WELL CONNECTED and that's what it boils down to.
@ShrekOverflow The meditations of marcus aralieus
hmmmm
is it already finished? did you just make it in your free time?
22:13
@KevinB Not an ecommerce site either. I don't really want to say what it is, but it definitely has a market and it is unique
@forresthopkinsa I'm finishing it this week
maybe the most profitable route is to open-source it and use it on your resume
It took a week longer than I thought. I'm trying to move back into AI development after this last crypto crash
@forresthopkinsa yeah, I'm thinking I probably will at some point, but I just wanted to know if it was a common thing to resell a webapp, but I guess not lol.
I think that if you think that this is a money-maker then keep it private for now and let's brainstorm
besides code maintenance, is it self-sustaining?
or does it need to be moderated or curated or something
@forresthopkinsa that suggestion is right along where I'm at with it. I just like to plan ahead. I have a lot of ideas I want to build and this is one of those that I know is profitable but I don't find super fun as a long term prospect to run. I could probably devote a full time career to it and make a really good living off of it, but I find stuff like predictive AI way more fun.
well what field is it in then? You don't have to go into detail but can we get a general idea?
22:19
@forresthopkinsa It'll probably need some sort of moderation. I'm still placing the payments/payout api in the arch so I can't be certain yet
hmmm ok
brb
22:34
@forresthopkinsa I definitely send you a message with a link to it when it is up and running. probably the coolest thing I've made so far, but that isn't saying much lol.
hahaha okay deal
23:00
was considering updating my work computer from Xenial to Bionic
decided against it when I was reminded that Artful threw out Unity in favor of GNOME 3
I think I'll stick with my Dash and HUD and functional multi-monitor support lul

« first day (2764 days earlier)      last day (2406 days later) »