Tuesday, 3 February 2015

ipcluster setup

setup ipcluster

1. install IPython please check here
2. it is better to make a snapshot at this point
3. create a IPython.parallel profile
      >>ipython profile create --parallel -profile=[profile_name]
4. find profile/ipcontroller_config.py and edit
            c = get_config()
      c.HubFactory.ip='*'
5. start a controller with --ip=[contoller_ip]
***if do the 5th step, the  3rd and 4th is unneesary

           ipcontroller --ip=10.0.1.74
    or
           ipcontroller start --ip=10.0.1.74


6. copy ipcontroller-engine.json from controller (10.0.1.74) to all engines (10.0.1.90 and the rest) by executing a script

            scp /home/ubuntu/.config/ipython/profile_default/security/ipcontroller-engine.json ubuntu@10.0.1.90:/home/ubuntu/.config/ipython/profile_default/security/

7. start engine by
            ipcluster engines
    or
            ipcluster engines --n=8




Tuesday, 13 January 2015

setup Hadoop

In cs426 we're going to use Hadoop platform and the setup instructions are following:
CDH5 and  Hortonworks


Useful hdfs commands here

Wednesday, 26 November 2014

CDT student project



Traffic light control

Tuesday, 25 November 2014

cs102 project

Project specifications

PWM motor driver

A simple pwm motor driver. This circuit generates buzzing sound when duty cycle isn't enough to turn the motor.

Wednesday, 19 November 2014

Assembly code for generating Fibonacci series

Fibonacci

shortest code by JEERAMETH KLOMSING

Cat     Add 7
        Sta 7
        Out
        Add 99 
        Sta 99
        Out
        Bra Cat
        Dat 1

code by Som-O

      LDA  A
      OUT
      OUT
      ADD  A
      STA  B
      OUT
      ADD  A
      STA  A
      OUT
      ADD  B
      BRA  4
      HLT
A     DAT  1
B     DAT  1
---------------------------------------
Clear memory
by Wasit
begin   lda x
        add one
        sta x
x       dat 305
        bra begin

one     dat 1

Tuesday, 11 November 2014

Pi microscope

1. Removing the lens by using two pins to turn the lense cover in anti-clockwise direction
2. removing the eyepiece of the microscope and replaced by the Pi camera
3. Here I used an old calibration sample. The distance between two lines is 0.2mm (200 micron)
4. The the tiny number on sample is scaled up and inverted on screen
5. When I used 4x objective lense
6. and 10x
7. Finally the 40x objective lens. At this magnification the image was quite blur and it showed significant color aberration.
8. by adjusting location of condensing lens below the sample has improved the quality.

In the image7, the space between two black lines was scaled up to almost completely filled the width of window (2592 x 1944). Roughly about 12.5 pixel per micron. An this will be helpful in my project, which I need to look cells, which has size around 10 to 50 micron.