Thursday 9 October 2014

Installshield Error 1327 (Or Invalid Drive)

A common problem I come across which causes me lots of problems to resolve, particularly with networked machines, is the Invalid Drive error (usually error code 1372) when you try and run the an InstallShield Installer often caused by a Mapped Network drive.  I believe the problem exists because you map a drive at a user level, but the administrator doesn't get the same 'layer' of drives (just try opening a mapped drive from an Administrative command prompt).   Previously, Id got round this problem by logging in as a local administrator, installing the app needed for All Users, then logging back in as the user required to finish off the setup.    Note, this problem usually occurs before you even choose which drive to install to, so I can only assume its a feature of Installshield related to either a temporary file store location, or enumeration of drives at start.

However, I've discovered a really useful work around which seems to resolve the problem, and its the subst command.   Subst associates a drive letter with an alternative drive/path, allowing you to have multiple letters pointing to a location.  It is to drive letters what the mklink is for files and folders.

To use it, fire up an administrative command prompt and type:
susbt M:  C:\temp\installshieldtemp
where
subst ProblemDriveLetter TemporaryFolderLocation 

Run the installer to let it install and you can then cleanup with:
subst /D M:
where /D is delete and M: is the Drive letter you used in step 1.

Just typing subst will show  you drive letters you have susbtituted.


Thursday 14 March 2013

A little Comic Relief

The annual or bi-annual charity appeals are always fun, but also somewhat predictible as to what we'll end up seeing.  So, whilst I urge you to donate,  you can also have a bit of fun whilst watching.

So here's the rules of the drinking game we're playing by:


The rules are simple:
Define your own measure,  be it a shot,  finger's width or even a whole glass.

One Measure
- A disease is mentioned
- An African Child is seen with a fly on its face
- Every time a celebrity does something 'exciting'
- A giant cheque is produced
- A celebrity holds an African child
- A celebrity crys
- The Phone Number is read out
- Man dressed as a woman, or a woman dressed as a man

Two Measures
- The total so far is read out
- We see the phone call takers up BT Tower
- When the guest presenters change
- When the presenters look confused because they don't know what they're going to next
- If we're shown a picture of BBC TV Centre

Three Measures
- When the presenter runs his/her fingers along the screen as the number is read out.
- When someone mouths the number at the back of shot
- When someone makes the 'phone call' symbol
- News Presenters doing something 'wacky'
- When an African child is made to wear a red-nose

Four Measures
- Wogan or Pudsey Appears

Penalties:
Penalties require a CR donation
- Spillage - £1
- Fall Over - £1
- Vomit - £5
- Pass-out - Whatever you can shake out of their wallet/purse.

Remember Kids, Drink Responsibly,  as little African Kids often can't.   Give Generously!

Thursday 3 January 2013

Sugru - A Brief Update

I just wanted to provide a brief update on my thoughts of Sugru.  Its a wonderful product, ideal for fixing and personalising things.  However,  the biggest bugbear of all is the shelf-life.

Unlike duck/duct tape,  superglue,  epoxy resin, putty  and other more commonly known fixing materials and methodologies,  Sugru 'sets' after about 6 months,  whether you've opened it or not.  This means that one of the big bags I had became useless as I wasn't able to use the sachets before they'd all set.

And because Sugru isn't available in most shops,  you can't just pop and get some more - you have to wait for the postman to bring it for you.  This is fine if you have a non-urgent fix, but when you need to do something straight away,  you either have to ensure you have some fresh Sugru in,  or find an alternative option.  Its often the latter.  So reader beware!

One final point,  Sugru reckon if you keep it in the fridge, it will keep for 18 months;  I'll have to pick some up and try it.

Monday 27 August 2012

We Canna do it Captain, we don't have the Power.

Last night, we experienced an area wide power cut.   Despite being in modern 21st century,  this is nothing unusual - they seem to occur 3-4 times per year, with an average length of about 20mins.

Many people in the area are fully prepared,  with battery powered lanterns, torches and the traditional candles and matches to hand.  But after you've provided yourself a bit of light (when it happens at night), you find yourself sitting there, wondering what to do now the TV, Radio, Computers have all gone off.   And of course, whilst your broadband has almost certainly gone off, your smartphone falls back to the mobile network for its internet which more often than not keeps working.  Anyone using social networks via their phone can tweet for facebook that the power has gone out,  and start comparing notes as to how far it stretches.  Most people wouldn't bother to phone their power supplier to let them know about the outage, as I think the assumption is that they can detect it and start resolving it ASAP.

