'잡동사니'에 해당되는 글 14107건

  1. 2012.12.06 lisp tutorial
  2. 2012.12.06 HAM 일정
  3. 2012.12.05 lisp - #' 와 '
  4. 2012.12.04 홈월드2 컴플렉스 MOD
  5. 2012.12.04 홈월드 2 관련
  6. 2012.12.03 php ++,-- 연산자
  7. 2012.12.03 클로져
  8. 2012.12.02 오랫만에 홈월드2
  9. 2012.12.01 mysql 명령어 정리
  10. 2012.12.01 장비 분출목록
Programming/lisp2012. 12. 6. 18:58
lisp 강의자료나 예제를 찾다가 발견
이 내용을 lisp 처음공부할때 보았더라면 이해를 했을텐데....

[링크 : http://www2.cs.sfu.ca/CourseCentral/310/pwfong/Lisp/]
[링크 : http://www.cs.sfu.ca/CourseCentral/310/pwfong/Lisp/1/tutorial1.html]

'Programming > lisp' 카테고리의 다른 글

lisp vector  (0) 2012.12.14
lisp atom  (0) 2012.12.11
lisp - #' 와 '  (0) 2012.12.05
클로져  (0) 2012.12.03
lisp는 리스트지 prefix 표기법이 아니다  (0) 2012.11.19
Posted by 구차니
2.17~23 접수
그나저나 실기가 있네 -ㅁ-?



[링크 : http://www.karl.or.kr/skin/html/sub2_4.php]
Posted by 구차니
Programming/lisp2012. 12. 5. 23:18
'는 quote(인용)인데
함수적 언어인 lisp에서 함수를 쓰지 않고 list나 atom을 만드는데 사용한다.
> (quote a)
A
> 'a
A
> '(a)
(A) 
> (quote (a))
(A) 

>'(+ 1 2)
(+ 1 2)

위의 예제와 같이 (quote val)과 'val은 동일하며 atom을 나타낼때 사용된다.
atom으로 쓰려면 'val
list로 쓰려면 '(val)
로 사용하면 된다. 물론 함수역시 list의 atom으로서 인식이 되어질수 있다.



#'는 lisp 문서를 보다가 찾게 된 녀석인데
#' 는 (function val)과 같은 의미이고
함수 포인터라고 하기도 모호하고 아무튼.. 아직은 이해가 잘 안되는 녀석..
APPLY is also a Lisp primitive function.
APPLY takes a function and a list of objects as input. It invokes the specified function with those objects as its inputs.  The first argument to APPLY should be quoted with #’ rather than an ordinary quote; #’ is the proper way to quote functions supplied as inputs to other functions.  This will be explained in more detail in Chapter 7.
(apply #'+ '(2 3)) ⇒ 5
(apply #’equal '(12 17)) ⇒ nil 

The #’ (or ‘‘sharp quote’’) notation is the correct way to quote a function in Common Lisp.  If you want to see what the function CONS looks like in your implementation, try the following example in your Lisp:
> (setf fn #’cons)
#<Compiled-function CONS {6041410}>
> fn
#<Compiled-function CONS {6041410}>
> (type-of fn)
COMPILED-FUNCTION
> (funcall fn ’c ’d)
(C . D) 

> #'+
#<SYSTEM-FUNCTION +> 

> (function +)
#<SYSTEM-FUNCTION +> 

---2012.12.11

#는 벡터라고 한다.
[링크 : http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node30.html]

'Programming > lisp' 카테고리의 다른 글

lisp atom  (0) 2012.12.11
lisp tutorial  (0) 2012.12.06
클로져  (0) 2012.12.03
lisp는 리스트지 prefix 표기법이 아니다  (0) 2012.11.19
lisp 관련 책  (0) 2012.01.25
Posted by 구차니
게임/홈월드 시리즈2012. 12. 4. 13:43


[링크 : http://www.homeworld2complex.com] 다운로드 사이트
[링크 : http://complex.mastertopforum.com/] 포럼 (가입필요)
    [링크 : https://sites.google.com/site/complexmanual/Home] complex mod 설명서

Posted by 구차니
게임/홈월드 시리즈2012. 12. 4. 13:39
Posted by 구차니
Programming/php2012. 12. 3. 07:59
$--a 인가? --$a 인가? 고민을 허무하게 해결 ㅋㅋㅋ

Increment/decrement Operators
Example Name Effect
++$a Pre-increment Increments $a by one, then returns $a.
$a++ Post-increment Returns $a, then increments $a by one.
--$a Pre-decrement Decrements $a by one, then returns $a.
$a-- Post-decrement Returns $a, then decrements $a by one.

'Programming > php' 카테고리의 다른 글

php framework / 읽을꺼리  (0) 2014.04.09
php 메뉴얼  (0) 2014.03.28
php $_SERVER 변수  (0) 2013.07.07
index.php가 다운받아지는 문제점 -_-  (0) 2013.02.22
php 간단정리  (0) 2012.11.26
Posted by 구차니
Programming/lisp2012. 12. 3. 07:54
익명함수 , 람다 폼 이런걸로 불리는데
lisp에서 유래된건진 모르겠지만, 요즘 유행하는 신형 언어들은 거의 대부분 채택하고 있다.

[링크 : http://www.langdev.org/posts/38]
[링크 : http://www.ibm.com/developerworks/kr/library/j-jtp04247.html]

[링크 : http://bluesky.springnote.com/pages/2017150 ]
[링크 : http://php.net/manual/kr/functions.anonymous.php]

[링크 : http://en.wikipedia.org/wiki/Anonymous_function#C_lambda_expressions
[링크 : http://en.wikipedia.org/wiki/Closure_%28computer_science%29

[링크 : http://ko.wikipedia.org/wiki/함수형_프로그래밍]
[링크 : http://ko.wikipedia.org/wiki/람다_대수]

'Programming > lisp' 카테고리의 다른 글

lisp tutorial  (0) 2012.12.06
lisp - #' 와 '  (0) 2012.12.05
lisp는 리스트지 prefix 표기법이 아니다  (0) 2012.11.19
lisp 관련 책  (0) 2012.01.25
lisp 문법  (0) 2012.01.24
Posted by 구차니
게임/홈월드 시리즈2012. 12. 2. 22:28
이것저것 받다보니 mod도 찾게 되고
한번 해봐야지 하다가 나락에 빠진듯 ㅋㅋㅋ


win7에서 실행안될경우 DEP를 꺼주라고 하고
[링크 : http://forums.relicnews.com/showthread.php?220268-Homeworld-2-1-1-doesn-t-work-on-windows-7]
[링크 : http://kok-chiwoo-textcube.blogspot.kr/2009/07/윈도우7-dep데이터실행방지기능-끄기.html]
 
실행해보니 해상도가 1024x768밖에 안되서
1280x1024로 해보니 이펙트 설정을 하다 뻗어서 쥐쥐 -_-
[링크 : http://www.neowin.net/forum/topic/388915-playing-homeworld-2-at-1280x1024/ ]
Posted by 구차니
DDL
create database dbname;
create table tablename
(
  fieldname type option,
  PRIMARY KEY(fieldname)
);

drop database dbname;
drop table tablename;

desc tablename;

use dbname;

show databases;
show tables;

alter table tablename add fieldname type after fieldname;
alter table tablename add fieldname type first;
alter table tablename drop fieldname, fieldname, fieldname;
alter table tablename modify fieldname type;
alter table tablename change fieldname new_fieldname new_type;
alter table tablename rename tablename; 

DML 
insert into table (fieldname, fieldname, fieldname)
                 
values (value, value, value);

select fieldname from tablename where condition;
select fieldname,fieldname,fieldname from tablename where condition;
select * from tablename where condition; 
select fieldname from tablename where condition order by fieldname;
select fieldname from tablename where condition order by fieldname desc

update tablename set fieldname=value where condition;

delete from tablename where condition;
 
condition
=  같다
'a' 문자 a
'abc' 문자열 'abc'
'a%' a로 시작하는 모든 내용, a*과 같은 의미
'_a'  첫글짜는 상관없으나 그 다음에 1개가 a, ?a 와 같은 의미
and  &&와 같은 의미
or     ||와 같은 의미
 

php 책 빌려 놓고 sql만 공부하는 센스? ㅋㅋ 

---
[링크 : http://www.w3schools.com/sql/sql_alter.asp ]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql / mariaDB  (1) 2014.04.16
mysql transaction  (0) 2014.04.08
mysql grant 문  (0) 2014.04.01
mysql 암호변경하기  (0) 2013.02.21
mysql 사용법(SQL)  (4) 2010.04.03
Posted by 구차니
개소리 왈왈/컴퓨터2012. 12. 1. 22:49
CPU
1. AMD "4600+ x2" 1EA
2. AMD "4200+ x2" 1EA 

넷북
1. UMID mbook m1 1EA

랜카드
1. Intel PRO/100 PCI Fast Ethernet 4EA



오래가지고 있어봤자 내가 쓰지도 않을꺼고
필요한 사람에게 주는게 더 낫다고 생각하는지라 이래저래 정리도 할 겸 뿌리는 중.
넷북이야 잘 안쓰니(핸드폰 교체후)
블루투스 키보드 하나 질러야 하겠지만 지인에게 생일선물로 투척! ㅋㅋ
 

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

2013 CES 관련 글들을 보며 느낀 추세  (4) 2013.01.13
TC1100 무선랜 교체!!  (0) 2012.12.20
소니 VAIO 노트북 BIOS 암호 풀기  (0) 2012.11.16
음? 이건 머지?  (2) 2012.11.12
KELP 2012 세미나  (0) 2012.11.02
Posted by 구차니