Categories
System Software Notes

quotefixformac

QuoteFix is a plug-in for Mail.app which fixes some issues with replying to e-mail:

it removes the signature from the original message

it removes certain unnecessary empty lines

it positions the cursor below the original message, instead of above it (in other words, bottom-posting instead of top-posting)

via quotefixformac – Project Hosting on Google Code.

W00T

Categories
System Software Notes

Display contextual menus on Dock click-and-hold

To use the old-style contextual menus when you click-and-hold on an applications icon in the Dock i.e. how it worked in 10.5 and earlier, type the following two commands in Terminal dont type the $:

defaults write com.apple.dock show-expose-menus -bool no; killall Dock

All credit for this hint goes to Jeff Johnson of Lap Cat Software, who blogged about the solution. This hint is a significant update to this one, which pointed out you can use Control-click to get the old-style contextual menus. [robg adds: To undo this behavior, you can either change no to yes in the above command, or delete the key entirely with defaults delete com.apple.dock show-expose-menus; killall Dock.]

via 10.6: Display contextual menus on Dock click-and-hold – Mac OS X Hints.

Categories
System Software Notes

10.6: Quick Look generates tables for .csv files

Snow Leopard not only lets you preview comma-separated value (.csv) files , but it displays them with table formatting. Try it out.

via 10.6: Quick Look generates tables for .csv files – Mac OS X Hints.

Categories
Utilities Notes

Monitor too bright? Put on some Shades

This one goes out to all the night owls. As much as I love my iMac, I was surprised to see how little control it gave me over the screen’s brightness. I often work on my iMac late at night in an otherwise darkened room, and even at the lowest brightness setting, the iMac is really, really bright. All of the Mac laptops I’ve used have the ability to dim the screen down to completely dark, but the iMac does not.

via Monitor too bright? Put on some Shades:

Categories
System Software Notes Utilities Notes

hfsdebug: A Debugger for HFS Plus Volumes

A debugger is a program that facilitates debugging, which may be casually defined as the process of finding and fixing “bugs” in the object of interest: usually a piece of software, firmware, or hardware (although debugging may apply to any domain).

via hfsdebug: A Debugger for HFS Plus Volumes.

Categories
General

Forcing an IP Address

In the “real” world you simply add an entry to /etc/hosts like

1.2.3.4 myhost

The Mac OS X world is different. For version 10.5 and later you do the following

# Create the mapping
sudo dscl localhost -create /Local/Default/Hosts/x.y.z IPAddress 127.0.0.1
# flush the cache
sudo dscacheutil -flushcache

# Show the mappings
sudo dscl localhost -readall /Local/Default/Hosts

# Delete a mapping
sudo dscl localhost -delete /Local/Default/Hosts/x.y.z
sudo dscacheutil -flushcache

Categories
Utilities Notes

How to duplicate CD on a Mac

How to duplicate CD on a Mac

My daughter’s music CD for her skating short program got badly scratched and because it was the last-but-one copy as skater you need many copies, in case you loose/forget/scratch/misplace it,  I was confronted with the task to create a new copy. Rather than starting Nero on Win-XP notebook, I have decided to learn finally how to do it on Mac. It must be simple, intuititive and much easier than on Windows. Right ? Wrong To my big surprise, there was no easy, idiot proof, very obvious way mac-ish drag and drop way how to acomplish it. It was not exactly hard either, but it actually took consulting the omniviscent Google to find it out. To save the search for the next time, I’ll write it down. Here is what you have to do:

1 Create a disk image from source CD

Insert the source CD the one you want to copy

Open the Finder, open Applications, then Utilities, and start the Disk Utility program

In Disk Utility, select File -> New -> Disk Image from Folder

The Finder will appear – select whole CD and click on the Image button

A new dialog box will appear. In the Where box, choose Desktop. In the Image Format box, choose DVD/CD master

Click Save

Now a new file will be created on your Desktop, titled the name of your CD with a “.cdr” extension. This file is a disk image of your CD. Btw, it works even if you do not select cdr format and write disk as generic Disk Image .dmg.

Now you need to burn it on new, blank CD:

2 Create new CD from a disk image

Eject your original CD from the CD drive

Return to the Disk Utility program.

You should now see the disk image of your CD on the left hand side, typically at the bottom of the list. Select the image, and then click on the Burn button

Follow the directions and insert a black CD-R disc when prompted

You can repeat step 2 as many time you need, of course . Next time I am going to use the image, of course assumed that it will be still the same music. Thanks to Spotlight magic, I am sure I will be able to find it, because I used proper, descriptive and obvious name “track 86.cdr”. Just kidding .

What do you think – why did not Apple make this process easier – as they did for many other chores ? Has it maybe anything to do with the fact that copying CD can be and quite often is used for copyright violation activities ?

via How to duplicate CD on a Mac « Miro’s World.

Categories
System Software Notes Utilities Notes

Screen Sharing in Leopard

As with any other network service, Screen Sharing has a set of virtual “ports” which isolate network traffic for that protocol since it and web traffic and other network services are all using the same IP address and connections. These ports must be opened in all network devices for all computers involved in the screen sharing sessions. This means firewalls on the local computer, as well as any routers or hardware firewalls must also be set up to pass traffic on the following ports:

TCP: 5900 – 5902, (3389 for connecting to Windows machines)

UDP: 4500 (for Back to My Mac users)

Depending on the network devices used, these ports can either be opened completely, or forwarded to the local IP address for the desired computer, but you will have to consult the documentation for your router to see about how to change these ports. Additionally, if your router supports “UPNP” (Universal Plug & Play) or “NAT-PMP” (NAT Port Mapping Protocol), then it should work for Back to My Mac. The list of routers in this Apple Knowledgebase article are some that support Back to My Mac and other screen sharing.

via Tutorial: Screen Sharing in Leopard (Mac OS X 10.5): How it works and how it doesn’t – MacFixIt.

I really need to get around to making the firewall behave for screen sharing.

Categories
Unix Notes

List functions defined in shell

I defined a function in bash. I forgot what it was, specifically. I wanted to see all of the functions.

declare -f - functions+body
declare -F - functions

Categories
Unix Notes

clone media

sudo rsync –dry-run –verbose –archive “/Volumes/black-hole/Clones/” “/Volumes/Media”