Report for week 12
This week is so-called week 12. That means it has been 12 weeks since I started studying for this semester. Wow. But it's a great week, compared to previous weeks. Not that boring though.
So, let me summarise few things here, as usual.

Last Monday, my friends and I have done our presentation in front of the class for the Basic Professional Writing subject. It's a proposal presentation. My group members and I had to wear formal clothes to campus and we looked pretty smart, especially my group leader, Awang. He wore an all-black suit with a dazzling red tie. He rocks.
Okay, what's so cool about this presentation anyway? Well, the secret lies in the PowerPoint file that I've created with my bare hands. Gosh, it's the coolest PowerPoint presentation file I've ever created. I've designed it using the Web 2.0 visual elements. I named my masterpiece as Presentation 2.0. Haha!
Basically, I simply apply some rounded corners, slight gradient backgrounds and large text. I've also used 'Fade' animation effects for the slides transition and 'Motion Paths' effect for certain elements. Frankly speaking, I stole some high-quality images from stock.xchng and design ideas from Free Software Magazine's magazine issue. Thanks a lot.

On Tuesday, a bad thing happened. And I'm not even sure how it happened at all!
The contents of my 1 Gb USB drive got corrupted. And this happens the second time now, ever since my first USB drive died last semester. According to my inspection, the level of corruption is quite high. Some folders disappeared. Some files are there but their sizes are incorrect. I couldn't copy the files or folders out. There were gibberish characters on the folder and file names. Around 90% of all files in my USB drive are corrupted. The worst part is I did not have a backup for it.
I made the same stupid mistake again. Again. Sigh.
My roommate asked me for help in writing a C program for one of his assignments. And of course, I helped and done this, the file name is calc-lines.c:
#include <stdio.h> #include <stdlib.h> #define ONE_FILE "calc-lines.c" int main(void) { FILE *fpin; char character; int linesnum = 0; int totallinesnum = 1; int countline = 0; fpin = fopen(ONE_FILE, "r"); if( fpin == NULL ) { printf("Cannot open file. "); exit(101); } printf(" 1. "); while( fscanf(fpin, "%c", &character) != EOF ) { do{ printf("%c", character); if( character != ' ' && character != '' && character != ' ' && character != ' ' ) countline = 1; else if( character == ' ' ) { totallinesnum++; printf("%3d. ", totallinesnum); } } while( fscanf(fpin, "%c", &character) != EOF && character != ' ' ); if(countline) { linesnum++; countline = 0; } if( character == ' ' ) { totallinesnum++; printf(" %3d. ", totallinesnum); } } fclose(fpin); printf(" ==================== "); printf("Number of lines : %d ", totallinesnum); printf("Number of code lines : %d ", linesnum); printf("Number of blank lines : %d ", totallinesnum-linesnum); return 0; }This is a program that counts the number of lines for a file, including the blank lines and non-blank lines. Sorry, I won't explain further about the code and do not guarantee that the code above is high-quality.
That's all for the report this week. I hope that next week will be better.
Labels: university
Previous Posts
About
cheeaun.com is the site of a Malaysian web developer and designer, Lim Chee Aun. He loves to babble about life, computers, design, internet and oranges. Read more...
Sponsors
cheeaun @brianritchie should be less hungry than vista tho' # about 1 hour ago
Archives
- June 2004
- July 2004
- August 2004
- September 2004
- October 2004
- November 2004
- December 2004
- January 2005
- February 2005
- March 2005
- April 2005
- May 2005
- June 2005
- July 2005
- August 2005
- September 2005
- October 2005
- November 2005
- December 2005
- January 2006
- April 2006
- May 2006
- June 2006
- July 2006
- August 2006
- September 2006
- October 2006
- November 2006
- December 2006
- January 2007
- February 2007
- March 2007
- April 2007
- May 2007
- June 2007
- September 2007
- October 2007
- November 2007
- December 2007
- January 2008
- February 2008
- September 2008
People
- Aaron Spuler
- Alex Choong
- Ang Kew Leok
- Angeline Tan
- Arvid Axelsson
- Asa Dotzler
- Benjamin Leow
- Bernie Zimmermann
- B.K. Ong
- Chan Lilian
- Chan Ming Shern
- Cheah Chu Yeow
- Ching Yonghan
- Chris Neale
- Chris Pirillo
- Danny Foo
- Dave Shea
- David Tenser
- Elizabeth Chin
- Eric Meyer
- Heng Kee Seng
- Ian Hickson
- James Ooi
- Jeffrey Zeldman
- Jinny Wong
- Joe Clark
- Jon Hicks
- Kamal Fariz
- Kah Soon
- Ken Lynch
- Kenny Lee Jian Siong
- Kevin Gerich
- Khai Lee
- Khoo Kah Peng
- Kong Chung Hwa
- Kuhan Venugopal
- Kwan Will Sen
- Lars Kleinschmidt
- Liew Cheon Fong
- Lim Chze Hong
- Lucia Lai
- Lun
- Navin
- Neil Turner
- P.J.Kraaima
- Peter Tan
- Regin Larson
- Ryan Lim
- Saw Kee Wooi
- Scott Jarkoff
- Soo Chooi Leang
- Steven Garrity
- Tantek Çelik
- Teoh Hock Lye
- Tim Yang
Powered By
Believe it or not, this blog is powered by Blogger. Nothing else.