Admin관리자   |    Posting포스트   |    LogOut로그아웃
Home   |    Location   |    Tags   |    Guestbook


lodoss
블로그에 오신 여러분 환영합니다.
세연이는 지금.. 파이팅파이팅
숨만 쉬어도 독기가 올라왔던 20대의 독기어린 열정이 필요해.
남자RH+ A형물고기자리해외
Category
전체 (292)
사는 이야기 (246)
같이 공부! (46)
추천하고 싶은 것 (0)
«   2010/09   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Powered by :
Textcube
ver :
1.7.8 : Con moto
skin by :
Locations of visitors to this page
Statistics Graph
4명이 RSS를 구독하고 있습니다.
HTML 5
Date : 2010/07/07 21:38
참 공부할 것도 많고 궁금한 것도 많고
이런 저런 이유로 현재까지는 학교에 남아 있을 생각은 눈꼽 만큼도 없지만,
이런 저런 이유를 넘어설 만큼 궁금한게 많아서 가끔 학교에 남아서 계속 공부를 할까라는 생각이 들기도 한다.

어쨌든 HTML5가 계속 표준화 작업 중이긴 하지만 몇몇 브라우저에서 지원을 한다니
미리 살펴보지 않을 수가 없네 :-P

HTML5 태그

HTML5 Tags

<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<article>
<aside>
<audio>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<command>
<datalist>
<dd>
<del>
<details>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<font>
<footer>
<form>
<frame>
<frameset>
<h1> - <h6>
<head>
<header>
<hgroup>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<keygen>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<tt>
<u>
<ul>
<var>
<video>
<xmp>

New Markup Elements

New elements for better structure:

Tag Description
<article> For external content, like text from a news-article, blog, forum, or any other content from an external source
<aside> For content aside from the content it is placed in. The aside content should be related to the surrounding content
<command> A button, or a radiobutton, or a checkbox
<details> For describing details about a document, or parts of a document
<summary> A caption, or summary, inside the details element
<figure> For grouping a section of stand-alone content, could be a video
<figcaption> The caption of the figure section
<footer> For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
<header> For an introduction of a document or section, could include navigation
<hgroup> For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
<mark> For text that should be highlighted
<meter> For a measurement, used only if the maximum and minimum values are known
<nav> For a section of navigation
<progress> The state of a work in progress
<ruby> For ruby annotation (Chinese notes or characters)
<rt> For explanation of the ruby annotation
<rp> What to show browsers that do not support the ruby element
<section> For a section in a document. Such as chapters, headers, footers, or any other sections of the document
<time> For defining a time or a date, or both


New Media Elements

HTML 5 provides a new standard for media content:

Tag Description
<audio> For multimedia content, sounds, music or other audio streams
<video> For video content, such as a movie clip or other video streams
<source> For media resources for media elements, defined inside video or audio elements
<embed> For embedded content, such as a plug-in


The Canvas Element

The canvas element uses JavaScript to make drawings on a web page.

Tag Description
<canvas> For making graphics with a script


New Form Elements

HTML5 offers more form elements, with more functionality:

Tag Description
<datalist> A list of options for input values
<keygen> Generate keys to authenticate users
<output> For different types of output, such as output written by a script

New Input Type Attribute Values

Also, the input element's type attribute has many new values, for better input control before sending it to the server:

Type Description
tel The input value is of type telephone number
search The input field is a search field
url The input value is a URL
email The input value is one or more email addresses
datetime The input value is a date and/or time
date The input value is a date
month The input value is a month
week The input value is a week
time The input value is of type time
datetime-local The input value is a local date/time
number The input value is a number
range The input value is a number in a given range
color The input value is a hexadecimal color, like #FF8800

하기사 HTML 4.01이 나온지 10년이 넘었으니 ㅡ_ㅡ

재미있는 tag가 많이 생긴것 같아 빨리 써보고 싶은 욕구가 샘솓는다. (시간만 발목을 잡지 않는다면 T^T)


reference : w3schools.com



