<?xml version="1.0"?>
<rss version="2.0.">
  <channel>
    <title>Advogato blog for johnnyb</title>
    <link>http://www.advogato.org/person/johnnyb/</link>
    <description>Advogato blog for johnnyb</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Fri, 16 May 2008 14:36:06 GMT</pubDate>
    <item>
      <pubDate>Tue, 15 Apr 2008 03:37:03 GMT</pubDate>
      <title>15 Apr 2008</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=185</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=185</guid>
      <description>Grrrr.....&#xD;
&#xD;
&lt;p&gt; I broke down and bought iShowU because of great reviews. &#xD;
However, due to what the author claims is a Quicktime Bug,&#xD;
the application quit after I had spent OVER AN HOUR&#xD;
recording video.  The whole point of getting iShowU was to&#xD;
do painless training sessions when I had time (like in the&#xD;
evening) and then distribute them.  But instead of saving&#xD;
time, I just wasted MY WHOLE FREAKIN NIGHT!  &#xD;
&#xD;
&lt;p&gt; It's not that the file is gone - I have all 114MB.  However,&#xD;
according to the author of the software, it is UNUSABLE.  AHH!&#xD;
&#xD;
&lt;p&gt; I'm about to smack my head against several walls.  I had&#xD;
finally gotten to what I thought was a manageable amount of&#xD;
work, and then I get whacked by this application, and now&#xD;
I'm way behind, yet again, and lost my whole evening (I had&#xD;
spent over an hour preparing for the screencast, and had&#xD;
stopped half way through my first take to do it better,&#xD;
too).  &#xD;
&#xD;
&lt;p&gt; That's $20 and a whole evening I will never see again.</description>
    </item>
    <item>
      <pubDate>Tue, 11 Mar 2008 16:04:09 GMT</pubDate>
      <title>11 Mar 2008</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=184</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=184</guid>
      <description>Do not ever do business with &lt;b&gt;InternetSecure&lt;/b&gt;.  Ever.&#xD;
&#xD;
&lt;p&gt; I've been trying to get a stupid site linked up with them&#xD;
for weeks.  ABSOLUTELY INFURIATING!&#xD;
&#xD;
&lt;p&gt; I've linked up sites with Authorize.net, YourPay/LinkPoint,&#xD;
and a number of other gateways, using a number of languages,&#xD;
and so on and so forth.  InternetSecure advertises itself as&#xD;
being a drop-in replacement for Authorize.net.  All I can&#xD;
say is that is COMPLETE B.S.!&#xD;
&#xD;
&lt;p&gt; It is _not_ a drop-in replacement for Authorize.net.  For&#xD;
example, I was using ActiveMerchant in Ruby-on-Rails.  Well,&#xD;
ActiveMerchant makes use of the 'encap' parameter for&#xD;
authorize.net.  But guess what, InternetSecure ignores it! &#xD;
Also, the code I was using simply transmitted card&#xD;
information.  This is fine for every gateway I've ever used.&#xD;
 But guess what - InternetSecure doesn't support that! &#xD;
Again, it is NOT IN ANY WAY a drop-in replacement for&#xD;
authorize.net.&#xD;
&#xD;
&lt;p&gt; Then they have developers jump through hoops to get&#xD;
certified on their system.  Just a horrendous group to do&#xD;
business with.  &#xD;
&#xD;
&lt;p&gt; Again, despite what they tell you, it is NOT a drop-in&#xD;
replacement for authorize.net.</description>
    </item>
    <item>
      <pubDate>Thu, 27 Dec 2007 23:12:47 GMT</pubDate>
      <title>27 Dec 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=183</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=183</guid>
      <description>&lt;b&gt;Do not EVER use Network Solutions&lt;/b&gt;&#xD;
