First Israeli Librarian Blogers Meeting: סַפְרַנוֹ-סְפֵירַה

סַפְרַנוֹ-סְפֵירַה: מפגש הספרנים הבלוגרים הראשון בישראל

.”מסע, מסה ומשא – תצפית על ארגונים, ניהול וידע“.

כך אני קורא בפוסט הזה בבלוג של יגאל חמיש.

למה המפגש? למה לא…

איני נמנה עם עם תלמידיו של יגאל חמיש. בעצם – אפילו לא פגשתי אותו מימי פנים אל פנים.

אבל כל השאר – דוקא מתאים לי: למדתי מידענות ספרנות (איך שהם קוראים לזה היום…), עסקתי בזה כמה וכמה שנים בעבר (בספריה אקדמית) – ובעצם גם היום (עבודה בחברה שמייצרת תוכנה לספריות), יש לי בלוג שעוסק במה שלמדתי ובמה שאני אוהב (ספרנות / מידע / מידענות ותוכנות קוד פתוח).

האם אבוא?

טוב… עדין איני יודע, בהלט שוקל זאת.

Search many PPM’s (ActivePerl packages) and printing multi line results into a file

I want to search many PPM’s (ActivePerl packages) and printing multi line results into a file.

This is Windows XP PC, using ActivePerl 5.10.0 Build 1004.

So I have the file “require_for_padre.txt” which contains all the Perl modules needed for Padre.

I took the names from:
http://svn.perlide.org/padre/trunk/Padre/Makefile.PL

and put each after the search query of ActiveState PPM, as follows:
(Note – this is for running from DOS):

ppm search App::Ack
ppm search Carp
ppm search Class::Adapter
...
ppm search Test::Exception
ppm search Test::NoWarnings
ppm search Test::NeedsDisplay

Now I wand to read all the above –  and put the output –  which is multi line per each search – into a text file.

Here’s the way:

=======================================

#!/usr/bin/perl -w
use strict;
use Cwd;
use File:: Path;

my $cur_dir = getcwd();
my $pkg_file = "require_for_padre.txt";
my $dest_file = "ppm_output_for_padre.txt";

my $line = "";
my $ppm_search_line = "";
my $total_lines = 0;
my $actual_lines = 0;

## my $cur_line = 0;

## Get the answer for the  ppm search:
  my $get_ppm_search_answer = "";

opendir(DIRHANDLE, "$cur_dir") or die "couldn't open $cur_dir: $!";

print "Openned  $cur_dirn";

  open (PKG_FILE, "$pkg_file") or die "couldn't open $pkg_file: $!";

  print "Openned  $pkg_filen";
  print "----------------------------------------------------------n";

  # create a blank file
  open (DST_FILE, ">$dest_file");
  close (DST_FILE);

  print "tttcreated $dest_filen";
  print "----------------------------------------------------------n";

  open (DST_FILE, ">$dest_file");

  while (<PKG_FILE>) {
       $total_lines = $total_lines +1 ;
       ##    $cur_line = 0;
       my $ppm_search_line = $_;
       #print "nnnn$line $total_lines :t $linen";

       print "$ppm_search_line";

       #system("$ppm_search_line");

       print for qx{$ppm_search_line};
       }

        close (DST_FILE);
  close (PKG_FILE);

closedir(DIRHANDLE);

print "$total_lines are: $total_lines n";

=======================================

That’s it

How to run?

Well… :

N:OrenMperl_ppm>ppms_padre001.pl   ppm_output_for_padre.txt

using ExtUtils: : Packlist to uninstall Padre 0.26

I tried to upgrade my Padre (the Perl IDE) on MS-Windows and broke it – so now I want to remove Padre.

There is a Perl module named: “ExtUtils : : Packlist” – used for manage .packlist files.

There is an example – used remove ALL installed modules.

I mada a slight change – to remove only a specified module – for example Padre.

(Don’t worry – I’m going to re-install it later).

Here is the code:

————————————————————

#!/usr/local/bin/perl -w

 use strict;
 use IO:: Dir;
 use ExtUtils:: Packlist;
 use ExtUtils:: Installed;

 sub emptydir($) {
  my ($dir) = @_;
  my $dh = IO:: Dir->new($dir) || return(0);
  my @count = $dh->read();
  $dh->close();
  return(@count == 2 ? 1 : 0);
 }

 # Find all the installed packages
 print("Finding all installed modules...n");
 my $installed = ExtUtils::Installed->new();

 foreach my $module (grep(/^Padre/, $installed->modules())) {
 my $version = $installed->version($module) || "???";
 print("Found module $module Version $versionn");
 print("Do you want to delete $module? [n] ");
 my $r = <STDIN>; chomp($r);
 if ($r && $r =~ /^y/i) {
 # Remove all the files
 foreach my $file (sort($installed->files($module))) {
  print("rm $filen");
  unlink($file);
 }
 my $pf = $installed->packlist($module)->packlist_file();
 print("rm $pfn");
 unlink($pf);
 foreach my $dir (sort($installed->directory_tree($module))) {
   if (emptydir($dir)) {
    print("rmdir $dirn");
    rmdir($dir);
    }
   }
  }
 }

