cygwin

One Manga Downloader Now Supports Series Hosted on 1000manga.com

As you may have noticed recently, onemanga.com has removed some of their series from the site e.g. Vagabond and Zetman due to license issue. They did it by removing all links from the manga page.

However, today I just found that instead of just removing the links from the manga page, they now provides a link to their sister site (say 1000manga.com) which is still hosting the manga I mentioned above.

Luckily, the code on 1000manga.com is almost the same as onemanga.com so I tweaked the script to automatically download the file from 1000manga.com if it has to do so.

So here's the updated One Manga Downloader. Enjoy reading your favorite mangas!

P.S. Many thanks to the One Manga team for providing and maintaining all those high quality scans :)

(Yet Another) One Manga Downloader Update

Quick summary:

  • Now archive extension is .cbz as it should be (there were many ppl asking about this bad preference of mine :P)
  • Add backward compatibility to check the already downloaded chapters which has old extension (.cbr)
  • Fix an issue with sed command on Mac OS X.
  • Now index.html will be removed along with other temporary files.
  • Misc. improvements in code and error/status messages.

I guess you already know where to get it.

Enjoy reading One Manga!

P.S. If you are looking for a GUI One Manga downloader then MangaDownloader [MD] may be the answer for you.

Using Drush on Windows with Cygwin

What is Drush?

หนึ่งในเครื่องมือที่ขาดไม่ได้เวลาทำงานกับ Drupal ก็คือ Drush ที่ทำให้ทำงานหลายๆ อย่างได้ด้วยการใช้ command line หลักๆ ก็เช่น ดาวน์โหลดและติดตั้งโมดูล/ธีม, เคลียร์ cache, รัน update.php, รัน cron, ดูค่าในตาราง variables ฯลฯ

Why Drush?

ความสามารถของ Drush ที่ใช้บ่อยที่สุดก็น่าจะเป็นตอนติดตั้งโมดูล/ธีม นี่แหละ รันคำสั่งบรรทัดเดียว มันจะดาวน์โหลดแพ็กเกจและแตกไฟล์ให้เสร็จเรียบร้อย สมมติเราต้องการติดตั้งโมดูลซัก 5-6 ตัว ขั้นตอนปกติที่จะต้องทำก็คือ

  • ไปที่ drupal.org
  • ค้นหาโมดูลที่ต้องการ (ถ้าจะให้เร็วกว่านั้น แนะนำให้ค้นหาโมดูลด้วย Firefox quick search)
  • ดาวน์โหลดแพ็กเกจติดตั้งของแต่ละโมดูล
  • แตกแพ็กเกจไปไว้ในไดเร็กทอรี sites/all/modules
  • ไปที่ http://example.com/admin/build/modules
  • คลิกเลือกโมดูลที่ต้องการเปิดใช้งาน
  • กดปุ่ม Save configuration

ในขณะที่ Drush สามารถทำได้โดยพิมพ์คำสั่งแค่ 3 บรรทัด

$ cd /cygdrive/d/www/my_drupal_site
$ drush dl admin admin_menu devel markdown cck views
$ drush en admin admin_menu devel markdown cck views

โฆษณาเสร็จแล้ว มาเข้าเรื่องตามหัวข้อบล็อกกันดีกว่า

Read the rest of this entry »

Extending Cygwin's Capability with Cygwin Ports

ด้วยความที่ทำยังไงก็ตัดใจจากวินโดวส์ไม่ได้ แต่ในขณะเดียวกันก็อยากใช้ความสามารถเชลล์ของลินุกซ์ใจจะขาด เลยทำให้ต้องมาพบกันครึ่งทางด้วย Cygwin ซึ่งก็ใช้งานได้ดีในระดับหนึ่ง (ใช้โหลด manga ได้ก็คุ้มแล้ว :P)

อย่างไรก็ตาม ซอฟต์แวร์ที่มากับ Cygwin จะค่อนข้างเก่า หรือบางตัวก็ไม่มี ทั้งๆ ที่น่าจะมี เช่น PHP หรือ Python 3 เป็นต้น (จริงๆ โหลดมาคอมไพล์เองได้ แต่อาจต้องเหนื่อยกับการหา dependencies มาลงให้ครบ)

แต่โลกโอเพ่นซอร์สยังไม่สิ้นคนดี เมื่อมีคนเล็งเห็นปัญหานี้ แล้วสร้างโครงการ Cygwin Ports ขึ้นมา วัตถุประสงค์ก็แน่นอนว่าเป็นการพอร์ตซอฟต์แวร์มาลงบน Cygwin โดยทำเป็น package ให้เลือกติดตั้งได้เหมือนกับการลง package ของ Cygwin ทั่วๆ ไป

Read the rest of this entry »

One Manga Downloader v2.0

Updated

Change log:

  • แก้บั๊กให้ตรวจสอบว่าชื่อไฟล์ต้องเป็น directory เวลาใส่ option -d *
  • แก้บั๊กฟังก์ชันเติมเลขศูนย์หน้า chapter by @crapcode
  • แก้ message บางอัน
  • ฯลฯ

เท่าที่ลองดูคิดว่าน่าจะโอเคแล้ว ออกเป็น stable version เลยละกัน เช่นเคย ถ้าพบบั๊กรบกวนช่วยแจ้งด้วยครับ

สรุปวิธีใช้สำหรับเวอร์ชัน 2.0 ตามนี้ เวลาใส่ option สามารถใส่รวมกันได้หลายๆ อัน เช่น -d -o หรือ -do ก็ให้ผลเหมือนกัน

Read the rest of this entry »