Newest filter Questions

Q&A for professional and enthusiast programmers

SQL Server filter string by regular expression [duplicate]

Using T-SQL how can I remove all characters from a string that do not form a certain pattern? For example, if the the valid pattern is: "one blank, at least one character from a to Z, one colon, at ...

How can we filter a query that depends on a parameter that the user chooses?

I'm trying to filter my query depends on what the user selected in period (month or year) I retrieve the parameter through BIRT. My query is : SELECT DATE FROM TABLE WHERE Year(DATE) = Year(...

How to sanitize a Boolean with filter_var_array in PHP 7?

I was trying to sanitize a Boolean within an array. Since there is no FILTER_SANITIZE_BOOLEAN, I was trying to use a custom callback. But this leads to the strange behavior that the Boolean is cast to ...

how can I create this kind of filter box for a certain field in admin pages? django

let's say I have an employee model with the field username which can be selected. Usually in admin > employee page, we will see a dropdown of a list of employee username but instead of doing that, is ...

How can I export Image as 3DL or Cube File?

I'm using a png filter to filter a video/image but at the end I want the user to have export options. So save video as mp4, photo as jpg/png etc But I also need the user to save the filtered file as ...

Pandas: category dtype and filter

using pandas 0.18.1, I realized a different behavior when filtering a column whose dtype is category. Here is a minimal example. import pandas as pd import numpy as np l = np.random.randint(1, 4, 50)...

Prestashop admin panel custom filter for comma-separated column

