<?xml version="1.0" encoding="UTF-8"?>




<rss version="2.0"> <channel> <title>Evernote Openbook: Public NoteBook</title>
<link>http://www.evernote.com/pub/rolfje/PublicNoteBook</link>
<description>Notes from rolfje&#039;s  Evernote Openbook: Public NoteBook</description> 

  
  <lastBuildDate>Thu, 19 Nov 2009 16:26:52 GMT</lastBuildDate>
 
  
  <item> <title>Finding errors in the target/test-reports folder</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#c3fdee66-2474-457e-9046-f92372a07967</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Finding errors in the target/test-reports folder</div>
<div> </div>
<div>When a Luntuild Maven Build fails with &quot;There were failures&quot;, you can easily find the offending test by going to the work directory and target/test-reports</div>
<div> </div>
<div>Then issue the commands:</div>
<div>grep  'Failures: ' * | grep -v 'Failures: 0' ; grep  'Errors: ' * | grep -v 'Errors: 0'</div>
<div> </div>
<div>This will print all tests which had errors.</div>
<div> </div>
<div>Happy fixing.</div>
</div>
    
    ]]></description> <pubDate>Thu, 19 Nov 2009 16:26:52 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#c3fdee66-2474-457e-9046-f92372a07967</guid> 
  
  </item>

  
  <item> <title>JaMon and Spring</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#432b504c-54b5-4066-956e-6720c8078815</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<p>So now let’s talk about how to monitor your interfaces. Simple AOP. Now let’s look how I attached it to the unit test without being intrusive to my existing codebase (this is also a way to monitor in production when code changes are a big no-no.</p>
<div><br clear="none"/>
&lt;import resource=&quot;classpath:applicationContext.xml&quot;/&gt;&lt;bean id=&quot;jamonPerformanceMonitorInterceptor&quot; class=&quot;org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor&quot; &gt; &lt;property name=&quot;trackAllInvocations&quot; value=&quot;true&quot;&gt;&lt;/property&gt;&lt;/bean&gt;&lt;bean id=&quot;autoProxyCreator&quot; class=&quot;org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator&quot;&gt; &lt;property name=&quot;interceptorNames&quot;&gt;  &lt;list&gt;   &lt;idref bean=&quot;jamonPerformanceMonitorInterceptor&quot;/&gt;  &lt;/list&gt; &lt;/property&gt; &lt;property name=&quot;beanNames&quot;&gt;  &lt;list&gt;   &lt;value&gt;iceFixOrderRoutingMessageConsumer&lt;/value&gt;   &lt;value&gt;marketManager&lt;/value&gt;   &lt;value&gt;marketDAO&lt;/value&gt;  &lt;/list&gt; &lt;/property&gt;&lt;/bean&gt;</div>
<p>As you can see, I first import my existing applicationContext, rather than updating it to include this stuff. This allows me to run tests and change the targets without messing with the actual runtime code.  I then create the JamonPerformanceMonitorInterceptor from the Spring package and attach it to my interfaces using the ever versitile BeanNameAutoProxyCreator.</p>
<p>Once the service has been running for as long as you want and you feel you have enough reps for a good sample size (remember your unit test is suspended on the breakpoint),  simply release the breakpoint and go look at your pretty html report.</p>
</div>
    
    ]]></description> <pubDate>Thu, 05 Nov 2009 10:17:04 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#432b504c-54b5-4066-956e-6720c8078815</guid> 
  
  </item>

  
  <item> <title>Java based Mail Server DevNull SMTP</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#a0c110ba-d513-4fb6-8178-6a7a099227fa</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
Java based Mail Server DevNull SMTP
<p>I found a simple Java based SMTP Server. <a href="http://www.aboutmyip.com/AboutMyXApp/DevNullSmtp.jsp" shape="rect">DevNull SMTP</a> is a dummy SMTP server that can be used for testing purposes. It helps you see all communication between a client and the server and is very useful if you are trying to find problems with your email server or a client that you wrote.</p>
<p>Tags: <a href="http://blog.rueedlinger.ch/tag/java" shape="rect">java</a></p>
</div>
    
    ]]></description> <pubDate>Tue, 03 Nov 2009 08:19:08 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#a0c110ba-d513-4fb6-8178-6a7a099227fa</guid> 
  
  </item>

  
  <item> <title>Standard diagnostic - Thunderbird</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#c39e78b9-448b-495b-b64c-fa7c04dd5e57</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
