반응형
반응형

Ack 2.04 — Grep-like tool for programmers

Ack 2.04 is a grep-like tool created for programmers who have to work with large heterogeneous trees of source code. Ack is written in Perl 5, and offers excellent code search capabilities, is highly portable, and is blazing fast.

ack

반응형
반응형

 

1. 지원하는 브라우저의 종류

웹스토리지는 IE8+, 파이어폭스, 오페라, 크롬, 사파리를 지원합니다.

IE7과 그 이전버젼에서는 지원하지 않습니다.

 

 

2. 데이터 저장 객체

클라이언트에 데이터를 저장하기위한 두 종류의 객체가 있습니다.

  • localStorage - 시간이 지나도 저장된 데이터가 지워지지 않습니다.

같은 브라우저내에 다른 윈도우창에서도 데이터가 공유됩니다.


  • sessionStorage - 하나의 세션의 데이터가 저장됩니다.

server session의 개념과 다릅니다. 해당 윈도우내에서만 데이터가 공유됩니다. 같은 브라우저내의 같은 도메인이라도 윈도우창이 다르면 데이터를 공유하지 않습니다.


3. 스토리지 지원 여부 체크

if ( typeof(Storage) !== "undefined" ) {

//웹 스토리지 지원

} else {

//웹 스토리지 미지원

}


4. 사용법

a-1. sessionStorage.setItem("one", "1");

a-2. sessionStorage.getItem("one");


b-1. sessionStorage.one = "first";

b-2. sessionStorage.one


c-1. sessionStorage[0] = "1000";

c-2. sessionStorage[0]


5. 브라우저별 스토리지 용량

웹 스토리지는 용량이 무한하지 않습니다. 또한 브라우저별로 제한 용량이 다를뿐 아니라 같은 브라우저라도 버젼별로 그 값이 상이합니다.

  • iOS - 2.49MB / 2.49MB
  • Android 2.2+, 3.1+ - 2.49MB / Unlimited
  • Android 3.0 - 2.49MB / 2.49MB
  • IE 6, 7 - 지원하지 않음
  • IE 8+ - 4.75MB / 4.75MB
  • Chrome 4.0 - 지원하지 않음
  • Chrome 6+ - 2.49MB / 2.49MB
  • Firefox 3.5+ - 4.98MB / Unlimited / (globalStorage - 4.98MB)
  • Safari 5+ - 2.49MB / Unlimited


6. 사용하는 용량체크하는 법
JSON.stringify(sessionStorage).length

 

 

반응형
반응형

1. <% @CODEPAGE="65001" language="VBScript" %>
 
코드 페이지는 숫자, 구두점, 기타 그림 문자 등을 포함하는 문자 집합이다.
각 언어와 로케일마다 다른 코드 페이지를 사용한다.
 
대표적인 코드 페이지 값
949   : 한국어 (EUC-KR)
65001 : 유니코드 (UTF-8)
 
 
ASP에서 코드 페이지를 지정하기 위해서는 Session.CodePage 프로퍼티나 @CODEPAGE 명령어를 사용한다.
결과는 같지만 적용범위의 차이가 있다.
 
Session.CodePage 프로퍼티를 이용해서 코드 페이지를 지정하면 세션 범위 내에서 실행되고 있는 모든 스크립트에 적용되지만, @CODEPAGE를 사용하면 지정한 페이지에만 영향을 미치게 된다.

 
페이지 상단에 @CODEPAGE를 지정하여 해당 페이지 전체에 적용하거나,
코드 중간에 Session.CodePage 프로퍼티를 지정하여 동적으로 설정할 수 있다.
 

2. Session.CodePage = 65001
현재 세션의 동적 코드 페이지 설정.
스크립트 일부분에서 외국어로 된 문장을 출력하려면 코드 페이지를 일시적으로 출력할 외국어의 코드 페이지로 변경하여 출력 후 원래의 코드 페이지 값으로 복원해주면 된다.
 
3. Response.CharSet = "UTF-8"
문자 집합 이름을 응답 개체의 content-type 헤더에 추가한다.
 
4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 해당 페이지의 (HTML,ASP,JSP,PHP 등) 정보를 가지고 있는 메타 태그를 설정.
 
5. 에디트플러스 등으로 저장할 때 반드시 해당 Encoding 방식으로 저장한다.
65001 일땐 필히 UTF-8로 저장해야함.

반응형
반응형
APTANA plugin - Syntax HighLighter

 

http://colorer.sourceforge.net/eclipsecolorer/

 

 

 

* APTANA에서 추가.

  [Help] - [Install New Software] - [Add]

  

 

Eclipse platform plugin

EclipseColorer is based on a native Colorer-take5 library, so each platform has its own native part library. By default the package contains plugin's stuff compiled for win32, Linux(x86 and x86_64) and MacOS (ppc and x86 platforms).

Features

  • Enchanced and fixed word wrapping mode.
  • Automatic folding support for mostly all (200+) supported languages
  • Per-type customizable color schemas and editor parameters.
  • Automatic errors and todo comments annotation.
  • Paired constructions highlighting and matching.
  • Shortcuts for pairs matching.
  • Different color schemes.
  • Replacement of tabs with spaces option.
  • Choosing of currently used syntax mode in editor (list of all available types).
  • Dynamic library reloading.
  • Powerful and flexible outliner for all common languages.
  • Errors list is included into the outliner view.
  • Colored sources generation into HTML files (Available in the navigator's context menu).
  • Find more in screenshots section.
반응형
반응형
Canvas에 대해. Let’s Call It A Draw(ing Surface)

 

http://diveintohtml5.info/canvas.html#divingin

 

HTML 5 defines the <canvas> element as “a resolution-dependent bitmap canvas which can be used for rendering graphs, game graphics, or other visual images on the fly.” A canvas is a rectangle in your page where you can use JavaScript to draw anything you want.

Basic <canvas> support
IE Firefox Safari Chrome Opera iPhone Android
7.0+* 3.0+ 3.0+ 3.0+ 10.0+ 1.0+ 1.0+
* Internet Explorer 7 and 8 require the third-party explorercanvas library. Internet Explorer 9 supports <canvas> natively.

So what does a canvas look like? Nothing, really. A <canvas> element has no content and no border of its own.

반응형
반응형
https://github.com/sdeering/gumby2-backbone-bootstrap

 

Gumby2 Backbone Bootstrap

I have created a new repo which combines Gumby2 CSS Framework with Backbone.js.

Barebones Demo

Why Gumby2?

* Gumby2 has awesome touch event support.
* Gumby2 is powered by SASS.
* more -> 

Why Backbone?

* Speed, it supercharges your web app.
* Data, Logic and View separation.
* Dynamic template loading and execution.
* more -> 

Features:

* Gumby2 Framework - Bootstrap UI, SASS, HTML5BP, Touch Support.
* Backbone Framework - Web App Models, Views/Templates 
* more -> 

Todo:

* Load scripts using require.js
* Document build process
* Document SASS usage
* more -> 
반응형

+ Recent posts