Author Archives: Vanberge

Creating an HP Integrity Virtual Machine on HP-UX 11.31

When I was trying to find a way to create an Integrity VM, I had to do alot of research. It was difficult to find updated information and correct syntax for later builds of HP-UX and later versions of the VM software.  Being the thoughtful and forward thinking internet citizen that I am, I figured I’d give back a little…

So, without further adieu, here is the steps necessary to create an HP-UX Integrity VM on HP-UX 11.31 using HPVM version 6.x

Create a virtual switch first

  • hpvmnet -c -S <vswitchname> -n <lanID>
    • The LanID references the numeric portion of the name. Run netstat -in to find yours
    • Example: hpvmnet -c -S vswitch1 -n 10
  • Boot up the switch by running:  hpvmnet -b -S <vswitchname>
  • Run hpvmnet to see a status

Now, create the virtual machine

  • hpvmcreate -P <servername> -l <label or description> -O HPUX -a network:avio_lan::vswitch:<vswitchname>
    • This creates the VM with a default network connection.
  • hpvmmodify -P <servername> -a dvd:avio_stor::file:/path/to/HPUX1131.iso
    • This will create a virtual DVD device connected to an iso for installation later. If you’re going to install from ignite or something else, dont worry about this part
  • hpvmmodify -P <servername> -a disk:avio_stor::lv:/dev/vgname/rdevice
    • This is adding storage for the VM to use. You could also add a disk image file instead of a real logical volume if you wanted
    • To create a disk image file, run something like hpvmdevmgmt -A -S 10G /path/to/vmdir/diskimage.fd
  • Your VM is now created!  You can run hpvmstart -P <vmname> to boot the VM up
  • If you need to install via an iso, just connect to the console by using hpvmconsole -P <vmname> and then selecting boot to file from the boot menu, and then selecting removable media.  Or, just wait and it should boot automatically if you added the DVD device.
  • hpvmstart, hpvmstatus, hpvmstop are useful commands to manage your VMs

SOPA / PIPA – The Day After

1/18/2012 was a very interesting day on the Internet.

I was somehow infatuated with what websites were doing to show their opposition and protest to the SOPA and PIPA bills. I think I liked reddit’s blackout page the best of anybody that I personally saw, but there was certainly alot of creativity across the board.

This blog captured many of the screenshots of big players in the blackout day. They somehow left out my site on that blog, so I’ll go ahead and share what my site looked like with you yesterday.

The most amazing thing, is that I really think this actually worked.

Even GLENN BECK is against it!

This social media age has ignited a fight in the common people. It’s awesome to see. From insane corporate strategies [Netflix], to the occupy movements, to protests that literally changed the landscape of countries: A small spark can ignite a firestorm.

Where the SOPA and PIPA bills will end up remains to be seen, but yesterday was pretty historic. The Internet bonded together and certainly made an impact on a very key turning point in the information age.

Yesterday was supremely significant, yes, but it’s certainly not over. Watch the video. Share it with friends. Use the form to contact somebody and tell them how you feel. Part of the solution.

SOPA / PIPA Blackout

I’m not the “activist” type…

But following the ongoing SOPA and PIPA proposed legislation has me inspired to do my part.

Many strong internet companies are against these bills, and many of them are taking action up to and including blacking out their website for a day.

This is a viral protest, and many sites are taking part in this campaign. Certainly, ericvb.com and its 50 visits per day are merely a drop in an olympic size swimming pool – but we are all swimming in that pool.

Therefore, tomorrow I will be using this handy WordPress plugin to black out my site as well and stand at arms with Wikipedia, reddit, etc.

Learn more about these bills and the blackout by visiting this site:
http://sopablackout.org/learnmore/

Fantasy Football 2011 – Delight and Angers

Our beloved fantasy football league, “The Worst People Ever”, has concluded another epic season of virtual competition. I usually try to come up with a good team name, and this year I chose “Delight and Angers” which couldn’t possibly be a more accurate description.

In the 2010 season, I had a really good year. Arian Foster and a quick Mike Vick pickup powered me to an overall 12 – 2 record and over 2,000 points scoring. I did very well and I don’t mind saying that. But, the regular season means nothing once you make the playoffs. A singular loss by 3 points and the championship is no longer yours; and that is exactly what happened. My brother defeated me, as I can only describe was perfect karma for the terrible defeat I handed him in the regular season. He went on to win the league, and I went on to 3rd place even though I all but dominated overall.

