<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
        <?xml-stylesheet type="text/css" href="http://www.physics.drexel.edu/~wking/blog/styles/feed.css"?>
<title type="html">Fun</title>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog"/>
<link rel="self" type="application/atom+xml" href="http://www.physics.drexel.edu/~wking/blog/archives/fun/index-atom.xml"/>
<updated>2010-03-02T07:10:31-05:00</updated>
<author>
<name>Trevor</name>
<uri>http://www.physics.drexel.edu/~wking/blog</uri>
</author>
<id>http://www.physics.drexel.edu/~wking/blog/</id>
<generator uri="http://nanoblogger.sourceforge.net" version="3.3">
NanoBlogger
</generator>

<entry>
<title type="html">Website unittesting with Selenium</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2009/10/21/index.html#e2009-10-21T10_00_56.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2009/10/21/index.html#e2009-10-21T10_00_56.txt</id>
<published>2009-10-21T10:00:56-05:00</published>
<updated>2009-10-21T10:00:56-05:00</updated>
<category term="Programming" />
<category term="Linux" />
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>I just discovered <a href="http://seleniumhq.org/">Selenium</a>, which allows you
to drive browers programmatically.  This allows you to test the
effects of javascript on the browser's internal page representation.
Not very useful for the department website, since we don't use much
javascript, but I like its python interface, so I'm replacing my
traditional spider with a Selenium implementation.</p>

<p>Some bugs I've run into so far:</p>

<ul>
<li><a href="http://jira.openqa.org/browse/SRC-758">start() doesn't take any
args</a>.  Simple fix in
selenium.py.</li>
<li><a href="http://jira.openqa.org/browse/SRC-721">captureNetworkTraffic("xml") returns requestHeaders as
responseHeaders</a>.  Fixed in
source, but you'll need to compile your selenium-server.jar on your
own.  There's a nice, detailed explaination of building Selenium
with <a href="http://maven.apache.org/">Maven</a>
<a href="http://wiki.openqa.org/display/SRC/Developer%27s+Guide">here</a>, but
for the impatient, a simple <code>mvn install</code> in the svn root directory
should do it.</li>
<li><a href="http://jira.openqa.org/browse/SRC-759">captureNetworkTraffic("xml") captures invalid XML in URL's
(ampersand problem)</a>.
Another simple patch, but this one's just posted by me, so you'll
have to apply it by hand and recompile.
You get the feeling that people don't use the captureNetworkTraffic
side of Selenium very often ;).  Ah well, only 3 open bugs in that
area left to bump into ;).</li>
</ul>

<p>To keep the test suite easy to maintain, I build it on the fly using
<a href="http://somethingaboutorange.com/mrl/projects/nose/0.11.1/writing_tests.html#test-generators">nose
generators</a>,
which are awesome :).</p>

<p>More details to come...</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">Email interface to bugs everywhere</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2009/07/18/index.html#e2009-07-18T17_25_18.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2009/07/18/index.html#e2009-07-18T17_25_18.txt</id>
<published>2009-07-18T17:25:18-05:00</published>
<updated>2009-07-18T17:25:18-05:00</updated>
<category term="Programming" />
<category term="Linux" />
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>I've been amusing myself over the past few days working up an email
interface for the distributed ugtracker <a href="http://bugseverywhere.org">Bugs
Everywhere</a>.  One of the things we've been
struggling with with BE is how end users should submit
bugs/comments/etc, since</p>

<pre><code>$ apt-get install bzr
$ bzr branch http://whatever/remote/repo local_repo
$ cd local_repo
$ be new "The demuxulizer is broken"
Created bug with ID 48f
$ be comment 48f
&lt;Describe bug&gt;
$ bzr send --mail-to "whatever-dev@fancyprojects.com"
</code></pre>

<p>mostly just raises eyebrows among non-devs ;).  My interface replaces
it with</p>

<pre><code>$ cat | mail -s "[be-bug] new" "whatever-dev@fancyprojects.com"
The demuxulizer is broken

&lt;describe bug&gt;
^D
</code></pre>

<p>Which will hopefully be more user friendly.  Of course, most non-devs
I know (and some devs) avoid the command line like the plague, so we
will still want a web-frontend.  Luckily, web frontends seem popular
with other devs, so I don't have to bother with that ;).</p>

<p>Curious parties can branch my public repo:</p>

<pre><code>$ bzr branch http://www.physics.drexel.edu/~wking/code/bzr/be-email be.email
</code></pre>

