갤럭시S1 기본 음악 플레이어 디렉토리별 재생 edit

상단탭을 왼쪽으로 드래그하면 폴더별로 플레이가 가능하다.

Diable google picasa sync from android edit

http://www.google.com/support/forum/p/android/thread?tid=69b6774bbe77e236&hl=en

You can go to settings> applications and then on gallery clear data. This removes the picasa photos . Then don't sync picasa again. Worked perfectly for me.

Go to.
Settings> applications> manage applications> all> gallery> clear data

There is no option to un-check!

weechat nick alignment edit

weechat.look.prefix_align

description: prefix alignment (none, left, right (default))

type: integer

values: none, left, right (default value: right)

weechat.look.prefix_align_max

description: max size for prefix (0 = no max size)

type: integer

values: 0 .. 128 (default value: 0)

edit

http://todayis.tistory.com/276
우분투나 데비안에서 고정 ip를 설정하는 방법이다.
데비안의 경우 설치 시 ip를 설정할 수 있지만, 우분투의 경우는 DHCP로 잡히기 때문에.. 필요에 따라 다시 설정을 해 주어야 한다.

먼저 네트워크 인터페이스를 내린다(중지 시킨다).
$ sudo ifdown eth0

네트워크 인터페이스 설정 파일을 자신의 상황에 맞게 수정한다.
$sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcase 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.126.63.1 168.126.63.2

네임 서버를 수정한다.
$ sudo vi /etc/resolv.conf
nameserver 168.126.63.1
nameserver 168.126.63.2

네트워크 인터페이스를 올린다(다시 동작 시킨다).
$ sudo ifup eth0


ip 를 자동으로 할당받고 싶다면, '/etc/network/interfaces' 에서 iface eth0 inet static 이하의 부분을 iface eth0 inet dhcp 로 수정해 주면 된다.

우분투에서 MAC address 변경 edit

bayron.tistory.com/entry/우분투에서-MAC-address-변경
sudo vim /etc/network/interfaces


auto eth0
iface eth0 inet dhcp
hwaddress ether 00:00:00:00:00:00

노란색 부분에 원하는 MAC address 입력.


sudo service /etc/init.d/networking restart

MAC Address Generator


http://sqa.fyicenter.com/Online_Test_Tools/Test_MAC_Address_Generator.php

windows 7 네트워크 MTU 설정 edit

http://www.coolenjoy.net/bbs/cboard.php?board=32&no=2255

레지스터리로 하는법은
HKEY_LOCAL_MACHINE > System > CurrentControlSet > Services > Tcpip > Prameters > Interfaces 가셔서 요상한 이름의 폴더중 자신의 아이피속성이 들어가있는 폴더 선택 후
새로만들기 > DWORD 값 하시고 MTU라고 적으신 다음 원하시는 숫자 입력하시면 되지 않을까 합니다...

제가 아는 레지 수정방법은 XP에서 쓰던 방법이라.. 제대로 될진^^;;

cmd로 하는법은 netsh interface ipv4 set subinterface "로컬 영역 연결" mtu=XXX store=persistent

자신의 어댑터 이름을 로컬 영역 연결에 입력 해주시구요.. MTU자리에 숫자입력하면 간단하게 수정됩니다

ATI Catalyst Control Center 실행 안되는 문제 해결 edit

새로운 게임을 하느라 드라이버를 업데이트하였더니 딸려나온 까탈리스트 컨트롤 센터(CCC: Catalyst Control Center)가 실행이 안되는것이었다.
정확한 현상은 실행하면 하얀윈도우가 떳다가 바로 꺼져버린다.

