search

how to implement a search box in c#

Hi: I want to implement a search box in a window form. In that window form, I have a few botton and a text box. I want to support the use case when user enter a string in the search box and then we can find the that string and highlighted like firefox does. Is it hard to do this? I googled and found this link that has the search box c...

Is there a reason to put tokens on a search form?

Let me first tell that I understand the concept of CSRF attacks. Now I wonder, are there benefits to placing tokens on a search form? I can't really think of anything myself. ...

Vba Summary Page

hello,I am new to vba and I would like to know if can search thru the worksheets, copy and then paste in a new worksheet on a column thank you Public Sub CopyandPaste() Dim ws As Worksheet ' Delete all data from Summary Page Worksheets("1a").UsedRange.Delete ' Copy each worksheet in file and paste to Summary Page For Each ws In Works...

Best practice for building a "Narrow your results" product filtering feature

I'm building a "Narrow your results by" feature similar to Best Buy's and NewEgg's. What is the best practice for storing the user's filter selections in a URL that can be shared/bookmarked? The obvious choice is to simply keep all the user's selections in the query string. However, both of these examples are doing something far more c...

Best way to return search info from a database in php

So I have a form for people to fill out, which is below... Once they fill that form out, how can I query it and return the information from my database? <form name="form" method="get" action="agents.php"> <table> <tr> <td width = "20%">Last Name: </td> <td><input type="text" name="LASTNAME" size="20"/> ...

Alpha Beta Searching and Transposition Tables

I have alpha beta search working and want to implement transposition tables to make it faster. The problem I'm having is the relationship between the entries in the table and the current position being evaluated. The literature I've read so far says you need to store the position type, the score, and some other information. Why do you h...

Number of google pages hits as a function of time.

In each search in Google one can see number of google pages found. Is it possible to find what was this number in the past? ...

Binary tree search algorithm errors

I have a binary tree that I need to search through. I'm not searching for one specific node of the tree, but rather over every node of the tree to gain information about them. I have a simple recursive search right now, but every time it runs I get a stack overflow error. It's a full binary tree of depth 7... if (curDepth < 6 && !search...

search a Binary search tree

I am trying to find a name within a key. I think it is retrieving it fine. however, its coming up as not found. maybe my code is wrong somewhere? if (database.retrieve(name, aData)) // both contain the match in main() static void retrieveItem(char *name, data& aData) { cout << ">>> retrieve " << name << endl << endl; if (database.re...

Search filenames in MySQL database table restricted by filetype?

Hello I have a MySQL database that I replicate from another server. The database contains a table with this columns ID, FileName and FileSize In the table there are more than 4'000'000 records. I want to make fast a search in FileName (varchar) column I found that I can use for this Sphinx search engine. The problem is that I want to...

How come google crawls some sites real time ?

I posted a source code on codeplex and to my surprise found that it appeared on google within 13 hours. Also when i made some changes to my account on codeplex those changes reflected on google within a matter of minutes. How did that happen ? Is there some extra importance that google pays to sites like Codeplex, Stackoverflow etc to ma...

Search through NSArray for string.

I would like to search through my NSArray for a certain string. Example: NSArray has objects: "dog", "cat", "fat dog", "thing", "another thing", "heck here's another thing" I want to search for the word "another" and put the results into one array, and have the other, non results, into another array that can be filtered further. ...

Problem searching a Binary Search Tree - Array Based

I am trying to search for a word using a key value recursively. In retrieve function: Problem is the index goes from 0, 1,3,7, to 15.... it suppose to go 0,1,3,7,8 and so forth I have the insert working as expected. I have the inorder, preorders, all working. Can someone please help me figure out this problem? I have been working on this...

What's an efficient algorithm to make one list equal to another one?

Let's say I have a list A that needs to look exactly like list B. All the objects that B has but A does not have need to be added to A. And all the objects that A has but not B, need to be removed from A. The reason why I need this is because I have an ArrayList of Players that I'm saving to a file. Every time I update an attribute of a...

Searching code files for a particular string

Hello, Im using Ubuntu Karmic as my operating system . I frequently need to search my project folder for a particular string, to see if its there in any of the files in the project folder or its subfolders. I currently use the find command to do that, and have written a script that accepts the string im looking for as the parameter. fi...

what are the fastest/Popular search technologies

What are the fastest search technologies apart from Relational DB Searches ? I have a collection of Text Files from varied sources (Banks/Ledgers/Stock Markets). Each line in these Text Files is a Record. Each line can further be parsed into some DB Columns(Stock Name/Date of purchase/Owner/...). It is not necessary that each line has a...

Is there a way to parse a Google search string to a table variable in T-SQL?

Is there a way to parse a Google search string to a table variable in T-SQL? By Google search string I mean, including the plus sign (require), minus sign (exclude), and exact phrase (double quotes) operators. For example the following search string: one -two +three "four five" -"six seven" +"eight nine" "ten eleven twelve" Would be ...

Is this image segmentation?

I've been writing a Java program that aides in cutting and working with sprites, such as CSS sprites. The main idea is that the image is segmented into subregions, so the software understands the "spritesheet" is composed of multiple sprites. The algorithm I developed works by scanning horizontal (x) and vertical (y) axes for breaks, ba...

How do you search for logic (algorithm/problem)?

I often find it is difficult to find something that I know the logic sounds familar but cannot recall the name. Using the existing string based search engine just won't get you good result as most of the time the logic is expressed in a totally different way. I understand the generic problem is a unsolvable AI problem. The question ...

sqlite Indexing Performance Advice

I have an sqlite database in my iPhone app that I access via the Core Data framework. I'm using NSPredicates to query the database. I am building a search function that needs to search six different varchar fields that contain text. At the moment, it's very slow and I need to improve performance, probably in the sqlite database. Would ...