Wednesday, April 29, 2009

Bill, bill & bill.....

last month... i only manage to pay half of my TNB & Astro bill. argh!!!!... 
this month.. thanxs god i can pay all bill & unpaid balance. just left a cen in my bank acc. hopefully enuff for this moth... amin...
*my target, by 30... i'll not suffer from this annoying thing again... 

Tuesday, April 28, 2009

Extract PDF information

the fast/best solution, for now. to get information from PDF file. require xpdf/pdfinfo. 
#!/usr/bin/perl
my $filename = "D:/project/mediu/pdf/html_docs.pdf";
$pdfinfo = "C:/Programs/pdf/xpdf/pdfinfo.exe"; #Extact info from pdf file 
$result = `$pdfinfo $filename`;
my @results = split(/\n/,$result);
foreach(@results){
my @varval = split(/\:/,$_);
$varval[1] =~ s/^\s+//;
print "$varval[0] = $varval[1]\n";
}
exit;

Monday, April 27, 2009

Perl array exec() and system() function

exec(PROGRAM);
$result = system(PROGRAM);
Both Perl's exec() function and system() function execute a system shell command. The big difference is that system() creates a fork process and waits to see if the command succeeds or fails - returning a value. exec() does not return anything, it simply executes the command. Neither of these commands should be used to capture the output of a system call. If your goal is to capture output, you should use the backtick operator:
$result = `PROGRAM`;

Thursday, April 23, 2009

Execute Javascript from AJAX request

Hi, just get this simple n usefully javascript function that allow javascript to be execute under innerHTML from AJAX request. original source: http://www.coderanch.com/t/117983/HTML-JavaScript/Execute-JavaScript-function-present-HTML code: function setAndExecute(divId, innerHTML) { var div = document.getElementById(divId); div.innerHTML = innerHTML; var x = div.getElementsByTagName("script"); for(var i=0;i { eval(x[i].text); } }

Friday, April 17, 2009

Document Viewer

planning to resume my web base document viewer project. basically it's a PDF viewer with indexing features that load specific page by request. so it'll reduce loading time. current problem: 1. processing time. it'll take more than a minute to process/split a 8Mb pdf file. since it's web base... it will give a lot of headache. 2. uploading big file. 3. link between page... pdf will prompt 'invalid node' if link to the requested page fail.

Wednesday, April 15, 2009

New Domain name.

hi all.. I've already pointing http://hairulmoktar.blogspot.com to http://blog.mbek.net actually, pointing DNS for http://blog.mbek.net to blogspot server. hehhee... like this better...

Hairul the 3rd

hahahahaha... the 3rd coming to near you soon... around November or December... congrat to me... hehehehee

Sunday, April 5, 2009

KOHA services

need to make thing clear.
i'm expert on KOHA

  1. installation
  2. configuration
  3. troubleshooting
  4. customization & integration

training & manual?
i only can provide training for admin on system part only. and for manual, i just can give from what is available at http://www.kohadocs.org

i'm not a librarian. i'm not expert on all part of library. i just can play with KOHA. so, don't ask me about pipe... i really don't know that

Friday, April 3, 2009

KOHA Demo Server

As i receive a request from potential client.. OPAC: http://opac.haila.dynalias.net/ Administration: http://intranet.haila.dynalias.net/ username: root password: password INFO: 1. Dyndns 2. Pentium 4 with 512Mb 3. FreeBSD 4. KOHA V3.0 **at 1st, look like a potential client, but screw up by some one who think she know everything about library.. *&^%$#