« first day (2140 days earlier)      last day (2799 days later) » 

12:00 PM
@FlorianMargaine yo
 
@rlemon I have a vibrating pad I can connect via a jack connector to my alarm, and when the alarm rings, the pad vibrates. When I connect the pad to my phone, it never vibrates though. I'm guessing that the pad is getting special signals, so I guess I would need to write a driver to add support for it. Any resource on that, globally speaking? How I can get started with "write a driver that sends signals to the pad"?
and I guess I'll need some kind of equipment to plug on my alarm to see what signal it's sending? do you have an idea of what I can get?
 
@FlorianMargaine my guess is the pad isn't getting enough current from your phone
if you are sure it is a 'signal' the best bet would be to get an oscilloscope
and that comes with the added benefit of owning an oscilloscope
 
but before you reverse engineer it, how do you connect it?
 
^
also check what is being fed to it power wise and make sure you are matching that
maybe find a 5v 2amp power supply and test that first
(I assume 5V, might be 12)
I know nothing about power regulations in EU tho, so might be neither :D
 
@Luggage jack connector
 
12:04 PM
his phone ain't putting out 12v. thar's for sure
 
@Luggage ofc. phones putting out like 300milliamps
 
jack MEANS connector, so..
 
@rlemon I'm not, that was just my guess
 
like a headphone-style jack?
 
12:05 PM
hm.. that could be anything..
does it have a separate power source?
 
do you have a link to the device?
 
nope
@rlemon yep, hold on
 
then it would have to be powered by what your phone would put out as audio.. is that feasible?
 
well you can just make an adaptor
 
12:06 PM
if it is drawing power that your phone won't put out on the audio line
 
if you plug headphone into your alarm clock, do they explode and/or cathc on fire?
 
@Luggage ... I haven't tried that
 
I wouldn't. :)
 
@rlemon hm.. how do I know that it's the issue though?
 
okay does it have batteries?
 
12:07 PM
yea.. says 12v right on it. no way a phone can power it
 
@rlemon nope
 
without help
 
the fact that they say "compatible with OUR alarm clocks" means you are probably correct it is being fed something very specific
you might not be able to drive this from your phone without additional hardware.
 
and it's a two connector jack.. o I suspect it just want a plain 12v power source and that's it
 
@rlemon it doesn't say that on the french version
it just says "connect the pad on your phone"
@Luggage hm, how can I DIY that?
ah, so how it "works" is just that when it gets enough current, it vibrates?
no signal to send or something?
it's just on/off
 
12:09 PM
that is my original suspicion
 
That's my guess.
 
how can I verify?
 
feed it 12v.
 
no
 
how? with what?
 
12:10 PM
it says 12v on the case, and it only has two conductors. there isn't much else it can take
 
get a volt meter and read what the alarm clock that does power it outputs
 
yea.. that is safer
 
that is always safer imo
 
ok, that's going to take a while, as I don't have a volt meter (some friends do, but that won't be for today)
let's say that's the thing
 
of course, you need a spare connector to stick in there so you don't short it trying to jam in multi-meter probes
 
12:11 PM
how do I plug it on my phone to make it work when the alarm rings?
 
An inexpensive multi-meter is a good tool to have.
 
@FlorianMargaine if that is the case, you will need some additional hardware.
 
I would need to plug an adaptor in my phone, that adaptor would be plugged in with an external power source, and I plug in the pad in the adaptor
 
well, if it IS just a 12v signal, you'll need a separate power source that is switched by your phone.
 
minimally a 12v power supply, a relay, and a transistor
 
12:12 PM
and the phone would need to start the adaptor when the alarm rings
ugh.
 
i wonder if there are are bluetooth-switch power supplies.. probably not or they are overpriced..
 
personally (for ease of use) I'd grab an arduino nano, and a relay shield
 
so I'd need to hack the android headset driver to make it do what I want ._.
 
use the nano to pickup the signal from the audio source, have it trigger the relay to turn on the 12v supply
nono
you just take the voltage change when the audio plays (I assume there is one)
 
or open up the phone and tap into the internal vibrator.. feed that to the transistor/relay that Lemon mentioned :)
 