Standard diagnostic - Thunderbird
<p>This article offers a step-by-step guide that users can follow if Thunderbird is no longer working properly and no other application is exhibiting strange behaviour.</p>
<ol><li>Reboot the computer. If the problem persists, continue on.</li><li>Close Thunderbird (if open) using &quot;File -&gt; Exit&quot; and <a href="http://kb.mozillazine.org/Kill_application" shape="rect">make sure it is not running in the background.</a> Do not skip this step.</li><li>If you have extensions or themes,
<ul>Start Thunderbird in <a href="http://kb.mozillazine.org/Safe_Mode" shape="rect">Safe Mode</a> (not Windows Safe Mode). This will start the program with all extensions disabled and with the default theme. If the problem exists in Safe Mode, or Thunderbird doesn't start in Safe Mode, continue on to the next numbered step. If the problem goes away in Safe Mode,Uninstall your most recently installed or updated extension or theme, perform step 3 again, and start Thunderbird normally. If the problem persists,Select the default theme in &quot;Tools -&gt; Themes&quot; and uninstall your extensions in &quot;Tools -&gt; Extensions&quot; (although the extensions appear grayed out, you will still be able to uninstall them). Perform step 3 again and start Thunderbird normally. If the problem persists, continue on.</ul>
</li><li>Important: <a href="http://kb.mozillazine.org/Profile_backup" shape="rect">Back up your profile</a> before continuing so that your settings and personal data (such as mail and passwords) will not be lost. Then,
<ul>Perform step 2 again and delete the file &quot;XUL.mfl&quot; (Windows), &quot;xul.mfasl&quot; (Linux), or &quot;XUL FastLoad File&quot; (Mac OS X) from your <a href="http://kb.mozillazine.org/Profile_folder" shape="rect">profile folder</a>. This file will be regenerated on next startup. If the problem persists,Perform step 2 again, then delete the &quot;localstore.rdf&quot; file from your <a href="http://kb.mozillazine.org/Profile_folder" shape="rect">profile folder</a>. You will lose any changes you have made to the toolbars. If the problem persists,Perform step 2 again, then delete the &quot;chrome&quot; and &quot;extensions&quot; folders from your <a href="http://kb.mozillazine.org/Profile_folder" shape="rect">profile folder</a>. You will lose all your extensions and themes. If the problem persists,Perform step 2 again, then <a href="http://kb.mozillazine.org/Profile_manager" shape="rect">create a new profile</a>. Your personal data and settings will be gone. If the problem is resolved, <a href="http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Thunderbird" shape="rect">selectively copy back your important profile data</a> to the new profile. If the problem persists,...</ul></li></ol></div>
    
    ]]></description> <pubDate>Thu, 29 Oct 2009 12:17:52 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#c39e78b9-448b-495b-b64c-fa7c04dd5e57</guid> 
  
  </item>

  
  <item> <title>Sonar Workaround for Close Connection problem.</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#1d5e7699-6b2e-403b-b332-ccb3ac09cd86</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Sonar Workaround for Close Connection problem.</div>
<div> </div>
<div>When you use Spring and Ibatis and SQLTemplates, you could have code in your project which looks somewhat like this:</div>
<div> </div>
<div>Connection connection = DataSourceUtils.getConnection(getDataSource());</div>
<div>...&lt;do connection stuff here&gt;...</div>
<div>DataSourceUtils.releaseConnection(connection, getDataSource());</div>
<div> </div>
<div>Sonar will report that you did not close the connection, while in fact, you did. You can not just add a &quot;connection.close()&quot; to the code because the whole point of calling &quot;releaseConnection&quot; is to have Spring handle all the smart stuff on committing, closing, and returning the connection to the pool if needed.</div>
<div> </div>
<div>In our company, not closing the connection is a major blocking violation (and it should be). But in this case, there is no way to make the Jedi wave to Sonar, telling it that &quot;this code will do just fine&quot;. So I added the following trick, albeit a bit dirty:</div>
<div> </div>
<div>if (connection.isClosed()){<br clear="none"/>   // releaseConnection handles connection closing   </div>
<div>  // This code does nothing, and is only here to<br clear="none"/>   // keep Sonar from warning us that the connection<br clear="none"/>   // is not closed. Please note: Do not just close an<br clear="none"/>   // unclosed connection, Spring should handle connection<br clear="none"/>   // closing and returing to the pool.<br clear="none"/>   connection.close();<br clear="none"/>
}</div>
<div> </div>
<div>Use it to your advantage, but use this responsibly. If you see any problems in my solution, or if there is a better way to do this I'd be happy to hear about it.</div>
<div> </div>
<div>(added to <a href="http://www.rolfje.com/" shape="rect">www.rolfje.com</a>)</div>
</div>
    
    ]]></description> <pubDate>Mon, 19 Oct 2009 14:09:44 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#1d5e7699-6b2e-403b-b332-ccb3ac09cd86</guid> 
  
  </item>

  
  <item> <title>Save FLV files (like blip.tv and youtube) for local viewing</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#68ff22f0-5864-4ab9-a62d-5addd2bd949a</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote"><div align="center"><div><div align="left"><div>Does ne1 know a way to save flash video embedded in a web page to a movie file without using a utility like snapzpro? I would like to save the .swf directly, the files I am trying to save a called by a java applet.</div><div><br clear="none"/><div></div>If your talking about videos like youtube(.flv), then you can do this in safari. Go to Window/activity monitor in the menu bar. Look for the entry where the file size is in the MB range rather than KB. Double click it. This will download the file. You may have to add the .flv extension as well as install Perian on your machine. Its free and quite handy. Enjoy.<br clear="none"/>Google for Cosmopod or Tubesock. Both install into Safari and work well.<br clear="none"/>You could check out KeepVid at:<a href="http://keepvid.com/" shape="rect">http://keepvid.com/</a><br clear="none"/>It's just a bit of (free) javascript code -- you can put it on your bookmark bar and click on the link to download and save the video using a default file name -- you can rename it after it downloads.Note that there are several versions of similar javascript downloading code snippets from different folks -- this is just the one that I found first.</div></div></div></div><div align="center"><div><div align="left"><div><br clear="none"/><br clear="none"/><br clear="none"/><br clear="none"/></div></div></div></div></div>
    
    ]]></description> <pubDate>Thu, 06 Aug 2009 17:58:08 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#68ff22f0-5864-4ab9-a62d-5addd2bd949a</guid> 
  
  </item>

  
  <item> <title>Java -Xmx Settings and PermGen Space</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#2c08c7c4-8ad4-4963-bffe-abf855db0df8</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote">
