News for hackers. Stuff that matters.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by aw3c2 on Friday December 30, 2011 @07:26PM (#3409668)
"nearly all of the textual content of the English Wikipedia" = "1GB"

I find that hard to believe. Other wiki readers' dumps are a multiple of that. Eg aarddict for en is ~8GB.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by teilo on Friday December 30, 2011 @08:29PM (#3409802)
You can find the current size here: http://en.wikipedia.org/wiki/Wikipedia:Database_download

Current uncompressed size of all English articles in XML: 31Gb. Compressed: 7.3. That's without talk, User pages, revision history, etc.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @08:09PM (#3409759)
It's most of the large articles, the entirety (stripped of citations and image metadata) and compressed is more like 4GB. For comparison, everything (including citations) as a wikimedia XML dump is about 7GB bzipped and thirty something uncompressed
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by riffraff on Friday December 30, 2011 @08:12PM (#3409768)
from the blog: >>> First of all, it compresses not the entireity, but rather the most popular subset of the English Wikipedia. Two dumps are distributed at time of writing, the top 1000 articles and the top 300,000 requiring approximately 10MB and 1GB, respectively.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by kristianp on Friday December 30, 2011 @10:47PM (#3410080)
Actually the top 1337 and 314159 articles, respectively :).
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by aw3c2 on Saturday December 31, 2011 @06:22AM (#3410694)
Cheers! Then their pitch of "nearly all content" is grossly wrong. Meh.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by erichocean on Friday December 30, 2011 @08:53PM (#3409846)
Seriously mis-titled, since it's nowhere even close to the "Entire Wikipedia" – it's a tiny subset of the English-language Wikipedia from what I can tell.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @09:08PM (#3409871)
You can switch to a larger subset in the settings but it is a still somewhat mistitled
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by obsessive1 on Friday December 30, 2011 @06:48PM (#3409585)
Nice job, this looks really useful - would certainly help for the times when I'm stuck with no internet access and need to look something up.

One minor niggle - when I changed the file I wanted to use in settings, there was no confirmation or notification to let me know it was downloading the new file. I ended up stopping the download, erasing the data and starting again, to be sure. It might be worth adding in a confirmation to let users know it was changed OK, and is being re-downloaded.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by darylteo on Friday December 30, 2011 @07:38PM (#3409698)
Can we use this technology for APIs for all various languages/frameworks?

I could definitely use a bit of a productivity boost (by turning off web access)

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by icebraining on Saturday December 31, 2011 @01:35AM (#3410351)
You can just use a website mirroring tool like wget, they've been around for ages. I've done just that with plenty of reference websites.

Don't forget to set an acceptable delay to ensure you don't overload the servers, though. Mine usually run all night.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by devs1010 on Saturday December 31, 2011 @03:50AM (#3410506)
Selenium's webdriver is great for this, they have different implementations so you can use it like wget (but more sophisticated) where it doesn't run an actual browser or you can have it run an implementation where it actually runs a browser, like Chrome or Firefox (good for debugging)
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by kanzure on Friday December 30, 2011 @07:18PM (#3409647)
Also, there was a Wikipedia/git project a while back (offline editing). All of the revision history was dumped into git.

http://scytale.name/blog/2009/11/announcing-levitation

http://www.readwriteweb.com/hack/2011/08/gitjs-a-git-impleme...

Why does mediawiki have its own version control system, anyway?

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by lsb on Friday December 30, 2011 @07:29PM (#3409679)
Because Wikipedia started in January 2001, well before even Subversion was around.

Levitation looks really cool, I wonder if using gitwiki will be easier and more sustainable than mediawiki.

And hey, Dan Lucraft who wrote git.js is still at Songkick, YCS07!

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by jmilloy on Friday December 30, 2011 @07:59PM (#3409738)
For the record, (Wikipedia says) the initial release of subversion was Oct 20, 2000. It's still understandable that Wikipedia rolled it's own.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by lsb on Friday December 30, 2011 @08:15PM (#3409771)
Yup, but it became stable enough to host itself Aug 2001, whereas I think it was January or February 2001 that the few articles started trickling in.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by TorKlingberg on Saturday December 31, 2011 @09:21AM (#3410899)
Wikipedia does not want to have branching, to force people to work together, rather than go off working on various rewrites. Each article is version controlled separately. The system does not handle tracking across merges and splits of articles, but many VCS have the same problem.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by bajsejohannes on Saturday December 31, 2011 @06:07AM (#3410678)
This is cool, but the one thing I miss from all wikipedia dumps so far is images. It's essential for a lot of articles. Last time I checked, images were excluded from dumps because of license issues. "Fair use" in particular. How about a dump of just the images with fitting licenses? Does anyone here know why this is not available?
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by DanBC on Saturday December 31, 2011 @07:22AM (#3410759)
People don't understand licences. There are many images with incorrect licences. (There are bots that trawl the images to ask people to correct the licences; there have been megabyte long flamewars about the operators of those bots and how unpopular image tagging is.)

There are just too many infringing images, even those supposedly with the correct licence, for Wiki* to distribute and stay safe.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by blinkingled on Friday December 30, 2011 @10:09PM (#3409988)
Random article results in 404 once in may be 4 times. Here is a suggestion for an improvement - a link for making 404 pages available offline. So if I go looking for a specific page that isn't offline I can make it available and read it later.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by kal00ma on Friday December 30, 2011 @11:22PM (#3410148)
An offline wikitravel would be incredibly useful for travelers. I haven't found this yet so I built an offline wikitravel for android: https://market.android.com/details?id=com.heliod.eutravelgui...
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by Wicher on Saturday December 31, 2011 @03:47AM (#3410501)
I use the Wikireader (from OpenMoko) when traveling: http://en.wikipedia.org/wiki/Wikireader I find it very useful, especially on the longer wall-socketless cycling trips.

You can stick both wikipedia and wiktionary on it. Quite possibly also Wikitravel, if they provide dumps.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by timdoug on Monday January 02, 2012 @07:58PM (#3418135)
Wikitravel is available -- wget http://wrmlbeta.s3.amazonaws.com and you'll see all the dumps they have available, e.g.:

http://wrmlbeta.s3.amazonaws.com/entrav-20111105.7z.001

In the age of nearly unlimited connectivity, I still find my Wikireader an invaluable device when traveling.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by pax on Saturday December 31, 2011 @11:45AM (#3411205)
for Android there's also iTravelFree (https://market.android.com/details?id=com.rezendi.itravel).

But you're right, waiting forward for the offline HTML5 Wikitravel app. Now with antimatter15's script it's only a matter of time and goodwill :)

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by vasco on Friday December 30, 2011 @09:07PM (#3409868)
Unfortunately I can't see any formulas correctly and the tables are quirky. Example: http://offline-wiki.googlecode.com/git/app.html?Permeability...
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @09:11PM (#3409882)
I thought of using jsmath or mathjax but they're too big.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by khuey on Friday December 30, 2011 @07:55PM (#3409728)
It says it was tested in Firefox 10, which is a little surprising since it doesn't work at all in Firefox 10. The IndexedDB spec changed and Firefox changed to align with the spec between 9 and 10, but the page uses the old API.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @08:23PM (#3409793)
I tested it on an infrequently updated installation of firefox nightly, and the about page said Firefox 10. But I didn't know the API changed, I'll look into it. But how so did it change?
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by khuey on Friday December 30, 2011 @08:35PM (#3409813)
Instead of doing

var request = mozIndexedDB.open("databasename"); request.onsuccess = function(event) { request = event.target.result.setVersion(N); request.onsuccess = function(event) { // set up your database } }

it looks like

var request = mozIndexedDB.open("databasename", N); request.onupgradeneeded = function(event) { // set up your database } request.onsuccess = function(event) { // do stuff with your database }

Feel free to email me at <my hacker news username>@mozilla.com if you need a more detailed explanation.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by naner on Friday December 30, 2011 @07:59PM (#3409737)
Does this app grab the files from Wikipedia directly? It doesn't seem very nice to create an app that pulls down gigabytes of data from a web service you do not own nor have permission from.

EDIT: It appears my concern was unwarranted.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by mmahemoff on Friday December 30, 2011 @10:02PM (#3409977)
WebRTC means peer-to-peer is probably coming to Chrome and Firefox soon, which will allow an app like this to transfer Wikipedia in all its 7.3GB (compressed) glory without harm to anyone's servers.

http://www.webrtc.org/faq#TOC-What-other-components-are-incl...

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by seanp2k2 on Friday December 30, 2011 @10:35PM (#3410051)
I'd be worried about security and data authenticity with tech like that.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @11:08PM (#3410124)
You could just compute data checksums of the stuff you get from peers, a la BitTorrent.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by blantonl on Friday December 30, 2011 @09:05PM (#3409866)
can someone explain the reason why this concern is unwarranted?
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by teraflop on Friday December 30, 2011 @09:10PM (#3409880)
The files are hosted by Google Code: http://code.google.com/p/offline-wiki/downloads/list
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by DanBC on Friday December 30, 2011 @09:14PM (#3409889)
Wikipedia make dumps of their data available for exactly this type of use.

Those dumps are taken and stored in other places.

There's some weird GPL stuff that people need to be wary of, I guess.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @08:06PM (#3409749)
It doesn't
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by naner on Friday December 30, 2011 @08:23PM (#3409794)
Very good then, nice little app.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by samstave on Saturday December 31, 2011 @05:46PM (#3412102)
Sorry for being obtuse, but I DLd the 1GB repository - where is it stored and how do I access it?

I see I can go to the index, from this page - is this index served up from the 1GB DL I just did?

How can I transfer this to [device]?

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by huetsch on Saturday December 31, 2011 @06:32AM (#3410705)
Thanks so much for this. This will be incredibly useful for me (behind the GFW, which gets moody about Wikipedia pretty often). Could this easily periodically update itself to grab fresh versions of articles? I think that would be a great feature, especially if you could do it without having to pull down the whole database each time you wanted to update, instead just updating on an article-by-article basis.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by js4all on Saturday December 31, 2011 @05:14AM (#3410617)
Absolutely amazing. This technology can be used for many other offline databases. He provides the tools for indexing, compressing and everything needed for the reader. Make sure to read his corresponding blog post: http://antimatter15.com/wp/2011/12/offline-wiki-redux/
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by Kakitus on Saturday December 31, 2011 @05:34AM (#3410641)
Amazing project, just what I was searching for. A few recommendations:

Could you expand the available download options to include an option to download all of wikipedia, not just a subset of the most popular articles?

Right now, mathematic and other kinds of formulae aren't rendered correctly. Is there any way you could fix that?

An option to include pictures (maybe compressed or low-res versions) would be neat.

Thanks!

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by SquareWheel on Friday December 30, 2011 @08:58PM (#3409855)
I remember when you announced some months back, wasn't it a paid application? Great work either way.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by pax on Saturday December 31, 2011 @08:55AM (#3410869)
Can this also be synced, or does one need to delete/re-download the whole dump?
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by chrisatlee on Friday December 30, 2011 @08:22PM (#3409791)
doesn't work for me with Firefox 10 or 11a2. It would be awesome if it could be made to work there!
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by heifetz on Friday December 30, 2011 @07:19PM (#3409651)
doesn't seem to work on the ipad
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @07:23PM (#3409660)
It only sort of works on iOS 5, the downloads stop whenever a "Increase Storage" prompt pops up and you have to reload whenever that happens. But it does work with the small dump, albeit slowly.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by mmahemoff on Friday December 30, 2011 @07:29PM (#3409681)
Cool, I initially didn't think this much storage was possible on mobile yet. Are you saying you can get the whole thing down if you keep agreeing to the prompts?

It's a pity mobile browsers haven't got better support for this kind of thing yet.

Re:Download Entire Wikipedia for Offline Use With an HTML5 App by antimatter15 on Friday December 30, 2011 @08:22PM (#3409788)
No I think it stops issuing prompts after 50GB. Also, on iOS 5, it only supports WebSQL which dosn't store (AFAIK) objects like typed arrays, so I have to convert it to a string and back base64 encoded, which makes it use even more space.
Re:Download Entire Wikipedia for Offline Use With an HTML5 App by leeight on Saturday December 31, 2011 @05:07AM (#3410603)
very cool.