hi,
i called canvas.drawBitmap to draw an image, but somehow it's showing up behind/underneath the custom view (or it's background). can someone explain this? thanks.
Consider the following code which shows compile time error :
#include <stdio.h>
int main(int argc, char** argv)
{
int x=5,y=0,z=2;
int a=z?x,y?x:(y); // but z?x,y?x:y:z is not showing any error
printf("%d",a);
return 0;
}
Please help me explain the reason why z?x,y?x:y:z is not showing any error?
I can change the irb prompt mode with
irb --prompt prompt-mode
I can see what null and simple does, but I can't tell the difference between null and xmp and the difference between default/classic/inf-ruby. Can someone explain to me what these other modes do? It seems pointless to have multiple modes doing the same thing.
Sometimes, my boss will complain us why we need so long time to implement a feature. Actually, the feature has been implemented in other AP before, you just need to copy and paste codes from there. The cost should be low. It's really a hard question, because copy and paste codes is not a easy thing from my point. Do you have any good reason to explain your boss who doesn't know technology?
Pretty clear from the title itself, what is meant by porting an application X to a platform Y?
Say for example I have an application X running on some OS, say Y, What do I do to port this application to another OS say Z?
Does this mean rewriting a new application A for Operating system Z that necessarily imitates the behavior of application X on Operating System Y.
Please explain.
Abstraction is a concept that seems difficult to explain, without reverting to using programming terminology. I've thought about it a lot, and I can't come up with a satisfactory answer. Does anyone have any very general, yet very pertinent explanations?
Metaphors, similes etc are all welcome.
Can someone explain help me understand how the this bit of code works? Particularly how the myHeap assignment works. I know the freq variable is assigned as a dictionary. But what about my myHeap? is it a Set?
exe_Data = {
'e' : 0.124167,
't' : 0.0969225,
'a' : 0.0820011,
'i' : 0.0768052,
}
freq = exe_Data)
myHeap = [[pct, [symbol, ""]] for symbol, pct in freq.items()]
As i understoond, if we have local service of some application, as soon as the application goes down, the service goes down as well - is that true?
and if it is, how can we make an application to run all the time without go down? (without using Alarm manager). i though that the purpose of local service is to answer this situation: " to make the application everlasting"
please, if some1 could explain me this better,
thanks,
ray.
Hi,
Has anyone been able to implement Facebooks Graph API in a native iPhone Application?
The documentation is pretty sparse when it comes to iPhone integration, but the calls to get users information looks a lot more light weight than the previous method of using FBConnect. So i would like to use it.
I have seen a few posts about but none explain you you would implement the login button as we did previously with FBConnect?
If any one has achieved this or can offer me any pointers that would be brilliant
Thanks
Tom
I want to find out which tables have been modified in the last hour in a MySQL database. How can I do this?
I am new to MySQL so please try to explain it as simply as you can.
thank you!
If I create a conceptual class diagram such that each class captures 'name' and 'attributes' but not 'operations', have I not basically created what would be otherwise considered an ERD? I'm trying to gain an understanding of what the differences are between creating a conceptual class diagram as I have described versus calling it a ERD? If these are still two different animals, can somebody please explain what the differences are?
Q:
I wanna any web sites , any books
just for training on ERD and
normalization ,, i wanna a lot of
samples ,practices,and case studies with
recommended answers, to strength
myself in database design.and avoid the poor data base design i made .
note:i don't need books to explain the concepts , what i need is practices ,examples,case studies with recommended answers.
Thanks in advance.
Can somebody explain me why the following piece of code fails to compile. The error is: "Possible loss of precision." :
byte a = 50;
byte b = 40;
byte sum = (byte)a + b;
System.out.println(sum);
Thank you.
I am modifying the "MoveMe" example from the apple web site. When I get the "touchesMoved" message I move the centre of the target view to the centre of the touch.
Is there a way that when the touch starts ("touchesBegan" message) I can remember the offset from the target view and keep that offset.
Let me know if this is hard to understand and I will try to explain it a bit better.
Hi! I want to know what is best practice for using db views, db tables, stored proc. and objects in tables... Which of these is more flexible and why, can You explain?
Best regards!
Hello!
Can someone explain me why verlet integration is better then euler ? And why rk4 better then verlet ? I don't understand why it is better method :/
Hi,
Why an object initialization using " new " keyword is called as dynamic memory allocation since compile time itself we know the memory needed for that object . Also please explain what happen when u do ClassA object = new ClassA(); in heap and stack .
Thx
Hi All,
i am reading spring through its official documentation and at one place i came to a line that use prototype scope for for all statefull beans while singleton for stateless beans.
i know there is something as statefull as well stateless beans in EJB but this is not what they have mentioned in the documents.
Can any one explain me what exact this means of statefull as well stateless beans in Spring
Thanks in advance
Can anybody explain why this code does not generate a compiler error?
class Foo
{
public:
int _x;
};
Foo getFoo()
{
Foo myfoo;
myfoo._x = 10;
return myfoo;
}
int _tmain()
{
// should this line of code not be a compiler error?
Foo& badfoo = getFoo();
return 0;
}
Hello Experts,
I am Beginner. I want to study and create custom controls. I have searched on Google but didn't find any good stuff.
Could anybody provide me some nice link or explain me that how can I start custom controls.
Thanks in advance.