2013-08-16.log

--- Log opened Fri Aug 16 00:00:57 2013
-!- yashgaroth [~ffffff@cpe-75-80-50-28.san.res.rr.com] has quit [Quit: Leaving]00:25
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has quit [Ping timeout: 276 seconds]01:16
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has joined ##hplusroadmap01:23
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has joined ##hplusroadmap01:29
-!- poppingtonic [~poppingto@212.49.88.110] has joined ##hplusroadmap01:32
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has quit [Ping timeout: 264 seconds]02:07
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has joined ##hplusroadmap02:15
-!- Not-002 [~notifico@198.199.82.216] has quit [Remote host closed the connection]02:17
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has quit [Remote host closed the connection]02:43
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has joined ##hplusroadmap03:02
-!- EnLilaSko [EnLilaSko@unaffiliated/enlilasko] has joined ##hplusroadmap03:30
-!- aelinoea [~aelinoea@a88-113-45-152.elisa-laajakaista.fi] has joined ##hplusroadmap03:39
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has joined ##hplusroadmap03:46
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has joined ##hplusroadmap03:54
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has quit [Ping timeout: 268 seconds]03:59
-!- Adillian [~Adillian@97e0b193.skybroadband.com] has joined ##hplusroadmap04:02
fennoptically levitated fluorescing nanoscale diamond particle: http://www.rochester.edu/largepics/nanodiamond.jpg04:05
fennit's ~100nm04:06
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has quit [Ping timeout: 256 seconds]04:07
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has joined ##hplusroadmap04:09
-!- ThomasEgi [~thomas@185.5.8.81] has joined ##hplusroadmap04:42
-!- ThomasEgi [~thomas@185.5.8.81] has quit [Changing host]04:42
-!- ThomasEgi [~thomas@panda3d/ThomasEgi] has joined ##hplusroadmap04:42
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has quit [Ping timeout: 240 seconds]04:42
-!- yorick [~yorick@oftn/member/yorick] has joined ##hplusroadmap04:45
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has quit [Ping timeout: 246 seconds]05:00
-!- makoLime [~mako@103-9-42-133.flip.co.nz] has quit [Ping timeout: 264 seconds]05:09
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has joined ##hplusroadmap05:09
-!- weles [~mariusz@wsip-70-183-164-170.ri.ri.cox.net] has joined ##hplusroadmap05:15
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has quit [Ping timeout: 264 seconds]05:40
-!- lichen_ [~lichen@c-24-21-206-64.hsd1.or.comcast.net] has joined ##hplusroadmap05:44
-!- lichen [~lichen@c-24-21-206-64.hsd1.or.comcast.net] has quit [Ping timeout: 264 seconds]05:48
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has joined ##hplusroadmap06:04
-!- aelinoea [~aelinoea@a88-113-45-152.elisa-laajakaista.fi] has quit [Quit: Leaving]06:04
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has quit [Ping timeout: 264 seconds]06:14
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has quit [Ping timeout: 248 seconds]06:17
archelspaperbot: http://onlinelibrary.wiley.com/doi/10.1002/wcs.142/pdf06:22
paperbothttp://libgen.org/scimag1/10.1002/wcs.142.pdf06:22
archels<306:23
-!- jmil [~jmil@hive76/member/jmil] has joined ##hplusroadmap06:24
archelspaperbot: http://journals.lww.com/jinvestigativemed/Citation/2005/01010/A_Finite_Element_Model_of_the_Dendritic_Tree_to.369.aspx06:24
paperbothttp://diyhpl.us/~bryan/papers2/paperbot/4d2dd1be515117ad531a5578f7d89def.txt06:24
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has joined ##hplusroadmap06:46
JayDuggerpaperbot: https://www.sciencemag.org/content/early/2013/08/14/science.1240889.full?sid=460ae2fe-57e0-4c32-b414-0738bbe8e1a907:17
paperbothttp://pdf.highwire.org/stamped/sci/early/2013/08/14/science.1240889.full.pdf07:19
-!- hehelleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has joined ##hplusroadmap07:55
-!- helleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has quit [Ping timeout: 245 seconds]07:58
-!- Not-002 [~notifico@198.199.82.216] has joined ##hplusroadmap08:00
Not-002[kanzure/papermonk-downloader-plosone] kanzure pushed 2 commits to master [+0/-0/±2] http://git.io/H_idCQ08:00
Not-002[kanzure/papermonk-downloader-plosone] kanzure d3c2ea5 - fix url-parser entry in package.json08:00
Not-002[kanzure/papermonk-downloader-plosone] kanzure 6d4ca0f - version bump to: v0.0.508:00
Not-002[kanzure/papermonk-downloader-plosone] kanzure tagged 6d4ca0f as v0.0.5 http://git.io/-Yrrvg08:00
-!- helleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has joined ##hplusroadmap08:01
-!- yorick [~yorick@oftn/member/yorick] has quit [Remote host closed the connection]08:03
-!- hehelleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has quit [Ping timeout: 264 seconds]08:03
@kanzureoh right. this isn't going to work in browsers because it requires remote http to work.08:06
@kanzureoh right, zotero forces you to navigate to the page that you want to parse08:06
@kanzurei could also imagine a situation where you just route an http request through an http proxy endpoint on the same server as whatever served you the pile of browserified javascript08:07
@kanzurecheerio can't be browserified unless you edit its index.js file.. but otherwise it works.08:07
EnLilaSkohttp://i.imgur.com/4wREm1C.jpg08:14
EnLilaSkoWoho08:14
-!- fireprfHydra_ [~fireprfHy@ool-44c01f50.dyn.optonline.net] has joined ##hplusroadmap08:17
-!- fireprfHydra_ [~fireprfHy@ool-44c01f50.dyn.optonline.net] has quit [Read error: Connection reset by peer]08:17
-!- fireprfHydra_ [~fireprfHy@ool-44c01f50.dyn.optonline.net] has joined ##hplusroadmap08:18
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has joined ##hplusroadmap08:28
-!- fireprfHydra_ [~fireprfHy@ool-44c01f50.dyn.optonline.net] has quit [Quit: Leaving]08:31
-!- AshleyWaffle [~quassel@76.121.59.64] has joined ##hplusroadmap08:49
-!- AshleyWaffle [~quassel@76.121.59.64] has quit [Changing host]08:49
-!- AshleyWaffle [~quassel@unaffiliated/anastasiawyatt] has joined ##hplusroadmap08:49
ParahSailinwhy would you want to browserfy cheerio08:52
ParahSailinbrowsers already have html parser08:52
@kanzureyes, but the idea is to browserify papermonk08:55
@kanzurei don't want to have two separate libraries (one for node, one for browsers). that seems like way more work.08:55
ParahSailinif you want the same source code to work in both places, then just put in a switch that detects if its running in the browser, then use sizzle as its selector instead of cheerio08:57
@kanzurefor the outbound requests, i was thinking of writing a wrapper around request that would either (1) send an http request (if in node) or (2) send an XHR request to a proxy on the local server (if in a browser) and otherwise the api would look exactly the same. but there's a third possibility where you are already on the page that you want to parse (like in zotero) that i don't know how to incorporate yet.08:58
@kanzureas for sizzle vs cheerio i don't really want two separate sets of functions for parsing the same thing08:58
@kanzureif they are compatible then that sound scool08:59
@kanzure*sounds cool08:59
ParahSailinat i understand it, cheerio works on the pseudo-dom data structures generated by node-htmlparser08:59
@kanzurei just mean i don't want to have to write 2 versions of parseTitle, https://github.com/kanzure/papermonk-downloader-plosone/blob/master/src/parse.js09:00
@kanzure(this version works with cheerio)09:00
ParahSailinso i guess you could translate actual dom to psuedo dom so that you can use cheerio with it09:01
ParahSailinor, it looks like cheerio is probably 99% compatible with jquery methods, so have a switch to detect if its in a browser, then require jquery else require cheerio09:03
-!- jmil_ [~jmil@hive76/member/jmil] has joined ##hplusroadmap09:04
-!- jmil [~jmil@hive76/member/jmil] has quit [Ping timeout: 276 seconds]09:04
-!- jmil_ is now known as jmil09:04
-!- Not-002 [~notifico@198.199.82.216] has quit [Remote host closed the connection]09:05
-!- jmil [~jmil@hive76/member/jmil] has quit [Client Quit]09:05
ParahSailinkanzure: cheerio's traversal methods literally act on this sort of data record https://gist.github.com/rcallahan/a65e56dcd8a643d2e9ef09:08
@kanzureiirc sizzle was a better idea than jquery09:17
@kanzurei think the way to check if we're in a browser is to see if window === undefined09:20
ParahSailinsizzle is the core functionality of jquery that we care about for this, but im not sure if there is a sizzle equivalent that acts on the dom records generated by htmlparser209:20
-!- aelinoea [~aelinoea@a88-113-45-152.elisa-laajakaista.fi] has joined ##hplusroadmap09:21
ParahSailini suppose that would be pretty easy to do, to modify cheerio traversal functions to have same syntax as sizzle09:21
@kanzuregrr that sounds annoying though. isn't there something that just works for this function?09:22
@kanzurei guess nobody has wanted to parse html in node and then have the same shit work in a browser?09:23
ParahSailindoesnt node.js support native compiled modules?09:23
@kanzuredefinitely09:23
ParahSailinmaybe we should just make a fast jsdom in native code for node.js09:23
@kanzureunfortunately that requires recompiling node to link the event loop with the webkit event loop09:23
@kanzurei know these things because of my time spent on phantomjs/webkit/node09:24
ParahSailinwhy is a browser event loop involved in this at all?09:24
@kanzurebecause the way that the dom works in webkit is that there are event loops09:24
ParahSailinjust implement DOM in cpp as a node module09:24
@kanzurethat's what webkit provides09:24
ParahSailinimplement all the methods that jsdom does in cpp09:24
@kanzureeh, i think it's overkill anyway09:25
ParahSailinjsdom is obv not complete dom implementation, but its enough for sizzle's traversal functions09:25
@kanzurecheerio is very fast09:25
ParahSailinthe window === undefined check will be more than adequate09:26
@kanzureyeah09:26
ParahSailin$ = (window === undefined)? require('cheerio').load(innerhtml) : require("jquery")09:27
-!- poppingtonic [~poppingto@212.49.88.110] has quit [Read error: Connection reset by peer]09:27
-!- poppingtonic [~poppingto@212.49.88.110] has joined ##hplusroadmap09:27
-!- poppingtonic [~poppingto@212.49.88.110] has quit [Client Quit]09:28
@kanzureactually, browserify scans all files for each require() statement09:29
@kanzureso we'll have to figure out how to disable browserify for cheerio09:29
ParahSailinepicycles and epicycles09:29
@kanzurebecause this don't work: echo "require('cheerio');" > main.js; browserify main.js > bundle.js09:29
ParahSailinso we're allowing code transformations to make code slightly different for the two environments?09:33
@kanzurewhat do you mean code transformations?09:33
ParahSailinbrowserify :: JS -> JS?09:33
@kanzurebrowserify is just a bundler09:33
@kanzurebecause require() doesn't work in a browser09:33
@kanzureso browserify provides require() and then puts all of the modules together09:34
@kanzurethere's something called browserify-cdn that lets you stream modules from a remote host, but i dunno if i care about that09:34
ParahSailinbrowserify changes require() to requirejs?09:34
ParahSailinor something similar?09:34
@kanzureyeah09:34
ParahSailinis browserify the only code transformation we are allowing?09:35
@kanzurewhat other transformation are you imagining?09:35
ParahSailini dunno, avoiding the window === undefined stuff would be nice09:35
@kanzurebtw i don't think the browserify output will be committed09:35
@kanzureoh, i see09:35
ParahSailin#ifndef browser require(jquery) #endif whatever09:36
@kanzurewell, that can be shoved into a third-party module if it makes you feel better?09:36
ParahSailinwell i dont really get to say anything since you're the one doing all this09:36
@kanzureuh, what? bad ideas are always bad ideas, even if i'm the one saying the bad ideas.09:37
ParahSailinit seems like the divergence between the browser and node will just be in that one place09:37
@kanzurenope, also http requests09:38
ParahSailinso just have two very small wrapper index.js files: one requiring cheerio, other requiring jquery09:38
ParahSailinah right09:38
ParahSailini thought browserify already handled that though09:38
@kanzureunfortunately browserify's http module only allows http requests to the server that the bundle was served from09:39
ParahSailinpass thr cheerio-containing index.js to browserify, apply the other directly to node interpreter09:39
ParahSailinkanzure: yeah makes sense, js xss rules and all09:40
@kanzurenot quite, there can/should only be one index.js because that's what package.json points to09:40
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has joined ##hplusroadmap09:41
ParahSailinok be two different packages, one is papermonk-browser, the other is papermonk-prime09:41
ParahSailinif that's "ugly", its because you're trying to do something intrinsically ugly09:42
@kanzurethere's a few ways around the xhr restrictions in a browser: (1) the server can have a proxy and you xhr to the proxy with your actual request, (2) you only run the downloaders on pages from publishers and the requests are just pass-through because you're already there, (3) something that injects an iframe into the page and then reads the response (but this gets annoying for POST/PUT/DELETE/whatever.. GET is simple)09:42
@kanzure#2 is how zotero works09:43
@kanzurebecause you only run the translators when you're currently on a page09:44
@kanzure#1 would mean that you could only run papermonk in a browser when it's served from a particular server. but if you have to connect to a server to run papermonk requests through a proxy, why not just use papermonk on the server-side? so that's sorta irrelevant.09:45
@kanzurei think #2 or #3 is necessary because my original plan was to make this something that can replace zotero's translators so that the zotero people will maintain my scrapers for me09:46
ParahSailinis zotero a browser extension?09:48
@kanzureyeah09:48
@kanzurefirefox-only09:49
ParahSailinso then it would have its own sort of javascript jail that may or may not allow cross site requests09:49
ParahSailinor is that a chrome only feature09:49
@kanzurethat's also present in firefox/gecko09:50
@kanzurethis is why the zotero translators only interact with the page/site that is currently loaded on the page09:50
ParahSailinhttps://developer.mozilla.org/en-US/docs/Extension_Frequently_Asked_Questions#I_cannot_initiate_an_XMLHttpRequest_from_my_extension09:50
@kanzureexcept.. through the zotero api.. which passes-through to the firefox extension api.09:50
@kanzureoh hm09:51
@kanzurei think those conditions are satisfied in zotero09:51
@kanzurei'm trying to see if there's any zotero translator that uses an iframe or xhr or something09:53
-!- hehelleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has joined ##hplusroadmap09:59
@kanzureyeah i'm actually clueless here10:00
@kanzurethis one is interesting, https://github.com/zotero/zotero-connectors10:02
@kanzure" The Zotero bookmarklet, part of https://github.com/zotero/zotero-connectors, runs Zotero translators in the browser. While it wasn't designed with modularity in mind, with some effort you could modify it to pass the item metadata to your JS instead of saving it to zotero.org."10:02
@kanzure" translation-server (https://github.com/zotero/translation-server) is our current sever-side implementation of Zotero's translation architecture. It provides a simple API to extract metadata from a URL. zotero-node was our previous attempt at this; translation-server is somewhat more difficult to install, but faster, more compatible with translators, more stable, and actively maintained."10:02
@kanzure"ProQuest PME (https://github.com/proquest/pme) is ProQuest's attempt to adapt about 20 of our translators (out of ~280 total) to work in their bookmarklet as part of RefWorks Flow (http://flow.proquest.com/). I've never tested it, but it exists."10:02
-!- helleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has quit [Ping timeout: 264 seconds]10:02
-!- AshleyWaffle [~quassel@unaffiliated/anastasiawyatt] has quit [Read error: Connection reset by peer]10:12
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has joined ##hplusroadmap10:15
@kanzurethis is some weird shit https://github.com/zotero/zotero-connectors/blob/master/build.sh10:17
@kanzureah.. Zotero.HTTP.doGet10:18
@kanzurehere's one that does an xhr-like operation (Zotero.HTTP.doGet)-- https://github.com/zotero/translators/blob/master/Stanford%20Encyclopedia%20of%20Philosophy.js10:19
-!- aelinoea [~aelinoea@a88-113-45-152.elisa-laajakaista.fi] has quit [Quit: Leaving]10:20
@kanzurei've been waiting to tell zotero about what i'm up to because they have a /lot/ of activity and it's sorta rude to bring them a half-working proposal. this bookmarklet system seems curious.10:25
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has quit [Remote host closed the connection]10:31
-!- Adillian [~Adillian@97e0b193.skybroadband.com] has quit [Quit: Nettalk6 - www.ntalk.de]10:31
-!- lupfantomo [~lupfantom@24-159-24-229.dhcp.jcsn.tn.charter.com] has quit [Ping timeout: 240 seconds]10:40
-!- lupfantomo [~lupfantom@24-159-24-229.dhcp.jcsn.tn.charter.com] has joined ##hplusroadmap10:53
-!- hehelleshin is now known as Helleshin10:59
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has quit [Ping timeout: 264 seconds]11:02
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has joined ##hplusroadmap11:09
KnightSirThom!lastgame knightsirthom11:16
KnightSirThomsorry wrong channel11:16
-!- klafka [~klafka@204-16-157-18-static.ipnetworksinc.net] has joined ##hplusroadmap11:25
-!- oblique [~oblique@unaffiliated/oblique] has joined ##hplusroadmap11:33
archelskanzure: do we know anyone in Zürich?11:42
@kanzureeugen leitl might be nearby11:43
@kanzurezakwilson11:43
@kanzurethere's a bunch of synthetic biology people at ETH11:43
@kanzurewait, which zurich?11:44
@kanzureoh i see it's in switzerland11:44
@kanzuremost of the hackteria people are supposed to be in switzerland11:45
archelsthis event is from the University of Zurich, not ETH, but they are right next to each other11:46
archelsI'm not sure about the details of the relation between the two, but there are speakers from ETH coming, so it seems amiable11:48
-!- aelinoea [~aelinoea@a88-113-45-152.elisa-laajakaista.fi] has joined ##hplusroadmap11:52
ParahSailini know some swiss people11:54
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has quit [Ping timeout: 268 seconds]11:56
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has joined ##hplusroadmap11:58
@kanzureoh man. shell script hell. https://github.com/zotero/provo this is how they test translators.12:07
-!- poppingtonic [~poppingto@212.49.88.109] has joined ##hplusroadmap12:10
@kanzurepfft the zotero people are suspicious12:12
@kanzure12:04 < simonster> the main disadvantages would be portability and performance12:12
@kanzureperformance should increase because papermonk doesn't have a dependency on firefox/gecko12:13
@kanzureand portability.. eh. the zotero api is intricately linked to firefox, which has zero portability.12:13
-!- yorick [~yorick@oftn/member/yorick] has joined ##hplusroadmap12:37
-!- Noryokusha [Noryokusha@198-84-225-88.cpe.teksavvy.com] has quit []12:59
-!- monkeynipples [monkeynipp@gateway/shell/xzibition.com/x-ktptfebnovznxota] has quit [Ping timeout: 240 seconds]13:00
-!- weles [~mariusz@wsip-70-183-164-170.ri.ri.cox.net] has quit [Ping timeout: 256 seconds]13:03
-!- monkeynipples [monkeynipp@gateway/shell/xzibition.com/x-relbyhmtycccdklj] has joined ##hplusroadmap13:07
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has joined ##hplusroadmap13:18
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has quit [Ping timeout: 276 seconds]13:26
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has joined ##hplusroadmap13:34
-!- yorick [~yorick@oftn/member/yorick] has quit [Remote host closed the connection]13:36
-!- aelinoea [~aelinoea@a88-113-45-152.elisa-laajakaista.fi] has quit [Quit: Leaving]13:39
-!- makoLime [~mako@103-9-42-133.flip.co.nz] has joined ##hplusroadmap13:39
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has quit [Ping timeout: 264 seconds]13:40
-!- weles [~mariusz@c-71-234-3-169.hsd1.ct.comcast.net] has quit [Ping timeout: 260 seconds]13:41
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has joined ##hplusroadmap13:41
-!- monkeynipples [monkeynipp@gateway/shell/xzibition.com/x-relbyhmtycccdklj] has quit [Ping timeout: 260 seconds]14:17
-!- monkeynipples [monkeynipp@gateway/shell/xzibition.com/x-vdotlvkrwvzobwua] has joined ##hplusroadmap14:21
-!- klafka [~klafka@204-16-157-18-static.ipnetworksinc.net] has quit [Remote host closed the connection]14:21
-!- ielo [~ielo@host-92-20-171-32.as13285.net] has quit [Ping timeout: 246 seconds]15:03
-!- Reinhard [Reinhard@198-84-225-88.cpe.teksavvy.com] has joined ##hplusroadmap15:04
Reinhardopensuse was a failure15:04
Reinhardwelp :/15:04
-!- Reinhard is now known as Noryokusha15:04
-!- n_bentha [b84bd452@gateway/web/freenode/ip.184.75.212.82] has joined ##hplusroadmap15:07
n_benthahttp://www.extremetech.com/extreme/163997-carbyne-a-new-form-of-carbon-thats-stronger-than-graphene15:07
-!- sivoais [~zaki@unaffiliated/sivoais] has quit [Quit: leaving]15:09
-!- sivoais [~zaki@unaffiliated/sivoais] has joined ##hplusroadmap15:10
ThomasEgireminds me of asbestos. sure that stuff isn't going to cause supercancer?15:10
poppingtonicpaperbot: http://www.jstor.org/stable/238438915:16
n_benthathat article is pretty bad (the one i posted earlier). this one is better: http://www.technologyreview.com/view/518301/new-form-of-carbon-is-stronger-than-graphene-and-diamond/15:17
paperbothttp://libgen.org/scimag/get.php?doi=10.2307%2F238438915:19
-!- EnLilaSko [EnLilaSko@unaffiliated/enlilasko] has quit [Remote host closed the connection]15:25
-!- augur [~augur@208.58.5.87] has quit [Remote host closed the connection]15:46
-!- Noryokusha [Reinhard@198-84-225-88.cpe.teksavvy.com] has quit [Read error: Connection reset by peer]15:46
-!- Noryokusha [Noryokusha@198-84-225-88.cpe.teksavvy.com] has joined ##hplusroadmap15:46
-!- GuanPing [~GuanYu@184.75.212.82] has joined ##hplusroadmap15:48
-!- GuanPing [~GuanYu@184.75.212.82] has quit [Client Quit]15:48
-!- nicotiana_b [~GuanYu@184.75.212.82] has joined ##hplusroadmap15:49
-!- nicotiana_b [~GuanYu@184.75.212.82] has quit [Client Quit]15:50
-!- nicotiana_b [~GuanYu@184.75.212.82] has joined ##hplusroadmap15:50
-!- n_bentha [b84bd452@gateway/web/freenode/ip.184.75.212.82] has quit [Ping timeout: 250 seconds]15:52
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has quit [Ping timeout: 256 seconds]16:12
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has joined ##hplusroadmap16:16
poppingtonichttp://boingboing.net/2013/08/16/an-urban-legend-documented.html16:18
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has quit [Quit: Leaving]16:26
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has joined ##hplusroadmap16:27
-!- Helleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has quit [Ping timeout: 260 seconds]16:35
-!- nicotiana_b is now known as n_bentha16:46
-!- helleshin [~talinck@69-61-156-24.ubr1.dyn.lebanon-oh.fuse.net] has joined ##hplusroadmap16:50
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has quit [Ping timeout: 260 seconds]17:07
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has joined ##hplusroadmap17:25
@kanzureParahSailin: unrelated, but here's a browserify bloat-finding tool https://github.com/hughsk/disc17:36
@kanzureParahSailin: so yeah, the zotero api allows unrestricted xhr. but the bookmarklets obviously have restricted xhr. so some translators are just flat out not included in the bookmarklets. according to simonster.17:51
-!- ThomasEgi [~thomas@panda3d/ThomasEgi] has quit [Remote host closed the connection]18:09
@kanzureoh, my iframe + xhr idea is bad because of X-Frame-Options: SAMEORIGIN. i forgot.18:13
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has quit [Remote host closed the connection]18:19
juulkanzure: what's your iframe + xhr idea?18:50
@kanzurethe one i mentioned above. nevermind though. it wouldn't work.18:50
@kanzurethere's no point in trying to hammer a browser into doing something that violates the security model of the web18:51
@kanzureespecially because i don't control publishers' servers18:51
juulok18:52
juuli'm considering abusing the security model to sandbox user-written code18:52
juulit's probably a bad idea18:53
juulbut i'm gonna do it anyway18:53
@kanzureis ogden on drugs?18:53
juulwhat?18:53
@kanzuremax. your homie, right?18:53
juulno he's probably one of the sanest people i know18:54
@kanzurei don't mean he's insane18:54
@kanzurei mean he seems to push 50-100 commits/day reliably18:54
juulhaha, yeah18:54
@kanzurenot all of them great i guess18:54
juulhim and substack are a powerhouse18:54
@kanzuresubstack is just a robot from the future trapped on earth18:54
juuland he also finds time to come play at sudo room18:54
juulyesterday ogden was 3d printing voxel graphics18:55
@kanzuresometimes i spoof my commits to spread them out temporally but still..18:55
@kanzureyeah, i saw some node modules about voxel/stl/3d printing things18:55
juulyep18:55
@kanzureand something about voxel hosting. shrug..18:55
juulhe did the in-browser minecraft world18:56
juulnot actual minecraft, but minecraft graphics18:56
@kanzurei saw that because of the ardrone simulator that uses it18:56
juulah18:57
@kanzurejuul: i'm rewriting zotero to be a more modular and sane system. and less monolithic.18:57
@kanzurejuul: https://github.com/kanzure/papermonk18:57
@kanzurejuul: https://github.com/kanzure/papermonk-downloader-plosone18:57
@kanzureat the moment i'm working on browserify compatibility. which is also why i was concerned about xhr+cors. but even zotero's bookmarklet system (where it dumps all of their 100s of translators into a giant bookmarklet) just drop/don't use translators that use remote http requests. so i guess i'm okay with a similar caveat.18:58
juuloh niiice18:59
@kanzureanyway this will soon replace paperbot19:00
@kanzureand then i will have to start on rewriting pdfparanoia into javascript19:00
@kanzureso that we can do streaming pdf watermark removal and streaming pdf pirating19:00
juuloh, i assume there are good pdf libraries for js?19:00
@kanzureprobably not19:00
juulok19:00
@kanzurepython just has pdfminer, and it blows19:00
juulfsf used to have pdf as one of their top priorities for free software19:01
@kanzurei think juri_ worked on that or knows of it19:01
@kanzureit was all xml xpath rewriting rules or something. it was really scary.19:01
juuloh, yeah that sounds unfun19:02
@kanzurei don't see any pdf parser modules on npmjs.org19:02
ParahSail1nyou really like javascript...19:02
@kanzureto be honest, pdfparanoia just uses pdfminer for parsing, and then i manipulate pdfs manually and against the spec19:02
@kanzurei don't like javascript at all, i fucking hate it19:02
ParahSail1nto want to write a pdf parser in it19:03
juuli guess there's this https://github.com/mozilla/pdf.js/19:03
@kanzurethat's a viewer19:03
juulyeah, not ideal19:03
@kanzures/against the spec/by violating the spec19:03
juulbtw, a bit off topic, but some of my friends wrote Lua EventMachine19:04
juulit's an interesting take on event-based network programming19:04
juulno callbacks19:04
juulor at least, no explicit callbacks19:05
-!- lichen_ is now known as lichen19:05
ParahSail1nlua is awesome because, like js, there's only one numerical type19:06
juulwell, in node, there are libs to have multiple numeric types19:06
juulheavily used in the 3D programming stuff19:06
-!- augur [~augur@c-68-55-204-212.hsd1.md.comcast.net] has joined ##hplusroadmap19:11
-!- augur [~augur@c-68-55-204-212.hsd1.md.comcast.net] has quit [Remote host closed the connection]19:30
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has joined ##hplusroadmap19:30
-!- klafka [~klafka@c-24-6-18-31.hsd1.ca.comcast.net] has quit [Ping timeout: 268 seconds]19:35
-!- lichen_ [~lichen@c-24-21-206-64.hsd1.or.comcast.net] has joined ##hplusroadmap19:36
-!- lichen [~lichen@c-24-21-206-64.hsd1.or.comcast.net] has quit [Ping timeout: 264 seconds]19:39
-!- lichen_ is now known as lichen19:39
-!- Not-002 [~notifico@198.199.82.216] has joined ##hplusroadmap19:42
Not-002[kanzure/papermonk-downloader-plosone] kanzure tagged f5218f5 as v0.0.6 http://git.io/ND2lng19:42
Not-002[kanzure/papermonk-downloader-plosone] kanzure pushed 4 commits to master [+0/-0/±9] http://git.io/FRTLdg19:42
Not-002[kanzure/papermonk-downloader-plosone] kanzure 7f6e54a - replace request with hyperquest Also, use concat-stream to buffer the response body for parsing. Eventually, parsing will switch to some sort of stream-based html parser and metadata will be emitted as it's parsed or something.19:42
Not-002[kanzure/papermonk-downloader-plosone] kanzure 97d9e94 - also switch pdf downloading to hyperquest19:42
Not-002[kanzure/papermonk-downloader-plosone] kanzure 9bff2d7 - Merge branch 'use-hyperquest' into master Replace request with hyperquest.19:42
Not-002[kanzure/papermonk-downloader-plosone] kanzure f5218f5 - version bump to: v0.0.619:42
-!- fireprfHydra [~fireprfHy@ool-44c01f50.dyn.optonline.net] has quit [Ping timeout: 260 seconds]20:44
-!- ParahSailin [~Rob@unaffiliated/parahsailin] has quit [Read error: Connection reset by peer]20:50
-!- ParahSailin [~Rob@50-194-178-148-static.hfc.comcastbusiness.net] has joined ##hplusroadmap20:50
@kanzurejuul: you wouldn't happen to know what to do with three different streams, would you? i have a request=hyperquest.get() and request.pipe(trumpeter) and output = through() and trumpeter.selectAll("title", function(title) { output.queue({title: title}); }) but what do i do about request.on("error") or giving "output" to the user as a stream to work with?21:06
@kanzurethe user has to be given something21:08
@kanzureoriginally i was passing in a callback, and then passing a metadata dictionary into the callback (so callback(error, metadata)) but this doesn't make sense if i have streams and pipes available21:08
heathhyperquest?21:15
heathgot it https://github.com/substack/hyperquest21:15
* heath hasn't worked with streams as much as he would like21:17
@kanzureheath: https://gist.github.com/kanzure/625524421:19
@kanzureheath: that's essentially what i'm trying to figur eout21:19
heathpubsub21:20
heathi imagine that's a way21:20
heathhttps://github.com/mroderick/PubSubJS21:21
Noryokushawelcome back heath21:21
Noryokushawhered you go21:21
heathit's the weekend, i'm trying to restrict my computer usage21:23
Noryokushado some pushups21:27
Noryokushaill compete with you21:27
Noryokushafirst to get 100 pushups wins21:27
heathi probably already won this contest then :)21:28
* heath walks away for awhile21:28
ParahSail1npaperbot, http://www.plosone.org/article/info:doi/10.1371/journal.pone.0060410#s521:31
paperbothttp://diyhpl.us/~bryan/papers2/paperbot/Non-Invasive%20Brain-to-Brain%20Interface%20%28BBI%29%3A%20Establishing%20Functional%20Links%20between%20Two%20Brains.pdf21:32
@kanzurei don't think pubsub is the right answer21:32
heathrequest within hyperquest is an instance of EventEmitter21:38
heathyou could attach an event listener for the error21:38
@kanzureattach to what?21:38
-!- yashgaroth [~ffffff@cpe-75-80-50-28.san.res.rr.com] has joined ##hplusroadmap21:40
heathyou have it in your code, what's wrong with    //request.on("error", function(error){..});21:40
@kanzureuh?21:40
@kanzurebecause i don't want to handle the error, i want the user to21:41
@kanzureeven if i do write something there, i still need to tell the user21:41
@kanzuresee?21:41
heathit's not clear to me how the user is using the system i guess21:42
@kanzuredownloader.download().pipe(pdfstream)21:42
@kanzureor, really, it's more like a stream of metadata and pdf and other files21:43
@kanzureand the user might save to that to the file system (i don't really care)21:43
Noryokushalol damn you heath21:46
Noryokushai can barely do 2021:46
heathkanzure: maybe promises? this seems a bit much, but it would work21:47
heathhttps://github.com/kriskowal/q21:47
@kanzureno thanks, i think there's a way to do it with just streams or event emitters21:48
@kanzurepromises are a different beast21:48
@kanzurepromises are a way to organize callback spaghetti. i was trying to get away from using a callback.21:48
@kanzurecurrent version: https://github.com/kanzure/papermonk-downloader-plosone/blob/master/index.js#L2421:48
@kanzureline 29 calls the callback21:48
heaththat's why i suggested it, the only other option i can think of is a callback for the download function21:49
@kanzureneat, https://superevr.com/blog/2012/top-level-universal-xss/22:29
@kanzurehttp://io./cgi-bin/whois?query=%3Ca%20href=%22%22%3E%3Cu%3EArbitrary%20HTML!%3C/u%3E%3C/a%3E%3C/h3%3E%3Cimg%20src=%22http://humananatura.files.wordpress.com/2011/08/hn-initials.jpg%22%3E%3Cscript%3Ealert('this%20will%20pop%20up%20in%20firefox!');%3C/script%3E%3Ch3%3E22:29
@kanzurenot bad https://www.runscope.com/ .. i think they bought http://requestb.in/ but that doesn't make sense because it was an open source project.22:48
rigelso this whole couchdb thing23:14
rigelthat stores binary objects, no?23:14
rigelall these streaming media servers use SQL23:15
rigeland im wondering if thats still necessary23:15
-!- augur [~augur@208.58.5.87] has joined ##hplusroadmap23:22
-!- augur [~augur@208.58.5.87] has quit [Read error: Connection reset by peer]23:22
-!- augur [~augur@208.58.5.87] has joined ##hplusroadmap23:22
heathrigel: that's mongo23:28
heathcouch is all json23:28
-!- n_bentha [~GuanYu@184.75.212.82] has quit [Ping timeout: 268 seconds]23:48
--- Log closed Sat Aug 17 00:00:58 2013

Generated by irclog2html.py 2.15.0.dev0 by Marius Gedminas - find it at mg.pov.lt!