Thursday, March 31, 2011
Tuesday, March 22, 2011
Vingrinājumi sejai darba laikā
Likumdošana paredz arī starplaiku darbam pie datora. Tas jāizmanto lietderīgi - skat. paraugu.
Saturday, March 19, 2011
4 easy steps to start Perl CGI programming on Windows in 10 seconds or less
1. Download Active Perl and install it.
2. Download Apache for Windows and install it.
(now start counting those 10 seconds)
3. Go to
C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin
and create test.cgi file with the following contents
(make sure to hit "enter" a couple of times after END_HERE, otherwise it won't work)
4. Open
http://localhost/cgi-bin/test.cgi
in the browser. Enjoy.
Thanks to PerlMonks.org for the article.
P.S. PerlTutorial.org gives a bit more consequent example:
2. Download Apache for Windows and install it.
03/19/2011 01:11 PM 25,704,148 ActivePerl-5.12.3.1204-MSWin32-x86-294330.msi
03/19/2011 01:20 PM 5,400,576 httpd-2.2.17-win32-x86-no_ssl.msi
2 File(s) 31,104,724 bytes
(now start counting those 10 seconds)
3. Go to
C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin
and create test.cgi file with the following contents
#!C:\perl\bin\perl.exe -wT
use strict;
use CGI;
my $query = new CGI;
print $query->header( "text/html" );
print <<END_HERE;
<html>
<head>
<title>My First CGI Script</title>
</head>
<body bgcolor="#FFFFCC">
<h1>This is a pretty lame Web page</h1>
<p>Who is this Ovid guy, anyway?</p>
</body>
</html>
END_HERE
(make sure to hit "enter" a couple of times after END_HERE, otherwise it won't work)
4. Open
http://localhost/cgi-bin/test.cgi
in the browser. Enjoy.
Thanks to PerlMonks.org for the article.
P.S. PerlTutorial.org gives a bit more consequent example:
#!C:\perl\bin\perl.exe -wT
# It's always a good idea to use the strict pragma while developing
# Perl code, it makes Perl warn about dangerous code
use strict;
# We're also going to include the CGI module, so that we can take
# advantage of other programmer's efforts (One of Larry Wall's basic
# tennants is that programmers are fundamentally lazy -- he's probably
# right, but I can't be bothered to prove it right now)
use CGI;
# instantiate a new CGI object
my $cgi = new CGI;
# perform a single print statement, with liberal use of the perl
# string concatenator "." and some CGI methods
$cgi->header .
$cgi->start_html('Hello World!') .
$cgi->h1('Hello World!') .
$cgi->end_html;
# Tell the web server everything is fine
exit (0);
Tuesday, March 15, 2011
Какого пола ваш компьютер?
1. Откройте Notepad.
2. Скопируйте в него следующий текст:
CreateObject("SAPI.SpVoice").Speak"I love you"
3. Сохраните файл как xy.vbs
4. Запустите его. Если вы услышите мужской голос, поздравляю, у вас мальчик, если женский – девочка. :)
2. Скопируйте в него следующий текст:
3. Сохраните файл как xy.vbs
4. Запустите его. Если вы услышите мужской голос, поздравляю, у вас мальчик, если женский – девочка. :)
Sunday, March 6, 2011
[WARN] [rms ] javacall_file_open: _wopen failed for: ... _delete_notify.dat
If, while trying to launch your midlet in an emulator, you see a message like
[WARN] [rms ] javacall_file_open: _wopen failed for: C:\Documents and Settings\Administrador\javame-sdk\3.0\work\0\appdb\_delete_notify.dat
, know that you are not alone.
People keep desperately asking the same question without any luck.
At least sometimes it helps to just brutally create the missing "_delete_notify.dat", and the emulator starts to execute the midlet as if nothing happenned.
[WARN] [rms ] javacall_file_open: _wopen failed for: C:\Documents and Settings\Administrador\javame-sdk\3.0\work\0\appdb\_delete_notify.dat
, know that you are not alone.
People keep desperately asking the same question without any luck.
At least sometimes it helps to just brutally create the missing "_delete_notify.dat", and the emulator starts to execute the midlet as if nothing happenned.
Thursday, March 3, 2011
Convert PDF to Word for Free
PDF Online - doesn't require e-mail, converts to ZIPped RTF. Successfully processed document of more than 200 pages.
PDF to Word - requires an e-mail
PDF to Word - requires an e-mail