2011.04.04 수영강습

두번째 저녁 9시 강습. 야옹동물병원 원장님도 뵙고~
오늘은 상급반 2번 레인. 헛~ 운동량이...
숨이 차서 익사하는줄 알았네.
킥판잡고 자유형킥 50m, 평영킥 100m
자유형 스트로크 연습 3바퀴
땅콩끼고 자유형 스트로크 4바퀴
평영 4바퀴
접영킥 & 배영 50m 4바퀴 (배영에서 거의 물을 들이키다시피하며 나아간다.)
스트레칭.
IM 100m
스타트 연습 10분. 개인적으로 스타트 연습이 제일 힘들지 않을까? 일단 풀밖으로 나가는게 힘들다.
그렇게 마무리 하고~ 집에까지 걸어오는 길은 너무 개운한 기분!
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/04/04 23:11 2011/04/04 23:11
, , Keyword 수영
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6048

웹상에서 Jquery를 테스트 해볼수 있다. - http://jsbin.com/

JS Bin Help

JS Bin is an open source collaborative JavaScript debugging tool.

If you want to get involved to help make JS Bin better (or perhaps fix a bug you've found), please fork JS Bin on github and send me a pull request.

Video tutorials will be coming shortly one day.



크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/04/04 18:14 2011/04/04 18:14
, ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6045

Html5Demos : http://html5demos.com/
Html5를 응용하는 데모들을 보여준다.
Geolocation, CrossDomain, Canvas, Video, Drag&Drop 등이 있다.

HTML 5 Demos and Examples

HTML 5 experimentation and demos I've hacked together. Click on the browser support icon or the technology tag to filter the demos (the filter is an OR filter).

Introducing HTML5 by Bruce Lawson & Remy Sharp is the first full length book dedicated to HTML5.

Get it now and kick some HTML5 ass!

Filter demos: canvas contenteditable dataset dnd events file-api geolocation history manifest offline postMessage sql-database storage video websocket workers



크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/04/04 18:12 2011/04/04 18:12
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6044

코드를 테스트하고 코드에 대한 테스트 케이스를 만드는 과정을 개인적으로는
코드를 "미리검증(future-proofing)"하는 일이라고 본다. 작성된 코드와 라이브러리에 대한
테스트 케이스를 만들어놓으면 이상한 버그를 잡으면서, 게다가 자기도 모르는 사이에
코드에 새로운 버그를 집어넣으면서 디버깅하느라 보낼 지도 모르는
수많은 시간을 절약할 수 있다.

JSUnit : http://www.jsunit.net/
 자바스크립트 단위 테스트 라이브러리이다.  JSUnit에는 세 가지 기본 컴포넌트가 존재한다.
테스트 러너(test runner) : 테스트 묶음에서 테스트 러너 부분은 현재 테스트 과정이 얼마나 진행되었는지 알기 쉬운 그림으로 보여준다. 테스트 묶음을 로드하고 그 내용을 실행하고 결과를 기록하는 기능을 제공한다.
테스트 묶음(test suite) : 테스트 케이스들의 묶음을 말한다.(가끔 여러 웹 페이지에 나뉘어 있기도 하다.)
테스트 케이스(test case) : 참/거짓을 나타내는 간단한 표현식이다. 코드가 제대로 작동하고 있는지 확인할 수 있는 수치화한 결과를 돌려준다. 테스트 케이스만으로는 완벽하지 않으며, 테스트 러너와 함께 사용하면 인터렉티브한 테스트 환경을 제공한다.

ex) test suite
<html>
<head>
    <title>JsUnit Test Suite</title>
    <script src="../app/jsUnitCore.js"></script>
    <script>
        function suite() {
            var newsuite = new top.jsUnitTestSuite();
            newsuite.addTestPage("jsUnitTests.html");
            return newsuite;
        }
    </script>
</head>
<body></body>
</html>
ex) test case
<html>
<head>
<title>JsUnit Assertion Tests</title>
<script src="../app/jsUnitCore.js"></script>
<script>
// Test that an expression is  true
function testAssertTrue() {
    assertTrue("true should be true", true);
    assertTrue(true);
}

// Test that an expression is false
function testAssertFalse() {
    assertFalse("false should be false", false);
    assertFalse(false);
}

// Tests to see if two arguments are equal to each other
function testAssertEquals() {
    assertEquals("1 should equal 1", 1, 1);
    assertEquals(1, 1);
}

// Tests to see if they're not equal to each other
function testAssertNotEquals() {
    assertNotEquals("1 should not equal 2", 1, 2);
    assertNotEquals(1, 2);
}
// Tests to see if the argument is equal to null
function testAssertNull() {
    assertNull("null should be null", null);
    assertNull(null);
}

