10-20-2006
what exactly is it do you need? a better salary or a chance to improve your skills? less travel or a chance to build more Unix experience? when you figure out what you need, the answer to your question would come easier ...
like they say ...
how can you solve the problem if you don't know what it is?
10 More Discussions You Might Find Interesting
1. SuSE
Hi all,
I am using SLES 9 and have following partitions mounted
I would like to make /var 10G atleast.
fdisk -l
This system is doing RAID5(HW).
Can someone help me with this issue?
Thanks (4 Replies)
Discussion started by: upengan78
4 Replies
2. Solaris
Hi, how to grow a filesystem when the 2 disks are mirrored using hardware RAID? Only 100G out of 136G is used for now.
I would like to increase one of the slices by adding the 36G of space.
Pls assist. I only know of using growfs on mirrored disks using SVM.(soft mirror) (12 Replies)
Discussion started by: incredible
12 Replies
3. Solaris
Hi,
this is solaris 10 on sparc sf280r, 2 disks mirrored using SVM,
swap is 4GB (slice 1) and rest all is given for / (slice0) in 36G disk.
I have already mirrored disks using SVM, for clear picture, I'm pasting some part of config below,
# Slice 0
metainit -f d110 1 1 c1t0d0s0... (2 Replies)
Discussion started by: upengan78
2 Replies
4. UNIX for Dummies Questions & Answers
I have a 146Gb drive and want to grow the size from 12G to the max available left. I think 20G is being used so I want to max out from 12 G to 126G. Is this possible? Can you help with the command.
root@WRPDWI6k-BU # df -h
Filesystem size used avail... (3 Replies)
Discussion started by: udubya
3 Replies
5. AIX
Hi,
I have an iSCSI LUN attached to an AIX 5.3 box. It's initial size is 250GB, I just grew it on the SAN to 300GB, but AIX is not seeing the change. Right now I have some processes going and it's eating up the disk space. I need to grow this lun by atleast 30GB otherwise the process with bomb... (5 Replies)
Discussion started by: bbbngowc
5 Replies
6. Virtualization and Cloud Computing
This process was collected by trial and error (mostly error) since most of the documents I found on the 'net were incomplete.
The cookbook/walkthrough on how to grow an Array on EBS at AWS...
# walkthrough by John Jones (jjones at cirrhus9 dot com)
umount /dev/md0
mdadm --stop /dev/md0... (0 Replies)
Discussion started by: Habitual
0 Replies
7. Solaris
Dear Gurus of Unix.
When I Put this command:
# iostat -E
cmdk0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: SAMSUNG SV4012H Revision: Serial No: 0540J1BTC53208 Size: 40.06GB <40060403712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal... (6 Replies)
Discussion started by: andresguillen
6 Replies
8. Solaris
Hi, I need to expand a ZFS volume from 500GB to 800GB. I'd like to ask your help to confirm the following procedure:
Can I do it on the fly without bothering the users working on this volume?
Thank you in advance! (6 Replies)
Discussion started by: aixlover
6 Replies
9. Solaris
Dear Solaris Experts,
I had a Problem with swap consumption in our Production server.
I found error message in /var/adm/message:
Aug 1 10:55:40 production genunix: WARNING: Sorry, no swap space to grow stack for pid 29716 (oracle)
What should I do for temporary solution? I need no... (4 Replies)
Discussion started by: edydsuranta
4 Replies
10. Solaris
Hi
I have the following file system, that needs to be expanded to more 500Gb, so a total of 1Tb:
df -h /oradata1
Filesystem Size Used Available Capacity Mounted on
oradata1 587G 517G 69G 89% /oradata1
I am not familiar with zfs, I am more... (17 Replies)
Discussion started by: fretagi
17 Replies
LEARN ABOUT PHP
easter_date
EASTER_DATE(3) 1 EASTER_DATE(3)
easter_date - Get Unix timestamp for midnight on Easter of a given year
SYNOPSIS
int easter_date ([int $year = date("Y")])
DESCRIPTION
Returns the Unix timestamp corresponding to midnight on Easter of the given year.
Warning
This function will generate a warning if the year is outside of the range for Unix timestamps (i.e. before 1970 or after 2037).
The date of Easter Day was defined by the Council of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the
Spring Equinox. The Equinox is assumed to always fall on 21st March, so the calculation reduces to determining the date of the full moon
and the date of the following Sunday. The algorithm used here was introduced around the year 532 by Dionysius Exiguus. Under the Julian
Calendar (for years before 1753) a simple 19-year cycle is used to track the phases of the Moon. Under the Gregorian Calendar (for years
after 1753 - devised by Clavius and Lilius, and introduced by Pope Gregory XIII in October 1582, and into Britain and its then colonies in
September 1752) two correction factors are added to make the cycle more accurate.
PARAMETERS
o $year
- The year as a number between 1970 an 2037. If omitted, defaults to the current year according to the local time.
RETURN VALUES
The easter date as a unix timestamp.
EXAMPLES
Example #1
easter_date(3) example
<?php
echo date("M-d-Y", easter_date(1999)); // Apr-04-1999
echo date("M-d-Y", easter_date(2000)); // Apr-23-2000
echo date("M-d-Y", easter_date(2001)); // Apr-15-2001
?>
NOTES
Note
easter_date(3) relies on your system's C library time functions, rather than using PHP's internal date and time functions. As a con-
sequence, easter_date(3) uses the TZ environment variable to determine the time zone it should operate in, rather than using PHP's
default time zone, which may result in unexpected behaviour when using this function in conjunction with other date functions in
PHP.
As a workaround, you can use the easter_days(3) with DateTime and DateInterval to calculate the start of Easter in your PHP time
zone as follows:
<?php
function get_easter_datetime($year) {
$base = new DateTime("$year-03-21");
$days = easter_days($year);
return $base->add(new DateInterval("P{$days}D"));
}
foreach (range(2012, 2015) as $year) {
printf("Easter in %d is on %s
",
$year,
get_easter_datetime($year)->format('F j'));
}
?>
The above example will output:
Easter in 2012 is on April 8
Easter in 2013 is on March 31
Easter in 2014 is on April 20
Easter in 2015 is on April 5
SEE ALSO
easter_days(3) for calculating Easter before 1970 or after 2037 .
PHP Documentation Group EASTER_DATE(3)