But do they?

The previous supplier of electricity, Central Networks used to have a map that you could click on and see where they knew there were faults.  Western Power Distribution http://goo.gl/JjuKU , the new incumbent do not.  Now,  the information used to be available to the suppliers, so where has it gone now?  Do they no longer have the systems to collect this data from the grid,  or was it collated from their CRM systems?  Maybe they feel that it is some kind of sensitive data so best not to share it,  or simply that the bosses do not think this information is valuable to its client base.
I'm singling out Western Power, but a quick search of the power companies listed by the National Grid (http://goo.gl/7XSpX) seem to highlight only 
Northern Power Grid (http://goo.gl/OrPvNand
Electricity Northwest (http://goo.gl/lvIwR)
seem to be willing and/or able to provide this information.   And good on them too.  Not only do ENWL show current unplanned outages, but also future planned work.   

So my point is,  if they can do it,  why can't other utility providers provide outage information.  Or,  maybe its something that the National Grid can do - after all, they provide a live view of the demand (http://goo.gl/A3tv6),  but can they see deep enough into the local grids to see the outages. 

Power cuts happen - its a fact of life.  But how long will it take suppliers to embrace the communication power of the Internet to get information out to its customers.  For now,  I guess we'll just have stick with searching twitter for #PowerCut

Monday 14 February 2011

Do you, Sugru?

How many times have you bought a fantastic product that is perfect in every way, right up until the moment it breaks.  Or you’ve got something that performs a function, but isn’t quite right.  Historically, you’d end up going out and buying a replacement - something that may still not do the job.   Well, I’ve discovered a product which may help you reduce your ‘throw away and replace’ approach with a ‘make do and mend’ attitude.  Only without the make-do.

Sugru is a product I heard about in the late summer of 2010 and it immediately peaked my interest.  A product invented in the UK by an Irish woman,  it is a mouldable, self-curing silicone with lots of really nice features.  When you get it from its sachet, it has the consistency of too-warm bluetak – a sticky clay like substance that can be moulded into any shape you choose.  It initially sets within 30minutes then cures within 24hours to whatever shape you’ve moulded it from. When it sets, it turns into something with the consistency of hard-rubber.  It retains a slightly springy texture, the sort of resistance of a block-eraser.  It also self-adheres to many materials like glass, metal  & plastics, works between –60c and +180c, is thermally insulating,  waterproof, even dishwasher safe!  Sugru Sample

I bought some packs for Xmas and gave friends and family a sachet each to try, and kept some for myself.  This weekend, I went on a bit of a Sugru session because I had two things to try.   First of all, my car stereo security faceplate had broken – one of the retaining clips broke off with plastic fatigue.  However, I found that a bit of paper wedged in the slot  would hold it in place.  So I applied a bit of Sugru to the faceplate, left it for about 8hrs then tried it.  It worked!  Even better, the clip that holds the faceplate in had moulded a little indentation in the Sugru which held it even more securely.  Another 12hrs of curing, and you wouldn’t know that the thing was broken in the first place.  That's £30 saved on a replacement facia or £100+ on a replacement stereo.

The second usage for it was to adapter a mobile phone holder.   I’ve got a small phone-chair which is designed to rest a mobile phone in and keep the screen visible. However, because of its shape, I couldn’t put the phone in its naturally portrait orientation and charge it at the same time – it would have to be landscape with the cable at the side, which was OK, but not all apps support rotation. So I moulded two Sugru ‘ears’ at the front of the chair, let it set, and now the results can be seen right. Its not perfect (my craft skills are somewhat lacking) but it certainly does the job.  Only a few pounds saved but it does the job perfectly.

Sugru seems like a brilliant product – the WD40 equivalent of a physical medium.  However, there are problems with it:- 

  • it seems expensive – about 95p per 5g sachet (which is what I used here).  However, its still cheaper than buying new!  
  • It can be a bit of a pain to handle – it seemed difficult to get small pieces of it to stick to the object I wanted it to adhere to, rather than my fingers.  Plus, whilst it is classified as “not dangerous” it may cause an allergic reaction.  Its probably no more dangerous than any other chemical based material.
  • It currently only has one cured state.  Sugru say that they can mix different formulations, but currently only offer this one.
  • Thinking of things to do with it.  With only a 6month ‘best before’ date, I will have to find things to use it on in the next few months.  However, there are lots of ideas on the Sugru website including repairing broken shoes, making tent pegs softer so that they could be hand inserted, and forming a bespoke golf-club handle.

I would seriously recommend picking up a pack (£6.50 for a 6 pack, £11.50 for a 12 pack) and trying it out on something – really clever stuff.

Thursday 20 January 2011

Adventures with the Omnima LCD Panel

I have recently picked up an Omnima LCD panel, a 3.5” QVGA (320x240) USB powered LCD panel with an SDCard slot and the ability to control it like a serial device over the USB port using the included cable.

Having an ARM7 based processor and a 2D graphics engine, it promises to be a great little versatile display panel for outputting information not requiring a full screen (sensor information e.t.c, news feeds, that sort of thing).  Plus, many of the LCD panels available on the internet either require an additional controller or some curious interfacing to be able to drive it.  For not a lot of cash, this prebuilt solution seems to be an ideal choice.

So that's the good bit – the bad bit is that there doesn’t seem much support for it.  The supplier forums are quiet at best (and not accepting new sign-ups) and there doesn’t appear to be much documentation other than the PDF’s on the Omnima website/forum.  I suspect there may be more available if you buy the SDK tools, but these are expensive to say the least.  Plus, I don’t have that much interest in writing new code for the screen CPU because I believe the inbuilt functionality is enough, and I’m not skilled in C++ development.

Anyway, the screen (version 3 as shown on the website) itself works with LCDSmartie (I’m using v 5.4.1) and the DLL included in the forum worked after a fashion.  The OmnimaLCD.cmd file included in the ZIP file isn’t quite right.  The standard command ends up rendering every serial command to the screen, rather than the result of the command.  The below command sets it up properly.

#@Term MW Off
#@Term FW Off
#@Cls
#@FrColor 0 255 0 0
#@FloatWin Open 10 10 240 320
#@Line MW 10 10 50 10
#@Line MW 10 50 10 10
#@Line MW 10 190 10 230
#@Line MW 10 230 50 230
#@Line MW 270 10 310 10
#@Line MW 310 10 310 50
#@Line MW 270 230 310 230
#@Line MW 310 190 310 230

This turns off any terminal command writing to the screen, creates a black box on the screen, creates a float window to render the text in, and draws some nice green lines at the edges screen which I think look quite nice.  One thing to be aware of,  you can use 4 x 20 screen setting as recommended, and you can use 4 x 40 setting.  However, on the latter, if the text exceeds the screen width, you get text wraparound where it runs around onto the left of the screen.  Not so bad if you don’t have scrolling text and format your text lines appropriately.  Also, the on screen left position seems to be set in the DLL file – I had a bash at editing what looked like the command in a HEX editor, but to no avail.

A note really for myself – the line plotting code consists of x horizontal poz, x vertical poz, y horizontal poz, y vertical poz. 

The one thing I need to work out now is how to render pictures to the screen – apparently supported, but I’m not getting much joy with it.  The graphics processor apparently supports JPEG pictures, but when I try and load it, the unit locks up and needs a power cycle.  The documentation suggests I need to use the “oimage tool” to convert from JPG, PNG e.t.c to a compatible format:-

To generate files suitable for loading using FileToSSD you can make use of the oimage tool. This tool can load all popular image file formats such as jpg, gif, bmp and more, and save the file in the SSD compatible format.

I’ve Googled the heck out of oimage and SSD compatible format, but can’t find anything of relevance – if anyone has any clues, please leave me a note.  I’ve asked Omnima directly, but not yet had a response.  Given that the device is basically a mini picture frame, it would be nice to be able to load and display pictures as well as vector graphics, especially as the latter can be quite slow (I would guess at 500ms per line) on the LCDSmartie example above.  The documentation suggests that picture loading can be quite quick, but we’ll see. 

Finally, id like to get it working in LCD4Linux – I cant see it being too difficult if its just got to send information via text strings, but that's a project for another time.

Friday 14 May 2010

Dreambox Sky Bouquets on Astra 28.2

I see a fair number of requests for people looking for the bouquets for their dreambox.  The one I published is well out of date, because I use some excellent ones provided by user B16MCC over at the satellites.co.uk forum.  Have a look at THIS thread, sign-up and say that I sent you :)