« first day (2244 days earlier)      last day (2710 days later) » 

9:00 PM
@rlemon I... um...
 
the best part of waking up....
 
@towc He wrote a program that learns to play Super Mario with a neural network. The implementations are pretty good.
 
that was possibly the thing that made me understand how NNs aren't just maths for crazy people
 
@KendallFrey ahh i remember that video, that was cool
didn't he also like break some world record with super mario? like a speedrun?
i just remember it being as impressive
 
Yeah he has done speedrunning
I think he did a credits warp or something
 
9:02 PM
you've seen boxcar2d.com and such, right?
genetic algos to build a car
 
ah yeah, some memory glitch to warp somewhere..
 
@KendallFrey that one doesn't have all the other tracks and stuff :(
 
It runs without Flash
That's good enough for me
 
yeah
the original had mountain climbing and drag racing too
 
9:04 PM
I recently wrote a GA that works with Conway's Game of Life
I should get around to writing a program so I can view the results
 
you guys would probably like this guys project
he's got the source kicking around somewhere
 
oh wow, he built a "disassembly" for it as well :P
 
how might I have a node module run at most once in parallel?
a lock file?
 
@Mosho What do you mean?
node generally runs at most once in parallel?
 
9:13 PM
If I have an array of JS objects that roughly look like this:
{ID: "1850", status: "New", client: "Louise Cdfl", timestamp: "Wed, 07 Dec 2016 16:09:59 GMT", title: "Paint Judi Ssdfk office"…}

How do I order them based on the "timestamp" property?
 
@MadaraUchiha like, have a watcher
 
arr.sort((a,b) => {
  // compare a.timestamp against b.timestamp
})
 
but if it tries to run while already running in another process
it exits
 
