Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Download, back up, and upload Google Docs files Internet
You can download, back up, and upload documents from your Google Docs account using a little Terminal magic. Prerequisites:
  1. gdata-python-client 2.0.1 - download page
  2. gdatacopier 1.0.2 - download page
Installation:
  1. Download the prerequisites. Decompress each of the downloads.
  2. Install gdata-python-client:
    $ cd gdata-2.0.1<br>
    $ sudo python setup.py install
Patch:

The current gdatacopier download has a small bug in it, and it needs to be patched to work properly. Open the file gdatacopier.py in the app's folder, and locate line 555. On that line, change this...
item_list.append({'title': entry.title.text.encode('UTF-8'),
...to this...
item_list.append({'title': entry.title.text,
Save the file and quit the editor.
read more (439 words)   Post a comment  •  Comments (2)  
  • Currently 1.50 / 5
  You rated: 2 / 5 (14 votes cast)
 
[16,384 views] Email Article To a Friend View Printable Version
View YouTube video in full browser window Internet
This is slightly hard to describe, but I just randomly stumbled across a nifty little hack, for lack of a better word, involving the viewing of YouTube videos. Of course, YouTube natively supports full-screen viewing of videos, but I personally do not like this as I am completely immersed in the video and can no longer see the other activities on my screen (such as new mail, etc).

So I stumbled across this tweak that allows you to watch a YouTube video maximized in its browser window. Check out the pic in my blog post if my description doesn't make sense.

To do this, paste this code into your browser:
http://www.youtube.com/v/xxxxxxxxxxx&hl=en&fs=1&
Now go back to the desired YouTube video in its normal view, and copy the last 11 alphanumeric string in the URL box on the right side, or in the actual URL you see in the address bar of your browser. This random string is the identifier for that specific video. Now paste that random string in place of the xxxxxxxxxxx in the code above, hit Enter, and you're good to go!

So, for example, if you want to watch a video with this URL ... http://www.youtube.com/watch?v=S6SCc6A6Kck ... the URL to go to is http://www.youtube.com/v/S6SCc6A6Kck&hl=en&fs=1&.
  Post a comment  •  Comments (18)  
  • Currently 2.10 / 5
  You rated: 5 / 5 (10 votes cast)
 
[18,097 views] Email Article To a Friend View Printable Version
10.5: Take and upload screenshots via Automator Internet
I often take screenshots and upload them for my friends to see -- especially while working on web projects etc. So I created an Automator workflow that does this automagically!

First the workflow snaps the whole screen and saves it to the desktop. Then a bash script is run wich uses ftp to upload the image to the webserver. It then takes the URL of the image and copies it to the clipboard. Lastly it notifies you of the upload via Growl. It has no error handling or anything. This is my first workflow and bash script ever, but it works for me. In Automator, create the following steps in a new blank workflow:
  1. Utilities » Take Screenshot. Use these settings:
    • Type: Full Screen, or whatever you prefer.
    • Select Main Monitor Only and/or Timed as you desire.
    • Set the Save To pop-up menu so that it saves to a file named tmpScreen.png on your Desktop.
  2. Utilities » Run Shell Script. Set Shell to /bin/bash and Pass Input to to stdin. Enter the following code, noting the lines you need to edit:
    #!/bin/sh
    # Author: Simon Ljungberg @ www.nimnim.se
    
    # Edit the 5 lines below to fit your configuration
    # URL will be copied to your clipboard!
    HOST='yourftphost'
    USER='yourusername'
    PASSWD='yourpassword'
    REMOTEFILE='pathtoremotefile(including filename)'
    URL='http://yourdomain.com/screens/screenshot.png'
    
    # If you change this you need to change the rm-line too.
    # For some reason (I'm new at this) I couldn't get the file
    # to disappear when using the variable...
    LOCALFILE='~/Desktop/tmpScreen.png'
    
    ftp -n $HOST <<END_SCRIPT
    quote USER $USER
    quote PASS $PASSWD
    binary
    put $LOCALFILE $REMOTEFILE
    bye
    END_SCRIPT
    
    rm ~/Desktop/tmpScreen.png
    echo $URL | pbcopy
  3. If you have Growl installed, add Utilities » Show Growl Notification. Give it a Title ("Done!") and Description ("Your screenshot has been uploaded") so you'll see a message after the upload is completed.
Alternatively, you could download the script from my server, and then just change the variables in the shell script section of the workflow.

To make this work, you need a web server with FTP access, and note that your username and password are stored in the script. Works for me in 10.5.7; I hope someone can make use of it!
  Post a comment  •  Comments (4)  
  • Currently 1.64 / 5
  You rated: 5 / 5 (11 votes cast)
 
[12,758 views] Email Article To a Friend View Printable Version
10.5: Use Apache virtual hosts outside the Sites folder Internet
I want to run Apache with virtual sites located outside my user's Sites folder. Instead, I wanted to be able to keep them anywhere within my user's Documents folder. This is because sibling directories of the desired document root may be assets, documentation, various source code, and/or any content related to the project. I do not wish to keep these files in a web-accessible folders, but I do want to keep these directories in the same parent directory.

I scoured the net and it seems that I may be the only one who wishes to do this. Just in case I'm not, though the following is how I figured it out.

The following solution worked for me in OS X 10.5.6 running Apache 2.2.9. Note that if you don't understand any of the following steps, please use caution and Google before proceeding
  1. Set up your virtual host with ~/Documents/any/sub/folder/ as the document root. (see Apache manual)
  2. Add yourself to the www group: sudo dscl localhost append /Local/Default/Groups/www GroupMembership _username_ -- replace _username_ with your user's short username.
  3. chgrp www ~/Documents
  4. chmod 750 ~/Documents
I'm not entirely comfortable with enabling +rx access to the www group, and therefore the httpd process on my home directory. However, this is a local development machine and I'm stoked to at least maintain my usual linux directory structure and have my vhosts working.

Please, if anyone knows of a better way to allow Apache to use any folder as the document root for a virtual host -- without enabling read/execute access to www group on one's home directory -- do inform.
  Post a comment  •  Comments (8)  
  • Currently 1.93 / 5
  You rated: 1 / 5 (14 votes cast)
 
[16,668 views] Email Article To a Friend View Printable Version
Change the default subnet for Internet Sharing Internet
For some time, I googled and hunted for a solution that would allow me to change the subnet that Internet Sharing (on the Sharing System Preferences panel) uses when sharing onto an Ethernet network -- the default being 192.168.2.0. In my case, this also happens to be a subnet used by my corporate VPN, which is not too convenient.

The solution for Leopard turned out to be extremely straightforward, and can be found in the unix help file for InternetSharing -- just type man InternetSharing to read it in Terminal:
  1. Copy the plist file /Library » Preferences » SystemConfiguration » com.apple.nat.plist to your home directory, eg: sudo cp /Library/Preferences/SystemConfiguration/com.apple.nat.plist ~.
  2. Use Xcode's Property List Editor (or any other property list editor) to edit the file in your home directory.
  3. Add a new key (child) to the NAT dict. Call it SharingNetworkNumberStart. The type should be String, and the value is the IP network you want to use (eg 10.168.2.0). As an example, here's what my edited file looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>NAT</key>
    	<dict>
    		<key>AirPort</key>
    		<dict>
    			<key>40BitEncrypt</key>
    			<integer>1</integer>
    			<key>Channel</key>
    			<integer>0</integer>
    			<key>Enabled</key>
    			<integer>0</integer>
    			<key>Extreme</key>
    			<string></string>
    			<key>NetworkName</key>
    			<string>pimpedwifi</string>
    			<key>NetworkPassword</key>
    			<data>################</data>
    		</dict>
    		<key>Enabled</key>
    		<integer>1</integer>
    		<key>PrimaryInterface</key>
    		<dict>
    			<key>Device</key>
    			<string>HUAWEIMobile-Modem</string>
    			<key>Enabled</key>
    			<integer>0</integer>
    			<key>HardwareKey</key>
    			<string></string>
    			<key>PrimaryUserReadable</key>
    			<string>HUAWEI Mobile</string>
    		</dict>
    		<key>PrimaryService</key>
    		<string>C42284CE-6803-42A7-9F54-627DB90321DF</string>
    		<key>SharingDevices</key>
    		<array>
    			<string>en0</string>
    		</array>
    		<key>SharingNetworkNumberStart</key>
    		<string>10.168.2.0</string>
    	</dict>
    </dict>
    </plist>
    
    Save your changes.
  4. Copy the edited file back to the original location. sudo cp ~/com.apple.nat.plist /Library/Preferences/SystemConfiguration/
Now you can (re-)start Internet Sharing, and it will run on your defined subnet. Hopefully some day Apple will add this as a config option in the Sharing System Preferences panel.

[robg adds: You may want to duplicate the original file first, or make sure you have a backup on Time Machine, just in case something goes wrong.]
  Post a comment  •  Comments (11)  
  • Currently 2.11 / 5
  You rated: 4 / 5 (9 votes cast)
 
[31,980 views] Email Article To a Friend View Printable Version
A basic guide on setting up a home-based web server Internet
If you've got any interest in setting up a Mac mini (or other Mac) as a web server in your home, I wrote up my experiences doing just that. I cover how to use:
  • dyndns.com to set up a domain name.
  • The built-in OS X web server to serve pages.
  • PureFTP to set up an FTP server.
  • SquirrelMail to read my Gmail, which is blocked at work.
  • WebMon (Leopard, Tiger) to set up a WebDAV server to sync iCal and Outlook calendars between home and work.
Read the blog entry for more detail on each of these solutions.

[robg adds: While the above guide is a good 'getting started' primer on setting up a home-based web server, note that many ISPs won't allow you to run a web server on a home connection plan. Even if it's not prohibited, many home connections lack the upload bandwidth to effectively serve pages to more than a handful of users at one time.

So as technically cool as it is to run a server from your own home (and I keep one running, but restrict access to my own use via password protection), there are many free and low cost hosting companies that offer better connectivity along with all (and usually more) of the above features. I host our family's site and my personal blog using 1and1.com, for instance, but there are literally thousands of companies to pick from. Sites such as Web Hosting Geeks and Upper Host list some of the best-rated providers, and I'm sure the readers here have lots of suggestions for those looking to start hosting a site.]
  Post a comment  •  Comments (7)  
  • Currently 1.60 / 5
  You rated: 5 / 5 (10 votes cast)
 
[18,456 views] Email Article To a Friend View Printable Version
10.5: A possible fix for slow dial-up in Leopard Internet
I recently upgraded from Tiger 10.4.11 to Leopard 10.5.6. Everything seemed fine, except for a drastic slowdown in my dial-up internet access via the internal modem. Oddly Safari and Firefox ran fine, but my Mail and FTP/Telnet were crawling under the new OS.

The solution that worked for me was to uncheck the "Use TCP header compression" setting, which can be found here: System Preferences » Network » Internal Modem » Advanced button (lower right) » PPP tab. On that tab, set the Settings pop-up menu to Configuration, and uncheck the "Use TCP header compression" box. Then click the OK button in the lower right, followed by the Apply button (in the lower right), and you're done.

If your modem is connected, disconnect and reconnect to implement the change.
  Post a comment  •  Comments (4)  
  • Currently 2.00 / 5
  You rated: 5 / 5 (9 votes cast)
 
[8,410 views] Email Article To a Friend View Printable Version
How to access MobileMe's iDisk from IE6 in Windows Internet
To access your iDisk on a Windows PC running Internet Explorer 6 (inside a virtual machine, or via Boot Camp), use this web address:

http://idisk.mac.com/username

Enter your username and password when prompted, and you're in!

[robg adds: I can't easily test this, not having IE 6 installed anywhere, but I assume this hint exists because IE6 doesn't like the new http://public.me.com/username pages.]
  Post a comment  •  Comments (8)  
  • Currently 1.67 / 5
  You rated: 3 / 5 (9 votes cast)
 
[11,246 views] Email Article To a Friend View Printable Version
Prevent long delays when connecting to IRC servers Internet
I commonly use IRC, and always while using my MacBook on a wireless connection. This can be an annoyance, as some IRC servers make you wait a period of time before they will allow you to connect (sometimes over 30 seconds).

After scouring the internet and many false attempts, I found IdentD, a free neat little System Preference that handles what I need to nicely. (There's more info on the program on its MacUpdate page.)

I installed this on one of my G4 towers that was permanently connected to my network with Ethernet cables -- you cannot use this application on the computer that is using a wireless connection. I then set up the app via its preferences panel in System Preferences to return a custom string containing the IRC username (Your Shorthand name) that I was use on my MacBook.

After this, I simply configuring my router to forward port 113 (TCP) to my G4 tower, and told the firewall on my G4 to allow port 113. This resolved my connection problems to IRC servers.
  Post a comment  •  Comments (5)  
  • Currently 1.89 / 5
  You rated: 5 / 5 (9 votes cast)
 
[6,431 views] Email Article To a Friend View Printable Version
Google Calendar event start time entry shortcut Internet
In Google Calendar, you can enter the event name and start time together in the one-click shortcut.

Start by clicking the calendar day or hour for a pop-up bubble. Type the start time (7p or 700p any place in the event name. It's even suggested by the example, 7pm Dinner at Pancho's.) Then click on Create Event" or press Enter. The start time will precede the event name. Note that 7p-8p won't convert.

This feature can't be used on an existing event -- when you edit an existing event, typing 7p in the subject line won't convert. You must uncheck All Day and choose the start time from the pulldown menu, or highlight the time box and enter at least 7p or 700p (or at least 7 for AM).
  Post a comment  •  Comments (3)  
  • Currently 1.78 / 5
  You rated: 5 / 5 (9 votes cast)
 
[8,754 views] Email Article To a Friend View Printable Version