Archive

Articles taggués ‘Mac OS X’

Refresh Launchpad in Mac OS X 10.7 Lion

07/02/2024 Comments off

Source: osxdaily.com

hide-apps-in-launchpad-osxlionLaunchpad is OS X 10.7′s iOS-like app launcher, it’s a nice utility but it does have some quirky behavior in Lion. One of the major issues is that sometimes apps won’t appear in Launchpad at all, or when you delete an app it doesn’t disappear as it’s supposed to. If you run into this, try this tipleft in the comments about LaunchPad Control about refreshing Launchpad and its contents.

Relaunching Launchpad

Launchpad is attached to the Dock app, so the easiest way to relaunch LaunchPad is to kill the Dock from the command line:

killall Dock

Both the Dock and Launchpad will relaunch and that should clear up most minor issues with app persistence.

Refresh Launchpad Contents

If relaunching alone hasn’t fixed LaunchPad and apps are still not showing up, try deleting Launchpads database files located inside your home ~/Library directory, which forces them to rebuild. The directory path you are looking for is:

~/Library/Application Support/Dock/

The fastest way to get there is by using Command+Shift+G in the Finder to access the “Go To Folder” function, then just paste that directory path in. You will see a folder like this:

launchpad-database-files

If you want to back these up you can, otherwise just delete them by dragging the .db files to the Trash, and then kill the Dock again from the Terminal to force the databases to regenerate.

killall Dock

Take note that you will lose any custom icon placement and folders that are setup within Launchpad, because that information is stored in the database file you are trashing.

 

One-Line Terminal Command to Refresh Launchpad Contents

If you are comfortable with the command line, you can also do this entire process through the Terminal with the following commands:

