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

R - Matching Data Frames

I have the following issue related with matching different data frames. In the first place, I have the next table: table<-data.frame(brand=c('duna','cars','cars','sea','sea','sea','mega','moon','moon'),model=c('mm','mm','mm','ll','ll','ll','tr'...
more »

2017-05-24 22:05 (3) Answers

PHP PDO like (search)

I'm using this code to use PDO to generate a search query: $test = $_POST["user_search"]; //search for user in database $query = $conn->prepare('SELECT * FROM user WHERE user_email LIKE ' . "':sear...
more »

2017-05-24 21:05 (1) Answers

For loop number path calculation

I have a bidirectional network, that is, a network where flow exists both from i->j and j->i. And I want to calculate the number of simple paths between each [i,j] and report in matrices according to the path length, that is, for each [i,j] pair ther...
more »

2017-05-19 16:05 (0) Answers

Elasticsearch order terms aggregate by score

I'm new to ElasticSearch. Previously I've used it only with Django-Haystack, in a very limited fashion, and have never talked to ES directly. Currently, I have an ElasticSearch (5.x if this matters) index with a few documents. I'm using Python + ela...
more »

2017-05-11 19:05 (2) Answers

Cakephp 3 Search plugin get related fields

I'm using the Easy model searching plugin from FriendsOfCake and use it to search into my table data. It's working very good but now I wan't to get related items by a foreign key that matched with the foreign key of the founded item. On this moment...
more »

2017-05-10 10:05 (0) Answers

VBA Type mismatch in Find method

I'm trying to create a function that will input "Yes" in the 11th column in every row if there's a word "Market" in a row. But i get the error mismatch. Option Explicit Sub findMarketing() Dim r As Range For Each rw In Worksheets("Sheet1")...
more »

2017-05-07 19:05 (1) Answers

How to Show correct Data When searching

I have a master detail application that presenting different data for each of the cells views, my problem is that when I'm searching and filtering cells with my search-controller the data at the detailView of the cell view controller is getting conf...
more »

2017-04-30 14:04 (0) Answers

PHP Search database with PDO

I thought this would be a fairly simple task but I keep getting this error when I try to search now "Notice: Array to string conversion in xxxxxxxx.php". My code is pretty simple and is as follows: <?php $content .= "<h1>Search for a comic...
more »

2017-04-28 03:04 (2) Answers

Search with ajax , "like" in array

Please help with search script $("#search").on("keyup",function(){ var search=$("#search").val(); search=search.replace(/ +/g, ' '); if(search.length>=1){ var result=search.split(""); $.ajax({ type: 'POS...
more »

2017-04-27 18:04 (2) Answers

PHP search with PDO

I am trying to convert search function from one tutorial from mysql into PDO. I need to search inside of my table. With my limited knowledge I was able to do this. However, there are still some things I cannot resolve. What I am missing? When searchi...
more »

2017-04-23 18:04 (0) Answers

How can I search with belongsto laravel?

My query to search for a username in a store listing is as follows: $data = Store::join('users AS b', 'b.id', '=', 'stores.user_id') ->where('b.name', 'like', '%hazard%') ->paginate(); It works. But I use join to do...
more »

2017-04-23 08:04 (2) Answers

Error printing a string

I'm creating a algorithm that generate numbers (numbers like strings) from 0 to 9999 and search its frequency in a array a[50000]. char key[4]; int freq; for (int i = 0; i < 10000; i++) { sprintf(key,"%04i",i); // save 4 digits in key, ...
more »

2017-04-21 08:04 (0) Answers

Implementing search to map view controller

In my project i have a mapView with a lot of annotations & i would like to add a search functionality to the map so i can search those annotations and quickly find the annotation i want. I followed a tutorial i found on the web but it searches g...
more »

2017-04-18 19:04 (1) Answers

Laravel 5 Search in Multi attributes

I`m new to the laravel 5.4 and i need to create a multi attribute search.i can only do the search for a single attribute.but i cannot find out the right way to do so. here is the search field i want. Here is the view related to it. <div class...
more »

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

Search and Update Values in a row with a userform

I have created a userform for data entry. I am now looking to expand this to look into data that has already been entered, where some data may be missing, and updating the values within that row. The search criteria is a reference number, which is i...
more »

2017-04-13 11:04 (1) Answers