Tuesday, 2 August 2016

Choosing the fields shown in the details pane in Windows Explorer

I just noticed that weirdly in the details pane of Windows Explorer it would not show the total file size when I selected a bunch of Fuji RAF files. Yet it did show this information when I selected a bunch of JPEGs. The other fields that were shown were also quite different between the two file formats.

Thankfully it is possible (though a bit messy) to change what information is shown in the details pane. The information that should be displayed is set on a per file extension basis and stored in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.

I found the answer here: Customising Explorer Details Pane? (If you read through that thread you'll notice that the OP has to answer their own question after being given irrelevant answers by people who couldn't be bothered to read what was being asked. Unfortunately a common problem on internet fora.

In case that post ever dissappears, the solution is as follows:

  1. Run Regedit.
  2. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.mp3 (Or whatever file type you want to edit.)
  3. Edit the PreviewDetails string.
  4. If needed, log off and back on.

Monday, 23 May 2016

eBay watchlist cleaning

It's time to clear out my eBay Watched Items list again, and make notes on any items I found that sold for high or low amounts.

sold for GBP 2730, which seems very cheap for this lens. Despite the auction finishing on 22nd March, no feedback for the seller has been left, so you can't be sure if the buyer did actually get the item in good condition for that amount.
Carl Zeiss Softar III 67mm screw fitting
sold for GBP 5.79 - not super cheap, but screw mount versions of these filters are quite rare - they tend to be Hasselblad bayonet mount.
W.Acall Kyoei 1:3.5 F=35mm UV-Objektiv f. Exakta
Didn't sell several times, often finishing around the EUR 20 mark or less. I don't know what the reserve was, but they had a EUR 150 buy it now.
Canon 400mm f2.8 L Lens EF mount (AF non IS) Pro Prime +BN= 1.4x Extender MK II
was listed with a BIN of GBP 1430 inc. P&P. However, the listing was ended by the seller because the item was lost or broken. I suspect they sold it to someone off eBay for a slightly lower price to avoid the eBay fees. Although this is the non-IS version, it seems a very good price to me, particularly with the TC.
Canon EF 600mm F/4.0 L Lens
ended for GBP 1,191 + 60 P&P, however it didn't meet the reserve price. It would've been very cheap otherwise. The body was a bit bashed up, but paint chips don't harm the lens' performance.
Ananda Shankar And His Music LP Rare Orig EMI HMV India Pressing 1976
Ended for GBP 19 inc. P&P, which is very cheap. This was one of those ones that I actually wanted to bid on, but had forgotten to force refresh my ebay watch list, so by the time I went to bid on it (near ending time), the auction had actually already ended.
Canon Lens EF 135 mm F2.8 Softfocus
sold for GBP 62.50 inc. P&P. Possibly a bargain, however the description does state the AF is UNTESTED and Optics do have some signs of dust and possibly a small amount of fungus although it is very difficult to see. The buyer left positive feedback though. (This item normally goes for around GBP 130).
Tiffen Standard Hot Mirror Filter 77mm
Sold for GBP 40 inc. P&P. This is a good price. I'm glad I didn't purchase it myself though, as on further research it seems to have the same problem on wide-angle lenses as my B+W 486 UV-IR cut filter has.
rayxar e50/075 made in holland
sold for GBP 20 + 12 P&P. This included not only the lens, but a large (and heavy looking) piece of equipment the lens was mounted in. Difficult to say what condition the lens was in, but looked okay. I would quite like one of these lenses, however from images I've seen taken with them, I don't think they are actually that great.
Sigma 800mm f/5.6 EX DG HSM APO Ultra Telephoto Lens for Nikon SIGMONSTER
sold for GBP 876 inc. P&P. I don't think these are listed often, I suspect this is probably the going price, neither cheap nor expensive.
Télé-objectif Canon FD 600mm f4.5
sold for EUR 371 + 100 P&P (to UK). Again, these don't seem to sell that often so I'm not sure if it's a good deal. Manual focus only, but I think this lens is meant to be pretty good.
Canon EF 400mm F2.8 Mk 1 lens
sold for GBP 860 + 40 P&P. Seems a good deal to me.
Wimberley Plamp
sold for GBP 40.56 + 10 P&P. The new model is 'only' GBP 45 new, so seems really expensive to me.
Very nice Petri Film Camera complete with Petri 1:3.5 f=35mm C.C Lens & Strap.
sold for GBP 27.15 + 2.85 P&P. This is quite a bit more than the other seller's Petri 1:3.5 lens didn't sell for. (Though of course this one includes a camera too).

Sunday, 6 March 2016

Looking for photos

Today I was just looking for photos to illustrate an article. Yes, it really did take me all day. Quite annoying.

Friday, 4 March 2016

Elephant dream

This morning I had a dream that there was an Elephant on Welland Park road, and I think I was trying to wash its ear. I was around the same height as it though, maybe I was standing on top of a car or something. I'm not even sure it was actually an Elephant at this point either, it may have been a giant wood pigeon.

Anyway, the Elephant walked down the street and then turned left at the mini roundabout to go up Farndon road. As it started going up the road, I saw that the skin just under the backs of the knees on its rear legs was ripped. It was as if the elephant's skin was just an outer covering over its pink body, and the skin covering had been torn in this location.

There was a bloke walking the other way down the road, and he said the elephant had its trunk cut off. While the elephant actually had a trunk in my dream, it was also true at the same time that its trunk had been cut off. It must have been a quantum trunk.

I explained that it was from a circus (the point being that as it was from a circus, it had been badly abused). When I looked at it again all the skin had been ripped around its bum and you could see its pink buttocks through the hanging flaps of torn skin.

Then the bloke started riding the elephant. Suddenly we were on top of a cliff on the coast, and the elephant was running really fast towards the edge of the cliff. There was a single storey hotel (or similar) building that blocked my view as the elephant was heading over the edge of the cliff. So I ran into the hotel and went into the room at the far end of the building so I could look out of the window and see what happened.

I could see that the elephant had landed in the sea. I think it was still alive and swimming out into the ocean, but I can't quite remember. Near the shore there was a person coming out of the sea while holding another person in their arms. The person they were holding had either been killed or badly injured when the elephant jumped off the cliff into the sea.

Then the bloke who had been riding the elephant ran into the room with me to look out the window and see what was happening below. He had managed to jump off the elephant just as it jumped off the cliff. Then he had ran round the hotel and down the corridor into the room where I was really fast. But in the dream it wasn't weird how quickly he'd got there, or that you needed to look out the window in this hotel room to see what was happening over the cliff edge.

Then we ran away, back down the corridor and out the front of the hotel or whatever building it was. (It didn't have a reception area, but there were rooms along the corridor like in a hotel and the room we'd been in was like a hotel room). In my dream (and also now), I thought it was weird that you could just go into this building and go into an unlocked room.

Then I was feeling like I was partly responsible for the injury or death of the person who I had seen being carried out of the sea. And I wanted to get away in case anyone found out I had anything to do with the elephant, which could lead to me being arrested in connection with the incident.

That was the end of the dream.

BTW I don't actually think that all circus animals are badly abused, that was just dream logic.

Thursday, 11 February 2016

Why am I not surprised a bank's website is rubbish?

Recently I decided to finally do something about my rubbish Alliance & Pester / Santander bank account that pays no interest, and go through the hassle of opening a new bank account that pays a better rate of interest. TSB offer quite a good rate, so I applied to open an account with them online. Their sign-up / security process is pretty bad though:

As you can see, it didn't like my username containing non-alphanumeric chars. Underneath the username section it says Your user IS must be between 9 and 30 characters long and can include letters, numbers and special characters (see the tip section above for ideas on which special characters to include). (emphasis mine).

Yet when you look at the tip section, it makes no mention of special characters. And with alphanumeric only password but 'special chars' in my username I was not able to continue. But without 'special chars' in the username I could continue onto the next page. So clearly special characters are not allowed in the username.

As well as giving incorrect information on the signup page, the fact that they don't allow special characters and also make the username / password case insensitive is bad for security. The smaller the number of possible character combinations, the easier it is for someone to make a brute force attack and guess a correct user ID / password combination.

It wouldn't surprise me if the user id and password are also ASCII only. While this also decreases security, it's more of a problem from an accessibility standpoint. If I was Chinese, my preferred User ID may well be something in Chinese. But you'd be forced to use something in ASCII. It's not a big problem - you could still use the same keystrokes combination, but you'd see a jumble of random letters rather than the Chinese characters, making identifying typos a bit more difficult.

Thursday, 28 January 2016

Installing mysql binaries in non-standard location

Well, the I've spent the last few days just trying to get the latest version of mysql installed. Yesterday I spent ages installing the latest version of gcc on the webserver, as the one installed was too old to build mysql with. (Don't I love shared hosting). GCC takes hours to build and it was also complicated by the unusual way in which it must be configured, which I wasn't aware of until after a few failed attempts at compiling it in the normal way.

