SSamTure.net

워드프레스

Function Reference/wp mail

Description Sends an email. Usage    Parameters $to (string) (required) The intended recipient(s) of the message. Default: None $subject (string) (required) The subject of the message. Default: None $message (string) (required) Message content. Default: None $headers (string) (optional) Mail headers to send with the message. (advanced) Default: Empty $attachments (array) (optional) Files to attach. (advanced) […]

.htaccess를 이용한 virtualhost 설정 법

대부분 웹서비스를 운영할때, 개인 서버를 가지고 운영하지 않고, 호스팅업체를 이용하여 운영 할것입니다. A라는 웹서비스 이외에 B라는 웹서비스를 운영하고싶을때, 아파치설정(httpd.conf)에서 가상호스트를 추가해주면 쉽게 운영할 수 있지만, 호스팅업체에서 제공해주는 서버에서는 해당 파일의 수정이 불가능 하죠. 이럴때는 웹서비스 디렉토리 최상위 루트에 .htaccess를 추가해줌으로써 가상호스트를 추가해 줄 수 있습니다. 대신의 해당 서버가 mod_rewrite를 지원해야합니다. 다음의 .htaacess의 예제 내용은 test.ssamture.net이라는 […]

[objective-c]stringByReplacingOccurrenceOfString

NSString *x = @”hello world”; x = [x stringByReplacingOccurrenceOfString:@”world” withString:@”cheese”];

워드프레스 3.0 이상에서 MU 설정 방법

워드프레스 3.0이 나오면서 더 이상 MU 버전의 워드프레스를 별도로 제공해 주지 않습니다. 얼마전까지는  워드프레스MU 홈페이지에 가면 2.9 버전의 MU를 받을 수 있었는데, 이제는 다운로드가 사라졌더군요. 그 이유는 워드프레스3.0부터는 MU버전이 통합되었기 때문입니다. 그럼 3.0 이상의 버전에서 MU기능을 어떻게 활성화 하는지 알아보도록 하겠습니다. 3.0를 설치 한 후에 dashboard에 가보면 어디를 둘러 봐도 MU기능에 대한 페이지는 존재 하지 […]

워드프레스 3.0 한글화 방법

워드프레스3.0 한글화 방법에 알아보도록 하겠습니다. 워드프레스에 익숙해진 후에는 한글을 안쓰고 영문만 써와서 몰랐는데, 워드프레스 한국어 사이트에는 아직 2.9.2 버전이 올라와있습니다. 처음 사용자의 경우 한글화된 워드프레스를 설치하게 되는데, 버전이 2.9.2가 올라와 있어 최신 버전인 3.0에서는 한글이 지원이 안되거나, 어떻게 해야할지 몰르는 경우가 생기더라구요. 워드프레스는 언어팩이라고 있는데, 해당파일을 복사해줌으로써 쉽게 한글화를 할 수 있습니다. 우선 언어팩을 다운로드 […]

워드프레스 플러그인과 보안 발표자료

“워드캠프 2010 서울”에서 발표했던 자료입니다. 다운로드 받기

워드프레스 플러그인과 보안

2010년 7월 24일 국내에서는 처음으로 열린 워드캠프에서 발표한 내용입니다. 주제는 “워드프레스 플러그인과 보안”이라는 주제로 발표를 진행하게 되었는데, 아쉬움이 많이 남는 발표 시간이었습니다. 다음 워드캠프때도 기회가 된다면 더 유익한 내용을 준비하여 많은 분들과 공유하는 자리가 되었으면 좋겠습니다. “워드캠프 2010 서울“에서  발표하신 분들과 봉사해주신 여러분 모두 수고하셨습니다.^^ 발표자 : 환영인사 @drssay 세션1 @082net @ihooney @ssamture 세션2 @ejang […]

WordPress 3.0 Release

The latest stable release of WordPress (Version 3.0) is available in two formats from the links to your right. If you have no idea what to do with this download, we recommend signing up with one of our web hosting partners that offers a one click install of WordPress or getting a free account on […]

MySQL INDEX

특정 열의 빠른 조회 를 위해서 인덱스를 사용합니다. 하지만 많은 인덱스를 걸어주는 것 보다는 가장 적절하고 효율성 있게 인덱스를 사용하는것이 중요합니다. 인덱스에 대해서 알아보도록 하겠습니다. MySQL 인덱스는 PRIMARY KEY, UNIQUE KEY, INDEX, FULLTEXT 를 지원하고 있습니다. 저장 방식은 B-Tree 로 저장이 됩니다. 우선 B-Tree 에 대해서 간단하게 알아보겠습니다. B-Tree (출처 : CCL : Wikipedia B […]

WordPress 3.0 Release Candidate

As Matt teased earlier, the first release candidate (RC1) for WordPress 3.0 is now available. What’s an RC? An RC comes after beta and before the final launch. It means we think we’ve got everything done: all features finished, all bugs squashed, and all potential issues addressed. But, then, with over 20 million people using […]

[Linux] MP4에 실시간 재생 가능하도록 변경하기

gpac를 설치 후 #MP4Box -isma xxx.mp4

[ubuntu] rpm->deb , deb->rpm 패키징하기

rpm->deb : alien -d xxxx.rpm deb->rpm : alien -r xxxx.deb

Couldn’t find video filter ‘x264′

x264 is a free software library for encoding video streams into the H.264/MPEG-4 AVC format. It is released under the terms of the GNU General Public License. x264 itself provides a command line interface as well as a library-level interface. x264 is used to encode video files in mp4, m4v, h.264 (HD) output format. Install […]

다수 웹서버에서 PHP 세션 공유

L4, LVS, DNS RR 등으로 여러대의 웹서버를 운영하다보면 늘 고민하게 되는게 세션 공유일 것 같다. 물론 L4의 Metric 중에 Hash를 이용하면 어느정도 해결 될 수 있는 문제이지만, 가끔 클라이언트가 다른 서버로 세션이 할당되는 경우를 볼 수 있다. 나 또한 이 문제로 많은 고민을 했고, 여러 많은 HOW를 보았지만 썩 마음에 드는것이 없었다. 아마 세션 공유를 […]

[C언어] 파일 사이즈 구하기

#include<stdio.h> #include<string.h> void main(){  FILE *fp;    fp = fopen(“/home/ssamture/test.txt”,”r”);  fseek(fp, 0l, SEEK_END);  printf(“%ld byte n”, ftell(fp); }