« first day (2174 days earlier)      last day (2769 days later) » 

1:11 PM
Well, I finally got my arduino to play an entire song without crashing
@SterlingArcher Wanna talk more about serial ports?
I logged my serial port traffic, but didn't see anything suspicious
 
@Loktar another trip around the sun!
 
@bitten When you say it that way it sounds so stupid
 
;_:
 
We measure our life in trips around the sun
 
yeah, pretty silly
then we gather around a little fire and chant hymns togethers
(not my joke, but still)
 
1:21 PM
We measure our life in gravity and inertia
 
and every trip we have a little holiday to celebrate passing the same point on the orbit as when we first emerged into the light.
 
I think we need to celebrate more often. I've been talking to this Italian girl and she says that in Italy, they party on Wednesdays just as hard as if it was a Friday night.
I wish Americans were like that
 
@KendallFrey praise be to the one who gives us warmth
i guess the sun has lost a bit of it's deity status since we invited radiators
 
@ndugger maybe that means they don't party on friday nights
 
@ndugger each to their own, but that's way too much partying for me
 
1:27 PM
She was pretty clear on the fact that they party a lot in Italy
 
although i agree we should celebrate more often.. people over look at look of things
 
@bitten I just need more excuses to drink with people instead of alone in my apartment
 
@ndugger well, italy calls then
 
Morning everyone.
- From US NY Time
 
you can still head out to a bar, i don't consider that partying so i missed what you said
 
1:32 PM
I have a question to ask -
 
and if you are ever around the low lands, i'd be happy to go for a drink
 
I understand the entire philosophy around REST APIs are stateless requests, solely depending on the http protocol.
 
i have 2 lovely sours from alvine that i think i'll be having tonight
 
Though would it be possible to sit a REST API on top of web sockets?
In practical production use.
 
@neet_jn that confuses me
 
1:35 PM
User opens connection to a route on web sockets, as data updates, the client application dirty checks to get live updates.
 
@rlemon Have you ever gotten a letter from iDNS?
 
i thought websockets was solving issues with rest apis, like mitigating the whole client/server
 
Rather than sending * requests, we keep one connection open while the client is active.
 
@bitten you still need a client and a server for websockets
are you thinking of webrtc?
 
@ndugger, thank you! Exactly what I was looking for.
 
1:38 PM
What? Did I just accidentally answer someone's question?
 
@ndugger i left out the word relationship
@ndugger lmao
i wanted to say putting rest over ws complications the relationship, rather than mitigating it
 
I've made a "router" for web sockets before. It can be helpful in some cases.
 
@KendallFrey no?
 
@KendallFrey did you sniff the process explorer for what serial port is being used by what?
 
@ndugger was it a server side router? to be fair i know little about this so :p
 
1:43 PM
@Loktar happy birthday buddy :D
 
@KendallFrey quick Google says it is a scam
 
