Showing posts with label Uniform Resource Locator. Show all posts
Showing posts with label Uniform Resource Locator. Show all posts

Friday, October 18, 2013

Getting the best Amazon deal




Getting the best Amazon deal


Source: www.macworld.com

Although I’m the guy others come to for answers, there are times when I have questions of my own. For instance, while discussing beloved movies with a friend I was reminded that I don't own copies of Alfred Hitchcock’s greatest movies. Hoping to remedy that I dashed to Amazon and found Alfred Hitchcock: The Master piece Collection [Blu-ray], which includes the greatest hits of Hitchcock’s later work. The collection looked great, but the price did not—$178.96 as I write this.
Reviews indicate that the collection has been sold for as little as $120—a price I would be willing to spring for. But how am I to know when it becomes available at such a discounted price? I turned to Twitter for answers.
Follower John Coxon (@johncoxon) told me about camelcamelcamel. This Web-based service allows you to enter the URL for the item you wish to track. You can then view a history of the item’s price to get a ballpark idea of how low it’s been priced in the past. Then just enter the price you’re willing to pay ($120, in my case) and choose how you wish to be alerted—via email or Twitter.




Mike Hoffman (@MikeHoffman) pointed me to Delite Studio’s free Mac application Price Drop Monitor For Amazon. Download and install it and a shopping cart icon appears in the Mac’s menu bar. In your Web browser just navigate to the item you eventually wish to purchase and drag its URL to this menu bar icon. It will be added to a list of watched items. When the price of a watched item drops you’ll be notified (you can choose from among a sound, notification center, Growl, and email). To track more than 20 items you must pay $3.99 for monitoring of up to 50 items at a time.
Both Chris Lehmkuhl (@ChrisLehmkuhl) and Dave Packard (@cpadave) informed me that all I had to do is add the item to my cart and leave it there, unpurchased. When the price changes you'll see a notification in your Amazon shopping cart.
And finally, I have a solution of my own. With Safari go to the item’s Amazon page and choose File > Open in Dashboard. This is the means for creating a Web clipping. Select the item’s price area and click Add. That clipping will appear in Dashboard. Because Dashboard clippings update whenever you switch to Dashboard, all you need to do is invoke Dashboard to view the item’s current price.



Enhanced by Zemanta

Tuesday, August 2, 2011

Ten Safari shortcuts you should know

Apple Safari iconImage via Wikipedia

Ten Safari shortcuts you should know


Source: macworld.com


While I like my Magic Trackpad, and the trackpad on my MacBook Air, I do as much as I can from the keyboard.


As such, I use LaunchBar () to launch applications, and have learned a number of essential iTunes shortcuts to save time when I work with my music collection.
I know dozens of shortcuts for the apps I use most.


Since it's easier to use the keyboard - no need to move my hand to my trackpad - I've memorized a handful of useful shortcuts for browsing the Web.
Here are ten that I think are essential. (These should work in both Snow Leopard and Lion unless otherwise noted.)

1. Quickly enter URLs

When I want to type a URL, I don't use a mouse or trackpad to click in the Address Bar, clear it, then type. Just press Command-L, and all the text in the Address Bar is selected, so whatever you type replaces it immediately. Start typing a URL for a favorite site, and Safari can auto-completes it by looking at your history or bookmarks. If Safari displays a list of sites, use the up- and down-arrow keys to choose the right one, and then press Return to go there.

2. Search in a snap

Like everyone, I search a lot using Google. Why click in the Google search field when you can go there by simply pressing Command-Option-F? Remember this shortcut, as it works in many Apple programs. Use it in Mail, iTunes, Address Book and more when you need to zip to the search field.

3. Hop to your history

There are times when I want to browse my History list to find a Web page I visited recently, but whose URL I can't remember. Pressing Command-Option-2 takes me to the History list, and puts the cursor in the search field. I can type a word or two and narrow down the display to find what I want. Double-clicking an entry in the History list takes me to that page, and pressing Command-Option-2 again takes me back to the previously visible Web page.

4. Scroll with the spacebar

When I get to my favorite Web page, I rarely bother to use scroll bars, or even my trackpad, to scroll. Just press the spacebar, and Safari scrolls down one screen. Need to go back up a screen? Press Shift-Spacebar. It's fast and efficient, and doesn't make me dizzy watching the page move up and down.

