Simple question. How do I search for code in my project within NetBeans 7.2 IDE? for example I want to find a Class name or any string of code, let's say I use this string "Apple is a fruit" in 10 Classes and 20 Methods and I want a list of all the locations it's being used in.
Note: I used Google Search and looked at relevant threads before posting this here, but all I found was how to make search programs, obviously a confusing topic for search engines.
Found the function in Edit> Find in Projects..
Related
Is there any way to exclude certain directories when searching a particular github project?
In a large project on Github like nodejs, I often want to search the source code to find where in the project something is defined. A challenge I regularly run into is that the project itself contains hundreds of files related to module tests and these test directories clog up the search results when I'm trying to find something in the actual source, not in the testing code. So, instead of getting 5 pages of results to look through, I might get 50 pages of results, rendering the search somewhat useless.
In the nodejs project, I'd like to search without including the top level "test" directory.
To search in one particular directory you can use:
searchterm path:/lib
And to ignore a directory you can use:
searchterm -path:/test
As mentioned in your comment, the official documentation is here. An answer on how to ignore stuff can be found here.
As I have asked questions in this form - thanks for your many helpful answers - i have found many really neat things that one can do using ExtLibUtil.???? however, other than a bit here and a bit there I have not found anything that gives a listing on the various functions. I one post I read that it is all in the source of the extension Library, and it might be if you really understand where in the source to look. Sure would appreciate a pointer and starting point.
I've been unable to find a JavaDoc for it. The library slipped passed us when we wrote the book - certainly I was not as au fait with Java to be aware of it and all the strength within it. So the best option currently is to look at the source code in Eclipse. Many of the methods are helper methods to easily access things like viewScope etc, which is easy from SSJS but less easy from Java. Most are pretty self-explanatory.
Content assist doesn't seem to work from SSJS, but will from any Java class or, alternatively, open up one of the Java classes created for XPages / Custom Controls under the "local" package in Package Explorer, type "ExtLibUtil." in any method and you'll see the list.
I'm converting a report written in SQR (old stuff) into groovy. SQR has a class that will allow you to specify a line-count, such that after that many lines of text are written to the report it will re-print the report header for you (as well as the page number that it keeps track of for you) so that when you go to the next page, the header is at the top of that page rather than a page or two back. Does groovy have anything like this?
Since Groovy itself is a generic language and not one for writing reports, the short answer is no.
You could try to find some java libraries that do what you want or at least support you. There are many many java libraries out there and Groovy is one of the JVM based languages that integrate really well with java lib. Maybe this SO answer is a starting point: https://stackoverflow.com/questions/6942247/i-need-some-java-reporting-engine
Also, be a bit more specific in your question. What is the target format for the report? Word, PDF or something else? What is a page in your case? etc...
I am doing a simple project on searchengine using C#. For this I am using lucene.net. Now I am done with indexing and simple searching..My project has one module where it extracts all email-ids on a particular page. For this i need to use some logic of regular expression..I searched and searched on the net, but couldn't find any example on how to search the index using RegexQuery or any other reg expression tool.. Please help!
I am using lucene.net version 2.9.2
I just started researching the same thing and have come to the conclusion that Regex searches wasn't supported in 2.9.2.
On the brighter side it looks like the newest version does do Regex searches.
http://incubator.apache.org/lucene.net/
To quote the site version 2.9.4 "A couple of new features: Search.Regex, Simple Faceted Search, and simple phrase analysis in the Fast Vector Highlighter"
I am working on a project to digitize approximately 1 million images for which metadata will be added to facilitate search.
Each image is, for example, a page in a dictionary. But not text. Just a static scanned image. OCR is not an option :(
My objective is to emulate the current search procedure which consists of looking up the alphabetical entries till the correct page is found. In absence of machine readable text, I am looking at tagging each page with Dictionary range tag. For Example (Apple-Canada). So if someone searches for "Banana", it should hit the (Apple-Canada) range Tag.
Is this supported in SharePoint out of the box? If not, is there an addon product which provides this functionality or am I looking at building a customized extension?
Any help will be appreciated :)
Installing the IFilter for TIF files is done with a couple of clicks and gives you free OCR along the way. Very good for scanned pages.
On your question though: No, SharePoint does not have any kind of "range" tags or fields. The only vaguely similar thing to what you are requesting is the Thesaurus of the search. There you could define acronyms and synonyms for words and it would actually search for something else. So you could enter Banana but it would actually search for Apple. Some examples here: How to: Customize the Thesaurus in SharePoint Search and Search Server.
Other than that I can only think of a custom implemented search provider giving you the flexibility you need.