custom

Touch area changing on custom UIButton with image and title on landscape mode

hello all I'm trying to build a button that looks like the icons on the iphone , with an image and a title bellow.I'm working in landscape mode. I have a custom button on the IB with image and title and inside the code I use the methods : [aButton setTitleEdgeInsets:UIEdgeInsetsMake(60.0, -50.0, 0.0, 0.0)]; [aButton setImageEdgeInsets:...

How to build custom sqlite with provider under Android?

Hi, I have a really strange problem. I need to build custom sqlite3 database engine under Android OS, but I also want to use database provider implementation. Unfortunately when examining sources of Android 1.6 I noticed that it's not so easy. Many classes including android.database.; packages use original provider, also many other pa...

Ninject - initialise objects

Hi guys, I am new to ninject, I am wondering how I can run custom initizlisation code when constructing the injected objects? ie. I have a Sword class which implements IWeapon, but I want to pass an hit point value to the Sword class constructor, how do I achieve that? Do I need to write my own provider? A minor question, IKernel kerne...

Displaying custom error message for a blank field in a simple JSF application

Hi all, I was trying out a simple JSF application, in which I need to check if the "name" field is blank, then display an error message. The code which takes the field's value is: <h:outputLabel value="Name"/> <h:inputText value="#{greeting.name}" required="true"> <f:validator validatorId="NumValidator"/> </h:inputText> The contr...

Custom keypad button in iphone

Hi All, I am having an issue in iphone when i want to use a custom button in the keypad(text field filler) of my application page. i have embedded a button named dot in the keypad and it is appearing fine but when i click it, it is supposed to go to an action which i defined. but it crashes. - (void)sendDecimal:(id)sender { // Post...

Custom textbox control in asp.nt

Hi.. I m trying to create a custom textbox with a enum kind property in it(like textmode).the enum values will come from database..but enums cant be dynamic..is there another way out?? ...

Unit Testing Custom Code Analysis Rules in 2010 - Any Hope

In the past it has been a real PITA to unit test custom Code Analysis rules. I haven't found anything out there that shows the situation to be any different in 2010, but I'm not giving up. If anyone knows if this is "possible" in 2010 please respond - thanks! ...

jQuery Plugin: Adding Callback functionality

I'm trying to give my plugin callback functionality, and I'd like for it to operate in a somewhat traditional way: myPlugin({options}, function() { /* code to execute */ }); or myPlugin({options}, anotherFunction()); How do I handle that parameter in the code? Is it treated as one full entity? I'm pretty sure I know where I'd p...

WPF ICommand over a button

Hi, I have implemented a custom IComand class for one of my buttons. The button is placed in a page 'MyPage.xaml' but its custom ICommand class is placed in another class, not in the MyPage code behind. Then from XAML I want to bind the button with its custom command class and then I do: MyPage.xaml: <Page ...> <Page.Com...

Symfony - Custom under maintenance page

Hi there! I'm trying to add a custom page to my web application for the times I'm performing maintenance. I'm trying to test the referred page on my development environment but always appear the symfony page. I had already created a module with a proper action and template and also configured those on the settings.yml file. Can anyone ...

using a custom nstextfieldcell in an nstextfield

I have a custom nstextfieldcell. I thought I could drag a textfield to a xib and click on it's cell, then change the cell's class to my custom class.That doesn't work. Also, I thought I could drag the custom cell from the library (i made a plugin) over the textfield and it would set the new cell like in a table. That doesn't work eithe...

Serializing a part of object graph

Hi all, I have a problem regarding Java custom serialization. I have a graph of objects and want to configure where to stop when I serialize a root object from client to server. Let's make it a bit concrete, clear by giving a sample scenario. I have Classes of type Company Employee (abstract) Manager extends Employee Secretary extends...

Custom Views in MVS with input names not-matching to Model property names.

We are using MVC in our application; the Views we are using get created by other team. The problem is that they use their own names for input HTML controls which are different from the input text-box names in the Model. I have a strong feeling that this issue had already been addressed somewhere but cannot find any references. Could anyb...

How would the conversion of a custom CMS using a text-file-based database to Drupal be tackled?

Just today I've started using Drupal for a site I'm designing/developing. For my own site http://jwm-art.net I wrote a user-unfriendly CMS in PHP. My brief experience with Drupal is making me want to convert from the CMS I wrote. A CMS whose sole method (other than comments) of automatically publishing content is by logging in via SSH a...

How to create custom workflow in SPD 2010 to move a document from one doc library to another doc library

Tell me how to create a custom workflow in sharepoint designer 2010 to move a document/item in one document library(say "Proposals") to another document library(say "Approved") after the document/item gets approved. ...

How can I programatically create this custom binding?

We've got to access a web service that uses soap11... no problem I'll just set the binding as: BasicHttpBinding wsBinding = new BasicHttpBinding(BasicHttpSecurityMode.TransportWithMessageCredential); Nope. No dice. So I asked the host of the service why we're having authentication issues and he said that our config needed to have this...

custom format specifications in python

hi, in python, how can a custom format-specification be added, to a class ? for example, if i write a matrix class, i would like to define a '%M' (or some such) which would then dump the entire contents of the matrix... thanks ...

How do I set a custom Android standby screen?

For example, I want to write an activity that launches when you return from sleep (black screen). How can I set this activity to run instead of the default one? In other words, I want to make a custom lock screen. Thanks ...

Wordpress custom fields - in each new post showing only first 30 custom fields

Hello, when I adding new post(second post - id=2 ), then showing only first 30 custom field maded in old post( this is first post - id=1, there is about 60 custom fields). Wordpress cannot save all 60 custom fields in next post adding? ...

Cannot select CustomTraceListener with "Type Selector" window in Enterprise Library 4.1

i created a Custom Trace Liastener inside a class library : namespace SendMailTraceListener { [ConfigurationElementType(typeof(CustomTraceListenerData))] public class SendEmailTraceListener : CustomTraceListener { public override void Write(string message) { throw new NotImplementedException(); ...