Archive | January 2010

Charles Schultz Philosophy

The following is the philosophy of Charles Schultz, the creator of the “Peanuts” comic strip. You don’t have to actually answer the questions. Just read it straight through, and you’ll get the point.

  1. Name the five wealthiest people in the world.
  2. Name the last five Heisman trophy winners.
  3. Name the last five winners of the Miss America.
  4. Name ten people who have won the Nobel or Pulitzer Prize.
  5. Name the last half dozen Academy Award winners for best actor and actress.
  6. Name the last decade’s worth of World Series winners.

How did you do?

The point is, none of us remember the headliners of yesterday. These are no second-rate achievers. They are the best in their fields. But the applause dies. Awards tarnish. Achievements are forgotten. Accolades and certificates are buried with their owners.

Here’s another quiz. See how you do on this one:

  1. List a few teachers who aided your journey through school.
  2. Name three friends who have helped you through a difficult time.
  3. Name five people who have taught you something worthwhile.
  4. Think of a few people who have made you feel appreciated and special.
  5. Think of five people you enjoy spending time with.

Easier?

The lesson:
The people who make a difference in your life are not the ones with the most credentials, the most money, or the most awards. They are the ones that care.

Advertisements

Solaris10 Network Interface on vmware

If you are using vmware to install your Solaris 10 x86 operating system, the network interface sometimes doesn’t up automatically. You need to check if there is a vmware network interface on your system. You can issue this command:
# grep -i net /etc/path_to_inst
"/pci@0,0/pci1022,2000@11" 0 "vmxnet"
# dladm show-dev
vmxnet0 link: unknown speed: 0 Mbps duplex: unknown

You should’ve found vmxnet network interface. Issue this command to bring this interface up:
# ifconfig vmxnet0 plumb

Use this command to set ip for this interface:
ifconfig vmxnet 192.168.1.1 netmask 255.255.255.0

Drupal Search Box CSS example


form input[type="submit"] {
background: url(images/btn-bg.gif) no-repeat;
font: bold 12px Arial, Helvetica, sans-serif;
color: #FFFFFF;
border: none;
float:none;
width: 144px;
height: 28px;
cursor: pointer;
}
/*search form */
#search-theme-form {
margin: 12px 0 0 0;
padding: 0 0 0 0;
}
#search-theme-form input[type="text"] {
width: 135px;
height: 21px;
padding: 2px 5px 1px 5px;
border: 1px solid #bed881;
background: #fff;
margin: 0 0 0 0;
color: #000000;
font-weight: normal;
}
#search-theme-form input[type="submit"] {
background: url(images/search-btn-bg.gif) no-repeat;
border: none;
margin: 0 0 0 0;
width: 67px;
height: 26px;
/*vertical-align: middle;*/
float: none;
}

CSS – Background Transparency

div#links {
background-color: #CCCCFF; /* pale weak blue */
border: solid 1px #000066; /* obscure dull blue */
opacity: 0.65;
}

backup rman to another directory

run
{
backup
incremental level 0
tag database_231109
format ‘/archives/archives_01/df_d%d_p%p_u%u_c%c’
(database); }

Jay Chou – Cai Hong

C Dm7 Em Dm7 C Dm7 G

C Dm7 Em Dm7
哪裡有彩虹告訴我
Na li you cai hong gao su wo
Tell me, where can I find rainbows?

C E Am Am/G
能不能把我的願望還給我
Neng bu neng ba wo de yuan wang huan gei wo
Can you return my wish back to me?

F G Em Am7
為什麼天這麼安靜
Wei shen me tian zhe mo an jing
Why is the sky still so calm?

Dm9 Gsus4 G
所有的雲都跑到我這裡
Suo you de yun dou bao dao wo zhe li
All the clouds have amassed above me
Read More…

Add Superfish drop down menu for Drupal 6 Theme

If you want Your Drupal theme to have some nice drop down menu, you can use Superfish. I’ll explain how to install it on your Drupal themes.

  1. Download Superfish from here.
    This zip file contain superfish javascript, css, and image. extract it to your theme folder. Create folder sf inside your theme directory and extract this file there.
  2. Edit yourtheme.info files.
    Add superfish javascript and css (optional) to your .info file. If you already have your own css for the drop down menu, you may not add the superfish css to you .info file.
    stylesheets[all][] = sf/css/superfish.css
    stylesheets[all][] = sf/css/theme.css
    scripts[] = sf/js/superfish.js

    If you want your superfish menu different from your Primary links, you can add this line in your .info file.
    regions[superfish_menu] = Superfish Menu
  3. If you want to use superfish for you primary links, you can add these lines to your template.php file.
    function phptemplate_preprocess_page(&$vars) {
    $vars['primary_menu'] = menu_tree(variable_get('menu_primary_links_source', 'primary-links'));
    $vars['secondary_menu'] = theme('links', $vars['secondary_links'], array('class' => 'links secondary-links'));
    }

    This function will load primary links tree to var primary_menu. You will use this primary_menu instead of primary_links in your page.tpl.php file.
    If you use superfish for diferent menu, you may not add this function. Read More…