Wednesday, 2 November 2016

Apple iPhone 6 and above, WIFI and the mysterious connection problem

As you know, I use this page as a dumping ground for anything tech related which might come back to haunt me at some point.  Today's post concerns the wonderful iPhone, and a mysterious WIFI problem....

I have a WIFI network, with multiple Access Points, and two iPhones - a 5c and a 6s.  The 5c will connect to my wireless network, the 6s will not - it tries, but keeps prompting for a password, even when the correct one is used..  Both are running the same version of IOS (10.1.1), so why can't the 6s connect?

The answer appears to be one of two things.  Firstly, the WIFI network I created was using WPA2 ONLY (no fall back to standard WPA) - looks like the iPhone 6s didn't like that - once I configured WPA as the fallback protocol, I could connect - once.  After that initial connection, the WIFI would not connect again without doing a network reset in IOS - unacceptable of course, so a bit more digging was required.  It turns out that iPhones are a bit sensitive when roaming between access points, and if like me, you have multiple access points that overlap, this can cause a problem if mis-configured on the WIFI network.  On my network, I had to switch on the "layer 2 handover" parameter, which essentially allows roaming devices to use network layer 2 when negotiating roaming.  Once that was done, everything was fine.

For future reference....

Apple's recommended settings for access points...
Cisco's WIFI recommendations for Apple devices (PDF)...

Tuesday, 23 June 2015

ISESteroids – An essential tool for PowerShell

Unless you’ve been hiding under a large log for the last few years, most of you who are responsible for administering windows have heard of PowerShell – Microsoft’s extensible scripting language designed to eventually replace all of its previous scripting environments for administrative tasks (such as vbscript, batch files etc.).  As I came into support from software development, I tended to use VB/VBScript or Perl to do any server scripting that I had to do, but as times have changed, so has PowerShell, to the point where not only has it become incredibly feature rich, but it’s now almost mandatory to use for certain deployments (hello Exchange 2013).  Over the last year, I’ve had to start using PowerShell almost daily, and so I started looking for a development environment to help me become more productive.

PowerShell comes with a quite good environment out of the box, called the Integrated Scripting Environment (ISE).  This little beauty allows you to write and debug PowerShell scripts, but I’ve always thought it was a bit clunky – especially if you’re used to Visual Studio / VB.  It was while I was looking for some PowerShell examples that I came across a fantastic add-on for PowerShell ISE that’s I’d like to share with you called ISESteroids…

ISESteroids is written by PowerShell guru Dr. Tobias Weltner, and it transforms the default PowerShell ISE environment into a PowerShell editing powerhouse!  It empowers and educates the PowerShell developer in the same way that Visual Studio did for Basic/C++ developers back in the day.  Allow me to elucidate further…

All the things that I love about Visual Studio / VB6 are here – context sensitive highlighting, auto-completion, context-sensitive help, combined with a rich debugging environment.  But that’s just for starters – there’s so much more, so here are a few of my favourite bits…

Better context sensitive help

ISE comes with its own context sensitive help – highlight a keyword, press F1 and you’ll get something like this…

That’s all well and good, but if you’re a PowerShell novice, some examples would be nice.  If you press ALT & F1 together though…

Isn’t that SO much better?  Not only that, but this help is also available as an additional tab in the add-ons window…


Real time search
Searching through code is always tedious, but ISESteroids real time search / function navigator option makes it less painful. The real time search bar is located at the top right of the editor window.   Enter your text, and the frame turns either red (if no matches) or green (matches found).  Every time you press RETURN, your cursor moves to the next match, SHIFT & ENTER moves you to the previous match.  When you’ve found a match, if you press F2, all the matches are highlighted & selected – you can then simply replace ALL of the matches just by entering your replacement text!


Perhaps my favourite feature of ISESteroids is bookmarking.  When you’re working with long sections of code, it’s handy to be able to find a particular piece quickly.  Pressing CTRL & F7 in your code inserts a temporary bookmark on that code line – pressing it again removes the bookmark.  You can then move between book marks by pressing F7.  These bookmarks are remembered, so when you next open the file, they are still there.
There is however, a more permanent bookmarking feature which uses a custom comment.  If you insert <#bookmark text#> this is treated by ISESteroids as a permanent bookmark.  If you then press the Bookmarking menu button, you’ll get a bookmarking window with the current permanent bookmarks listed – you can then just click on them to move to that point in the code.  The bookmarking window can be pinned so it’s always available.

Code Snippets

