« first day (2612 days earlier)      last day (2337 days later) » 

4:01 PM
the tag translates to "geocaching \n not me!", which is confusing
but finally managed to cook myself a non-toxic meal :D
tried to see how comfortable I would be sleeping in there. After a few seconds I realized that slope really is something to worry about
outside temperature was ~ 1C, but I was very comfy in the sleeping bag
the thing I didn't realize initially is that wind is not a friend, because it makes a lot of very suspicious sounds and I kept on getting out of the tent to check the surroundings, so I'll keep that in mind
 
Typescript definition for object literal. : I have an object which is :
 this.sounds = {
            "beep":  sound.create("~/raw/beep.mp3"),
            "beep2": sound.create("~/raw/beep.mp3")
        };
How can I type declare sounds ?
 sounds :{key:string }  ;
^ doesn't work.
basically I'm after string --> any
 
how about sounds: { beep: string, beep2: string }?
or are they dynamic properties?
in which case you don't want an object either way
 
Yes they are dynamic.
 
any reasons you're using an object then?
or any reasons you're using typescript?
 
(Nativescript development , via Angular 4 with TS).
 
4:14 PM
wait, so they're not dynamic?
 
Basically they are sounds for my app.
and I want to create a service for those sounds
 
so you create an interface with all of those keys as strings
 
something like that
But I feel pretty bad for hard coding them
 
@RoyiNamir well, that's the point of typescript
 
Make sense but let me use any. don't prevent this from me
 
4:17 PM
then use any
 
(but I want the key to be string :-)
 
@RoyiNamir sounds like you want {[key: string]: typeof sound} or something
 
the key is always a string, afaik
 
@ssube What can i say , you're the man
Any explanation please for why do i need typeof ?
{[key: string]: sound}; <--- doesn't work
 
I'm not sure what the value type should be, typeof sound is just a placeholder
whatever sound.create returns
 
4:20 PM
But this also works and it's wrong : sounds : {[key: string]: typeof A};
my bad . the declaration of create is : create(o: object | null): any;
so it's appropriate to any type i'll supply.
 
shame that library doesn't have typedefs to clarify for you
 
 
2 hours later…
6:43 PM
That would be me. My fear of heights wrecks me
 
7:13 PM
@ShrekOverflow there is something like that in the sears tower in Chicago
 
You know it's funny that their first reaction is to stop on the bridge and prolong the time they spend on there.
 
@ndugger I have vertigo
I am not sure how I'll respond to that
 
@hilli_micha i would do the same thing. staying still feels safer than moving
 
Hey, i have a simple question that bugs me:

I am parsing 20 gbs of log files and I filter information out of it and put them with an object in an array.

Now I want to edit that object in the array and find it by an id. How would I do this? :)

array.find does not seem to support a parameter and a for each would seem wrong to me
 
@meat 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.
 
7:22 PM
I am doing this with the most recent node.js version
 
@meat "does not seem to support a parameter"? Which one do you need?
 
this is my code right now
in line 14 I need to find the ID
I posted my full code for reference
 
besides the bad casing, is findconnectid defined anywhere?
 
if you may reload the page the full file is there now
but that is basicly the part where I am stuck and not sure how to proceed
 
I'll walk you through it: if you run it, what happens?
 
7:26 PM
it is the logic that i have a problem with.

It works fine i am parsing the files just fine but I want to edit the object that create in line 36 and add additional information in line 45
the object is an array called sessions
 
yes. If you run it, what happens?
you're getting an error, right?
 
it is just running thru
no problems
 
wait, so where did you define findconnectid?
 
oh, sorry
 
7:31 PM
but where cheries is needs to be the needle basicly a variable
 
array.find returns something, so you need to assign it
 
correct but I need it to find a variable from another object
 
you've lost me
 
make findconnectid an inline anonymous function
 
this example works fine
i can edit the element in the array
but I find it not good to do a loop over the array to find the correct element
 
7:37 PM
const foo = 'cherries';
const session = sessions.find((session) => session.connectid === foo);
 
thanks !
thats what i needed!
 
8:08 PM
@Loktar yea man, I don't think VR is for me. 😛 still never fully gets unfuzzy and I can only stand it for like 15 minutes before I feel sick
holly otoh can play for over an hour no problems
 
@rlemon yeah there are a lot of people like that with the motion sickness
def sucks for them
 
I think if it were clear it might not be so much of an issue
 
Room giveaway ?
 
