Stian Haklev wrote: > Untuk teman yg baca pesanku yg terakhir tentang zip-doc dan wikipedia > offline, dan berminat main2 dengan kode: lihatlah git repositorinya... > Kemarin malam aku refactor semua kode, sekarang jauh lebih jelas dan > berguna. File formatnya juga sedikit ganti, tapi sekarang aku pikir dia > sudah final. > > dari irc konversasi dengan teman: > and I'm really proud of my Wikipedia offline code... it started out as a > mess of spaghetti code, and it has slowly improved and been factored... last > night I finally rewrote the whole archive class, so now you have a > free-standing archive class, with a Writer, a Reader and a compressor. It > will accept arbitrary blobs with arbitrary names (and hard-links ), you can > also set arbitrary metadata (which is the only part that is updateable > afterwards), you flush, and it's all written to the index... You can specify > if you want gzip or bzip2 encoding, and the size of the index - all this is > autodetected by the Reader object, which can get .get blobs with arbitrary > names (if they exist ) and get_meta ... > 10:25 > So it has nothing to do with Wikipedia or even websites... it could be used > to store anything if you wanted it to... and all the actual dump script does > is run through the files, use another freestanding function to compress and > strip the html, add it as a blob - or as a hardlink if it's a redirect and > flush... > > :) > > kodenya diambil dari repo - dari websitenya (http://repo.or.cz/w/zip-doc.git) > juga ada opsi ambil "snapshot" versi terakhir, kalau tidak mau pake git > langsung. aku akan upload file id.zdump dengan format yg baru sebentar lagi. > > stian
Yo, Stian ;-) I'm sharing this copy paste just for acceleration of people here who don't get used to use git (yet) :-D sayang:~/Desktop/git arie$ git clone http://repo.or.cz/r/zip-doc.git zip-doc Initialized empty Git repository in /Users/arie/Desktop/git/zip-doc/.git/ Getting alternates list for http://repo.or.cz/r/zip-doc.git/ Getting pack list for http://repo.or.cz/r/zip-doc.git/ Getting index for pack abd3ce4c860afd1292ed2c862ebe4fe576c68d33 Getting pack abd3ce4c860afd1292ed2c862ebe4fe576c68d33 which contains f087582e7f9535fdab6f4cd4229ba4af0bea4c5e walk f087582e7f9535fdab6f4cd4229ba4af0bea4c5e walk 66938a64f153362263065b0a3e9eab163eda8c2e walk 8b31a8d137d7f2abb789dddcc1e3bafcfaa07e1a walk 8ad7297a9a9adcaa68938a45433f8dd73c523d5e walk 0c660d9f2ebfb3cf49e1a0adcb1d752508da3180 walk 4df870d27c1e69727678194a91eee7f3562b7f29 walk 02e783b33cd10e62e9a193ca04637639e70dd387 walk 6815e1d901bd00b8ed5aa7cbf59b7cab97c1ca41 walk 354e8ec226d6daa536287d39a6b97c04e961e85b walk 6251ee6f6ac503c8223fea943d840190df7b2e4f walk ed64dcce5b0f9b250aa8fdbffe3045739096d4b0 walk 33f93d0102ada84f87b0225cf0a08a55ed1696dc walk c098e01aac43d43ecd69f0ed809e42b97497c868 walk 1974465e6bc51b220a43fa8d12578d8f22d61f0e walk 96971283964b2295afd9233e84340d021159e300 walk c20dc1e0675afd2f8f4b999e373b23b737d898ee walk 6cb4f667e7418eeb2f0e352c0c2bc1b8493146c0 walk a9ac0a6df4d4a3b6b107e3946d343739988b6e84 walk 467500ccdba92c7d9412de92287984dd2bcfef46 walk f71198da940e6c4a97ef39f1834ecdabf4f4c1ab walk 4a249d1f46b82edb41865aa84a14cd514eec831d walk 58db808c45cca7ebc725878c3b165b0cfbbd52c1 walk 7637d59fdc4425b768e89449cbb62ef26988a264 walk bcfa017b39a8963ec30613aa488da139e8f5657a walk 67888dfb1902f7a22a88685b067bcd9b3a379fd1 walk eefe374ff88ca2dc7d05c77643e1adc045108166 walk 010d175242ca09c1d43695de21e5dd00ed6131b3 walk 3aeb7315ce3c45a10054277925612ec6039b9237 walk e90b8e3d6a75336fd0828b658177f2e2570aef15 walk 9b62046078ad94e90767dcf662ebb764f1f2d21e walk 5f295837c5b6b1320291658bcb30ce02cdad639a walk 1ccba2e8aba83e43579bda6bf62e4ca9fbd36857 walk 3eaf5e4e04daf4edd80aa4b0262927a1687f0a22 walk 09fe1219a0eb7209514ecebd2d65aa8a9a44efba walk 5d026b4a408588f242892708661bd56f97266467 walk 8191bd04f84637753d063f9be5f33bd8b8a141bc walk 466a0d530fccddd9be5a4b375543a339816bfab6 walk 4708f21dd1eaf19de2574b4fe837d0ea3bde59dc walk 6d0b45f7da0ce90f4db2f16f3ebd0269021eef77 walk 5e150253151633e3e60105e81a0e8a4a859e53dd walk 9298d1ab87a1e1294c0617c249a8e3e496f6c474 walk c8e2f37f6c76576c18d2e55d70295a777ce04153 walk e063e46e3c70338407d9fd545b715f551f03550a walk 34f17dc496bc35ad8bb035ede5a56105c7acfa09 walk d1d43ea1c3aebde9dd46041ec67a351e3a65e3e3 walk a3c6e3edf0e237b2bd079e398df791139f29e4b7 walk 50cd91f7537986ff444a093f9aff4ae9569b4732 sayang:~/Desktop/git arie$ ls zip-doc/ sayang:~/Desktop/git arie$ cd zip-doc sayang:~/Desktop/git/zip-doc arie$ ls NOTES htmlshrinker-data.rb* zarchive.rb* zipweb.rb* display-page.rb* htmlshrinker.rb* zdump-7z.rb* zutil.rb eee_darwin* mongrel-web-gui.rb* zdump.rb* gui.rb mongrel-web.rb* zipdoc.rb sayang:~/Desktop/git/zip-doc arie$ e . -- Arie A.K.A ariekeren / YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby Ojo Dumeh, Iso rumongso ning ojo rumongso iso. Ing Ngarso Sing Tulodo, Ing Madyo Mangun Karso, Tut Wuri Handayani.

