Posts

jdistprop Distributed Property Files With Java This project supports distributed property files for easy loading with Java projects. This project is a solution to this problem: In a J2EE environment, we are normally used to storing text in a property/resource file. firstName=First Name someOtherData=This is the data to display on screen, from property file If you are in an environment, where it is difficult to update those property files on a regular basis, what architecture are developers using to change text/label content that would normally reside in a property file? Or let's say you need to change that content before re-deploying a property file change. One solution is to store that in a database? Are developers using memcache-db? Is that usually used for caching solutions? Would you use a solution outside of the java framework? Like a key/value datastore? memcachedb? http://code.google.com/p/jdistprop/

Build a java virtual machine that is actually readable/modifiable for Win32

Is it possible to build a Java virtual machine for Win32 in an sort of understandable way?  It is mostly impossible.  The OpenJDK build will take hours just to build and will take a day to prepare your environment.   If you aren't a core JVM developer, who actually is going to take several days to prep their environment so that they can hack OpenJDK.  The jikes RVM may work with cygwin/win32 but it is mostly designed for linux or some other open platform.  You are really only left with JamVM.  I was actually able to install all of the dependencies with cygwin and perform a build in 15 minutes.  And then actually edit the C source, add a log statement, rebuild and run against a bytecode class file.  JamVM is the only JVM project that is understandable (20-30 core C files) and the build actually works with a modern version of cygwin. I will go through some of the setup.  It helps to actually install JamVM through cygwin.  Full install. ...

Code snippet of the day: Haskell for the dumb idiot lazy programmers

Image
The euler project problem reads as such, "If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000." Here is one of many implementations in Haskell.  I used a verbose recursive approach, iterate up to 1000 and then build a list with the items of interest.  In this case, 'multiples of 3 or 5'.  The first implementation contains a logging utility for writing a string at each iteration. Figure 1: Euler Problem1 in Haskell Here is the second source snippet, I just wanted to provide something more practical, a log parsing example that you can run against your web log files. Figure 2: Applied Haskell, simply read each line of a file, find a term and output the results to another file. Source: https://javanotebook.googlecode.com/svn/trunk/math/MathServices/docs/haskell

Image and Code of the Day

Image
Fig 1: Graph of a 'worse case' number of operations, n^2. Fig 2: Quick Sort Number of Operations vs {n * log(n)} graph.   Quick Sort average case is {n * log(n)}.  During the quick sort simulation, the number of reported operations aligned with the average case {n*log(n)}. Fig3: R Source for plot of  line graph.  Data consists of rows of tab delimited integer values. Fig 4: Quick Sort Source in Java

New Anime Reviews by Berlin Brown

Anime is Japanese animation. Animation that is not necessarily targeted for kids. In fact, some Animation can be pretty rough and make a 40 year old squirm. Basically, Anime has characters and culture, stories, plots. If you like interesting stories, then you will like most of the popular Anime. What is the difference between Manga and Anime? I am American and usually just refer to anything that moves and is from Japan as "Anime" or Japanimation. But that isn't entirely accurate. There are some Anime TV series/movies that were Manga comic books in Japan and then made into movies. Manga to Anime. Manga is Comic Book in Japanese. If someone says, "Fullmetal Alchemist is a great Manga". I guess they could refer to the comic book version of Fullmetal or the TV adaptation. But normally they are referring to the comic book. Anime can be an animated series derived from a Manga. Popular Adult Stuff There are many genres of Anime. I like the adult themed stuff. Ho...

House MD

House MD is a good TV show -- berlin brown http://math-services.appspot.com/

Random Technology Links

Here are random technology links: [Jan 2012] http://nlpwp.org/book/chap-words.xhtml http://www.stanford.edu/class/cs242/readings/backus.pdf http://stackoverflow.com/questions/1962278/dealing-with-timestamps-in-r http://math.illinoisstate.edu/dhkim/rstuff/rtutor.html http://www.harding.edu/fmccown/r/ http://www.rforge.net/rJava/ http://www.rforge.net/rJava/ http://www.ugo.com/games/strategy-games-top-50?page=5 http://www.cs.uiuc.edu/~jeffe/teaching/algorithms/ http://www.nlp-class.org/ http://www.security-class.org/ COLT: http://acs.lbl.gov/~hoschek/colt/ http://weka.sourceforge.net/doc.dev/weka/classifiers/bayes/BayesNet.html http://apache-wicket.1842946.n4.nabble.com/Wicket-Session-grows-too-big-real-fast-td1875816.html http://www.keysbotzum.com (public) http://www.cell-auto.com/ http://bayfiles.com/ http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/ http://linuxproblem.org/art_9.html http://www.mitpressjournals.org/doi/ab...