리눅스/커널2012. 9. 16. 19:26

왘 가 네... ioctl이 어디 간거지...??


Linux Kernel 2.6.35 



Linux Kernel 3.0




'리눅스 > 커널' 카테고리의 다른 글

Slab allocator (슬랩 할당자)  (0) 2012.10.03
GFP_KERNEL vs GFP_ATOMIC vs GFP_USER vs GFP_DMA  (0) 2012.09.16
boot memory allocator 의 필요성  (0) 2012.09.04
defunct 프로세스 죽이기  (0) 2012.08.16
kmalloc, cache allocator  (0) 2012.07.20
Posted by code cat

codecat@codecat-PC ~/workspace/kernel_src/trunk $ svn up
Password for '(null)' GNOME keyring:
svn: OPTIONS of 'https://xxx.xxx.xxx/svn/kernel_src/trunk': 인증에 실패하였습니다: Could not authenticate to server: rejected Basic challenge (https://xxx.xxx.xxx)

위와 같은 상황은 subversion이 gnome-keyring을 쓰려고 했는데 무슨 사유로 제대로 동작하지 않기 때문이다.

이를 해결하기 위해선, 

rm ~/.gnome2/keyring/login.keyring

을 실행하여 keyring 사용을 막으면 된다.

'리눅스 > 스크립트/유틸' 카테고리의 다른 글

svn -> git merge 하는 법  (0) 2012.09.19
svn tree conflicts 1  (2) 2012.09.18
svn up 하다가 password store한다고 할 때 진행 안될 때  (0) 2012.09.16
[vim] vba 파일 설치 방법  (0) 2012.09.09
.svn 지우기  (0) 2012.08.05
Posted by code cat


$>svn up

...

can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/codecat/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
Please type 'yes' or 'no': yes
Please type 'yes' or 'no': 예


한글 설정이 되어 있으면 위와 같이 'yes'로 해도 안 넘어가고 다시 물어본다.  그럴 때, '예' 라고 하자. -___-;;;;;;

'리눅스 > 스크립트/유틸' 카테고리의 다른 글

svn tree conflicts 1  (2) 2012.09.18
svn up 하다가 'password for '(null)' GNOME keyring 나오  (0) 2012.09.16
[vim] vba 파일 설치 방법  (0) 2012.09.09
.svn 지우기  (0) 2012.08.05
Code Sourcery 설치하기  (0) 2012.07.31
Posted by code cat
IT2012. 9. 14. 00:41

Color

Black & Slate

White & Silver

Capacity1

16GB
32GB
64GB

Price2

$199

$299

$399

Size and Weight3

Height: 4.87 inches (123.8 mm)

Width: 2.31 inches (58.6 mm)

Depth: 0.30 inch (7.6 mm)

Weight: 3.95 ounces (112 grams)

Cellular and Wireless

  • GSM model A1428*: UMTS/HSPA+/DC-HSDPA (850, 900, 1900, 2100 MHz); GSM/EDGE (850, 900, 1800, 1900 MHz); LTE (Bands 4 and 17)
  • CDMA model A1429*: CDMA EV-DO Rev. A and Rev. B (800, 1900, 2100 MHz); UMTS/HSPA+/DC-HSDPA (850, 900, 1900, 2100 MHz); GSM/EDGE (850, 900, 1800, 1900 MHz); LTE (Bands 1, 3, 5, 13, 25)
  • GSM model A1429*: UMTS/HSPA+/DC-HSDPA (850, 900, 1900, 2100 MHz); GSM/EDGE (850, 900, 1800, 1900 MHz); LTE (Bands 1, 3, 5)
  • 802.11a/b/g/n Wi-Fi (802.11n 2.4GHz and 5GHz)
  • Bluetooth 4.0 wireless technology

Location

  • Assisted GPS and GLONASS
  • Digital compass
  • Wi-Fi
  • Cellular

Display

  • Retina display
  • 4-inch (diagonal) widescreen Multi-Touch display
  • 1136-by-640-pixel resolution at 326 ppi
  • 800:1 contrast ratio (typical)
  • 500 cd/m2 max brightness (typical)
  • Fingerprint-resistant oleophobic coating on front
  • Support for display of multiple languages and characters simultaneously

Camera, Photos, and Video

  • 8-megapixel iSight camera
  • Panorama
  • Video recording, HD (1080p) up to 30 frames per second with audio
  • FaceTime HD camera with 1.2MP photos and HD video (720p) up to 30 frames per second
  • Autofocus
  • Tap to focus video or still images
  • Face detection in video or still images
  • LED flash
  • Improved video stabilization
  • Photo and video geotagging

External Buttons and Connectors

External Buttons and Controls

Connectors and Input/Output

Power and Battery4

  • Built-in rechargeable lithium-ion battery
  • Charging via USB to computer system or power adapter
  • Talk time: Up to 8 hours on 3G
  • Standby time: Up to 225 hours
  • Internet use: Up to 8 hours on 3G, up to 8 hours on LTE, up to 10 hours on Wi-Fi
  • Video playback: Up to 10 hours
  • Audio playback: Up to 40 hours

Audio Playback

  • Audio formats supported: AAC (8 to 320 Kbps), Protected AAC (from iTunes Store), HE-AAC, MP3 (8 to 320 Kbps), MP3 VBR, Audible (formats 2, 3, 4, Audible Enhanced Audio, AAX, and AAX+), Apple Lossless, AIFF, and WAV
  • User-configurable maximum volume limit

TV and Video

  • AirPlay Mirroring to Apple TV support at 720p
  • AirPlay video streaming to Apple TV (3rd generation) at up to 1080p and Apple TV (2nd generation) at up to 720p
  • Video formats supported: H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

Headphones

  • Apple EarPods with Remote and Mic
  • Storage and travel case

Rating for Hearing Aids

  • iPhone 5 (Model A1428): M3, T4
  • iPhone 5 (Model A1429): M4, T4

Mail Attachment Support

Viewable Document Types

.jpg, .tiff, .gif (images); .doc and .docx (Microsoft Word); .htm and .html (web pages); .key (Keynote); .numbers (Numbers); .pages (Pages); .pdf (Preview and Adobe Acrobat); .ppt and .pptx (Microsoft PowerPoint); .txt (text); .rtf (rich text format); .vcf (contact information); .xls and .xlsx (Microsoft Excel)

Sensors

  • Three-axis gyro
  • Accelerometer
  • Proximity sensor
  • Ambient light sensor

System Requirements

  • Apple ID (required for some features)
  • Internet access5
  • Syncing with iTunes on a Mac or PC requires:
    • Mac: OS X v10.6.8 or later
    • PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    • iTunes 10.7 or later (free download from www.itunes.com/download)

Environmental Requirements

  • Operating ambient temperature: 32° to 95° F (0° to 35° C)
  • Nonoperating temperature: −4° to 113° F (−20° to 45° C)
  • Relative humidity: 5% to 95% noncondensing
  • Maximum operating altitude: 10,000 feet (3000 m)

Languages

Language Support

English (U.S.), English (UK), Chinese (Simplified), Chinese (Traditional), French, German, Italian, Japanese, Korean, Spanish, Arabic, Catalan, Croatian, Czech, Danish, Dutch, Finnish, Greek, Hebrew, Hungarian, Indonesian, Malay, Norwegian, Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Slovak, Swedish, Thai, Turkish, Ukrainian, Vietnamese

Keyboard Support

English (U.S.), English (UK), Chinese - Simplified (Handwriting, Pinyin, Stroke), Chinese - Traditional (Handwriting, Pinyin, Zhuyin, Cangjie, Stroke), French, French (Canadian), French (Switzerland), German (Germany), German (Switzerland), Italian, Japanese (Romaji, Kana), Korean, Spanish, Arabic, Bulgarian, Catalan, Cherokee, Croatian, Czech, Danish, Dutch, Emoji, Estonian, Finnish, Flemish, Greek, Hawaiian, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Latvian, Lithuanian, Macedonian, Malay, Norwegian, Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Serbian (Cyrillic/Latin), Slovak, Swedish, Thai, Tibetan, Turkish, Ukrainian, Vietnamese

Dictionary Support (enables predictive text and autocorrect)

English (U.S.), English (UK), Chinese (Simplified), Chinese (Traditional), French, French (Canadian), French (Switzerland), German, Italian, Japanese (Romaji, Kana), Korean, Spanish, Arabic, Catalan, Cherokee, Croatian, Czech, Danish, Dutch, Estonian, Finnish, Flemish, Greek, Hawaiian, Hebrew, Hindi, Hungarian, Indonesian, Latvian, Lithuanian, Malay, Norwegian, Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Slovak, Swedish, Thai, Turkish, Ukrainian, Vietnamese

Siri Languages

English (U.S., UK, Canada, Australia), Spanish (U.S., Mexico, Spain), French (France, Canada, Switzerland), German (Germany, Switzerland), Italian (Italy, Switzerland), Japanese, Korean, Mandarin (Mainland China, Taiwan), Cantonese (Hong Kong)

In the Box

  • iPhone 5
  • Apple EarPods with Remote and Mic
  • Lightning to USB Cable
  • USB Power Adapter
  • Documentation

 

Posted by code cat
IT2012. 9. 14. 00:37

A6 chip

A5 chip

A4 chip

 

Color

Black & Slate

White & Silver

Black

White

Black

White

Weight and Dimensions1

  • Height: 4.87 inches (123.8 mm)
  • Width: 2.31 inches (58.6 mm)
  • Depth: 0.30 inch (7.6 mm)
  • Weight: 3.95 ounces (112 grams)
  • Height: 4.5 inches (115.2 mm)
  • Width: 2.31 inches (58.6 mm)
  • Depth: 0.37 inch (9.3 mm)
  • Weight: 4.9 ounces (140 grams)
  • Height: 4.5 inches (115.2 mm)
  • Width: 2.31 inches (58.6 mm)
  • Depth: 0.37 inch (9.3 mm)
  • Weight: 4.8 ounces (137 grams)

Display

  • 4-inch (diagonal) Retina display
  • 1136-by-640 resolution
  • 326 ppi
  • 3.5-inch (diagonal) Retina display
  • 960-by-640 resolution
  • 326 ppi
  • 3.5-inch (diagonal) Retina display
  • 960-by-640 resolution
  • 326 ppi

Cellular and Wireless

  • GSM model: GSM/EDGE
  • UMTS/HSPA+
  • DC-HSDPA
  • CDMA model: CDMA EV-DO Rev. A and Rev. B
  • LTE3
  • Wi-Fi (802.11a/b/g/n; 802.11n on
    2.4GHz and 5GHz)
  • Bluetooth 4.0
  • GPS and GLONASS
  • GSM/EDGE
  • UMTS/HSPA
  • -
  • CDMA EV-DO Rev. A2
  • -
  • Wi-Fi (802.11b/g/n; 802.11n on
    2.4GHz)
  • Bluetooth 4.0
  • GPS and GLONASS
  • GSM model: GSM/EDGE
  • UMTS/HSPA
  • -
  • CDMA model: CDMA EV-DO Rev. A
  • -
  • Wi-Fi (802.11b/g/n; 802.11n on
    2.4GHz)
  • Bluetooth 2.1 + EDR
  • GPS

SIM Card

Nano-SIM
iPhone 5 is not compatible with existing micro-SIM cards.

Micro-SIM

Micro-SIM

Intelligent Assistant4

Siri

Use your voice to send messages, set reminders, and more.

Siri

Use your voice to send messages, set reminders, and more.

-

iSight Camera

8 megapixel

  • Autofocus
  • Tap to focus
  • LED flash
  • Backside illumination sensor
  • Five-element lens
  • Face detection
  • Hybrid IR filter
  • ƒ/2.4 aperture
  • Panorama

8 megapixel

  • Autofocus
  • Tap to focus
  • LED flash
  • Backside illumination sensor
  • Five-element lens
  • Face detection
  • Hybrid IR filter
  • ƒ/2.4 aperture
  • Panorama

5 megapixel

  • Autofocus
  • Tap to focus
  • LED flash
  • Backside illumination sensor
  • Four-element lens
  • -
  • -
  • ƒ/2.8 aperture
  • -

FaceTime Camera

1.2MP photos
720p HD video
Backside illumination sensor

VGA-resolution photos
VGA-resolution video

VGA-resolution photos
VGA-resolution video

Video Calling5

FaceTime

  • iPhone 5 to any FaceTime-enabled device over Wi-Fi or cellular

FaceTime

  • iPhone 4S to any FaceTime-enabled device over Wi-Fi or cellular

FaceTime

  • iPhone 4 to any FaceTime-enabled device over Wi-Fi

Video Recording

1080p HD video recording

  • 30 fps
  • Tap to focus while recording
  • LED light
  • Improved video stabilization
  • Take still photos while recording video
  • Face detection

1080p HD video recording

  • 30 fps
  • Tap to focus while recording
  • LED light
  • Video stabilization
  • -
  • -

720p HD video recording

  • 30 fps
  • Tap to focus while recording
  • LED light
  • -
  • -
  • -

Headphones

Apple EarPods with
Remote and Mic

Storage and travel case

Apple Earphones with Remote and Mic

Apple Earphones with Remote and Mic

Connector

Lightning

30-pin

30-pin

Battery Life6

Talk time:
Up to 8 hours on 3G

Browsing time:
Up to 8 hours on LTE
Up to 8 hours on 3G
Up to 10 hours on Wi-Fi

Standby time:
Up to 225 hours

Talk time:
Up to 8 hours on 3G

Browsing time:
-
Up to 6 hours on 3G
Up to 9 hours on Wi-Fi

Standby time:
Up to 200 hours

Talk time:
Up to 7 hours on 3G

Browsing time:
-
Up to 6 hours on 3G
Up to 10 hours on Wi-Fi

Standby time:
Up to 300 hours

Capacity and Price7

16GB

32GB

64GB

16GB

8GB

 

'IT' 카테고리의 다른 글

iPad with Retina display 스펙  (1) 2012.10.24
iPad 미니 스펙  (0) 2012.10.24
iOS 6 추가 된 기능들  (0) 2012.09.16
아이폰 5 스펙  (0) 2012.09.14
맥북프로 2012년 스펙 (레티나디스플레이 포함)  (0) 2012.06.12
Posted by code cat

vba 파일을 vim으로 열고, :source % 를 입력한다.

예)