Ah
Yeah, I think a lockfile is your best bet
Make sure to account for unexpected exits though
Benji might know some fancy trick I don't though
(Don't he always?)
 
@rlemon this requires three returns correct? 1, 0, or -1 depending on the comparison?
 
9:15 PM
yes
 
@rlemon thank you you're the best :)
 
I know it
 
lol
 
Nov 10 '15 at 16:05, by Nick
I'm gonna start a Guy Fieri cover band, and none of you are invited.
 
i'm trying to create an indoor hot tub do you think this is possible?
 
9:21 PM
yes
 
not a bathtub like a hot tub
 
yes
a simple google of "indoor hot tubs" will show you many examples
 
@William you are going to want to be especially careful of moisture and condensation.
 
@Vap0r I was afraid of that
 
it's not so bad. my mom has one.
just make sure you have some sort of humidity control in the room and you'll be fine
 
9:24 PM
@rlemon absolutely. It's able to mitigated fairly easy, just wanted to make sure because if you don't manage it somehow a simple fix turns into a possible disaster.
@William are you purchasing the spa or trying to go with some type of DIY solution?
@William will it be above-ground or in-ground?
 
LifeHack: tossing a toaster into the bath with you makes an inexpensive hot tub
 
@Vap0r diy would be cheaper i would think above ground is fine
 
This lifehack by SO user rlemon will shock you! Click here!
 
DIY hot tub sounds like a terribly over-complicated mess
 
I want to be able to jump into the hottub
 
9:27 PM
@rlemon probably is
 
having owned hot tubs before.. I'd purchase one
 
i want it on a timer
 
@William you shouldn't DIY that.
 
I just can't fathom how it would be cheaper to do it yourself.
you'd need all sorts of specialised tools and moulds.
 
@rlemon tub + heater
 
9:28 PM
@rlemon the moulds are the main thing, not much else is specialized in the manufacture of hot tubs.
 
What is the purpose of naming a file with a hash? What does it accomplish? Something about cache?
 
yes I beieve cache depends on the software
 
@Vap0r think of all the tools you'd need to build it that you wouldn't expect everyone to own
 
If you could find someone to mould the acrylic for you it would be pretty easy if you just found jets and a pump/blower.
 
I don't expect the average home owner to have a pipe bender
 
9:29 PM
I get into the office this morning and they've covered my monitor in tinsel, and they're blaring christmas music. FML
 
I don't bend pipe, I lay it...
 
@rlemon pipe bender is most definitely not used in spa manufacturing
 
it was an example, and yes you would need to bend pipe if you're plumbing it yourself.
 
Canadian men searching for "beaver pics" on Google are disappointed 52% of the time
 
Well you would probably want to use what they use which is some type of bendy, PVC-ish pipe.
 
9:30 PM
@rlemon 3D print pre-bent pipes maybe?
 
Those all connect to PVC style fittings.
 
not all spas are made the same. but sure, you're missing the point
you'll still need tools which you wouldn't expect an average home owner to have
 
That does a great job of showing you how it would be connected. Honestly the biggest concern (long term) of a DIY spa would be inadequate insulation.
 
re-insulating a hot tub isn't that bad
 
And most all commercial spas are made the same, at least all the ones made by the top 3 manufacturers which encompass more than 95% of the market.
 
9:32 PM
we had critters pull a bunch out one winter
scrape the rest out, re-spray
 
Guys I need some help with js
 
@rlemon eh it depends on if they get the moulding insulation or just the cavity insulation
@Obviously fuck that this is spa chat
cavity insulation would be a bitch.
 
@Vap0r most people own a hammer, a few drivers, and maybe a hand saw
 
So I have a drop down and It has one many option if one of that option is selected i want one button to be disabled, i achieved it through change event. Working fine
 
I don't understand these people, but it's the truth
 
user2620028
9:34 PM
i think i can tell that i am getting older... I type several rude comments and then before i hit send i ctrl + a + del
 
Is there a way that i can bind the button to that drop down
like no matter what happend it should stay disable
 
"bind a button"
 
user6510107
Anyone have helpful advice for implimenting a minimax Ai (tic-tac-toe)
 
to do what?
 
Some other events are changing that button back to enable
 
9:35 PM
ahh, disable a button based on a dropdown selection?
 
@rlemon you're right that is sad. You probably could almost get away with it using all that, the hand saw would probably make me kill myself though. I agree with your first point that a DIY hot tub is a terrible idea.
 
user2620028
can you really even build a diy hot tub cheaper than what you could just buy one for ( i think the answer is no )
 
user2620028
even assuming you have the room time and tools
 
@SmailBarkouch For performance, memorize the first move or two.
 
you could use the pexi piping to make things a bit easier, though, you'll have to buy/rent crimping tools
 
9:36 PM
@HatterisMad well I mean if you have the room time and tools then yes.
But at that point, "you're a spa manufacturer, harry."
 
I really doubt it would be cheaper
 
user2620028
you are making it out of fiberglass?
 
@HatterisMad no acrylic.
Fiberglass coats the acrylic
 
I built a shed this summer, all in I'd say I probably payed a few bucks more than If I had just bought it
 
make an isolation tank instead
 
9:36 PM
materials are not cheap when you're making one-offs
 
My favourite kind of spa is francorchamps
 
user6510107
@KendallFrey as in give a set move that will always be choosen for the first two turns
 
user6510107
?
 
yeah... my parents insist on doing everything themselves, citing how expensive it is to have someone else do it
then they'll spend 6 months doing it
 
@SmailBarkouch The first move at least. Otherwise it will take a second or two to calculate all possible games
 
user6510107
9:37 PM
oh
 
The spas you buy for 4000-5000 at a store cost the manufacturer 1000-1250
 
some stuff sure, but i'm painfully aware at how other things are cheaper to just buy pre-done
 
After that, it's pretty fast
 
user6510107
i get what you mean, but I am looking to implement the system and can't find any understandable guides
 
user2620028
@Vap0r so you would then mold your own? how many layers would you have to do to get something that is going to withstand the weight of the water and you and friends and the heat
 
9:38 PM
@Vap0r That doesn't mean they'll cost you less than 5000
 
@HatterisMad just one layer
 
I could build my shed for 60% of the cost, if I was building 20 of them
building one... well. that shit was expensive
 
@KendallFrey if you had all the materials and tools and all else, then yeah I think so.
@KendallFrey but that's a huge and kind of stupid if.
 
material costs are not the same for large manufacturers vs avg joe
 
But the materials and tools and all else would cost you 100000 or something
 
user6510107
9:39 PM
@KendallFrey (just in case you missed what I typed) i get what you mean, but I am looking to implement the system and can't find any understandable guides
 
@KendallFrey yup
 
user2620028
@Vap0r one layer of acrylic sheeting ?
 
@SmailBarkouch Do you know what a minimax algorithm is?
 
user2620028
what thickness
 
@HatterisMad yes.
 
user6510107
9:40 PM
@KendallFrey yes I know what it is
 
So what are you looking for?
 
@HatterisMad ummm. I'm guessing here but from memory it looked to be about 1/4 to 3/8 inch, after mould, a bit thicker beforehand.
 
user2620028
coincidentally my father just bought a used hottub last night for $500
 
how long before he gets all the jizzum cleaned out?
 
@HatterisMad if anything at all works on that tub it sounds like a steal.
 
user2620028
9:41 PM
@Shmiddty how long is an eternity?
 
no, a steal doesn't cost any money
 
user2620028
@Vap0r the entire thing works?
 
@HatterisMad insulation all there an no cracked acrylic?
 
user2620028
it also came with a sauna like "Shed" that the hottub was housed in to be protected from the elements
 
user6510107
9:42 PM
@KendallFrey I'm just looking for a way to create it as I don't understand half of the guides, even when they are in js
 
@HatterisMad wtf that's crazy good.
 
user2620028
@Vap0r was running with no leaks when he went to go get it, he then disassembled it and took it home
 
user2620028
welcome to craigslist lol
 
50% cheap hot tubs, 50% murder
 
@SmailBarkouch If you understand what it is, it's pretty straightforward
 
9:43 PM
@SmailBarkouch it's sounding an awful lot like you want to build something, don't know how, and therefore instead of trying to figure it out just want a solution.
 
hottub vamp
 
My dad used to own a large spa manufacturing company just so you all don't think I'm pulling this out of my ass. I save my ass-pulling for justifying time expenditures on applications I build.
 
user6510107
@KevinB Not my idea, just want him to tell me a good guide since most aren't straitforward
 
user2620028
i am just imagining that you buying and molding the acrylic is going to cost more money than it would be to just go get a used one somewhere
 
Software development comes down to this: I have a problem. Do I know the solution to the problem? If yes, implement it. If not, break it down into a combination of smaller problems, and solve them.
 
user6510107
9:45 PM
@KendallFrey ok, ill try to create it based on my idea
 
@SmailBarkouch have you considered just always taking the move opposite from where they move? Use a random number generator to choose which opposite spot is the "best"
 
user2620028
and then you will have to come up with all the electronics and pump and and and
 
user2620028
not hard to do... just money
 
user6510107
@Vap0r what do you mean, thanks for help
 
@Vap0r That's not an even remotely competent strategy.
 
9:46 PM
there are 255,168 unique games of Tic Tac Toe, I'd just map them and be done with it
 
If you want a massive lookup table, sure
 
@KendallFrey pssh ok you can also run a check to see if the middle spot has been taken and if not, take it.
 
user6510107
Reason I need to is because i'm on a deadline, monday it needs to be done or I will be screwed
 
@Vap0r Still horrible
 
better start breaking the problem apart now then
 
9:47 PM
@SmailBarkouch You're writing a tic-tac-toe AI on a deadline???
 
@KendallFrey well shit that was the best I could come up with I really thought that was genius....
 
user6510107
@KendallFrey yes, for my science fair
 
@Vap0r All I need to do is play the top row one at a time, and your strategy won't even try to block it.
 
user6510107
@KendallFrey I created the game, two player game, player vs random ai, but i dont know how to make a minimax ai
 
like, you've waited till now to build it, when the deadline is monday, hmm....
 
user6510107
9:48 PM
my past ai's were simpler
 
@KendallFrey psssh who would be smart enough to do that?
 
@KevinB he's prepping for real world. creeping scopes and all that
 
@SmailBarkouch You could also write an AI based on the rules of tic-tac-toe, there are perfect strategies you can find online
 
This is tic-tac-toe we're talking about.
it takes some serious mental gymnastics not to lose.
 
riight
 
user6510107
9:49 PM
@KendallFrey that would be nice, but my reseach paper already lists it
 
@SmailBarkouch what?
 
user6510107
@KendallFrey minimax
 
I have no idea what you're saying
 
@HatterisMad the scenario was if I had all the tools, then yeah I could make a decent spa for under 5000 including the material and labor. If I had to buy the tools you're absolutely right, and the only one that would really break the bank would be the oven that heats the acrylic.
 
user6510107
ill start working on it and fill you in as I do it
 
9:50 PM
@SmailBarkouch that's awfully considerate of you.
 
user6510107
@KendallFrey my paper was built around tic-tac-toe ais, one is minimax
 
user6510107
@Vap0r np
 
@SmailBarkouch could I have a copy of this paper? After it goes through peer review of course....
 
user6510107
@Vap0r code or reaserch paper it might not be that complex, im only 8th grade
 
@SmailBarkouch no way.
I'm gabberflasted.
 
9:55 PM
 
user6510107
@Vap0r why?
 
@SmailBarkouch oh I'm sorry, that second part was a reply in response to William's future post. Can you really believe those boxes are the same color? Color me surprised, or gray.
 
user6510107
lol, any websites on the minimax ai?
 
user2620028
@Vap0r im not talking 5000 though, you can easily get a used hottub for under a thousand dollars that has no problems
 
user2620028
im not saying that you can't do it. I am just saying why at that point
 
user6510107
9:59 PM
brb
 
I was asked if for under 5000 I could make a hot tub provided I had the tools but not materials.
I could.
I then said it was a terrible idea to do a DIY hot tub.
 
!!afk goats in boats
 
@SmailBarkouch wikipedia?
 
!!afk f work
 
user2620028
10:03 PM
ahh why ruin a nice old truck
 
user2620028
do that to a new truck that no one cares about
 
user6510107
@KendallFrey link, i need to do something else, ill be back
 
user2620028
like @jhawins ranger
 
user6510107
thanks for the help everyone, im staying on the page but i will be doing something
 
user1596138
10:14 PM
@HatterisMad My Ranger is 17 years old and probably has 3 times as many miles as that thing
 
user2620028
well i doubt it moves much.... i mean it is a hottub now
 
> but I notice that my hard drive consistently runs at 100% capacity. My RAM runs at around 33% and my CPU at 25%.

> Even when I'm not running any program in the foreground, it will still say 100% capacity.

that just reads funny. i'm sure he didn't actually mean the harddrive is full, but that's what it sounds like
 
user6510107
10:29 PM
im back
 
can somebody help me with a way to make an asychronous callback synchronous?
 
@AlexBollbach 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.
 
@AlexBollbach you can't do that.
done
that was easy
 
what about jquery deferred
 
it's still asynchronous
you can't get the value without a callback.
 
10:36 PM
but i never said i couldn't have a callback
i just want to have the next sequence of code have access to the data fetched from the internet
 
but... if it has a callback, it's not going to be synchronous.
 
then put the next sequence of code into the callback
 
put the code that needs the result, in the callback.
 
blocking?
 
@KevinB why not?
 
10:37 PM
in this particular case
 
:p
 
:)
 
