search

Search then Extract

I have here a multiple data, I want to search a name and date, if I typed JULIUS CESAR as name then the whole data about JULIUS will be extracted.? What if i want only to extract information? This file was save in texteditor(linux). # Record number: 1 Date: 08-Oct-08 Time: 23:45:01 Name: JULIUS CESAR Address: BAGUIO CITY, Philippines I...

how to structure data for searchability

I am writing a search application specifically for music playlists. The genre and file format differs from playlist to playlist, and sometimes within the playlist there are differences too. There is also a concept of "synonymous" tags (e.g. urban would cover both hiphop and r&b, but not the other way around). Below is a list of search...

Regex Search & Replace Program

Is there a simple and lightweight program to search over a text file and replace a string with regex? ...

In a Web 2.0 site, how long (in sec) should a newly added tag take to show and be indexed for search?

I'm building a web 2.0 site with tagging functionality and wanted to get a sense from anyone with experience how long (in sec) the system can take to a) show a new tag on a given record and b) index the tag for search. For example, does a newly added tag have to be available for search in 1 second but show on the user's screen in .1 sec...

Replace in multiple files - graphical tool for Linux

It needs to be graphical. No sed, awk, grep, perl, whatever. I know how to use those and I do use them now, but I need to cherry-pick each replace in 300+ files. I want a tool where I can: type a search string type a replace string select a directory and file extension and it would recursively go into each file in that directory and...

Regex to find lines containing sequence but not containing a different sequence

How do I write a regular expression to find all lines containing 665 and not having .pdf I can't seem to find how to do not in regex. This is for Notepad++ syntax if it matters. Thanks ...

Searching byte[]

Searching for a string within a string is extremely well supported in .NET but what do you do when the data you need to search isn't a string? I have binary data arriving in regular chunks via a NetworkStream. Packets are binary but they all start with a signature sequence of bytes. I accumulate the chunks into a larger buffer and look ...

How can I search through stackoverflow questions from a script?

Given a string of keywords, such as "python best practices", I would like to obtain the first 10 stackoverflow questions that contain that keywords, sorted by relevance (?), say from a python script. My goal is to end up with a list of tuples (title, URL). How can I accomplish this? Would you consider querying google instead? (How would...

How do I get character offset information from a pdf document?

I'm trying to implement search result highlighting for pdfs in a web app. I have the original pdfs, and small png versions that are used in search results. Essentially I'm looking for an api like: pdf_document.find_offsets('somestring') # => { top: 501, left: 100, bottom: 520, right: 150 }, { ... another box ... }, ... I know it's pos...

Best way to search in a varchar column in sql server

Hi, What would you recommend to search a sql server table (varchar(max) column) for a term? Let's say, like in ebay, if you search for "wii brand new", you get results like "Brand New Nintendo Wii Fit Game + Balance Board Bundle", "Wii Fit (Wii) BRAND NEW WII FIT GAME + BALANCE BOARD". I think it basically searches every word and retur...

Is there anything like C# (.NET) Library that works as API for Google?

I'd like to write a script to search and analyze results at google.com. Recently, I've been ng looking for Google API but it seems they do not issue it to developers anymore. Is there any (likely free) library for C#(.NET) development that would allow me to search over Google with parameters? Thanks for your response. ...

How to search a string based key/value collection fast

Hello fellow stackoverflowers! I have a word list of 200.000 string entries, average string length is around 30 characters. This list of words are the key and to each key i have a domain object. I would like to find the domain objects in this collection by only knowing a part of the key. I.E. the search string "kov" would for example ma...

Searching for marked (selected) text in emacs

I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. Similar to what I can do in notepad or wordpad. As in can I mark some text in the buffer and do a C-s or C-r and be able to search with the marked text without act...

How do you add arguments to an ASP button PostBackUrl?

I am constructing a search page with a textbox and a button for now, and probably a dropdown to filter results later on. I have my button's PostBackUrl set to my search page (~/search.aspx). Is there an easy way to pass the value in the text box to the search page? ...

How do I create a stored procedure that will optionally search columns?

I'm working on an application for work that is going to query our employee database. The end users want the ability to search based on the standard name/department criteria, but they also want the flexibility to query for all people with the first name of "James" that works in the Health Department. The one thing I want to avoid is to si...

How can I use the Twitter Search API to return all tweets that match my search query, posted only within the last five seconds?

I would like to use the API to return all tweets that match my search query, but only tweets posted within the last five seconds. With Twitter's Search API, I can use the since_id to grab all tweets from a specific ID. However, I can't really see a good way to find the tweet ID to begin from. I'm also aware that you can use "since:" in...

need access to Class Object via Function Pointer - Binary Search Tree Class Creation Related

Creating Traversals for Binary Search Tree with Recursion. void inOrder(void (*inOrderPtr)(T&)) { if(this->left != NULL) inOrder((*inOrderPtr)(this->left)); inOrderPtr(this->data); if(this->right != NULL) inOrder((*inOrderPtr)(this->right)); } Here is the function. Now this is obviously wrong. Th...

Search All Fields In All Tables For A Specific Value (Oracle)

Is it possible to search every field of every table for a particular value in Oracle? There are hundreds of tables with thousands of rows in some tables so I know this could take a very long time to query. But the only thing I know is that a value for the field I would like to query against is '1/22/2008P09RR8'. I've tried using this s...

How do I search text then print the result?

I am searching for "o" then prints all lines with "o". Any suggestion/code I must apply? data.txt: j,o,b: a,b,d: o,l,e: f,a,r: e,x,o: desired output: j,o,b: o,l,e: e,x,o: ...

Why doesn't Google index some words on page?

I've created a program in Delphi that uses Google's AJAX Search API to evaluate search phrase occurrences on specific sites, mine included. What surprised me was it doesn't appear Google is indexing some words on my pages, or I am forming my search queries via the API incorrectly. For example the search site:www.delphi.org -"delphi p...