Linux User & Developer magazine
– a good read while having your car MOT’d

I was delighted to take my car to Swiftest in Aldershot this morning, for one simple reason (see pic – and no, it wasn’t because of the coffee, although that helps!)

Female Friendly policy:
A Good ThingTM

In fact, there are two good reasons to use Swiftest in Aldershot.  Three, actually.

First, the aforementioned reading material.

Second, the professional, helpful and polite staff (Rob, James & co).

Lastly, it has to be the “Female Friendly” policy.  I was there first thing (7:30am) for my car to be MOT’d, and the only other two customers to come in at this early hour were both female.  I’d say that was testimony enough.

this week (wk 2)

work

  • organise
    • browser bookmarks
    • documents
  • financial year-end
    • archive digital & hard copies
    • start new file
  • business cash flow planning
  • configure Cisco router
  • resolve remaining issues on ccart

life

  • organise
    • documents
  • reading plan
  • go out, eat curry 

misc

  • complete migration of personal email

last week (wk 1)

work

  • bin the old chair 🙂
  • organise
    • customer appointments / projects
    • browser bookmarks
    • documents
  • financial year-end
    • archive digital & hard copies
    • start new file
  • business cash flow planning
  • configure Cisco router
  • visit dc to perform maintenance
  • resolve remaining issues on ccart

life

  • organise
    • mp3s
    • documents
  • reading plan
  • get busted ankle checked out
  • schedule food/fit

misc

  • complete migration of personal email

/lib/ld-linux.so.2 missing? libXext.so.6 can’t be found?

I recently [at the original time of writing] installed Fedora 11 [x86_64] on a test machine, to see how the development desktop build of my favourite Linux distribution is doing – and it’s very nice indeed.

I tried to install Zend Studio 5.5 and soon came across problems, which I found out related to not having 32-bit versions of Xorg and glibc installed. To remedy this, ensure you follow these steps:

su -c 'yum groupinstall Java'
su -c 'yum install glibc.i686 libXext.i586'

Once installed, I was able to fire up the Zend Development Environment:

/usr/local/Zend/ZendStudio-5.5.1/bin/ZDE

.. and it was running on the native (OpenJDK) 64-bit JAVA runtime! How’s that for progress!

I confess: this is a problem without an obvious solution.

As a server administrator managing tens, possibly hundreds, of domains via Parallels’ Plesk control panel system, you may be forgiven for getting frustrated, from time to time.  It happens.

While Plesk is a big time-saver for many tasks, there are occasional quirks which only help to irritate.  One of these being SSL certificates.

Security warning in Chromium

The Plesk control panel comes with a standard SSL certificate which is used to encrypt all HTTPS connections to/from the server by default.  Most server administrators will probably want to replace this with a certificate that correctly identifies their specific server.

The usual route, through Plesk 9.5.x would be to log in, click Settings, click SSL Certificates, and then create / delete certificates accordingly until you have a new default server certificate.  The final step would be to tick the checkbox next to the new default certificate and click “Secure Control Panel”.

This gives you the impression that the new certificate is now used by the control panel.  It isn’t.

So, the next morning, you’ll probably receive one of these by email:

################# SSL Certificate Warning ################

Certificate for hostname 'plesk', in file:
/etc/httpd/conf/httpd.pem

The certificate needs to be renewed; this can be done
using the 'genkey' program.

Browsers will not be able to correctly connect to this
web site using SSL until the certificate is renewed.

##########################################################
Generated by certwatch(1)

"Hmm", you think, "this should have been updated when I 'Secured the Control Panel'".  Yes, it should.  So, the next logical step would be to edit httpd.pem and replace the Key and Certificate values of this file with those displayed through Plesk's SSL Certificates section.  Then simply restart the web server.  Ha ha! Fail!  Browsing to the control panel still results in the security warning. What gives?!! 
 
After you have restarted the web server many times, both via the operating system's /etc/init.d method and via /usr/local/psa/admin/bin/websrvmng, you conclude that, actually, this is also not the certificate that requires updating.  So, which certificate file stored on the system is the one being served by Plesk?

Good question.  While you're searching for an answer, try checking/editing /usr/local/psa/admin/conf/httpsd.pem  and  /usr/local/psa/etc/httpsd.pem.  Nope?

Oh well, how about just resorting to a reboot and taking down everyone's services for a moment? ... Not ideal, but it works.  But this is not the right way!!!  :-(
 
********* UPDATE 23/11/2011 ***********
 
I have stumbled upon the right way to do this.  In a shell: 

cd /usr/local/psa/etc/
mv httpsd.pem httpsd.pem.old
cp /usr/local/psa/admin/conf/httpsd.pem .
service psa restart

