Skip to main content

Posts

setup mesos 0.28.2 on centos 7

following the guide at  https://mesos.apache.org/gettingstarted/ , it seems mesos-slave.sh need creating folder with root permission to allow examples to run, and needs start with sudo otherwise the c++/java examples will fail. output from failed c++/java examples I1027 09:53:10.901875  6181 sched.cpp:222] Version: 0.28.2 I1027 09:53:10.935006  6190 sched.cpp:326] New master detected at master@10.88.48.57:5050 I1027 09:53:10.936367  6190 sched.cpp:336] No credentials provided. Attempting to register without authentication I1027 09:53:10.948501  6190 sched.cpp:703] Framework registered with 8cab08a7-fac7-440b-8933-0d329da29d7c-0001 Registered! ID = 8cab08a7-fac7-440b-8933-0d329da29d7c-0001 Received offer 8cab08a7-fac7-440b-8933-0d329da29d7c-O1 with cpus: 1.0 and mem: 6609.0 Launching task 0 using offer 8cab08a7-fac7-440b-8933-0d329da29d7c-O1 Status update: task 0 is in state TASK_FAILED Aborting because task 0 is in unexpected state TASK_FAILED with reason 'REASON_CONTA

adjust screen resolution of centos 7 on virtualbox player

you can download centos image from http://www.osboxes.org/centos/ once centos running, by default its network is off. enable the network by clicking the right upper corner settings. now run the following commands with root sudo yum install epel-release sudo yum install dkms sudo yum groupinstall "Development Tools" sudo yum install kernel-devel sudo yum install kernel-headers reboot click device > install guest additions cd images, and restart again. the screen resolution will be adjusted to fit. if you meet errors such as "your kernel headers for kernel cannot be found...", please go to /usr/src/kernels, and rename the kernel folder name to match exactly the version under /lib/modules

Enable HiDPI in OSX

The MacBook Pro 15" comes with native high resolution 1680X1050, with tiny system fonts. You can lower the resolution with the compromise of fuzzy fonts. There is one approach can be taken similar to Windows DPI adjustment. This is called HiDPI. You need install XCode, and use Guartz Debug to enable HiDPI. It does something magic, but very limited. On MacBook Pro, I can only get 840X525 in HiDPI. Correction : You don't need install XCode, simply install Graphics Tools for XCode will do. It can be downloaded from Apple Developer site.

OSX display tweakit

font smoothing  defaults -currentHost write -globalDomain AppleFontSmoothing -int 1 display scaling defaults -currentHost write -globalDomain AppleDisplayScaleFactor 1.5 font anti aliasing defaults -currentHost write -globalDomain AppleAntiAliasingThreshold 18 but none of them works as you would expect

awesome HTC WildFire A510e ROM

I have a HTC WildFire A510e phone, with S-OFF, and lots of junk applications pre-installed. I want a mean and lean OS. I tried several root.zip, and ROMs, it is the only one works for me. Before doing that, you need install Recovery http://www.shuaji.net/rom/dopod_HTC/G13_A510e/g13_soft/2011070613877.html The ROM and how-to is located at http://www.shuaji.net/rom/dopod_HTC/G13_A510e/ROM/2011092214393.html.

jailbreak iphone

if redsn0w stuck at uploading ramdisk part, make sure the redsn0w Affinity is set to 1 CPU only (Task Manager > Process > Set Affinity for redsn0w process).

microblogging

i started my blogging since 2005. the blog covers my life journey in all the cities. back then, blog was cool, that's why google bought blogspot. now, blog sounds like 70 years old. this is internet, always emerging, always adapting. now it seems everyone is microblogging. type on the smart phones on a sentence or two, and fans follows, huge amount of opinions. microblogging prevails because it fits the internet style, fast, pop, hype, buzz, eyeballs catching. it just likes the endless ocean tides. it keeps coming, yeah, it keeps fading. i just installed iphone app of sina microblogging, and posted 2 lines. follow me at http://t.sina.com.cn/oncerest . why not facebook, twitter? hmm...they are the same issues as this blogspot. they all are blocked in china. you can sense the power of mass communication.