custom

How to make custom PhotoEffects in Django Photologue?

I'm creating an image gallery in Django using the Photologue application. There are a number of PhotoEffects that come with it. I'd like to extend these and make my own so that I can do more complicated effects such as adding drop shadows, glossy overlays, etc. Is is possible to create custom effects that Photologue can then use to pr...

SharePoint problem while adding custom menu item in document library

Hi, I have written a feature(Site scoped) that adds custom menu items to the New Menu and EditControlBlock of a SharePoint 2007 document library. These menu items should show up only when the user has add and edit permissions for that document library. This works great except for one particular case where the user has only read permissi...

LINQ To SQL - How to Join using function result

I have a query that needs to retrieve a string value based on a function and it needs to join to another table using that string. Background Info: I have one table that contains my company's data and one column in particular contains company id's (integers). I have another table that we import data into which contains our vendor data an...

sIFR: Not working for custom divs more than once.

Using sIFR rev. 436, latest release. Replaces h1, h2, h3, h4 tags flawlessy, as many as I have on the page. However, if i try replacing a custom div, say Replace Me it replaces only the first instance, but not the others on the page. I tested this on the 2.0 release as well and got the same results. Is this just a limitation of the s...

firefox (Gecko) conditional style sheet

Hello world, today I'm trying to optimize my website for a better rendering in firefox! my problems are the text-shadow and font-weight properties ... I would like to set custom values only for firefox (my website is mac only compatible so I don't need IE compatibility) but I don't wont to use separate style sheet for only these two prop...

Custom datacontract / datamember name

Hello, I have a following problem. A customer requested a web service that returns data in following format: <status> <name1>Some name</name1> ... </status> But when an error occurs they want to get a following message: <status> <error>Error description</error> </status> I created a web service using WCF and in order to fulfill ...

Getting a directory's path, that is inside an assembly.

I have a custom asp.net control. That control will also render to the page a piece of javascript. This javascript piece of code is actually properties that have to be initialized. One of this property value must be a path. This path is a directory that is inside this assembly. If it is was a file i would use GetWebResourceUrl but now I d...

Custom button on a row in UITableView?

I would like to add a custom button (checked/unchecked) to each row of the UITableView. Should I use UITableViewCell for this purpose? Also, if I want the same look and feel for each UITableViewCell, should I create multiple cells and apply the same properties to each cell or is there any trick to repeat the process? I will be using IB...

Convert Rendering from Table to Panel in Custom Control

Hi, I have a custom Panel control,which is expandable and we can insert any control on that. Given below is the code of custom control. using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Drawing; using System.IO; using System.Collections.Specialized; using Sys...

Custom Control and DependencyProperty

hi, I created a custom control that internally is using BindingList to keep track of Account objects that are displayed in some custom grid. I want to add a DependencyProperty to my control that will expose set/get for List that will allow me TwoWay binding between my control and data model. I want to be able to set that list to initial...

How do I change the title and link colors of a Google Custom Search Element?

The situation: Take a look at this page and search "photo" on both: http://dev.womenandlogistics.com/testsearchengine.html The top search engine refreshes the page and displays results with orange link titles and blue links. The bottom search engine displays tabbed results with blue link titles and blue links. I found an answer to thi...

ASP.NET MVC Custom Error Handling Application_Error Global.asax?

I have some basic code to determine errors in my MVC application. Currently In the project I have a controller called Error with action methods "HTTPError404", "HTTPError500", and "General". They all accept a string "error." Using or modifying the code I am working on below, what is the best/proper way to pass the data to the Error co...

How do I fix Google's Custom Search Engine conflict with my navigational menu? (CSE disables menu when displaying search results.)

I've recently incorporated Google's Custom Search Engine to a client's site. Everything seems to work just fine but when I search something and the results come up, the top navigational menu disappears. Any idea how to fix this? I sure hope I don't need to redo the menu. If I do, does anyone have an alternative? I would use CSS Suckerfis...

Custom Tag inhertance.

Hello, I have a JSP custom tag "A" defined in my .tld. It has 3 required attributes. It has its ATagHAndler that inherits SimpleTagHandler. I need a new tag "B" that does excatly the same thing as the above "A" but in a little different way. Also the attributes that are present in "A", i copied them to "B" in the .tld file (Code duplica...

How to pass reference of an control to another control in XAML

Hi, Im having requirement of passing reference of control to another custom control . Like I created custom control which contains dependency property associateDatagridProperty public static readonly DependencyProperty AssociatedDataGridProperty = DependencyProperty.Register( "AssociatedDatagrid", ...

Using regex with jQuery binding of custom events?

Is it possible to use a regex in jQuery's bind method for custom events. Something like... $(selector).bind(myRegex, function(){}) ...

Custom scope for .NET application settings

I can define my custom scope: [AttributeUsage(AttributeTargets.Property)] public sealed class SiteScopedSettingAttribute : SettingAttribute { } How do I use it in the Visual Studio Settings editor (make it available in the "Scope" combobox)? ...

Reading letters from a custom iPhone keyboard

Hi, I'm trying to build an app that is a code breaking puzzle for the user. I've followed sample code on how to add a decimal to the numeric keypad and it works great. I would like to expand this so the whole keyboard is filled with custom images. Is it possible to have a piece of code that when the user presses on a symbol the iPhone...

Custom WPF Pageing Control derive from Panel/Selector?

I am currently working on a way to create my own WPF control for displaying items in a page-like fashion (like the Google results pages view for example). One Item in the controls children collection should be selected and x bordering children should be shown. The other children (excluding first and last item) should be hidden like this:...

How can I show a custom image in navigation bar back button instead of default buttons which are shown by nav bar itself

On navigating to any view in an app which has navigation controller implemented, it shows a back button to go to the previous view. Is there a way I can use custom image instead of the default one? ...