but trying to strain my eyes to focus on top of it all just tips me over the edge
 
you adjust the IPD each time? Or are you supposed to wear glasses or anything?
 
8:10 PM
are we having the christmas giveaway this year?
 
I adjusted the ipd, still blurry for me, whereas everyone else seems to think it is fine
 
that sucks
 
so I'm chalking it up to my eyes / brain
ohh well. I figured as much going into it
was secretly hoping tho 😛
@Loktar idk about glasses, I need to go to the eye doctor soon. reading at a distance is getting harder and my left eye has been getting spasms for like 2-3 months now. almost constantly.
fuck old age
 
eat more potassium for eye twitches
 
I'm 99% sure its eye strain causing it
but, gonna make an apt with the optometrist to be sure
 
8:53 PM
Eagles have good vision. Eat an eagle.
 
9:08 PM
could be eye worm.
 
Man I feel like I'm running a damn factory at home, 12 orders printed
this vacation is starting out stressful lol
 
3d?
 
I read that as "12 printers ordered" at first.
 
haha nah
that would be insane
@shriek yea
almost all of them are the realtor sign business card holders
on etsy I got 1 order with 3, and another with 4..
had to modify the model a bit to make the process of putting it together a bit easier
was spending so much time trying to line up the sign.. and I was like wait, I made this.. I could just change it lol
 
2.0
 
9:11 PM
lol yea
crappy thing is I'm tossing like 3 finished bases/card holder because the signs are just too time consuming to glue in.. waiting on 2.0 bases to finish now heh
also the marble filament is fucking niiiice
 
i'm 7.5 hours into the first piece of thingiverse.com/thing:1454048
 
@Loktar nice. how long does one take to print?
 
that stuff prints SUPER smooth
 
marble filament? hm
 
@shriek like 4 hours for everything, but I do batches of parts
@Luggage yeah it actually looks pretty nice when done, I mean not totally like marble, but nice still
 
9:13 PM
Cool. Meaning to learn me some 3D printing too. Just haven't researched yet.
 
that's the marble base vs
other ones I was doing primarily were wood
people have requested black, white, and blue as well for bases though, all look pretty good except imo white makes it look cheap but whatever
 
man that's cute af
 
@BenFortune haha ty
took a few revisions but have it down pretty well now, 4 sep pieces to print, and the base has recesses so they all just fit in
just a few drops of super glue needed
the card just slides in from the left
base (by chance) holds exactly 50 cards
and the sold sign, I actually have it in the gcode to stop at at specific layer, then I swap the filament
so it's a single printed piece, but I use red/white, that's about the most work involved which isn't bad
 
then paint the 'sold'?
 
That does look good. Honestly thought it'd just be simple card-holder.
 
9:18 PM
@Luggage no so I start with red
then at layer 14 I swap to white
it's fully 3d printed
@shriek thanks man
 
I may end up printing this:
 
ohh, you print int that direction, right.
 
yeah, it's laying flat
and the letters bump out
@KendallFrey nice, how large is it?
 
with the intend of launching it?
 
s/launching/lubing/
 
9:20 PM
I propose sanctions on Kendall
 
@Loktar 377mm, apparently
give or take some for the end result
@Luggage With a camera
 
You can use cameras to launch rockets?
 
yes but that's not what I meant
launch (rocket with a camera) not (launch rocket) with a camera
 
@BenFortune that's pretty offensive
@KendallFrey wouldn't need lube for something that size
 
I wonder what would happen if I lit a model rocket engine and stuck it where the sun don't shine
guaranteed ER visit at least
 
9:27 PM
I don't know that it's guaranteed to fly to you the ER. But I like the optimism.
 
might need a bigger launch camera
 
9:44 PM
Hi people...
Can somebody help me please with an error? I am in a js and angular tutorial...
I have this website open:
And in this website I have the next code:
When i do that, i get some error in line 2... When I define var id..
The error is : repl: unexpected token
But I don't know why....
I am in the console of ES6
Better.. This is the exact code in the website.
 
@VictorMartinez It's still a stage 3 proposal, github.com/tc39/proposal-class-fields
There's a good chance you need to add a babel plugin to support it
 
Thank you Ben
I am reading right now.
 
10:15 PM
Why you don’t put Christmas lights on palm trees.
 
Hey ya'll my friend is working on a KS, he has almost made it to the goal
 

« first day (2612 days earlier)      last day (2337 days later) »