search

looking for a Webservice which can provide local store contact information and websites

Guy, I am in need for a functionality which can take Zipcode as an input and find all the departmental stores in that area and grabs their contact information from the web. This is sort of like a webcrowler but I dont want to make it that complicated. Any ideas of how I can go on doing this ? Is there any web service out there which ca...

Indexed ranged search algorithm for IP Addresses

Given an ACL list with 10 billion IPv4 ranges in CIDR notiation or between two IPs: x.x.x.x/y x.x.x.x - y.y.y.y What is an effecient search/indexing algorithm for testing that a given IP address meets the critera of one or more ACL ranges? Lets assume most ACL range definitions span a great number of class C blocks. Indexing points ...

How to pass textbox value into query string in asp.net mvc

Hi guys, Yet another newbie with ASP.NET MVC! All I intend to do is for a search textbox on my page, if I type something and click search, the url to be redirected to should have the following at the end, like in stackoverflow, /search?q=searchedtext So here is what I have now, <input id="searchText" maxlength="100" type="text"...

Algorithms to recognize misspelled names in texts

I need to develop an application that will index several texts and I need to search for people’s names inside these texts. The problem is that, while a person’s correct name is “Gregory Jackson Junior”, inside the text, the name might me written as: - Greg Jackson Jr - Gegory Jackson Jr - Gregory Jackson - Gregory J. Junior I plan t...

Efficient way to walk through an object tree?

I've got a set of TreeNodes, each of which has an id, a Collection of parent nodes, and a collection of child nodes. For a given node Id, I'm looking for an efficient way to generate all the links that pass through that node. So in short, start at the node, and iterate through all its children. If a node has more than one child, create ...

Access 2007, Textbox search box like the Facebook name search box on the top right

Hi, so basically I have an AddCompany Form, where theres a textbox [CompanyName], i want to type a new company name in there, but meanwhile check if theres an already existing one. So for example,say i want to type Microsoft, when i type M, the textbox shows whole bunch of other names with M, and then keeps going until I type finish ty...

Flex and Bison Associativity Problem

Using Flex and Bison, I have a grammar specification for a boolean query language, which supports logical "and", "or", and "not" operations, as well as nested subexpressions using "()". All was well until I noticed that queries like "A and B or C and D" which I'd like parsed as "(A & B) | (C & D)" was actually being interpreted as "A & ...

Google Search API Backend

Hey guys, I was wondering if any of you know how to implement a backend system that will retrieve SEO information from Google (Website Ranking, #ocurrences in the first X results in google, etc). I know Google AJAX Search API (code.google.com/apis/ajaxsearch/) will allow you to retrieve the content without having to "wget" or "curl", ...

learning from open source code

Hi there I'm a student and I have a lot of free time on this vacation so I decided to put some time in learn more about how to write good code.(All I know at this moment is C and some C++) My question is about how to find some applications source code? Let's say I'm looking for some source codes which are using a specific library. How...

What is the best metaphor of AND and OR for searching?

As programmers, we are all aware of the differences between AND and OR (junction and union). I'm building a website that list properties and I'm really struggling on the search part. I want the user to be able to search using checkbox, but some criteria make more sense using AND and other using OR. For example, show properties that hav...

powershell search for docs created by user?

Can I search a drive to show all documents that were created by a particular user? I figured powershell is the way to go...but perhaps another approach is possible? Basically, I want to search a drive and find all *.doc or *.docx files and access the word properties to view who created the file (author). ...

Compare associative array with standard array values PHP

I have a set of ids and names in an associative array and in my other array I have my list of id's that I want to compare against the first list. I'd like to be able to perform an intersection type search function without losing the names from the associative array. I've though about doing a nested foreach, but it seems like this proce...

zend search lucene

I have a database that I would like to leverage with Zend_Search_Lucene. However, I am having difficulty creating a "fully searchable" document for Lucene. Each Zend_Search_Lucene document pulls information from two relational database tables (Table_One and Table_Two). Table_One has basic information (id, owner_id, title, description, l...

Search an attribute inside a Vector on Java

I've a Vector of objects, and have to search inside for a random attribute of those objects (For example, a Plane class, a Vector containing Plane; and I've to search sometimes for destination, and others to pilotName). I know I can traverse the Vector using an Iterator, but I've got stuck at how do I change the comparison made between ...

MySQL - Getting search results from table and referencing tables

Hey everyone, (Using MySQL and PHP) I have a search form that will allow my users to type in a string, and search that string on a particular criteria. My problem is that a user needs to be able to search for information that is "spread" across multiple tables. For example: -Table "users" contains fname, lname, role, username (PK) -...

Searching with intelligent bracket counting (Elisp)

I have the following function that deletes the LaTeX command surrounding the current cursor position: (defun remove-tex-cmd () (interactive) (save-excursion (let (cur-point beg-point end-point) (setq cur-point (point)) (catch 'notexcmd (if (not (re-search-backward "\\.*?{" nil t)) ; now the point is at the { ...

MOSS Search Content Crawl Account Permissions

Hi Can anyone tell me what permissions I need to give to the Content Crawl Account in MOSS 2007? When I run a crawl of the content I get an error telling me that it does not have permission and to give it full read to the web application, which I tried to no avail. All the best ...

Temporarily lock folder from reading with ASP.NET

I am working on an indexing/searching feature of a site. The indexing runs every 6 hours and takes about 2 minutes. What is the best approach to forbid the reading from the indexes folder during these 2 minutes? ...

Search Entire Computer for a File Name in Java

Is there a way to search an entire computer for a String value representing a file name in Java? This would be without knowing the names of the drives on the computer. ...

Sort String Array using Levenstein Algorithm results

Hi, I've been working on an Access file editor in C#, and i've been trying to get a search feature added to my program. So far, I have the database file populate a 2D array, which i then use to populate a ListView box in another window. From this new window, I would like to be able to search each entry by Model Number. So far, i've mana...