is there an easier way to run a second function in a callback if it's present?
i have onChange={ (e) => { valueLink.action( e.target.value ); callback ? callback( e.target.value ) : ''; }
 
@rlemon It's kind of funny. They tell you your domain is expiring and try to convince/trick you into renewing your domain with them.
@rlemon yep
@SterlingArcher No. I still don't see how that could be helpful.
 
Hrm. I suppose I should update my address info on my domains
 
but perhaps there's something else to do
 
1:44 PM
It's all my old address
 
Well, if something else is using the port, it could be sending this phantom data
Or maybe you're just sending data in C# and not realizing it :P
 
@SterlingArcher I get 4 0x00 bytes right when I open the port in C#
That's all the unexpected stuff I found
I'm currently guessing it's an arduino thing
 
Maybe those bytes are a connection flag of sorts
It immediately sends over data to provide a connection check?
 
yeah but I'd expect them to not show up in the recv buffer
 
Yeah likewise, that's weird
 
1:46 PM
and they don't appear in the serial port traffic on my PC
 
Are those 4 bytes consistant to only when it turns on?
 
There are several similar instances with arduino I found online, with various languages
so I've basically ruled out .NET
@SterlingArcher It appears so, but I'm not sure
I added some code to read and discard the first 4 bytes
with that it works the first time I run my C# program after uploading the sketch
subsequent runs do not work, even after resetting the arduino
even though it appears it's receiving the same data
so idk
 
3
Q: Why am I seeing unexpected data at the beginning of the Android app when sending Arduino data via Bluetooth?

toniuxI am working on a group project where we are sending serial data over Bluetooth from Arduino to Android. We are all fairly new at both Arduino and Android. Hardware used include Arduino Uno R3 and HC-05 bluetooth module. I am sending dummy data for a 3 axis accelerometer packet and successful...

Seems like it may be a connection pin config?
Do you have a delay when you connect?
 
@SterlingArcher That sounds different
@SterlingArcher Not sure what you mean.
if you mean waiting for a bit before sending data, it works the same with or without a delay of a few seconds
 
No, opposite, delay receiving data on the duino
 
1:53 PM
still not following
the data transfer is instant if that's what you mean
this is pretty close to what I'm seeing: forum.arduino.cc/index.php?topic=215259.0
 
Right, so on the duino, set a delay for a few miliseconds before it grabs any data sent
 
why?
also, when?
if you mean right after Serial.begin, that seems odd because the extra bytes aren't received until much later anyway
 
It sounds like it's not serial data, it's from the USB trying to provoke a response. As for when, after you call Serial.begin(baud)
Really?
Where are they received?
 
Right when I call serial.Open(); in C#
 
Try a different baudrate maybe
This is weird af
 
1:59 PM
It still happened with a standard 115200 baud
 
This may be a good Main question. I can't find a duplicate reproducing this phantom byte
 
1
Q: Extra bytes sent when communicating at 115200 baud over USB serial (WinAPI)

AidanI'm attempting to send serial messages over USB to an Arduino Uno, using raw WinAPI commands. When using baud rates less than 115200, it works perfectly fine. However, when I send at 115200 baud, two extra bytes are sent prefixing the data I sent, but ONLY for the first message after connecting t...

this is mostly the same too
 
Have you tried using angular instead?
 
only this guy is getting 2 bytes instead of 4
 
@SterlingArcher thanks man
finally 21
so that's cool
 
2:01 PM
lmao body of a teenager, hair of a vietnam vet
 
LOL
 
@Loktar if you're the one of your avatar, you look 30
 
yeah I'm 34
 
heh, troll
 
So young
 
2:02 PM
@Loktar *no, I'm 34
 
yes so young...
 
I actually shaved my beard so I don't look like a fucking monster now
 
i'm 78
 
who taught you equality
 
@KendallFrey I am a bad programmer
 
2:03 PM
I've had an off-by-two error once, but never an off-by-four
@Neoares @Zirak is 96.
 
@KendallFrey lol so unexpected
because his avatar looks no more than 40
 
@KendallFrey tldp.org/HOWTO/Serial-HOWTO-4.html this is actually a good read for me
Huh, there's blood on my phone
That's not good
Why am I bleeding
3
 
HIV
 
@SterlingArcher When was the last time you were bleeding?
Was it around a month ago?
 
2:08 PM
Apparently my fingers either had blood on, or bled because the fingerprint thing on my phone just had blood on it
But my hands are clean and I see no cuts
Who's blood is this
 
Where has your finger been?
 
@SterlingArcher I am blood
 
@littlepootis lel
 
@KendallFrey jesus man
 
heillelujah
 
2:12 PM
@ndugger We know where his fingers have been.
 
( Í¡° ͜ʖ Í¡°)
 
^ My PC all done, just put in sleeved cables last night
along with the nzxt hue+
fuck it's beautiful
 
what case is that?
 
corsair 760t
 
damn that looks fantastic
 
2:21 PM
thanks @BenCraig probably one of my best builds
 
im jealous
 
I really like my Air540 case
 
@Loktar gr8
 
@bluetoothfx 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.
 
@Loktar but that doesn't look like a gun at all!
 
2:21 PM
@ndugger yeah that isn't a bad case actually
I love most of corsairs
@rlemon haha
 
LOL wtf
 
hello guys
 
@Loktar is that liquid cooled? is that what those big-ass pipes are for?
 
@KendallFrey yea
it's the h115i
all in one liquid cooler
I have the 6700k oced to 4.7ghz
 
2:26 PM
why is there a 2-digit display inside your computer
that looks nothing like the inside of my case
 
mobo codes (qcode) so if there is an error or anything
really handy actually
 
so like a better version of the piezo buzzer
 
Hello everyone.
Node.js developper, I've got the habit to use [`async`](http://caolan.github.io/async/) really extensively.
With the release of ES6, preparation of ES7, and Promises, should I learn Promises and go all in with it? Or stay with async?
 
@KendallFrey yea
I don't have a buzzer at all (the mobo does the pins for it though)
 
what's with that plastic covering up the mobo? just for looks?
yeah i took my buzzer out
 
2:30 PM
@DrakaSAN Go with promises. Callbacks are not really relevant in the long term.
 
entirely too fancy looking for me :P
 
Especially with async/await
 
my PCs are meant to hide under a desk and wiggle electrons as fast as possible
 
@KendallFrey mostly yea
the top left you can hook it to a custom water loop to cool the vrms
so I think to keep it uniform the (armor what they call it..) was added
 
that does look quite sexy
 
2:32 PM
thanks man
 
the cables running behind the case looks nice, but is probably a bitch to mess with
 
haha yeah a bit
I have a ton of them zip tied
 
My case is a spiderweb of cables
 
spent a while last night getting them all correct
 
you oughta 3d print some sleek plastic covers you can clip over your cables
 
2:34 PM
@RoelvanUden Thanks, was wondering if the effort was worth it, I loved async, and have a lot of personal project using it, will be a pain to rewrite them with promises
 
to make it look even more pornographic
 
Hey has anyone removed modernizr from global scope into an angular service?
 
@DrakaSAN Yes, you should definitely use Promises.
 
@KendallFrey omg that would be insane
 
@DrakaSAN There's nothing wrong with async, but it's nothing more than a bandage library that covers for something that didn't have a good answer for a long time. The good answer has arrived, though: promises. Especially going forward with async/await functions, promises are more relevant than ever.
 
2:35 PM
Take a look at Bluebird
It has some very good features
 
@RoelvanUden: Is await/async implemented in node.js already? If not, I may wait for it to get the full Promise experiece
 
Or, you know, have a browser that supports promises natively. Not to dismiss Bluebird, which excels in every way in comparison, but sometimes you just don't need a library for promises.
@DrakaSAN It's a ES7 proposal IIRC, Babel supports it and so does TypeScript
 
@RoelvanUden: Well, time to learn Babel too then
 
if by learn you mean install and forget yea
 
2:42 PM
@DrakaSAN don't wait for async/await to start using promises. You'll have the use a promise sometimes anyway, even with async/await. It's just some sugar.
Also.. use async/await today, like I and others do.
 
@KendallFrey imgur.com/gallery/ZAuTNo4 top comment lol
 
@SterlingArcher lol
 
@MadaraUchiha: I prefer to use native implementation when possible, having 10k dependencies is not my tastes, so unless BlueBird is miles beyond natives promises, I will tend to avoid it
 
@DrakaSAN The only library I always install in every single Node project is Bluebird.
I install it more than I do express.
It's simply superior to the native implementation in every way (including performance)
Do learn the native API, of course, it's not awfully complicated
And Promises are a tiny bit tricky to wrap your head around for the first time
But when you're comfortable with Promises in general, Bluebird is generally the way to go on the server side
(Not always so on client, because of the relatively large filesize)
 
besides being a polyfill that you may need in some environments, bluebird is a fast implementation with thought put into stack traces, debugging, spec compliance and a bunch of just damn useful helpers.
 
2:50 PM
@MadaraUchiha: I will see when I ll deal seriously with promises, only done a handful of tests projects. I was not impressed by Promises, but it may be due to the fact I m so used to async, that I simply don't wnt to change my habits.

We will see about BlueBird, since I almost never do client side, and handle as much as I can server side, it may be something I grow to like as much as async ;)
 
