We are developing a .NET plug in (class library) for an existing application within our enterprise. Its a desktop application which has preexisting support for plug ins.
1) Is there a mechanism to secure the plug in to ensure that it is only invoked by the existing desktop application? (We have no control over the desktop applications c...
Any re-sources or best-practices for implementing dynamic class re-loading feature into a J2EE WebApp on WebSphere App Server?
The point is I don't want to bring down my web-application while certain classes are updated.
...
I'm trying to retrieve a variable from an extended class. This is how my main class looks:
class SS {
public $NONE = NULL;
public $NUMBERS = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
public $OPERATORS = array("=", "&&", ">", "<", "+", "-", "/", "*", "^");
public $DBLQUOTES = '"$1"';
public $SNGQUOTES = "'$1'";
publi...
I have a tableView and when the user is selecting one of the cells, im loading a big image.
This loading takes like 10 seconds and i'd like to show a small view with a spinning icon.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
loadingView = [[LoadingHUDView alloc] initWithTitle: NS...
I understand that Silverlight 3.0 has binding but just want a simple example on how to use this to read a property from a class.
I have a class called Appointment which as a String property called Location:
Public Property Location() As String
Get
Return _Location
End Get
Set(ByVal Value As String...
I have searched up and down the internet for even the slightest mention of the 'this' reference, and have found NOTHING!!! Nobody seems to talk about 'this' at all. I'm an experienced c++ programmer, so I am more than familiar with the idea of a 'this' pointer/reference. My question is just what exactly is the 'this' reference in an a...
In Java you can do something like:
byte[] code = ReadFromClassFile("SomethingSomething.class");
SendAcrossNetwork(code);
And on the other end:
byte[] code = ReadFromNetwork();
Class marshalledCode = CustomClassLoader.defineClass(code, 0, code.length);
Object obj = marshalledCode.newInstance(); //Hey look, I've marshalled a class ove...
I code in Python a lot, and I frequently create classes. Now, I'm not sure if this is good Python form, but I just declare a class in the same file as my main().
class foo {
...
}
I'm wondering if it's good form in Java to do the same?
For example,
class foo {
public static int name;
public static int numPoints;
public s...
Hi
I'm trying to make a table who's columns and rows highlight on hover (I realise there are jquery plugins out there that will do this, but I'm trying to learn, so thought I'd have a stab at doing it for myself.)
Here's what I've got so far:
$('th:not(.features), td:not(.features)').hover(highlight);
function highlight(){
$('t...
I am writing a class to implement an algorithm. This algorithm has three levels of complexity. It makes sense to me to implement the classes like this:
class level0:
def calc_algorithm(self):
# level 0 algorithm
pass
# more level0 stuff
class level1(level0):
def calc_algorithm(self):
# level 1 alg...
I'm trying to make a simple game engine. I've never used OOP before, so this is probably a simple mistake, but I get this error when trying to create an instance of a class.
invalid conversion from `World*' to `int'
initializing argument 1 of `World::World(int)'
This is the code to create the class.
World w = new World(100);
And ...
I have built a class in PHP and I must declare a class variable as an object. Everytime I want to declare an empty object I use:
$var=new stdClass;
But if I use it to declare a class variable as
class foo
{
var $bar=new stdClass;
}
a parse error occurs. Is there a way to do this or must I declare the class variable as an object...
how to use CreateThread() to create threads of functions which are class members.
...
I'm building a class project (seperate dll) that will contain various helper methods and common functionality, to be accessed by a range of different applications - an ASP.NET website, a web service and a Windows service.
Is there any way that this neutral class can determine the type of application that is calling it (so it could, for ...
Hello,
I have a database abstraction layer that starts with a base class like so:
class DB {
function DB() {
$this->host = "xxx";
$this->db = "xxx";
$this->user = "xx";
$this->pass = "xx";
$this->dbh = mysql_connect($this->host, $this->user, $this->pass);
mysql_select_db($this->db);
// etc
}
}
class DB...
I recently got into Java. I have a background in dynamic languages and I'm finally figuring out why people complain about Java's verbosity. Are there any class libraries out there that address this issue? I'd much rather type something like "String text = someClass.stdin()" instead of the 8 or so lines it takes to get user input in Java....
Hello guys,
I need to design a simple piece of software, and i was wondering the best to do it.
First of all, sorry for the novice question: what is the best way to work with lists? i tried a few times and did not perceived the correct way to instanciate them and how to use them in OOP. Can anyone clear it up for me?
The second questi...
How can I call a function and keep my constructor private? If I make the class static, I need to declare an object name which the compiler uses to call the constructor, which it cannot if the constructor is private (also the object would be extraneous). Here is the code I am attempting to use (it is not compilable):
I want to keep the ...
Example is provided below. If I set
id<RandomProtocol> delegate = [[B alloc] init];
Will doingSomething of class A or class B be called?
A.h
@protocol RandomProtocol
-(NSString*)doingSomething;
@end
@interface A : NSObject <RandomProtocol>
@end
A.m
#import "A.h"
@implementation A
- (NSString*) doingSomething {
return @"...
Is it possible in PHP to instantiate an object from the name of a class, if the class name is stored in a string?
...