Blog Archives

How-To: Enable WebDAV on Your Mac for iWork on iPad

With the latest release of iWork on iPad, sharing files across your local Wi-Fi network is now possible. Using WebDAV, files can be shared between iWork on your Mac and iWork on your iPad. All you need to do is enable WebDAV on your Mac. But how do you do that?

What is WebDAV?

WebDAV stand for “Web-based Distributed Authoring and Versioning protocol”, and it works over HTTP. WebDAV was designed for read/write access on web servers, which is great, because every Mac ships with a web server built-in. When you enable “Web Sharing” in your System Preferences, you’re actually running an Apache web server. The problem is that while the necessary modules that support WebDAV have been installed, WebDAV isn’t configured by default on OS X, and you need more than just administrator privileges to enable it.

More Than Administrator Privileges

If you’re extremely concerned with security, you’re logging into your Mac every day using an account that doesn’t have administrator privileges. Unlike its distant cousin from Redmond, OS X can execute just fine without Administrator account access. There are times, though, when administrator privileges are required, such as installing software, or changing some System Preferences. Then there are the rare cases, like this one, where you need to change configuration files that weren’t meant to be changed. That’s when you need what’s called “root” access.

“SUperuser DO” or sudo for short, is the command that grants Administrator accounts root-level access to a Mac. It is meant to be used for short periods of time and requires the Administrator password with each execution. When using the terminal to execute commands, preceding each command with sudo will enable that command to be executed with root-level privileges. Given the fact that we’ll be altering server configuration files in hidden folders on the system, we’ll need root access in order to enable WebDAV.

Does this expose your Mac to additional security risks? Yes it does. From a strictly security perspective, nothing being discussed from this point forward is a “good” thing. On the other hand, from the strictest security perspective, simply turning on your Mac is a security risk in and of itself.

Enabling WebDAV on OS X 10.6.4 Snow Leopard

Step 1: Shutdown the Web Server

Make sure you’re logged in to a user account that has administration privileges, open System Preferences, and ensure that Web Sharing is turned off.

Turn Off Web Sharing

Step 2: Edit the Apache Web Server Config Files

So much for the easy part. From here on out, everything will be done via the terminal utility. In the Applications folder, there’s a sub-folder called Utilities, in which is the Terminal application. We’ll be using that for most of the remainder of this tutorial.

  • Open the Terminal and change directories to the location where the first config file is located.
    cd /etc/apache2
    
  • Use the sudo command to open and edit the httpd.conf file located in /etc/apache2 folder (use your favorite plain text editor like Emacs or vi, or optionally execute the following command to open the file in TextEdit). NOTE: You will be prompted to enter the password of the account you are logged in with.
    sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/apache2/httpd.conf
    
  • Search for and un-comment the following line”Include /private/etc/apache2/extra/httpd-dav.conf”. NOTE: To un-comment the line, simply remove the ‘#’ at the beginning of the line.
  • Save the changes to httpd.conf and quit the editor.

Step 3: Edit the WebDAV Module Config Files

Now that the WebDAV module is turned on, the next time the Apache Web Server starts up, it will look for instructions on how to execute the WebDAV module. This next series of configurations will tell WebDAV exactly which folder should be shared.

While it’s tempting to share a folder you’re already using, it’s not recommended with the following configuration. Files located in this particular folder will be “owned” by the web server, and a separate security authority will govern access to the files. Attempts to read and write to files in this folder using the following security configuration could render the files inaccessible to the web server, and therefore to the iPad, too.

  • Open the Terminal and change directories to the location where the second config file is located.
    cd /etc/apache2/extra
    
  • Use the sudo command to open and edit the httpd-dav.conf file located in /etc/apache2/extra folder (use your favorite plain text editor like Emacs or vi, or optionally execute the following command to open the file in TextEdit).  NOTE: You will be prompted to enter the password of the account you are logged in with.
    sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/apache2/extra/httpd-dav.conf
    
  • Delete the existing Alias and Directory configurations and replace them with the following:
    Alias /webdav "/Library/WebServer/WebDAV"
    WebServer/WebDAV">
      Dav On
      Order Allow,Deny
      Allow from all
      AuthType Basic
      AuthName WebDAV-Realm
      AuthUserFile "/usr/webdav.passwd"
      <LimitExcept GET OPTIONS>
        require user myipad
      </LimitExcept>
    </Directory>
    
  • Save the changes to httpd-dav.conf and quit the editor.