@DrakaSAN There are a couple of very big advantages Promises have over callbacks
 
promises are the standard, so you need to work with them wether you want to or not.
 
The prime of which is that you can't return anything from a callback, and you can't do anything with the data inside the callback, outside of it.
 
if nothing else, to wrap them in your own api
 
A Promise is an object you have in your hands now, and you can do whatever you want with, now.
You can return it, chain it with .then(), pass it into functions, store it
 
2:52 PM
it's great on toast.
 
It allows you to continue building out your logic in the same context, rather than passing everything along callback after callback
 
Another very big advantage is that a Promise is both throw safe and return safe
You can't throw inside of a callback, else, you're screwed.
You also can't return anything from a callback, because there won't be anyone waiting that returned value.
But you can do both those things in a Promise.
 
If size is the main concern and you just need a minimal compliant polyfill, there are smaller implementations than bluebird, pretty sure.
 
@Luggage: That was the goal of my question, I m may not like them now, because I prefer something else, but if it has become the standard, I don't have any choice, and once I know Promises better, will probably learn to love them in the meantime
 
@Luggage Yeah, but he mentioned server-side
 
2:53 PM
async.js does make a lot of logic easy, but once you figure out how to replicate that functionality with promises i doubt you'll turn back
 
ohh, server-side? no need to be small
 