rm ~/Library/Application\ Support/Dock/*.db ; killall Dock

If you want control over exactly what shows up in Launchpad rather than just creating a bunch of folders, use the third party System Preference Launchpad Control, it’s free and works as a sql frontend to the Launchpad database.

 

Categories: Logiciel Tags: ,

How to convert .rmvb to .avi (on PowerPC and Intel Macs)?

06/02/2024 Comments off

The good news is it’s very easy. The bad news is you’ll need a PowerPC Mac.A big thank you to Bluemint for pointing out an Universal Binaries version of the Real Codec is actually available, making the conversion possible on both PowerPC and Intel Mac. The instructions below are herewith updated.

What you’ll need:

  1. ffmpegX – It’s a Mac OS X graphic user interface designed to easily operate more than 20 powerful Unix open-source video and audio processing tools
  2. mpeg2enc – Download to your Downloads folder.
  3. mencoder & mplayer – Download and decompress the zip file.

Setup:

The first time you launch ffmpegX it’ll ask you to locate three components (items 2 & 3 above). Click on the respective “Locate” buttons to tell ffmpegX where they are. After that, enter your Mac OS X login password (ffmpegX won’t work if your login password is empty) and click the “Install” button.

Download and Install the Real Codec (Universal Binaries)

  1. Download the “Mac OS X x86″ binary codec package from one of these links on this page.
  2. Unzip the downloaded zip file and install the codec package.
  3. Select “Go to folder …” from Finder’s “Go” menu.
  4. Type “/usr/local/lib/” in the input text field and click “Go”
  5. You should see a “codecs” folder in the new window.
  6. Drag the “codecs” folder to your Desktop, and rename it to “reallib”.
  7. Move the “reallib” folder to “/Library/Applications Support/ffmpegx/”.

Performing the conversion to .avi

UB Rockz on any valid unicode Path/Filename.

ffmpegx-rmvb
Drag and drop your rmvb file into the “From” well and just click the “Encode” button to start encoding. Unless you’re an expert user, do not be tempted to change any settings when converting a .rmvb file.

In other words, for a successful run, just drag, drop, and click Encode. What more can you ask for?

Footnotes:

  • Re-launch ffmpegX if you messed up the default settings.
  • You can close ffmpegX’s main window after clicking Encode; a new stand-alone Progress window shows you the progress.
  • Repeat the process to convert more files.
  • The “Play” button plays the .rmvb.
  • The “Preview” button plays the (partially) converted .avi file.
  • Press the Return key to stop playback.
  • You can download and install MPlayer to play your .rmvb files. However, it has a bug whereby it only plays video and totally ignores embedded links and other wonderful added features Real is famous for.
Categories: Logiciel, Système Tags: , ,

OS X: How to reset the DNS cache

02/02/2024 Comments off

OS X Mountain Lion or Lion

Use the following Terminal command to reset the DNS cache:

sudo killall -HUP mDNSResponder

Mac OS X v10.6

Use the following Terminal command to reset the DNS cache:

sudo dscacheutil -flushcache
Categories: Réseau Tags: ,

Merging directories (folders) on Mac OS X

01/02/2024 Comments off

merging directoriesEvery now and then I find myself in a situation where I have a folder (I’ll call it source) of files and nested folders, possibly many levels deep, that I want to copy into another folder (which I’ll call target). target already contains some of the files and folders I’m copying, and it also has files and folders that are not present in source.

Simply copying source to target’s parent folder in the Mac OS X Finder will replace everything in target with the contents of source. This is not always what I want, and in my opinion it’s one of the biggest flaws of the Mac OS X Finder. Not just Mac OS X actually – back in the pre-Mac OS X days there was a utility called Speed Doubler that patched the Finder to add a smart replace option when copying files.

It’s possible to manually open each folder and their subfolders and copy just the files, but it can be very tedious. There are also third party software options that let you merge files when copying, and if you have Apple’s Developer Tools installed there is the FileMerge utility.

However, you can open a Terminal window and copy the files from the command line, which saves you from installing extra software. Since I keep looking up the syntax every time I need to do this I decided to document it here for future reference.

cp

One command line utility that can copy directories without replacing everything in them is cp:

cp -pRv source/ target

The pRv options do the following:

  • p preserves timestamps, flags, modes, and ownerships of files
  • R copies the entire subtree
  • v makes cp output the name of each file that is copied

Note: The / after the name of the source directory is important since it tells cp to copy the contents of the directory and not the directory itself.

rsync

You can also use rsync:

rsync -av source/ target

The av options do this:

  • a tells rsync to copy recursively and preserve file attributes
  • v makes rsync print information to the terminal window about what was copied

Just as with the cp command, the trailing slash after the source directory is important to make sure only the contents of the directory are copied.

ditto

A third option is ditto:

ditto -V source target

The V option prints information about what was copied.

Deleting files that don’t exist in the source directory

Sometimes you want a merge to delete files that exist in the target directory but not in the source directory. That’s easy with rsync (but be careful as there is no undo):

rsync -av --delete source/ target

But wait! What if the target is under version control? Won’t that delete any .svn or .git directories as well? Yep. That can be avoided by adding filters. Let’s say you want to keep all .htaccess and .svn files or directories in the target directory. This does just that:

rsync -av --delete --filter="- .htaccess" --filter="- .svn" source/ target

A useful tip when you involve delete is to add the n option at first to do a “dry run” and only show what would have been deleted. Again, be careful with delete since there is no undo.

Hoping for Finder integration

It would be great if Apple could make it possible to use the Finder to copy folders like this. It could be a secret option somewhere or invoked when you hold certain modifier keys when copying. It doesn’t matter as long as it’s possible.

Most people probably don’t need this feature every day, but when you do need it it can save lots of time. Having the feature built into the Finder would also reduce the risk of people accidentally deleting files because they don’t realise copying folders replaces everything inside them.

 
Categories: Logiciel, Système Tags: , , ,

Thunderbird/Change account order

26/01/2024 Comments off

To change the order of the accounts in Thunderbird simply edit

~/.thunderbird/<your profile>/prefs.js in GNU/Linux,
C:\Documents and Settings\<your profile>\Application Data\Thunderbird\Profiles\****.default\prefs.js in Microsoft Windows XP,

Lire la suite…

Categories: Logiciel Tags: , ,