Free up memory in OSX Mavericks

Screen Shot 2014-03-05 at 11.23.16 PM

Lately I’ve noticed  that Mavericks OSX is consuming almost 8GB of memory which I have no idea why it used too much when I don’t have much app running. In order to free up the memory in OSX, you can try by typing



sudo purge

in terminal in which OS X will free up the “inactive” memory.

How to show hidden files in Mac Finder

This is the missing little feature in Mac that Apple doesn’t want to add it? In Windows, you can just check the show hidden files and folders in File and Folder options. In order to see hidden files and folders in Finder, open the Terminal from Applications->Utilities->Terminal. Type the following command line.

defaults write AppleShowAllFiles YES


To hide the files and folders back, just set it to NO. I hope this help.

defaults write AppleShowAllFiles NO

Keep it simple. Stay focused and keep shipping

Ray Chan, co-founder of 9GAG

It’s been more than a year I didn’t write or I don’t look back my blog. It was stupid to leave the blog that gave me extra income. I think it is time to organize my time to write a new post every week.

Adding class in li under WordPress Navigation Menus

In WordPress, you can generate menus by using wp_nav_menu function. It will show the menus you set in admin. Here is the example of menus in html version.

<ul id="menu-header-menu" class="menu">
  <li class="wordpress generated classes">
     <a href="#">Menu Name</a>
  <li class="wordpress generated classes">
    <a href="#">Menu has sub menu</a>
   <ul class='sub-menu'>
     <li class="wordpress generated classes">
         <a href="#">sub menu item</a>
     <li class="wordpress generated classes">
         <a href="#">another submenu item</a>

For some reason, you want to let your visitors know that the menu has sub menus by showing arrow or drop down icon next to the menu. In this case, you’ll need to add CSS in li element that it has child menu. There is an answer to this on stackoverflow by adding some php codes in functions.php. I found that there is an alternative way to solve this problem by using jQuery. If you’re familiar with jQuery, the following line that I used for my WordPress theme will help you with this problem.

<script type="text/javascript">

You can add the above code before head or at the end of your theme. It will add ‘has-submenu’ in li elements of wordpress menu that has sub menus. I hope this help.

Noise Texture Generator

Tired of creating noise texture in Photoshop? You might want to take a look at this site. Noise Texture Generator lets you to select noise opacity, noise density and color to create noise texture background which you can use in your web site projects or design. It is simply slide and select the color. Once you’re satisfied, click Download to download the texture.


It’s been a while that I haven’t update my blog. I just updated my new theme and will update posts in coming days.

Cubby – another awesome cloud storage

Cubby is another cloud storage and file sharing service just like Dropbox and Google Drive. It allows you to store and sync your data from your computer and mobile devices. With Cubby, you can specify the folders you want to sync across all your devices and share with your friends or make your data public. Cubby is currently in beta. You can signup now and wait for few days to get beta access.

PicMonkey – yet another awesome photo editing tool

Editing photos with Photoshop will take sometimes but with PicMonkey, you can get some of the effects with few mouse clicks. PicMonkey is an online photo editing tools let you upload your photos and apply effects, add text, change/resize, and add frame with simple clicks.


It doesn’t require login or registration. One thing I noticed is that it shows PicMonkey logo badge on your photo while editing but it doesn’t show when you save the image.