search

Query multiple currencies

I need store multiple currencies on my database... Here's the problem: Example Tables: [ Products ] id (INT, PK) name (VARCHAR) price (DECIMAL) currency (INT, FK) [ Currencies ] id (INT, PK) name (VARCHAR) conversion (DECIMAL) # To U$ I'll store the product price with the currency selected by the user... Later I need to search the ...

how to execute Sql Raw Query in Microsoft Entity Model Framework.

Hi I'm using Microsoft Entity model framework to access my database. I get an issue while i use this execute query command for executing Sql raw query. Let me know how could i resolve it. svdc.CreateQuery<VideoMasterTable>( "select * from videomastertable WHERE FREETEXT(*, '"+keyword+"')" ).ToList(); Thanks in Advance,...

Looking for a good implementation that will access multiple databases simultaneously

I just want to find out if there's a good implementation (in C#/ASP.NET) on how to access my records from my different databases simultaneously. I have this simple application which suppose to search on these databases, then, display the record if a certain keyword is matched. I have like 5 databases (currently using MySQL) all in all a...

highlighting search results in php error

i'm trying to figure out what is wrong in this code. it either doesn't highlight the search result OR it outputs html tags surrounding the highlighted text. . $search_result = ""; $search_result = trim($search_result); $special_cases = array( '%', '_', '+' ); $search_result = str_replace( $special_cases, '', $_GET["q"] ); //Check if...

How to search for files on phone sdcard or else where

I want to search for files on the users mobile with specific extensions. I tried searching but could not find any direct API's. Is there a specific API's or is there tedious way of achieving the same. Or is there a mechanism to call linux calls for find or something similar Thanks ...

case insensitive highlighting in php

i'm using this function to highlight the results from mysql query: function highlightWords($string, $word) { $string = str_replace($word, "<span class='highlight'>".$word."</span>", $string); /*** return the highlighted string ***/ return $string; } .... $cQuote = highlightWords(htmlspecialchars($row['cQuotes'...

displaying search results of more than one word

in my search form, if the user types 'good', it displays all the results which contain the keyword 'good'. however if the user types in 'good sweetest', it displays no results because there is no record with the two words appearing together; BUT appearing in an entry at different places. for example, the record says: A good action...

How to develop Nutch for better Arabic searching technology?

I am a Computer Science student and working on a project based on the Nutch search engine. I want to develop Java algorithms to better index and search Arabic websites. How can I optimize for this purpose, any ideas? ...

Javascript search widget with add/remove criteria

I'm looking for a FOSS Javascript widget which allows you to add/remove search criteria using a GUI. My basis is the search criteria in Mac OS X Finder, but I know I've seen similar systems elsewhere: The basic idea is that each row corresponds to one field in your database, and depending on the type of that field you would get diffe...

Google local search API - callback never called

Hello, I am trying to retrieve some local restaurants using the LocalSearch Google API. I am initializing the search objects in the OnLoad function and I am calling the searchControl execute function when the user clicks on a search button. The problem is that my function attached to setSearchCompleteCallback never get called. Please ...

Minimum number of training examples for Find-S/Candidate Elimination algorithms?

Consider the instance space consisting of integer points in the x, y plane, where 0 ≤ x, y ≤ 10, and the set of hypotheses consisting of rectangles (i.e. being of the form (a ≤ x ≤ b, c ≤ y ≤ d), where 0 ≤ a, b, c, d ≤ 10). What is the smallest number of training examples one needs to provide so that the Find-S algorithm perfectly learn...

Unable to get simple ruby on rails Search to work :/

I am new to RoR, any help would be greatly appreciated :) I have a basic scaffolding CRUD app to add customers. I am trying to search by first_name or last_name fields. The error that I am getting is: NoMethodError in Clientes#find You have a nil object when you didn't expect it! You might have expected an instance of Array. The err...

Adjusting sql statement in a function based upon input

Hey there, This is a bit urgent! I'm trying to make a simple filter search where-by you can choose from a series of 3 drop downs and then based upon this the results are then displayed, How would I go about adjusting the sql query for each and if you were to only choose to search from aone of the 3 rather than all 3 etc... example ther...

highlight multiple keywords in search

i'm using this code to highlight search keywords: function highlightWords($string, $word) { $string = str_replace($word, "<span class='highlight'>".$word."</span>", $string); /*** return the highlighted string ***/ return $string; } .... $cQuote = highlightWords(htmlspecialchars($row['cQuotes']), $search_result...

Making a visual smooth flowing search bar, ASP.NET C#

I am trying to make a search bar with a few feilds. Right now the code is as follows: <asp:DropDownList ID="DropDownList1" runat="server" Height="25px"> <asp:ListItem>Database</asp:ListItem> <asp:ListItem>Engine</asp:ListItem> <asp:ListItem>Pool</asp:ListItem> </asp:DropDownList> ...

Advanced search functionality

I have a website with a jQuery based autocomplete search functionality which works great. Currently though I have just one search box for all categories, what I want is for someone to be able to type in, say for example, dorian gray dvd (in any order) which will search for dorian gray within the dvd category. What this will require then...

Finding a string inside an XmlDocument

Hi, I need to find an inner text of an element inside an XmlDocument and return it's Xpath. for example, searching for "ThisText" inside : <xml> <xml2>ThisText</xml2> </xml> should return the Xpath of xml2 what's the most efficient way of doing this in c#? ...

Problem with Google AJAX Search API RESTful interface

When I send the following query http://ajax.googleapis.com/ajax/services/search/local?v=1.0&amp;q=coffee%20New%20York%20NY using c# WebClient.DownloadString function or ordinary web browser I get JSON data which is different from data for the same query using JavaScript and Google AJAX Search API. From REST service I get the followin...

String Occurance Counting Algorithm

Hello, I am curious what is the most efficient algorithm (or commonly used) to count the number of occurances of a string in a chunck of text. From what I read, Boyer–Moore string search algorithm is the standard for string search but I am not sure if counting occurance in an efficient way would be same as searching a string. In python...

Counting number of searches

I updated my main and sequetialSearch and now it crashes when it runs. It compiles okay, but then crashes. main.c #include <stdio.h> #include <stdlib.h> #include <time.h> #include <stdbool.h> #include "percentage.h" #include "sequentialSearch.h" #define searchAmount 100 int main(int argc, char *argv[]) { int numbers[100]; int sea...