Kenjun

November 13, 2007

RPM - Redhat Package Manager…

Filed under: Linux, Systems Administration — kenjun @ 4:14 pm

What package owns a file:

rpm -ql /path/to/file

What files belong to a package

rpm -ql package_name

Verifying a package (note that this will be silent if there are no errors)

rpm -V package_name

http://www.tfug.org/helpdesk/linux/rpm.html

November 1, 2007

MacOSX Compact Sparse Image…

Filed under: Apache, MacBook, MacOSX — kenjun @ 10:03 pm

One useful OS X feature is the ability to create disk images. A disk image is a single file that, when double-clicked, appears like a typical hard drive to the operating system. (Most software you download comes on a disk image.) Disk images a great way to store related files that you don’t need to use often, as they can be “out of sight” until you need them. They’re also useful if you want to store something securely, as you can create encrypted disk images that require a password to mount.

There are essentially two types of disk images—a normal disk image and a sparse disk image. With a normal disk image, the disk image will consume as much drive space as its size, even when empty—i.e. a 40MB normal disk image requires 40MB of drive space, even if you’ve never used it. Sparse disk images, on the other hand, are disk image files that require just as much space as their contents require. So a 40MB sparse disk image will only need 40MB of drive space if you’ve saved 40MB of data onto it. The disk image will grow automatically as space is required.

What isn’t so obvious is that a sparse image won’t shrink automatically. Check out the link for a handy article on how to compact a sparse image.

http://www.macworld.com/weblogs/macosxhints/2007/06/compactsparse/index.php

Argument list too long - xargs is the solution…

Filed under: Uncategorized — kenjun @ 3:55 pm

 If you’re dealing with a lot of files and get messages like:

mv *.* tmp/
-bash: /bin/mv: Argument list too long

then you need xargs.

xargs is a command of the Unix and most Unix-like operating systems. It becomes useful when you want to pass a large amount of arguments to a command. In that case xargs will break the list of arguments in sublists large enough to be acceptable.

E.g. http://www.unixreview.com/documents/s=8274/sam0306g/

October 30, 2007

Do I need a release for my film/photograph?

Filed under: Documentaries, Film, Photography — kenjun @ 4:57 pm

Great guide to the law on capturing images.

In short, it’s your right to take photos unless you infringe on someone else’s rights. In short:

3. Does the photo NOT include as a significant element a recognizable: person, celebrity, artwork, logo, trademark, cartoon character, professional sporting event, or view from a paid entrance?

* Yes. Congratulations, you have full reasonable use of the photo. Yes, you can use it, publish it and sell it.

* No. Then you’re limited to private and “fair use” (generally educational, newsworthy but not money-making or malicious use). So you could probably post the photo on your Web site (as long as the subject is not private or embarassing, and the display is not false or misleading). But you can’t sell it as stock photography or use it on the cover of a product (”commercial use”). To do that, you’d need a “release,” a written contract with the property owner. In the case of people, this is called a “model release.”

http://www.photosecrets.com/law.html

October 25, 2007

Differences between DVD-R and DVD+R

Filed under: Technology — kenjun @ 7:23 pm

In short, not a lot these days.

Some slight differences, DVD-R recognised in 4% more set top boxes and can record 6MB more data although DVD+R may have better error correction.

http://ask.metafilter.com/50399/Difference-between-DVDR-and-DVDr

How to track down Spam email…

Filed under: Email, Gmail, Spam — kenjun @ 12:17 pm

Here’s a pretty useful guide as to how to decipher spam email headers.

In a nutshell, look for the “Received: from“ header furthest down the email headers.

http://www.online-tech-tips.com/computer-tips/how-to-track-the-original-location-of-an-email-via-its-ip-address/

October 17, 2007

Living with Microsoft Word

Filed under: Microsoft, Microsoft Bugs, Productivity — kenjun @ 2:41 pm

Very interesting piece on how to deal with the bugs and problems inherent in Microsoft Word

Microsoft Word is a beast [1].  Word is an evolved creation, the bastard offspring of marketing, some original thoughts on how to create a word processor, and generations of Ziff-Davis (PC Magazine) induced rapid mutation to fit someone’s distorted checklist. It is to software as the Irish Elk was to mammals. It is an inherently incurable mass of contradictory impulses, which are fully evident in Word’s formatting model. It is the single most miserable piece of software that I absolutely must use.

This web page contains my personal notes on attempting to live with the beast.

This document borrows extensive from the material listed in Links. Over time it will be all my own writing, but at this point some is cut and pasted from the real experts who are acknowledged in the Links section. It began with this usenet article.

I must add that despite my personal dislike of Microsoft Word I am grateful to the experts who’ve responded to my questions on microsoft.public.word.formatting.longdocs. They fight a noble war with the Beast. Lastly, I’m interested in suggestions on alternative word processors.

http://www.faughnan.com/msword.html 

September 7, 2007

Viewing Webpages with Non-Latin Alphabets

Filed under: Firefox, Japanese — kenjun @ 10:57 am

Viewing Webpages with Non-Latin Alphabets

Use the character encoding option in your Firefox menu.

e.g. View > [Character] Encoding > Japanese (Shift-JIS)

August 27, 2007

EyeTV - can’t record the live buffer - shame!

Filed under: EyeTV, MacOSX — kenjun @ 10:54 am

There is one feature I think is missing from EyeTV though, has got to do with recording and time-shifting. EyeTV always keeps a buffer of a few minutes, so you can rewind live TV incase you missed something. Very handy for when something happens quickly or you swore you saw something but didn’t’ believe it. However, you can’t record what’s in this buffer to save it for later, which is what you usually want to do if something weird/funny/odd happens. I’m sure the boffins at Elgato are working hard on integrating it into EyeTV 3.

http://forums.mactalk.com.au/showthread.php?t=25496

August 24, 2007

Erase and reburn a CD-RW on a Mac

Filed under: MacBook, MacOSX — kenjun @ 12:50 pm

I have been using CD-RW disks on my Apple MacBook Pro, and while I have figured out how to use a Burn Folder to create the disk in the first place, how do I rewrite the disk with newer content without having to buy something expensive like Roxio Toast??

http://www.askdavetaylor.com/erase_reburn_cdrw_on_mac_os_x.html 

« Newer PostsOlder Posts »

Blog at WordPress.com.