Python “time” Module

October 28, 2009
>>> import time
>>> now = time.strftime("%Y-%m-%d %H:%M:%S")
>>> now
'2009-10-28 14:10:52'
>>> tup = time.strptime(now, "%Y-%m-%d %H:%M:%S")
>>> tup
(2009, 10, 28, 14, 10, 52, 2, 301, -1)
>>> unix = time.mktime(tup)
>>> unix
1256710252.0
>>> tup2 = time.gmtime(unix)
>>> tup2 == tup
False
>>> tup
(2009, 10, 28, 14, 10, 52, 2, 301, -1)
>>> tup2
(2009, 10, 28, 6, 10, 52, 2, 301, 0)
>>> time.strftime("%Y-%m-%d %H:%M:%S", tup)
'2009-10-28 06:10:52'
>>> time.strftime("%Y-%m-%d %H:%M:%S", tup2)
'2009-10-28 06:10:52'

Advanced Global Personality Test Results

September 17, 2009
Advanced Global Personality Test Results

Extraversion |||||||||||||| 56%
Stability |||||||||||||||| 63%
Orderliness |||||||||||| 50%
Accommodation |||||||||||||| 56%
Intellectual |||||||||||||| 60%
Interdependence |||||||||||||||| 70%
Mystical |||||||||||||||| 70%
Materialism |||||||||||| 50%
Narcissism |||||||||||| 50%
Adventurousness |||||||||| 40%
Work ethic |||||||||||||| 60%
Conflictseeking |||||||||||||||| 70%
Need to dominate |||||||||||||| 60%
Romantic |||||||||||| 50%
Avoidant |||||||||||||||||| 80%
Anti-authority |||||||||||| 50%
Wealth |||||||||||||||| 70%
Dependency || 10%
Change averse |||||||||| 40%
Cautiousness |||||||||| 40%
Individuality |||||||||||| 50%
Sexuality |||||||||||| 50%
Peter pancomplex |||||| 30%
Histrionic || 10%
Vanity |||||||||| 40%
Artistic |||||||||||||||| 70%
Hedonism |||||||||||| 50%
Physicalfitness |||||| 30%
Religious |||||||||||||||||||| 90%
Paranoia |||||||||||||| 60%
Hypersensitivity |||||||||||||||| 63%
Indie |||||||||||| 50%

Take Free Advanced Global Personality Test
personality test by similarminds.com


UZZAP Feedback Anyone?

July 7, 2009

You may conatact “Liezel” via email at temp.fcguarin@smart.com.ph or send sms or call +639286949950.

Thank You!


ASCII Art in UZZAP

July 7, 2009

Check this out guys!

The Art of Uzzap by “argien”

Screenshot:

nice 1!

nice 1!


April 25, 2009

“Eric” – A Tribute to you Kuya…

I play a nocturne but the pain doesn’t go away…
The words are broken with so much I want to say
Every time I feel alone
I just look up in the sky and see you smiling down on me
Thoughts of you make me feel better even if I cry… even if I cry…

You are a hero and I will not mourn how you died
You are a hero and I will celebrate your life
No sweeter way to go than when you laid down your life for love
Take mine with you… See you at the crossroads… See you at the crossroads…

I want to be home with you just a little longer
To appreciate those times then I will be stronger,
Stronger as I believe in God’s will
In his time, we will surely heal…
Thoughts of you make me feel better even if I cry…

You are a hero and I watched you transcend into light…
You are a hero and I couldn’t stop you, when you gave your life…
And from every heart touched, from every life moved in one or another..
We send, we send our love…


Mr. and Ms. UZZAP Clans – CYOPS’ Choice Award

April 15, 2009

Here guys, as promised. Congratulations to FSD hate girl and RIP Toby.


I Support PROJECTOFURAGAMA

February 3, 2009

This is the YouTube account of my colleagues in Heraldo Filipino (DLSU-D’s Official Publication), Jheck Cogama and Jake Ofrasio. They excel in film making, photography and everything ART. They have always brought me much inspiration in this field and I would like to share their wonderful works with others.

So far, they only have 2 short films uploaded, 1 in which I’m in. I star as Paraluman in Jake’s “Paraluman”. Although they are embedded here, I prefer if people go visit their site, comment or favorite. Just click on the links. :D

Paraluman
is "a film about discovering things…and finding out there not what you think they are."

Scythe
is an award-winning film with the synopsis: "Man’s perception about Life after death".


UZZAP CHATROOMS

November 27, 2008

I am quite amazed by the COMMUNITY BUILDING activities the Uzzap Chatters have been conducting. It is evident with the UZZAP Clans that have been established by these people. Most clans make themselves known by flooding. (X_+) and apparently, since they would mostly abide when a moderator tells them so, they have earned the UZZAP Showdown Rooms where they can exhibit their flood art. The most popular clans are:

  • Shadows
  • - I think they specialize in dancing text art.

  • R.!.P
  • - They invented SYNCHRONIZED flooding with color schemes. (Link to R.!.P Friendster Account)

  • [BOMB]/Bombards
  • - The first UZZAP Clan ever. Their flood is systematic as well and I guess they specialize in firepower related text arts. :D (Link to BOMBS Friendster Account)

  • KFU
  • - Bunch of nice people. Their flood look like some tribal patterns. (Link to their KFU Multipy account)

  • H20
  • - They kinda do some synchronized flooding (not so original) but what I like about them is that their names are always Clan-name related (Ex: Drift, Drip, Aqua, Hydrone, Ice, Flow, Rain, Splash). Apparently they don’t shut up in the presence of moderators and sadly, they get banned often.

  • CFA
  • - Most people describe them as “magulo” which means “sloppy”. I kinda agree. But most of them are nice and welcoming and they also produce some good stuff. (Link to CFA Friendster Account)

  • 4th Bat
  • - These people are the best-mannered. :D They have a thing for text LINE ART. (Link to 4th Bat Friendster Account)

And of course, we have the….

HERE ARE SAMPLE TEXT ARTS:


Deviations

September 8, 2008

Visit my online art gallery at Deviant Art

Here are some thumbnails of my works:

Note: These images are COPYRIGHT protected and are officially submitted to DeviantArt.com


Dates in PHP (Tomorrow, Yesterday, Today of a Given Date)

August 1, 2008

<?php
echo “<h4>Date Yesterday</h4>”;
$yesterday = date(“Y-m-d”, time()-86400);
echo $yesterday;

echo “<h4>Date Today</h4>”;
echo date(“Y-m-d”);

echo “<h4>Date Tomorrow</h4>”;
$tomorrow = date(“Y-m-d”, time()+86400);
echo $tomorrow;

echo “<hr>”;
echo “<h4>Previous Date from User-defined Date</h4>”;

$gdate = “2008-07-11″;
echo “(” . $gdate . ” supplied.) <br>”;
$dt = strtotime($gdate);
echo date(“Y-m-d”, $dt-86400);

echo “<h4>Next Date from User-defined Date</h4>”;
echo “(” . $gdate . ” supplied.) <br>”;
$dt = strtotime($gdate);
echo date(“Y-m-d”, $dt+86400);

// DAYS IN BETWEEN TWO DATES

function days_in_between($s, $e){
$d = array();
$s = strtotime($s);
$e = strtotime($e);
for($n=$s; $n<=$e; $n=$n+86400){
array_push($d, strftime(“%Y-%m-%d”, $n));
}
return $d;

}

?>