5. Open tabs in the background

Safari’s Tabs preferences show the shortcuts you can use to create new tabs. Go to Safari -> Preferences and click on Tabs to see these. The shortcut I use most is Command-Shift-click, which opens a new tab in the background. I use this a lot when I’m doing research on the Web and want to open several pages from search results without looking at them right away. Safari's tabbed browsing is a practical way to have several Web pages open at once without getting confused by multiple windows. IMAGE - SAFARI-TABS Safari's Tabs preferences let you choose how you want tabbed browsing to work, and show you the available keyboard shortcuts according to your settings.

6. Navigate your tabs

Use Command-Shift-Left Arrow or Right-Arrow will take you from one tab to the other. Just make sure that your cursor isn’t in a text field on any window displayed in a tab

7. Send a page (or its URL) to a friend

To email a neat Web page you’ve found to a friend.
  • Command-I does the trick; it takes the contents of the page and send it to the person in a new message in Mail, with the page’s title as the message subject.
  • Command-Shift-I Will just want to send a link

8. Save pages for later

New in Lion is Reading List, a sort of temporary bookmark list that you can use for pages you want to come back to and read later. If you press Command-Shift-D, you can add the current page to the Reading List.

9. Save links for later

The above Lion shortcut works when a page is visible. If you want to add a linked page to the Reading List - a page in search results, or a link, say, on the main page of macworld.com - just hold down the Shift key and click on that link

10. View Lion’s Reading List

To view the Reading List, you could click on the eyeglasses icon in the Bookmark Bar, if it was visible. Since we’re discussing keyboard shortcuts, however, instead you use the easier method of just pressing Command-Shift-L.


Concepts:

Mac, Shortcuts, Tabs, Safari, Command-L, Command-Option-2, Command-Option-F, Command-Option-2, Command-Shift-Click, Command-Shift-Left Arrow, Command-Shift-I, Right-Arrow, Command-Shift-D, Command-Shift-L, Lion, Macworld, Business, Accessories

Enhanced by Zemanta

Wednesday, April 20, 2011

Open a Collection of Tabs in Safari using AppleScript

AppleScriptImage via Wikipedia

AppleScript to open a collection of Safari tabs


Source: hints.macworld.com

Apr 18, '11 07:30:01AM • Contributed by: Dana Nau
Here's a simple AppleScript that replaces the current Safari window with a collection of tabs, each open to a different URL. I've seen several scripts that attempt to do something similar, but this one improves on them in a couple of ways:
  • It closes all of the old tabs, rather than just adding new ones.
  • It opens the new tabs directly in AppleScript, which is much faster than using system events.
The URLs in the script are just an example; obviously you'll want to replace them with others.
tell application "Safari"
  activate
  -- close all but one tab of the front window
  try
    repeat
      close tab 2 of window 1
    end repeat
  end try
  -- open the URLs in separate tabs
  tell window 1
    set URL of tab 1 to "http://weather.yahoo.com/forecast/USMD0100.html"
    make new tab with properties {URL:"http://www.weather.com/weather/today/College+Park+MD+20740"}
    make new tab with properties {URL:"http://www.wunderground.com/cgi-bin/findweather/getForecast?query=20742"}
    make new tab with properties {URL:"http://www.accuweather.com/us/md/college-park/20742/city-weather-forecast.asp"}
    make new tab with properties {URL:"http://weather.weatherbug.com/MD/College%20Park-weather.html?zcode=z6286&zip=20742"}
  end tell
end tell
Enhanced by Zemanta

Wednesday, February 16, 2011

Easily download files from URLs on your Mac

System PreferencesImage via Wikipedia

Quickly download files from URLs | Mac OS X | Mac OS X Hints



Source: macworld.com


Using this tip, you will be able to create a service on OS X that will enable you to highlight a URL to download and use your new service to download it without opening any other application.