Wouldn’t it be nice if you could enter in commonly used code at the touch of a button – well you can with code snippets?  This sort of feature is well known in other coding environments, and now you can have it in PowerShell. You can enter a code snippet in one of three ways: you can enter its shortcut (F4 gives you the entire list of shortcuts…)

Or you can press CTRL & J, which gives you an intellisense like dropdown of snippets you can navigate…

Or you can right click the editor, and select the “start snippets menu option, which gives you yet another way of inserting a snippet…

But even better than that, ISESteroids lets you create your own snippets with the snippet manager.  Once Open , you go through some basic steps (like where to save your snippet, and what you want to call the snippet...

At which point, you come to the actual snippet editor itself - which also includes it's own instructions on how to create your snippet. 

I followed these instructions and created a snippet that allowed me to create a permanent bookmark... 


When you’re learning any new programming language, you’ll hit problems with semantics or idiosyncrasies that language has.  ISESteroids includes a lovely tool called the Autorefractor – it’s essentially a PowerShell clean-up / code correcting tool.  Here’s a piece of bad code… :)

You can see that on the left hand bar, there are small lightbulbs – each one of these is a problem that the Autorefractor has identified.  Most of the ones in the code above are double quotes I’ve used incorrectly.  If I click on the lightbulbs, the Autorefractor will correct these entries for me like so…

See how it’s corrected the quotes?  It’s also corrected a couple of lines where I was using a PowerShell alias (cd) to Set-Location!

Editor console flip

This is so useful.  I prefer giving myself as much coding space as I can, but sometimes you need to use the console window.  Usually, it’s a case of split screening the window so that the console window is visible (see the images above), but is there a better way – yup, the console flip…

Here’s the same editor window as before, but this time, I’ve maximized the editor pane.  What if I need the console?  Well, see the PowerShell icon in the bottom right?  Look what happens if I click it…

The console pane has now taken the place of the editor window.  I can get back by clicking on the Window icon on the bottom left of the pane…

What you can't really get a sense of from these screengrabs is how easy all this tools are to use, and how useful they actually are.  The best way to test it is to try it out yourself , or take a look at some of the videos available on the powertheshell website.  If I can get a few moments, I'll create a quick youtube video highlighting the areas I really like!

In summary, if you do ANY programming in PowerShell, ISESteroids should be at the top of your shopping list – it’s too damn useful..  :)

Tuesday, 14 April 2015

IPhone - invalid sim or no service messages

Just thought I'd share a quick bit of info.  I recently bought my daughter a second hand iPhone as her old android phone was playing up.  Once I received it, I noticed that the seller had left a working PAYG sim in it.  "No matter" I thought, and continued to set it up with a new Applie ID.  When ready, I placed my daughters old sim in the phone - and then got the dreaded "invalid sim / no service" messages.

I tried everything - reseating, the "tape" method, blowing the dust out - nothing worked.  Then my daughter-in-law saw a post online about connecting the iPhone to iTunes so it could reset the ID - at that point I realised the problem.  The new Apple ID had "cloud locked" the phone, which ties the phone into the SIM, so it only work with that SIM.  Once I knew this, I connected the iPhone to iTunes, which then reset the Apple ID on the phone - I could then re-enter the ID which re-associated the new SIM with the iPhone allowing it to work

Tuesday, 1 October 2013

Windows Live Mail - inline images: what if you DONT want to embed them?

Outlook Express was a much maligned piece of software, but it had a great feature - it could edit emails in a WYSIWYG fashion, and save them as a plain text >EML file.  This was good news for us techies, because it meant that people that had to create emails for bulk mailing had an editor that was freely available on any XP machine.

In these days of Windows 7 and above, Outlook Express has long gine, and has been replaced with Windows Mail.  It has the same sort of features, but it lacks a major feature of Outlook Express - the ability to send inline references to images, rather than embedding the image in the email.  This ment that the email created was a lovely small size, yet could still look fabulous by referencing images on your external website.

BUT - you can still do it, and here's how...

Firstly, create your email in Windows Mail, and save it as an .EML file.  Then edit this file using a text editor (such as notepad)...  Somewhere in the file, will be the HTML coding section...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META content=3D"text/html; charset=3Diso-8859-1" =
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.19222">
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2 face=3DArial>testl;aklfsdf</FONT></DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>

Now all you have to do, is place an HTML image link to the image you want to display inline in your email e.g.

<img src=3D"">