blocking?
 
im understand the mechanics of an async call w/ callback etc.. what i want is to just block so that the code reads like a script
 
ye cannae do that laddie
 
10:39 PM
you... can technically do that... but... it's going to make your web page uninteractive for the period of time that it is blocked, and may even result in the page showing the user a popup asking them if they want to kill the page.
 
you can fake it with generators or async/await, but it's still not going to actually block
 
its a node script
 
even worse.
it'l make your server unresponsive while it is blocked.
 
then why are you even considering jquery deferreds? o_O
 
its not a server
its a script
 
10:40 PM
then call the sync version of the function
 
i don't care how long it takes the execute
 
is there a sync version of http request?
in node?
 
its an IBM watson rest request.. ill look for it now
 
hm, maybe not @KevinB
 
i've never looked to see if there was one. i'd never use one
 
10:41 PM
i just had a peek and can't find one so probably not
 
if it isn't a server... then there isn't much downside to using it as long as you understand the consequences.
 
how does it work? does it peg the CPU while it waits?
 
i just want it to read as an instruction list like a basic script
without nesting up in callbacks
 
this step translates a speech file to text and gives me json.. its the only operation in this program that won't block
hmm.. that module looks right. i'm actually using the watson node "sdk" so i may have to switch to using pure rest calls for that but thanks
 
