tagged [filter]

Remove sensitive files and their commits from Git history

Remove sensitive files and their commits from Git history I would like to put a Git project on GitHub but it contains certain files with sensitive data (usernames and passwords, like /config/deploy.rb...

How I can filter a Datatable?

How I can filter a Datatable? I use a DataTable with Information about Users and I want search a user or a list of users in this DataTable. I try it butit don't work :( Here is my c# code: ``` public ...

22 Oct at 13:46

Passing/exposing T on a ServiceStack request filter

Passing/exposing T on a ServiceStack request filter I've got a request attribute that I'm decorating some services, but I need to pass a generic type into it because of some logic happening inside of ...

Custom authorization attribute not working in WebAPI

Custom authorization attribute not working in WebAPI Above is my CustomAuthorizeAttribute Class and ``` [CustomAuthorize] // both [CustomAuthorize] and [CustomAuthorizeAttr

MVC Action Filters using parameters passed to the for ActionResult?

MVC Action Filters using parameters passed to the for ActionResult? I created a custom [Action Filter](http://www.asp.net/mvc/tutorials/older-versions/controllers-and-routing/understanding-action-filt...

Enforce Action Filter on all Controller Actions (C# / ASP.NET MVC)

Enforce Action Filter on all Controller Actions (C# / ASP.NET MVC) I made a new action filter (attribute, similar to [Authorize]) which authorizes access to a controller action based on a session valu...

Action Filter ActionParameters

Action Filter ActionParameters I have an `ActionFilterAttribute` which I want to accept parameters through but I can't figure out pass them across. So my action filter looks like this; ``` public clas...

How do I filter date range in DataTables?

How do I filter date range in DataTables? I have a large dataTable which contains ride information. Every row has a start datetime and an end datetime of the following format(yyyy-mm-dd HH:mm:ss). How...

21 Dec at 23:14

Filtering Pandas Dataframe using OR statement

Filtering Pandas Dataframe using OR statement I have a pandas dataframe and I want to filter the whole df based on the value of two columns in the data frame. I want to get back all rows and columns w...

25 Jan at 23:34

IE 8: background-size fix

IE 8: background-size fix I've tried to add background size to IE but it's not working at all: HTML CSS: ``` div#content h2#news { background: url('../images/news-background.jpg') no-repeat; backg...

How to convert a bitmap image to black and white in c#?

How to convert a bitmap image to black and white in c#? > [convert image to Black-White or Sepia in c#](https://stackoverflow.com/questions/4624998/convert-image-to-black-white-or-sepia-in-c) I'm wr...

23 May at 11:47

ASP.NET MVC: Register action filter without modifying controller

ASP.NET MVC: Register action filter without modifying controller I'm working with nopCommerce and I need to add in my only Action Filter, however, I don't want to modify the core controllers to avoid ...

27 Jul at 11:10

Injecting dependency into CustomAttribute using Castle Windsor

Injecting dependency into CustomAttribute using Castle Windsor In my ASP.Net MVC application I have implemented a Custom ActionFilter to Authorize users. I use CastleWindsor to provide dependency inje...

filters on ng-model in an input

filters on ng-model in an input I have a text input and I don't want to allow users to use spaces, and everything typed will be turned into lowercase. I know I'm not allowed to use filters on ng-model...

Filter a DataGrid in WPF

Filter a DataGrid in WPF I load a lists of objects in a datagrid with this: The `model` become data from a database. It has a `Id(int)`, `Name(string)` and `Text(string)` In my datagrid I show only th...

22 Mar at 11:20

Java 8 Stream API to find Unique Object matching a property value

Java 8 Stream API to find Unique Object matching a property value Find the object matching with a Property value from a Collection using Java 8 Stream. Person attributes -> Name, Phone, Email. Iterate...

30 Oct at 02:1

How do I add a parameter to an action filter in asp.net?

How do I add a parameter to an action filter in asp.net? I have the following filter attribute, and i can pass an array of strings to the attribute like this `[MyAttribute("string1", "string2")]`. ```...

How to use Action Filters with Dependency Injection in ASP.NET CORE?

How to use Action Filters with Dependency Injection in ASP.NET CORE? I use constructor-based dependency injection everywhere in my `ASP.NET CORE` application and I also need to resolve dependencies in...

R: How to filter/subset a sequence of dates

R: How to filter/subset a sequence of dates I have this data: (complete for December) And a need to subset/filter this, for example from "2014-12-05" to "2014-12-25" I know that you can create a seque...

10 Sep at 17:2

How to specify "does not contain" in dplyr filter

How to specify "does not contain" in dplyr filter I am quite new to R. Using the table called `SE_CSVLinelist_clean`, I want to extract the rows where the Variable called `where_case_travelled_1` DOE...

4 Oct at 08:30

How can I remove non-ASCII characters but leave periods and spaces?

How can I remove non-ASCII characters but leave periods and spaces? I'm working with a .txt file. I want a string of the text from the file with no non-ASCII characters. However, I want to leave space...

17 Apr at 22:37

Async OnActionExecuting in ASP.NET Core's ActionFilterAttribute

Async OnActionExecuting in ASP.NET Core's ActionFilterAttribute ASP.NET Core's `ActionFilterAttribute` has these: I need an async version of

15 May at 12:43

What is the difference between Authorize Action filter and Authorization filter?

What is the difference between Authorize Action filter and Authorization filter? As per the [ASP.NET website](http://www.asp.net/mvc/overview/older-versions-1/controllers-and-routing/understanding-act...

25 Jun at 13:35

Jquery .Filter Function Question

Jquery .Filter Function Question This is kind of a simple question, however, I don't seem to figure out how to do it: I´ve got a slider filtering some stuff ``` $("#price").slider( { range: true, s...

17 Apr at 11:37

Using Action Filters on MVC C# using query String

Using Action Filters on MVC C# using query String Im using class name RightCheckerAttribute to check user permission in MVC3 application... So the RightCheckerAttribute class is like this... ``` publi...