&#xD;
&lt;p&gt; Okay, I've finally had it.  I am vowing never to use Network&#xD;
Solutions again.  I've put up with their crap for years&#xD;
because they made it easy to delegate management of their&#xD;
domains, but now I am freaking irate because of their&#xD;
hideous incompetence.&#xD;
&#xD;
&lt;p&gt; Apparently, when you transfer a domain to&#xD;
networksolutions.com they feel free to host their own web&#xD;
page on your domain for you.  That's right, I just&#xD;
transferred two of our customer's domains to them, and what&#xD;
shows up today?  A network solutions logo with one of their&#xD;
idiotic domain parking pages.  I went in and set the DNS to&#xD;
point to the right place using THEIR OWN management tool.  I&#xD;
then did a dig directly on the DNS server assigned to me. &#xD;
Guess what?  NO CHANGE.  Four hours later, still no change&#xD;
-- their DNS servers are still reporting their own&#xD;
informercial site as being our website.&#xD;
&#xD;
&lt;p&gt; This, along with their DNS admin tool being trash (doesn't&#xD;
even support TXT records -- how do you do SPF records and&#xD;
the like without TXT records?), has finally convinced me to&#xD;
find someone else for a registrar -- Network Solutions is&#xD;
terrible.</description>
    </item>
    <item>
      <pubDate>Thu, 27 Dec 2007 17:50:43 GMT</pubDate>
      <title>27 Dec 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=182</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=182</guid>
      <description>&lt;b&gt;Setting wmode to transparent on Yahoo! Maps&lt;/b&gt;&#xD;
&#xD;
&lt;p&gt; Unfortunately, if you need to overlay something on top of&#xD;
Yahoo! maps, it won't let you, because you can't change the&#xD;
wmode of the flash to "transparent".  IN order to fix this,&#xD;
you have to do a small hack of the Yahoo! Maps API.  If you&#xD;
want to set the wmode of Yahoo! Maps to transparent, insert&#xD;
the following code before you create a map, but after you&#xD;
load the Yahoo API:&#xD;
&#xD;
&lt;p&gt; &lt;pre&gt;&#xD;
  //UGLY HACK TO FIX WMODE&#xD;
  FlashTag.prototype.toStringOrig = FlashTag.prototype.toString&#xD;
  FlashTag.prototype.toString = function() {&#xD;
    this.setWmode('transparent');&#xD;
    return this.toStringOrig();&#xD;
  }&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; This modifies the flash tag creation to set the wmode&#xD;
immediately before rendering the tag.</description>
    </item>
    <item>
      <pubDate>Mon, 15 Oct 2007 17:26:46 GMT</pubDate>
      <title>15 Oct 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=181</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=181</guid>
      <description>Lots of new projects for Ruby on Rails and/or just Ruby:&#xD;
&#xD;
&lt;p&gt; As I mentioned earlier, I launched &lt;a&#xD;
href="http://code.google.com/p/activeshipping/"&gt;ActiveShipping&lt;/a&gt;&#xD;
which can be used either with Rails or by itself.&#xD;
&#xD;
&lt;p&gt; If you ever wanted an easy way to write forms for which&#xD;
portions appear/disappear based on the results of a&#xD;
drop-down box, I have a Rails plugin called Applicability:&#xD;
&#xD;
&lt;p&gt; &lt;a&#xD;
href="http://code.google.com/p/applicability/wiki/BasicSummary"&gt;http://code.google.com/p/applicability/wiki/BasicSummary&lt;/a&gt;&#xD;
&#xD;
&lt;p&gt; If you ever wanted an easy way to do client-side tabbed&#xD;
panels, I now introduct RailsTabbedPanel:&#xD;
&#xD;
&lt;p&gt; &lt;a&#xD;
href="http://code.google.com/p/railstabbedpanel/wiki/BasicSummary"&gt;http://code.google.com/p/railstabbedpanel/wiki/BasicSummary&lt;/a&gt;&#xD;
&#xD;
&lt;p&gt; Neither of these require you to manage Javascript yourself&#xD;
-- it handles all of the Javascript generation for you in a&#xD;
clean manner.  You can even have multiple tabbed panels and&#xD;
multiple applicability containers together, and nested.</description>
    </item>
    <item>
      <pubDate>Tue, 25 Sep 2007 18:15:27 GMT</pubDate>
      <title>25 Sep 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=180</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=180</guid>
      <description>&lt;b&gt;Everything Going Wrong at Once&lt;/b&gt;&lt;br /&gt;also known as&lt;br &#xD;
