Is it the right Way we initialise the the object?
I have a class Sample
I want to initialise the Object in my Sample1 Class
After intialisation Idont require to use the object of Sample Class.
In that Case Can I initialise that object as new Sample(); instead of Sample s = new Sample(); if I am not going to use s anywhere in my Sample1 Class
My question, is this a good practice to do that?
will there be any after affects
In my setup I have a central Hg repo to which I'm pushing my local changes. Say in my local clone I have a series of local commits and then I want to push the changes to the central repo. How can I push only the final state without including all of the "small" local commits that I made?
I want this because sometimes Idont want to pollute the central repo's history with all of the small local commits that I made.
Hi, in my application the first view is an UIView with a couple of uilabel and an uibutton to do the login.
I would to show an uinavigationcontroller with a table after the login, so with the action of the button.
I know how to set up a working Navigation Controller starting with the Xcode Template but idont know how to load this as a "Second View"
Any help?
I have been developing websites for some time now and I hardly use any Javascript in my pages.
Whatever I can want to do with JavaScript, it is possible through PHP. Just like ajax itself. We can send a regular request instead of a ajax request, can't we? We can use "include" to include sub part of pages.
So am i missing something about javascript, that Idont know of?
I have created desktop application for mac.I want to put some image and item name on the customize toolbar.Idont know how to implement that things.can you give me some advice for that.thanks in advance.
I develop the DAL class for db operation
Public Sub StartTransaction()
Dim objConnection As SqlConnection = EstablishConnection()
objConnection.Open()
Me.Transaction = objConnection.BeginTransaction()
End Sub
Public Sub CommitTransaction()
Me.Transaction.Commit()
End Sub
Public Sub RollBackTransaction()
Me.Transaction.Rollback()
End Sub
after start the transaction when we commit or rollback and set transaction object to nothing it dont close the connection attach with this transaction
how I close the Connection attach to this transaction???
Lets says I have the following model
public class Person
{
[NameIsValid]
public string Name { get; set;}
public string LastName { get; set; }
}
I created a custom attribute NameIsValid for this model. Lets says for ViewA I need the custom attribute validation in the model, but for ViewB Idont need this custom validation attribute, how can I dinamically set or remove the custom attribute from the model when need it?
Thanks!
I have basic idea to the html and studying the basic things of java script and applied on it. And also i want to create the download link in my sample website. But idont have idea of how to create it? Please tell me the procedure..
Thanks in Advance.
I want to create a vector of vector of a vector of double and want it to already have (32,32,16) elements, without manually pushing all of these back. Is there a way to do it during initialization? (I dont care what value gets pushed)
Thanks
I want a 3 dimensional array, first dimension has 32, second dimension has 32 and third dimension has 16 elements
hi
i am new to iphone development and currently i am working on client server applications but the application run and work good on simulator but when i try it on device then the application crash after some times .Now idont know why this will happend because i release every object which are decalre with alloc or init.but still crash on device . My application are like (Rate My puppy application)which are store on apple store . please help me if any one have the solutions .
Hi,
I am trying to make an exit button for my application. Anyhow I am able to track all the instance of activity in my application and then finish them all. But still some activity remain alive in some cases. Dont know how. Is there any method to kill a particular application in android. Or any other way can I exit from my application.
Thanks
Hi
I am trying to create a reliable service on top of UDP.
Here i need to timeout receiveFrom function of window c++ if not packet arrives
in specified time.
In java i do this DatagramSocket.setSoTimeout but idont know how to achieve this in windows c++.
thanks
i only know php and i wonder if you can extend a php web application with c++ or java when needed? idont want to convert my code with quercus, cause that is very error prone. is there another way to extend it?
cause from what i have read python can extend it with c++ without converting the python code and use java with jython?
is it the right Way we initialise the the object?
I have a Class Sample();
I want to intialise the Object in my Sample1 Class
After intialisation Idont require to use the object of Sample Class.
In that Case Can I initialise that object as
new Sample();
instead of Sample s = new Sample(), if I am not going to use s anywhere in my Sample1 Class
My question, is this a good practice to do that?
will there be any after affects
One of my clients has requested this feature. They dont want to login to google analytics and want all the tracking/reporting through the site. Is there a way to show reporting inside an asp.net page?
given an X, what math is needed to find its Y, using this table?
x->y
0->1
1->0
2->6
3->5
4->4
5->3
6->2
language agnostic problem
and no, i dont/cant just store the array, and do the lookup.
yes, the input will always be the finite set of 0 to 6. it wont be scaling later.
i have a data structure for my compiler (such as ast) , and i need a method to print it (like ms visio) and verify its contents (i need to verify the contents of the ast nodes)
note : idont want to print it to the console , i am using c++ & qt
thanks
Hey!
Has anybody used a good obfuscator for PHP?, I've tried some but they dont work for very big projects. They can't handle variables that are included in one file and used in another, for instance.
Or do you have any other tricks for stopping the spread of your great code? :)
Does anyone have a template for writing a decent equals method - I remember in Effective Java there was problems around handling equals when dealing with subclasses.
Idont have the book with me and I cannot remember if it was practical advice - So how do you write a solid robust equals method implementation?
I have a bunch of input text boxes that have the attribute ORIGINAL set to their initial value, so that when the user changes the textbox value, jQuery can highlight items that have changed (by comparing the text box's current value to the ORIGINAL attribute's value)
What Im trying to do now is provide the user with a button that they can click to revert all text boxes back to their original values based on the value of the ORIGINAL attribute of each text box.
Example
$('input[type=text]').val($(this).attr('original'));
The above doesnt work and Idont understand why.
Is there a way to see a list of indices on a collection in mongodb in shell? i read through http://www.mongodb.org/display/DOCS/Indexes but idont see anything
i am new to webkit. I managed to open a html file using webkitgtk in c but idont know how to access the html elements for setting values, changing content etc .. (example : filling values in text boxes ..).. please help me out..
Thanks in advance ..