object

Undefined Variable in Matlab

The Following is the basic skeleton for my MATLAB program. Each box is a class definition. Scroll down for the error. Note: 1. Each Class has a custom constructor The Error Undefined function or variable 'Troom'. Error in ==> wall>wall.wall at 31 function o = wall(Tr) Error in ==> mainfile at 5 w1 = wall(); Thi...

Reverse-engineer a Javascript object?

I have a Javascript object that I want to pass in more parameters, but the documentation is non-existant. My only option seems to be to reverse engineer the Javascript object to see what parameters and values I can pass in. For example, I want to see if there is a "zoom" parameter for the object and what values I can pass into the "mapT...

PHP access data of an object

I have an object of which I am looking to get a piece of data from, the object looks like this, Product Object ( [name] => Simon Test Cup [code] => 123456789 [category_id] => 3 [range_id] => 26 [price] => 10.00 [price_logo_add] => 0.25 [image_id] => 846 [rank] => [special_offer] => N [cartPr...

Android: how do i pass an object from one activity to another

I need to be able to use one object in multiple activities within my app, and it needs to be the SAME object. What is the best way to do this? I have tried making the object "public static" so it can be accessed by other activities but for some reason this just isn't cutting it. Are there any other ways of doing this? ...

How do I interact with a Perl object that has a hash attribute?

I have a class with several variables, one of which is a hash (_runs): sub new { my ($class, $name) = @_; my $self = { _name => $name, ... _runs => (), _times => [], ... }; bless ($self, $class); return $self; } Now, all I'm trying to do is create an accessor/mutator, as well...

How can I implement a dispatch table using Perl objects?

What is the syntax for the hash value for a Perl object member subroutine reference in a dispatch table? use lib Alpha; my $foo = new Alpha::Foo; $foo->bar(); my %disp_table = ( bar => ??? ); I want ??? to be the code reference for $foo->bar(). ...

How do you test a command object in a grails controller integration test?

I'm new to grails. How do I test a form command object to make sure that it's working? Here's some setup code in a test. When I try to do it, I get the following exceptions: Error occurred creating command object. org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Error occurred creating command object. ...

Basic class returns object reference instead of Array

I have very basic class: class Customer { protected $id; protected $customer; public function __construct($customer_id) { $this->id = $customer_id; return $this->set_customer(); } protected function set_customer() { $query = mysql_query("SELECT * FROM customer WHERE id = '$this->id'"); $this->customer = mysq...

Slow T-SQL query, convert to LINQ to Object

I have a T-SQL query which populates a DataSet from an MSSQL database. string qry = "SELECT * FROM EvnLog AS E WHERE TimeDate = (SELECT MAX(TimeDate) From EvnLog WHERE Code = E.Code) AND (Event = 8) AND (TimeDate BETWEEN '" + Start + "' AND '" + Finish + "')" The database is...

ActiveX Deployment

We have used for 8 years an ActiveX created in Delphi and we are now using it on Internet Explorer over the internet (and not on local machine as it was always been the process until here) As today we use this object in the HTML: <object id="ActiveX" classid="CLSID:8EC68701-329D-4567-BCB5-9EE4BA43D358" width="14" height="14"> ...

how to specify which child class this object belong to after retrieving from a hashmap?

hi everyone, i have a parent class called Course, and two child class PostgradCourse and UndergradCourse. i have a hashmap HashMap courses; i store all the postgradCourse and undergradCourse objects in the hashmap. i want to retrieve an undergradCourse object from the hashmap using the key. Course course = courses.get(courseCode); t...

How do I get the object that called (executed) my vb.net subroutine inside my object?

I'm trying to extend my new WPF Touch Screen Keyboard (DLL) Library, to allow the user to get events from the Touch Screen Object. I'd like to be able to tell the Programmer what Object made the call (or executed the subroutine) that raised the event. Not dissimilar to the Sender as Object event parameters one gets when working with a Sy...

What's the largest variable value in iphone?

I need to assign 2,554,416,000 to a variable. What would be the primitive to use, and what would be the object representation class to use? Thanks. ...

Accessing variables of an object of a particular class through a different class within the constructor of latter class

Helo, there are 3 files, CustomerClient.java, CustomerServer.java and Customer.java ...

Best method to cache objects in PHP?

Hi, I'm currently developing a large site that handles user registrations. A social networking website for argument's sake. However, I've noticed a lag in page loads and deciphered that it is the creation of objects on pages that's slowing things down. For example, I have a Member object, that when instantiated with an ID passed as a c...

PHP classes, parse syntax errors when using 'var' to declare variables

I am a C# guy trying to translate some of my OOP understanding over to php. I'm trying to make my first class object, and are hitting a few hitches. Here is the beginning of the class: <?php require("Database/UserDB.php"); class User { private var $uid; private var $username; private var $password; private var $realname; ...

How to determine sql server object name from object id and database id (sql2000)?

I need the behaviour of sql2005 where function OBJECT_NAME takes two arguments obj id and db id, while sql2000 takes only obj id so the execution must be in the context of the database to which inspected object belongs to. Solution must be possible to implement in a function, so it can be used in a select query. ...

Creating Domain Model

Hi, I have created a use case of a small application and now I have to create a Domain Model of that use cases of the application and which functions will be implemented in this application. I have no previous experience in Domain Modeling and UML, please suggest me steps to create the domain model or any suggestions, Do I have to have a...

Rails: Object#id will be deprecated; use Object#object_id

Hi everyone, Very quick question. My server is warning me that line 37 will be deprecated, specifically: #Server error: views/projects/index.html.erb:37: warning: Object#id will be deprecated; use Object#object_id #Views/projects/index.html.erb: 6: <% for project in @projects do %> 36: <%= project.id %> 37: <%= Matching.find_all_by_cu...

Javascript error: Object required...tough time fixing this

The situation is this: a friend of mine asked me to help her with a website she's working on called www.KeepsakePartyInvitations.com. Her original designer created this code but didn't finish the project. So here I am to help save the day. Now, once a photo has been added to the party template and the mouse is placed over the image, an...