chrome bookmarks sort by title
bookmarkts => bookmark manager (ctrl + shift + o)
chrome bookmarks sort by title
bookmarkts => bookmark manager (ctrl + shift + o)
와 미치겠네 ..;;;
phpinfo 출력안되서 뭐 잘못했나 하루죙일 뒤졌는데..
허무하네..ㅠㅠ
오메...황당한거..
이렇게 씀...절대 안나옴 ;;;v 5.3.1
<? phpinfo(); ?>
욜케 바꿈 -_-;;;;으아아아아아아...
<?php phpinfo(); ?>
출처..http://kernel-baramil.blogspot.kr/2014/02/phpinfo.html
Virtual Clone Drive
http://www.elby.ch/products/vcd.html
아직도 운영중이네; 다행이다..
윈도우에서 유용하게 잘쓰다 개발PC를 리눅스로 변경 후 사용을 하지 않으니
까먹었다 안보니 멀어진다는 ... =-=;
기록차원에서 저장해 둔다.
나도 이런거 하나 만들어서 인류에 공헌?하고 싶으네...
-끝-
2016.11.07 마름달 이레
요즘 정신없다..
유니티 알바?중인데 정말 정신이 없네 아..미치겠다.
이제 이런 일은 하지 말아야겠다.
레퍼런스나 인맥을 위해서 한다 해도 너무 힘드네,
일도 일지만 생활자체가 엉망이 되고 있다.
내겐 좀 가벼울?지 모르나 내게 일을 주는 사람들은 무척이나 전투적이다.
당연한건지도, 생존이 걸렸는데 세월아 네월아 할 수는 없는 노릇아닌가..
그래서 더 가벼울 수가 없다..힘든 이유는 이것인듯.
그나마 좀 마무리 되고 있어, 이런 글도 쓸 수 잇는...상황..
별다방 텀블러 하나 갖고 싶은데....너무 비싸다...-0-;
Got the error because there are space or tab character at the end of line in Makefile.
#Makefile
...
32 LOCAL_SRCS := $(LOCAL_PATH)/main.cpp \
33 $(LOCAL_PATH)/manager.cpp
공백 있다고 컴파일 에러 뱉음...
그럼 맨뒤에 공백 대신 탭 쓰면 괜찮으려나..
~/work/app/Makefile.inc:32: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.
해보니 안됨..-_-;;;
환경 : Linux xxxx 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Go Tour 중에 오프라인으로 설치하면 더 빠르다고 해서 설치 중..
https://go-tour-kr.appspot.com/#1
go get code.google.com/p/go-tour/gotour
라고 쳤는데, gccgo-go 를 설치 하라네..쥐씨씨고고?? ㅋ
The program 'go' is currently not installed. You can install it by typing:
sudo apt-get install gccgo-go
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gccgo gccgo-4.9 libgo5
Suggested packages:
gccgo-multilib gccgo-4.9-doc libgo5-dbg
The following NEW packages will be installed:
gccgo gccgo-4.9 gccgo-go libgo5
0 upgraded, 4 newly installed, 0 to remove and 11 not upgraded.
Need to get 24.5 MB of archives.
After this operation, 110 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.daum.net/ubuntu/ trusty-updates/main libgo5 amd64 4.9.3-0ubuntu4 [2,600 kB]
Get:2 http://ftp.daum.net/ubuntu/ trusty-updates/universe gccgo-4.9 amd64 4.9.3-0ubuntu4 [21.5 MB]
Get:3 http://ftp.daum.net/ubuntu/ trusty/universe gccgo amd64 4:4.9-1ubuntu6 [1,060 B]
Get:4 http://ftp.daum.net/ubuntu/ trusty-updates/universe gccgo-go amd64 1.2.1-0ubuntu1.2 [424 kB]
Fetched 24.5 MB in 4s (5,945 kB/s)
Selecting previously unselected package libgo5:amd64.
(Reading database ... 202536 files and directories currently installed.)
Preparing to unpack .../libgo5_4.9.3-0ubuntu4_amd64.deb ...
Unpacking libgo5:amd64 (4.9.3-0ubuntu4) ...
Selecting previously unselected package gccgo-4.9.
Preparing to unpack .../gccgo-4.9_4.9.3-0ubuntu4_amd64.deb ...
Unpacking gccgo-4.9 (4.9.3-0ubuntu4) ...
Selecting previously unselected package gccgo.
Preparing to unpack .../gccgo_4%3a4.9-1ubuntu6_amd64.deb ...
Unpacking gccgo (4:4.9-1ubuntu6) ...
Selecting previously unselected package gccgo-go.
Preparing to unpack .../gccgo-go_1.2.1-0ubuntu1.2_amd64.deb ...
Unpacking gccgo-go (1.2.1-0ubuntu1.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libgo5:amd64 (4.9.3-0ubuntu4) ...
Setting up gccgo-4.9 (4.9.3-0ubuntu4) ...
Setting up gccgo (4:4.9-1ubuntu6) ...
Setting up gccgo-go (1.2.1-0ubuntu1.2) ...
update-alternatives: using /usr/bin/gccgo-go to provide /usr/bin/go (go) in auto mode
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
뭘 많이 받네 ;;
그럼 다시
$ go get code.google.com/p/go-tour/gotour
Segmentation fault
헐.. 뭐 어쩌라고;;
일단 고;;;go 라고 한번 해봄..뭔가 실행되긴 하네....
$go
Go is a tool for managing Go source code.
Usage:
go command [arguments]
The commands are:
build compile packages and dependencies
clean remove object files
env print Go environment information
fix run go tool fix on packages
fmt run gofmt on package sources
get download and install packages and dependencies
install compile and install packages and dependencies
list list packages
run compile and run Go program
test test packages
tool run specified go tool
version print Go version
vet run go tool vet on packages
Use "go help [command]" for more information about a command.
Additional help topics:
c calling between Go and C
gopath GOPATH environment variable
importpath import path syntax
packages description of package lists
testflag description of testing flags
testfunc description of testing functions
Use "go help [topic]" for more information about that topic.
$go version
go version xgcc (Ubuntu 4.9.3-0ubuntu4) 4.9.3 linux/amd64
흠..뭐 실행되는것 같긴한데...세그먼트 폴트 머지....ㅠㅠ
공부좀 더하고 계속..
man inet_pton
날짜가 2008년도 ㄷㄷㄷ
요즘은 자동 번역기 덕분에 약간? 도움이 된다. 아 예제 볼려고 카피 했는데 ...
INET_PTON(3) Linux Programmer's Manual INET_PTON(3)
리눅스 프로그래머의 사용법
NAME
이름
inet_pton - convert IPv4 and IPv6 addresses from text to binary form
- IPv4 와 IPv6 주소들을 텍스트에서 바이너리 형태-폼?으로 변경한다.
SYNOPSIS
개요 - 뭐 이렇게 쓴다는 걸 알려줌. 아래 설명 잘 나옴...
#include <arpa/inet.h> //
int inet_pton(int af, const char *src, void *dst);
DESCRIPTION
설명
This function converts the character string src into a network address structure in the af address family,
then copies the network address structure to dst. The af argument must be either AF_INET or AF_INET6.
이 펑션은 문자열 src를 af 주소 집단의 네트워크 주소 구조체로 변경하고, 그 네트워크 주소 구조체를 dst에 복사한다. 그 af 함수 인자는 반드시 AF_INET 혹은 AF_INET6 중 하나이어야만 한다.
The following address families are currently supported:
아래의 주소 집단들이 현재 지원되고 있다: 2008년도인데????ㄷㄷㄷ
AF_INET
src points to a character string containing an IPv4 network address in dotted-decimal format,
"ddd.ddd.ddd.ddd", where ddd is a decimal number of up to three digits in the range 0 to 255. The
address is converted to a struct in_addr and copied to dst, which must be sizeof(struct in_addr) (4)
bytes (32 bits) long.
AF_INET6
src points to a character string containing an IPv6 network address. The address is converted to a
struct in6_addr and copied to dst, which must be sizeof(struct in6_addr) (16) bytes (128 bits) long.
The allowed formats for IPv6 addresses follow these rules:
1. The preferred format is x:x:x:x:x:x:x:x. This form consists of eight hexadecimal numbers, each
of which expresses a 16-bit value (i.e., each x can be up to 4 hex digits).
2. A series of contiguous zero values in the preferred format can be abbreviated to ::. Only one
instance of :: can occur in an address. For example, the loopback address 0:0:0:0:0:0:0:1 can be
abbreviated as ::1. The wildcard address, consisting of all zeros, can be written as ::.
3. An alternate format is useful for expressing IPv4-mapped IPv6 addresses. This form is written as
x:x:x:x:x:x:d.d.d.d, where the six leading xs are hexadecimal values that define the six most-
significant 16-bit pieces of the address (i.e., 96 bits), and the ds express a value in dotted-
decimal notation that defines the least significant 32 bits of the address. An example of such
an address is ::FFFF:204.152.189.116.
See RFC 2373 for further details on the representation of IPv6 addresses.
IPv6 주소들의 포현에 대한 더 자세함은 RFC2373을 참조하시라.
RETURN VALUE 이게 중요함 ㅋ
inet_pton() returns 1 on success (network address was successfully converted). 0 is returned if src does
not contain a character string representing a valid network address in the specified address family. If af
does not contain a valid address family, -1 is returned and errno is set to EAFNOSUPPORT.
뭐 성공하면 1, 0 일 경우는 올바른 주소를 전달해 줘, af가 이상한 값이면 -1
1 나오면 되겠다..
CONFORMING TO 아래를 따른다나..뽀직수
POSIX.1-2001.
NOTES : 노트 헉 그 노트 아님
Unlike inet_aton(3) and inet_addr(3), inet_pton() supports IPv6 addresses. On the other hand, inet_pton()
accepts only IPv4 addresses in dotted-decimal notation, whereas inet_aton(3) and inet_addr(3) allow the
more general numbers-and-dots notation (hexadecimal and octal number formats, and formats that don't
require all four bytes to be explicitly written). For an interface that handles both IPv6 addresses, and
IPv4 addresses in numbers-and-dots notation, see getaddrinfo(3).
어쨌든 얘는 특이하게 IPv6를 지원한다네, inet_aton과 inet_addr은 아닌가봐.
IPv6와 IPv4 수-점 표기하는 둘다 처리하는 인터페이스는 getaddrinfo를 봐.
BUGS : 뻐그들
AF_INET6 does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 address must be supplied in src instead.
EXAMPLE
The program below demonstrates the use of inet_pton() and inet_ntop(3). Here are some example runs:
$ ./a.out i6 0:0:0:0:0:0:0:0
::
$ ./a.out i6 1:0:0:0:0:0:0:8
1::8
$ ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116
::ffff:204.152.189.116
Program source
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main(int argc, char *argv[])
{
unsigned char buf[sizeof(struct in6_addr)];
int domain, s;
char str[INET6_ADDRSTRLEN];
if (argc != 3) {
fprintf(stderr, "Usage: %s {i4|i6|<num>} string\n", argv[0]);
exit(EXIT_FAILURE);
}
domain = (strcmp(argv[1], "i4") == 0) ? AF_INET :
(strcmp(argv[1], "i6") == 0) ? AF_INET6 : atoi(argv[1]);
s = inet_pton(domain, argv[2], buf);
if (s <= 0) {
if (s == 0)
fprintf(stderr, "Not in presentation format");
else
perror("inet_pton");
exit(EXIT_FAILURE);
}
if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {
perror("inet_ntop");
exit(EXIT_FAILURE);
}
printf("%s\n", str);
exit(EXIT_SUCCESS);
}
SEE ALSO
getaddrinfo(3), inet(3), inet_ntop(3)
COLOPHON
This page is part of release 3.54 of the Linux man-pages project. A description of the project, and infor‐
mation about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.
Linux 2008-06-18 INET_PTON(3)
$ make
/work/myapp/make.inc:48: *** missing separator. Stop.
48번째 라인으로 이동...
tab 이 빠졌다고 한다..