@DrakaSAN I can definitely see a future in which all of node's API will return Promises instead of using callbacks
You could ask @BenjaminGruenbaum he's involved in these discussions
 
yea. knowing promises will let you transform them into what you DO like. even if it's callbacks. Also bluebird has a helper for that
 
@MadaraUchiha: Already starting to happen, one year ago, everything was callback based, unless you specifically searched the Promise equivalent. Nowaday, half of what I use have a Promise fork set to becomethe main branch in the future
 
but just.. start using async/await today. it's a finished proposal.
 
2:55 PM
@DrakaSAN you still have a choice, no one is making you use promises - I do warmly recommend them as do most people in this room. Promises are simple, callbacks are easy.
 
@DrakaSAN Yeah, I mean the native Node APIs
Like fs
 
@MadaraUchiha ~ a year before progress if I had to guess
 
@DrakaSAN and if you find a piece of logic that you managed to implement with async.js but are having troubles implementing with Promises
 
My argument, @BenjaminGruenbaum is that since they are a standard you SHOULD know them. Even if it's to help you avoid having to use them much.
 
I'm sure quite a few users in this room would appreciate the exercise :)
 
2:56 PM
@Luggage why?
 
@Luggage You should be familiar with them just like you should be familiar with other language features like closures, and how Date works.
 
the same reason coffeescript users should be familiar with javascript.
 
But you're under no obligation to use them (yet)
 
they are the language everyone else speaks.
 
@Luggage lots of people use promise like abstractions and don't understand them and are quite competent.
 
2:57 PM
When the core node APIs come into play, and when major libraries start using them exclusively, then you would have no choice.
 
imgur.com/gallery/G6FkA @rlemon @KendallFrey wow
 
ok, fine, but I maintain that when things go wrong in a promise->other api translation, a bit of understanding helps
I conceed you can get way without.. but why push for ignorance?
I prefer to know a little bit about anything I am using. And if you use other people's code, you'll likely be using promises.
 
I'm the last person who thinks people shouldn't understand promises :P
You should know them like other language parts, no more - no less.
 
ok, then we agree.
 
it's the response I was expecting :D
 
2:59 PM
well, i think more is always potentially helpful, but we agree close enough that we can move on :)
 

« first day (2174 days earlier)      last day (2769 days later) »