Java's -Xmx Heap Settings
<p>Java has a couple of settings that help control how much memory it uses:</p>
<ul><li>-Xmx sets the maximum memory heap size</li><li>-Xms sets the minimum memory heap size.</li></ul>
Keep -Xms Small
<p>For a server with a 'small' amount of memory, then we recommend that -Xms is kept as small as possible.  e.g. -Xmx 16m.  Some customers set this higher, but that can lead to issues.  e.g. the command that restarts tomcat runs a java process.  That Java process picks up the same -Xms setting as the actual Tomcat process.  So you will effectively be using two times -Xms when doing a restart.  If you set -Xms too high, then you may run out of memory.</p>
Don't Let -Xmx Be Too Low
<p>When setting the -Xmx setting you should consider a few things...  -Xmx has to be enough for you to run your app.  If it is set too low then you may get Java OutOfMemory exceptions (even when there is sufficient spare memory on the server).</p>
Figuring Out a Reasonable -Xmx
<p>If you have 'spare' memory, then increasing the -Xmx setting is often a good idea.  Just note that the more you allocate to Java the less will be available to your database server or other applications and less for Linux to cache your disk reads.</p>
<p>Whatever you do, you should ensure that the total of the -Xmx settings does not exceed the 'spare' memory on your server.  You can figure your 'spare' memory by stopping your Java processes and starting up everything else that is normally running on your server.  When you run free -m it will tell you how much memory you are using.  If you subtract that value from your total memory and then subtract a bit more (for safety) that will be the maximum you should allocate with -Xmx.  e.g. if you have 96MB 'spare' then you could allocate two -Xmx48m Java processes.  Or one -Xmx96m process.</p>
Tomcat -Xmx Settings
<p>We put our -Xmx/-Xms settings for Tomcat in /usr/local/tomcat/bin/setenv.sh in the JAVA_OPTS variable.  We find that -Xmx48 is sufficient to run a minimal Tomcat with the sample webapps installed.</p>
Heads Up If You Have a Big/Complex App
<p>Note that ...</p></div>
    
    ]]></description> <pubDate>Wed, 22 Jul 2009 14:04:44 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#2c08c7c4-8ad4-4963-bffe-abf855db0df8</guid> 
  
  </item>

  
  <item> <title>iptables port redirecting</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#832930b7-52f2-4fef-ab75-3026d2a4cf9f</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote">To redirect port 80 to port 8080 on a linux machine:<br clear="none"/>sudo iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT<br clear="none"/>sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT<br clear="none"/>sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080<br clear="none"/><br clear="none"/>sudo iptables -A INPUT -i lo -p tcp --dport 80 -j ACCEPT<br clear="none"/>sudo iptables -A INPUT -i lo -p tcp --dport 8080 -j ACCEPT<br clear="none"/>sudo iptables -t nat -A PREROUTING -i lo -p tcp --dport 80 -j REDIRECT --to-port 8080 <br clear="none"/><br clear="none"/>Is temporary (reboot removes the route), and does not work for local webbrowsers (have to find out why).<br clear="none"/></div>
    
    ]]></description> <pubDate>Mon, 20 Jul 2009 15:06:25 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#832930b7-52f2-4fef-ab75-3026d2a4cf9f</guid> 
  
  </item>

  
  <item> <title>e-Services architectuur open discussie</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#b4d03e77-df6f-4086-a43d-fd0fe85e3f42</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>e-Services architectuur open discussie</div>