Step 4: Create New WebDAV Users

The configuration in Step 3 established a password file, /usr/webdav.passwd where the WebDAV module will validate logon attempts for each WebDAV user. One user was also specified in the configuration with the user name of ‘myipad’.

  • Open the Terminal and change directories to the following location:
    cd /etc/apache2/extra
    
  • Create a new WebDAV User Account named ‘myipad’ by executing the following command. NOTE: You may be prompted for the sudo password, and you will be prompted to set the password for the new WebDAV user ‘myipad’ being created.
    sudo htpasswd -c /usr/webdav.passwd myipad
    

Step 5: Create Directories and Setup File Permissions

The configuration in Step 3 also established the location where the files will be hosted. In this case the location is /Library/WebServer/WebDAV. The directory for this new location will need to be created and the appropriate file permissions will need to be established.

  • Open the Terminal and change directories to the following location:
    cd /etc/apache2/extra
    
  • Create the following WebDAV directories as follows:
    sudo mkdir -p /Library/WebServer/WebDAV
    sudo mkdir -p /usr/var
    
  • Finally set the appropriate permissions on the files and directories you just created as follows:
    sudo chown -R www:www /Library/WebServer/WebDAV
    sudo chown -R www:www /usr/var
    sudo chgrp www /usr/webdav.passwd
    

Once all of the above instructions are carried out successfully, you can once again start Web Sharing in System Preferences. This will now turn on Apache with the WebDAV extensions installed and configured.

Access WebDAV from iWork Apps on the iPad

All that is required is to access the new WebDAV share via the iPad. Open one of the iWorks apps, like Pages, and scroll through the docs stored on the iPad. To save a document from Pages to the WebDAV share, select the document and click on the Copy To icon. If you haven’t accessed this WebDAV server before, you’ll be prompted to enter the WebDAV configuration. The Server Address is your local IP address, which can be found in System Preferences under Network by clicking on your active Internet connection in the source menu, followed by “/webdav/”.

Configure WebDAV on iPad

To open a document stored on the WebDAV share, click on the “Open From” icon in Pages. If you haven’t accessed this WebDAV server before, you will be prompted to enter the WebDAV configuration URL, Name and Password.

Access WebDAV from the Finder on the Mac

Unfortunately, I don’t recommend you try to access the directory that is being shared via WebDAV directly. If you do, you may alter the file permissions and render the files inaccessible via WebDAV. Fortunately, OS X does support mounting WebDAV servers directly in the Finder. Launch the Finder, and choose the Go menu. From there select Connect to Server… and enter the URL of the WebDAV server.

Connect To Server From Mac

You will then be prompted with the User ID and Password that was set up on the Mac running WebDAV.

Enter Name and Password on Mac

Access WebDAV from Apps Running on Other iOS Devices

Believe it or not, there are several iOS apps for iOS devices that can access WebDAV shares. Air Sharing Pro ($6.99), JotNot Scanner Pro ($0.99), and WebDAV Navigator (Free) are three examples I’ve used to access the WebDAV share created above. The configuration is again the same; just enter the URL, Name and Password when setting up the WebDAV share in each app and you’re good to go. Happy your WebDAV sharing!

App Marketing 101: Tips for Getting Reviewed

One of the most commonly asked questions is how to get your app reviewed by the various iPhone blog sites around the Internet. While there’s no guaranteed method, SlapApp.com‘s co-founder Ryan Johnson has a few pointers that may help:

  • Understand the blog’s preferred method of communication. Each blog has a different process: Some have an email address for submissions; others use a web form. Tracking down the email addresses of all the site’s contributors doesn’t mean an out-of-the-blue email will be welcome, so it’s crucial to research the submission process before sending the app.
  • Don’t force reviewers to waste time doing research. Simply submitting your app with no explanation about the product is a surefire way to not get reviewed. At the very least, provide your company name, along with the app name, its category, an overview of its highlights and a direct link.
  • Spice it up with some media. You’ll hardly ever see an app reviewed without an image or video to catch the reader’s eye. Make it easy for reviewers and include your screenshots, videos, promo art, icons, etc. with your submission. Do not, however, send them as attached files unless specifically requested. Host your images on Photobucket or one of the various other image-hosting sites and send the link to the image. The same goes for videos.
  • Provide a Promo Code. If there’s a strong possibility a certain site will review your app, and your app is paid, go ahead and provide a promo code (make sure the writer is in the U.S.; codes don’t work in other app stores).
  • Stick to the theme of the site. Some sites, like SlidetoPlay.com for instance, have very specific focuses. (SlideToPlay.com is specifically for games.) It’s a waste of your time, as well as the bloggers’ time, to spend time with submissions that do not fit with the site in question.

