I have been teaching myself Objective-C and Cocoa (in part so I can build native iPhone / iTouch apps), and have been working on a simple command line application named "turl". This basically provides a command-line interface to url shortening services such as tinyurl.com and urltea.com.
Anyways, I ran into an issue where a specific URL was not being created correctly. It turns out, it was because I was not url encoding the url before sending it to the api. No problem I thought, I'll just url encode it. However, after much searching, I found that Cocoa didn't really provide a url encode API. I did find find a couple of possible solutions that used other APIs, but I could not get either one to work for me, and it didn't appear that they were made specifically to URL encode urls.
So, I finally decided to make my own and figured I would post it here in case anyone else needs to use such an API.
This guide shows how to specify which format screenshots are captured in in OS X. It appears to only work with keyboard shortcuts, and not Grab, but if you are like me, and need to quickly send screenshots around (and TIFF won't do), then this is very helpful.
This is mostly for future reference for myself.
I just got a SideKick II from T-Mobile and needed to import my contacts from Address Book on Mac into my SideKick. T-Mobile has a web-based tool to sync info with the SideKick, and it can import contacts from various mail programs and formats, but it does not support vCards, which Mac AddressBook can export.
So, after much time searching in google looking for a tool that converted vCards to Comma / Tab separated file, I finally figured out a (not so direct) solution. I thought I would post it here in case any one else needed to do this.
You contacts should now be imported into the SideKick desktop, and after a couple of minutes should be sync with your SideKick.
Note, I did this on Mac OS X 10.3.5 with Microsoft Entourage 2003.
Post any questions, corrections or suggestions in the comments.
I finally figured out how to access the internet from my PowerBook connecting through my Motorola v600 and Bluetooth. Below are instructions for getting online with the Motorola v600 and ATTs wireless service.
Tested with the following setup:
-PowerBook G4 Aluminum (1.25) with Bluetooth
-Mac OS X 10.3.5
-ATT Wireless Service
1. Download the Motorola GPRS Modem scripts from here.
2. Unzip the scripts, and copy the "Motorola GPRS CID1" script file to the "/Library/Modem Scripts" folder.
3. Set up Bluetooth. System Preferences > Bluetooth. Make sure that "Show Bluetooth status in the menu bar is checked".
4. Turn on your Motorola v600, and make sure that Bluetooth is on and discoverable (Connections > Bluetooth > Find Me).
5. On your Mac, in the Bluetooth settings (System Preferences > Bluetooth) select the Devices tab, and then press the "Setup new device" button. You can also select this item from the Bluetooth icon on your task bar.
6. Follow the instructions and pair the Motorola with your Mac.
7. In step 4 of 5 of the pairing process, make sure to check the "Access the Internet with your phone's data connection" checkbox, and select the "Use a direct, higher speed connection to reach your Internet Service Provider (GPRS, 1xRTT)" Radio Button. Select continue.
8. In the next screen, leave the username and password blank. For the GRPS CID String enter *99#, and for Modem Script, select "Motorola GPRS CID1". Click continue. Then click Quite.
9. Open Network Preferences (System Preferences > Network), highlight USB Bluetooth Modem Adaptor, and click configure.
10. Don't change TCP/IP settings. Switch to the PPP tab. Leave everything blank, except the Telephone Number which should be *99#.
11. Click the PPP Options button, and make sure that "Send PPP echo packets" is unchecked. This is very important. If you don't do this step, the connection will disconnect after a few seconds. Click OK.
12. Switch to the Bluetooth Tab, and make sure the correct Modem Script is selected, and everything is checked except for "Wait for dial tone before dialing".
13. Switch back to the PPP Tab and click the "Dial Now..." button. Set configuration to "Other" and leave everything blank. Press the "Connect" button. After a second or two a terminal window will come up, just hit the continue button.
14. You should now be connected. Open a browser and browse to a web page to make sure you are connected.
Post any corrections, or improvements in the comments section (I will keep the article updated).
I just switched back from Windows to OS X, and I was having a hard time trying to figure out how to have the OS always open XML and OPML files with SubEthaEdit.
After futzing around, I finally figured it out.
Select a file with the extension you want to set the program for. Right click (or ctrl-click) and select Get Info. In the Open with section, select the program that you want to open files of the specified extension, and then click the Change All... button.
This will set it where OS X always opens files with the specified extension with the program you selected.