12:14 PM
hm...
I have a raspberry pi...
 
that would work, but is bulkier ofc.
 
yea.. half-joking. trying to use the audio signal is the most elegant
 
still need a way to switch the power supply tho
 
but more work on the outside.
 
ugh.
ok, I guess I give up then
 
12:15 PM
hm.. i wonder if there are any devices designed to control lights with audio that might work..
 
@FlorianMargaine you've peaked my interest. I can try to make something (cheap) that will trigger a 12v supply from an audio input
that uses parts you can order online ofc.
 
piqued*
Sorry :P
 
I like my way better
 
googling around, I can't find any vibrating pad to connect on a phone
 
@FlorianMargaine Why don't you just set your phone to vibrate?
 
12:17 PM
they're all 12V things
@OliverSalzburg because that doesn't vibrate enough to wake me up
 
quasarelectronics.co.uk/Item/… relay controled by audio signal
 
Ah, I see
 
I have a 12v screen I need to run on 5v
that'll be fun
 
and a phone can move during my sleep...
this pad: I put it under the mattress
> This non-latching relay switch will switch the relay on in response to an audio input signal. The relay turns off immediately the trigger signal is lost.
wow, sounds like exactly what we want
 
and 12v is in the operating range
 
12:19 PM
check if dx.com has it
 
well, I still need to know if that's the issue though...
 
usually 1/5th the price
 
i'd still verify that the clock is outputing a stead 12v, but I bet it is
 
@FlorianMargaine for $10 you can get a cheap multimeter
 
@rlemon I can get one for free
 
12:21 PM
@FlorianMargaine Can I have one too?
 
Me too!
 
@BenFortune sure, ask your uncle
 
thanks, uncle
 
I keep buying more
I don't have any 9v batteries at home so when the multi meter dies and the pack of batteries is more than a new multi I just get a new multi
so I've got like 4 dead one and 1 live one at home
 
lol
 
12:32 PM
@FlorianMargaine is this because audio is not enough to wake you up, or you want a silent wakeuup?
just curious
 
@Luggage audio is far from enough to wake me up
 
cc @KendallFrey seen one of these before but this one is nice
 
you can scream in my ears that I don't hear much when awake, so when asleep...
 
you need michael cthulhu's alarm clock
 
12:33 PM
... or a vibrating pad
 
hm.. who would buy a double-din vehicle mount KSP Navball?
 
@FlorianMargaine ^
WAY better than some stupid pad
(skip to 2min for action)
 
I can sleep through a lot of noise, but not my alarm
 
@rlemon lol
 
Even with a fan that's 10x as loud as the alarm
 
12:35 PM
@FlorianMargaine wife might not appreciate it... but I'm sure it will wake you up :D
 
I wake up before my alarm.
 
@rlemon hehe
 
@Luggage same. 5 or so minutes before my alarm
then I feel robbed
 
@Luggage tbf, the 2nd function that I wanted was being able to be woken up by pagerduty
 
@Luggage same
 
12:36 PM
yea.. i still snooze like 7 times.
not wanting to get out of bed
 
@rlemon I'd be glad to wake up 5min before my alarm
 
I just get out of bed even if it's 30 minutes to what I set it to
 
I'm Holly's alarm clock. she won't get up from the normal one
so I wake up and wake her up
 
so you hold power over her employment status
 
well, she kinda does too
since his boss is her father
 
12:37 PM
@Luggage Not if she's the boss's daughter
 
oh, that's cheating
 
btw @rlemon... did you date her before or after starting the job?
 
before
but I got the job before she did
:P
@KendallFrey WHAT?! American "Canadian Bacon" is Ham
not back bacon
 
yeah
 
no wonder they shit talk it
 
12:49 PM
canadian bacon was brought from britain by the americans
 
it should have been called english bacon
 
^ Canadian Bacon (back bacon)
> American_Canadian_bacon.jpg
PFT!!!!
 