/&gt;&lt;b&gt;Shared memory problems on Postgres Bootup&lt;/b&gt;&#xD;
&#xD;
&lt;p&gt; Okay, so here's the deal.  I am back in school getting a Master's in Theology.  &#xD;
So, on Tuesdays I am at the seminary.  I have one class that I need to be at &#xD;
the seminary during the day for - it's from 12:10PM to 1:15PM.  So, I just &#xD;
bring all my work there and just work from the seminary for the day, and go &#xD;
to the class at lunch.&#xD;
&#xD;
&lt;p&gt; Today, at 11:30, my crew told me that one of our servers was very slow.  At &#xD;
11:50, the wireless internet at the seminary went out.  At noon, I decided to &#xD;
use the bluetooth networking on my phone.  I discover, to my horror, that the &#xD;
machine is completely down.  I can't ssh in or anything.  I call the other guys &#xD;
in the department --- oops, making a phone call disconnects my Internet &#xD;
access.  We figured out it was a memory overcommit problem.  I called our &#xD;
ISP and had them reboot the box.  It comes up to a shell, and I can log in &#xD;
remotely.  However, every page is erroring out because of the database.&#xD;
&#xD;
&lt;p&gt; And then...&#xD;
&#xD;
&lt;p&gt; The database just won't start.  I try it again and again.  The error log says: &#xD;
&#xD;
&lt;p&gt; &lt;tt&gt;FATAL:  pre-existing shared memory block (key 5432001, ID 7667712) &#xD;
is still in use&lt;br /&gt;&#xD;
HINT:  If you're sure there are no old server processes still running, remove &#xD;
the shared memory block with the command "ipcclean", "ipcrm", or just &#xD;
delete the file "postmaster.pid".  &lt;/tt&gt;&#xD;
&#xD;
&lt;p&gt; I look using ipcs, and postgres doesn't have any shared memory blocks (and &#xD;
it shouldn't -- we just restarted).  I tried upping shmmax.  No go.  I tried &#xD;
lowering shared memory buffer usage.  No go.  What is wrong with the &#xD;
system?&#xD;
&#xD;
&lt;p&gt; It turns out, Apache was using one of Postgresql's shared memory blocks.  &#xD;
ipcs just showed Apache.  So, I turned off Apache, and then turned on &#xD;
Postgresql.  Viola!  It worked!  Then apache started just fine.  The only thing I &#xD;
can think of is that Apache chooses its block randomly, and it just happened &#xD;
to hit Postgres's this time.&#xD;
&#xD;
&lt;p&gt; So, by the end of all of this, it's 12:45 (too late to go to class -- I've missed &#xD;
the entire reason for being at seminary during the day), and then 5 minutes &#xD;
later the wireless comes back on.&#xD;
&#xD;
&lt;p&gt; Whew!  What an hour!</description>
    </item>
    <item>
      <pubDate>Tue, 11 Sep 2007 21:46:37 GMT</pubDate>
      <title>11 Sep 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=179</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=179</guid>
      <description>&lt;a href="http://blog.nicksieger.com/articles/2007/09/04/warbler-a-little-&#xD;
birdie-to-introduce-your-rails-app-to-java" &gt;warbler&lt;/a&gt; is awesome -- it &#xD;
allows you to _easily_ make Ruby-&#xD;
on-Rails applications Jruby-ish, and war'd up to deploy in a container.  Here &#xD;
are the instructions for setting this up under JBoss, but except for the last &#xD;
step, should run under any standard Java web container.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Here's the steps:&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; 1) install jruby&#xD;
2) install warbler&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; jruby --command gem install warbler&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; 3) Do config&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; jruby --command warble config&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; This creates a file called config/warble.rb which can be used to add &#xD;
gems and &#xD;
other configuration goodness.  &#xD;
&#xD;
&lt;p&gt; &lt;p&gt; 4) If you're going to use ActiveRecord-jdbc, then following these &#xD;
instructions:&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Download ActiveRecord/JDBC.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Install ActiveRecord-jdbc:&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;pre&gt;&#xD;
jruby --command gem install /path/to/ActiveRecord-jdbc-0.5.gem&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Add this gem to warble.rb:&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;pre&gt;&#xD;
config.gems &amp;lt;&amp;lt; 'ActiveRecord-JDBC'&#xD;
config.gems &amp;lt;&amp;lt; 'jruby-openssl'     #not required makes other things &#xD;
easier&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Add the following lines to environment.rb:&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;pre&gt;&#xD;
if RUBY_PLATFORM =~ /java/&#xD;
  require 'rubygems'&#xD;
  RAILS_CONNECTION_ADAPTERS = %w(jdbc)&#xD;