here my comma separated column is shops(eg. 1,2,3,4), and with the call back i am already displaying the multiple shops names. with call back i am showing the related shop-names(values shows eg. Shop1,...

java-filtering rss feed and tweeting it

I was hoping someone may know a method to filter the rss feed so it only outputs those with the keyword "java". This is what i have so far which I've copied from another code i found on here. I would ...

Convert/Serialize kendo grid filters passed as string inside controller to readable structure

I want to create a faceted search for a KendoUI grid. That i want to do is, pass a kendo filter to controller, translate this filters into sql query and return grouped data. My controller public ...

how to use spark intersection() by key or filter() with two RDD?

I want to use intersection() by key or filter() in spark. But I really don't know how to use intersection() by key. So I tried to use filter(), but it's not worked. example - here is two RDD: ...

angular2 filter-pipe with many categories and combinations

I'm trying to implement an angular 2 filter where the user should able to filter by a set of categories. Where the filtered result should include any object that has at least one field matching one of ...

Applying a Gaussian Filter using no built-in MatLab functions [duplicate]

I'm new to Matlab. I'm really just getting started into the actual computer science classes in my major. So, please keep that in mind. The goal is to create and apply a gaussian filter to this ...

php regex filter phone numbers but not in link or image tags

I found this regex and it works perfectly for what i need EXCEPT it also is filtering 10 digit numbers inside of IMG tags and A HREF tags... I need to figure out how to make this replacement ignore 10 ...

FullCalendar select multiple events in single filter

I am using FullCalendar 3.1.0 plugin to show events. I was able to implement multiple events with a dropdown. But user is only able to select 1 option from a single dropdown filter. My goal is to give ...

Remove one of two elements if elements have same text

I am trying to make an autocomplete widget in vanilla js.I have an input and a ul element in my html.Also set data-list attribute for autocomplete. Basicly, in my js, i get data-list and filter it ...

Filtering row with too many max and min in R

My dataset is like below. a_metric b_metric c_metric tl_metric mpr 1 1.0079123 0.4121975 1.0510727 0.5280035 -0.03690215 2 -0.3479917 -0.3185338 -0.3652249 -0.1644014 0.01175352 ...

How to change a requested url in spring mvc, before going to controller

I am developing a web app using Spring mvc. I have page which displays all projects in DB. If i click on any of the projects listed, it will display some other additional details of that particular ...

jQuery filter() and closest()

I'm trying to learn how to use jQuery's closest() and filter() methods. closest() traverses up the DOM tree while filter() traverses down. In the following code, after a user clicks the link, jQuery ...

Cannot read property of undefined - filter Jquery

function ($scope, $stateParams, $http, WineService, $rootScope) { var wineList = []; getAllWineIDsOfEvent(); setAttributesOfWine(); function getAllWineIDsOfEvent() { var wineIDofEvent = $($scope....

Filter chaining in jersey

There are three filters: Request, JsonValidator and Response filter in my jersey project. The filters should be executed in the order defined as below. Response filter should be called first. The ...

How to query a json array [duplicate]

In a RoR app, i'm retrieving data in json by API from remote site. this is a my json example: [{"id"=>271, "parent_id"=>0, "status"=>"processing", .... more data...}, {"id"=>269, "...

Unit testing a scoped function used as a filter

I need to write a scoped function within my controller that acts as a filter. $scope.filterR = function(s) { return function(c) { for (var prop in c) { if (c[prop]....

How to change image's color using only CSS3 (image has shades of Grey)?

I will be grateful if you can help me to change image's color using only CSS3 (image has shades of Grey). using some properties of CSS3 like filter ... thank you in advance!

MSSQL Subquery failing on WHERE clause

Running a 2014 MSSQL Server and MS to interact with it, the following has happened. SELECT T1.Id, T1.DateTime FROM TableX T1 INNER JOIN ( SELECT T2.Id, MIN(T2.DateTime) ...

Remember me auto login with JSF + JAAS

I am trying to add remember me functionality to my app, but for some reason the HttpServletRequest.login() is throwing a ServletException: javax.servlet.ServletException: Login failed at com....

Maximo Anywhere Work Order Status Lookup Filtering

I am new on Maximo Anyhere development. I am trying to write a lookup filter on Maximo Anywhere Work Execution App. I am trying to rearrange filterWOStatus method in StatusChangeHandler class. I want ...

How do i find an object with specific property within nested objects

For example, I have a Paths object var Paths = { path1: { name: 'method1', get: { name: 'param1', id: 1 }, post: { name: '...

EmberJS Filter Returned Data from Store

I'm new to Ember and trying to figure out the best way to filter data with Ember. I thought it would be by creating either a helper or a component but my attempts at implementing these solutions have ...

How to perform a bulk update of documents with multiple filters in MongoDB 3 with Java

I want to make a Bulk Update like this: List<WriteModel<Document>> writes = new ArrayList<WriteModel<Document>>(); writes.add( new UpdateOneModel<...

Filter objects in geojson based on a specific key

I try to edit a geojson file to keep only objects that have the key "name". The filter works but I can't find a way to keep the other objects and, specifically, the geometry and redirect the whole ...

post filter based on sum aggregation results in Elasticsearch

Currently I've got a query that aggregates values with a sum, I'd like to remove any buckets that don't hit a certain sum limit: For example, summing a "distance" field, I'd like to only return ...

Angular2 Pipe to convert currency

I have created a method to convert currency using a api, which looks as follows, exchange(Input: string, Output: string, value: number): number { let inputRate = this.currencyStorage....

how to filter in django admin inlines

class StudentsTeacher(admin.TabularInline): form = StudentsTeacher model = StudentsTeacher class Teacher_Admin(admin.ModelAdmin): inlines = (StudentsTeacher,) I want add a queryset in ...

Datatable select length of row value for double

I know how to filter or select from datatable in C# as following. (If datatype of the column is string). Like following Bool ReturnValue = DataTable.Select("LEN([" + ColumnName + "]) > 5").any(); ...

Redirect to an ember page when exception occurs in my filter

My application has a filter that throws a user defined exception. So, whenever that user defined exception occurs, i want my application to redirect to an ember page. Something like, if( evil ) { ...

How to filter cell in ddtf.js

I am using jQuery table filter with ddtf.js that provide here http://www.jqueryscript.net/demo/Simple-jQuery-Dropdown-Table-Filter-Plugin-ddtf-js/ The Question is how to select cell that I want to ...

Filter rows in SLT

How to filter rows in SLT (SAP Landscape Transformation) The filter should be based on one column of the table. And only if a cell in this row has a specific content then the row should be replicated....

Filter Words from One List with Words from Another

I'm a relatively new programmer learning scala and functional programming through a udemy class. I am seeking to filter a list of strings based on another list of strings. I would like to reduce the ...

Android - High-pass filter for accelerometer

My code of high-pass filter for accelerometer which transmits vibrations but cuts smooth movement or phone turns: private float dt = 0f; private float RC = 0f; private float vectorXYZHighpass = ...

Image resize in php with specific method

I want to make my images smaller, but when it comes to scaling images gets to sharp on the edges. How can i make edges smoother? foreach ($images as $image){ $filename=$initPath.$sku.'/'.$...

Filter column with numbers ending between 1 and 6 Excel [on hold]

I have a CSV file of 10,000 records. Of all the columns that have this file there is one that is called: idclient, which contains the client id from 1 to 10000. What I need is to get the records that ...

check is a value matches a list of array elements and retrieve value

I have an array array of custom data in Swift. I'd like to find the object that contains value of dictionaries whose "Destination" equals to the 'PlaceId' in second array. let flightsArray = [ "Name"...

how to set up Django filter_horizontal filtering in admin page? [duplicate]

I have been reading quite a few threads and postings about this build in filter_horizontal provided by django. Somehow I tried and just wouldn't get it to work. Can someone please give me a hand? ...

ffmpeg interpolate a loop to be smooth

I am using ffmpeg to create looping video, where looping is totally smooth, same as moving between all frames. I have 27 images, which one transforms in another, so frame 0 = frame 27 I use -vf ...

Hide rows with multiple checkboxes

I have a HTML table in which I want to hide/show rows based on multiple checkboxes. When a checkbox is checked, (based on a text criterion) some rows are hiding, if it's unchecked, all rows are shown....

Wireshark: how to filter for a specific SYN packet

I'm pretty new to wireshark and stuck with a filter task. I have network traffic and error message from a certain system. I need to trace the syn packet of one of my error messages. For wireshark ...

How to filter out post type meta?

So I have used this code to filter out the post type. and it works fine when showing filtered results. `add_filter('wpseo_title', 'vehicle_listing_title'); function vehicle_listing_title( $title ) { ...

How to differentiate between extension and upper-layer header

I'm trying to parse IPv6 packet received through raw socket and decide if it is ICMPv6 or not. I can process the Ethernet and IPv6 header, but then there are optional extension headers. If the Next ...

Filter JSON Data Swift

Want to get the array of strings for a key title from below JSON response format. Don't want to use iteration or loop. [{ "kind": "books#volume", "id": "D7bKNFMXNOAC", "...

ORM filter has no results

I have a view: def PeopleView(request): ... parameters = copy.deepcopy(request.GET) for parameter in request.GET: if not request.GET.get(parameter): del parameters[...
Translating... 0%