filtering

Maven project variables for dependencies

I have an html file which loads an applet. The html needs to refer to the jar by name, and since maven names it based on the artifactid, version, etc, the html needs to be dynamically updated as the project evolves. It seems like resource filtering is the way to go, but I can't figure out what the variable to interpolate should look li...

How to filter resource in Maven, replacing with a dependencies artifactId?

I'm trying to build a jar that has an xml file as a resource. I'd like to apply a filter to that xml to insert the name of a dependency into the xml. The filtering is working, because I was able to drop in ${project.build.finalName} and get it replaced. I found one hint that the property I'm looking for might be ${project.dependenci...

How can filter variations of the word 'the' using a regex in C#?

I am completely new to writing regular expressions. I am trying to write a Regex that will not allow the following terms in a text box. the The T h e ...

Using ASP.NET MVC2, How to make filters work with hackable urls?

Think about New Egg's e-commerce drill down model to start, where keyword links on the nav bar further limit the currently displayed product list with each selection. I setup a house finder with Routes like this: http://{website.com}/{Housetype}/{PriceLow}-{PriceHigh} http://mysite.com/Residential/180000-230000 http://mysite.com/Commer...

jQuery: Combining "filterable portfolio" and Masonry layout

Hi, I'm trying to combine the "filterable portfolio" (http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-filterable-portfolio-with-jquery/) with the Masonry layout ... so I want my items to readjust with masonery after I filtered them, but they stay in the position where masonery put them... here's my very rough first website...

Dojo Tookit: FilteringSelect problem in IE

Hi, does somebody know something about problems with the filteringSelect in IE browsers? I just get an yellow exclamation mark and two JS errors in IE developer tool: dijit.form.ComboBox: TypeError: 'undefined' is null or no object dijit.form.FilteringSelect: TypeError: 'undefined' is null or no object I use dojo version...

CakePHP and HABTM Tag Filtering

I am wrestling around a bit with CakePHP HABTM relationships, and I've gotten stuck trying to do a seemingly simple task. I have many Camps and many NewsItems. Each NewsItem could be relevant to any of the camps, so when a user creates a NewsItem, they check which Camps the item is for. That's the idea. So... I would like to incorpo...

sphinx cuts symbol

I have a music collection and use sphinx for searching in it. Search mode is SPH_MATCH_PHRASE, but when I search f.e. for "B'Day" album - sphinx cuts "'" and searching by "Day" query. How can I force sphinx to search by exact phrase without filtering any symbols? ...

Override Maven's default resource filter replacement pattern.

By default maven will filter resources like this: <properties> <replace.me>value</replace.me> </properties> <some-tag> <key>${replace.me}</key> </some-tag> will get you: <some-tag> <key>value</key> </some-tag> Is there a way to override the way maven selects the strings to replace? Specifically, I want to be able to use this...

Are there any good php based html filters available?

I am currently in a project with php frontend. We're pretty concerned about security, because we'll have quite a lot of users and are an attractive target for hackers. Our users are able to submit html formatted content that is visible to other users later. This is a big problem because we're vulnerable for the whole set of XSS attacks. ...

Drop down price filter

Hello, I created a product matrix/selector using Jquery and its working fine overall except for the price filter which is also working but kinda separate to the selector. Basically, at the moment when a feature is selected from the list it will present the product and if one wanted to filter based on the price they would select from the...

How to best use GPS data?

Hello, I am currently developing an application that receives GPS data gathered using and android phone. I need to analyze that data in terms of speed, acceleration, etc... My question is: Can I trust the speed values returned by the phone? Or should I use the difference in position and time between two points to get the values I want?...

Input filtering in PHP?

Is this link sufficent for example for input filtering form data? With a post for example? <?php $var=300; $int_options = array( "options"=>array ( "min_range"=>0, "max_range"=>256 ) ); if(!filter_var($var, FILTER_VALIDATE_INT, $int_options)) { echo("Integer is not valid"); } else { echo("Integer is valid"); } ?> ...

What is the difference between Collaborative Filtering and Collaborative Quality Filtering?

Hello, I am currently looking into Collaborative Quality Filtering and was just wondering, What is the difference between Collaborative Filtering and Collaborative Quality Filtering? It seems to me that they are both exactly the same thing (different names for the same thing). Do they have seperate definitions or something? I have trie...

PHP: sorting out in a smart coding way?

Hello. So i have this videosection, but i want to make a "sorting" option avaible for users. Sorting Options: ALL (no WHERE in the sql statement), Videoklips (WHERE SCtry = 0), SC try (WHERE SCtry = 1) Now, i know how to do it "my" way. I would have placed links on index.php: ?sort=video and ?sort=SCtry Then make 2, if sort video, if ...

How do I filter a ListBox based on input from a TextBox?

i am new in programing i need help regarding how to filter listbox via using textbox in c# application. I mean enter some text into textbox and filter same time in listbox if items exits in lists then select into textbox else open new form for creating the items kindly give me example for the same. ...

Striping HTML in SOLR for storage, not indexing

Hey guys, I've managed to strip HTML from content when indexing data in SOLR. But is it possible to strip HTML from data when simply storing data? This is my field: <field name="Content" type="textNoHTML" indexed="true" stored="true"/> And, the field type "textNoHTML" implements the solr.HTMLStripCharFilterFactory: <charFilter clas...

Can you remove response filters?

I have an HttpModule where I lookup the content type and then apply some filters to the response. There are some instances where I don't want to apply one of these filters but that isn't determined until the page_load event later on. Is there any way to remove a filter?? ...

How to unpack artifact and filter resources?

I am finding a way how to copy any files to my web server using maven. I have a maven project which contains a sets of html, js, properties and configuration files. I would like pack my stuff and deploy to repository. After that in another maven project I would like to unpack files from artifact, filtering resources and copy to the spec...

CollectionViewSource is filtered?

What's the easiest way to know if the view is currently filtered or not? I want a clearAll type of command that is only is displayed when there is something to clear. Thanks! Berryl ...