Let's say a friend sent you a link to an app or an MP3 file, and you just want to download the thing.
Normally, you'd copy the URL, open your browser, and paste the URL into the address bar. In some browsers, you'd even need to paste the URL into the address field, hit Enter, wait until the file loads, and then save it.
From the list of templates, select Service.
At the top right of the window, set the service to receive selected URLs in any application.
Then, in the Internet group of actions, double-click on Download URLs.
That will add it to the editing window on the right.
By default, it will download URLs to your Downloads folder; if you wish them to go somewhere else, select that other location from the Where drop-down.
Save the service and give it a name, such as Download Selected URL.
Now, in any app that supports services, find the URL of a downloadable file (or, for the purposes of testing, any URL at all) and select it with your cursor. Open the Services submenu from the application menu and select Download Selected URL from the list. (Or right-click on the selected URL and choose the service from the context menu’s Services section.)
The file connected to the selected URL should download to your selected folder.
If it's especially large, you'll see a spinning cogwheel on the right side of the menubar while the service is running; clicking on that will open a menu where you can cancel the download if you wish.
When the download is done, check the destination folder; your file should be there.
You can make this quicker by assigning a keyboard shortcut to your service: Open System Preferences and select the Keyboard preference pane.
In the Keyboard Shortcuts tab, select Services from the list to the left.
Find Download Selected URL in the list on the right and double-click to its right.
You can then enter a keyboard shortcut - Control-Command-D, perhaps - to assign it to your service.






Concepts:


Mac, download, app, Macworld, Prices, selected URL, accessories, keyboard, Customer Service, Publishing, Cameras, business, ipod, Leopard, Internet




Enhanced by Zemanta

Monday, November 30, 2009

Jekyll: Sites Made Simple

Wordpress Template Hierarchy.Image via Wikipedia

Jekyll: Sites Made Simple:

Jekyll: Sites Made Simple


For the full text of this article go here
Just this last August, I decided to relaunch my web site; I chose to give WordPress the flick and try out Jekyll, a Ruby-based static site generator.

Jekyll at its core is a text transformation engine.

The concept behind the system is this: you give it text written in your favorite markup language, be that Markdown, Textile, or just plain HTML, and it churns that through a layout or series of layout files.

Throughout that process you can tweak how you want the site URLs to look, what data gets displayed on the layout, and more.

This is all done through strictly editing files, and the web interface is the final product.

Jekyll is a blog-aware, static site generator.

It uses a set of template or layout files, the associated CSS files, and plain text files for the posts.

The posts can use the Markdown format or another similar markup language.

There's no content management system, no database, and no specific language support on the web server required---your site is a collection of plain old static HTML files.

Switching back to static markup may at first seem like a reversion to the late 1990s.

Yet Jekyll is a simple and elegant system that mimics the characteristics of a dynamic site---drawing content from a database and inserting it into templates via a CMS---without all that complexity.

As a firm believer in the KISS principle (Keep It Simple, Stupid), I always try to find the right tool for the job, and Jekyll is a simple solution to a common problem: "I want my own customized blog."

It's also flexible enough that it can easily be used for other tasks.

For example, GitHub uses it to drive GitHub Pages.

This article describes using Jekyll to build a web site: from downloading it, setting up a development environment, and hacking up template files.

I'll conclude with a word on maintaining updates between your development instance (for example, new blog entries) and synchronizing them to your web server.

Note that I've written this piece from a designer's perspective.

Although I had a number of technical hurdles to hop over, Jekyll remains rather simple; for instance, using Jekyll's template system and Liquid tags is easier than hacking a design as a WordPress theme.

Never fear, I intend this article to be as designer-friendly as possible.

Setting up a Jekyll blog is relatively smooth-going and boils down to a few straightforward steps.

Jekyll is written in Ruby, so you'll need to install it.

It's as simple as downloading the latest Ruby version for your platform and following the installation instructions.

The Ruby installation also includes the RubyGems packaging system, and allows you to download and install other Ruby libraries and programs.

If you're using Windows, choose the one-click installer, and make sure you tick the Enable RubyGems option when running the installer.

We'll be fetching Jekyll from the Gemcutter RubyGem hosting repository, but we first need to install the Gemcutter program.

The tumble command will simply make the RubyGems installer query the Gemcutter repository first, when downloading RubyGem packages.

This ensures that Jekyll is downloaded from the Gemcutter repository.

