« first day (1746 days earlier)      last day (3193 days later) » 

12:00 AM
so are you trying to separate userSockets and streamingSockets entirely?
 
m59
Well, they're quite unrelated. Certainly don't need to be in the same file, if even in the same area of the application.
 
@vamsiampolu there isn't a good way to load singletons
 
@m59 if you used namespaces you could stuff a bit cleaner then
instead of this:
    var io = require('socket.io')(http);
    var userSockets = require(..);
    var streamingSockets = require(..);
    io.on('connection', function(socket) {
        userSockets(socket); // add the socket.on(...)
        streamingSockets(socket);
    }
 
@nick Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
@CapricaSix hush
 
m59
12:08 AM
Ah, I see.
 
you might try something like
 
m59
LOL, I didn't realize it was Caprica complaining at me. That's cool. I thought a command had to trigger that.
 
var streamingSockets = io.of('/streaming-sockets');
streamingSockets.on('connection', function(socket){
  console.log('someone connected'):
});
just a bit easier to read IMO
might be more work than it's worth though if you're just connecting both streamingSockets and userSockets at once when the client loads the page
 
m59
I only need the streaming listeners if they visit a certain page
So, the client would just connect to that socket at that point
 
yep
 
m59
12:11 AM
but yeah, I get it now. The server is just setup to lookout for that namespace and the client can connect whenevs.
 
the client can connect whenever
 
m59
Cool, all makes sense. Pretty easy after all.
 
namespaces/rooms are all handled over the same socket connection but you don't have to worry about that
it's just a way of making things neater and isolating certain parts of your app
 
anyone knows anything regarding the EM drive hype?
(I know the concept and I know it has not been peer reviewed yet ... so, what's with the hype)
 
> extracting "fuel" from the very fabric of space-time
sounds like a load of BS to me
but if it's true then that's awesome
 
12:21 AM
Until it's peer reviewed it isn't worth thinking about
 
@tereško ok,this means I need to create IIFE in a cjs module...
 
@nick I'm pretty sure its "fuel" is electrical energy, which it spends running the magnetron
so it's still follwing the rocket equation, but it has the ability to "gather fuel" using solar panels
 
@KendallFrey no clue, I just pulled a quote from the first article that came up
 
The key part, IIRC, is that it does not lose mass while thrusting
 
cute
 
12:25 AM
@JanDvorak If it runs on electricity, it is losing mass
 
Hi
Good Morning (In my normal timezone finally \o/)
 
@nick the concept has been floating around in public for about a year. And there have been some kinda-working experiments. It's on it's own is nothing new. What I am asking about is the "hype" part.
 
but what's the deal if it's just a laser thruster?
 
@rlemon yeah fuck that, I'll open whatever end I want
 
@nick but can you catch a bird
fixed
 
12:26 AM
@JanDvorak I'm not really sure how it works, but after some research, the main thing is that the radiation isn't escaping
@tereško media can make hype out of the most mundane shit
 
it's not even "media"
I don't see any major players pushing it .. yet
 
@rlemon He's hacking somehow
 
m59
@nick lolololol your answers in order of score:
1) 190
2) 5
 
probably trained that bird
@m59 haha
!!stat nick
 
@nick You (http://stackoverflow.com/users/1146881/nick) have 2196 reputation, earned 10 rep today, asked 4 questions, gave 10 answers, for a q:a ratio of 2:5.
avg. rep/post: 156.85. Badges: 1g 10s 20b
 
12:29 AM
i pretty much got all my rep from a single answer
not sure how I feel about that
 
m59
DAT AVG
 
not that a laser thruster isn't cool (can't be beaten in terms of exhaust velocity) or hard to pull off, but pushing against the very fabric of space time would be much more awesome - it breaks the conservation of momentum, which follows from acceleration invariance.
 
m59
!!stat m59
 