The best thing you can do, of course, is build a relationship with these people over time. You can meet many of them at various events around the country including MacWorld, WWDC and other conferences. If their site has a forum, engage them in conversation so that when it comes time to talk about your app, they know you. Finally, if you don’t have time for that, find a PR agent that does.

This is the final post in a three-part series. To learn more about marketing iPhone apps, read part 1 and part 2, which were posted earlier this week. For an in-depth analysis, download the GigaOM Pro report, “How to Market Your iPhone App: A Developer’s Guide” (subscription required).

Image Source: flickr user Yutaka Tsutano.

App Marketing 101: App Store Ladder Points

Imagine walking into a warehouse with thousands upon thousands of products with each aisle more than 10 miles long. Would you browse each aisle for the item you were looking for, or would you rely on the displays showing off the best-selling products?

Most likely, you’d rely on the masses to make your decisions for you and choose from the best sellers. The same is true for iTunes: There are simply too many apps in the App Store to accommodate effective browsing. Most people’s passive discovery comes from the lists of ranked apps. For developers, this is an important place to note and where to aim for an app to land.

The design of the app store has created a number of “ladder points,” where moving from one ranking to the next increases an app’s visibility — and its sales.

There are six major rank-controlled visibility points in the App Store:

  1. Top 10 of all Apps
  2. Top 10 in your category
  3. Top 25 of all Apps
  4. Top 25 in your category
  5. Top 200 of all apps
  6. Top 200 in your category

Achieving each of these rankings makes an app significantly more visible to the iTunes-perusing public. When browsing the top apps in a category, iTunes only displays the top 200 apps. If you’re ranked 201, you’re stuck with search as your main (and not very reliable) discovery method. The top 25 of each category is significant, because it’s how many apps are shown when viewing the app store on your iPhone. Top 10, of course, is the ultimate goal, with your app being displayed on the front page in your section. If you’re lucky enough to be in the overall top 10 (In which case, why are you reading this? You seem to be doing fine without the instruction.), you’ll find yourself on the iTunes front page.

The added visibility of these ladder positions makes them worth vying for, even if you sometimes have to spend a little in ads to get there. The purchase of enough pay-per-click or pay-per-install ads to get you up to, say, position 25 (shoot for 23-24 to be safe) may give you a negative ROI, but the added visibility of your new position could easily make up for it by driving new sales.

This is the second post in a three-part series. To learn more about marketing iPhone apps, read part 1 and part 3, which will be posted later this week. For an in-depth analysis, download the GigaOM Pro report “How to Market Your iPhone App: A Developer’s Guide” (subscription required).

Tips and Tricks: Finder

Welcome to another installment of Tips and Tricks. These articles aim to teach you some handy things you might not know about your Apple stuff. Let’s continue the series by looking at Finder.

Dropping Files Onto Applications

If you have a bunch of files you want to open simultaneously with the same application, this trick will save a bit of time. Any files you drag and drop onto the icon of an application in a Finder window will be opened with that program, provided it supports the file type you’re dragging. You can drag and drop more than file at the same time, to help save time. Applications which support the files you’re dragging will be highlighted as you hover over them, and applications which don’t will stay the same. This trick also works the same way with applications in the Dock.

Changing Folder Icons

As some point, you might want to change the icon of a folder. For example, if you have a folder called ‘Movies’ on an external drive, you might want to replace the default folder icon with the same one as Movies in your Home folder. To do this is really easy. First, find the folder with the icon you want to use (in this case it’s Movies). Right- or Control-click it and choose Get Info, or hit Command-I (?I). This brings up the Get Info window for the item you had selected.

The part we’re interested in is the small icon in the top left, next to the folder’s name (not the smallest one in the title bar, the larger one below the ‘traffic light’ controls). Click on that to select it and it’ll be highlighted. Now simply press Command-C (?C) to copy the icon.

Now go back to the regular Finder window and locate the folder you want to change the icon of. Once again, open up the Get Info window and select the icon at the top. Now press Command-V (?V) to paste the icon from the other folder. The icon should change instantly to show the new one you’ve pasted. You can also remove any icon you’ve pasted onto a folder simply by selecting it in the Get Info window and hitting Delete. This sets the icon back to the default plain folder icon.

