<?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>SHOCM &#187; QuickTip</title>
	<atom:link href="http://www.shocm.com/tag/quicktip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shocm.com</link>
	<description>Open Source, Cloud, Scotch, Baseball, Family, and Programming since the 1900&#039;s</description>
	<lastBuildDate>Wed, 19 Oct 2011 18:06:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Getting some functionality back in the system tray on Ubuntu 11.04</title>
		<link>http://www.shocm.com/2011/06/getting-some-functionality-back-in-the-system-tray-on-ubuntu-11-04/</link>
		<comments>http://www.shocm.com/2011/06/getting-some-functionality-back-in-the-system-tray-on-ubuntu-11-04/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 19:55:07 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[QuickTip]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://www.shocm.com/2011/06/getting-some-functionality-back-in-the-system-tray-on-ubuntu-11-04/</guid>
		<description><![CDATA[Ubuntu 11.04 introduced a new, cleaner user interface called Unity. I&#8217;m not a huge desktop GUI guy, doing a large majority of my work in the command line, but I do like to try and stay current on the latest greatest interfaces. I&#8217;m not overwhelmed with Unity. It&#8217;s OK but not really earth shattering. You [...]]]></description>
			<content:encoded><![CDATA[<div class="posterous_autopost">
<p>Ubuntu 11.04 introduced a new, cleaner user interface called Unity. I&#8217;m not a huge desktop GUI guy, doing a large majority of my work in the command line, but I do like to try and stay current on the latest greatest interfaces.</p>
<p>I&#8217;m not overwhelmed with Unity. It&#8217;s OK but not really earth shattering. You have the option to switch back to the &#8220;classic&#8221; Gnome interface if you wanted to but I haven&#8217;t done that.</p>
<p>One huge annoyance I&#8217;ve noticed about the new Unity interface was a lack of a true &#8220;system tray&#8221;. Many application in Ubuntu (or Linux in general) leverage a similar approach Windows machine do and allow applications to run in a System Tray, cleaning up any task bars you might have. In Unity, there were a couple applications that were visible, like Dropbox, the clock and Volume but several others were not such as Skype and Truecrypt.</p>
<p>This became a big problem for Truecrypt because once I closed the Truecrypt interface I couldn&#8217;t figure out how to get back to it. If I tried to launch the application again the system would report that it the application was already running, which it was. In the past I would get back to the interface through the icon in the system tray but this icon would not display in Unity, at least not until I found a posting on Facebook <a href="http://www.facebook.com/topic.php?uid=6723083591&amp;topic=17003">http://www.facebook.com/topic.php?uid=6723083591&amp;topic=17003</a></p>
<p>This simple command in a terminal window corrected my problem and life is good again</p>
<pre class="brush: bash; title: ; notranslate">gsettings set com.canonical.Unity.Panel systray-whitelist &quot;['all']&quot;</pre>
<p>As you can see I got all my system tray icons back and I am now a little happier with Unity.</p>
<p>&nbsp;</p>
<div class="p_embed p_image_embed"><img src="http://posterous.com/getfile/files.posterous.com/temp-2011-06-22/hugoisrGwyAxDazcgCoEtDxCbmlsuirlFDEiIrpvndHouIyyjvwjfgEFcfaA/Screenshot-1.png.scaled500.png" alt="Screenshot-1" width="385" height="46" /></div>
<p>&nbsp;</p>
<p style="font-size: 10px;"><a href="http://posterous.com">Posted via email</a> from <a href="http://blog.shocm.me/getting-some-functionality-back-in-the-system">shocm</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2011/06/getting-some-functionality-back-in-the-system-tray-on-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Great Mac tar archive tip</title>
		<link>http://www.shocm.com/2008/03/great-mac-tar-archive-tip/</link>
		<comments>http://www.shocm.com/2008/03/great-mac-tar-archive-tip/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 16:49:28 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[NotMyPosting]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[QuickTip]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/2008/great-mac-tar-archive-tip-2/</guid>
		<description><![CDATA[Every now and then I just post things I don&#8217;t want to forget or worried that the original website might disappear. This is one of the cases. This is a blog posting I came across on a little problem that plaques those of us that enjoy using OS X but have a need to move [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then I just post things I don&#8217;t want to forget or worried that the original website might disappear. This is one of the cases. This is a blog posting I came across on a little problem that plaques those of us that enjoy using OS X but have a need to move files to other systems like Linux and Windows. </p>
<p>There is a dirty little secret the Mac hides from you when you are using it but becomes a glaring eyesore when you move to another OS. Some file clean up needs to happen because OSX creates these hidden files that start with a ._ which contains some extended information about the file that no other system reads so they aren&#8217;t terrible useful when moving files to these systems. This post from a person working for <a href="http://www.splunk.com">Splunk</a>, outlines how to tar up files on a OSX machine that is targeted for other systems and exclude the ._ files from the tarring process. Original article can be found <a href="http://blogs.splunk.com/deeann/?p=5">here</a> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212; POST &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
<p><i>When building Splunk applications, Im often working on a Mac. There<br />are files that begin with ._ that are resource files, which contain<br />extended attribute information about the files for the OS. This is<br />great and all but I dont want to include these files when I package up<br />an application and upload it to SplunkBase.</i></p>
<p>
<p><i>If you dont have deep OSX knowledge, then keeping these files out<br />of your tarball is harder than it looks. One of our OSX gurus pointed<br />me toward the answer, and I was so excited (yes, I am a geek) that I<br />just had to share.</i></p>
<p>
<p><i>To build a tarball in Leopard that doesnt contain the ._ files, use:</i></p>
<p>
<p><i>COPYFILE_DISABLE=true tar cvzf filename.tar.gz dirtotar</i></p>
<p>
<p><i>In Tiger, use:</i></p>
<p>
<p><i>COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar czvf filename.tar.gz dirtotar</i></p>
<p>
<p><i>This is definitely going in my .bashrc so I dont have to fuss with it again:</i></p>
<p>
<p><i>export COPYFILE_DISABLE=true</i></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212; PEND OF POST &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<blockquote></blockquote></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2008/03/great-mac-tar-archive-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QuickTip &#8211; Firefox</title>
		<link>http://www.shocm.com/2008/01/quicktip-firefox/</link>
		<comments>http://www.shocm.com/2008/01/quicktip-firefox/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 01:47:15 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[GTD]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[QuickTip]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/2008/quicktip-firefox/</guid>
		<description><![CDATA[If you spend any amount of time on the Internet and are anything like me, you usually have a set of sites you visit on a regular basis. Here is a quick time saving tip if you use Firefox. Organize all your commonly visited web sites into a single &#8220;Daily Setup&#8221; file. I actually have [...]]]></description>
			<content:encoded><![CDATA[<p>If you spend any amount of time on the Internet and are anything like me, you usually have a set of sites you visit on a regular basis. Here is a quick time saving tip if you use Firefox. Organize all your commonly visited web sites into a single &#8220;Daily Setup&#8221; file. I actually have two, one personal that opens all my favorite web sites that I usually read at least once a day and another for work which opens a bunch of work related sites. Then all you need to do is click on your Daily Setup bookmark, select the setup you want (personal or work), and click on &#8220;Open All in Tabs&#8221; and <strong>BAM</strong> you are off and running with your daily injection of Internet feed.</p>
<p><a href='http://www.vanjohnson.com/wp-content/uploads/2008/01/screen-capture-1.png' title='FirefoxQuickTip'><img src='http://www.vanjohnson.com/wp-content/uploads/2008/01/screen-capture-1.png' alt='FirefoxQuickTip' /></a></p>
<p>Hope you find this tip useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2008/01/quicktip-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing Up and Restoring Your MySQL Database</title>
		<link>http://www.shocm.com/2004/06/backing-up-and-restoring-your-mysql-database/</link>
		<comments>http://www.shocm.com/2004/06/backing-up-and-restoring-your-mysql-database/#comments</comments>
		<pubDate>Thu, 10 Jun 2004 21:25:53 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[Backups]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[QuickTip]]></category>
		<category><![CDATA[Restore]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/?p=11</guid>
		<description><![CDATA[Do you need to change your web host or switch your database server? This is probably the only time when you really think of backing up your MySQL data. If you&#8217;ve got a website with a database or your custom database running for your applications, it is imperative that you make regular backups of the [...]]]></description>
			<content:encoded><![CDATA[<p>Do you need to change your web host or switch your database server? This is probably the only time when you really think of backing up your MySQL data. If you&#8217;ve got a website with a database or your custom database running for your applications, it is imperative that you make regular backups of the database. In this article, I will outline two easy ways of backing up and restoring databases in MySQL.<br />
The easiest way to backup your database would be to telnet to the your database server machine and use the mysqldump command to dump your whole database to a backup file. If you do not have telnet or shell access to your server, don&#8217;t worry about it; I shall outline a method of doing so using the PHPMyAdmin web interface, which you can setup on any web server which executes PHP scripts.</p>
<p><strong><br />
Playing with mysqldump</strong></p>
<p>If you have either a shell or telnet access to your database server, you can backup the database using mysqldump. By default, the output of the command will dump the contents of the database in SQL statements to your console. This output can then be piped or redirected to any location you want. If you plan to backup your database, you can pipe the output to a sql file, which will contain the SQL statements to recreate and populate the database tables when you wish to restore your database. There are more adventurous ways to use the output of mysqldump.</p>
<p>A Simple Database Backup:</p>
<p>You can use mysqldump to create a simple backup of your database using the following syntax.</p>
<p>mysqldump -u [username] -p [password] [databasename]> [backupfile.sql]</p>
<p>[username] &#8211; this is your database username<br />
[password] &#8211; this is the password for your database<br />
[databasename] &#8211; the name of your database<br />
[backupfile.sql] &#8211; the file to which the backup should be written.</p>
<p>The resultant dump file will contain all the SQL statements needed to create the table and populate the table in a new database server. To backup your database &#8216;Customers&#8217; with the username &#8216;sadmin&#8217; and password &#8216;pass21&#8242; to a file custback.sql, you would issue the command:</p>
<p>mysqldump -u sadmin -p pass21 Customers> custback.sql</p>
<p><span id="more-11"></span><br />
You can also ask mysqldump to add a drop table command before every create command by using the option &#8211;add-drop-table. This option is useful if you would like to create a backup file which can rewrite an existing database without having to delete the older database manually first.</p>
<p>mysqldump &#8211;add-drop-table -u sadmin -p pass21 Customers> custback.sql</p>
<p>Backing up only specified tables</p>
<p>If you&#8217;d like restrict the backup to only certain tables of your database, you can also specify the tables you want to backup. Let&#8217;s say that you want to backup only customer_master &#038; customer_details from the Customers database, you do that by issuing</p>
<p>mysqldump &#8211;add-drop-table -u sadmin -p pass21 Customers customer_master customer_details> custback.sql</p>
<p>So the syntax for the command to issue is:</p>
<p>mysqldump -u [username] -p [password] [databasename] [table1 table2 ....]</p>
<p>[tables] &#8211; This is a list of tables to backup. Each table is separated by a space.</p>
<p>If you are a database administrator who has to look after multiple databases, you&#8217;ll need to back up more than one database at a time. Here&#8217;s how you can backup multiple databases in one shot.</p>
<p>If you want to specify the databases to backup, you can use the &#8211;databases parameter followed by the list of databases you would like to backup. Each database name has to be separated by at least one space when you type in the command. So if you have to backup 3 databases, let say Customers, Orders and Comments, you can issue the following command to back them up. Make sure the username you specify has permissions to access the databases you would like to backup.</p>
<p>mysqldump -u root -p pass21 &#8211;databases Customers Orders Comments> multibackup.sql</p>
<p>This is okay if you have a small set of databases you want to backup. Now how about backing up all the databases in the server? That&#8217;s an easy one, just use the &#8211;all-databases parameter to backup all the databases in the server in one step.</p>
<p>mysqldump &#8211;all-databases> alldatabases.sql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2004/06/backing-up-and-restoring-your-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Apache to use a .htaccess file</title>
		<link>http://www.shocm.com/2003/10/configuring-apache-to-use-a-htaccess-file/</link>
		<comments>http://www.shocm.com/2003/10/configuring-apache-to-use-a-htaccess-file/#comments</comments>
		<pubDate>Fri, 10 Oct 2003 21:33:01 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[QuickTip]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/?p=13</guid>
		<description><![CDATA[Just a good step by step on how to configure Apache to use a .htaccess file. I rarely ever use this method except in testing so I always forget. First, get your web administrator to enable your use of .htaccess files. This requires a stanza in ServerRoot/conf/access.conf like this: AllowOverride AuthConfig where /home/webber is replaced [...]]]></description>
			<content:encoded><![CDATA[<p>Just a good step by step on how to configure Apache to use a .htaccess file. I rarely ever use this method except in testing so I always forget.</p>
<p>First, get your web administrator to enable your use of .htaccess files. This requires a stanza in ServerRoot/conf/access.conf like this:</p>
<p>AllowOverride AuthConfig</p>
<p>where /home/webber is replaced by your home directory. Without this, the usual default is AllowOverride None, which means that .htaccess files are ignored. The above stanza allows .htaccess control in all subdirectories of the specified Directory.</p>
<p>Set up a reasonably secure directory for the password (and optionally the group) files. This directory should not be in the web document tree! If it is, someone who can learn or guess the URL of the password file can fetch it and try to crack the passwords. (This refers to visitors from elsewhere on the Internet. There is no simple way to prevent users with accounts on the web server host itself from snooping in the password file, so we will have to settle for security by obscurity and trust them not to try too hard.)<br />
Let us name this directory http-etc by analogy to the Unix /etc directory where the system passwd and group files reside. Place it in your home directory (not in public_html) so that it is outside URL space. Give it permission 701 = rwx&#8212;&#8211;x meaning you the owner can do anything, and the web server, running as the ordinary user apache, can access the directory but cannot list it (so it must know the file names in advance).1</p>
<p><span id="more-13"></span><br />
In the http-etc directory, create the password file. It can have any name. A usual choice is htpasswd. Give it permission 644 = rw-r&#8211;r&#8211;. This file can be created empty by the touch command, or created with one initial entry by using the -c option when you run the htpasswd command the first time.</p>
<p>Add users to the password file using the htpasswd command. From your home directory, the command would be something like:<br />
htpasswd http-etc/htpasswd guest</p>
<p>In this example, the htpasswd program will prompt you for the password for user guest. After you type the password, you will have to re-type it for verification. The format of the password file is like this:</p>
<p>guest:IA22a/FU48faw<br />
janeuser:kyxFwALyFbsPw<br />
joeuser:rjyJsqbtXCvXo</p>
<p>The gibberish after each user&#8217;s name is the encrypted password. The plaintext passwords are not stored, for obvious security reasons. You cannot edit this file to change the passwords, unless you are the kind of person the NSA is very interested in hiring. The only way to update it is with the htpasswd program.</p>
<p>If you want to organize your users into groups, create a groups file, in the same directory as the password file. Its usual name is htgroup. Give it the same permissions as the password file. It contains a list of group names, with each group name followed by the user names belonging to the group. Create it using any text editor. The format is like:<br />
guest: guest<br />
users: janeuser joeuser</p>
<p>In any directory in your web page area that is to be protected, create a file named .htaccess, with contents like this:<br />
AuthType Basic<br />
AuthName &#8220;Restricted Directory&#8221;<br />
AuthUserFile /home/webber/http-etc/htpasswd<br />
AuthGroupFile /home/webber/http-etc/htgroup<br />
Require group users guest</p>
<p>Alternatively the require directive can say:<br />
Require user guest joeuser</p>
<p>or<br />
Require valid-user</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2003/10/configuring-apache-to-use-a-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

