<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Perladmin's Weblog</title>
	<atom:link href="http://perladmin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://perladmin.wordpress.com</link>
	<description>Just another Perl Blog</description>
	<lastBuildDate>Wed, 22 Apr 2009 14:45:28 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='perladmin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/34e41929103b53737d12717923ede9ec?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Perladmin's Weblog</title>
		<link>http://perladmin.wordpress.com</link>
	</image>
			<item>
		<title>ShadowCat&#8217;s &#8220;Enlightened Perl Iron Man Competition&#8221;</title>
		<link>http://perladmin.wordpress.com/2009/04/22/shadowcats-enlightened-perl-iron-man-competition/</link>
		<comments>http://perladmin.wordpress.com/2009/04/22/shadowcats-enlightened-perl-iron-man-competition/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 13:57:20 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[advocacy]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[Perl Iron Man competition]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=65</guid>
		<description><![CDATA[Bingo!
ShadowCat Systems, an open-source development company from the UK posted an entry on their blog today which hits the nail on the head. Perl needs marketing and it needs it within the realms that the rest of the world moves.
We, the collective Perl consciousness, do not really like all this modern internet stuff. We don&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=65&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Bingo!</p>
<p><a href="http://www.shadowcat.co.uk/">ShadowCat Systems</a>, an open-source development company from the UK posted an entry on their blog today which hits the nail on the head. Perl needs marketing and it needs it within the realms that the rest of the world moves.</p>
<p>We, the collective Perl consciousness, do not really like all this modern internet stuff. We don&#8217;t appear to like blogging, we don&#8217;t appear to like forums and pretty web 2.0 stuff? That&#8217;s right out. As Matt so correctly described it</p>
<blockquote><p>Perl people hang out on mailing lists. We bottom post, carefully interleaved, with 76 character lines. We have signatures that meet the McQ standard for acceptable size. We hang out on IRC servers and bitch, moan, interact and collaborate with the aid of an 80&#215;25 xterm with irssi, BitchX or IrcII in it[3]. Sometimes we sit at home with a beer and do one or more of the above. Forums? Meh. Those are the things the PHPtards like because they can&#8217;t figure out how to work a mailing list, right? Blogs? That&#8217;s not even a fucking word!</p></blockquote>
<p>I hate to quote so much at once, but this paragraph captures the issue completely. The reason for all of the &#8220;Perl is fading&#8221; nonsense is almost entirely because we don&#8217;t seem to like to talk about Perl in any format which is post-1997.</p>
<p>But it seems that we have finally started to realize that this is a problem and have, to paraphrase, <em>&#8220;become the change that we want to see&#8221;</em> because we&#8217;re actually seeing blogs about Perl which if not exactly web 2.0 are at least not from 1997.</p>
<p>The most popular &#8220;new&#8221; site of course is <a href="http://www.perlbuzz.com/">Perl Buzz</a>, but it isn&#8217;t the only site. There are many small blogs where people post infrequent articles about Perl, but finding them can be tricky. To help address this issue Shadowcat&#8217;s Matt Trought has decided to start handing out awards to people for frequent postings on Perl through his <a href="http://www.shadowcat.co.uk/blog/matt-s-trout/iron-man/">Enlightened Perl Iron Man Competition</a>.</p>
<p>If you haven&#8217;t already read the article then you should do. Really. Matt expresses his frustrations with what can only be described as proper English enthusiasm &#8211; yeah, that does mean with lots of swearing. And frankly he&#8217;s right. Every word of it is true.</p>
<p>Indeed I can remember posting a similar rant on starting to post at perladmin.oreally.co.uk blog. Sadly the server behind it was a freebie server hosted by a friend and it needed to be ditched and, as yet, I&#8217;ve not seen the data since to resurrect the blog else where. My irritations were something similar &#8211; although I also went on to criticize the fact that for years we&#8217;ve been told that Perl 6 will be better and &#8220;is coming&#8221;. For my efforts I got a couple of snarky comments telling me that I shouldn&#8217;t criticize Perl 6 , that I was only adding to the problems by doing so, and one note saying that <em>&#8220;I did go on..&#8221;</em>.</p>
<p>Well that was my rant, and Matt has posted his. But Matt has also gone on to proposed a solution, his &#8220;<a href="http://www.shadowcat.co.uk/blog/matt-s-trout/iron-man/#compo">Perl Iron Man Competition</a>&#8220;. To paraphrase a commonly used term about the current economy, perhaps we are seeing Perl&#8217;s <em>green shoots of recovery</em>?</p>
<p>I hope so. Rock on Matt!</p>
Posted in advocacy, Perl, review Tagged: Perl Iron Man competition <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=65&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2009/04/22/shadowcats-enlightened-perl-iron-man-competition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix for SVN::Web and &#8217;subversion/libsvn_ra/deprecated.c&#8217; line 289: assertion failed (*path != &#8216;/&#8217;)</title>
		<link>http://perladmin.wordpress.com/2009/04/19/fix-for-subversionlibsvn_radeprecatedc-line-289-assertion-failed-path/</link>
		<comments>http://perladmin.wordpress.com/2009/04/19/fix-for-subversionlibsvn_radeprecatedc-line-289-assertion-failed-path/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 02:21:18 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Perl SVN::Web svn subversion]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=63</guid>
		<description><![CDATA[Updated: April 22nd 2009:
This issue is actually SVN::Web Bug 37388. I didn&#8217;t see that because I that bug was filed using the error messages for SVN v1.5.0 and the function svn_ra_get_log() that is called is in a totally different library in v1.6.0 so searches for the v1.6.0 error do not find that bug report or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=63&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Updated: April 22nd 2009</strong>:<br />
This issue is actually SVN::Web <a href="https://rt.cpan.org/Ticket/Display.html?id=37388">Bug 37388</a>. I didn&#8217;t see that because I that bug was filed using the error messages for SVN v1.5.0 and the function svn_ra_get_log() that is called is in a totally different library in v1.6.0 so searches for the v1.6.0 error do not find that bug report or the patches. Thanks to commenter Alexandr for drawing this to my attention.</p>
<p><span id="more-63"></span></p>
<p>After upgrading to subversion 1.6.0 I wanted to use SVN::Web to provide web access to my Subversion repo.</p>
<p>To use SVN::Web you&#8217;ll need to install the SVN bindings for Perl. These come with subversion, but they&#8217;re not installed by default. You can find the installation information in</p>
<pre>subversion/bindings/swig/INSTALL</pre>
<p>In summary they require SWIG and SVN be installed. Once you&#8217;ve done this from the root of the source directory run</p>
<ul>
<li>make swig-pl</li>
<li> make check-swig-pl</li>
<li> make install-swig-pl</li>
</ul>
<p>Pretty simple stuff and then you can install SVN::Web.</p>
<p>Once SVN::Web is installed you can use the command &#8220;svnweb-install&#8221; to setup the directory for the web site that will serve your SVN repo information. This creates a file called index.cgi and the config.yaml that you need to configure it.</p>
<p>I have a number of repos installed under a single root, so I used the <strong>reposparent</strong> option to set the root to all of them using this value:</p>
<pre>reposparent: '/usr/local/svn/repositories'</pre>
<p>Calling up the site in my browser I&#8217;m presented with a list of the repos. However this is where things go wrong because when you click on a link you see a blank page . If you check the web server error log then you&#8217;ll see the following error message:</p>
<pre>svn: In file 'subversion/libsvn_ra/deprecated.c' line 289: assertion failed (*path != '/')
Premature end of script headers: index.cgi</pre>
<p>So I began to search through the Perl code, the XS and finally the subversion libraries trying to track down what was wrong with this code. Why did it matter that the path started with /? I wasn&#8217;t able to see anything obvious, including doing lots of searches for this error text and variants of it to see what other people had found.</p>
<p>I found nothing until I happened to search for svn_ra_get_log() and in doing so stumbled across this conversion thread from the svn-dev mailing list &#8220;<a href="http://svn.haxx.se/dev/archive-2008-01/0415.shtml">subversion/libsvn_ra/ra_loader.c:934: svn_ra_get_log: Assertion `*path != &#8216;/&#8221; failed.</a>&#8220;</p>
<p>This thread refers to a different svn lib because it appears that the function svn_ra_get_log() is deprecated in 1.6.0, but for legacy purposes (such as our code) it can&#8217;t be removed yet. This chances the library and the line number, but otherwise the error is the same. It turns out that&#8217;s because it is the same problem &#8211; you used to pass the first parameter as &#8216;/&#8217; to svn_ra_get_log() (which is known as get_log() in the Perl bindings) to indicate that you wanted any logs. Now you need to pass an empty string.</p>
<p>The reason why this is a problem is that in SVN::Web::action::recent_interesting_rev() $ra-&gt;get_log() is called with $path = &#8216;/&#8217;. The fix then is really simple &#8211; force $path to be an empty string before get_log() is called. Since I didn&#8217;t know what/where else this would break I patched it as close to the error as possible by adding this to line 244 of SVN::Web::action.pm as shown below;</p>
<pre>243     my @log_result;
244 $path =~ s!^/!!;
245     $ra-&gt;get_log([$path], $rev, 1, 1, 0, 1,
246                  sub { @log_result = @_; });</pre>
<p>Hope this helps anyone else who encounters this error.</p>
<p>Colin.</p>
Posted in Perl Tagged: Perl SVN::Web svn subversion <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=63&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2009/04/19/fix-for-subversionlibsvn_radeprecatedc-line-289-assertion-failed-path/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>The use base.pm and SIGDIE problem, still not fixed in Perl 5.8.8</title>
		<link>http://perladmin.wordpress.com/2008/11/17/the-use-basepm-and-sigdie-problem-still-not-fixed-in-perl-588/</link>
		<comments>http://perladmin.wordpress.com/2008/11/17/the-use-basepm-and-sigdie-problem-still-not-fixed-in-perl-588/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 05:37:11 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Perl base.pm bug]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=61</guid>
		<description><![CDATA[This weekend I&#8217;ve been playing around with a &#8220;from scratch&#8221; idea for an app/framework thingy. I&#8217;ve been assembling the pieces in my head, in notes and in reading around. While I doubt its going to become the next &#8220;IT&#8221; framework, even if it gets released to the public, I&#8217;m hoping it will give me a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=61&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This weekend I&#8217;ve been playing around with a &#8220;from scratch&#8221; idea for an app/framework thingy. I&#8217;ve been assembling the pieces in my head, in notes and in reading around. While I doubt its going to become the next &#8220;IT&#8221; framework, even if it gets released to the public, I&#8217;m hoping it will give me a clearer understanding of how to make a modern web app in Perl.</p>
<p>On of the things I&#8217;ve been trying to do is make the core of the app fairly sensible in terms of setting up lots of stuff by default. So, for example, to default to using UTF8 encoding and Localization as well as basic stuff like signal handlers. I cheerily set up my SIGDIE handler in my <code>initApp()</code> method to handle stuff like checking if headers need sending before dumping the error message back to the browser and moved on.</p>
<p>After getting the basic thing working a little I decided to approach Localization (L10N). I&#8217;ve never tried this before and I have to be honest the suggestions on how to do this in Perl &#8230; err.. lack. I found myself hitting the same few articles time and time again. Heck even Bugzilla&#8217;s roadmap uses the same list of articles quoted else where (TJP13, Locale::Maketext::Lexicon, and the Cpanel.net roadmap for the future of Cpanel), but as with most things Perl trying and poking seems to get you somewhere.</p>
<p>In my case it got me more than I&#8217;d bargained for because in trying to make my app flexible the localization is optional, and more so, tried to make the use of Locale::Maketext::Lexicon optional so you can use other modules if you prefer. This meant that I was a prime candidate for the &#8220;use base&#8221; bug.</p>
<p>If you haven&#8217;t come across this bug then its pretty simple. There&#8217;s a bug in base.pm in which the die signal handler entry in %SIG is local()ized for part of import(). This is great because its localized and the author makes an attempt to restore it afterward to ensure it was reset correctly. Unfortunately it goes horribly wrong. And I&#8217;ve just wasted another couple of hours tracking this crap down only to discover that because this is a relatively new machine I hadn&#8217;t patched base.pm on it unlike my other servers &#8230; *grr*.</p>
<p>If you don&#8217;t know the bug a solution is documented on <a href="http://www.mail-archive.com/perl5-changes@perl.org/msg18629.html">the perl5 mailing list</a>. The code block in question is this:</p>
<pre>
 85             my $sigdie;
 86             {
 87                 local $SIG{__DIE__};
 88                 eval "require $base";
 89                 # Only ignore "Can't locate" errors from our eval require.
 90                 # Other fatal errors (syntax etc) must be reported.
 91                 die if $@ &amp;&amp; $@ !~ /^Can't locate .*? at \(eval /;
 92                 unless (%{"$base\::"}) {
 93                     require Carp;
 94                     Carp::croak(&lt;&lt;ERROR);
 95 Base class package "$base" is empty.
 96     (Perhaps you need to 'use' the module which defines that package first.)
 97 ERROR
 98                 }
 99                 $sigdie = $SIG{__DIE__};
100             }
101             # Make sure a global $SIG{__DIE__} makes it out of the localization.
102             $SIG{__DIE__} = $sigdie if defined $sigdie;
</pre>
<p>The general idea here is that base.pm doesn&#8217;t want a custom SIGDIE handler interfering with what&#8217;s going on and so overrides it and tries to reset it. The bug is that this doesn&#8217;t happen. What happens is that your signal handler is always removed. Why? Well that&#8217;s because line 87 causes SIGDIE to be defined, but to be defined with no value. It seems that this is the default for signal handlers, even though it doesn&#8217;t appear to happen for other variables, including hashes:</p>
<pre>
#!/usr/bin/perl
use strict;
use warnings;
use vars qw(%A);

print "\$A{B} def: ", defined($A{B}) ? 'Yes' : 'No', "\n";
$A{B} = 1;
print "\$A{B} def: ", defined($A{B}) ? 'Yes' : 'No', "\n";
local($A{B});
print "\$A{B} def: ", defined($A{B}) ? 'Yes' : 'No', "\n";

print "\$SIG{__DIE__} def: ", defined($SIG{__DIE__}) ? 'Yes' : 'No', "\n";
$SIG{__DIE__} = 'IGNORE';
print "\$SIG{__DIE__} def: ", defined($SIG{__DIE__}) ? 'Yes' : 'No', "\n";
local($SIG{__DIE__});
print "\$SIG{__DIE__} def: ", defined($SIG{__DIE__}) ? 'Yes' : 'No', "\n";
</pre>
<p>This outputs the following. Can you spot the problem?</p>
<pre>
$A{B} def: No
$A{B} def: Yes
$A{B} def: No
$SIG{__DIE__} def: No
$SIG{__DIE__} def: Yes
$SIG{__DIE__} def: Yes
</pre>
<p>That&#8217;s right. In a normal hash once we localize a hash variable then we end up with it not being defined, irregardless of whether or not the original var was defined. This doesn&#8217;t hold true for <code>%SIG</code>. In the case of <code>%SIG</code> localizing it causes the elements to be defined. ALWAYS.</p>
<p>Normally this isn&#8217;t a problem because you don&#8217;t use these, and besides which the value is defined but zero. But in the way this is handled in base.pm, its a problem because of the strange way that SIGDIE is restored from the var <code>$sigdie</code>, but <code>$sigdie</code> is assigned to after the call to local():</p>
<pre>
 99                 $sigdie = $SIG{__DIE__};
100             }
101             # Make sure a global $SIG{__DIE__} makes it out of the localization.
102             $SIG{__DIE__} = $sigdie if defined $sigdie;
</pre>
<p>Thanks to above quirk with %SIG and local in this situation <code>$sigdie</code> (line 99) is <strong>ALWAYS</strong> defined, but because $sigdie is assigned to after local() is used, $sigdie doesn&#8217;t contain your signal handler, but instead contains &#8220;&#8221;. So we hit line 102 where the block is conditional on $sigdie being defined, which it always is, remember, and thus the code always assigns &#8220;&#8221; to $SIG{__DIE__} after loading the given module. As line 102 is outside of the block in which local() is used at this point <code>%SIG</code> is the actual %SIG (the global copy if you prefer). Therefore this assignation has the effect of wiping out any signal handler you may have installed despite the fact that it is trying to achieve exactly the opposite and restore the original signal handler.</p>
<p>The solution mentioned above is to use <code>|| undef</code> on line 99. This has the effect of assigning undef to $sigdie because the signal handler is &#8220;&#8221;, or false, thus line 102 doesn&#8217;t pass the conditional and install this &#8220;&#8221; as the SIGDIE handler. It works, but I have to ask, why bother? It seems like the better way is to simply remove all of the <code>$sigdie</code> stuff and localize %SIG resetting it to its default, and then let the code exit the block. When it does the localized version of %SIG is removed and there&#8217;s no risk of clobbering an existing handler.</p>
<p>An alternative, if you must use $sigdie, is to assign the current SIGDIE handler as you&#8217;re declaring it, thus:</p>
<pre>
 85             my $sigdie = $SIG{__DIE__};
 86             {
 87                 local $SIG{__DIE__};
</pre>
<p>Then remove line 99 where the value is messed up:</p>
<pre>
 99                 $sigdie = $SIG{__DIE__};
</pre>
<p>Having just checked for updated modules the other day, I have to say, I&#8217;m very surprised that there isn&#8217;t a patched version of this which has been sent out to versions of Perl with broken versions. As I understand it 5.10 doesn&#8217;t suffer this problem, but since the stable version is still considered to be 5.8.8 it seems like it should be updated too. It would save people like me wasting a few hours trying to track down what&#8217;s going on with their code&#8230;.</p>
<p>Colin.</p>
Posted in Perl Tagged: Perl base.pm bug <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=61&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/11/17/the-use-basepm-and-sigdie-problem-still-not-fixed-in-perl-588/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Firebug&#8217;s Hidden Gems</title>
		<link>http://perladmin.wordpress.com/2008/11/15/firebugs-hidden-gems/</link>
		<comments>http://perladmin.wordpress.com/2008/11/15/firebugs-hidden-gems/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 05:26:50 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=58</guid>
		<description><![CDATA[Like many people who develop sites these days I find that Firebug is an indispensable part of my toolkit. It has evolved from &#8220;yet another web developer extension&#8221; into a tool which is an essential part of any developer&#8217;s toolkit &#8211; at least if they&#8217;re using anything but plain HTML. Its facilities for observing, testing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=58&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Like many people who develop sites these days I find that <a href="http://www.getfirebug.com/">Firebug</a> is an indispensable part of my toolkit. It has evolved from &#8220;yet another web developer extension&#8221; into a tool which is an essential part of any developer&#8217;s toolkit &#8211; at least if they&#8217;re using anything but plain HTML. Its facilities for observing, testing and tweaking what&#8217;s going on in your web application are countless and as far as I&#8217;m aware, without compare.</p>
<p>If you haven&#8217;t tried it then you&#8217;re severely handicapping yourself so I would recommend that you install it and start playing. If you already have it, then you&#8217;ll know what I mean &#8211; the moment you end up on a computer without it, you feel like you need it installed. But even having used it for a good while (years?) now, I&#8217;m constantly amazed by the attention to detail the developers and contributors have paid.</p>
<p>For example I was just poking around with a test site trying out some CSS and discovered something new tonight. Like me you&#8217;re probably used to opening up Firebug to tweak the CSS styles to see how things will look without needing to reload the page. I should probably point out that if you&#8217;re not used to Firebug and you think it is just for looking at things, then you&#8217;re missing a good 50% of the picture&#8230; In fact lets try it.</p>
<p>Select an element on screen using the &#8220;Inspect&#8221; button in the HTML panel. You&#8217;ll see the DOM tree open up to that element. Want to try out a change, say a different background color? Select the &#8220;BODY&#8221; element and then right-click. Lots of options huh? Select &#8220;New Attribute&#8221; and you&#8217;ll get to add a new attribute to the element. So here&#8217;s a quick way of testing a new background, border, etc. &#8211; add the attribute &#8220;style&#8221;. Here&#8217;s a perfect example of the attention being paid. Instead of typing it all it, you enter only the name, and then hit &#8220;tab&#8221; and you&#8217;ll move on to entering the attribute&#8217;s value. You don&#8217;t need to worry about the equals symbol or quotes because FB fixes that for you, you just enter the value you want to use.</p>
<p>The alternative to editing this inline is to use the Sub-Panels on the right of the HTML Panel. When you view the DOM tree you&#8217;ll see that the sub-panels on the right update. They show the Style, Layout and DOM for the selected element. Here again is an example of the detail. The Style sub-panel shows by default the CSS rules applicable to this element. It strikes through rules which have been superseded as well as the source file and line number. This is extremely handy for working out why your DIV tag has a bright blue background instead of bright red. But by checking an option in the &#8220;Options&#8221; menu you can see the additional rules set by Firefox (this may be a 1.3 track setting) and view the computed style rules.</p>
<p>Okay so yes, this was available in the DOM inspector, but the packaging is nicer, and it is combined with the particularly useful Layout tab which allows you to see, and modify, the settings for the layout characteristics &#8211; border, padding, margin, height, width and top/left offsets. If you haven&#8217;t discovered it yet (or read the manual, may be its all in there?), then you can click on any of the numbers in the Layout tab and edit them. Did you also discover (read about?) how when you hit tab you move on to the next number in the square? And how you can tab all the way around from offset to margin to border to padding in a loop? Oh and of course how if you shift-tab you tab backwards in reverse order? Yeah, that&#8217;s the kind of attention that I&#8217;m talking about.</p>
<p>Well if you found all of that and think that&#8217;s cool then there&#8217;s the surprise I found tonight back on the &#8220;Style&#8221; tab. I knew that instead of editing the style attribute you could also edit the styles for an element from with in the Style tab &#8211; if you didn&#8217;t then select your element and right click in the style sub-panel and you&#8217;ll see a host of options for editing the style, adding new properties, editing the existing properties etc.</p>
<p>So here&#8217;s the cool bit&#8230; Can&#8217;t remember what the CSS property is called? No problem they&#8217;ve thought of that too. Type whatever you can think it starts with and hit up/down. You&#8217;ll scroll through all of the properties that FB knows about. This includes all of the new CSS3 and -moz extensions that FFx supports. If that wasn&#8217;t handy enough hit tab to go on to editing the value&#8230; and you can do the same thing.</p>
<p>This was the &#8220;easter egg&#8221; I found tonight, having FB be intelligent enough that I was able to scroll through appropriate values for an attribute (handy with some of the obscure/new -moz&#8230; attributes).</p>
<p>For example; If your value is numeric then up will increment and down will decrement, seems reasonable. But if it is a known CSS attribute then you&#8217;ll be stepped through a list of possible options. For example, can&#8217;t remember what border styles are supported? No problem add an attribute &#8220;border-style&#8221; tab into the value field and scroll through them all with up/down. Can&#8217;t remember the (256?) named web colours? Again, if its a recognized colour attribute then you can scroll up/down through a list of known colours.</p>
<p>If that isn&#8217;t good enough try it with a combination attribute such as &#8220;border&#8221;. Try editing a standard CSS value like &#8220;border: 1px solid black&#8221;. If you edit this value and hit up/down then the border width will increment/decrement. Okay so you&#8217;re not impressed because its only doing it because it starts with a number. So double-click on the border-style (in this case &#8220;solid&#8221;) and yeah, you can scroll through a list of known border-styles. When you&#8217;ve found something you like you can repeat this with colour attribute. If the auto-complete of the names, the tab/shift-tab support wasn&#8217;t enough then this while not commonly used, just makes it a much nicer experience.</p>
<p>A huge thank you to Joe Hewitt, John J Barton, and everyone else for this amazing extension.</p>
<p>Colin.</p>
Posted in firebug, firefox, review Tagged: firebug, firefox <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=58&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/11/15/firebugs-hidden-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Perl 6 and the &#8220;Vaporware&#8221; Label</title>
		<link>http://perladmin.wordpress.com/2008/10/25/perl-6-and-the-vaporware-label/</link>
		<comments>http://perladmin.wordpress.com/2008/10/25/perl-6-and-the-vaporware-label/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 20:47:44 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[advocacy]]></category>
		<category><![CDATA[commentary]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=52</guid>
		<description><![CDATA[Perusing Perlbuzz, as I tend to do on a rainy saturday afternoon, I was intrigued by Andy Lester&#8217;s latest post &#8220;Perl 6 isn&#8217;t exactly vaporware&#8221; in which he comments on the vaporware label that is often used around Perl 6.
I must say that I found it quite interesting to see Andy calling for an early [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=52&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Perusing Perlbuzz, as I tend to do on a rainy saturday afternoon, I was intrigued by Andy Lester&#8217;s latest post &#8220;<a href="http://perlbuzz.com/2008/10/perl-6-isnt-exactly-vaporware.html">Perl 6 isn&#8217;t exactly vaporware</a>&#8221; in which he comments on the vaporware label that is often used around Perl 6.</p>
<p>I must say that I found it quite interesting to see Andy calling for an early adopter&#8217;s release of Rakudo because as he notes,</p>
<blockquote cite="http://perlbuzz.com/2008/10/perl-6-isnt-exactly-vaporware.html"><p>but the fact still stands that Perl 6 is vapor enough for most organizations wanting to do anything useful.</p></blockquote>
<p>A while ago I moved this blog to my own site on perladmin.oreally.co.uk. Posting about the move I tried to explain what I was hoping to achieve with the blog &#8211; to do my part in building attention to Perl. As part of this I made the observation that I believe one of the reasons that industry interest has turned away from Perl is because, in part, that we keep being promised that P6 is coming, but there is no usable implementation.</p>
<p>The comments I received about the post concentrated only on this part of the post and it was noted that by &#8220;bashing&#8221; Perl 6 in this way I was only adding to the problem. I suppose that a comment such as this from someone who claims to support Perl could be construed as in-fighting, but this was not the intent of my comment. Rather I was pointing out what I believe to be a very simple flaw in our collective front; that by talking about how great this language will be, but never having anything substantial in circulation, we look bad. Think about the disparaging comments that circulated about Microsoft and its repeated resetting of release dates for various versions of Windows and Office.</p>
<p>I&#8217;m not, of course, knocking Perl 6, its hard working designers or developers, or any such thing. Indeed quite the opposite I&#8217;m trying to say how I think Perl can be improved after all more interest in Perl means more, and sustained, interesting in Perl 6. Having tried to explain my thoughts, I was amused to read Andy&#8217;s post stating exactly the same point that I was trying to get across &#8211; that I think Perl is already the best solution to many problems, and that the descriptions we get of Perl 6 make me curious and want to use it, but that I cannot because it isn&#8217;t yet available in a form which is stable enough for general use.</p>
<p>Of further interest to those in the Perl community who have a similar view to mine are some of the comments posted in response to Andy&#8217;s posting. Indeed the second commenter asks</p>
<blockquote><p>Have you actually looked at the November source code? It&#8217;s full of ugly workarounds and quirky hacks to work around Rakudo bugs</p></blockquote>
<p>This is a rather disconcerting comment is further strengthened as the author makes mention of some of the issues and while supporters can easily wave off most of them the comment author provides one example as:</p>
<blockquote><p>3. List assignment. my ($x, $y) = 1, 2; doesn&#8217;t work right now</p></blockquote>
<p>If something like this doesn&#8217;t work then it seems to be a long way from being usable. Now your definition of <em>usable</em> may be different from mine, but in my definition it means I can write my apps using it. It doesn&#8217;t, of course, mean that I don&#8217;t want/like Perl 6 or its designers or developers. I don&#8217;t have anything against it, I just don&#8217;t think that it is ready and both Andy&#8217;s post and the associated comments appear to emphasize that point.</p>
<p>So while it is being developed IMO that the rest of us can help rebuild the love for Perl by concentrating on what Perl can do right now and just accept that Perl 6 isn&#8217;t going to be in a cinema near you soon. So lets go Team Perl! :)</p>
<p>Colin.</p>
<p>Incidentally, this is being posted here rather than on my own site, perladmin.oreally.co.uk, because its currently being moved to a new server. It was previously hosted on a box thrown together from junk in 1999. As you might imagine it was slow when receiving any real level of traffic but it was finally withdrawn from service due to its power usage. As a sign of the times, RedBus &#8211; the London, England, data center in which the box was hosted &#8211; has recently changed its billing calculations to include power consumption and as such a 9 year old box was not a good thing to have around for free and so it needed to be pulled. As a comparison cabinet space and bandwidth, the usual billing metric for data centers, is all but free. The migration has yet to be completed due to various complicating factors. Until then I&#8217;ll likely be posting through wordpress again.</p>
Posted in advocacy, Perl Tagged: commentary, Perl <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=52&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/10/25/perl-6-and-the-vaporware-label/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Search Trends for Scripting Languages</title>
		<link>http://perladmin.wordpress.com/2008/10/18/google-search-trends-for-scripting-languages/</link>
		<comments>http://perladmin.wordpress.com/2008/10/18/google-search-trends-for-scripting-languages/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 18:03:28 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[advocacy]]></category>
		<category><![CDATA[Google trends]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=48</guid>
		<description><![CDATA[I was poking around on Google earlier and ended up on their search trends page. One of the examples they provided was to compare the searches for the four major script languages, Perl, PHP, Ruby and Python so I decided to see what the data was like for that.
There are no major surprises, sadly, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=48&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was poking around on Google earlier and ended up on their search trends page. One of the examples they provided was to compare the searches for the four major script languages, Perl, PHP, Ruby and Python so I decided to see what the data was like for that.</p>
<p>There are no major surprises, sadly, but as you might expect PHP has more searches, but the most noticeable issue after this is that searches for <em>all</em> four languages have decreased since 2004 when the data was first collected.</p>
<p><span id="more-48"></span></p>
<h3>The trends for dynamic languages</h3>
<p><a href="http://perladmin.files.wordpress.com/2008/10/perl_search_trends.png"><img class="alignnone size-thumbnail wp-image-49" title="perl_search_trends" src="http://perladmin.files.wordpress.com/2008/10/perl_search_trends.png?w=98&#038;h=96" alt="" width="98" height="96" /></a></p>
<p>In looking at this data I wondered if there what the reasoning was behind it. Of course it should be noted from the start that the data presented here is not the result of an unbiased scientific poll, but simply a number from Google. For all we know these numbers have these values because of something wacky like Python devs only use Yahoo! So what follows is not a general information, it is simply speculation because I was curious if the general trend was downward for all four of these dynamic languages because less people are using scripting languages, or, as seems more likely, that they already know where to go to find information about them without searching through Google.</p>
<p>Obviously there must be a mix of both as in that time Java has improved and C#/.NET have become more popular. However it was in that same time period that a lot of Perl 6&#8217;s work has become available, that PHP moved to v5, and Ruby hit the headlines with Rails. It seems highly unlikely that all three of these events, which spawned books, and conferences and the like, didn&#8217;t do anything to boost interest in the corresponding language. I added all three of these examples to the list to compare and it seems that the only language to have had any real sustaining power is &#8220;C#&#8221; which has pretty much flat-lined since 2005. (You can test for yourself)</p>
<p>Google does explain that these numbers are &#8220;normalized&#8221; to a value between 0-100 rather than being the search numbers, but they don&#8217;t explain how that occurs. If this is as a portion of all searches then that clearly explains the trends. You could similarly argue that programmers have places to go for their languages which requires less searching on Google and it seems fair to speculate that programmers are also searching less because these languages are all matured and come with better documentation and thus there&#8217;s less trying to find help on how to program in them. This would further agree with Google&#8217;s own description of <a href="http://www.google.com/support/insights/bin/answer.py?answer=87284&amp;topic=13975">how they normalize the data</a> and the general trend of Google being used for more than geek searches.</p>
<h3>Comparing trends for the core script languages</h3>
<p>So whether or not this explains the decreases directly, it seems reasonable to assume that the data is comparable. If so then at first glance we are surely seeing  that PHP is &#8220;the best&#8221;, because people search for it more. Right? Well that&#8217;s one interpretation, but remember we&#8217;re looking at search numbers here and in that case do more searches really mean that the language is better? It could because it could mean more new users looking for information. But it might be that while there is appeal/interest/intrigue those who try the language find that it isn&#8217;t appropriate for them/their work, and so leaving for other languages.</p>
<p>The trend we see here doesn&#8217;t match that pattern exactly as I&#8217;d expect a sharper drop off, but its fair to say that percentagewise PHP has dropped more than any other language. A quick test from the highest value in the first month of the 2004 period to Oct 2008 shows that PHP dropped 50%, Perl 25% while Python and Ruby remain pretty much flat.</p>
<p>Does this suggest that while PHP is often looked at, there is a trend away from both PHP and Perl towards &#8220;newer&#8221; (&#8220;cooler&#8221;?) languages like Python and Ruby? Certainly Ruby has been getting a lot more attention with Rails and these trends show a distinct uptick around march in 2005. <a href="http://en.wikipedia.org/wiki/Ruby_on_Rails">According to Wikipedia</a> this would be the month following the opening of Rails to other developers. Consistent releases and updates appear to have helped maintain an interest in Ruby.</p>
<p>Similarly so with Python where newer versions and its popular tie-in to Django, etc., appear to have allowed it to maintain a small but steady &#8220;market share&#8221; over the same period. Indeed the downward trending of PHP and Perl could be an indication that we are losing developers to Python and Ruby. If this is the case, rather than people just not needing to search for them any more then it would appear that not only is PHP also considered to be &#8220;old&#8221;, as is often said of Perl, but that it is losing developers much more rapidly.</p>
<h3>Influencing the &#8220;trends&#8221;</h3>
<p>As one piece of evidence that this information from Google is easily influenced I noticed that if you zoom into the last month&#8217;s data then there appears to be a sudden upswing for Perl. What&#8217;s this? Is Perl suddenly cool and popular again?</p>
<p>Sadly, it doesn&#8217;t appear so because if you concentrate only on Perl and look at the most popular searches you start seeing queries for variations of the term &#8220;X-Perl&#8221;. X-Perl? You might ask. What is this? Is it some new Perl-GUI binding? Perl on MacOS X? Is it a new uberfast matrix inspired Perl platform with flashing lights and bells and whistles&#8230; ?</p>
<p>No, its none of these things. The &#8220;superman&#8221; in this case is a new UI for World of Warcraft called X-Perl. And it appears that because people can&#8217;t be bothered to type hyphens they&#8217;re searching for the term &#8220;x perl&#8221; and Google is notching up a point for &#8220;Perl&#8221;&#8230; Oops :-)</p>
<p>This is meant as a suggestion as to what this data could mean. It is by no means scientific and I know that.</p>
<p>Colin.</p>
Posted in advocacy, Perl Tagged: Google trends, Perl <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=48&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/10/18/google-search-trends-for-scripting-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>

		<media:content url="http://perladmin.files.wordpress.com/2008/10/perl_search_trends.png?w=98" medium="image">
			<media:title type="html">perl_search_trends</media:title>
		</media:content>
	</item>
		<item>
		<title>Will the tightening economy make Perl more attractive?</title>
		<link>http://perladmin.wordpress.com/2008/09/25/will-the-tightening-economy-make-perl-more-attractive/</link>
		<comments>http://perladmin.wordpress.com/2008/09/25/will-the-tightening-economy-make-perl-more-attractive/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 00:47:22 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[advocacy]]></category>
		<category><![CDATA[economy]]></category>
		<category><![CDATA[sysadmin jobs]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=45</guid>
		<description><![CDATA[Based purely on speculation and my own view of the universe, rather than on any material evidence, I was wondering if the tightening of economies around the world may not end up being beneficial for Perl.
Don&#8217;t get me wrong. I&#8217;m not suggesting something insane like Perl makes you keep your job. But rather I&#8217;m speculating [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=45&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Based purely on speculation and my own view of the universe, rather than on any material evidence, I was wondering if the tightening of economies around the world may not end up being beneficial for Perl.</p>
<p>Don&#8217;t get me wrong. I&#8217;m not suggesting something insane like Perl makes you keep your job. But rather I&#8217;m speculating that it might help simply because Perl isn&#8217;t used soley for the web. So take, for example, the situation where a company has a dedicated web developer and a site written in something other than Perl. If they also have a dedicated Sysadmin then you can bet that much of the stuff in the back end is written in either Perl or Python. Since Perl has been around longer, its more likely to be that.</p>
<p>To be fair, your web developer might be mightily skilled at design and PHP. They may be totally XHTML 1.0/strict and CSS2.1 + firefox/safari proprietary extensions compliant. They may have &#8220;mad Javascript skillz&#8221;, and they may even be pretty fun to hang out with &#8211; say Dex of 17, Chr of 16 and Int of 16. Your sysadmin character is likewise highly skilled at (whatever the hell it is that non-sysadmins think we do and get paid for, because yeah, we can do that :-). Okay, so your techie might have the social skills of a somewhat evolved baboon, easily distracted by shiny objects (or &#8220;hi tech gadgets&#8221; as we call them now), and the sole demand for raman noodles, but they too are pretty good at their job. Lets call it Chr 12, Dex 15, but an Int of 17 and Wis 17.</p>
<p>In a tightening economy, which would you fire, your Sysadmin or your Web designer?</p>
<p>You see people may believe that &#8220;Perl <em>whatever&#8217;s</em>&#8220;, but it doesn&#8217;t. Its actually pretty useful at doing things. At getting the data from your database to your Apache config, to your BIND zone files, to your password files and your websites. Its also pretty handy at quietly monitor the entire network 24/7, and record all of your important information, and parsing your log files.</p>
<p>PHP &#8230; not really quite the so handy in that arena. And I do remember a very intelligent developer (of C) friend of mine some 10 years ago back in PHP v3 days trying to admin her box with PHP scripts. More of the kind of thing that developers do when they&#8217;re bored than having any practical purpose.</p>
<p>And lets face it. You can let the servers run themselves, or you can let the web site run itself. Which is more likely to break. The fast moving always on, always doing things servers or the website?</p>
<p>I&#8217;m not saying that knowing Perl will save your job. I&#8217;m certainly not wishing any PHP/Ruby/Python devs lose their jobs. Please guys not spams, we like you, really. I&#8217;m just speculating that because Perl isn&#8217;t used solely for developing webapps, being a Perl dev might not be a bad thing right now.</p>
Posted in Perl Tagged: advocacy, economy, Perl, sysadmin jobs <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=45&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/25/will-the-tightening-economy-make-perl-more-attractive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>I moved my Blog to perladmin.oreally.co.uk</title>
		<link>http://perladmin.wordpress.com/2008/09/16/i-moved-my-blog-to-perladminoreallycouk/</link>
		<comments>http://perladmin.wordpress.com/2008/09/16/i-moved-my-blog-to-perladminoreallycouk/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 04:05:57 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[moving]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=43</guid>
		<description><![CDATA[I moved my blog to WordPress hosted on my own box. It can now be accessed via the URL http://perladmin.oreally.co.uk/
As for why? Well I&#8217;ve played with wordpress on and off for a while, but I never really liked the previous versions that much and had given up several revisions ago. I decided to try looking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=43&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I moved my blog to WordPress hosted on my own box. It can now be accessed via the URL <a href="http://perladmin.oreally.co.uk/">http://perladmin.oreally.co.uk/</a></p>
<p>As for why? Well I&#8217;ve played with wordpress on and off for a while, but I never really liked the previous versions that much and had given up several revisions ago. I decided to try looking at it again this time around and really prefered the interface. I&#8217;m still not at all convinced about much of the rest of it, particularly it being written in PHP since I have issues with that on several levels, but it is what it is. I decided to try it on line via this site with wordpress.com.</p>
<p>Interestingly enough Google must love this place because for certain searches the site is coming up in first place. Which is surprising, if not troubling since its a new site and if I can do it, any spammer can. I&#8217;ve even had people start stealing the content already, and there&#8217;s barely anything here&#8230;</p>
<p>But what I didn&#8217;t like is that I couldn&#8217;t customize it the way I wanted to. My PHP is limited but I know enough to hack on the code a little and wanted to try doing that on WP 2.6.2 as I have on earlier versions. I also wanted to try a different theme than the half dozen offered, and even something as simple as changing the CSS couldn&#8217;t be done without a paid update. This seemed a little much to ask for something so relatively simple, so I decided to move it off to my own box.</p>
<p>I&#8217;m not sure how well it will work since my box is about 10 years old, but hopefully it will be upgraded soon, and I have other options if needed :-)</p>
<p>So come on over to the new site, see if you like it:</p>
<blockquote><p><a href="http://perladmin.oreally.co.uk/">http://perladmin.oreally.co.uk/</a></p></blockquote>
<p>Colin.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=43&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/16/i-moved-my-blog-to-perladminoreallycouk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Why does IPTables not log when it is started/stopped?</title>
		<link>http://perladmin.wordpress.com/2008/09/09/why-does-iptables-not-log-when-it-is-startedstopped/</link>
		<comments>http://perladmin.wordpress.com/2008/09/09/why-does-iptables-not-log-when-it-is-startedstopped/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 17:58:08 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=33</guid>
		<description><![CDATA[I have to say that it is very strange that iptables doesn&#8217;t log when it is started, stopped, restarted or even when a rule is added. Given how big of a part in the security scene iptables plays, you&#8217;d think that by default it would send a notice to syslog, probably at daemon.notice level, when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=33&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have to say that it is very strange that iptables doesn&#8217;t log when it is started, stopped, restarted or even when a rule is added. Given how big of a part in the security scene iptables plays, you&#8217;d think that by default it would send a notice to syslog, probably at <code>daemon.notice</code> level, when it is stopped and started. After all this is one fairly important tool. Not the only (hopefully) but usually a pretty important one and in many cases it really is the only thing between a server and the bad guys (yes, <em>I know</em>, that it shouldn&#8217;t be the only thing..).</p>
<p>I mention this because I just came back from lunch to find my SSH connection wouldn&#8217;t respond to input. This has happened occasionally, but as far as I&#8217;ve been able to tell (by piecing together information afterwards), it has invariably been because iptables was restarted.</p>
<p>Now me, I just add the new rule to the firewall and if it works and I want to keep it, add it to the config file separately. I don&#8217;t believe in restarting iptables because if you f*ck up the new rule and restart the firewall you&#8217;re not only screwed then, but if you reboot the server too. For a remote connection that&#8217;s bad news. At least if you screw up the rule you know that you did the moment that you add it to the firewall, so if it comes to remotely rebooting the box you know it will come back up without a problem. And yes, I did do that once. It was a case of</p>
<blockquote><p>&#8220;I&#8217;ll just update the firewall rules before I leave this morni&#8230; oh er.. oh, what did I type? Sh*t!&#8221;.</p></blockquote>
<p>But my colleague believes that you should add it to the config file and restart because that way you&#8217;re only entering it once. Which is nice, and does indeed have its merits because there&#8217;s less chance of a typo, getting the order wrong, etc., but it also means you need to stop and restart iptables. Aside from the risk of locking yourself out of the server to me that&#8217;s a royal pain. You lose any temporary rules, and you worst of all you lose the connection tracking. Which means my nice and quiet SSH session which was working before lunch and has my open Vim session in it &#8230; is now not working because its state is not new or established or related, and thus not a valid connection state as far as iptables is concerned and thus the packets are blocked, and the connection gets dropped. *grr*</p>
<p>More irritatingly though is that I can&#8217;t *know* that that&#8217;s what happened because iptables doesn&#8217;t log when it stopped or started. Which is pretty crazy really if you think about the fact that every daemon under the sun logs that kind of information. It never occurred to me before, but its true, at least on my box.</p>
<p>Incidentally, if you&#8217;re looking to fiddle with the firewall remotely, a few good tricks are;</p>
<ol>
<li>Add a rule to allow your SSH connection through as a first rule. E.g.<code>iptables -I INPUT 1 -p tcp --dport 22 -s &lt;your ip&gt; -j ACCEPT</code></li>
<li>Use a <code>sleep</code>; <em>undo</em> system. This works for both the command line and restarting iptables. For example;
<ol>
<li>Add a rule on the command line, knowing the rule number you&#8217;ll give it, and then set it to undo a moment later;<code>iptables -I INPUT 23 &lt;what you want to happen&gt;; \</code><br />
<code>sleep 10; \</code><br />
<code>iptables -D INPUT 23</code></li>
<li>Restart iptables, then stop it again if it doesn&#8217;t work;<code>/etc/init.d/iptables restart; sleep 10; /etc/init.d/iptables stop</code></li>
</ol>
</li>
</ol>
<p>The second tip uses the a chain of commands  which do whatever might go wrong, sleep and then undo it. The reason for this is that it will execute a command and then move on to the next command in the list, so if you submit the commands like this, where you <strong>must</strong> include the semi-colons between the commands, (don&#8217;t forget the \&#8217;s in the first case, or just ignore them and don&#8217;t hit return) , then the shell will execute them one after another like this &#8230; do &#8220;fiddle with firewall command&#8221;, sleep, and do &#8220;undo fiddle command&#8221;. In the even that you don&#8217;t do anything, the firewall will be restarted and then ten seconds later, stopped. This is good because in the event that you f*ck up the firewall rules and can&#8217;t type, 10s later you&#8217;ll be able to type again because the firewall has been taken down again.</p>
<p>But the best part of this trick is that in the event that you can type you do &#8230; you wait a second or so, and then type <code>Ctrl-C</code> to interupt the currently running command. This will be the sleep command, so you&#8217;ll interrupt that and interrupt the list of commands to execute so your last command, the &#8220;undo&#8221; command, is never run. So if you can&#8217;t get into the box it unsets its firewall. If you can get in then you kill the sleep command before it finishes thus the &#8220;undo&#8221; is never executed.</p>
<p>As a tip, if you&#8217;re not sure when to hit <code>Ctrl-C</code>, add a command echo &#8220;Sleeping&#8221; into the list just before the sleep command. If you don&#8217;t see that then the firewall was messed up. If you do see it then your changes worked, and you can kill the rest of the commands with <code>Ctrl-C</code>.</p>
<p>Colin.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=33&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/09/why-does-iptables-not-log-when-it-is-startedstopped/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtualbox 2.0 is out</title>
		<link>http://perladmin.wordpress.com/2008/09/09/virtualbox-20-is-out/</link>
		<comments>http://perladmin.wordpress.com/2008/09/09/virtualbox-20-is-out/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 15:05:12 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[f8]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=31</guid>
		<description><![CDATA[For those who have never used it, Virtualbox is Virtual Machine software from Sun Microsystems, who bought the previous owners, innoTek Gmbh. While my experience with VM software is not extensive, I&#8217;ve used a few programs on a Windows host and I&#8217;m pretty impressed with Virtualbox. VMWare was, by comparision much much slower, although this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=31&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For those who have never used it, <a href="http://www.virtualbox.org/">Virtualbox</a> is Virtual Machine software from <a href="http://www.sun.com/">Sun Microsystems</a>, who bought the previous owners, innoTek Gmbh. While my experience with VM software is not extensive, I&#8217;ve used a few programs on a Windows host and I&#8217;m pretty impressed with Virtualbox. VMWare was, by comparision much much slower, although this may have changed in more recent editions. I also hated how tightly into the OS VMWare wove itself. Uninstalling it has broken several computers of mine and resulted in days of trying to unbreak its grip on my network adapter. (Trying to remove the virtual adapters from the MAC bridge when VMWare was no longer installed). In comparision to VB, MS Virtual PC appears to be lacking features &#8211; or at least an interface, and plainly has no design to support anything but Windows with boot options of &#8220;Windows 95, 98, NT, 2000, XP, Vista and OTHER&#8221;. It isn&#8217;t surprising, given that they sell Windows, but I can&#8217;t help but wonder how effective it can really be for non-windows, which at the moment is my thing since I&#8217;m running Windows as the host OS.</p>
<p>Virtualbox gives a nice range of features and appears pretty fast. 2.0 is no exception, appearing to most fix a few gotchas which never bit me. My only complaint about it is that aperiodically I&#8217;ve found that the clipboard will break. This is from Windows as a HostOS to CentOS and Fedora 8 as guest OS&#8217;s. You&#8217;ll be typing along and suddenly the clipboard won&#8217;t work, for Windows or in the guestOS and you end up needing to restart the Vbox to clear it.</p>
<p>I&#8217;ve yet to see any information explaining what is happening, but what I suspect is happening is that an event is being lost on the client end and this ties up the entire clipboard because Windows doesn&#8217;t get the acknowledgement that the event was processed. I did once see an error message from the Xserver about it dropping events so this seems to be a reasonable guess.</p>
<p>My solution to this has been to work around it and instead of using X directly on the console of the Vbox to connect to it via Nomachine&#8217;s NX client. This no only gives me the equivalent of &#8220;screen&#8221; under X, with the ability to disconnect and reconnect later, but I&#8217;ve never had the clipboard cross-over screw up. Which is really handy.</p>
<p>So if you haven&#8217;t already tried it but you&#8217;d like to, or you&#8217;d like to try VM&#8217;s and don&#8217;t know where to start, or you&#8217;re looking to try Linux, but are too addicted to your Windows apps to be logged out of your computer, Virtualbox will be great for you.</p>
<p>As for choice in Linuxes, well I&#8217;ve going with Fedora 8 and CentOS 5.2. Personally I&#8217;ve been concerned about the direction of Fedora, especially with its &#8220;pump a new version out every few months&#8221; attitude, (as opposed to putting out something decent). I did try Fedora 9 from the live CD and it sucked, especially when compaired to F8. F8 has, so far, been a pinnacle in the Fedora for me. By comparison CentOS 5.2 appears to have a very strong stable base, and ever bit as usable for a desktop OS as a server OS. As a quick comparison when running under Virtualbox in order to be able to have a graphical resolution which matches my windows box (which is only 1280px by 1024px, so nothing to write home about) Fedora 8 requires you allocate 32Mb of memory for graphics, but CentOS 5.2 requires only 16Mb. I think it says something about F8.</p>
<p>Colin.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=31&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/09/virtualbox-20-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Nomachine NX Client Times out &#8220;Negotiating Link Parameters&#8221;</title>
		<link>http://perladmin.wordpress.com/2008/09/09/nomachine-nx-client-times-out-negotiating-link-parameters/</link>
		<comments>http://perladmin.wordpress.com/2008/09/09/nomachine-nx-client-times-out-negotiating-link-parameters/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 14:39:39 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[nomachine]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[nx]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=29</guid>
		<description><![CDATA[I use NX Client from Nomachine to connect to one of my boxes, or more accurately, to a copy of CentOS 5.2 I&#8217;m running in a VirtualBox virtualbox that I run on my Windows box. Its kinda wierd, but cool in some respects as half of my computer is now running CentOS; pretty much literally [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=29&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I use NX Client from <a title="Nomachine creators of NX client" href="http://www.nomachine.com/">Nomachine</a> to connect to one of my boxes, or more accurately, to a copy of <a title="CentOS; Community Enterprise Linux" href="http://www.centos.org/">CentOS 5.2</a> I&#8217;m running in a <a title="Virtualbox, previously from Innotek, now Sun Microsystems" href="http://virtualbox.org/">VirtualBox</a> virtualbox that I run on my Windows box. Its kinda wierd, but cool in some respects as half of my computer is now running CentOS; pretty much literally since half the RAM can be used by it and since I connect via NX client it sits in a window which lives on a second monitor.</p>
<p>This is a cool setup. Its a way to wean myself from Windows, to run a test environment with yet another web browser (ok, so its Firefox, but still), while at the same time playing with VM&#8217;s (and X11 as I used to do). It also gives me a great excuse to use NX which is, it must be said, far better than the other free Xserver for Windows, <a title="Xming by StraightRunning.com" href="http://www.straightrunning.com/">Xming</a>. I think its the compression or something, or maybe that its a dedicated protocol server and client, and Xming is implementing X11 directly. Whatever, Xming is often slow and sometimes iffy (to the point where I never felt comfortable purchasing the latest version). It is particularly bad at handling network issues I&#8217;ve found, where it will infrequently just hang the connection, causing you to lose all of your window placements.</p>
<p>Not so with NX which appears to be the equivalent of screen for X. Disconnect? Okay, I&#8217;ll just sit here and suspend your session and wait for you to come back. This feature alone is amazingly useful, but combined wtih the built-in compression it works very well. Part of the high quality compression is that they compress the data in the connection protocol, X11, VNC, or Radmin, instead of compressing the stream of data, as happens with say SSH compression. Although I haven&#8217;t tried it, you can apparently still use X sessions over a dialup line. I know its considerably easier to bring up my X session at home over a cable modem link with NX that it is with Xming, which crawls on anything but having a text window open.</p>
<p>One issue I do have with NX is that its is really complicated to setup. I spent a good couple of hours installing things and repeated logging into my box, with numerous updates to the local SELinux config to allow NX under SSH to launch various things, including being able to write a log to /var/log. That&#8217;s exactly the kinda of crap people won&#8217;t deal with in general. If you&#8217;re having this problem then I fully recommend running this command:</p>
<p><code>audit2allow -l -r &lt; /var/log/audit/audit.log</code></p>
<p>After each failed login. This gets audit2allow to list only the allow rules which are needed for the failures since the last reload of the SELinux policy (<code>-l</code>) and (<code>-r</code>) output them with the corresponding <code>require { }</code> structure.</p>
<p>Beyond that, which I got on my FC8 system, even using FC8 RPM&#8217;s (but not on my CentOS 5.2, with both the CentOS and NX RPM&#8217;s) the only issue I&#8217;ve found with NX is that occassionally it seems to get confused. When you open your client connection it will go through the normal setup, the window will open and it will resume the session, but the final Windows dialog box will sit there saying</p>
<p>&#8220;Negotiating Link Parameters&#8221;</p>
<p>It will do this for about 30s to a minute, mean while the session is up and running and usable. At the end of what seems to be a timeout period, it seems to give up. At that point it closes both the dialog box and the entire NX client window. Once this happens you can try as many times as you like and it will just repeat.</p>
<p>I&#8217;ve found that the only answer to this is to open up task manager with alt-ctrl-delete, and to kill all &#8220;NX&#8221; processes. Once you do that it works again.</p>
<p>Col.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=29&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/09/nomachine-nx-client-times-out-negotiating-link-parameters/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Releases Updates for Chrome</title>
		<link>http://perladmin.wordpress.com/2008/09/09/google-releases-updates-for-chrome/</link>
		<comments>http://perladmin.wordpress.com/2008/09/09/google-releases-updates-for-chrome/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 14:09:36 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[chrome]]></category>
		<category><![CDATA[nonsense]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=25</guid>
		<description><![CDATA[Google&#8217;s new browser Chrome has been getting varied reviews. It seems the usefulness of the browser depends on your point of view, where those in the tech industry are, kinda like me, a little &#8220;neh&#8221; about it, others in the mainstream media are raving about it. It is being called all sorts of things including [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=25&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Google&#8217;s new browser Chrome has been getting varied reviews. It seems the usefulness of the browser depends on your point of view, where those in the tech industry are, kinda like me, a little &#8220;neh&#8221; about it, others in the mainstream media are raving about it. It is being called all sorts of things including a replacement OS and other such nonsense. Which might be nice, if it were possible&#8230;</p>
<p>It also has a few issues. I couldn&#8217;t help but notice that they had to fix the carpet bombing flaw which affected other browsers, and they had a few issues with other sites that they&#8217;ve now fixed.</p>
<p>I couldn&#8217;t help but notice the blog post for <a href="http://googlechromereleases.blogspot.com/2008/09/beta-release-0214929.html">beta-0214929</a>, which included fixes for such minor sites as</p>
<ul>
<li><span class="Apple-style-span" style="font-size:13px;font-family:Verdana;"><span class="Apple-style-span" style="font-size:13px;">http://search.daum.net/</span></span></li>
<li><span class="Apple-style-span" style="font-size:13px;font-family:Verdana;"><span class="Apple-style-span" style="font-size:13px;">http://search.empas.com/</span></span></li>
<li><span class="Apple-style-span" style="font-size:13px;font-family:Verdana;"><span class="Apple-style-span" style="font-size:13px;">http://meta.ua/</span></span></li>
<li><span class="Apple-style-span" style="font-size:13px;font-family:Verdana;"><span class="Apple-style-span" style="font-size:13px;">http://search.naver.com/</span></span></li>
<li><span class="Apple-style-span" style="font-size:13px;font-family:Verdana;"><span class="Apple-style-span" style="font-size:13px;">and http://search.yahoo.com/</span></span></li>
</ul>
<p>Hmm. Google&#8217;s new Terminator of browsers, designed to hunt down and kill other browser because it integrates with Google Gears and other stuff Google offers (which is like everything) conveniently didn&#8217;t work with a few minor search engines&#8230; Well that&#8217;s okay, it was only a few little ones. Oh, and Yahoo!. Well isn&#8217;t that a coincident :p</p>
<p>I wouldn&#8217;t be surprised if the internal name for this project is the Googlenator&#8230;</p>
<p>I also thought it was interesting to note that the &#8220;Links to this Blog Post&#8221; contained a rather notable entry:</p>
<div id="attachment_23" class="wp-caption aligncenter" style="width: 310px"><a href="http://perladmin.files.wordpress.com/2008/09/capture-1.png"><img class="size-medium wp-image-23" title="Screenshot of Google's Chrome blog blog links" src="http://perladmin.files.wordpress.com/2008/09/capture-1.png?w=300&#038;h=155" alt="Screenshot of Google's Chrome blog blog links" width="300" height="155" /></a><p class="wp-caption-text">Screenshot of Google</p></div>
<p>&#8230; Ahh but they allow it, so they must be &#8220;open&#8221;. :p</p>
<p>Col.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=25&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/09/google-releases-updates-for-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>

		<media:content url="http://perladmin.files.wordpress.com/2008/09/capture-1.png?w=300" medium="image">
			<media:title type="html">Screenshot of Google's Chrome blog blog links</media:title>
		</media:content>
	</item>
		<item>
		<title>Bad Lunch Combination</title>
		<link>http://perladmin.wordpress.com/2008/09/04/bad-lunch-combination/</link>
		<comments>http://perladmin.wordpress.com/2008/09/04/bad-lunch-combination/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 19:13:33 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[nonsense]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=15</guid>
		<description><![CDATA[Bananas and Mountain Dew are both great foods for Coders. Caffeine and lots of vitamins, they just don't work well together.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=15&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Mountain Dew and Bananas&#8230; ick.</p>
<p>Its sort of my fault, well okay, completely, but I was starting to doze off in that afternoon lull, so I decided to get a soda&#8230; you know, the old coders and caffeine thing. I also decided a banana would go help perk me up too as it has lots of good stuff. A quick Google search shows that the good stuff includes Vitamin B to help calm the nervous system, and fibre to well.. &#8220;help&#8221;. Which means that they&#8217;re the idea fruit for programmers everywhere :-)</p>
<p><span id="more-15"></span></p>
<p>I would just advise against eating them together. One fizzes, the other is &#8230; sticky. Its really not a good combination, although the desired result has occurred as I&#8217;m now feeling bright eyed and bushy tailed, if a little burpy, so back to it :-)</p>
<p>Incidentally why do they show all of the fibre supliment ads on TV at dinner time? The last thing I need to be thinking about when I&#8217;m eating is that it won&#8217;t come out the other end. Maybe the target demographic, which appears to be baby-boomers based on the ads, has already eaten by that time and is now watching TV while digesting, and so its appropriate? And why are they always so lame and show people rubbing their stomaches like they&#8217;re playing &#8220;Simon says&#8221; ?</p>
<p>And I love the celebrity endorsements for fibre suppliments &#8230; &#8220;I&#8217;m a celebrity, so you know this product works&#8221;. Really? Because what, you don&#8217;t walk around going &#8220;God I need to poop&#8221;? I always assumed being a celebrity stopped all of those kinds of basic needs that the rest of us have. You know, no tussled bed hair (unless you&#8217;re an incredibly cool guy), you don&#8217;t sweat, or smell, or need to use the bathroom. Knowing that they&#8217;re human too kinda breaks the fantasy a little.</p>
<p>Although I did discover the other day that celebs do sweat. I know because some news source without any important news to report was busily reporting on how Jennifer Lopez sweats, complete with pictures and, incase the pictures weren&#8217;t enough, zoomed in pictures with highlighting rings. FFS people we don&#8217;t care. These days I&#8217;d class J&#8217;Lo as considerably more worth while than the moron who took the pictures. Especially when they concluded the report by saying that they assumed it was like that because she&#8217;s training for some athletic event or other (to raise money for charity?). Lucky thing that. Had she just been, ye know .. &#8220;hot&#8221;, then they&#8217;d probably have been calling someone to ask if she was going to get her celeb status revoked for being normal. Honestly.</p>
<p>And yes, I realise that so far there&#8217;s been crap-all in the way of Perl postings. I&#8217;m getting to it.</p>
<p>Anyway, back to it&#8230; really.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=15&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/04/bad-lunch-combination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Chrome; A second look</title>
		<link>http://perladmin.wordpress.com/2008/09/04/google-chrome-a-second-look/</link>
		<comments>http://perladmin.wordpress.com/2008/09/04/google-chrome-a-second-look/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 14:53:02 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[chrome]]></category>
		<category><![CDATA[javascript/html/css]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=12</guid>
		<description><![CDATA[After a night's sleep I took another look at Google Chrome and discover some answers and some more oddities.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=12&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Following on from <a href="http://perladmin.wordpress.com/2008/09/03/googles-chrome-web-browser-a-first-look/">my previous post about Google Chrome</a>, Googles WebKit based new browser I think I have some answers to my issues.</p>
<p>The first issue was that the background colours on my select lists were black. It turns out that this is due to the use of the CSS directive <code>background-color: transparent;</code>. Both this and <code>background-color: inherit;</code> appear to cause <code>select</code> elements to have a black background. I don&#8217;t see any obvious reason why I had this so I&#8217;ve removed it. I suspect that this might have been added for an IE fix &#8211; but if that&#8217;s the case its okay because I&#8217;m already using IE conditional comments to load IE only style sheets.</p>
<p><span id="more-12"></span></p>
<h3>Rounded Corners, Disabled by Design?</h3>
<p>My second issue &#8211; that the rounded corners are disabled also has a solution and it is strange. Weirdly it seems that the default user style sheet disables them. This seems very strange given that Google released this browser because they were tired of waiting for web browsers (Read: Internet Explorer) to catch up with modern web standards, and thus be useful for their products. But there it is:</p>
<p>It appears that there&#8217;s also work to do on my part. I had been using <code>-webkit-border-radius: #px;</code>, just as I have with <code>-moz-border-radius</code>. This always works, but what doesn&#8217;t is specifying multiple corner radii values in the same way that you specify multiple border thicknesses, margins or paddings. As describe by <a href="http://www.css3.info/border-radius-apple-vs-mozilla/">Peter Gasson on CSS3.info</a>, in the Mozilla specification they allow only regularly rounded corners and thus you can specify a two or four value list to <code>-moz-border-radius</code> and see each of the pairs of corners, or all corners, curved. The CSS3 spec, and thus Safari, you can use irregularly rounded corners by specifying two values for each corner. This is nice, but would lead to a spec of eight values for the single border-radius definition, or some other kludgy definition. Therefore they&#8217;ve decided to fore-go this and only use the individual specifications (<code>-webkit-border-top-right-radius</code>, etc.). Needed to update my code for that.</p>
<h3>Discovered Some New Features</h3>
<h4>Auto/Silent Updating of Stylesheets</h4>
<p>I just discovered a nice feature in Chrome. I had a style sheet open in a second tab &#8211; the style sheet with the offending <code>-webkit-border-radius</code> code from above. After fixing it I reloaded the tab with the website open. When I flicked back to the style sheet a moment later it had been updated to the new version. This is nice, although it can also be bad. Sometimes I want to keep the old version open for comparison, so having it auto-update isn&#8217;t always desirable, but its still an interesting feature.</p>
<h4>JavaScript Console behaves different when reloading if it is open</h4>
<p>I&#8217;ve also discovered that the JavaScript console has different behaviour if you reload the page when it is open then it will throw errors it didn&#8217;t previously. In this case this is not <em>incorrect</em> behaviour. I cheat and embed a <code>style</code> tag in the code using <code>document.write()</code> because I only know what the spec should be at run time. Its done like this because you can&#8217;t place <code>style</code> tags in the code outside of <code>head</code> element.</p>
<p>What&#8217;s strange about this is not that the site then breaks, but that it doesn&#8217;t break the first time, or any subsequent time, when it is loaded unless the JavaScript console is open. If it is open and you reload the page it breaks. Why is that? Why does it see more the second time, but not the first, and how would this help &#8211; may be it is Apple&#8217;s way of letting sites slide by as best as possible in most cases, but when you have the JavaScript Console open its going to tell you what&#8217;s wrong? That&#8217;s nice, but it seems that it would be more sensible to log the error every time, even if you&#8217;re going to let it slide when the dev console isn&#8217;t open. Otherwise I have to do all of my browsing by opening the dev console and reloading a page, that&#8217;s just not feasible in certain cases; Where I&#8217;m submitting forms for example.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=12&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/04/google-chrome-a-second-look/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Google&#8217;s Chrome Web browser; A First Look</title>
		<link>http://perladmin.wordpress.com/2008/09/03/googles-chrome-web-browser-a-first-look/</link>
		<comments>http://perladmin.wordpress.com/2008/09/03/googles-chrome-web-browser-a-first-look/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 04:23:31 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=7</guid>
		<description><![CDATA[I just downloaded Google Chrome to give it a test drive... its okay.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=7&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So I decided to try out <a title="Download Google's New Web Browser Chrome" href="http://www.google.com/chrome/index.html">Google&#8217;s new web browser, Google Chrome</a> (&#8220;Chrome&#8221;)</p>
<p>&#8230; so far I&#8217;m not sure on my opinion. I was, I think, hoping to be blown away. I was hoping that it would be Safari in Firefox&#8217;s clothing, and frankly it isn&#8217;t. It is just &#8220;okay&#8221; which is a little disappointing from the company that gave us Google Maps, Google Earth, and lets face it a search engine which at its inception was unique in not being part of a portal.</p>
<p><span id="more-7"></span></p>
<p>Don&#8217;t get me wrong though. I really like that the Safari development team are putting all this focus into making WebKit faster and better, that it supports newer web standards than before, and so on, but for some reason I just really like Firefox &#8211; particularly FF3 which I&#8217;ve been using out of the nightly builds (minefield) for a while now. There are some things which are bloody annoying about it &#8211; I loath the &#8220;awesome bar&#8221;, for example, because I can&#8217;t stand the popping up stuff. I also feel that the <a href="http://getfirebug.com/">Firefox extension, Firebug</a>, is, without question, the single most useful application I have ever encountered. I really can&#8217;t imagine being able to work without it.</p>
<p>With that said, I must say that I was actually pretty pleasantly surprised to see that Chrome does include Safari&#8217;s Javascript Console &#8211; and its very nice that it is right there on the menu like the latest Safari, rather than requiring the hocus-pocus that earlier versions of Safari/WebKit required. Its useful to find, but I&#8217;ve already discovered a couple of issues.</p>
<p>Firstly; And this is pretty big for me, you can&#8217;t run it within <a href="http://www.sandboxie.com/">Sandboxie</a>. If you&#8217;ve never used it, Sandboxie is a very useful piece of software which creates &#8220;sandboxes&#8221; inside which your applications can run. These sandboxes have restricted access to the computer so applications within a sandbox can, for example, read all of your files, but not write to them. When they write to a file they actually write to a copy of the file. This is great for stopping people breaking into your machine via web site exploits because they generally need to install software, or make changes to files. The sandbox stops (or at least &#8220;mitigates) intrusion attempts because an attacker can only write to copies of files &#8211; copies which can be deleted by emptying the sandbox &#8211; preventing them from overwriting files on your computer. An attack which causes the execution of code sees the program run within the sandbox only &#8211; and thus any files it writes are also written to the sandbox.</p>
<p>All-in-all its great software and I do all of my web browsing through it with all browsers that I use (Firefox, Safari, Opera, IE5.5 -&gt; IE7) (Yes I test lots, I only use FF normally) and they all work. Google&#8217;s Chrome &#8230; doesn&#8217;t. All it does is say that a page can&#8217;t be loaded, or that a page is taking too long and asks me if I want to kill it. Killing it doesn&#8217;t work, of course.</p>
<p>Apparently this is an issue with Chrome needing to use kernel mode drivers. I haven&#8217;t been able to find out more details as to what and why, but it seems sort of strange. Its almost as though Chrome is deciding to bypass the normal Windows way of doing things&#8230; :-)</p>
<p>Anyway, that sucks and the only solution I&#8217;ve seen so far is to disable so setting which allows any sandboxed application to use kernel mode drivers, which doesn&#8217;t sound safe.</p>
<p>Running it outside of the Sandbox I can bring up web pages. My <code>-moz-border-radius</code> and <code>-webkit-border-radius</code> CSS directives appear to be ignored. This is decidedly uncool since rounded corners are all the Web 2.0 rage. More importantly though is that a <code>select</code> list with a <code>background-image</code> attribute appears to result in a black background. I&#8217;m not sure why as yet, but the Firebug inspired JavaScript Console is certainly handy in fixing it.</p>
<p>So while Chrome looks pretty and the sandboxed/threaded tabs sounds like a good plan, its missing somethings that work otherwise, so its coming out as &#8220;neh&#8221;. I doubt I&#8217;ll change anytime soon.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=7&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/03/googles-chrome-web-browser-a-first-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>How WP Changed My Program</title>
		<link>http://perladmin.wordpress.com/2008/09/03/how-wp-changed-my-program/</link>
		<comments>http://perladmin.wordpress.com/2008/09/03/how-wp-changed-my-program/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 15:42:21 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[widgets]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=5</guid>
		<description><![CDATA[I was just playing with the widgets and I like that when you add them to the widget list that you can then edit them in situ. It is a really clean way of dealing with the extra info for a widget which I&#8217;m just incorporating into my company&#8217;s app (which I&#8217;m sure I&#8217;ll continually [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=5&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was just playing with the widgets and I like that when you add them to the widget list that you can then edit them in situ. It is a really clean way of dealing with the extra info for a widget which I&#8217;m just incorporating into my company&#8217;s app (which I&#8217;m sure I&#8217;ll continually refer to as &#8220;my application&#8221; or &#8220;my app&#8221;) because we have something similar using drag-and-drop to indicate the active components. In my case though the extra info is prompted for later and its very long winded. Making the widgets editable in situ like this would make it much clearer.</p>
<p>My only issue with making this change is that this is still in embedded HTML not templates&#8230; so lots of code repeating :p</p>
<p><span id="more-5"></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=5&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/03/how-wp-changed-my-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello .. er .. World</title>
		<link>http://perladmin.wordpress.com/2008/09/03/hello-er-world/</link>
		<comments>http://perladmin.wordpress.com/2008/09/03/hello-er-world/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 15:29:06 +0000</pubDate>
		<dc:creator>perladmin</dc:creator>
				<category><![CDATA[rant]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[hello]]></category>

		<guid isPermaLink="false">http://perladmin.wordpress.com/?p=3</guid>
		<description><![CDATA[A quick hello, and an explanation of why I moved here.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=3&subd=perladmin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So having unsuccessfully tried to operate a blog once before I&#8217;ve decided to try again.</p>
<p>When I started blogging a couple of years ago I found it to be extremely awkward to do. This is, in part, because I cannot stand those blogs where people post pointless and bland commentaries about nothing exciting, or indeed interesting. Its not that I don&#8217;t like blogs. Some blogs are very interesting &#8211; although I don&#8217;t follow any with any degree of regularity &#8211; as they let you see interesting perspectives.</p>
<p><span id="more-3"></span></p>
<p>Developer/coder blogs are particularly useful for this as they allow you to see a product evolving. Indeed I was so interested by this that I&#8217;d even started writing one for my company. We don&#8217;t have any policy on writing blogs unlike many large companies who insist that their staff also blog about what they&#8217;re doing. I loved the idea that I could increase interest in our software by letting customers (current and future) know what I was adding to the program. I mean isn&#8217;t it kind of cool to see the software you&#8217;ve bought (and get free upgrades for) or are thinking about buying being made? Okay, yes it is nerdy, but its cool in the same way that you can watch doughnuts being baked or coins being minted. Many people have the same fascination with seeing a product being made &#8211; even if they don&#8217;t necessarily understand what is happening, or indeed care about how it happens, may be it is just because they&#8217;re simply seeing something unusual.</p>
<p>So with the best of intentions I&#8217;d decided to write a company blog, or at least a developer blog for my company. I set out with the idea of making quick posts and rapid updates. Short posts which would say &#8220;I&#8217;m adding a feature X&#8221; or &#8220;Having a little trouble making X work&#8221; or &#8220;Hey look, it looks like this now&#8221;. But somehow it never quite worked out like that. Instead I would release a new version of the software and then to &#8220;relax&#8221; would blog about it. So I&#8217;d try to cover some of the new featues. But then a new feature would be involved, so I would write a little more about it than other features. Then, as I would be describing something I&#8217;d realise that not everyone would understand, but because my post was too long already I couldn&#8217;t describe it there, so I&#8217;d start a new blog entry to explain that &#8230; and by the time I&#8217;d fixed the second post the first one had taken so long that I&#8217;d have to save it and come back to it.</p>
<p>As you might expect, &#8220;coming back to it&#8221;, was a pretty final statement. All of a sudden a few months had gone by without any new posts. And thus ended the company blog. This wasn&#8217;t really a bad thing because my boss didn&#8217;t really have any interest in me running it &#8211; unless it increased sales in which case that would be great. But for some reason, even though I was using WP and Google et al. were visiting it seems like it was never indexed or some such. Certainly no one else ever saw it, although this was partially because my boss wouldn&#8217;t add it to the main site, because it wasn&#8217;t a revenue generating source&#8230;</p>
<p>My own blog had gone the same way, and apparently even blogger though it was wasting space because it zapped it, as far as I can tell. So I decided to start again and signed up with blogger again. And let me say this quite clearly. Google does many things very well, but blogger is *not* one of them.</p>
<p>I hate the setup stuff for blogs. It takes so long &#8211; even with WP &#8211; that you just don&#8217;t have anything to say by the end of it and it feels like you just wasted an hour messing around. But blogger&#8230; well I decided I&#8217;d use it and wrote my first post &#8211; something similar to this one, but shorter &#8211; and posted it. The writing was a little awkward as I felt like I was fighting the editor window the entire time, but I was going to write it in the WYSIWYG editor, even though I don&#8217;t really like them, because hell, that&#8217;s what bloggers do. And it was okay, but for the fonts which insisted on defaulting to some template value.</p>
<p>So on my next post I decided to fix that in the HTML source view. Now to me there are two modes WYSIWYG which is for dummies, and HTML which is your standard textarea element without adornment. Not so in blogger. At least not so when I was using it. The HTML view was &#8230; a WYSIWYG&#8217;ed text area, but with less WYSIWYG components. There was no raw HTML. It was like blogger was saying you can have the idiot&#8217;s blog writing area, or the simpler idiot&#8217;s blog writing area. And that doesn&#8217;t even address the issue of the HTML it produced being akin to the crap spewed out by Microsoft Office apps when saving as HTML. In resetting font tags caused span tags to be randomly whacked into paragraphs. Trying add a picture was like trying to wrestle a small but decidedly uncooperative bear into place. You&#8217;d move the thumbnail up slightly and three lines of text would jump down to the otherside of the image. I&#8217;d place it where I thought it was good and look at the &#8220;HTML view&#8221; only to find that the image was embedded part way into a block of text when it very clearly should have been before it, and there were freaking span tags randomly opening and closing.</p>
<p>This is ridiculous because most programs just use FCKEditor or TinyMCE and these bugs aren&#8217;t generally a problem. And if they are then you can just grab the HTML source and fix it. Screwing around with that access doesn&#8217;t help, so after wasting the better part of an afternoon fighting with it I decide to give in and I looked around for an alternative.</p>
<p>I ended up on WP because I was going to install WP on my own site, but that required upgrading a bunch of stuff which I don&#8217;t have (old box, which is due to be replaced) so I thought I&#8217;d stop fighting the flow and signup here.</p>
<p>So hopefully &#8230; hello world :)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/perladmin.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/perladmin.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/perladmin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/perladmin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/perladmin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/perladmin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/perladmin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/perladmin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/perladmin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/perladmin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/perladmin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/perladmin.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=perladmin.wordpress.com&blog=4713148&post=3&subd=perladmin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://perladmin.wordpress.com/2008/09/03/hello-er-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61aae2dfc05a21ffc131c785d6dd26f2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">perladmin</media:title>
		</media:content>
	</item>
	</channel>
</rss>