Doing a LIKE and a BETWEEN on the same column

I'm trying to make an online searchable database. I want the user to be able to search for all entries by year, so if they want a specific year, there is a search box for that. If they want to input a range of years, I put two search boxes for that, ...
more »

2017-06-20 19:06 (1) Answers

Binary search when a part of array was reversed

Given an array(size N) (sorted but some part of it was reversed), And a series of elements (Q), we have to output Yes/No based on whether the element is present or not in the array. The solution which I came up was as below: Do a linear traversal ...
more »

2017-06-20 13:06 (3) Answers

Solr multiple boosts

I'm new in Solr, I 'm tring to query some documents boosted by 2 (or more) fields: I'm able to make a search of 2 day and return results boosted by category field, like this: ?indent=on &defType=edismax &q=(date:[2017-06-16T00:00:00Z TO 2017...
more »

2017-06-20 13:06 (0) Answers

Put icon in placeholder - React Native

I'm using the npm react-native-autocomplete-input and my question is, how can I put the icon into the placeholder because there is no documentation about that. I can't use another npm autocompletion because I have already coded some things. For now...
more »

2017-06-20 10:06 (1) Answers

Searching only a portion of a matrix in python

I have a symmetric matrix and I am curious if it is possible to only search the upper triangle portion of the matrix using np.where. That is, is there a way to either delete the lower triangular portion of the matrix using a loop or a function so I c...
more »

2017-06-19 23:06 (1) Answers

jQuery datatables filter row with specific class

I am working on a jQuery Datatable project where I need to filter the data based on specific row classes. I'm adding classes to my rows upon row creation based on a condition. I'm trying to figure out a way for my user to click a button which would...
more »

2017-06-19 20:06 (1) Answers

Searching especial character using grepl?

I have a data frame, and i want to find especial characters so i use: example$bb <- ifelse(grepl("*****", example$aa)==T, 1, 0) But R says : Error in grepl("*****", example$aa : invalid regular expression, reason 'Invalid use of repetition ...
more »

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

search multiple words in laravel?

I am new to laravel(I'm using Laravel 5.2), I want to search multiple words entered in an input field for example if I type "Louis Lane" I want to get any column that contains Louis or Lane. I'm converting this search query to laravel $search = ...
more »

2017-06-18 21:06 (0) Answers

Using bsearch with cstring, no results

I have no idea why this code don't work, what i did wrong? It' for a university assignment, i need to use binary search to search a file with names. The result is always "Not found in the array", no matter what i try. #define TAM 10 #define NUM 10...
more »

2017-06-18 20:06 (1) 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

Unspecified Error when using Windows Search API

I am using the Windows Search API from C# with the following query: SELECT System.ItemNameDisplay,SYSTEM.ITEMURL,System.DateModified, System.ItemName, System.Search.Rank, System.Keywords, System.Search.AutoSummary,System.Search.GatherTime, System.I...
more »

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

MySQL Reverse search

I have the following query that I've added the ORDER BY DESC LIMIT to reverse the order and limit the results to 30. It's working fine but, I'm wondering if there is any other faster way to do the job. $q = "SELECT r.*, us.username, a.title, a.id ...
more »

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

Replace HTML <i> tags with colored text in Perl6

I get a string from a database with multiple HTML tags and want to display the marked words with color in a terminal. I tried this with Perl6 but could not find a working solution. Following are steps I tried: use v6; use Terminal::ANSIColor; my ...
more »

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

Search Query in codeigniter

I am new in codeigniter. I want to create a search bar where user write some keyword and it will check in all fields of table in database and then show relative result. Here is my code of View: <?php echo '<h2>Search Books</h2>'...
more »

2017-06-16 11:06 (4) Answers

Ruby - Can't find a string in a txt file

I'm writing a code to search a string in all txt files of a directory. The code works ok in 2 of of 3 files. search = ['first', 'second', ...] Dir["directory/*.txt"].each do |txt| file = File.read(txt, encoding: "ISO8859-1:utf-8") search.each...
more »

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

PHP search shows more than one result

I am trying to make a search for my website where if i search with member certificate no it will show his full details. But in my code when i search for Certificate No : 1 it show details of Certificate no 1, 10, 11,12,13,14,15,.... Is there any way...
more »

2017-06-15 10:06 (4) 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

getobject timeout in pyvmomi

If the virtual machine being searched for does not exist, the delay in returning output is about one minute. If the virtual machine being searched for does exist, the delay is about two seconds. I know I'm hitting a timeout value, but is there a qu...
more »

2017-06-14 21:06 (0) Answers