hi,
I am using paypal direct method.
error is
This transaction cannot be processed due to an invalid merchant configuration.
How to accept or activate billing agreement while i am using sandbox account.
Hi,
If I'm correct then the releasing of the pool of autoreleased objects has something to do with the run loop.. I barely have an idea of what that 'run loop' is but my question is, is it possible that the object gets released before the end of the method is reached?
Hi!
LINQ to Entities has many LINQ methods marked as "Unsupported" (http://msdn.microsoft.com/en-us/library/bb738550.aspx).
Is any way to implement some of these methods by hands? Or I should wait next release of EF?
I'm especially needing this method:
IQueryable<TResult> Select<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, TResult>> selector)
Thanks
i'm playing around with c# reflection api. i can easily load type info of classes, methods etc. in an assembly.
now i wonder how can i load and read the code inside a method?
Lets say I made a method that can tabulate the total of x and y.
total = [self totalThemUp x:30 y:50];
Is self correctly used? Why so? I don't see any object in particular that is acted on.
Thanks for your help!
Is there a way to add a method to all javascript functions without using the prototype library?
something along the lines of :
Function.prototype.methodName = function(){
return dowhateverto(this)
};
this is what i tried so far but it didnt work. Perhaps it is a bad idea also if so could you please tell me why?
if so can I add it to a set of functions i choose
something like :
MyFunctions.prototype.methodName = function(){
return dowhateverto(this)
};
where MyFunctions is an array of function names
thank you
I Have an application in my account and I want to call a method that takes int number and return one int number (int someMethod(int someVar)) from client application that must be written with C#.
Hi
is there a method / possibility to run a function when the scrollview is scrolling?
i found scroll start and scroll end solutions but nothing like a onIsScrolling ...
is there a built in solution? or whats the best workaround (nstimer)?
thanks
Alex
Hi, I want to know if there's a way to run a method of inside an element of an Arraylist
but I don't want to do it with get because it actually changes fields of the element
thanks
benny.
I am creating a Javascript object that contains a function that executes a jQuery each method like the following:
function MyClass {
Method1 = function(obj) {
// Does something here
}
Method2 = function() {
$(".SomeClass").each(function() {
// 1 2
this.Method1(this);
});
}
}
Which object is each THIS referring to? jQuery is referring to the item returned from the each iteration. However, I would like This[1] to refer to the containing class...
How can I refer to the containing class from within the jQuery loop?
I've just seen this line of code in my housemates code.
Bool bool = method() 0;
or
string name = "Tony";
boolean nameIsTony = name == "Tony";
This would result in nameIsTony becoming true.
So you can have an inline conditional statement?
What is this called?
I have this code i am working on but every time i call init method I keep getting an error
this.addElement is not a function
is it because i can't call methods from event handlers ?
function editor () {
this.init = function () {
$("#area").bind('click' , this.click_event );
}
this.addElement = function () {
console.log("adding element");
}
this.click_event = function(event) {
this.addElement();
console.log("click event in x : "+event.data);
}
}
OK so my applet is not compiling and I Googled some answers and none worked. (Such as taking public out of public class)...
Here's my code: http://www.so.pastebin.com/MBjZGneg
Heere is my error:
C:\Users\Dan\Documents\DanJavaGen\Inventory.java:12: Inventory is not abstract and does not override abstract method keyReleased(java.awt.event.KeyEvent) in java.awt.event.KeyListener
public class Inventory extends Applet implements KeyListener {
... help? :) please.
I am practising recursion and cant see why this method doesnt seem to work
any ideas?
public void fact()
{
fact(5);
}
public int fact(int n)
{
if(n == 1){
return 1;
}
return n * (fact(n-1));
}
}
Thanks
I'm new to java can someone please explain to me whats wrong with this method:
clas Hello {
public static void main (String[]arg) {
Document.write ("hello world") ;
}}
Possible Duplicate:
Protect .NET code from reverse engineering?
we just develop a application with C# winforms, is there any good encryption method to help us prevent from piracy ?
I saw some software may need hardware support to protect their software, how to implement that ?
Thanks in advance !
Hi,
If I'm correct then the releasing of the pool of autoreleased objects has something to do with the run loop.. I barely have an idea of what that 'run loop' is but my question is, is it possible that the object gets released before the end of the method is reached?
When i use some of the codes
Why do i always get this error..no suitable method found to override?
and
Warning 2 The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:
Thing --- The base class 'System.Object' cannot be designed.
Form1 --- The base class 'System.Object' cannot be designed. 0 0
It's either because of the fact I'm tired or because I'm doing it wrong, but for some reason I can't get it to call a method.
Here's what I'm trying to call:
-(void)newHighScore:(int)d
Which right now just does an NSLog saying "yea I'm working!"
I'm calling it like this:
[highscore newHighScore:score];
highscore is what I called the HighScore class in the .h, and score is an int with the score.
When I run my asp.net mvc 2 site (shared hosting) I get the following error:
Method not found: 'Void System.Web.Mvc.DataAnnotationsModelValidatorProvider.set_AddImplicitRequiredAttributeForValueTypes(Boolean)'.
In the bin directory I have System.Web.Mvc.dll version 2.0.50217.0
On my local dev machine it runs fine.
Is it possible that if the hosting provider has a different mvc 2 version installed it would cause this error?
Thank you!
Hi All,
New to this and a bit confused as to why calling the following method creates a force close:
AudioManager myaudiomanager;
public void toggleSilent()
{
myaudiomanager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
}
I don't see any blatant errors and I have added permissions to the manifest regarding the audio manager.
Anyone able to direct me further?
Ok this is bugging me.. I know Ive read it somewhere and google isnt helping.
what is the accessibility level of a method that does not specify an access modifier?
void Foo()
{
//code
}
I want to say its internal but Im not 100% sure.
I created an android app and one of its functions is to send SMS, when I try to send blank SMS it throws an exception.
Here is the code:
SmsManager sm=SmsManager.getDefault();
sm.sendTextMessage("9999", null, messageBody,sentPI, deliveredPI);
messageBody maybe empty string and maybe it is a string, previous method throws IllegalArgumentException when messageBody is empty string!
what can I do to send blank SMS?
So I have a model with a FileField for excel spreadsheet. What I need to do this add another column in this spreadsheet, in each row let user pick from a drop-down list then save it and display it in html. All the picking and uploading will happen through the admin interface. So I have figured out way how to display a spreadsheet in html, however I have no idea how to write this save method. I could really use some hints and tips..
when I try and run the "rake db:seed" command the rails console outputs "NoMethodError: undefined method `db' for #" not quite sure what going on. I'm using netbeans to build my rails project which is using the built-in JRuby 1.2 would that have anything to do with it?