2010/07/07 21:38 2010/07/07 21:38
Top
다음메일(한메일) 외부에서 확인하는 방법
Date : 2010/06/15 19:37
pop3서비스는 프리미엄 사용자(유료)에게만 제공되는 기능이라 사용하지 못했었는데
우연히 imap서비스를 무료로 제공하는걸 알게됐습니다. 아마도 모바일 사용자 때문에
풀어놓은것 같습니다.

imap서비스 정보는 다음과 같습니다.
사용자 삽입 이미지










외부 프로그램(썬더버드)에서 설정한 스샷입니다.
사용자 삽입 이미지






























아이폰에서도 잘 되네요 :-)


cheers


2010/06/15 19:37 2010/06/15 19:37
Top
우분투에서 갑자기 USB가 동작하지 않을 때
Date : 2010/05/27 18:53
우분투를 데스크 탑으로 사용하는데 부팅 후 시스템을 오래 사용하다보면 usb가 먹통이 되는 경우가 있습니다.
이런 경우 다음과 같이 실행하면 usb가 더이상 멈추지 않습니다. ;-)

원인)
----
우분투에서 9.10 이후 ehci_hcd는 더이상 커널 모듈로 존재하지 않고 커널에 흡수됐습니다. 그래서
ehci_hcd를 더이상 실행되지 않도록 다음과 같이 실행하면 됩니다.

lodoss@ua048:/sys/bus/pci/drivers/ehci_hcd$ modprobe -r ehci_hcd
FATAL: Module ehci_hcd not found.
---

해결)
---
lodoss@ua048:~$
lodoss@ua048:~$ cd /sys/bus/pci/drivers/ehci_hcd
lodoss@ua048:/sys/bus/pci/drivers/ehci_hcd$
lodoss@ua048:/sys/bus/pci/drivers/ehci_hcd$
lodoss@ua048:/sys/bus/pci/drivers/ehci_hcd$ sudo gnome-terminal
lodoss@ua048:/sys/bus/pci/drivers/ehci_hcd$

새로 실행된 root권한의 터미널에서
root@ua048:/sys/bus/pci/drivers/ehci_hcd# ls -al
total 0
drwxr-xr-x  2 root root    0 2010-05-27 10:38 .
drwxr-xr-x 24 root root    0 2010-05-26 13:41 ..
lrwxrwxrwx  1 root root    0 2010-05-27 10:33 0000:00:13.2 -> ../../../../devices/pci0000:00/0000:00:13.2
--w-------  1 root root 4096 2010-05-27 10:33 bind
lrwxrwxrwx  1 root root    0 2010-05-27 10:33 module -> ../../../../module/ehci_hcd
--w-------  1 root root 4096 2010-05-27 10:33 new_id
--w-------  1 root root 4096 2010-05-27 10:33 remove_id
--w-------  1 root root 4096 2010-05-27 10:33 uevent
--w-------  1 root root 4096 2010-05-27 10:38 unbind

ls 해서 나열되는 0000:00:xx.x를 다음과 같이 해줍니다.
root@ua048:/sys/bus/pci/drivers/ehci_hcd# echo -n "0000:00:13.2" > unbind


lodoss@ua048:/sys/bus/pci/drivers/ehci_hcd$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 0b38:0010 Gear Head 107-Key Keyboard
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 05ac:1292 Apple, Inc. iPhone 3G
Bus 003 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 003 Device 002: ID 0ac8:c311 Z-Star Microelectronics Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

도움이 되셨길 바랍니다 ;-)



Cheers!



2010/05/27 18:53 2010/05/27 18:53
Top
(추가) 변수에서 비트가 set된 위치 찾기
Date : 2010/05/27 00:06
아.. 제목이 어렵다. 이걸 한국말로 뭐라고 해야할지...;;

To find the position of the first bit set(least significant bit) 하려할 때 사용하는 방법.
가장 좋은 방법은 대부분의 프로세서들이 제공하는 logical instructions을 이용하는 것이다.
(가장 빠르고 확실하다.) 또한, glibc library도 이를 제공하는데 POSIX.1-2001에서 conforming 된
함수이다.

       #include <strings.h>

       int ffs(int i);

       #define _GNU_SOURCE
       #include <string.h>

       int ffsl(long int i);

       int ffsll(long long int i);
