<?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>GMTAZ.com &#187; Ubiquity</title>
	<atom:link href="http://www.gmtaz.com/category/ubiquity/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gmtaz.com/blog</link>
	<description>Gustavo Tandeciarz&#039;s personal blog</description>
	<lastBuildDate>Thu, 27 Oct 2011 20:13:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to continue development from home, work and on the road using Dropbox, for FREE!</title>
		<link>http://www.gmtaz.com/blog/how-to-continue-development-from-home-work-and-on-the-road-using-dropbox-for-free/</link>
		<comments>http://www.gmtaz.com/blog/how-to-continue-development-from-home-work-and-on-the-road-using-dropbox-for-free/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 13:44:45 +0000</pubDate>
		<dc:creator>Gustavo</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubiquity]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.gmtaz.com/?p=127</guid>
		<description><![CDATA[An example of how this helps:  I was recently working on writing some Ubiquity commands so I set up a Ubiquity folder within Dropbox, subscribed to the [ubiquitycommand].js file in that folder on every computer I work on, and that was it!  Now, whenever I make a change to those commands, the changes get synched to each computer and because Ubiquity is subscribed to the command on localhost, that change affects all computers.]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have 3 different computers that you use (this is usually the case for people in IT or development).  I will use me as an example, mostly because I can&#8217;t speak for anyone else and because I know the subject REALLY well.  I have a work desktop (OS X Leopard), a personal laptop(OS X Leopard) and a home desktop(Windows Vista), not to mention, a couple virtual machines running windows on the 2 Macs.  I&#8217;m also starting to teach myself <a href="http://www.php.net" target="_blank">PHP</a> and continually developing my javascript and jQuery skills.  The reason I mention PHP is because there is no way to serve up ASP.net pages yet on the Mac (yes, I know about <a href="http://www.mono-project.com/Main_Page" target="_blank">mono</a>.  It isn&#8217;t quite there yet). Now, let&#8217;s say you want to seamlessly work on the same code on all 3 computers and virtual machines.  Enter <a href="http://www.getdropbox.com" target="_blank">Dropbox</a>.</p>
<blockquote><p>Brief: Dropbox is an application that runs in the background on your computer (mac, linux, windows) and automatically syncs files when connected to the internet.  If you&#8217;re doing web dev stuff, chances are you are connected online.  Dropbox also creates a local folder on each computer to store the files that you are working on, etc.</p></blockquote>
<p>Enter brain power:</p>
<ol>
<li> Set up <a href="http://apache.org/" target="_blank">Apache</a> on all computers since it&#8217;s a very powerful web server that runs on the previously mentioned operating systems. Here&#8217;s a <a href="http://httpd.apache.org/docs/2.0/platform/windows.html" target="_blank">guide on installing Apache on Windows</a>.</li>
<li>Set up the root directory in Apache to be the ~/user/Sites folder and <a href="http://www.macosxhints.com/article.php?story=2001110610290643" target="_blank">create a sym-link</a> (<a href="http://www.howtogeek.com/howto/windows-vista/using-symlinks-in-windows-vista/" target="_blank">Windows Vista</a>) to your dropbox directory. This way you can run multiple websites (some that sync and some that don&#8217;t).<br />
To take this a step further, you could put all of this config info in a separate .config file (I called mine, &#8220;dropbox.config&#8221;) and drop it in the Dropbox directory for automatic synchronization throughout your systems.  This works best if the operating systems are the same or the root structure is the same.</li>
<li>So now, when you browse <a href="http://localhost" target="_blank">http://localhost</a>, you should see this:<br />
<a rel="lightbox" href="http://www.gmtaz.com/wp-content/uploads/2009/02/picture-1.png"><img class="size-medium wp-image-129" title="Localhost" src="http://www.gmtaz.com/wp-content/uploads/2009/02/picture-1-300x206.png" alt="localhost image" width="300" height="206" /></a></li>
<li>Verify that you see the same directory structure on all computers.  If this is the case, then you&#8217;re done.  Just start by creating PHP site within the Dropbox folder (I created a subfolder called WWW and in Apache I create a call to the virtual directory /dropbox which takes me to the WWW folder) &lt;= This is important if you want to use Dropbox for other things!  This way, when you click on the Dropbox link listed under (~/Sites) it will redirect you to the dropbox/WWW folder.</li>
</ol>
<p>Now, when you are writing code, editing images, or anything else, the code will automatically synchronize to each workstastion, allowing you to continue right where you left off, anywhere.</p>
<p>An example of how this helps:  I was recently working on writing some <a href="http://labs.mozilla.com/2008/08/introducing-ubiquity/" target="_blank">Ubiquity</a> commands so I set up a Ubiquity folder within Dropbox, subscribed to the [ubiquitycommand].js file in that folder on every computer I work on, and that was it!  Now, whenever I make a change to those commands, the changes get synched to each computer and because Ubiquity is subscribed to the command on localhost, that change affects all computers.</p>
<p>This method also works extremely well when you have different operating system specific browsers that you would like to test with.  It may seem a little daunting at first, but let me tell you, once it is set up, you&#8217;re done.  No need to reconfigure anything.  Best of all, Dropbox is FREE!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmtaz.com/blog/how-to-continue-development-from-home-work-and-on-the-road-using-dropbox-for-free/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Launching MyNotes for Ubiquity</title>
		<link>http://www.gmtaz.com/blog/launching-mynotes-for-ubiquity/</link>
		<comments>http://www.gmtaz.com/blog/launching-mynotes-for-ubiquity/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 19:36:22 +0000</pubDate>
		<dc:creator>Gustavo</dc:creator>
				<category><![CDATA[Ubiquity]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.gmtaz.com/?p=97</guid>
		<description><![CDATA[Soooo, I&#8217;ve pretty much gotten MyNotes to a usable point in it&#8217;s development phase and am ready to start talking about it (and Ubiquity).  It&#8217;s pretty difficult to figure out where to start.  Well, let&#8217;s go with a brief description of ubiquity. The best way I can think of to describe Ubiquity is, for all [...]]]></description>
			<content:encoded><![CDATA[<p>Soooo, I&#8217;ve pretty much gotten MyNotes to a usable point in it&#8217;s development phase and am ready to start talking about it (and Ubiquity).  It&#8217;s pretty difficult to figure out where to start.  Well, let&#8217;s go with a brief description of ubiquity.</p>
<p>The best way I can think of to describe Ubiquity is, for all you Mac users, like Quicksilver for Firefox.  A command line interface to control several different aspects of the web.  A good video can be seen <a href="http://labs.mozilla.com/2008/08/introducing-ubiquity/" target="_blank">here</a>.</p>
<p>Now, on to MyNotes.</p>
<p>I started working on MyNotes because the core of the MyNotes application has the basics for Ubiquity command line programming.  My goals included:</p>
<ol>
<li>User account management</li>
<li>Ajax data requests</li>
<li>Data storage within Ubiquity</li>
<li>Command hinting</li>
<li>pseudo sub-cmmands</li>
</ol>
<p>I was able to use AJAX post-get methods in php to accomplish #&#8217;s 1 and 2.<br />
Code Snippet below:</p>
<pre>register: function(key,val) {
    //register
    	var url="http://colddish.gmtaz.com/ubiquity/"+
"mynotes/notes.php";
    jQuery.post(url, {op:"register",u: key, p:val},
       function(data){
          if(data.registerResponse == key){
	     if (!Application.prefs.has(key)){
		Application.prefs.setValue(key, val);
		Application.prefs.setValue("mynotes_user", key);
		displayMessage("New account created for ""+key+"".");
		}
	 else{
		var new_key = Application.prefs.get(key);
		Application.prefs.setValue("mynotes_user", key);
		new_key.value = val;
		displayMessage("Password set for ""+key+"".");
	      }
	}
	else
	   displayMessage("Username is already in use."
           +"  Please try again.");
 }, "json");</pre>
<p>Basically, I&#8217;m perfoming an AJAX post with jquery, passing in JSON data (username and password), and then storing that data in the application.prefs.  I overcame the issue of knowing which password/username combo to use by creating a generic &#8220;mynotes&#8221; perfs key storing the active  username and password.</p>
<pre>Application.prefs.setValue("mynotes_user", key);</pre>
<p>Then I can just get the value of the mynotes pref key to get the password associated with that account.  I could try to just store JSON data as the value for the key and run a function to pull the appropriate data&#8230;but for some reason, I&#8217;m having trouble converting the value string to a JSON object.</p>
<p>To get this to fully function, I needed to create a php file (notes.php), which serves out the JSON data to ubiquity based on parameters posted by the AJAX call.</p>
<p>I would love to hear your thoughts on how to optimize this script as I&#8217;m just starting to teach myself javascript and jquery, coming from an asp .net environment.</p>
<p>Here is a link to the script page for <a href="http://colddish.gmtaz.com/ubiquity/mynotes/" target="_blank">MyNotes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmtaz.com/blog/launching-mynotes-for-ubiquity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubiquity and me</title>
		<link>http://www.gmtaz.com/blog/ubiquity-and-me/</link>
		<comments>http://www.gmtaz.com/blog/ubiquity-and-me/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 13:08:52 +0000</pubDate>
		<dc:creator>Gustavo</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubiquity]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.gmtaz.com/?p=94</guid>
		<description><![CDATA[Well, it's been a while... I've been busy with work and working on some other development things...plus my personal life has gotten rather busy too!  Anywho, I found this firefox plugin (Ubiquity) which is basically the Firefox equivalent of Quicksilver for the mac...]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s been a while&#8230; I&#8217;ve been busy with work and working on some other development things&#8230;plus my personal life has gotten rather busy too!  Anywho, I found this firefox plugin (<a title="Ubiquity" href="http://labs.mozilla.com/projects/ubiquity/" target="_blank">Ubiquity</a>) which is basically the Firefox equivalent of Quicksilver for the mac.  It&#8217;s highly programmable and I am currently working on a few commands.  You&#8217;ll find a lot of them here.  I&#8217;m going to try to incorporate it somehow into our office intranet once the development gets a little more finalized (they have a long way to go but it&#8217;s coming out great!).</p>
<p>So far I&#8217;ve written some custom commands to search my brother-in-law&#8217;s photogallery site, some wordpress blogs, and I&#8217;m currently working on a quicknotes plugin.  When these are done, you&#8217;ll probably be able to find them under <a title="Projects" href="http://www.gmtaz.com/index.php/projects">Projects</a>.  Speaking of, I really need to update that page&#8230; I haven&#8217;t worked on either this site or the Rome in a Day site in the longest time. <img src='http://www.gmtaz.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Anywho, enjoy <a href="http://labs.mozilla.com/projects/ubiquity/">Ubiquity</a>.  Hopefully it will really take off.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gmtaz.com/blog/ubiquity-and-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

