Posted
Filed under 프로그래밍

더이상 apt-get 지원을 안하는 구버전의 경우는 apt-get을 사용할수가 없다.
아래와같이 해결하자

cd /etc/apt
cp sources.list sources.list.old
sed -i 's,http://.*ubuntu.com,http://old-releases.ubuntu.com,g' sources.list
sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sed -i 's,http://.*ftp.daum.net,http://old-releases.ubuntu.com,g' sources.list

apt-get update
apt-get install update-manager-core
do-release-upgrade


2015/04/22 12:51 2015/04/22 12:51
Posted
Filed under 프로그래밍
Get Users:
curl –i –X GET http://localhost/rest/api/users

Post (create new) User:
curl –i –X POST –d '{"name":"John Doe","email":"anemail@gmail.com","age":28}' http://localhost/rest/api/user

Put (update) User:
curl –i –X PUT –d '{"email":"jdoe@yahoo.com","age":38}' http://localhost/rest/api/user/8

Delete User:
curl –i –X DELETE http://localhost/rest/api/user/8
2015/03/24 12:32 2015/03/24 12:32
Posted
Filed under 프로그래밍/PHP
오호~ slimframework 이 좋아지고 있다.
언제부턴인가 싱글톤도 지원을 하네..ㅋㅋ

class TestTest {
 public function test() {
  echo "a";
 }
}
$app->container->singleton('test', function () {
 return new TestTest();
});
print_r($app->test->test());
exit;


편리하도다~

2015/03/24 11:29 2015/03/24 11:29
Posted
Filed under 프로그래밍
파일을 올리면 기본으로 700퍼미션이 들어간다.
외부에서 불러오지도 못하게 되는데 아래 내용을 수정또는 추가하도록 하자.

vsftpd.conf
local_umask = 022
file_open_mode = 0644 


2015/03/12 12:33 2015/03/12 12:33
Posted
Filed under 프로그래밍/PHP
php5 .5대를 사용하고 있는데도 json_decode에서 JSON_BIGINT_AS_STRING을 사용했는데 아래와 같은 오류가 나온다면?

option JSON_BIGINT_AS_STRING not implemented


설치해주자.

pecl install jsonc 

그럼 해결~

2015/03/05 12:09 2015/03/05 12:09
Posted
Filed under 프로그래밍
이번에는 레오폴드 FC660C다.
이 제품은 기계식 키보드가 아니다.
정전용량무접점이라는 방식이고 해피해킹이나 리얼포스 등과 같은 방식이다.
660c는 리얼포스보다 키압이 높은것 같다.
기계식으로 표현하자면 흑축+적축 이랄까?
그리고 키캡이 유격이 있는지 덜렁거리는 키캡들이 좀 있다.
완성도는 떨어지지만 리얼포스 대비 저렴한 가격으로 정전식을 사용해볼수 있는 키보드다

정전식은 뭔가 쫀든쫀득 느낌이 나름 매력있다.

사용자 삽입 이미지
2015/01/16 14:43 2015/01/16 14:43