<?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>Blog.ubrious &#187; Gnome</title>
	<atom:link href="http://blog.ubrio.us/category/gnome/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ubrio.us</link>
	<description>An Ordinary Web Developer's Blog</description>
	<lastBuildDate>Thu, 19 Jan 2012 00:44:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Custom Global Keybindings in Gnome / Ubuntu</title>
		<link>http://blog.ubrio.us/nix/custom-global-keybindings-in-gnome-ubuntu/</link>
		<comments>http://blog.ubrio.us/nix/custom-global-keybindings-in-gnome-ubuntu/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 00:22:09 +0000</pubDate>
		<dc:creator>Rob Hurring</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Nix]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ubrio.us/gnome/custom-global-keybindings-in-gnome-ubuntu/</guid>
		<description><![CDATA[Simple custom keybindings in Gnome/Ubuntu
Gnome&#8217;s default keybinding app sucks (maybe Linus was right and Gnome treats its users like idiots? sucks for me I guess). Here is a way to bind anything you&#8217;d like to any key you&#8217;d like, globally. I found this useful because I naturally use WIN-E for an explorer or WIN-R for [...]]]></description>
			<content:encoded><![CDATA[<h3>Simple custom keybindings in Gnome/Ubuntu</h3>
<p>Gnome&#8217;s default keybinding app sucks (maybe Linus was right and Gnome treats its users like idiots? sucks for me I guess). Here is a way to bind anything you&#8217;d like to any key you&#8217;d like, globally. I found this useful because I naturally use WIN-E for an explorer or WIN-R for a run dialog and I couldn&#8217;t get that working the right way through Gnome&#8217;s default shortcut app (/System/Preferences/Keyboard Shortcuts).</p>
<p>Anyway, doing this is really simple. Open up a terminal and type <code>gconf-editor</code>. Browse the /app/Metacity/global_keybindings and keybinding_commands. Edit the corresponding global_keybinding command_# to the keybinding_command command_# and you&#8217;re golden.</p>
<p><em>Click for larger view</em><br />
<a href="http://pic.ubrio.us/blog_images/gconf-editor-keybindings.png" rel="gallery[a]" title="Your keybindings 1-12. You can use the windows key, hooray! :)"  class='lightview' onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/gconf-editor-keybindings.png?referer=');"><img src="http://pic.ubrio.us/blog_images/gconf-editor-keybindings-sm.png" /></a></p>
<p><em>Click for larger view</em><br />
<a href="http://pic.ubrio.us/blog_images/gconf-editor-commands.png" rel="gallery[a]" title="Custom Commands 1-12 :: Corresponds to your keybindings 1-12"  class='lightview' onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/gconf-editor-commands.png?referer=');"><img src="http://pic.ubrio.us/blog_images/gconf-editor-commands-sm.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ubrio.us/nix/custom-global-keybindings-in-gnome-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Subdomain Localhost &#8212; Ubuntu / OSX</title>
		<link>http://blog.ubrio.us/web/how-to-subdomain-localhost-ubuntu-osx/</link>
		<comments>http://blog.ubrio.us/web/how-to-subdomain-localhost-ubuntu-osx/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 23:48:48 +0000</pubDate>
		<dc:creator>Rob Hurring</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Nix]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.ubrio.us/gnome/how-to-subdomain-localhost-ubuntu-osx/</guid>
		<description><![CDATA[Using Gnome + Ubuntu (7.04 Feisty Fawn) + Apache 2
Step 1:
In gnome goto System -> Administration -> Network and click on the &#8216;Hosts&#8217; tab
Step 2:
For your normal localhost (127.0.0.1) double-click or hit &#8216;properties&#8217; to edit it. Add your list of subdomains under localhost.
*Ignore the text in this pic, I overlooked that you had to include [...]]]></description>
			<content:encoded><![CDATA[<h3>Using <a href="http://www.gnome.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.gnome.org/?referer=');">Gnome</a> + <a href="http://www.ubuntu.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.ubuntu.com/?referer=');">Ubuntu (7.04 Feisty Fawn)</a> + Apache 2</h3>
<p><strong>Step 1:</strong><br />
In gnome goto System -> Administration -> Network and click on the &#8216;Hosts&#8217; tab</p>
<p><strong>Step 2:</strong><br />
For your normal localhost (127.0.0.1) double-click or hit &#8216;properties&#8217; to edit it. Add your list of subdomains under localhost.</p>
<p><em>*<strong>Ignore the text in this pic, I overlooked that you had to include _all_ aliases in the same box. Whoops</strong></em><br />
<img src="http://pic.ubrio.us/blog_images/subdomain/host-alias-settings.png" /></p>
<p><strong>Step 3:</strong><br />
<small>The fun step</small><br />
Open a terminal and type <code>sudo gedit /etc/apache2/sites-available/default</code> &#8212; assuming you&#8217;re using the &#8220;default&#8221; httpd.conf. Chances are that you will be, and if you aren&#8217;t you should know what file I&#8217;m talking about anyway. (If you don&#8217;t, just load one of the enabled apache configuration files)</p>
<p>Change these lines:</p>
<pre>
NameVirtualHost *
&lt;VirtualHost *>
</pre>
<p><em>to</em></p>
<pre>
NameVirtualHost 127.0.0.1
&lt;VirtualHost 127.0.0.1>
</pre>
<p><strong>Step 4:</strong><br />
Add the following (for each subdomain you made) &#8212; changing the ServerName to whatever you aliased in the network host dialogue and DocumentRoot to wherever you want the subdomain to point.</p>
<pre>
&lt;VirtualHost 127.0.0.1>
	ServerName mysql.localhost
	DocumentRoot /var/www/phpmyadmin
&lt;/VirtualHost>
</pre>
<p><strong>Step 5:</strong><br />
In a terminal type: <code>sudo apache2ctl restart</code><br />
When that finishes, browse to http://mysql.localhost and you should see phpMyAdmin (going by my example)</p>
<h3>On OSX + Apache 1.33</h3>
<p><strong>Step 1:</strong><br />
Open /Applications/Utilities/NetInfo Manager and click on &#8220;machines&#8221;<br />
I usually just duplicate the localhost settings, or just create a new record below localhost that is something like:</p>
<p>ip_address: 127.0.0.1<br />
name: mysql.localhost<br />
serves: ./local</p>
<p><em>Click for bigger version</em><br />
<a href="http://pic.ubrio.us/blog_images/subdomain/osx-host-dialog.png" rel="gallery[a]" title="This is how my hosts dialog looks on OSX"  class='lightview' onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/subdomain/osx-host-dialog.png?referer=');"><img src="http://pic.ubrio.us/blog_images/subdomain/osx-host-dialog-sm.png" /></a></p>
<p><strong>Step 2:</strong><br />
Repeat Steps 3-5 above only editing &#8220;/etc/httpd/users/{yourname}.conf&#8221; instead.</p>
<p><em>Click for bigger version</em><br />
<a href="http://pic.ubrio.us/blog_images/subdomain/config-changes.png" rel="gallery[a]" class='lightview' title="This is how my httpd.conf file looks on OSX" onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/subdomain/config-changes.png?referer=');"><img src="http://pic.ubrio.us/blog_images/subdomain/config-changes-sm.png" /></a></p>
<p>Restart Apache and hopefully all went well. I found this useful because I hate typing unnecessary paths <img src='http://blog.ubrio.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ubrio.us/web/how-to-subdomain-localhost-ubuntu-osx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ubuntu Error: Hal failed to initialize &amp; udev address already in use &#8211; Solution</title>
		<link>http://blog.ubrio.us/nix/ubuntu-error-hal-failed-to-initialize-udev-address-already-in-use-solution/</link>
		<comments>http://blog.ubrio.us/nix/ubuntu-error-hal-failed-to-initialize-udev-address-already-in-use-solution/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 04:06:51 +0000</pubDate>
		<dc:creator>Rob Hurring</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Nix]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ubrio.us/gnome/ubuntu-error-hal-failed-to-initialize-udev-address-already-in-use-solution/</guid>
		<description><![CDATA[This is more for me in case it ever happens again. My system froze up while doing some stupid stuff (namely pressing keys I shouldn&#8217;t be pressing) so i force-rebooted it (aka: kicked the surge protector). When I re-booted I got the &#8220;Hal failed to initialize&#8221; message which is apparently pretty common and was supposed [...]]]></description>
			<content:encoded><![CDATA[<p>This is more for me in case it ever happens again. My system froze up while doing some stupid stuff (namely pressing keys I shouldn&#8217;t be pressing) so i force-rebooted it (aka: kicked the surge protector). When I re-booted I got the &#8220;Hal failed to initialize&#8221; message which is apparently pretty common and was supposed to be a pain in the ass to fix.</p>
<p>Theres a few common solutions:</p>
<p><strong><a href="http://beans.seartipy.com/2006/11/25/ubuntu-610-annoyance-failed-to-initialize-hal-error" target="_blank" onclick="pageTracker._trackPageview('/outgoing/beans.seartipy.com/2006/11/25/ubuntu-610-annoyance-failed-to-initialize-hal-error?referer=');">Every Flavour Beans</a></strong> mentions its either a login timing (GDM) issue, or a samba auto-mount issue. The solution there was to either: a) disable all samba shares (I&#8217;m not 100% if they meant temporarily or forever &#8212; either way, this was a last resort since I hate this kind of stuff) and b) disabling automatic logins through gnome&#8217;s GDM.</p>
<p>I didn&#8217;t have auto-login enabled, so I figured &#8220;what the hell&#8221; and set it to auto-login with a 10 second timer. When I re-logged I didn&#8217;t get the HAL error, but I also didn&#8217;t get my auto mounted drives back. Shit. Next.</p>
<p>I decided to poke around a bit more to see what the bigger picture is. I knew it couldn&#8217;t be a big issue since I wasn&#8217;t installing/configuring/etc. at the time of the crash &#8212; something just got &#8220;stuck.&#8221; I stumbled upon another site which mentioned running <code>sudo /usr/sbin/hald --daemon=no --verbose=yes</code> to view the output.</p>
<p>After running that I got a suspicious message pointing to the real issue: <code>Error binding udev_event socket: Address already in use</code>. Damn udev. Anyways, I tossed up a <code>sudo /etc/init.d/udev restart</code> and re-booted. Lo and behold &#8211; all is well.</p>
<p>(Again, this post is more for my future reference in case I get this error again)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ubrio.us/nix/ubuntu-error-hal-failed-to-initialize-udev-address-already-in-use-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Making Gedit Behave Like TextMate for Linux</title>
		<link>http://blog.ubrio.us/nix/making-gedit-behave-like-textmate-for-linux/</link>
		<comments>http://blog.ubrio.us/nix/making-gedit-behave-like-textmate-for-linux/#comments</comments>
		<pubDate>Fri, 25 May 2007 14:22:19 +0000</pubDate>
		<dc:creator>Rob Hurring</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Nix]]></category>

		<guid isPermaLink="false">http://blog.ubrio.us/nix/making-gedit-behave-like-textmate-for-linux/</guid>
		<description><![CDATA[Before Reading&#8230;
Google has betrayed you! This post is _very_ old (2007) and I&#8217;ve lost the images somewhere along the way (as well as depreciated this blog). If you haven&#8217;t checked this already, I&#8217;d recommend using StackOverflow&#8217;s version, which is much more up-to-date (Or gedit-mate which looks actively maintained. Sorry for the trouble.
And if you have [...]]]></description>
			<content:encoded><![CDATA[<h2>Before Reading&#8230;</h2>
<p>Google has betrayed you! This post is _very_ old (2007) and I&#8217;ve lost the images somewhere along the way (as well as depreciated this blog). If you haven&#8217;t checked this already, I&#8217;d recommend using <a href='http://stackoverflow.com/questions/6387432/how-to-make-gedit-look-like-textmate' onclick="pageTracker._trackPageview('/outgoing/stackoverflow.com/questions/6387432/how-to-make-gedit-look-like-textmate?referer=');">StackOverflow&#8217;s</a> version, which is much more up-to-date (Or <a href='https://github.com/ivyl/gedit-mate' onclick="pageTracker._trackPageview('/outgoing/github.com/ivyl/gedit-mate?referer=');">gedit-mate</a> which looks actively maintained. Sorry for the trouble.</p>
<p>And if you have a minute, check out my new blog, which is more focused on Ruby/Rails over at <a href='http://proccli.com' onclick="pageTracker._trackPageview('/outgoing/proccli.com?referer=');">Proccli.com</a></p>
<h1></h1>
<p>Heres a quick tip on how you can make Gnomes gedit behave like <a href="http://macromates.com" target="_blank" onclick="pageTracker._trackPageview('/outgoing/macromates.com?referer=');">TextMate</a>. If you&#8217;ve read any of my other posts you would know that I&#8217;m hopelessly hooked on TextMate &#8212; to the point where I can&#8217;t develop in any other editor. Sad, I know. This is probably the first application I&#8217;ve bought in years. After much bitching and moaning and searching for a clone on either PC or Linux, I realized that gedit has most of the functionality. The plug-ins required are disabled by default, but <em>should</em> come stock with it. For the sake of saying, these instructions are for Ubuntu Feisty &#8212; but shouldn&#8217;t be different on any other distro. These are my preferences, tweak them according to your taste of course.</p>
<p><strong>Step 1</strong><br />
Under Edit->Preferences, on the View tab make your settings match these.</p>
<p><small>(Click for bigger view)</small><br />
<a href="http://pic.ubrio.us/blog_images/gedit_preferences01.png" rel="lightbox[gedit]" title="" onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/gedit_preferences01.png?referer=');"><img src="http://pic.ubrio.us/blog_images/thumb_gedit_preferences01.png" /></a></p>
<p><strong>Step 2</strong><br />
Drop the tab size from 8 -> 4 and enable automatic indentation.</p>
<p><small>(Click for bigger view)</small><br />
<a href="http://pic.ubrio.us/blog_images/gedit_preferences02.png" rel="lightbox[gedit]" title="" onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/gedit_preferences02.png?referer=');"><img src="http://pic.ubrio.us/blog_images/thumb_gedit_preferences02.png" /></a></p>
<p><strong>Step 3</strong><br />
The real meat and cheese. Enable the <em>file browser pane</em> and the <em>snippets</em> plug-ins. (and whatever else you may want..)</p>
<p><small>(Click for bigger view)</small><br />
<a href="http://pic.ubrio.us/blog_images/gedit_preferences03.png" rel="lightbox[gedit]" title="" onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/gedit_preferences03.png?referer=');"><img src="http://pic.ubrio.us/blog_images/thumb_gedit_preferences03.png" /></a></p>
<p><strong>* Step 4 (Optional &#8211; but recommended)</strong><br />
This plug-in will do the automatic closing for things like &#8220;{&#8221; and quotes. Its under development, but is open source, so if you&#8217;re a python person you can hack this up for your needs.</p>
<ul>
<li>Visit <a href="http://www.garyharan.com/index.php/2006/11/16/gemini-gedit-plugin-for-all-those-textmate-fans/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.garyharan.com/index.php/2006/11/16/gemini-gedit-plugin-for-all-those-textmate-fans/?referer=');">Gary Haran&#8217;s Gemini Plug-In Page</a> and pickup the plugin tar.</li>
<li>Un-tar this into ~/.gnome2/gedit/plugins <small>(you might have to create the folder)</small></li>
<li>Re-start gedit &#038; enable the Gemini Plugin</li>
</ul>
<p><small>(Click for bigger view)</small><br />
<a href="http://pic.ubrio.us/blog_images/gedit_preferences04.png" rel="lightbox[gedit]" title="" onclick="pageTracker._trackPageview('/outgoing/pic.ubrio.us/blog_images/gedit_preferences04.png?referer=');"><img src="http://pic.ubrio.us/blog_images/thumb_gedit_preferences04.png" /></a></p>
<p><strong>**Note:</strong> This plug-in will output keycodes to the shell. If you run gedit a lot from the command line you may want to follow the next few steps &#8211; not that they aren&#8217;t obvious, but it&#8217;s worth it to point out.</p>
<ul>
<li>Goto ~/.gnome2/gedit/plugins</li>
<li>edit gemini.py</li>
<li>on line 60 you will see something like
<pre>print event.keyval</pre>
<p> &#8211; toss a &#8220;#&#8221; before that line to comment it out</li>
<li>save &#038; close &#038; you&#8217;re done</li>
</ul>
<p><strong>Other Helpful Hint(s)</strong></p>
<ul>
<li>In your ~/.bashrc setup a new alias, add:
<pre>alias e="gedit "</pre>
<p> &#8212; its easier in the command line to just type &#8220;e *&#8221; than &#8220;gedit *&#8221;, but I&#8217;m really lazy.</li>
</ul>
<p><strong>More Resources</strong><br />
I didn&#8217;t really get <em>too</em> in depth with this yet &#8212; but people out there have made other plug-ins to nudge gedit on par with TextMate. Here are a few. I will add more if I get around to it &#8211; or if there are any comments with suggestions.</p>
<ul>
<li><a href="http://bitsbam.com/?p=3" target="_blank" onclick="pageTracker._trackPageview('/outgoing/bitsbam.com/?p=3&amp;referer=');">rhtml support for gedit and scribes</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ubrio.us/nix/making-gedit-behave-like-textmate-for-linux/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

