Recently I had a script that I needed to run about 100 times in a row. This little one liner came in super handy for that. Replace “COMMAND” with the command that you want to run. In this example, the command will run 100 times in a row!
for i in `seq 100`; do COMMAND; done
iTunes 11 sports an all new interface and thats great, but if you are like me, you just want to use the features that you’ve become used to. I’ve figured out how to get most of the old features turned back on in iTunes 11.
- Get the sidebar back by clicking the button in the upper left corner, and then click “Show Menu Bar” on Windows. Then select View > Show Sidebar.
- Get the status bar back by clicking View > Show Status Bar.
- Click Songs in the top bar, and sort by Artist for the traditional list view.
Now, iTunes 11 should look close to iTunes 10. I have found that I need to use the album view to show artwork. The Song view no longer shows album art.
I would gladly pay more than $20 a year to have full access to my 150+ gig library of music. Until then, I guess I’m not allowed to play 🙁
Mac OS X Lion (10.7), introduced a bunch of new features to the Mac platform. At the same time it’s taken away some things that experienced Mac users are used to. The idea was to remove things that the average user doesn’t need.
If your like me, you might have yelled “Hey! Where is the Library folder in OS X Lion?”, when trying to access data from the iPhone simulator.
After doing some research, I found that the folder was not gone, it had simply been hidden. Running the following command from the terminal, I was able to make my Library folder visible once again.
chflags nohidden ~/Library/
You may also need to restart finder by using this command
killall Finder && open /System/Library/CoreServices/Finder.app
If for some strange reason you want to go back to being a n00b and hide the Library folder again, you can use the following command
Just like my last post, I was working with a directory of about 1000 files. There were all sorts of problems with the way they were named. Anyone who is used a *nix type system will know that “.jpg”, “.Jpg”, “.JPG” are all very separate things. To solve the issue I was having I needed to rename all of the files in the directory to lowercase.
I fired up my friend the Mac terminal and ran the following command:
for i in *; do mv "$i" "$(echo $i|tr A-Z a-z)"; done
The code loops through each of the files in the current directory and renames it to the lowercase equivalent. fast, simple, elegant. Major time saver.