CK's BLOG
this site the web

Recent Photos

image
image
image

If you sometimes have to write some batch script (I do mainly for automation stuff) here is a very good complete DOS tutorial

http://www.dostips.com/

If you are a fan of building Robot or maybe a fan of Arduino (I am.)

http://www.robotshop.com/blog/en/how-to-make-a-robot-lesson-1-3707
http://www.robotshop.com/blog/en/arduino-5-minute-tutorials-lesson-1-software-3640

I recommended

The Arduino Starter Kit


Checking specific process listening on specific port

- Microsoft Start button + R
- Type CMD
- netstat -aon | findstr 0.0:PORT_NUM

*PORT_NUM is your port number.

Ex: netstat -aon | findstr 0.0:8080

Curently to activate license for monotouch per IMAC, you have to install later version of Xamarin which probably will come with Xamarin.IOS Framework that your existing IOS application is not supported


Curently to activate license for monotouch per IMAC, you have to install later version of Xamarin which probably will come with Xamarin.IOS Framework that your existing IOS application is not supported.
So how to activate license for monotuch per IMAC without having to install Xamarin.

Here is the work around (so-called Offline Activation http://docs.xamarin.com/guides/ios/getting_started/installation/offline_activation):

1- Install Xamrin and activate the IMAC
2-   Go to Finder and Hold down Ctrl Key on Go Menu in Finder and you will see Library
3-  Click on Library and go to Library\Monotouch\ And back up License.v2
4- Erase HD, Redownload Lion OS, Re-install, and Clone Co-worker’s HD using Migration/Assistance tool so that you do not have to re-install
all the applications again
(tip: http://www.youtube.com/watch?v=OtUw-vo606w)
- Then past the back up of License.v2 under Library\Monotouch\ and It compliles successfully now.
There you go! try to compile your project now.

Remark of the issues that leads to the solution above:
- If we do not activate the monotouch per IMAC we will get error - mtouch exited with code 98
that means you have not activated your monotouch on your MAC system.
http://www.gregoryvarghese.com/index.php/mtouch-exited-with-code-98/
- If you add reference to dll Microsoft.Synchronization.Data.dll in your project mainly for client/server database Synchronization:
after you install later version of Xamarin to activate your IMAC you might get errors  "is marked as an override but no suitable method found to override" on Methdo ApplyChange(...) which is an abstract method
on Base class ClientSynProvider
public abstract SyncContext ApplyChanges (
SyncGroupMetadata groupMetadata,
DataSet dataSet,
SyncSession syncSession
)

Following the solution I have mentioned got rid of these issues.

Fixing Bugs vs Working on Product Features

Being a software engineering, we always wish to be part in a challenging projects balancing with bug fixing. Fixing bugs on daily basis will at least improve software's engineering knowledge but if compared to software engineering working mainly on production features; of course, they will learn a lots more than just fixing bugs.
However, the positive points of SE got from working on fixing the bugs are:
- Improve patient.
- Improve their judgment (a good SE in fixing bug, he or she is not immediately starting to debug he or she will first try to understand the flow of the code and then judge and debug.)
- Improve their understanding about the productions' functionality much more because he or she will have fixed bugs in various areas of the application with in turn help them understanding in those areas.
Fixing bugs somehow SE will run into a feature-like bugs but as said working with features is more interesting , exciting, self-improvement and last but not least gains a vast of knowledge.

Word of the day

1- Bees Knees (adj):
In Eng: very good, the best...
In Khmer: ល្អណាស់, ល្អជាងគេ
 Ex:
The pants you are wearing are the bee's knees.
That jazz band is the bees knees.
Her cooking is the bees knees.

Reason of the creation of this word:
"When bees flit from flower to flower the nectar sticks to their legs. The phrase "bee's knees" means sweet and good, because the knees of the bee are where all the sweet, good stuff is collected."

ហេតុផលនៃការបង្កើតពាក្យនេះ:
"នៅពេលឃ្មុំហើរយ៉ាងលឿនពីកន្លែងមួយទៅកន្លែងមួយទឹកដមផ្កាស្អិតជាប់ជើងរបស់ពួកេវា។ឃ្លា"bee's knees(ជង្គង់ឃ្មុំ)មានន័យថាផ្អែមហើយល្អពីព្រោះជង្គង់ឃ្មុំគឺជាទីកន្លែងជាតិផ្អែមនឹងរបស់ល្អៗត្រូវបានប្រមូល"

2- Nectar (n):
In Eng: A sugary fluid secreted by plants, esp. within flowers to encourage pollination by insects and collected by bees to make honey.
In Khmer:
វត្ថុរាវដែលមានជាតិស្ករផ្អែមផលិតចេញពីរុក្ខជាតិជាពិសេសនៅក្នុងផ្ការដើម្បីទាក់ទាញការពង្រាយលំអងផ្ការពីពពួកសត្វល្អិតនឹងប្រមូលពីពពួកឃ្មុំដើម្បីបង្កើតជាទឹកឃ្មុំ។
;ទឹកដមផ្កា


Resolve Ubuntu 12.04 stuck at installing VMware Tool

Recently I tried to install Ubuntu 12.04 on my new laptop HP Envy 17 and It always stuck at Installing Vmware Tool like following:

******************************************************************
******************************************************************
Vmware Easy Install

PLEASE WAIT! VMware Tools is currently being 
installed on your system. Depending on the 
version of Ubuntu you are installing, you may 
log in below and use the system during 
intallation. Otherwise, please wait for the 
graphical environment to launch. Thank you.

******************************************************************
******************************************************************
ubuntu login:_
 
To resolve the issue:
 
Follow the 3 Steps ...
  1. Restore the /etc/issue file:
    sudo mv /etc/issue.backup /etc/issue
  2. Restore the /etc/rc.local file:
    sudo mv /etc/rc.local.backup /etc/rc.local
  3. Restore the /etc/init/lightdm.conf file:
    sudo mv /opt/vmware-tools-installer/lightdm.conf /etc/init
Then reboot.

Also after reboot even I did full screen from VMware Player the Ubuntu screen is still small  so what I have to do is just go to setting icon and go to Displays.... like following picture and try to change resolution till you find the best one:



Then you will be asked to login to your system graphically and everything is fine.
Hope it helps!
Vic
 
 

Just An Information

I will updat useful information as frequent as I could...

Technology

Usage Policies