I Have to calculate date time difference how to do that in PHP.
I need exact hours , mins and secs. any body have the scripts for that please give me :-P
Hi,
I have the following function:
function update(e:Event):void
{
var val:Number = Math.random() * 120;
rgb.r.x = rgb.r.y = val;
rgb.b.x = rgb.b.y = -val;
}
And im looping it with:
stage.addEventListener(Event.ENTER_FRAME, update);
But what I need to do would be something like:
Random number between 1 and 20
If the number is > 10
Call function Update
and keep caling it for 20 seconds
else
do nothing for 10 seconds
Repeat this block of code forever
Can someone help me write this please?
This is my approach : I reserve last time that a user post a postback to server in a session and in every postback subtract this value from current value. Is there a better way for this? I think that my approach haven't a good performance.
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 am using sleep function in ansi-c that gives a resolution up-to milliseconds but not exactly i faced uncertain delays, people suggest me to use windows media timer,
i want to know the comparison between both is they enough reliable to use in real time system or to use some thing else,
thanx in Advance.
Hello,
I have written a webservice which is taking URL as an input and producing a JSON respone. My problem is that now I have list of 1000 URLs and want to execute maximum threads of Webapplications to get output. Like I want to execute 100 instances of webservice at a time to get response.Please can anybody give some guidance how can I do it using java.
Thank you in advance
I am busy preparing for exams, just doing some old exam papers. The question below is the only one I can't seem to do (I don't really know where to start). Any help would be appreciated greatly.
Use the O(nlogn) comparison sort bound, the theta(n) bound for bottom-up heap construction, and the order complexity if insertion sort to show that the worst-case number of inversions in a heap is O(nlogn).
I want to have a movie start the first time my app is launched to train users on its use, say a 50 second clip.
How would I go about doing this in an iPad app?
We need to INSERT 2000 records into SQL DB from C# .Net code.
For this is there any way to INSERT all 2000 records at a time instead of executing the INSERT query for each record.
Also how would be the performance impact of doing this?
Thanks & Regards
Padma
Hi guys. I need to get the last modification time of a Contact:
I try to use ContactsContract.Contacts.CONTACT_STATUS_TIMESTAMP, but in my emulator
it always returns 0. Any hint? Thanks, bye.
hi ,
i have 2 fields called Timefrom and TimeUntill the duration is calculated in TimeSpent.
The colonne timeFrom is like the followine: 10:00:00
the colonne timeUntill is like the following: 12:00:00
the time spent colonne has the value: 02:00:00.
My goal is to calculate the sum of timeSpent.
PLease help.
Question for indie Mac developers out there:
How do I implement a 30-day time trial in a non-evil fashion? Putting a counter in the prefs is not an option, since wiping prefs once a month is not a problem for an average user. Putting the counter in a hidden file somewhere sounds a bit dodgy - as a user I hate when apps sprinkle my hard drive with random files. Any ideas?
I need to round times down to the nearest quarter hour in PHP. The times are being pulled from a MySQL database from a datetime column and formatted like 2010-03-18 10:50:00.
Example:
10:50 needs to be 10:45
1:12 needs to be 1:00
3:28 needs to be 3:15
etc.
I'm assuming floor() is involved but not sure how to go about it.
Thanks
Hi,
I have two functions in C:
function1(){
// do something
}
function2(){
// do something while doing that
}
How would i run these two at the exact same time?
If possible, please provide an example!
At phpro.org and other sites there is a tutorial, "Dynamic Date Time Dropdown List". How does one get the $_POST variables for insertion into a mysql database? Thanks in advance for any and all assistance.
Hi, I am trying to make 2 functions run at the same time.
def func1():
print 'Working'
def func2():
print 'Working'
func1()
func2()
Does anyone know how to do this?
hi every one,
RDBMS: mysql
colonne names: Timefrom,timeuntill, timespent as the following
type of the colonnes:Time.
timefrom timeuntill timespent
10:00:00 12:00:00 02:00:00
08:00:00 09:00:00 01:00:00
how could i get the sum of the timespent.
like this example it would be 03:00:00.
when doing select sum(timespent) from mytable it display: 030000.
please help. thanks.