Finding MIN MAX pairs from array

Given a sorted array of N integers, I need to find to all pairs with different indexes(i!=j). I need the maximum (a[j]+a[i]-1) and minimum (a[j]-a[i]+1) out of all pairs with (j>i). Numbers aren't unique but their pairing is allowed. Numbers can't...
more »

2017-02-12 05:02 (1) Answers

Date Range Search in Lucene 4.0

I have a situation where I need to search data between range of two dates(including lower and upper values) in LUCENE 4.0. I have a field in the indexes which has a String value in the format "YYYY-MM-DD HH:MM:SS". Now I need to make a search between...
more »

2017-02-10 17:02 (0) Answers

URL Result After Mutiple Drop Down Select

I have multiple drop down boxes and depending on which drop downs are selected I would like to return a URL that is not related to the selections themselves. I can get it to work for one dropdown but I do not know how best to go about creating a uni...
more »

2017-02-08 20:02 (0) Answers

Searching for a name in PHP

How do you search for a name, or something like a keyword and expected a many results? Like, when you search Mark, You're expecting to have like this: Mark Zuckerberg Mark Hamil Mark Fischbach ... But when I do the query, it only display one for me...
more »

2017-01-26 12:01 (2) Answers

Haskell create a Phonebook as a list of tuples

I need to create a phonebook as a list of tuples: type Phonebook :: [(String,String)] As you can see in the code, the first element should represent the name and the second element the number. So the result of Main> phonebookone = insert "Dad"...
more »

2017-01-19 19:01 (2) Answers

Search URL on the new LinkedIn UI

Looks like LinkedIn has a new UI and seems to be slowly rolling out to everyone. We have a LinkedIn button on our site that looks up a prospect by their name and company and searches LI. Currently, this works for the "oldLinkedIn" but for me, I'm som...
more »

2017-01-19 01:01 (0) Answers

Laravel 5.3 filter search data in API

I'm implementing an API for front end and mobile apps now i'm working on search function where a user may type column name or any data i should be able to provide the data they request in a JSON format so for i did this in my controller public fu...
more »

2017-01-14 09:01 (1) Answers

Python Google Search

I try to search for a word in google with python. Then I try to extract it into a list and print the list. But now I've got this problem: class search: def __init__(self, search): page = requests.get("http://www.google.de/search?q="+sear...
more »

2017-01-08 00:01 (1) Answers

SQL query Where Between two input

I am trying to make a search box but I am facing an issue. Here's the query i am using, I am getting the search query from database,But query is not taking the Fiyat(price),meterekare,odasayisi values from database My question is that Why I am unabl...
more »

2017-01-06 22:01 (0) Answers

Finding occurrences in order -- VBA

I am using the code that I obtained from this website, Find All Instances With VBA. Everything works fine, but for some reason it starts with the second occurrence loops to the end of file, then obtains the first. For example: -- Sample Data: Orig...
more »

2017-01-06 14:01 (2) Answers

url rewrite/formatting and php search form

Happy new year!, i have a search form in php, and im using mod_rewrite, now, the thing that i want is this: My normal url: http://mywebsite.com/buscar.php?p=my+search+string&pag=1 TO: mod rewrite: http://mywebsite.com/buscar/my+search+string/1...
more »

2017-01-02 02:01 (1) Answers

My search didn't work

My search won't work and I don't know why. I would like to search for clients or tickets in my database. When I click on search while the SEARCH field ( input) is empty I get all clients BUT when I type some thing into the field I get nothing. Here i...
more »

2016-12-20 17:12 (1) Answers

Overall complexity with multiple operations?

If I have an unsorted array and if I first sort it by using quick sort with a run time of O(nlgn) and then search for an element using Binary search, with a run time of O(lgn) then what would be the over all run time of both these operations? Would t...
more »

2016-12-15 14:12 (1) Answers

How to find absolute path of a file on remote url?

How do I find a file link on a remote server? For example this is server link: www.example.com And the file I am searching for is uploaded here: www.static.example.com/dir_path/file_name.txt I know the file name and I know it exists, but how do I f...
more »

2016-12-09 05:12 (0) Answers