search

Google Chrome: Search API?

I'm looking for a way to expose Google-Search functionality on my site so that chrome users can use context-sensitive searching (e.g:) I know YouTube is owned by Google, but I couldn't remember which 3rd party sites I had seen this feature work on before. Anyway, I couldn't find any reference to this in google-labs or on code.google.c...

how to find the jar file containing a class definition?

What is your favorite tool, plugin, script, to find a java class in a bunch of jar files? Very often I inherit code that complains about a class that doesn't exist, and it is just because the jar file is not included in the classpath. But, in what jar file is the class? I obviously would prefer an eclipse plugin, but I'm open to any pi...

Delay load of data for 2 seconds in jQuery ajax

I'm loading the search results via jQuery ajax in a div container. I would like the results to be shown to the user after a 2 second delay or after the user has entered at least 3 letters/characters in the textbox to search. How would I do this? jQuery code: $(".bsearch").keydown(function() { //create post data var postData = { ...

Wordpress, filter to change the search term?

Hi, I was wondering what the filter was to change the search term in Wordpress? For example, if someone types in xxx, how could I change that to yyy before it goes into the wordpress search engine? Cheers. ...

Make Django Admin remember my parameters after posting

Hi! I have a problems thats been bugging me for a while. I want to use dates in django admin to view entries between certain dates. To do this I have customized my changelist.html for this model and put a form in there. When posted I override the queryset method like this def queryset(self, request): qs = super(ModelAdmin, self).q...

how can i shift focus to the Object Browser Search box

I'm trying to divorce myself from my mouse in order to become more product and in order to do this I must find key-combos for common operations. Every time I launch the object browser in VS, the focus is on the tree of namespaces and classes. How can I shift this focus to the search box? Better yet: How can I launch the Object browse...

YouTube UITableView from a search query using GData

Hello, I'm trying to customize a table view to display a feed of youtube videos based on a search query. I found this code http://pastebin.com/vmV2c0HT which displays a feed of a YouTube channel in a tableview, it works fine. However, when modifying the viewDidLoad function to search for a query instead of a user feed, I always end up w...

jQuery, JSON, searching, etc.

I've got a mass of values in a JSON file containing the names of venues and their contact information along with a description. I'd like to generate a table listing the contents of the JSON file on my page. I'm hoping to create a live search function that removes each entry that is no longer relevant with eachkeyUpdetected. The JSON [ ...

Generating BFS forest of graphs

I want to generate a BFS forest of of a DAG (Direct Acyclic Graph). This means my Tree class needs to be a general tree and not a binary tree (in other words, I can't know the number of children a node will have ahead of time when I am generating a forest). Most of the code is written and shown below, however I lack one line that, for th...

stristr Case-insensitive search PHP

Hi All, Please excuse my noob-iness! I have a $string, and would like to see if it contains any one or more of a group of words, words link c*t, fu*, sl** ETC. So I was thinking I could do: if(stristr("$input", "dirtyword1")) { $input = str_ireplace("$input", "thisWillReplaceDirtyWord"); } elseif(stristr("$input", "dirtyWord1")) { ...

Django admin search: how to allow OR operator between search terms?

django-sphinx seems to be a bit of an overkill. What's the simplest way to add such functionality? Thanks ...

SQL Search Query using keywords

I currently have a SQL query that returns results based on a dynamic number of keywords passed in. I convert the list of keywords into a table and join to it. SELECT * FROM Table1 INNER JOIN dbo.udf_List2Table(@Keywords, ',') ON (Field1 LIKE '%'+Keyword+'%') This is working fine but it returns all rows that contain an...

Faceted Search in Coldfusion and SQL?

Hi guys, I'm working on a faceted search in Coldfusion and SQL. I've tried creating a query like this: SELECT * FROM Turbos WHERE PartNumber LIKE '%#trim(SearchCriteria)#%' OR PartDescription LIKE '%#trim(SearchCriteria)#%' AND (PumpingSpeed BETWEEN #minimum# AND #URL.speed#) AND InletFlange LIKE '#URL.inlet#' AND Beari...

Find Range of a number from an array.

I'm just rephrasing the question I asked a little while ago. I have a sorted array {2.0,7.8,9.0,10.5,12.3} If I given an input 9.5 What is the fastest way to find 9.0 and 10.5 to indicate that 9.5 is in between 9.0 and 10.5 (9.5 >=9.0 and <10.5) ? Is binary search an option?But since the input need not be in the array.I'm not sure how I...

facebook search api

Does anyone know if the facebook search api http://developers.facebook.com/docs/api#search allow us to perform OR queries? ...

How can I create a File[] for all *.properties under a given directory?

I have a directory, C:\myDir. under this directory, there may be folders and various files How can I "loop" through this directory and build up a File array of all files with a .properties extension? I want to do some processing on these files, the reason for a File[] is to keep it dynamic (so additional properties files added in the ...

Solr 1.3 ignore word "jackie".

I am using Solr 1.3. Recently, QA report a bug for the search functionality that there is no result for the word "Jackie". But, when i looked into document using luke, there is lots of document with the word "jackie" e.g. Jackie Holding, Kumar Rameshwaram, Morris Jackson Jackie Holding, Brendon Wessel, Smith McShlam Jackie Redmond, ...

Scalable 'google suggestions'-like system.

I have 100,000 queries, and I need to create a google-like 'Suggestions' system. Much like this I need it to be pretty quick, and if possible allow for some more in-depth options (like sorting, etc.). Can anyone recommend a database system I could use for this that could handle searching through 100k+ queries while still keeping spee...

Custom field Search From - Wordpress

Hi there, does any one know how to create a search form with custom fields in combobox ? I have searched and tried to do this for weeks... and nothing... i have done so much thing with no results... last code i´v done ( I am not a expert ) ( cicle to get all the costum fields names ) <?php global $post; ...

How do you find out what keywords your website is ranking for?

How do you find out what keywords your website is ranking for? ...