« first day (1602 days earlier)      last day (3349 days later) » 

user1596138
5:01 PM
@NickDugger YU no mobile debug
 
@Jhawins I am
that's what the top window is
 
user1596138
Naw man
 
Uh, yes
Oh, you mean that awkward mobile debug thing? That doesn;t even work properly. I one-upped that and am doing usb debugging so I can screencast from my phone, and devtools it
 
Can I assign a template string to a variable and use it somewhere else?
let someTemplate = '${a}'; and pass that to a function that has a defined within it
I can't seem to get it working when I try
 
@Loktar don't think so, they seem to get interpolated on the spot.
 
5:06 PM
damn
 
especially given what babel turns it into, seems impossible
 
yeah babel is what I'm using
would be awesome to do it the way I wanted
my component would be so generic
oh well
 
you can have the string in a method and pass data into it
 
crl
@Loktar Is this what you mean stackoverflow.com/questions/22607806/… ?
 
that's probably the recommended way
 
5:08 PM
ah nice yea
thats exactly what I needed thanks
heh i never would have searched defer execution..
 
crl
I've searched 'ES6 evaluate template'
 
let someTemplate = (a) => `${a}`; ?
 
5:28 PM
@BenjaminGruenbaum was in a meeting.. let me try
 
@BenjaminGruenbaum nahh, If it were baal maybe. I have no help for apophis
 
var x= Object.create(something); => this will set x.__proto__ to point to object called 'something', no ? Equally if 'Child' and 'Parent' are functions, setting child.prototype = Object.create(Parent.prototype), then Child.prototype.__proto__ points to Parent.prototype NOT copying Parent.prototype to Child.prototype?
 
@BenjaminGruenbaum sawweeeet
my config for my component
{
            displayName: 'Address',
            value: 'Address',
            fields: ['Address', 'City', 'StateProvince', 'PostalCode'],
            templateString: (fields) => `${fields[0]} ${fields[1]}, ${fields[3]} ${fields[4]}`,
            sortDir: 0
        },
its a little ugly, but meh, it works fine
and now you can format the output, keeping the component really generic
thanks man :P
hah index error.
omfg. This is really awesome
 
5:48 PM
@SomeKittens is there any way to select a different node version on runnable?
 
@rlemon Which one?
(which Runnable)
 
I need to test against 0.8.22
 
There's no GUI way - you have sudo access, so install something like nvm?
 
also, there is more than one Runnable?
 
5:51 PM
@Loktar you don't need the ()s around fields, but lgtm
Can also use this
 
@SomeKittens neat. this going to be the new version or something?
 
@rlemon Yep. Want in on the beta?
 
sure!
brb, one sec. pc is lagging hard.
ohh also,
root@runnable:~# source ~/.nvm/nvm.sh
root@runnable:~# nvm install 0.8.22
######################################################################## 100.0%
Now using node v0.8.22
but when I 'save and run' 'it still runs with node 0.10
brb
 
@BenjaminGruenbaum ah nice thanks
good point about not needing the parens as well
heh I had to disable my linter around that portion was yelling at me about commas sticking
 
@Loktar also, might want to override toString instead
 
5:56 PM
:sigh: I think it is one of my extensions killing me
has to be.
 
@rlemon Check your emails
 
woot
 
@rlemon ew 0.8.22 :/
 
@BenjaminGruenbaum yea, I'm not pleased about it
 
Friday night at 11:27 I have an error on line 52340.
 
5:58 PM
@rlemon use 1.4.4 :D
 
darn it where are my sourcemaps !
 
by christmas I should be able to work on real hardware and a real distro
@BenjaminGruenbaum you know those real world things.. I think they are called 'limitations'
yea. that is it.
sucks.
 
@rlemon why though? Why do you have those limitations?
 