vim vim_script.vba 

vim 커맨드 모드에서, :source %

%는 현재 열린 파일을 의미한다.

Posted by code cat
리눅스2012. 9. 8. 22:44

Ctrl + Alt + F1 ~ F6 까지 터미널이 열린다.

desktop(GUI)로 돌아오고 싶으면 Ctrl + Alt + F9 를 누르면 된다.

참고로 Ctrl + Alt + Backspace 는 로그인 화면으로 돌아간다.(로그아웃됨)

Posted by code cat
리눅스/커널2012. 9. 4. 23:20
boot memory allocator

컴파일 타임에 커널에서 사용하는 그 많은 structure들을 초기화 시킨다는 것은 불가능하다. 그런 structure들을 초기화 시켜주기 위해서는 메모리가 필요한데 그 이유는 physical page allocator조차 자기자신을 초기화 하기 위해서는 메모리가 필요하기 때문이다.


iPhone 에서 작성된 글입니다.

'리눅스 > 커널' 카테고리의 다른 글

GFP_KERNEL vs GFP_ATOMIC vs GFP_USER vs GFP_DMA  (0) 2012.09.16
include/linux/fs.h 2.6.35 vs 3.0  (0) 2012.09.16
defunct 프로세스 죽이기  (0) 2012.08.16
kmalloc, cache allocator  (0) 2012.07.20
리눅스커널 timestamp 찍는 법  (0) 2012.07.18
Posted by code cat
프로그래밍/C2012. 8. 21. 18:51

