오랜만에 파이썬을 설치해보자. 이클립스 설치한 김에 같이 깔아본다.
PyDev 를 이클립스에 연결할 것이다.
http://python.org/ftp/python/ 주소로 접속해서 원하는 버전의 파이썬을 다운받아서 설치한다. 난 3.2 버전으로!

이클립스에서 Add 할때, Available Software Sites에서  Name은 PyDev로  Location 은 http://pydev.org/updates 로 지정한다.

설치하고 난 후 Preferences 들어가서  Interpreter - Python 에 설치된 python.exe 파일을 연결하고 파이썬 프로젝트를 하나 만들어보자.

아래는 설치후 테스트 할 소스 : [펌] http://phoenix208.blog.me/40122670423
#-- coding : cp949 --
print ('triangle \n')
d = float(input('length : '))

for i in range(int(d+1)):
    print('* '*i)
    
area = float((d ** 2) / 2)
print('width: ', area)

input()  

테스트 실행 화면
사용자 삽입 이미지사용자 삽입 이미지




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

Posted by 홍반장

2011/03/15 17:52 2011/03/15 17:52
, , ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5935

Standard relational operators

Standard relational operators

The standard numerical relational operators used in programming languages are shown below.

Common relational operators
In programming languages In print Meaning Used to:
C-like 1 BASIC-like 2 Mathematica[1] MATLAB 3 Fortran 4 Bourne-like shells 5 MUMPS
== = == Equal[x,y] == eq(x,y) == .EQ. -eq = = equal to Test the equivalence of two values.
!= <> != Unequal[x,y] ~= ne(x,y) /= .NE. -ne '= not equal to Test the negated equivalence of two values.
> > > Greater[x,y] > gt(x,y) > .GT. -gt > > greater than Test if the value of the left expression is greater than that of the right.
< < < Less[x,y] < lt(x,y) < .LT. -lt < < less than Test if the value of the left expression is less than that of the right.
>= >= >= GreaterEqual[x,y] >= ge(x,y) >= .GE. -ge '< greater than or equal to Test if the value of the left expression is greater than or equal to that of the right.
<= <= <= LessEqual[x,y] <= le(x,y) <= .LE. -le '> less than or equal to Test if the value of the left expression is less than or equal to that of the right.
Note (1): Including C, C++, C#, Go, Java, JavaScript, Perl (numerical comparison only), PHP, Python, and Ruby.
Note (2): Including BASIC, Visual Basic .NET, VB.NET, Objective Caml, Pascal, SQL, and Standard ML.
Note (3): MATLAB, although in other respects using similar syntax as C, does not use !=, as ! in MATLAB sends the following text as a command line to the operating system.
Note (4): The first form including Haskell.
Note (5): Including Bourne shell, Bash, Korn shell, and Windows PowerShell. The symbols < and > are usually used in a shell for redirection, so other symbols need to be used. Without the hyphen, is used in Perl for string comparison.



The following table lists the different mechanisms to test for these two types of equality in various languages:

Language Physical equality Structural equality Notes
C, C++ a == b *a == *b a and b are pointers
C# object.ReferenceEquals(a, b)1 a.Equals(b)1
Common Lisp (eq a b) (equal a b)
Java a == b a.equals(b) a and b are references
Objective Caml a == b a = b
Pascal a^ = b^ a = b
Perl $a == $b $$a == $$b $a and $b are references to scalars
PHP5 N/A $a == $b $a and $b are objects
Python a is b a == b
Ruby a.equal?(b) a == b
Scheme (eq? a b) (equal? a b)
Visual Basic .NET a Is b a = b
Objective-C a == b [a isEqual:b] a and b are pointers to objects

1 In C#, the == operator defaults to ReferenceEquals, but can be overloaded to perform Equals instead. This allows to test for structural equality wherever it's more intuitive, most notably in string comparison.


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

Posted by 홍반장

2011/03/15 16:30 2011/03/15 16:30
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5934

jQuery   is a new kind of JavaScript Library.
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.

gitHub : https://github.com/  github social coding

Sencha . touch : http://www.sencha.com/products/touch/Sencha

jQTouch : http://www.jqtouch.com/

jQuery Mobile | http://jquerymobile.com/

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

Posted by 홍반장

2011/03/15 16:00 2011/03/15 16:00
, , , ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5933

http://developer.appcelerator.com/

Today you need to be in three places at once: Online, On-phone, and On-desktop. Titanium empowers you to create immersive, full-featured applications that go beyond browser boundaries and stick with your audience whenever and wherever they are.

Titanium applications are divided into 4 main parts:
  1. The html/css/javascript code that makes up the core application logic and UI
  2. The APIs that access native device/desktop functionality, analytics or other modular functionality
  3. The language-OS bridge that compiles web code into native application code
  4. The run-time shell that packages the application for cross-platform distribution.

Once built, Titanium-based applications can be tested, packaged, and distributed through the Appcelerator Network’s cloud services. The Titanium platform is open source, so you may also access the source code to the complete application at any time for your own use.



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

Posted by 홍반장

2011/03/15 13:09 2011/03/15 13:09
, ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5932

감사하는 마음을 가지면 부가 생기고,
불평하는 마음을 가지면 가난이 온다.
감사하는 마음은 행복으로 가는 문을 열어 준다.
감사하는 마음은 우리를 신과 함께 있도록 해 준다.
늘 모든 일에 감사하게 되면 우리의 근심도 풀린다.
-존 템플턴

감사하는 마음을 가지면 세상은 천국이 되고
불평하는 마음을 가지면 세상은 지옥이 됩니다.
생각을 바꿔보면
‘모든 고난 속에는 반드시 축복이 숨어있음’을 발견할 수 있습니다.
따라서 세상에 감사하지 못할 것은 하나도 없습니다.

'감사하면 아름다우리라. 감사하면 행복하리라. 감사하면 따뜻하리라.
감사하면 웃게되리라.' 이해인 수녀의 글도 함께 보내드립니다.

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

Posted by 홍반장

2011/03/15 09:59 2011/03/15 09:59
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5931

내가 지금 하는 일

지금 하는 일이 가장 중요하다
지금 내가 하는 일이 아무 쓸모가 없는 것일 수도 있다.
하지만 그 일을 하는 나는 그것이 아무 쓸모가 없다고
생각해서는 안 된다. 그러면 그 일을 무사히
끝마칠 수 없기 때문이다.


- 랄프 왈도 에머슨의《스스로 행복한 사람》중에서 -


* 지금 하는 일이 시시할 수 있습니다.
돈도 안되고 비전도 없는 것일 수도 있습니다.
그러나 지금 하는 일에 모든 것이 달려 있습니다.
나에게 주어진 가장 큰 선물이라고 생각해야
하루가 행복하고 그 다음날도 행복합니다.
삶이 행복해집니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/03/15 09:57 2011/03/15 09:57
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5930


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2011/03   »
    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 31    
Statistics Graph

Site Stats

Total hits:
185573
Today:
576
Yesterday:
328