Archive for the ‘Technical’ Category

TapMount network drive at login (Mac)

9 Aug 2008 07:46 by Rick

It has taken a while to figure out how to do this from suggestions that it can’t be done (daft) to using a login time script. As you would expect it is all very easy.

First mount it from the finder by hand. Then go to System Preferences > Accounts > Your Login > Login Items. Select the + to add a new item and navigate the to share you want mounted. Done.

Tapzip and pipe

5 Aug 2008 12:45 by Rick

A little job I had to do today was to write a script (unix) to zip a file before transmitting it to a Windows system. No problem, we have zip installed…

zip file.zip file.txt

Then they decided that it was in ASCII Latin1 and they wanted it in UTF-8. Again, no problem

iconv -f ISO-8859-1 -t UTF-8 file.txt | zip file.zip -

The snag is that zip includes not only the compressed file in the output, but also headers giving details of the file name etc. In the case above the input comes from a pipe and there is no file name so it creates an entry called - (just a hyphen) which is not very useful. The unix unzip command has an option to get around this.

unzip -p file.zip > file.utf8

or you can use funzip if your implementation includes it.

funzip file.zip > file.utf8

I have no idea what they can do on Windows. I may have to do it the slow way and create an intermediate file with all the housekeeping, security and management that involves 🙁

Exercise for the reader: If you just unzip file.zip from above it creates a file called -. How do you do anything with it?

TapNo need to SHOUT

8 Jul 2008 17:52 by Rick

The Apple aluminium keyboard (and, I am told, the built in keyboard on the MacBook Pro) has a feature that there is a short delay on the Caps Lock key so you have to hold it down a little bit longer before it takes effect. This is to guard accidentally writing emails and IM messages all in capitals. The guy who thought of that one should GET A BONUS, but I would like it adjustable—a little longer in my case.

Some people prefer to disable it completely and, I must admit, it is a pretty useless key.

TapAdobe vs. Clue ends in divorce

7 Jul 2008 11:16 by Rick

Adobe started to lose it some years ago when some marketing wizard decided to re-brand Acrobat Reader and call it Adobe Reader. You still find even experienced system managers confusing the names and you are never quite sure if they are talking about the real Adobe Acrobat or just the Reader freebie.

So when they announced Adobe 9 I wasn’t sure at first if they meant the full product or just the Reader (or both). Especially as we have only just had the emergency patch for Reader 8.1.2. “What patch?” do I hear you ask. Well, to digress, it was very important because it fixed a security hole that could allow those safe files called PDFs to compromise your system. Open up Reader now and click on Help > Check for Updates and it should download a thing called “Security Update 1”. Not that you would realise when it is done because for some stupid reason, the version number is not changed so it still says Version 8.1.2. While we are on the subject, if you download the Windows patch by hand it is called AcrobatReaderUpd812SU1_all.msi so it seems even Adobe are confused by the name.

Now the rest of this is hearsay as I haven’t tried it myself yet but it seems that the new Adobe 9 has bundled together the PDF Reader which we generally tolerated with Flash, the product that Adobe bought from Macromedia and which we all love to hate. It also includes Acrobat.com and Adobe Air, neither of which I have heard of. That is a 33MB download and 200MB+ install for something to just read PDF files! Also beware of the Free eBay desktop which is automatically ticked for you.

I won’t be bothering on my Mac—Preview does the job for me just fine and my Windows systems can stick with Version 8.

TapLiberalised top level domains

28 Jun 2008 13:19 by Rick

I wrote a while ago about how there were more top level domains than I was aware of—.aero, .museum etc. Well on Thursday ICANN, the controlling authority, voted to drop most restrictions and allow applications for any string of three or more letters not already allocated.

It is amazing, however, how most of the commenters to the article in The Register seem to have missed the point and/or not read the article. What this ruling does is allow organisations to register a Top Level Domain so that the sub domains (which are the ones actually used) can be allocated either on request or sub-letting. Each organisation will have to both put up a substantial sum of money (where that goes beyond the administration expenses is unclear) and provide an approved registration and regulatory mechanism to conrtol the lower levels. It is not for Tom, Dick, or ASDA to register fancy addresses for their own personal use.

