<?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>~robcee/ &#187; Programming</title>
	<atom:link href="http://antennasoft.net/robcee/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://antennasoft.net/robcee</link>
	<description>more than just sandwiches</description>
	<lastBuildDate>Fri, 20 Apr 2012 18:26:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Scratchpad can haz Orion</title>
		<link>http://antennasoft.net/robcee/2011/08/15/scratchpad-can-haz-orion/</link>
		<comments>http://antennasoft.net/robcee/2011/08/15/scratchpad-can-haz-orion/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 15:35:02 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[nightly]]></category>
		<category><![CDATA[orion]]></category>
		<category><![CDATA[scratchpad]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/?p=628</guid>
		<description><![CDATA[This weekend, the incomparable Mihai Sucan put the finishing touches on the Orion Source Code editor integration pieces and attached it to the Scratchpad. Orion is an open source code editor project that IBM is building. See Mihai&#8217;s blog post for some details and a link to an earlier demo video. It&#8217;s currently turned off [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend, the incomparable <a href="https://twitter.com/#!/robodesign">Mihai Sucan</a> put the finishing touches on the <a href="http://www.eclipse.org/orion/">Orion</a> Source Code editor integration pieces and attached it to the Scratchpad. Orion is an open source code editor project that IBM is building. See Mihai&#8217;s <a href="http://www.robodesign.ro/mihai/blog/orion-in-firefox">blog post</a> for some details and a link to an earlier demo video. It&#8217;s currently turned off via preferences, but if you&#8217;d like to play with it in Firefox <a href="http://nightly.mozilla.org/">Nightlies</a>, (or later this week, <a href="http://www.mozilla.com/en-US/firefox/channel/">Aurora</a>) set:</p>
<p><strong>devtools.editor.component</strong> to <strong>orion</strong> in <strong>about:config</strong>.</p>
<p>… and then open a Scratchpad (with Shift-F4 or via the menu item in the Web Developer submenu).</p>
<p><em>Update! John via the comments mentioned that if you have already opened a Scratchpad, you will need to restart your browser for this change to take effect. Thanks for the note!</em></p>
<p>It&#8217;s currently disabled because there are some outstanding issues for RTL locales and some accessibility concerns. We hope to address those issues with upstream contributions wherever possible — Mihai&#8217;s an Orion contributor now. Eventually, this preference will become the default.</p>
<p>What do you get with this preference? Nice JavaScript syntax highlighting for starters. You also get other conveniences like bracket matching and (semi-)smart indentation.</p>
<p>This feature&#8217;s an important first-step towards making the Scratchpad a really comfortable editor for writing and testing bits of JavaScript. It gives us a solid foundation to add more interesting features to the Scratchpad in the future, and gives us a Source Editor component that we can drop into other elements.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2011/08/15/scratchpad-can-haz-orion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bookmarks Deiconizer, a Firefox Addon</title>
		<link>http://antennasoft.net/robcee/2010/11/26/bookmarks-deiconizer-a-firefox-addon/</link>
		<comments>http://antennasoft.net/robcee/2010/11/26/bookmarks-deiconizer-a-firefox-addon/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 22:13:35 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Addons]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jetpack]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/?p=504</guid>
		<description><![CDATA[It&#8217;s Black Friday! For some of you, that means lots of shopping, post-turkey discomfort and watching football. Maybe all at once. For me, it meant checking out the latest development trunk of the Add-ons SDK (née Jetpack) and bundling up an add-on. There were a couple of fun things about doing this. One, all of [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s Black Friday! For some of you, that means lots of shopping, post-turkey discomfort and watching football. Maybe all at once. For me, it meant checking out the latest development trunk of the Add-ons SDK (née Jetpack) and bundling up an add-on.</p>
<p>There were a couple of fun things about doing this. One, all of the UI inspection was done with the built-in Inspector in Firefox. If you load up <span style="text-decoration: underline;">chrome://browser/content/browser.xul</span> in a tab and invoke the inspector (after setting <strong>devtools.inspector.enabled</strong> to <strong>true</strong> in <span style="text-decoration: underline;">about:config</span> and restarting), you can look at the various parts of the browser chrome.</p>
<p>To make the toolbar visible, you&#8217;ll probably have to select &#8220;View Bookmarks&#8221; from the bookmarks toolbar dropdown next to the search box in the UI. Even if it&#8217;s on, you&#8217;ll probably have to toggle it off and on again to get the bookmarks to show up.</p>
<div id="attachment_507" class="wp-caption aligncenter" style="width: 359px"><img class="size-full wp-image-507" title="bookmarks toolbar button" src="http://antennasoft.net/robcee/wp-content/uploads/2010/11/Screen-shot-2010-11-26-at-17.44.55.png" alt="bookmarks toolbar button" width="349" height="98" /><p class="wp-caption-text">Deselect the View Bookmarks Toolbar menu option and then re-enable it.</p></div>
<p>Once that&#8217;s done, open the Inspector (Cmd-Shift-I or from the Tools menu on a mac, Ctrl-Shift-I or the Web Developer submenu in the app menu on PC) and hover over the bookmarks toolbar in the browser.  Ultimately, you&#8217;ll want to highlight the toolbar element with id &#8220;PersonalToolbar&#8221; and take a look at its attributes. You&#8217;ll see that the <em>mode</em> attribute is set to &#8220;icons&#8221; by default.</p>
<p>Now for the magical part: Open the Web Console on this page (Cmd/Ctrl-shift-K). In the JS Input line, type:</p>
<p><span class="code">$(&#8220;PersonalToolbar&#8221;).setAttribute(&#8220;mode&#8221;, &#8220;text&#8221;);</span></p>
<p>and hit Enter. The icons should disappear from the embedded browser document.</p>
<p><img class="alignleft size-full wp-image-502" title="icon" src="http://antennasoft.net/robcee/wp-content/uploads/2010/11/icon.png" alt="" width="32" height="32" />And that&#8217;s pretty much all there is to this addon. Check out the <a href="https://github.com/robcee/bookmarks-deiconizer/blob/master/lib/main.js">source</a> on <a href="https://github.com/robcee/bookmarks-deiconizer/">github</a> or in <a href="http://hg.mozilla.org/users/rcampbell_mozilla.com/bookmarks-deiconizer/">hg</a>, view some minimal <a href="http://antennasoft.net/robcee/bookmarks-deiconizer/">documentation</a>, and, when it gets approved, install it from <a href="https://addons.mozilla.org/en-US/firefox/addon/258239/">AMO</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2010/11/26/bookmarks-deiconizer-a-firefox-addon/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>View-Source IS Good. Full-stop.</title>
		<link>http://antennasoft.net/robcee/2010/01/08/view-source-is-good-full-stop/</link>
		<comments>http://antennasoft.net/robcee/2010/01/08/view-source-is-good-full-stop/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 13:43:53 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/?p=384</guid>
		<description><![CDATA[I saw a tweet this morning from Joe Walker linking to this article asking Is View-Source Good? from Alex Russell of Dojo fame and I had to write about it. It&#8217;s something I&#8217;ve been thinking about a fair bit lately, so his timing was excellent. Open systems are better and lead to more productive coders. [...]]]></description>
			<content:encoded><![CDATA[<p>I saw a <a href="http://twitter.com/joewalker/status/7509093356" target="_blank">tweet</a> this morning from Joe Walker linking to this article asking <a href="http://alex.dojotoolkit.org/2010/01/view-source-is-good-discuss/" target="_blank">Is View-Source Good?</a> from Alex Russell of Dojo fame and I had to write about it. It&#8217;s something I&#8217;ve been thinking about a fair bit lately, so his timing was excellent.</p>
<p>Open systems are better and lead to more productive coders. This is a wild assertion I&#8217;ll make with some cheek, mostly because I don&#8217;t think any exemplars from closed-system programming can really refute it, or will. Programmers who get into pure languages like Lisp and Smalltalk ramp up quickly and become more productive because they have full view of the system&#8217;s source code.</p>
<p>So too, the web.</p>
<p>Web-programming is often a cut and paste experience. I hear the term &#8220;cut-and-paste inheritance&#8221; used derogatorily too-often. While it&#8217;s true that in some cases, from a code-design perspective, just pasting blocks of code from one document to another can lead to a poorly-designed system, it is great for getting little pieces of code to work. It is the scientific method applied to programming. You see something that works in one place, you try copying it over and see what fails on your page. Continue.</p>
<p>One area where view-source breaks down is in the analysis of &#8220;what happens&#8221; with that source code. The Error Console in Firefox is a poor-excuse for a debugging mechanism and linked to the view-source window only by a hopefully connected error and a line number you can click on. Errors can come from any tab and are not necessarily associated with your code. There is no sense of iterative feedback. You have to hunt for it and usually fall into a pattern of clearing your console and reloading the page to see when the errors occur. This leads many developers to write their own logging function. Or when they&#8217;ve graduated to more advanced development, install Firebug which presents dynamic views of your source code in exciting (and sometimes surprising) ways.</p>
<p>Another mysterious failing of view-source is in a dynamically generated page. Something that uses document.write() or a bunch of appendChild() calls often doesn&#8217;t show correctly in view-source. A trick I learned recently to see these types of changes is to select some text and right click on it and &#8220;view-selection source&#8221;. Not exactly intuitive, but this will show you what your code generated.</p>
<p>I don&#8217;t think anyone can claim that view-source is a bad thing, though I have seen people try to get around it. Usually under the guise of &#8220;I have some important information or data that I need to protect&#8221;. I have seen people file bugs to add a mechanism to Firebug to prevent inspection of the underlying HTML on certain pages. I find these types of requests pretty funny, generally, and a little sad because people who think this way fundamentally don&#8217;t understand what the web is about and how it works and why it got to be the wonderful thing it is today.</p>
<p>It&#8217;s a fairly common practice to hide content behind a flash barrier to prevent people from getting their grubby paws on it. This creates a large swath of the web that you really have no ability to play with or learn from. Also, I think it&#8217;s fairly safe to say that learning to program in Flash is a more expensive proposition than learning to program for the web. You have to pay for tools, books and example code. If you want to make something that looks like this widget over here that has some wandering penguins on it, you have to figure it all out for yourself.</p>
<p>Alex mentions generative tools and libraries like GWT that create HTML and CSS styling as by-products of their execution and that these create a not-very useful rendition for view-source. This is true. Even PHP-generated HTML can be pretty disheartening to look at if you&#8217;re trying to figure out what&#8217;s going on in a web-page — its poor formatting and machine-generated constructs are not pretty to look at, but you can still sometimes glean some of the workings behind them. Having hacked around in WordPress for a few years, understanding the way the PHP code generates a blog&#8217;s output is an interesting experiment to puzzle through. I wouldn&#8217;t have been able to do that without view-source.</p>
<p>Anyway, I think I&#8217;ve burbled about this enough. I love view-source. There, I&#8217;ve said it. It is one of the most valuable tools we have for understanding and learning about the web.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2010/01/08/view-source-is-good-full-stop/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>I&#8217;m sure they were here a minute ago&#8230;</title>
		<link>http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/</link>
		<comments>http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 21:29:49 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Build]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Quality]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/</guid>
		<description><![CDATA[The testfarm buildbots have been moved to the main Firefox tree on Tinderbox and given spiffy new names. They are now known as &#8220;Linux qm-rhel02 dep unit test&#8221;, &#8220;MacOSX Darwin 8.8.4 qm-xserve01 dep unit test&#8221; and &#8220;WINNT 5.1 qm-winxp01 dep unit test&#8221;. Sure rolls off the tongue, doesn&#8217;t it? We haven&#8217;t really nailed-down what it [...]]]></description>
			<content:encoded><![CDATA[<p>The testfarm buildbots have been moved to the main <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox">Firefox</a> tree on Tinderbox and given spiffy new names. They are now known as &#8220;Linux qm-rhel02 dep unit test&#8221;, &#8220;MacOSX Darwin 8.8.4 qm-xserve01 dep unit test&#8221; and &#8220;WINNT 5.1 qm-winxp01 dep unit test&#8221;. Sure rolls off the tongue, doesn&#8217;t it?</p>
<p>We haven&#8217;t really nailed-down what it means to have these here yet, and as of this writing, the logging summaries aren&#8217;t being printed out so the information&#8217;s only semi-useful at-a-glance. We&#8217;ll get that fixed quickly though. Ultimately, I think failures on these boxes should be taken seriously and if you check in and see them turn orange, you should take a close look at the logs to see what happened.</p>
<p>Also, if you see any problems with these machines, please file a bug on it in core/testing. I&#8217;ll be watching that bucket with great vigilance.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