@m59 You (http://stackoverflow.com/users/1435655/m59) have 22857 reputation, earned 0 rep today, asked 17 questions, gave 544 answers, for a q:a ratio of 1:32.
avg. rep/post: 40.74. Badges: 8g 54s 80b
 
In other words, if you can push against the spacetime continuum, you can also feel how the spacetime continuum is moving, and pick out a preferred reference frame in terms of velocity.
 
12:31 AM
@JanDvorak I am extremely skeptical about breaking conservation of momentum. Using vacuum energy as reaction mass seems not entirely unreasonable, as long as momentum is conserved.
Also, I hate vague terms like "the spacetime continuum"
 
Why push or pull when you can warp ?
 
also, how exactly is it not radiating away? I can take isotropic radiation, but it can't be darker than a black body at that temperature (time reversal invariance and stuff)
 
@Abhishrek We can't warp, so...
 
@KendallFrey we can
 
@JanDvorak Yeah, that'll definitely lose some mass, because those things get quite hot
@Abhishrek We, uh, can't.
 
12:33 AM
@KendallFrey we are working on it
and we have +ve stuff
 
@Abhishrek THAT'S NOT THE FUCKING SAME
 
@Abhishrek still haven't found any exotic mass
 
"We can land humans on Mars"
 
@KendallFrey Alcuberrie drive is the future :P
 
12:34 AM
@Abhishrek we can't. We lack the tech.
 
@Abhishrek of scifi
 
@JanDvorak no its a real thing brah
 
*it's
 
@Abhishrek no, it is a paper dragon
 
@JanDvorak My guess is, if the radiation is isotropic, then momentum is being carried away anistropically by some other momentum carrier.
 
12:35 AM
@tereško they are experiementing on it lately
*have been
 
also, the alcuberrie drive sounds like a thing from the Pokemon universe
 
@Abhishrek It's a real thing just as much as wormholes are a real thing. The theory works, but we've been unable to confirm the realistic possibility.
 
@KendallFrey the problem is, the only possible carrier is the space itself, which is supposed to not exist
@KendallFrey by the same token, Hawking radiation hasn't been observed either
 
@Abhishrek JPL has been testing whether they can even create a measurable indentation in the fabric of space
 
@JanDvorak The vacuum definitely has an energy
 
12:37 AM
it is not the same
 
@KendallFrey but not mass
 
@JanDvorak Are you forgetting about E=mc2?
 
right, but...
 
@tereško yeah, i know, i like being optimistic though
 
If virtual particles became real like the Hawking radiation thing, then they could be carrying away momentum
 
12:38 AM
the point of vacuum is that it's the lowest energy state. If you can extract energy from it, it's not the true vacuum.
 
@JanDvorak What about the Casimir effect?
Casimir effect = force, force * movement = energy
 
@KendallFrey how do you intend to make it to do Work ?
 
Can it be reformulated with correlated electron orbits, akin to Wan der Waals forces?
 
Although, one could probably describe that as negative potential energy
@tereško Create a setup for the typical Casimir measurement experiment, then have the plates squeeze something that does work
 
12:41 AM
@KendallFrey that's a half of a cycle
what's the step two?
you need a way to move the plates to the initial position
 
@tereško I didn't say anything about continuing to extract energy. Only that some amount of energy could be extracted
 
that's like using farts for propulsion
 
Then you can say you're extracting the energy from the conducting planes
> The Casimir force is simply the (relativistic, retarded) van der Waals force between the metal plates.
 
@JanDvorak that doesn't quite make sense. Do you mean the system containing the conducting plates?
The energy isn't in the plates themselves
 
@JanDvorak that's not the explanation that I have heard
 
12:44 AM
under the VdW interpretation, the energy is stored in the EM fields of the conducting planes
 
@tereško "Possible causes" section of the article
"Possible"
 
these fields vanish with distance (it's an uncharged conducting plane), but so does the Casimir force
Energy is released when squishing the metal plates together allows to smooth out these tiny fields even further
 
Morning smart people
 
Morning Chien
 
You guys make me feel dumb
 
12:48 AM
sorry
 
I'm going to take that OCW physics course that I've been longing to take. Meh
 
reverse-ignores Chien
 
useless chicken isn't dumb, just useless
 
can you hear me now?
good :-)
 
lol
@uselesschien also edx.org :-)
 
12:51 AM
@uselesschien probably just so you can feel smart
 
@Abhishrek OCW has so much more
@nick Yes and no. While I'm interested in learning modern physics, I'm forced to study stupid shit physics, and of an outdated curriculum
 
@uselesschien You mean classical physics, or Newtonian physics?
 
basically just understand what acceleration and forces are
then you're golden
 
@CallumBarclay I love classical physics. And thermal physics, electricity and stuff. But I hate optics
@nick that's what I thought before starting my course
Consider a fish moving perpendicularly away [sic] from the river bed at x m/s. And an eagle is
 
