filter

What's the CSS Filter alternative for Firefox?

I'm using CSS Filters to modify images on the fly within the browser. These work perfectly in Internet Explorer, but aren't supported in Firefox. Does anyone know what the CSS Filter equivalent for these is for Firefox? An answer that would work cross browser (Safari, WebKit, Firefox, etc.) would be preferred. <style type="text/css"> ...

PrintDialog filter list of printers

I need to, preferably in C# - but c++ will do, find a way to filter the list of printers in the windows print dialog for any windows printing. I have come across WinAPIOverride and have figured I am going to have to write my own dll which overrides the method to get the printers list, then filter it and return it. I would then have to i...

Flex : Filter a datagrid using a combobox value that is contained in a datafield

I have a filter in a combobox with a number of entries. Instead of filtering the datagrid with an exact match, I would like to take the selected value and only display records where the selected value is contained in the datafield. For example: the user selects a value of "New" and the datagrid displays records where the contents of the ...

How to print only parts of a page?

I am trying to hide some divs before the user prints this giant form, then display the divs again afterward. Thus I want to ignore the rest of the page, and only print the form itself. Sure I could open a separate page when the user clicks the print button. The only thing is that the form is really long and it would be quite tedious to ...

How can I remove an entire HTML tag (and its contents) by its class using a regex?

Hi, I am not very good with Regex but I am learning. I would like to remove some html tag by the class name. This is what I have so far : <div class="footer".*?>(.*?)</div> The first .*? is because it might contain other attribute and the second is it might contain other html stuff. What am I doing wrong? I have try a lot of set wit...

How to create a custom filter for the Drupal View's Module?

I have the Profile, CCK, and Views2 modules installed on a Drupal 6 site. I added a string field to the user profile. I can filter easily on preset values, thru the Views GUI builder, really nicely. However, I'd like the filter criteria to be dynamically set based on other environment variables (namely the $_SERVER['SERVER_NAME']). I...

Django - filtering on related objects

For my Django app I have Events, Ratings, and Users. Ratings are related to Events and Users through a foreign keys. When displaying a list of Events I want to filter the ratings of the Event by a user_id so I know if an event has been rated by the user. If I do: event_list = Event.objects.filter(rating__user=request.user.id) (requ...

Python filter/remove URLs from a list

Hi. I have a text file of URLs, about 14000. Below is a couple of examples: http://www.domainname.com/pagename?CONTENT_ITEM_ID=100&amp;param2=123 http://www.domainname.com/images?IMAGE_ID=10 http://www.domainname.com/pagename?CONTENT_ITEM_ID=101&amp;param2=123 http://www.domainname.com/images?IMAGE_ID=11 http://www.domainname.com/page...

Profanity Filtering / Profanity Dictionaries / Scunthorpe Problem / Profanity Generation

Here's a clbuttic question. I collect code that attempts to do profanity filtering. I personally like profanity, and whenever possible try to talk everyone out of using profanity filters. The filters always run into the very embarrassing Scunthorpe Problem which tends to make things worse. Of course there are sites that legitemately need...

MDX filter problem

I'm pretty new to the whole MDX thing, but the following is just driving me batty. A FILTER statement I'm using is acting... strangely. Code sample, followed by description: SELECT { FILTER( MEMBERS([Time].[5-4-4 Week Year]), [Measures].[Ship Gross Units] > 0 ) } ON COLUMNS, { ...

Tomcat: block requests for certain paths for requests coming from certain interfaces

Is there an open source filter that I can use on Tomcat to prevent access to certain path (say /a/b/*) when the request comes from a given interface? The use case: I have REST services deployed on Tomcat that should only be accessed by the application itself, but which for security reasons should not be accessible from the outside world...

Sorting and Filtering Records

is there any known pattern/algorithm on how to perform sorting or filtering a list of records (from database) in the correct way? My current attempt involves usage of a form that provides some filtering and sorting options, and then append these criteria and sorting algorithm to my existing SQL. However, I find it can be easily abused th...

Sharepoint: How do I filter a document library view to show the contents of a subfolder?

A number of business areas I work with use a folder structure to organise their Sharepoint housed documents (not ideal I know, but we're stuck with it). I would like to use a web part page to present a number of views of their document libraries based on the subfolders that the documents appear in, but this is proving more difficult t...

Prolog: Filtering a list?

Hello! I'm currently working on a very short project on Prolog, and just got stuck trying to apply a "filter" I have created to a list. I have what you could call the filter ready, but I can't apply it. It'd be better if I illustrate: filter(A, B) ...outputs 'true' if certain conditions are met. filterList(A, [X, Y, Z]) ...outputs ...

Quick Filter List

Everyone is familiar with this functionality. If you open up the the outlook address book and start typing a name, the list below the searchbox instantly filters to only contain items that match your query. .NET Reflector has a similar feature when you're browsing types ... you start typing, and regardless of how large the underlying a...

Sharepoint Custom Filter Web Part

I want to create a custom web part that has more than 1 filter web part and that can be connected to Report Viewer Web Part (Integrated Mode) at runt time/design time. I searched a lot but could not find a way to have single web part that is a provider to more than 1 filters. Say for example - 1. My Report accept 2 parameter Departme...

Filter XML based on another xml using XSLT 1

How do we filter an xml document based on another xml document. I have to remove all the elements which are not there in the lookup xml. Both the input xml and lookup xml has the same root elements, we are using XSLT 1.0. Ex Input <Root> <E1 a="1">V1</E1> <E2>V2</E2> <E3>V3</E3> <E5> <SE51>SEV1</SE51> <SE...

Dynamic Data Filter on many-to-many relationship, how?

I am using Dynamic Data with Linq to SQL, and have two tables: Team and TeamMember. From the user's perspective, its a simple one-to-many relationship, but on the database, a many-to many table sits between them, recording on which dates a member belonged to a team, using From- and To dates. How do I add a Team dropdown filter on the L...

Low pass filter software?

I'm looking for digital low pass filter code/library/class for a .net windows forms project, preferably written in c, c++ or c#. I probably need to set the number of poles, coefficients, windowing, that sort of thing. I can't use any of the gpl'd code that's available, and don't know what else is out there. Any suggestions appreciated. ...

Internet Explorer matrix transformation filter problem

As one of my hobby projects, I'm developing an image effects jQuery plugin. It's supposed to allow you to apply a few basic effects to an image, and it does this by using the canvas HTML element (for browsers that support it), or Internet Explorer filters (for, well, Internet Explorer). A demo page is available at: http://sandbox.odynie...