The 2012 season brought me a similar amount of success, although I was much luckier in many areas. Calvin Johnson, Lesean McCoy, and Darren Sproles powered me to the same overall record as last season at 12 – 2. I won 10 games in a row to start the season, but had a few close calls in there. Two of my victories were achieved by less than one point.

I clinched the playoffs very early and tried not to get my hopes up. Obviously anything can happen in this fake sport, as the previous season showed.

As playoffs started, I finished in 1st place and was fittingly matched up with a 4th place Vanlandw. He and I had a 1 – 1 split the regular season matchup. I certainly wasn’t confident in an easy victory; but, I should have been. My team put up the highest score that has ever been tallied in our league’s 5 year lifespan. I honestly felt a little guilty… Vanlandw’s team had put up enough points to beat any of the other 6 teams playing; and I still defeated him by more than 70 points.

I allowed myself to enjoy the success and the notion of playing for a fantasy championship for the first time; and really the matchup was very favorable in my direction. Payner’s team was lacking Matt Forte, Darren McFadden, and it was possible that the Packers may sit his quarterback Aaron Rodgers. I really liked my chances and I was a very heavy favorite to win based on projected points.

Flo even gave me the league trophy a few days early…

I’m not one for superstitions, but he absolutely jinxed me by doing that.

The downward spiral started with Tony Romo getting hurt on the first drive of his game. I literally scored 0 points at the QB position. Shortly after that, Lesean McCoy was rendered with an ankle injury. And with those two players each getting me an average of 20 points a game – I now had a 40 point swing to make up for. I had strong performances from Calvin, Colston, Sproles, and even my kicker – but it was not enough.

I’m settling for 2nd place this year it seems, but I have put together back-to-back 12 win seasons and that is really pretty impressive.

Congrats are surely in order for Payner, and I’m not a sore loser here by any means…

PHP Site Tweaks

Recently I’ve made a couple of subtle tweaks to my theme to fix minor issues that have bugged me for some time.

1: The Completion of Twitter De-integration
First on my list was to button up the exclusion of my Twitter category.  For some time, I’ve been using the Twitter Tools plugin to create weekly digest posts of all my Twitter activity.  I appreciate this functionality quite a lot.  I like being able to search a subject and find my WordPress blog entries AND tweets on the subject.  However, I didn’t like spamming readers via RSS or pushing down the real content of my site with what I’d consider “archival” content.  Ultimately I wanted to exclude the Twitter category from every possible area except if you actually click on the Twitter header link to get to that category.

Using a couple custom tweaks to my theme’s functions.php file, I was able to mostly implement this back in 2010.  The Twitter category primarily only shows up if you go the category page.  But, recently I also happened to notice that the single posts have links to the previous post and next post; and unfortunately this loop didn’t read the standard WordPress query.  The previous/next post links embrace their own functions completely.  As such, these were showing the posts from my Twitter category.  🙁

With a little research on the functions specific to post navigation, I found it was pretty easy to ditch the Twitter category here as well.

Original code for the previous/next links:
<?php previous_post_link( '%link', '<span>'
. _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?>

Updated code for the previous/next links to exclude my Twitter category:
<?php previous_post_link( '%link', '<span>'
. _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title', FALSE, '28'  ); ?>

The FALSE indicates that the next/previous don’t have to be from the same category, and then the ’28’ is the last variable which is “excluded_categories”.

So, the Twitter category now will really only show up if you’re searching or if you’re clicking on the Twitter link in the header nav bar.  I love WordPress.

2: Double Sentence Spacing
Next up is the effect of my typing style that I cannot break.  When I’m done typing a sentence, I hit the spacebar twice.  This is certainly a debated point as to whether single or double sentence spacing is correct – especially on the internet.  It creates “rivers” of white space at times that can be a distraction, and can be a waste of page space and characters in database tables.  Even worse, my theme would display a quirky structure at times by moving that 2nd space onto the leading edge of a new line, hence starting the new line one space indented from the rest of my site.  It looked terrible.

Example of bad spacing, note the clear indent on the 2nd line:
Note the clear space indenting the 2nd line

In my opinion, it’s better to single space.  I just can’t seem to do it.  I can’t manage to break that habit.  So, I scoured the internet for ways to make WordPress do it for me.  It didn’t take long for me to find a simple and easy function to handle this.

function remove_spaces($the_content) {
return preg_replace( '/[\p{Z}\s]{2,}/u', ' ', $the_content );
}
add_filter('the_content', 'remove_spaces');

I added that code to my theme’s custom function.php file (the same place where I exclude the Twitter category), and all is well!  Wordpress adjusts my double spaced content into single space and displays it beautifully:

I love WordPress