From now on , i will write blog everyday to record what i do and learn , i mean i will try everyday .Now it depart from three part: debug , do and learn .
Debug is for what i try to deal with , the problem and solution ,to remind me not to make such stupid mistakes .
Do is for what i code , with the function or web or anything i write today .
Learn is obviously is the thing i learn today .
/********************** 4.09 *********************/
1.Debug
Prolem: booth buddy, bar add mistake .At first, it is the problem in backbend. After Felix said he has fixed the problem , i tred ,it still made th e server die.
Reason: it because i submit the longitude and latitude is 222, which i just type optionally without thinking about it should between -180 to 180.
Lesson: remember to try the right and suitable value to test.
2.Debug
Prolem: Always look "invalid" as "valid" when the server send back to the status num, and always think i have done the right thing.
Reason: Broken brain
Lesson: You know= =
3.Debug
Prolem: $(".box").html("test"); always cant display out
Reason: write "class" wrong as "calss" in HTML
Lesson: i often make such stupid problem = =
4.Learn
thing: anonymous function in js.
5.Do
thing: finish add、edit、delete、view bar in Booth Buddy. Finish a web page of Booth Buddy , index.html
/********************** 4.10 *********************/
Last day work for BBT, back to my valuable college life and find a better job in summer.
1.debug
problem: add function is always call back invalid argument.
solution: it works before i add edit function . so i copy some part of code from last version, it works.
2.Done
thing: the form check function, remind user to input the must value.
3.Learn
thing: better to add prefix to item in localStorage using the project name in order to avoid the same item name as other project.
/********************** 4.11 *********************/
NONE, what the fuck have you done?!
/********************** 4.12 *********************/
1.Done
thing: Fixed the float cloud position problem in my self project web site
solution: add a center box outside the several pieces of cloud
/********************** 4.13 *********************/
1.Learn
thing: ys. taught me how to download images by his program archer and showed me his comic picker project, so amazing !
thought: there are so much i have to learn and do !!!
2.Done
thing: used HTML5 canvas to make the shining star effect, but still haven't make it looks like shining
further: try "globalAlpha" property tomorrow
3.Done
thing: finish the rolling news block for donation thanks
/********************** 4.14 *********************/
1.Learn
thing: Andtoid exchange meeting. Know about the three main UI design in android projects.
2.Done
thing: make twinkle stars different opacity using HTML5
further: still have some problem, it can't clear the cancas.
3.Done
thing: start laker.js , two version, one is JQ plugins, one is function form. test randomeNun, imgScroll and floatCloud function successfully.
/********************** 4.15 *********************/
1.Done
thing: public laker,js to github
further: use Jkell to make the website to publish laker.js , include doc and demo
2.Learn
thing: chat with Mr.Gao ,talk about my plans and feature.
/********************** 4.16 *********************/
1.Learn
thing: should restart the computer when set the environment variable
2.Learn
thing: defult argument value of function in JS
function my(a){
a = argument[0] ? argument[0] : 5;
}
function my(a){
alert(a||5);
}
function my(a){
a = typeof(a) == 'undefined' ? 5 : a;
}
function my(a){
if(typeof(a) == 'undefined'){
a = 5;
}
}
/********************** 4.17 *********************/
1.Learn
thing: learn about the real response design, I found that i was wrong about using Bootstrap.
Here is the doc and demo: http://twitter.github.io/bootstrap/scaffolding.html#layouts
add this first:
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
Using it ".span1-12" class for the container, and "visible/hidden-phone/desktop/tablets"
2.Done
thing: finishe "Lehuo" index.html basic layout
/********************** 4.18 *********************/
1.Done
thing: fix some layout and response design prolem in "Lehuo"
2.Learn
thing: using "min-height", add"overflow: hidden;", called "Enclosing float"
here is an article about "Enclosing float and Clearing float" http://www.cnblogs.com/mofish/archive/2012/05/14/2499400.html
/********************** 4.19 *********************/
1.Done
thing: Look for some Bootstrap resource, like snippet, theme, and tool, learn more about how to use it correctly.
/********************** 4.20 *********************/
1.Done
thing: use "@media" property to set different css style for some container.
@media (max-width) { style..... }
/********************** 4.21 *********************/
1.Done
thing: help a buddy deal a tab problem.
2.Done
thing: Solo wu help me deal with the jekyll problem in ubuntu
/********************** 4.22 *********************/
1.Learn
thing: if write "$" in a js sublime snippet can't work , because it use "${}" to set the ordser.
solutuon: write "\$" instead.
2.Done
thing: star a sublime snippet repo in Github.
3.Learn
thing: learn hoe to use markdown, and write some doc for the sublime snippet repo.
4.Done
thing: write some js sublime snippet.
/********************** 4.23 *********************/
1.Done
thing: Tecent first turn interview, by yuni shi.
/********************** 4.24 *********************/
1.Learn
thing: read the book -- JavaScript Guider
learn: review the basic function and property of js
2.Done
thing: Tecent first turn interview,by another interviewer.
3.Done
thing: continue sublime snippets repo in github
/********************** 4.25 *********************/
1.Learn
thing: review data struct.
2.Learn
thing: closure in js, sorting algorithm and their time complexity adn space complexity, status code.
/********************** 4.26 *********************/
1.Done
thing: Tecent second turn interciew
/********************** 4.27 *********************/
1.Done
thing: almost finish basic sublime snippet of jq file
/********************** 4.28 *********************/
1.Done
thing: chat with yunishi, and telephone interviewed by Tecent Video.
learn: there are so many things i don't know, and i should learn more about computer science and internrt science. Prepare for October!
2.Done
thing: finish sublime snippet of jq file, and add html file
furthwe: finish js file and add python , php file.
/********************** 4.29 *********************/
1.Done
thing: basically finish sublime js snippets .
2.Done
thing: search for sth about willow, find some good resouce.
3.Learn
thing: watch a TED video about making better memory, to remember things by some crazy imagination.
4.Done
thing: find some bug in NetEase recruiment wabsite.
/********************** 4.30 *********************/
1.Done
thing: finish submlime snippets V1.0
further: add some H5、CSS3 snippets
2.Done
thing: test Google hangout with ys and mygore
3.Done
thing: set apache config, make other device can visist my computer, so that i can test my web project in phone.