FREEDOM
 
1:00 AM
FREEDOM
 
Charging towards it, in the air at y m/s
 
I prefer the eagle to be freedom
 
sorry I just saw eagle
@uselesschien thats just velocity so ez
and maybe some trig
 
If a person using a lens filled with the water from that river, to change his focal length from 17.5 cm to 25 cm, find the relative motion between eagle and fish
@nick no
 
1:03 AM
Give it a try
 
no
 
@nick SCOOOTLAAAAND!
 
scootland?
 
Scûtland.
 
1:05 AM
you change your mind like a girl changes clothes
 
plottwist > girl is a nudist
 
!!s/(.+)relative/$1apparent relative/
 
@uselesschien If a person using a lens filled with the water from that river, to change his focal length from 17.5 cm to 25 cm, find the apparent relative motion between eagle and fish (source)
 
@NickDugger Haha, did anyone offer actual advice?
Totally should have provided an answer with jQuery. #MissedOps
 
1:07 AM
Lemon did
 
@NickDugger how many times has that one been posted today
 
for me this is the 3rd time seeing it
=(
 
who downvoted that? valid question IMO
 
Poor indecisive girl
 
1:19 AM
At least they could have told her about dating.SE
 
@Abhishrek if you're really interested in coming to JSFoo, you're better off buying tickets now
On or before 31st
Douglas Crockford came to JSChannel. 16th this month. 2015.jschannel.com
If only I knew then..
 
2:05 AM
what a time to be alive
 
does anyone know of a tool that will convert jquery to javascript?
9
 
wat
HAHAHAHAH
 
@php_purest yes
 
@uselesschien link?
 
@php_purest no link it's a technique. a pattern. a piece of code that you must include
 
2:11 AM
i mean i dump in jquery, i get out javascript
 
Jquery is javascript
 
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
^ @php_purest
 
so if i dump in jquery, it will dump out javascript?
 
yes, dump in jQuery in another script tag and it will dump js out
 
    dump in:
    $( document ).ready(function() {
        $("#search").keyup(function(){
            var search = $("#search").val();
            search = $.trim(search);

            if(search){
                $.ajax({
                    method: "POST",
                    url: "http://webfarm.io/subs/homefront/list_articles.php",
                    data: { search: search }
                })
                    .done(function( msg ) {
                        $("#search_output").html (msg);
 
2:14 AM
It's not a transpiler, it's an interpreter
 
You can't do that by hand?
 
so i want an interpreter for jquery?
 
oh dear lord
 
not really
 
1
Q: Would the Red Wing Irish Setter work for Philmont?

php_purestI was told that a pair of Red Wing Irish Setter boots won't work for going to Philmont Scout Ranch, because they've never seen them (according to Philmont outfitter boots department). I'll be doing Itinerary 6 as an adult leader. This is a 66mile route over 12 days with approx 10000 ft total hei...

@php_purest yes, use an interpreter
 
2:15 AM
k
@uselesschien why are you sharing the question?
 
@php_purest I find that interesting
 
I learned too many ES6.. I dont know what to use where,.
 
@cswl oh, my ex-girlfriend helps me in that
!!should I use promises or generators my ex-dear?
 
@uselesschien generators my ex-dear
 
2:26 AM
see
 
!!should I use toy A, or toy B?
 
@php_purest toy C
 
@uselesschien , can you help me correct my code?
a few hours trying to modify it
 
I don't know jQuery, tbh
 
it's javascript
 
2:38 AM
Is it throwing any errors?
 
the div id isn't working like it should
 
where are you learning JavaScript from?
 
I'm gonna re-learn JavaScript from the scratch.. all the way down to Hello World
 
videos, and other places
brb
 
@cswl why..
 
2:43 AM
back
 
Cause this time it wont be alert('Hello World');
 
um, btw
!!tell cswl resources
 
That will take me some years :0
 
Yes, it will
 
2:46 AM
@cswl see my bug?
jabbascript what is it?
oh
 
@php_purest I would have helped you 2 years ago., I was a jquery ninja back then.. :\
 
it's in the innerhtml i know
 
why you onkeypress='' when you jquery
 
because you want to have control with variables while keeping the script the same
 
That's not how it works
 
2:57 AM
@Meredith how would i do it then?
 
By not using inline handlers
 
inline handlers?
 
onkeypress etc
use addEventListener or jquery's methods
 
will it pick up the path if you use it on several pages?
 
What?
You can do whatever you want in javascript as long as it isn't a security issue
 
2:59 AM
you have an autocomplete script that does one thing on one page, and another thing on another page
 
That sounds like a terrible design
 
not really
 
You need to OO
 
a terms definition search could search your blog on another
OO?
 
Object orientation
 
3:01 AM
@php_purest Object-oriented design
 
i'm doing that
 
Are you sure?
 
or DOM writing
 
It sounds like you're missing an abstraction
 
3:02 AM
yep
 
@Meredith Don't bother, he's a help vamp. He'll be back every day until you just do it for him.
 
Yeah I'm familiar with him
 
script that does one thing on one page, and another thing on another page
doesnt sound OO :|
 
@monners i'm not that big of a help needer
 
You need a lot of help.
 
3:02 AM
@php_purest More than you'd readily admit (or accept)
 
no, just can't see what i'm doing wrong
 
@php_purest you need to learn things the right way, from the right places
 
i did learn variable handling from w3cschools
 
What was the JavaScript library that allowed you to essentially steal a clients processing power?
 
Ok so the first thing you need to do is block w3schools
 
3:04 AM
"Lancing yourself in the eye is a viable alternative to visiting w3schools"
 
@php_purest you probably learnt trolling from me
 
I saw someone on voat refer to w3schools as w3
 
@CallumBarclay JScrambler?
 
My heart sank
 
Fail troll fails.
 
3:06 AM
googled w3., the first thing that shows is w3schools,. :|
 
Yep
 
@Meredith A guy came into this room who told about his professor who used W3Schools as course material
 
Wow
I mean I guess that's what you get for taking a web development course in college
But still
 
wow, they didn't know what they were doing
 
I was introduced/learnt javascript from .chm files back in windows 98 days.. it was called JScript i guess..
 
3:10 AM
That was a pretty long time ago
 
Yup.. been javascripting for more than a decade :|
 
Me since I was 10 :P
 
So like 4 years
 
like 6 and a half
or 7
 
:p
 
3:15 AM
For 2 years ;p
Maybe 3, but I don't know.
 
My first book was The Definitive Guide, 2nd edition
 
Yeah I'm about the same
Probably close to 3 years by now
 
used to write windows script host files.. then there was stuff like DHTML ,.
 
Would Web Workers be the way to go for a multi-threaded-esque js app?
 
I guess
 
3:16 AM
Man I'm way too old ._.
 
@CallumBarclay kinda the only way to go
 
user406009
@CallumBarclay What do you mean by multi-threaded esque app? WebWorkers are for speeding up CPU bound work.
 
user406009
Most scenarios don't fall into that category.
 
user406009
(If you are CPU bound, then you probably shouldn't be doing it in JS, etc)
 
I'm going to say something, and you're all going to think I've gone mental,
I'm generating a list of 10 decillion strings, and all of the code to generate them is already in JS.
I was wondering if I could use some form of WebWorker to spread the load across multiple windows, and webworkers.
 
3:23 AM
> 10 decillion strings
That's a lot of strings
 
It's a fucking immensely huge number :P
And there's no pissing on my bonfire - I'm dedicated to it.
 
user406009
Yes, you probably could use webworkers to get some speed up.
 
I could port it to c#, but I really can't be arsed.
crowdprocess.com I think this might be of help.
 
user406009
For interests sake, what are you doing with the huge list of strings?
 
crowdprocess.com I think this might be of help.
 
user406009
3:28 AM
@CallumBarclay I would argue that those types of things are pretty unethical.
 
user406009
You are basically stealing electricity from people.
 
user406009
And not even getting a good return.
 
@Lalaland It's only going to be my computers on it :P
 
@CallumBarclay 10 what..
 
@uselesschien edx gives you a certificate
 
user406009
3:30 AM
@CallumBarclay Simple then. Split your list into multiple parts. Run each part individually using something like nodejs.
 
@Abhishrek meh who cares about certificates..
 
user406009
No need for webworkers or any web related apis.
 
@uselesschien sometimes you will need them.
 
@Lalaland I'll look into it. I'd also like to learn new web stuffs, though.
 
Certificates are like scrap paper that do nothing but fool others into thinking that I'm eligible to do X.
 
3:32 AM
I'm already well versed in Node,
 
And people rely on them for evaluating a person's knowledge.. geeez
 
user406009
My assumption is that people don't use certificates as a way to evaluate knowledge. Certificates are much better at predicting how interested someone is in a position.
 
user406009
Person A and person B might both be equally qualified, but an employer might hope for some unpaid overtime out of person B (even though they can't legally require it)
 
> Certificates are much better at predicting how interested someone is in a position.
No?
There are better ways to know if someone's interested in a position.
I've seen people who have no interested in what they're doing, but they major in that field and get placed. All they're interested in is making money.
Well, some people don't have a choice. I mean, those who're really in need of money.
I've seen computer science graduates who had no idea what version control is.
 
user406009
I'm not arguing that certificates are that effective of an indicator. All I'm saying that if you have two people: one who went through the trouble of getting a certificate, another who did not, the one with the certificate probably has more invested.
 
3:42 AM
Here in India, all you need to do to get your certificate is cramming for a few days before the examination.
^
 
user406009
Still, even if certificates are just a little bit effective, with the tons of hiring companies do that small improvement can lead to large gains.
 
user406009
I agree with you that they are stupid, but I understand the rationality of why companies rely on them.
 
user406009
The companies don't really care about the knowledge behind the certificate itself, the more important point is that the type of person to go through the trouble to get a certificate probably tends to be a better candidate in the long run.
 
Going through the trouble of coming up with a more effective means of evaluating a person's skills will help the company in the long run.
 
user406009
Of course you could use the same rationalization to "justify" racism, sexism, etc.
 
3:47 AM
Um, there's a reason why companies like Google are successful.
 
user406009
@uselesschien Evaluating skills is a hard problem. Even large companies like google have lots of trouble.
 
user406009
Not to mention drama like Microsoft's stack ranking, etc.
 
user406009
What would you propose as an alternative?
 
@Lalaland Sure it is. But it will help in the long run.
See, it boils down to: The interviewer needs to evaluate the candidate's skills
Or: The candidate should prove his skills to the interviewer
 
user406009
You don't have enough time to interview everyone.
 
3:54 AM
Oh guys, good news. It's 1 dec, not 10 dec...
 
user406009
You have to filter people out somehow.
 
@Lalaland But that doesn't mean you filter them by their having beards or not.
And as you said..
10 mins ago, by Lalaland
Of course you could use the same rationalization to "justify" racism, sexism, etc.
 
user406009
You think it's in a company best interest to filter randomly even though they could improve their odds by using certificates as filter instead?
 
hey all
 
@Lalaland That is, if you think certificates are at least bit effective indicator of a person's skills
 
user406009
3:59 AM
I think they are slightly effective.
 
user406009
Simply due to the nature of the people willing to get a certificate.
 
They're slightly effective, yes. But using them as a filter will lead to the company missing out on good candidates.
 
user406009
And yes, I am sure companies would filter similarly on race, gender, age, if they were legally allowed to.
 
user406009
@uselesschien Yeah there is that risk.
 
@Lalaland So you'd rather employ someone whose sole purpose of earning that certificate is earning money rather than his interest in that field?
 
user406009
4:04 AM
Regardless, it is time for me to sign. Off. Nice talking with you @uselesschien. Have a good night.
 
@Lalaland Oh, nice talking to you too. Good Night.
 
anyone using immutablejs can explain records to me
 
heh
I would hang out with that guy lol
 
@Mosho I've never used immutablejs, but they're just persistent records, right?
 
yeah, I got it
I just saw something that really confused me
 
if you use .map on a Record instance, it actually mutates the record itself and returns undefined
which is probably the last thing I would expect
turns out it inherits map but you can't actually use it
dat behavior though...
 
4:36 AM
It's a constructor.
 
> Record instance
 
I thought Record was a constructor. Which in turn returns your record constructor.
 
I have an insane problem
 
fine, I mean the actual record
the instance of the instance of Record :|
 
Problem : mimic nfc like simple tap to pay guesture
 
4:46 AM
and Record itself is just a function, not a ctor
 
solution : Use bt and listen for "real taps" then use audio for handshake
where i fucked it up worse : How to use bt efficiently
 
Yes, it's just a function. Record is a function. It returns a const.. fml..
 
it's not the point though
 
any suggestions ?
Also is there something like a shared hotspot for bluetooth
so you can connect them with a category of devices ? so that you dont have to pair them again (I doubt)
 

« first day (1746 days earlier)      last day (3193 days later) »