// Of is not equal to null
function testAssertNotNull() {
    assertNotNull("1 should not be null", 1);
    assertNotNull(1);
}

// plus many many more
</script>
</head>
<body></body>
</html>

J3Unit : http://j3unit.sourceforge.net/
              http://sourceforge.net/projects/j3unit/files/

ex) J3Unit을 사용해 실행한 간단한 테스트
<html>
<head>
<title>Sample Test</title>
<script src="js/unittest.js" type="text/javascript"></script>
<script src="js/suiterunner.js" type="text/javascript"></script>
</head>
<body>
<p id="title">Sample Test</p>
<script type="text/javascript">
new Test.Unit.Runner({
    // Test hiding and showing an element
    testToggle: function() {with(this) {
        var title = document.getElementById("title");
        title.style.display = 'none';
        assertNotVisible(title, "title should be invisible");
        element.style.display = 'block';
        assertVisible(title, "title should be visible");
    }},

    // Test appending an element to another
    testAppend: function() {with(this) {
        var title = document.getElementById("title");
        var p = document.createElement("p");
        title.appendChild( p );

        assertNotNull( title.lastChild );
        assertEqual( title.lastChild, p );
    }}
});
</script>
</body>
</html>

Test.Simple : http://openjsan.org/doc/t/th/theory/te ··· ple.html
Test.Simple은 JSAN을 만들면서 JSAN에 제출되는 모든 자바스크립트 모듈을 테스트하는
방법을 표준화 하기 위해 도입된 단위 테스트 도구다.

ex) 테스트를 위해 Test.Simple과 Test.More을 사용하는 예
// Test 모듈을 로드한다.(테스트 자체도 함께!)
new JSAN('../lib').use('Test.More');

// 여섯 가지 테스트를 실행한다고 알린다. (언제, 무엇이 잘못되었는지 알기 위해)
plan({tests: 6});

// 세 가지 간단한 경우를 테스트 한다.
ok( 2 == 2,             'two is two is two is two' );
is( "foo", "foo",       'foo is foo' );
isnt( "foo", "bar",     'foo isnt bar');

// 정규 표현식을 사용해 테스트한다.
like("fooble", /^foo/,   'foo is like fooble');
like("FooBle", /foo/i,   'foo is like FooBle');
like("/usr/local/", '^\/usr\/local', 'regexes with slashes in like' );












크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/04/04 14:06 2011/04/04 14:06
, , , ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6043

Ext Core Cross - Browser Javascript Library
Ext Core is a JavaScript Library for enhancing websites.
Ext Core has great documentation and will always be free to use under the MIT Open Source License.
Ext Core is for websites.



Browser Compatibility

Ext Core supports all major web browsers including:

  • Internet Explorer 6+
  • FireFox 1.5+ (PC, Mac)
  • Safari 3+
  • Chrome 3+
  • Opera 9+ (PC, Mac)

safari firefox ie chrome opera

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/04/04 09:18 2011/04/04 09:18
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6042

부의 격차보다 무서운 것은 꿈의 격차이다.
불가능해 보이는 목표라 할지라도,
그것을 꿈꾸고 상상하는 순간 이미 거기에 다가가 있는 셈이다.
-이지성, ‘꿈꾸는 다락방’에서

성공으로 가는 프로그램은
반드시 이렇게 되고 싶다는 간절한 꿈에서 시작합니다.
꿈은 상상을 통해 얼마간 실현의 기쁨을 미리 맛보게 해줍니다.
그 기쁨과 기대가 도전할 수 있는 에너지가 되어
무엇이든 실천하게 합니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/04/04 09:02 2011/04/04 09:02
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6041

자족

어떤 사람이 행복하게 보이는가?
바로 자기의 삶에 자족하며 사는 사람이다.
어떤 일이든 자족하는 것은 쉽지 않다.
자족은 단번에 이루어지는 것이 아니다.
자족은 연습과 배우는 것을 통해 이루어진다.
나이가 들면서 우리는 자족을 배워야 한다.


- 이대희의《멋지게 나이 드는 법》중에서 -


* 다 가졌기 때문이 아닙니다.
다 이루었기 때문이 결코 아닙니다.
아직도 모자라고 이루고자 하는 것이 많지만
지금 내 앞에 있는 것에 감사하며 사는 것입니다.
내가 하는 일, 내가 먹는 밥, 내가 얻은 사랑에
감사하면 행복은 저절로 따라 옵니다.
자족도 훈련입니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/04/04 09:02 2011/04/04 09:02
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6040


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2011/04   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Statistics Graph

Site Stats

Total hits:
186625
Today:
94
Yesterday:
789