Source Allies Logo

Blog Insights

  • development icon

    Automating the Web with WWW::Mechanize

    And yes, the double colon does mean Perl. However, I know that Python also has the same class modeled after the Perl module. So even if py- is your favorite prefix, this should still be useful. WWW::Mechanize gives you basic access to a "web browser" from your Perl scripts. It has...
  • infrastructure icon

    Creating Services using SMF in OpenSolaris

    OpenSolaris has by far, one of the best service management interfaces that I have used. Below I am going to go over a simple way to turn in shell script into a service managed by the OS. <?xml version='1.0'?>; <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> <service_bundle type='manifest' name='mynewservices'> ...
  • development icon

    Hibernate Embeddable Objects

    Hibernate Embeddable Objects are a really neat way to organize your data model.  Especially, if you have the same few columns in a number of different tables, that all pertain to the same thing. The example commonly used is Addresses.  You may have a number of tables that each have...
  • development icon

    Is trying to learn a new language every year worth it?

    While spending time recently looking for something new to learn that looked interesting, and it still being so close to new years, I was reminded of a bit of advice from the book "The Pragmatic Programmer," learn a new language every year. But is learning a new language every year...
  • development icon

    Keep your dataTable clean with a custom popup

    The basic idea is to output some data to a user in a table and allow them to take an action on each row individually. A fairly straightforward solution is to create a separate page to link to, passing the necessary row information along. If the action is simple enough,...
  • development icon

    Building Perl modules on OpenSolaris

    Anyone that's worked with Perl is probably familiar with CPAN.pm. CPAN.pm is the bundled module that handles downloading and installing modules from the CPAN repository. It usually works flawlessly but I've noticed that on OpenSolaris the process can be a bit more spotty. Let's try installing Mason as an...
  • development icon

    Spring's refreshable beans

    A couple of days ago I found out about a really nice feature in Spring, called 'refreshable bean'. Spring's vision a refreshable bean is a dynamic-language-backed bean that monitors changes to its source code and then reloads itself when changes occur. And it is all this is done without restarting/re-deploying entire...
  • infrastructure icon

    Who Bound Port 8080

    netstat -a -o Now I know that the process PLEX760... is listening to port 8080. It is trivial to kill the process using Task Manager now that I know the process ID (3832), but I really want to know what this thing is, and why it is getting started. This brings...
  • development icon

    YUI3 Lets You Call Webservices With No Server Required

    I like YUI3, mostly because I can use it to fill in the gaps between HTML4 and HTML5, and also because a single line of code can make a button zoom around the page: var myAnim = new YAHOO.util.Anim( 'testButton', { width: { to: 400 } }, 1, ...
  • infrastructure icon

    Unplugging an LVM partitioned USB drive

    Recently I had the heartbreaking experience of having to reboot a Linux server. Normal usage should almost never require you to reboot the OS like you have to so frequently in Windows. In this case I had an external USB drive partitioned with LVM humming along on a Linux server....