<p>As a nice side effect of this little project, my
<a href="/~wking/code/python/send_pgp_mime"><code>send_pgp_mime</code></a> is now much more
elegant.</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">In the Beginning was the Command Line</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2009/03/31/index.html#e2009-03-31T15_26_53.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2009/03/31/index.html#e2009-03-31T15_26_53.txt</id>
<published>2009-03-31T15:26:53-05:00</published>
<updated>2009-03-31T15:26:53-05:00</updated>
<category term="Linux" />
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>By Neal Stephenson.  <a href="http://www.cryptonomicon.com/beginning.html">Read it</a>.
It's a bit dated, obviously, after ten years (1999), but the basic ideas are
still on target.  Plus it's a lot of fun ;).</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">Election</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2008/11/04/index.html#e2008-11-04T13_56_05.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2008/11/04/index.html#e2008-11-04T13_56_05.txt</id>
<published>2008-11-04T13:56:05-05:00</published>
<updated>2008-11-04T13:56:05-05:00</updated>
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>While I was waiting in line to vote this morning, a school bus full of
kids drove by.  They were all hanging out the windows on our side of
the bus, chanting “O-bam-a! O-bam-a! …”.  The school bus was actually
shaking as it passed, with all the kids jumping up and down to the
chant.  What a day :p.</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">Vancouver, GROMACS, RasMol, iptables, and org-mode</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2008/08/28/index.html#e2008-08-28T00_17_33.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2008/08/28/index.html#e2008-08-28T00_17_33.txt</id>
<published>2008-08-28T00:17:33-05:00</published>
<updated>2008-08-28T00:17:33-05:00</updated>
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>I was off in the Vancouver area over the last two weeks visiting my
fiancée's family, and I got out of the internet/blogging-zone for a
while.  Now it's time to catch up some ;).</p>

<p>Vancouver was wonderful, as always ;).  Flaky wind gave the advantage
of maneuverability to the canoe navy, but the sunfish's mass held it in
good stead.  Despite much sniping and tactical maneuvering, we all
ended up in the ocean anyway… several times… that's either a win or a
draw, but either way it was a good time :).</p>

<p>Over the weekend I bought a pair of Logitech Quickcam for Notebooks
(046d:08dd) so I could video-<code>skype</code> with my fiancée while we're apart
for a bit.  Like a
<a href="http://backports.ubuntuforums.com/showthread.php?t=478890">bunch</a> of
<a href="http://forums.quickcamteam.net/archive/index.php/thread-22.html">other</a>
<a href="http://ubuntuforums.org/showthread.php?t=651375&amp;page=3">people</a>, I
didn't realize that this version of “Logitech Quickcam for Notebooks”
was not particularly well supported on Linux, since the <em>earlier</em>
version of “Logitech Quickcam for Notebooks” is.  Since then I've been
running around on my not-to-easy-to-get-source-for
<a href="http://eeepc.assus.com/global/">EeePC</a>, wring to compile and install
<a href="http://mxhaard.free.fr/">Michel Xhaard's gspca drivers</a>.</p>

<p><code>&lt;rant&gt;</code></p>

<p>Which is not difficult once you've removed the unionfs junk
the EeePC comes with, cleared out a bunch of space, installed the
necessary build tools, and generally manhandled your EeePC into
something resembling a sane distributions basic installation.  Oh, and
you'll need a nice external drive, since it's hard to compile a 400 MB
kernel in the 150 MB of headroom I had left on my 2 GB Surf after I'd
installed those, and emacs, and a few other fun toys :p.</p>

<p>And after I had installed the drivers and had <code>xawtv</code> working fine
with the camera, the problems weren't over, since <code>skype</code> pretty much
pegs my CPU, which often causes the video to lock…  Sigh…</p>

<p><code>&lt;/rant&gt;</code></p>

<p>Upon my return to work, Marisa expressed interest in the
<a href="http://www.gromacs.org/">GROMACS</a> Molecular Dynamics simulation
software, so we installed in on our cluster and spent Monday learning
the ropes.  Things seem to be going smoothly so far, although we're
not sure if our nominally MPI-enabled <code>mdrun</code> is actually using more
than one node, since I haven't found anyone using GROMACS over PBS via
our <a href="http://www.osc.edu/~pw/mpiexec/">mpiexec</a> (see (Kristina Wanous'
note on
<a href="http://debianclusters.cs.uni.edu/index.php/MPICH:_Pick_Your_Paradigm">debianclusters</a>).
We'll run some scaling benchmarks soon to convince ourselves that
GROMACS is indeed using MPI.</p>

<p>We also ran into some difficulty running the default Debian-packaged
<a href="http://rasmol.org/">RasMol</a> through a SSH tunneled X server.  No
problem, says I, we'll use <a href="http://cern.ch/lionel.cons">Lionel Cons</a>'
<a href="http://cern.ch/mxconns/">mxconns</a>, which I had run across earlier
while trying to set up a cluster-wide X port for running MPE.
However, <code>rasmol</code> somehow manages to lock up so hard that it freezes
the whole X server, right through <code>mxconns</code> and the SSH tunnel!  I
didn't even think that was possible.  The current workaround is to run
<code>rasmol</code> on your own machine ;).</p>

<p>While discussing the cluster, Marisa pointed out the usefulness of
<code>iptables</code> or some sort of firewall on the cluster.  I had just
assumed it was already behind a conservative router.  Stupid
assumption.  I spent most of Tuesday jumping between the Rasmol X-lock
and figuring out how iptables works, and locking out my ssh connection
a few times.  After an embarassing number of trips down to the cluster
room to clear my bad rules, I believe I have things straightened out
now.  Mostly following the <a href="http://www.pearsonhighered.com/educator/academic/product/0,3110,0131480049,00.html">Linux Administration
Handbook</a>.</p>

