-
Recent Posts
Blogroll
Topics
Archives
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
-
access Apple application Bell Business cent client code com computer c programming language development Engineer enterprise Gartner hardware hp ux IDC Inc information Intel ken thompson Linux Microsoft number oracle percent platform Power Red security server Software solaris support technology text today Unix unix operating system use virtualization way web work
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
Category Archives: Programming
Perl – Fork and Kill a System Process on Timeout
$pid = open(PIPE, “$command |”) or die $!; eval { local $SIG{ALRM} = sub { die “TIMEOUT” }; alarm($timeout); while (<PIPE>) { $data = $_; }; close(PIPE); alarm(0); }; if ($@) { die $@ unless $@ =~ /TIMEOUT/; kill 15, … Continue reading
JAVAC Compiler Error: cannot find symbol
Ensure your $CLASSPATH is clear and try again! caught me out .. Always compile all files in a package at the same time; for example, in the directory Javadir/ListPkg type: javac *.java
Debugging PHP – Parse error: syntax error, unexpected $end
If you have are using the short form <? for PHP instead of the long form <?php you might be faced with this parse error when running your script on different systems: Update all references to the long version <?php … Continue reading
Posted in PHP
Tagged debugging, error, form, pain, Parse error, syntax error, update
Leave a comment
Convert SVG to Raphael JS
Use this link to convert SVG to Raphael JS;; http://www.podciborski.co.uk/SVG2RaphaelJS/
VBA – Remove Blank Rows
as below: Sub DeleteBlankRows1() ‘Deletes the entire row within the selection if the ENTIRE row contains no data. ‘We use Long in case they have over 32,767 rows selected. Dim i As Long ‘We turn off calculation … Continue reading
Posted in Excel, Programming, VBA
Tagged blank rows, Calculation, DeleteBlankRows, End, Long, Rows, step 1
Leave a comment
HTML Pound/Dollar Symbol £$
HTML ISO-8859-1 Reference ISO-8859-1 ISO-8859-1 is the default character set in most browsers. The first 128 characters of ISO-8859-1 is the original ASCII character-set (the numbers from 0-9, the uppercase and lowercase English alphabet, and some special characters). The higher … Continue reading
Posted in Programming
Tagged amp nbsp, DESCRIPTION, mark, number, quotation mark, soft hyphen, tilde, umlaut, western european countries, yen yen
1 Comment
Open_basedir issues
Check /var/www/php-fcgi-scripts/web4/.php-fcgi-starter
PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0 Just change the ‘#’ in the files to ‘;’ and this error will stop!
Unix find and replace text within all files within a directory
Trying to do a search on an entire directory, finding all the instances of the text “applicationX” and replacing all instances with the text “applicationY”. find /path/to/start/from/ -type f | xargs perl -pi -e ‘s/applicationX/applicationY/g’
Posted in Perl, UNIX
Tagged applicationX, applicationY, instances, perl, pi, text, Unix, xargs perl
Leave a comment