<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://dready.wetpaint.com/xsl/rss2html.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://dready.wetpaint.com/scripts/wpcss/wiki/dready/skin/organic/rss" type="text/css" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Dready's Scratchpad - Recently Updated Pages</title><link>http://dready.wetpaint.com/pageSearch/updated</link><description>Recently Updated Pages on http://dready.wetpaint.com</description><language>en-us</language><webMaster>info@wetpaint.com</webMaster><pubDate>Fri, 30 Jan 2009 02:14:45 CST</pubDate><lastBuildDate>Fri, 30 Jan 2009 02:14:45 CST</lastBuildDate><generator>wetpaint.com</generator><ttl>60</ttl><image><title>Dready's Scratchpad</title><url>http://www.wetpaint.com/img/logo.gif</url><link>http://dready.wetpaint.com</link></image><item><title>Home</title><link>http://dready.wetpaint.com/page/Home</link><author>dready</author><guid isPermaLink="false">http://dready.wetpaint.com/page/Home</guid><pubDate>Fri, 30 Jan 2009 02:14:45 CST</pubDate><description> 			This is Dready&amp;#39;s braindump - ideas, masterplans and scratchpad.&lt;br&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;In FreeBSD, if cron is not able to send email of results (with postfix complaining &amp;quot;No recipient addresses found in message header&amp;quot;), check /var/log/cron. One possibility is that the /etc/nsswitch.conf file contains references to &amp;quot;nis&amp;quot;, but nis support is not installed.&lt;/div&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>Oracle I18N</title><link>http://dready.wetpaint.com/page/Oracle+I18N</link><author>Anonymous</author><guid isPermaLink="false">http://dready.wetpaint.com/page/Oracle+I18N</guid><pubDate>Thu, 22 Jan 2009 00:08:00 CST</pubDate><description> 			&lt;br&gt;Here I note down the battles I have with Oracle dealing with I18N data:&lt;br&gt;&lt;br&gt;&lt;br&gt;Then you can try  RAWTOHEX(col) and DUMP(col) which should show you how it&amp;rsquo;s encoded in the  database.&lt;br&gt;&lt;br&gt;&lt;div&gt;Also, to find out if a column contains non-ASCII characters, use LENGTH(col) &amp;lt;&amp;gt; LENGTHB(col)&lt;/div&gt;&lt;div&gt;&lt;br&gt;To set the connection charset...&lt;br&gt;I finally managed to  get the right environment variable to use to do the  load:&lt;br&gt;dos&amp;gt; set  NLS_LANG=AMERICAN_AMERICA.UTF8&lt;br&gt;dos&amp;gt; sqlplus  &amp;hellip;.&lt;br&gt;&lt;br&gt;&lt;br&gt;Tell sqlplus to exit on error:&lt;br&gt;&lt;br&gt;WHENEVER SQLERROR ROLLBACK EXIT 5&lt;br&gt;WHENEVER OSERROR ROLLBACK EXIT 10&lt;br&gt;&lt;/div&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>WebDesk</title><link>http://dready.wetpaint.com/page/WebDesk</link><author>Anonymous</author><guid isPermaLink="false">http://dready.wetpaint.com/page/WebDesk</guid><pubDate>Wed, 13 Jun 2007 20:18:33 CDT</pubDate><description> 				WebDesk&lt;br&gt;A desktop application that can open up custom sized windows containing a web page, minimize it to tray and set always-on-top.&lt;br&gt;&lt;br&gt;As more and more useful Web 2.0 applications emerge, users find that they need to keep too many web browser windows (or tabs) open. Web browsers are typically used to access the applications, but lack the controls that make a streamlined desktop experience.&lt;br&gt;&lt;br&gt;Example web apps include: office applications, home page applications like netvibes.com, productivity applications like &lt;a class=&quot;external&quot; href=&quot;http://dready.wetpaint.comhttp://slimtracker.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;SlimTracker&lt;/a&gt;, and many more.&lt;br&gt;&lt;br&gt;The solution is to have a desktop application that lets the user opens URLs, customize the windows behavior and remember it!&lt;br&gt;Customizations include:&lt;br&gt;- minimize to tray&lt;br&gt;- close to tray&lt;br&gt;- no frame&lt;br&gt;- always-on-top&lt;br&gt;- use as deskbar&lt;br&gt;- etc..&lt;br&gt;&lt;br&gt;&lt;br&gt;It does the following:&lt;br&gt;- Click on the tray icon to bring up the list of &amp;quot;bookmarks&amp;quot;. Click on a specific bookmark and it opens up the right browser in the right window settings to the URL.&lt;br&gt;- Shape the browser in the way you like it, then click the icon on the system tray to save a bookmark for it.&lt;br&gt;- &lt;br&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>Mozilla Development</title><link>http://dready.wetpaint.com/page/Mozilla+Development</link><author>dready</author><guid isPermaLink="false">http://dready.wetpaint.com/page/Mozilla+Development</guid><pubDate>Wed, 16 Aug 2006 04:12:56 CDT</pubDate><description>&lt;h2&gt;Error codes&lt;/h2&gt;&lt;br&gt;Often you don&amp;#39;t see what an XPCOM error code means from Javascript console - it just shows up as Unknown. After Googling around and not finding what I wanted, I dug into some seamonkey code and understood that itsy bit more about error codes:&lt;br&gt;&lt;br&gt;I started with 0x804b000f showing up as &lt;br&gt;&lt;br&gt;[Exception... &amp;quot;Component returned failure code: 0x804b000f [nsIChannel.asyncOpen]&amp;quot; nsresult: &amp;quot;0x804b000f (&amp;lt;unknown&amp;gt;)&amp;quot; location: &amp;quot;JS frame :: file:///c:/wil/src/foxri/components/xrdsContentHandler.js :: anonymous :: line 249&amp;quot; data: no]&lt;br&gt;&lt;br&gt;Not a whole lot of information there. Yes, I got the line number but it is a call to asyncOpen which I have checked over and over and saw no reason why it should fail.&lt;br&gt;&lt;br&gt;Searching LXR gave me:&lt;br&gt;&lt;br&gt;http://lxr.mozilla.org/seamonkey/source/xpcom/base/nsError.h&lt;br&gt;&lt;br&gt;And I found that nothing matches my error code but there seems to be some offsetting done for module-specific error codes using the NS_ERROR_GENERATE_FAILURE macro. The module offsets are defined on line 68-98 and they are added to NS_ERROR_MODULE_BASE_OFFSET (0x45). So, my error code being 0x804BXXXX means that it is module #5 - NS_ERROR_MODULE_NETWORK. Makes sense, nsIChannel does belong to necko. &lt;br&gt;&lt;br&gt;So, I found the network errors here: http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsNetError.h#130&lt;br&gt;Yes, it&amp;#39;s NS_ERROR_IN_PROGRESS.&lt;br&gt;&lt;br&gt;There you go!&lt;br&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>OpenSSL Cheatsheet</title><link>http://dready.wetpaint.com/page/OpenSSL+Cheatsheet</link><author>Anonymous</author><guid isPermaLink="false">http://dready.wetpaint.com/page/OpenSSL+Cheatsheet</guid><pubDate>Sat, 12 Aug 2006 08:49:09 CDT</pubDate><description>&lt;br&gt;Generate the Key with the following command:&lt;br&gt;$ openssl genrsa -des3 -out www.virtualhost.com.key 1024&lt;br&gt; This command will generate 1024 bit RSA Private Key and stores it in the file www.virtualhost.com.key.&lt;br&gt; It will ask you for a pass phrase: use something secure and remember it. Your certificate will be useless without the key. If you don&amp;#39;t want to protect your key with a pass phrase (only if you absolutely trust that server machine, and you make sure the permissions are carefully set so only you can read that key) you can leave out the -des3 option above. Backupyour www.virtualhost.com.key file and make a note of the pass phrase. A good choice is to backup this information onto a diskette or other removeable media.&lt;br&gt; &lt;br&gt; Generate the CSR with the following command:&lt;br&gt; $ openssl req -new -key www.virtualhost.com.key -out www.virtualhost.com.csr&lt;br&gt; This command will prompt you for the X.509 attributes of your certificate. Remember to give the name www.virtualhost.com when prompted for `Common Name (eg, YOUR name)&amp;#39;.&lt;br&gt; Do not enter your personal name here. We are requesting a certificate for a webserver, so the Common Name has to match the FQDN of your website (a requirement of the browsers). &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; Generate a temporary self-signed Certificate:&lt;br&gt; $ openssl x509 -req -days 30 -in www.virtualhost.com.csr-signkey www.virtualhost.com.key -out www.virtualhost.com.crt&lt;br&gt; This command will generate a certificate a self-signed certificate in www.virtualhost.com.crt which can be used as a temporary certificate while you are waiting for a real certificate from Thawte.&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>XBar</title><link>http://dready.wetpaint.com/page/XBar</link><author>dready</author><guid isPermaLink="false">http://dready.wetpaint.com/page/XBar</guid><pubDate>Fri, 21 Jul 2006 04:25:53 CDT</pubDate><description>&lt;br&gt;XBar (eXtensible toolBar) is an idea to build a browser toolbar that is customizable using a variety of methods:&lt;br&gt;&lt;ul&gt;&lt;li&gt;Statically built&lt;/li&gt;&lt;li&gt;User-customization&lt;/li&gt;&lt;li&gt;Site-based: a meta tag on the current page can point to a config file that describes the search URL and options available&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;Status: idea-only&lt;br&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>SIP P2P (Siperoo)</title><link>http://dready.wetpaint.com/page/SIP+P2P+%28Siperoo%29</link><author>dready</author><guid isPermaLink="false">http://dready.wetpaint.com/page/SIP+P2P+%28Siperoo%29</guid><pubDate>Sun, 16 Jul 2006 02:13:38 CDT</pubDate><description>&lt;br&gt;Good white paper on NAT traversal: &lt;a href=&quot;http://dready.wetpaint.comhttp://www.kayote.com/web/docs/WhitePapers/KayoteNetworksWhitePaper-NAT_Traversal_in_SIP.pdf&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;external&quot;&gt;http://www.kayote.com/web/docs/WhitePapers/KayoteNetworksWhitePaper-NAT_Traversal_in_SIP.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;RTP Proxy:&lt;br&gt;&lt;a href=&quot;http://dready.wetpaint.comhttp://www.voip-info.org/wiki-Portaone+rtpproxy&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;external&quot;&gt;http://www.voip-info.org/wiki-Portaone+rtpproxy&lt;/a&gt;&lt;br&gt;&lt;br&gt;OpenSER nathelper module code showing the use of rtpproxy commands:&lt;br&gt;&lt;a href=&quot;http://dready.wetpaint.comhttp://openser.cvs.sourceforge.net/openser/sip-server/modules/nathelper/nathelper.c?revision=1.21&amp;view=markup&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;external&quot;&gt;http://openser.cvs.sourceforge.net/openser/sip-server/modules/nathelper/nathelper.c?revision=1.21&amp;amp;view=markup&lt;/a&gt;&lt;br&gt;&lt;br&gt;SDP syntax summary:&lt;br&gt;&lt;a href=&quot;http://dready.wetpaint.comhttp://www.cs.ucl.ac.uk/staff/jon/mmbook/book/node182.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;external&quot;&gt;http://www.cs.ucl.ac.uk/staff/jon/mmbook/book/node182.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>Portable Address Book Exchange Format</title><link>http://dready.wetpaint.com/page/Portable+Address+Book+Exchange+Format</link><author>dready</author><guid isPermaLink="false">http://dready.wetpaint.com/page/Portable+Address+Book+Exchange+Format</guid><comments>added vcard</comments><pubDate>Sat, 15 Jul 2006 04:28:08 CDT</pubDate><description> 				&lt;h2&gt;Address Book Format&lt;/h2&gt;&lt;br&gt;We are in need of a standardized address book format, sort of what RDF or OPML did to blogging. Before we can decide on a format (which will probably be an XML-based format) we need to decide on a schema. What fields we need. Vcard is one such format but seems to be just a single entry (needs research.)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;Address Book Access Protocol&lt;/h2&gt;&lt;br&gt;This is the counterpart to the address book format. While LDAP seems like the way to go, it is designed to be a global (network-wide or enterprise-wide) directory protocol.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;Centralize Address Book Storage&lt;/h2&gt;&lt;br&gt;This will be the del.icio.us of address books. I&amp;#39;m not sure if there is API access to it. And if there is, it could well be that all our problems are solved. But it would probably be non-standard.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;Application Support&lt;/h2&gt;&lt;br&gt;All of the above is really leading to this. We use address book in a wide array of applications, from cell phones to mail clients and PDAs. My goal to keep all my addresses in sync, and store an authoritative copy in a secure location. One place where I&amp;#39;d really like to see the address book being used is the mail server (MTA). It would be nice to get my mail server to deliver mails coming from people in my address book, and rejecting or placing lower trust levels for all others.&lt;br&gt;&lt;br&gt;Address book is also particularly useful in social networks or privacy broker (think XDI and XRI data broker).&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Links&lt;br&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://dready.wetpaint.comhttp://www.corvalis.net/address/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;external&quot;&gt;The Address Book&lt;/a&gt; - open source address management system&lt;/li&gt;&lt;li&gt;IMC Personal Data Interchange - &lt;a href=&quot;http://dready.wetpaint.comhttp://www.imc.org/pdi/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;external&quot;&gt;http://www.imc.org/pdi/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>Mail</title><link>http://dready.wetpaint.com/page/Mail</link><author>dready</author><guid isPermaLink="false">http://dready.wetpaint.com/page/Mail</guid><pubDate>Mon, 10 Jul 2006 04:06:36 CDT</pubDate><description>&lt;h2&gt;Mail Setup&lt;/h2&gt;&lt;br&gt;&lt;h3&gt;Goals&lt;/h3&gt;&lt;br&gt;To receive spam-filtered and virus-scanned emails without fear of losing them.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;Introduction&lt;/h3&gt;&lt;br&gt;On an average day, I get between 100-200 spams on my personal email address. I used to run SpamAssassin and ClamAv on my qmail system but that has sucked a lot of processing power on the system.&lt;br&gt;&lt;br&gt;The domain is question is &amp;quot;dready.org&amp;quot;.&lt;br&gt;&lt;br&gt;I have set it up to have 2 MX records, one to my mail server on a colo host, and a backup MX to my FreeBSD box behind my home ADSL connection.&lt;br&gt;&lt;br&gt;So, I&amp;#39;d like to keep it that way.&lt;br&gt;&lt;br&gt;1. Mail comes in to my mail server (either directly from the sending MTA, or via my backup MX)&lt;br&gt;2. To save processing power, I don&amp;#39;t want to run any spam filtering or virus scanning software.&lt;br&gt;3. So the mail gets delivered to my Maildir, from which I can POP using Thunderbird.&lt;br&gt;4. However, this mailbox has too much spam in it. I&amp;#39;d really like to take advantage of GMail&amp;#39;s processing power.&lt;br&gt;5. Did I mention that I hate sifting through the Spam folder? So, even if I could use SpamAssassin and Thunderbird&amp;#39;s spam filter, it&amp;#39;s not good enough because I don&amp;#39;t want to have to go through the false positives.&lt;br&gt;6. One way of doing it would be to forward it to Gmail, and POP it back out.&lt;br&gt;7. The problem with that is - if Google incorrectly marks a message as spam, I will have to go into Gmail&amp;#39;s Spam folder to retrieve it. That&amp;#39;s alright. &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h3&gt;Final Solution&lt;/h3&gt;&lt;br&gt;primary@example.com is the primary email address that I receive mails for.&lt;br&gt;This is forwarded to temp@example.com and my.account@gmail.com&lt;br&gt;Mails on temp@example.com are kept for 30 days, but provide a way to recover Gmail false positives as well as a quick way to access fresh mails (in case gmail is down)&lt;br&gt;All mails on my.account@gmail.com is spam filtered and forwarded back to filtered@example.com.&lt;br&gt;&lt;br&gt; 				&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item></channel></rss>