<p>Today I finally got back to work on testing my simulation, and broke
down and installed <a href="http://orgmode.org/">org-mode</a> for emacs.  I think
I'm in love ;).  See, for example, <a href="http://newartisans.com/">John
Wiegley</a>'s 's blog on using <a href="http://newartisans.com/blog_files/org.mode.day.planner.php">org-mode as a
day
planner</a>.</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">Math</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2008/08/07/index.html#e2008-08-07T02_13_59.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2008/08/07/index.html#e2008-08-07T02_13_59.txt</id>
<published>2008-08-07T02:13:59-05:00</published>
<updated>2008-08-07T02:13:59-05:00</updated>
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>I've had a few students confused by this sort of "<a href="http://www.abstractmath.org/MM/MMZoomChunk.htm">zooming and
chunking</a>" approach to
analyzing functions specifically, and technical problems in general,
so I'll pass the link on in case you're interested.  Curtesy of
Charles Wells.</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">Funnies</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2008/08/07/index.html#e2008-08-07T01_13_10.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2008/08/07/index.html#e2008-08-07T01_13_10.txt</id>
<published>2008-08-07T01:13:10-05:00</published>
<updated>2008-08-07T01:13:10-05:00</updated>
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Arjendu at <a href="http://arjendu.wordpress.com/">Confused at a higher level</a>
pointed out <a href="http://www.mcsweeneys.net/links/lists/physical.html">physical theories as
women</a>, which
lead me <a href="http://www.mcsweeneys.net/links/lists/">here</a>.  Good stuff.</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">Colorado</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2008/08/06/index.html#e2008-08-06T22_52_12.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2008/08/06/index.html#e2008-08-06T22_52_12.txt</id>
<published>2008-08-06T22:52:12-05:00</published>
<updated>2008-08-06T22:52:12-05:00</updated>
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Oh, I should explain the lack of postings over the last two weeks.
During the first part, I was developing some explainatory graphs to
test my tension balancing implementation (fun, fun :p), and during the
second part, I was hanging out with my Mom, Aunt, sister, and neice in
Estes Park, CO.  Mom moved out there a few years back, and it's a very
nice place to go visit.</p>

<p>The cinematic highlight was a 2-day 1-night hike in <a href="http://www.nps.gov/romo">Rocky Mtn Nat'l
Park</a>.  I stayed in <a href="http://www.physics.drexel.edu/~wking/personal/pics/2008_rmnp/15-campsite_hayden_gorge.jpg">Hayden
Gorge</a>,
and this was my first explicit-bushwhacking trip.  It's maybe 8 miles
in from Bear Lake, which took me around 11 hours, and 3 miles out to
Trail Ridge Road which took about 10 hours :p.  Take a look at <a href="http://www.nps.gov/romo/planyourvisit/upload/detailedmap.pdf">this
deceptivly non-topographic
map</a>.
The hike up to Trail Ridge from the bottom of Forest Canyon is up a
mile in a mile, and it's about a third each of pushing through dense
forest, bouldering, and open hiking.  Took me about 7 hours, and I
ripped the sleeve off my shirt :p.  Had a good time though :).  I've
zipped up the <a href="http://www.physics.drexel.edu/~wking/personal/pics/2008_rmnp/hike.zip">other pictures</a> if you're interested.</p>

<p>Besides hiking, I cooked with Mom, talked about people's views on
homosexuality with my sister, defended my stuff from my niece, hung
out with my Aunt and the dogs, and learned a lot of family history :).
Good times.</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">The devil is in the details</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2008/07/03/index.html#e2008-07-03T12_19_34.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2008/07/03/index.html#e2008-07-03T12_19_34.txt</id>
<published>2008-07-03T12:19:34-05:00</published>
<updated>2008-07-03T12:19:34-05:00</updated>
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>I can't find the article, and I can't read Hungarian, but how crazy is
<a href="http://www.ncbi.nlm.nih.gov/pubmed/6936265">this</a>.</p>

<p>I turned it up while searching PubMed for the bibtex citation for Szabo's 1980
mean first passage time article, since I don't really understand what the MFPT
fuss is all about.  No luck with the citation though, so I'll just have to use
J. Chem. Phys.'s website directly :p.</p>]]>
</div>
</content>

</entry>
<entry>
<title type="html">Optimizing your wife</title>
<author>
<name>Trevor</name>
</author>
<link rel="alternate" type="text/html" href="http://www.physics.drexel.edu/~wking/blog/archives/2008/06/29/index.html#e2008-06-29T15_25_44.txt"/>
<id>http://www.physics.drexel.edu/~wking/blog/archives/2008/06/29/index.html#e2008-06-29T15_25_44.txt</id>
<published>2008-06-29T15:25:44-05:00</published>
<updated>2008-06-29T15:25:44-05:00</updated>
<category term="Fun" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p><a href="http://www.mathpages.com/home/kmath018.htm">This</a> is what they should be teaching in undergrad statistics.
I love math :p.
Of course, I haven't been following their advice either...</p>]]>
</div>
</content>

</entry>

</feed>

