06-13-2010
Depends on the projects.
For Now: Walking = 30 minutes, Riding motorbike = 10 minutes.
Mostly walking.
7 More Discussions You Might Find Interesting
1. Programming
I have a program written in C on HP-UX 11i. The program is as
below ...
long long a;
a = 12345678987654321;
printf ("%lld",a);
I compile the code using cc compiler on HP-UX using
-Ae +DD32 option as i want it to create a 32-bit binary.
But the... (1 Reply)
Discussion started by: Shobhit
1 Replies
2. Post Here to Contact Site Administrators and Moderators
Greetings,
I'm relatively new-comer to these forums and have a Q to the mods. Just wondering what's the policy regarding the long running threads where they tend to go say over 30 posts and they become "troubleshooting" threads rather than being "educational" and/or "hinting" threads?
... (4 Replies)
Discussion started by: vgersh99
4 Replies
3. UNIX for Advanced & Expert Users
I have a long string in ASCII file of approx 60k bytes file size.
I need to know
1.How many charcters are adjectly in string.
export MAX_COL_SIZE=`awk "length>max{max=length}END{print max}" test.txt`
this return file cann't open...can anyone advice why??
2. How many 'TRX consist in my... (1 Reply)
Discussion started by: u263066
1 Replies
4. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
5. IP Networking
I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
Discussion started by: NC user
0 Replies
6. Shell Programming and Scripting
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
7. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
PREV(3) 1 PREV(3)
prev - Rewind the internal array pointer
SYNOPSIS
mixed prev (array &$array)
DESCRIPTION
Rewind the internal array pointer.
prev(3) behaves just like next(3), except it rewinds the internal array pointer one place instead of advancing it.
PARAMETERS
o $array
- The input array.
RETURN VALUES
Returns the array value in the previous place that's pointed to by the internal array pointer, or FALSE if there are no more elements.
EXAMPLES
Example #1
Example use of prev(3) and friends
<?php
$transport = array('foot', 'bike', 'car', 'plane');
$mode = current($transport); // $mode = 'foot';
$mode = next($transport); // $mode = 'bike';
$mode = next($transport); // $mode = 'car';
$mode = prev($transport); // $mode = 'bike';
$mode = end($transport); // $mode = 'plane';
?>
NOTES
Warning
This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. Please read the section on
Booleans for more information. Use the === operator for testing the return value of this function.
Note
You won't be able to distinguish the beginning of an array from a boolean FALSE element. To properly traverse an array which may
contain FALSE elements, see the each(3) function.
SEE ALSO
current(3), end(3), next(3), reset(3), each(3).
PHP Documentation Group PREV(3)