end   &#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; If you are connecting straight to a PostgreSQL database, you can just &#xD;
include &#xD;
the postgres-pr gem in your warble.rb file, and keep your &#xD;
&lt;tt&gt;database.yml&lt;/tt&gt; file normal.  If you are using JDBC, following the &#xD;
latest tips for that (it seems to change) for configuring &#xD;
&lt;tt&gt;database.yml&lt;/tt&gt;.  If you are using a JNDI connection, then specify it &#xD;
like this:&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;pre&gt;&#xD;
production:&#xD;
  adapter: jdbc&#xD;
  jndi: java:putyourjndipathhere&#xD;
&lt;/pre&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Configuring your datasource in JNDI is up to you :)&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; 5) Warble it&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; jruby --command warble&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; 5) Deploy it&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; cp yourfile.war /path/to/jboss/deploy&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; The only problem I have right now is that on every request it generates &#xD;
a &#xD;
warning message about having to close my connection for me.  I'm not sure if &#xD;
that's a warble config thing or a Postgres thing or a JRuby thing or a JDBC &#xD;
thing.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; I hope I didn't leave anything out :)&amp;lt;/pre&amp;gt;</description>
    </item>
    <item>
      <pubDate>Fri, 31 Aug 2007 04:12:41 GMT</pubDate>
      <title>31 Aug 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=178</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=178</guid>
      <description>Been experimenting with evidence-based medical search and&#xD;
building medical systematic-reviews.  Playing with a format&#xD;
for entering and viewing stuff.  The first thing I did was&#xD;
put in some of the data for a systematic review of &lt;a&#xD;
href="http://evidencedev.docvia.com/site/docvia/sysrev_review/1"&gt;Surgery&#xD;
as a therapy for sciatica&lt;/a&gt;, which includes &lt;a&#xD;
href="http://evidencedev.docvia.com/site/docvia/sysrev_summary/1"&gt;an&#xD;
evidence summary&lt;/a&gt; and a &lt;a&#xD;
href="http://evidencedev.docvia.com/site/docvia/sysrev_query/1"&gt;pubmed&#xD;
query&lt;/a&gt;.&#xD;
&#xD;
&lt;p&gt; In case your curious, there is evidently no evidence that&#xD;
surgery does better than conservative therapy.&#xD;
&#xD;
&lt;p&gt; Another review I put in was one for &lt;a&#xD;
href="http://evidencedev.docvia.com/site/docvia/sysrev_review/2"&gt;saw&#xD;
palmetto as a therapy for BPH&lt;/a&gt;.  &#xD;
&#xD;
&lt;p&gt; Rather than finding no evidence for effectiveness, they&#xD;
found &lt;a&#xD;
href="http://evidencedev.docvia.com/site/docvia/sysrev_summary/2"&gt;evidence&#xD;
for ineffectiveness of saw palmetto&lt;/a&gt;.&#xD;
&#xD;
&lt;p&gt; This had &lt;a&#xD;
href="http://evidencedev.docvia.com/site/docvia/sysrev_study/19"&gt;one&#xD;
decent study&lt;/a&gt; out of &lt;a&#xD;
href="http://evidencedev.docvia.com/site/docvia/sysrev_query/3"&gt;this&#xD;
list of studies&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Fri, 24 Aug 2007 12:10:36 GMT</pubDate>
      <title>24 Aug 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=177</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=177</guid>
      <description>Been working on some stuff for &lt;a href="http://evidencedev.docvia.com/" &gt;Evidence-based health search&lt;/a&gt;.  &#xD;
It's still under development.</description>
    </item>
    <item>
      <pubDate>Wed, 22 Aug 2007 15:47:55 GMT</pubDate>
      <title>22 Aug 2007</title>
      <link>http://www.advogato.org/person/johnnyb/diary.html?start=176</link>
      <guid>http://www.advogato.org/person/johnnyb/diary.html?start=176</guid>
      <description>&lt;b&gt;Announcing: ActiveShipping for Ruby and/or Rails&lt;/b&gt;&#xD;
&#xD;
&lt;p&gt; I just got the initial version of ActiveShipping ready to go.  ActiveShipping is a &#xD;
new shipping API for ruby based on projects that my company is developing &#xD;
internally.&#xD;
&#xD;
&lt;p&gt; Google Code Page:&#xD;
&#xD;
&lt;p&gt; http://code.google.com/p/activeshipping/&#xD;
&#xD;
&lt;p&gt; ActiveShipping Documentation:&#xD;
&#xD;
&lt;p&gt; http://dev.newmedio.com/activeshippingdocs/&#xD;
&#xD;
</description>
    </item>
  </channel>
</rss>
