Monthly Archives: January 2010

Teaching Gestures

Note: This blog post contains video or JavaScript effects that are illegal in RSS and will be removed by most feed readers. It should display perfectly if you open it in Safari, Chrome, or Firefox, though.

As multitouch input systems are becoming more widespread, gestures are starting to be an important part of how we interact with computers and devices. Communicating these gestures to your users can be quite hard. To explain how to use a multitouch trackpad or Magic Mouse, Apple uses movies embedded right into the System Preferences application:

Mouse System Preferences

This approach works well for showing a few simple gestures, but if you’re trying to communicate a dozen complex gestures, movies become problematic. For complex gestures, it’s hard to see what exactly the person in the video is doing. Creating so many movies costs time and money. They require a lot of disk space, and they take away screen space.

Jitouch is a system extension which adds several additional multitouch gestures to Mac OS X. Some of these gestures are quite complex. The application uses labels such as «One-Fix-Press Two-SlideDown», «Two-Fix Index-Double-Tap» or «Index-Fix Middle-Slide-In» for each individual gesture. This is hard to understand.

Jitouch solves this problem quite cleverly. Mousing over a gesture produces a semi-transparent overlay in the shape of the input device which shows how the gesture works using animated grey dots. Here’s how this looks for Apple’s Magic Mouse:

Jitouch Multitouch Preview
Please use Safari or Firefox to watch this movie.

It’s a clean, elegant, and simple solution to a problem that will become more and more common in the future.

If you require a short url to link to this article, please use ignco.de/239

Build a Wall-Mounted Kitchen Computer [DIY]

If you’ve been dreaming of having a computer in your kitchen but don’t like the idea of hanging it from a cabinet or having it clutter up the counter, this guide can help you build a sleek in-wall computer.

Putting a computer in your kitchen and having it look natural and part of the design is a big challenge. Ryan’s wife had been bugging him to put a computer in the kitchen so she could use it to access the internet, manage recipes, generate shopping lists and so on. She also had a pretty tall order when it came to the machine, she wanted it to be discrete, have a touch screen, be internet-enabled, with wires hidden and equipped with a barcode scanner for her to scan products and manage a kitchen database. Not dissuaded by such an ambitious list, Ryan set to work and built an in-wall computer that looks like it was designed and installed by a professional.

The build sports a touch screen, runs Windows XP with an interface cloned from the iPhone for easy finger-based navigation and use, and can do everything from displaying the weather to organizing the pantry. You can check out his build guide for detailed information including how he created the iPhone interface from scratch using the active desktop feature in Windows and coding a custom web page using icons he made and linking them to online services and software on the computer.






AllMySongs Database is a music library for managing and cataloging music files and Audio CD.

AllMySongs Database is a music library for managing and cataloging music files and Audio CD. It supports MP3, WMA, OGG, WAV e.t.c music files formats. You can easily find any song from your music collection according to title, album, artist, genre e.t.c. or any complex conditions. Also, with AllMySongs Database powerful tools you can download automatically from internet album covers, artists photos, artists biography, Audio CD information.

Features:

  • Automatically search and add all your music files scanning your disk folders.
  • Automatical recognition of AudioCD.
  • Automatically imports tag information of MP3, WMA, OGG files.
  • Tool to automatically download and store album covers, artists photo, artists biography or track lyrics.
  • View/Edit Title, Artist, Album, Composer, Genre e.t.c.
  • Create playlists for your favorite music player.
  • Play music files/AudioCD.
  • Save differents views.
  • Easily sort your database according to Artists/Album/Title/Year/File Format/Genre/e.t.c.
  • Rename your files according to Artist/Album/Title/Year/Genre.
  • Advanced search for helping you find any songs.
  • Quick Filter for apply easily database filter.
  • Customize Interface with skins.

Time to Throw Away Your iTunes

Everyone who has a iPhone or iPod is using itunes definitely. However, does everyone like it? Does everyone think it is convenient? Does everyone really want to use it if they have a substitute that is more easier to use and can do much more for your iPhone and iPod? I think everyone wants to replace it because it has too many limitations and it serves apple but not people who has a iPhone or iPod. Now it is the time to throw away your itunes. Because you have this iPhone transfer and iPod transfer.

