Monday, May 19, 2008

Ebook Collector (File Collector)

ကြ်န္ေတာ္ Ebook ေတြစုလာခဲ့တာ ေလးႏွစ္ေလာက္ရွိပါၿပီ။ ေတြ႕သမွ်စာအုပ္တိုင္းကို မစုေပမယ့္၊ ကိုယ္ၾကိဳက္တဲ့စာအုပ္တိုင္းကိုေတာ့ ေနာင္အားတဲ့အခါမွ မလိုတာေတြရွင္းမယ္ေတြးၿပီး ကြ်န္ေတာ့္ရဲ႕ စုေဆာင္းမွဳထဲကို ပစ္ထည့္ထားေလ့ရွိပါတယ္။

အခ်ိန္ၾကာလာတာနဲ႕အမွ် ကြ်န္ေတာ့္မွာ Ebook အခု ၅၀၀ ရာေက်ာ္ေလာက္ ကို သယ္ရလြယ္တဲ့ Hard Disk ထဲမွာရွိတဲ့ Folder တစ္ခုတည္း ေအာက္မွာပဲသိမ္းၿပီး၊ ရွာခ်င္ရင္ Windows search နဲ႕ပဲရွာေနခဲ့တာပါ။ အမွန္ေတာ့ ဒီနည္းက ကြ်န္ေတာ့္အတြက္ ေတာ္ေတာ္ အဆင္ေၿပပါတယ္။
ကြ်န္ေတာ့္မိတ္ေဆြ တစ္ခ်ိဳ႕ကေတာ့ Ebooks ေတြကို နာမည္အလိုက္၊ ေခါင္းစဥ္အလိုက္ Folder ေလးေတြ ခြဲသိမ္းၾကတယ္လို႕သိရပါတယ္။

ဒီလိုဆိုေတာ့ ကြ်န္ေတာ့္မွာ သူတို႕ကို အားက်မိပါတယ္။ ဒါေပမယ့္ သူတို႕နည္းက အစကတည္းက (အေရအတြက္ နည္းနည္းပဲ ရွိကတည္းက) လုပ္ရင္ေတာ့ လြယ္သေပါ့။ ကြ်န္ေတာ့မွာက Ebook ၅၀၀ ေလာက္ရွိေနၿပီးႏွင့္ေတာ့ Folder ခြဲၿပီး တစ္အုပ္ၿခင္း ေရြးဖို႕ကို ပ်င္းကလည္းပ်င္း၊ အခ်ိန္လည္း မေပးခ်င္ပါဘူး။ မိတ္ေဆြတို႕ သိၾကတဲ့အတိုင္း၊ Ebook ေတြရလာၿပီဆိုရင္ နာမည္ေတြကို ကေဘာက္တိကေဘာက္ခ်ာ ေပးခ်င္တာေတြ ေပးထားတာေလ၊ တစ္ခ်ိဳ႕မွာေတာ့ ေခါင္းစဥ္နဲ႕ဆိုင္တဲ့ နာမည္မ်ိဳးေပးထားတာေတြ႕ရပါရဲ႕။


ကြ်န္ေတာ့္မွာ အဲဒီ ၿပသနာကို ရွင္းဖို႕ၾကံစဥ္လာခဲ့တာ ေက်ာင္းကလည္းမအားေတာ့ လက္မေရာက္ဘူးၿဖစ္ေနခဲ့တာ၊ ခုမွပဲ အခ်ိန္ေကာင္းေကာင္းရေတာ့တယ္။ အခ်ိန္ေတာ္ေတာ္ေလးေပးၿပီး၊ ဒီ Program ရွင္းရွင္းေလး (ၿမန္လည္းၿမန္ပါတယ္၊ ကြ်န္ေတာ့္အထင္ေပ့ါ) ကို RUBY နဲ႕ေရးထားပါတယ္။ ဒါေလးက ကြ်န္ေတာ္လိုခ်င္ေနတဲ့ ရွိၿပီးသား ဖိုင္ ေတြကို ေခါင္းစဥ္ခြဲတဲ့ အလုပ္ကို ကြ်န္ေတာ္လိုခ်င္တဲ့ နာမည္ေတြ၊ Folder နာမည္ေတြနဲ႕ ခြဲေပးပါတယ္။