————————————————————

Yes! At last – Padre on Ms-Windows with ActivePerl 5.10.0 Build 1004

I’ve just succeeded to install Padre 0.25 on the Ms-Windows PC I have at work.

It wasn’t easy at all…

This PC is Windows XP with ActivePerl 5.10.0 Build 1004.

All the times that I tried in the past – I had many problems, including complicated needs to do compilation.

Now I have on it Microsoft Visual C++ 6.0 – maybe it helped solving dependency on modules that need local compilation.

Other things that I have just made and helped:

  1. upgrading last version of Encode – using ppm ,
  2. upgrade of Wx – also by using ppm ,
  3. installing Alien-wxWidgets (the same way),
  4. And now – again with ppm:
ppm install  --force Alien-wxWidgets-dev

(I use the PPM from DOS “command line” :-/)

And now – here are a few pictures of my Padre 0.25:

Padre 0.25 main Window
Padre 0.25 main Window
Padre 0.25 - menu
Padre 0.25 - menu
Padre 0.25 - menu
Padre 0.25 - menu

padre_0250900

Please note the reversed English letters on the help:

Padre 0.25 - Help
Padre 0.25 - Help
Padre 0.25 - About
Padre 0.25 - About

OCLC – קצת רקע

פוסט זה הוא רקע על ה- OCLC, בכוונתי בהמשך לכתוב אודות שינוי המדיניות של ה- OCLC.

OCLC - לוגו
OCLC - לוגו

ה-OCLC, או “מרכז ספריית המחשב המקוונת” (Online Computer Library Center) , הוא “שירות ספריית מחשב וארגון מחקר ללא מטרות רווח המוקדש לעידוד הגישה לידע וצמצום עלויות המידע”  – כך לפי ויקיפדיה ולפי אתר הבית של OCLC.

הארגון נוסד בשנת 1967 כעמותה בשם Ohio College Library Center.

כיום ה-  OCLC  הוא מוסד ללא מטרות רווח ( מלכ”ר ) שהנמצא בסמיכות לאוניברסיטת אוהיו אך הוא לאחד הספקים הגדולים ביותר  לשירותי מידע לספריות בארה”ב ( וגם באירופה , אך באורינטציה אמריקאית ).

WorldCat
WorldCat

השירות המרכזי והידוע ביותר של ה- OCLC הוא ה- WorldCat – שהנו קטלוג  מקוון עולמי של ספרים ובסיס נתונים המשמש הן ספרנים והן את הציבור לצרכי קיטלוג וחיפוש.

בסיס הנתונים מכיל, נכון להיום, מעל 125 מיליון רשומות ביבליוגרפיות ומעל ל- 1354 מיליון פריטים (כלומר Holdings, או עותקים ספציפיים), והוא נחשב לבסיס הנתונים הביבליוגרפי הגדול בעולם, בו משתמשות 69,000 ספריות מכ-100 מדינות שונות ובלמעלה מ- 470 שפות ודיאלקטים שונים. (לפי אתר הבית של OCLC – WorldCat facts and statistics).

הארגון מנהל פרוייקטים נוספים – כמו למשל מערכת לשיתוף משאבי מידע בין ספריות בשם WebJunction (קישור ישיר) ועוד פרויקטים מתקדמים בתחומי הספריות והיעץ הוירטואלי.

webjunction
webjunction

הרעיון הבסיסי נראה יפה – שיתוף של משאבים, בגוף ללא מטרת לעצמו – אלא ריכוש זל מידע מן הגופים החברים, למענם ולמען “קהילת המידע” בעולם.
זה ממש תואם את הרעיון שבבסיס הקוד החופשי / פתוח ובא בעצם יותר מעשור לפני שריצ’רד סטלמן הגע את ה- GNU.

באחד הפוסטים הבאים אכתוב על “שינוי המדיניות של OCLC“.

בתוק קדימון – הנה קישור על אתר שמרכז קישורים עם מידע בנושא:
OCLC Policy Change

קישורים למידע נוסף:

הערך OCLC בויקיפדיה בעברית ;
OCLC – ויקיפדיה באנגלית ;
אתר הבית של OCLC;
האימפריה של תאגיד OCLC ודרכי פעולתה” – מתוך פורלוג צמתי מידע, אתר המידענים.

