The indispensibles
Posted on 13 Apr 2007 at 14:53
Ian Wrigley and Simon Brock take a look at some of the open-source utilities they use to make life that little bit easier.
ImageMagick is an extremely powerful utility and we don't have space here to detail anywhere near its full list of features. Some examples include resizing images; converting formats (JPEG to PNG, for instance); adding text to an image; applying filters such as blur or sharpen; rotating and cropping images; and so on.
An example of when we'd use ImageMagick might be when a client supplies us with a folder full of TIFFs at 300dpi that we need to convert to JPEGs at 72dpi. Sure, we could launch Photoshop and change them one at a time, or even do a batch conversion in Photoshop, but most of our developers don't have Photoshop installed or aren't familiar enough with it to do the task efficiently. But a single command at the command line will convert all of those files automatically in almost no time at all.
Another example of our ImageMagick use is that we run websites on which users can upload images to accompany, for example, news stories. Ideally, these users would already have sized their images appropriately, but that hardly ever happens in the real world, so instead we ensure that as soon as each file is uploaded it's passed through the appropriate ImageMagick filter to turn it into the 200-pixel wide, 72dpi JPEG that it should have been in the first place.
MacFUSE
Lastly, we must mention MacFUSE, which is a Macintosh implementation of FUSE - which stands for Filesystem in USEr space. The idea is that once FUSE is installed on your PC you can read and write a variety of different file systems, even if they're not natively supported by your version of operating system. MacFUSE was written by Google's Amit Singh, who wrote it during his "20% time" at the company - Google allows its engineers to spend 20% of their workday on projects that they're interested in, even if they have nothing to do with Google's core products.
Once you've installed the core of MacFUSE, you can then install a number of plug-ins that allow you access to different file systems. The key idea is that, apart from that core MacFUSE component, you're doing all of this in "user space" - that is, you're not modifying the machine's kernel in any way, which makes it much easier for developers to write FUSE plug-ins for all sorts of file systems. One super example is SSHFS - a plug-in that enables you to access the contents of any machine to which you have SSH access as if it were a hard drive on your desktop. Simply give your username and password, and the contents of its home directory will appear on your desktop as a standard Mac volume, so you can copy files to and fro just by dragging and dropping. Sure, you could use SFTP and an FTP program such as Transmit, but this is much more intuitive.
Another extremely useful FUSE plug-in is NTFS-3G, which lets you read and write NTFS (Windows) disks, something that isn't generally possible otherwise. (The Mac is happy writing to FAT-formatted disks, but not NTFS.) There are several other plug-ins that are compatible with MacFUSE, and more being developed all the time - one interesting one allows Amazon's S3 storage service to be used as if it were a standard Mac volume. We'll be coming back to MacFUSE in future issues as more file systems are developed for it.
Which distribution?
Reader Allan Hart asked what distribution he should choose in order to learn Linux. Hundreds of Linux distributions are available and, although they all contain the same core components, different ones are tailored to different tasks - selecting the "best" one can be difficult, especially if you're new to Linux.
advertisement
- The ease of hacking a WEP network
- Delving into the Norton 2010 line-up
- Banish your Wi-Fi woes
- How to commit Facebook suicide
- Which smartphone keyboard is the best?
- We can beat the botnets
- Paying for code doesn’t mean owning it
- Cracking the iSCSI conundrum
- The perfect open-source task scheduler
- Exploring Microsoft Office 2010 beta
- What's that eggy smell in the server room?
- How to change the default template in Word 2007
- Book review: Rework by Jason Fried and David Heinemeier Hansson
- Panorama parents deserve their file-sharing fine
- Google and BT offer free website service to British businesses
- Lords' last chance to protect broadband customers
- Extreme handwriting recognition on the Dell Latitude XT2
- 12 surprising things that Wolfram Alpha knows
- Nokia N900: phone or pocket computer?
- The sinister side of Spotify
- Windows 7 XP Mode now runs on all processors
- Intel claims new processors boost security
- Tiny domain names to be released in UK
- Google launches bolt-ons for web apps
- Microsoft warns users off 64-bit Office 2010
- Google to steal Office Web Apps' thunder?
- Network provider admits customers still don't trust the cloud
- Twitter earned Dell $9 million
- Amazon cloud "doesn't come down at Christmas"
- Microsoft: Oracle's fighting the "evolution of the industry"
advertisement



Printed from www.pcpro.co.uk