Sunday, February 2, 2014

ទឹកចិត្តអ្នកម្តាយ (Khmer Buddhist Hymn: Mother's Heart)

When I have a boring in my life!
When there is someone to make my feeling down!
When I am upset!
When I have a stress!
When I get some thing failure!
When I miss my mother!
When I stay very far away from my parents!
When I have done something successfully!
When I get exciting with what I have done!
When I have much money on some days!
When I did something wrongly!
 ....

I always listen to  Khmer Buddhist Hymn: Mother's Heart


It helps to encourage me and motivate myself.

I MISS MY MOTHER SO MUCH, IT IS OVER 600 DAYS ALREADY SHE PASSED AWAY FROM MY LIFE :'(

Friday, January 10, 2014

How to use bitBucket with EGit in Eclipse

Git is becoming more and more popular these days, and when we really use version control systems like Git or SVN, we actually want to share our codes with other developers. Thus, we do need a Git server to host the codes, like www.bitBucket.org, which is a Git server offering free limited use.

To set up a project in Eclipse, and push the project to bitBucket, you need to do the following steps:

Tuesday, January 7, 2014

I Love My Mother

Today is 666 days that mother left me. :'(

How to increase disk space on existing AWS EC2 Linux (Ubuntu) Instance without losing data

Let’s say you have a Linux Amazon Web Services (AWS) EC2 Instance up and running and you start running out of space. I’ll show you how to quickly clone its disk (EBS volume) onto a bigger disk (also EBS), replace the smaller disk with the bigger one and boot off the bigger (new) disk. No need for any third party tools like Acronis or Ghost or even rsync.

Create Snapshot of the original disk:

First thing we’ll do is to create a Snapshot of the original disk so that we can then create a new, bigger volume out of that Snapshot. There are a couple of things we have to note down first: the Instance number and then the volume attached to that Instance. The easiest way to fine the Instance number is in the Instances part of the AWS Management Console. It will start with “i” and be under the “Instance” column. Now navigate to the Volumes section (Elastic Block Store section) and locate the volume that is attached to your Instance. You can see the Instance number under the “Attachment Information” column. The first half of that string will be the Instance number. Please see the images below for an example.

Talent - ស្នេហ៍បរិសុទ្ឋ By Chey Sovath-S2 On 21-Dec 2013

Tuesday, December 24, 2013

Tea Ron Na Kam Duong Jet by Nop Bayarith

My favorite song in year 2000

Objective-C vs PhoneGap

This is the answers for whom would like to build mobile application whether which one is better than  between Native Object-C and PhoneGap (web app combiner or wrapper)?

------------
There are multiple ways of developing iOS applications. I like to program in Objective-C to make my iOS apps.
But you can do most of the things using jQTouch, jQMobile, PhoneGap etc.

Question:
When is it suitable or appropriate to use the native platform?

There are 6 answer for your consideration

Answer 1:
  1. PhoneGap is essentially a wrapper, so it will always lag behind the latest features, in addition to possibly having bugs in some edge cases.
  2. Not all platform features are going to be available in PhoneGap, so you'll need to know what is not supported before you decide to use it.
  3. Most hardware acceleration features will never be fully available, so if you want to make an advanced game with high end graphics, it's not going to work well.
  4. The maintenance required to do custom modules that are not available out of the box may actually take more time than developing native.
  5. Do you really need to run on more than 2 mobile OSes? Writing for iOS and Android will give you a fairly large market coverage, so you may be better off going native.
PhoneGap is designed for more simple web apps, data driven apps, and social apps that require connectivity to work. You may end up rewriting the app in it native language if your apps becomes popular and you need to support more features, but if you can launch an idea quickly on multiple devices, then you have a competitive advantage in the market.
---------------
 
Answer 2:

If you have a need to develop an app for multiple mobile platforms, quickly, with a minimum effort (i.e. implement once), use PhoneGap or similar. These frameworks provide a "lowest common denominator" type of environment, so you lose access, often, to capabilities of the native platform.
On the other hand, if you are developing an app only for iOS, then by all means, develop it in Objective-C as a native app. You then have at your disposal the complete SDK and capabilities of the platform! This is, of course, Apple's recommendation as a best practice for developing iOS apps!
In my own experience, I had a conversation with my CTO before I joined my company about whether we should develop native apps for our platform or use PhoneGap. We agreed that developing native apps was the way to go because we could take advantage of each platform's specific capabilities. Beyond that, a native app would provide a better user experience on the platform, because it would behave more like other native apps the user might be familiar with. Think about that last idea. Think of all your apps you enjoy. As a developer, you can probably tell -- and quickly -- which ones are native and which ones are not, just by using them. Which do you think provide a better user experience? Something to think about. :-)
In the end, it's up to you. You said you like Objective-C programming. So, go for it and go native! On the other hand, if you have multi-platform aspirations, and you are familiar with PhoneGap (or others) or want to learn about them, then go for it! :-)
 --------
Answer 3:
From my experience all of the JavaScript applications have been slower than apps written in the native platform. Not because of the phone or JavaScript, but because of the rendering of the DOM elements.
-------

Answer 4:
Large data storage for cross mobile compatibility will be a problem with phonegap. If you need the app to store at least 10 mb worth of data (media files, documents, etc...), you'll be limited by 2-5mb or localStorage or cache manifest. See my related question here:
html5 to store greater than 50 mb worth of data?

-------

Answer 5:
I tried phonegap, and the first thing that annoyed the hell out of me was that you could not control the keyboard like you are used to in obj-c. The keyboard is exactly the same you get when browsing a website, it has an extra pane at top of the keyboard with "next/previous" buttons. Therefore I am now trying out Titanium Appcelerator instead, where you can create native GUIs using javascript instead.
-----------
Answer 6:
I think that if its within your abilities to learn or use Objective-C, it's almost always best to do so. Using the native-SDK gives you access to everything on the device in the most compatible way possible. Using layers of abstraction only hurts functionality, customizability and debugging.
That said, it seems that there are some powerful and well written frameworks to compile HTML, CSS and JS into native apps. That may be appropriate if you are no a really tight schedule or if you need to get a quick prototype out, and you are a JavaScript ninja, but a novice Objective-C coder.

 Source: http://stackoverflow.com/questions/7026786/objective-c-vs-phonegap

Thursday, December 19, 2013

How to host a static website on S3

UPDATE: I was horribly wrong about how to do the domain forwarding for naked domains – however there’s a simple answer. The good folks at wwizer have got a free naked domain rewriting service. In order to use it simple change your A (Host) to point to the ip address 174.129.25.170 and you’ll be sorted. wwwizer naked domain redirect

In February this year Amazon announced that you can now host static websites on S3. This is a great cost effective way of hosting small, simple websites (like an iPhone app site for example).
Here’s how you can do it:
  • Buy the domain name for the site you want to host. It’s best to do this first, because the S3 bucket name has to be the same as the domain.
  • Get an S3 account (it’s cheaper than you think, I only get billed 3c a month).
  • Log into the aws management console and create a bucket with the same name as your domain (complete with www). So for my website www.bigbuttonsapp.com I called the bucket www.bigbuttonsapp.com

Tuesday, December 17, 2013

Alan Jackson - Remember When

Brad Paisley - Little Moments (+playlist)

A Very Responsible Man


 Image from google search
At least It has been over 7 nights already I've been staying at office.

I work over 20hours per day. (7nights x 20hours = 140hours)

These days I have a very urgent work to complete it as soon as possible so I must take care of it responsibly.

I've tried all my best already and hope every things are going smooth and well.

Every night at office, I slept on chair all the time and now I've got backache.

My singly life are going very challenging, my struggle will bring me a very preferable results from people around.

I love to help people to make them more happier and happiness. Love to see people smile and their improvement.

I never think of my own healthy at all even I worked over midnight, no sleep, no enough eating or no travel but what I am doing those are called me "A very responsible man".

I like to do my works, I'd like to take responsible for it even I got nothing.
I don't like to do the works which I feel bored or that is not my responsible even they give me a million US dollars.

-------------------
by: Han4U


Sunday, December 1, 2013

Like a "BOSS"

What I wish it's coming.
I wished to become a business owner when I lived with my mother.
I always prayed for this opportunity all the time when I went to pagoda near my home.

I'll try to commit to make it more successful in this life.

By: Han4U

I Love Music

I love music and I love it since I was their ages.



Life + Music + Sport = Refresh
Life + Skill + Commitment = Successful

In my life, I love to study in field of Information Technology as my skill and for my free time I love to play Football and Volleyball. I was the one who can play football & volleyball better than other boys when I was young.

I was chosen to play with elder players at my hometown because I played good and fast.

Besides sports, I really love music also. I can sing well as boys above when I was their ages.

By: Han4U

Tuesday, November 5, 2013

Loss of Motivation

Motivation is a way of pushing harder and striving for something.

I have no more motivation, I lose motivation with my current career.
Hundred of works and problems need to resolve everyday.

I'm gonna look for other professional career opportunity and work with professional people.

 “Only Great Staff can contribute to make a Company become a Great one”. 

By: Han4U

Doing Business in Cambodia Becoming More Difficult

By and - October 30, 2013 

Cambodia ranked 137 out of 189 countries in the World Bank’s Doing Business 2014 report released Tuesday, the first drop in at least two years that shows conducting business in the country is becoming more difficult.

The report ranks countries in 10 categories, including starting a business, dealing with construction permits, getting electricity, registering property, access to credit, protecting investors, paying taxes, trading across borders, enforcing contracts and resolving insolvency.

“Cambodia made starting a business more difficult by introducing a requirement for a company name check at the Department of Intellectual Property and by increasing the costs both for getting registration documents approved and stamped by the Phnom Penh Tax Department and for completing incorporation with the commercial registrar,” the report states.

“Starting a business [in Cambodia] requires 11 procedures, takes 104 days, costs 150.6% of income per capita and requires paid-in minimum capital of 27.5% of income per capita,” it adds.

World Bank communications officer in Cambodia Bou Saroeun said Tuesday that compared to the 2013 report, “it required two more procedures, took 19 more days, and cost 50.1 percent more.”

Out of 10 categories in the report, Cambodia dropped down the ladder on four—starting a business, dealing with construction permits, registering property and resolving insolvency. But it also improved in four categories—getting credit, paying taxes, trading across borders and enforcing contracts. Two categories, getting electricity and protecting investors, remained unchanged.

The report points out that Cambodia’s most significant drop was in the category of starting a business. In 2013, the country placed 181 when it came to starting a business, now it is at 184, which is the sixth-to-last spot ahead of countries including the Democratic Republic of the Congo, Eritrea and Burma.

The country also dropped in registering property, 112 to 118; dealing with construction permits, 157 to 161; and resolving insolvency, 161 to 163. In the four categories that it improved, the largest increase was in getting credit, which jumped from 52 for 2013 to 42 for 2014, according to the report.

The other three improvements increased only one point each—paying taxes, 66 to 65; trading across borders, 115 to 114; and enforcing contracts, 163 to 162.

Getting electricity stayed the same at 134 and protecting investors also stayed the same at 80.
According to the report, Cambodia still lags far behind some of its Southeast Asian neighbors—Malaysia ranked 6 in the report; Thailand ranked 18; and Vietnam ranked 99. Laos, however, fell behind Cambodia at 159.

Though none of the measures on which the country was judged were based on the political environment, Mao Thora, secretary of state at the Ministry of Commerce, on Tuesday blamed the country’s poor showing on the opposition CNRP’s ongoing protests and political uncertainty following July’s national election.

“We recognize with the report because the activity of garment factories has been reduced, which causes the business in Cambodia to drop…because of the [election] demonstrations. Businessmen lose confidence and they hesitate to buy goods or products because CNRP has demonstrations,” he said.

The World Bank report also did not measure business confidence or sales.

Srey Chanthy, interim president of the Cambodian Economic Association, said he hoped the slide back was just a hiccup, as the country has plenty to offer investors, including land and labor.

“Cambodia still has a lot of re­sources they can invest in…the opportunity is still there,” he said.

The report comes on the heels of another report by the World Bank released earlier this month that states Cambodia’s economy would remain stable over the next few years with a gross domestic product of 7 percent as a result of the country’s strong agricultural, construction and tourism sectors, as well as exports.

Source: Cambodia Daily