출처: http://kldp.org/node/71304

typedef struct aa = {
    int a;
    int b;
}AA;
 
/* 1번 방법 */
AA a = {
    1,
    2
};
 
/* 2번 방법 */
AA b = {
    .a = 1,
    .b = 2
};
 
/* 3번 방법 */
AA c = {
    a:1,
    b:2
};

1은 ANSI 표준, 2는 ISO C (C99) 표준, 3은 GCC 확장 기능입니다.

'프로그래밍 > C' 카테고리의 다른 글

인라인 어셈블리  (0) 2012.09.25
include guard에 대해서  (0) 2012.09.24
error: expected identifier before numeric constant  (0) 2012.07.03
정적 라이브러리, 동적 라이브러리 만들기  (0) 2012.04.04
sprintf 사용법  (0) 2012.04.03
Posted by code cat
리눅스/커널2012. 8. 16. 09:54

defunct 라고 나오는 프로세스는 우리가 흔히 알고 있는 Zombie 프로세스로 부모 프로세스에서 아직 wait을 부르지 않은 상태이다.

ps 시 defunct라고 나오는 프로세스를 죽일라면 부모 프로세스를 찾아서 부모 프로세스를 죽여야 한다.  부모가 죽은 고아 프로세스는 결국 init프로세스에서 회수에서 처리하기 때문이다.

'리눅스 > 커널' 카테고리의 다른 글

include/linux/fs.h 2.6.35 vs 3.0  (0) 2012.09.16
boot memory allocator 의 필요성  (0) 2012.09.04
kmalloc, cache allocator  (0) 2012.07.20
리눅스커널 timestamp 찍는 법  (0) 2012.07.18
__user  (0) 2012.07.01
Posted by code cat