예)


#include <strings.h>
#include <stdio.h>

int main(int argc, char** argv)
{
    printf("%d, %d, %d, %d, %d\n",
            ffsl(40),ffsl(160),ffsl(640),ffsl(1280),ffsl(1234567));

    return 0;
}
lodoss@rts006:~> ./ffs
4, 6, 8, 9, 1
40의 경우 2진수로 0010 1000 이므로 LSB위치는 4
1280의 경우 2진수로 0101 0000 0000 이므로 LSB의 위치는 9

(추가)
============================
$ cat bsrl.c
#include <stdio.h>

int main (int argc,char**argv)
{
  int n=12345;
  int msb;

  asm("bsrl %1,%0" : "=r"(msb) : "r"(n));
    printf("[%d] ==> %d\n", n, msb);
    printf("[%d] ==> %d\n", n, __builtin_clz(n));

  return 0;
}
 - bsrl instruction은 MSB에서 LSB로 가면서 가장 먼저 1로 set된 비트의 위치를 반환하는 명령어.

 - __builtin_clz(unsigned int)는 MSB에서 LSB로 가면서 1이 나올 때까지 0의 개수 카운트 후 반환.
   gcc의 built-in 함수임. 반대동작을 하는 함수는 int __builtin_ctz (unsigned int x)
 - 참고) int __builtin_clzl (unsigned long)
           int __builtin_clzll (unsigned long long)

============================
cheers!







2010/05/27 00:06 2010/05/27 00:06
Top
USB stick이 readonly 속성으로만 인식될 때
Date : 2010/05/12 23:00
Ubuntu에서 USB stick이 readonly 속성으로만 인식될 때는 fsck로 파일시스템을 손봐야한다.

dosfsck -r -v /dev/sdb1
윈도에서는 chkdisk 명령으로 수정


cheers

--
ps. 요즘에는 믹시에 제대로 등록되는 것을 못보네.. 믹시도 맛이가는구만 -.-


2010/05/12 23:00 2010/05/12 23:00
Top
프로젝트 관리에 관한 참고할만한 글
Date : 2010/05/11 20:10
http://swarchi.tistory.com/1


http://swarchi.tistory.com/8


cheers!



2010/05/11 20:10 2010/05/11 20:10
Top
아이폰 폰트 변경
Date : 2010/05/11 01:57
해킹 하는 김에 그 동안 너무 마음에 안 들었던 한글 폰트와 영문 폰트를 변경했다.

아이폰 폰트는
/System/Library/Fonts/Cache/

이 디렉토리에 저장되어 있고 한글과 영문에 관련된 폰트는
한글 : AppleGothicRegular.ttf
영문 : Helvetica.ttf
영문 Bold : HelveticaBold.ttf

라고 보면 됩니다. 이해가 되지 않는건 애플은 아름다운 폰트인 Monaco를 가지고 있으면서
아이폰에는 왜 적용을 하지 않았는지 이해가 안되는군요. 어쨌든, Mac용 Monaco폰트를 구해서
설치해야 되는데 좀 귀찮아서 다른 폰트로 대체했습니다.

iphonebrowser 같은 프로그램을 다운받고 실행하면 아이폰의 디렉토리를 들여다볼 수 있는데
(물론, 탈옥폰에 한해 가능합니다) 위의 3개 폰트를 원하는 걸로 변경하면 됩니다.
반드시, Mac용 폰트를 구해서 설치해야 됩니다. 검색해보시면 많은 나눔/다음 폰트가 있으니
그런것으로 한글 폰트를 설정하시면 깔끔한 한글을 볼 수가 있겠죠.

다음 3개는 제 iPhone 스샷입니다 :-)

사용자 삽입 이미지
사용자 삽입 이미지


























사파리에서 보는 한글 폰트는 정말 말로 표현하지 못할 만큼 엉망이였는데 이제 좀 살 것 같군요!
사용자 삽입 이미지