왠지 찝찝하고 안티엘리어싱같은 옵션을 넣으려면 필요한데(나중에 알고보니 트레이아이콘에서도 설정가능하긴 함) 이게 왠 망발인가 구글링해서 해결방법 다 시도해봐도 안되고(어셈블 캐시를 지워보라는데(http://www.rage3d.com/board/showthread.php?t=33862974) 지우라는 키값도 없고..) 드라이버 클리너(http://www.drivercleaner.net/, http://noidsi.blog.me/10033800304)로 말끔히(그래도 찝찝하지만 64비트 인식함.) 지워보고 다시깔아도 안되고 미친다.

그런데 별 생각없이 트레이 아이콘에 오른쪽 마우스를 눌러서 Help도 눌러보고 About도 눌러봤는데 마침 About을 눌렀더니 .NET Framework 에러가 "...file does not conform to the expected file format specification..." 이런식으로 폰트파일이 고자라 한다.
구글링 해서 마이크로소프트 고객지원 페이지(http://support.microsoft.com/kb/937135)를 봤더니 폰트 캐시 어쩌고 저쩌고 하는데 폰트 캐쉬 서비스를 중지하고나서 캐시된 파일을 지운뒤 해당 폰트를 지우고 서비스를 다시 시작하면 폰트 캐시를 다시 하려니 싶어서 해당 폰트를 지우려고 봤더니 폰트가 없다.(-_-;; 제어판->글꼴에는 폰트들을 파일로 안보여주고 묶어서 보여주기때문에 문제가 있는 폰트는 보여주지 않았을것으로 추측함)

결국 파이썬 인터프린터로 윈도우즈에 폰트가 저장되어있는 디렉토리를 살펴보니 제어판->글꼴에선 보이지않던 .ttf파일이 os.listdir("c:\\windows\\fonts\\")로 보니까 멀쩡히 있더라. os.remove()로 제거하였다.
그 후 폰트 캐시 서비스들을 중지 후 캐시 파일을 제거하고 다시 시작한다음 까탈리스트를 실행시키니 실행이 된다.

까탈스럽네 거참..

ATI 드라이버 다운로드 페이지


Step 4까지 모두 선택해준뒤 다운로드해야한다. 자동 인식(Auto Detect)설치파일은 고자인듯.

http://support.amd.com/us/gpudownload/Pages/index.aspx

apache2 + php5 환경에서 큰 파일 업로드하기 edit

Apache2 + PHP5 환경에서 큰파일을 업로드할때 들어온 POST 데이터들을 모두 메모리에 넣은 뒤 tmp에 저장시킨다음 지정된 디렉토리로 이동하는줄 알고 큰파일을 업로드 시킬경우 메모리가 터져나가 안되는줄 알고있었는데, 다시해보니 잘못알고 있었다.

php.iniupload_max_filesizepost_max_size를 각각 2G씩 설정했을땐 아예 모든크기의 파일이 업로드되지 않았다.(큰 파일은 끝에서 멈춰버렸고 작은파일은 아예 진행이 안됨) 이유는 모르겠으나 추측하건데 POST 최대 크기값이 각 파일들의 크기값과 같거나 작아서(post_max_size <= upload_max_filesize) 그랬거나 단순히 2GG심볼을 이해하지 못해서 그랬을지도 모른다.(php 공식사이트엔 이해한다고 되어있다.)
http://php.net/manual/en/ini.core.php

PHP allows shortcuts for bit values, including K (kilo), M (mega) and G (giga). PHP will do the conversions automatically if you use any of these. Be careful not to exceed the 32 bit signed integer limit (if you're using 32bit versions) as it will cause your script to fail.

Myth of 'memory_size'


이건 거의 미신수준이다.(하지만 구버전에선 어떤지 모르겠다.)

http://stackoverflow.com/questions/2854283/writing-direct-to-disk-with-php

I don't believe the myth that 'memory_size' should be the size of the uploaded file. The files are definitely not kept in memory... instead uploaded chunks of 1MB each are stored under /var/tmp and later on rebuild under /tmp before moving to the web/user space.

I'm running a linux-box with only 64MB RAM, setting the memory_limit to 16MB and uploading files of sizes about 100MB is no problem at all! (http://php.net/manual/en/features.file-upload.php)

PHP settings that related to file upload


php.ini:
; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /home/tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 2000000000  ; about 1.86G

; Maximum size of POST data that PHP will accept.
post_max_size = 2147483648  ; 2G

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data

upload_tmp_dir


시스템 환경에 맞게 설정.

upload_max_filesize and post_max_size


업로드되는 각 파일의 최대 크기이며 post_max_size는 HTTP POST Request의 최대 크기이므로 post_max_size사이즈를 좀더 크게 설정.('multipart/form-data' is also POST Request)

max_execution_time and max_input_time


테스트해보진 않았지만 업로드할 파일의 크기가 매우 큰경우 timeout되어 업로드가 안될경우 늘려주면 될듯.

http://www.radinks.com/upload/config.php

These settings define the maximum life time of the script and the time that the script should spend in accepting input. If several mega bytes of data are being transfered max_input_time should be reasonably high.

Apache2(the webserver) LimitRequestBody option


Apache2 웹서버의 LimitRequestBody의 기본값은 0(무제한)이기때문에 따로 설정되어있지 않다면 만질필요가 없다.

http://www.radinks.com/upload/config.php

The apache webserver has a LimitRequestBody configuration directive that restricts the size of all POST data regardless of the web scripting language in use. Some RPM installations sets limit request body to 512Kb. You will need to change this to a larger value or remove the entry altogether.

Client side script Uploadify


http://www.uploadify.com/demos/

참고



구글링중 발견한 'Apache Commons Java 라이브러리/컴포넌트'는 Apache2 웹서버와 관계가 없다.


http://serverfault.com/questions/109557/best-practice-apache-file-upload

I think you're confusing Apache httpd (Web Server) with other Apache Group projects. Apache Group hosts the "Commons" project which a large collection of Java libraries for use in your own Java applications.

apache2 httpd 컴파일 옵션 지정


http://blog.naver.com/PostView.nhn?blogId=woodair&logNo=100090608241&parentCategoryNo=38&viewDate=¤tPage=1&listtype=0

raw 영상 , DVD 이미지 파일등 그 크기가 2기가 이상을 상회하는 파일들이 넘쳐나고 있는데 이와같은 파일을 웹을 통해 전송하기 위한 리눅스 컴파일 환경설정에 대한 내용입니다.

1. 커널 2.4 이상이어야 하며,
2. Apache2, PHP5 컴파일시 아래와 같은 컴파일 플레그를 지정함으로 2기가 이상의 대용량 처리 환경을 만들수가 있습니다.

shell] # CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
shell] # export CFLAGS
shell] # cd httpd-2.x.x
shell] # ./configure \
--prefix=/usr/local/apache2 \
--enable-mods-shared=all \
--enable-so
....
.... 

블로거에서 위키 마크업을 자바스크립트로 사용 edit

creole 말고도 수많은 자바스크립트 마크업들을 테스트해보았지만 모두 블로거에서 사용하기 적절하지 않았다.

  • 일반 HTML태그와 혼용 불가
  • <nowiki></nowiki>태그의 미지원 혹은 불완전한 지원
  • <pre></pre>태그안에서 줄바꿈을 인식하여 <p></p>로 감싼뒤 태그를 그대로 이스케이프하여 태그가 그대로 출력됨.

class이름으로 element를 얻기위한 getElementsByClass함수




위 함수 대신 jquery같은걸 써도됨.

아래 자바스크립트 소스들은 페이지 맨 하단에 삽입되어야 함.(페이지가 모두 로드 된 뒤 렌더링)

Creole




모든 포스트에 자동으로 위키마크업을 사용하려면 위 주석처리된 코드처럼 post-body entry-content클래스를 지정해주되지만 일반 HTML태그를 지원해주지 않기때문에 wiki-content클래스를 지정하여 위키마크업을 사용할 부분에만 사용한다.

wiky






InstaView by Pilaf from wikipedia



Newer -> <- Older