Reordering the search space

I try to find the first occurrence in the search space ordered by descending which satisfy a some predicate. This strategy was chosen because calculating the predicate can be quite expensive, and the probability of finding a solution among the forme...
more »

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

PHP Split Search Bar Keywords By Spaces

OK let me be as specific as possible.... I would like to change the way my search bar behaves. Right now the string has to match the MySQL query exactly!!! or it won't show my products. Here is what I got: A search for "case iphone"
more »

2017-09-13 05:09 (1) Answers

VBA Find All Cells Containing and Copy Adjacent

Good morning all, I have been trying to find a thread on here that would cover my situation but I have been unsuccessful. I am trying to search for all cell containing a specific string value (if possible multiple strings e.g. "*Text*Text*" that ...
more »

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

fastest way to find an integer in a dataset

The interview question is more complicated, so i simplified it as input data will be in a format of A,B A is a number between 0 and 18446744073709551615(mysql bigint) B is a random string we will provide IO part You should provide two functions ...
more »

2017-09-01 07:09 (2) Answers

php search by multiple words in multiple tables

Hello i have a query that should return a result after i search by book name and author. The problem is my query is not good since it does not return any result if i search for both name and author. For example if i search matematici elementare the n...
more »

2017-08-01 11:08 (0) Answers

Laravel Eloquent search by Date Range

I have two table "patient" and "booking" table, and there is a relationship "One to Many" between them, I made a search form in an index_booking page where a user can type a patient_name on it to search by user name according to WHERE Condition also ...
more »

2017-07-30 23:07 (0) Answers

Speeding up calculation of nearby groups?

I have a data frame that contains a group ID, two distance measures (longitude/latitude type measure), and a value. For a given set of distances, I want to find the number of other groups nearby, and the average values of those other groups nearby. ...
more »

2017-07-28 14:07 (1) Answers

Laravel Scout, search with where clausure

I just discovered Laravel Scout and I wanted to make a search with where clausure. The code shown below $notes = Note::search($request->lecturer_search)->where([ ['course_id','=',$course_id], ['course_code_number', '=',...
more »

2017-07-24 16:07 (1) Answers

Laravel 5 error message if keywords not exist

I am receiving this message as it is. I want an error message when I call something that is not databased. I am new at laravel, i know i have to write elseif condition, but i don't know how. FatalErrorException Method Illuminate\View\View::...
more »

2017-07-06 16:07 (1) Answers

SEARCH Outlook inbox using Python

I'm successfully connecting to and reading through my Outlook inbox using some code modified from: Reading e-mails from Outlook with Python through MAPI. What I'd like to do is search my inbox for certain email subjects. I can do this by just looping...
more »

2017-06-30 22:06 (2) Answers

fast search on a field in a Java object

I am not sure if my title truly reflects what I want to ask. I have a Java class called Light with a field: private int state. I am looking for suggestions on what would be a better / fastest way to access the "state" field as all the Light objects ...
more »

2017-06-30 06:06 (0) Answers

Haskell parallel search with early abort

I'd like to search through a list, testing each element for property X and then return when an element with property X is found. This list is very large and would benefit from parallelism, but the cost of the spark is rather high relative to the com...
more »

2017-06-18 15:06 (1) Answers

Ldap search by email value can't find records

I have written a Java application that searches Active directory via LDAP for user information. I have a list of instances of custom Person class that is passed in. In it I have either DN or email defined. I am modifying the search criteria according...
more »

2017-06-17 04:06 (1) Answers

Python: Justifying NumPy array

Please I am a bit new to Python and it has been nice, I could comment that python is very sexy till I needed to shift content of a 4x4 matrix which I want to use in building a 2048 game demo of the game is here I have this function def cover_left(...
more »

2017-06-15 05:06 (2) Answers