tag:blogger.com,1999:blog-7344183128024933282024-03-08T09:49:01.468-08:00The Progressive NoobA noob - one new to the game. That's what this blog is all about. Trying new things. For one, this is my first blog. Progressive - new, better, progress, esp. since the conservative media has made liberal a dirty word. See also my noob website about meditation: http://www.imeditatenow.com.Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-734418312802493328.post-61586757313941900022010-10-06T09:31:00.001-07:002010-10-06T09:31:27.971-07:00Yes on 24.Vote!Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-47693533232774848382010-01-22T15:44:00.001-08:002010-01-22T15:44:11.693-08:00Corporations Are IndividualsSince they get free speech, they also should be incarcerated and get the death penalty for crimes they commit. They means all of their shareholders.Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-92110047789008642082009-08-28T16:35:00.000-07:002009-08-31T09:24:23.856-07:00Configure Flex To Use Either AMF or AMF-SECURE<blockquote></blockquote>How To Configure Flex To Use Either AMF or AMF-SECURE<br /><br />I needed to develop a Flex application on my desktop and test using Tomcat 6 out of the box, without a certificate installed for HTTPS. However I need to deploy that application to a test and production server that force the use of HTTPS.<br /><br />There is no good documentation on the web explaining how you can do this. It's not difficult. I'm writing this to save you the trial and error process I went through.<br /><br />#1. In your services-config.xml file you need the following entries to define your amf and amf-secure channels. The trick here is that we make these polling so that the system will be able to switch to the other channel if the first one it tries fails, given that you follow the instructions in Step 2:<br /><br /><pre><br /> <channel-definition id=\"my-secure-amf\" class=\"mx.messaging.channels.SecureAMFChannel\"><br /> <endpoint url=\"https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure\" class=\"flex.messaging.endpoints.SecureAMFEndpoint\"/><br /> <properties><br /> <add-no-cache-headers>false</add-no-cache-headers> <br /> <polling-enabled>true</polling-enabled><br /> <polling-interval-millis>0</polling-interval-millis><br /> <wait-interval-millis>-1</wait-interval-millis><br /> <max-waiting-poll-requests>0</max-waiting-poll-requests><br /> </properties><br /> </channel-definition><br /><br /> <channel-definition id=\"my-amf\" class=\"mx.messaging.channels.AMFChannel\"><br /> <endpoint url=\"http://{server.name}:{server.port}/{context.root}/messagebroker/amf\" class=\"flex.messaging.endpoints.AMFEndpoint\"/><br /> <properties><br /> <add-no-cache-headers>false</add-no-cache-headers> <br /> <polling-enabled>true</polling-enabled><br /> <polling-interval-millis>0</polling-interval-millis><br /> <wait-interval-millis>-1</wait-interval-millis><br /> <max-waiting-poll-requests>0</max-waiting-poll-requests><br /> </properties><br /> </channel-definition><br /></pre><br /><br />#2. In your remoting-config.xml and your proxy-config.xml files define the following. The trick here is that you are defining two channels for use. If one fails the system will try the next.<br /> <default-channels><br /> <channel ref="my-secure-amf"/><br /> <channel ref="my-amf"/><br /> </default-channels><br /><br />That's it! As soon as I made the above changes I was able to build and deploy my Flex application to EITHER an https configured server OR and http configured server.Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com2tag:blogger.com,1999:blog-734418312802493328.post-14592447726675336282009-08-21T09:50:00.000-07:002009-08-21T09:51:26.872-07:00Promises PromisesQuote of the day - "We may make statements on this Web page regarding our product development and service offering initiatives, including the content of future product upgrades, updates or functionality in development. While such statements represent our current intentions, they may be modified, delayed or abandoned without prior notice and there is no assurance that such offering, upgrades, updates or functionality will become available unless and until they have been made generally available to our customers."Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-85456015551961506242009-08-18T09:45:00.001-07:002009-08-18T09:45:31.172-07:00Which Search Engine Is Best?http://www.blindsearch.fejus.com/<br /><br />You decide!Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-30532061533099926402008-05-06T08:17:00.000-07:002008-05-06T08:18:15.947-07:00More of the Same! Vote John McCain 2008!More of the Same! Vote John McCain 2008!Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-56819394505909018182008-02-14T13:52:00.000-08:002008-02-14T14:12:53.350-08:00Deploy Flex App as a WAR file on Tomcat.1. Build the Flex app, say "HelloWorld".<br />2. Create a temp directory.<br />3. Copy everything out of the Flex HelloWorld bin directory to temp.<br />4. In temp create a META-INF and WEB-INF directory.<br />5. In temp type: jar cvf HelloWorld.war *<br />6. Use the Tomcat Manager web application to deploy the HelloWorld.war file.Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-81162003002226285122008-02-14T13:38:00.000-08:002008-02-14T13:43:08.864-08:00Can't upload war files to Tomcat on Windows.You try to use the Manager to upload a war file. It fails with the following message:<br /><br /><br />root cause:<br />"java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream<br /><br />The real root cause is that Tomcat on Windows missing the commons-io jar file the Tomcat manager code needs to work.<br /><br /><br />Fix:<br />1. Download commons-io-1.4.jar.<br />2. Place the file in <Tomcat root>/common/lib<br />3. Restart Tomcat.<br /><br />Note the last step is very important. The Tomcat manager won't be able to use the functionality in commons-io to upload war files until you do this.Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-51500454357782123112008-02-06T09:36:00.000-08:002008-02-06T09:37:08.036-08:00Google should just buy AOL and Alta-VistaInstead of whining about Microsoft's bid on Yahoo Google should just up the ante and go after AOL and Alta-Vista.Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-35425852531461069692008-02-06T09:35:00.000-08:002008-02-06T09:36:03.520-08:00Vote Early - NotOK. I learned my lesson. I did the mail-in thing early and my guy dropped out. I'm not doing that again!Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-76082119650727364522007-11-19T12:00:00.000-08:002007-11-19T12:01:57.654-08:00InstantRails MySQL Pending...Click the MySQL button. Kill it. It will automatically restart.Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-40941404088052178692007-11-16T10:53:00.000-08:002007-11-19T16:00:10.599-08:007 Steps To A Ruby On Rails Application1.Install Ruby and Rails<br /><ul><br /><li> I'm using Ubuntu and did this with the Synaptic package manager.<br /><li> I'm also going to try InstantRails, http://rubyforge.org/frs/?group_id=904 <br /></ul><br /><br />2. Generate the application's framework.<br /><pre><br />$ cd <work_root><br />$ rails MyApp<br />$ cd MyApp<br /></pre><br /><br />3. Create a Controller.<br />$ script/generate controller MyControl<br />NOTE: With Windows and Instant Rails, preface the script commands with ruby.<br /><br />4. Edit the Controller. Add an action, some_action<br />$ gedit app/controllers/my_control_controller.rb<br /><pre><br />class MyControlController < ApplicationController<br /> def some_action<br /> @time = Time.now<br /> end<br />end<br /></pre><br /><br />5. Add the view associated with the action.<br />$ gedit app/views/my_control/some_action.rhtml<br /><pre><br /><html><br /> <head><br /> <title>Action!</title><br /> </head><br /> <body><br /> <ul><br /> <li>It is now <%= @time -%><br /> </ul><br /> <body><br /></html><br /></pre><br />6. Start the server.<br />$ script/server<br />NOTE: With Windows and Instant Rails, preface the script commands with ruby.<br /><br />7. View the result in a browser.<br />http://localhost:3000/my_control/some_action<br /><br /><br />Note: (From Agile Web Development with Rails by Dave Thomas and David Heinemeier Hansson)<br /><span style="font-style: italic;"><br />In Ruby, the convention is to have variable names where the letters are all lowercase and words are separated by underscores. Classes and modules are named differently:<br />there are no underscores, and each word in the phrase (including the first) is<br />capitalized.<br /><br />Rails controllers have additional naming conventions. If our application has a store controller, then the following happens.<br /></span></work></work><ul><li><work root=""><work root=""><span style="font-style: italic;">Rails assumes the class is called StoreController and that it’s in a file named store_controller.rb in the app/controllers directory.</span></work></work></li><li><work root=""><work root=""><span style="font-style: italic;">•It also assumes there’s a helper module named StoreHelper in the file store_helper.rb located in the app/helpers directory.</span></work></work></li><li><work root=""><work root=""><span style="font-style: italic;">It will look for view templates for this controller in the app/views/store directory.</span></work></work></li><li><work root=""><work root=""><span style="font-style: italic;"> It will by default take the output of these views and wrap them in the layout template contained in the file store.rhtml or store.rxml in the directory app/views/layouts.</span></work></work></li></ul>Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-61300245723396235512007-11-13T15:53:00.000-08:002007-11-13T15:58:20.385-08:00Ruby on Rails - changing the default IP, server startupHow to get informative error pages:<br />$ script/server --environment=development<br /><br />How to get informative error pages and access from a different box:<br />$ script/server --binding=<your IP goes here> --environment=development<br /><br />The default, if you start with script/server you get the following:<br />$ script/server --binding=127.0.0.1 --environment=productionMark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-1427089589323694552007-11-09T10:06:00.000-08:002007-11-09T10:10:29.547-08:00msql man page missing a ;$ man mysql <br />gives the following:<br /><br /> Beginning with MySQL 5.0.40, the XML output also uses an XML namespace, as shown here:<br /><br /> shell> mysql --xml -uroot -e "SHOW VARIABLES LIKE ’version%’"<br /> <?xml version="1.0"?><br /> <resultset statement="SHOW VARIABLES LIKE ’version%’" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br /><br />The mysql --xml -uroot -e "SHOW VARIABLES LIKE ’version%’" fails.<br />Use the following:<br />mysql --xml -p -uroot -e "SHOW VARIABLES LIKE 'version%';"Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-58965703750338286602007-11-07T16:26:00.000-08:002007-11-07T16:53:26.197-08:00Serving JSP from Tomcat 5.5 on Ubuntu 7.10Serving JSP from Tomcat 5.5 on Ubuntu 7.10<br /><br />- Tomcat installed on Ubuntu 7.10, used Synaptic package manager.<br />- /etc/init.d/tomcat5.5 start<br />- /etc/init.d/tomcat5.5 stop<br />- /usr/share/tomcat5.5 is where tomcat lives.<br />- /usr/share/tomcat5.5-webapps is where the webapps live.<br /><br /><br />Create /usr/share/tomcat5.5-webapps/ROOT/test.jsp with the following contents:<br /><br /><html><br /><body><br /><%java.util.Date d = new java.util.Date();%><br /><br />Todays date is <%= d.getDate()%> and this jsp page worked!<br /><br /></body><br /></html><br /><br />---<br />Subnote: To get the less than and greater than signs for the tags I use &lt; and &gt; There is a nice page that will do the conversion for you at : <a href="http://www.stanford.edu/%7Ebsuter/js/convert.html">http://www.stanford.edu/~bsuter/js/convert.html</a>Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-73729379791339505122007-11-04T08:59:00.000-08:002007-11-04T09:00:04.207-08:00Right-Brain, Left-Brain Which are you?<div align="center"><table style="color: black; background: #BDD1BB" border="0" cellpadding="0" cellspacing="2" width="270" bgcolor="#b3c6b1"><tr><td style="color: black; background: #eeeeee"><div align="center">Brain Lateralization Test Results</div></td></tr><tr><td><b>Right Brain</b> (34%) The right hemisphere is the visual, figurative, artistic, and intuitive side of the brain.<br><b>Left Brain</b> (60%) The left hemisphere is the logical, articulate, assertive, and practical side of the brain<br></td></tr> </table> <a href="http://similarminds.com/brain.html">Are You Right or Left Brained?</a><br> <font size="1"><a href="http://similarminds.com">personality tests by similarminds.com</a></font></div>Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-82573447677411729662007-11-02T08:26:00.001-07:002007-11-02T09:08:24.584-07:00Tomcat and PHP on LinuxTo date, the way I got it working is to run the PHP code as a CGI program. More to come. Got the following from <a href="http://www.wellho.net/solutions/java-running-cgi-scripts-in-apache-tomcat.html">Well House Consultants "Running CGI scripts in Apache Tomcat</a><br /><br />----<br /><div class="generaltext"><br>CGI scripts are usually run under an httpd web server, but if you've only got a few CGIs and a lot of .jsp-s and servlets, you may want to run them under Tomcat instead. It can be done, but there are some configuration things to do first! <br><br><div class="introsubheads">SAMPLE CGI SCRIPT<br></div><br>Here's a sample cgi script that you might want to install on your Tomcat server: <br><br><div class="codescript">#!/usr/bin/perl<br><br>print "Content-type: text/html\n\n";<br><br>$now = localtime();<br>print "<h1>It is $now</h1>";<br></div><br>The file should be: <br> * In a directory called WEB-INF/cgi in the webapp<br> * have an extension .cgi<br> * be set to be executable (chmod a+x xxxxxx)<br><br>If you want to vary the location and extension, you can do so by altering the text configuration quoted below. <br><br><div class="introsubheads">CONFIGURING TOMCAT TO SUPPORT CGI<br></div><br>Although CGI support is shipped with the standard Tomcat load, the vital information that you'll need is commented out in the web.xml file and you need to uncomment the following to add in the support: <br><br><div class="codescript"> <servlet><br> <servlet-name>cgi</servlet-name><br> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class><br> <init-param><br> <param-name>debug</param-name><br> <param-value>6</param-value><br> </init-param><br> <init-param><br> <param-name>cgiPathPrefix</param-name><br> <param-value>WEB-INF/cgi</param-value><br> </init-param><br> <load-on-startup>5</load-on-startup><br> </servlet><br></div><br>and also you need to map appropriate URLs on to that support: <br><br><div class="codescript"> <servlet-mapping><br> <servlet-name>cgi</servlet-name><br> <url-pattern>*.cgi</url-pattern><br> </servlet-mapping><br></div><br>There's one further change to make - the CGI API is provided in a .jar file that you need to rename in the /usr/local/tomcat/server/lib (or similarly named) directory: <br><br><div class="codescript">mv servlets-cgi.renametojar servlets-cgi.jar<br></div><br><br><br></div>Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-181482097820111172007-10-30T12:24:00.000-07:002007-10-30T12:39:56.922-07:00Fly For Fun! A WoW replacement?I've been searching for a way to play an on-line role playing game (MMORPG) without the $15/mo bill. Until this weekend I couldn't find anything better than World of Warcraft (WOW), which has the $15/mo bill. (And if I want to play with my 9-year old it comes out to $30.)<br /><br />Then I fond Fly For Fun. (flyff) Check it out! <a href="http://flyff.gpotato.com/">http://flyff.gpotato.com</a> In less than 12 hours, at level 20 you can engage in 3-D aerial combat! The game is FREE. The client is free. The playtime is free. It is a bit of a grindfest, until you meet some folks who will group with you. There is world-wide dueling. There is a PK server if you go in for that. The only time you pay is if you want the extra "edge". For example you can buy potions that give you unlimited mana or health for 20 minutes, or a flying mount that goes faster than the in-game versions. It's a better deal than the other MMORPGs because you only pay for what you want, and that probably depends on how into the game you are.<br /><br />Also, this is the first free MMORPG I've seen that lets you jump, and has good 3-D effects.<br /><br />Enjoy!Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-91853203681264489102007-10-24T09:50:00.000-07:002007-10-24T10:09:53.800-07:00Installing and Running Tomcat on UbuntuThis link was pretty helpful: <a href="http://ubuntuforums.org/showthread.php?t=44006"><span style="font-weight: bold;">http://ubuntuforums.org/showthread.php?t=44006</span></a> except that the instructions for installing sun-jre and sun-j2sdk don't work. So of course Tomcat doesn't run.<br /><br />How to fix? It seemed like java was installed. In fact java -version and javac -help gave good results. But where? It took some digging. I found the update-alternatives helpful. It helped me find where java was REALLY installed. On my system when I do:<br /><span style="font-style: italic;">$ update-alternatives --display java</span><br />I get the following:<br /><span style="font-weight: bold;">java - status is auto.</span><br /><span style="font-weight: bold;"> link currently points to /usr/lib/jvm/java-1.5.0-sun/jre/bin/java</span><br /><span style="font-weight: bold;">/usr/bin/gij-4.2 - priority 42</span><br /><span style="font-weight: bold;"> slave java.1.gz: /usr/share/man/man1/gij-4.2.1.gz</span><br /><span style="font-weight: bold;">/usr/lib/jvm/java-1.5.0-sun/jre/bin/java - priority 53</span><br /><span style="font-weight: bold;"> slave java.1.gz: /usr/lib/jvm/java-1.5.0-sun/jre/man/man1/java.1.gz</span><br /><span style="font-weight: bold;">Current `best' version is /usr/lib/jvm/java-1.5.0-sun/jre/bin/java.<span style="font-weight: bold;"></span><br /></span><br />So the trick to getting Tomcat to start per the instructions was to set<br /><span style="font-style: italic;">$ export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun</span>Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-21965606077183809772007-10-23T15:21:00.000-07:002007-10-24T10:11:27.728-07:00Installing and running open-vm-tools on Ubuntu<ol><li>Built the VMWare appliance. Followed these excellent <a href="http://homepage.sunrise.ch/mysunrise/ekeller00/ubuntu/2a_UbuntuInWindows_VMware_e.html">instructions</a>. Used Ubuntu 7.10 desktop. Set up a 30GB virtual drive and a bridged network. Used 512MB.<br /></li><li>Figured out that USED to have to use the VMWare Workstation to install the tools on your VMWare appliance if you've not got the tools on the guest. BUT VMWare just this September made the tools open source and you can build your own. Downloaded the source <a href="http://open-vm-tools.sourceforge.net/">here</a>. Droped the source directory into my home directory and built there.<br /></li><li>Read the README. Ran configure and make as instructed.</li><li>Anytime I got an error, I read the message and figured out what libraries were missing. Then I went and found those and used apt-get install to install them. At the bottom of this post I've listed a bunch of libraries I had to install. If you don't know how to use apt or the package manager for your system, go buy and read the "Linux Phrasebook" by Scott Granneman. Scott covers both Debian apt, Red Hat RPM, and YUM.<br /></li><li>Got to the point where I had everything built without errors in an open-vm-tools directory. After some experimentation ran the following 2 commands from the root of the build directory to get the seamless mouseover and copy-paste to work between the VM appliance and the Windows XP host. (Which is the main reason I wanted to install the tools.)<br /></li></ol><br />$ sudo vmware-user/vmware-user &<br />$ sudo guestd/guestd &<br /><br />Hope this helps!<br /><br />Following are some of the package dependencies. (From: <a href="http://forum.compiz-fusion.org/archive/index.php/t-755.html">http://forum.compiz-fusion.org/archive/index.php/t-755.html</a> )<br /><br /># core dependancies (for stable/development)<br />sudo apt-get install build-essential libxcomposite-dev libpng-dev libsm-dev libxrandr-dev libxdamage-dev libxinerama-dev libstartup-notification0-dev libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev<br /><br /># for gtk (also installs cairo-dev)<br />sudo apt-get install libgtk2.0-dev libwnck-dev<br /><br /># for metacity<br />sudo apt-get install libmetacity-dev<br /><br /># for svg (--enable-librsvg)<br />sudo apt-get install librsvg2-dev<br /><br /># for dbus<br />sudo apt-get install libdbus-1-dev libdbus-glib-1-dev<br /><br /># for fuse<br />sudo apt-get install libfuse-dev<br /><br /># for gnome-integration<br />sudo apt-get install libgnome-desktop-dev libgnome-window-settings-dev<br /><br /># additional things needed for downloading/compiling from git<br />sudo apt-get install gitweb curl autoconf automake automake1.9 libtool intltool libxslt1-dev xsltprocMark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0tag:blogger.com,1999:blog-734418312802493328.post-68310218090395939662007-10-22T08:37:00.000-07:002007-10-22T10:54:34.362-07:00Ann Coulter's "If Democrates Had Any Brains"Saw Ann's book <strong>If Democrats Had Any Brains, They'd Be Republicans </strong>in the bookstore<span style="font-weight: bold;">. </span>How about a book titled <span style="font-weight: bold;">If Ann Coulter Had Any Brains, She'd Be A Man. </span>She'd earn more, get laid on a regular basis, and could even stick it to other guys. I suspect there's enough material here for book. Feel free to take the title and run!<strong><br /></strong>Mark Bykerk Kauffmanhttp://www.blogger.com/profile/04515529377311657827noreply@blogger.com0