This ruling also allows strings in alphabets other than the current Latin/Roman but it is not clear if digits will be available. An early use of this facility will be local alphabet equivalents for the national codes for Russia and China. This liberalisation was already coming for lower level domain names and some Cyrilic ones can already be seen. There are (supposed to be) rules to stop the use of characters that look like Roman ones to spoof look-alike addresses. The newer browsers have built in safeguards to warn you of this.

TapColour Management

24 Jun 2008 20:37 by Rick

To those who look carefully, photographs on web pages look dull compared to how they look in photo editors. I always thought it was due to the low resolution but apparently it is all about Colour Management Profiles. These are instructions placed in the image file which tell the receiver how to render the colours and are intended to allow matching on different devices—e.g. Screens on different computers, projectors and printers. However, Firefox has always ignored them; until Firefox 3. IE ignores them as well; Safari does read them but in a different way.

In Firefox, if you go to the about:config page and set gfx.color_management.enabled to True then, after a restart, it will be activated. All the photographs will look just a little bit richer, brighter and more sparkling. The photo purists are wondering why it has not been enabled by default?

Well if you have tried it in Windows you will see—everything else will have taken on a different tinge compared to what it was before, mine went pinkish, others have reported a cream bias. The greys are no longer neutral because in the process of doing it to photographs that come with built-in profiles, they have applied a default profile to everything else on the page and it all looks wrong. The official Mozilla page says that it relies on a properly calibrated monitor. Well mine is as close as I can get it without special hardware but that is not the answer. What you also need to do is set the default profile gfx.color_management.display_profile. You would expect this to be the actual values for your monitor, but that is what Firefox is already doing. What you need to do is set it to C:\WINDOWS\system32\spool\drivers\color\sRGB Color Space Profile.icm to stop Firefox altering it and allow the Windows display driver to make the correction for the screen. Brad Carlile has a good test page—if the greys still look grey and his three test pictures all look the same then you have got it right. The Apple Mac doesn’t seem to have a problem, just set the enabled flag to True and it mostly works. Safari (at least on the Mac) does it like this by default.

Secondly, plugins, particularly Flash, do not compensate, so sites that blend from backgrounds to Flash will no longer be seamless—but my fix seems to solve that as well, unless they are trying to blend Flash with JPG which would be unusual. I haven’t got this working for the Mac yet. and, although Flash blending is ok, apparently Safari falls down for a similar reason; the CSS and GIF backgrounds don’t blend seamlessly with JPG and PNG images. This may also affect my fix but I haven’t had a chance to experiment with it yet. What I need is another comprehensive test page. Update: It is a heavy read, but this page by G. Ballard explains it all and has a lot of test pictures or this excelent article by Jeffrey Friedl.

Finally, it also takes 10–15% more processor power to render the pictures so those on older systems will see a noticeable slow down on picture heavy sites.

I first though that I would be switching it off again until they get this sorted out properly, but having found the profile hack I will leave it, I don’t care about Flash anyway.

TapFirefox 3 Extensions

18 Jun 2008 11:12 by Rick

Even after the extended build-up and yesterday’s world-wide launch there are still a few extensions that haven’t been updated for Firefox version 3.

These are a few that I found that could be simply hacked to enable them to load. I haven’t altered the functionality at all, just changed the maximum version number to 3.* and tested them. They work on my system but you use them at your own risk on yours.

CacheViewer 0.4.7 — Update: Hacked version 0.4.7.99 Version 0.4.7.1 now available.

Stop-or-Reload Button 0.2.2 — The page says it works with Firefox 3 but it doesn’t. Hacked version 0.2.2.99

UK Threat Level 0.15 — Update: Hacked version 0.15.99 Version 0.16 now available.

British English Dictionary 1.19 — The page says it works with Firefox 3 but it doesn’t. Hacked version 1.19.99 supersedes my earlier version. This extension is also suitable for Thunderbird 2.*. It is not entirely clear if this dictionary is needed for Firefox 3 or if there is one built into the English (British) basic download.

View Cookies 1.7 is ok but for some reason won’t update automatically.

Update: Google Pagerank Status 0.9.8 — Although the web site doesn’t say so, the version there is now 0.9.9 and does support Firefox 3.