This powerful iPhone Transfer can help you to import songs/videos/images from your computer to iPhone. It can also backup your iPhone music/videos/images to your computer or external hard dirve. Most important, it can help you to put your DVD movies and videos/movies you download from internet and the format is not supported by iPhone to iPhone easily. It can also help you to make iPhone rigntones for iPhone users from video/dvd/music they have.
OK, only from what I said you may not fall in love with it immediately. Let’s see how it works for you.

Part 1: How to Import DVD Movies/Videos/Songs/Images to iPhone
Step 1: Connect iPhone

Plug your iPhone to your computer via USB cable, it can automatically find your iPhone, load your iPhone info and show the info at the left of its interface. (It works the same as itunes.)

Step 2: Import to iPhone
A. Import DVD movies to iPhone (iTunes does not allow you to do this)

1.Select “Movie” in the left list and then click “PC to iPhone” button at the bottom of the interface, you will see a conversion and import window.
2.Put your DVD movies in your DVD Drive and Click “Load DVD” button to load the movies.
3.You can choose “Audio track” and “Subtitles” of the output movies, if you do not want a subtitle just leave it blank. You need also select the output profile and you can select apply to all button to use this output profile forever, if you do not use it some day, you can change it at will.
4.Click “Import” button and it will help you to convert the movies to iPhone video format and then import into your iPhone directly.

Note:
You need to check the box before “convert files before importing”, if not the movies/videos/songs can not be recognized by iPhone and can not be played in iPhone.

B. Import videos/songs to iPhone (iTunes only import certain format videos/songs to iPhone)

1. Select “Video” or “Music” in the left list and then click “PC to iPhone” button and go to the conversion and import window
2. Click “Add File” button to add the video or music to it and you can choose output profile and then click “import” button
Note:
If the videos and songs’ format is not supported by iPhone, this powerful iPhone transfer will convert them first and then transfer them into your iPhone. If you have lots of videos or songs it may take longer to transfer them to your iPhone.

C. Import photo/images to iPhone
The process of importing images to iPhone is the same as videos/songs. First you need to select photo in the left list. Second you can select photos to import to your iPhone.

Five Best Photo-Printing Sites [Hive Five]

Digital cameras are fantastic for letting us experiment, take tons of photos, and search for the perfect shot. Digital picture frames and at-home prints are often poor substitutes for real photos. Get a great print at one of these five photo-printing sites.

Photo by Shermeee.

Once upon a time people took photos and dutifully carted their film down to the photo shop to get developed, waiting to see how the photos turned out. Now people immediately check whether or not the shot was good on the display of their digital camera, and more often than not stuff the photos onto their hard drives or upload them to their Flickr accounts, but never get around to actually printing them and preserving them in a physical form. If you’ve been meaning to get around to printing more photos and saving them from their fate of digital obscurity, the following five Lifehacker reader-selected sites can help you.

For the sake of consistency among the pricing notes, each site’s price will be listed as the current price (as of 1/17/2010) for one 4×6 and one 8×10, two of the most common U.S. photographic print sizes and good indicators of the overall pricing scheme at the site. Pricing is only one element of photo printing, however, and we would strongly suggest reading our notes here and checking out the individual sites before selecting one over the other based on a few cent price difference.

It's also worth noting that reviewing photo-printing services is very similar to reviewing, say, netbook computers. The end products are so similar to each other that the real test of whether or not you like one photo service over another photo service is to upload a couple photos and see if the little things—like the bulk uploader, the built-in editing tools, and the ordering interface—are features you are comfortable with—just like something as small as the keyboard spacing can make or break a netbook purchase.

Snapfish ($0.09/$2.99)


Snapfish is the most generous of the photo printing sites in the Hive Five. They offer 50 free 4×6 photos to first time customers—and have done so for years—so it's a great place to start when trying out different photo sites. They also have some of the lowest pricing on basic prints, like glossy 4x6s, you'll find anywhere. Snapfish also offers a happy medium between storing and ordering prints online and sometimes wanting or needing them immediately. Snapfish allows you to order your prints for delivery through the mail or for in-store pickup at stores like Walgreen's, Walmart, or Meijer. Snapfish has an upload tool called PictureMover that will auto-detect when your camera or camera card is inserted into your computer and optionally upload the photos to a new album. Snapfish has—rather confusing—tiered pricing for every product they offer. Rather than even attempt to decode their shipping tables, you should always stop by RetailMeNot and grab a “free shipping” coupon code—Snapfish is almost perpetually running free shipping deals.

