Hi, my problem is to store details of people in java. I looked up at the oracle website topic How to Use Tables and found out that one can use object arrays(2 dimensional) to store details.
But my interest is to make a dynamic object array so I can store any amount of data and also take input to store those details from the user. For i...
Hello All,
Does the given code samples perform same operation? Do i really need a EXTRA object instantiation code? Will there be any issue with the first code segment?
Sample 1
Dog adog= new Dog();
adog.ID = dogID;
adog.CategoryId= dogCategoryId;
adog= DogRepository.FindDogByCategoryId(adog);
Assign the values back to the same obje...
Hi everybody,
I am working with a CMS for a web app in PHP, that has the needs of shortening the process for inserting (embedding) stuff, like a video from youtube or vimeo by wroting the following, which are stored in the database:
<youtube id="wfI0Z6YJhL0" />
Which would output the following after some sort of replace:
<!-- Custom...
I know that by implementing iterable you can make an object able to be foreached over. I'd like to take it further and make an object react like an array would in as many places as possible where an array is called for.
(The reason for this is because I'm selecting data from a database, and the statement object that results by default ...
Hello, I am working on a project using Eclipse/CDT on Win-XP using non-managed make.
The project has different variants which are created by changing some preprocessor directives (_DEBUG_, _PROD_).
The problem is that for _DEBUG_, we use object files in the makefile that needs to be turned off for _PROD_.
Right now, we have two entry p...
Can I make an Extension method for all the subclasses of System.Object (everything)?
Example:
<Extension>
Public Function MyExtension(value As Object) As Object
Return value
End Function
The above functions won't work for object instance:
Dim myObj1 As New Object()
Dim myObj2 = myObj1.MyExtension()
The compiler does not accept...
Hi,
Can any one please advise me how I can get the current count of "USER Object"s (as shown in task manager) for the current process.
I see how to get the handle count using:
Process.GetCurrentProcess.HandleCount
But our application can reach a USER Object count of 10,000 just by opening 17 instances of a particular form so we wou...
Hi all,
I am trying to do a deep copy of a NHibernate object (proxy wrapper). I want to do a copy of lazily loaded things also, except the Id of each inner object of the parent object, as it should be generated when I save the new object which is the result of deep copy.
I have tried to use serialization and also tried using AutoMapper...
Hi everyone,
So, the problem I'm trying to solve is to use an iPhone/iPod acceleration to manipulate directly a 3D object.
For that i've been searching lot's of stuff (Euler angles, Quaternions, etc).
I'm using OpenSG, where I have a 3D environment and want to manipulate a certain object (just rotating in all possible iPhone/iPod degree...
I am writing a program in windows in C++ for which users will be able to compile extensions in the form of dynamic-link libraries (windows) or shared object files (linux). On windows, you use the LoadLibrary function to load a dll. Is it possible to do the same for .so files on windows? And vice versa, load .dlls on linux?
...
object orientation was the last big paradigm shift I remember. What do you think will be the next big thing in programming paradigms and programming in general?
Edit: I was actually listening to Jaron Lanier interview and he was talking about how in the future we would stop worrying idiosyncrasies and the little tidbits about programmi...
Hello,
I need to use: $site->self::filter_name
Obviously that returns a Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in error
Thanks
Edit: Answer is: $site->{self::filter_name}
...
Using WPF and MVVM, we have a lot of very useful ViewModels and business objects for reporting. When designing a specific report (so far they're very simple) I'll add the BO/VM as a data source so the report can pull the properties from there instead of having to create and maintain an actual DataTable of properties for each BO/VM.
The...
HTML:
<input type="text" id="priceperperson1" name="priceperperson1" />
<input type="text" name="personsvalue1" class="countme" readonly="readonly" />
JS:
jQuery(document).ready(function($) {
$('div.pricerow input.countme').each(function(){
var id = this.name.substr(this.name.length-1);
alert($('input#priceperperson'+id));
this.valu...
In Business Object XI 3.0, while logging in publishing wizard I am getting following error. Any Help please
Logon Error
Transport error: Communication failure.(FWM 00001)
OK
Even CMC option is also not working. Yesterday also it was giving same problem. I had reinstalled the software. then it started working. Now today it is ag...
Can a HTML tag's value parameter contain newlines?
Context: I want to pass a map to a C++ activex <object> tag via <param>s, and it seems most straightforward to encode the map using spaces and newlines.
...
Hi,
I have created a client side array of javascript objects that I'd like to post back to the server. But when I do the following the array is coming back as 'undefined' Serverside in the FormCollection.
I'm using jQuery and here is my javascript code:
function MyObject(){
this.Param1;
this.Param2;
}
var myArray = new Arr...
I'm not very sure about the question title,
here is the situation, please see the following sample code
// original data
a = [
{x : 1},
{x : 2},
{x : 3}
]
// assign to a variable
b = a[0]
// do some change
b.x = 5
alert(a[0].x)
// i thought it would still be 1 but it is 5, why???
*edit
thank you Amber and Andrei
i think...
{"images":[{"id":"obj_0","src":"background.jpg","width":"640","height":"480"},{"id":"obj_9","src":"elements/pipe.png","width":50,"height":44,"top":196,"left":154,"rotation":"0"},{"id":"obj_13","src":"elements/cigarette.png","width":45,"height":67,"top":168,"left":278,"rotation":"0"},{"id":"obj_10","src":"elements/hat.png","width":227,"he...
IE continues to give me an error on the next-to-last line stating "Object required". I am not sure where the issue would be. Any advice?
function showdiv()
{
document.getElementById("dialogue").style.display = "";
document.getElementById("screen").style.display = "";
document.getElementById("screen").style.width = getBrowserWidth(...