Padre 0.20 on Mandriva 2009.0

Just after my recent post (“My (shameless) expectations from Padre for the future“) – I’ve succeeded to get Padre 0.20 on my home PC using Mandriva 2009.0.

I posted my question at the Israel.pm mailing list [Israel.pm] Class::XSAccessor 0.13 module from CPAN on Mandriva – “make test” failure – and I got answer from Gabor Szabo and from Shlomi Fish that were helpful.

So here is a screen shot of Padre 0.20 on Mandriva 2009.0.

I am just reading a message at the Padre-dev mailing list about Padre 0.21 – but I’ll try it later.

padre_020_01_and_2

My (shameless) expectations from Padre for the future

Follow up to the post “Plans for the next month or two” of Gábor Szabó – here are My shameless expectations from Padre for the future.

This is a really great initiative to build a Perl IDE, which is Open-Source and written itself in Perl.
It looks that the development goes quite well, looking at the main Development site of Padre (padre.perlide.org), including the useful Wiki .

So… here are MY comments.

  1. Just for a first Note:
    I know that it might be a little rude because I didn’t actually contribute to the Padre code.
    I only tried to use it and even succeeded few times… 🙂
    But Gábor’s blog prefers that readers will comment on their own blog. So I write here what I would want from Padre.
    This is only some kind of a “wish list”.
    I hope I’ll be able to contribute with my minor experience.
  2. MS-Windows:
    Padre use Strawberry Perl. What about ActiveState Perl? ActivePerl 5.10.0 Build 1004
    I succeeded to install Padre 0.10 on MS-Windows XP PC with ActiveState Perl, by using “force”.
    I have now ActivePerl 5.10.0 Build 1004.

    But I can not install recent versions (0.19, 0.20) that seem to have many cool features.

    My recent post to Israel.pm Mailing List:
    [Israel.pm] Padre 19, MS-Windows, Active Perl (Compilation failed)
    and to the [Padre-dev] mailing list:
    [Padre-dev] [Israel.pm] Padre 19, MS-Windows, Active Perl (Compilation failed)

    The instructions written on the “Download” page of Padre for Windows with Active Perl are not working anymore for recent releases of Padre.
    Funny – I am mentionet there. Yeahhh…

  3. Linux Distributions and other Open-Source Operating Systems:
    From the Screen shots page I see pictures of Padre on Ubuntu and on OpenSUSE.
    I think I have seen somewhere that Gábor is working on Ubuntu, but I’m not sure…

    What about other Linux Distributions?
    Currently my home PC has Mandriva (this one was the quickest to detect my SATA hard-disks).
    Mandriva 2009.0 - This is what I use

    I have tried a long time ago – I promise to try installing again and report.

    What about other Open-Source Operating Systems?
    FreeBSD / NetBSD / OpenBSD ?
    OpenSolaris ?

With all my above complaints – I still think that a great work is being done.
I guess that as Padre will be published more – then a wider verity of Operating Systems and environments will be used.

Blogged with the Flock Browser

הישג צרכני: צבי דביר סירב ל-“חלונות” – וקיבל החזר

אני מצטרף לברכות שכתבו דורון אופק (“כל הכבוד לצבי דביר !“) ואורי עידן (“תקדים משפטי חשוב לקהילת התוכנה החופשית“).קראו נא את  הדיווח: Ynet מחשבים – הישג צרכני: סירב ל-Windows – וקיבל החזר

רבים מהצרכנים שכחו שמחשב הוא מחשב – אבל מערכת הפעלה לא חייבת להיות של מיקרוסופט.

צבי דביר מחיפה, קנה מחשב נייד מתוצרת Dell, אבל לא היה מעוניין במערכת ההפעלה Windows Vista שהותקנה בו מראש.

לכן הוא טען שאינו חייב לשלם את עלות מערכת ההפעלה, אלא רק על המחשב.

באמת – למה עליו לשלם רשיון למשהו שאינו מעוניין בו, ולא חייב אותו.

במסגרת הסכם פשרה תבוטל התביעה שהגיש צבי דביר וחברת Dell ישראל תתן לו המחאה על סך 550 ש”ח.

רובן ככולן של יצרניות המחשבים הניידים מתקינות במחשבים את Windows מראש,
ומחייבות אותנו – הצרכנים – על התשלום למיקרוסופט עבור רישיון השימוש.

אני מקווה שמשווקים ויצרנים רבים ישמעו על כך ולא יחשבו שכל הציבור מטומטם “…ולכן הציבור משלם”.
==========
עדכון (4 – December ) – כפי שמסר צבי דביר: פרסום ב- “סלאשדוט“.

==========