Miralinux Blog

  • Home
  • Linux
    • Scripts
    • CentOS
  • Apple
  • Microsoft
    • Features
    • Office
    • Windows
  • Learning
  • Games
  • Multimedia
    • XBMC
  • Other
    • About WordPress
  • Links
    • General
    • Software
      • Autocad
    • Hardware
      • BIOS
    • Linux
    • WiKieS

Monthly Archives: September 2011

iTunes – How to Remove Broken or Dead Tracks

Posted on 2011/09/25 by arno Posted in Apple

source: http://paulmayne.org/blog/2007/11/how-to-remove-broken-or-dead-tracks-from-itunes/

My iTunes XML database recently got corrupted and it seemed I had lost all my many hours worth of song ratings. Luckily I was able to re-construct the database through an few month old backup and my iPod. In doing so, my entire iTunes library was duplicated with broken links. Since iTunes does not currently allow you to sort by the broken (‘!’ icon), it’s a laborious, manual process to remove all these track listings.

That was until I found this ingenious process somewhere on the Apple forums:

1. Make a smart playlist called “All Files” with this rule: “Artist” is not “123456789″ (or any nonsense name that won’t be in your library).

2. Make a static playlist called “All Live Files”.

3. Make a smart playlist called “Missing Files” with these rules: Match all of the following rules, Playlist is “All Files”, Playlist is not “All Live Files”

4. Select all the files from “All Files” and drag them into “All Live Files”. The dead files marked (!) will not copy over.

5. “Missing Files” will contain all of your dead files. Select all and delete. Voila, a nice clean iTunes library.

I have these three playlists in their own folder. Whenever I gather more than a couple dead tracks for whatever reason, I delete all the tracks in “All Live Files” and repeat steps 4 and 5.

How to Delete a file from a playlist:

Windows: SHIFT + DEL
Mac: OPTION + DEL

UPDATE:

A reader named Art informed me of these reacent changes in deleting tracks in Windows:

Apple apparently added a new twist in the latest iTunes for Windows – the Delete option is disabled in a Smart Playlist. To get around this, I selected all tracks in my Missing Files folder, did Files\New Playlist from Selection (since it won’t let you drag & drop the dead tracks to a playlist), and then deleted them from there.

UPDATE October 2008:

If you are on Mac, there is a super simple solution using AppleScripts: Run, Super Remove Dead Tracks v2.1 or search Doug’s AppleScripts for iTunes for a solution.

If you are on Windows, I received an email from John Haywood:
On a PC at least, no longer can you delete files from playlists made through “File –> New Playlist from Selection.” When this didn’t work for me, my next thought was to do a mass ID3 tag edit (i.e. changing the Artist for all of the broken links to “DEAD LINK”) from within the Missing Files smart playlist, and then deleting all DEAD LINK songs from the main library page, but (understandably) ID3 tags can’t be edited from within smart playlists.

The only thing I could find that iTunes lets you change in bulk in a smart playlist that carries over to the main library is Rating. So after going through your steps to set up the Missing Files smart playlist, people should rate all broken songs 1 star, then sort in the main library by rating, and then mass delete. Whew!

UPDATE January 2009: (Thanks for this new information from Josh Watson)

On Windows, Shift-Delete DOES still work from a smart playlist (it never didn’t for me). Pressing shift and then right-clicking gives a delete option, but this didn’t seem to work. I just did it in iTunes 8.02 to remove all my dead files.

Also, you need to add the following rules to the Dead Files list:
“Podcast” “is” “false” –> or it will include podcasts
“Kind” “does not contain” “Audible” –> or it will include audiobooks (nearly deleted mine!)
“Kind” “does not contain” “MPEG” –> or it will include vodcasts (nearly deleted mine!)

Alternatively, you can drag all your audiobooks/podcasts/etc into the live files list too!

UPDATE September 2009: (Thanks for this new information from Lee McKay)

I did some playing around and figured out a way to do it using only two playlists, one smart, and one static.

1) Make a static playlist called “All Live Files” and copy your entire library into it.
2) Make a smart playlist called “Missing Files” with the rules set as ” ‘Playlist’ ‘is’ ‘Music’ ” and another rule set as ” ‘Playlist’ ‘is not’ ‘All Live Files’ ”
3) As stated in your blog, the broken songs will not transfer and “Missing Files” will contain all those broken songs.

UPDATE July 2011: (info from Mark Sutherlin)

Using Windows? Check this blog post with some current information regarding this issue.
http://www.makeuseof.com/tag/effectively-remove-duplicate-tracks-itunes-windows/

Apple iPhone

https://blog.miralinux.net/2011/09/532/

Posted on 2011/09/22 by arno Posted in Uncategorized

Using Group Policy Preferences to Map Drives Based on Group Membership

http://blogs.technet.com/b/askds/archive/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership.aspx

Linux tips

Posted on 2011/09/21 by arno Posted in Linux

Terminal

tmux – Cheatsheet | Shortcuts (screen like program) – Hawkhost

tmux Tutorial | Split terminal window easily | Split Tutorial – Shortcuts

Sync – rsync / csync / etc

http://everythinglinux.org/rsync/
http://linux.about.com/library/cmd/blcmdl1_rsync.htm

http://www.csync.org/
http://www.openlogic.com/wazi/bid/188061/Unison-Makes-Two-Way-File-Sync-Simple
http://anouar.im/2011/12/how-to-backup-with-rsync-tar-gpg-on-osx.html

Assigning multiple addresses

IP Help – http://linux-ip.net/html/tools-ip-address.html

Using the following command, we can configure Virtual IPs in the Linux box at run-time without re-booting the machine or re-starting the network.

/sbin/ip addr add 172.19.1.2/32 dev eth0
/sbin/ip addr add 172.19.1.3/32 dev eth0

The same interfaces can be made down by using the following command.

/sbin/ip addr del 172.19.1.2/32 dev eth0
/sbin/ip addr del 172.19.1.3/32 dev eth0

TCPDUMP Command Examples

Packet Analyzer: 15 TCPDUMP Command Examples

  • Login
  • Mother of all Portals
  • .Handy .Handig
  • Links – wikis – wikies

Archives

  • June 2022
  • October 2021
  • June 2021
  • September 2016
  • April 2016
  • March 2016
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • April 2014
  • March 2014
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
CyberChimps ©2025