17 November 2009
Google Image Swirl
Google Image Swirl clusters the top image search results for more than 200,000 queries and it lets you explore the clusters and the relation between images.
'Once you find the group of images you're interested in, you can click on the thumbnail and a cluster of images will 'swirl' into view. You can then further explore additional sub-groups within any cluster. Image Swirl expands on technologies developed for Similar Images and Picasa Face Recognition to discern how images should be grouped together and build hierarchies out of these groups. Each thumbnail on the initial results page represents an algorithmically-determined representative group of images with similar appearance and meaning. These aren't just the most relevant images — they are the most relevant groups of images,' explains Google.
Try queries like: jaguar, flowers, van Gogh and keep in mind that this is an early demo, so not all the queries will return results.
Google has two other visualization tools: 'wonder wheel' for exploring related searches and YouTube Warp, an interactive way to visualize related YouTube videos."
15 November 2009
10 November 2009
Replenish Fluids After Exercising with a Simple Equation [Exercise]
It's important to keep hydrated before, during, and after a workout, but if you're not satisfied with conventional 'until you're not thirsty' wisdom, Men's Health explains how to calculate how much you need to drink to replenish your fluids.
Photo by shrff14.
According to the post, you should ideally start drinking water or comparable liquids at least 15 minutes prior to exercising and around eight ounces of water for every 20 minutes spent working out. It's also important to weigh yourself before and after a workout, especially where refueling after the fact is concerned. Once you've clocked your post-exercise weight, drink 16 ounces of water for every pound you've lost (you've clearly done some serious working out if you've dropped literal pounds). For example, Men's Health says that 'if you're 2 pounds lighter after an hour-long run, drink 32 ounces more before or during your next run.'
And if you're not sure whether coffee, juices, and other liquids will help you refuel as well as water, get to know these four debunked hydration myths.
"
07 November 2009
Eddie Rickenbacker
Customize MediaWiki into Your Ultimate Collaborative Web Site [Mediawiki]
The free MediaWiki software is best known for powering Wikipedia, but you don't have to be writing an encyclopedia to put it to good use. Extend, skin, and customize MediaWiki to create any kind of easy-to-update, collaborative web site.
When and Why MediaWiki?
MediaWiki is arguably the most advanced, install-it-yourself, free wiki package available. A wiki is an editable web site; you can change each page's content without having to log into a content management system like WordPress or access the server via FTP or other means—you just hit the edit button. While MediaWiki is built for public web sites that anyone can update, like Wikipedia, you can customize it to limit access to certain users. Like WordPress and Firefox, MediaWiki is extendable via plug-ins that add functionality. MediaWiki is also skinnable, which means your wiki can sport a custom theme so it doesn't look just like Wikipedia.
MediaWiki's greatest strengths are that it makes web site pages extremely easy to update, and it makes managing page changes by multiple users very easy as well. So, while you could use MediaWiki to publish your own personal web site where you're the only author, MediaWiki really shines when you're co-authoring with another person or group, or if you have an editor reviewing text on a site who needs to make quick corrections and changes. MediaWiki is also very good at structuring large amounts of text with simple markup. For example, MediaWiki automatically creates on-page, hierarchical outlines based on page sections (shown here) with links that point directly to those sections (even if they're midway down the page). Whether you're co-writing your NaNoWriMo novel, setting up a company intranet, or just want an easy-to-update web site, MediaWiki fits the bill.
Recently, Adam and I used MediaWiki to write, publish, and expand a book-in-progress using MediaWiki. Check it out to get a feel for what a non-Wikipedia web site using MediaWiki can look like.
MediaWiki Installation and Basic Usage
To use MediaWiki, you'll need a web server with PHP and MySQL available and some experience installing web applications. If you've installed WordPress before, you'll have no problem installing MediaWiki. To do some of the customizations below, you'll have to be comfortable adding files to your installation, doing some light PHP file editing, and in the case of skins, know how to tweak HTML and CSS to get your skin to look how you want.
Back in 2006, we covered how to install MediaWiki and that article still stands up. (However, you can't go wrong getting instructions from the horse's mouth—here are MediaWiki's latest installation instructions.) If you don't want to deal with the hassle of setting up a web server with PHP and MySQL and MediaWiki, check out the quick-setup BitNami installer for MediaWiki.
Once MediaWiki's installed, you can start adding and editing pages to your wiki. Wiki pages aren't made of HTML like regular pages, they're made of special wiki markup. Here's a rundown of the most common bits of wiki markup you'll need to know. To see wiki markup in action, hit the play button to watch a five-minute screencast demonstrating how to edit and create pages ('chapters') of a novel in MediaWiki.
MediaWiki Skins
Out of the box, MediaWiki comes with the look and feel you're so used to from Wikipedia; this MediaWiki skin is called MonoBook, and it's popular and immediately recognizable. However, if you log into your MediaWiki installation and click on preferences, and then the Skins tab, you can dress up your wiki in various other looks. With a little elbow grease, you can also create your own custom skin and assign it as the default to the wiki.
All your wiki's skin files are located in the /path-to-your-wiki/skins/
directory, where 'path-to-your-wiki' is the directory where MediaWiki is installed. A skin is made up of a single PHP file, and a directory with its CSS files and images. For example, a skin called 'My Great Skin' will consist of /path-to-your-wiki/skins/MyGreatSkin.php
and /path-to-your-wiki/skins/mygreatskin
. Unlike WordPress, you have to update your skin files by hand on your MediaWiki server. Be sure to back up your entire working installation before you start, just in case something goes wrong.
Newbie MediaWiki skin developers would do well to start with a copy of the MonoBook skin files and modify them. WikiHow (another MediaWiki-based site!) offers a simple tutorial on how to do that: How to Create a MediaWiki Skin Based on the MonoBook Skin. You can always preview a skin in your user Preferences->Skins area as you develop to make sure things look how you want. The (X)HTML markup for your skin will be located in its .php file and the CSS files will be located in the skin's folder. Be sure to save any skin-specific images in the skin's folder as well.
Once your skin development is complete, you want to set it as the default for everyone who looks at your wiki, whether or not they're logged in. To do so, in /path-to-your-wiki/LocalSettings.php
, set the $wgDefaultSkin
variable to to the name of your custom skin and refresh your wiki.
MediaWiki Extensions
Like WordPress, MediaWiki is an extensible web application, and several MediaWiki plug-ins that add functionality to MediaWiki are available for free. Unlike WordPress, MediaWiki extensions require manually copying files into your MediaWiki installation directory and hand-editing the LocalSettings.php
file.
Three MediaWiki extensions you may find useful include:
- The EmbedVideo extension helps you include a YouTube, Google Video, Dailymotion, or Revver video clip into your wiki pages.
- The Cite extension makes creating page footnotes (ala Wikipedia) easy.
- The WhosOnline extension shows what users are currently logged into your wiki.
These three extensions are just the beginning. See MediaWiki's list of extensions by category for more.
To install an extension, download its zip file and extract it to the /path-to-your-wiki/extensions/
directory. Then, in your LocalSettings.php
file, add a line that includes the extension file. For example, to activate the Cite extension, you'd use the line require_once('$IP/extensions/Cite/Cite.php');
. (Each extension's homepage will provide the line of code you'll need to install it, and how to use the extension once it is installed.)
MediaWiki User Permissions
The primary purpose of a wiki is to give anyone the ability to edit its pages, but MediaWiki is customizable enough that you can limit that access if you're concerned about vandalism, or if you want only certain users to be able to change content.
For example, MediaWiki comes with a mechanism to register users, so people can create an account at your wiki and log in. This comes in handy if you want to restrict edit access to only people who are logged into your wiki. Likewise, you can 'protect' pages on your wiki and grant only certain users 'editprotected' page access.
To set your MediaWiki user permissions, you have to edit the LocalSettings.php
file. For example, to disable the ability for anyone who visits your wiki to edit its pages, create pages, or add to talk pages, use this code:
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['*']['createpage'] = false;
Above, the * represents all users.
A default group called 'user' refers to visitors who have created an account and logged into your wiki. To give them edit privileges, add the following to your LocalSettings.php
file:
$wgGroupPermissions['user']['edit'] = true;
You can even restrict edit access only to users who have created an account AND verified their email address with this code in LocalSettings.php
:
# Disable for everyone.
$wgGroupPermissions['*']['edit'] = false;
# Disable for users, too: by default 'user' is allowed to edit, even if '*' is not.
$wgGroupPermissions['user']['edit'] = false;
# Make it so users with confirmed e-mail addresses are in the group.
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
# Hide group from user list.
$wgImplicitGroups[] = 'emailconfirmed';
# Finally, set it to true for the desired group.
$wgGroupPermissions['emailconfirmed']['edit'] = true;
MediaWiki's user rights scheme is complex but deeply customizable. See the Manual's User Rights page for a full list of rights, default groups, and how to create your own groups with custom access privileges.
More MediaWiki Customization Fun
This overview of skins, extensions, and user permissions is just a broad look at what's possible in the world of MediaWiki customization. Here are links to a few more common tweaks you might make to your wiki:
- Set your logo image: If you're using MonoBook or another skin that uses a wiki logo, set it to your custom image.
- Prettify your wiki URLs: By default, MediaWiki's page URLs look like
/index.php?title=Your_Page
, but an .htaccess file tweak can make them look like Wikipedia's clean/wiki/Your_Page
links. - Set a custom Main Page: If 'Main Page' isn't the first two words you want your wiki's visitors to see, you can move the Main Page to a custom page you create and name.
- Use MediaWiki templates for reusable modules: If you use repetitive page elements, like an image with a caption formatted a certain way, set up a MediaWiki template for easy reuse.
- Make your wiki read-only with $wgReadOnly: To disable editing on all pages across the board on your wiki, set the
$wgReadOnly
variable to an explanatory string in yourLocalSettings.php
file. For example, the line$wgReadOnly = 'Wiki locked for maintenance';
will disable editing of all pages, and display that message to anyone who tries to edit a page.
What are your favorite MediaWiki customizations, extensions, or skins? Share 'em in the comments.
Gina Trapani, Lifehacker's founding editor, is very excited to finally co-author a book for real using MediaWiki. Her weekly feature, Smarterware, appears every Wednesday on Lifehacker. Subscribe to the Smarterware tag feed to get new installments in your newsreader.
http://completewaveguide.com/guide/Get_Started_with_Wave#"
24 October 2009
How to be a STUDYING JUGGERNAUT
- keep from cramming before writing papers and
- retain the information after I have written an paper.
30 September 2009
Google Wave First Look [Screenshot Tour]
If you're not one of the 100,000 lucky users who gets an invitation to Google Wave today, don't fret. You can check out Google Wave right here.
But first, ground rules. Click on all images in this post to see it full size. Uppercase 'Wave' refers to the entire Google Wave product. Lowercase 'wave' refers to an individual message or document. Think of a lowercase wave like an email or a Google Doc that you're collaborating on with other people. The screenshots in this post are from the Wave developer preview, not wave.google.com, invites to which are going out today. We'll update this post with anything significantly new in the non-preview version when we get our grubby little paws on the proper server invitation.
Ready? Let's go.
Inside Google Wave
When you log into Wave, the default view is a three-column, 4-module layout. From left to right, the first column includes Navigation on top (think of this as your Inbox, Sent, and labels in Gmail) and Contacts below (think of this as your GTalk buddy list). The second column is the list of active waves in your Inbox, and the third column is where you can start a new wave or open a wave.
Here's what it looks like. (Click to enlarge.)
When someone updates a wave in your inbox, it turns bold and moves to the top of your inbox—just like email. If a contact of yours is online, a little green dot appears on on his or her icon.
All the modules are collapsible and dock themselves in the upper part of the screen. If you've collapsed your inbox and a new wave gets updated, it flashes green. Here I've clicked on new wave and minimized all the other modules to expand my workspace. (Click to enlarge.)
You can add all sorts of rich content to your wave, like a YouTube video, Google Map, image, links, or anything that a gadget enables. (More on gadgets below.) Here I've added some colored text and embedded a video clip in my wave. (Click to enlarge.)
When I finish typing and click the Done button on my wave, Wave pops up the 'Add participants' module so I can share my wave with anyone on my contacts list. You can search for a contact by name, or just drag and drop anyone to the wave you choose. (Click to enlarge.)
Once you've shared a wave, the magic starts to happen. At first you'll swoon over the ability to watch your co-waver type in real-time. It's weird in a good, we're-living-in-the-future way to see another person's cursor hard at work outputting characters, key by key on your own screen. But you get over that novelty pretty quickly. (Most likely your IM client can do that; anyone who's used collaborative editors like SubEthaEdit have seen this as well.)
You can reply to an entire wave like an IM or an email by clicking the reply button on a wave's toolbar. But what's most cool is the ability to reply to bits of a message inline. This lets you and your collaborators annotate the wave as you go.
For example, I gave a talk about Wave here in San Diego, and prepared my talk notes in a wave. At the beginning, I did an audience survey to gauge the level of experience with Wave-like technology. I was able to insert replies to the questions in Wave as I went. (Even better would have been to have a co-presenter or note-taker do that for me.)
You can collapse or expand inline comments easily. Here's what the talk wave looks like with comments collapsed. Notice the small talk bubbles on the top Audience survey section. (Click to enlarge.)
Here's what that same wave looks like with inline comments expanded. (Click to enlarge.)
Your replies inside or to a wave can also be marked as private; so if Jack and Jill and I are collaborating on a wave and Jill wants to tell me something about Jack in-wave that Jack shouldn't see, she can click on the drop-down on the upper right of a wave and choose 'Private Reply' as shown. (Click to enlarge.)
Once you've entered your private reply, Wave prompts you to add participants to just that reply. That's because every reply is a wave in and of itself. You can create a new wave from any reply or copy a wave to a new wave, too.
Besides real-time updates, other 'holy crap' feature of Google Wave is wave revision playback. If someone adds you to a wave late in the game, after lots of conversation and annotation has already happened, you can click on the playback button to see how it was constructed over time. Think of this like a slideshow through Wikipedia page revisions. Here's a quick video clip of what playback looks like on a wave I was in on this morning.
Just like Gmail, Google Wave offers powerful advanced search operators, wave tagging, file uploads (though those are wonky for me in the dev preview), and saved searches. In addition to tags, Wave also offers folder. Folders! The interface is completely drag-and-drop: you can grab any wave and drag it to the trash or a folder.
Wave Extensions: Gadgets and Robots
Wave is a completely extensible platform, like Firefox. Wave extensions come in two flavors: gadgets and robots.
A gadget is a piece of rich content that you can add to a wave. A few example gadgets are available in the Gadget gallery.
Click on the puzzle piece on a wave's toolbar to add a gadget to the wave. One useful gadget is the 'Who is Coming?' gadget that lets you invite folks to an event and get RSVPs quickly and easily.
The most useful gadget I've seen so far is the Ribbit conference call gadget. Add it to a wave, and everyone adds their phone number to it. (You only see your own number, not everyone else's.) Click the "Start Conference" button, and everyone's phone rings—and you're on the phone, while you collaborate on a wave. (Click to enlarge.)
For more on the Ribbit Wave gadget, check out Rafe Needleman's review.
Robots are email addresses that you add to your contact list. Then, when you are in need of their services, you add a bot to a wave so they can perform some action on its contents. A robot can modify the contents of a wave, and several already exist that do silly to useful actions.
For example, Eliza the Robot Shrink (elizarobot@appspot.com) will chat with you about anything—useful when you're the only one of your friends who has a Wave invite and you've no one to talk to.
More usefully, the Bloggy bot (blog-wave@appspot.com) will publish a wave onto a Blogger blog for you. For example, I have Bloggy in my contacts, and added it to my Wave talk wave as shown here. Notice the 'Bloggy published this wave here' message in yellow at the top of the wave. (Click to enlarge.)
Click on the 'here' link and you go to my test Wave blog, which gets the contents of that wave on it. (Click to enlarge.)
If another Wave user happens upon that blog post, s/he can comment on it in-blog, and those new updates will show up in my Wave client. Right now, you have to be logged into Wave to see blogged content; but that won't always be the case. Google is working on making published Wave content read-only for all users, even those not logged into Wave.
Polly the Pollster (polly-wave@appspot.com) is another extremely useful bot which lets you create and distribute polls to survey wave collaborators quickly.
Other bots do things like automatically link Twitter usernames to their Twitter page, clean up empty replies (which proliferate quickly for some reason), and insert stock quotes. I expect we'll see tons more gadgets and bots bloom over the next year. Here are some more featured Wave extensions, courtesy of Google.
But What Will We Use Google Wave For?
The most frequent question I get about Google Wave is: "But what would I use it for?" Personally I can't wait to use it to take meeting minutes collaboratively and to co-write documents like blog posts and articles online with my editors and co-conspirators. Instead of using something like Campfire or IRC to chat with my fellow Lifehacker editors, I could see using Wave as group chat—but with inline and private replies, which are key.
Right now, like all collaboration tools, Wave is only as good as how many of the people you work (and play) with have it. Even though I was one of the developers touched by an angel, with access to the preview, I didn't actually use Wave very much because almost zero of my actual friends and co-workers were on it. So as far as I can see, uses for Wave in your life will open up as the product itself opens up to more users who care enough to wrap their heads around it and start putting valuable information in it.
If you're more of a moving-pictures learner, Google's new Wave overview video nicely illustrates some of the features I've highlighted above.
Got questions about Google Wave? Post 'em up in the comments, and we'll answer what we can.
Gina Trapani, Lifehacker's founding editor, is trying to resist a bad Wave pun. Her weekly feature, Smarterware, appears every Wednesday on Lifehacker. Subscribe to the Smarterware tag feed to get new installments in your newsreader.
"