<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7927933726896813149</id><updated>2025-10-05T12:07:50.612-05:00</updated><category term="ubuntu"/><category term="Blackberry"/><category term="linux"/><category term="KDE"/><category term="SQL"/><category term="java"/><category term="oracle"/><category term="performance"/><category term="printing"/><category term="queries"/><category term="8800"/><category term="8830"/><category term="88xx"/><category term="9000"/><category term="AD"/><category term="Active Directory"/><category term="Blackberry IMAP"/><category term="Blackberry email account"/><category term="IIS"/><category term="MPEG4"/><category term="PPTP"/><category term="Small Business Server"/><category term="Sprint"/><category term="Sprint Support"/><category term="Thunderbird"/><category term="VPN"/><category term="address"/><category term="automation"/><category term="awk script"/><category term="blackberry bold"/><category term="blogger"/><category term="blogger.com"/><category term="bold"/><category term="cassandra"/><category term="categories"/><category term="civicminded hackathon ccmn13 opengov"/><category term="command line"/><category term="cqlsh"/><category term="cups"/><category term="decrypt"/><category term="dia"/><category term="eclipse"/><category term="email"/><category term="exchange"/><category term="export"/><category term="export imovie blackberry bold"/><category term="exporting"/><category term="file formats"/><category term="find class in jar"/><category term="frustrating"/><category term="gdata"/><category term="google"/><category term="google API"/><category term="hacking"/><category term="hardy"/><category term="iMovie"/><category term="imovie export blackberry"/><category term="import java class"/><category term="jar files"/><category term="javahl"/><category term="jdbcmysql"/><category term="jruby"/><category term="keyboard"/><category term="labels"/><category term="ldap"/><category term="ldapsearch"/><category term="lock"/><category term="log file"/><category term="lpq"/><category term="lpr"/><category term="mac osx"/><category term="mavericks"/><category term="memory"/><category term="mongrel"/><category term="monitoring"/><category term="mysql"/><category term="netatalk"/><category term="open links in Chrome"/><category term="openVPN"/><category term="parsing"/><category term="python"/><category term="ruby"/><category term="runtastic"/><category term="sbserver"/><category term="segmentation fault"/><category term="shell scripting"/><category term="shortcuts"/><category term="simple shell loop"/><category term="sparsebundle"/><category term="sqldeveloper"/><category term="sqlite3"/><category term="squirrel"/><category term="squirrel crash"/><category term="squirrel not starting"/><category term="strava"/><category term="svn"/><category term="tags"/><category term="tcx"/><category term="time machine"/><category term="unzip"/><category term="video"/><category term="winzip"/><category term="xml editor linux"/><category term="zip"/><title type='text'>What I Learned Today</title><subtitle type='html'>Technical details for you to use, and views on technology</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.takechances.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-2144832555988931031</id><published>2015-10-16T11:25:00.000-05:00</published><updated>2015-10-16T11:25:10.342-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="automation"/><category scheme="http://www.blogger.com/atom/ns#" term="hacking"/><category scheme="http://www.blogger.com/atom/ns#" term="runtastic"/><category scheme="http://www.blogger.com/atom/ns#" term="strava"/><category scheme="http://www.blogger.com/atom/ns#" term="tcx"/><title type='text'>Extract my data from runtastic and upload to strava</title><content type='html'>&lt;h2&gt;
Background&lt;/h2&gt;
So I started using &lt;a href=&quot;https://www.strava.com/&quot; target=&quot;_blank&quot;&gt;Strava&lt;/a&gt; a few months ago after one of the super nice employees at &lt;a href=&quot;https://www.google.com/maps/place/Sunlight+Ski+%26+Bike+Shop/@39.5455981,-107.3262637,17z/data=!3m1!4b1!4m2!3m1!1s0x874109bd68c0d16d:0x40fbce7401eb2a7f&quot; target=&quot;_blank&quot;&gt;Sunlight Bike Shop in Glenwood Springs, CO&lt;/a&gt; showed me some local routes on his phone (he also owned a big dummy). He was using Strava and it looked really nice.&lt;br /&gt;
&lt;br /&gt;
I had been having some problems with &lt;a href=&quot;https://www.runtastic.com/&quot; target=&quot;_blank&quot;&gt;Runtastic RoadBike Pro&lt;/a&gt;, where it was slowing down every time I saved a new activity. It was so bad that it was taking 2 minutes to save anything, so I was already looking for a better solution.&lt;br /&gt;
&lt;br /&gt;
I really like Strava and have been looking for ways to get the past 3 years of my data out of Runtastic, with limited results. This was the easiest way I could figure out how to do this. I did see some &lt;a href=&quot;https://gist.github.com/khal3d/7560264&quot; target=&quot;_blank&quot;&gt;JS scripts&lt;/a&gt;&amp;nbsp;and &lt;a href=&quot;http://scyther-bladez.com/how-to-export-runtastic-data/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; to get the files out of the runtastic UI, but I didn&#39;t want to click the &quot;OK&quot; button to download 275 TCX files.&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Disclaimer and high level overview&lt;/span&gt;&lt;/h3&gt;
This is not for non-technical folk, you will be extracting an encrypted backup from your phone, unencrypting it, finding the sqlite DB, getting some data out of the DB, extracting your session cookie from runtastic after logging in with your browser, getting the files using curl, slicing them up into directories with 25 or less TCX files, then uploading them to Strava.&lt;br /&gt;
&lt;br /&gt;
Overall you should expect to spend 1-2 hours, but the end result is all of your data will be in one place!&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;My setup is as follows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Nexus 6 with the Runtastic Roadbike APP installed, and all of the activities downloaded&lt;/li&gt;
&lt;li&gt;Ubuntu laptop running 15.10 (I&#39;m sure any recent version is fine, or any other linux or Mac)&lt;/li&gt;
&lt;li&gt;adb installed (sudo apt-get install android-tools-adb)&lt;/li&gt;
&lt;li&gt;ant installed (sudo apt-get install ant)&lt;/li&gt;
&lt;li&gt;sqlite installed (sudo apt-get install sqlite)&lt;/li&gt;
&lt;li&gt;openjdk 8 installed (sudo apt-get install&amp;nbsp;openjdk-8-jdk)&lt;/li&gt;
&lt;li&gt;USB cable&lt;/li&gt;
&lt;li&gt;Developer options turned on&amp;nbsp;&lt;/li&gt;
&lt;li&gt;USB debugging enabled&lt;/li&gt;
&lt;li&gt;Authorized my computer to USB debug my phone&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
Instructions&lt;/h2&gt;
Here are some (mostly) step by step instructions, although this does assume that you have a few things installed (or can install them) and are running on a linux machine with a USB cable to your phone.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Extract the DB from your phone, my phone required setting a password.&lt;/span&gt;&lt;/h4&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; adb backup -f runtastic-data.ab -noapk &#39;com.runtastic.android.roadbike.pro&#39;  
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Unencrypt the backup&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
I used https://github.com/nelenkov/android-backup-extractor for this. The ant build was the easiest, and the openJDK 8 already had the encryption libs that are referenced. Just edit the build.xml file, change it to the version you have and type &#39;ant&#39;.&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; ABE_PASSWD=&amp;lt;your password&amp;gt; java -jar abe.jar unpack ../runtastic-data.ab ../runtastic-data.tar  
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Get all of your IDs from the runtastic DB from your phone&lt;/span&gt;&lt;/h4&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; sqlite3 runtastic.sqlite &#39;select serverSessionID from session where serverSessionID &amp;lt;&amp;gt; -1 order by startTime&#39; &amp;gt; runtastic-ids.txt  
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;
Login to runtastic&lt;/span&gt;&lt;/h4&gt;
Pull your cookie from a request to their site. Put it in an ENV variable for the download script.&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; export RT_COOKIE=&#39;Cookie:&amp;lt;the whole thing pulled from a GET request&#39;  &lt;/code&gt;&lt;/pre&gt;
Get your username and set that in another ENV variable. Your username is in the URL right after &#39;/users/&#39;. Mine was &quot;Torleiv-Flatebo&quot;&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; export RT_NAME=&quot;Torleiv-Flatebo&quot;  
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;
Runtastic Download Script&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
Save the below into a file called runtastic-download-script.sh&lt;/div&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; curl -s -w &quot;%{filename_effective} %{http_code}\n&quot; -O -J &quot;https://www.runtastic.com/en/users/$RT_NAME/sport-sessions/$1.tcx&quot; -H &quot;$RT_COOKIE&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;
The magic happens&lt;/span&gt;&lt;/h4&gt;
Cat out the IDs and run the download script, watch as each file is downloaded. It took about 5-10 minutes to get all of my 275 activities.&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; mkdir tcx
 cd tcx
 cat ../runtastic-ids.txt | xargs -n 1 sh ../runtastic-download-script.sh   
 runtastic_20120628_1755_Race Cycling.tcx 200  
 runtastic_20120630_1106_Race Cycling.tcx 200  
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;
Prep files for upload to Strava (optional if more than 25 activities)&lt;/span&gt;&lt;/h4&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1oh0V71aZKuH3flP2-jT7Ym_jDSDTlZsGq1-0mlAYEaGSSkt3BLITlsPKhnS_Egq1bPxsKQRwUI9VnBoqixrQUB6OUYxsEi08u4puP3tH_UaCgD5waROVzcvbaCNiAJqfDdWgPrMdv2j/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; mkdir 1 2 3 4 5 6 7 8 9 10 11  
 ls -1 *.tcx | head -25 | sed &#39;s/.*/&quot;&amp;amp;&quot;/&#39; | xargs -n1 mv -t 1  
 ls -1 *.tcx | head -25 | sed &#39;s/.*/&quot;&amp;amp;&quot;/&#39; | xargs -n1 mv -t 2  
 etc.  
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;
Upload to Strava&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
Now you have all of the tcx files, you can upload them to strava using their website. You are limited to 25 files per upload, so I just put them all in separate dirs (see above).&lt;br /&gt;
&lt;br /&gt;
I only had about 275 tcx files, so I figured it would be easier to use their UI, since you can tag and edit the activities in a screen after you select 25 of the files. For me I like to tag the activities to be a commute, or pick the bike that I am using for that ride, so their UI was preferable.&lt;br /&gt;
&lt;br /&gt;
If you have more activities from runtastic you can use their API to upload.&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;
Resources&lt;/span&gt;&lt;/h3&gt;
&amp;nbsp; 1 &lt;a href=&quot;http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html&quot;&gt;http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; 2 &lt;a href=&quot;http://nelenkov.blogspot.jp/2012/06/unpacking-android-backups.html&quot;&gt;http://nelenkov.blogspot.jp/2012/06/unpacking-android-backups.html&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; 3 &lt;a href=&quot;https://github.com/nelenkov/android-backup-extractor&quot;&gt;https://github.com/nelenkov/android-backup-extractor&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/2144832555988931031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/2144832555988931031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2144832555988931031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2144832555988931031'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2015/10/extract-my-data-from-runtastic-and.html' title='Extract my data from runtastic and upload to strava'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18365773984575027511</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-8948547287844840295</id><published>2014-03-02T09:32:00.001-06:00</published><updated>2014-03-02T10:04:30.512-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cassandra"/><category scheme="http://www.blogger.com/atom/ns#" term="cqlsh"/><category scheme="http://www.blogger.com/atom/ns#" term="mavericks"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="segmentation fault"/><title type='text'>Cassandra: &#39;Segmentation fault: 11&#39; when trying to run any command in cqlsh</title><content type='html'>Trying to get cassandra running on my Mavericks laptop, I ran into an issue right away. Other posts mentioned JVM versions, but I upgraded that and made sure my brew stuff was all up to date.&lt;br /&gt;
&lt;br /&gt;
There were no errors at all in the cassandra server logs, so I figured it must be something with Python, since cqlsh was running inside of Python.&lt;br /&gt;
&lt;br /&gt;
Any time I would run a command (other than help) in cqlsh, I would get a &quot;Segmentation fault: 11&quot;, with this in the details:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Process:         Python [35348]
Path:            /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         2.7.3 (2.7.3)
&amp;lt;snip&amp;gt;
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;b&gt;This turned out to be a bug in Python &amp;lt; 2.7.6. An upgrade to&amp;nbsp;&lt;a href=&quot;http://python.org/&quot;&gt;Python&lt;/a&gt;&amp;nbsp;2.7.6 solved the issue.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A note on Python&#39;s site referred to&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #666666; font-family: SourceSansProRegular, Arial, sans-serif; font-size: 17px; line-height: 28.4765625px;&quot;&gt;Python 2.7.6 was released on November 10, 2013. This is a 2.7 series bugfix release. Most importantly, it resolves&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;reference external&quot; href=&quot;http://bugs.python.org/issue18458&quot; style=&quot;-webkit-tap-highlight-color: rgb(30, 41, 51); background-color: #f9f9f9; border-bottom-color: rgb(255, 223, 118); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #3776ab; display: inline; font-family: SourceSansProRegular, Arial, sans-serif; font-size: 17px; line-height: 28.4765625px; text-decoration: none;&quot;&gt;an issue&lt;/a&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #666666; font-family: SourceSansProRegular, Arial, sans-serif; font-size: 17px; line-height: 28.4765625px;&quot;&gt;&amp;nbsp;that caused the interactive prompt to crash on OS X 10.9. It also includes&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;reference external&quot; href=&quot;http://hg.python.org/cpython/raw-file/99d03261c1ba/Misc/NEWS&quot; style=&quot;-webkit-tap-highlight-color: rgb(30, 41, 51); background-color: #f9f9f9; border-bottom-color: rgb(255, 223, 118); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #3776ab; display: inline; font-family: SourceSansProRegular, Arial, sans-serif; font-size: 17px; line-height: 28.4765625px; text-decoration: none;&quot;&gt;numerous bugfixes&lt;/a&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #666666; font-family: SourceSansProRegular, Arial, sans-serif; font-size: 17px; line-height: 28.4765625px;&quot;&gt;&amp;nbsp;over 2.7.5.&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/8948547287844840295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/8948547287844840295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8948547287844840295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8948547287844840295'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2014/03/segmentation-fault-11-when-trying-to.html' title='Cassandra: &#39;Segmentation fault: 11&#39; when trying to run any command in cqlsh'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18365773984575027511</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-832581267305448136</id><published>2013-11-09T10:28:00.001-06:00</published><updated>2013-11-09T10:28:50.920-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="civicminded hackathon ccmn13 opengov"/><title type='text'>Monthly hackathon or unconference in Mpls or St. Paul</title><content type='html'>&lt;p dir=&quot;ltr&quot;&gt;I want to hear from people who are interested in doing the City Camp MN and Open Twin Cities idea more often primarily in a hackathon format. &lt;/p&gt;
&lt;p dir=&quot;ltr&quot;&gt;Doesn&#39;t have to be amazing or awesome every month, just a group of creative and &lt;u&gt;interested&lt;/u&gt; and civic minded people getting together once per month or so.&lt;/p&gt;
&lt;p dir=&quot;ltr&quot;&gt;I can help to organize and find space for this.&lt;/p&gt;
&lt;p dir=&quot;ltr&quot;&gt;Especially interested in having non-coders attend, developers aren&#39;t the best with idea creation and collaboration between non-technical and techies is always the best.&lt;/p&gt;
&lt;p dir=&quot;ltr&quot;&gt;I know there are people looking for projects to code on, and I know there are people looking for help moving their ideas forward.&lt;/p&gt;
&lt;p dir=&quot;ltr&quot;&gt;Post in the comments if you are interested in this and I will contact you or post on this blog as this moves forward.&lt;/p&gt;
&lt;p dir=&quot;ltr&quot;&gt;#hackmonthlymn&lt;/p&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/832581267305448136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/832581267305448136' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/832581267305448136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/832581267305448136'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2013/11/monthly-hackathon-or-unconference-in.html' title='Monthly hackathon or unconference in Mpls or St. Paul'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18365773984575027511</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-1817401919373592461</id><published>2012-06-05T10:00:00.000-05:00</published><updated>2012-06-05T12:20:21.708-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="xml editor linux"/><title type='text'>My favorite XML editor and viewer for linux</title><content type='html'>&lt;br /&gt;
mlview&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://packages.ubuntu.com/hardy/mlview&quot;&gt;http://packages.ubuntu.com/hardy/mlview&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I always forget this because I don&#39;t use it enough. It&#39;s pretty fast, but can be a little slow on very large documents.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/1817401919373592461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/1817401919373592461' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/1817401919373592461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/1817401919373592461'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2012/06/my-favorite-xml-editor-and-viewer-for.html' title='My favorite XML editor and viewer for linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18365773984575027511</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-843783040319497597</id><published>2011-12-23T12:23:00.000-06:00</published><updated>2011-12-23T12:24:56.284-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="memory"/><category scheme="http://www.blogger.com/atom/ns#" term="sqldeveloper"/><title type='text'>Increase memory size for SQLDeveloper</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;
For some reason, they make it very difficult to increase the memory size of SQLDeveloper, you can&#39;t even pass in the options on the command line.&lt;/div&gt;
&lt;br /&gt;
I&#39;m not sure about Mac or Windows, but on Linux, it&#39;s pretty easy, just edit your ide/bin/ide.conf file and change the lines &quot;AddVMOption  -Xmx640M&quot; and &quot;AddVMOption -Xms128M&quot; lines to something larger (or smaller). You can see what I have mine set to below.&lt;br /&gt;
&lt;br /&gt;
Here is mine after I changed it:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
tor@XXX:~/sqldeveloper$ pwd&lt;br /&gt;
/home/tor/sqldeveloper&lt;br /&gt;
tor@XXX:~/sqldeveloper$ cat ./ide/bin/ide.conf&lt;br /&gt;
#-----------------------------------------------------------------------------&lt;br /&gt;
#&lt;br /&gt;
# Oracle IDE Configuration File&lt;br /&gt;
# Copyright 2000-2008 Oracle Corporation.&lt;br /&gt;
# All Rights Reserved.&lt;br /&gt;
#&lt;br /&gt;
#-----------------------------------------------------------------------------&lt;br /&gt;
IncludeConfFile ../../ide/bin/jdk.conf&lt;br /&gt;
AddJavaLibFile ../../ide/lib/ide-boot.jar&lt;br /&gt;
SetMainClass oracle.ide.boot.Launcher&lt;br /&gt;
#&lt;br /&gt;
# If you are getting the &#39;Low Memory Warning&#39; Message Dialog while running&lt;br /&gt;
# JDeveloper, please increase the -Xmx value below from the default 768M to&lt;br /&gt;
# something greater, like 1024M or 1250M.  If after increasing the value,&lt;br /&gt;
# JDeveloper is no longer starting up because it fails to create a virtual&lt;br /&gt;
# machine, then please reduce the modified -Xmx value.&lt;br /&gt;
#&lt;br /&gt;
&lt;b&gt;AddVMOption  -Xmx2048M&lt;br /&gt;AddVMOption  -Xms512M&lt;/b&gt;&lt;br /&gt;
#&lt;br /&gt;
# Turn off verifications since the included classes are already verified&lt;br /&gt;
# by the compiler.  This will reduce startup time significantly.  On&lt;br /&gt;
# some Linux Systems, using -Xverify:none will cause a SIGABRT, if you&lt;br /&gt;
# get this, try removing this option.&lt;br /&gt;
#&lt;br /&gt;
AddVMOption  -Xverify:none&lt;br /&gt;
#&lt;br /&gt;
# On some Windows Terminal Server installations, relocation errors of&lt;br /&gt;
# system DLLs can sometimes occur when using OJVM.  Use this option to&lt;br /&gt;
# specify a heap base address for OJVM to resolve this problem.  This&lt;br /&gt;
# option only works with OJVM and cannot be used with any HotSpot JVM.&lt;br /&gt;
#&lt;br /&gt;
# AddVMOption  -Xheapbase100000000&lt;/blockquote&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/843783040319497597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/843783040319497597' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/843783040319497597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/843783040319497597'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2011/12/increase-memory-size-for-sqldeveloper.html' title='Increase memory size for SQLDeveloper'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18365773984575027511</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-2502492817811890485</id><published>2011-10-30T09:00:00.005-05:00</published><updated>2011-12-26T15:53:48.288-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mac osx"/><category scheme="http://www.blogger.com/atom/ns#" term="netatalk"/><category scheme="http://www.blogger.com/atom/ns#" term="sparsebundle"/><category scheme="http://www.blogger.com/atom/ns#" term="time machine"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Time Machine on Mac OS 10.6.8 failing backing up to an Ubuntu netatalk server with &quot;(Error) IndexSDB in si_writeBackDBO:Error 2 storing dbo&quot;</title><content type='html'>I ran into some problems about four months ago with being able to back up my 10.6 Mac to an Ubuntu netatalk server. I just started failing, with a generic error message on the UI. All other netatalk services and shares were working fine.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
It was getting to the point where it looked like it was working, but once it actually began backing up, it would get to about 100kb, and then fail with this message in the system log on the Mac:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;Oct 29 16:37:48 my-macbook mds[38]:
(/Volumes/Backup of MyMac/.Spotlight-V100/Store-V1/Stores/XXX-XXX-XXX-XXX-XXX)
(Error) IndexSDB in si_writeBackDBO:Error 2 storing dbo(9770a3,430,182,4b076d10a69e9,0,1d1686,0)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I was able to follow the instructions copied below from a comment on this page:&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://hints.macworld.com/article.php?story=20090905212640957&quot;&gt;10.6: Set up Time Machine on networked AFP volume&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Obviously I didn&#39;t follow them exactly, since I have an Ubuntu server and not a Mac OSX server, but it now turns out that my Mac now creates the sparsebundle file for me! I basically deleted the whole folder (sparsebundle that I had created for the previous version of Mac OS) that I was using for the netatalk share, created an empty one with 777 perms, added the &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: verdana, tahoma, helvetica, arial, sans-serif; font-size: 12px;&quot;&gt;.com.apple.timemachine.supported&lt;/span&gt;  file, and my Mac did the rest! &lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Note: The backup did fail once or twice after following these instructions, the third time it started working all by itself, all I did was retry.&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;commenttitle&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(186, 192, 205); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(186, 192, 205); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(186, 192, 205); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(186, 192, 205); border-top-style: dotted; border-top-width: 1px; color: #000033; font: normal normal bold 110%/normal tahoma, helvetica, arial, sans-serif; padding-bottom: 3px; padding-left: 2px; padding-right: 0px; padding-top: 3px; text-align: -webkit-auto;&quot;&gt;
10.6: Set up Time Machine on networked AFP volume&lt;br /&gt;
&lt;span class=&quot;comment-author&quot; style=&quot;color: #1e1e1e; font: normal normal normal 11px/normal verdana, tahoma, helvetica, arial, sans-serif; padding-left: 2px;&quot;&gt;Authored by: &lt;a href=&quot;http://hints.macworld.com/users.php?mode=profile&amp;amp;uid=1063133&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; color: #1e1e1e;&quot;&gt;Henk Poley&lt;/a&gt; on Feb 27, &#39;11 01:52:53AM&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comment-box&quot; style=&quot;background-color: white; border-bottom-color: rgb(186, 192, 205); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(186, 192, 205); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(186, 192, 205); border-right-style: dotted; border-right-width: 1px; border-top-color: initial; border-top-style: none; border-top-width: initial; font-family: verdana, tahoma, helvetica, arial, sans-serif; font-size: 12px; margin-bottom: 10px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: -webkit-auto;&quot;&gt;
&lt;div style=&quot;margin-top: 5px;&quot;&gt;
Maybe I&#39;m doing something wrong.. but the only thing I have to do is:&lt;br /&gt;&lt;br /&gt;1. Create an AFP share on an OS X machine (set permissions, user accounts &amp;amp; passwords as you like)&lt;br /&gt;2. Run `touch .com.apple.timemachine.supported` from Terminal.app on that share&lt;br /&gt;3. Mount the AFP share by clicking around in Finder&lt;br /&gt;4. Point Time Machine to the disk&lt;br /&gt;&lt;br /&gt;It then goes off to create a .sparsebundle, mounts that and does a backup.&lt;br /&gt;&lt;br /&gt;I may have run the magic `defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1` way back when, so you may have to run that too.&lt;br /&gt;&lt;br /&gt;Both machines run 10.6.6, but I (maybe miss-)remember doing it like that on Leopard too.&lt;br /&gt;&lt;br /&gt;(Before anyone says this doesn&#39;t work anymore, I&#39;m doing an initial backup using that method right now)&lt;/div&gt;
&lt;div class=&quot;comment-edit&quot;&gt;
Edited on Feb 27, &#39;11 01:59:53AM by Henk Poley&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/2502492817811890485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/2502492817811890485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2502492817811890485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2502492817811890485'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2011/10/time-machine-on-mac-os-1068-failing.html' title='Time Machine on Mac OS 10.6.8 failing backing up to an Ubuntu netatalk server with &quot;(Error) IndexSDB in si_writeBackDBO:Error 2 storing dbo&quot;'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18365773984575027511</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-9090710265822077609</id><published>2010-08-10T13:27:00.000-05:00</published><updated>2010-08-10T13:27:07.600-05:00</updated><title type='text'>SQuirreL and Oracle ORA-01867</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPxYYZp8zN_hq0teGZvJxfcq-LW-zH0PtHXRxpIHmO63ZMT7lSO6uW8zbKEgrn9TMV7Aod7TB780gJcWwf9kayyIv_tfK0w_pewwsQJHVtl37w8KbwJ43s3kxOcvElLxxDaMKFrLKkN9pv/s1600/squirrel-global-prefs-updated.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img align=&quot;left&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPxYYZp8zN_hq0teGZvJxfcq-LW-zH0PtHXRxpIHmO63ZMT7lSO6uW8zbKEgrn9TMV7Aod7TB780gJcWwf9kayyIv_tfK0w_pewwsQJHVtl37w8KbwJ43s3kxOcvElLxxDaMKFrLKkN9pv/s320/squirrel-global-prefs-updated.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Global Preference (v3.1)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
I have had a specific error&amp;nbsp;plaguing&amp;nbsp;me for some time now, when using the &lt;a href=&quot;http://squirrel-sql.sourceforge.net/&quot;&gt;SQuirreL SQL&lt;/a&gt; client to access an Oracle Scheme with a database link to another Scheme. &amp;nbsp;The query might look something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;SELECT * FROM SOMETABLE@OTHERSCHEME&lt;/pre&gt;&lt;br /&gt;
I would consistently get an &lt;a href=&quot;http://www.error-code.org.uk/view.asp?e=ORACLE-ORA-01867&quot;&gt;ORA-01867&lt;/a&gt; error.  Every forum I searched seemed to point back to DATE or TIMESTAMP handling.  Playing with the Global Preferences, I found that the DATE handling option titled &lt;i&gt;Interpret DATE columns as TIMESTAMP&lt;/i&gt;&amp;nbsp;&lt;i&gt;&lt;b&gt;must&lt;/b&gt;&lt;/i&gt;&amp;nbsp;be un-selected.&amp;nbsp;-- Chad&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/9090710265822077609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/9090710265822077609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/9090710265822077609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/9090710265822077609'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2010/08/squirrel-and-oracle-ora-01867.html' title='SQuirreL and Oracle ORA-01867'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPxYYZp8zN_hq0teGZvJxfcq-LW-zH0PtHXRxpIHmO63ZMT7lSO6uW8zbKEgrn9TMV7Aod7TB780gJcWwf9kayyIv_tfK0w_pewwsQJHVtl37w8KbwJ43s3kxOcvElLxxDaMKFrLKkN9pv/s72-c/squirrel-global-prefs-updated.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-7252856869301506694</id><published>2010-06-02T10:22:00.003-05:00</published><updated>2010-06-02T10:23:55.474-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="KDE"/><category scheme="http://www.blogger.com/atom/ns#" term="open links in Chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Thunderbird"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to set chrome as your default browser for Thunderbird on Ubuntu</title><content type='html'>From &lt;a href=&quot;http://code.google.com/p/chromium/issues/detail?id=36102&quot;&gt;this&lt;/a&gt; bug report: &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;it appears that in Thunderbird 3 the protocol handlers are ignored in favor of the &lt;br /&gt;settings in the &quot;Attachment&quot; preferences. Indeed, once I set the http and https &lt;br /&gt;&quot;content types&quot; to xdg-open, Thunderbird correctly opened http and https links in &lt;br /&gt;Chrome.&lt;/blockquote&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/7252856869301506694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/7252856869301506694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/7252856869301506694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/7252856869301506694'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2010/06/how-to-set-chrome-as-your-default.html' title='How to set chrome as your default browser for Thunderbird on Ubuntu'/><author><name>Tor Flatebo</name><uri>http://www.blogger.com/profile/11311251459609688852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-8873036345656773119</id><published>2010-03-14T20:28:00.017-05:00</published><updated>2010-03-18T07:52:55.152-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blackberry"/><category scheme="http://www.blogger.com/atom/ns#" term="export"/><category scheme="http://www.blogger.com/atom/ns#" term="export imovie blackberry bold"/><category scheme="http://www.blogger.com/atom/ns#" term="iMovie"/><category scheme="http://www.blogger.com/atom/ns#" term="imovie export blackberry"/><category scheme="http://www.blogger.com/atom/ns#" term="MPEG4"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Export from iMovie to play on Blackberry Bold 9700</title><content type='html'>Want to export a video from iMovie to play on your Blackberry Bold 9700? Tired of showing your videos on the youtube player? No problem!&lt;br /&gt;&lt;br /&gt;For the impatient: use MPEG4, 25fps, auto key frames and restrict to 1248 kbits/sec at 480x270 letterbox. Audio is  AAC codec, Mono, 44.1, and a target bitrate of 64k.&lt;br /&gt;&lt;br /&gt;A 3:30 video renders to about 33MB.&lt;br /&gt;&lt;br /&gt;First choose &#39;Export using Quicktime&#39; from the menu&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSYaePgu6KSFh_JSICiMH4Zjb95RxEWguETY7ZoXX2KVyMlHVMeN3U92YGHTB6GHfVoUX1BsHdzYew9BfXH04Lp788G2DqNKJz4MfohK9GTTSzAZISYVJrQuzbV7ntFLhp-YmsANDBbcx_/s1600-h/Picture+2.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSYaePgu6KSFh_JSICiMH4Zjb95RxEWguETY7ZoXX2KVyMlHVMeN3U92YGHTB6GHfVoUX1BsHdzYew9BfXH04Lp788G2DqNKJz4MfohK9GTTSzAZISYVJrQuzbV7ntFLhp-YmsANDBbcx_/s320/Picture+2.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5448669168351097586&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then you will see a dialog like this. Choose options&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxVl_y-o2-6tQfnB5gLuGjEzmIQjlsJ1ZUsO8TSX6FJF8o6CrUGY-HrOil9qjDZ-7oDKGW_IITTefFG9dbeZeZikUFGtTtW9jSLu6bzJ3SY3Nzb7BkVc-WTXYHAaaIb8QCkKPRJw_0L3pF/s1600-h/Picture+8.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 231px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxVl_y-o2-6tQfnB5gLuGjEzmIQjlsJ1ZUsO8TSX6FJF8o6CrUGY-HrOil9qjDZ-7oDKGW_IITTefFG9dbeZeZikUFGtTtW9jSLu6bzJ3SY3Nzb7BkVc-WTXYHAaaIb8QCkKPRJw_0L3pF/s320/Picture+8.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5448669626457576098&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After that you should see the setting for the video formatting and audio. Choose the top &#39;Settings&#39; button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghqPKGIKWvcHj7FSC6hk4MoYdwkVkQmR0bMNvgxaKJxYfXisrPYeyNJvsIeLKrD-yCbwfXQzbkKj6-DKAVP81IiE0aEtk9JPgzkRd75Q0jA8ZStUQ7wr6UJ8LALFLtOz7GnfmbMXRMX4Tj/s1600-h/Picture+10.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 270px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghqPKGIKWvcHj7FSC6hk4MoYdwkVkQmR0bMNvgxaKJxYfXisrPYeyNJvsIeLKrD-yCbwfXQzbkKj6-DKAVP81IiE0aEtk9JPgzkRd75Q0jA8ZStUQ7wr6UJ8LALFLtOz7GnfmbMXRMX4Tj/s320/Picture+10.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5448670654021150914&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now you will get a dialog for the video format. Use MPEG4, 25fps, auto key frames and restrict to 1248 kbits/sec. Now close this dialog, and hit the &#39;size&#39; button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ZEu_j5Asb1j655GchpymVMj7ubXEoxskGKyRBTEc5PSrY3R3RCbk0DyHGOcj3dH9FDicYmWksg-cdBzxB0BuXdrVTmyHA1yf_d9_aW_Dbpjc9r_zepX_Tpw-McyvJEpV5H6rTKTQ2xyr/s1600-h/Picture+11.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 249px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8ZEu_j5Asb1j655GchpymVMj7ubXEoxskGKyRBTEc5PSrY3R3RCbk0DyHGOcj3dH9FDicYmWksg-cdBzxB0BuXdrVTmyHA1yf_d9_aW_Dbpjc9r_zepX_Tpw-McyvJEpV5H6rTKTQ2xyr/s320/Picture+11.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5448672012775862738&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Choose a custom size, and enter 480x270, preserve aspect using letterbox, and deinterlace. Close this dialog, and choose the sound settings button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-d_E5U-fQm9P1zw6r5h0mUIEbzwsICly2mFK7DuzElToq_hpm2qsWJdeVHJB2T-qU-wegqSnEwrrQrmbMoVorNmv_eHAF9jZcC8_uxsd7wbSpPAflP5H1pAZKumKZtfXUNkv4OjsPN1k4/s1600-h/Picture+12.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 158px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-d_E5U-fQm9P1zw6r5h0mUIEbzwsICly2mFK7DuzElToq_hpm2qsWJdeVHJB2T-qU-wegqSnEwrrQrmbMoVorNmv_eHAF9jZcC8_uxsd7wbSpPAflP5H1pAZKumKZtfXUNkv4OjsPN1k4/s320/Picture+12.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5448673094100083490&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Use an AAC codec, Mono, 44.1, and a target bitrate of 64k. Close this dialog.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2k5Q3BNvgW8r5-sRkh79Tx-jgid3LdAf0FX30wmU3eybEL5bSxbSx1AMxC0SWpcuHbazp2UWikRvysGZu2aepsCbjmPzOD_PtV13nWmdY-W-0sPx5YPowAXwjz_Oe80Pr98kxvtlCgnac/s1600-h/Picture+13.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 282px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2k5Q3BNvgW8r5-sRkh79Tx-jgid3LdAf0FX30wmU3eybEL5bSxbSx1AMxC0SWpcuHbazp2UWikRvysGZu2aepsCbjmPzOD_PtV13nWmdY-W-0sPx5YPowAXwjz_Oe80Pr98kxvtlCgnac/s320/Picture+13.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5448673625470049826&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now give your video a name, and hit save&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJVfEJGGdhMKvxY2cIppxGeVC3SxYepA7rTKd3PdROgXokUrI-YUDGmEpFcjUstdgD6tAopeHw5E78WbPtF9O-GQMnQUTKalUwt2uqLusvhWsBIk4j1hqP12_8XYG6XKU_5OdiZ44p66_s/s1600-h/Picture+14.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 242px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJVfEJGGdhMKvxY2cIppxGeVC3SxYepA7rTKd3PdROgXokUrI-YUDGmEpFcjUstdgD6tAopeHw5E78WbPtF9O-GQMnQUTKalUwt2uqLusvhWsBIk4j1hqP12_8XYG6XKU_5OdiZ44p66_s/s320/Picture+14.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5448674835605449090&quot;&gt;&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/8873036345656773119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/8873036345656773119' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8873036345656773119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8873036345656773119'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2010/03/export-from-imovie-to-play-on.html' title='Export from iMovie to play on Blackberry Bold 9700'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/02038708606476731679</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSYaePgu6KSFh_JSICiMH4Zjb95RxEWguETY7ZoXX2KVyMlHVMeN3U92YGHTB6GHfVoUX1BsHdzYew9BfXH04Lp788G2DqNKJz4MfohK9GTTSzAZISYVJrQuzbV7ntFLhp-YmsANDBbcx_/s72-c/Picture+2.png" height="72" width="72"/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-4176621840452907979</id><published>2010-02-11T11:51:00.004-06:00</published><updated>2010-02-11T11:54:27.331-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="squirrel"/><category scheme="http://www.blogger.com/atom/ns#" term="squirrel crash"/><category scheme="http://www.blogger.com/atom/ns#" term="squirrel not starting"/><title type='text'>Squirrel not starting fix</title><content type='html'>If OOM kills squirrel hard, and squirrel will not restart giving a Null Pointer error, you can follow &lt;a href=&quot;http://markmail.org/message/j4rn7ff2gkssg7zs#query:squirrel%20Exception%20in%20thread%20main%20java.lang.reflect.InvocationTargetException+page:1+mid:kgmzeltkm6ii3gsi+state:results&quot;&gt;this thread&lt;/a&gt; below by removing the SQLAliases23_treeStructure.xml file from your $HOME/.squirrel dir. It is a transient file.&lt;br /&gt;&lt;br /&gt;Stack trace:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;tor@unwise:~/SQuirreL SQL Client$ ./squirrel-sql.sh&lt;br /&gt;Exception in thread &quot;main&quot; java.lang.reflect.InvocationTargetException&lt;br /&gt;    at java.awt.EventQueue.invokeAndWait(EventQueue.java:997)&lt;br /&gt;    at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)&lt;br /&gt;    at net.sourceforge.squirrel_sql.fw.gui.GUIUtils.processOnSwingEventThread(GUIUtils.java:350)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.WindowManager.&lt;init&gt;(WindowManager.java:161)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.Application.executeStartupTasks(Application.java:753)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.Application.startup(Application.java:246)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.Main.main(Main.java:60)&lt;br /&gt;Caused by: java.lang.RuntimeException: java.lang.NullPointerException&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.db.JTreeAliasesListImpl.initTree(JTreeAliasesListImpl.java:233)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.db.JTreeAliasesListImpl.&lt;init&gt;(JTreeAliasesListImpl.java:101)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.db.AliasesList.&lt;init&gt;(AliasesList.java:44)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.WindowManager.createAliasesListUI(WindowManager.java:877)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.WindowManager.initialize(WindowManager.java:861)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.WindowManager.access$200(WindowManager.java:77)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.WindowManager$1.run(WindowManager.java:165)&lt;br /&gt;    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)&lt;br /&gt;    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.Application$1.dispatchEvent(Application.java:195)&lt;br /&gt;    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)&lt;br /&gt;    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)&lt;br /&gt;    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)&lt;br /&gt;    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)&lt;br /&gt;    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)&lt;br /&gt;    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)&lt;br /&gt;Caused by: java.lang.NullPointerException&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.db.AliasFolderState.applyExpansionAndSelectionToNode(AliasFolderState.java:144)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.db.AliasFolderState.applyExpansionAndSelection(AliasFolderState.java:160)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.db.JTreeAliasesListImpl.applyAliasFolderState(JTreeAliasesListImpl.java:264)&lt;br /&gt;    at net.sourceforge.squirrel_sql.client.gui.db.JTreeAliasesListImpl.initTree(JTreeAliasesListImpl.java:220)&lt;br /&gt;    ... 15 more&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/4176621840452907979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/4176621840452907979' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/4176621840452907979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/4176621840452907979'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2010/02/squirrel-not-starting-fix.html' title='Squirrel not starting fix'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/02038708606476731679</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-5683367945839807893</id><published>2009-12-01T15:07:00.002-06:00</published><updated>2009-12-01T15:10:45.568-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Active Directory"/><category scheme="http://www.blogger.com/atom/ns#" term="AD"/><category scheme="http://www.blogger.com/atom/ns#" term="ldap"/><category scheme="http://www.blogger.com/atom/ns#" term="ldapsearch"/><title type='text'>Test ldap connection against Active Directory</title><content type='html'>How to test a connection to AD using linux ldapsearch&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ldapsearch -LLL -x -H &#39;ldap://server.com:389&#39; -b &#39;DC=domain,DC=office,DC=com&#39; -D &#39;CN=openfire,OU=Service Accounts,OU=User Accounts,OU=DOMAIN,DC=domain,DC=office,DC=com&#39; -W &#39;(sAMAccountName=tor)&#39;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This will make sure that your user can bind, and the in the search they can see user accounts.&lt;br /&gt;&lt;br /&gt;We used this for ldap integration for authentication for JIRA and openfire.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/5683367945839807893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/5683367945839807893' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/5683367945839807893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/5683367945839807893'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2009/12/test-ldap-connection-against-active.html' title='Test ldap connection against Active Directory'/><author><name>Tor Flatebo</name><uri>http://www.blogger.com/profile/11311251459609688852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-2239136789578423876</id><published>2009-05-30T09:17:00.003-05:00</published><updated>2009-12-01T15:11:58.695-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="9000"/><category scheme="http://www.blogger.com/atom/ns#" term="Blackberry"/><category scheme="http://www.blogger.com/atom/ns#" term="blackberry bold"/><category scheme="http://www.blogger.com/atom/ns#" term="bold"/><category scheme="http://www.blogger.com/atom/ns#" term="keyboard"/><category scheme="http://www.blogger.com/atom/ns#" term="lock"/><category scheme="http://www.blogger.com/atom/ns#" term="shortcuts"/><title type='text'>Locking the keyboard on a Blackberry Bold</title><content type='html'>Because I never read the manual, I was having problems locking the keyboard on my new Blackberry Bold. First, you have to turn off the language switching in the menu to be able to use the old &#39;Alt-Enter&#39; shortcut for locking the keyboard.&lt;br /&gt;&lt;br /&gt;Thing is, with the new trackball, that key combination is a little awkward, and I am so paranoid about dropping the dang thing, that I have been using the menu option for locking.&lt;br /&gt;&lt;br /&gt;Until now.&lt;br /&gt;&lt;br /&gt;Jeez, the manual for this thing is literally hundreds of pages, and to be honest, I&#39;ve never even looked at it. I mean, seriously, why wouldn&#39;t I already know everything about using a Blackberry? &lt;br /&gt;&lt;br /&gt;So, two key shortcuts I learned today are;&lt;br /&gt;&lt;br /&gt;hold down &#39;*&#39;, this will lock the keyboard&lt;br /&gt;hold down &#39;#&#39;, this will toggle between vibrate and normal profiles&lt;br /&gt;&lt;br /&gt;Sweet.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/2239136789578423876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/2239136789578423876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2239136789578423876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2239136789578423876'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2009/05/locking-keyboard-on-blackberry-bold.html' title='Locking the keyboard on a Blackberry Bold'/><author><name>Tor Flatebo</name><uri>http://www.blogger.com/profile/11311251459609688852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-8354142794322313879</id><published>2009-04-27T11:40:00.003-05:00</published><updated>2009-12-01T15:12:30.282-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="address"/><category scheme="http://www.blogger.com/atom/ns#" term="command line"/><category scheme="http://www.blogger.com/atom/ns#" term="email"/><category scheme="http://www.blogger.com/atom/ns#" term="log file"/><category scheme="http://www.blogger.com/atom/ns#" term="parsing"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>ruby script to search for email addresses in a log file</title><content type='html'>Given input that is &quot;:&quot; delimited, this script will search out email addresses in any field in the input:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;cat log_file.txt | ruby -ne &#39;split(&quot;:&quot;).each { |col| print col , &quot;\n&quot; if col.match(/^\S+@\S+$/) }&#39; | sort | uniq&lt;br /&gt;&lt;/code&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/8354142794322313879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/8354142794322313879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8354142794322313879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8354142794322313879'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2009/04/ruby-script-to-search-for-email.html' title='ruby script to search for email addresses in a log file'/><author><name>Tor Flatebo</name><uri>http://www.blogger.com/profile/11311251459609688852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-3655976576295111891</id><published>2009-04-22T16:25:00.002-05:00</published><updated>2009-04-22T16:27:45.967-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk script"/><title type='text'>awk script to add up lines in a file</title><content type='html'>You want to add up the numbers in a file?&lt;br /&gt;&lt;br /&gt;Input:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;56168&lt;br /&gt;796&lt;br /&gt;44&lt;br /&gt;26&lt;br /&gt;202&lt;br /&gt;258&lt;br /&gt;478&lt;br /&gt;632&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Script:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;cat file | awk &#39;{ total = total + $1} END { print total}&#39;&lt;br /&gt;&lt;/code&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/3655976576295111891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/3655976576295111891' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/3655976576295111891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/3655976576295111891'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2009/04/awk-script-to-add-up-lines-in-file.html' title='awk script to add up lines in a file'/><author><name>Tor Flatebo</name><uri>http://www.blogger.com/profile/11311251459609688852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-5766562472832986461</id><published>2008-09-23T22:44:00.004-05:00</published><updated>2008-09-27T10:33:22.984-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jdbcmysql"/><category scheme="http://www.blogger.com/atom/ns#" term="jruby"/><category scheme="http://www.blogger.com/atom/ns#" term="mongrel"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite3"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Getting jruby running with mysql on ubuntu</title><content type='html'>You want to get jruby running quickly on ubuntu using mysql as a backing store?&lt;br /&gt;&lt;br /&gt;Unfortunately, it does not &quot;just work&quot; with sqlite3 out of the box on ubuntu for some reason. I don&#39;t really care why, as mysql is very easy to setup. The most important step that flexed my googling muscles was setting the database adapter to jdbcmysql in the database.yml file.&lt;br /&gt;&lt;br /&gt;I will post later on a howto to get this working with glassfish and war files. For some reason, warbler nor goldspike &quot;just work&quot; on ubuntu either.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# install mysql&lt;br /&gt;sudo apt-get install mysql-server mysql-client libhtml-template-perl mailx dbishell libcompress-zlib-perl mysql-doc-5.0 tinyca&lt;br /&gt;&lt;br /&gt;# install ant and jdk&lt;br /&gt;sudo apt-get install ant sun-java6-jdk&lt;br /&gt;&lt;br /&gt;# install jruby&lt;br /&gt;cd software&lt;br /&gt;wget http://dist.codehaus.org/jruby/jruby-bin-1.1.4.tar.gz&lt;br /&gt;tar xvfz jruby-bin-1.1.4.tar.gz&lt;br /&gt;ln -s jruby-1.1.4 jruby&lt;br /&gt;export PATH=$PATH:$HOME/software/jruby/bin&lt;br /&gt;&lt;br /&gt;# install the version of rails wanted by jruby&lt;br /&gt;jruby -S gem install jruby-openssl&lt;br /&gt;jruby -S gem install rails&lt;br /&gt;&lt;br /&gt;# list your gems&lt;br /&gt;jruby -S gem list&lt;br /&gt;&lt;br /&gt;# install the gems needed for db&lt;br /&gt;jruby -S gem install activerecord-jdbc-adapter activerecord-jdbcmysql-adapter&lt;br /&gt;&lt;br /&gt;# generate some code&lt;br /&gt;cd ~/scripts/ruby&lt;br /&gt;jruby -S rails wherehaveyoubeen -d mysql&lt;br /&gt;cd wherehaveyoubeen&lt;br /&gt;jruby script/generate controller states index&lt;br /&gt;&lt;br /&gt;# configure access to the database server&lt;br /&gt;vi config/database.yml&lt;br /&gt;&lt;br /&gt;#development:&lt;br /&gt;#  adapter: jdbcmysql &lt;- very important!&lt;br /&gt;#  encoding: utf8&lt;br /&gt;#  database: wherehaveyoubeen_development&lt;br /&gt;#  username: root&lt;br /&gt;#  password: database&lt;br /&gt;#  socket: /var/run/mysqld/mysqld.sock&lt;br /&gt;&lt;br /&gt;# generate the db&lt;br /&gt;jruby -S rake db:create:all&lt;br /&gt;jruby -S rake db:migrate&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# edit your app&lt;br /&gt;sudo apt-get install emacs ruby-elisp irb1.8 emacs22-el&lt;br /&gt;emacs -bg black -fg wheat app/views/states/index.html.erb&lt;br /&gt;&lt;br /&gt;# uncomment the secret in app/controllers/application.rb&lt;br /&gt;vi app/controllers/application.rb&lt;br /&gt;&lt;br /&gt;# run your app&lt;br /&gt;jruby script/server&lt;br /&gt;&lt;br /&gt;# go to your app&lt;br /&gt;GET http://0.0.0.0:3000/states&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/5766562472832986461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/5766562472832986461' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/5766562472832986461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/5766562472832986461'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/09/getting-jruby-running-with-mysql-on.html' title='Getting jruby running with mysql on ubuntu'/><author><name>Tor Flatebo</name><uri>http://www.blogger.com/profile/11311251459609688852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-9107907802969476587</id><published>2008-09-22T09:37:00.002-05:00</published><updated>2008-09-22T09:39:55.604-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="javahl"/><category scheme="http://www.blogger.com/atom/ns#" term="svn"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Adding subversion to eclipse on linux (ubuntu)</title><content type='html'>You want to use subversion in eclipse? You will need a javahl implementation.&lt;br /&gt;&lt;br /&gt;Ubuntu has a javahl package:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install libsvn-java&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then add this to your eclipse.ini:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;-Djava.library.path=/usr/lib/jni&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/9107907802969476587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/9107907802969476587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/9107907802969476587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/9107907802969476587'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/09/adding-subversion-to-eclipse-on-linux.html' title='Adding subversion to eclipse on linux (ubuntu)'/><author><name>Tor Flatebo</name><uri>http://www.blogger.com/profile/11311251459609688852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-7752123767703890400</id><published>2008-08-04T11:56:00.003-05:00</published><updated>2008-08-30T11:46:22.608-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="shell scripting"/><category scheme="http://www.blogger.com/atom/ns#" term="simple shell loop"/><title type='text'>Simple shell for loop</title><content type='html'>Simple for loop in shell to run a command n times.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;for i in `seq 1 10`; do your_command_here.sh; done;&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/7752123767703890400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/7752123767703890400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/7752123767703890400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/7752123767703890400'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/08/simple-sheel-for-loop.html' title='Simple shell for loop'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-239750597725937900</id><published>2008-07-27T13:58:00.002-05:00</published><updated>2008-07-27T14:00:48.316-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="find class in jar"/><category scheme="http://www.blogger.com/atom/ns#" term="import java class"/><category scheme="http://www.blogger.com/atom/ns#" term="jar files"/><title type='text'>Find a class in a lot of JAR files</title><content type='html'>Where did that class come from? Which JAR do I need to import to resolve this compilation error? Arrgh.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;find ./ -type f -name &quot;*.jar&quot; -print -exec jar tvf {} \; | less&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/239750597725937900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/239750597725937900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/239750597725937900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/239750597725937900'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/07/find-class-in-lot-of-jar-files.html' title='Find a class in a lot of JAR files'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-590000045209817906</id><published>2008-07-10T19:31:00.004-05:00</published><updated>2011-10-30T14:13:58.396-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="blogger.com"/><category scheme="http://www.blogger.com/atom/ns#" term="categories"/><category scheme="http://www.blogger.com/atom/ns#" term="frustrating"/><category scheme="http://www.blogger.com/atom/ns#" term="gdata"/><category scheme="http://www.blogger.com/atom/ns#" term="google"/><category scheme="http://www.blogger.com/atom/ns#" term="google API"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="labels"/><category scheme="http://www.blogger.com/atom/ns#" term="tags"/><title type='text'>Example Java code for posting to blogger.com using labels/tags</title><content type='html'>So I really can&#39;t believe how long it took to get this right, but here is some example code for posting to blogger.com with the ability to add some tags or categories or labels.&lt;br /&gt;
&lt;br /&gt;
You just try searching for some code example on how to &quot;post to a blog using tags&quot;. Jeez, it took about 45 minutes of searching to find an actual post that WASN&#39;T a blog post that had a tag.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;public class GoogleBlogPostTest extends TestCase 
{
public void testBlogPost() throws Exception
{
GoogleService myService = new GoogleService(&quot;blogger&quot;, &quot;company-xampleApp-1&quot;);
myService.setUserCredentials(&quot;googleusername&quot;, &quot;googlepassword&quot;);

String title = &quot;This is my title &quot; + (new Date()).toString();
String blogID = &quot;blognumber&quot;;
String contentStr = &quot;This is a test of the emergency blogging system&quot;;
String authorName = &quot;Test Author&quot;;
String userName = &quot;author@email.com&quot;;
String summary = &quot;This is the summary&quot;;

ArrayList&lt;string&gt; tags = new ArrayList&lt;string&gt;();
tags.add(&quot;News&quot;);
tags.add(&quot;Alerts&quot;);

Entry myEntry = new Entry();

for(String tag : tags)
{
Category category = new Category();
category.setScheme(&quot;http://www.blogger.com/atom/ns#&quot;);
category.setTerm(tag);
myEntry.getCategories().add(category);
}

Content content = new TextContent(new PlainTextConstruct(contentStr));
myEntry.setTitle(new PlainTextConstruct(title));
myEntry.setContent(content);
Person author = new Person(authorName, &quot;http://flatebo.org&quot;, userName);
myEntry.getAuthors().add(author);
myEntry.setSummary(new PlainTextConstruct(summary));

URL postUrl = new URL(&quot;http://www.blogger.com/feeds/&quot; + blogID + &quot;/posts/default&quot;);

Entry newEntry = myService.insert(postUrl, myEntry);

assertEquals(title, newEntry.getTitle().getPlainText());
}
}
&lt;/string&gt;&lt;/string&gt;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/590000045209817906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/590000045209817906' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/590000045209817906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/590000045209817906'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/07/posting-to-bloggercom-using-labelstags.html' title='Example Java code for posting to blogger.com using labels/tags'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-8796594342349078270</id><published>2008-06-03T10:52:00.005-05:00</published><updated>2008-06-03T10:57:05.034-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hardy"/><category scheme="http://www.blogger.com/atom/ns#" term="KDE"/><category scheme="http://www.blogger.com/atom/ns#" term="openVPN"/><category scheme="http://www.blogger.com/atom/ns#" term="PPTP"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="VPN"/><title type='text'>Using microsoft VPN on ubuntu hardy in KDE</title><content type='html'>In the newest ubuntu, there is a package for kde to use network-manager in the tray to connect to microsoft VPN (PPTP).&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;sudo apt-get install network-manager-pptp network-manager-vpnc \&lt;br /&gt; network-manager-openvpn network-manager-kde&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then just use the network manager app in the tray to define your VPN connections. When you are ready to connect, just right click and connect.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/8796594342349078270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/8796594342349078270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8796594342349078270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8796594342349078270'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/06/using-microsoft-vpn-on-ubuntu-hardy-in.html' title='Using microsoft VPN on ubuntu hardy in KDE'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-1272797892222335091</id><published>2008-06-03T08:57:00.003-05:00</published><updated>2008-06-03T10:55:10.389-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="exchange"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="sbserver"/><category scheme="http://www.blogger.com/atom/ns#" term="Small Business Server"/><title type='text'>How to reset IIS</title><content type='html'>&lt;pre&gt;c:\&gt; iisreset&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This also resets the exchange services on a Small Business Server install.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/1272797892222335091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/1272797892222335091' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/1272797892222335091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/1272797892222335091'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/06/how-to-reset-iis.html' title='How to reset IIS'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-8716921448702918539</id><published>2008-06-02T09:49:00.003-05:00</published><updated>2008-06-02T10:02:40.132-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="decrypt"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="unzip"/><category scheme="http://www.blogger.com/atom/ns#" term="winzip"/><category scheme="http://www.blogger.com/atom/ns#" term="zip"/><title type='text'>How to unzip &#39;encrypted&#39; zip files in linux</title><content type='html'>&lt;pre&gt;sudo apt-get install p7zip-full p7zip p7zip-rar&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;bash$ 7z e filename.zip&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;(it will prompt you for the password)&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/8716921448702918539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/8716921448702918539' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8716921448702918539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8716921448702918539'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/06/how-to-unzip-encrypted-zip-files-in.html' title='How to unzip &#39;encrypted&#39; zip files in linux'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-8341099071114844117</id><published>2008-05-30T15:49:00.003-05:00</published><updated>2008-06-03T10:55:51.680-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="8800"/><category scheme="http://www.blogger.com/atom/ns#" term="8830"/><category scheme="http://www.blogger.com/atom/ns#" term="88xx"/><category scheme="http://www.blogger.com/atom/ns#" term="Blackberry"/><category scheme="http://www.blogger.com/atom/ns#" term="Blackberry email account"/><category scheme="http://www.blogger.com/atom/ns#" term="Blackberry IMAP"/><category scheme="http://www.blogger.com/atom/ns#" term="Sprint"/><category scheme="http://www.blogger.com/atom/ns#" term="Sprint Support"/><title type='text'>Managing IMAP accounts on Sprint blackberry devices</title><content type='html'>I forgot how to add an IMAP email account to my Sprint Blackberry 8830. I found the direct line to Sprint&#39;s blackberry support:&lt;br /&gt;&lt;br /&gt;1-877-654-9111&lt;br /&gt;&lt;br /&gt;He was able to tell me my username and reset my password. What I really needed was this web address: &lt;br /&gt;&lt;a href=&quot; http://sprint.blackberry.com &quot;&gt;&lt;br /&gt;http://sprint.blackberry.com &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;which is where you manage your email accounts.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/8341099071114844117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/8341099071114844117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8341099071114844117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/8341099071114844117'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/05/managing-imap-accounts-on-sprint.html' title='Managing IMAP accounts on Sprint blackberry devices'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-7016392770652329436</id><published>2008-05-30T09:32:00.005-05:00</published><updated>2008-06-03T10:56:13.110-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cups"/><category scheme="http://www.blogger.com/atom/ns#" term="lpq"/><category scheme="http://www.blogger.com/atom/ns#" term="lpr"/><category scheme="http://www.blogger.com/atom/ns#" term="printing"/><title type='text'>Actually getting lpr to work with cups</title><content type='html'>Yes, it should &#39;just work&#39;, but it doesn&#39;t. After installing cupsys-bsd to provide lpr, you also have to set the printer&#39;s name in your environment. &lt;br /&gt;&lt;br /&gt;After setting up the printer in cups, list out the printer&#39;s names like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;bash$ lpadmin -p&lt;br /&gt;printer PDF is idle.  enabled since Fri 25 Apr 2008 02:37:51 PM CDT&lt;br /&gt;printer Savin is idle.  enabled since Tue 20 Nov 2007 06:03:36 PM CST&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then pick the one you want and set the environment variable PRINTER:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;export PRINTER=Savin&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now you can use lpq:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;bash$ lpq&lt;br /&gt;Savin is ready&lt;br /&gt;no entries&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;As a follow up, you can also use the &#39;-P&#39; switch like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;lpq -P Savin&lt;br /&gt;Savin is ready&lt;br /&gt;no entries&lt;br /&gt;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/7016392770652329436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/7016392770652329436' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/7016392770652329436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/7016392770652329436'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/05/actually-getting-lpr-to-work-with-cups.html' title='Actually getting lpr to work with cups'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7927933726896813149.post-2038888635985173536</id><published>2008-05-29T18:24:00.007-05:00</published><updated>2008-06-03T11:00:38.595-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="queries"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Oracle open transactions</title><content type='html'>Here is another neat Oracle query you can run that will give you any open transactions:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;SELECT&lt;br /&gt;   s.osuser, vp.spid as os_pid, S.BLOCKING_SESSION blocker,&lt;br /&gt;   S.SID, S.SERIAL#, S.USERNAME, S.MACHINE,&lt;br /&gt;   Q.SQL_FULLTEXT cur_sql, PQ.SQL_FULLTEXT prev_sql, &lt;br /&gt;   vt.used_urec, vt.start_date&lt;br /&gt;FROM &lt;br /&gt;   v$session S&lt;br /&gt;   LEFT JOIN v$sqlarea Q on S.SQL_ID = Q.SQL_ID&lt;br /&gt;   LEFT JOIN v$sqlarea PQ on S.PREV_SQL_ID = PQ.SQL_ID&lt;br /&gt;   LEFT JOIN v$process vp on s.paddr = vp.addr&lt;br /&gt;   LEFT JOIN v$transaction vt on s.saddr = vt.ses_addr&lt;br /&gt;WHERE&lt;br /&gt;   vt.start_date &lt; SYSDATE - (5/1440)&lt;br /&gt;--   AND&lt;br /&gt;--   s.machine = &#39;machine.name&#39;&lt;br /&gt;ORDER BY &lt;br /&gt;   S.SID&lt;br /&gt;;  &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;With this query, you can track down any open transactions to their Oracle subprocess PID on the operating system. Any transaction that has been running for longer than five minutes will show up with this query.&lt;br /&gt;&lt;br /&gt;Now if you wanted to create an alert (I love alerts) that will tell you when you have an open transaction for more than five minutes:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;select&lt;br /&gt;   LTRIM(COUNT(1))&lt;br /&gt;from&lt;br /&gt;   v$transaction&lt;br /&gt;where&lt;br /&gt;   start_date &lt; SYSDATE - (5/1440)&lt;br /&gt;;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks to Ted for this query.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script expr:src=&#39;&quot;http://feeds.feedburner.com/~s/takechances/OVKN?i=&quot; + data:post.url&#39; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.takechances.net/feeds/2038888635985173536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7927933726896813149/2038888635985173536' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2038888635985173536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7927933726896813149/posts/default/2038888635985173536'/><link rel='alternate' type='text/html' href='http://blog.takechances.net/2008/05/oracle-open-transactions.html' title='Oracle open transactions'/><author><name>Torleiv Flatebo</name><uri>http://www.blogger.com/profile/18245045533482532616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry></feed>