<div> </div>
<div>e-Services is opgebouwd uit :</div>
<div>- 2x Applicatie server (Tomcat) met in iedere server 1 instantie van de applicatie</div>
<div>- 1x Backend database met daarin lokale data, en gerepliceerde data in aparte schema's</div>
<div>- Aantal externe landen die een e-Connector implementeren waaraan e-Services connect</div>
<div>- Verbinding met een externe mailserver</div>
<div> </div>
<div>Technologie van e-Services is Java 1.4, Gebruikt frameworks en libraries als Spring, Ibatis, Tapestry 3, Velocity</div>
<div>e-Connectors zijn specifiek voor de backoffice</div>
<div>e-Services is niet zondermeer op te delen in meerdere systemen. Uitgangspunt van e-Services is een simpele, standalone applicatie die eenvoudig is te beheren, en meerdere landen kan bedienen, om daarmee de beheerskosten per land zo laag mogelijk te houden. Voor het aanbieden van meerdere kanalen kan worden nagedacht over een splitsing van de frontend en de servicelaag. Hierdoor zouden we een aparte webservice, aparte HTML frontend, aparte SMS frontend, aparte PDA frontend kunnen maken. De Servicelaag voorziet hier al deels in.</div>
<div> </div>
<div>Contentbeheer wordt op dit moment gedaan in Excel files, en is relatief beperkt. Content beheer in applicaties is notoir lastig, omdat de contend nauw samenhangt met de geboden functies. Geboden functies zijn niet eenvoudig te veranderen, waardoor de mogelijkheden tot verandering van de content relatief beperkt blijft. We zouden onderzoek kunnen doen naar contentbeheer systemen i.c.m. web frameworks. Ervaring leert dat er weinig pasklare oplossingen beschikbaar zijn. Content management systemen voegen meestal een extra complexiteit toe in de vorm van o.a. een database, en toegangs management. Deze extra complexiteit moet worden afgewogen tegen de mate van verandering van de applicatie.</div>
<div> </div>
<div>Performance eisen zijn wel ooit genoemd in eerdere SRS-en, maar in de praktijk wordt daar nu niet op getest. Performance eisen moeten testbaar opgesteld worden (10 trx per seconde is niet genoeg. Op welke machne, wat voor transacties, wat voor netwerk, bij hoeveel load, bij hoeveel par...</div></div>
    
    ]]></description> <pubDate>Tue, 14 Jul 2009 21:26:49 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#b4d03e77-df6f-4086-a43d-fd0fe85e3f42</guid> 
  
  </item>

  
  <item> <title>Wubi Ubuntu installer</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#f8ea2c60-6071-4e55-837e-12a03016b9bf</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote">http://wubi-installer.org/<br clear="none"/><br clear="none"/>Wubi is an officially supported Ubuntu installer for Windows users that
can bring you to the Linux world with a single click. Wubi allows you
to install and uninstall Ubuntu as any other Windows application, in a
simple and safe way. Are you curious about Linux and Ubuntu? Trying
them out has never been easier!</div>
    
    ]]></description> <pubDate>Fri, 10 Jul 2009 14:16:35 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#f8ea2c60-6071-4e55-837e-12a03016b9bf</guid> 
  
  </item>

  
  <item> <title>What is DevNull SMTP</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#c37b927d-f1a4-46c6-b8e4-01ded61b1050</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
What is DevNull SMTP
<div>It is a dummy SMTP server that can be used for testing purposes. It helps you see all communication between a client and the server and is very useful if you are trying to find problems with your email server or a client that you wrote.</div>
<div> </div>
<div>Devnull also is able to save any incomming message as &quot;eml&quot; file in a specified directory, so you can open the mail to see what it will look like in a mail client.</div>
</div>
    
    ]]></description> <pubDate>Fri, 03 Jul 2009 11:56:36 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#c37b927d-f1a4-46c6-b8e4-01ded61b1050</guid> 
  
  </item>

  
  <item> <title>Set Linux Date and Time Instantly</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#ae01ced8-9779-4e38-a2ec-258595ae6a4a</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Set Linux Date and Time Instantly</div>
<div> </div>
<div>On the command prompt, as user root, issue the following command:</div>
<div> </div>
<div>ntpdate -b pool.ntp.org</div>
<div> </div>
<div>More info on</div>
<div>http://www.brennan.id.au/09-Network_Time_Protocol.html</div>
</div>
    
    ]]></description> <pubDate>Tue, 30 Jun 2009 11:09:48 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#ae01ced8-9779-4e38-a2ec-258595ae6a4a</guid> 
  
  </item>

  
  <item> <title>Find SQL statement causing Oracle Database Lock:</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#78c056ff-7147-495c-96ed-4659165cca5e</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Find SQL statement causing Oracle Database Lock:</div>
<div> </div>
<div>-- Find SID for lock:<br clear="none"/>
select<br clear="none"/>
        s.username, s.status, s.sid, s.serial#,<br clear="none"/>
        p.spid, s.machine, s.process, s.lockwait<br clear="none"/>
from    v$session s, v$process p<br clear="none"/>
where   s.lockwait is not null<br clear="none"/>
and     s.paddr = p.addr;<br clear="none"/>
<br clear="none"/>
-- Find statement for SID:<br clear="none"/>
select<br clear="none"/>
        sid, username, command, lockwait, status,<br clear="none"/>
        osuser, sql_text<br clear="none"/>
from v$session s, v$sqlarea q<br clear="none"/>
where s.sql_hash_value = q.hash_value<br clear="none"/>
and s.sql_address = q.address<br clear="none"/>
and s.sid = 119;</div>
</div>
    
    ]]></description> <pubDate>Thu, 02 Jul 2009 07:27:22 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#78c056ff-7147-495c-96ed-4659165cca5e</guid> 
  
  </item>

  
  <item> <title>Deploying SWT Applications on Mac OS X</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#f9e47cb6-7cd2-496a-a1b8-ff77c1ff9b22</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
