2005-06-28
And yet another Oddmuse module. This one provides an RSS syndication for those people who have Oddmuse . . . but can't or won't install the necessary Perl module XML::RSS. A sign of this missing module . . .
1K - last updated 2005-06-28 06:05 UTC by 1463
2006-04-27 Perl modules and CGI
Suppose you have a bunch of Perl scripts and modules. Those modules have differing versions and you don't . . . also run through CGI. The solution is to set the PERLLIB environment variable for the scripts that are . . . multiple directories with a colon. export PERLLIB="$HOME/lib/mymodules-rev316" This can be done . . . multiple directories with a colon. SetEnv PERLLIB "/home/bartvk/lib/mymodules-rev316" This variable . . . /home/test-rev316/public_html/cgi-bin> SetEnv PERLLIB "/home/test-rev316/lib/mymodules-rev316" Options . . .
2K - last updated 2006-04-27 08:39 UTC by 1463
2006-10-03 Mod perl and Slackware
''Note: these steps are obsolete. In the [[Comments_on_2006-10-03_Mod_perl_and_Slackware|comments]], . . . Slackware 10.2 doesn't include mod_perl. To install this package while staying as close . . . installation, we're going to compile mod_perl using the patched Apache that's particular to . . . we download Slackware's Apache source and mod_perl. Download all the Slackware files from your [http://ftp.bit.nl/mirror/slackware/slackware-10.2/source/n/apache/ . . . favorite mirror]. Also download [http://perl.apache.org/dist/mod_perl-1.0-current.tar.gz mod_perl] . . .
2K - last updated 2006-10-04 08:43 UTC by 1463
2006-10-04 Mod perl and Slackware part 2
The previous day, I thought I had Apache with mod_perl working on Slackware 10.2, but alas, funny segfaults . . . all over the place. This time, I installed mod_perl in a '''completely separate user account''' and . . . # useradd -g users -m -s /bin/bash apache_mod_perl # passwd apache_mod_perl Login as the new user, . . . then: $ mkdir bin lib perl_modules $ wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/CGI.pm-3.25.tar.gz . . . $ tar xfz CGI.pm-3.25.tar.gz $ cd CGI.pm-3.25/ $ perl Makefile.PL PREFIX=$HOME $ make && make install . . .
3K - last updated 2006-10-24 06:56 UTC by bvankuik
2006-10-23 Keeping an eye on logs
When developing, you often want to keep an eye on several logs at a time. ''gnome-terminal'' is ideal . . . -f /var/log/messages" \ --tab -title="Apache mod_perl log" \ -e "ssh sron0311 tail -f /home/apache_mod_perl/apache/logs/error_log" . . .
2K - last updated 2006-10-23 07:49 UTC by bvankuik
2006-11-16 Checking form fields
When you're creating dynamic web pages with forms on them, you'll probably not forget to validate the . . . programmable web client, such as the [http://www.perl.com/cgi-bin/cpan_mod?module=LWP libwww-perl] module. . . .
2K - last updated 2006-11-16 15:35 UTC by 1463
2006-12-07 Electronics interface for Telis
When I want to read out the settings from the electronics boards of the Telis project, I have multiple . . . the server upon startup and actually runs some Perl code that's defined in the database. The Perl . . . You query the func parameter, which runs some Perl to actually query ''two'' parameters, combines . . .
2K - last updated 2006-12-07 12:50 UTC by bvankuik
2007-02-02 Branching in SVN with existing work
This week I had the situation where I was asked to come to another office (in Groningen) and do some . . . conversion FFO plot corrected" Sending client/perl/lib/FFO_sweep_macro.pm Sending client/perl/lib/PLL_sweep_macro.pm . . .
2K - last updated 2007-02-02 13:59 UTC by bvankuik
2007-03-11 Bug in software or hardware
This week was a very rewarding week: we squashed a bug which seemed to elude the very best minds -- these . . . I had incorporated the script into a nice Perl module with a button in the user interface named . . . the old script from which the Measure Offsets Perl module was created. This script ran the offset . . . we rule out the software then? We compared the Perl module and the original script line by line. These . . .
4K - last updated 2007-03-12 08:46 UTC by bvankuik
2007-06-22 Configuring ZABBIX and IPMI
Recently I installed RedHat AS 5 on a PowerEdge 860. For management, we use Zabbix; if you know Nagios . . . 26 C At the end of the line, there's a hyperlink to a pretty stripchart. You can add new lines . . .
2K - last updated 2007-06-22 15:24 UTC by 1463
2007-08-20 Configuring SSH daemon
If you want to configure the SSH daemon on a remote machine, you probably don't want to risk the chance . . . of locking yourself out. Nowadays, properly configured machines can restart the SSH daemon . . .
2K - last updated 2007-08-20 20:06 UTC by 1463
2008-09-22 Reading out a multimeter
We'd like to test the DAC board by reading it out with an HP 3458A multimeter (now Agilent, but this . . . [[image:hp_3458a.jpg]] Currently, we've got some Perl scripts that were used in a previous project however . . . for accurate measurements. The currently used Perl code doesn't allow this. The current situation . . .
3K - last updated 2008-09-25 11:27 UTC by 1463
2008-10-03 Software architecture decisions
Today I bumped into a problem which required some decisions about the software. In short it comes down . . . to the following. We have control scripts (in Perl) which fire off Command Packets to the server. . . . to the sending Connection object. Currently the Perl library uses a number within the packet to determine . . . the software APID when sending packets from the Perl scripts * When the response is sent from the daemon, . . . packet. * When the response is received in the Perl library, we need to know that when a software . . .
3K - last updated 2008-10-07 09:40 UTC by 1463
2010-07-15 Sending email from a Perl script
If you're on Debian or Ubuntu Linux and you want to send a quick e-mail from a Perl script, use the Email::Send . . . packages: $ sudo apt-get install libemail-send-perl Then use the following snippet: use Email::Send; . . . Subject: This is a mail from a Perl script This is the body of an e-mail from a perlscript . . .
1K - last updated 2010-07-15 13:20 UTC by 1463
2010-09-23 From Perl to Python
At work, we are currently using Perl and IDL, alongside our (in C++ written) EGSE server software. For . . . the controlling of electronics, we use Perl. For the visualization of the electronics readouts, . . . rewrite which could mirror the C++ libraries. Perl basically provides scripted control/readout of . . . as well as transported back to the controlling Perl script. Besides plots by IDL, it's also possible . . . where we look at the following items: * How the Perl control/readout libraries will be ported to Python . . .
2K - last updated 2010-09-24 13:59 UTC by 1463
2010-10-12 Supporting Python
At my dayjob, we have created an application for sensor readout and control. We are creating a software . . . plotting, besides the already present combo of Perl for scripting and IDL for analysis. The list of . . . script # User defines a plot # User kicks off a Perl script that retrieves data # Certain data triggers . . . the EGSE server plots something # Sometimes the Perl script requests the results as well What we really . . .
2K - last updated 2010-10-13 12:28 UTC by 1463
2011-09-21 From iPhone to Android
''This is part 7 of my series where I document going from an iPhone to Android 2.3, running on the Samsung . . . support. doubleTwist doesn't really sync this properly. So, you copy them manually, which is not really . . .
3K - last updated 2011-09-26 21:19 UTC by 1463
2011-12-12 Protocol stuff
We have an interesting situation here at work, concerning our internally developed binary protocol. There . . . * 2190 Data field length (in bytes) = 17520 The Perl library does things differently; its way of calculating . . .
5K - last updated 2011-12-15 15:40 UTC by 1463
2013-03-27 warning Setting locale failed
I was getting the error from all kinds of Linux programs about "setting locale failed". For example, . . . running Perl gave me the following output: user@machine:~$ . . . perl --version perl: warning: Setting locale failed. . . . perl: warning: Please check that your locale settings: . . . are supported and installed on your system. perl: warning: Falling back to the standard locale . . .
3K - last updated 2014-03-28 13:06 UTC by 1463
2013-10-25 What is new in OS X Mavericks
I'm running a little comparison of the file system of a Mavericks install and a Mountain Lion install, . . . printing protocol printers * json_pp -- a Perl-based utility for working with JSON * jvisualvm . . .
5K - last updated 2013-12-06 10:09 UTC by 1463
CDT
[http://www.eclipse.org/cdt/ CDT homepage] [http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/cdt-home/user/faq.html?cvsroot=Tools_Project . . . files which are named the same aren't handled properly. Rename or move where appropriate. Forget about . . .
3K - last updated 2006-02-16 12:38 UTC by 1463
Comments on 2006-10-03 Mod perl and Slackware
Note that the latest version of Apache that comes with Slackware 10.2 is 1.3.37 (published as a security . . . or reinstall Apache in order to compile mod_perl. All that's needed is having the virginal Apache . . . source code available in some directory. mod_perl is also available in CPAN. Combined with the 'cpan2tgz' . . . trivial to make a Slackware package out of mod_perl: simply type "cpan2tgz mod_perl" as root, and . . . entry, the idiot's guide to installing mod_perl under Slackware (10.2) then becomes: # wget http://software.jaos.org/slackpacks/10.2/cpan2tgz-0.6-noarch-1.tgz . . .
3K - last updated 2006-10-04 09:19 UTC by bvankuik
Configuration
= Generating a config file = In a non-trivial project, several programming languages will often be used. . . . and it's coded in PHP. Some scripts in Perl are added for thrumming through textfiles. And . . . CFLAGS += -DUSE_LOGFILE endif == Inclusion in Perl == Put the following function in a general module: . . . } close(CONFIG); return %conf; } On top of every Perl script, add the following lines: use GeneralModule; . . .
8K - last updated 2006-10-20 14:09 UTC by bvankuik
Cron tips
= Place = On RedHat and family, crontab entries are best made as a separate file under any of the <tt>/etc/cron.*</tt> . . . crontab entry was correct and was executed properly, is to use <tt>logger</tt> to write a message . . .
2K - last updated 2007-07-07 08:51 UTC by 1463
Database Logging Package
The java.util.logging classes are taking over the homebrewn solutions at the moment. It's a very flexible . . . handler could be improved for instance by properly using PreparedStatements and also, it could be . . .
2K - last updated 2005-03-19 09:48 UTC by 1463
Debugging
= GNU debugger = For an introduction into gdb, check out [http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html . . . Now we can examine why this variable wasn't properly filled. = What's it doing? = You're taking over . . .
8K - last updated 2012-03-16 14:17 UTC by 1463
EPIC
[http://e-p-i-c.sourceforge.net EPIC homepage] Shortcomings: * Right-clicking and choosing 'open sub . . . by [http://e-p-i-c.sourceforge.net/running_perl_scripts_within_eclipse/entry.htm configuring an . . .
2K - last updated 2006-02-07 12:38 UTC by 1463
Eclipse
[http://simplygenius.com/geekblog/2005/04/08/1112982083849.html Painless Eclipse upgrades under Linux] . . . Testing Frameworks] page at C2 [[EPIC]] for Perl [[PHPEclipse]] for PHP [http://www.eclipse.org/webtools/wst/main.html . . .
1K - last updated 2006-02-28 15:58 UTC by 1463
Internationalization
== WARNING WORK IN PROGRESS == == "Geïrriteerd" == Are you a West-European software developer who: # . . . aren't Unicode by default * Do testing with Perl == Even if there is a standard... == Even if there . . .
10K - last updated 2005-12-04 15:35 UTC by 1463
Parsing and transforming RDF files in PLSQL
When you say 'XML', you'd probably also say 'Java' -- until now, because a stock Oracle database installation . . . We have the headlines, which we can make hyperlinks pointing directly to the items themselves. . . . print the name of the website in the form of a hyperlink. The call to wwui_api_portlet.portlet_subheader_color() . . .
15K - last updated 2005-03-19 06:57 UTC by 1463
Perl
= Help = Help isn't far away: $ perldoc -f keyword = Parameters = Parameters (other word: arguments) . . . = $ARGV[0]; = Arrays = == An array of arrays == Perl doesn't know two- or multidimensional arrays. . . . are a gazillion ways to read a text file in Perl, but this one is mine: my $filename = "log_temptest-23-05-2007-17-07.csv"; . . . makes it easy to add error handling to existing Perl modules. Just add eval{}; around any calls and . . . NMS project] for a number of Perl CGI scripts. = Feedback = To give feedback without . . .
17K - last updated 2015-06-18 09:03 UTC by 1463
Python presentation
What is Python? * Scripting language, invented in 1991 at CWI (Amsterdam) as a scientific programming . . . like RedHat and Ubuntu Differences with Perl philosophy * Python usually has one obvious way . . . * Python has shorter development cycles (think Perl 6) * More focus on serious language, less focus . . .
2K - last updated 2008-12-12 09:35 UTC by 1463
RT
= Installation on Debian = Install apache, fastcgi, mysql ... from woody. libcgi-fast-perl libfcgi-perl . . . perl-suid libmysqlclitn10-dev deb http://www.backports.org/debian . . . Adduser rt su - rt Get perl 5.8.x as a tarball wget -N http://perl.com/CPAN/src/stable.tar.gz . . . untar build and install in /home/rt/perl rm -f config.sh Policy.sh \ && sh Configure -de . . . -Dprefix=$HOME/perl \ && make \ && make test \ && make install make . . .
3K - last updated 2006-03-01 09:27 UTC by 1463
SSH
= Create a VNC tunnel to work = Suppose your home and organization's network looks like this: +-----Organization-Network-----+ . . . This can happen when using SSH from a script (Perl, PHP) which is run through Apache or some other . . .
7K - last updated 2008-11-14 09:17 UTC by 1463
Telis
Current shortcomings of the software: * Only 16-bits values supported * Some settings can only be retrieved . . . every packet, error checking can be done and perl can die() immediately if an error occurs. You . . .
2K - last updated 2007-02-15 15:57 UTC by bvankuik
Vim
[http://www.moolenaar.net/habits.html Tips from Bram], be sure to read them. = Interaction with X = Vim . . . through an external program: map <f9> :w<CR>:!perl -c %<CR> = Substituting line feeds = To replace . . .
9K - last updated 2014-12-12 08:11 UTC by 1463
adsense.pl
application/x-perl
3K - last updated 2006-03-21 07:39 UTC by 1463
google search.pl
application/x-perl
4K - last updated 2005-06-23 12:07 UTC by 1463
testenv.pl
application/x-perl
1K - last updated 2006-05-01 13:40 UTC by 1463
vankuik.nl
= Latest weblog entries = <journal 5> = Weblog Archive = [[Weblog_entries_2024]] [[Weblog_entries_2023]] . . . in one format and use it in Makefiles, C, Perl and PHP * [[Cheap_VPS_Hosting]] (Dutch) Een vergelijking . . . or How to install this fat lady properly on a laptop or similar * [[JDeveloper_on_Linux]] . . . * [[Java]] * [[IDL]] * [[Objective-C]] * [[Perl]] * [[PHP]] * [[Python]] * [[MySQL]] but mostly . . .
4K - last updated 2024-04-16 10:29 UTC by bartvk
40 pages found.