Installation of mysql was further complicated by it still trying to use the old version of gcc. Following the instructions to make clean and rm CMakeCache.txt didn't help. After trying a few different things I deleted the directory and extracted the tarball again to start clean. This did work.

But after all that work, my webhost killed all my processes while mysql was still building. I guess I can't blame them - I have a 512MB plan, and the mysql build process alone was taking up nearly a gig. I tried to see if there was any way to limit the amount of memory used during make, but couldn't find anything.

So today I checked if there was any way of changing where a pre-compiled binary package could be installed to. It turns out that for rpm (the server is CentOS and mysql offers an rpm package) you can use rpm --prefix= or rpm --relocate, but mysql packages are not relocatable.

However, I later found this information about using the generic binaries: Installing MySQL on Unix/Linux Using Generic Binaries. This indicates you can just extract the tarball to your preferred installation directory, and that's it. So I did that and it worked! Could've saved myself several days work and fustration!

Tuesday, 26 January 2016

mysqld_safe mysqld from pid file ended error with no error log entries

Today I was just doing more work on configuring nginx and trying to install the latest version of mysql. For things like mysql I install them first on my local PC, writing the commands in a text document using gedit. That way I can easily alter the commands when something doesn't work and try it again by just copy-pasting from gedit to the terminal.

When I tried configuring mysql today though, it was as if the escape new line character wasn't working - when I pasted in my multi-line with escaped line endings command, the shell just executed each line of the command separately (which of course didn't work). The problem was that the file had been saved with windows line endings (\r\n) instead of linux (\n). But how on earth that could happen I don't know. When I was using this file the other day I could copy and paste the multi-line command from it into the terminal no problem.