Deploying SWT Applications on Mac OS X
<p>Under Mac OS X, applications are stored in an application bundle, which is simply a directory containing the executable and any associated resources for an application. An application bundle has the extension .app and appears as a single file in the Finder.</p>
<p>These application bundles are usually distributed inside compressed disk images with the extension .dmg. Disk images are automatically mounted on download, presenting the user with the bundle icon so it can be dragged to their Applications folder. More information on application bundles and disk images can be found in the <a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution/index.html" shape="rect">Software Distribution</a> section of the Apple documentation.</p>
</div>
    
    ]]></description> <pubDate>Wed, 24 Jun 2009 09:14:18 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#f9e47cb6-7cd2-496a-a1b8-ff77c1ff9b22</guid> 
  
  </item>

  
  <item> <title>Microsoft Captcha complaint</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#37fdb6d6-e330-4517-86b8-bb3859317640</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Microsoft Captcha complaint</div>
<div> </div>
<div>Ok trying this again. Why would you invent a new CAPTCHA while there are so many good implementations of this? This captcha is way too convoluted, unusable by visualy or mentally impaired people, and takes up a huge amount of screen real estate.</div>
<div> </div>
<div>The only thing missing is &quot;Rubik&quot; at the botton of this cube :-) . I wonder if this was &quot;hallway usability tested&quot; in a non-computer savvy office.</div>
<div> </div>
<div>If this captcha is to be implemented widely by microsoft, I predict a quick hack, because OCR-ing this thing is probably not hard at all. Please see http://www.captcha.net/ for readily available, tried, tested and free solutions.</div>
</div>
    
    ]]></description> <pubDate>Wed, 17 Jun 2009 12:18:34 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#37fdb6d6-e330-4517-86b8-bb3859317640</guid> 
  
  </item>

  
  <item> <title>Comparing Oracle database layout</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#137924b7-a444-4fe3-9236-eaf8c3178bf0</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Comparing Oracle database layout</div>
<div> </div>
<div>Select all tables, columns, and data types like so:</div>
<div> </div>
<div>select table_name, column_name, data_type<br clear="none"/>
from all_tab_columns<br clear="none"/>
where owner = 'OWNER'<br clear="none"/>
order by table_name, column_name, data_type;</div>
<div> </div>
<div>Output this to seperate text files , and compare these files.</div>
<div> </div>
<div>Fancier type output:</div>
<div> </div>
<div>select table_name, column_name, data_type || '(' || DATA_LENGTH || ')'<br clear="none"/>
from all_tab_columns<br clear="none"/>
where owner = 'WILLOW2K'<br clear="none"/>
and table_name like '%EU%'<br clear="none"/>
and table_name like 'EC%'<br clear="none"/>
order by table_name, column_name, data_type;</div>
</div>
    
    ]]></description> <pubDate>Thu, 30 Jul 2009 15:33:48 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#137924b7-a444-4fe3-9236-eaf8c3178bf0</guid> 
  
  </item>

  
  <item> <title>An ABC of geotagging photos on the Mac at bioneural.net</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#ad4fff99-471e-4151-bb07-2fcb066c2930</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote">