10:43 PM
it does its work by spawning a child process
 
@AlexBollbach look into async functions, that will make it 'look' synchronous. They're a little buggy atm in the latest node, so you could fake it with generators which I think are okay
 
Promises
 
async/await
 
actually it looks like node has updated from 7.0.0, so maybe async/await is fixed now
 
I haven't done a whole lot with async/await. I know basically how it works, just haven't had a reason yet, too much cfml
 
10:46 PM
You'd have to ask @BenjaminGruenbaum he seems to know lots about the current status of node
 
meh, babel it
 
"ColdFusion Markup Language"
 
come here to get my js fix
 
i assume it's "something" for my liking
 
@david triggered
 
10:47 PM
eh, i always read it without the "c"
 
@rlemon I don't know how i feel about babel for node yet, it seems far less useful
 
ColdFusion gave me cancerous PTSD
 
gives me things like import and async/await
 
babel seems like a useful tool insofar as it is nimbler than the language it seeks to transpile
 
node has async/await now i think
 
10:48 PM
were you stuck with ACF versions, or were you working on the open source stuff
 
not the version I'm using 😛
although, I should update
pretty sure I'm on 6.x
 
@AlexBollbach babel the nimble navigator
 
I'm running node 7
 
but if node is nimbler than babel it defeats the purpose, right? but babel is by nature more agile
 
