FIreHAzaR:-D CRiB

This is not a blog. This is my diary.

Current Posts

  1. Apache configuration to support @font-face

    In apache.conf:

    
    AddType application/vnd.ms-fontobject .eot
    AddType font/ttf .ttf
    AddType font/otf .otf
    
    <FilesMatch "\.(ttf|otf|eot)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>
    

    Labels: ,

  2. Nginx configuration to support @font-face

    Nginx has to be compiled with http://wiki.nginx.org/NginxHttpHeadersModule. Then you can do this:

    
    server {
      location ~* \.(eot|ttf|woff)$ {
        add_header Access-Control-Allow-Origin *;
      }
    }
    

    Or inside virtual host location use:

    
    location {
      if ($request_filename ~* ^.?/([^/]?)$) {
        set $filename $1; 
      }
    
      if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$) {
        add_header Access-Control-Allow-Origin *;
      }
    }
    

    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: ,