After compiling mysql again (twice) I got a bit further. But when I ran mysqld_safe, it just said:

160126 21:13:44 mysqld_safe Logging to './data/rusty-ubuntu.err'.
160126 21:13:44 mysqld_safe Starting mysqld daemon with databases from ./data
160126 21:13:45 mysqld_safe mysqld from pid file ./data/rusty-ubuntu.pid ended

Checking the log, all it contained was:

160126 19:27:48 mysqld_safe Starting mysqld daemon with databases from ./data
160126 19:27:48 mysqld_safe mysqld from pid file ./data/rusty-ubuntu.pid ended

I did quite a bit of googling, but all the results seemed to be either where the error log actually contained an error, or a permissions error. Then eventually I found this blog entry: MySQL error mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended, which seemed to be pretty similar to my problem with the lack of error log information. They suggest running mysql_safe, which doesn't exist in my bin dir and I think might just be a mistake in their write-up. But it gave me the thought of just running mysqld rather than mysqld_safe.

mysqld ran without any issues. So I then tried to access the mysql client to change the temporary password that had been assigned to root when running mysqld with the --initialize parameter to setup the data store. But this gave me an error that it couldn't connect to the mysql server:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket './mysql.sock' (2)

The problem was that I was using relative paths in my.cnf and it seems the paths get resolved differently. mysqld had resolved ./mysql.sock to the data dir (no idea why). Whereas mysql resolved it to the bin dir. After replacing all the relative paths in my.cnf with absolute paths, I restarted mysqld and then tried mysql again.

mysql could now connect to the server, but said that the temporary password that had been assigned to root wasn't valid. So I then had to delete the data dir and initiailise it again. After this I could get in okay and change the root password. I then shut down mysqld and tried running the mysqld_safe script, and lo and behold, it actually worked.

So it seems the problems in mysqld_safe starting and ending straight away (or likely just not starting at all in reality) were down to the use of relative paths in the configuration options. Annoying that it didn't give any errors to indicate this though.

I still have to actually setup the databases and switch it over as the active mysql server, not to mention get it up and running on the web server, so there are still plenty more things that can go wrong yet.