Hi, I'm writing a POS application for the iPhone/iPod combination, using the same exact hardware used in Apple Stores:: EasyPay.
Ok, my hurdle is this: how do I identify which credit card type is being used as text is entered in the uitextfield?
I assume I've to use textField:shouldChangeCharactersInRange:replacementString:? However, I've got ideas floating around, but I simple cannot put them together to form code :/
Any help is appreciated!
Thanks in advanced :D
Hi,
I have a spring action that I am rendering some json from the controller, at the minute its returning the content type 'text/plain;charset=ISO-8859-1'.
How can I change this to be 'application/json'?
Thanks
Jon
Hello,
is it possible to specify that a NSMutableArray can only contain a certain type of objects.
For example, if I want to store only this kind of objects :
@interface MyObject : NSObject {
UInt8 value;
}
In order to be able to use the instance variable like this :
- (void)myMethod:(NSMutableArray *)myArray{
for (id myObject in myArray){
[self otherMethod:myObject.value];
}
}
because I'm getting this error :
request for member 'value' in something not a structure or union
Thank you for your help
I have created a custom field type and its working properly but when I am adding it on page layout ,its not displaying any data in there.I am getting data from one of the list.I have added that field in list and its displaying all the data I want to select but on page layout its blank.....
Any idea where i m getting wrong...?
hi,
I need a sequence of text, image, video CCK fields, repeated twice in my content type.
I need to create 2 different groups (I don't want to use multi-upload functionality).
I was wondering if I have to create a new field Image - File Upload for the second group, or I can somehow to re-use the first one (which is already added, and I would like to add it twice in the second group as well).
thanks
For example, I have a struct which is something like this:
struct Test
{
int i;
float f;
char ch[10];
};
And I have an object of this struct such as:
Test obj;
Now, I want to programmatically get the field names and type of obj. Is it possible?
This is C++ BTW.
Hi,
Is there any way to detect the type of a webservice inside a httpmodule?
The reason for this is that I want to do some property injection to the webservice before
it's processed.
I found this:
http://social.msdn.microsoft.com/Forums/en/asmxandxml/thread/0e848eee-d353-4e67-b47f-89fddb600009
but that is one h..l of an ugly solution.
Anyone have a nice solution?
This exception is being thrown by the PostgreSQL 8.3 server to my application.
Does anyone know what this error means and what I can do about it?
ERROR: cached plan must not change result type
STATEMENT: select code,is_deprecated from country where code=$1
I'm trying to use the sample code here:
I went to "Add Reference" dialog and added "Microsoft Word 12 library", but it doesn't appear in the Solution Explorer. I also added: using Microsoft.Office;
I get the following error message when trying to declare a "Word" object.
Error 1: The type or namespace name 'Word' could not be found (are you missing a using directive or an assembly reference?)
Any suggestions on how to properly reference the Word library?
Hi,
Is there any way to detect the type of a webservice inside a httpmodule?
The reason for this is that I want to do some property injection to the webservice before
it's processed.
I found this:
http://social.msdn.microsoft.com/Forums/en/asmxandxml/thread/0e848eee-d353-4e67-b47f-89fddb600009
but that is one h..l of an ugly solution.
Anyone have a nice solution?
How do you detect the network connection type on Android?
Is it through ConnectivityManager.getActiveNetworkInfo().getType(), and the answer is limited to Wifi and mobile?
Is there a way to reflect on an interface to detect variance on its generic type parameters and return types? In other words, can I use reflection to differentiate between the two interfaces:
interface IVariant<out R, in A>
{
R DoSomething(A arg);
}
interface IInvariant<R, A>
{
R DoSomething(A arg);
}
The IL for both looks the same.
It seems that c# does not support c++ like templates.
template <class myType>
myType GetMax (myType a, myType b) {
return (a>b?a:b);
}
I want my function to have return type based on its parameters, how can i achieve this in c#? How to use templates in C#
I have an Entity Framework model using Table per Type Inheritance, but when I use a VS Data Generation Plan it produces duplicate keys in the child tables, which is a problem for EF. Does anyone know of a way to get this to work, so that the child tables do not have overlapping keys?
Now that people have been using C# 4.0 for a while I thought I'd see how people were most often using the type 'dynamic' and why has this helped them solve their problem better than they may have done previously?
Hi friends
I have created custom site column with type text and I included in one of content types. But it is allowing me for 255 characters only. In which way I can extend it, say 1024 characters. I did this before by mentioning somewhere in web.config file but I forgot how i did.
Can anyone please tell me how can I achieve this. Thanks in advance.
Hi.
I have interface IModule and several classes that implements it.
In test i need to create instance of each type(class) implementing that interface.
Is is possible(with StructureMap)?
I have a WPF Composite application and I want to create a customized messagebox, I wondered what project type I should use to create it?
A usercontrol
A WPF Application
A Class Library
I have to then be able to use this MessageBox in other places in my application.
Hello,
In my table I have a serial number field, which is represneted by string.. It has a prefix and some numbers follow. Eg: ABC1234, ABC2345 etc. How to retrieve the largest value (max equivalent of int type) from this column. In my case it would be ABC2345. I probably could retrieve all the data,, sort it and get the same, but that would be slow.
thanks in advance..
Who can tell me the internal working mechanism of a CollectionEditor in plain English?
I have implemented every virtual function and step into each of them. Still got no clue of its intended algorithm. I searched the web and found tons of compaints about the CollectionEditor type, and even bugs.
I am kind of thinking of the CollectionEditor as a total mess.
i need to work with a binary number
i just write :
const x = 00010000 ;
& it doesn't work
i know that i can use an hexadecimal number that have the same value as 00010000 but for more knowledge i want to know if there is a type in C++ for binary numbers & if there isn't ,is there another solution for my Problem ?
thanks
Hi All,
I have a table that has a column for Days Remaining. The values in this column are either a number, or 'TBD' (to be determined). The tablesorter plugin doesn't properly handle the sorting of this mixed-type column. How could I get this to work properly?
Thanks,
~jk