122 Posts Displaying page 10 of 13
< >

Displaying page:

Hardware - Mac
Jul 29, 2014

MacBook Pro 5,3 SSD Upgrade

Close ...
Mavericks looks pretty good on the Mini and feels a bit like Snow Leopard – solid and it works with good speed.

The two issues found so far are the lack of dependibility of the mass storage subsystem (which hopefully is now under control) and the separation of the ebook cataloguing from iTunes into iBooks. I found iTunes to be handy enough for cataloguing my PDF’s etc along with the music and then synchronising with the iDevices but the new iBooks method appears to be very poor in comparison which means for the moment I will just retain a Snow Leopard drive for this use.

Decided to upgrade the MBP to Mavericks on a SSD and is working quite well at the moment.

MacBook Pro 5,3 (Late 2009) with 320GB HD running 10.6.8 (Snow Leopard), 8GB RAM.


Clone Macintosh HD -
Use StarTech USB 3.0 caddy to house SSD (Crucial M500 480GB drive).
Use Disk Utility to format SSD. (1 partition – HFS+ Journalled and named Macintosh SSD – the SSD is larger than the original HD so no partition size issues were encountered)
Use Carbon Copy Cloner installed on Macintosh HD (original 320GB drive) – (I bought a copy but the 30D trial may work OK)
Clone took c. 3.25 hrs for 206 GB.
When complete reboot and use ALT key to provide Volume options – select Macintosh SSD and voila.

Replace HD –
Crucial supply good instructions in PDF form on how to do this.

Upgrade MBP to Mavericks –
Download the Mavericks OSX Installer from the App Store (it’s free!) and it installs into the Applications folder.
I already had a saved copy to avoid re-downloading as it is a big file. Use the installer to update from Snow Leopard to Mavericks (I went from 10.6.8 to 10.9.2).
This took c. 1hr or so.

After reboot by and large everything was fine, Mavericks picked up some anomalies and offered to upgrade/fix them but just needed to go through the apps and upgrade as required really (I guess you could use a program like AppFresh to do this). Parallels 8 is Mavericks ready but needed to be re-installed then worked fine – most of my VM’s on the Mini are now using Parallels 9 which is better for Mavericks.

Tidy up:
Use TRIM Enabler utility to set TRIM on SSD (Cindori Software)
Status for this can be viewed under System Information > SATA/SATA Express (needs to be done after updates).

Also with SSD’s it is desirable to limit the amount of disk writes since they do have a life compared to the old HD tech so according to NET wisdom -
Rule: Don’t use Secure Delete on Trash
Rule: Don’t use defragmention utilities
Option: Disable file access time logging (I haven’t bothered)
Option: Disable Hibernation (I haven’t bothered)
sudo pmset –a hibernate mode 0 - disable hibernate
sudo rm /var/vm/sleepimage - remove sleepimage
Option: disable SMS (Sudden Motion Sensor) (SSD’s apparently don’t use this so I haven’t bothered)
sudo pmset –a sms 0
sudo pmset –g shows status. 1 – on, 0 – off

Overall the machine now appears quicker to boot and battery life appears to have improved a bit – just glad I have a MBP model that can be upgraded easily unlike the newer ones with soldered/glued in everything - impressed.

I guess a good question is ‘why not a clean install?’ – well for me if it was Windows, yes that is almost mandatory but so far I haven’t encountered too much bad karma with the OSX – in fact I even find Windows seems to run better on Macs than on PC hardware. Of note with OSX is the ease at which install/un-install of apps can be done and they are very portable – I still have nightmares of the dotNet garbage.

I suppose the problems with the Mass Storage Subsystem bear this out in a way – since removing the vendor drivers for the RAID boxes they are behaving themselves better.

Hardware - Mac
Jul 29, 2014

Legacy Epson Printers on Mavericks

Close ...
Good to see that 2 old printers still appear to work on Mac Mini Late 2012 running 10.9.2 Mavericks

Epson Stylus Color 740 – just plug in and get message ‘driver available from Apple’.

Epson Stylus Photo 1290 – ditto.

