« first day (2698 days earlier)      last day (2475 days later) » 

00:16
Good morning
I wish there was a place where I could get someone to tell me how to program something without having to try a bunch on my own first
@JakeNBake Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
I've given up on my program I'm working on
@JakeNBake what programming language you want to learn?
@JakeNBake School?
00:24
I'm working on JavaScript
well not school, but some kind of training program
Yea sort of it's not a class but a big project that's worth half my grade in school and I chose programming a JavaScript computer game
ah, and they didn't give you direction on how to do it?
you could ask your teacher for help, that's kinda their job
Well it's for English class so she wouldn't be able to help much
I assume the game has to relate in some way to English?
00:27
But I do have a mentor that's supposed to "advise" me but I can't bug him about little things due to the fact he has a life and a job
Actually not
It's called a senior project and we get to chose the project topic where we learn about different things
So there's people who do tons of different things like building a surfboard or learning to be a professional baker etc
that should show you most of the basics of drawing and getting user input, etc
Yea that was actually my starting program
Now I'm making my own thing
step one: put your javascript in a separate file and include it with a script tag
00:32
I was thinking about doing that but I just didn't see the need
and since I have to show proof of work throughout the project and print out the code it's extra stuff to print out
/me shrugs
are you having a specific issue?
Currently trying to figure out how to get the laser to have separate instances that appear on space pressed
and then I have to figure out how to get the meteors to appear randomly at different locations
Anyways I'll stop being lazy and bugging you and get back to work
00:47
How to pass the values generated in one function to the choices arraylist in another function???
so the company president showed up for dinner and I didn't expect that
01:06
the bottom coupler sucks
and the hardwaare is meccano
all I had laying around
@ndugger what's his story? How did you choose him? He's the cutest
so, just need to design a new coupler and we're golden
cc @Luggage
Any plans for it?
as in, a task for it, other than something to make
Yea. Putting a laser on it and tormenting my cat
ohh right. forgot
01:13
overkill, but it's a purpose at least
if it works well I might scale it up and make something to remove prints :D
that one sounds hard
well, maybe for some prints. tall enough and easy to grab
I'm thinking the stuff I do for work
a lot easier if it's the same object over and over
guys, in terms of performance, is having setInterval(func1, 16); setInterval(func2, 16); worse than having setInterval(function(){ func1(); func2(); }, 16);?
don't think it matters
but don't forget about requestAnimationFrame if you're trying to lock a framerate
01:24
codesandbox.io/s/8yy515nz18 how terrible would something like this be ?
it feels wrong
ohh sonofa
why does my copy work, but save and share and it's broken when I open it
@rlemon I'm going to change it to requested animation frames, or even better, since the script is about animating the CSS according to the scrolling I think I can use the onscroll event instead
iancaio.github.io/ScrollingAnimation - for now it's just using this 16ms interval, I need to update it but shortage of time has been crushing me lately :p
so when you save it, it doesn't save the deps.. awesome codesandbox
awesome
ohh now it works..
I will never understand this site
01:41
@SterlingArcher imgur.com/vTjIVyX.gifv ouch (maybe nsfw)
Solid butt though
it's a flip fail chain
little dude is persistent!
@KendallFrey reddit.com/r/factorio/comments/825ozx/… didn't see what sub it was in until I clicked
thought "no fuckin way.. really?"
bamboozled again
lol
well, that's gold automated
Next I need to set up a circuit to vent petroleum gas but only when I need sulfur
01:50
dude, that pla is crazy
@KendallFrey \o/
Im not alone!
there's a theme emerging
> You can get them with bots
yeah this
fucking fish just showing up in my inventory after clearing a forest
@KendallFrey they have a zoophilia mod?!
-_-
check rimworld for that
02:03
fish are useful as a signalling mechanism
rivers have quite a bit of bandwidth
you guys think learning Wordpress is kind of a necessary thing for a freelance Webdeveloper?
it's probably good if you want to churn out pages quickly...
I have a merge conflict and I have no idea how to fix it
WP is only useful to clients running WP and you will end up doing nothing else
it has just a large enough ecosystem to really pigeon hole you if you get too deep
02:06
WP hosting is cheap and it has a bunch of themes.
That is what my clients/friends see when I talk to them
my company has a WP developer, sometimes two, on staff to maintain a few marketing sites
I kind of dislike the idea of learning it, mostly because it feels a little bit like cheating :p
but I think I'll end up having to learn it
it's far from cheating, it's just so out of date that you'll have a hard time learning modern stuff as well
PHP 7 is the sanest version of php yet.
wordpress is great if you want lots of low paying clients who demand little
which is a legit source of revenue
02:09
I tried helping my mum with a wordpress site... i found it incredibly hard to work out which plugins were good
you'll never get the big senior webscale architect bucks, but you'll have a steady stream of customers
there were a lot of really low quality ones, and lots that you had to pay for but that still looked low quality
@ssube it's really not terrible for profit (if you can get clients)
I feel like node.js & js should have targeted the php crowd by making a more them friendly version of it. Introduce exactly how php works with <? ?>
pay $99 for a template, mod it to what they want
sell for $3-4k
02:11
getting those clients can be spotty
but there are companies with permanent spots
the only time I got paid that much was when I made a php plugin that was illegal(not joking)
I probably have a very broad (and maybe mistaken) idea of what it's like to do a website with Wordpress
lots of companies who target marketing front websites just churn out wordpress (or worse, their own cms) templates for $$
02:12
I have bought my fair share of WP templates
for friends. It is so simple literally anyone with a desire
Did someone say Target?
there are tiers and layers of resellers, it's a full blown ogre
It’s my new summoning word
I imagine it like getting one of the templates, then trying to customize it a bit so it doesn't look completely unnoriginal, then adding plugins for carousels, animation effects, and so on
depends where you end up in the foodchain. You could apply the themes to client sites.
that sort of work was more complicated but better paying, when I contracted outside of WP
02:18
anyone go by their middle name?
@ssube I see, is there any situations where you would decide to write the website bottom up with HTML, a CSS preprocessor and JS?
not sure I understand the question. Plenty of sites are written that way, any webapp. WP doesn't really address that.
I need some color changing filament
@ssube I meant when doing Institutional Websites, if WP advantage is to be faster to work with with its templates, when would you decide to actually use the raw programming tools?
you may like this
02:23
> but flatter.
I do like the print-in-place things that move
Anyone see anything wrong here? The imgur api is returning: "No image data was included in the post request"
 <form action="/file-upload"
      class="dropzone"
      id="dropzone"></form>
