doookstechstuff.blogspot.com
Doooks Tech Stuff: Project Euler Problem 14 in Clojure
http://doookstechstuff.blogspot.com/2010/03/project-euler-problem-14-in-clojure.html
Project Euler Problem 14 in Clojure. Was also my first look at maps, and the loop macro. Solves in about 40sec. N 3) 1) ). Let [sequence (atom (list start-num) ]. Loop [head (first @sequence)]. Let [next (next-int head)]. If (= 1 next). Recur next) ) ). Let [counts (atom {})]. For [start-num (range 1 1000000)]. Let [sequence (grow start-num)]. Counts assoc start-num (count sequence) ) ). First (sort (comparator #( (val %1) (val %2) ) (seq map) ). First (max-map-entry (measure-sequences) ).
doookstechstuff.blogspot.com
Doooks Tech Stuff: How to Fix Tomcat5 on RHEL5 org.apache.xalan.processor.TransformerFactoryImpl not found
http://doookstechstuff.blogspot.com/2010/04/how-to-fix-tomcat5-on-rhel5.html
How to Fix Tomcat5 on RHEL5 org.apache.xalan.processor.TransformerFactoryImpl not found. I got this exception trying to start a Grails app on a RHEL5 box using OpenJDK and Tomcat5, all installed from Yum. Orgspringframework.beans.factory.BeanCreationException: Error creating bean with name 'annotationHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework....Posted by Dan Dukeson. Team N...
doookstechstuff.blogspot.com
Doooks Tech Stuff: Project Euler Problem 13 in Clojure
http://doookstechstuff.blogspot.com/2010/03/project-euler-problem-13-in-clojure.html
Project Euler Problem 13 in Clojure. Really not very interesting. Defining big list of numbers elided. Substring (str (apply numbers) 0 10). Posted by Dan Dukeson. Subscribe to: Post Comments (Atom). Stock Control and Order Management Web App - OrderHarmony. Team Nomad - Free Range Digital. Dan Dukeson's Linkedin Profile. Org-mode PDF export failure. Project Euler Problem 14 in Clojure. Project Euler Problem 13 in Clojure. Project Euler Problem 9 in Clojure. Project Euler Problem 8 in Clojure.
doookstechstuff.blogspot.com
Doooks Tech Stuff: August 2010
http://doookstechstuff.blogspot.com/2010_08_01_archive.html
How to Stop Debian Ignoring /etc/security/limits.conf. I was trying to increase the number of open files allowed for a user on a Debian 5 box. Changing /etc/security/limits.conf was being ignored until I added the following line to /etc/pam.d/common-session. Session required pam limits.so. Logging out and in again after adding that line gave the new session the ulimit I was trying to configure. Posted by Dan Dukeson. Links to this post. Subscribe to: Posts (Atom). Team Nomad - Free Range Digital.
doookstechstuff.blogspot.com
Doooks Tech Stuff: May 2009
http://doookstechstuff.blogspot.com/2009_05_01_archive.html
Screen Tweaks on Ubuntu Jaunty. Is a must-have tool for anyone that spends time at the command line. I move my .screenrc file around with me whenever I move machine, and hadn't thought about it much for a while, but when I started screen on a Ubuntu Jaunty box with no .screenrc, I noticed that the system-wide screen config in /etc/screenrc is now quite useful. The screenshot below shows the status line from the default config. I copied the /etc/screenrc to /.screenrc and added a few options. Screen Tweak...
doookstechstuff.blogspot.com
Doooks Tech Stuff: January 2010
http://doookstechstuff.blogspot.com/2010_01_01_archive.html
Easy way to get information about a running JVM. Outputs a load of information about your running JVM to stdout. Very handy. Posted by Dan Dukeson. Links to this post. Subscribe to: Posts (Atom). Stock Control and Order Management Web App - OrderHarmony. Team Nomad - Free Range Digital. Dan Dukeson's Linkedin Profile. Org-mode PDF export failure. Easy way to get information about a running JVM.
doookstechstuff.blogspot.com
Doooks Tech Stuff: July 2010
http://doookstechstuff.blogspot.com/2010_07_01_archive.html
Faker for Clojure 1.1. I wanted to use Sebastián Galkin's Faker. Library to create some sample data. It requires some bleeding edge stuff from Clojure 1.2. but my current project is built against Clojure 1.1, so I back-ported it to work with 1.1. You can find the code at http:/ github.com/doooks/faker. Posted by Dan Dukeson. Links to this post. Subscribe to: Posts (Atom). Stock Control and Order Management Web App - OrderHarmony. Team Nomad - Free Range Digital. Dan Dukeson's Linkedin Profile.
doookstechstuff.blogspot.com
Doooks Tech Stuff: April 2010
http://doookstechstuff.blogspot.com/2010_04_01_archive.html
How to Fix Tomcat5 on RHEL5 org.apache.xalan.processor.TransformerFactoryImpl not found. I got this exception trying to start a Grails app on a RHEL5 box using OpenJDK and Tomcat5, all installed from Yum. Orgspringframework.beans.factory.BeanCreationException: Error creating bean with name 'annotationHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework....Posted by Dan Dukeson.
doookstechstuff.blogspot.com
Doooks Tech Stuff: February 2009
http://doookstechstuff.blogspot.com/2009_02_01_archive.html
Javalang.NoSuchMethodError - org.apache.myfaces.component.html.ext.HtmlDataTable.refresh(Ljavax/faces/context/FacesContext;)V. This exception can be thrown by MyFaces when the page backing bean doesn't return a String that is mapped in the navigation-rules in faces-config.xml (or wherever you have your mapping file). Check for typos or a missing entry in the navigation rules. Posted by Dan Dukeson. Links to this post. Hibernate gotcha: in clause with positional and named query parameters. Dan Dukeson's L...
doookstechstuff.blogspot.com
Doooks Tech Stuff: September 2010
http://doookstechstuff.blogspot.com/2010_09_01_archive.html
How to fix Tomcat5 XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http:/ java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http:/ java.sun.com/jaxp/xpath/dom. Saw this exception on a RHEL5 box - our application stopped working after a yum update. The stack trace looked something like:. At com.sun.tools.xjc.reader...At com.su...
SOCIAL ENGAGEMENT