custom

Add support for fields to databound controls

For example when using a gridview. When you specify the columns BoundField for example won't work if you are binding it to a field instead of a property. I guess this is so because when the gridview is looking for the DataField property it looks for a property and not a field. Now the question is how can i change this behavior to make ...

Formatting alphanumeric string

Hello. I have a string with 16 alphanumeric characters, e.g. F4194E7CC775F003. I'd like to format it as F419-4E7C-C775-F003. I tried using string.Format("{0:####-####-####-####}","F4194E7CC775F003"); but this doesn't work since it's not a numeric value. So I came up with the following: public class DashFormatter : IFormatProvider, ...

Android game with constant FPS?

Hi, I'm implementing a game loop with constant FPS. I'm thinking about 25-30 FPS should be enough. Any ideas from your own experience? Should I even restrict FPS at all? Thanks in advance! ...

Trying to create 'SuperUser Class' with ASPNET ProfileBase and MembershipUser

Hi. I have recently installed the aspnetdb and have been customizing it for the purposes of my application design. I have extended the ASPNET providers as part of my class design: MyMembershipProvider, MyProfileProvider, and MyRoleProvider. Everything works well there. Now, per the requierments of my system, I need to add custom dat...

Is there any way to configure trac to use a custom mailing tool?

Is there any way trac could be made to work with a custom mail tool? For example, imagine a command line script which takes all of it's arguments from it's command line arguments: script -s sender -t title -to [email protected] -b body The tool is configured to use COM for email sending, and I think it would be impossible to define ...

Will a custom RoleProvider work with [Authorize] on action method in ASP.NET MVC?

I'm making a custom MembershipProvider and RoleProvider. I have database tables with Roles and UsersInRoles and I use LINQ-to-SQL to create objects of the tables. When invoking [Authorize] on an action method, will it work with my custom RoleProvider? How does it know if the user is authenticated and if the user is in the appropriate r...

Update panel error in custom page when logging with a user other than the administrator

Hi all I made a custom page and added it to a MOSS 2007 site. the custom page has an update panel and some ajax controls when I'm logged in as an administrator with full control permissions, the page works fine. but if another user with even Full control permission logs in and browse the page, an error appears: The control with ID 'Upda...

Duplicate <meta> in Drupal variable $head

Hey Everyone, I am trying to customize the $head variable in my page.tpl.php template, because there are two instances of <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> appearing, which I believe is affecting the site from being validated u...

custom classloader Illegal access error

i have implemented a custom class loader to securing my application but when i load an encrypted class java throws IllegalAccessError but i sure that decryption is done accuratly because i have put decrypted class file in some where and compared it with the original class file. according to java documentations about IllegalAccessError ...

Ruby on Rails custom Observer

Could anyone advise how to use custom observer or events/callbacks in Ruby on Rails? I have tried both these posts: http://www.mutuallyhuman.com/2009/1/6/using-custom-activerecord-events-callbacks and http:// alexkira.blogspot.com/2008/10/custom-observer-callbacks-in-rails.html none seems to be working. On the second post, I put Alex ...

SHAREPOINT: Custom Field type property storage defined for custom field

ok here is a great question. I have a set of generic custom fields that are highly configurable from an end user perspective and the configuration is getting overbearing as there are nearly 100 plus items each custom field allows you to perform in the areas of Server/Client Validation, Server/Client Events/Actions, Server/Client Bindings...

Custom NSWindow setAlphaValue and makeKeyAndOrderFront

Hi, I have a custom window (matt gemells Transparent Window class) and I need to change the window's alpha value to achieve a fade in/out effect and perform a "makeKeyAndOrderFront:". However this does not work. What I did: I imported the header: #import "TransparentWindow.h" Then tried: [TransparentWindow setAlphaValue:0.5]; [...

Unable to bind to property of custom component

Can't seem to bind to data from within a custom component. I've tried BindUtilis and {} but can't seem to fathom it out. Here's what I've got: I have a class DataModel which has been made bindable Within Mainn.mxml I have two components: DataGrid (used for testing) & CustomComponent (which extends Canvas) When the data within DataMod...

iphone movieplayer custom screen size

I tried this code for customizing the screen size.. But it works well this 2.2.1 but it doesn't work with sdk 3.1.2..Its showing some error as windows count beyond bound.. can anyone tell me how to this in 3.1.2. else is there anyother method to customise the screen in 3.1.2. plz help. thanks NSArray *windows = [[UIApplication sharedApp...

NHibernate custom collection type

Hi, I'm having an entity object called Patient and this entity is having a property called Visits which is of type VisitsCollection. VisitsCollections is a child class of IList<Visit> but it also adds some custom logic to the collection (like auto ordering, some validation, notifications, etc..). I need to use the custom collection ty...

MSI MessageBox Custom Action

Hi, I want to create a Custom Action for my installer that checks to see if Outlook is running and if it is, it prompts the user to close Outlook before continuing. Everything works great except that when the MessageBox appears informing the user they must close Outlook, it appears behind the current MSI installation window. I'd like t...

Can't access instance of custom inherited webcontrol from code-behind page in Web Application project

I've inherited from an ASP.NET WebControl to add some additional functionality. I tested my control in a blank ASP.NET Web Site (created through File > New Web Site...) and it worked fine. But I can't get it to work when I add it to a Web Application Project (created throgh File > New Project... > Visual Basic > Web > ASP.NET Web Appli...

Adding a trigger to a WPF custom control

Hi! I have a custom user control named DatePicker.xaml. Its code behind is DatePicker.xaml.cs: namespace GesHoras.UserControls { /// <summary> /// Lógica de interacción para DatePicker.xaml /// </summary> /// public partial class DatePicker : UserControl { <...> private int _day; private int _year; private int _month...

Mail App's emails button iPhone

Hi There. I need a for a project i'm working on a button similar to the one the Mail app use to display the a contacts. If you don't see what i'm talking about, please see this image: http://www.aboutptc.net/theButtonIneed.png Thanks in advance. ...

Custom ProgressBar ControlTemplate

Hi All, I am having a little difficulty with a generic template for my extended progress control. Basically, the template consists of a grid, with some text information and the actual progress bar. It works fine, except for when I want to switch to vertical orientation. Everything appears to be rotated correctly, but I get no progres...