<p>This article considers geotagging photos from a Mac perspective, looking at automatic and manual methods, and explaining terms such as data loggers, track points, waypoints, and routes. It lists OS X software options for connecting to data loggers, converting track log formats, geo-locating photos, and writing that data to EXIF for both raw and JPEG images. It also covers the importance of time synchronization, what you can do with geotagged photos, workflow, choosing a data logger and controlling it from your Mac.</p>
</div>
    
    ]]></description> <pubDate>Mon, 08 Jun 2009 11:14:09 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#ad4fff99-471e-4151-bb07-2fcb066c2930</guid> 
  
  </item>

  
  <item> <title>Disable Caps Lock in Windows</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#bff3fee0-823d-449d-8d68-d7607ae0dd07</link>
  <description><![CDATA[
    
    
    
        <a href="http://www.evernote.com/pub/rolfje/PublicNoteBook#bff3fee0-823d-449d-8d68-d7607ae0dd07"><img align="right" src="http://www.evernote.com/shard/s2/thumb/bff3fee0-823d-449d-8d68-d7607ae0dd07"/></a>
        <div class="ennote">
<div>
<p>Now you can disable your Caps Lock key in Windows... without any special software, and without having to pry the key off with a screwdriver. Read on to find out how. I also have a page on how to <a href="http://johnhaller.com/jh/useful_stuff/disable_windows_key/" shape="rect">disable the Windows key</a>.</p>
Background
<p>Accidentally hitting the Caps Lock key when typing up an email or coding can be maddening. Most people never use it anyway, so why not disable it? In Windows, you can by adding some keyboard scancode mapping information to your Windows registry. The <a href="http://www.annoyances.org/exec/forum/winxp/r1017256194" shape="rect">complete details are at annoyances.org</a>. To make it even easier, I decided to add some .REG files so you can disable your shift key yourself without needing to muck around with the registry.</p>
Compatibility
<p>This method of disabling the Caps Lock key works with all modern Windows variants: Windows 2000, Windows XP Pro &amp; Home and Windows 2003. It will not work with older versions.</p>
Warnings
<ul><li>These files are provided without warranty. Use them at your own risk.</li><li>These files will overwrite any keyboard mappings you currently have.</li><li>.REG files update your Windows registry. Incorrect changes to the registry may damage Windows or other installed software. Be sure you know what a given .REG file contains before merging it into the registry.</li><li>These files are unsupported, please do not contact me with questions on their use.</li></ul>
Installation / Files
<p>The following files are .reg files. They modify the Windows registry directly. You should download them to your PC and then double-click them to add them to your registry. After saying YES to the message box, reboot your machine and enjoy freedom from Caps Lock annoyances.</p>
<ul><li>Change Caps Lock into a SHIFT key: <a href="http://johnhaller.com/jh/useful_stuff/disable_caps_lock/caps_lock_to_shift.reg" shape="rect">caps_lock_to_shift.reg</a></li><li>For the UNIX Folks:
Change Caps Lock into a Control key: <a href="http://johnhaller.com/jh/useful_stuff/disable_caps_lock/caps_lock_to_control.reg" shape="rect">caps_lock_to_control.reg</a>Swap Caps Lock and the left Control key: <a href="http://johnhaller.com/jh/useful_stuff/disable_caps_lock/swap_caps_lock_and_control.reg" shape="rect">swap_caps_lock_and_control.reg</a>
</li><li>Disable Caps Lock entirely: <a href="http://johnhaller.com/jh/useful_stuff/disable_caps_lock/disable_caps_lock.reg" shape="rect">disable_caps_lock.reg</a></li><li>Disable Caps Lock and Both Windows keys: <a href="http://johnhaller.com/jh/useful_stuff/disable_caps_lock/disable_caps_lock_and_both_windows_keys.reg" shape="rect">disable_caps_lock_and_both_windows_keys.reg</a></li><li><b>UNINSTALL</b>: Change Caps Lock Back to Caps Lock: <a href="http://johnhaller.com/jh/useful_stuff/disable_caps_lock/remove_scancode_mappings.reg" shape="rect">remove_scancode_mappings.reg</a> (Removes all scancode mappings) *Th...</li></ul></div></div>
    
    ]]></description> <pubDate>Mon, 25 May 2009 09:38:21 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#bff3fee0-823d-449d-8d68-d7607ae0dd07</guid> 
  
    <enclosure url="http://www.evernote.com/shard/s2/thumb/bff3fee0-823d-449d-8d68-d7607ae0dd07"
               length="0" type="image/jpeg"/>
  
  </item>

  
  <item> <title>Running TOAD without the full Oracle client</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#25b52108-50b1-4d52-8932-a1548a932f16</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Running TOAD without the full Oracle client</div>
<div> </div>
<div>Download TOAD freeware</div>
<div>Download the Oracle instant client (this is only a zip file with the drivers)</div>
<div>Add the directory in which you unpacked the instant client to the PATH</div>
<div>Start up TOAD, it will auto-detect the instant client, which shows up in the &quot;Connect using&quot; dropbox</div>
<div> </div>
<div>Create a tnsnames.ora file, according to the following format:</div>
<div> </div>
<div>&lt;local database reference name&gt; =<br clear="none"/>
  (DESCRIPTION = Some description here<br clear="none"/>
    (ADDRESS = (PROTOCOL = TCP)(HOST = &lt;database hostname&gt;)(PORT = &lt;portnumber, usually 1521&gt;))<br clear="none"/>
    (CONNECT_DATA =<br clear="none"/>
      (CONNECT_DATA = (SID = &lt;database name&gt;))<br clear="none"/>
    )</div>
<div><br clear="none"/>
  )</div>
</div>
    
    ]]></description> <pubDate>Wed, 29 Apr 2009 14:03:39 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#25b52108-50b1-4d52-8932-a1548a932f16</guid> 
  
  </item>

  
  <item> <title>279 DAYS TO OVERNIGHT SUCCESS</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#73d89053-110e-4bcb-bdde-dcdf470aa41a</link>
  <description><![CDATA[
    
    
    
        <a href="http://www.evernote.com/pub/rolfje/PublicNoteBook#73d89053-110e-4bcb-bdde-dcdf470aa41a"><img align="right" src="http://www.evernote.com/shard/s2/thumb/73d89053-110e-4bcb-bdde-dcdf470aa41a"/></a>
        <div style="background-color:#ffffff;" class="ennote">
<div>279 DAYS TO OVERNIGHT SUCCESS</div>
<p>If you're new here, you may want to learn <a href="http://www.chrisguillebeau.com/3x5/about-the-project" shape="rect">what this site is about</a>. I encourage you to subscribe to my <a href="http://feeds.feedburner.com/ChrisGuillebeau-3x5" shape="rect">RSS feed</a> or sign up for <a href="http://chrisguillebeau.com/3x5/info-for-new-readers/email-newsletter" shape="rect">free email updates</a>. Thanks for visiting!</p>
<div></div>
<p>Friends and readers, here is my second manifesto, 279 Days to Overnight Success.</p>
<p>It tells the story of this web site, but more importantly, it offers 11,000 words of free advice on how to create your own success with your own project. I offer this information freely, but please use it wisely.</p>
<p><a href="http://chrisguillebeau.com/3x5/files/2009/04/279days.pdf" shape="rect">DOWNLOAD THE MANIFESTO HERE</a></p>
<p>(Free PDF - be sure to update to the most recent version of <a href="http://get.adobe.com/reader" shape="rect">Adobe Reader</a>)</p>
</div>
    
    ]]></description> <pubDate>Fri, 24 Apr 2009 11:46:48 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#73d89053-110e-4bcb-bdde-dcdf470aa41a</guid> 
  
    <enclosure url="http://www.evernote.com/shard/s2/thumb/73d89053-110e-4bcb-bdde-dcdf470aa41a"
               length="0" type="image/jpeg"/>
  
  </item>

  
  <item> <title>Setting Time on a Linux machine</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#3a23caf8-8555-4f13-865e-3db60ec6abb0</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote">