Shutterfly ($0.15/$3.99)


Shutterfly doesn't offer rock bottom prices compared to other online outfits—although for small prints they are certainly reasonable—but it does shine with the most polished organizing and sharing system of the sites featured here today. It's obvious a lot of time and thought was put into making it really easy to share photos and prints with friends and family. Although Shutterfly doesn't offer a variety of pickup locations like Snapfish, you can order prints through Shutterfly for pickup at Target stores that have in-house photo processing. Shutterfly also has tiered—albeit less confusing—shipping rates which start at $1.79 for basic shipping and rise accordingly. You can view them here.

Mpix ($0.29/$1.99)


MPix offers a wide variety of print sizes (25+) and a diverse portfolio of additional services like mounting on standouts and canvas printing. They also, unlike some of the cheaper outfits, offer silver-based black and white printing to help digital photographers really show off their black and white prints in a more authentic way. MPix, unlike many other online photo services, also deals in film, but the price per exposure for development, scanning, and uploading to your MPix albums is $0.19 per exposure—we cringe to think what an 8GB SD card would cost to process at the film-rate. Shipping starts at $3.00 per order, additional rates are available here.

AdoramaPix ($0.19/$1.28)


AdoramaPix is the photo processing division of the enormous Adorama photography store—offering photo development services for photographers was a natural extension of their retail business. They offer the largest selection of photo paper of any contender in the Hive Five. You can select from seven different papers including those from the Kodak Endura line, Kodak Metallic, and True B&W for better black and white photos. Adorama offers 25 free 4×6 prints with every new account. Shipping is $2.95 for 50 prints of 5×7 size and under, $4.99 for any size prints of any quantity. Additional shipping rates detailed here.

Costco Photocenter ($0.13/$1.49)

Many people use Costco for printing because of the convenience of uploading their prints and then picking them up later that day at Costco while doing their shopping. The strong point of Costco’s printing services is definitely a combination of reasonable pricing and in-store pickup. The mail-order side of things isn’t a strong point with longer-than-average shipping times and lack-luster support. That said, if you’re already a Costco customer and you’re looking for convenient pickup without a heavy emphasis on print or paper variety, it’s an easy sell. Shipping is free for 4×6 prints, variable pricing for larger prints.


Now that you’ve had a chance to look over the contenders in today’s Hive Five it’s time to cast your vote.

Which Photo Printing Service Is Best?(polls)

Have an experience with one of the above vendors—or bummed your favorite didn't make the list? Let's hear about it in the comments.






Using entire iphone screen

Hi people,

I have succefully removed the Navigation Bar from a view in an application made using "Navigation Bar Template" but I would use the entire scrren covering also the br with "clock, battery status, signal strength", how can I do this?

Thaks a lot

Parsing XML without attribute and display it in UITableView

Hello all, I’m newbie in iPhone Application Programming. I can’t get value from XML file and display it in UITableView. I need to get the name value of animal. How is the simple way to parse XML without attribute? I’ve been read NSXMLParser Documentation but the data is not displayed in my UITableView. Here is my XML file :

Code:

<?xml version="1.0" encoding="UTF-8"?>
<animals>
  <animal>
    <id>1</id>
    <name>Elephant</name>
  </animal>
  <animal>
    <id>2</id>
    <name>Tiger</name>
  </animal>
  <animal>
    <id>3</id>
    <name>Bird</name>
  </animal>
</animals>


I follow some tutorial about Parsing XML with attribute, but in my XML file, I don’t have attribute. And this is my code to parse XML:

Code:

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
      namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName
    attributes:(NSDictionary *)attributeDict {

    if([elementName isEqualToString:@"animals"]) {
        appDelegate.animals = [[NSMutableArray alloc] init];
    }

    else if([elementName isEqualToString:@"animal"]) { 
    }

    else if([elementName isEqualToString:@"id"]){
        aAnimal = [[Animal alloc] init];
        aAnimal.animalID = elementName;
    }
}

- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string {
    if(!currentElementValue)
        currentElementValue = [[NSMutableString alloc] initWithString:string];
    else
        [currentElementValue appendString:string];
}

- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName
      namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName {

    if([elementName isEqualToString:@"animals"])
        return;
    else if([elementName isEqualToString:@"animal"]) {
    }
    else if([elementName isEqualToString:@"id"]) {
        [appDelegate.animals addObject:aAnimal];     
        [aAnimal release];
        aAnimal = nil;
    }
    else
        [aAnimal setValue:currentElementValue forKey:elementName];

    [currentElementValue release];
    currentElementValue = nil;
}


Create a New Text File in Finder with One Click [Downloads]

Mac only: One convenient Windows feature missing in OS X is the ability to quickly create a new text file in the current folder. By simply dragging a small Applescript-turned-application to Finder’s toolbar, this dream quickly becomes reality.

There are any number of reasons you'd need a quick text file in the working folder—if you're working with icons, testing a new file-based tweak, or just need to make an immediate note—the context menu solution Windows implements is much faster than opening up TextEdit and navigating to the directory to save it. Luckily, this Applescript is an easy solution. Just unzip the file and save the application somewhere on your computer (it doesn't really matter where, but just make sure you don't delete it by accident later), and then drag it up into Finder's toolbar where you want it. Next time you want to create a new text file in the current folder, all you need to do is click your newly-created Finder button—simple as that.

UPDATE: In light of its newfound fame, the developer has rewritten the script (based on the comment of Lifehacker’s own perlhacker) to include file naming and the opening of the file as it’s created. There’s also a version that creates rich text files as well. You can find the updated versions here.






TotalFinder Adds Tabs, Hotkeys, and Other Tweaks to OS X’s Finder [Downloads]

Mac only: Many users have been unhappy with OS X’s Finder for a while, wishing for tabs, fixes for hidden file annoyances, and other conveniences. TotalFinder is a plug-in containing all this and more, creating a Finder worthy of a power user.

We've all been itching for new features in Finder, and the latest upgrade to Snow Leopard did little to help that on the surface—but its rewriting in Cocoa has opened Finder up to all the possibilities of SIMBL plug-ins, which TotalFinder has taken advantage of. The biggest upside to this approach is that, unlike current Finder-replacement favorite PathFinder, TotalFinder integrates into the existing Finder so you don’t have another application to launch. Also, it’s free (albeit less feature-rich).

Some of the highlights include things like Visor-like activation—making Finder accessible at all times with just a hotkey. In addition, it has some hidden features that most of you Finder power users have probably already implemented, like showing hidden files. However, it adds to this by redirecting those annoying .DS_Store files to another folder, rather ingeniously—they'll still be accessible by Finder, but never again will they clutter up every Finder window you open.

Possibly the coolest and most wished-for feature TotalFinder adds, though, is tabbed browsing. The plug-in adds tabs to the title bar—similar to Chrome's (okay, they're exactly like Chrome's)—to save on some of that oh-so-precious screen real estate. Simple, but a huge boon to anyone who spends a lot of time in the app.

The biggest downside to TotalFinder is that it's still in alpha stage. In fact, it's more unstable than your average alpha—if there were such thing as super alpha, TotalFinder would certainly fall into that category. So make sure you have your Time Machine backup prepared just in case, and be forewarned! But if you back up religiously and love the thrill of over-tweaking your computer with unstable software, have at it. If you don't like it, there's an uninstall script that will remove it completely from your computer. Also, because it's in such early stages, the developers have a lot of things planned for the future—so, in theory, TotalFinder won't always be the unstable, feature-minimal upgrade it is now—god willing, we may all have a nice PathFinder replacement on our hands one day.

TotalFinder is a free download, Mac OS X 10.6 only. UPDATE: It turns out that the plug-in is likely only going to be free until the developer releases a beta version—but at least you can try it out until then, and worry about it when it turns into a pay app.






How-To: Create Your Own iTunes LP

iTunes LP Logo

The iTunes LP is the new format Apple has been pushing in iTunes. It’s more like a DVD than anything else. You have menus, music, photos, liner notes and videos. Since this is such a fresh format, not many albums are available in it yet. The good news is, you can make your own.

I’ll take you through the process of creating your own iTunes LP that you can distribute yourself.

Getting Started

Apple offers a template to help you out, which can be found here (ZIP). After it is unzipped, you should see an iTunes-LP-Example.itlp file. Right click on the file and select “Show Package Contents.”

