« first day (2399 days earlier)      last day (2774 days later) » 

00:00
do you use those rockwool things?
hook it up to a solar panel
I haven't got my aquaponics system in place yet
xD
the irony
these plants will eventually (probably) go outside.
then I wanna build an aquaponics system for in the basement.
I don't like the price of veg in the winter
I'm thinking like a dutch bucket system, lavarock and rockwool
but very shallow ofc.
@derp ha, well, about that :P
I wanna make it 'smart', and I figure the best way is to record the sunlight patterns during the prime growing season with some sensors and an arduino.. then use them to playback the lighting times for my system.
also I get to record data and make pretty charts.
I'd be happy with somethign that just kept the plants alive
00:03
that's always fun
and i'll move up from there
nice!
I bought a bunch of soil sensors, and humidity and light sensors.
I'm doing this because I have a wasabi plant
I may as well put them to good use
00:03
and i think it would do better in a hydroponic environment
damn you're going hard
then you can change variables and then do some science to determine which gets the best yield
hydroponics is pretty large scale
phase one is to build a watering system for my garden. I have all the components and most of the code done.. somewhere. it's been a while since I worked on it
what about those plants in pots with the lights in them?
basically takes an average of a bunch of soil sensors and determines when to turn on the pump. pump turns on till a float switch in a reservoir says "full", then turns off the pump for a minimum of 2 hours. the reservoir drips into the garden.
the reservoir is a bucket suspended above the rain barrel for the watering*
got a pic of your set up?
00:06
a bunch of parts sitting in a pile? sure?
hahaha
like I said. it isn't actually built. I did a proof of concept then put everything aside till summer
the garden it will be in is my main garden. this year it's half strawberries half sweet peppers.
so two zones... I think.
I haven't decided if the entire thing acts as one 'zone' or if I want to buy a splitter and control it by areas
actuated ball valves are not cheap
if you have a gradient, you can do an experiment with different amounts of water compared to the yield?
when I put in the garden box I made sure to level it :P
so there is no low spots in that garden
was a pain in the ass.
it's not a huge garden. like 5*10 or something like that.
here is one half with strawberries
other half is unmulched, still waiting on temps for pepper plants.
So you get one more harvest in the season.
00:17
:P
thanks
last year I did strawberries in a planter box. they did alright. so this year they came back in the box and I bought like 4? more of the same type of plant and then split the ones in the box.
result is what you see.
I have high hopes if I can manage to keep the birds and bunnies out of them
i'd plant things if i could do it entirely through software.
metal mesh on the sides, and plastic mesh over the top.. here's hoping.
Use a scarecrow.
@Luggage it's serving two purposes. I do really enjoy gardening, and this year I wanna try to automate a lot of it (which will end up with me doing a lot more work than if I just shot a hose at them when they looked dry)
(or some modern automated equivalent)
00:20
so gardening + electronics + ofc doing it all with as much js as possible thanks to node libs that write to arduino and rpis
automation isn't about being less work now*, it's about the pay-off.
well yea, but for the first year I'm going to be doing a lot of tweaking and data logging and going through it all.
though.. you can't really scale up to make too much automation worth it
next year, it'll be less work and more efficient of a garden.
it's not like once you automate it, you multiply your operation by 100
once you get it tweaked then climate change will make you do it again.
so better make it self-learning
00:23
that's basically what the thing I work on at work does.
ofc I didn't do that part of it, but model based control isn't new to me
00:50
the problem with trying to buy hydroponics stuff is that it all seems to be targeted at people growing weed ><
and I know if I go buy some rockwool i'll end up on a list
like the homepage of the site has some kind of tent for sale for exactly $420
I don't want to grow weed
Grow weed
why aren't rasberry pi's usb-c?
rhetorical question, mostly.
I'd love to but I'm not going to risk jail just for memes
I don't smoke it so it would really just be for luls
people grow more than weed. don't be paranoid
It's not that illegal to grow
00:55
well, depends where you are
and various other factors
I didn't realize you can have up to 20 grams here before it's a felony
Yeah i'm not in the US
i'm in NZ
still illegal here
oh shit a kiwi!
oh shit a half kangaroo
derp the aussie, wrangler of snakes, defender of wallabies and slayer of the emu
00:59
g'day tips bush hat
corks rustle in the wind
01:25
read that as cocks..
@Loktar Does yours rustle?
I'm not sure that's healthy
moisturize bro
Chicks dig callouses
shudder
If that weren't true then why do guitarists get so much tail?
(using tail as a gender-neutral term, not as a disparaging term)
01:52
k
oh gawd, at work its perfomance management time and they're getting us to write our own "career objectives" as well as our "rating" against the objective
02:29
Caps are out :(
@SterlingArcher woo
@SterlingArcher Skaters gonna hate
02:52
> You're making more money than 11% of people like you
Dang :/
Can't be under FBI investigation if there's no FBI Director. https://t.co/nt2oSnMM6V
lol
> $78 per day, Masters degree preferred
lmao
03:28
upwork?
 
1 hour later…
04:42
\o hello
\o
 
2 hours later…
06:18
derp derp
good morning
hello
how's it derping?
derptastic
I wonder how Trello implmeneted their "click on header to edit it" with exact cursor location (I click between letters, the cursor is there). Do they really calculate mouse positions and match it with an approximation of the letter size compared to the absolute location of the div
that sounds way over engineered
I didn't look at this specific case but I usually do this by just keeping it an input but styling it differently from inputs when it's not focused
06:30
@DenysSéguret that actually sounds great
user7917367
i want to learn JS could any one suggest me best book or other resource to learn it
@DeepakJain Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
eloquent javascript
user7917367
is it good book for Beginners ?
yup
06:31
@DeepakJain send me a private message I recommend good books
user7917367
sorry i don;t have reputation to do that
user7917367
private chat
@CatBoss You still have to provide some sort of hint to the user, preferably on hover, for example icons to the right, or a tool tip, or a style change
private requires reputation? i didnt know that
@DenysSéguret right, nice way of keeping it simple.
It lets you have a very clean window with everything still editable/actionnable
06:34
@DenysSéguret I add a little grayish pencil icon at the right side of the element window
@SterlingArcher the weight loss challenge is difficult to achieve if you have already less weight to loose ...
user7917367
@CatBoss yeah i need 20 more reputation for pvt chat
user7917367
could u pls send the books here only @CatBoss
Why would you use private message for a js book list ? This is at the core of the vocation of this room, no need to go elsewhere
user7917367
@DenysSéguret if u know good books/Online resource JS for rookies pls send
Derp already suggested a book
06:38
@DeepakJain I had good experience with Sitepoint books... Although they have some minor "bugs" for example in the AngularJS book, they tend to explain everything very understandably for the pupil with the less knowledge
@Dalibor Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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 would suggest that either
this doens't teach you angular or react or insert framework here
which is why i liked it
if you comprehend the basics pretty well, then using a framework or libs doesn't require lots of time to get " in fingers "
user7917367
yeah i want to learn JS first then i think i would move on to react or angular
06:40
good idea
user7917367
1 more Question should i learn JS then Jquery then framework (angular or react ) right ?
@DeepakJain You should learn JS, then learn what you need to be productive.
user7917367
and which is the best/most demanding Framework ?
i have a confession to make
jQuery, while still in use today, doesn't have that many legitimate usecases anymore.
06:41
i've never really learnt jquery
@DeepakJain That's a very opinionated question.
Learn a bit of each, see which one you like.
whatever it is now, it'll probably change by the time you get through that book xD
buuut if you have a good grasp of the basics, you'll be better able to assess each framework
Morninga
evening
@DeepakJain like a carpenter, no one tool is the best, use the best one for the job. Hammer can't do a saw's job.
06:48
Anyone good with modelling here ?
work in consulting however and you'll find a lot of people trying to hammer in screws
@derp really ? that should had made you perfect at modelling solutions
what are you doing @Mathematics?
I am trying to build an open source api, it will be a data explorer, query builder or report builder, I made first part of it work, but I am struggling to turn it modular and into an API
here is a draft version of it - jsfiddle.net/ntbkyuau/11
not entirely sure at what i'm looking at
that's a fiddle to generate the correct url to make the request to your data source?
06:54
yes
and you want to basically hide that complexity and provide a nice sane api
@derp complexity in code you mean ?
@CatBoss Not with that attitude!
aren;t you consuming an API and generating the correct queries to query it?
06:56
@derp yes that's correct
@MadaraUchiha If we judge a hammer by its ability to saw, it will be used forever in the wrong places.
okay then, where does the 'turning it modular and into an API' come into it?
Don't judge the hammers. Some of them are special.
that's a pickaxe!
this is something very similar
https://odataquerybuilder.codeplex.com/SourceControl/latest#build/odata.querybuilder.js
06:58
@derp enough runescape for today
there are different hammers, each designed for specific tasks
oh you want to make some sort of JS library that other devs can import and then it'll make the xhr requests behind the scenes?
you won't use a sledgehammer to nail down a nail, but it's possible to do
(don't do that though)
@derp yes
@derp why
07:01
because later down the track, i'll be forced to dig through the JS library code and figuring out why it was making some sort of request and what it was doing with it
much better if there was some sort of REST facade with nice documentation
so that i can choose when i want to make the request and it'll be my code making the requests
@derp did you ever developed an open source api ?
nope!
but by that definition, if you give me an hour, i could write the simplest express server, upload it onto github
and then i would have
ok, to be frank, I want to convert my library into TypeScript code
*code
Currently I am learning gulp to use it for TS
var date = new Date("December 24, 2000 00:00:00");

console.log(date.getDate); // 24
console.log(date.getUTCDate); // 23
Why?
I live in 1+ timezone. Is that the reason?
07:23
yes
But your date construct isn't right
It's advised to use new Date(<year>, <month>, <day>, <hour>, ...), thus do the formatting yourself
Oh ok :) Thanks!
07:46
@MadaraUchiha correction: Minecraft
I mean, RuneScape, how old are you? ;-)
<-- old enough to have forgotten his login info, apparently.
08:08
try password reset?
I've played that game from the start 10 years ago \o/
left it eventually. not sure if my account is still around. It has a lot of chaos runes and rune ores.
does stackoverflow have a general chat room for the site? It seems impossible to find
Try the lounge, they'll love you there
08:23
Hi, I have an object and the properties of this object are functions
var a = { myFunction: function(variable) {}, myFunction2: function(variable) {} }
i invoke myFunction(variable) from another file.
a.myFunction(variable) I mean
I cannot pass variable to to my second function
if i call it within the object
@KarelG Seems like I have to do that from inside the game
... which I'd probably better not do from this PC :P
@GokhanDilek a.myFunction.call(null, <ur argument>);
the first argument (null) is a replace for this inside the function. if you want to provide that, use it
@BenFortune the only lounge I can see is C++ lol
I've spent far too much time on Runescape
he was joking. there isn't really a "general" chatroom
but we don't always discuss about javascript here. We sometimes make jokes, photoshop items, shares funny links, ect
so just go to a room that suits you
@BenFortune who cannot say that ? :P
Just one of my many accounts
Ahh, alright, thanks @KarelG
Since i'm here, I'll leave this for you to enjoy
@BenFortune doesn't mean anything: I have more than one year on civilization V just because I don't see the point in quitting it even when I don't play for one week (on linux)
(civ VI isn't gentle enough for the rest of the system, though)
@numbermaniac That is painful to read
08:43
god Civ V is addicting
i have a "one more turn..." problem when playing Civ V
@KarelG or a one more campaign at 3:00am problem?
@DenysSéguret Haha, think I have about 15k hours on guild wars
We used to have a house crusade of kings 2 night where about 6 of us would start out in england / wales / ireland / france and then we'd try to take over the world
08:47
Crusader kings!
omg
@KarelG I can call it from another file and pass variable but..
Yeah Ben the is game awesome, especially when you make your children marry and they have children and they don't get the incest trait
If i dothis within the object
08:49
function(variable) { return myfunction2(variable)}
cannot use it in my function2
@littlepootis It's the only way to get out of iceland
You won't get tech for ships in time so you have to marry your own family away to get off the island
lol wat
Oh, games
@GokhanDilek uhm ... ya can bind the object to this ya know ? (the first argument)
.... tbf your goal isn't clear to me
09:07
i did bind the objet to this
this is my workflow
second js file I call
a.myfunction(variable)
i cannot use this variable inside myfunction2
More context please (put a fiddle or something)
09:22
Is that something related to closure?
09:51
Hi
hi.. im having a problem concatenating and displaying time.. when i do this
var date = new Date();
//return
console.log(
date.getHours()<10 ? "0"+date.getHours() : date.getHours().toString()
+ date.getMinutes()<10 ? "0"+date.getMinutes(): date.getMinutes().toString()
+ date.getSeconds() < 10 ? "0" + date.getSeconds(): date.getSeconds().toString());
i get a number like 13 instead of the time like 012208
@BurakAkyıldız Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@iLiveInAPineappleUnderTheSea Break it up and see what's happening along the way
10:07
when i do something like hours = date.getHours()<10 ? "0"+date.getHours() : date.getHours().toString() and concatenate it works
Parenthesis are your friend.
10:22
hi
I'm sending an object to my WS as application/x-www-form-urlencoded. When I log req.body I get:

{"{\r\n \"text\": {\r\n \"content\": \"751949b34b750ccb01e3\",\r\n \"tag\": {\r\n \"type\": \"Buffer\",\r\n \"data\": ":{"\r\n 32,\r\n 254,\r\n 113,\r\n 28,\r\n 66,\r\n 167,\r\n 241,\r\n 173,\r\n 175,\r\n 255,\r\n 74,\r\n 50,\r\n 128,\r\n 59,\r\n 91,\r\n 43\r\n ":""}}


But when I log req.body.text I get undefined.. Any idea why I can log the text object?
Yeah I'm sending the object as url-encoded..my WS doesn't accept JSON gives back a CORS error.

So I'm trying to send it over the wire as url-encoded then parse it back to JSON.
ws? websocket?
my bad Web Service hosted on Node Express
Why are you sending JSON as url encoded?
10:29
the webservice doesn't accept JSON when I deploy it to live, only accepts it on local debug
so If I want to send the object to it needs to be url-encoded
You should allow cors on the web service
> the webservice doesn't accept JSON when I deploy it to live, only accepts it on local debug
lol basically when I send anything other than url-encoded or plain text it triggers a pre-flight response preventing the POST.stackoverflow.com/questions/12320467/…
so maybe I just need to add an option in CORS Options in the Express server to allow that content type of JSON?
I mean the current corsOptions does allow POST and header Content-Type but still triggers the pre-flight
Exactly
10:35
var corsOptions = {
    origin: ["http://localhost:4000", "https://myfakepage.com"],
    credentials: true,
	  methods: ['GET', 'PUT', 'POST'],
	  allowedHeaders: ['Content-Type'],
    optionsSuccessStatus: 200 // some legacy browsers (IE11, various SmartTVs) choke on 204
};
The answer for that post is really good
Never had problems with 204 in IE11
Or, let's put it differently, we use CORS in express and don't set that option and it's not a problem
@iLiveInAPineappleUnderTheSea your problem is that ? : has higher precedence, which means that date.getHours().toString() + date.getMinutes()<10 ? " .... after the first : is threatened as one statement
not the first. Lenovo did that too before
(actually they went farther)
10:47
@KarelG Did they put the keystrokes on your Twitter?
@OliverSalzburg yeah was happening for me on Chrome..I have the COR's options set on Express..but maybe I need to also send those headers in the POST?
because sending the following trigger the pre-flight cors error
POST /TEST/DecryptAES HTTP/1.1
Host: localhost:4001
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 82d3ba60-ebc3-bafa-91f9-0c6653699c11

{
 "text": {
  "content": "751949b34b750ccb01e3",
  "tag": {
    "type": "Buffer",
    "data": [
      32,
      254,
      113,
      28,
      66,
      167,
      241,
      173,
      175,
      255,
      74,
      50,
      128,
      59,
      91,
      43
    ]
  }
}
}
There is nothing wrong with triggering an OPTIONS request
You just need to make sure you send the right answer to it
11:08
ok so If I have the COR's options above set on my server and send application-json to the server. What should I include in the XHR headers? I assumed I just needed to make sure the request was sent from one of the allowed origin in the array.
which is essentially a pre-flighted request if I use JSON right
You don't have to do anything special on the client-side
The browser handles everything for you
wtf, just got a call relating to a CORS issue
Joe
Joe
how to say this sentence with other words : When it has to do with frequency
I want a better sentence expression
!!afk foo + bar = foobar
Joe
Joe
thank you

« first day (2399 days earlier)      last day (2774 days later) »