Posts

All posts existed on this website. 🙂

If you would like to see the posts in the group by categories, hover Posts item on the menu bar.

 
  • Self-confidence Formula (11/3/2018) - 1. I know that I have the ability to achieve the object of my Define Purpose in life. Therefore I demand of myself persistent, continuous action towards its attainment, and I here and now promise to take such action. 2. I realize the dominating thoughts of my mind will eventually reproduce themselves in outward, physical … Continue reading
  • WordCamp Vancouver 2018 (10/14/2018) - I missed the opening and keynote and also skipped the after party at a bar because I was just too tired and forgot to bring my driver’s license. Overall, the event was great! Foodies-wise, I had some fruits and 1 cupcake for breakfast, 2 sandwiches for lunch, 1 sprite and 3 cups of coffee throughout … Continue reading
  • 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: **  
  • How to clean a kettle (a guide from salton) (10/8/2018) - My parents just recently bought me this kettle from Costco. I was told that keeping water boiling for days could be potentially bad for health, so I guess I was downgraded to older age technology and just boil as I go. ¯\_(ツ)_/¯
  • 8 Year anniversary on WordPress (10/1/2018) - WordPress sent me this notification two days ago, but my phone didn’t catch it. I’m not sure what’s there to celebrate on WordPress. I guess just a simple post with the screenshot would suffice. (=w=)
  • [Book] One Minute Manager (9/9/2018) - I just finished reading one minute manager. Unlike other self-development books that present a central idea and discuss points in paragraphs, the audience of this book basically absorbing the new management system by following the journey of a young active learner. It’s as if I was reading a fictional book. Near the end of the … Continue reading
  • [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
  • Green Cleaning Tips (8/17/2018) - Look for cleaning products that have environmental certification such as the Ecologo or Green Seal. Alternatively, for many cleaning tasks around the home, you can use products that you might already have on hand A vinegar and water solution can be used to clean and freshen many surfaces around the home, including walls and cupboards. It … Continue reading
  • 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.  
  • 5 Mindsets for Living to the Fullest (7/3/2018) - This post is a note from a video on 5 Hard Lessons You Need to Learn Before 30. I’m not sure why the magic number 30 is there since everyone’s age span varies a bit differently, but anyways, here are the five lessons: 1. There may not be a tomorrow, so enjoy/do it now. Think … Continue reading
  • 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 😉
  • [Anime] Comic Girls (7/1/2018) - Summary Just another slice of life anime that centres four high school mangakas’ story in dorm Episodes 12 Air run Spring 2018 Audio ★★★★★ I really like the voice casts of this anime a lot!! ED is ok-nice, but I always skip OP. (love these two casts: 大西沙織, 本渡楓) Graphics ★★★★☆ Story ★★★★☆ This is a … Continue reading
  • Skateboarding is so much fun! (6/30/2018) - I don’t know what to write, but since it’s gonna be the last day of June and I have to end the month by visiting a dentist, I thought I might as well log something that’s more interesting. So, up till this point, I’ve got 3 skateboards now and are used for the following purposes: … Continue reading
  • AngularJS 1.5 – Component (6/26/2018) - Component is basically a combined simplified version of controller and directive.  
  • How to Frontside Powerslide (6/25/2018) - This is a one of skills that helps you slow down stylishly. This post is going to focus on frontside only because it’s easier than backside. And personally, i think frontside looks more stylish and feels safer. So, without further ado, let’s get started. Pre-requisite: Riding in high speed
  • 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
  • Six Youtubers that Changed My Life (6/23/2018) - Here are a few people that I really look up to on Youtube. Most of them are life coaches, but regardless of what their careers in real life are, these are the people that I benefited a lot from marathoning around their channels. Most of them are trying to direct you to have the right … Continue reading
  • Buses are not for me (6/20/2018) - If I want to be rich, I gotta get out of the bus life. I am just another 9-5 worker that you’ll see everywhere on street. Today was a special sunny day when I got off work a bit early than normal for a seminar in the city. When checking the bus schedule, a once-in-a-life-time … Continue reading
  • Three ways to get comfortable with success – Dan Lok (6/18/2018) - Be comfortable with uncomfortable consistently: Act and behave like the rich (or whatever your model is) that give you rich mindset E.g. Take business class instead of economic when going on business trips for boosting confidence E.g. Eat at a higher end restaurant every now and then to taste what your next level would be … 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
  • Progressive Mastery (6/16/2018) - This list is taken from Brendon Burchard’s High Performance Habits. This is basically the formula to fully master any skills. Determine a skill that you want to master Set specific stretch goals on your path to developing that skill Attach high levels of emotion and meaning to your journey and your results Identify the factors … Continue reading
  • How to Get Anything You Want (6/15/2018) - According to Tony Robbin’s Unlimited Power, the answer is as simple as one word: “Ask”. The book provides five guidelines for asking intelligently and precisely:
  • Three body language tips to look more attractive (6/14/2018) - This note is taken from Charisma on Command’s 3 Body Language Tips to Instantly Look More Attractive 1. T-rex arm The body is too stiff and not moving much. Be more expansive and expressive. Loosen the muscles a bit and do expansive gestures. 2. Seeking behaviour Don’t look out for more interesting stuff from afar. … Continue reading
  • Six Mindsets that make you more Magnetic (6/13/2018) - This note is taken from Charima on Command’s 6 Mindsets That Will Make You Magnetic (Animated). Watch it when you have a chance. 1. No Matter what, I will be okay. Just do it! You will be fine even in the worst case scenario. 2. I care about my character than reputations Stop caring about people’s … 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
  • Skateboard Brands (6/11/2018) - Here are a few Skateboard brands that come as top result from Google. I personally only own a zero and an enjoi, but I’ve heard good stuff about Plan B, Element, and Girl. Definitely gonna keep an eye on them, try out in the local skateshop and maybe take a few one home in the … Continue reading
  • When should you change your skateboard deck? (6/10/2018) - You should change it when your board gets too soggy or has pressure cracks! If you are into tricks, soggy board (with possibly razor tail) means you won’t have good high ollies because the board can no longer pop up very well. The performance of every single pop trick will be affected. Also, if you notice … Continue reading
  • What size of skateboard should you get? (6/9/2018) - ⭐ You only need to know that wider decks are easier to land and thinner decks are easier to flick. Generally speaking, 7.5 to 8 inches are good for beginners. When talking about the size of skateboards, people are normally referring to the width of the deck. While there are many sites point out references in … Continue reading
  • Protractor Notes (6/8/2018) - Protractor Locators (= Angular locators + selenium locators): binding model css buttonText repeater options id linkText name tagName xPath addLocator   Create Test Suites   Other Notes Reference This note is taken from Introduction to Protractor by Nate Taylor and AngularJS Fundamentals by Joe Eames and Jim Cooper from Pluralsight.
  • Using ES5 Object to emulate class (6/6/2018) - . . . . *Note for angularjs => just put the class code in a factory and return Task object . .
  • How to make good first impression (6/5/2018) - You would want to build trust with other people. Make them feel that you are responsible and reliable. Dress with purpose / Clean appearance:  You would want to make sure that people will want to shake that hand of yours. Body language:  How you walk How you handshake Your eye contact Hand gesture Slow down, … Continue reading
  • Skateboarding – How to not look like a beginner (6/4/2018) - Great, so you’ve got your skateboard and you are starting your journey to be a skateboarder. Even though everyone starts out as a beginner, well, nobody likes to be one. Here is a list of things that you can master so you look don’t look like a beginner when you are going down the street. … Continue reading
  • 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
  • How to Stop Procrastination (5/21/2018) - If you look at my post count for the past few months, I haven’t been very active recently. (Not like I was ever active..) Anyways, I’ve been meaning to post more often, but there’s just this voice in my head that keeps telling me: “Now is not that the time to write post, yet.” No, … Continue reading
  • How to Ollie (5/14/2018) - The algorithm is based from Aaron’s detailed instructed video (Aaron used minutes, but I think it’s easier to track the actual count in your head so you know where you’re going): Step 0: Cruise around and be familiar with your board Step 1: Pop for 50 times Step 2: Swipe for 50 times Step 3: … Continue reading
  • 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. 🙂
  • Sapperton – Data-Driven Decision by Translink/Government (2/27/2018) - The talk was more so centering the questions on how government collect our transportation data and what actions they took upon doing the data analysis. It wasn’t nothing data-driven, but I still learned some interesting thing from that event. Goals for the Translink/Government mobility: seamless integration safety: compact road affordability and fair price
  • 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.
  • [PC] Eternal Senia (2/24/2018) - Eternal Senia is a pokemon style RPG centering Senia’s journey to find her non-blood related sister, Magaleta. Not much to say about the gameplay. You basically just walk around and battle as many random stuff as you can to level up and collect items to upgrade weapons. Check it out on Steam
  • Apple Pineapple (2/18/2018) - Some random PPAP comment from YouTube… (from Ryan Higa’s video actually… not even related to the video content lol)
  • Export Bookmark on Chromebook (2/4/2018) - 1. Right Click on the bookmark bar on Chrome and Select Bookmark Manager from the dropdown
  • Fidget Cube (1/29/2018) - Fidget cube and fidget spinner both serve the purpose of trying to calm people down and helping people with anxiety. I know fidget cube a bit earlier before spinner become a big hit (which i don’t understand why so high for spinners). But anyways, I like cubes better so this posts will be all about … Continue reading
  • Kinder Egg – Ninja Turtles (1/20/2018) - I got a kinder egg set on the last day to celebrate. It was a Valentine set that comes with 4 eggs. The toys are nothing romantic, but i guess the market will speak for themselves.
  • How to Spend Time on Public Transit (1/19/2018) - From my house to work, I needed to take 50 min of train-ride and 30-plus min of bus-ride. It roughly takes me about 3 hours a day wasted on traversing for two years. Here are a few things that I tried saving my precious time.
  • 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
  • Dealing with Despising Comments in Face (1/17/2018) - We’ve all been looked down in life before when people don’t understand fully certain actions that we take. Here are a few techniques to confront those feedbacks that meant to bring you down:
  • Docker Notes (1/16/2018) - hub.docker.com
  • How to be a better narrator (1/10/2018) - I was looking more into how to becoming a better article narrator, but no one seems to be focusing on that. Audiobook narration skills might just well be applicable to context so let’s take a look.
  • Economist – Taking off the training wheels (1/9/2018) - From Economist site. This short article basically states that 2017 was a good stable year financially; Let’s hope and pray that 2018 will continue and won’t burst the bubble. sanguine: optimistic secular stagnation: little or no economic growth in a market-based economy cyclically: <= this is the hardest word to pronounce; it was something like … Continue reading
  • Short-circuit the Fear of Rejection (1/8/2018) - This is post is a note of Charlie’s video on How To Short-Circuit The Fear Of Rejection. Definitely check his video out if you have the luxury of time. ⭐ Disassociate the rejection ⭐ Find out why you are being rejected. Maybe it’s a skill set that you are currently missing from your workplace for example. … Continue reading
  • 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:
  • McDonald’s Squirtle (1/6/2018) - I got this happy meal squirtle a few days ago. Apparently, McDonald is bringing back Pokemon theme again. I am old, but so what? I still like toys. Basically, you get a pokemon figure, a battle card, a collection-set info paper, and a circle squritle info card in the package. I thought the circle card was a sticker, … Continue reading
  • Bitcoin Notes (1/5/2018) - I went to a super awesome bitcoin meetup event today. It was an introductory presentation which was perfect for a noobie like me. Anyways, here’s a short note: Bitcoin was introduced by Satoshi in 2008 when market crashed The purpose is to create a cash flow system that cannot be controlled by banks, government, or … Continue reading
  • Happiness Ladder (1/4/2018) - This post is a quick summary of Charlie’s video from Charisma on Command. His happiness ladder composes of 5 components. Going from the bottom up:
  • 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
  • [Drama] Mary Sue & Jack Sue (1/1/2018) - Mary Sue & Jack Sue is a Chinese web drama (mixture of Chinese and Taiwanese actors) that was released on November 17, 2017.  I only watched this show because this apparently is one of the latest work of Jasper Liu! It was depressing that he only appeared for like 3 seconds at the end of the … Continue reading
  • Always Help Yourself First (12/19/2017) - A high school classmate of mine always tells me that she wanted to help the homeless. That’s a great idea and a wonderful mind, but she, herself, is still heavily dependent on her parents financially or otherwise. So what? Give out the money from allowance?
  • 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
  • Stop Text and Walk! (12/17/2017) - Everyone is busy. Life is short. We don’t want to waste more time traveling from one place to another. To travel from my house to my workplace, I needed to take a bus then transfer to train. Not only does it cost a fortune for the shitty service, it also cost me ~3 hours per day … 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
  • How to sell anything (including yourself) to anyone (12/2/2017) - Stefan from ProjfectLifeMastery did a great job explaining this topic. If you have the 20 minutes, watch his full talk on the video on youtube (or below)! If not, here are a few quick highlights that I think are important take away from his video: The products or services that you are offering have to meet … Continue reading
  • Apply what you’ve learned right away (11/26/2017) - Learning is great and fun! However, most often times passive learning (like watching videos or reading a book) is not sufficient. Passive learning may provide you the background knowledge that helps you set foot into the field, but it’s meaningless you can’t apply it in real life right away. For example, I’ve been watching a … Continue reading
  • Toy R Us files for Bankruptcy (11/25/2017) - This is actually an old news back from September. It was sad to hear that such big toy company is leaving. Here are some quick highlights from an article in the Economist magazine: Toy R Us was 5 billions of debts! 3 private-equity firms bought the company in 2005 in a leveraged buyout causing around … 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.
  • Strategy Pattern Exercise – Action Adventure Game (5/21/2017) - Strategy Pattern (image source from Wikipedia):    Exercise Description:     Solution
  • 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    
  • [Lubuntu] Change Brightness (7/24/2015) - I’m using Lubuntu 14.04 and I found that you will have to make sure “Power Manager” is running for the brightness fn-keys to work. To start Power Manager, go to Menu > Preferences > Power Manager Once this is started, you should be able to adjust screen brightness with fn-keys. Alternatively, you can read off … Continue reading
  • SSH Key on Unbuntu (5/15/2015) - First generate the key from the terminal: ssh-keygen Then, copy the key from the following command: cat ~/.ssh/id_rsa.pub Finally, paste the key you have into the git service that you are using (I’m using bit bucket in this case). It should looks something like below:
  • Ubuntu 14.04 – Change Apache DocumentRoot (5/14/2015) - This answer is taken from StackOverflow by the community wiki: http://stackoverflow.com/questions/5891802/how-do-i-change-the-root-directory-of-an-apache-server Please note, that this only applies for Ubuntu 14.04 LTS and newer releases. In my Ubuntu 14.04 LTS, the document root was set to /var/www/html. It was configured in the following file: /etc/apache2/sites-available/000-default.conf So just do a sudo nano /etc/apache2/sites-available/000-default.conf and change the following line … Continue reading
  • The 5 element of effective thinking (5/5/2015) - Grounding your thinking: understand deeply Understand simple things deeply Clear the clutter — seek the essential See what’s there See what’s missing Igniting insights through mistakes: Fail to succeed Welcome accidental missteps — let your errors be your guide Finding the right question to the wrong answer Failing by intent Creating questions out of thin … Continue reading
  • The Five Lessons a Millionaire Taught Me (5/1/2015) - By – Richard Paul Evans Lessons: Decide to be wealthy Take responsibility (Management) Money is a good servant, but a terrible master. Know where the money is from and know how it goes It’s not what you earn; it’s what you keep that makes you rich Win in the margins Is it the best you … Continue reading
  • Protected: Presentation Notes (4/4/2015) - This content is password protected. To view it please enter your password below: Password:
  • 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
  • Eclipse Java – Error: Could not find or load main class (11/26/2014) - Error: Could not find or load main class I got this error when I tried adding foreign java files. To solve this error in my case, you just need to rebuild the workspace/project. Project -> Build Project More info from StackOverflow: http://stackoverflow.com/questions/7485670/error-could-not-find-or-load-main-class
  • 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'
  • 10/07: Basic Paxos (10/7/2014) -
  • 10/07: Basic Paxos (10/7/2014) -
  • 09/30: Logical Vector (9/30/2014) -
  • Blender Keyboard Shotcut (9/28/2014) - World View: Rotate: Middle mouse Translate: SHIFT + Middle Mouse Useful Shortcuts ALT+M – Merge Vertices TAB – switching object mode to edit mode S+X/Y/Z – scaling on specified axis E – extrude SHIFT+A – open quick menu GUI: Disable proportion to affect only the faces of selected vertices
  • 09/23: Test-and-set and performance (9/23/2014) - Caching Locks Spin lock: to acquire a lock, a process may enter an infinite loop that keeps attempting a read-modify till it succeeds If the lock is in memory, there is heavy bus traffic -> other processes make little forward progress Locks can be cached (Still quite expensive): •    Cache coherence ensures that a lock … Continue reading
  • Unity-chan (9/21/2014) - Guhhhh~~~ The admin was supposed to build a game using Unity 3D engine, but came across Unity-chan and procrastinated.. Crappy-crap.. Anyways, I probably just made the world hates unity-chan. Whatever, I don’t care anymore because her eyes are not red. Spent three hours on that hand gesture and still ended up with that junk. Really … Continue reading
  • 09/18 – Producer and Cosumer (9/19/2014) -  
  • Mogeko (9/15/2014) - No description.
  • 09/09: Lab – Java threading exercise (9/9/2014) - Inspiration from Jamie King’s Youtube tutorials on Threading – Divide and Conqueror Example. Instead of using C#, the below code is in Java (yay!). Output: My system has 4 cores and here’s the result: Summing with one thread Total value is: 990026095 Time to sum: 101 ms Summing with multiple threads Total value is: 990026095 … Continue reading
  • 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
  • [PC] The Witch’s House (9/6/2014) - Uuu, I can’t believe the true end is actually the bad end. Damn, I didn’t get to enjoy that because I think I’m too cruel… (((bitter haha-ing.. So I was on this (vn?) game called “The Witch’s House”. The story goes something like this. Viola (which is YOU) met a girl/witch/friend named Ellen deep in … Continue reading
  • 09/04: Two Professor’s Problem (9/4/2014) - The two professor’s problem is basically a two general’s problem except that the generals are replaced with professors and the soldiers are now birds. Proposed algorithm (in sudo code): Professor: chosse dates order list in ascending order send list to the other professor wait: receive list wait until timeout if (rcv) choose the earliest acceptable … Continue reading
  • Nio-chan FTW!!! (9/4/2014) - OMG~~ Just found this video on Youtube accidentally featuring all the cute scenes that Nio made appearance. Makes me want to rewatch this series again (>\\\<)!! Nio nio nio~~ SPOILER ALERT ON HER IDENTITY!!
  • 09/02: What’s a distributed system (9/2/2014) - What’s a distributed system? Multiple computers work together to solve a problem that’s too large for a single computer. Can complete tasks despite failures look like a non-distributed system from a user’s perspective may result programmers working in conflict speed reliability: if one system make mistake, the others could catch it availability (fault tolerance): if … Continue reading
  • No title (8/28/2014) - I can’t express how much I miss SAI. So… the end. Xournal is really cool at drawing the outline. The pen pressure whatsoever are showing up so freaking nicely. I wish it at least have a fill tool that allows me to color this shit. It just seems so close to be the best drawing … Continue reading
  • No Title (8/25/2014) - The admin is back on Linux again.. SAI unfortunately doesn’t support this OS either. Sigh~ Now that Baby-sama (妹妹大人) is temp back, I could really sneak on drawing when the night awakes.. Xournal is a wonderful tool for note taking and possibly outlining on Linux, but it such a pain when it comes to colouring. … 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      
  • Because drawing is fun.. (8/19/2014) - I LOVE SAI ❤ <3. It has to be the best tool ever (until the trial is over).. RIP Sheele… weepy-weep..  
  • No Title (8/15/2014) - Haha, my Japanese writing sucks (and possibly grammatically incorrect too), but whatever, this should hide the message well.. 😛 The admin had a chilling day today. It’s been raining too much XD ~
  • No Title (8/12/2014) - Thanks to the nee-san’s blessing (and possibly the cold fire), the admin has passed the class 5 road test without fail on the first try :D. All the left now, is to seek for a decent job I suppose then. Dislike the new WordPress “new post” layout.. 😛
  • Paint Tool SAI (8/12/2014) - The admin has been experimenting with SAI and just found out that it isn’t exactly a “freeware” either. Still, this tool is so awesome that the admin thinks it kinda worth the pennies. It’s not like she’s gonna pay though. Anyways, good luck to myself for the big thing tomorrow ❤ ❤ And so, I … Continue reading
  • Android Task Manager – More on Settings (8/10/2014) - Just to log what I’ve done today. The toggle information from setting activity is now saved in the SharedPreferences too. Also made a little minor adjustment to make tempNio call the right username. Demo should be coming by the end of this week. (i hope).  
  • Android Task Manager – Settings (8/9/2014) - Phew~ It’s been another long time since the last update again. Real life sucks. Anyways, the admin has now added a setting page for the control of this little task manager thing. The settings were saved with SharedPreferences, which stores only the username. The other two buttons are for future implementation, which are probably coming … Continue reading
  • Android Task Manager – Icon (8/5/2014) - ==== Update # 1 ================== Pause on icon drawing again because the admin can’t think of any goodies. She gets in the way too much (; ̄Д ̄)ノ
  • Android Task Manager – Theme (8/5/2014) - Since it’s already been decided (for the time beings) that the manger will be nio, the theme color is automatically (or not) set to yellow. And so, the current screens look something like the following (and yes, the girl on the right is a temp sub):  
  • Android Task Manager – Minor fixes (8/4/2014) - With a little help from nio (haha, surreal chara.. uuu), the admin had fixed up the three issues mentioned in the last post. Regardless, it brings out some other issues. Designing a responsive UI for android is so hard~~~ Too many different screen sizes and operating systems le la!~~ Anyways, below will be what I … Continue reading
  • Android Task Manager – Git Disaster (8/3/2014) - Git has messed the admin a big time~~~  I was doing something wrong while branching the master that it wipes my latest versions. The update and delete features were completely fucked up. Not to mention that screen animations as well as some UI layouts were flushed down the toilet too. SCREW IT ALL @#$%~ (>”<) … Continue reading
  • [Movie] Roomate (8/1/2014) - Even though they said it’s a horror movie, it actually isn’t as scary at all! (not as bad as the other games I played 😛 ). No really bloody scenes or jumpy moments, which is kinda depressing~ I would just call it suspense… The story line is actually kinda cool. It’s about personality splits and … Continue reading
  • Android Task Manager – Animation (7/27/2014) - Just played with the animation on the splash screen a little bit 😛 That’s all!
  • Android Task Manager – Basic To-do List (7/23/2014) - The admin has done a bunch of stuff in the past couple of days. 😀 This feeling of accomplishment is unspeakably awesome! Aside from the fact that the UI is getting more and more ugly, here’s what I have right now (in triumphant gold \(@ ̄∇ ̄@)/): Update task item status Allow user to update the check … Continue reading
  • Android – Unable to Check Custom Item from ListView (7/22/2014) - My ListView contain a list of custom items. Each item contains a CheckBox and an associate TextView. I wanted to check/uncheck items from the ListView, but it didn’t let me. —————————————————————–  According Matt C’s solution on SO, Android doesn’t allow selections on items that are focusable (namely CheckBox). The fix was quite simple =A=; just … Continue reading
  • Android Task Manager – stuck (-__-)” (7/21/2014) - Just a quick downdate update. The admin is stuck on updating the UI checkmark to the database. So this is really the time to actually sit down in the library and read a goddamn book. Kukuku, the admin is so pathetic. Half a month has already passed since the start of the project and still … Continue reading
  • Android Task Manager – New Task (7/18/2014) - Now we can add a new task via dialog box. This really isn’t what the admin really wants, but guess just have to leave it like that for the time beings. The admin also refactored the DB stuff quite a bit because the previous version was really hard to understand. A nicer tutorial on using … Continue reading
  • Android Task Manager – SQLite (7/12/2014) - Meow meow~ It’s finally here~~ I’m finally able to save and load the list =A=” ((exhausted.. At first, I thought that using databases (e.g. MySQL or Hana) requires server setup (internet connection) that the users won’t be able to save their data locally. And so, I was using old rundown file io. However, the admin … Continue reading
  • 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
  • Android – Activity Life Cycle (7/9/2014) -    
  • Android Task Manager – First Demo (7/7/2014) - A summary of what the admin has right now: Add button is adding something to the listview Switching between logging and main screen is working It’s just too troublesome to show what it can currently do in screenshots, so let’s just do a quick demo 😀   “Known bugs” (not really, just a progress check): … Continue reading
  • Android Task Manager – Main UI (7/4/2014) - Guh, broke the rule already. The admin was having war with android SDK and Eclipse. It kept returning an unhandled event loop exception similar to this post on StackOverlow. Tried their solutions and nothing work. It turns out that I just had to remove the whole project from the workspace and then import it back to make … Continue reading
  • Android Task Manager Day 2 (7/1/2014) - What’s Done Today: Activity flow diagram UI mock design (for portrait view) Hello Android App committed (git) dummy Splash Activity implemented The promised second post 😛 . So, the admin did a little draft on activity flow and mock ui. For this simple app, it will only have 3 screens (for now). Probably will have … Continue reading
  • Android Task Manager Project Started!! (6/30/2014) - Now that it’s summer (has been a summer for a long time for the admin..) and the admin “kinda” ran out of things to do (not supposed to be though.. bad me), i decided to write a small android application targeting Android 4.2 Jellybean on Tablet devices. This is not to discriminate mobiles, it’s only … 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
  • [iOS] 落櫻散華抄 (5/1/2014) - About Yahoo, a new post on iOS game! Finally have the time to update this site a little bit once the school is over (though it should probably not be like this). Just been lazy a bit lately. So I found this addicted game on a Taiwanese tech site. Unfortunately, the game is in Chinese … 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
  • Parity Block (1/27/2014) - Part 1: Suppose we are given 3 data disks: disk 1: 1111 0000 disk 2: 1010 1010 disk 3: 0011 1000 ————————————————————– To find compute the redundant disk, we perform mod-2 sum: disk 4: 0110 0010   Part 2: Suppose we updated the value for disk 2: disk 2 old value: 1010 1010 disk 2 … 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
  • [Book] No Longer Human: the First Notebook (1/5/2014) - At the age of ten, Yozo couldn’t understand what human are thinking and why people do the things we do. He thinks three meals a day is actually some kind of a ritual instead of really for satisfying our hungers. Because he can’t seem to understand human actions, before he realizes it, he just goes … 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
  • Transaction Management Overview (12/17/2013) - ACID properties: Atomicity: no partial transaction. It’s either all or none. Consistency: for example, when user transfers fund from one account to another, no penny should be loss during the transfer. The ending states should be consistent Isolation: many of the transactions are execute in parallel. This property ensure that the result of T1->T2 is … 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!!
  • [iOS] ハッピーエンドトリガー (10/3/2013) - Hi iOS gamers! I bumped into this app by chance when I was searching for Danganronpa: Trigger Happy Havoc. Wikipedia listed iOS platform in the section, but apparently, it’s not in the iTune anywhere (or maybe I’m just not on the right land of the planet). Anyways, I typed in “Trigger Happy” in the AppStore, it … Continue reading
  • 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
  • Dummy Post (6/10/2013) - 😛
  • [PC] Mad Father (5/3/2013) - OH MY GOD!! I came across this game when I was hanging out at YouTube. I only use it to find cool games, not really watching their walkthough. What’s the fun of that?? Anyways, this is a super awesome one! The storyline was great! Well, since this is a horror genre (maybe not that scary, … Continue reading
  • [iOS] Pig Shot v1.1.4 (4/23/2013) - This is a cute little action game on iphone. You basically just pull the pig in a sling, tilt right and left to dodge or obtain stuff. If you tap the screen and the pig has eaten food, it’ll release gases and boost up the speed for a short period of time. Although the price … Continue reading
  • Hate Speech (4/19/2013) -   Hate Speech over the Internet Introduction: Rights come with responsibility. While given the freedom of speech, people should still be responsible for what they have said. The internet has provided us a free-writing space to release our feelings and emotions conveniently. Most of the chatting and blogging sites (such as facebook and wordpress) nowadays … Continue reading
  • Protected: 322 – Debate (4/19/2013) - This content is password protected. To view it please enter your password below: Password:
  • How technology benefits our social skills (4/19/2013) - Introduction: What are friends? Friends, along with family, are the people that we interact with everyday. While we cannot choose what family we wish to born in or who these members are, we have a choice for making friends. Friends are usually those people who share common interest and develop interesting conversation. We all have … Continue reading
  • Compiler Notes (4/15/2013) - Notes that I should study/review… 2013-01-10-Note-18-55 2013-01-15-Note-19-45 2013-01-17-Note-19-51 2013-01-21-Note-20-28 2013-01-29-Note-18-36 2013-01-31-Note-19-06 2013-02-05-Note-14-31 2013-02-26-Note-15-14 2013-02-28-Note-18-36 2013-03-05-Note-21-41 Midterm.. 2013-03-12-Note-21-34 2013-03-26-Note-21-51 2013-03-28-Note-08-52 2013-04-02-Note-09-49 2013-04-04-Note-10-22 Chapter Summaries: Area 1: Chapter 1 Chapter 2 Area 2: Chapter 3: no 3.5 & 3.9 Area 3: Chapter 4: 4.1 – 4.6 Area 4: Chapter 5: all Area 5: Chapter 6: **6.4**, no … Continue reading
  • Summary of Chapter 9 (4/14/2013) - MACHINE-INDEPENDENT OPTIMIZATION Global Common Subexpressions: An important optimization is finding computations of the same expression in two different basic blocks. If one precedes the other, we can store the result the first time it is computed and use the stored result on subsequent occurrences. Copy Propagation: A copy statement, u = v, assigns on variable v to another, u. In some circumstances, we … Continue reading
  • Summary of Chapter 8 (4/14/2013) - CODE GENERATION Code generation is the final phase of a compiler. The code generator maps the intermediate representation produced by the front end, or if there is a code optimization phase by the code  optimizer, into the target program. Instruction selection is the process of choosing target-language instructions for each IR statement. Register allocation is the process of deciding which … Continue reading
  • Summary of Chapter 7 (4/13/2013) - RUN-TIME ENVIRONMENTS Run-time Organization. To implement the abstractions embodied in the source language, a compiler creates and manages a run-time environment in concert with the operating system and the target machine. The run-time environment has static data areas for the object code and the static data objects created at compile time. It also has dynamic stack and heap areas … Continue reading
  • Summary of Chapter 6 (4/12/2013) - INTERMEDIATE-CODE GENERATION Pick an intermediate representation: An intermediate representation is typically some combination of a graphical notation and three-address code. As in syntax trees, a node in a graphical notation represnets a construct; the children of a node represent its subconstructs. Three address code takes its name from instructions of the form x = y op z, with at most … Continue reading
  • Summary of Chapter 5 (4/12/2013) - SYNTAX-DIRECTED TRANSLATION Inherited and Synthesized Attributes: Syntax-directed definitions may use two kinds of attributes. A synthesized attribute at a parse-tree node is computed from attributes at its children. An inherited attribute at a node is computed from attributes at its parent and/or siblings.  Dependency Graph: Given a parse tree and an SDD, we draw edges among … Continue reading
  • M2Q8: Ecosystems (4/12/2013) - “Ecosystems are the planets life support system – for the human species and all other forms of life” (MEA, 2005). In the light of this statement answer the questions that follow: What are ecosystem services? Ecosystem services are the goods and services that nature provides to better human living. List the ecosystem services categories and … Continue reading
  • M2Q6: Silviculture (4/12/2013) - What is Silviculture? List the major silviculture practices in BC and describe them. Why is the development of novel silviculture practices useful in the context of a changing climate? use the pine beetle epidemic example as part of your answer. Silviculture is the growing and cultivation of the trees. Practices in BC are:  clearcutting: all … Continue reading
  • M2Q5: EROEI (4/12/2013) - Refer to the figure below and answer the following questions: The figure shows that Canada has the third largest oil reserves in the world. Where are these reserves located and in what form? The oil reserves in Canada lies mainly in Alberta and are found in oil sands in the form of bitumen, which is … Continue reading
  • M2Q4: Carbon Cycle (4/12/2013) - Draw and explain the global carbon cycle. List all major compartments and fluxes and indicate which compartments are sources and which compartments are sinks. (Use appropriate and well defined units). Describe which compartments are the most influential in the cycle and why. Global carbon cycle is how the carbon cycle throughout the globe. The major … Continue reading
  • M2Q3: Biomes (4/12/2013) - Refer to the figure presented below and answer the questions that follow: What does the figure shown above shows? Copy the figure on your answer sheet and label all the missing information. The graph shows the relationship between the climate and the development of biomes What classification criteria are used in the figure? This graph looks at … Continue reading
  • M2Q2: Biodiversity (4/12/2013) - Refer to the graph presented below and answer the questions that follow: Define the concept of species’ richness and species’ evenness. Species richness is a count of number of different species in a given area. The more species found in an area, the richer it is. Species evenness is the relative number of individuals among … Continue reading
  • M2Q1: Ecological Footprint (4/12/2013) - A cattle farm has an area of 10 kilometer square, but an estimated ecological footprint of several times the area of the farm. With this statement in mind, answer the following questions: What is an ecological footprint and how is it calculated? Ecological footprint is a measure of human consumption of natural resources in comparison … Continue reading
  • Protected: The value of the world’s ecosystem services and natural capital (4/9/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Mountain pine beetle and forest carbon feedback to climate change (4/9/2013) - This content is password protected. To view it please enter your password below: Password:
  • 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
  • [PC] SMB Crimson Hours (3/5/2013) - This is a Mario-based game except is super bloody. The characters/monsters are basically the same as what you would expect to see from the Mario game, but this is not for kids. You are controlling a Mario who’s holding a gun and can throw grenade. The monsters (and Mario) normally explode into pieces. The BGM is … Continue reading
  • 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
  • 4.2 Context-Free Grammars (3/2/2013) -   The formal Definition of a Context-Free Grammar Terminals are the basic symbols from which strings are formed. The term “token name” is a synonym for “terminal” and frequently we will use the word “token” for terminal when it is clear that we are talking about just the token name. We assume that the terminals … Continue reading
  • Summary of Chapter 4 (3/2/2013) - SYNTAX ANALYSIS Parsers. A parser takes as input tokens from the lexical analyzer and treats the token names as terminal symbols of a context-free grammar. The parser then constructs a parse tree for its input sequence of tokens; the parse tree may be constructed figuratively (by going through the corresponding derivation steps) or literally. Context-Free … Continue reading
  • Summary of Chapter 3 (3/2/2013) - LEXICAL ANALYSIS Tokens. The lexical analyzer scans the source program and produces as output a sequence of tokens, which are normally passed, one at a time to the parser. Some tokens may consist only of a token name while others may also have an associated lexical value that gives information about the particular instance of … Continue reading
  • Summary of Chapter 2 (3/2/2013) - A SIMPLE SYNTAX-DIRECTED TRANSLATION The syntax-directed techniques in this chapter can be used to construct compiler front ends, such as those illustrated in the follow figure:   The starting point for a syntax-directed translator is a grammar for the source language. A grammar describes the hierarchical structure of programs. It is defined in terms of … Continue reading
  • Summary of Chapter 1 (3/2/2013) -  Language Processors. An integrated software development environment includes many different kinds of language processors such as compiler, interpreters, assemblers, linkers, loaders, debuggers, profilers. Compiler Phases. A compiler operates as a sequence of phases, each of which transforms the source program from one intermediate representation to another. Machine and Assembly Languages. Machine languages were the first-generation … Continue reading
  • Video Games and Violence (2/20/2013) - Introduction The Dawson College shooting incident drew a devastating attention to both Canadian and the world. According to a report on CBC news (“Shooting in Montreal”, 2006), the event happened on the afternoon of September 13, 2006. Kimveer Gill carried three guns and shot people at random in Dawson College, Montreal, resulting one innocent death, … Continue reading
  • [iOS] Neptunia / ネプテューヌ – iTouch (2/17/2013) - About This Neptunia app is a derivation (side product) from a PS3 game called “Hyperdimension Neptunia”. The app has two versions (English and Japanese) currently selling in the iTune store. The English version was developed by NIS America and was published just this month!!! (>///<)!  The Japanese version was selling by Idea Factory (which is … Continue reading
  • Protected: 383 – Introduction to Go Programming Language (2/10/2013) - This content is password protected. To view it please enter your password below: Password:
  • Persuasive: Genetically Engineered Food (2/10/2013) - Introduction Genetically engineered (GE) food is often being referred to “Frankenfood”, but who is Frankenstein? According the original novel by Mary Shelley (1998), Victor Frankenstein was the creator of the creature which was never given a name in the story. The creature had a really pure heart and was willing to help the others in … Continue reading
  • 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
  • Protected: Informative: Genetically Engineered Food (2/10/2013) - This content is password protected. To view it please enter your password below: Password:
  • 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
  • Women Take the Page (2/10/2013) - The news item discussed in this paper is: Sergejew, Kyla. 2011. “Women take the page.” Metro, March 30. Print.   The word “equality” does not exist anywhere in the modern world nor will we find its occurrence in the future. Sex inequality is still a main international issue in our current society. The Metro news … Continue reading
  • Protected: 130 – Islam (2/10/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: 130 – Black Death (2/10/2013) - This content is password protected. To view it please enter your password below: Password:
  • Harper’s Apology on Residential School (2/9/2013) - What has been done in the past cannot be undone anymore. In the article, “Prime Minister Harper offers full apology on behalf of Canadians for the Indian Residential Schools system,” (2008) Steven Harper delivers an apology to the First Nations. The Prime Minister apologized for separating aboriginal children from their homes and traditions, providing inadequate … Continue reading
  • Protected: X99 – College and Success (2/9/2013) - This content is password protected. To view it please enter your password below: Password:
  • 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
  • Protected: Q5: Environmentalism vs Environmental Science (2/8/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Q4: HANPP (2/8/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Q3: Exponential Growth Model (2/8/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Q2: Elk Carrying Capacity (2/8/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Q1: Increase of CO2 (2/7/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Seeing the Lights on GMOs (2/7/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Who's Afraid of GMO's (2/7/2013) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Global patterns in human consumption of net primary production (2/7/2013) - This content is password protected. To view it please enter your password below: Password:
  • [PC] Fate/Stay Night (2/6/2013) - Haa- I owe this Type-Moon project a review for a long time. I watched the fate/stay night anime probably more than two years ago, became a huge fan of Saber, and played the visual novel. Apparently, this was the most successful visual novel they ever made. Type-moon was originally is doujin company and, according to … 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
  • Protected: The human footprint in the carbon cycle of temperate and boreal forests (1/22/2013) - This content is password protected. To view it please enter your password below: Password:
  • Approaching a state shift in earth's biosphere (1/11/2013) - Localized ecological systems are known to shift abruptly and irreversibly from one state to another when they are forced across critical thresholds. Here we review evidence that the global ecosystem as a whole can react in the same way and is approaching a planetary-scale critical transition as a result of human influence. The plausibility of … Continue reading
  • 1.1 Language Processors (1/9/2013) - A compiler is a program that can read a program in one language – the source language – and translate it into an equivalent program in another language – the target language. If the target program is an executable machine-language program, it can then be called by the user to process inputs and produce outputs. … Continue reading
  • Jan 9 (1/9/2013) - Compilers: any program that translates from one language (formal computer language) to another (machine/emulator)  
  • 1.10 Points to Review (1/6/2013) - A database management system (DBMS) is software that supports management of large collections of data. A DBMS provides efficient data access, data independence, data integrity, security, quick application development, support for concurrent access, and recovery from system failure. (Section 1.1) Storing data in a DBMS versus storing it in operating system files has many advantages. … Continue reading
  • 1.9 People who Deal with Databases (1/6/2013) - Database implementors, who build DBMS software; end users, who wish to store and use data in a DBMS Database application programmers develop packages that facilitate data access for end users, who are usually not computer professionals, suing the host or data languages and software tools that DBMS vendors provide Database administrator is responsible for: Design of the conceptual … Continue reading
  • 1.8 Structure of a DBMS (1/6/2013) - When a user issues a query, the parsed query is presented to a query optimizer, which uses information about how the data is stored to produce an efficient execution plan for evaluating the query. An execution plan is a blueprint for evaluating a query, and is usually represented as a tree of relational operators (with … Continue reading
  • 1.7 Transaction Management (1/6/2013) - A transaction is any one execution of a user program in a DBMS. Concurrent Execution of Transactions locking protocol is a set of rules to be followed by each transaction and enforced by DMS in order to ensure that even though actions of several transactions might be interleaved, the net effect is identical to executing all … Continue reading
  • 1.6 Queries in a DBMS (1/6/2013) - Questions involving the data stored in a DBMS are called queries. Relational calculus is a formal query language based on mathematic logic and queries in this language have an intuitive, precise meaning. Relational algebra is another formal query language, based on a collection of operators for manipulating relation, which is equivalent in power to the calculus. A DBMS … Continue reading
  • 1.5 Describing and Storing Data in a DBMS (1/6/2013) - A data model is a collection of high-level data description constructs that hide many low-level storage details A semantic data model is a more abstract, high-level data model that makes it easier for a user to come up with a good initial description of the data in an enterprise. A database design in terms of a semantic model serves as a … Continue reading
  • 1.4 Advantages of A DBMS (1/6/2013) - Advantages of DBMS: Data independence: Application programs should be as independent as possible from details of data representation and storage. The DBMS can provide an abstract view Efficient data access: A DBMS utilizes a variety of sophisticated techniques to store and retrieve data efficiently. This feature is important for external storage devices. Data integrity and … Continue reading
  • 1.3 File Systems versus A DBMS (1/6/2013) - Drawbacks of storing the data (500GB) in a collection of operating system files: Do not have such large space of main memory! Even if we do, on a 32-bit addressing computer system, we cannot refer directly to more than about 4GB of data! Concurrency issue! Data restoration if the system crashes Operating systems provide on … Continue reading
  • 1.2 A Historical Perspective (1/6/2013) - The first general-purpose DBMS was designed by Charles Bachman in 1960 and was called the Integrated Data Store (the basis for network data model) Information Management System (IMS) DBMS, developed by IBM, formed the basis for hierarchical data model. Edgar Codd proposed relational data model in 1970
  • 1.1 Overview (1/6/2013) - Database Design: How can a user descirbe a real-world enterprise in terms of the data stored in a DBMS? What factors must be considered in deciding how to organize the stored data? Data Analysis: How can a user answer questions about the enterprise by posing queries over the data in the DBMS? Concurrency and Robustness: How does a … Continue reading
  • Chapter 1 Introduction to Database Systems (1/6/2013) - A database is a collection of data, typically describing the activities of one or more related organizations A database management system (DBMS) is software designed to assist in maintaining and utilizing large collections of data.
  • Protected: Prolog – Story Generator (12/14/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Haskell – Hitori (12/14/2012) - This content is password protected. To view it please enter your password below: Password:
  • 11/30 (11/30/2012) - Comparative Programming Languages Haskell Prolog Language structures, characteristics   Paradigms: functional object-oriented logic imperative declarative Compiled vs. Interpreted: Compiler Interpreter Typing Static Dynamic duck typing strict typing type inference (haskell) type checking Binding Static Dynamic Memory Management garbage collection manual memory management Concurrency: Parallelism threads sharing memory processes Portability Efficiency (Programmer, Computation) Closures First-class functions … Continue reading
  • 11/28 (11/28/2012) - Context-free grammar S – ab S – A A – a A – b   CAPS: non-terminal (can’t stop till all gone) lowercase: terminal symbols   S => ab, a, b – ab – A – a – A – b   parse.pl > parse([s(3)], S). > parse([a(3)], S). > parse([b(3)], S). > parse([c(3)], S). … Continue reading
  • 11/26 (11/26/2012) - Specific Domain Language Examples: Awk: process text files unix/linux command line tool used in conjunction with others e.g. grep VHDL: VHSIC hardware description language design and simulate hardware/circuits can test virtually before building HTML: mark-up for web pages Maple/Mathematica/Matlab: mathematical computation include visualization e.g. plotting often used via interpreter SQL relational database management several dialects … Continue reading
  • 11/23 (11/23/2012) - Domain Specific Language dedicated to a problem domain, a representation technique or a solution technique   Advantage: more efficient for specific problems very clear code that documents itself the code is written at the level/focus/vocabulary of the domain easier to use, easier to train control of how it’s used ensures safety involve domain experts more … Continue reading
  • 11/21 (11/21/2012) - ——————— bw.pl > restart. > put_on2(c,a). > listing(on/2), list(move/3). > put_on3(c, a, [on(a,b),on(b,c), on(c,table)],S). > start(X), put_on3(c,a,X,S). ——————— Logic Programming Not really a general purpose technique difficult to do the things easier in other programming paradigms Some things are easier: implications backtracking is built in pattern matching -> fining possible solutions Things there are hard: … Continue reading
  • 11/16 (11/16/2012) - -------- sample 1114.pl ---------- > contains(a.leaf(X)). > contains(a, tree(b,  leaf(X), leaf(Y))). > contains (a, X).      a       /        ...  ...        ...       /        a    ...    /     ...  ... ---------------------------------- ---------- bw.pl ----------------- %:- dynamic(on/2). %on (a, b). %on (b, c). %on (c, table). restart :- retractall(on(_,_)),     retractall(move(_,_,_)), … Continue reading
  • 11/14 (11/14/2012) - ------ cutpr.pl --------- p(X,Y) :- a(X), b(Y). p(X,Y) :- a(X), !, b(Y). p(X,Y) :- X = Y, c(X). a(1). a(2). a(3). b(1). b(2). b(3). c(1). c(2). ------------------------ -------- allAns.pl ------------ > bagof(X,q(X,Y,Z), Bag). > setof(Y,q(X,Y,Z), Bag). > findall(Y,q(X,Y,Z), Bag). = bagof(X,X^Z^q(X,Y,Z), Bag). > setof(X,X^Z^q(X,Y,Z), Bag). > finall(X,(qX,Y,Z), X>1), Bag). ------------------------------- bagof(Target, Goal, Bag) setof(Target, Goal, … Continue reading
  • [iOS] TapToTrack v2.03 (11/13/2012) - This is an app that helps you keep track of how much you spent easily. You can set “Add expense on startup” on so that every time you open the application, it will automatically show the add expense screen. Otherwise, you can turn it off to add manually by hitting the big circly ‘+’ symbol … Continue reading
  • [iOS] Speed Master v1.1 (11/12/2012) - About: This is an app developed by HAYATO SAITO and I can’t really provide any further info about the developer since it was written in Japanese. However, if you want to check this app out, you can view it from the AppStore. Review: As cool as the title sounds, it really isn’t much of a … Continue reading
  • Protected: 13 – Improving Performance (11/4/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: 12 – CPU Performance: Unfolded Data Flow Paths (11/4/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: 11 – Controller Specification (11/4/2012) - This content is password protected. To view it please enter your password below: Password:
  • 10/29 (10/29/2012) - Prolog rules Implication x :- y. Prolog X <- y Logical Notation x is implied by y OR if y, then x. Sentence y. => makes x True x :- y, z. => in prolog, comma is AND x <- ( y ^ z ) Logical Notation x :- y ; z. => semicolon is … Continue reading
  • Lab 05 (10/18/2012) - ROM8x4.dwv library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; entity ROM8x4 is port (addr : in std_logic_vector(2 downto 0); data : out std_logic_vector(3 downto 0)); end ROM8x4; architecture behav of ROM8x4 is type memory is array (0 to 7) of std_logic_vector(3 downto 0); begin process is variable ROM : memory; begin ROM(0) := "0011"; ROM(1) := "1010"; … Continue reading
  • 10/17 (10/17/2012) - Compiler optimization Inline code macro: replace function calls with actual codes move code out of loops loop invariant code notion i.e.: for( int i=0; i< 1000000; i++){ arr[i] = i+x*y } put some variables into registers strictly evaluate some ports reorder instruction for process pipeline Usually have to use an option for compiler Haskell : … Continue reading
  • 10/17 – Latin Verb (PPT) (10/17/2012) - Exam question: what’s the root of ‘audition’? ‘i’ is the phonetic vowel     probation noun -> ppt probate adj. -> ppt prob + a + t *e is ignored because it’s just a rule, not morpheme   probe <-non past participle       preface   fact => face + e + t <- … Continue reading
  • Protected: Latin Verb (10/15/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: 10/15 (10/15/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: 10/15 – Hardware Design (10/15/2012) - This content is password protected. To view it please enter your password below: Password:
  • 10/15 – Latin Verb (10/15/2012) - heuristic: -ion -> Morpheme: past participant legion region opinion French rule Vowel: c -> y spec (Latin) -> spy (French) fac -> satisfact[ion] (Latin) -> satisfy (French) Correction                 => voiced voiceless con + (root) reg or rec? + e + t + ion     => voiceless voiceless (assimilation)           ^ … Continue reading
  • Protected: Haskell – Exercise 04 (10/14/2012) - This content is password protected. To view it please enter your password below: Password:
  • Haskell – Lazy Evaluation (10/12/2012) - Evaluation Strategies An expression that has the form of a function applied to one or more arguments that can be “reduced”by performing the application is called a reducible expression, or redex for short. As indicated by the use of quotations marks in the preceding sentence, such reductions do not necessarily decrease the size of an … Continue reading
  • Protected: Haskell – Exercise 03 (9/29/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Haskell – Exercise 02 (9/29/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: 01 Computer Organization and Architecture (9/21/2012) - This content is password protected. To view it please enter your password below: Password:
  • Reading List (8/31/2012) - Week 1-2: Review Appendix C (CD-ROM): Sections C.1 to C.4, C.7, C.8 (to middle of page C-54), C.10, C.11 Problems (pg C-80): C.3, C.5, C.11, B.18, B.19, C.20, C.21 (Use VHDL rather than Verilog), C.35, C.37, C.38, C.39 Ashendon’s “Student’s Guide to VHDL”, Chapter 1 Week 3-6: State machine diagrams, instruction set architectures, and intro … Continue reading
  • Protected: Haskell – Exercise 01 (8/30/2012) - This content is password protected. To view it please enter your password below: Password:
  • [iOS] Feeling Note v1.5 on iPod Touch (8/29/2012) - About Feeling Note: This app is developed by guru soft and is compatible with iPhone, iPod touch, and iPad. Requires iOS 5.0 or later. View the App Store for more information. It basically helps you record your current feelings with high security and some cool features. Review: You might or might not find this app useful … Continue reading
  • Protected: A Linguistic Intro – Chapter 1 (8/15/2012) - This content is password protected. To view it please enter your password below: Password:
  • 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
  • Protected: Parallel Program Executor (8/12/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Theory – Assn 5 (8/11/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Notes for Linguistic Final (8/9/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Theory – Assn 4 (8/2/2012) - This content is password protected. To view it please enter your password below: Password:
  • Theory – Assn 3 (8/2/2012) - -> View PDF 1. Define the following terms precisely and briefly: a. Race Condition Two or more processes are reading or writing shared data and the final result depends on the sequence of the events. b. Mutual Exclusion One way to avoid race condition by making sure if one process is in the critical region, … Continue reading
  • Theory – Assn 2 (8/2/2012) - View PDF 1. What happens to the children, when the parent process is killed? What happens to them when the parent terminates? In both cases, they continue running. 2. Does the child process see changes in variables made by the parent process before the fork() statement that creates the child? What about the value changes … Continue reading
  • Attack from Inside the System (8/1/2012) - Trojan Horses A seemingly innocent program contains code to perform an unexpected and undesirable function The function includes: modifying, deleting, or encrypting the user file copying user files to a place where the cracker can retrieve later sending the files to the cracker or a temporary safe hiding place via email/FTP To run a Trojan … Continue reading
  • TLB (8/1/2012) - Translation Lookaside Buffers Let us now look at widely implemented schemes for speeding up paging and for handling large virtual address spaces, starting with the former. The starting point of most optimization techniques is that the page table i in memory. Potentially, this design has an enormous impact on performance. Consider, for example, a 1-byte … 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
  • [iOS] The Economist v2.01 on iPod Touch (7/27/2012) - About the Economist The Economist is a weekly international news and business publication, offering clear reporting, commentary and analysis on world current affairs, business, finance, science and technology, culture, society, media, and the arts. ~ The Economist Newspaper Group Inc. Review Not only does this app holds great articles as described above from the developing … Continue reading
  • Protected: The History of Indo-European Languages (7/24/2012) - This content is password protected. To view it please enter your password below: Password:
  • 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
  • [PSP] YS Seven (7/13/2012) - It’s a simple RPG that you basically just running around, hitting ‘X’ button to kill monsters and leveling up. The story was more than touching. Totally recommend playing this game if you love reading plot and less time fighting. Like any other RPG games, besides the main quest, you can complete several small side-line quests … Continue reading
  • Protected: First & Second Language Acquisition (7/13/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: Human Processing: Brain, Mind, and Language (7/13/2012) - This content is password protected. To view it please enter your password below: Password:
  • Protected: The Origin and Evolution of Human Language (7/13/2012) - This content is password protected. To view it please enter your password below: Password:
  • 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