If you open up the index.html file in Safari, you’ll see the LP.

First, we want to edit the iTunesMetadata.plist file in TextEdit and enter some info about the LP we are creating. I decided to do the Neutral Milk Hotel album, In the Aeroplane Over the Sea. Filling out this information helps iTunes import the LP correctly. Make sure the artist and album name are correct at a minimum.

Now we can get into the good stuff. We want to create the background image and the bleed image. The bleed image is what the user see’s if they are viewing the album at a resolution larger than 1280×720. Open up the images/interface/bleed.png file in your image editor of choice. For now, you might just want to make the image a solid color, otherwise it may look cluttered.

The buttons are simply images that can be replaced easily. The LP format is really just HTML with some nice JavaScript and CSS. Because of this, you can make your LP’s as complicated as you see fit. The CSS folder contains all the CSS files that reference the positioning of the buttons. Editing the home.css file, I can change the position of my title on the home page.

The one thing your LP will need, no mater how simple, is music. The music doesn’t live inside the LP itself. The LP file just references songs in your iTunes library. There is an audio folder, where the intro music that plays on the LP lives. Apple suggests keeping this short, so I opened up one of the songs off the album in iTunes. I then edited the Start and Stop times.

After I made sure it played back properly, I created an AAC version of it by right clicking and selecting “Create AAC Version.” This created a new m4a file that was the specific length I wanted. I renamed the file to intro.m4a and replaced the original intro.m4a file in the audio folder.

Next, lets add some photos. I used Google to grab a handful of images related to the band. Then I replaced the photos in the images/photos folder and used the same naming convention of photo01.jpg.

The photos will get resized and cropped automatically to 600×400 when they are displayed, so size doesn’t seem to be too important.

Now I want to add some liner notes, so I used the band’s bio information from Amazon. Just edit the views/linernotes.html file and add your own text.

I decided that I didn’t want the credit or video sections so I deleted them out of views/home.html.

Then I had to edit the css/home.css file to move the liner notes button up.

Things are really starting to come together.

Adding Songs & Lyrics

Adding songs is probably the hardest part of the whole iTunes LP creation process. The LP references songs by their XID. The XID is a serial number of sorts that Apple assigns to every song available for purchase in the iTunes store. This means the LP can play any song that it knows the XID for, regardless if the user renamed the file in anyway. If it’s a song you didn’t purchase from iTunes, you have to create your own XID.

We’ll look at how to find the XID for songs you’ve purchased from iTunes. First, you need to enable author mode for iTunes. Make sure iTunes is closed and then run this command in Terminal:

defaults write com.apple.iTunes WebKitDeveloperExtras -bool true

Now open iTunes back up, right-click on a purchased song and choose Get Info. Under the Info tab you will see an XID field. That is how to tell your LP what song to play.

But what if this isn’t a song you purchased through iTunes? Then the XID field will be blank. We need to generate our own. Go to Terminal and enter the following command:

uuidgen

You will now get back a random UUID string that can be used for a song. You have to do this for every song so they each have a unique XID. Find your song in iTunes and get to the XID field. Apple wants us to prefix this UUID with TEST:uuid: to create the complete XID string. Now our song has a unique XID that can be referenced in our LP.

There are two places these XID’s need to be entered. The manifest.xml file and the controllers/data.js file. First we edit the manifest.xml file and replace the default XID with the one from our track.

Then we edit the data.js file and do the same.

Now open up your LP in iTunes, play the first song and admire your work. These same steps need to be done for every song on the LP.

Let’s add some lyrics to our song next. The lyrics are just an image file located in the images/songs/ folder. They are named simply lyrics01.jpg and so on. You can either just create a simple image with text in it or get creative. What about scanning lyrics from the original vinyl/CD art? You could go even further and scribble the lyrics down on paper then scan it in.

Replicate these steps for each song and remember to be creative. The LP will only be as cool as you want it to be. I like to think of it as digital scrap-booking. If you love the music, you will be inspired to go all out.

If you create an LP and use XID’s from songs purchased through iTunes, you could give the LP to someone else. As long as they also purchased the songs in iTunes, it will work for them. You could also find a small local band that you dig and create one for them. That should get you some backstage passes.

WP Like Button Plugin by Free WordPress Templates