<script src={% static 'js/dropzone.js' %}></script>
<script>
  Dropzone.options.dropzone = {
    url: "https://api.imgur.com/3/image",
    headers: {
    'Authorization': 'Bearer token',
    'Accept': 'application/json',
    'Cache-Control': '',
    'X-Requested-With': ''},
  }
</script>
Data is being encoded in base64 and is being sent but the imgur api doesnt seem to be getting anything any advice?
Request payload seems to be right `Content-Disposition: form-data; name="file"; filename="emmawat.png"
Content-Type: image/png`
because that doesn't do anything
After literally days of googling i found the issue
you just set the options
In the source code of dropbox.js there was a var named paramName: "file" and I set it to paramName: "image" and it worked
02:36
does their documentation mentions that as something you can pass in options?
> Ajax:
Ajax is a strong and mighty Greek mythology name, meaning ‘earth or land’.
this is a legit name apparantly
Ajax is also a cleaning product in my country
kendall what are you doing
hacking
02:43
@William resizing the panel
also reporting a different bug
must be a w10 thing. command prompt dosen't resize on W7
that's not the command prompt
also, plot twist
it's always been able to resize, back to 9x
also that
02:46
it's just under a right-click menu on the icon because they chose one of the weird, older window-border-styles
user2620028
@William this is the name of my roommates dog as well
I remember also resizing it by dragging the border
I think he means width
menu works border doesn't
@rlemon still works
02:47
you might be able to turn that on, you can definitely choose the number of rows and cols in the style menu
only to a max
yeah
it doesn't resize the buffer
@ShrekOverflow I don't suppose you know the maximum allowed size for the JWT and whether or not we can increase it? ><
we're adding one more field and it pushes it over the limit
Go to bed
quick can I upload a screenshot directly in the GH issue editor?
02:58
@ssube No it mentions nothing about that.
morning
anyone here versed in react?
<No/>
import 'plz' from 'help-me-god'
PropTypes.boolean.default(false);
Booyah! Reconfiguration done
Suck it ticket
03:03
i'm looking for some insight on whether something is possible.

Say you have 10 components that load ...say I want those components to call back to a store...but I want the store to wait until all of the components have checked in before further acting...is said activity possible?
eg: if said components rely on ajax data but i dont want to make 10 individual requests to load said data

