search a line in preprocessed big text file

I have a data file which contains 100,000+ lines, each line just contains two fields, key and value split by comma, and all the keys are unique. I want to query value by key from this file. Loading it to a map is out of question as that consumes too ...
more »

2017-09-26 13:09 (3) Answers

Isotope - filtering search with in a cluster

I'm still new of this thing so I'm having a hard time to tweak this isotope js. I hope someone can help me to fix this. I will explain further to what I'm trying to see There is cluster or groupings (cluster A and cluster B) shown horizontally whe...
more »

2017-09-25 08:09 (0) Answers

Return pandas data frame with certain value "1"

I am looking for the most simple and direct way to return a data frame or list of column names that have the value "1". Say I start with this: import pandas as pd dates = pd.date_range('1/1/2017', periods=4, freq='D') df = pd.DataFrame({'W01': [...
more »

2017-09-22 19:09 (2) Answers

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" searchitems.ph...
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