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

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', '', '=', 'stores.user_id') ->where('', '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