Technical

  • ES8 – Callback, Promise and Async (10/13/2018) - Callbacks: Pass in a function as a parameter   Promise: States: Pending, Fulfilled, Rejected   Promise.all: takes multiple promises and returns a promise which resolves when all supplied promises are done. Promise.race: takes multiple promises and resolves when the first promise is done.   async()  
  • ES8 – Array and Exponent (10/12/2018) - ES8 aka. ES2017 Array.prototype custom function (review)   Array.prototype.includes Check if an array contains a specific value and returns a boolean.   Exponential syntax: **  
  • [VSCode] Typescript doesn’t recognize angular keyword (9/6/2018) - This is a minor issue with editor, but on VS Code, if you encounter red underline on angular when you try to register a module, install the following from npm on the root directory (often times is where index.html is located) to resolve the issue: tsd install angular –resolve –save
  • Bash: Variable – filename example (7/22/2018) - Variable in bash is not particularly cool until we have a good use of it  😛  
  • Bash: `type` Command (7/21/2018) - In unix, type command tells us whether a keyword is taken by the system or not. It is useful when trying to add a new custom command in the terminal and ensure that our command is not in conflict with system ones.  
  • How to loop a video on YouTube (7/2/2018) - There are two ways: Method 1: Create a playlist with only your target video and loop that playlist Method 2: Right click on the video and select loop option. This is a better way since it doesn’t refresh the page none stop 😉
  • AngularJS 1.5 – Component (6/26/2018) - Component is basically a combined simplified version of controller and directive.  
  • WordPress.com – create a custom tag list widget (6/24/2018) - I never really like Tag Clouds. Just from the UI point of view, making tags big and small is just chaos and ugly. WordPress.com free or personal plan don’t allow you customize the CSS so this is a hacky way to get around it. Unfortunately, this way doesn’t automatically generate the list and it takes … Continue reading
  • WordPress.com – Emoticons (6/17/2018) - The difference between Emoji and Emoticon is that Emoji are made up of keyboard characters and Emoticon is the icon image. Emoji comes from Japanese which is 顏文字, meaning words/characters that have expression. ツ Still confused? Here’s a little trick: Emo-ji: JI is 字 (character)  => : D Emo-t-icon: ICON => 😀 Now you know the … Continue reading
  • Posting Source Code on WordPress.com (6/12/2018) - To post some syntax highlighting code on WordPress.com, you should switch to Text mode and then only need to surround it with code-block like so: [code] your code here [/code] The following is directly copied from the documentation page [1]: autolinks (true/false) — Makes all URLs in your posted code clickable. collapse (true/false) — If true, the … Continue reading
  • Using ES5 Object to emulate class (6/6/2018) - . . . . *Note for angularjs => just put the class code in a factory and return Task object . .
  • Sass – @function, conditions, and loops (6/2/2018) - Sass allows you to create your own functions and support conditions and loops as other programming pragmatics too. @function: value calculations @if @for @each @while . . . Sass stands for Syntactically Awesome Style Sheets. This is the last post on sass series. Check out other notes on sass: Sass – Basic Sass – String & … Continue reading
  • Sass – @extend & @mixin (5/25/2018) - @extend: you can extend a class to inherit any rules Note: any rules mean you can @extend a:hover or @extend #id etc! . . . @mixin – @include @mixin are basically functions that store properties and are being called with @include keyword. Since mixin are reusable components, it should be located in a stand-alone file (e.g. … Continue reading
  • Sass – String & Rules (5/24/2018) - String Interpolation: #{$var_name} . . . Rules & Parent Selector Nest Properties . . . Sass stands for Syntactically Awesome Style Sheets. Check out other notes on sass: Sass – Basic Sass – String & Rules Sass – @extend & @mixin Sass – @function, conditions, and loops . .
  • Sass – Basic (5/22/2018) - Variables Operations Color Operations Math Operations Other Operations … Sass stands for Syntactically Awesome Style Sheets. Check out other notes on sass: Sass – Basic Sass – String & Rules Sass – @extend & @mixin Sass – @function, conditions, and loops
  • Visual Studio Code – Keyboard Shortcuts on Mac (3/6/2018) - Here’s a list of shortcuts that I found extremely useful when working with Visual Studio Code on Mac. Hope this is useful for people that needs it out there. 🙂
  • Audacity (2/26/2018) - Useful Keycodes Ctrl + I – Split a track into two F5 –  switch to Time Shift Tool to drag a clip around ALT + P , ALT + N – Select previous or next clip
  • Steam – Unable to launch the game + missing DLL (2/25/2018) - So I was installing Hyperdimension Neptunia from steam and encountered this DirectX Setup error when trying to start up the application: The application immediately shut off for me. The following 4 simple steps will fix the issue on launching the game, but just note the error will still be there.
  • Export Bookmark on Chromebook (2/4/2018) - 1. Right Click on the bookmark bar on Chrome and Select Bookmark Manager from the dropdown
  • Windows 8 – Limited Access over Wifi (1/18/2018) - I was having an issue connecting internet with Wi-Fi. It was working over Ethernet and could detect wrong password when trying to establish a connection over Wi-Fi. The error that I received was The network connection is limited and here’s how it was fixed for me: (Note: reset to factory default does not work! I tried. … Continue reading
  • Docker Notes (1/16/2018) - hub.docker.com
  • Display a list of posts in Wordpress.com (1/7/2018) - To embed a list of posts in WordPress.com, display-posts shortcode is the way to generate this list. While WordPress.com already have a great documentation for this shortcode, I am going to highlight some extremely useful ones and add some notes to them:
  • HTML5 localStorage code sample (1/3/2018) - See HTML5 storage Notes
  • HTML5 Web Storage Notes (1/2/2018) - string-based normally have 5 megabytes of space in a browser. However, 1 character does not equal to 1 byte in web character encoding.  sessionStorage API is used exactly the same way as localStorage (see below for demo) Refers to browser tab session, not user sessions Data live forever as long as the tab is not being closed … Continue reading
  • How to show posts with text widget when on certain category in WordPress.com (12/18/2017) - So you may or may not notice from my site that there is a text widget that lists all the posts if you are reading certain posts that belong to a category. It doesn’t show up on all pages. For example: Notice that the text widget on the left doesn’t appear on every page. The … Continue reading
  • Disable automatic updates on Sony Xperia XA-1 (12/10/2017) - Personally, I think updates are terrible. Those updates are optimized for newest model and not necessarily provide fixes to your particular device. In this post, I’m gonna share 4 places that u might wanna check to turn off those horrible updates for Sony Xperia XA1. 1. Turn off updates from Software update Settings => About … Continue reading
  • How to Stop Google Play Store from Auto-updating? (12/9/2017) - I’ve seen many posts teaching people how to stop google from auto-updating apps, but never found one for google self-updating app store and its services. Unfortunately, the only solution that I found available is to disable Google Play Store and reset Google Play Service to factory default. In this post, we will be working on … Continue reading
  • Disable Visual Studio Attach to Process Warning (7/11/2017) - The purpose of this post is to remove the annoying security warning while attach to process. PLEASE ALWAYS ATTACH!! To remove the warning, all that needed to be done: Close all windows of Visual Studio 2013!! (the registry value won’t be set if it a window remains opened) Open regedit (just type it in from Win menu) … Continue reading
  • Remap Resharper shortcut in Visual Studio (7/6/2017) - The problem for me was when I installed resharper and opened it for the first time, I selected default to Resharper shortcut which I later found that I had to press Ctrl + Shift + N to do the file search instead of traditional Ctrl + T. Below answer is retrieved from StackOverflow (Not the selected … Continue reading
  • String Array Exercises (6/26/2017) - Implement an algorithm to determine if a string has all unique characters.
  • Install Pebble SDK 2.9 on linux (1/3/2016) - Get the sdk from https://assets.getpebble.com.s3-website-us-east-1.amazonaws.com/sdk2/PebbleSDK-2.9.tar.gz Follow the installation guide on pebble: https://developer.getpebble.com/sdk/install/linux/ sudo apt-get install gcc-arm-none-eabi    
  • Hide directory tree in Apache server (3/1/2015) - Take me hours to figure this crap out. Anyways, here’s the short story:   Open apache configuration file: sudo nano /etc/apache2/apache2.conf   Scroll down to the <Directory /var/www/>. Add Options -Index and comment Option Indexes FollowSymLinks like so: <Directory /var/www/> Options -Indexes # Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>   That’s all … Continue reading
  • Server Setup on Instances (3/1/2015) - Install Apache sudo apt-get install apache2-mpm-prefork sudo a2enmod userdir sudo a2enmod expires Restart Apache sudo /etc/init.d/apache2 restart sudo service apache2 restart Install MySQL sudo apt-get install mysql-server mysql-client Create DB user in MySQL CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; CREATE DATABASE db_name; GRANT ALL ON db_name.* TO 'username'@'localhost'; Install PHP sudo apt-get install php5 libapache2-mod-php5 … Continue reading
  • Linux Commands (10/23/2014) - Remove directory and all the files/folders in it: rm -rf <folder_name> Copy a directory and all its contents: cp -a /source/. /dest/ Git commands Stage only modified files and not untracked ones git add -u Commit git commit -m 'your_message'
  • Clear Install Windows under Dual Boot System (9/7/2014) - I haven’t been using Windows for too long that I really couldn’t retreive the admin password back to the brain. Since I have a dual boot system (Lubuntu & Win7 Ultimate), I thought I had to wipe everything and redo the whole setup again, but fortunately Linux system can actually be preserved. We only need … Continue reading
  • [Lubuntu] Monitor Settings (8/24/2014) - Menu -> Preferences -> Monitor Settings    
  • Check if Linux System is Running on 32- or 64-bit (8/24/2014) - Type the following command in the terminal (CTRL + ALT + T):   If the value returns either i386 or i686, the system is 32-bit. If it returns x86_64, you have a 64-bit system. If you get other thing else, you most likely type the wrong command or come from the future (128-bit?).   😛 … Continue reading
  • [Lubuntu] Show network (nm-applet) icon (8/23/2014) - Menu -> Preferences -> Default applications for LXSession Under Autostart tab, type “nm-applet” then hit “+Add” button. Log out and Log back in, we should get the icon running on the taskbar 😀   Source: Ubuntu forum – Lubuntu nm-applet wifi icon missing      
  • Android – Can’t Find Theme.AppCompat.Light (7/9/2014) - Eclipse is so weird. The resources can seem to wonder off by themselves. The project itself was working last night, but gives me the following error in style.xml today. error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.   After tracing the error a little bit from google, I … Continue reading
  • [Lubuntu] Install Printer (HP Deskjet 5740) (6/16/2014) - 1. Power on the printer and connect the laptop with USB 2. Go to Menu -> System Tools -> Printers and click “Add” from the pop-up window 3. Select the printer and hit Forward 4. Install the driver that they recommend. The rest of the setup should be easy to follow.
  • [Lubuntu] Change default screenshot format (6/8/2014) - This is about changing scrot’s default screenshot format from PNG to JPEG. The main reason for doing so is to save space, though the quality is a bit lost.. Anyways, the solution was found on this Ubuntu thread (Glutanimate’s solution for more detail).   Modifying image format Making a backup of the original configuration file: … Continue reading
  • [Lubuntu] Change default browser (6/7/2014) - Open terminal (Alt+Shift+T) and paste the following line: Then it should prompts for your input: There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).   Selection    Path                           Priority   Status ------------------------------------------------------------   0            /usr/bin/google-chrome-stable   200       auto mode   1            /usr/bin/firefox                40        manual mode * 2            /usr/bin/google-chrome-stable   200       manual mode Press enter to keep the current … Continue reading
  • Java Exception Notes (6/6/2014) - Try-Catch-Finally Throw
  • [Lubuntu] HDMI Sound Output (6/3/2014) - When connecting to a HDMI TV with freshly installed Lubuntu 14.04, though the screen display is connected automatically, the sound output is still coming out from the computer. To change the sound output to HDMI, we need to install paulse audio volume control (which will replace the original alsamixer). 1. Open terminal (CTRL+ALT+T) and type … Continue reading
  • [lubuntu] Arandr – multi monitor setting (6/3/2014) - Lubuntu does not have multi-display settings by default (see source). The one suggested by the forum is using Arandr, which is available on Lubuntu Software Center. The interface is a bit confusing to work with. (Keep forgetting how to do this every time after a fresh install..) So this is just a short tutorial on … Continue reading
  • Useful Java Classes (6/3/2014) - Object Class public boolean equals (Object obj) This is comparing the references (though we can customize the equal() function if we want..). Sphere s1 = new Sphere(2.0); Sphere s2 = s1; Sphere s3 = new Sphere(2.0); s1.equals(s2) <- returns true s1.equals(s3) <- returns false even though they are both defined in the same way.   … Continue reading
  • [Lubuntu] Install OpenGL (6/2/2014) - Installation: 5 steps According to Installation Guide on Wikibooks, we need to install: 1. GCC (if you don’t have it already and make should be installed automatically with gcc..) 2. mesa: Next comes the libraries: 3. glew (Ubuntu forum): 4. freeglut (Blog post): According to the blog post, you might need the second line if … Continue reading
  • [lubuntu] install adobe flash on firefox (5/31/2014) - After a long search on the net, I found amjijawad’s first solution on ubuntu thread works. Simply type in the following and it should prompt you a restart on firefox if it’s installed successfully: sudo apt-get update && sudo apt-get install adobe-flashplugin -y This is the only command that works on my netbook. The install … Continue reading
  • [Lubuntu] open rar file (5/21/2014) - If rar is not installed already, type the following in the terminal: sudo apt-get install rar Unzip the files: cd /path/to/folder rar e filename.rar more commands: rar ubuntu manpage
  • [Lubuntu] Sound Configuration (5/21/2014) - xfce4-mixer This is taken from the solution on AskUbuntu. 1. Copy the following to the terminal to install: sudo apt-get install xfce4-mixer gstreamer0.10-alsa 2. To run the program, type xfce4-mixer in the terminal and you can have all the fun! (≧ω≦)丿  
  • [Lubuntu] Autostart Power Manager (5/11/2014) - On Lubuntu, Power Manager doesn’t autostart on default for some reasons. ‘Found it kind of annoying to click “Run” every time I restart the system. To change this, we do the following 😀 : 1. Go to Menu > Preferences > Default Application for LXSessions 2. Navigate to Autostart tab, enable the checkbox of Power … Continue reading
  • [Lubuntu] Kingsoft Office (5/10/2014) - Installation Guide 1. Download the .deb extension file from Kingsoft official website and save the file as kingsoft-office.deb to your desired location 2. Open the terminal (Ctrl+Alt+T), cd to your download location and copy the following: sudo dpkg -i kingsoft-office.deb 3. You should be able to run the application after.   Change Locale By default, … Continue reading
  • OpenCv (4/2/2014) - Accessing each element in a matrix: Threshold: Flags: THRESH_BINARY THRESH_BINARY_INV THRESH_TRUNC THRESH_TOZERO THRESH_TOZERO_INV API: double threshold(InputArray src, OutputArray dst, double thresh, double maxval, int type)
  • DB notes (4/2/2014) - Conflict-serializable: if any of WW, WR, RW occurs and does not result acylic graph in the precedence graph. Recovery: if it does not have RW ACR: if it contains WW
  • HTML/Javascript (3/12/2014) - This code snippet shows how to perform different actions when Javascript is enabled or disabled. In this example, if Javascript is enabled, the add to cart button will show a pop-up message notifying the user that the item has been added. If, however, JS is disabled, it takes the user to “cart.html”.
  • Win 7 Graphic Properties (3/2/2014) - To resolve the annoying pop up message from windows that says something like “windows detected your performance is slow” and then request a graphic quality change, you can try the following and customize the graphic properties. Open Control Panel and type in “view advanced system settings” In the Advance Tab under Performance section, click Settings … Continue reading
  • Link Library to Visual Studio Project (3/2/2014) - Right click on your project Select Properties In the pop up window, choose debugging -> Environment -> select the folder that contains the dll or 3. In the pop up window, select Linker -> Input -> Additional Dependencies -> Add the .lib files  
  • Eclipse: Git Merging Branch to Master (2/5/2014) - This post is to show to to resolve merge conflict when trying to merge your branch to the master (trunk). 1. Make sure the current pointer is at master. 2. Right click on the project to be merged. Select Team -> Merge 3. In the pop up window, double click on the branch you want … Continue reading
  • Git Commands (To Be Updated) (2/1/2014) - git pull =  git fetch +  git merge     To keep branch in sync with master git checkout master git pull git checkout branchname git merge master To sync master with branch git checkout master git merge branchname git push origin master To undo pushed commits with history (see attached image): where cc4b63bebb6 is the id … Continue reading
  • Wacom Lag fix on Windows 8 (1/29/2014) -  I’m using Wacom Bamboo CTH-470 on Windows 8. I basically fixed the lag by disabling windows ink. Below are the steps to do so (click the image for the enlarge view): Step 1: Open control panel, Click on Hardware and Sound, then Click Wacom Preferences Step 2: Navigate to Pen tab, Click Mapping… button Step 3: Uncheck Use Windows Ink box. By unchecking … Continue reading
  • Sony Windows 8 Fn keys not working (1/26/2014) - Okay, after I installed Windows 8 on my Sony model VPCEH27FD laptop, my FN keys don’t function. I’ve consult Sony expertise, and they provided me some half-ty answer that doesn’t work at all! (madness)! Fortunately, there are smart Sony “user” on the internet that posted a solution in the community. Basically, what you’ll want to do is … Continue reading
  • Protected: Visual Studio Git Update From Mainstream (1/25/2014) - This content is password protected. To view it please enter your password below: Password:
  • Eclipse Kepler Configurations (1/25/2014) - Show line number: Window -> Preferences -> General -> Editors -> Text Editors -> Show line numbers. Change tab to spaces: Window -> Preferences -> General -> Editors -> Text Editors -> Insert spaces for tabs. Highlight matching variable or function name: window -> preferences -> java -> editor -> mark occurrences
  • Remove Secure Warning in Visual Studio 2013 (1/22/2014) - To resolve the error C4996: Error 1 error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. Add the following marco on the very top of main() file:
  • How to adjust microphone volume (1/16/2014) - First, go to control panel and click on Hardware and Sound Select Sound in the following screen Under Recording tab, right click on your default microphone (the one with green mark) and hit Properties In the next view, select Levels tab and adjust the attributes shows on this page. (Might want to increase microphone boost).
  • Html b- i- and strong- em- (1/13/2014) - Why don’t we use b- or i-tag in HTML? I thought <b>=<strong> and <i>=<em>, but apparently they are not. Google tells me that <b> and <i> are actually explicit which is not what markup language are designed for. HTML should* only care about the Structure of a page instead of the Design. <b> and <i> … Continue reading
  • Agile Manifesto (1/5/2014) - Agile values: Individuals and interactions over Processes and tools In agile development, self-organization and motivation are important, as are interactions like co-location and pair programming. Working software over Comprehensive documentation working software will be more useful and welcome than just presenting documents to clients in meetings. Customer collaboration over Contract negotiation requirements cannot be fully collected at the … Continue reading
  • Linked List (1/3/2014) - Singly Linked List Each node contains the data it’s holding and a pointer to its next element.   Doubly Linked List Nodes contain pointers to the previous item as well as the next item.
  • Virtual Function in C++ (12/30/2013) - I think it would be the best if we run an example first, so let’s do that: As we can see from the example, when a method is declared “virtual”, the method of the defined class is used. Let’s further dive into this.   Non-Virtual Function Without the virtual keyword added, methods look for their … Continue reading
  • What is C-style Array? (12/24/2013) - A C-Style array is just a “naked” array – that is, an array that’s not wrapped in a class, like this: char[] array = {'a', 'b', 'c', ''}; Or a pointer if you use it as an array: Thing* t = new Thing[size]; t[someindex].dosomething(); And a “C++ style array” (the unofficial but popular term) is … Continue reading
  • DirectX Project Setup in Visual Studio 2013 (12/24/2013) - Before following the step, make sure you have already included $(DXSDK_DIR) macro in include and Lib under VC++ directories. (Only need to be done once. See how.) The steps below, however, must be performed every time a new DirectX project is created. Step 1: Right click on your project -> Select Properties Step 2: On the left hand panel, select … Continue reading
  • Java and Database (NetBeans) (12/23/2013) - An awesome tutorial from here: http://www.homeandlearn.co.uk/java/java.html (See section 12 and 13 at the bottom of tutorial page).
  • How to make a .mus file for .bin (12/21/2013) - Make a .mus file (to open .bin files) 1. Open Notepad 2. Paste the following to the document: FILE “YourBINFileName.bin” BINARY TRACK 01 MODE1/2352 INDEX 01 00:00:00 3. Save the file to My Documents 4. Change the file name from “YourBINFileName.txt” to “YourBINFileName.mus” The end.
  • How to turn off skype update notification (12/19/2013) - After turning off the auto update feature in Skype, every time you are trying to log in (and immediately after you are logged in), this annoying box jumps out: To get rid of the box, here’s what you should do: Step 1: Start -> Type in “run” and hit enter Step 2: Type in “services.msc” in … Continue reading
  • Windows 7 Starter Iso (12/6/2013) - Step 1: Download Windows 7 ISO http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65804/X15-65804.iso Step 2: Install USB/DVD Tool http://store.microsoft.com/Help/ISO-Tool Step 3: Make a Bootable USB (4GB) Insert a USB (back the USB up if necessary) Run the USB/DVD tool Follow the step with USB/DVD tool and load Windows 7 iso in the dialogue box After USB has been identified, click begin … Continue reading
  • How to Setup MS Fonts on Ubuntu (11/22/2013) - This tutorial only only take you to setting up fonts for calibri, cambria, candara, consolas, constantia, and corbel. Step 0: Install wine (if you haven’t already) sudo apt-get install wine Step 1: Download MS PowerPoint Viewer and run it from the directory you’ve save the .exe file (I saved in Downloads folder) cd Downloads wine PowerPointViewer.exe Step 2: Copy … Continue reading
  • Install Qt on Ubuntu 12.04 (10/27/2013) - Step 1: run the following commands in the terminal sudo apt-get install synaptic sudo apt-get update sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui Step 2:  under Tools -> Environment -> General, in the field of Terminal, type: /usr/bin/xterm -e Hope this works and have fun programming!!
  • Ubuntu Grub (8/21/2013) - Open the terminal Type in: gksu gedit /etc/default/grub GRUB_TIMEOUT: the timeout before going into the default OS (-1 for infinite waiting for user input) GRUB_DEFAULT: the default element shown on the list (start counting from 0) Runs sudo update-grub after changes are saved and made
  • Add androidx86 to grub (8/21/2013) - DON’T install a grub page when installing android x86!! Go into Ubuntu and Locate the android file (android-4.2-test in my case) Open terminal and type in: gksudo gedit /etc/grub.d/40_custom Copy and paste the following code into the pop up file: Find and Replace android-4.2-test to match the name of your Android folder found in Step … Continue reading
  • Maya Rendering Script (8/13/2013) - This is a mental ray rendering using maya. My components probably have too many faces that even maya software crushes when trying to render out the images. For heaven’s sake, just how difficult is it to take some screen shot of what you already have in the preview mode to the output format. It’s making … Continue reading
  • How to Install OpenCV – Windows (7/8/2013) - Hi, so I finally got openCV working on my laptop and thought I should keep a record for future references as well as the people who need it. I basically copied the steps from bsdnoobz at StackOverflow who explain so detail and clear. Hope this will work for you guys out there! Source: http://stackoverflow.com/questions/10901905/installing-opencv-2-4-3-in-visual-c-2010-express 1. Installing OpenCV 2.4.3 First, … Continue reading
  • Wacom Paint Lag Fix – Win 7 (3/21/2013) - This problem is so troublesome to solve. Anyways, here’s what you should probably do: go to start->control panel->hardware and sound->pen and touch disable “press and hold for right-click” turn off ripple animation This solves my problem. Hope it works for you too!  
  • How to turn off wacom ripple effect – Windows 7 (3/21/2013) - A bit annoying thing from wacom: Start -> search for services.msc Find Tablet PC Input Service right click it and “stop” right click, select “properties”, startup type: disable Reinstall wacom driver Source:  csmith.fx’s solution
  • How to Add Google Calendar into Wordpress Post (3/4/2013) - Find the Settings icon and go to Settings: Go to Calendar Tab and click on any calendar from area 4: Click on “Customize the color, size, and other options” Change the value and play around with the attributes. Once done, you can copy and paste the code into wordpress post!
  • How to Embed Youku Videos to Wordpress (3/3/2013) - First, you wanna copy the html code from youku’s share function: <embed src="http://player.youku.com/player.php/sid/XNDYwMTEzMTY0/v.swf" allowFullScreen="true" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed> Then, take the url and convert to the following: [gigya src="http://player.youku.com/player.php/sid/XNDYwMTEzMTY0/v.swf" allowFullScreen="true" quality="high" width="480" height="400" allowScriptAccess="always" ] You can change the width and height as well as the other attributes Source: justpi’s solution
  • How to Add a New Language Keyboard – Ubuntu 12.04 (2/10/2013) - Here’s a little step-by-step procedure on how you can add new language keyboard on ubuntu 12.04: Go to System Setting and click on Language Support Change the “Keyboard input method system” parameter to “ibus“. Then hit “Install / Remove Languages…“ A new screen labelled “Installed Languages” will show up. Check all the languages that you … Continue reading
  • Advance Wacom Tablet Settings – Ubuntu 12.04 (2/10/2013) - At first I just wanted to disable the touch on my tablet and the default System Setting doesn’t seem to have this option. The product installation CD only works unfortunately on Windows (and possibly Mac). Doing a little more research on google, I found a post that provides more advance settings with wacom tablets on … Continue reading
  • Ubuntu 12.04 – Delete file & Permission denied (2/10/2013) - Hey guys, so I was trying to test JavaHL library using the test file provided on their website. The test created a bunch of folders that doesn’t allow me to delete the files. When I looked in the properties, it says “you are not the owner so you cannot change these permissions”. Don’t know if … Continue reading
  • Showing Battery Status on Ubuntu 12.04 (2/9/2013) - Hello people, so I often found my netbook doesn’t show the battery status at the title bar. So here’s the only command that you need to copy and past into the terminal. cat /proc/acpi/battery/BAT0/state After you hit enter, you will get something like below on the terminal and the battery will show up!! present:                 yes … Continue reading
  • WordPress Clock Widget (2/4/2013) - Since this is a little cool thing on WordPress, I just thought maybe I should make a note for myself and share with you guys out there who are interested on putting a clock on your sites. I figured that I need it because I procrastinate too much and produced too many half-ass projects… GOD~ … Continue reading
  • Install Dropbox – Ubuntu 12.04 (8/13/2012) - This post will guide you to how to install dropbox from the terminal. Open the terminal with Ctrl + Alt + T Copy and paste the command below to add the dropbox repository key sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E Next, run the following command to add the dropbox’s repository sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu … Continue reading
  • Auto Start an Application – Skype Example (7/27/2012) - Tired of clicking messaging application every time you turn on your unix system? This tutorial will demonstrate how to auto start an application in Ubuntu 11.10. This works with any apps. I’m just using Skype as demonstration purposes. Steps: 1. Click “Startup Applications” in the Application. 2. In the pop-up window, click “Add”. 3. Fill … Continue reading
  • Install Skype via Terminal (7/19/2012) - Since Ubuntu 10.04 (Lucid Lynx), Skype is part of the Canonical partner repository. To install Skype add the Canonical Partner Repository. You can do this by running the command $ sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" Then install Skype via the Software-Center or via the Terminal. $ sudo apt-get update && sudo apt-get install … Continue reading
  • How to Create a Desktop Shortcut via Terminal (7/11/2012) - First, you need to install gnome panel in the terminal: $ sudo apt-get install gnome-panel The above line only need to be called once. After you install that, you can call the following line to create a shortcut for each application. $ gnome-desktop-item-edit --create-new ~/Desktop Notes: Command for LibreOffice: libreoffice –calc libreoffice –writer etc. Command … Continue reading