November 1, 2009
Do your work. Don't be stupid.
I like this quote because it tells the story. I was a bit lazy to do my work and ended up with Counter Strike. I finally left the clan (well, I demoted myself from full admin to a member) because I couldn't take the risk to fail my college career.
Midterm
I just suffered from my midterms. I would strongly remind all of us that we need to focus on our studies because finals are coming in 5 weeks. I was glad that my chemistry midterm was over. I hate raining especially when it happened on the day of an exam. I thought I failed but I got 82 which Professor made it an A grade. I was lucky to have this A. We are only given one chance, one grade to be dropped from the calcuation. I will have to work very hard on the next exam and be prepare for the final. I have a good feeling that if I do study everyday and since he is giving his sample exams to us, I probably can ace it easily. Right after the exams I had lab. It was a 17 points lab. I probably got a 12 or 13 because of the precision.


Concert
At night I went to a concert at 92nd Y. It was a great concerto trio performed by The Kalichstein-Laredo-Robison Trio which features a pianist, a cellist and a violinist. It was a Franz Schubert's trio performance. They played the followings:
Piano Trio No.1 in B-flat major, Op. 99
Piano Trio No.2 in E-flat major, Op. 100
(more...)
Filed under:Personal Author:John Wong
No Comments »
The speaker today gave us a classwork and I did it using modules.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| import datetime
import time
m = datetime.datetime.now()
k = datetime.date.today()
b = k.isoweekday()
b = time.strftime("%A")
mm = m.month
yy = m.year
dd = m.day
ds = datetime.date(yy,mm,dd)
hh = m.hour
mi = m.minute
ts = datetime.time(hh,mi)
print "It is now",ts.strftime("%H:%M:%p"),b,ds.strftime("%m/%d/%Y") |
(more...)
Filed under:CSC 1000, Python Author:John Wong
No Comments »
I didn't have time to write any blog due to heavy college work load. I apologized.
Last week we had our first guest lecture on Python. I enjoyed it because I liked my csc 1000 class. It was fun to do programming.
Here is the lecture presentation:
http://bitrocket.com/csc100/new_notes_1.html
Anyway, python is very different from many conventional languages. It emphasizes on reducing the size of the core and fewer syntax. But keep in mind that usually applications in Python aren't as powerful as those written in C and C++, for example. It is very expensive to write a web application in C because it is very powerful and time consuming. Python is therefore a great candidate. Google uses Python because, it's cheaper. The cost of adding servers is less than the cost of writing the application in C and C++ mainly.
This statement is not entirely true and is very subjective in some aspects. But the overall context, we should agree that Python is consider a powerful programming language.
(more...)
Filed under:CSC 1000, Python Author:John Wong
No Comments »