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>")...
a.) Re-write your app as JSP, load the links from the DB,
and access the whole thing from your browser.
b.) Write it in Swing, and tell that to get it done for time
and budget, you'll have to open a separate window, and do roughly: Runtime.getRuntime()exec(new String[] {
"explorer"...
Depends on the hardware. If you mean update your dynamic IP, most likely it is possible. Google your hardware - and see what is available from the admin side. I have seen dsl router/modems that run a bsd variant with tomcat or apache webserver, which gives some flexibility for remote control.
If you know COM, Jacob is easy to use. A word of caution:
if you are trying to go to deeply down the COM road with
Java, you will find that it isn't worth it. Try it out, create a test case, and if the path looks a little too dark and overgrown, don't go down it.
This approach should work:
1.) Return @@IDENTITY from your stored proc.
...RETURN @@IDENTITY
2.) Declare a CallableStatement: "{? = call your_sp(?)}"
3.) Register Out parameter: cs.RegisterOutParameter(1, Types.INTEGER);
4.) Set parameters: cs.setString(2,"test");
4.) Call sp...
This was a strange question. I'm was thinking of COMPONENT_HIDDEN or COMPONENT_SHOWN of ComponentEvent.
If I generalize the question, it may make more sense:
You want to build a composite 'Component' in Swing that presents some data to the user. You'd like to drop this
component into...
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.