Tuesday, September 25, 2012

Gangnam Style In The Rain

Don't wait for the storm to pass. Learn to dance in the rain.




The problem with me dancing in the rain is that I have two left feet.

So yeah, it will take a while.

Please be patient with me.

Thursday, September 13, 2012

Happy 256th!

It's the 256th day of the year and I spent all day coding. I mean, not really. No one does that!


Anyway, I spent this day getting rid of the hang of jquery and jquery-ui, and then integrating them into my Drupal test site. OMG. It is very daunting especially when the codes are written in a single line. WHAT HAPPENED TO USING NEW LINES AND INDENTION? I find it hard also to test but thank god for Firebug. Sometimes I can't make something work and then eventually it would turn out to be just some noob mistake.


$("#kat").hide(); ...in shame. WHEW.





Anyway, HAPPY PROGRAMMER'S DAY!


Hug your favorite developer. Hug me. #LOL

If only I have so much time to write but then again I am a busy person. If you're a programmer like me, grab another coffee and get back to work. Those bugs are not going away unless you fix them.

Tuesday, September 11, 2012

Lakers Reloaded

I'm so excited for the Lakers this season. :D

So they have a new broadcasting partner,Time Warner Cable. I read somewhere that they will be making two exclusive Lakers channels for the next coming seasons. The bad news is I'm from the Philippines and I can only watch on BTV via Sky Cable. Anyway, here's a sneak peak at their new TV graphics:



I know. It looks so awesome and it makes me feel terrible that I'm living in the Philippines. LOL. It reminds me of NBA 2K's graphics.


The Lakers also added assistant coaches Eddie Jordan, Bernie Bickerstaff and Steve Clifford to Mike Brown's coaching staff. I can't write anything about them because I don't really know them. You can check this out for more info: NEW ASSISTANT COACHES


So aside from the coaches, of course, the Lakers upgraded their roster. Here's the new lineup.









































































































































































2012-13 Roster
NumPlayerPosDOBPrior to NBA/CountryYrs
5Steve BlakeG2/26/1980Maryland/USA9
24Kobe BryantG8/23/1978Lower Merion HS (PA)/USA16
6Earl ClarkF1/17/1988Louisville/USA3
21Chris DuhonG8/31/1982Duke/USA8
3Devin EbanksF10/28/1989West Virginia/USA2
16Pau GasolF-C7/6/1980FC Barcelona/Spain11
0Andrew GoudelockG12/7/1988Charleston (SC)/USA1
27Jordan HillC7/27/1987Arizona/USA3
12Dwight HowardC12/8/1985SW Atlanta Christian Academy (GA)/USA8
4Antawn JamisonF6/12/1976North Carolina/USA14
7Darius Johnson-OdomG9/28/1989Marquette/USAR
20Jodie MeeksG8/21/1987Kentucky/USA3
1Darius MorrisG1/3/1991Michigan/USA1
14Troy Murphy (FA)F-C5/2/1980Notre Dame/USA11
10Steve NashG2/7/1974Santa Clara/Canada16
Reeves NelsonF9/18/1991UCLA/USAR
50Robert SacreC6/6/1989Gonzaga/CanadaR
Greg SomogyiC10/1/1989California-Santa Barbara/HungaryR
15Metta World PeaceF11/13/1979St. John's/USA13

I just hope Mike Brown won't mess this up!

Wednesday, September 5, 2012

DO NOT BE SAD

I'm sad but I can't be sad. I want to rant but my default rant absorber doesn't accept bookings today.

I even googled "i want to rant" and this is what i found: www.yourrant.com HAHA! Well, it needs registration and shit so I didn't bother signing up anymore.

Anyway, my brain is just not working hard enough. Scumbag brain is not cooperating!


This Drupal thing is making me look stupid. I hate following thorough instructions. I can't explore enough. There's just so many things to know with so little time. I mean, new terms, new concepts, new software package!

Frustration is kicking in. As usual.

Saturday, September 1, 2012

Backup

fdsgdsgdsgs

[sourcecode language="css" wraplines="false" collapse="false"]

]

#!/bin/bash


###################################

# This script makes a tar of the moodledata


[/sourcecode]

 [sourcecode language="bash"][/sourcecode]



#!/bin/bash


###################################

# This script makes a tar of the moodledata

# backup and then uses rsycn to backup

# the working moodledata copy in the

# moodle instance server.

###################################


BACKUP_DEST="/home/mkepadilla/test/"

BACKUP_DIR="backup/"

BACKUP_HOST="10.11.4.158"

BACKUP_USER="mkepadilla"

BACKUP_PASS="MDSc.45p"


SRC_DIR="dummy_moodle_data/"

SRC_PATH="/var/www/"

#SRC_HOST="10.11.4.119"

#SRC_USER="ps_web"

SRC_PASS="MDSc.45p"


# compress the backup in the remote server

ssh $BACKUP_USER@$BACKUP_HOST tar -Pzcvf backup$(date +"%m%d%Y%H%M%S").tar.gz $BACKUP_DEST$BACKUP_DIR


# Check if successful: 0 - no error

if [[ $? -eq 0 ]]

then

    # Update your backup with the changes

    rsync -auvtz --delete -e ssh $SRC_PATH$SRC_DIR $BACKUP_USER@$BACKUP_HOST:$BACKUP_DEST$BACKUP_DIR

    if [[ $? -eq 0 ]]

    then

        echo "DONE. Status OK."

    else

        echo "Backup was not performed. rsync command failed." | mail -s "Daily backup failed." mkpadilla@chikka.com

        exit 1

    fi

else

    echo -e "Backup was not performed. tar command failed." | mail -s "Daily backup failed." mkpadilla@chikka.com

fi


# end


 [sourcecode][/sourcecode]

fhdfhdhdf