because I'm using shitty old hardware on shitty old distros
I spent a couple weeks last year attempting to get 0.10.x to build. even had another guy local here try. no avail.
there is a bug in util.js when using node 0.8.22 :(
 
Swap out util.js then
Does io.js build?
 
6:02 PM
npm outdated is wonderful
 
no clue, I wouldn't expect it too. but I'll give it a go.
 
m59
How do you make a prototype chain longer than two objects? I haven't used prototype in forever..
I can't make a test where this doesn't work.
 
@m59 I just love how he says
> I want to use for (var i in o) because this will include properties from prototype chain. I could have used Object.keys(o) if I didn't need properties from prototype chain.
and the only non-deleted answers suggest he does what he just said he already knew how to do
 
m59
heheheh. Is my answer actually wrong? I keep trying to make it fail and can't. Probably because I don't remember how to prototype =D
 
@m59 like this:
!!> var a = Object.create({x:3}); var b = Object.create(a); var c = Object.create(b); var d = Object.create(c); d.x;
 
6:09 PM
oops
my bad
 
m59
Ohhh, my example should have been using new. Now I remember. I was mixing two styles.
 
@BenjaminGruenbaum again
rebooted my pc and forgot about Cap
 
@BenjaminGruenbaum 3
 
:P
 
@rlemon I think I'll just put Cap on Azure, I have 6 months of storage
 
user1596138
6:15 PM
You can run a browser on Azure like that? // me has no experience with azure
 
hell if someone has a 'cloud browser' sure. problem is cap isn't designed to be run headless right now. Zirak and Kittens did some leg work on that, but I dont' think anything really came from it
 
@rlemon I've built a box w/Docker that has Chrome installed and runs headless
but you need FF, right?
might not be that hard
 
I don't know if cap NEEDS FF, but FF is in mind when people code for her
haven't run her on Chrome in ages. not sure if anything breaks
 
user1596138
Everything seems to work in Chrome... I've run her a lot from it
 
took your answer, made it a function.
 
6:20 PM
@rlemon I'm trying it, gimme 10 minutes
 
user1596138
There could be specific commands broken but as a whole anyway she seems fine, always has.
 
@Jhawins but but but arrow methods!
:P
@BenjaminGruenbaum apparently kittens has this working
3 mins ago, by SomeKittens
@rlemon I've built a box w/Docker that has Chrome installed and runs headless
 
@rlemon has what?
 
user1596138
@rlemon you mean fat arrow or whatever from ES6..?
 
Oh, of course I can put chrome on a vm
I just have to check if it works fine with Azure
 
6:21 PM
@Jhawins yes
hasn't landed in chrome yet afaik
 
user1596138
I didn't know it had in FF?
 
Guys, they're called lambda functions
 
user1596138
Wow yeah since 22
 
@rlemon it did, but it was removed
 
!!> [1,2,2,3,4,4,5,5,2,2,1,1,9,9,4,4].filter((a,b,c) => b && (a === c[b-1]) ? a:null ).sort().pop()
 
6:23 PM
Giving it 700mb of ram and a shared CPU should be enough right?
 
@rlemon 9
 
yea I think we'll wanna keep her on FF until this stuff lands in chrome
 
@Jhawins I wrote a script to assign everyone a color in the HSL color space, with an even distribution, sorted by user id. We have basically the same color.
 
user3949359
Can someone explain to me this block of code from "Eloquent JavaScript"?
 
user3949359
function countAncestors(person, test) {
  function combine(person, fromMother, fromFather) {
    var thisOneCounts = test(person);
    return fromMother + fromFather + (thisOneCounts ? 1 : 0);
  }
  return reduceAncestors(person, combine, 0);
}
 
6:23 PM
@BenjaminGruenbaum she uses more than that now.
 
user1596138
@rlemon What uses it in the bot?
 
in fact memory is a known issue.
 
What for o_o?
 
@Jhawins nothing. we use it a lot
@BenjaminGruenbaum chat has a memory leak
 
@rlemon Right? I forget things all the time!
 
6:24 PM
A 768mb vm is fine since it's like 10$ a month and I can do that
 
user3949359
book here: eloquentjavascript.net/05_higher_order.html a the bottom, under Historical expectancy
 
user1596138
Ok? So? I'm trying to understand the need for it lol
 
Especially on credit
 
@Jhawins WE LIKE USING IT!
:P
 
I'm not going to allocate a 80$ a month vm for the bot...
 
user1596138
6:24 PM
@rlemon When would it matter as far as the bot goes :P
 
because the bots eval runs native to the browser
if the browser doesn't have lambda functions, but bot doesn't eval them
 
@nosille It'd be easier in context. We don't know what operation some of these functions perform.
 
beer!>[1,2,2,3,4,4,5,5,2,2,1,1,9,9,4,4].filter((a,b,c) => b && (a === c[b-1]) ? a:null ).sort().pop()
@rlemon "SyntaxError: Unexpected token =>"
!!> [1,2,2,3,4,4,5,5,2,2,1,1,9,9,4,4].filter((a,b,c) => b && (a === c[b-1]) ? a:null ).sort().pop()
 
@rlemon 9
 
user1596138
Wait why can't we just use headless FF?
 
user3949359
6:25 PM
@Shmiddty habrahabr.ru/post/241155. Could you search for "countAncestors"
 
:sigh:
read up
 
beer!> [1,2,3].map(x=>x*x)
 
I killed my local bot, sorry @Shmiddty
dev mode bookmarklet
javascript:(function(){var a=document.createElement("script");a.src="https://rawgit.com/Zirak/SO-ChatBot/master/master.js";a.onload=function(){bot.activateDevMode();};document.head.appendChild(a)})();
 
@rlemon the bot has a leak or the chat?
 
user1596138
@rlemon Well you can do it. So tell me what else to read on?
 
6:26 PM
@BenjaminGruenbaum chat.
 
user1596138
You can trick X programs into thinking there is a display in linux
 
@rlemon does refreshing the page work?
 
user1596138
Use xvfb
 
Like, a page that has the chat in an iframe with the bot and reloads it every 5 hours?
 
@rlemon is beer! the default invocation pattern?
 
6:27 PM
@BenjaminGruenbaum I think so? I can't remember if she still does that. All I know is she still craps out once a day to once every 3 days due to memory
@Shmiddty beer! is the default when dev mode is active
!!info
 
@rlemon I awoke on Fri, 06 Mar 2015 18:10:01 GMT (that's about 17 minutes ago), got invoked 3 times, learned 301 commands, teleported 80 goats
 
@rlemon Could script her to reinit at UTC 00:00
 
user1596138
So basically you run a non-headlesss/normal browser, there just isn't a real display.
 
Guys I need suggestion for webhosting.
 
she's been up for < 20 minutes and is consuming 200mb of ram already
that gets upto 1gb in a day or so
 
6:29 PM
I need to host my blog, few subdomains, few other websites ( may be upto 5 ). I don't care about bandwidth, it is only for sideprojects. Can you guys suggest me what are my options for web hosting?
 
user3949359
@Shmiddty Here's the whole snippet, I don't get the first part:
 
user3949359
function countAncestors(person, test) {
  function combine(person, fromMother, fromFather) {
    var thisOneCounts = test(person);
    return fromMother + fromFather + (thisOneCounts ? 1 : 0);
  }
  return reduceAncestors(person, combine, 0);
}
function longLivingPercentage(person) {
  var all = countAncestors(person, function(person) {
    return true;
  });
  var longLiving = countAncestors(person, function(person) {
    return (person.died - person.born) >= 70;
  });
  return longLiving / all;
 
user1596138
@rlemon you see my messages? I'm legitimately asking
 
user1596138
Why can't that be done. Don't tell me to read up...
 
@RakeshJuyal Host it yourself at home. Point a DNS to your IP, if you care.
 
6:32 PM
@Jhawins The chat itself is pretty heavy (775MB for me right now)
 
@nosille what do test and reduceAncestors do?
 
@Shmiddty sounds good. What other option I have. I don't want to host at home.
 
@SomeKittens didya see my message from yesterday?
 
user3949359
@Shmiddty This0neCounts and combine
 
@Shmiddty Oh yeah! Was on mobile.
 
6:32 PM
!!tell RakeshJuyal google cheap web hosting
 
user1596138
I have 210mb on chat tab right now and the page has been up for ~2 hours
 
@SomeKittens I've got a weekend free. What should I do? Wanna be my guide? I'll buy you beers
 
user1596138
I know the chat is heavy but does that really stop anything?
 
We should totally meet up. I work at 1481 Folsom
 
6:33 PM
@SomeKittens on chrome or ff?
 
Thanks @CapricaSix you are helpful.
 
@BenjaminGruenbaum Chrome, the friggin' hog.
 
user1596138
I'm on Chrome too.
 
Can somebody explain me what does preserving cultural diversity achieves ?
And why must I "stick" to my roots despite they logically make no point ?
 
What's the best way to exchange contact info in here?
 
6:35 PM
@Shmiddty share your email
 
crl
Do you check the memory usage on Chrome's task manager?
 
@Shmiddty I think I have your email addr
 
@crl yes, you will be surprized if you go ahead and open your systems task manager.
 
@SomeKittens Ah cool. Feel free to add me on FB
 
lemme try it
 
m59
6:43 PM
@rlemon my real answer - screw prototype
 
gonna run on IE :D
 
@BenjaminGruenbaum the most dreaded words a developer could ever hear lol
 
@Jhawins probably can be done. if someone sets it up (FF headless that logs in and joins the fav rooms) sure. no one has yet (to my knowledge)
I'm not spear heading it
 
Those that like .NET; I made a NodeJS inspired event loop you might interesting/fun, check it out at github.com/Deathspike/SharpEventLoop -- feedback/comments appreciated as always :-P
3
 
I'm just the middle man right now
 
user1596138
6:47 PM
I don't really know how you'd log her in..
 
@rlemon can you send me at email (inglor at gmail dot cam) cap's credentials? (Or Dr.Eval, I forgot them -_-)
 
can't remember dr evals, gave that account to you long ago. don't wanna give out caps to any more people. sorry.
 
user1596138
Can you run JS from command line for FF? At launch I mean
 
user1596138
I could goodle
 
@rlemon seriously?
 
6:50 PM
yes seriously. three people already control her, get them on board and possible.
 
so, today I attended the "MathFest" in Piedmont, and I was attending the huge competition with my school's group of 7 people, and I really am curious to understand some problems I couldn't solve: let me write down the first one I couldn't solve and that could have given us the winning turn
 
@rlemon you, Zirak and?
 
Kittens
just use Dr Eval for testing.
 
I don't have the password
 
user1596138
Headless FF with xvfb takes minutes to do... The only part that takes work is to login and execute the script from command line
 
6:51 PM
I'll just ask Zirak
 
what is the email?
 
inglor at gmail
 
we are given the functions g and f
 
@BenjaminGruenbaum no, dr evals
 
g(m) = f(m)/f(m+1)
 
6:51 PM
@rlemon I forgot about Dr. Eval. haha
 
@rlemon Meh, I'll just scrape SO and recover it
 
f(0) = 0;
f(1) = 1;
f(2n) = f(n);
f(2n + 1) = f(n) + f(n + 1)
where m and n are natural numbers
I have to find for which natural m: g(m) = 7/8
 
what is the email?
ahh, you found the pw as well.
kk good stuff.
 
@rlemon it was 12345
 
6:54 PM
I quickly found out that f(2n) = 1 in any case
and then f(2^n - 1) is (with only exception 3) equal to n-1
so f(255) was 7 and f(511) was 8
 
I'm creating a ssh tunnel via ssh -R port:127.0.0.1:port -l username ServerIp -N so I can proxy stuff on Server to the device at 127.0.0.1:port
 
@BenjaminGruenbaum 2
 
@BenjaminGruenbaum 2
 
but the parameter of the second call can only be the one of the first call + 1
 
6:57 PM
Right, this means the bot can literally live for 6 months now without going down once with auto-restart with 99.97% uptime guaranteed on Azure and backups through availability regions.
 
but trying to actually 'enter' the location via ssh or similar doesn't work.
 
So no more bot going down and up several times every single day
 
!!> "cheese"
 
@towc "cheese"
 
!!learn evaltest 123
 
6:57 PM
@towc "cheese"
 
@rlemon Command evaltest learned
 
@rlemon Command evaltest learned
 
@BenjaminGruenbaum does localStorage work?
not sure what you have going on over there
 
I've got Windows 2012 server with actual firefox running in GUI in it
 
if you restart dreval does that command persist?
 
crl
6:58 PM
!!echo !!echo !!echo !!>1+1
 
ahh, ok then
 
!!echo !!echo !!>1+1
 
@crl That didn't make much sense. Use the !!/help command to learn more.
@CapricaSix That didn't make much sense. Use the !!/help command to learn more.
 
@rlemon it's actual firefox.
 
!!echo !!echo "<>"
 
7:02 PM
!!echo "<>"
 
@Shmiddty That didn't make much sense. Use the !!/help command to learn more.
@CapricaSix That didn't make much sense. Use the !!/help command to learn more.
 
I'm creating a ssh tunnel from DEVICE:A via ssh -R port:127.0.0.1:port -l username ServerIp -N to SERVER:A so I can proxy stuff on SERVER:A to DEVICE:A at 127.0.0.1:port. now I wanna ssh to the device, however this does not work. I also know the ip of the device, and the ssh port it leaves at (I think that is what I see in lsof -nPp <pid of the ssh session on SERVER:A>)
^ asking a second time. sorry
 
@rlemon have you tried a Main question?
 
^
 
I'd upvote the cat issue because wtf
 
7:03 PM
nope, gonna bug chats until monday then ask main
 
Not sure this is our area, @rlemon haha
 
but you are all so smurt
 
yeah but we're also lazy
 
not i ;D
 
dubious
 
7:04 PM
the setup is hard enough to explain. I'll try to write up a UL formatted Q but you guys might have to help me make it understandable.
 
I'm good at that
 
 
solved it
 
I'm not sure I'm reading it correctly
 
@BenjaminGruenbaum my prob or another prob?
 
7:11 PM
so... When n = 1, f(2 * 1) === f(1) === 1?
 
your prob
 
@Shmiddty yes
@BenjaminGruenbaum show me your sol
 
so it's 1 for all n, except 0?
 
`function a() { function b() {}; b = function() { alert("another") };`
anyone know if there is any gotcha in that, that is assigning a new function to the name of given in a function declaration
 
@Shmiddty what about n = 3?
what's f(3)?
neither 1 or 0
 
7:12 PM
@AnttiHaapala aside from being redundant? and scopes change
 
why my code tags aren't workin
@rlemon actual context of course is not redundant, but would it change scope?
 
Alright, nevermind
needs more maths
 
@KendallFrey pats on the shoulder
 
@AnttiHaapala because you don't var b
 
7:13 PM
3 is 2 and by extension so are 6, 12, 24, ...
 
(function() { function b() { console.log(1) }; b = function() { alert("another") }; })();
b(); // alerts. b = function() leaks scope
 
So f describes some sort of waveform
 
does not seme to leak scope on spidermonkey
 
5 is 3
 
@KendallFrey shhhh
 
7:14 PM
@KendallFrey right
@KendallFrey yup
no wait
 
@rlemon I don't think it does
 
nvm
 
maybe I will just code with var b = ... to be sure :D, surely there is some browser that will get it wrong
 
hrm, @copy you are right. my bad, I had ran his code and not refreshed.
 
f(2(2) + 1) = f(2) + f(3) = 3
 
7:15 PM
@KendallFrey yeah yeah
 
@AnttiHaapala There's a specification for JavaScript, such things aren't gotten wrong by browsers
 
f(2(3) + 1) = f(3) + f(4) = 3
I don't know the pattern
 
!!slidepoop
 
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
@BenjaminGruenbaum That didn't make much sense. Use the !!/help command to learn more.
 
7:16 PM
nvm, the azure bot is broken :D
 
you need to import the memory @BenjaminGruenbaum gist.githubusercontent.com/rlemon/755ec1658b1e5c8b8153/raw/…
 
in the description it was also said that "r" returns every rational number exactly once for different natural "m"s
that's interesting
 
@rlemon don't care really, killing it soon anyway.
 
also, caps issue with crashing right now is a FF issue, not internet access
FF actually crashes
 
user1596138
7:21 PM
@SomeKittens your login shit from the Node Bot works great nice job!
 
user1596138
This isn't that complicated...
 
@Zirak @SomeKittens @BenjaminGruenbaum we can solve the crashing issue with refreshes... but refreshes clear timers... I know we've mentioned this before but was it ever decided we would store timers in localStorage?
 
user1596138
I just logged in and sent a test message to the sandbox from a FF tricked into thinking xvfb was a display on a DO server running Ubuntu
 
because if we can, cap can refresh every couple hours and never again crap out
 
!!> [0,1,1,2,1,3,2,3,1,4,3,5,2,5,3,4,1].map(function(a, i, A) (A[i+1]||0) - a)
 
7:23 PM
@Shmiddty [1,0,1,-1,2,-1,1,-2,3,-1,2,-3,3,-2,1,-3,-1]
 
user1596138
If you run it this way you can just restart it every X minutes in bash
 
not really interested anymore, sorry.
 
@Shmiddty [1,0,1,-1,2,-1,1,-2,3,-1,2,-3,3,-2,1,-3,-1]
 
taking the vm down
 
user1596138
lol @BenjaminGruenbaum who pissed in your soup
 
7:24 PM
no one, not making a deal out of it
 
user1596138
Alright.
 
And... done :)
 
@copy hai
 
Alright, I think I've got the answer, @towc.
Well that's bizarre... I can't paste into the textbox.
Or right click anywhere in the page
 
@Shmiddty yeah, I was counting it on paper :D
then at 50 I was like ... pfft. and wrote a program
 
7:38 PM
haha, right? I got to 20 items and was like... yeah no
 
@Shmiddty I did the same thing only in Haskell
 
at least I got the same result with python
 
I really need to do more code golf. I think my mind is dulling
 
What is code golf?
A form of practice?
 
@taco A person creates a challenge. They tell you the input and desired output. You write a program to do it in the least number of characters
It's about thinking creatively
 
7:41 PM
and the winner is coding in perl :D
 
a lot of the times, yes. haha
or golfscript
sometimes PHP has the shortest possible solution
 
@Shmiddty last time I did something like that was during my interview
 
Hi there! Anyone having experience with grunt browserify? Opened this thread a couple of days ago but still no answer..
0
Q: Grunt Browserify, order of files

iamemmanouilI'm trying to setup grunt browserify in order to use jquery-ui from npm install (which uses require). From what I see the issue is that it places everything inside app.js but in the wrong order. So it places bootstrap.js first and jquery after that. So in my Gruntfile.js I got: browserify: { ...

 

« first day (1602 days earlier)      last day (3349 days later) »