<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>crashingdaily</title>
	<atom:link href="http://crashingdaily.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://crashingdaily.wordpress.com</link>
	<description>admin sys a terrible thing to waste</description>
	<lastBuildDate>Thu, 12 Nov 2009 15:39:26 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='crashingdaily.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/afae87a52f2a9ec3e1f8adf7d7f2afdd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>crashingdaily</title>
		<link>http://crashingdaily.wordpress.com</link>
	</image>
			<item>
		<title>Using groups with TestNG</title>
		<link>http://crashingdaily.wordpress.com/2009/11/12/using-groups-with-testng/</link>
		<comments>http://crashingdaily.wordpress.com/2009/11/12/using-groups-with-testng/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:39:20 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[testng]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=212</guid>
		<description><![CDATA[This post demonstrates a simple example of using groups with TestNG.
For this exercise I&#8217;m using a very simple file layout. The jar file was copied directly from the TestNG package. SampleTest.java and testng.xml are my test and configuration files, respectively.

[23:31 20090914 crashing@desktop ~/simpletestng]
$ ls
SampleTest.java		testng-5.10-jdk15.jar	testng.xml

SampleTest.java has two test methods, annotated with @Test, and with an assigned [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=212&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This post demonstrates a simple example of using groups with TestNG.</p>
<p>For this exercise I&#8217;m using a very simple file layout. The jar file was copied directly from the TestNG package. SampleTest.java and testng.xml are my test and configuration files, respectively.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[23:31 20090914 crashing@desktop ~/simpletestng]<br />
$ ls<br />
SampleTest.java		testng-5.10-jdk15.jar	testng.xml
</div>
<p>SampleTest.java has two test methods, annotated with @Test, and with an assigned group name.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
import org.testng.annotations.*;<br />
public class SampleTest {<br />
    @Test(groups = { &#8220;groupA&#8221; })<br />
    public void methodA() {<br />
        System.out.println(&#8220;groupA&#8221;);<br />
        assert true;<br />
    }</p>
<p>    @Test(groups = { &#8220;groupB&#8221; })<br />
    public void methodB() {<br />
        System.out.println(&#8220;groupB&#8221;);<br />
        assert true;<br />
    }<br />
}
</p></div>
<p>testng.xml defines these two groups as belonging to a test set.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
</div>
<p>I compile the SampleTest class,</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
$ javac -classpath testng-5.10-jdk15.jar SampleTest.java
</div>
<p>and then run all the test methods as configured in testng.xml</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
$ java -classpath .:testng-5.10-jdk15.jar  org.testng.TestNG testng.xml</p>
<p>[Parser] Running:<br />
  /Users/crashing/simpletestng/testng.xml</p>
<p>groupA<br />
groupB</p>
<p>===============================================<br />
TrialTest<br />
Total tests run: 2, Failures: 0, Skips: 0<br />
===============================================
</p></div>
<p>Both test methods ran.</p>
<p>Alternatively I can specify specific groups to run. For this I use the <code>-groups</code> and <code>-testclass</code> option. I do not use the testng.xml file.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
java -classpath .:testng-5.10-jdk15.jar  org.testng.TestNG  -groups groupB -testclass SampleTest</p>
<p>[Parser] Running:<br />
  Command line suite</p>
<p>groupB</p>
<p>===============================================<br />
Command line suite<br />
Total tests run: 1, Failures: 0, Skips: 0<br />
===============================================
</p></div>
<p>Specifying both the testng.xml and a -groups option will cause both configurations to be processed. </p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[22:58 20090914 crashing@desktop ~/simpletestng]<br />
$ java -classpath .:testng-5.10-jdk15.jar  org.testng.TestNG testng.xml -groups groupA -testclass SampleTest<br />
[Parser] Running:<br />
  /Users/crashing/simpletestng/testng.xml<br />
  Command line suite</p>
<p>groupA<br />
groupB</p>
<p>===============================================<br />
TrialTest<br />
Total tests run: 2, Failures: 0, Skips: 0<br />
===============================================</p>
<p>groupA</p>
<p>===============================================<br />
Command line suite<br />
Total tests run: 1, Failures: 0, Skips: 0<br />
===============================================
</p></div>
<p>This is probably not what you want. So, use either the testng.xml or the -groups and -testclass option, not both.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=212&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/11/12/using-groups-with-testng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Defining test descriptions in testng reports</title>
		<link>http://crashingdaily.wordpress.com/2009/09/13/defining-test-descriptions-in-testng-reports/</link>
		<comments>http://crashingdaily.wordpress.com/2009/09/13/defining-test-descriptions-in-testng-reports/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 02:48:07 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[testng]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=208</guid>
		<description><![CDATA[The output html of testng&#8217;s reporter has the columns &#8220;Test method&#8221; and &#8220;Instance&#8221; that document each test run.
&#8220;Test method&#8221; can be customized by defining  public String getTestName() method in the class providing the test method.
&#8220;Instance&#8221; can be customized by defining  public String toString() method in the class providing the test method.
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=208&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The output html of <a href="http://testng.org/">testng</a>&#8217;s reporter has the columns &#8220;<code>Test method</code>&#8221; and &#8220;<code>Instance</code>&#8221; that document each test run.</p>
<p>&#8220;<code>Test method</code>&#8221; can be customized by defining <code> public String getTestName()</code> method in the class providing the test method.</p>
<p>&#8220;<code>Instance</code>&#8221; can be customized by defining <code> public String toString()</code> method in the class providing the test method.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=208&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/09/13/defining-test-descriptions-in-testng-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Extending Selenium server with custom commands</title>
		<link>http://crashingdaily.wordpress.com/2009/09/13/extending-selenium-server-with-custom-commands/</link>
		<comments>http://crashingdaily.wordpress.com/2009/09/13/extending-selenium-server-with-custom-commands/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 02:35:46 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=202</guid>
		<description><![CDATA[In this posting I document extending Selenium server with a custom javascript method, getAllRadios(), to return all radio button elements in a page. It&#8217;s based on the getAllButtons() that is stock in Selenium.
I will demonstrate two ways to add this custom method. The first strategy is to add the custom method to the native javascript [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=202&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In this posting I document extending <a href="http://seleniumhq.org/">Selenium</a> server with a custom javascript method, <code>getAllRadios()</code>, to return all radio button elements in a page. It&#8217;s based on the <code>getAllButtons()</code> that is stock in Selenium.</p>
<p>I will demonstrate two ways to add this custom method. The first strategy is to add the custom method to the native javascript files that ship with Selenium server. This is not the recommended way to extend Selenium but it is an almost guaranteed way to be sure the server picks up my new method and that frees me to focus on getting my client syntax right for calling the new method using the client&#8217;s <code>doCommand()</code> method.</p>
<h4>Method 1 &#8211; selenium-browserbot.js + selenium-api.js</h4>
<p>Unpack the server jar into a temporary directory to get access to the <code>selenium-browserbot.js</code> and <code>selenium-api.js</code> files.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[20:54 20090906 crashing@server /selenium-server-1.0.1/temp]<br />
$ jar xf ../selenium-server.jar </p>
</div>
<p>The new custom method is added to <code>core/scripts/selenium-browserbot.js</code>. It is a slightly modified version of <code>getAllButtons()</code> which is defined in the same file.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
<p>BrowserBot.prototype.getAllRadios = function() {<br />
    var elements = this.getDocument().getElementsByTagName(&#39;input&#39;);<br />
    var result = [];<br />
    for (var i = 0; i &lt; elements.length; i++) {<br />
        if (elements[i].type == &#39;radio&#39;) {<br />
            result.push(elements[i].id);<br />
        }<br />
    }<br />
    return result;<br />
};  </p>
</div>
<p>and then the new method is exposed to the Selenium API in <code>core/scripts/selenium-api.js</code>, again modeling after <code>getAllButtons()</code> in <code>selenium-api.js</code>.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
<p>Selenium.prototype.getAllRadios = function() {<br />
   return this.browserbot.getAllButtons();<br />
};</p>
</div>
<p>Now rebundle the updated javascript into a new server jar, replacing the original.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
<p>[21:01 20090906 crashing@server /selenium-server-1.0.1/temp]<br />
$ jar cmf META-INF/MANIFEST.MF ../selenium-server.jar .</p>
</div>
<h4>Method 2 &#8211; user-extension.js</h4>
<p>The better way to extend Selenium is to add methods&#160;to the <code>user-extensions.js</code> file. This avoids screwing around with the native server jar. I initiall had some trouble getting this working, hence the Method 1 approach, but after a bit of futzing I finally got this to work. </p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
<p>Selenium.prototype.getAllRadios = function() {<br />
    var elements = this.browserbot.getDocument().getElementsByTagName(&#39;input&#39;);<br />
    var result = [];<br />
    for (var i = 0; i &lt; elements.length; i++) {<br />
        if (elements[i].type == &#39;radio&#39;) {<br />
            result.push(elements[i].id);<br />
        }<br />
    }<br />
    return result;<br />
};</p>
</div>
<p>This is basically the same method used in <code>selenium-browserbot.js</code>. The important changed bits are (1) the method is attached to the Selenium object instead of the BrowserBot (<code>Selenium.prototype</code> rather than <code>BrowserBot.prototype</code>) and (2) calling <code>getDocument()</code> on the <code>browserbot</code> instance.</p>
<p>I start the Selenium server with the <code>-userExtensions</code> option pointing to the <code>user-extensions.js</code> file.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
java -jar \<br />
  /selenium-server-1.0.1/selenium-server.jar \<br />
  -userExtensions  /user-extensions.js</p>
</div>
<h4>Client Coding</h4>
<p>For either of the above methods of extending the Selenium server, I call this new method in my client code with the <code>doCommand()</code>. </p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
/** incomplete code **/</p>
<p>proc = new HttpCommandProcessor(seleniumServerHost, <br />
        seleniumServerPort, brower, seleniumServerStartUrl);<br />
selenium = new DefaultSelenium(proc);</p>
<p>selenium.open(url);</p>
<p>// radio buttons returned as comma-delimited strings<br />
String allRadios = proc.doCommand(&quot;getAllRadios&quot;, null);</p>
<p>// alternatively, get radio buttons as a String array<br />
String[] radios = proc.getStringArray(&quot;getAllRadios&quot;, null);<br />
for (String radio : radios) {<br />
    System.out.println(radio);<br />
}</p>
</div>
<p>To call custom <code>doCommand()</code>&#8217;s, it&#8217;s necessary to instantiate with  <code>DefaultSelenium(proc)</code> to inject the <code>HttpCommandProcessor</code> into the <code>DefaultSelenium</code> object.</p>
<h4>Related:</h4>
<p><a href="http://clearspace.openqa.org/message/20980">Select the ids of radio buttons in a page using selenium</a><br />
<a href="http://seleniumhq.org/docs/08_user_extensions.html">User-Extensions</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=202&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/09/13/extending-selenium-server-with-custom-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Downsizing Google&#8217;s search input box</title>
		<link>http://crashingdaily.wordpress.com/2009/09/12/downsizing-googles-search-input-box/</link>
		<comments>http://crashingdaily.wordpress.com/2009/09/12/downsizing-googles-search-input-box/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 05:16:39 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=184</guid>
		<description><![CDATA[Google has made its search input box bigger and its font size larger. Excuse me, they S-U-P-E-R-sized! it. It&#8217;s not a mistake, indeed Google actually seems proud of it.
Fortunately, Safari and Firefox empowers mere-mortal users to fix this eyesore with a custom stylesheet. Simply add the following to your userContent.css and restart the web browser. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=184&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://google.com">Google</a> has made its search input box bigger and its font size larger. Excuse me, they S-U-P-E-R-sized! it. It&#8217;s not a mistake, indeed <a href="http://googleblog.blogspot.com/2009/09/now-s-u-p-e-r-sized.html">Google actually seems proud</a> of it.</p>
<p>Fortunately, Safari and Firefox empowers mere-mortal users to fix this eyesore with a custom stylesheet. Simply add the following to your <code>userContent.css</code> and restart the web browser. Additional general information on <code>userContent.css</code>, and all the spiffy things you can do with it, is available from the links below.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
<br />
/* Google input text box */<br />
.lst {<br />
font-size:13px ! important;<br />
}<br />
/* Google search type-ahead drop down */<br />
.gac_m td {<br />
font-size:13px ! important;<br />
line-height:120% ! important;<br />
}<br />
/* Google Search/I&#39;m Feeling Lucky buttons */<br />
.lsb {<br />
font-size:11px ! important;<br />
height:auto ! important;<br />
}<br />
/* Google Search/I&#39;m Feeling Lucky buttons in type-ahead drop down*/<br />
.gac_sb {<br />
font-size:11px ! important;<br />
height:auto ! important;<br />
}</p>
</div>
<p>With the aforementioned CSS, the submit buttons will still appear in the type-ahead drop down menu. Add the following style to remove them all together.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
/* Turn off Google Search/I&#8217;m Feeling Lucky buttons in type-ahead drop down*/<br />
.gac_sb {<br />
display:none;<br />
}</p>
</div>
<p>Power to the people.</p>
<h4>Related Sites</h4>
<p><a href="http://www.mozilla.org/unix/customizing.html">Customizing Mozilla</a><br />
<a href="http://www.floppymoose.com/">Better Ad Blocking for Firefox, Mozilla, Camino, and Safari</a><br />
<a href="http://code.google.com/p/chromium/issues/detail?id=2393">Google Chrome Issue 2393:	Support user stylesheet</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=184&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/09/12/downsizing-googles-search-input-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Initing a new remote git repository with existing files</title>
		<link>http://crashingdaily.wordpress.com/2009/09/02/initing-a-new-remote-git-repository-with-existing-files/</link>
		<comments>http://crashingdaily.wordpress.com/2009/09/02/initing-a-new-remote-git-repository-with-existing-files/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 18:58:50 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=170</guid>
		<description><![CDATA[This how I took an existing directory of files on my desktop and put it into a new  git repository on a remote server. I found a number of how-tos online but none worked for me &#8211; certainly this was because I&#8217;m such a newbie with git that I wasn&#8217;t sufficiently understanding what I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=170&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This how I took an existing directory of files on my desktop and put it into a new  git repository on a remote server. I found a number of how-tos online but none worked for me &#8211; certainly this was because I&#8217;m such a newbie with git that I wasn&#8217;t sufficiently understanding what I was being told to do. The following works for me; clearly this isn&#8217;t the only way or the best way to accomplish the task. This is mostly a note to self.</p>
<p>Create an empty directory on the remote server to hold the repository</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:44 20090902 crashing@server ~]<br />
$ mkdir -p /var/local/git/repos/CrashTesting</p>
</div>
<p>Intialize the empty repository</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:44 20090902 crashing@server /var/local/git/repos/CrashTesting]<br />
$ git &#45;&#45;bare init<br />
Initialized empty Git repository in /var/local/git/repos/CrashTesting/</p>
</div>
<p>Now I have the necessary repository components.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:44 20090902 crashing@server /var/local/git/repos/CrashTesting]<br />
$ ls<br />
branches  config  description  HEAD  hooks  info  objects  refs</p>
</div>
<p>On my desktop, in the existing directory of files, init the directory</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:30 20090902 crashing@desktop ~/Desktop/testws]<br />
$ git init<br />
Initialized empty Git repository in /Users/crashing/Desktop/testws/.git/</p>
</div>
<p>This created a <code>.git</code> directory with git control files.</p>
<p>Next, I tell my local desktop repository about the remote repo. The remote repo is given the short name <code>origin</code>.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:46 20090902 crashing@desktop ~/Desktop/testws]<br />
$ git remote add origin ssh://server.crashingdaily.com/var/local/git/repos/CrashTesting</p>
</div>
<p>Then, I place my local files under version control.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:42 20090902 crashing@desktop ~/Desktop/testws]<br />
$ git add .</p>
</div>
<p>Now I can commit the local files to the local repository.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:45 20090902 crashing@desktop ~/Desktop/testws]<br />
$ git commit -a -m &#39;initialize repo&#39;<br />
[master (root-commit) 7871087] initialize repo<br />
 23 files changed, 500 insertions(+), 0 deletions(-)<br />
 create mode 100755 build.properties<br />
 create mode 100755 build.xml</p>
</div>
<p>Finally, push the <code>master</code> branch to the remote repository named <code>origin</code>.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
[11:46 20090902 crashing@desktop ~/Desktop/testws]<br />
$ git push origin master<br />
Counting objects: 44, done.<br />
Delta compression using up to 2 threads.<br />
Compressing objects: 100% (31/31), done.<br />
Writing objects: 100% (44/44), 1.65 MiB, done.<br />
Total 44 (delta 1), reused 0 (delta 0)<br />
To ssh://server.crashingdaily.com/var/local/git/repos/CrashTesting<br />
 * [new branch]      master -&gt; master</p>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=170&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/09/02/initing-a-new-remote-git-repository-with-existing-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Compiling mysql on Fedora 8</title>
		<link>http://crashingdaily.wordpress.com/2009/08/22/compiling-mysql-on-fedora-8/</link>
		<comments>http://crashingdaily.wordpress.com/2009/08/22/compiling-mysql-on-fedora-8/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 04:09:30 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=152</guid>
		<description><![CDATA[I spent the evening compiling mysql 5.1.37 on Fedora 8. I had no trouble compiling on RHEL4 but on Fedora 8 I ran configure

CFLAGS=&#34;-O3&#34; CXX=gcc CXXFLAGS=&#34;-O3 -felide-constructors \
       -fno-exceptions -fno-rtti&#34; ./configure \
       &#45;&#45;enable-assembler \
       &#45;&#45;with-mysqld-ldflags=&#34;-all-static&#34; \
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=152&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I spent the evening compiling mysql 5.1.37 on Fedora 8. I had no trouble compiling on RHEL4 but on Fedora 8 I ran <code>configure</code></p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
CFLAGS=&quot;-O3&quot; CXX=gcc CXXFLAGS=&quot;-O3 -felide-constructors \<br />
       -fno-exceptions -fno-rtti&quot; ./configure \<br />
       &#45;&#45;enable-assembler \<br />
       &#45;&#45;with-mysqld-ldflags=&quot;-all-static&quot; \<br />
       &#45;&#45;with-client-ldflags=&quot;-all-static&quot;</p>
</div>
<p>followed by <code>make</code> and was getting compile errors</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
/bin/sh ../libtool &#45;&#45;preserve-dup-deps &#45;&#45;tag=CXX   &#45;&#45;mode=link gcc  -O3 -felide-constructors        -fno-exceptions -fno-rtti   -fno-implicit-templates -fno-exceptions -fno-rtti  -rdynamic  -o mysql mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/libedit/libedit.a -lncursesw -all-static -lpthread ../libmysql/libmysqlclient.la  -lcrypt -lnsl -lm   -lz <br />
libtool: link: gcc -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysql mysql.o readline.o sql_string.o completion_hash.o -static  ../cmd-line-utils/libedit/libedit.a -lncursesw -lpthread ../libmysql/.libs/libmysqlclient.a -lcrypt -lnsl -lm -lz<br />
/usr/bin/ld: cannot find -lncursesw<br />
collect2: ld returned 1 exit status<br />
make[1]: *** [mysql] Error 1<br />
make[1]: Leaving directory `/home/crashingdaily/mysql-5.1.37/client&#39;<br />
make: *** [all] Error 2</p>
</div>
<p>This was resolved by installing the static ncurses libs via the ncurses-static package.</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
$ sudo yum install ncurses-static</p>
</div>
<p>That then left me with the compile failure (showing only part of the error)</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
../cmd-line-utils/libedit/libedit.a(term.o): In function `term_echotc&#39;:<br />
term.c:(.text+0&#215;1557): undefined reference to `tputs&#39;<br />
term.c:(.text+0&#215;1580): undefined reference to `tgetstr&#39;<br />
term.c:(.text+0&#215;1676): undefined reference to `tgoto&#39;<br />
term.c:(.text+0&#215;169a): undefined reference to `tputs&#39;<br />
term.c:(.text+0&#215;1761): undefined reference to `tgoto&#39;<br />
term.c:(.text+0&#215;1781): undefined reference to `tputs&#39;</p>
</div>
<p>This was resolved by adding <code>-ltinfo</code> to the client ldflags in the <code>configure</code> options</p>
<div style="font:1em 'Courier New', Courier, Fixed;text-align:left;">
CFLAGS=&quot;-O3&quot; CXX=gcc CXXFLAGS=&quot;-O3 -felide-constructors \<br />
       -fno-exceptions -fno-rtti&quot; ./configure \<br />
       &#45;&#45;enable-assembler \<br />
       &#45;&#45;with-mysqld-ldflags=&quot;-all-static&quot; \<br />
       &#45;&#45;with-client-ldflags=&quot;-all-static -ltinfo&quot;</p>
</div>
<p>Now <code>make</code> completed successfully. Lovely.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=152&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/08/22/compiling-mysql-on-fedora-8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Running BLAST on Windows XP</title>
		<link>http://crashingdaily.wordpress.com/2009/08/04/running-blast-on-windows-xp/</link>
		<comments>http://crashingdaily.wordpress.com/2009/08/04/running-blast-on-windows-xp/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 20:44:39 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[blast]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=150</guid>
		<description><![CDATA[Today I installed NCBI BLAST on Windows XP SP2 but was unable to run the executables &#8211; I was confronted with &#8220;the system cannot execute the specified program&#8221;.
The fix was to install  Microsoft Visual C++ 2005 SP1 Redistributable Package
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=150&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I installed <a href="http://www.ncbi.nlm.nih.gov/BLAST/download.shtml">NCBI BLAST</a> on Windows XP SP2 but was unable to run the executables &#8211; I was confronted with &#8220;the system cannot execute the specified program&#8221;.</p>
<p>The fix was to install <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&amp;displaylang=en"> Microsoft Visual C++ 2005 SP1 Redistributable Package</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=150&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/08/04/running-blast-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Persisting ssh connections while changing networks</title>
		<link>http://crashingdaily.wordpress.com/2009/07/31/persisting-ssh-connections-while-changing-networks/</link>
		<comments>http://crashingdaily.wordpress.com/2009/07/31/persisting-ssh-connections-while-changing-networks/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 21:49:03 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[autossh]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[SOCKS]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=148</guid>
		<description><![CDATA[I recently re-discovered autossh. I&#8217;ve been using it to persist mounted sshfs volumes but am only just now realizing it&#8217;s the scratch for some of my other itches.
With it I can

autossh -M50000 -t -D1080 -Nf crashingdaily.com

to keep a seemingly persistent SOCKS proxy running.
Or

autossh -M50000 -t crashingdaily.com 'screen -aAdR autossh'

to maintain an interactive session.
The value that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=148&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently re-discovered <a href="http://www.harding.motd.ca/autossh/">autossh</a>. <a href="http://crashingdaily.wordpress.com/2007/02/10/mounting-filesystems-with-ssh-forwarding-across-a-gateway/">I&#8217;ve been using it</a> to persist mounted sshfs volumes but am only just now realizing it&#8217;s the scratch for some of my other itches.</p>
<p>With it I can<br />
<code><br />
autossh -M50000 -t -D1080 -Nf crashingdaily.com<br />
</code><br />
to keep a seemingly persistent SOCKS proxy running.</p>
<p>Or<br />
<code><br />
autossh -M50000 -t crashingdaily.com 'screen -aAdR autossh'<br />
</code><br />
to maintain an interactive session.</p>
<p>The value that I missed earlier is that the connections are maintained (re-established, actually) <em>even if I change networks</em> &#8211; which my laptop and I often do.</p>
<p><a href="http://jonsview.com/2009/03/01/how-to-automatic-ssh-tunnel">Jon&#8217;s View</a> has a nice posting on using autossh for SOCKS proxying.</p>
<p>And <a href="http://www.pjtrix.com/blawg/2007/01/07/autossh-and-screen-for-remote-login-peace-of-mind/">Dread Pirate PJ</a> has a good instruction for combining autossh and screen for persistent interactive sessions.</p>
<p>autossh is available for OS X via <a href="http://autossh.darwinports.com/">Darwin Ports</a> and <a href="http://pdb.finkproject.org/pdb/package.php/autossh">Fink</a> and for Linux as source code or as binary packages from repositories for most modern Linux distributions.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=148&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/07/31/persisting-ssh-connections-while-changing-networks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Cesium for automated YSlow reporting</title>
		<link>http://crashingdaily.wordpress.com/2009/07/10/cesium-for-automated-yslow-reporting/</link>
		<comments>http://crashingdaily.wordpress.com/2009/07/10/cesium-for-automated-yslow-reporting/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:11:46 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[cesium]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[showslow]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=146</guid>
		<description><![CDATA[Hot on the heels of yesterday&#8217;s posting about my brief experience with YSlow in a Selenium framework, comes the release of Cesium 0.1, a tool specifically designed for automating YSlow runs.
I don&#8217;t care enough about YSlow tests to setup and maintain another test harness just for that purpose, so I don&#8217;t think I&#8217;ll be trying [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=146&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hot on the heels of <a href="http://crashingdaily.wordpress.com/2009/07/10/disappointing-yslow-automation-with-selenium/">yesterday&#8217;s posting</a> about my brief experience with YSlow in a Selenium framework, comes the release of <a href="http://blog.mozilla.com/webdev/2009/07/09/cesium-01/">Cesium 0.1</a>, a tool specifically designed for automating YSlow runs.</p>
<p>I don&#8217;t care enough about YSlow tests to setup and maintain another test harness just for that purpose, so I don&#8217;t think I&#8217;ll be trying it myself. For others who get in to this sort of thing, here&#8217;s something to get in to.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=146&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/07/10/cesium-for-automated-yslow-reporting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
		<item>
		<title>Disappointing YSlow automation with Selenium</title>
		<link>http://crashingdaily.wordpress.com/2009/07/10/disappointing-yslow-automation-with-selenium/</link>
		<comments>http://crashingdaily.wordpress.com/2009/07/10/disappointing-yslow-automation-with-selenium/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 02:33:47 +0000</pubDate>
		<dc:creator>crashingdaily</dc:creator>
				<category><![CDATA[Selenium]]></category>
		<category><![CDATA[showslow]]></category>
		<category><![CDATA[yslow]]></category>

		<guid isPermaLink="false">http://crashingdaily.wordpress.com/?p=140</guid>
		<description><![CDATA[Adam Goucher has a clever idea to automate YSlow reporting to a Show Slow database with Selenium.
Well, I tried this with my Selenium RC setup, testing one page. In my setup, two beacons are sent by YSlow to the Show Slow database but the urls recorded,
http://localhost:3000/selenium-server/core/Blank.html?start=true 
and
chrome://src/content/RemoteRunner.html?sessionId=2d7695881a3881f940ada5bc889a6dee&#38;multiWindow=true&#38;baseUrl=http%3A%2F%2Fintegrate.crashingdaily.com&#38;debugMode=false&#38;driverUrl=http://localhost:3000/selenium-server/driver/
are not the ones for the page under test. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=140&subd=crashingdaily&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://adam.goucher.ca/?p=1017">Adam Goucher has a clever idea</a> to automate <a href="http://developer.yahoo.com/yslow/">YSlow</a> reporting to a <a href="http://code.google.com/p/showslow/">Show Slow</a> database with <a href="http://seleniumhq.org/">Selenium</a>.</p>
<p>Well, I tried this with my Selenium RC setup, testing one page. In my setup, two beacons are sent by YSlow to the Show Slow database but the urls recorded,</p>
<p><code>http://localhost:3000/selenium-server/core/Blank.html?start=true </code><br />
and<br />
<code>chrome://src/content/RemoteRunner.html?sessionId=2d7695881a3881f940ada5bc889a6dee&amp;multiWindow=true&amp;baseUrl=http%3A%2F%2Fintegrate.crashingdaily.com&amp;debugMode=false&amp;driverUrl=http://localhost:3000/selenium-server/driver/</code></p>
<p>are not the ones for the page under test. Neither report generated from selenium matches the report I get from the standalone browser so it&#8217;s not just a matter of the url being misreported to Show Slow.</p>
<p>disappointing.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crashingdaily.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crashingdaily.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crashingdaily.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crashingdaily.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crashingdaily.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crashingdaily.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crashingdaily.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crashingdaily.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crashingdaily.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crashingdaily.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crashingdaily.wordpress.com&blog=744507&post=140&subd=crashingdaily&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://crashingdaily.wordpress.com/2009/07/10/disappointing-yslow-automation-with-selenium/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/071fdc9a426bd695bda2b2061b5fcea9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">crashingdaily</media:title>
		</media:content>
	</item>
	</channel>
</rss>