This is actually extracted from my module (Pre-processor in C)
The conditional expression could contain any C operator except for the assignment operators,increment, and decrement operators.
I am not sure if I am getting this statement or not since I tried using this and it worked.Also for other manipulation a probable work around would be to simply declare macro or function inside the conditional expression,something like this to be precise.
Also I don't understand what is the rationale behind this rule. Could somebody explain?
Thanks
Hello,
I was trying to add more than one images in the AnimateDrawables under com.example.android.apis.graphics, but for some reason I couldn't. Can anyone post a sample code on how to accomplish it or at least explain it to me? This beginner programmer would really appreciate it.
Thanks
cut -d" " -f2 ${2} | $callsTo
hello, can somebody please explain can I pipe the result of cut to variable callsTo, and how will it be stored, as the string or list?
It's kind of hard to explain, but an example of what I'm wanting to accomplish is like this:
Here is some text | image |
that is printed | |
out in a view and ---------
it is wrapped around an
image that is floating and
right aligned.
I thought about generating the layout in html and using a web view, but I need to be able to perform an action when the user clicks on the image. Does anyone have any ideas?
Thanks in advance,
groomsy
A java process starts 5 threads , each thread takes 5 minutes. what will be the minimum and maximum time taken by process? will be of great help if one can explain in java threads and OS threads.
Edit : I want to know how java schedule threads at OS level.
I want to make a little in-app demo like Tapbots does in Convertbot. Maybe there is a better solution than mine?
make everything programmatically controlable
write a huge class with hundreds of performSelector:withObject:afterDelay: calls to control the whole app for the demo
The demo actually only does two things:
Simulate touches on controls (i.e. programmatically pressing buttons)
Show text message bubbles when appropriate to explain what is going on
How would you do it?
i have two shell scripts:
script1.sh
echo "date : DATE"
exit 0;
script2.sh
./scripts1.sh
if [ $? -eq 0 ]; then
reboot;
else
echo "Failed"
fi
What should be the result. Ideally it should have been "reboot" , however on some execution i got the "failed" message too. Can anyone explain why this happens?
Hello, I'm trying to figure out the right way to read lucene index only once whilst running the application multiple times, how can I do that in java?
Because indexed data will not change so reading them each time would not be necessary. Can someone explain me the logic of it reading them only once? thank you
What is the significance of Thread.Join method in c sharp .net ?
MSDN says that it blocks the calling thread until a thread terminates. Can anybody explain this with a simple example ?
in my site i want to set default page to open, using this script
if (!isset($_GET))
{
$_GET['id'] = "home";
}
but it doesn't work. can somebody explain why?
Hi, i would like to make 'skinnable' a web site written in asp.net...
I explain: for example, i have a 'div' element, and i would like to define a background-color using a variable, not a fixed value.
How can i do ?
Css ? Or other tecniques ?
Thanks
Could you please explain in case we could perform any operations on newly included elements using xsl?
To explain using an example: if we have the following input file
<?xml version="1.0" encoding="UTF-8"?>
<top>
<Results>
<a>no</a>
<b>10</b>
<c>12</c>
<d>9</d>
</Results>
<Results>
<a>Yes</a>
<b>8</b>
<c>50</c>
<d>12</d>
</Results>
</top>
We need the final result as
<?xml version="1.0" encoding="UTF-8"?>
<top>
<Results>
<a>no</a>
<b>10</b>
<b_>10</b_>
<c>12</c>
<c_>12</c_>
<d>9</d>
<e_>11</e_>
</Results>
<Results>
<a>Yes</a>
<b>8</b>
<b_>8</b_>
<c>50</c>
<c_>50</c_>
<d>12</d>
<e_>29</e_>
</Results>
</top>
Where:
b_ = b,
c_ = c,
&
e_ = (b_ + c_)/2
I'm writing a program and I have the following problem:
char *tmp;
sprintf (tmp,"%ld",(long)time_stamp_for_file_name);
Could someone explain how much memory allocate for the string tmp.
How many chars are a long variable?
Thank you,
I would appreciate also a link to an exahustive resource on this kind of information.
Thank you
can anybody explain why uploaded php files treated by a server as a text file ?
The symptom is when i try to access a php file, the server send me the content of the file.
Can someone explain what the 'e' flag does, or link me to somewhere that does? I couldn't find anything via google.
Example:
preg_replace("/a(b?)c/e", "search_foo_term('\$1')", $str);
In NumPy functions, there are often initial lines that do checking of variable types, forcing them to be certain types, etc. Can someone explain the point of these lines? What does subtracting a value from itself do?
t,w = asarray(t), asarray(duty)
w = asarray(w + (t-t))
t = asarray(t + (w-w))
Hi All,
I went through all the posts on Reflection but couldn't find the answer to my question.
Can you please tell me what were the problems in programming world before .Net Reflection
came and how it solved those problems.
Please explain with example.
Got a great answer earlier, but unfortunately, I didn't explain the WHOLE situation:
I need to rewrite:
blog.domainname.com/archives/YYYY/MM/postname/
and
www.blog.domainname.com/archives/YYYY/MM/postname/
to
www.domainname.com/blog/postname/
Thanks in advance!
IoC Frameworks just make DI much easier, but it's not only DI that they do, they provide a host of other benefits over and above DI.
I saw this comment in one of the answers to a question about DI and IoC. Can someone explain this in some more details? What are other benefits of IoC?
hi i am very surpise when somebody post question everybody are saying it is homework please show us your effort now i have done this code http://stackoverflow.com/questions/2902781/priority-queue-implementation question is is this implementation correct? and nobody tell me answer also this one http://stackoverflow.com/questions/2896811/question-about-siftdown-operation-on-heap-closed can anybody explain me what is happened?no one answer me
why?