Cheers!


2010/05/11 01:57 2010/05/11 01:57
Top
아이폰 해킹
Date : 2010/05/11 00:29
아이폰 해킹하기

지금 현재 iphone OS 3.0.x임. 어떤 apps를 설치하려고 하니 3.1.2이상의 os 버전을 요구해서
어쩔 수 없이 업뎃.

가장 먼저 필요한 프로그램들을 다운함
 - redsn0w 0.9.4 windows용을 받음.
 - iphone firmware 3.1.2를 받음(절대 3.1.3을 받으면 안됨!)

다음으로, 아이튠에서 OS를 3.1.3으로 업뎃함. 이미 업뎃이 된 사람들이나 iPhone 신형기종을 쓰는 경우
cydia에서 설명한 대로 잘 읽어보고 해킹을 해야함..
 - 기존에 해킹한 프로그램들 삭제될까봐 걱정할 필요없음. (아이튠에서 자동동기화 옵션을 끄면 그만임)

OS 3.1.3상태에서 redsn0w를 실행. 펌웨어 3.1.2를 선택한 후 검증.

그 후, 가장 재미있는 단계인 아이폰 recovery상태로 들어가야하는데..
 - 아이폰을 컴퓨터에 연결하고, 아이폰의 전원을 끈다!
 - 그 후, redsn0w에서 하라는데로 하는데...
 - 아이폰의 전원이 꺼진상태에서 파워버튼을 3초가량 꾹! 누르고,
 - (프로그램에서 하라는데로) 전원버튼 누른상태에서 약 5초간 홈버튼을 같이 눌러준다.
 - 그 후, (프로그램에서 하라는데로) 전원버튼에서 손을 때고, 30초간 홈버튼을 계속 눌러준다.

그 이후는 프로그램에서 알아서 해 줌. 해킹이 끝나고 cydia에서 installous를 찾아 설치하면 됨~
(http://lodoss.makeself.net/196 를 참조해서 cydia 프로그램에 해당 apt용 repository를 추가해야
installous가 검색됨)
필요할 때마다 installous에서 원하는 프로그램 검색/설치..


cheers!
--
참고) 3.1.2 펌웨어로 해킹했지만, 해킹 이후 시스템 정보에서 확인하면 펌웨어 버전은 3.1.3으로 남아있음.

2010/05/11 00:29 2010/05/11 00:29
Top
우분투 10.04 출시...
Date : 2010/04/30 17:52

데스크 톱과 노트북을 우분트 09.10 쓰고 있었는데, 4/29자로 10.04가 출시됐군요!

열심히 업그래이드 하는 중입니다.


http://www.ubuntu.com



cheers!



2010/04/30 17:52 2010/04/30 17:52
Top
리눅스에서 euc-kr 파티션을 utf-8로 변환하기
Date : 2010/04/29 19:19
예전에 쓰던 리눅스 파티션의 locale이 euc-kr로 설정되어 있어, ubuntu 9.10 utf-8환경에서 마운트해보니
문자가 모두

"�����ı�������/20050727/�߰���_���ҽ��ϴ�.doc"

이런식으로 출력됐다. 이런경우 일단, convmv 패키지를 설치

sudo apt-get install convmv


그 후, 다음과 같이 실행하면 euc-kr로 되어 있던 파일/디렉토리 이름이 utf-8로 변경된다.

sudo convmv --notest -f euc-kr -t utf-8 -r "해당 디렉토리명"




cheers


2010/04/29 19:19 2010/04/29 19:19
Top
최근 공지사항
펼치기
최근 덧글
펼치기
05/26 – lodoss
05/26 – 부르릉
03/26 – 비밀방문자
01/20 – lodoss
01/17 – ovo
2009 – lodoss
2009 – http://eeodl.blogspot.com/
2009 – lodoss
2009 – 비밀방문자
2009 – lodoss
닫기
최근 트랙백
펼치기
– Historical Repository
– Historical Repository
닫기
Click for Linton-On-Ouse, 영국 Forecast