Programs for working with time and date are:
<ul><li>clock - This is a soft link to hwclock.</li><li>date(1) - Print or set the system date and time.</li><li>hwclock(8) - Sets the hardware clock based on values entered on the command line.</li><li>setclock(8) - Sets the BIOS hardware clock based on the time and setup of the system clock.</li><li>timeconfig(8) - A program used to configure the system configuration file &quot;/etc/sysconfig/clock&quot; which includes the type of clock and timezone.</li></ul>
An Example:
<p>While logged in as root do the following:</p>
<ol><li>Type &quot;date&quot;.</li><li>You should see some variation of&quot;
<p>&quot;Wed Nov 24, 9:29:17 EST 1999&quot;</p>
</li><li>To change the time type(as an example):
<p>date -s 10:10</p>
</li><li>The system response will be:
<p>&quot;Wed Nov 24, 10:10:02 EST 1999&quot;</p>
</li><li>Then if you want to set the hardware(BIOS) clock so the system will keep the time when it reboots type:
<p>clock -w</p>
</li></ol>

</div>
    
    ]]></description> <pubDate>Fri, 24 Apr 2009 10:19:07 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#3a23caf8-8555-4f13-865e-3db60ec6abb0</guid> 
  
  </item>

  
  <item> <title>OpenSSO informative blog</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#b733b46e-0702-4897-b082-4984cee8d289</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote">
