--- Log opened Tue Jul 10 00:00:44 2012 00:25 < chapel> http://nodeup.com/ << is down SubStack jesusabdullah 01:32 < jesusabdullah> chapel: avian watched it happen, was on it 01:32 < chapel> kk 01:32 < chapel> well I see its up now 01:38 < jesusabdullah> sheah 01:38 < jesusabdullah> that's cause we were on it 01:38 < jesusabdullah> we're all up in those master logs like bosses 01:45 < AvianFlu> chapel, it's just dns fail 01:46 < chapel> coo, I wasn't sure :) 03:20 < SubStack> >_< 03:20 < SubStack> ^ fixing this bug 03:20 < ik> >_< 03:20 < ik> /|\ 03:20 < ik> / \ 03:21 < SubStack> tiny upset man 03:22 < SubStack> so sorting/min/max functions that take a cmp(a,b) function are annoying 03:24 < SubStack> I wager that it's more useful to take an f(x) as a parameter to transform the elements before using the built-in comparisons and getting back the original elements 03:24 < SubStack> Am I crazy or just crazy enough? [y/n] 03:33 < jesusabdullah> python insisted on that 03:33 < jesusabdullah> it's not a good look 03:33 < jesusabdullah> sometimes you really do want to specify a comparison function 03:33 < jesusabdullah> I'm not saying doing a transform is bad, just not always ideal 03:34 < SubStack> yes but that's why we have userspace libs 03:34 < SubStack> I'm not even calling it .sort(), I'm calling them .ascend() and .descend() 03:34 < SubStack> perhaps .minf would be a better name than .min() though 03:36 < jesusabdullah> what I mean is, cmp-ing is actually the most basic thing. Sometimes there are things that are much much easier to do as comparisons vs. mappings. Mapping is convenient when it fits, but it doesn't always fit. 03:36 < SubStack> well in javascript 03:36 < jesusabdullah> no, in general 03:36 < SubStack> using cmps is awkward as fuck 03:37 < SubStack> because there's no cmp() thing 03:37 < jesusabdullah> well like 03:37 < SubStack> so you do a.x - b.x or something silly 03:37 < jesusabdullah> for numbers it's just function (x, y) { return y - x; } 03:37 < SubStack> but usually I have an array of objects 03:37 < jesusabdullah> so obviously you could make something that sugars sorting by numerical value instead of lexicowhateverically 03:37 < SubStack> and I want to sort on a key 03:38 < jesusabdullah> Sure 03:38 < SubStack> transform functions are nicer for that case 03:38 < jesusabdullah> and like, in that particular case I agree 100% 03:38 < jesusabdullah> problem is that covers maybe, 60-70% of use cases? 03:38 < jesusabdullah> So if someone *takes away* cmp like python did 03:38 < jesusabdullah> seriously, comparison-based sorting was deprecated in python 3 03:38 < SubStack> no no no 03:38 < SubStack> this is a MODULE 03:39 < SubStack> in userspace 03:39 < jesusabdullah> that lets you sort by key 03:39 < jesusabdullah> perfect 03:39 < SubStack> so I am allowed to take certain CREATIVE LIBERTIES 03:39 < SubStack> I am something of a CREATIVE LIBERTARIAN you see 03:39 < jesusabdullah> SIR I WOULD LIKE TO SUBSCRIBE TO YOUR NEWSLETTER 03:39 < LOUDBOT> DERP DERP DERP 03:39 < jesusabdullah> HMM YES QUITE 03:39 < LOUDBOT> RUN TOOO THE HIIIIIIIIILLLLLLS 03:39 < SubStack> apropos as usual loudbot 03:39 < jesusabdullah> TALLY-HO 03:39 < LOUDBOT> QUITTER QUITTING QUIT! 03:39 < SubStack> also this: 03:39 < SubStack> 2. libertarian -- (someone who believes the doctrine of free will) 03:40 < SubStack> ^ totes not me 03:40 < SubStack> words, how do those work 03:40 < jesusabdullah> naw, a little utility for sorting on keys would be nice 03:40 < SubStack> not keys 03:40 < SubStack> sorting on transforms instead of comparison functions 03:41 < SubStack> need a good name for this 03:41 < SubStack> sortf? 03:41 < SubStack> although it doesn't even have a sort function 03:42 < SubStack> it has ascend() and descend() instead 03:42 < SubStack> which do sorting 03:42 < SubStack> and then minf and maxf 03:42 < SubStack> assort? 03:42 < SubStack> rankf 03:43 < SubStack> haha "frank" 03:43 < SubStack> oh but that one is taken 03:43 < SubStack> rank is untaken though 03:45 < jesusabdullah> SubStack: Would the sort be based on numerical score then, not alphabetical order? 03:45 < jesusabdullah> SubStack: What I mean by "key-based" search is that the python api speaks of "key functions" that return "keys" which are used to sort the original array 03:45 < SubStack> however < and > work 03:46 < jesusabdullah> numerically 03:46 < SubStack> those work on strings too in js 03:46 < SubStack> but you just write a transform from your datatype into something that js can handle with < and > 03:46 < jesusabdullah> I see 04:02 < SubStack> aha "fort" 04:45 < SubStack> kerpow https://github.com/substack/node-fort 04:47 < SubStack> right then, back to what I was doing 04:47 < SubStack> KEEPING THE TECHNICAL DEBT AT BAY, BUT FOR HOW LONG? 04:47 < LOUDBOT> GIVE ME MERGE COMMITS OR GIVE ME DEATH 04:47 < SubStack> here here 04:47 < SubStack> hear hear? 04:47 < SubStack> yes, the latter seems most correct on review 04:57 < SubStack> TEA TIME 04:57 < LOUDBOT> GLITCH MOB NIGGA 05:27 < jesusabdullah> SubStack: What was that video called with the, "I hear you're getting hot even though you've just started" ? 05:28 < jesusabdullah> found it!! 05:32 < jesusabdullah> Had to show it to maxmouse 05:55 < maxogden> dat me? 05:59 < jesusabdullah> naw my sister 06:27 < SubStack> whoa browserify has over 1000 watchers now 16:30 < SubStack> beep bop 17:17 < SubStack> >_< 17:53 < scolson> hey, I'm trying to spin up an SSH tunnel, and I keep getting permission denied, though I know I am using the correct pass... 17:58 < SubStack> scolson: the password for your private key? 17:58 < scolson> no, we don't have a pub key/priv key set up for browserling 18:00 < SubStack> when you click the tunnel button in the ui what happens? 18:01 < scolson> click tunnel, update the port, get the command string, copy/paste in to terminal, and run it 18:02 < SubStack> click close tunnel 18:02 < scolson> clicked 18:02 < SubStack> you might need to refresh the page, hmmm 18:02 < SubStack> when you click the tunnel button again is there a textarea telling you to paste your public key? 18:03 < scolson> nope 18:03 < scolson> no pub key. 18:04 < scolson> (screenshot) http://imgur.com/HFgTA 18:06 < SubStack> odd, you probably already have a public key then I think 18:06 < SubStack> I can reset it if you like 18:06 < SubStack> then it should prompt you to set up a public key 18:06 < scolson> ok 18:06 < scolson> it is a new account, and I don't recall ever entering a pub key, but we can try 18:06 < SubStack> what's your account email? 18:06 < scolson> info@switchbackcms.com 18:08 < pkrumins> # cat authorized_keys 18:08 < pkrumins> http://carebridge.local:8097/ 18:08 < pkrumins> is what you accidentally put in place of pub key 18:08 < pkrumins> try now, i just deleted this 18:08 < pkrumins> should prompt for the key 18:08 < pkrumins> put it in! 18:08 < SubStack> aha great work pkrumins \o 18:08 < pkrumins> o/ 18:08 < SubStack> was just in the process of resetting but you beat me to it! 18:09 < scolson> ok, just to check b/c I work from multiple computers, (one at a time of course), and the ssh key is different on each one, where can I go to change it? 18:10 < SubStack> when you click the tunnel button now 18:10 < SubStack> try refreshing the page first 18:10 < SubStack> then click the tunnel button 18:11 < scolson> right, I get how I can set it the first time... how do I change it down the road? 18:11 < SubStack> there's no way to change it right now 18:12 < pkrumins> scolson: you can email all the keys to me 18:12 < pkrumins> and i'll put all of them in 18:12 < pkrumins> peteris@browserling.com 18:13 < scolson> wait... if the UI doesn't validate input, can I just put all of the keys in to there? 18:14 < pkrumins> yeah you can do that too 18:17 < SubStack> oh that's a nifty idea 18:41 < scolson> fyi, putting in two different pub keys did work 18:41 < scolson> thanks for the help resetting it 19:43 < SubStack> pesky bug 19:55 < tanepiper> SubStack: http://www.w3.org/TR/webdriver/ 19:56 < SubStack> haha standards bodies 19:56 < SubStack> they'll probably fuck it up 19:57 < SubStack> yeah they're just cloning selenium commands it looks like? 19:57 < SubStack> anyways I can do this thing with all browsers as they are 19:57 < SubStack> and the api is much cleaner since it's just javascript 20:00 < tanepiper> \o/ yea standards bodies suck 20:11 < pkrumins> dismantle all the standards bodies 21:47 < SubStack> http://substack.net/images/cannon.png 21:49 < AvianFlu> SubStack, ready for austerlitz I see! 22:02 < SubStack> >_< 22:06 < pkrumins> soon 23:29 < mikeal> SubStack: so, this dnode refactor you did 23:29 < mikeal> when did that get released? 23:29 < mikeal> and is there an incompatibility at all between versions? 23:39 < dools> hey check out the "Flight hacking" post on the newest page: http://news.ycombinator.com/newest 23:39 < dools> from a mate of mine 23:55 < SubStack> mikeal: it's quite different yes, and I bumped the major 23:55 < SubStack> that was last month or so 23:56 < mikeal> ok 23:56 < mikeal> are you running it in production yet? 23:56 < SubStack> not yet 23:56 < SubStack> going to port upnode, seaport, and airport over first --- Log closed Wed Jul 11 00:00:50 2012