No. Thats ham. Occasionally called canadian bacon.. but very occasional
if it was thinner ham, then more likely it would be mis-called canadian bacon
 
12:55 PM
Actually Canadian Bacon is a snowboard-grab
 
@Luggage if it is still pork loin, it is a newfie steak
like top cut newfie steak.
 
ugh
I want to find a picture of what we call bacon in France
 
I'm so hungry now
 
@corvid um, congratulations on your new phone?
 
??
 
@FlorianMargaine looks cured
 
@rlemon pork LAWN!
 
if you setup a bounty question and there is only one answer, which doesn't answer the question really, do you have to accept that anyways?
 
12:57 PM
@jAndy no
but if you don't, it will automatically award half the bounty
 
little bit stupid isn't it
 
@Luggage but the electrons are protected with this app! It's using swift's iphone.protectFromWaterDamageWithElectrons() method
 
I'd rather then give 250 rep to one if you guys instead to a random guy
11
Q: Require.ensure() non-blocking

jAndyIf we have different bundles created by webpack and we require.ensure something to dynamically transfer+eval it at a later point in time, it happens via jsonPadding and some webpack js magic. If we have require.ensure([ ], ( require ) => { console.log('before...'); var data = require( '....

 
then you shouldn't have placed a bounty.
 
@KendallFrey he has got to the worst host in the history of TV
 
1:00 PM
well, bounties are good for attention and offer a good reward, I don't feel compelled to giveaway rep for or (more or less) useless answer
 
who, guy fieri?
 
@rlemon he's funny
 
cc: @AwalGarg @littlepootis
 
@KendallFrey he's a dick irl, and sorry his reactions don't do it for me on that show
I think he's annoying
 
I learned from that. You guys probably won't because you'll already know most of it :P
 
1:01 PM
@rlemon He's a dick at Miss Universe competitions
 
@SomeGuy bookmarked for later
 
I can't believe webpack doesn't offer callbacks for asynchronous unpacking / deploying individual resources. It sounds so natural to me...
 
@Luggage /me adds you to the list of people to ping
 
@KendallFrey youtube.com/… after almost the complete video I stand by it. His reactions are not the highlight for me.
(but that answer is golden and the other contestants reaction is the best)
> :O:O:O:O:O:O:O:O:O:O .... PWAHAHAAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
 
see I love his face
 
1:11 PM
watch the other contestant react
he's great
 
I preferred Steve's reaction
He's so sarcastic
 
@jAndy for 'unpacking'? You can require dependencies async
 
@BenFortune yep
 
@Luggage have you seen my bounty question?
 
1:14 PM
no
reading it now
 
@Luggage the question is, how to let bundle / pack webpack a module (let's say 5 resources containing js/html/css/font) so it is only one file to transfer over wire, but have callbacks or like yielding options on the client, when those files are unpacked and loaded in the browser
right now, this happens entirely synchronously, leading to blocking the browser on "big files"
 
use AMD's async require. webpack understands it.
 
How does that solve the problem?
 
require(['./myModule.js'], (data) => {
});
or requier.ensure looks iek it works the same way
 
yes, but the myModule.js (which itself contains 5 different data types) gets still unloaded at once on the client no?
 
1:18 PM
you aren't specifying any dependencies in require.ensure, in your example, but require()ing them syncronously after
 
@jAndy The Game
4
 
> It's q to quit gdb.
hehe
really nice article
 
myModule.js has 5 fiktive require() calls, so the webpack engine recognizes those as one bundle and zips all together, leading to one file with jsonP data.
 
:D
His blog is great. I can't understand most of it
 
that is required with require.ensure or AMD require, the transfer is not the problem, but once that bundle file is on the client.. all those individual components must be evaluated ... THAT is the point which blocks and bothers me so much
 
1:21 PM
Ohh, ok.
but still ook liek you are missing part of the require.ensure.
 
I just used the require.ensure here to load a chunk at a later point in time, basically just to transfer it over wire
 
well, js is single-threaded, so the evaluation will always block, i think
 
@SomeGuy like?
 
well I could manually modify the webpackJsonPaddingCall or whatever it is called. I'm wondering if there is any way to hook into that process via plugins or postLoaders. Basically you would need to setTimeout each file processing or really use es6 yields
it would be such glory
 
@FlorianMargaine He talks about BPF a lot. I haven't looked into it yet, so it all goes right over my head. I'll get around to it eventually, though
It's mostly just a familiarity thing
 
1:27 PM
@SomeGuy nice
 
!!afk I'm cold and there are wolves after me
 
@SomeGuy ah, well
BPF is kinda his biggest baby
 
It does look very impressive
 
Happy 25th birthday, #Linux! Here's your f-ing #cake, go ahead and compile it yourself. https://t.co/OCQUDPhlXY
 
he solved the halting problem with BPF
(BPF just doesn't allow any loop)
(you can only go forward in the program)
 
1:39 PM
@rlemon He didn't even provide a makefile? What a pleb
 
@FlorianMargaine Wait, what?
 
wtf, 2 sticks of butter
 
user406009
@SomeGuy You can design programming languages such that they always halt.
 
HAMMERZEIT!
 
Be back in 15
 
1:41 PM
@rlemon only 5 years older than Valve
 
Can you guys accept my edit to revert some dude's overcomplicated edits? stackoverflow.com/documentation/proposed/changes/89246
thanks
 
I thought 9590's were supposed to run hot
 
Nobody fucks up my arrow functions page and gets away with it
 
So I'm making an app with a bunch of JS objects connected to a UI. What's a good way to update the UI when my objects change? I'm used to WPF and INotifyPropertyChanged
 
@ivarni thanks
 
1:44 PM
@KendallFrey react
 
I was hoping you'd say that
Is it easy for me to pick up?
I don't want to piddle around with libraries instead of getting shit done
 
user406009
@KendallFrey React is the easiest of the alternatives.
 
@KendallFrey it is really easy actually
 
From what I can gather, setState is the magic button that makes it all work, yes?
 
yea
 
1:47 PM
just call that to refresh the UI?
 
well sort of
components need new props
or changed properties rather
and they will update
so you pass down new props to child components from the state of a parent component
I mean that is a really overly simple explanation, but yea
 
Oh, it seems overly complicated to me
 
Not complicated, sophisticated.
 
quite
 
it does complex things so you don't have to
react components are like functions, but with some built-in lifecycle hooks, ways to 'memoize' them for performance, etc.
 
1:50 PM
@Loktar Are you saying that if the state doesn't change, it won't update the UI?
 
to update the ui either the state changes, or new/updated props are passed in.
 
passed in to what?
 
props = state from the outside, state = internal state
into the component
Is there any specific scenario you'd like demoed?
 
user406009
@KendallFrey If you need to do something really simple, feel free to manually update things with JQuery. You can use developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… to capture updates to a property (setters and getters and whatnot)
 
If I manually update things it's not gonna be with jQuery
 
1:52 PM
@KendallFrey monkberry
if you want to be different
 
user406009
Yeah, there are some good arguments that jQuery is not necessary if you are willing to ditch older browsers.
 
@Luggage One example is, I want an element's background color to change when myObject.X is set to an empty string
I suppose that simplifies to adding a class to the element
 
or setting the style attribute.. yes
one sec
 
Mornin'
 
user406009
@KendallFrey Yeah, you could use developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… to capture and do simple stuff like that.
 
1:57 PM
there is that
but that violates MV* and puts view code in my model
 
damnit, neither jsbin or jsfiddle hilight jsx correctly.
 
Don't bother with JSX if you don't want to. I won't be using it
 
well.. react is a whole lots more verbose without..
 
I know
 
@Lalaland Back! Tell me more!
 
1:59 PM
i guess you could maybe use hyperscript with it or soemthing like that, though
 
I don't want to piddle around with build steps either
I'm only coding for fun here
 
ok, well.. build steps are what free you to use nice features..
but ok
 

« first day (2140 days earlier)      last day (2799 days later) »