Didn't do well in this monthly exam.Got the 7th in class,and the 215th in grade.
It seems that my Core-i7 is far away......
Why..
I should have only worked out the second computing problem in the Mathematic Exam.Then the 12 points bonus will lead me to 140+- and I would get what I want...
Life is struggle,truely?
Then what can I do,what should I do,give up programming?
Why so few choices.
It's NOT FAIR...
Tuesday, 7 April 2009
Thursday, 2 April 2009
Struggle
Calendar full of exams.
I hate exams.
I hate school!
Bought many things these days.About C++ and Windows,several novels,and two board games.
If got a good result in exams.Will invite some friends home to play A Game Of Thrones(The Board Game).
I hate exams.
I hate school!
Bought many things these days.About C++ and Windows,several novels,and two board games.
If got a good result in exams.Will invite some friends home to play A Game Of Thrones(The Board Game).
Friday, 27 March 2009
Tuesday, 17 March 2009
Thursday, 12 March 2009
Why E-mail Not IM
I used to like QQ very much.There's no doubt that QQ is a legend,it truely influenced a generation of Chinese teenager.I'm not one of those so called QQ fans,but I believe that Tecent is one of the most successful companies all around the world.
But,these days I suddenly realised some disadvantages of QQ,maybe I've thought about this before,but never came up to me so strongly.I'm not thinking QQ is useless,for it has convenient image and file send function and many other services.However,I found that put QQ online while working or studying is not a good idea.Because I would waste a lot of time talking things not connected to my study or work.
I admire,I'm tired.
And I hate to be invisible using QQ.
If you see me online next time,please talk with me,for that means I'm really lonely.Hope this will never happen(which seems impossible).
You can contact me via E-mail.If you ever used Gmail or other E-mail services to contact the others.I think you would agree with me that when writing an E-mail,we'll ignore most of the useless sentences.And that's why I choose it.
Or,you can talk with me via GTalk.It's a simple client with a simple UI which was developed Google.
Eh...I'm not asking you to use it.HE~
And maybe I will not reply you.
Sorry.I'm really tired.
Status : Offline.
-AquarHEAD : AquarHEAD@gmail.com
But,these days I suddenly realised some disadvantages of QQ,maybe I've thought about this before,but never came up to me so strongly.I'm not thinking QQ is useless,for it has convenient image and file send function and many other services.However,I found that put QQ online while working or studying is not a good idea.Because I would waste a lot of time talking things not connected to my study or work.
I admire,I'm tired.
And I hate to be invisible using QQ.
If you see me online next time,please talk with me,for that means I'm really lonely.Hope this will never happen(which seems impossible).
You can contact me via E-mail.If you ever used Gmail or other E-mail services to contact the others.I think you would agree with me that when writing an E-mail,we'll ignore most of the useless sentences.And that's why I choose it.
Or,you can talk with me via GTalk.It's a simple client with a simple UI which was developed Google.
Eh...I'm not asking you to use it.HE~
And maybe I will not reply you.
Sorry.I'm really tired.
Status : Offline.
-AquarHEAD : AquarHEAD@gmail.com
Sunday, 1 March 2009
Failed Junk Exam
Another junk exam,this time failed a lot....
And today I read the ZOJ 7th Anniversary Contest problems via my SE W958C and code 3 of 7 problems.
Just now submitted the codes,one 1A,one forget to initialization,2A,the other forget to use Int64,2A...
Not in normal status...
Need a completely change....
And today I read the ZOJ 7th Anniversary Contest problems via my SE W958C and code 3 of 7 problems.
Just now submitted the codes,one 1A,one forget to initialization,2A,the other forget to use Int64,2A...
Not in normal status...
Need a completely change....
Friday, 27 February 2009
Books I Wanna Buy
Microsoft Windows Internal--4th Edition,5th Edition
Windows Via C/C++
Win32 API
Structure and Interpretation of Computer Programs
The Art Of Computer Programming--1,3
Concrete Mathematics
P.S:Adding...
Windows Via C/C++
Win32 API
Structure and Interpretation of Computer Programs
The Art Of Computer Programming--1,3
Concrete Mathematics
P.S:Adding...
Sunday, 22 February 2009
Saturday, 21 February 2009
Iron Chain Solved
I found that yesterday I forgot the theorem of kinetic energy when I was discussing this problem with CPY this morning.
Yeah,I just got an Accepted on this problem.I want to share my thoughts with all of you~~
I suppose you know that using the theorem of kinetic energy you can get the relation between velocity and displacement:
v=[2*g*x*(b-a+x)/(a+b)]^-1
P.S.:x is the displacement of one end of the iron chain.
So,we can suppose that the velocity in a VERY LITTILE displacement is increasing at a constant speed,then we can figure out the time the chain spent passing this VERY LITTLE displacement,then add the time the iron chain straightly falling down,and we will have some code like this bellow:
Then you can output the variable time as answer~
I am only a high school student in China,and I know my English isn't very well...
Hope this post useful to you,and hope you can understand my meaning..
HEHE~
Yeah,I just got an Accepted on this problem.I want to share my thoughts with all of you~~
I suppose you know that using the theorem of kinetic energy you can get the relation between velocity and displacement:
v=[2*g*x*(b-a+x)/(a+b)]^-1
P.S.:x is the displacement of one end of the iron chain.
So,we can suppose that the velocity in a VERY LITTILE displacement is increasing at a constant speed,then we can figure out the time the chain spent passing this VERY LITTLE displacement,then add the time the iron chain straightly falling down,and we will have some code like this bellow:
Then you can output the variable time as answer~
I am only a high school student in China,and I know my English isn't very well...
Hope this post useful to you,and hope you can understand my meaning..
HEHE~
Posted by
AquarHEAD
at
17:13:00
Friday, 20 February 2009
Iron Chain
A problem from an online judge system:
In physics class, the teacher shows us an interesting physics experiment. He hangs an iron chain on a fixed point on the wall. (Look at the right picture for more details). If the lengths of the iron chains on the left side and right side are different, the gravity forces the iron chain to drop to the floor and hits the sensor. Then the computer shows the F-t functional image on the screen. The teacher wants to teach you momentum and its conservation.
But you are not interested in this at all. The thing you want to know is how long it takes for the iron chain to drop to the floor.
You can assume that the iron chain is well-mixed, and you can ignore the friction between the iron chain and the fixed point on the wall. The friction between the chain and the air needn’t be taken into account either. The fixed point is a particle whose radius is 0. And the acceleration of gravity, or so-called g, is 9.80665m/s^2 in this problem.
Example:
1.Input: a=0 ,b=10,h=20
Output: t=1.428s
2.Input: a=1,b=3,h=4
Output: t=0.595s
============Cut-Off Rule===========
I've tried the approximation algorithm.But I couldn't pass through the judge.[I've passed the Examples before.]
And I communicated with CPY about using Calculus to solve this problem,but we couldn't solve the equation.
Who can help me....
In physics class, the teacher shows us an interesting physics experiment. He hangs an iron chain on a fixed point on the wall. (Look at the right picture for more details). If the lengths of the iron chains on the left side and right side are different, the gravity forces the iron chain to drop to the floor and hits the sensor. Then the computer shows the F-t functional image on the screen. The teacher wants to teach you momentum and its conservation.
But you are not interested in this at all. The thing you want to know is how long it takes for the iron chain to drop to the floor.
You can assume that the iron chain is well-mixed, and you can ignore the friction between the iron chain and the fixed point on the wall. The friction between the chain and the air needn’t be taken into account either. The fixed point is a particle whose radius is 0. And the acceleration of gravity, or so-called g, is 9.80665m/s^2 in this problem.
Example:
1.Input: a=0 ,b=10,h=20
Output: t=1.428s
2.Input: a=1,b=3,h=4
Output: t=0.595s
============Cut-Off Rule===========
I've tried the approximation algorithm.But I couldn't pass through the judge.[I've passed the Examples before.]
And I communicated with CPY about using Calculus to solve this problem,but we couldn't solve the equation.
Who can help me....
Wednesday, 18 February 2009
Friday, 6 February 2009
Rate My Life
This Is My Life, Rated | |
Life: | 7.4 |
Mind: | 7.8 |
Body: | 7.3 |
Spirit: | 6.8 |
Friends/Family: | 6.3 |
Love: | 3.6 |
Finance: | 5.5 |
Take the Rate My Life Quiz |
Wednesday, 4 February 2009
Saturday, 31 January 2009
How To Build Projects With Libraries In Dev-C++
These days when I was coding the Mp3ListPlayer in IDE Dev-C++,I found a big problem building the project.
Of course,I finally solved it.And I want to tell you how to,so you won't meet the problem I met.HEHE~
For example,your project need a library named winmm.lib,and you want to build the project in Dev-C++:
1.Open the Dev-C++ menu "Project"-"Project Options".
2.Change to Parameters page like the picture show you.
3.Choose the "Add Library or Object" button.
4.Change into dir \Dev-Cpp\lib.
5.Find a file called lib[].a(and the library name you need in [],for example libwinmm.a).
6.Apply the configuration and build the project.
Hope this post useful to you.
Of course,I finally solved it.And I want to tell you how to,so you won't meet the problem I met.HEHE~
For example,your project need a library named winmm.lib,and you want to build the project in Dev-C++:
1.Open the Dev-C++ menu "Project"-"Project Options".
2.Change to Parameters page like the picture show you.
3.Choose the "Add Library or Object" button.
4.Change into dir \Dev-Cpp\lib.
5.Find a file called lib[].a(and the library name you need in [],for example libwinmm.a).
6.Apply the configuration and build the project.
Hope this post useful to you.
Wednesday, 28 January 2009
A Console Mp3 Player Using MCI Functions
Read many data on audio file play under Windows,including DirectSound,DirectMusic,and MCI..
Finally used MCI to write this program,found it easy to use.
Required Header File : mmsystem.h
Required Library File : winmm.lib
Another main problem is that I don't know how to link it under console[don't know the command],so I can only build my project in Visual C++.Fainting..
And please reference here.
These two days studied many new things,Assembly Language,Direct,MCI,and in the following days plan to read something,I should read more.HEHE~
Finally used MCI to write this program,found it easy to use.
Required Header File : mmsystem.h
Required Library File : winmm.lib
Another main problem is that I don't know how to link it under console[don't know the command],so I can only build my project in Visual C++.Fainting..
And please reference here.
These two days studied many new things,Assembly Language,Direct,MCI,and in the following days plan to read something,I should read more.HEHE~
Tuesday, 27 January 2009
Corrected A Program From An Assembly Language Book
The code on the book Assembly Languuage Programming is like this:[without bold sentences]
TITLE EG617
STACKSG SEGMENT STACK 'STACK'
DW 32 DUP(0)
STACKSG ENDS
DATASG SEGMENT
CR EQU 13
LF EQU 10
CHARIN DB 'PLEASE INPUT A CHARACTER:','$'
CHAROUT DB 'THE RESULT IS:','$'
LOUT DB 'LETTER','$'
NOUT DB 'NUMBER','$'
OOUT DB 'OTHERS','$'
CRLF DB CR,LF,'$'
DATASG ENDS
CODESG SEGMENT
MAIN PROC FAR
ASSUME CS:CODESG,DS:DATASG,SS:STACKSG
MOV AX,DATASG
MOV DS,AX
LEA DX,CHARIN
MOV AH,9
INT 21H
MOV AH,1
INT 21H
;MOV CL,AL
LEA DX,CRLF
MOV AH,9
INT 21H
LEA DX,CHAROUT
MOV AH,9
INT 21H
;MOV AL,CL
CMP AL,'0'
JB OTHERS
CMP AL,'9'
JA CON1
LEA DX,NOUT
MOV AH,9
INT 21H
JMP EXIT
CON1:
CMP AL,'A'
JB OTHERS
CMP AL,'Z'
JA CON2
LEA DX,LOUT
MOV AH,9
INT 21H
JMP EXIT
CON2:
CMP AL,'a'
JB OTHERS
CMP AL,'z'
JA OTHERS
LEA DX,LOUT
MOV AH,9
INT 21H
JMP EXIT
OTHERS:
LEA DX,OOUT
MOV AH,9
INT 21H
EXIT:
MOV AX,4C00H
INT 21H
MAIN ENDP
CODESG ENDS
END MAIN
Before I correct it,it always return the result from the proc OTHERS,so I add those two sentences into the code and it became correct.I think it may because the following code:
LEA DX,CRLF
MOV AH,9
INT 21H
LEA DX,CHAROUT
MOV AH,9
INT 21H
changed the value stored by the register AL,so I copyed it into the register CL,and it then became correct.
By the way,found that Assembly Language is very interesting and powerful~~
TITLE EG617
STACKSG SEGMENT STACK 'STACK'
DW 32 DUP(0)
STACKSG ENDS
DATASG SEGMENT
CR EQU 13
LF EQU 10
CHARIN DB 'PLEASE INPUT A CHARACTER:','$'
CHAROUT DB 'THE RESULT IS:','$'
LOUT DB 'LETTER','$'
NOUT DB 'NUMBER','$'
OOUT DB 'OTHERS','$'
CRLF DB CR,LF,'$'
DATASG ENDS
CODESG SEGMENT
MAIN PROC FAR
ASSUME CS:CODESG,DS:DATASG,SS:STACKSG
MOV AX,DATASG
MOV DS,AX
LEA DX,CHARIN
MOV AH,9
INT 21H
MOV AH,1
INT 21H
;MOV CL,AL
LEA DX,CRLF
MOV AH,9
INT 21H
LEA DX,CHAROUT
MOV AH,9
INT 21H
;MOV AL,CL
CMP AL,'0'
JB OTHERS
CMP AL,'9'
JA CON1
LEA DX,NOUT
MOV AH,9
INT 21H
JMP EXIT
CON1:
CMP AL,'A'
JB OTHERS
CMP AL,'Z'
JA CON2
LEA DX,LOUT
MOV AH,9
INT 21H
JMP EXIT
CON2:
CMP AL,'a'
JB OTHERS
CMP AL,'z'
JA OTHERS
LEA DX,LOUT
MOV AH,9
INT 21H
JMP EXIT
OTHERS:
LEA DX,OOUT
MOV AH,9
INT 21H
EXIT:
MOV AX,4C00H
INT 21H
MAIN ENDP
CODESG ENDS
END MAIN
Before I correct it,it always return the result from the proc OTHERS,so I add those two sentences into the code and it became correct.I think it may because the following code:
LEA DX,CRLF
MOV AH,9
INT 21H
LEA DX,CHAROUT
MOV AH,9
INT 21H
changed the value stored by the register AL,so I copyed it into the register CL,and it then became correct.
By the way,found that Assembly Language is very interesting and powerful~~
Monday, 26 January 2009
Happy New Year And The Great AC Millan
First of all,HAPPY NEW YEAR!
And just now watched a football match of AC Millan.She wins with the score of 4-1!
SeeDorf made the first goal,KaKa then scored 2 goals,then BECKHAM!My favorite star scored~
Beautiful Match!!!!!!
And I played a round Chenghai,chose ES,then TC, then Paladin,then DK,then BMG,a very succesful ES.
And just now watched a football match of AC Millan.She wins with the score of 4-1!
SeeDorf made the first goal,KaKa then scored 2 goals,then BECKHAM!My favorite star scored~
Beautiful Match!!!!!!
And I played a round Chenghai,chose ES,then TC, then Paladin,then DK,then BMG,a very succesful ES.
Friday, 23 January 2009
First Time APM 100+ In War3
Just now played a round Chenghai with my classmate Qin Zihao,I chose BM as my first hero,then BMG,then Lich,and I found my APM is 136.99,maximum over 220!(We didn't finish this game because his mother is angry with him~I have got a little advantage over him)
A great progress.
This morning I installed the S60_2nd(8.0a) SDK and Visual C++ 6.0,and successfully built the HelloWorldBasic example program.
Thursday, 22 January 2009
Crack Is Great
Wednesday, 21 January 2009
Drink A Lot&Talk A Lot
Yesterday evening I went to Yizer's party.Many of his friends attended it,and I met a boy called Wang Hailong,he is studying Software Engineering at Hei Longjiang University.He used to be a student of my chemistry and physics teacher--Xu Deli and Liu Zhanwei.HEHE~
Found him a really interesting guy~
We all drank many cups of beer.And I really drank much more than ever before~
Party is really a good chance to meet new friends~
For such a long time haven't update this blog[other blogs either...>_<]because of so many lessons and exams.Now finally get into my holiday,and just finished the whole English homework..
Three cups of tea,and became clear-headed..
Found him a really interesting guy~
We all drank many cups of beer.And I really drank much more than ever before~
Party is really a good chance to meet new friends~
For such a long time haven't update this blog[other blogs either...>_<]because of so many lessons and exams.Now finally get into my holiday,and just finished the whole English homework..
Three cups of tea,and became clear-headed..
Sunday, 11 January 2009
Back From Windows
Saturday, 10 January 2009
Compile To Install Emacs22.3
Compiling to install the great editor Emacs.
Like it very much,wrote many programs by it in the last period of my programming career.
Just watched chapter 25 of my girl's favourite animation Death Note.In this chapter her favourite role L was killed...
She said L was the same with me....
Lonely.Talent.
When L closed his clearly eyes,I felt like something lost in my heart...
Wednesday, 7 January 2009
A Sentence
Coloured glaze is made for breaking.
This just came into my mind yesterday evening when doing geography paper.
But my girl,I promised you forever be with you.
And you've promised me,too.
To tell the truth,I want you my wife some years later.
Can we?
This just came into my mind yesterday evening when doing geography paper.
But my girl,I promised you forever be with you.
And you've promised me,too.
To tell the truth,I want you my wife some years later.
Can we?
Tuesday, 6 January 2009
A+B Program In C++
A Cup Of Sumiyaki Coffee
Daddy bought me a pocket of Sumiyaki Coffee in Hainan.
Now drink a cup and begin to study~
Now drink a cup and begin to study~
Study
Study through midnight.
Without feeling tired,don't know what's wrong.
My girl is sleeping now,but I didn't accompany her.
Forgive me,please.The Oracle The God.
Without feeling tired,don't know what's wrong.
My girl is sleeping now,but I didn't accompany her.
Forgive me,please.The Oracle The God.
Monday, 5 January 2009
Printer
For a long time my effort trying to add my Legend M7200 Printer into Ubuntu failed.Because the .ppd file provided by the gift CD is not supported by Ubuntu.Faint.
Just now I tried the Generic settings for the printer,it told me add succeed,I wrote a sentence 'Just For Test' and tried to print it,the printer works!!
Great Ubuntu~
Again feels the power of millions of HACKERS~
Just now I tried the Generic settings for the printer,it told me add succeed,I wrote a sentence 'Just For Test' and tried to print it,the printer works!!
Great Ubuntu~
Again feels the power of millions of HACKERS~
The Second Day Under Ubuntu
Exam results not bad,so I can open my computer today~[Just a joke,even bad I can also done this]
On the way home,I told my mother that Ubuntu is a lot better than Fedora Core--that system runs very slow on my computer!--faster,less-bug,and the simple apt-get!
I hope this system not crash very soon HEHE~
Miss my girl a lot.
She cried today without telling me the reason.
I know it's her way her style her right.
When I walk her home,we talked many thing including the stupid CPY..
She laughed.
I wish her no more sorrow.
On the way home,I told my mother that Ubuntu is a lot better than Fedora Core--that system runs very slow on my computer!--faster,less-bug,and the simple apt-get!
I hope this system not crash very soon HEHE~
Miss my girl a lot.
She cried today without telling me the reason.
I know it's her way her style her right.
When I walk her home,we talked many thing including the stupid CPY..
She laughed.
I wish her no more sorrow.
Sunday, 4 January 2009
Installing finished
Just finished installing Language Support and many things else like QQ etc.
Rhythmbox--such a poetic name for a music player,understand the meaning just now...Faint,too.
Though now I can write something in Chinese,I do not wanna do it~~
And,
though this blog is called 'Code Fortress',I do not want to make it a complete blog of programming.
Reason is simple,because I've left this area~
Today I watched some video on Tudou.com[Youtube in China~] about a map of War3,which we call it Chenghai in Chinese,the explication is a man called Xiaozhi.He has left the arena of this map.I think I got something when he explained why he left.
Yes,maybe someday I would truly say goodbye to Code or Programming,and maybe someday I would come back.
Now I really missed the days 2 months ago.When we fight together for our beautiful dreams.Full of memories.I will keep those days in my mind forever.
How long haven't we stay together,Yizer,Teacher Yuan,CPY,HG and other boys and girls.
Just like a joke.Now is 2009,but my memory still lives in 2008.
A year I cannot forget.
So many happy,so many sorrow.
Rhythmbox--such a poetic name for a music player,understand the meaning just now...Faint,too.
Though now I can write something in Chinese,I do not wanna do it~~
And,
though this blog is called 'Code Fortress',I do not want to make it a complete blog of programming.
Reason is simple,because I've left this area~
Today I watched some video on Tudou.com[Youtube in China~] about a map of War3,which we call it Chenghai in Chinese,the explication is a man called Xiaozhi.He has left the arena of this map.I think I got something when he explained why he left.
Yes,maybe someday I would truly say goodbye to Code or Programming,and maybe someday I would come back.
Now I really missed the days 2 months ago.When we fight together for our beautiful dreams.Full of memories.I will keep those days in my mind forever.
How long haven't we stay together,Yizer,Teacher Yuan,CPY,HG and other boys and girls.
Just like a joke.Now is 2009,but my memory still lives in 2008.
A year I cannot forget.
So many happy,so many sorrow.
Poor Wired Network Connection
My downloading rate is so low.So I still cannot type Chinese under this fantasy system.Faint again.
Ignore CPY.I've just finished install and test the Free Pascal compile and IDE environment under Ubuntu.Feel Great~~
E~~,yes,wanna try Eclipse under Ubuntu,I like its font very much~
Poor Wired Network Connection!!!
With Language Support downloading items,Ubuntu cannot install .deb packages!
QQ,Adobe Reader,Adobe Flash Player.....
Ignore CPY.I've just finished install and test the Free Pascal compile and IDE environment under Ubuntu.Feel Great~~
E~~,yes,wanna try Eclipse under Ubuntu,I like its font very much~
Poor Wired Network Connection!!!
With Language Support downloading items,Ubuntu cannot install .deb packages!
QQ,Adobe Reader,Adobe Flash Player.....
Posted by
AquarHEAD
at
19:02:00
Labels:
Free Pascal,
IDE,
Pascal,
Poor,
Wired Network Connection
My Ubuntu finally succed
As title.
By using the iso file of Super Ubuntu[2008.11],this fantasy system can finally run on my computer.Before this when I use the standard Ubuntu desktop iso it crash when loading desktop!
Faint for such a long time.
And for two nights I've been thinking about the name of this new blog.You know we are in testing now,but I still thought it many times.
So,a new blog and a new life.
By using the iso file of Super Ubuntu[2008.11],this fantasy system can finally run on my computer.Before this when I use the standard Ubuntu desktop iso it crash when loading desktop!
Faint for such a long time.
And for two nights I've been thinking about the name of this new blog.You know we are in testing now,but I still thought it many times.
So,a new blog and a new life.
Subscribe to:
Posts (Atom)