I ended up using the Simmetrics and SecondString java libraries , hosted on sourceforge. It would be nice to have something like them available in Ruby.
Not exactly - I ran the pkgdb -f I was prompted to run at first, but wasn't sure how to resolve some of the dependencies of the old linux (non-xorg libraries that didn't appear to have an xorg equivalent).
I'm looking for a library or algorithm that returns a 'score' from a search of one string in another, in order to calculate a best match.
Any ideas?
Also, been playing with amatch, but I can't find any documentation for it - it has approximate matching capabilities. Any ideas on that one?
Thought I'd post my solution for posterity. Firefox and JDK both had new patches in ports - had to uninstall linux-base_7 and replace it with linux-base_8. Removed packages dependent on 7 and rebuilt firefox and jdk14.
I just cvsup'd ports, portsdb -uU, portversion...
after portupgrade firefox and eclipse freeze up.
FreeBSD 5.3, eclipse 3.01, firefox 1.0 and all the xorg stuff...xfce is the desktop. mozilla is working fine however...
Any ideas?
>>Have you done 'make deinstall && make reinstall' for Ruby?
I hadn't. When I tried this, and I received an error that ruby was not installed. I moved to ruby 1.6 in ports, and did this, and I received an error regarding open-motif.
I removed open-motif with pkg_delete, then I ran deinstall...
Hello,
I'm trying to install portupgrade on a FreeBSD 4.10-Stable box. The first error was autoconf was too old, so
I installed 2.59. The build fails in Ruby 1.8.2 p2_1:
config.status: Creating Makefile
Makefile updated, restart.
*** Error Code 1
1 Error
*** Error Code 2
Any ideas?
You're welcome. The way I understand the javadoc, is that SortedMap imposes the sort order that you choose when you create it (or natural, if you don't specify any).
You can provide a Comparator. If you needed to create a
map that sorted in the opposite order, you could take the
original map...
You need to divide your code into methods for clarity and ease of maintenance.
You should be using StringBuffer for this kind of work.
Here is an example:
private void buildCell(final StringBuffer target, final String value){
target.append("<td class=columnwhite>")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.