This is the Sunday

Well, I almost forgotten how I spend my Sunday after starting out my own small business. All the time, it is just work, work, work and more work. Even until today, I still scheduling and working on the weekend, just so I don’t have the “last-minute” task.

This weekend is different. On Saturday, I spend sometimes with my wife alone somewhere, then met up with her brother who now studying in Cyberjaya.

Today, I stopped down again. Spend a good amount of time chatting and do some planning with friends. At home, housemate and I together work on cleaning the house, he changed the whole house water filter, I cook. Dinner and off for a rest.

Stop

It always come to my mind that I need to stop down and see what’s around me. Back at home, I almost forgotten my mother existence; here I almost take my wife as an invisible woman and on and on. My focus is on wrong thing from time to time.

Making it up is good, but not a perfect solution though. That’s why I work on a system for my own. So I won’t miss too much colours before my legs are straight.

The video addiction again

Gosh… I must have done something really stupid this few days. I thought the target is near so I slow down quite a lot, or maybe too much :P Beside hanging around the mall in weekday (No crowd :D ), I’m also addicted to video.

The addiction is quite high here. I spend a few hour sitting there watching the list (Thanks God for the 4mbps connection here) while learning how to remove blackheads from my wife.

This is bad.

These are entertainment that I shouldn’t have invest too much of my time on this :P

Well, anyway, going to work again now. There is just one never-ending job that I want it to end this month, another one next month, hopefully. So let’s pray again!

I can do all things through Christ who strengthens me.
Philippians 4:13

SOHO need system and management too

After running SOHO for almost a year, I think there are lots of lessons to learn. From getting myself heathier, stronger finance mindset, and better time management. Oh, and a better work space, hell the nice workstation if everything doesn’t work well.

Workstation

I went on and purchased office chairs, office table, get myself weight gain supplements, regularity is coming in nowadays too :P The whole “investment” is needed, eventhough I did purchased office chairs and office table back in Sibu (Money waste that is).

Workstation

First, getting heathier. Eat the right food and fruit. Each morning, one Fuji apple is all I do, while checking emails. I’m not exactly a big fan of vitamin supplement. Though my mother used to give me quite lots of vitamin supplement.

Then finance wise. Balance sheet is very important, as I don’t rely on credit card, as a matter of fact, I don’t like credit card that much. I started to separate “need” and “want” very clearly. After all, all the “wants” are just a thing that sooner or later going to broke down too. I “need” car, but I “want” a BMW, so I settle with any car that has a car function ready.

Time management. Felt quite dissapointed with this one as I haven’t really adapt to it yet :P But I only take time lightly when I know I don’t have next task to do. Good?

The last thing I’m looking forward to is networking, the real-life mode…

I tell you the truth, if you have faith as small as a mustard seed, you can say to this mountain, “Move from here to there” and it will move.
Matthew 17:20

The best thing is the simplest thing

While studying in college, I used to walk a lot. From apartment to the bus station, back and fore is about 1km. I started to believe that walking is one of the fast weight loss tips, not to mention an article I read today confirmed it.

Car park

Well, not all people use to walking. Unless of course, it is inside a mall under air-condition. They drove all the way down to the basement parking, look for the nearest space to the elavator to shops. Even if that mean they have to park somewhere without parking line. The nearest the better.

The simplest thing that I learn when I was 2 year-old, make the cheer and happiness for my parent doesn’t really last long. Or perhaps, I don’t get cheer to walk that’s why I lazy to walk?

Anyway, I believe in Malaysia, fat food is not exactly the cause of fat people. It is the laziness that is cause of fat. See me as example lah~

WordPress unlimited dropdown menu

Unlimited dropdown menu

It used to be easy to do a dropdown menu, as developer gets to decide how many level of dropdown and style accordingly. However, with the newly featured custom menu, developers cannot expect how many level the end-users will think of using.

I personally use a lot of CSS dropdown menu. Easy to style, like this:

#menu {height: 40px; z-index: 100; clear: both; position: relative;}
#menu li.current-menu-item a {color: #fff; background: url('images/menu_hover_active.gif') no-repeat center;}
#menu ul li {float: left; position: relative;}
#menu ul ul {display: none;}
#menu ul li:hover>ul {display: block; position: absolute; z-index: 120; width: 200px; background: #991818;}
#menu ul ul ul {display: none;}
#menu ul li:hover>ul li:hover>ul {display: block; position: absolute; z-index: 120; left: 200px; top: 0; width: 200px; background: #991818;}
#menu a {display: block; padding: 12px 15px; color: #fff;}
#menu a:hover {background: url('images/menu_hover_active.gif') no-repeat center;}
#menu ul li ul li a {display: block; padding: 10px 15px; width: 180px; color: #fff;}
#menu ul li ul li a:hover {background: none;}

Then on the php file, it goes like:

<div id="menu">
<?php if (function_exists('wp_nav_menu') ) { wp_nav_menu('menu=Top Menu&container_class=top-menu1'); } else {?>
<ul><?php wp_list_pages('title_li='); ?></ul>
<?php } ?>
</div>

I was searching around for a better JQuery that helps building unlimited dropdown menu and small in size, undeniably, Suckerfish is one of the most used plugin, but it doesn’t really do good and too complicated to style. To make life easier, try jQuery Multi Level CSS Menu I found from Dynamic Drive.

Dynamic Drive demo

Basically, just download the plugin and add 2 classes into CSS. 1, Arrow pointing down then there is submenu from first level, and 2, Arrow pointing right when there is submenu on third level onward.

First, download the plugin (Don’t need the CSS). Add script link on header.php

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jqueryslidemenu.js"></script>

Find this code (Line 10):

var arrowimages={down:['downarrowclass', 'down.gif', 23], right:['rightarrowclass', 'right.gif']}

and (Line 26,27,28):

'<img src="'+ (this.istopheader? arrowsvar.down[1] : arrowsvar.right[1])
+'" class="' + (this.istopheader? arrowsvar.down[0] : arrowsvar.right[0])
+ '" style="border:0;" />'

Change to

var arrowimages={down:['downarrowclass'], right:['rightarrowclass']}

and:

'<span class="'
+ (this.istopheader? arrowsvar.down[0] : arrowsvar.right[0])
+ '" style="border:0;" />'

That is so you don’t have to look for the folder for the images location and easier to style in the future too.

Now that you changed the plugin calling. From calling it for image <img src="" /> to calling a span, you’ll need to add both CSS:

#menu a span.menu-down {background: url('images/menu_down.gif') no-repeat right center; padding: 0 8px;}
#menu a span.menu-right {background: url('images/menu_right.gif') no-repeat right center; padding: 0 8px;}

WordPress custom menu

That’s all! No more adding this and that, just change it with a few steps, I get unlimited dropdown menu, end-user gets to drop all the way down for their menu :)