Archive | September, 2013

Dell RAID monitoring with Nagios

30 Sep

Using the check_perl.pl plugin to monitor RAID devices on Dell PowerEdge servers.

Started receiving this error:

    Host does not understand the Dell Storage OID

Due to the DELL services that handle the SNMP requests not being up.

I fixed it like this:

    sudo yum update srvadmin* #well this might not be necessary
    sudo /etc/init.d/dataeng restart
    sudo /etc/init.d/snmpd restart
Advertisements

A good job

25 Sep

I’ve come to the conclusion that there are 4 things to look for in a job:

  1. Reasonable pay
    1. Doesn’t have to be huge, but enough to live ok on
    2. (Plenty of studies have shown that after $x/year people aren’t any happier earning more)
  2. Good conditions
    1. People are OK
    2. Office is OK
    3. Commute is OK
    4. Hours are OK
  3. Useful skills
    1. If you ever have to or want to leave, you can get another job
    2. (i.e. don’t learn to make buggy whips)
  4. Blue sky
    1. If the business goes gangbusters, you’re in for a payday
    2. (i.e. your maximum upside isn’t a 5% bonus)

New Job

16 Sep

I have two weeks left before I finish up at my current work.

I’ve spent the last few days checking out the local employment environment. It doesn’t look great. I really love my current work and thinking of doing other work (available in Adelaide) is slightly depressing.

Looking further afield, it seems as though I need to put a lot more effort into GitHub and StackOverflow.

Current plan is to:

  • Do a budget
  • Sort out resume
  • Start contributing more to GitHub and StackOverflow
  • Contact recruiters
  • Look into the 3 startup incubators/co-working places here in Adelaide.
    • http://hubaustralia.com/spaces/adelaide/
      • In CBD, good location
      • Looks to be the slickest of the three, new looking building and fit out
      • Just started, received a big grant from the State Government and kicked out Format (http://format.net.au/)
      • Most expensive: $600/month. Seems like they’re just using the same pricing as in Sydney and Melbourne, but real estate is cheaper in Adelaide!
    • http://majorandistillery.com/
      • In CBD, good location
      • Went to a talk here, the building is quite old
      • The owner/manager/founder (?) seems to be very proactive, organising events and meetups etc.
      • Seems like mainly guy programmers would work here
      • $300/month
    • http://www.adelaidecoworking.com.au/
      • In Norwood, not optimal
      • Can’t see much in the photos on the site
      • $300/month

Jquery Dialog slow to open

11 Sep

Here is a good way to speed up jQuery dialogs. This happens when there is a lot of data/html inside the dialog:

http://johnculviner.com/a-jquery-ui-dialog-open-performance-issue-and-how-to-fix-it/

This reduced load time from about 4000ms to about 1100ms.

To summarize (in case the above page changes), you detach the container’s children before you open it, then you re-attach once it is open:

var $dialogContainer = $('#contrib-dialog');
var $detachedChildren = $dialogContainer.children().detach();
$('#contrib-dialog').dialog({
  modal: 1,
  autoOpen: 0,
  height: 'auto',
  width: 985,
  title: "Yup",
 open: function () {
   $detachedChildren.appendTo($dialogContainer);
  }
}).dialog('open');

Javascript timing

10 Sep

Quick/dirty way to time functions in javascript

console.time("hi")
myfunction()
console.timeEnd("hi")