When i first started here we were on CF6, and couldn't get approval to pay for a newer license
 
10:49 PM
@KevinB ew. I used 7,8 and 9
Mostly 7 unfortunately
 
i guess the web is the wildwest where these things are needed.. coming from iOS dev i'm somewhat new to all these things haha
 
we moved to bluedragon, then when that died, railo
now lucee
which is... kindof ahead of adobe
somehow all the old cf6 stuff is still working
 
node 7 doesn't support it yet
well, not without a flag
 
cold fusion ML kinda reminds me of the code i saw in westworld final episode
sorry i'm just babeling..
 
@SterlingArcher after months of my acorns account performance being negative, it finally went positive today. The wait was painful.
 
10:52 PM
and I'm babelifying
 
cfscript is where it's at, the cfml part of coldfusion is awful for anything other than templating
 
lol
 
@lboyel 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.
 
but... if lucee keeps getting updated/maintained we might start using it's new .lucee syntax, which fixes a lot of the variable scoping problems
 
11:22 PM
@KevinB
FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed
 
wat
what does that error have to do with me
 
you caused it
clearly.
 
!!afk ->🏠->🎮
 
@Loktar youtube.com/watch?v=JjqjrxKPc7s dude his mom is smokin
 
11:45 PM
@MadaraUchiha there's a lockfile module that does all that stuff
pretty nice
 

« first day (2244 days earlier)      last day (2710 days later) »