the caveat being that it could be x number of components, not 1 set predetermined number
wrap them in a parent component and pass the children a method to call when they're done
i was thinking along the lines of data -> component -> ajax call back -> store waits -> dispatch data via reducer
there are many ways to skin that cat, almost any async paradigm can fit somewhere
@rlemon said components may not reside 1 level deep...they could be anywhere in the app hiearchy
having a variable number of components, even nested, doesn't make it a whole lot harder
03:06
componentWillMount() {
  this.props.getServerConfiguration();
}

render() {
  const { children } = this.props;

  return (
    <div className="gems-content">
      <div className="gems-content-scrollable">
        {children}
      </div>
    </div>
  );
}
it's already async and once that's involved...
however all components are wrapped in a data injection HOC
This is how re configure the reducers, like @rlemon, a parent component will do the work before the children are loaded
@SterlingArcher but the data fetch is contingent on the reequest of the component
No, it's passed down via props
When the reducer is re-ran or updated, it will forward the information in the store
03:08
but if multiple components hit that store asyncrosly it'll just spew off multiple remote requests
once one request is in-flight, you can return that same promise
im not following what you mean byt that
with a requests = new Map<url, Promise<Response>>(), you can requests.set(url, fetch(url)) each time a new URL comes in, and requests.get otherwise
Don't you typescript at the poor guy
03:10
it's a really easy way to write a lazy cache
but if you're unsure of the amount of components making said call, how does one know when to flip the set/get switch
requests.has :D
axios.has.cheezburger?
@david ~2k
I think we can do more too
but url will run out of available characters
what are you trrying to do ?
what I'm doing is like if a house has X people and 1 person goes "Hey, im going to the store, who all wants something" to which x people say "get me a (data)"
03:13
A girl just agreed to joust me so I'm probably going to jail for murder soon
Because I have no chill and I will fucking wreck her
she probably wants to joust with ur junk bro
No it's literal
my way seems more fun
I don't see any conceivable way where running naked at each other doesn't end in a broken junk
I have no desire to pee around corners
then you haven't jousted enough
03:15
@SterlingArcher really? none?
Noooooooooo?
No
Yeah no I'm good
not even if there's a hobo on the other side?
not even if it's windy?
it'd be a good trick tho
funny as fuck
03:20
like a foot into the stream, just a hard left
> hard
pls no
> what the fuck, shoresy!
lol
I was imagining a double-jointed dangle, if you will
that's my cue to leave
03:26
@rlemon oh my god he does it more than once
have you watched the show yet?
or just yt clips?
just clips lol I can't find the show
> You look like the skunk my dog killed and probably raped
LOL
> You smell like nachos and you look stoned
@SterlingArcher you either need to watch it on crave or nudge nudge wink wink
Oh my god hahaha
I'm glad they walked cause it woulda been awkward asking to take a piss before I fight
I'm crying
look at that fucking treasure trail
@SterlingArcher honestly this is probably the most legendary scene of the whole show
actually no that's the other hockey players scene
03:31
Sauce me bro
the irony of Katie telling them to put shirts on
Oh my god hahahaha
@SterlingArcher How can anyone not love that?
I'll never buy you a coke
Nice execution, you're doing terrific
haha ok time
!!afk altered carbon
What's this new stuff in windows 10
 
1 hour later…
04:48
@ShrekOverflow We put some kind of zendesk token thing in there... It's only an issue when an admin logs in with their massive list of permissions
cant I have comparisons in a switch statment
case j != k:
printf("incorrect"); break;
@CoderCat no, just values
and the comparison between the expression in the switch and the case value is a strict comparison (===)
this is not equal to
not same type and value
because there both int types
what I meant is that you can only have an expression on the switch statements and values only in the case clauses, and the expression will be checked against those values using strict comparison
oh ok
05:03
so switch(0){ case 0: ...; } is cool, but switch(0){ case "0": ...; } is not going to work
oh crap I uninstalled the compiler from my phone
ill test it later thanks
no problem!
What compiler you used in your phone? @CoderCat
c/cppdroid
ah okay, just wondering if mobile can compile codes thou
05:06
time to go get some rest, good night!
@Shmiddty episode 4. 10/10 boobs
yeah they can but typing on a stupid phone is impossible
Wait no episode 5
id ask in lounge c++ but its idle, and they rig newbies votes so they lose the rep to chat
bbl
05:32
SpaceX launch in 30 secs youtube.com/watch?v=Kpfrp-GMKKM
05:48
I hear only sounds and see earth graphics?
is it real
?
 
