|
How to create simple Gaussian Blur filter with HLSL (for Silverlight)?
Why - I want to create some complex filter for Silverlight and I do not want to apply blur filter and mine separately.
What do I need?
I need HLSL filter source.
Started by Ole Jak on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Windows Presentation Foundation Pixel Shader Effects Library
If you scroll down here you'll find a sample- poster says it's not for the shy... .
You can compile and use in Silverlight.
This might help you.
|
|
Is there a pattern using Linq to dynamically create a filter?
I have the need to create custom filtering on a list, in the past I would just dynamically create the SQL...it doesn't seem like this is possible with Linq.
Started by emcpadden on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
MyList.Contains(item.Name) select item;
that would create a sql statement like
SELECT * FROM Items [t0.
|
|
I'm trying to create a GPO programatically using the GPMC COM object via C# code. I can create the GPO, but I'm having trouble "inserting" a WMI filter with the GPO. Does anyone know how I can create/update WMI filters for GPOs?
Started by Julian Easterling on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's the sample code:
GPMGMTLib.GPM gPM = new GPMGMTLib.GPM(); GPMConstants gPMConstants = gPM.GetConstants(); GPMDomain gPMDomain = gPM.GetDomain(domainName, DC, gPMConstants.UseAnyDC); GPMGPO obj = gPMDomain.CreateGPO(); obj.DisplayName = "New GPO... .
|
Ask your Facebook Friends
|
I have an authentication filter that I want to put on all my actions in a given controller.
Is it possible to add a filter at the controller level?
Started by mrblah on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
[MyFilter] public class MyController : Controller { // automatically has MyFilter... .
It is then applied to all actions automatically.
Yes, it's literally as simple as putting the ActionFilter attribute at the class level instead of the action level .
|
|
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...
Answer Snippets (Read the full thread at stackoverflow):
<?php custom($display_id); $id = $view->add_item($display_id, 'filter', 'node', 'created', array( 'value' =>.
You can create your own function like following to add your own filters.
Attempting.
|
|
Possible Duplicate:
How do they draw the charts/graphs on stackoverflow?
How might they have created this chart (particularly the click and drag date filter)? See the chart here
Mark
Started by Mark Cooper on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The focus is on simple usage (all settings are optional... .
It produces graphical plots of arbitrary datasets on-the-fly client-side.
Http://code.google.com/p/flot/
Flot is a pure Javascript plotting library for jQuery.
It's made with Flot library for jQuery.
|
|
My second day with ASP.NET MVC and my first request for code on SO (yep, taking a short cut).
I am looking for a way to create a filter that intercepts the current output from an Action and instead outputs JSON (I know of alternate approaches but this...
Started by aleemb on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That way you simply replace the result with your JsonResult before it gets executed and... .
I would suggest that what you really want to do is use the Model rather than arbitrary ViewData elements and override OnActionExecuted rather than OnActionExecuting .
|
|
I'm trying to create a menu tree in drupal like this:
- term 1 node 1 node 2 - sub-term 1 node 3 node 4 + sub-term 2 - sub-term 3 node 5 - sub-sub-term 1 node 6 + term 2 etc.
(Sub-term 2 and term 2 are toggled closed.)
Some requirements:
Output this using...
Started by sprugman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You'll need a view for your content....
Sounds like http://drupal.org/project/taxonomy_menu and the DHTML Menu module linked above would get you pretty close .
Just make your own custom menu and use the DHTML Menu module to make it expand/contract on click .
|
|
Hi,
I've 2 models
class Room < ActiveRecord::Base has_many :people accepts_nested_attributes_for :people, :reject_if => lambda { |a| a[:person_id].blank? }, :allow_destroy => true end class Person < ActiveRecord::Base belongs_to :room end
...
Started by Denis on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
By having the check for a non-extant person in the before filter.
This is not meant to work his way.
|
|
I have this script:
select name,create_date,modify_date from sys.procedures order by modify_date desc
I can see what procedures were modified lately. I will add a "where modify_date >= " And I'd like to use some system stored procedure, that will generate...
Started by Swoosh on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi,
You could use a cursor to iterate through each record:
DECLARE @spName NVARCHAR(128) DECLARE myCursor CURSOR FOR SELECT name FROM sys.procedures ORDER BY modify_date DESC OPEN myCursor FETCH NEXT FROM myCursor INTO @spName WHILE @@fetch_status = 0... .
|