With the aim of simplifying it all in 2011…

work

  • bin the old chair 🙂
  • organise
    • customer appointments / projects
    • browser bookmarks
    • documents
  • financial year-end
    • archive digital & hard copies
    • start new file
  • business cash flow planning
  • configure Cisco router
  • visit dc to perform maintenance
  • resolve remaining issues on ccart

life

  • organise
    • mp3s
    • documents
  • reading plan
  • get busted ankle checked out
  • schedule food/fit

misc

  • complete migration of personal email

This week
Work
  • [ ] Refine some elements on Zend Framework eCommerce system
  • [ ] Prepare 10 min presentation
    Zend Framework logo.
  • [ ] Arrange projector / screen
  • [ ] Attend networking event
  • [ ] Set up sales meeting
  • [ ] Finances
  • [ ] Progress Christmas cards
  • [ ] Catch-up phone calls
  • Life

    • [ ] Food shop
    • [ ] Swimming x 2
    • [ ] Kung Fu

    Misc

    • [ ] Get presents/cards
    • [ ] Cook something I’ve never cooked before
    • [ ] Tidy up downloads/images
    • [ ] Time to wash the car / dog (?)
    Enhanced by Zemanta

    I remember once watching a documentary on Arnold Schwarzenegger’s bodybuilding career (or was it this one?) in the ’70s and early ’80s.

    All of the bodybuilders in that golden era had their own training programme managers and promoters.  I recall that one manager/promoter, working for another bodybuilder, loved his own quotes.

    These quotes would range from the urbane, “the pen is mightier than the muscle”, to somewhat more characteristically humorous: “remember the golden rule: he who has the gold, makes the rules“.

    Well, in the completely unrelated world of PHP programming, this perl of wisdom (sic joke) is worth hanging on to.  Why?  Well, if you have ever used PHP’s variable variables, knowledge of the correct syntax is worth its weight in gold.  It’ll save hours, if not days, of debugging.
    So, anyway, I’ve been coding a calendar system for a valued client for the past ten days or so.  My first attempt I pretty much scrapped as it got too complex and almost impossible to debug.  The second version is much better, except for one issue which has been giving me grief until now.

    Variable variables in PHP are extremely useful, but I throw in a word of caution immediately: use them sparingly.  It can be easy to quickly lose track of what’s called what and why it’s there.  Especially if any single script is 400+ lines long.

    To set a variable variable, it’s easier to start off giving a value to an ordinary variable:

    $myVar = "myVarVar";

    Now, I want to create a variable variable with the name $myVarVar, so this is how it’s done:


    $$myVar = "this is my variable variable";

    To see the contents of the variable variable, you can do either of the following:


    echo $$myVar;     // or
    echo $myVarVar; 

    Both will output “this is my variable variable” to the screen/page.

    Snooker Loopy
    Things start getting interesting when you introduce arrays and loops. Take the following example:


    for($i=0; $i<4; $i++) {
    $myVar = "myVarVar".$i;
    $$myVar = "  Variable variable £".$i;
    }

    creates and produces:

    echo $myVarVar0; // "Variable variable #0"
    echo $myVarVar1; // "Variable variable #1"
    echo $myVarVar2; // "Variable variable #2"
    echo $myVarVar3; // "Variable variable #3"

    Stencil of a shopping cart with the head of th...I

    Last week

    Work

    • [X] It’s all about the shopping cart system :-), but if there’s any time left…
    • [X] Organise and attend various 1-2-1 meetings
    • [-] Update CRM database with new data/purge old
    • [-] Modify company site (content/volume/images)
    • [-] Price review
    • [ ] Review marketing and sketch out action plan
    • [-] Finish templates for sales process
    • [-] Finish help documentation for new web-based calendar tool

    Life

    • [ ] Continue documentation effort for F/LOSS project
    • [X] Kung Fu – reacquaint myself with yellow sash routines
    • [ ] Swimming x 2

    Misc

    • [ ] Cook something I’ve never cooked before
    • [ ] Test a couple of lenses for the DSLR

    This week

    Intentionally short in number but still high in volume.
    Work

    • [ ] Continue the Zend Framework shopping cart system
    • [ ] Produce marketing data
      – [ ] Mail merge
      – [ ] Review & print
      – [ ] Envelope
    • [ ] Attend networking training
    • [ ] Attend other networking event (optional)

    Life

    • [ ] Continue documentation effort for F/LOSS project
    • [ ] Swimming x 1 
    • [ ] Attend wedding party

    Misc

    • [ ] Get presents/cards
    • [ ] Cook something I’ve never cooked before
    • [ ] Test a couple of lenses for the DSLR
    Enhanced by Zemanta

    Boy, I am always amazed at the breadth of stuff that goes on weekly, surrounding people’s preferred operating systems, new hardware press releases and so on.  For me, it’s one of the best things about the internet: constant information from all corners of the globe, seeking an audience and advocate elsewhere.

    Intel, AMD and the new kid in town

    Image via CrunchBase

    So, this week there has been loads of stuff which caught my attention, only a short list of which I have time to share.  First things first, Ars Technica : a constantly vibrant source of interesting news out there in the technosphere.  Featured in its hallowed pages was the title ARM’s Eagle has landed: meet the A15“.  Indeedy, ARM is developing more processor chips which are beginning to compete with the likes of Intel’s Atom and AMD’s lesser-known Geode.

    AMD Geode™ LX 800@0.9W Processor

    The exciting thing here is that a third player is entering the midst of a traditionally two-horse race: GPU/CPU design and manufacture (AKA AMD vs Intel).  Similarly to the console race of 2007-ish, a third player getting involved (in the console war, this being Microsoft‘s XBox 360) does great things for the market and the larger picture.  Who would have thought, against the mighty 360 or PS3, that the Wii would have competed so well?

     

    We’ll see how this plays out in a different way with chip manufacturers though but, as with most of these things, the early adopters of SmartBooks (Netbooks with phone capabilities, typically powered by ARM processors) will likely be Business types and Linux users who aren’t just taken in by the big names.

    The Apple is finally ripening
    Finally. Sense at Apple.  Well, some at least. Developers are creative, resourceful individuals.  So throwing down the gauntlet by restricting their development languages was kind of a draconian, hard-line gesture by a company pimping itself as cool and trendy.  Sorry Fanbois, but it was a bit Microsofty, actually.  Which is actually unfair to Microsoft, as they are generally far less restrictive about this (as this list of programming languages illustrates..).  Then again, 99.4% of malware is aimed at Windows users.


    But back to Apple, this Ars story describes the change in stance at Cappuccino.


    How nice of them to open up their policy as well as opening up their iOS 4.1 BootROM in the same week!  In case anyone thinks I have a grudge against Apple, far from it.  This vulnerability intended feature clearly demonstrates that Apple are committed to opening up their systems and allowing users to fully use what they have purchased.  Brilliant!

    Oh, but then there are still situations which make you wonder.  Like the stealthy Apple OS-X update that kept “fanbois strangely silent“…   I’m not sure I would have described Apple’d products as a “mutant virus“, but their loyal customers’ thinking probably is.  But then, Apple build fashion statements, not computers.


    Open systems continue to gather pace


    There’s an interesting article at O’Reilly on debunking the 1% myth.  The 1% myth is the idea, forever purported by some in the industry, that Linux only has 1% of desktop market share.  Succinctly put, as there is no way of actually measuring this accurately, it’s a false claim (as the article details).


    Talking of open software, media player Amarok is looking more and more beautiful.  What’s not to like about this, especially when it’s free?

    Enhanced by Zemanta

    I think it may be a good idea to start calling this “Fortnightly [p]review”…


    Last week

    Work
    • [-] Update CRM database with new data/purge old
    • [X] Layout fixes for customer web site
    • [-] Modify company site (content/volume/images)
    • [ ] Price review
    • [ ] Review marketing and sketch out action plan
    • [-] Draft templates for sales process
    • [-] Add help documentation for new web-based calendar tool
    • [X] Hosting set-up
    • [X] Prepare for new project (TBC)
    • [X] Complete SVN/Bugzilla integration project
    • [X] Housekeeping
    Life
    • [ ] Continue documentation effort for F/LOSS project
    • [X] Kung Fu
    • [X] Swimming x 2
    • [X] Finish sci-fi book
    • [X] Continue Personal Development
    Misc
    • [-] Uphold commitments @ old residence – see through to completion
    • [X] Cook something I’ve never cooked before (excludes dog, cat, rat, etc)
    • [X] Check out lenses for the DSLR

    This week
    Work

    • [ ] It’s all about the shopping cart system :-), but if there’s any time left…
    • [ ] Organise and attend various 1-2-1 meetings
    • [-] Update CRM database with new data/purge old
    • [-] Modify company site (content/volume/images)
    • [ ] Price review
    • [ ] Review marketing and sketch out action plan
    • [-] Finish templates for sales process
    • [-] Finish help documentation for new web-based calendar tool

    Life

    • [ ] Continue documentation effort for F/LOSS project
    • [ ] Kung Fu – reacquaint myself with yellow sash routines
    • [ ] Swimming x 2

    Misc

    • [ ] Cook something I’ve never cooked before
    • [ ] Test a couple of lenses for the DSLR
    Enhanced by Zemanta