Blog on Github Page

什么是github?

  • 是一个免费的用与存放git版本控制的软件代码和内容项目。
  • 每个项目都有一个主页,列出项目的源文件

什么是github page?

  • 为了使的网页简洁易懂,github就设计了pages功能
  • pages功能允许用户自定义项目首页,用来代替默认的源码列表
    • 也就是说github page可以被认为是用户编写的,托管在github上的静态网页。
  • github提供模板,允许站内生成网页,但也允许用户自己编写网页,然后上传。
    • 但是这种上传并不是单纯的上传,而是会经过Jekyll程序的再处理。
Read more

10 Uml Homework of System Analyze and Design

1. 概念类图(Conceptual Class Diagram / Domian Model)

  • 实验目的:

      1. 掌握概念类图的涵义和内容
      1. 掌握概念类图的绘制方法
      1. 掌握概念类图的使用范围
  • 实验内容:

    1. Read the game description of “Priests and Devils” .
  • Priests and Devils Priests and Devils is a puzzle game in which you will help the Priests and Devils to cross the river within the time limit. There are 3 priests and 3 devils at one side of the river. They all want to get to the other side of this river, but there is only one boat and this boat can only carry two persons each time. And there must be one person steering the boat from one side to the other side. In the flash game, you can click on them to move them and click the go button to move the boat to the other direction. If the priests are out numbered by the devils on either side of the river, they get killed and the game is over. You can try it in many ways. Keep all priests alive! Good luck!

  • and play the game ( http://www.flash-game.net/game/2535/priests-and-devils.html ) first.

    1. 识别游戏中出现的概念,并画出概念类图。要求给出类、属性、以及类之间的关联(建议有多重性)。
Read more

How to Install Ubuntu on Macbook Air Dual

1.For there are too many software that can be used in ubuntu not in OSX so I decided to install ubuntu on my macbook air

  • I have try the mac version ubuntu and it do not work
  • and the origin version for windows is work on mac

2.First use Unetbootin to create a usb bootable ubnutu on mac

  • There are two ways to finish this
  • The first is(I do not succeed in this)
    • diskutil list
      • show the disk that is mounted on your mac
    • then insert the usb
    • run diskutil list again
      • and determine the device node assigned to the usb like disks1s2
    • then diskutil unmountDisk /disks1s2
    • after that sudo dd if=/path/to/ubuntu.img.dmg of=/dev/disks1s2 bs=2m
      • to create the bootable usb ubuntu
      • and the bs is the I/O speed and the max is 2m
    • It may cost some time to complete
    • finally run eject /dev/disks1s2
  • The second is
    • use the Unetbootin to create the bootable usb directly
Read more
Comments

Linux Server Tutorial

1.GNU plan

  • GNU plan is founded by the Richard M.Stallman and free software foundation
  • In order to make sure the GNU software can be used freely
  • All the GNU softwares have a license called “GNU General Public License”, GPL
  • this forbid the other from adding any constrict to the GNU software and let all the people to have the right to use it.

2.POSIX standard

  • Portable Operating system Interface for Computing Systems
  • used to solve the problem that the UNIX system have lots of versions and result in a chaos
  • the standard is developed by the IEEE and standarded by the ANSI and ISO
Read more
Comments

My Bash Profile Configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#terminal
export PS1="\u@\h:\w $"
export CLICOLOR=1
export GREP_OPTIONS="--color=auto"

#byobu check ignore
set FORCE_UNSAFE_CONFIGURE=1

#ant path
#ANT_ROOT=/Users/pb/Downloads/adt-bundle-mac-x86_64-20130917/sdk/tools/ant

# gcc 4.8
export PATH=$HOME/Library/gcc-4.8.0/bin:$PATH

export BOOST_ROOT=/usr/local/Cellar/lib
export BOOST_INCLUDEDIR=/usr/local/Cellar/include

##
# Your previous /Users/pb/.bash_profile file was backed up as /Users/pb/.bash_profile.macports-saved_2013-10-12_at_14:01:02
##

# MacPorts Installer addition on 2013-10-12_at_14:01:02: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.

export CPATH=/opt/local/include
export LIBRARY_PATH=/opt/local/lib
export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/opt/local/lib
export PATH=/opt/local/bin:$PATH
# To ensure that MacPorts pkg-config can find stuff that rosdep installs in /usr
export PKG_CONFIG_PATH=/usr/lib/pkgconfig

#color
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

#wxpython
export VERSIONER_PYTHON_PREFER_32_BIT

#sudo error
unset LD_LIBRARY_PATH
unset DYLD_LIBRARY_PATH

#tornade
export PYTHONPATH=$PYTHONPATH:~/Document/python/software/tornado-3.1.1

#android sdk
export PATH=$PATH:~/Downloads/adt-bundle-mac-x86_64-20130917/sdk/platform-tools

#android ndk
export ANDROID_NDK_ROOT=~/Documents/android/NDK/android-ndk-r9d
export NDK_ROOT=~/Documents/android/NDK/android-ndk-r9d
export ANDROID_SDK_ROOT=~/Downloads/adt-bundle-mac-x86_64-20130917/sdk

#cocos2dx
#export COCOS2DX_ROOT=~/Documents/CocosBuilder-2.1-examples/cocos2d-x-2.2.2

#mysql path
export PATH=$PATH:/usr/local/mysql/bin

#Tomcat
#export PATH=$PATH:/usr/local/apache-tomcat-7.0.52/bin

#colt linear algebra lib
export CLASSPATH=/opt/share/colt/lib/colt.jar:/opt/share/colt/lib/concurrent.jar:$CLASSPATH

#mlpack machinelearning library

export ANT_ROOT=/usr/local/ant


[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

export COCOS_CONSOLE_ROOT=/Users/pb/Documents/CocosBuilder-2.1-examples/cocos2d-x-3.0rc0/tools/cocos2d-console/bin
export PATH=$COCOS_CONSOLE_ROOT:$PATH
Read more
OSX
Comments

Basic Idea in Robotics

ABSTRACT:

  • The basic idea in robotic area
    • A robot is an autonomous system which exists in the physical world, can sense its environment , and can act on it to achieve some goals
    • The robotic involves autonomy, sensing, action, and achieving goals, all in the physical world
    • The component of the robot are
      • physical body
        • it can exist and do in the physical world
      • combine
        • manipulation(up body)
          • handling objects
        • locomotion(down body).
          • Moving around, going places
    • Sensors
      • It can sense/perceive its environment in order to get information about itself and its surroundings.
    • Effectors and actuators
      • it can take actions
      • effector enable a robot to take a action, to do physical things
        • it can also be defined as any device that has an effect on the environment
        • it range from legs, wheels to arms and fingers
      • actuator can do exact the actual work for the robot
        • are the effector that use underlying mechanism, such as motor and muscles.
        • Is also the mechanism that enable the effector to execute an action or movement
        • Such as electric motors(base on electric current), hydraulics(base on fluid pressure) ,pneumatics(base on air pressure) and photo-reactive materials ……
    • Controller
      • it can be autonomous
      • provide hardware and/or software that make the robot autonomous by using the sensor inputs and any other information to decide what to do ad then to control the effectors to execute that action
Read more
Comments