HTML Validator 0.8.4.1 (Mac OS X Intel) — It says that version 0.8.5.2 is now available but there is nothing on the other end of the link. Mac OS versions are made even though the official Firefox Add-ons page says they are not.

Objection 0.2.2 — Like View Cookies, the automatic updater doesn’t seem to work. Version 0.3.3 supports Firefox 3.

Update: Minimize to Tray 0.0.1.2006102615+ (windows) — Hacked version 0.0.1.2006102615.99 also works with Thunderbird 2.*.

Autohide 1.2 — Most of the features are incorporated into the base build of Firefox 3 so I won’t be using it.

TapAVG 8 Rumpus

17 Jun 2008 12:08 by Rick

There is growing concern among web site owners, their hosts and web marketing experts that AVG 8 is causing increased costs. The issue is LinkScanner and what it does to traffic. I have already commented that, for those users on limited bandwidth such as dial-up, it should be disabled and I have provided instructions on how to do this. But if it is also significantly affecting the other end of the internet—the web hosts—then AVG may be forced to modify it.

The way it works is that if you do a search using the major engines (at least Google, Yahoo and MSN Live) then you get a page of results, generally 10 at a time. AVG LinkScanner then steps in and visits every one of those results and checks the results for malware and sets a flag (Good, Doubtful or Bad) against each one to warn of potential problems.

The issues for users are:

  • The increased bandwidth caused by the requests and results could have an impact on performance and possibly on any quotas you may have. This will be particularly true for dial-up users but could also affect capped broadband. On the other hand, users may judge that the benefit offsets the costs.
  • Your logs and/or cache could show that you have visited sites that you had no intention of going to. This could have embarrassing or legal implications.
  • This could also be reflected in any profiling that your ISP or the sites themselves are doing which could affect the advertising you receive (it could also be regarded as an asset as it may upset statistics gathered by Phorm type systems 🙂 ). A possible impact is that a site may think you have already seen a particular advert and not deliver it again—you never know, it may have been the offer you were waiting for.
  • If the scanner itself were compromised then it is getting a lot of potential data to further infect your system.
  • Because much malware is served via adverts, and adverts are rotated on every visit, the green tick may give you a false sense of security.

The issues for site owners and their friends are:

  • They will see increased traffic, bandwidth which they have to pay for. Larger sites may need to deploy extra servers and connections to cope with the additional load.
  • Sponsored results will also be visited and the agencies will charge the customer for each visit and it increases the apparent Click Through Rate with bogus visits. Update: Apparently AVG 8 goes direct to the raw URL and bypasses the Click Through detector so that the customer will not be charged. They will, however, still see the increased traffic.
  • Ordinary pages that are funded by advertising appearing on them will see an apparent drop in Click Through Rate because the user never sees the ad to visit it.
  • Web statistics become [even more] unreliable due to the increase in “bounces” i.e. visitors that come in from search and don’t go to any other pages.

At present the traffic is detectable for what it is, so concerned web owners can allow for it either in their analyses or even suppress responding to them. However, if that remains the case, then it will also be detectable by any malicious hosts or content to fool the scanner into returning a clean bill of health. It will be interesting watching the news in the next few weeks to see how this is resolved.

TapTime Machine Hangs

12 Jun 2008 18:21 by Rick

This seems to be a bug in Mac OS X 10.5.* (Leopard). If you have the Energy Saver options set to “Put the hard disk(s) to sleep when possible” (obviously not the same euphemism in the States as here 🙂 ) then Time Machine can hang in the “preparing backup” state. Forum help here and here.

Oh, and another thing—backing up your VMware images using Time Machine is a good way to fill up your disk in no time. Use a separate guest O/S backup mechanism to do them,

TapPapers please

10:31 by Rick

“Geheime Staatspolizei, die Papiere bitte!”

“Homeland Security, boarding pass and ID please!”

Can you tell the difference? I can’t. The second is now standard for internal flights in the USA even though it is unconstitutional and goes beyond the legal requirements. Some of us are sure that the same thing will come here if we are not careful.

Thanks to a comment by Ravan on Bruce Schneier’s blog for the idea.

^ Top