a
Past Obsessions
- October 2009 (1)
- August 2009 (1)
- July 2009 (1)
- June 2009 (1)
- April 2009 (3)
- December 2008 (6)
- November 2008 (2)
- October 2008 (6)
- September 2008 (1)
- July 2008 (1)
- June 2008 (4)
- April 2008 (1)
- March 2008 (1)
- February 2008 (3)
- January 2008 (11)
- November 2007 (3)
- July 2007 (9)
- June 2007 (6)
- May 2007 (3)
- April 2007 (2)
- February 2007 (1)
- January 2007 (6)
- December 2006 (7)
-
Obsessions critique
alabdia on Win a fantastic Canon EOS-1Ds … ekse on Good luck with launching of Ma… John33 on I love my iMac! Barbara44 on I love my iMac! thomas on The dark awakening…
Ok, it is time for the round 3, Extreme Makeover! Well, when it comes to makeovers for me it is a time to let myself go wild and free… I guess it all depends on the personality! So I went wild and free on Photoshop and this is what I ended up with! It took me two days contemplating for ideas and a day and a night to complete the artwork! With hundreds of layers things got really slow! To save, each time, it took nearly 3 minutes and about 5-7 minutes to do intensive effects, even a simple re-size!
Anyways I really did enjoyed creating it, so it is now your turn to enjoy it!
I have voted in the second round of the election 2008! For who, is not much of a big secret… Next is the worst part, I hate waiting… But we have to wait until one wins, to check the result live visit here… So while waiting why not participate and/or cast your vote on Crestock Photoshop Competition too, a competition to show off your creativity and Photoshop skills, among the many out in the net! Thou I have missed a couple of entries more or less I do participate in this competition every year! What for? It is fun and exciting!
The first round was about US Election 2008, a propagenda poster, it is over and here is the one that I came up with! Click to enlarge!
If you are a photoshop dude or dudy and have some time to kill, head your way to 2008 competition. The first round is over, but you can register and enter the 2nd, 3rd & 4th round. While you are there remember to cast your votes!
Note: This post is time sensitive…
Another function that you can use to find the duration of any given two times. If you know PHP you can modify this further to include years, days & months (if you need help let me know!). But right now it will only say the time differences of two inputted times, which is actually what I need for now!
function duration($start,$end){
$tmp_e = explode(“:”,$end);
$tmp_s = explode(“:”,$start);
$start_time = mktime($tmp_s[0],$tmp_s[1],$tmp_s[2],8,8,8);
$end_time = mktime($tmp_e[0],$tmp_e[1],$tmp_e[2],8,8,8);
$durationt = $end_time-$start_time;
$hrs = intval(floor($durationt/3600));
$min = intval(floor($durationt/60))-($hrs*60);
if($hrs<>0){
$rval = $hrs.’ hr’;
}
if($min<>0){
if($hrs<>0){
$rval .= ‘ & ‘.$min.’ min’;
} else {
$rval = $min.’ min’;
}
}
return $rval;
}
How to use it:
$timeOne =’12:31′;
$timeTwo = ‘15:43′;
echo duration($timeOne,$timeTwo); //output: 3 hours & 12 min
When dealing with weeks, one problem that I face is the difference in week start day! For us the week start with Saturday but for the most parts in the rest of the world the week start with Sunday or Monday! So in PHP calculations and queries related with weeks, it is important to find the previous Saturday of a given day in a week! The following function will tell you the Saturday of any week, provided you give it any day within the week.
<?php
function wksaturday($day) //input format: d/m/yyyy
{
$tmp = explode(“/”,$day);
$dateob = mktime(0,0,0,$tmp[1],$tmp[0],$tmp[2]);
$toadd = -1-(date(‘w’,$dateob));
if($toadd<=-7){
$toadd += 7;
}
$dadate = mktime(0,0,0,$tmp[1],$tmp[0]+($toadd),$tmp[2]);
return date(‘d/m/Y’,$dadate);
}
?>
How to use it:
<?php
$mydate =’24/12/2008′;
echo “saturday: “.wksaturday($mydate); //output saturday: 20/12/2008
?>








