Index Thing

Index

The Hippo Techo Blog



banner

117 Posts. Displaying page 9 of 12.
Previous Next

Go to page:


Hide All


Photography
 
Dec 31, 2013
 
87


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.

Update:

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.





Web - X/HTML/PHP/JS/CSS
 
Sep 15, 2013
 
86


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.





Dev
 
Sep 08, 2013
 
85


Konfabulator - RIP

Close ...
Saddo

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 - http://lightquick.co.uk/blog.html

UPDATE:
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

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

UPDATE:
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
 
84


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.





Web - X/HTML/PHP/JS/CSS
 
Sep 08, 2013
 
83


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) {
// SUCCESS
} else {
// FAIL
}

Or

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


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

$2y$12$QHVCHtgiJHLPW8bZkL.q/.i57xslCy3ikqcVWOukQebuvf5m0YNuq
$2y$12$QHVCHtgiJHLPW8bZkL.q/B

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.










Notes:

$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.

www.openwall.com/phpass/

crackstation.net/hashing-security.htm





Web - X/HTML/PHP/JS/CSS
 
Sep 08, 2013
 
82


Using SQLite3 and PDO with PHP 5 on Abyss X1 Webserver

Close ...
Just been looking at using SQLite3 as a backend to some web apps and found it all a bit interesting.
It seems that PDO (PHP Data Objects) is a handy interface for numerous types of database but I did find info relating to using SQLite a bit thin in places. Anyway after a bit of trawling and trying I managed to get a handle on basic usage which is not too difficult.

HERE is a wee PHP file (as txt) that encapsulates my trials and may be of assistance to some folk.





Random Techo
 
Sep 08, 2013
 
81


Buzzing noise from Zanussi DW908 dishwasher

Close ...
Just had an adventure pulling apart a dishwasher to find the source of an unusual buzzing sound. The buzzing seemed to occur when the water was being pumped in after the initial pump out of the stale water at the beginning of the cycle.

After cleaning various filters and bits the cause of the problem appeared to be the wee filter on the water inlet valve.

The mesh was covered with a brown residue blocking most of the holes but was easily cleaned – the buzzing ceased so at least I didn’t have to replace the inlet valve or worse still the dishwasher!





Software - OSX
 
Sep 08, 2013
 
80


Running Parallels and VirtualBox on same OSX host

Close ...
Just my experience and Parallels seems to suggest that results may be unpredictable if Parallels Desktop for Mac is run at the same time as VirtualBox.
OSX 10.6.8 Snow Leopard on MB Pro

Both guest OS’s are running XP Pro SP3 32bit and both use native disk format (VDI for VB and HDD for Parallels)

Parallels 7 and VirtualBox 4.2.10
Seemed to co-exist quite well and could transfer files OK between each guest using Shared Folders within the guests.
Only glitch was that HTTP browsing from the VirtualBox guest stopped working when Parallels guest in use but seemed to work OK if the VirtualBox guest was started before the Parallels one.

Parallels 8 and VirtualBox 4.2.10
Co-existence not as good – noticed that if Parallels guest was in use that trying to start the VirtualBox guest gave an error – “You can’t open the application VirtualBoxVM because it may be damaged or incomplete”.
I did find however that if the VirtualBox guest is started and in use before the Parallels guest is opened then both guests appear to co-exist OK.





Software - XP
 
Sep 08, 2013
 
79


Win XP – Organising All Programs listing in Start Menu

Close ...
The camel’s back broke the other day when the program listing in the All Programs part of the Start menu disappeared off the right hand side of the screen – too many columns and too many unremoveable empty entries!

Anyway as it transpires the cure is not too bad.

Click the Start Button, then right-click ‘All Programs’ and then select ‘Open All Users’.
Alternatively the Program folder can be found under the Start Menu folders in each User account by using Explorer in Documents And Settings.

The All Programs listing is actually a conglomeration of the Start Menu folders in each of the User folders –
ie :
All Users - contains apps installed for all Users
Default User - contains default apps
- contains apps installed on a user basis

It is possible to group all apps of a similar type into one folder.
eg:
Create a Browsers folder in each of the User accounts that contains browsers and move these apps into the folder. The All Programs list in the Start Menu will then show a single Browsers folders containings the browser apps from all the appropriate accounts.

This method is also ideal to delete app entries that are empty but were not deleted when the app was un-installed.





Software - OSX
 
Sep 08, 2013
 
78


OpenOffice/LibreOffice Ligature issue when saving PDF

Close ...
Had a PDF with no cover page so arranged a cover page and inserted into the PDF and saved with LibreOffice Draw.
Unfortunately ligatures seem to be a problem in my case it was the ‘fi’ in the document which would end up with the ‘i’ superimposed over the f and a space where the ‘i’ should have been. This appears to be a known issue and the consensus appears to be – use an Adobe writer of some form ….

The fix for me was to use a merge tool – a handy free option is PDFMate Merge which appears to work quite well.

1st PDF is cover page only
2nd PDF is the original coverless PDF

Drag both PDF’s into PDFMate app and BUILD.

My PDF was c. 15MB in size



117 Posts. Displaying page 9 of 12.
Previous Next

Go to page: