filtering

Filter results by Class Title using jQuery

Hello folks, I'm just starting to get a hang of this jQuery thing, so bear with me. Essentially what I've got going on is a list of items with classes like "politicians" "entrepreuners" etc that define the people in this list. The goal being, that I can attach tabs on the top of the list that will filter the results of the list. I...

Using jQuery to filter through an unordered list and create pagination

Hi folks, I am new at this, so please forgive me when I ask to be specific with your answers. Thanks! I'm working on a website where I have an unordered list of people with classes that define who they were (i.e. entertainer, politician etc). At the top, I have a selection of filters that you can use to narrow the results down using...

what is the best way to do server side asp.net mvc filtering of jqgrid

I have an action that is tied to jqgrid filtering. right now i have something like this. public ActionResult GridData(GridData args) { IEnumerable<Car> car = model.GetCars(); // now i need to filter and return a Json object. } In my case i have a collection or car objects. Is there best practi...

count query filter

I want to filter counted query result. select count(distinct tmr_id) AS Count ,CONTRACTID from status_handling This query return 2 columns like: Count ContractID 1 23344 2 28344 2 34343 2 29344 1 26344 I just filter 2 (Count) values. How can I do this? Thanks. ...

NSPredicate to filter array of words to array of letters

I am trying to make "weighted" list of letters as words are created. I have a massive list of words in an NSArray. For example I am trying to acquire a new NSArray filled with just the 3rd letters of all the words based off the first two letters entered. So far I have... NSArray *filteredArray; if (currentWordSize == 0) { filteredA...

Maven: how to filter the same resource multiple times with different property values?

Our project uses Log4J, configured via log4j.properties file. We have multiple production servers, which log to different log files, so that the logs can be differentiated. So log4j.properties for node 1 looks like this: ... log4j.appender.Application.File=D:/logs/application_1.log ... log4j.appender.tx_info.File=D:/logs/tx_info_1.log ....

Filtering a hierarchical object displayed with nested xaml data templates

I'm having trouble filtering hierarchical data that's being displayed in nested xaml templates. I've got a ObservableCollection<Foo> Foos, that I'm displaying in XAML. Lets say Foo looks like: class Foo { public ObservableCollection<Bar> Bars; } class Bar { public ObservableCollection<Qux> Quxes; } I'm displaying Foos with ...

Filter a gridview ignoring accents

Hello. I am trying to filter a gridview with a filter expression like this "SurName like '%surname%' AND FirstName like '%firstname%'" So far it works fine except in one edge case: Some name's have an accent in them. We want to display these names with an accent but when searching I would like to use an accent insentive search. How d...

Filter / prioritize phone numbers on the iPhone

Is it anyway possible to tag certain phone numbers on your iPhone as high priority numbers, and then filter them out to perform some actions on them?.. e.g. allowing calls from these numbers to come through even when the ringer is off. Does Apple even provide the dev access to phone api's to allow this sort of work?.. Thanks.. ...

Displaying .Net Page within Page

Hi, So I have a .Net website I made and part of it is a page where a database table can be filtered, queried, and displayed. Then I allow users to select an individual row to either edit or delete. Both of these functions are performed on their own separate pages. Recently I was asked to add functionality to the first page to allow f...

Filter array by first letter

I'm building a platform. Somewhere in my code, there's an array that looks like this (PHP): $entries = array('p01','p02','g01','g02','a001','a002') I need to write a script that filters the array based on the first letter. For example, asking for those with the starting letter "p" would give me $filtered_entries = array('p01','p02');...

offensive content filtering engine

Hi, Is there any open source content filtering engine that can recognize offensive content posted in forums, comments etc. and mark them to be reviewed or mark them as safe to be posted online. Thanks in advance ...

Social Objects - best practices for database structure, filtering, sorting, extensibility

We're in the process of building a generic enterprise social networking platform in ASP.NET MVC. One of the key features of any social networking website are the social objects that are posted by users either explicitly (text updates, photos, blogs, videos etc) or implicitly ('user is attending event', 'user has updated page' etc). The...

ListView Not Updating After Filtering

I have a ListView (with setTextFilterEnabled(true)) and a custom adapter (extends ArrayAdapter) which I update from the main UI thread whenever a new item is added/inserted. Everything works fine at first--new items show up in the list immediately. However this stops the moment I try to filter the list. Filtering works, but I do it once...

Advanced filters ExtJS dataGrid ?

hi is there a way to do an advanced filter for a Ext js datagrid something like this : smartclient library advanced filter and many thanx ...

C# - Any clever way to get an int array from an object collection?

How can I create an easy helper method to get an int array from a collection of objects? The idea would be have a method which receive a collection of "User" class: public class User { public int UserId {get;set;} public string UserName {get;set;} } And filter this collection to get an int array of unique UserIds. List<int...

How to filter (remove) JSP content from user-submitted pages

Overflowed Stack, I have a Java web application (tomcat) whereby I allow the user to upload HTML code through a form. Now since I am running on tomcat and I actually display the user-uploaded HTML I do not want a user to malicious code JSP tags/scriptlet/EL and for these to be executed on the server. I want to filter out any JSP/non...

jQuery Table Row Filtering by Column

Im trying to filter table rows in an intelligent way (as opposed to just tons of code that get the job done eventually) but a rather dry of inspiration. I have 5 columns in my table. At the top of each there is either a dropdown or a textbox with which the user may filter the table data (basically hide the rows that dont apply) There a...

Finding and filtering elements in a MATLAB cell array

Hi, I have a list (cell array) of elements with structs like this: mystruct = struct('x', 'foo', 'y', 'bar', 's', struct('text', 'Pickabo')); mylist = {mystruct <more similar struct elements here>}; Now I would like to filter mylist for all structs from which s.text == 'Pickaboo' or some other predefines string. What is the best way ...

Filtering a list based on conditions

The problem I have a list of tasks with which a user is greeted with upon login. I want to be able to filter tasks according to assignment. The relevant fields on the table are: **tasks table** task_id | (FK int) user | (FK int) team (assigned to) (assigned to) And users belong to one team. On the front end I have c...