text-search

Find a class somewhere inside dozens of JAR files?

吃可爱长大的小学妹 提交于 2019-11-26 21:09:54
How would you find a particular class name inside lots of jar files? (Looking for the actual class name, not the classes that reference it.) Eclipse can do it, just create a (temporary) project and put your libraries on the projects classpath. Then you can easily find the classes. Another tool, that comes to my mind, is Java Decompiler. It can open a lot of jars at once and helps to find classes as well. Unix Use the jar (or unzip -v ), grep , and find commands. For example, the following will list all the class files that match a given name: for i in *.jar; do jar -tvf "$i" | grep -Hsi

How does the Google “Did you mean?” Algorithm work?

泄露秘密 提交于 2019-11-26 00:26:21
问题 I\'ve been developing an internal website for a portfolio management tool. There is a lot of text data, company names etc. I\'ve been really impressed with some search engines ability to very quickly respond to queries with \"Did you mean: xxxx\". I need to be able to intelligently take a user query and respond with not only raw search results but also with a \"Did you mean?\" response when there is a highly likely alternative answer etc [I\'m developing in ASP.NET (VB - don\'t hold it