The key is the "3D" bit in front of the quotes - Windows Live Mail uses "quoted printable" encoding, which means that "=" is the same as a carriage return - "3D" is the same as "="!

Thursday, 20 June 2013

The new WACOM Cintiq range – a review for the CCGB

If you’re a cartoonist with a computer, then you’ve probably heard of WACOM, the Japanese based manufacturer of arguably, the most successful range of graphics tablets in use today – in fact, many of you reading this are using a WACOM tablet, or something similar in your day to day work.  Recently, WACOM announced improvements to its “Cintiq” range of screen/tablet displays, and as a user of a WACOM based Tablet PC, I wondered “Just how good are they?”…
Trying to find someone with a Cintiq to try, is like looking for a Brazilian waxer at a Furry convention, so after making a few calls to WACOM, Digital Photo Solutions in Beckenham came to the rescue, and the club arranged to demo the range at DPS for our interested members.  On hand were Dave Harrison of DPS and David Oduro of WACOM, who fully expected us to arrive en mass, unfortunately, we had a lot of late cancellations, and so just Pete Ellis and my good self were there to represent the CCGB (my stomach counts as a single entity, so that’s three – officially…)

So, let’s cut to the chase –just how good are they?

Cintiq 24HD (with touch)

The 24HD (with touch) is the flagship of the Cintiq range.  For those of you that have never seen a Cintiq, you’ll see from the pictures that it looks like a large drawing board – which is basically what it is – but it’s also a computer screen.  This means that by using the pen supplied, you can draw on the screen as if you were drawing on paper (with the right software).  Because the Cintiqs are input devices, they can be used with any computer that supports them (this includes Macs & PCs) - DPS’s Mac had Photoshop installed, which we used to try out the various features.

First impressions are always important, and you can tell by first glance that this is a quality product.  It feels solid and well made, but is still quite light for its size.  The 24HD comes with its own stand, which allows the screen to be positioned to suit the artist, as well as containing the various port connectors for the required cables (very neat).  Speaking of ports, for the larger Cintiqs, you’ll need a DVI monitor port, as well as a USB port – the only other thing this beast needs is power.  The screen resolution is 1,920 x 1,200 (HD), which is good enough for any art application, as well as designed to reduce eye strain over long periods.  Also, whilst we were using it, I couldn’t detect much heat build-up – make no mistake, they want you to use this as your weapon of choice…

The 24HD comes with 10 configurable express keys, and two configurable touch rings.  The touch rings on our demo were set to rotate the page in Photoshop - a lovely little idea, which would also work well in Manga Studio, but as with almost everything with the Cintiqs, you can set them up (as well as the express keys) to do what you want in the Wacom Driver control panel.

As I’ve used something similar before, I suggested that Pete have the first real play with the device.  Pete uses an Intuos 2 tablet professionally, so I wanted to see long it would take for him to become comfortable with the Cintiq – the answer was, extremely quickly.  If the version of Photoshop had been the same as Pete was used to, it would have been quicker still.  From my own experience, I can report that the 24HD performs well – pen point mapping was good, and there is very little pointer offset (the distance between the point of the pen and the pointer on the screen under the glass). 

The “Touch” option is an interesting feature.  In short, WACOM has given the 24HD both a pen enabled screen, and a virtual capacitive touch screen - which one you use depends on where the pen is.  If the pen is near the screen, the standard pen-enabled features work, if the pen falls outside the screen’s range, the capacitive screen takes over.  This means you can do things like rotate the screen with your fingers, pinch to zoom etc…  It’s a nice idea, which nearly works – I found that it misfired a few times when I was drawing – but you can turn it off if it becomes annoying.

Everything else was as you’d expect from WACOM.  Good pressure sensitivity, responds well, and is easy to work at for long periods.  In summary, the Cintiq 24HD is a quality product, designed for (and intended for) studio use.  The Cintiq 22 is essentially the same device, minus the touch facility and the touch rings, so I won’t bother to elaborate much – it is however, much neater, and may suit your needs better than the larger 24 HD, so compare before you buy.

Cintiq 13HD

Although the baby of the range, the 13HD is the entry level Cintiq, and replaces the 12W – comparison of the two devices is therefore inevitableJ.  The 13HD has a 1920 x 1080 pixel screen, which really is razor sharp, as well as having a wide screen aspect ratio.  WACOM have slightly changed the pen for this display (it’s slightly thinner), but it still uses the same technology, so the pens are interchangeable across the Cintiq range (as an aside, the modern cintiqs can use pens from the Intuos 4 range of tablets, or above). 