Interestingly the Epson website tended to indicate that these printers were not supported by Mavericks so there you go.

Software - OSX
Jul 29, 2014

Linux distros in Parallels 9 VM on Mac Mini running 10.9.2 Mavericks - Experience

Close ...
Tried a installing few distros for fun and largely OK.

Firstly a useful tip for setting the root password –

From User level –
sudo passwd root (will ask for users password then if successful will offer Enter/Retype UNIX password)

Ubuntu 14.04 LTS and Kubuntu 14.04 LTS:

Downloaded the ISO’s –


Create new VM in P9 and select the ISO (you may have to manually search for it for some Linux types).
I got an error about ‘unable to detect operating system’ but just pressed continue and selected ‘other linux’. I generally set the VM memory to 2G.

Problem 1: (This happened on both the Ubuntu and Kubuntu distros)
Install completes but display window is default size (800 x 600) and no options available.


In the /etc/X11 folder there is required a file called xorg.conf however this is found not to exist , only a backup file will be found (something like xorg.conf.05032014).

Looking at various forums the fix appears to be to create the xorg.conf file.


Open the terminal using CTL-ALT-CMD-FN-F1 (5 finger salute)

Login under USER then –

sudo cp /etc/X11/xorg.conf.05032014 /etc/X11/xorg.conf (needed copy on Kubuntu)


sudo mv /etc/X11/xorg.conf.05032014 /etc/X11/xorg.conf (needed Move on Ubuntu)

then -
sudo reboot

This fixed issue 1.

Problem 2:
Install completes and after login the desktop presents just the wallpaper and Parallels Shared Folders – nothing else!
(close to being a cabbage).


Open the terminal using CTL-ALT-CMD-FN-F1 (5 finger salute)

Login under USER then –

cd ~/.config

rm –Rf * (this appears to remove all folders in .config folder recursively without prompts – the folders appear to be regenerated after reboot)

sudo reboot

This fixed issue 2.

Good to have some workrounds to get the OS’s going but again this annoys me about Linux – never very long before you need to hit the command line …. Having said that it is possibly more the fault of the Parallels than the distro in this case.

Parallels Tools seem to install a lot better in the 14.04 distros – just do Re-install from VM menu and supply the root login details.

Both the Kubuntu and Ubuntu 14.04 look good but I think Ubuntu (Unity) is looking slicker and the KDE version is getting a bit tired now.

Networking to the internet appears to work OK – I changed the TCP/IP settings from DHCP to manual and the connection type in the VM to Bridged Ethernet (from Shared) - it worked great.

OpenMandrivaLx 2014:

This appears to be the successor to the old Mandrake/Mandriva distro which I always quite liked but haven’t managed to get it going yet – keeps dropping into command line mode with localhost login: being presented.

Software - OSX
Jan 04, 2014

Mavericks – initial impressions on Mac Mini

Close ...
Mac Mini 6,2 Late 2012 model running OSX 10.9.1 (new not an upgrade)

Retired the ol’ P4 (Brilliance 17” monitor from 1996 still going strong!) and put a wee Mini on the shelf.
Mini looks good and very upgradeable which is more than can be said for most of Apples newer offerings aside from the Mac Pro. Good amount of ports, most of which are in use except Firewire.

Not too bad, the scrolling direction is reversed but is still optional and basically seems to work with older stuff in the network OK. Very happy to see that YWE/Konfabulator widgets still work and the LG DVD-RAM drive appears to function OK.

The main issue I’ve found (could be a pun there!) is the dodgy handling of external storage drives.

Issue 1::
I moved a WD Mirror Edition RAID 1 drive from the old P4 onto the Mini. The drive was formatted as NTFS and could be mounted/read by OSX no problem but I decided to re-format it as Journaled HFS+ using the WD Drive Manager app (default name – MyBook). This was no problem and worked fine but I did find that intermittently the drive would be dismounted and a ‘Incorrect Disk Eject’ error was produced. This does not inspire confidence in the storage system.
The forums are ablaze with reports of lost data on WD drives after upgrading to Mavericks so there is a problem there somewhere.
I had a play round with the Energy Saver settings in the System Preferences and have had some limited success.

