Ran into something strange today. I ssh'ed from my new shiny MacBook Pro to my old desktop, where I have some files with names containing Chinese characters. All Chinese characters were presented as question marks when I ran ls.
Been Googling a bit before I realised that locale settings are different on these two platforms. I added the following two lines into ~/.bash_profile on my OS X and everything then became familiar again.
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
2015年6月19日星期五
2015年6月18日星期四
How to install shadowsocks on Mac OS X Yosemite
Another place holder that I'd like to fill in when I have time (cliche, I know).
Basically it involves installing python with Homebrew (standard procedure) and then installing shadowsocks with pip, as on a Linux box.
Basically it involves installing python with Homebrew (standard procedure) and then installing shadowsocks with pip, as on a Linux box.
2015年6月3日星期三
A vs. An
I was writing something else when I mentioned my cellphone. The questions is, should it be a HTC One or an HTC One?
Actually I've had this question for quite some time, only this time I took action and investigated it finally.
Here is what I find - http://www.englishpage.com/articles/a-vs-an.htm.
USE 5 & 6 clearly explains that it's the sound not the spelling that counts.
So an HTC One it is.
Actually I've had this question for quite some time, only this time I took action and investigated it finally.
Here is what I find - http://www.englishpage.com/articles/a-vs-an.htm.
USE 5 & 6 clearly explains that it's the sound not the spelling that counts.
So an HTC One it is.
2015年6月2日星期二
How to import Nokia S40 contacts to iCloud
(Again, a placeholder that I'll explain in detail when I have time.)
Why I chose iOS over Android for Mom and Dad
In a nutshell, it's all about use cases.
For the record, I'm no fan of Apple. I myself am using an HTC One M7 and I think it terrifically suits my need. One of the many things that truly distinguishes Android from iOS is the ability for applications to run in the background. Many argue that this is good, while probably equally many believe otherwise. I think it's more of a differentiation of design logic, not some sort of advantage or drawback. This kind of differentiation provides different use cases with 'best' solutions. So the old saying applies - there is no best, only the most suitable.
And when it comes to daily usage for Mom and Dad, I believe iOS is the better option.
Security is the major concern. Android is known as the 'open' one. The openness allows application installation from practically anywhere. It could mean more danger when it comes with the twisted many-app-market situation here in the mainland. While I could probably identify a malware when there is one being installed, I don't think Mom and Dad could or should even bother. With iOS, one could only install applications from the neat and safe App Store. And Apple takes the responsibility of reviewing the legitimacy of the applications they provide.
iOS comes easier in terms of usability. I think the phrase I'm looking for is 'everything just works'.
iPhones are generally better made, in terms of display quality, voice quality, photo shooting, etc. Everything is good with an iPhone. They are not just acceptably good, top-notch good. One could probably argue that Samsung Galaxy S6 is the best in terms of photo shooting nowadays, with the fancy test out there and stuff, but iPhone 6 probably comes 2nd or 3rd. And it's the same situation with basically every aspect of an iPhone. So when combined, even if iPhone is not the best, it'll be quite competitive with nothing compromised.
For the record, I'm no fan of Apple. I myself am using an HTC One M7 and I think it terrifically suits my need. One of the many things that truly distinguishes Android from iOS is the ability for applications to run in the background. Many argue that this is good, while probably equally many believe otherwise. I think it's more of a differentiation of design logic, not some sort of advantage or drawback. This kind of differentiation provides different use cases with 'best' solutions. So the old saying applies - there is no best, only the most suitable.
And when it comes to daily usage for Mom and Dad, I believe iOS is the better option.
Security is the major concern. Android is known as the 'open' one. The openness allows application installation from practically anywhere. It could mean more danger when it comes with the twisted many-app-market situation here in the mainland. While I could probably identify a malware when there is one being installed, I don't think Mom and Dad could or should even bother. With iOS, one could only install applications from the neat and safe App Store. And Apple takes the responsibility of reviewing the legitimacy of the applications they provide.
iOS comes easier in terms of usability. I think the phrase I'm looking for is 'everything just works'.
iPhones are generally better made, in terms of display quality, voice quality, photo shooting, etc. Everything is good with an iPhone. They are not just acceptably good, top-notch good. One could probably argue that Samsung Galaxy S6 is the best in terms of photo shooting nowadays, with the fancy test out there and stuff, but iPhone 6 probably comes 2nd or 3rd. And it's the same situation with basically every aspect of an iPhone. So when combined, even if iPhone is not the best, it'll be quite competitive with nothing compromised.
2015年6月1日星期一
How to upgrade kernel for Ubuntu LTS
Usually the kernel of a Long Term Support (LTS) Ubuntu remains stable (as in no dramatic change) throughout its supported lifecycle. In the cases of security breaches there will be update accordingly, but the version (like 3.13 for Ubuntu 14.04) stays the same.
Under certain circumstances this might not be ideal and an upgraded kernel (3.16 for Ubuntu 14.04 as of this writing) might be desired, in which case the latest supported kernel can be installed by following this doc - https://wiki.ubuntu.com/Kernel/LTSEnablementStack.
Under certain circumstances this might not be ideal and an upgraded kernel (3.16 for Ubuntu 14.04 as of this writing) might be desired, in which case the latest supported kernel can be installed by following this doc - https://wiki.ubuntu.com/Kernel/LTSEnablementStack.
订阅:
评论 (Atom)