all in one browser: Google Chrome OS

November 19th, 2009 by ys4573

ref: google for the latest link.

They finally released it.

An OS heavily relies on the browser. I hoped firefox would be the browser, but seems google make it first on chrome.

If chrome (or chrome OS) is to be a success, most extensions currently available for firefox would be rewrite to run in chrome. Well, if they embed a terminal and an editor in the browser, and let everything runs reasonably fast, desktop has no choice but to fade out.

I wonder what RMS will say on the open-source browser based OS.

project darwin report

November 14th, 2009 by ys4573

* predicted number of hours to complete 12
* actual number of hours to complete 12
* TestDarwin.out (as a page)

Project Sudoku report

October 31st, 2009 by ys4573
  • predicted number of hours to complete 10
  • actual number of hours to complete 11
  • TestSudoku.out (as a page)

TestSudoku.out

October 31st, 2009 by ys4573

==21865== Memcheck, a memory error detector.
==21865== Copyright (C) 2002-2008, and GNU GPL’d, by Julian Seward et al.
==21865== Using LibVEX rev 1878, a library for dynamic binary translation.
==21865== Copyright (C) 2004-2008, and GNU GPL’d, by OpenWorks LLP.
==21865== Using valgrind-3.4.0, a dynamic binary instrumentation framework.
==21865== Copyright (C) 2000-2008, and GNU GPL’d, by Julian Seward et al.
==21865== For more details, rerun with: -v
==21865==
…………………..

OK (23)
==21865==
==21865== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 21 from 1)
==21865== malloc/free: in use at exit: 122,880 bytes in 6 blocks.
==21865== malloc/free: 1,060 allocs, 1,054 frees, 360,670 bytes allocated.
==21865== For counts of detected errors, rerun with: -v
==21865== searching for pointers to 6 not-freed blocks.
==21865== checked 125,432 bytes.
==21865==
==21865== LEAK SUMMARY:
==21865==    definitely lost: 0 bytes in 0 blocks.
==21865==      possibly lost: 0 bytes in 0 blocks.
==21865==    still reachable: 122,880 bytes in 6 blocks.
==21865==         suppressed: 0 bytes in 0 blocks.
==21865== Rerun with –leak-check=full to see details of leaked memory.

TestAllocator.out

October 19th, 2009 by ys4573

==7103== Memcheck, a memory error detector
==7103== Copyright (C) 2002-2009, and GNU GPL’d, by Julian Seward et al.
==7103== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==7103== Command: ./build/test
==7103==
…………………………………………………………………………………………………………………………………..

OK (149)
==7103==
==7103== HEAP SUMMARY:
==7103== in use at exit: 0 bytes in 0 blocks
==7103== total heap usage: 3,411 allocs, 3,411 frees, 393,337 bytes allocated
==7103==
==7103== All heap blocks were freed — no leaks are possible
==7103==
==7103== For counts of detected and suppressed errors, rerun with: -v
==7103== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 21 from 6)

Project Allocator Report

October 19th, 2009 by ys4573

* predicted number of hours to complete: 8
* actual number of hours to complete: 10
* TestAllocator.out (as a page)

TestMatLab.out

October 2nd, 2009 by ys4573

==4130== Memcheck, a memory error detector
==4130== Copyright (C) 2002-2009, and GNU GPL’d, by Julian Seward et al.
==4130== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==4130== Command: ./build/test
==4130==
…………………………………….

OK (43)
==4130==
==4130== HEAP SUMMARY:
==4130== in use at exit: 0 bytes in 0 blocks
==4130== total heap usage: 3,085 allocs, 3,085 frees, 184,256 bytes allocated
==4130==
==4130== All heap blocks were freed — no leaks are possible
==4130==
==4130== For counts of detected and suppressed errors, rerun with: -v
==4130== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 21 from 6)

Project MatLab report

October 2nd, 2009 by ys4573

* predicted number of hours to complete: 8 hours
* actual number of hours to complete: 13 hours
* TestMatLab.out (as a page)

lturnin - run turnin on non cs machine directly.

October 2nd, 2009 by ys4573

I’m tired of uploading files to cs machine and run turnin there, so I decide I need a wrapper script to help me do the job behind the scene.

lturnin has a core script named turnin and a documentation file README.

Major features:

* based on ssh and rsync, secure and fast.
* run locally, commit local files. that’s what the “l” means in lturnin.
* syntax compatible with orginal turnin
* short commands, grader aliases, homework patterns
* free software

This script won’t work on Windows, and I don’t have a plan to port it.
Please use a ssh key to login to cs machine, save lots of password inputs.

Sample usage:

  submit local files and dirs:
      turnin jgeorge cs109hw3 *.txt *.cpp *.h html
  list submitted files:
      turnin ls jgeorge cs109hw3

  make a pattern:
      turnin pattern cs109 jgeorge cs109hw
  submit using pattern:
      turnin cs109 3 *.txt
  list using pattern:
      turnin cs109 3

You can get the code from github:

    git clone git://github.com/sylecn/lturnin.git

If you don’t have git, you can also download it in zip or tar format, go to

    http://github.com/sylecn/lturnin

then click the download link.

use CppUnit fixtures for project MatLab

September 28th, 2009 by ys4573

CppUnit fixtures will be useful for writing tests for this project.

Check out the cookbook if you didn’t know how to use fixtures.