ေကာင္းခ်က္က Ebook အခု ၅၀၀ ေလာက္ကို ၁၀ စကၠန္႕ ေလာက္အတြင္းမွာ ပဲ၊ ဆိုင္ရာဆိုင္ရာ Folder ေတြထဲကို ခြဲထည့္ေပးပါတယ္။ ဒါ့ၿပင္ ကြ်န္ေတာ္ရဲ႕ Download File ေတြကိုထည့္တဲ့ Folder အေပၚမွာ အလိုအေလ်ာက္ လုပ္ႏိုင္ေအာင္လုပ္ထားေတာ့ Ebook အသစ္ေတြရၿပီးတိုင္း Program ကို Run လုိက္ရင္ အသစ္ေတြကို ပါ၊ အမ်ိဳးအစားခြဲၿပီး ရွင္းေပးပါတယ္။

ကဲ...ဒါေလးက မိတ္ေဆြတို႕အဖို႕လည္း အသံုး၀င္မယ္ ထင္ပါတယ္။ ဒါေလးက Ebook ေတြအတြက္သာမဟုတ္ပါဘူး၊ ဘယ္ File အမ်ိဳးအစား ေပၚမွာ မဆိုအလုပ္ၿဖစ္ပါတယ္။ ဖိုင္ရဲ႕ Extension ကိုသာ ေဖာ္ၿပရန္လိုပါတယ္။ ဒါေလးကိုသံုးဖို႕ RUBY ကိုေတာ့ ကြန္ၿပဴတာမွာ သြင္းဖို႕လိုပါတယ္။ RUBY ကို http://www.ruby-lang.org မွာ ရယူႏုိင္ပါတယ္။ အဆင္ေၿပပါေစဗ်ာ။

ဆြဲခ်ရန္။ ။ http://www.mediafire.com/?1owkj3lwcfn

------------------------------------------------------------------------------------------------

I've been collecting ebooks for about 4 years. Although I don't collect all I encountered, most of the time I just dumped the file into my ebook collection folder, hoping that one day I'll sort them out and remove some, which I don't really need.

As the time goes on and I've collected more than 500 ebooks and put them into a folder called "Ebooks" in my portable hard drive in one flat layer and find the book I need by using Windows built-in search. Honestly, that's all right for me. But I found that some friends of mine categorize their ebooks in different folders of different categories and selectively place the files into categorized folder upon recieving the ebooks.


I envy them, but their plan only works for those who started categorizing ebooks in folder from the start or may be while there is a small number of eboosk in collection. Since I now have more than 500 ebooks (some of you may have more) I'm so lazy and don't wish you spend my time on repeating.. (click, choose, move) scenario. And as you know, the downloaded ebooks are named in many different formats, but they do contains specific keywords related to the book title.

I've been planning long for solving this out but couldn't reach my hands due to my busy school schedules. And now I have enough time to solve it out. I finally spent some time to write a simple (and relatively fast, that's what I think) program in RUBY, which helps me out my files into different categorized folders based on keywords and folder name I specified.

To my surprise...it cleaned up my mess of more than 500 ebooks in less than 10 seconds. Now I feel much better with my files and easily browse through my collection in specific categories. Besides, I automated the script to repeat the same process on my "Download" folder. So in future I just need to place newly recieved ebooks in "Download" folder and it will place them into my collection automatically (I just have to make sure the file name contains my defined keywords.)

I hope this would help you too, in case you are in same situation like me. The program works not just for ebooks, but all types of files. You just have to specifiy the extensions. To use this program, you'll have to install RUBY. You can download it from http://www.ruby-lang.org. If you are interested to use this tiny program of mine, download, configure and let it solve your problem.

DOWNLOAD: http://www.mediafire.com/?1owkj3lwcfn

2 comments:

puluque said...

ေဒါင္းလုပ္ဆြဲသြားပါၿပီ။ စမ္းသုံးၾကည္႔ပါမယ္။

MrDBA said...

လာလည္သြားတယ္ ဆီပံုးမေတြ႔လို႔ ဒီမွာဘဲ အားေပးသြားတယ္။


ကိုဒီဘီ