filter

Is there a maximum size for using -ms-filter?

We're using -ms-filter (used to be filter) to create a transparent grey div covering the page while a modal popup is displayed. It works as expected on most pages, but a certain query returns a large amount of data, and the filter doesn't apply. If I change the other CSS attributes for width and height to 50% instead of 100%, the filter...

Trouble with a LINQ 'filter' code throwing an error

Hi folks, I've got the following code in my Services project, which is trying to grab a list of posts based on the tag ... just like what we have here at SO (without making this a meta.stackoverflow.com question, with all due respect....) This service code creates a linq query, passes it to the repository and then returns the result. N...

jQuery multiple checkbox filters

Hi All, I have a list of events, these events are each of a specific type, and start in a specific month. I have a checkbox group for types and one for months. What I'm trying to do is use the checkboxes to filter the list. I've got it working with one group, but can't seem to get it working with two. Basically I'm trying to set a cla...

Django-sphinx result filtering using attributes?

Hi all, I was going through the django-sphinx documentation, and it looks like it allows you to filter search results using attributes, queryset = MyModel.search.query('query') results1 = queryset.order_by('@weight', '@id', 'my_attribute') results2 = queryset.filter(my_attribute=5) results3 = queryset.filter(my_other_attribute=[5, 3,4]...

zend framework stringtrim filter not working

I'm having trouble with zend framework's string trim filter. I use the following code to set up a text element in a Zend_Form: $voucherValidator = new Project_Validate_Voucher(); $code = $this->addElement('text', 'code', array('label'=>'Gutscheincode')); $code = $this->getElement('code') ->addFilter('StringTrim') ->addVa...

Why my filter output is not accurate?

I am simulating a digital filter, which is 4-stage. Stages are: CIC half-band OSR 128 Input is 4 bits and output is 24 bits. I am confused about the 24 bits output. I use MATLAB to generate a 4 bits signed sinosoid input (using SD tool), and simulated with modelsim. So the output should be also a sinosoid. The issue is the output o...

How do you append a filter to the very end of a filter chain from a superclass?

Hi there, in rails when you register filters in abstract superclasses they come before the filters registered in the controller class. Say I wanted to execute a method called authenticate as a filter right at the end of the filter chain. The only way I can figure it out is to declare that before_filter as the last filter in all my contro...

Making all PHP file output pass through a "filter file" before being displayed

Is there any way for all my PHP and/or HTML file output to be "filtered" before being displayed in the browser? I figured that I could pass it through a global function before it is displayed but I'm stuck on the implementation. Please help. If there is a better way to achieve the same result, I'd be happy to know. Thanks. ...

Separate the value in a datatable from the display in a datagrid

I have a datatable that contains an entry for the volume of a sound. The user can pick from values 1-10 or choose 'auto', in which case the system handles it. Internally, this is represented as an integer, where 1-10 represent volume values and -1 means 'auto'. The application is localized, so the exact string for 'auto' will vary by ...

Best data structure for search?

I have a list with items where each have number of properties (A, B, C, D) which I would like to filter using template containing same attributes (A, B, C, D). When I use a template I would like to filter all items matching this template. The match is assumed if item is equal to template or is smaller subsequence of it (0 match any item)...

Adding a filter dropdown to an Infragistics Ultrawebgrid

How do I add a filter dropdown that allows multiple selections to an Infragistics Ultrawebgrid column? ...

NHibernate criteria on lazyload

Can anyone tell me if it's possible to add criteria to an NHibernate lazy loaded collection. For example let's say I have a department that contains employees... I get the department by id and then I lazy load the employees... however lets say there are 1000's of employees and I only want the employees that were hired in the last 30 d...

about sigma delta filter bit-wdith

I am working on a Sigma Delta ADC project, and need to decide the bit-width of the digital filter. My filter has 4 stages, the first is CIC and the bit width is 29 bits according to the OSR. My final filter output is only 24 bits. So this means the other 3 FIR filters need to reduce 5 bits in total. If my input is 4-bits signed and outp...

[PHP] get only 5 elements from array

Hi all, my array is setup as follow: array 'testuri/abc' => array 'label' => string 'abc' (length=3) 'weight' => float 5 'testuri/abd' => array 'label' => string 'abd' (length=3) 'weight' => float 2 'testuri/dess' => array 'label' => string 'dess' (length=4) 'weight' => float 2 ...

Apply Filter to Everything in AS3

I'm trying to add a filter in AS3/Flex SDK. I can add a filter just fine to any one single object - but I want to apply the filter to everything that is a child of a certain object. Think a pause window pops up, and everything below the pause window goes blurry. Applying a filter to each individual object (eg: iterating through a list)...

jQuery selecting and filtering elements inside a div

Hi again all jQuery coder I have a problem with selecting and filtering elements inside a div. My html looks like this <div id="wrapper"> <input type="text" value="you can edit me"> <input type="button" value="click me"> </div> and my jQuery looks like this $("#wrapper").children().click(function() { alert("hi there"); ...

wordpress: actions, filters & hooks

Howdy Guys, I'm quite new to this (understanding the WP Guts), and I wanted to understand the Hooks and Filters better, I can't get it right from Codex. I did a simple test, the idea is to override the get_title() method in order to erase the "Protected: " sentence from the title if the page is protected, there is a protected_title_f...

Column to row translation using sed

I'm writing a bash script to get data from procmail and produce an output CSV file. At the end, I need to translate from this: ---label1: 123456 ---label2: 654321 ---label3: 246810 ---label4: 135791 ---label5: 101010 to this: label1,label2,label3,label4,label5 123456,654321,246810,135791,101010 I could do this easily with a ruby s...

How can I do a cast in a SqlDataSource FilterExpression?

I'm using a single textbox to search a report and filter out records. One of my fields is an int32 and the rest are varchar's. So when the filter tries to compare the string from the textbox with the int32 field, I get an error. Here's the SQLDataSouce and the search box: <asp:TextBox ID="SearchBox" AutoPostBack="true" OnTextChanged="Se...

jQuery wildcard search

I'm trying to find all elements on a page whose element ID contains a certain text. I'll then need to filter the found elements based on whether they are hidden or not. Any help is greatly appreciated. ...