Time |
Nickname |
Message |
00:25
๐
|
ff_ |
hey |
00:25
๐
|
bbot_ |
hi |
01:14
๐
|
bsmith093 |
well this is interesting, i tried to run bundle install for the ffgrab ruby project and got a password prompt, put in my pass, it grabbed and installed the proper gems, but i still get this Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. ben@ben-laptop:~/1432483$ ruby ffgrab.rb ffgrab.rb:1:in `require': no such file to load -- connection_pool (LoadError) from ffgrab.rb:1 |
02:48
๐
|
yipdw |
bsmith093: check which Ruby it is |
02:49
๐
|
yipdw |
also, I've got a list of IDs |
02:49
๐
|
yipdw |
as in complete crawl |
02:50
๐
|
bsmith093 |
holy crap already? |
02:50
๐
|
bsmith093 |
also now its spitting back a bunch or already claimed ot fietching it again |
02:50
๐
|
yipdw |
http://depot.ninjawedding.org/fanfiction.net_story_ids_2011-12-12.gz |
02:50
๐
|
yipdw |
do what you will with those |
02:51
๐
|
bsmith093 |
so yeah i was using 1.8.7 for some reason use 1.9.3 and itworks fine |
02:51
๐
|
yipdw |
not really any reason to run the crawler at this point |
02:51
๐
|
yipdw |
at least not for another month or so |
02:52
๐
|
bsmith093 |
k then, how do i sort the numbers? |
02:52
๐
|
bsmith093 |
its easier to split them up that way |
02:53
๐
|
arrith |
yipdw: which script did you use for that? |
02:54
๐
|
yipdw |
arrith: my own |
02:54
๐
|
yipdw |
https://gist.github.com/1432483 |
02:54
๐
|
yipdw |
it's hacked together, but works |
02:54
๐
|
yipdw |
threaded crawler |
02:54
๐
|
bsmith093 |
yipdw: when you first start grabbing storis, re run the id checker, starting from the highest number you got last time |
02:55
๐
|
Coderjoe |
it doesn't work that way |
02:55
๐
|
yipdw |
it's not really possible to start from a number with that script |
02:55
๐
|
yipdw |
that thing starts at a set of known roots and traces from there |
02:55
๐
|
bsmith093 |
this is plenty, then |
02:55
๐
|
yipdw |
using Last-Modified headers and cache-control keys to avoid re-fetching |
02:55
๐
|
yipdw |
however I learned that ff.net's Last-Modified headers are not exactly useful wrt determining new stories |
02:55
๐
|
yipdw |
so |
02:55
๐
|
yipdw |
I don't recommend re-running this particular script |
02:56
๐
|
yipdw |
if you want to re-sync, write one that makes use of the current ID knowledge |
02:56
๐
|
yipdw |
it may be useful, however, to periodically re-run that grabber |
02:56
๐
|
yipdw |
I don't think I missed anything, but if someone discovers a bug in the fetch code that leads to link loss |
02:56
๐
|
yipdw |
it'd make sense to re-run it |
02:57
๐
|
yipdw |
anyway, to sort |
02:57
๐
|
yipdw |
zcat [that file] | sort -n |
02:59
๐
|
yipdw |
if you'd like, you can also sync a Redis DB to what I have |
02:59
๐
|
yipdw |
you will need approximately 500 MB free |
02:59
๐
|
yipdw |
(of RAM) |
02:59
๐
|
yipdw |
the crawler keeps around a lot of state, a bit like wget |
02:59
๐
|
bsmith093 |
how would i do that,( sync) |
03:00
๐
|
yipdw |
you'd need to establish an SSH tunnel to one of my computers and then run the slaveof command on your Redis instance |
03:00
๐
|
yipdw |
but I'm not particularly comfortable with allowing people to SSH to my personal systems |
03:00
๐
|
yipdw |
so I'll need to set up maybe an EC2 instance for that or some such |
03:01
๐
|
bsmith093 |
and i suck at tunnelling |
03:01
๐
|
bsmith093 |
anyway this is great, thanks :D |
03:01
๐
|
yipdw |
man ssh, check out the -N and -L options |
03:01
๐
|
yipdw |
I can also load up the RDB dump, I guess, but that may have compat issues |
03:02
๐
|
bsmith093 |
does this handle chappter issues as well? |
03:02
๐
|
yipdw |
it only grabs story IDs |
03:02
๐
|
yipdw |
my assumption is that the story grabber will handle those |
03:02
๐
|
yipdw |
chapters, that is |
03:03
๐
|
yipdw |
also, re: the Redis sharing thing, I guess I could also use Redis To Go |
03:03
๐
|
bsmith093 |
i still like my idea of grabbing the double arrow link and iterating backeards through the chapters ( or forwards) to grab the html pages directly and then work on those |
03:03
๐
|
Coderjoe |
ergh |
03:04
๐
|
bsmith093 |
why ergh? |
03:04
๐
|
yipdw |
that's a possibility, but another one is just clicking Next until you don't have another page |
03:04
๐
|
bsmith093 |
how would i automate that? |
03:05
๐
|
Coderjoe |
the ergh was about redis to go |
03:05
๐
|
yipdw |
Redis To Go works |
03:05
๐
|
yipdw |
I personally would not entrust it with any mission-critical data |
03:05
๐
|
yipdw |
but I also would not entrust Redis with mission-critical data :P |
03:05
๐
|
yipdw |
well, business-critical |
03:05
๐
|
yipdw |
and I mean I wouldn't make Redis the source of truth for that |
03:06
๐
|
Coderjoe |
the prices are a little high for a quick transfer of data |
03:06
๐
|
yipdw |
yeah |
03:06
๐
|
yipdw |
as far as automation goes, I dunno -- maybe wget has something for that built-in; I haven't memorized its options |
03:07
๐
|
bsmith093 |
neither have i |
03:07
๐
|
yipdw |
or you can use another program to find all chapter stops (read the options in the combobox perhaps) |
03:07
๐
|
yipdw |
and then feed that list of URLs into wget |
03:07
๐
|
yipdw |
that's what the splinder grabber does |
03:07
๐
|
bsmith093 |
afaik thats all javascript |
03:08
๐
|
yipdw |
no, it isn't |
03:08
๐
|
yipdw |
go to a story that has chapters and look at the chapter combobox |
03:08
๐
|
bsmith093 |
i check the source, it looked java-y to me |
03:08
๐
|
yipdw |
that is page markup |
03:08
๐
|
bsmith093 |
oy |
03:12
๐
|
Coderjoe |
can redis push into another redis server? |
03:12
๐
|
yipdw |
yeah, that's the basis of redis replication |
03:12
๐
|
Coderjoe |
as opposed to pull from |
03:12
๐
|
yipdw |
oh |
03:12
๐
|
yipdw |
no, not as far as I know |
03:13
๐
|
bsmith093 |
well apparently this is what i would grep the html for <a href="/s/4457761/10/Basic_Instinct">รยป</a> the number after the id im currently on |
03:14
๐
|
bsmith093 |
also whatever the hell the ode for that funky arrow symbol is |
03:17
๐
|
arrith |
doing intelligence recrawls is something i wonder if there's already 'best practices' for |
03:18
๐
|
arrith |
i suppose that might be like a search on a graph or something |
03:18
๐
|
bsmith093 |
almost certainly |
03:18
๐
|
yipdw |
there are; a lot of it involves asking the server what changed and respecting its caching parameters |
03:18
๐
|
yipdw |
that's about all you can do |
03:19
๐
|
yipdw |
searching on a graph is what my crawler does, FYI |
03:19
๐
|
yipdw |
anyway, this is what I mean by looking at those combobox entries |
03:20
๐
|
yipdw |
throw this into a file or some such and run it with the first argument as a story ID: |
03:20
๐
|
yipdw |
require 'net/http' |
03:20
๐
|
yipdw |
require 'nokogiri' |
03:20
๐
|
yipdw |
(Nokogiri.HTML(Net::HTTP.get(URI.parse("http://www.fanfiction.net/s/#{ARGV[0]}")))/'select[name="chapter"]')[0].children.map(&:text).tap { |x| puts x.join("\n") } |
03:20
๐
|
yipdw |
on 5909536, for example, it'll print out the names of all 9 chapters |
03:21
๐
|
bsmith093 |
and that helps, how? |
03:21
๐
|
yipdw |
getting the chapter numbers from there involves replacing map(&:text) with map { |c| c.attr('value').text } or something along those lines |
03:21
๐
|
yipdw |
the brain |
03:21
๐
|
yipdw |
use it |
03:22
๐
|
bsmith093 |
oh ok, i just thought for like 5 sec, and yeah, thats makes link generation much easier ;P |
03:22
๐
|
yipdw |
alternatively, since chapters always go from 1 to a highest point, you can just take the number of entries in that list and count from 1 up |
03:26
๐
|
arrith |
well afaik searching graphs means things like A* and fancy stuff i don't know yet |
03:30
๐
|
yipdw |
nah, doesn't have to |
03:31
๐
|
yipdw |
consider stories and categories as vertices and (category, category) and (category, story) tuples as arcs |
03:31
๐
|
yipdw |
if you start at a known set of sources and go in a breadth-first manner (like my crawler) |
03:31
๐
|
yipdw |
that's breadth-first search |
03:32
๐
|
yipdw |
A* search is about minimizing the cost of a path between two vertices |
03:32
๐
|
yipdw |
so you deal with a graph that has weighted edges |
03:33
๐
|
yipdw |
I can't think of a beneficial use of weighting in this particular scenario, though, so right now I don't think that A* would offer any gains |
03:33
๐
|
yipdw |
could be wrong though |
03:36
๐
|
yipdw |
where you tend to find A* search, alpha-beta pruning, minimax, etc is in code that needs to make decisions |
03:37
๐
|
yipdw |
AI game-playing agents is one example |
03:37
๐
|
yipdw |
crawlers, I guess, could use it, if they had some knowledge of network topology ("hit up these first because they're closer", etc) |
03:37
๐
|
yipdw |
but I don't know how much of a gain that'd make vs. the added complexity |
03:37
๐
|
yipdw |
ask the authors of Heritrix |
05:10
๐
|
arrith |
ah Heritrix looks interesting |
05:16
๐
|
Coderjoe |
whee |
05:16
๐
|
Coderjoe |
redis' make test fails |
05:16
๐
|
kennethre |
Coderjoe: lie |
05:16
๐
|
kennethre |
*lies |
05:16
๐
|
Coderjoe |
"::redis::redis_read_reply $fd" |
05:16
๐
|
Coderjoe |
(procedure "::redis::__dispatch__" line 23) |
05:16
๐
|
Coderjoe |
Bad protocol, as reply type byte |
05:16
๐
|
Coderjoe |
[exception]: Executing test client: Bad protocol, as reply type byte. |
05:16
๐
|
Coderjoe |
while executing |
05:16
๐
|
Coderjoe |
invoked from within |
05:17
๐
|
kennethre |
sounds like a client issue |
05:17
๐
|
kennethre |
what are you using? |
05:17
๐
|
Coderjoe |
redis's "make test" |
05:17
๐
|
kennethre |
ah gotcha |
05:18
๐
|
kennethre |
strait from the repo? |
05:18
๐
|
Coderjoe |
from the download page |
05:18
๐
|
Coderjoe |
the 2.4.4 tarball from the download page |
05:19
๐
|
kennethre |
testing.. |
05:19
๐
|
kennethre |
all good here :) |
05:20
๐
|
Coderjoe |
that was rather fast |
05:20
๐
|
kennethre |
speedy machine :) |
05:20
๐
|
Coderjoe |
yeah... my load averave jumps up to 14 during some of these tests |
05:20
๐
|
yipdw |
all good here |
05:21
๐
|
kennethre |
Coderjoe: https://gist.github.com/5e482330834dba9594a8 |
05:21
๐
|
kennethre |
ugh, they should remove color if it's not in a tty |
05:21
๐
|
yipdw |
also |
05:21
๐
|
yipdw |
$ time make test |
05:21
๐
|
yipdw |
real 0m18.342s |
05:21
๐
|
yipdw |
user 0m0.040s |
05:22
๐
|
kennethre |
make test 12.12s user 3.01s system 88% cpu 17.148 total |
05:22
๐
|
yipdw |
foiled |
05:22
๐
|
kennethre |
my fans definately kicked in |
05:22
๐
|
* |
Coderjoe deletes the directory and starts fresh |
05:22
๐
|
kennethre |
Coderjoe: what system are you on? |
05:23
๐
|
kennethre |
(os) |
05:23
๐
|
Coderjoe |
and the thing is building a hell of a lot faster this time (for the main compiliation) |
05:23
๐
|
Coderjoe |
ubuntu 11.10 |
05:33
๐
|
Coderjoe |
and now running tests again |
05:50
๐
|
Coderjoe |
and it puked again, on the same test I think |
05:50
๐
|
Coderjoe |
(file "tests/integration/replication-3.tcl" line 1) |
06:56
๐
|
yipdw |
Coderjoe: weird |
07:23
๐
|
lemonkey |
http://techcrunch.com/2011/12/12/thoora-shuts-down/ |
07:24
๐
|
Coderjoe |
is the whole internet shutting down? |
07:32
๐
|
yipdw |
seems like it's just the parts of the Internet that nobody really needs |
07:57
๐
|
RedType |
Just 3 months after its public launch following 2 years of private beta, |
07:57
๐
|
RedType |
WELL THERE'S YER PROBLEM |
07:57
๐
|
RedType |
Just 3 months after its public launch following 2 years of private beta, content discovery engine Thoora today announced that it will shut down. |
07:57
๐
|
RedType |
reposting that whole sentence |
08:06
๐
|
Coderjoe |
I don't know what I did, but starting with a fresh instance seems to have corrected it |
08:07
๐
|
Coderjoe |
all tests passed |
09:10
๐
|
SketchCow |
http://batcave.textfiles.com/ocrcount |
09:10
๐
|
SketchCow |
ha ha, take that archive.org |
09:10
๐
|
SketchCow |
\o/ |
09:11
๐
|
Coderjoe |
oh my god this is a little disgusting |
09:11
๐
|
Coderjoe |
http://www.steve.org.uk/Software/redisfs/ |
09:11
๐
|
SketchCow |
What does that do? |
09:12
๐
|
Coderjoe |
it's a fuse filesystem to store all the data in a redis database |
09:18
๐
|
SketchCow |
Well, I just bought myself the pain of adding indexes to 514 magazine issues. |
09:18
๐
|
SketchCow |
However, ALL the lists are RIGHT there, all ready to go, it's 100% copy-paste. |
09:18
๐
|
SketchCow |
I should find some excellent This American life episodes to listen to |
09:19
๐
|
SketchCow |
http://www.archive.org/details/73-magazine-1971-01 |
09:23
๐
|
Nemo_bis |
SketchCow, for those Jamendo items, isn't there any way to put the license in the licenseurl field, when the whole album has the same one? (Which is probably what happens in most cases.) |
09:25
๐
|
Nemo_bis |
So that they can be searched by license etc. |
09:30
๐
|
SketchCow |
It's NOT always the same. |
09:30
๐
|
SketchCow |
I do agree it would be nice to be able to inject it. |
09:30
๐
|
SketchCow |
But we're now 4,000 albums in |
09:32
๐
|
SketchCow |
I found it easier to link it into the consistent description of the txt file. |
09:34
๐
|
SketchCow |
I'm booting up the this american life app! |
09:36
๐
|
db48x |
Coderjoe: heh |
10:29
๐
|
SketchCow |
100 issues finished! |
10:30
๐
|
Coderjoe |
O_o |
10:30
๐
|
Coderjoe |
/10_Things_I_Hate_About_You_and_10_Things_I_Hate_About_You_Crossovers/906/5226/ |
10:47
๐
|
dnova |
crossover with what |
10:48
๐
|
Coderjoe |
movie to tv show |
10:48
๐
|
dnova |
lol |
10:51
๐
|
Soojin |
^--> http://www.imdb.com/title/tt1302019/ |
10:52
๐
|
dnova |
ugh |
11:01
๐
|
Coderjoe |
oh dear lord |
11:02
๐
|
Coderjoe |
also http://www.imdb.com/title/tt1386703/ |
11:11
๐
|
Coderjoe |
diverging even farther from "We Can Remember It For You Wholesale" |
11:11
๐
|
Coderjoe |
geh. why is it 6am? |
11:31
๐
|
db48x |
how big did Jamendo turn out to be? |
11:32
๐
|
dnova |
like 2.5 years. |
11:32
๐
|
db48x |
saw that |
11:32
๐
|
db48x |
disk space? |
11:32
๐
|
db48x |
when can I put it on my phone? |
11:38
๐
|
dnova |
it's probably about 1-3tb depending on the quality |
11:38
๐
|
dnova |
so give it a couple of years before phones have that much space. |
11:38
๐
|
dnova |
2.5 years @ 160kbps = 1.5TB, for reference. |
11:41
๐
|
db48x |
yea, won't be long |
11:47
๐
|
db48x |
I don't think there are any programs geared towards exploring a collection of this size |
18:34
๐
|
SketchCow |
I am just putting up the mp3s. |
18:37
๐
|
SketchCow |
Actually, all of the Jamendo collection is 1.8tb |
18:38
๐
|
Schbirid |
mine is bigger, ha |
18:39
๐
|
SketchCow |
All Jamendo albums from 0000-7999 are up now. |
18:39
๐
|
SketchCow |
I'm going to let archive.org settle down for a day and then jam more in. |
18:41
๐
|
Schbirid |
is there any chance that you leave the filenames intact? |
18:41
๐
|
SketchCow |
No. |
18:41
๐
|
SketchCow |
They are absolutely incompatible with the archive.org infrastructure. |
18:42
๐
|
SketchCow |
That is what took me so long, striking a devil's bargain between how to get them in there and have information stay intact. |
18:42
๐
|
SketchCow |
Now, the ID3 tags of the downloads are ALL intact, so any utility will restore them. |
18:42
๐
|
SketchCow |
I don't know why archive.org won't show them, but they're there. |
18:44
๐
|
Schbirid |
how are they incompatible? looking at random albums it seems like they just need to be lowercased and stripped of funny characters (and space -> _ ) |
18:44
๐
|
SketchCow |
uh? |
18:44
๐
|
SketchCow |
Having to modify the natural state of anything to make it function in a new environment is the fundamental definition of incompatibility? |
18:45
๐
|
Schbirid |
not even lowercased actually |
18:45
๐
|
Schbirid |
http://ia700200.us.archive.org/10/items/1bit_007/ eg |
18:52
๐
|
DFJustin |
archive.org seems to show whatever the <title> is in the files.xml, not the ID3 title |
18:52
๐
|
SketchCow |
I agree but there's something deeper. |
18:52
๐
|
SketchCow |
So I'm just doing what it does, which works out OK. |
18:52
๐
|
SketchCow |
I'm currently adding those magazine descriptions for 73 magazine |
23:12
๐
|
pberry |
Is this already known? https://twitter.com/#!/waxpancake/status/146728917112332289 |
23:12
๐
|
pberry |
"Horrible. TwapperKeeper was bought by Hootsuite and is nuking all their Twitter archives with a month's notice: http://twapperkeeper.com/" |
23:22
๐
|
SketchCow |
Yes |
23:22
๐
|
SketchCow |
Waxy's behind. |
23:24
๐
|
SketchCow |
http://twitter.com/#!/textfiles/status/145672352640942080 |
23:26
๐
|
SketchCow |
He doesn't follow me anymore, otherwise he'd have seen it. |
23:29
๐
|
SketchCow |
Mostly, I'm trying to endrun this by forcing Library of Congress to release their twitter archives to archive.org. |
23:50
๐
|
pberry |
ah, that would be cool |
23:56
๐
|
SketchCow |
I've now put in descriptions for 342 issues of 73 magazine. |
23:57
๐
|
pberry |
nice |