<p>What a Difference Updated OpenSSO Federation Docs Make</p>
<p>I recently posted two updated docs from the OpenSSO Enterprise engineering team regarding the federation architecture and use cases. You can access these documents from <a href="https://opensso.dev.java.net/servlets/ProjectDocumentList?folderID=4018&amp;expandFolder=4018&amp;folderID=7017" shape="rect">tree</a> or using the links below.</p>
<ul><li><a href="https://opensso.dev.java.net/files/documents/3676/43872/federation-arch.pdf" shape="rect">Federation Service Architecture</a></li><li><a href="https://opensso.dev.java.net/files/documents/3676/43875/federation_usecases.pdf" shape="rect">Federation Service Use Cases</a></li></ul>
</div>
    
    ]]></description> <pubDate>Mon, 20 Apr 2009 16:23:38 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#b733b46e-0702-4897-b082-4984cee8d289</guid> 
  
  </item>

  
  <item> <title>Generate GForge public/private keys:</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#b5c6094a-8fcd-4411-8611-e97e1a839c0d</link>
  <description><![CDATA[
    
    
    
        
        <div style="background-color:#ffffff;" class="ennote">
<div>Generate GForge public/private keys:</div>
<div> </div>
<div>In CygWin:</div>
<div><br clear="none"/>
$ ssh-keygen<br clear="none"/>
Generating public/private rsa key pair.<br clear="none"/>
Enter file in which to save the key (/home/rohe/.ssh/id_rsa): privatekey.rsa<br clear="none"/>
Enter passphrase (empty for no passphrase):<br clear="none"/>
Enter same passphrase again:<br clear="none"/>
Your identification has been saved in privatekey.rsa.<br clear="none"/>
Your public key has been saved in privatekey.rsa.pub.<br clear="none"/>
The key fingerprint is:<br clear="none"/>
ac:8c:64:3f:b2:28:b7:bd:31:1a:d9:8e:d2:17:03:96 rohe@pc618<br clear="none"/>
The key's randomart image is:<br clear="none"/>
+--[ RSA 2048]----+<br clear="none"/>
|                 |<br clear="none"/>
|                 |<br clear="none"/>
|   .             |<br clear="none"/>
|  E    .         |<br clear="none"/>
| . .o   S        |<br clear="none"/>
|   =o+ .         |<br clear="none"/>
| .o *o=          |<br clear="none"/>
|o oB.= .         |<br clear="none"/>
| +=o=.           |<br clear="none"/>
+-----------------+</div>
<div> </div>
<div> </div>
<div>$ ls -al<br clear="none"/>
-rw-------   1 rolf           mkgroup-l-d   1675 Apr  6 13:48 privatekey.rsa<br clear="none"/>
-rw-r--r--   1 rolf           mkgroup-l-d    392 Apr  6 13:48 privatekey.rsa.pub</div>
<div><br clear="none"/>
$ cat privatekey.rsa.pub</div>
<div>ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvNabOOvytcioimSWkHTHI3Z6Tf7JlAayjc4kt3qYquvhe4y4GEqiLuPpsw51Sz7BVidSJRchBq9ZblO/6HGkjDnj6PoND<br clear="none"/>
HcbKaFdcNif9t8xEj2JT4H1zoh5VW2qk2AGz2BOOsplWZriw0+h2H9Kb+TzDC02qyOItviHqUgILddV/8o3GXeZYA6J0eVCFfGNkT9w29LJBv+Z4QQoxQN2cp1uHfeY3D<br clear="none"/>
Qo099akDl64U5zUrB3youNjNlBNxzpl+yCXSy/MlbO7s829lzokXBdIb5Lzk6WBr7WhgT1kTTrKBHd4Hdfyb3BPhnhNB9mzYaZUyUPBabqA2Ljn8mimGB62w== rolf@p<br clear="none"/>
c618</div>
<div><br clear="none"/></div>
</div>
    
    ]]></description> <pubDate>Mon, 06 Apr 2009 12:56:32 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#b5c6094a-8fcd-4411-8611-e97e1a839c0d</guid> 
  
  </item>

  
  <item> <title>Turn off ie8 renderimg</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#1b63e19b-44b3-459b-a1ba-6d53b28254d6</link>
  <description><![CDATA[
    
    
    
        
        <div class="ennote"><a shape="rect" href="http://twitter.com/SuperDalgas/status/" target="_blank">http://twitter.com/SuperDalgas/status/</a>1374453226<br clear="none"/><br clear="none"/>&quot;Don't like IE8 rendering, turn it off: - used by sites such as  <br clear="none"/>MICROSOFT.COM&quot;<br clear="none"/>- Geoff Dalgas (@SuperDalgas)</div>
    
    ]]></description> <pubDate>Fri, 24 Apr 2009 10:24:45 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#1b63e19b-44b3-459b-a1ba-6d53b28254d6</guid> 
  
  </item>

  
  <item> <title>macosxhints.com - Add current iTunes track to a chosen playlist</title> <link>http://www.evernote.com/pub/rolfje/PublicNoteBook#d497a802-fce2-4f37-bdcc-81dfec00a91f</link>
  <description><![CDATA[
    
    
    
        <a href="http://www.evernote.com/pub/rolfje/PublicNoteBook#d497a802-fce2-4f37-bdcc-81dfec00a91f"><img align="right" src="http://www.evernote.com/shard/s2/thumb/d497a802-fce2-4f37-bdcc-81dfec00a91f"/></a>
        <div class="ennote">
Add current iTunes track to a chosen playlist<br clear="none"/>
Mon, Aug 25 2003 at 9:33AM PDT • Submitted by <a href="http://www.macosxhints.com/users.php?mode=profile&amp;uid=13346" shape="rect">seven5</a><a rel="category tag" href="http://www.macosxhints.com/index.php?topic=apps" shape="rect" target="_blank"></a>

<div>Ok, this might not sound all that interesting, but it's all in how you use it! I wrote this very simple AppleScript to tell iTunes to add the song that was currently playing to a specific playlist. I called this playlist &quot;Current Favs.&quot; I wanted to be able to add songs to this list whenever I wanted to on the fly. I'll give you the script, then tell you how it is really convenient.
<div><br clear="none"/>-- Set myList to the name of the playlist to<br clear="none"/>-- which you wish to add the currently playing song.<br clear="none"/><br clear="none"/>set myList to &quot;Current Favs&quot;<br clear="none"/><br clear="none"/>property okflag : false<br clear="none"/><br clear="none"/>tell application &quot;Finder&quot;<br clear="none"/>  if (get name of every process) contains &quot;iTunes&quot; then ¬<br clear="none"/>  set okflag to true<br clear="none"/>end tell<br clear="none"/><br clear="none"/>if okflag then<br clear="none"/>  tell application &quot;iTunes&quot;      <br clear="none"/>    set currentList to playlist myList<br clear="none"/>    add (get location of current track) to currentList<br clear="none"/>  end tell<br clear="none"/>end if<br clear="none"/></div>

Once you've created the script, put it somewhere for safe keeping. I put all my referenced scripts under ~/Applescripts. Now the beauty of this script comes when you use a hot key application like <a target="_blank" href="http://www.scriptsoftware.com/ikey/" shape="rect">iKey</a> (Youpi Key) to set it to run with the press of a key. I already have F10 F11 and F12 set to prev track, pauseplay, next track respectively, so i set F9 to launch this applescript. Once you hit the key, its all transparent. You see nothing, and iTunes doesn't even gain focus. The track is instantly added to that playlist.<br clear="none"/>
<br clear="none"/>
Next, I tell iTunes to use THAT playlist as one of the ones that is synced to my iPod. Now i have an instant key to add songs to my iPod. Whenever I hear a good song and think, 'MAN thats a good song!,' it gets bookmarked for later as well as instantly synced to my iPod once it's connected ... with nothing more than a button push.</div>


</div>
    
    ]]></description> <pubDate>Thu, 19 Mar 2009 16:28:59 GMT</pubDate> <guid>http://www.evernote.com/pub/rolfje/PublicNoteBook#d497a802-fce2-4f37-bdcc-81dfec00a91f</guid> 
  
    <enclosure url="http://www.evernote.com/shard/s2/thumb/d497a802-fce2-4f37-bdcc-81dfec00a91f"
               length="0" type="image/jpeg"/>
  
  </item>
 </channel> </rss>