1 hour later…
06:49
Man, I hope this repair guy knows his shit. Washing machine is broken and I'm wearing my last pair of underwear
07:01
hahaha
07:33
@david zendesk supports SAML out of the box
are you sure you can't use SAML ?
@OliverSalzburg use from your backup?
@KarelG Nah, these are already backups
But it's fine. He fixed it
then you must have called him too late
I really need help with a react problem.

Say I have x number of components. They each need some bit of data. The data is irrelevant to the example, but each component needs different data.

The data comes from a remote api.

I'm looking to make an action that components emit, that indicates they need x data. The action takes a collection of all of these data requests, and then makes ONE api fetch request, as opposed to making 1 for each component
@KarelG I called 11 days ago
That's when the machine broke
Calling before that would be kinda premature IMHO
07:41
Oooh. I have two boxes of new undies (2 * 3) and one with one undies in my closet. Above 10 being used. I do not think that I would be able to reach that
I was sick for weeks before and was going through my stash
Didn't feel like laundry :P
you can reuse it 3 more times tho. Wear it front-back, inside out back front , inside out back front
can i get some insight into my question

I really need help with a react problem.

Say I have x number of components. They each need some bit of data. The data is irrelevant to the example, but each component needs different data.

The data comes from a remote api.

I'm looking to make an action that components emit, that indicates they need x data. The action takes a collection of all of these data requests, and then makes ONE api fetch request, as opposed to making 1 for each component
@Hybridwebdev what is the question?
where is the question?
@KarelG I was thinking just asking my neighbor if I could use her machine
07:43
you are describing a problem
it'll take 2 lines of code to handle that
Now I got new tasks. Need a new hair trimmer. Just broke mine
do it then. But do you not have family nearby ?
Stuff is falling apart left an right
eh I need to get a new trimmer either
@ShrekOverflow care to elaborate mr. Ogre?
07:44
me too
I'll forgo the shrek is love...shrek is life jokes
I'd love a good one this time. Maybe one that doesn't break when I smash it against the wall. Or one that doesn't annoy me enough to make me smash it against the wall
Again, what you described sounds like what GraphQL was made for but lets ignore that GraphQL exists
If only we had a spec that would multi plex requests over single connection, which is http/2 but lets even ignore that
WHat you want to do is collect information
for information that you want to fetch
so the simplest way you'd do this is have a timeout
yes. An unknown number of components need data. and i dont want to hammer the API with a bunch of requests when it should be able to resolve it in 1 fetch
call your fetcher -> wait for say n ms, let every other component request and change it my n ms.
07:47
heyyyyyyyyyy i like that idea
basically wrap your fetch with something like
and each time reset the timer
not reset
increment it a little only if needed
otherwise you'll run into really bad timeout and moot your performance gains
but a timer could break on slower machines
What ?
you are not counting clock cycles
your browser will give you more or less perfect timing anyway
07:49
as in say the app contains 300 components that need data....and a component misses the timer
also please look into graphql if this is a nwe project and you can decide the api
that is exactly what you need
@Hybridwebdev JavaScript is single threaded
If you app is running or executing your timer won't fire
graphql looks like an api endpoint...the endpoint im connecting to is rest
so you can't control the backend
you'll run into more complex stuff soo nthough
for example what if Component 1 and Component 2 request the same data
Morningo
well that is the entire point of the abstraction.... I want all components to make the same action request....said action will be able to tell if the data is available, and if so pass it back. If not, then it adds the data requested to a queue which ultimately gets passed to the end point as a request, the required data is returned and then handled via a reducer
the complexity comes from not knowing what data is needed or how many components need data before hand
07:53
A very wise man told me that it should be handled at networking level but lets assume you won't cache
But here is how I would do it in a naive way
and there are defintitely more ways to do it
like having a count of how many such components you'll have etc but all vOv
well looking ahead is an option, but it'd be ugly it'd involve walking a rather large json object
but that might ultimately be the approach i take as, aside from creating a walker class to traverse the object, it'd be the cleanest eg no queuing

However it'd be very antipattern, as I'd rather have components declare the data they require than vice versa

« first day (2698 days earlier)      last day (2475 days later) »