หน้าเว็บ

About me

Hi, I'm cheer. My interest relates to artificial intelligence, machine learning, computer vision, network communication, security algorithm.

วันพฤหัสบดีที่ 4 ตุลาคม พ.ศ. 2555

SAN Interface

SAN (Storage Area Network) has 2 type of interfaces

1. FC (Fiber Card) or  HBA  (Host Bus Adapter)
- use of fiber optic
- require SAN switch
- 4-8 Gbps

2. iSCSI
- use of UTP/STP (RJ45) 
- require network switch
- data rate depends on network infrastructure 100Mbps+

วันเสาร์ที่ 12 มีนาคม พ.ศ. 2554

วันอาทิตย์ที่ 19 ธันวาคม พ.ศ. 2553

RoR on Windows

  1. Install Ruby via the ruby website
  2. Install RubyGems.
  3. Install Rails:
  • In the command prompt, type gem install rails –include-dependencies.
  • If this doesn’t work, you’ve likely got RubyGems problems. You can download the stand-alone package for Rails and install from there, but you’ll likely want to take care of your RubyGems issues before moving on.

Database Installation

  1. Install PostgreSQL:
  2. Download the latest win32 version of PostgreSQL (64-bit is not currently supported on Windows systems).
  3. Initiate the installer and walk through the wizard. A couple of potential “gotcha” spots:
    1. Let the installer create a new Windows account so PostgreSQL can run as a service (I accepted the default postgres account and specified my own password).
    2. Let the database initialize a cluster for you.
  4. Install postgres-pr gem, which is a Ruby driver for PostgreSQL:
    1. Command line: gem install postgres-pr.
    2. Using the pgAdminIII gui that is installed by default with PostgreSQL, create your application databases. Follow the Ruby on Rails naming convention ofApplicationName_development, ApplicationName_test,ApplicationName_production when naming them.
  5. Configure your application to connect to the database(s):
    1. Open up your config/database.yml file and enter the following information for, at the very least, the development database:
      1. adapter: postgresql
      2. database: your_database
      3. username: postgres
      4. password: YourPassword
      5. host: localhost (assuming that you’re running PostgreSQL locally)
  6. Test your database connectivity:
    1. From the top level of your Rails application, type the following at a command prompt: rake db:migrate.
    2. If you get a response similar to this: (in c:/dev/YourWebApplication), you are good to go. If you get an error message, walk through the steps again, double-checking your configuration and fixing any mistakes (a Google search of the error is probably the best place to start).
credit:

Restful Authentication on Rail3

As you know the perfect of simplicity of restful authentication, rail plugin, now rail has stepped up version 3. Some of RoR developer has stuck with mist error in restful authentication functionality. This is because some built-in function in rail has changed whilst technoweenie, who introduced you this plugin, doesn't patch restful authentication to be compatible with rail3. Fortunately, there is new hero, Satish. He patched this wonderful plugin for us, ROR developer. Well, just check it out from http://github.com/satish/restful-authentication . There's nothing changes form native restful authentication functionality, so dun't worry .... enjoy !!!

Git on Window

There are 2 ways to go GIT on Windows:

  1. MsysGit
  2. CygWin - its already well-known to who is familiar with linux

Here, this article will introduce MsysGit. As we all know that GIT is protocol for source code management repository, which is very popular to opensource developer. Therefore, you windows should pack stuffs on your back and get ready to jump on GIT trend.

  1. download msysgit from [http://code.google.com/p/msysgit/downloads/detail?name=msysGit-fullinstall-1.7.3.1-preview20101002.exe&can=2&q= ]
  2. install it
  3. open "cmd" and go to msysgit directory
  4. run "git-cmd.bat"
  5. enjoy !!

Informaiton

วันศุกร์ที่ 19 พฤศจิกายน พ.ศ. 2553

Machine Learning

Prerequisite

1. differential

2. Linear Algebra
3. Probability
http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/book.html

Good Source
+ http://pages.cs.wisc.edu/~andrzeje/lmml.html
+ http://www.cs.iastate.edu/~cs573x/studyguide.html
+ http://www.cs.cmu.edu/~tom/mlbook-chapter-slides.html
+ http://nowak.ece.wisc.edu/SLT09.html

วันเสาร์ที่ 13 พฤศจิกายน พ.ศ. 2553

Ruby1.9.2 problem with rake

Due to ruby 1.9.2 has built-in rake, you therefore has to remove "rake.gemspec" first. It generally resides in \ruby1.9.2\lib\ruby\gems\1.9.x\specifications\rake.gemspec

Cheers !!