This trick also works for changing the icons of applications and other files, but it’s not recommended that you do it for those things. If you want to do that, I’d suggest looking into an application such as CandyBar for a safer way to do it.

Finding an Item’s Location

Spotlight, the Finder’s search tool, also has a few tricks up its sleeve. To get started with Spotlight, access the menubar item by pressing Command-Space, or access Spotlight via a Finder window by pressing Option-Command-Space.

If you know what you’re looking for, it’s easier to use the menubar item, but for a more advanced search, use the Spotlight window.

One of my favorite tricks in Spotlight is showing exactly where a file or folder is on my system. To do this, invoke the menu item, then search for a file or folder. Usually what you’re looking for will come up as the Top Hit, but sometimes it won’t. You can use the arrow keys to navigate up and down the list until you have what you want highlighted.

Now, instead of hitting Return to open the item you have highlighted, which would simply open it, press Command-Return. This will open a new Finder window showing you where the item you chose lives on your system. This is great if you have forgotten where you saved something, for example.

Definitions and Calculations

Another useful tip for Spotlight is the way it can give you dictionary definitions and perform calculations. To get a definition, type the word into the menu item. Most of the time the definition will be the topmost item in the list. There’s very little chance that the whole definition will fit in the Spotlight list, but to see the whole thing, highlight the definition and press Return. Dictionary.app will open and show you the definition for the word. You can also hover your mouse over the list item and the definition will be displayed in the yellow tooltip which appears.

It’s the same with performing calculations; type in what you want Spotlight to do and it will show you the answer at the top of the list. It supports powers as well, so things like 3^2 and sqrt(100) will work, too.

I hope you’ve learned something new, and don’t forget to contribute your tips in the comments!

Quick Tip: Make iTunes 10 Window Controls Horizontal

iTunes 10 was released yesterday and brought with it a few UI overhauls. The loss of color in the sidebar for one, along with the change of orientation of the window controls at the top of the window. There currently isn’t a way to bring back the colored icons in the sidebar, but there sure is a way to get the window controls back to their former positions.

It’s simple enough, and requires just one line to be entered into Terminal. Quit iTunes, wait for it to close completely, then fire up Terminal, which can be found under Applications ? Utilities. Either type or paste the following code into the Terminal window and hit Return:

defaults write com.apple.iTunes full-window -1

Now when you reopen iTunes, the ‘traffic light’ controls should be back along the top of the window, side-by-side. It does a lot for keeping the look of OS X consistent across applications. Of course, perhaps this is Apple’s way of telling us that in the next version of the Mac operating system, all the windows are going to be laid out like this.

Should you ever want to restore iTunes 10?s default setting, and put the controls back down the side, enter this code into Terminal (again with iTunes closed):

defaults write com.apple.iTunes full-window -0

Now we have a fix for the window controls, all we need is a setting to bring back the color in the sidebar. If you know a way, shout out in the comments!




Alcatel-Lucent NextGen Communications Spotlight — Learn More »

How to Avoid Friend Spam on Facebook [Facebook]

With Facebook’s ever-growing popularity, it’s not surprising that fake accounts are after your online friendship. Here are some tips for detecting and avoiding friend spam. More »







How To Avoid Writing an Awful Cover Letter [Advice]

If you're wasting time reading this right now, you probably need a better job. That means you need a good cover letter. Allow us to give you some tips for success—with counterexamples from an all-too-real hilariously bad cover letter. More »







How-To: iPhone HDR

The iPhone has a great little camera, but it’s got serious limitations. Anyone who’s ever tried to capture a scene with a wide range of light knows that it doesn’t take much for the iPhone’s camera to completely lose the high or low end of the spectrum.

I run into this limitation all the time when I’m out on a hike and come across a vista I want to capture. If there’s any kind of sun at all, I’m forced to choose between either exposing for the foreground and losing the sky in a big wash of white, or exposing for the sky and losing the foreground in darkness. Either way, there’s pretty much zero chance of accurately capturing the scene. Unless, of course, I resort to HDR.

If you’re not familiar with the process of HDR imaging, the overall concept is really pretty simple. By merging multiple images, each individually exposed for a different point in the range of luminances from dark to light, we can form a single image that is able to display the full range. Using my example above, that means I can take one photo that exposes for the foreground and another that exposes for the sky and then combine them together to get a single image that more accurately displays the full range of light in the scene.