If you're on Windows you'll be entering the commands at the Windows command prompt (Start> Run...

Jekyll, like all good software, is modular and does one task very well, relying on other programs and libraries for additional functionality---after all, why reinvent the wheel?

This modularity also gives us choice: you can pick and choose from a variety of slightly different tools that perform similar tasks to extend Jekyll, depending on your preferences.

For example, if you'd rather write your blog posts in Textile instead of Markdown, you can.

For me, however, the default (Markdown) does the trick, and Gem only needs a small number of other dependencies, which are fetched automatically.

For a full list of available gems that extend Jekyll, see the list within the install instructions for Jekyll on GitHub.

Now with Jekyll installed let us set up the file system structure.

First, create a new directory---placing it within your user directory is fine.

That done we can execute Jekyll by issuing the jekyll command at the command prompt.

You'll notice that Jekyll creates a directory _site, which now holds an index.html file.

It's typically only a few lines long and allows you to avoid having to specify optional flags every time you run Jekyll from the command line; just stick them into _config.yml and Jekyll will use them every time it's run.

For more info on Jekyll configuration, see the configuration page on the Jekyll wiki.

When Jekyll is run, your posts are injected into the layouts using the Liquid tag: {{content}}.

Posts are plain text files that are named with the format $YEAR-$MONTH-$DATE-$TITLE.$FORMAT.

We'll create two templates for us to pick from: base.html, which is our base layout and post.html, which extends the base layout and is used for posts.

It was designed to allow designers and front-end developers to tweak their shopping interface without affecting the security on the server they're built on.

Apart from the specific directories and files mentioned above, all other directories and files are handled by Jekyll as expected and will be included in the generated site build in _sites/ when Jekyll is run.

Thus, a css/ and js/ directory and its contents, a favicon, and whatever else will all be added to the site build.

Jekyll comes with a simple web server that allows you to pop over to http://localhost:4000/ and view your site.

Even better, if you're actively updating and making changes, a useful flag to append to the jekyll command is --auto.

You can also add auto: true to the configuration file so that you can avoid having to type it in every time.

If you want to track your Jekyll files in a version control system, it's recommended to make an exception for the _site directory.

That's because the files in the _site directory are bound to change a lot, particularly during the development phase.

Deploying your generated static site is just a matter of copying the output in _site to your web server.

You could use FTP to upload your files, but there are a number of automated methods that make life easier, particularly when you just want to upload the new changes since the last upload.

My preferred current method is to use rsync, a little UNIX utility written by Canberra locals Andrew Tridgell and Paul Mackerras.

rsync synchronizes data from one location to another, and in doing so only sends changes rather than full files where possible.

There are a range of other, more complex automated methods, but they're beyond the scope of this article.

As a static site generator without any dynamic extensions means Jekyll has no comment support.

I've personally decided to avoid comments; besides avoiding having to deal with them at all (code-wise, styling-wise, spam-wise---yay!), the best feedback I've ever received were face-to-face or directly via email.

I also echo some of the sentiments raised by Alex Payne in his article, Why I Don't Allow Comments, and More on Everything Buckets in regards to fostering a higher quality discussion.

Despite blog CMSs as powerful as WordPress, Movable Type, and so on, I hope you can now see why it's worth reverting to a simplistic and rudimentary system like Jekyll: you use the right tool for the job.

Jekyll is a breeze to pick up; its learning curve is certainly less steep than say theme design or hacking for WordPress, in my experience.

With GitHub Pages using Jekyll, it's common to see many Jekyll users sharing their Jekyll blog sources openly via GitHub.

There's a listing of Jekyll-generated sites in the documentation, along with links to their respective GitHub repositories when available.

These are great to browse through for some knowledge on how other Jekyll users have built their web sites.

Learning curves aside, if you're after a simplistic blog tool construction-wise that does not require multiple users or a fully featured web publishing interface, then Jekyll could easily do the trick.

(Be assured, the sophistication of the final output for Jekyll can generate beautiful multi-layout blogs akin to WordPress.)

Ultimately, I changed to Jekyll because WordPress seemed like an overkill and I was up for learning a new platform.

I hope this article serves to help you if you're experiencing a similar predicament.

Feature image
by macaroni1945.





Reblog this post [with Zemanta]