Top "Search" questions

Questions about search algorithm mechanics and implementation.

Expand Python Search Path to Other Source

I have just joined a project with a rather large existing code base. We develop in linux and do not …

python search import path
PHP to search within txt file and echo the whole line

Using php, I'm trying to create a script which will search within a text file and grab that entire line …

php search echo text-files
Can I grep only the first n lines of a file?

I have very long log files, is it possible to ask grep to only search the first 10 lines?

bash search grep
How do I search within an array of hashes by hash values in ruby?

I have an array of hashes, @fathers. a_father = { "father" => "Bob", "age" => 40 } @fathers << a_father a_…

ruby search hash arrays
How to find a value in an array of objects in JavaScript?

I have an array of objects: Object = { 1 : { name : bob , dinner : pizza }, 2 : { name : john , dinner : sushi }, 3 : { name : larry, dinner : hummus } } I …

javascript jquery arrays search
How to grep Git commit diffs or contents for a certain word?

In a Git code repository I want to list all commits that contain a certain word. I tried this git …

git search grep
Excel: Search for a list of strings within a particular string using array formulas?

I want to search a cell for a list of words. I thought this would work as an array formula: {=…

excel search excel-formula find
Trigger an action after selection select2

I am using select2 library for my search. is there any way to trigger an action after selecting a search …

jquery search jquery-select2
JIRA JQL searching by date - is there a way of getting Today() (Date) instead of Now() (DateTime)

I am trying to create some Issue Filters in JIRA based on CreateDate. The only date/time function I can …

date search jira jql
How to search for file names in Visual Studio?

In Eclipse you can search for a file in the project by pressing CTRL-SHIFT-R. Is there a way to do …

visual-studio search keyboard-shortcuts visual-studio-mac