search

How to exclude designer.cs from Visual Studio file search

Is there a way to exclude a particular type of .cs file when doing a search in Visual Studio 2005/8? Example: In a refactoring scenario i might search to identify string literals in my code so that i can refactor them into constants or some such. However, *designer.cs files are full of string literals which i don't care to deal with but...

Local search algorithm, complete confusion...

In (a) and (b), assuming a 2-exchange transformation operator, connect solutions A and B, which are TSP tours in path representation, to their possible neighbors among tours C, D, E, F, G (a) A: 1 2 3 4 5 6 7 C: 1 3 5 7 2 4 6 D: 1 2 5 4 3 6 7 E: 2 3 1 7 5 4 6 F: 4 1 7 5 3 2 6 G: 1 2 3 7 6 5 4 (b) B: 1 3 2 7 5 4 6 C: 1 3 5 7 2 4 6 D: ...

Replace strings in files by Python

How can you replace the match with the given replacement recursively in a given directory and its subdirectories? Pseudo-code import os import re from os.path import walk for root, dirs, files in os.walk("/home/noa/Desktop/codes"): for name in dirs: re.search("dbname=noa user=noa", "dbname=masi user=masi") ...

Does google have a basic search API?

I assume they do, but looking for it is confusing due to all kinds of other APIs and tools they seem to offer. All I want to do is issue a web request and receive a JSON or XML response containing Google's standard search results, and be able to page through them with new requests, etc. Where can I find this? ...

MySQL - Search and replace table1.field's contents with contents of table2.otherfield

I need a MySQL query that will do the following: Instead of the alpha team names in the 3rd column of the players table, I want it to reference teams.id table: players id player_name team ------------------------------------------ 1 Sue Smith Silly Chimps 2 Mike Olson Black Cats 3 ...

Drupal combined user+content search

Hi, for my current project I need to implement a search functionality, that combines both the content search and the user search. This raises several issues, for example relevance. Nodes have a relevance when searched, and users do not. Now, I was thinking how to tackle this the best way. To my knowledge, I have several options : h...

User interface question. I am building a music album search engine.

There will be a thumbnail as a left float, followed by the title and description as a left float. `````````` BEATLES `````````` DescriptionDescriptionDescription `````````` DescriptionDescription... `````````` `````````` `````````` COLDPLAY `````````` DescriptionDescriptionDescription `````````` DescriptionDescription... ````````...

Search on Core data backed UITable issue?

Hi All, Not sure if this is the right place (I am sure someone will let me know if it is not) I have a iPhone application that has a UITableview that is backed by core data. I want to perform a reducing search so that only the items starting with the characters entered into the search bar are shown. This is normally done with the dele...

Get all tweets that are all caps

Using the Twitter API, how would you retrieve all updates that are in all CAPS? ...

Which apps/solutions are most appropriate for model based search in Django?

I have a Django app where most of the search is driven by foreign keys. For example, assuming Student, School, State, and EducationalQualification are Django models, the user would search for Students by specifying search criteria by selecting from lists of Schools, States, Degrees, Diplomas etc. That is, a search on students is essenti...

How to script a google search without google license key?

Hello all, I'm looking at 'pygoogle' python library for google search, call from my python script. But google doesn't give out license key anymore, and looks like pygoogle needs license key to work. Does anyone have suggestions of libraries to use for scripting web searches? Languages doesn't matter. It can be in python, perl, lisp, fo...

Un-Published items showing in Drupal search results (google search appliacne)

I inherited a Drupal 5 site recently and have a series of enhancements to make. Several of then revolve around search results. Unpublished pages showing up in search engine results. Some of these are old pages, others are recently unpublished. All are correctly marked as unpublished in the CMS and are still showing up. Outdated pages...

What is the technology behind bing? Its own version of map-reduce algorithm or something else?

Bing's search hits are quite impressive, has Microsoft not let anyone in on behind the scenes of their search technology? Tried http://www.discoverbing.com but couldn't find the answer to my question. ...

Document Management System Recommendation

I have an application that generates around 10000 printed pages per month. Each report (around 2000/month) is archived as PDF on a simple network file share. I am searching for a Document Management System meeting the following requirements: watch the archive folder and update the index either on regular basis or when changes are dete...

Case insensitive search in Unicode in C++ on Windows

I asked a similar question yesterday, but recognize that i need to rephase it in a different way. In short: In C++ on Windows, how do I do a case-insensitive search for a string (inside another string) when the strings are in unicode format (wide char, wchar_t), and I don't know the language of the strings. I just want to know whether t...

SQL Search Help

I'm having an issue bending my head around this one. I have a table with the following structure. Contains about 5 million rows. Id bigint primary identity, auto increment SKU int Keyword nvarchar(200) KeywordType nvarchar(1) The table is broken down into all possible keywords, in multiple languages for a given SKU. Thus for example,...

Customizing the advanced peoplesearch question

I am trying to customize the advanced peoplesearch, the particular field I want to change is Department, at our client these departments are set and I already made a content type which is a dropdown containing all the departments, I don't see a way to change the departmen field in advanced search from a textbox to a dropdownbox,... This...

Search for string in text file C

The following code reads a text file one character at the time and print it to stdout: #include <stdio.h> int main() { char file_to_open[] = "text_file.txt", ch; FILE *file_ptr; if((file_ptr = fopen(file_to_open, "r")) != NULL) { while((ch = fgetc(file_ptr)) != EOF) { putchar(ch); } ...

How to search for text fragments in a database

Are there any open source or commercial tools available that allow for text fragment indexing of database contents and can be queried from Java? Background of the question is a large MySQL database table with several hundred thousand records, containing several VARCHAR columns. In these columns people would like to search for fragments ...

Text search in an AIR HTML Control

What are the different options available for implementing a text search in an AIR HTML control? I could think of the following two: Implement by injecting a custom javascript - the downside is the script may interfere with ones already loaded with page Implement an HTML scrapper and then parse this text in Actionscript, and then using ...