Because the iPhone’s “Tap to focus” feature also adjusts for exposure and white balance, setting up for HDR processing is dead simple. Obviously, it would be better if we could control exposure independently, but we have to work with what we’ve got. Simply pick two areas of the scene with the most contrast, then tap and capture an image exposed for each in turn. Be sure to keep the phone as steady as you can when taking the two images, so they will align properly when processing. Once you’ve got both images, there are a number of options for actually creating the final HDR image.

If you’ve got a copy of Photoshop CS5, it has HDR merging and toning built right in. From the File menu, choose Automate > Merge to HDR Pro, then play with the myriad of sliders you see on the right hand side to get the look you want. You can keep the image photorealistic, or push it all the way to something entirely surreal depending how artistic you feel. There’s also a super useful “remove ghosts” option in case you shifted the camera slightly while taking the individual photos.

If you prefer to do all the processing on the phone itself, there are a couple apps available. The best of the bunch is Pro HDR. Like before, you need two contrasting photos (unfortunately you’re limited to only two). You can use images already on the phone or take new photos within the app itself. After the images are merged, you can then adjust the brightness, contrast, saturation, and warmth to fine tune the image to your liking.

While all of this does extend the camera’s functionality a bit, it’s still not perfect. In the end, it’s just a 5-megapixel camera, and it’s never going to be able to match the kind of images one can get from a prosumer-grade DSLR. Constraints drive creativity though and it’s the wealth of iPhoneTography apps available in the App Store — and the users’ own imagination — that really let the iPhone camera carve out a niche for itself. I’d probably be better served by taking a more complete camera with me on my walks, but I use the iPhone for so many other things that it’s hard to argue against a multi-use item with such a great function-to-weight ratio.

Jailbreakme.com: Jailbreaking Made Absolutely Painless

I admit to being pretty spineless when it comes to using unauthorized software on my iDevices, but recent posts regarding the continued value of jailbreaking such devices had me thinking about getting over my fear and making the leap. As if on cue, Jailbreakme.com 2.0 comes around to make it easier than ever to indulge that particular whim.

In case you haven’t heard, jailbreakme.com is the resurrected version of the original website, which allowed you to jailbreak devices running iPhone OS 1.1.1. It’s back again, and this time, it’s ready to take on iOS 4.0 and 4.0.1 on all iPhone and iPod Touch devices, and iOS 3.2.1 on the iPad. It all happens from your device’s Safari browser, without requiring a computer at any stage during the process.

The new jailbreak process comes via comex of the Dev-Team, and I can attest from personal experience that it makes things impossibly simple. I have an iPhone 4 and an iPad, but there’s no way I’m risking the warranty on those two beauties just yet, so I dusted off the old iPod touch 1G that got me started on iOS devices and put that to the task.

On the iPod touch, I booted up Safari and pointed the browser at www.jailbreakme.com. You should see a screen that looks like this if you’re in the right place (shot is from my iPhone 4, since it changes after you finish the process):

After that, I followed the directions on-screen and left the house to run some errands. I was probably gone for about an hour, so I’m not sure how long the process took, but it was done by the time I returned. My iPod touch was plugged in at the time just in case, but the battery is quite old. I think it should be fine to leave newer devices unplugged.

After the process is complete, you’ll see a message congratulating you and informing you that the Cydia store app is now on your desktop. Finally, launch Cydia and allow it to update its repositories and sources, then browse for the apps you want to install. Backgrounder, SBSettings, BossPrefs and ProSwitcher are good places to start if you’re not familiar with the jailbreak landscape.

The new jailbreak method uses an exploit in the way iOS handles Adobe PDF files, of all things, so basically you can thank the Flash maker for your newly jailbroken device. If anything goes wrong during the jailbreak process, you can restore using your computer, or by putting the device into DFU mode if all else fails, and try again. Cydia has been running a little slowly the past few days, presumably because so many are using this method, so be patient if you’re experiencing problems post-jailbreak in that area.

Anyone else done it yet, or planning on doing it? What about on newer devices? Still worth it?

How to Test Drive Android on Your PC Without Buying a Phone [How To]

Interested in test driving the latest version of Google’s Android OS without buying a new mobile device?  Here’s how to run Android on your PC for free with the Android SDK Emulator. More »







WP Like Button Plugin by Free WordPress Templates