Fix: Unchecked ‘Put hard disks to sleep when possible’ setting – this appears to have stopped the random dismounting issue.

Issue 2::
Lacie 2big RAID would sporadically start c. every 70 sec or so and remain on for 1 min

Fix: Unchecked ‘Wake for network access’ in Energy Saver panel.

Issue 3::
LG external drive (LG BE08LU20) sporadically turns on/off (no disk in drive) when Mini in sleep mode.
Not sure what was happening here but when a disk is inserted the drive became very active for a long while – it looks like Spotlight was the culprit as it was indexing the disc. Messages relating to the .`Spotlight-V100’ store were filling the Console.

Fix: Disabled Spotlight indexing of the DVD volume.

How: Use Terminal
Enter - sudo mdutil –i off “/Volumes/MEI_UDF”

Get - Password: (need admin level password here)
Then get - /Volumes/MEI_UDF:
Indexing disabled (took a while since I did this while it was indexing)

Issue 4::
Using Finder quite often the contents of folder would be very slow to show – makes the system feel like a dog!

Fix: Again in the forums there seems to be reports of this as being an issue. It seems to have improved since doing an SMC reset on the Mini (basically switch off and unplug for 30secs then replug and wait 5secs then start up again).

With hindsight I would probably forgo the Fusion Drive for a large ordinary drive since the fast part of the Fusion Drive is quickly used and so a lot of data transfer will happen between the SSD and HDD. I think it would be better if the user could specify what type of data should reside on the fast part of the volume and in the future when larger/cheaper SSD’s are available just replace the Fusion Drive.


Still getting the clicking on/off with the ROM drive.
At one point I inserted a CD into the drive whereupon the WD RAID dismounted with a message saying ‘Not ejected properly’. I checked the LaCie Raid Monitor and it said ‘No compatible RAID detected’ although the RAID was still functioning OK.
A restart didn’t bring back the WD RAID but a repower did.

The solution appears to be to uninstall all the manufacturer monitor apps which is inconvenient but they do seem to be incompatible with Mavericks.

Update to 10.9.2 went OK

Dec 31, 2013

Firefox Nightly 29a on OSX crashing when New Tab opened.

Close ...
OSX 10.6.8 Snow Leopard.
Had a problem with a crash when a New Tab was opened by clicking the New Tab stub or via the Menu. Tabs would open OK if done from a link on another page. Problem still existed in Safe Mode with all Extensions/Plugins disabled
(implemented via Terminal - /Applications/ -safe-mode ).
Backed up the bookmarks/etc and did a Reset Firefox that was offered from the crash restart screens. Reset worked great and the Nightly came back with the Plugins and bookmarks intact and the Extensions cleaned out. Just needed to re-download the extensions and everything was good.

For general info on OSX –

Profile folder located at - /Library/Application Support/Firefox/Profiles
Extensions located in above folder under something like - dgte7tfw.default-1387301888020/extensions
Bookmarks these days are held in a sqlite file but can be exported as HTML via the Show All Bookmarks which gives the Library. The Library has a wee button which provides options for –
Backup and Restore, Import/Export as HTML and Import from another browser.

Looks like the Reset option is a good way of cleaning out an old (maybe archaic) installation without losing all history etc.

Dec 31, 2013

Leica X Vario Lens Filter

Close ...
What a saga this can be – seems to very difficult to determine the filter arrangements for Leica lenses – the technical manuals are not much help and the filter manufacturers seem to be accomplices in the darkness.

However just in case anyone needs to know –

X Vario lens filter diameter is 43mm (actually marked inside the lens cap).
The thread pitch may be an issue with certain filters, I could find no reference to the thread pitch but it seems to be 0.75 which I believe is fairly standard these days. I tried a B+W filter with 0.5 pitch and it will go on halfway only and is usable but definitely shouldn’t be tightened further – the correct filter turned out to be a B+W 43ES type with 0.75 pitch, it goes fully on and smoothly as expected.

B+W 43 X 0.5 F Pro MRC 010M UV-Haze filter Part No. 40228 - not correct for X Vario, does not impede zoom.

B+W 43ES 0.75 MRC 010M UV-Haze filter Part No. 23185 – correct for X Vario, does not impede zoom.

Zeiss T* 43 – I believe these work also so must be 0.75 pitch.

Some reviews I read on the X Vario suggested that there was no possibility of fitting a filter – I can only assume that maybe some early prototype versions weren’t threaded.


B+W 43mm XS-Pro Digital Clear MRC Nano Filter (007M) Item Number 45384 works fine and is half as thick as the regular filters.

Sep 15, 2013

Firefox Nightly 26a not saving Web Pages

Close ...
Recently been having issues with saving web pages – if ‘Save Web Page As Complete’ is done the page is not saved and the save download does not complete.

The problem turned out to be with the Mozilla Archive Format extension (v 3.0.0). This extension allows saving in .maff or .mhtml form but with recent versions of FF it seemingly breaks the Save Complete option.
Isolating the problem involved starting FF in Safe Mode which disables all the extensions and after finding that the Save then worked I had to go through the extensions disabling/enabling until the baddie was found.

Once the MAFF extension was found to be the baddie I then looked at the Preferences of the extension.
The fix proved to be the ‘When Saving A Complete Page’ option – the default was set to ‘Take An Exact Snapshot’ so I set it to ‘Use Browsers Standard Save System’ and it all worked fine.

Sep 08, 2013

Konfabulator - RIP

Close ...

Konfabulator has gone down the tubes (aka. Smart TV using Yahoo Widgets for TV).

This is old news since development of the Yahoo Widget Engine in its desktop form ceased a while back but the runtime engine (version 4.5.2) is still available on the net although the Widget Gallery was closed as well.

Recently it seems the last nail has gone in with the old Konfabulator User Forums now gone.

I find it a real shame that YWE (Konfabulator) has gone simply because it is a wonderful development tool for making web/desktop apps that will work on both Windows and OSX and only really required javascript knowledge without having to get heavily involved in the usual developer languages.

A big advantage of YWE is that the apps work consistently across the platforms unless a really platform specific feature is attempted and the docs are excellent – a real shame that great programs get taken over by big companies that just ruin them

Currently my widgets run on Win XP and OSX 10.6.8 (Snow Leopard) but not sure about future releases. I would like to think that YWE may still work on 10.9 (Mavericks) but we will see – on OSX it seems that it may work OK with 10.7 (Lion) but have issues with 10.8 (Mountain Lion). On Win I believe the YWE still works on Win 7 and Win 8.

I am currently trying Q7Basic (Basic for QT) as a replacement for the YWE tool but having mixed success. It is quite good for doing my BASIC apps and is cross-platform but has a few annoying/showstopping bugs which will not be fixed anytime soon since the single developer is a busy man and I don’t have the expertise to get into the Qt C++ which underpins the BASIC environment. Having said that I have ported a quite complicated BASIC app from VB2005/2008 and the Q7Basic environment is a lot less complicated and easy to produce compiled executables.

Link to enthusiast still using YWE -

OSX 10.9.1 Mavericks
YWE 4.5 installs OK and widgets appear to run fine. My widgets basically fired up OK with some just needing Preferences set in the widgets.
The BTHomeHub monitor required the wireless status code to be disabled – there seems to be an issue with the 80211 PrivateFrameworks data that I will need to resolve at some stage (it works fine in Terminal).
The WorldRadio has an issue with .asx streams at the moment but the updated Flip4Mac appears OK – again at some stage I will investigate.
So it largely looks like YWE is still a valid dev tool on OSX 10.6 through 10.9

Running on OSX 10.9.1 - Mavericks.

Widgets on Mavericks

OSX 10.10.2 Yosemite installed over Mavericks
YWE 4.5 works OK and widgets appear to function.

Win 10 in VM P11 on Mavericks host
YWE 4.5 works OK and widgets appear to function.
Also OK on OSX 10.11 El Capitan.

Software - XP
Sep 08, 2013

Unable to install WinPcap on Win XP Pro – get error

Close ...
Tried to install a later version of Wireshark and although it installed OK there was a problem with the WinPcap install so of course there were no interfaces usable in Wireshark. I tried a standalone WinPcap install and it also failed – the install detects existing WinPcap components even though it had previously been uninstalled and was no longer in the Add/Remove programs, etc.

As it happens if the following files exist they need to be removed and then the computer restarted to clean out.

wpcap.dll /system32 CACE driver
npf.sys /system32/drivers Riverbed
Packet.dll /system32 CACE driver

I can only think that the uninstall with earlier versions was not good since I tried a install/re-install with 4.1.3 and the files were nuked OK.

Sep 08, 2013

Password Hashing on PHP using Abyss X1 Webserver

Close ...
Just spent a lot of time running in circles trying to get my head around this.
Basically I was upgrading a bit of code which used MD5 hashing and clear text saved to cookies – time to improve.

Using crypt() as the hashing command this is my experience –

Create Hash -
$hashed_password = crypt($loginpassword, $salt); - this is the fundamental hash command

Verify Hash –
$new_hash = crypt($loginpassword,$hashed_password);
if ($new_hash == $hashed_password) {
} else {


if (crypt($loginpassword,$hashed_password) == $hashed_password)) {
} else {

The hashed password can be stored to a cookie/file/db or whatever but may need escaping for certain chars in some cases. The salt including the password hash data is pre-pended to the hash result.
The complete original stored hash can be used for verification – no need to parse out the salt, crypt will do that!
Verification will not give the original password as a result – it verifies the hashes are correct so therefore the password you have presented is correct. Decryption is not an option.
The hash for a particular password will only be the same if the same salt is used.
Usual rules apply regarding quality of passwords.
MD5 is vulnerable these days so I tried SHA256/512 and Blowfish settling eventually for Blowfish hashing.

Typical hash results –

Using mt_rand() to generate salt then hashing with Blowfish


Cost is 12 (range 04-31) and salt is 22 chrs.

Using mt_rand() to generate salt then hashing with SHA256

$5$rounds=5000$YWCY.pqQUa/0TKyD$4QD95fB87uj9i7Zfc3uCkaV.XTByRJP4z lmjc5lmi01
$5$rounds=5000$YWCY.pqQUa/0TKyD$ - Pre-Hash salt

Cost is 5000 (range 1000 – 999,999,999 ) and salt is 16 chrs.

I spent a lot of time trying to get it all to work and was mislead by a red herring with the Blowfish method.
If you notice the returned hash contains a truncated salt (1 chr) which I thought was a problem – it isn’t because Blowfish does some bit dumping and stuff and so it looks bad. However with the correct login password presented and the full original hash given to crypt the hash should verify OK. The problem I had was that I was inadvertently presenting a hashed login rather than clear text.
The SHA results do not have the truncation issue at all.


$5$ - SHA256
$6$ - SHA512
$2a$ - Blowfish early – security hole
$2x$ - Blowfish security patch, backward compatible
$2y$ - Blowfish from PHP5.3.7 onwards (preferable)

A random salt is used so each login password will have a unique hash that is verifiable without having to store the original password.
The salt is stored and is public but is unique for each password when generated.
In terms of attacks both SHA and Blowfish have cost parameters which essentially alter the time taken to create the hash and in a web scenario another device to block attacks is to limit login attempts for a given password for a set time.

Some folk suggest that mt_rand() is not up to the job these days and something like openssl_random_pseudo_bytes() is preferable – cryptographically I would agree but for me mt_rand() is sufficient given that it is only used to prepare the salt prior to hashing – random enough.

There is also some argument about whether it is good to have the salt included in the hash – my feeling is if simple passwords are used then it could be a liability since given the original hash salt along with the correct password and the known hash method verification is easy. I guess the answer is to use a difficult password or separate the salt from the hash.
Another precaution may be to strip the hashing method part of the header for storage and reinstate it on retrieval for verification.

See HERE for a wee test file.

So all in all good hashing can be done simply and for more compatibility there are some good library codes available.

122 Posts Displaying page 10 of 13
< >

Displaying page:

expander -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- expander