<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Digitivity &#187; HowTo</title>
	<atom:link href="http://digitivity.org/tag/how-to/feed" rel="self" type="application/rss+xml" />
	<link>http://digitivity.org</link>
	<description>The Digital Productivity Blog</description>
	<lastBuildDate>Mon, 24 May 2010 17:50:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Showing Excerpts Instead of Full Posts on the Home Page in WordPress</title>
		<link>http://digitivity.org/422/showing-excerpts-instead-of-full-posts-on-the-home-page-in-wordpress-vs-single-page</link>
		<comments>http://digitivity.org/422/showing-excerpts-instead-of-full-posts-on-the-home-page-in-wordpress-vs-single-page#comments</comments>
		<pubDate>Tue, 29 Dec 2009 17:46:47 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[full post]]></category>
		<category><![CDATA[home page]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[single.php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=422</guid>
		<description><![CDATA[Some of my posts have been getting longer and longer, especially how-to&#8217;s. It&#8217;s hard to scan the front page for articles, and I thought it was time to switch from full posts to excerpts on the home page.
Why have excerpts instead of full posts on your home page
Some reasons you might want to show excerpts [...]


Related posts:<ol><li><a href='http://digitivity.org/425/showing-related-posts-in-wordpress-with-the-yarpp-plugin-to-increase-pageviews' rel='bookmark' title='Permanent Link: Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews'>Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews</a></li>
<li><a href='http://digitivity.org/43/updating-old-posts-or-posting-new-ones' rel='bookmark' title='Permanent Link: Updating Old Posts or Posting New Ones'>Updating Old Posts or Posting New Ones</a></li>
<li><a href='http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-in-a-subdirectory' rel='bookmark' title='Permanent Link: How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory'>How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Some of my posts have been getting longer and longer, especially how-to&#8217;s. It&#8217;s hard to scan the front page for articles, and I thought it was time to switch from full posts to excerpts on the home page.</p>
<h2>Why have excerpts instead of full posts on your home page</h2>
<p>Some reasons you might want to show excerpts instead of full posts on the home page include:</p>
<ul>
<li>It can be difficult for readers (new and old) to get a quick overview of your latest articles when they have to page down a couple of times to get to the next article headline.</li>
<li>Search engines don&#8217;t like duplicate content on your website. So it&#8217;s better to have your content on single pages as opposed to both home and single pages.</li>
<li>The fact that a user has to click on an article to read it means that you get feedback on which articles your readers like. If they read the entire article off the front page, you don&#8217;t know if they read the article, or closed their browser immediately after loading your homepage.</li>
</ul>
<h2>Why have full posts instead of excerpts on your home page</h2>
<p>On the other hand,</p>
<ul>
<li>Some people believe the &#8220;no duplicate content&#8221; rule to be overblown.</li>
<li>Having full content on the home page makes it easier for people to read without constant clicking.</li>
<li>Having full content on your home page instead of excerpts means you get full content in your RSS feeds as well, which many of your readers may find handy.</li>
<li>Having full content on your home page means more text which often results in some combination of keywords which can be a match for a user&#8217;s Google query. I don&#8217;t know if that&#8217;s the kind of random traffic you want, though.</li>
</ul>
<h2>Before you switch</h2>
<p>In the end, I decided to go with excerpts because my digital how-to&#8217;s were getting to be longer than 6 pages (i.e., six times pressing the Page Down key in a typical-sized browser window). Having to page down six times just to see what the next article&#8217;s title is seemed to me to be too much to ask readers to do. With excerpts, you can now page down just five times to see all the latest articles.</p>
<p>But before you do anything, be sure to make a full backup of your WordPress installation, including the MySQL database.</p>
<h2>Creating single.php and editing index.php to show excerpts</h2>
<p>OK, the file that WordPress uses to generate the home page is called <tt>index.php</tt>. You can also have a file called <tt>single.php</tt> that generates the &#8220;single pages&#8221; which display a single blog post per page. If you don&#8217;t have a single.php, WordPress uses index.php for double duty.</p>
<p>But since we want the home page to look different from single pages, we have to have a separate single.php. Just copy the index.php file as-is to a new file called single.php.</p>
<p>Now, we have to edit index.php. Do this with a text editor, or from WordPress administration (Appearance: Editor). If you use the WordPress Editor, look for Main Index Template.</p>
<p>Look for text that says <tt>the_content()</tt>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Replace it with:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>That&#8217;s it!</p>
<h2>Click here to read this entry</h2>
<p>OK, but now after reading the excerpt, the reader has to now go back to click your blog post title to actually read your full post.</p>
<p>Let&#8217;s make it easy by adding a link that reads &#8220;Read the rest of this entry&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;h3&gt;&lt;a class=&quot;more-link&quot; title=&quot;Read the rest of <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Read the rest of this entry ...&lt;/a&gt;&lt;/h3&gt;</pre></div></div>

<p>Note that I wrapped the link in h3 tags to make the link larger, more visible, and easier to click. This is what it looks like:</p>
<h3><a class="more-link" title="Read the rest of this entry" href="">Read the rest of this entry &#8230;</a></h3>
<p>Save the file and reload your homepage to verify the changes.</p>
<p>Thanks to <a href="http://www.problogdesign.com/how-to/the-2-methods-of-showing-excerpts/">Pro Blog Design</a> for this excellent tip.</p>
<h2>Excerpts in RSS feeds, and tags, categories, and archive pages</h2>
<p>Note that by making these changes, your RSS feeds, and tags, categories, and archive pages will show excerpts as opposed to full posts.</p>
<p>You can get fancy by coming up with various combinations of having or not having full posts vs. excerpts on the front page, RSS feeds, tag pages, etc. with various other edits or plugins, but that&#8217;s the basics.</p>
<p>You can also show your entire latest post (or latest x number of posts) in full with the rest as excerpts. Again, that&#8217;s for later.</p>
<h2>Default excerpts</h2>
<p>By default, WordPress shows the first 55 words of your article as an excerpt. It also strips all tags and formatting and just shows plain text.</p>
<p>Some people use plugins to show full sentences and not break in the middle of an excerpt.</p>
<p>But I actually prefer the default which does break sentences. Think about it: if your phone conversation gets cut off, don&#8217;t you call back to listen to what the other party was saying? A break in a sentence actually makes me want to click the link just to complete the sentence.</p>
<h2>Excerpt word count</h2>
<p>If you want to check what 55 words amounts to, you can (among other methods), use the wc command in Linux (which is most likely what your web host provider is using). At the command prompt,</p>
<ul>
<li>type <tt>wc -w</tt>:</li>
<li>paste your first paragraph or so right into the command shell</li>
<li>press Enter</li>
<li>press Ctrl+d</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">js<span style="color: #000000; font-weight: bold;">@</span>webhost:~<span style="color: #000000; font-weight: bold;">/</span>$ <span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-w</span></pre></div></div>

<p>wc responds with the word count:</p>

<div class="wp_syntax"><div class="code"><pre class="en" style="font-family:monospace;">Some of my posts have been getting longer and longer, especially how-to's. It's hard to scan the front page for articles, and I thought it was time to switch from full posts to excerpts on the home page.
&nbsp;
Why have excerpts instead of full posts on your home page
&nbsp;
Some reasons you might want to show excerpts instead of full posts on the home page include:
66</pre></div></div>

<p>66 is the word count.</p>
<h2>Resources</h2>
<p><a href="http://lorelle.wordpress.com/2006/07/19/display-post-excerpts-only-in-wordpress/">Display Post Excerpts Only in WordPress</a></p>
<p><a href="http://codex.wordpress.org/Template_Tags/the_excerpt">Template Tags/the excerpt « WordPress Codex</a></p>
<h2>Top Incoming Search Terms</h2><span class="search-terms-term">appearance of wordpress posts show only excerpts on home page</span> <span class="search-terms-term">blog home page is showing whole page not excerpt</span> <span class="search-terms-term">can i have full content on page and not excerpt wordpress</span> <span class="search-terms-term">change full content to excerpt</span> <span class="search-terms-term">displaying full post in tag page wordpress</span> <span class="search-terms-term">dont show excerpt in full post</span> <span class="search-terms-term">duplicate content on archive pages show excerpt</span> <span class="search-terms-term">enter large text in the post not showing at front wordpress</span> <span class="search-terms-term">excerpt get_recent_posts title</span> <span class="search-terms-term">excerpt instead of post-title</span> <span class="search-terms-term">excerpt instead of the full content on my front page word press</span> <span class="search-terms-term">excerpt page break post php</span> <span class="search-terms-term">excerpts or full post wordpress</span> <span class="search-terms-term">full posts vs. excerpt +blogs</span> <span class="search-terms-term">have excerpts on homepage and a full posts on another page</span> <span class="search-terms-term">homepage full posts excerpt wordpress</span> <span class="search-terms-term">how do i display excerpts instead of full posts on the home page</span> <span class="search-terms-term">how to show entire post on wordpress page</span> <span class="search-terms-term">how to show full content instead of excerpt in wordpress</span> <span class="search-terms-term">how to show post excerpt only instead of whole article</span> <span class="search-terms-term">how to show the entire post text instead of excerpt</span> <span class="search-terms-term">increasing the excerpt word count</span> <span class="search-terms-term">listing pages excerpts  wordpress</span> <span class="search-terms-term">make older posts display as excerpt wordpress</span> <span class="search-terms-term">making excerpts of blog posts</span> <span class="search-terms-term">php excerpt most search word</span> <span class="search-terms-term">php how to get single page excerpts</span> <span class="search-terms-term">problog design excerpt</span> <span class="search-terms-term">show complete post title wordpress</span> <span class="search-terms-term">show excerpt from page on wordpress</span> <span class="search-terms-term">show excerpt on single.php</span> <span class="search-terms-term">show excerpts of posts on homepage</span> <span class="search-terms-term">show wordpress excerpts on front page</span> <span class="search-terms-term">showing excerpt on blog posts</span> <span class="search-terms-term">use excerpt instead of content</span> <span class="search-terms-term">word count on wordpress homepage</span> <span class="search-terms-term">wordpress adding post make excerpt window bigger</span> <span class="search-terms-term">wordpress blogs</span> <span class="search-terms-term">wordpress default search showing old excerpts</span> <span class="search-terms-term">wordpress display entire post first page</span> <span class="search-terms-term">wordpress display excerpt on home page and full content on other pages</span> <span class="search-terms-term">wordpress displaying full content in home page</span> <span class="search-terms-term">wordpress displays full article on home</span> <span class="search-terms-term">wordpress don&#039;t show the whole post on the home page</span> <span class="search-terms-term">wordpress excerpt full content</span> <span class="search-terms-term">wordpress excerpt whole sentence</span> <span class="search-terms-term">wordpress excerpts only homepage</span> <span class="search-terms-term">wordpress get recent posts with excerpt for page</span> <span class="search-terms-term">wordpress if a post dont have excerpt not displayed</span> <span class="search-terms-term">wordpress if front page excerpt</span> <span class="search-terms-term">wordpress list posts excerpts on page</span> <span class="search-terms-term">wordpress posts some full some excerpt</span> <span class="search-terms-term">wordpress rss display full articles</span> <span class="search-terms-term">wordpress rss feed only shows title and excerpt</span> <span class="search-terms-term">wordpress rss only shows excerpts</span> <span class="search-terms-term">wordpress see complete post and not just a excerpt</span> <span class="search-terms-term">wordpress show  latest article in full</span> <span class="search-terms-term">wordpress show excerpt of post with break</span> <span class="search-terms-term">wordpress show excerpt on default page</span> <span class="search-terms-term">wordpress show full article instead of excerpt</span> <span class="search-terms-term">wordpress show full post instead of excerpt</span> <span class="search-terms-term">wordpress show full post on home page, the rest as excerpts</span> <span class="search-terms-term">wordpress show full post on homepage</span> <span class="search-terms-term">wordpress show newest post in full, later posts excerpt only</span> <span class="search-terms-term">wordpress shows full entry vs excerpt</span> <span class="search-terms-term">wordpress site to display post excerpts on the front or home page</span> <span class="search-terms-term">wordpress, get full content, not excerpt</span> 

<p>Related posts:<ol><li><a href='http://digitivity.org/425/showing-related-posts-in-wordpress-with-the-yarpp-plugin-to-increase-pageviews' rel='bookmark' title='Permanent Link: Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews'>Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews</a></li>
<li><a href='http://digitivity.org/43/updating-old-posts-or-posting-new-ones' rel='bookmark' title='Permanent Link: Updating Old Posts or Posting New Ones'>Updating Old Posts or Posting New Ones</a></li>
<li><a href='http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-in-a-subdirectory' rel='bookmark' title='Permanent Link: How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory'>How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/422/showing-excerpts-instead-of-full-posts-on-the-home-page-in-wordpress-vs-single-page/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Log in to a Webserver Without a Password Using SSH Public Keys on Ubuntu</title>
		<link>http://digitivity.org/417/how-to-login-server-without-passwordless-using-ssh-public-key-ubuntu</link>
		<comments>http://digitivity.org/417/how-to-login-server-without-passwordless-using-ssh-public-key-ubuntu#comments</comments>
		<pubDate>Fri, 25 Dec 2009 17:13:08 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Power User]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[passwordless]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[public key encryption]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=417</guid>
		<description><![CDATA[You can avoid the annoyance of typing in your password every time you want to log in to your webserver (or other computer) by using public keys with SSH.
What Is SSH?
SSH is the Secure Shell protocol, which is a way for two computers to talk to one another without anybody being able to decode what [...]


Related posts:<ol><li><a href='http://digitivity.org/781/dreamhost-server-problems-status-rss' rel='bookmark' title='Permanent Link: Dreamhost Problems Status RSS'>Dreamhost Problems Status RSS</a></li>
<li><a href='http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-in-a-subdirectory' rel='bookmark' title='Permanent Link: How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory'>How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory</a></li>
<li><a href='http://digitivity.org/964/how-to-manually-add-etc-host-ip-address-in-windows-linux-and-osx' rel='bookmark' title='Permanent Link: How to Manually Add Hosts in Windows, Linux, and OS/X'>How to Manually Add Hosts in Windows, Linux, and OS/X</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You can avoid the annoyance of typing in your password every time you want to log in to your webserver (or other computer) by using public keys with SSH.</p>
<h2>What Is SSH?</h2>
<p>SSH is the Secure Shell protocol, which is a way for two computers to talk to one another without anybody being able to decode what is being said even if the interloper were able to access the raw network communications between the two computers. This is similar to the way web browsers use SSL (Secure Sockets Layer) to talk with e-commerce and other secure websites.</p>
<p>SSH is mostly used for shell access (typing commands for a remote server to execute) and for authenticating SFTP (Secure FTP), which allows downloading and uploading files to and from remote computers.</p>
<h2>Password Annoyances</h2>
<p>Usually, you&#8217;ll type in a username and password to authenticate yourself to the remote computer. But that gets boring real quick. Often you&#8217;ll be tempted to set an easy password, just to make it easier to type in again and again. Yet that&#8217;ll obviously decrease your security.</p>
<p>Add in the fact that many SSH clients tend to get stuck or boot you out if you don&#8217;t continuously use the connection, and that means plenty of password-retyping.</p>
<h2>Solution: SSH Public Keys</h2>
<p>The answer is SSH public-key based encryption. Public-key based encryption relies on two pieces of information: One, a secret and private key which you keep in a secure location (i.e., your home directory), and the other, a public key which you place anywhere you want to log in to.</p>
<p>The key is actually a long number, but it&#8217;s usually expressed as a series of number and letters when written to your hard drive.</p>
<p>I won&#8217;t go into the details of public/private key encryption here, but let it suffice to say that the remote server, encrypts a some data with your public key. The only way to decrypt that data would be if you had the private key, which your local computer does. After it does the decryption, the remote computer is able to trust that you are really you.</p>
<h2>Passwordless Login</h2>
<p>OK, since the only thing you need to log in to a remote computer is a private key, you don&#8217;t need to enter the password associated with your remote username. Hence, you&#8217;ve achieved passwordless login.</p>
<p>Now, since the private key can be used to log in to any one of your remote accounts, you might want to protect it. You can specify what is called a &#8220;passphrase&#8221; for it at the time your create your private key. That might seem slightly paradoxical, since having to enter a passphrase for your private key instead of a password for your remote server doesn&#8217;t seem like an improvement.</p>
<p>There are ways to have a passphrase, and also not have to enter it in again and again, but that&#8217;ll be the subject of another post. For now, anyway, if your personal computer is secure, and you want things to be easy, just don&#8217;t specify a passphrase.</p>
<h2>Creating a Private Key</h2>
<p>To start using SSH public key encryption, you need to create a private key.</p>
<p>Note: be sure SSH is installed for your operating system. It will usually be installed by default on Ubuntu (and just about any other Linux/Unix based system).</p>
<p>To create a private key, use the ssh-keygen program. Type <tt>ssh-keygen</tt> in a terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">js<span style="color: #000000; font-weight: bold;">@</span>buntu910wd:~$ <span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span>
Generating public<span style="color: #000000; font-weight: bold;">/</span>private rsa key pair.
Enter <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">which</span> to save the key <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>js<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa<span style="color: #7a0874; font-weight: bold;">&#41;</span>:</pre></div></div>

<p>When prompted for which file you want to save the key in, just press Enter for the default.</p>
<p>If you want to have passwordless logins, don&#8217;t enter a passphrase when prompted. Just press Enter twice:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Enter passphrase <span style="color: #7a0874; font-weight: bold;">&#40;</span>empty <span style="color: #000000; font-weight: bold;">for</span> no passphrase<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
Enter same passphrase again:</pre></div></div>

<p><tt>ssh-keygen</tt> creates the key and then tells you where it saved it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Your identification has been saved <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>js<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.
Your public key has been saved <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>js<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub.</pre></div></div>

<p>Your public and private keys are saved in a hidden folder called <tt>.ssh</tt> in your home directory. The ssh-keygen program sets permissions to allow only yourself to read the private key, but if you want to be sure, just do an <tt>ls -l</tt>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">js<span style="color: #000000; font-weight: bold;">@</span>buntu910wd:~<span style="color: #000000; font-weight: bold;">/</span>.ssh$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span>
total <span style="color: #000000;">12</span>
<span style="color: #660033;">-rw-------</span> <span style="color: #000000;">1</span> js js <span style="color: #000000;">1675</span> <span style="color: #000000;">2009</span>-<span style="color: #000000;">12</span>-<span style="color: #000000;">25</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">29</span> id_rsa
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> js js  <span style="color: #000000;">395</span> <span style="color: #000000;">2009</span>-<span style="color: #000000;">12</span>-<span style="color: #000000;">25</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">29</span> id_rsa.pub
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> js js <span style="color: #000000;">2210</span> <span style="color: #000000;">2009</span>-<span style="color: #000000;">11</span>-<span style="color: #000000;">27</span> <span style="color: #000000;">19</span>:07 known_hosts</pre></div></div>

<p>Note: <tt>id_rsa</tt> is the private key. Guard it well. If someone is able to copy that key, he will be able to log in to any of your remote accounts.</p>
<p><tt>id_rsa.pub</tt> is the public key. No one can log in to your remote accounts just by having your public key, but there&#8217;s no reason to spread it around, either.</p>
<h2>Installing the Public Key</h2>
<p>To use your public and private keys, you have to install the public key on each remote server you want to access without a password.</p>
<p>The way that SSH works by default, it looks for public keys in a file called <tt>authorized_keys</tt> in the .ssh directory. The public keys are are just long sequences of text in a single line.</p>
<p>You can have more than one key in an authorized_keys file (for yourself, or to allow others to log on).</p>
<p>If you&#8217;re setting up SSH keys for the first time, you probably won&#8217;t have an authorized_keys file on your remote server. So you can just copy the file that contains the public key to a new file calle authorized_keys:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> .ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub ~<span style="color: #000000; font-weight: bold;">/</span>authorized_keys</pre></div></div>

<p>Then upload the authorized_keys file to the remote computer&#8217;s .ssh directory. If you don&#8217;t have a .ssh directory on the remote computer, create one:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh</pre></div></div>

<p><strong>Important</strong>: Be sure you upload your public key, and <em>not</em> the private key. The public key has a &#8220;.pub&#8221; file extension.</p>
<p>Then, set the permissions on the authorized_keys file to allow only your account access to the file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys</pre></div></div>

<h2>Log in Without a Password</h2>
<p>Now go to a terminal and log in to your account:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> johnsmith<span style="color: #000000; font-weight: bold;">@</span>example.com</pre></div></div>

<p>If all goes well, ssh shouldn&#8217;t ask you for your password, like so:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">js<span style="color: #000000; font-weight: bold;">@</span>buntu910wd:~$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> johnsmith<span style="color: #000000; font-weight: bold;">@</span>example.com
johnsmith<span style="color: #000000; font-weight: bold;">@</span>example.com<span style="color: #ff0000;">'s password:</span></pre></div></div>

<p>Since sftp uses the same authentication mechanism as ssh, you can use the sftp program without passwords, as well.</p>
<h2>Summary</h2>
<ol>
<li>Create a private/public key pair with ssh-keygen.</li>
<li>Copy the id_rsa.pub file to authorized_keys.</li>
<li>Upload the authorized_keys file to the .ssh directory in your home folder on the remote server.</li>
<li>Set permissions to only allow your user to access the key files.</li>
</ol>
<h2>Top Incoming Search Terms</h2><span class="search-terms-term">appearance of wordpress posts show only excerpts on home page</span> <span class="search-terms-term">blog home page is showing whole page not excerpt</span> <span class="search-terms-term">can i have full content on page and not excerpt wordpress</span> <span class="search-terms-term">change full content to excerpt</span> <span class="search-terms-term">displaying full post in tag page wordpress</span> <span class="search-terms-term">dont show excerpt in full post</span> <span class="search-terms-term">duplicate content on archive pages show excerpt</span> <span class="search-terms-term">enter large text in the post not showing at front wordpress</span> <span class="search-terms-term">excerpt get_recent_posts title</span> <span class="search-terms-term">excerpt instead of post-title</span> <span class="search-terms-term">excerpt instead of the full content on my front page word press</span> <span class="search-terms-term">excerpt page break post php</span> <span class="search-terms-term">excerpts or full post wordpress</span> <span class="search-terms-term">full posts vs. excerpt +blogs</span> <span class="search-terms-term">have excerpts on homepage and a full posts on another page</span> <span class="search-terms-term">homepage full posts excerpt wordpress</span> <span class="search-terms-term">how do i display excerpts instead of full posts on the home page</span> <span class="search-terms-term">how to show entire post on wordpress page</span> <span class="search-terms-term">how to show full content instead of excerpt in wordpress</span> <span class="search-terms-term">how to show post excerpt only instead of whole article</span> <span class="search-terms-term">how to show the entire post text instead of excerpt</span> <span class="search-terms-term">increasing the excerpt word count</span> <span class="search-terms-term">listing pages excerpts  wordpress</span> <span class="search-terms-term">make older posts display as excerpt wordpress</span> <span class="search-terms-term">making excerpts of blog posts</span> <span class="search-terms-term">php excerpt most search word</span> <span class="search-terms-term">php how to get single page excerpts</span> <span class="search-terms-term">problog design excerpt</span> <span class="search-terms-term">show complete post title wordpress</span> <span class="search-terms-term">show excerpt from page on wordpress</span> <span class="search-terms-term">show excerpt on single.php</span> <span class="search-terms-term">show excerpts of posts on homepage</span> <span class="search-terms-term">show wordpress excerpts on front page</span> <span class="search-terms-term">showing excerpt on blog posts</span> <span class="search-terms-term">use excerpt instead of content</span> <span class="search-terms-term">word count on wordpress homepage</span> <span class="search-terms-term">wordpress adding post make excerpt window bigger</span> <span class="search-terms-term">wordpress blogs</span> <span class="search-terms-term">wordpress default search showing old excerpts</span> <span class="search-terms-term">wordpress display entire post first page</span> <span class="search-terms-term">wordpress display excerpt on home page and full content on other pages</span> <span class="search-terms-term">wordpress displaying full content in home page</span> <span class="search-terms-term">wordpress displays full article on home</span> <span class="search-terms-term">wordpress don&#039;t show the whole post on the home page</span> <span class="search-terms-term">wordpress excerpt full content</span> <span class="search-terms-term">wordpress excerpt whole sentence</span> <span class="search-terms-term">wordpress excerpts only homepage</span> <span class="search-terms-term">wordpress get recent posts with excerpt for page</span> <span class="search-terms-term">wordpress if a post dont have excerpt not displayed</span> <span class="search-terms-term">wordpress if front page excerpt</span> <span class="search-terms-term">wordpress list posts excerpts on page</span> <span class="search-terms-term">wordpress posts some full some excerpt</span> <span class="search-terms-term">wordpress rss display full articles</span> <span class="search-terms-term">wordpress rss feed only shows title and excerpt</span> <span class="search-terms-term">wordpress rss only shows excerpts</span> <span class="search-terms-term">wordpress see complete post and not just a excerpt</span> <span class="search-terms-term">wordpress show  latest article in full</span> <span class="search-terms-term">wordpress show excerpt of post with break</span> <span class="search-terms-term">wordpress show excerpt on default page</span> <span class="search-terms-term">wordpress show full article instead of excerpt</span> <span class="search-terms-term">wordpress show full post instead of excerpt</span> <span class="search-terms-term">wordpress show full post on home page, the rest as excerpts</span> <span class="search-terms-term">wordpress show full post on homepage</span> <span class="search-terms-term">wordpress show newest post in full, later posts excerpt only</span> <span class="search-terms-term">wordpress shows full entry vs excerpt</span> <span class="search-terms-term">wordpress site to display post excerpts on the front or home page</span> <span class="search-terms-term">wordpress, get full content, not excerpt</span> 

<p>Related posts:<ol><li><a href='http://digitivity.org/781/dreamhost-server-problems-status-rss' rel='bookmark' title='Permanent Link: Dreamhost Problems Status RSS'>Dreamhost Problems Status RSS</a></li>
<li><a href='http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-in-a-subdirectory' rel='bookmark' title='Permanent Link: How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory'>How to Serve Your WordPress Blog from the Root Directory If It&#8217;s Installed in a Subdirectory</a></li>
<li><a href='http://digitivity.org/964/how-to-manually-add-etc-host-ip-address-in-windows-linux-and-osx' rel='bookmark' title='Permanent Link: How to Manually Add Hosts in Windows, Linux, and OS/X'>How to Manually Add Hosts in Windows, Linux, and OS/X</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/417/how-to-login-server-without-passwordless-using-ssh-public-key-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add an E-mail to a Gravatar Account</title>
		<link>http://digitivity.org/405/how-to-add-multiple-email-to-a-gravatar-account-use-more-than-one</link>
		<comments>http://digitivity.org/405/how-to-add-multiple-email-to-a-gravatar-account-use-more-than-one#comments</comments>
		<pubDate>Thu, 24 Dec 2009 19:56:31 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Gravatar]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=405</guid>
		<description><![CDATA[Your Gravatar account can have more than one e-mail associated with it.
Gravatars are so-called &#8220;Globally Recognized Avatars&#8221; which allow you to show your choice of image (photo, drawing, whatever) alongside the comments you make on your own or others&#8217; WordPress blogs.
You might find it handy to have multiple e-mails associated with your Gravatar account:

to avoid [...]


Related posts:<ol><li><a href='http://digitivity.org/422/showing-excerpts-instead-of-full-posts-on-the-home-page-in-wordpress-vs-single-page' rel='bookmark' title='Permanent Link: Showing Excerpts Instead of Full Posts on the Home Page in WordPress'>Showing Excerpts Instead of Full Posts on the Home Page in WordPress</a></li>
<li><a href='http://digitivity.org/425/showing-related-posts-in-wordpress-with-the-yarpp-plugin-to-increase-pageviews' rel='bookmark' title='Permanent Link: Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews'>Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews</a></li>
<li><a href='http://digitivity.org/236/making-minor-changes-in-wordpress-without-updating-the-last-updated-date-with-the-minor-edit-plugin' rel='bookmark' title='Permanent Link: Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin'>Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Your Gravatar account can have more than one e-mail associated with it.</p>
<p><a href="http://www.gravatar.com/">Gravatars</a> are so-called &#8220;Globally Recognized Avatars&#8221; which allow you to show your choice of image (photo, drawing, whatever) alongside the comments you make on your own or others&#8217; WordPress blogs.</p>
<p>You might find it handy to have multiple e-mails associated with your Gravatar account:</p>
<ul>
<li>to avoid every blog out there from knowing your main e-mail (remember, WordPress is often hacked).</li>
<li>to avoid allow you to section off the damage if one of your e-mail addresses becomes compromised. If you get spam addressed to a given address, you can block just that one e-mail.</li>
<li>to post to different categories of blogs with different pictures. For example, a dignified picture for responding to work-related blogs, and a fun one for personal comments on various blogs.</li>
</ul>
<p>To start, go to <a href="http://www.gravatar.com/">gravatar.com</a>, log in and select &#8220;Add an Email Address&#8221; from the &#8220;My Account&#8221; menu.</p>
<div id="attachment_406" class="wp-caption alignnone" style="width: 522px"><a href="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-01.png"><img class="size-medium wp-image-406 " title="gravatar-add-email-01" src="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-01-512x363.png" alt="Gravatar Add Email: Start" width="512" height="363" /></a><p class="wp-caption-text">Gravatar Add Email: Start</p></div>
<p>Gravatar asks you for the e-mail to add:</p>
<div id="attachment_407" class="wp-caption alignnone" style="width: 522px"><a href="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-02-specify-email.png"><img class="size-medium wp-image-407 " title="gravatar-add-email-02-specify-email" src="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-02-specify-email-512x363.png" alt="Gravatar Add Email: Specify Email" width="512" height="363" /></a><p class="wp-caption-text">Gravatar Add Email: Specify Email</p></div>
<p>Enter the e-mail address you want to add, and hit Enter. Gravatar doesn&#8217;t add the e-mail automatically, but rather sends a confirmation e-mail to the address you entered. This is to prevent people from associated e-mail addresses that they don&#8217;t own:</p>
<div id="attachment_408" class="wp-caption alignnone" style="width: 522px"><a href="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-03-confirmation-email-sent.png"><img class="size-medium wp-image-408 " title="gravatar-add-email-03-confirmation-email-sent" src="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-03-confirmation-email-sent-512x363.png" alt="Gravatar Add Email: Confirmation Email Sent" width="512" height="363" /></a><p class="wp-caption-text">Gravatar Add Email: Confirmation Email Sent</p></div>
<p>Go to your e-mail account, and go to the confirmation link in the  e-mail that Gravatar sent you:</p>
<div id="attachment_409" class="wp-caption alignnone" style="width: 522px"><a href="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-04-confirm-email-address.png"><img class="size-medium wp-image-409 " title="gravatar-add-email-04-confirm-email-address" src="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-04-confirm-email-address-512x326.png" alt="Gravatar Add Email: Confirm Email Address" width="512" height="326" /></a><p class="wp-caption-text">Gravatar Add Email: Confirm Email Address</p></div>
<p>Gravatar will activate the e-mail for use with Gravatar and then ask you to select an image to use with that e-mail (if you have more than one image):</p>
<div id="attachment_410" class="wp-caption alignnone" style="width: 522px"><a href="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-06-email-confirmed-choose-image.png"><img class="size-medium wp-image-410 " title="gravatar-add-email-06-email-confirmed-choose-image" src="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-06-email-confirmed-choose-image-512x363.png" alt="Gravatar Add Email: Email Confirmed, Choose Image" width="512" height="363" /></a><p class="wp-caption-text">Gravatar Add Email: Email Confirmed, Choose Image</p></div>
<p>Select an image, and confirm it:</p>
<div id="attachment_411" class="wp-caption alignnone" style="width: 463px"><a href="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-07-confirm-image.png"><img class="size-full wp-image-411 " title="gravatar-add-email-07-confirm-image" src="http://digitivity.org/blog/wp-content/uploads/2009/12/gravatar-add-email-07-confirm-image.png" alt="Gravatar Add Email: Confirm Image" width="453" height="293" /></a><p class="wp-caption-text">Gravatar Add Email: Confirm Image</p></div>
<p>OK, now you&#8217;ve added another e-mail to use with your Gravatar account. And you can keep your main e-mail (that you used to sign up with Gravatar) private.</p>
<h2>Resources</h2>
<p>Blogs covering adding multiple e-mail addresses to a Gravatar account include the <a href="http://en.blog.wordpress.com/2009/07/23/gravatar-widget/">WordPress blog</a> and <a href="http://mamchenkov.net/wordpress/2009/06/22/gravatar-your-face-on-the-web/">Leonid Mamchenkov</a>.</p>
<h2>Top Incoming Search Terms</h2><span class="search-terms-term">appearance of wordpress posts show only excerpts on home page</span> <span class="search-terms-term">blog home page is showing whole page not excerpt</span> <span class="search-terms-term">can i have full content on page and not excerpt wordpress</span> <span class="search-terms-term">change full content to excerpt</span> <span class="search-terms-term">displaying full post in tag page wordpress</span> <span class="search-terms-term">dont show excerpt in full post</span> <span class="search-terms-term">duplicate content on archive pages show excerpt</span> <span class="search-terms-term">enter large text in the post not showing at front wordpress</span> <span class="search-terms-term">excerpt get_recent_posts title</span> <span class="search-terms-term">excerpt instead of post-title</span> <span class="search-terms-term">excerpt instead of the full content on my front page word press</span> <span class="search-terms-term">excerpt page break post php</span> <span class="search-terms-term">excerpts or full post wordpress</span> <span class="search-terms-term">full posts vs. excerpt +blogs</span> <span class="search-terms-term">have excerpts on homepage and a full posts on another page</span> <span class="search-terms-term">homepage full posts excerpt wordpress</span> <span class="search-terms-term">how do i display excerpts instead of full posts on the home page</span> <span class="search-terms-term">how to show entire post on wordpress page</span> <span class="search-terms-term">how to show full content instead of excerpt in wordpress</span> <span class="search-terms-term">how to show post excerpt only instead of whole article</span> <span class="search-terms-term">how to show the entire post text instead of excerpt</span> <span class="search-terms-term">increasing the excerpt word count</span> <span class="search-terms-term">listing pages excerpts  wordpress</span> <span class="search-terms-term">make older posts display as excerpt wordpress</span> <span class="search-terms-term">making excerpts of blog posts</span> <span class="search-terms-term">php excerpt most search word</span> <span class="search-terms-term">php how to get single page excerpts</span> <span class="search-terms-term">problog design excerpt</span> <span class="search-terms-term">show complete post title wordpress</span> <span class="search-terms-term">show excerpt from page on wordpress</span> <span class="search-terms-term">show excerpt on single.php</span> <span class="search-terms-term">show excerpts of posts on homepage</span> <span class="search-terms-term">show wordpress excerpts on front page</span> <span class="search-terms-term">showing excerpt on blog posts</span> <span class="search-terms-term">use excerpt instead of content</span> <span class="search-terms-term">word count on wordpress homepage</span> <span class="search-terms-term">wordpress adding post make excerpt window bigger</span> <span class="search-terms-term">wordpress blogs</span> <span class="search-terms-term">wordpress default search showing old excerpts</span> <span class="search-terms-term">wordpress display entire post first page</span> <span class="search-terms-term">wordpress display excerpt on home page and full content on other pages</span> <span class="search-terms-term">wordpress displaying full content in home page</span> <span class="search-terms-term">wordpress displays full article on home</span> <span class="search-terms-term">wordpress don&#039;t show the whole post on the home page</span> <span class="search-terms-term">wordpress excerpt full content</span> <span class="search-terms-term">wordpress excerpt whole sentence</span> <span class="search-terms-term">wordpress excerpts only homepage</span> <span class="search-terms-term">wordpress get recent posts with excerpt for page</span> <span class="search-terms-term">wordpress if a post dont have excerpt not displayed</span> <span class="search-terms-term">wordpress if front page excerpt</span> <span class="search-terms-term">wordpress list posts excerpts on page</span> <span class="search-terms-term">wordpress posts some full some excerpt</span> <span class="search-terms-term">wordpress rss display full articles</span> <span class="search-terms-term">wordpress rss feed only shows title and excerpt</span> <span class="search-terms-term">wordpress rss only shows excerpts</span> <span class="search-terms-term">wordpress see complete post and not just a excerpt</span> <span class="search-terms-term">wordpress show  latest article in full</span> <span class="search-terms-term">wordpress show excerpt of post with break</span> <span class="search-terms-term">wordpress show excerpt on default page</span> <span class="search-terms-term">wordpress show full article instead of excerpt</span> <span class="search-terms-term">wordpress show full post instead of excerpt</span> <span class="search-terms-term">wordpress show full post on home page, the rest as excerpts</span> <span class="search-terms-term">wordpress show full post on homepage</span> <span class="search-terms-term">wordpress show newest post in full, later posts excerpt only</span> <span class="search-terms-term">wordpress shows full entry vs excerpt</span> <span class="search-terms-term">wordpress site to display post excerpts on the front or home page</span> <span class="search-terms-term">wordpress, get full content, not excerpt</span> 

<p>Related posts:<ol><li><a href='http://digitivity.org/422/showing-excerpts-instead-of-full-posts-on-the-home-page-in-wordpress-vs-single-page' rel='bookmark' title='Permanent Link: Showing Excerpts Instead of Full Posts on the Home Page in WordPress'>Showing Excerpts Instead of Full Posts on the Home Page in WordPress</a></li>
<li><a href='http://digitivity.org/425/showing-related-posts-in-wordpress-with-the-yarpp-plugin-to-increase-pageviews' rel='bookmark' title='Permanent Link: Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews'>Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews</a></li>
<li><a href='http://digitivity.org/236/making-minor-changes-in-wordpress-without-updating-the-last-updated-date-with-the-minor-edit-plugin' rel='bookmark' title='Permanent Link: Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin'>Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/405/how-to-add-multiple-email-to-a-gravatar-account-use-more-than-one/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How to Show a MessageBox in Java Swing</title>
		<link>http://digitivity.org/235/how-to-show-a-messagebox-in-java-swing</link>
		<comments>http://digitivity.org/235/how-to-show-a-messagebox-in-java-swing#comments</comments>
		<pubDate>Sat, 23 May 2009 13:11:23 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[message box]]></category>
		<category><![CDATA[Swing]]></category>

		<guid isPermaLink="false">http://www.digitivity.org/?p=235</guid>
		<description><![CDATA[VisualBasic and a lot of other languages have a handy function to show a message box to the user. In typical Java fashion, Java&#8217;s equivalent has a lot more power, but also complex.
To get simple message box functionality, you have to specify a number of options:

JOptionPane.showMessageDialog&#40;parent,
    &#34;Message&#34;,
    &#34;Title&#34;,
  [...]


Related posts:<ol><li><a href='http://digitivity.org/422/showing-excerpts-instead-of-full-posts-on-the-home-page-in-wordpress-vs-single-page' rel='bookmark' title='Permanent Link: Showing Excerpts Instead of Full Posts on the Home Page in WordPress'>Showing Excerpts Instead of Full Posts on the Home Page in WordPress</a></li>
<li><a href='http://digitivity.org/425/showing-related-posts-in-wordpress-with-the-yarpp-plugin-to-increase-pageviews' rel='bookmark' title='Permanent Link: Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews'>Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews</a></li>
<li><a href='http://digitivity.org/236/making-minor-changes-in-wordpress-without-updating-the-last-updated-date-with-the-minor-edit-plugin' rel='bookmark' title='Permanent Link: Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin'>Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>VisualBasic and a lot of other languages have a handy function to show a message box to the user. In typical Java fashion, Java&#8217;s equivalent has a lot more power, but also complex.</p>
<p>To get simple message box functionality, you have to specify a number of options:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">JOptionPane</span>.<span style="color: #006633;">showMessageDialog</span><span style="color: #009900;">&#40;</span>parent,
    <span style="color: #0000ff;">&quot;Message&quot;</span>,
    <span style="color: #0000ff;">&quot;Title&quot;</span>,
    <span style="color: #003399;">JOptionPane</span>.<span style="color: #006633;">INFORMATION_MESSAGE</span>,
    icon<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This shows a dialog with your message plus a look-and-feel defined icon which varies depending on the option selected. For example, a question mark icon is shown for <span style="font-family: monospace;">JOptionPane.QUESTION_MESSAGE</span>. The various message types are shown below for the default Swing Metal look-and-feel:</p>
<div id="attachment_289" class="wp-caption alignnone" style="width: 278px"><a href="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-09-plain-message.png"><img class="size-full wp-image-289" title="Java Swing MessageBox: PLAIN_MESSAGE" src="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-09-plain-message.png" alt="Java Swing MessageBox: PLAIN_MESSAGE" width="268" height="130" /></a><p class="wp-caption-text">Java Swing MessageBox: PLAIN_MESSAGE</p></div>
<div id="attachment_293" class="wp-caption alignnone" style="width: 278px"><a href="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-08-information-message.png"><img class="size-full wp-image-293" title="Java Swing MessageBox: INFORMATION_MESSAGE" src="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-08-information-message.png" alt="Java Swing MessageBox: INFORMATION_MESSAGE" width="268" height="130" /></a><p class="wp-caption-text">Java Swing MessageBox: INFORMATION_MESSAGE</p></div>
<div id="attachment_290" class="wp-caption alignnone" style="width: 278px"><a href="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-01-question-message.png"><img class="size-full wp-image-290" title="Java Swing MessageBox: QUESTION_MESSAGE" src="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-01-question-message.png" alt="Java Swing MessageBox: QUESTION_MESSAGE" width="268" height="130" /></a><p class="wp-caption-text">Java Swing MessageBox: QUESTION_MESSAGE</p></div>
<div id="attachment_291" class="wp-caption alignnone" style="width: 278px"><a href="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-03-warning-message.png"><img class="size-full wp-image-291" title="Java Swing MessageBox: WARNING_MESSAGE" src="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-03-warning-message.png" alt="Java Swing MessageBox: WARNING_MESSAGE" width="268" height="130" /></a><p class="wp-caption-text">Java Swing MessageBox: WARNING_MESSAGE</p></div>
<div id="attachment_292" class="wp-caption alignnone" style="width: 278px"><a href="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-04-error-message.png"><img class="size-full wp-image-292" title="Java Swing MessageBox: ERROR_MESSAGE" src="http://www.digitivity.org/blog/wp-content/uploads/2009/05/java-swing-message-box-04-error-message.png" alt="Java Swing MessageBox: ERROR_MESSAGE" width="268" height="130" /></a><p class="wp-caption-text">Java Swing MessageBox: ERROR_MESSAGE</p></div>
<p>Note: the icon can be null if you don&#8217;t want or need an icon. You should specify a parent component (such as a JFrame) if you want the dialog to be modal with respect to that component. If you don&#8217;t mind that the user can click on something else and ignore your dialog message, leave it null.</p>
<p>If you want to get a response from the user as opposed to simply having him click OK, use the JOptionPane.showConfirmDialog() series of methods.</p>
<p><a class="performancingtags" rel="tag" href="http://technorati.com/tag/how%20to"><br />
</a></p>
<h2>Top Incoming Search Terms</h2><span class="search-terms-term">appearance of wordpress posts show only excerpts on home page</span> <span class="search-terms-term">blog home page is showing whole page not excerpt</span> <span class="search-terms-term">can i have full content on page and not excerpt wordpress</span> <span class="search-terms-term">change full content to excerpt</span> <span class="search-terms-term">displaying full post in tag page wordpress</span> <span class="search-terms-term">dont show excerpt in full post</span> <span class="search-terms-term">duplicate content on archive pages show excerpt</span> <span class="search-terms-term">enter large text in the post not showing at front wordpress</span> <span class="search-terms-term">excerpt get_recent_posts title</span> <span class="search-terms-term">excerpt instead of post-title</span> <span class="search-terms-term">excerpt instead of the full content on my front page word press</span> <span class="search-terms-term">excerpt page break post php</span> <span class="search-terms-term">excerpts or full post wordpress</span> <span class="search-terms-term">full posts vs. excerpt +blogs</span> <span class="search-terms-term">have excerpts on homepage and a full posts on another page</span> <span class="search-terms-term">homepage full posts excerpt wordpress</span> <span class="search-terms-term">how do i display excerpts instead of full posts on the home page</span> <span class="search-terms-term">how to show entire post on wordpress page</span> <span class="search-terms-term">how to show full content instead of excerpt in wordpress</span> <span class="search-terms-term">how to show post excerpt only instead of whole article</span> <span class="search-terms-term">how to show the entire post text instead of excerpt</span> <span class="search-terms-term">increasing the excerpt word count</span> <span class="search-terms-term">listing pages excerpts  wordpress</span> <span class="search-terms-term">make older posts display as excerpt wordpress</span> <span class="search-terms-term">making excerpts of blog posts</span> <span class="search-terms-term">php excerpt most search word</span> <span class="search-terms-term">php how to get single page excerpts</span> <span class="search-terms-term">problog design excerpt</span> <span class="search-terms-term">show complete post title wordpress</span> <span class="search-terms-term">show excerpt from page on wordpress</span> <span class="search-terms-term">show excerpt on single.php</span> <span class="search-terms-term">show excerpts of posts on homepage</span> <span class="search-terms-term">show wordpress excerpts on front page</span> <span class="search-terms-term">showing excerpt on blog posts</span> <span class="search-terms-term">use excerpt instead of content</span> <span class="search-terms-term">word count on wordpress homepage</span> <span class="search-terms-term">wordpress adding post make excerpt window bigger</span> <span class="search-terms-term">wordpress blogs</span> <span class="search-terms-term">wordpress default search showing old excerpts</span> <span class="search-terms-term">wordpress display entire post first page</span> <span class="search-terms-term">wordpress display excerpt on home page and full content on other pages</span> <span class="search-terms-term">wordpress displaying full content in home page</span> <span class="search-terms-term">wordpress displays full article on home</span> <span class="search-terms-term">wordpress don&#039;t show the whole post on the home page</span> <span class="search-terms-term">wordpress excerpt full content</span> <span class="search-terms-term">wordpress excerpt whole sentence</span> <span class="search-terms-term">wordpress excerpts only homepage</span> <span class="search-terms-term">wordpress get recent posts with excerpt for page</span> <span class="search-terms-term">wordpress if a post dont have excerpt not displayed</span> <span class="search-terms-term">wordpress if front page excerpt</span> <span class="search-terms-term">wordpress list posts excerpts on page</span> <span class="search-terms-term">wordpress posts some full some excerpt</span> <span class="search-terms-term">wordpress rss display full articles</span> <span class="search-terms-term">wordpress rss feed only shows title and excerpt</span> <span class="search-terms-term">wordpress rss only shows excerpts</span> <span class="search-terms-term">wordpress see complete post and not just a excerpt</span> <span class="search-terms-term">wordpress show  latest article in full</span> <span class="search-terms-term">wordpress show excerpt of post with break</span> <span class="search-terms-term">wordpress show excerpt on default page</span> <span class="search-terms-term">wordpress show full article instead of excerpt</span> <span class="search-terms-term">wordpress show full post instead of excerpt</span> <span class="search-terms-term">wordpress show full post on home page, the rest as excerpts</span> <span class="search-terms-term">wordpress show full post on homepage</span> <span class="search-terms-term">wordpress show newest post in full, later posts excerpt only</span> <span class="search-terms-term">wordpress shows full entry vs excerpt</span> <span class="search-terms-term">wordpress site to display post excerpts on the front or home page</span> <span class="search-terms-term">wordpress, get full content, not excerpt</span> 

<p>Related posts:<ol><li><a href='http://digitivity.org/422/showing-excerpts-instead-of-full-posts-on-the-home-page-in-wordpress-vs-single-page' rel='bookmark' title='Permanent Link: Showing Excerpts Instead of Full Posts on the Home Page in WordPress'>Showing Excerpts Instead of Full Posts on the Home Page in WordPress</a></li>
<li><a href='http://digitivity.org/425/showing-related-posts-in-wordpress-with-the-yarpp-plugin-to-increase-pageviews' rel='bookmark' title='Permanent Link: Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews'>Showing Related Posts in WordPress with the YARPP Plugin to Increase Pageviews</a></li>
<li><a href='http://digitivity.org/236/making-minor-changes-in-wordpress-without-updating-the-last-updated-date-with-the-minor-edit-plugin' rel='bookmark' title='Permanent Link: Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin'>Making Minor Changes in WordPress Without Updating the Last-Updated Date with the Minor Edit Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/235/how-to-show-a-messagebox-in-java-swing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
