This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Transfer Learning for Natural Language Processing (MEAP) and have Paul Azunre on-line!
See this thread for details.
Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!

Maxim Katcharov

Ranch Hand
+ Follow
since Sep 07, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Maxim Katcharov

That was a lot easier than I was finding it to be, thank you.
14 years ago
I'm using HttpServletRequest.getRequestURI(), because I need this simple form (from javadoc):

First line of HTTP request Returned Value
POST /some/path.html HTTP/1.1/some/path.html
GET http://foo.bar/a.html HTTP/1.0 /a.html
HEAD /xyz?a=b HTTP/1.1/xyz

Unfortunately, "The web container does not decode this String", which leaves me with things like /foo%20bar.html when I call it.

I need a clean way to decode the URI that is returned (or to convert the returned value of getRequestURL into the 'simple' form above).

Does anyone have any ideas?
14 years ago
I've mapped /* to a servlet, but requestDispatcher.include("foo.jsp") fails since the * picks it up, and sends that over to the very same servlet. How can I make it so that any user-entered url is directed to a servlet, but something like include nicely puts me through to /WEB-INF/jsp/anyfile.jsp?
14 years ago
How do I install Ant for use under Eclipse? I had it working at some point in the past, but it now gives me "The archive ... which is referenced by the classpath, does not exist.", so I'd like to attempt a (re)install.
14 years ago
Interesting code. I also use a hashtable for a step of my program, but only one of my strings is hashed. That algorithm runs quickly, but isn't as detailed, it seems - I ran it on two versions of code that I had refactored, and while the changes were small (renamings), it picked up entire lines which amounted to quite a bit more than was changed.

Your zip was missing some of the files that should have been found in your .util package, but I got around that.

I'd like to release my code under a non-commercial license, but I'm unsure as to how novel the algorithm is (if at all). If it turns out to be, and is useful, I suppose I'd still have the chance to protect it against commercial use later on.

Any suggestions for a non-commercial license?


Oh, and I've updated that page ( http://katcharov.dyndns.org:8080/ ) to include an example of LCS output that may be compared against the output of my algorithm.
[ October 09, 2005: Message edited by: Maxim Katcharov ]
14 years ago
Thank you, but unfortunately I couldn't get that program to work. I'm on windows and do not have diff installed. Diff uses lcs, to the best of my knowledge, so it handles moves quite poorly. I would have liked to have seen the interface that they used for it though.
14 years ago
I've frequently used the standard comparison tools that use the lcs algorithm or compare whole lines against each other, and have found them somewhat lacking. Moved sections aren't handled well at all, and the output is usually hard to navigate.

So I've implemented my own algorithm for comparing documents. My algorithm handles moved sections somewhat gracefully and can run a comparison in between logarithmic and linear time (leaning towards linear).

I'd like to get some feedback on if others see this as useful, or advice on how it may be improved. If anyone's interested in having a look, you can find it at:

http://katcharov.dyndns.org:8080/

(it's on port 8080).

Clicking on a blue section will take you to its pair. Up to 100000 characters may be compared right now.

I don't know if this is the best forum for this (perhaps programming diversions would have been more appropriate?), but it seems to belong here more than elsewhere.
14 years ago
I'm using POST. GET loses it at the max length of the URI, which is long before 600K. I think it's a tomcat (or maybe firefox?) issue, but I'm not sure. When I pass some limit above 600000 characters, all the parameters vanish.
15 years ago
JSP
I set up a test in a jsp to make things easier on me, but then noticed that request.getParameter started returning null when the parameter's length was somewhere between 600k and 100k. Out of curiousity, what's the maximum size of parameter that tomcat will take?
15 years ago
JSP
Unfortunately, I'd rather not have to pay for the profiler. It doesn't need to work with any sort of servlet container, I just need to optimize a few major components that can be started from a main method.
15 years ago
I need a free working profiler/ide combination, but I'm having no luck. At some point I had Eclipse Profiler working with eclipse (and the eclipse version supported 1.5), but a recent change (in eclipse) ruined it.

If someone has this plugin set up, and with java 1.5, could you tell me what version of both products you're using? If not, suggestions for alternatives are very welcome.
15 years ago
BCEL, with help from it's BCELifier tool, worked out quite nicely, thanks all for the input.
15 years ago
those two seem like a lot to take in! I think I have quite a bit of reading to do.

AspectJ looks like it needs to compile everything with a specific compiler... if this is the case, I'd rather not use it. Is this the case?


It sure would be nice if I could just write

and be done with it. But I guess that that's not gonna happen
15 years ago
That certainly seems to be on the right track, but it looks like that solution is limited to interfaces. I'd still need to deal with classes that don't have an interface.

I only need to create the class once, so I was considering reading in the classes, creating source code to extend the class, compiling it, and then loading and using that compiled class. That seems really messy though...

I just started reading http://www-106.ibm.com/developerworks/java/library/j-dyn0916.html , but I don't know if that'll help me or if it's the best solution anyway.
15 years ago