FIreHAzaR:-D CRiB

This is not a blog. This is my diary.

Current Posts

  1. drupal scripts for development

    Commands to switch to environment

    • Disable cache

      drush vset cache 0
      drush vset preprocess_css 0
      drush vset preprocess_js 0
      

      Source: stackoverflow.com.

    Database management commands

    • Backup database

      drush -v sql-dump --gzip --ordered-dump --result-file=/PATH/DUMPHERE.sql
    • Restore database from backup

      1. First nuke the database table.

        drush -v sql-drop
      2. Import our backup.

        gunzip -c /PATH/DUMPHERE.sql.gz | mysql -hHOST -uUSER -pPASSWORD DATABASE

    Labels: , ,

  2. New project named Marcopolo, a waterworld amusement park.

    It's just the front-page

    I have with me a JPEG! Yay! Considering how dumb I am when it comes to design.

    All I have to do now is copy the structure with some CSS magic, make rooms for the flaws. Peace of cake!

    Read more »

    Labels: ,

  3. Client-Biodata simple custom module

    Why?

    This is the module I made when applying to sapua.com (for pre-interview test), gave me the use case and design for my first custom module.

    I'll post it's description later. Too sleepy right now.

    Well, I was going to post the images related to the requirements, then again, that might raise privacy issue since those came with an email that was sent to my personal mail.

    Anyway, this is the summary:

    • Create 3 menus, and show them in "navigation" menu block.
    • 1st menu exposes a form, where you can input name, place and date of birth.
    • Birth-place uses radio buttons with predefined options.
    • Birth-date will popup calendar select dialog.
    • 2nd menu display a table of name and age.
    • 3rd menu shows a pie chart, where you can see information of how many was born in what place.
    • The following contributed modules were advised:
      • Examples
      • CCK
      • Views
      • Chart
      • Views_customfield

    Err, forgot to mention that this is for Drupal 6, by request.

    Read more »

    Labels: ,

  4. The first step, the source of knowledge

    I made a fresh new blog here in tumblr.com blogspot.com and just use it to write my diary, the progress I've gone through while learning Drupal.

    This way, I can read back all the modifications I made to Drupal, the reasons they were taken, and repeat that process someplace else.

    Soo.. The story is.. the very first step I took was to join #drupal and #drupal-support (they are IRC channels on irc.freenode.net).

    Read more »

    Labels: ,