There is no “touch” option available, but there are the usual programmable controls that are almost as good as its big 24” brother.  The biggest improvement to the baby Cintiq is in the area of cabling.  The original 12W had a large converter box to which you plugged in your cables – now, the cables are direct into the device – power, USB and HDMI.  Yup, that’s HDMI, not VGA or DVI – you’ll need an adapter to use those (between £10-£20).  To be fair, it’s better for it, as the 13HD feels slimmer and lighter – it also comes with a pretty good stand.

Overall then, the 13HD is a worthy replacement for the 12W, but is it worth replacing your 12W with a 13HD?  To be honest, I think not, unless you REALLY need to get rid of that converter box.

Wacom have really put a lot of work into the new Cintiq designs.  It shows – and I WANT one… 

Technical aside:
Some people have asked my how the Cintiq range compares to the DTH or PL product lines that they do, especially as they look similar, and have comparable features, so I asked David Oduro of WACOM about it.  The answer is that the DTH & PL lines are interactive displays, and are designed to be used for short periods, not day in / day out for weeks on end.  If used that way, they can cause headaches etc., whereas the Cintiq range is designed for continual safe usage for as long as the artist requires.

Firstly, thanks to fellow CCGB member Pete Ellis for his contribution.   Secondly a big thank you to David Oduro of WACOM for the technical knowhow (he really knows his stuff) and Dave Harrison of DPS for the venue and demo equipment.  DPS are one of WACOM’s main distributors in the south, so if you want a good deal, please call him on 020 8460 3690, or by email at – and don’t forget to mention the CCGB – you might get a discount!

Thursday, 13 June 2013

Android? Oh dear...

As regular readers of this tome know, I've been and android advocate for quite some time.  I have access to an android tablet, as well as two android phones, and I've used them in anger for quite a while now - which is why I feel qualified to make the following statement...

Android (as a phone operating system) is crap.

There - I've said it.  Yes, it really is a big pile of pants now, so what has made me change my mind?  Let me regale the story....

9 months ago I moved from a pay and go setup for my phone (at the time, a Sony Xperia Mini Pro android based setup) to a contract, and got a new phone as part of the deal, a Samsung Galaxy Ace.  My wife, who moved onto a contract at the same time, chose to stick with Blackberry, and got a 9320.

In the last 9 months, I have sworn about lack of android updates for my phone.  I have fought with a system that can sometimes take over a minute just to make a phone call.  I have tried (unsuccessfully) to get voice dialing working, and to get a decent signal in some areas. In short, I was at the end of my tether.

To cap it all, I went to a medieval fair, and tried to take some pictures - now remember than my Galaxy has a good camera, but it took so long to set the camera up that I lost the shots - my wife on the other hand, had taken 5 shots using her Blackberry, and pretty good they were too.

Last week in desperation, I tried putting my Sim into a battered old Blackberry 8250 that we had lying about the house, and the difference was astounding.  My calls were clearer, I had more signal, making a call was measured in seconds (not minutes), and I could also voice dial whilst connected to a hands free headset.  In short, this knackered old blackberry smart phone wiped the floor with my Samsung.

Don't get me wrong, not everything in the garden is Rosy.  At the moment, I'm still having to use the Samsung as I need email access, and I can't get the Blackberry set up on Virgin for some reason, but it goes to show that as phones have progressed, sometimes android has not followed.  You could blame this on inferior hardware (and you might have a point), but I believe that android has come too far, too fast - and the cracks are showing.  At the end of the day, if even the most basic android phone can't compete with a knackered, water soaked old Blackberry  on equal terms, then something is fundamentally wrong.

Yes, android has more apps, but apps can't save a platform.  If a phone can't be used as a phone, then it's useless - phone manufacturers please note.  I'm currently looking at getting a second hand virgin Blackberry to replace my android phone - because it works as a phone first, and a "smart phone" second - but does both jobs beautifully...

Wednesday, 27 March 2013

Graphics Tablets - Mightier than the Mouse?

Graphics tablets - iPad vs Wacom vs Tablet computer


Back in days of yore, ye olde scribes of merriment and hilarity would scritch away on their parchments with trusty metal pen nibs, bringing to life their array of humorous characters for the delectation of the common man.  Ink would blot, spit and spill, and verily, they said unto themselves "Bugger this for a lark - I'm going down the pub..."

But enough about the golden age of Fleet Street.  Today's cartoonists are more modern, dynamic, and techno-savvy (yeah, right).  They have embraced the Digital Age, and that's primarily because of one invention - the graphics tablet.  Never before, in the field of humorous endeavour, have so many grumpy old gits work flow been transformed by one device.

So what is a graphics tablet, what does it do, and how can it help the average cartoonist/artist?

Let's start with the basics.  We've all used a mouse with our computers - that's the little box like device with buttons that we move around with our hand to move the pointer on the computer screen.  Move the mouse left, the pointer moves left, move it right, the pointer moves right - in short, the movement of the mouse in your hand is translated into movement of the pointer on the screen.  Add buttons you can press to perform actions, and you have a computer input device (that's a fancy name for anything that allows you to control a computer)...

Mice were fine for a fair number of years - then some bright spark said "what if we could do the same thing as a mouse, but use a...PEN! You could..WRITE...maybe...DRAW!  MY GOD - it would be BEAUTIFUL..."

Enter the graphics tablet. The tablet is a deceptively simple device - resembling a pad (with a wire connected to the computer) and a pen, the basic graphics tablet works by treating the active area on the pad as the "screen", using a "digitizer" (another fancy term - just means a device that translates one set of co-ordinates (the pad) to another (the screen) ).  Moving the pen on the active area moves the pointer, and pressing with the pen performs the action.  This sort of device was first seen in the 1950's but it wouldn't become popular until the late 1970's, with the arrival of the home computer.  Once the Apple & Microsoft markets had established themselves, one producer of graphics tablets soon became the biggest name in the field, and the one we tend to associate with the technology - WACOM.  Wacom's tablets, such as the Graphire, Intuos and Bamboo models, typify what we expect a graphics tablet to be - a pressure sensitive pen/stylus, combined with a screen ratio "pad" - with this technology, the cartoonist was finally in control...

Well, sort of.  For anyone used to drawing on paper, using a graphics tablet is a bit of a learning curve, because although the pad represents the screen, it does not occupy the same physical space (it's sitting on your desk, after all) - this can lead to a sense of "detachment" when using the pen to draw.  The tablet manufacturers realised that what people wanted was a way they could use the pen by drawing on the screen.  "What if" said an engineer "we put a digitizer behind a LCD screen..."

Enter the Tablet/Screen hybrid, typified by the Wacom Cintiq range.  The tablet\screen hybrid (as it's name suggests) comprises of a LCD screen of some kind, and a pen/stylus, and works by having the "digitizer" of a graphics tablet behind a LCD screen - when the pen is moved on the screen, the pointer follows.  Most hybrids take the form of an extra display unit, that can be used along side your existing monitor, but as we'll see later, there are exceptions.  The tablet/screen hybrid experience is as close as an cartoonist/artist can get to "drawing on paper", and is therefore, the easiest to learn, but the ease comes at a cost, as these devices aren't cheap - most hybrids cost over £700...

Our engineer is a busy old bee, and comes up with another bright idea -" put the digitizer and pen in a laptop..." - and the Tablet PC was born.  These devices are as portable as laptop (sometimes more so), and have all the advantages of a hybrid, but are truly portable, as well as being fully functional PCs.  Unfortunately, only a few manufacturers ever made them, and their initial cost was too steep, but second hand, these devices are exceptionally good value for the cartoonist.

The first generation of Tablet PCs in the Naughties did lead the way for another type of device - the ultra-portable "Pad" device, the best example of which is the Apple iPad.  Unlike a Tablet PC, the Pad has a touch-sensitive screen which the user works with their fingers - they point, the pointer moves, they tap, they generate an action.  Most touch screens use "capacitive" technology (that is, the screen is conductive to electricity).  The screen in normal use, produces an electrical field, which is distorted when a conductive material (such as the skin on your finger, or a stylus) is brought into contact with it.  These devices are usually not sensitive to pressure, or able to work in extreme detail, but these limitations will only be temporary, as the technology continues to develop at a staggering pace.

So what does the future hold?  As touchscreen / Pad technology comes down in price, it will also become more capable.  In the not-to-distant future, the hybrid will become replaced by all-in-one Pad device (probably Android based) that will respond to pressure from both hand and stylus.  You'll be able to take the device anywhere, and work on the move, and the device will be cheap enough to be a no-brainer for the modern artist.  Already, the Samsung Galaxy Note 10.1 is with us, which comes really close.  Wacom had better watch out, because if they don't keep up, they'll be overtaken...

Right - time to go to the pub, and see who wants to trade nibs...  :)