archive [ 2007ǯ08�� ]
�ġ��ε����ΰ���
Ʊ������ʣ������Ƥ������硣LDB �Ǥϵ������Ȥ����̤���Ω���Ƥ���Τ��Ф��ơ��Ϥƥ��Ǥϰ�����ñ�̤��ʥ������꡼�Ȥ���̾�������褦�ˡˡ�����������Ǹ��Ф����äơ�ʣ���ε�����������롣������LDB�ϡ��ƥ�ץ졼�Ȥˤ�ä�Ʊ�����դ�ޤȤ�Ƹ�����褦��ɽ�����Ƥ��롣�����¿����LDB�Υȥåץڡ����򸫤ƤΤȤ��ꡣ
�ƥ�ץ졼�ȤΥ������ޥ���
�֥饦���˽��Ϥ����HTML���Ϥƥ����ѹ�����ǽ����ʬ�ϡ��إå����ȥեå����ʥڡ����κǽ�ȺǸ�ˤΤߡ������˥֥����ΰ���䥯�쥸�å�ɽ���ʤɤ�����뤳�Ȥ��Ǥ��롣
�Ф���LDB�Ǥ� �ۤȤ�����Ƥ��Խ��Ǥ��롣HTML�ι�¤���Ѥ����� Ǥ�դγ���������ץȤ򥤥󥯥롼�ɤǤ�����ȡ���ꤿ������ʰ��ݡ�DOCTYPE��xml������ޤǤ���Ѥ����뤬������˴ؤ��Ƥϡ����⤽��ץ饰����ʤɤμ�ư���Ϥ����ս꤬���������ä��ꤹ��Τǡ����ޤ��̣�Ϥʤ������ʤߤ˥ƥ�ץ졼�Ȥϰʲ��λͤĤ�ʬ�����롣
- �ȥåץڡ���
- ���̵����ڡ���
- ���ƥ��ꥢ��������
- ���̥���������
�Ϥƥ��Ǥϡ���˥塼��إå�����ɽ����Í�����ץ����ˤʤ롣
�ǡ����δ���
LDB- ����ݡ���: MT������
- �������ݡ���: �Բġ�Í���ǤDz�ǽ�Ĥ餷�����ե����ޥå�������
- ����ݡ���: �ϤƤʤ������ǡ��������ޤ���MT������
- �������ݡ���: �ϤƤʤ������ǡ���������MT������CSV������
-
����
���������Υǡ�������¸���������
����¾�Υ֥�������ϤƤʥ������꡼�˰��ñۤ�
�����ǽ
���͡��ϤƤʵ�ˡ
���Ϥμ�֤ò¸º¤é¤¹ï¿½ï¿½ï¿½Ä¤ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Â°ï¿½ï¿½ï¿½Î°ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ëµï¿½ï¿½ï¿½ï¿½ï¿½Þ¤Ê¤ï¿½ï¿½Æ¤â¤¤ï¿½ï¿½ï¿½è¤¦ï¿½Ë¡ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ü¤Ë¤ï¿½Í¥ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ìµË¡ï¿½ï¿½TeX��ˡ�� ���������˽���ͤ����ˤȤäƤϿ�޷��Τ��ʤȻפ��ˡ�
LDB�˴ؤ��Ƥ���ɮ���٤���Τ���������ʤ���
�ɵ���
�������������˺��Ƥ�����LDB�Ǥ�ͽ����Ƥ��Ǥ��롣�����Ĥ⤿��ñ¤¤ï¿½ï¿½Æ¿ï¿½ï¿½ï¿½ï¿½î¹¹ï¿½ï¿½ï¿½ï¿½ï¿½Æ¤ï¿½è¤¦ï¿½Ë¸ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ë¡¢ï¿½Ê¤ï¿½ï¿½É®ï¿½ï¿½ï¿½ï¿½ï¿½Ë¤Ô¤Ã¤ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ë¡ï¿½È¤ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½È¤ï¿½Ì¤ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ê¤É¤ï¿½ï¿½ï¿½ï¿½ò¤¤¤ï¿½ï¿½â¤·ï¿½ï¿½Ê¤ï¿½ï¿½ï¿½ï¿½Ö¾ï¿½ï¿½È¾Ç¯ï¿½Ù¤ï¿½Î¥Ë¥å¡¼ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½È¡×¤Î¤è¤¦ï¿½Ë¡ï¿½È¾Ç¯ï¿½Ð¤Ã¤ï¿½Ëºï¿½ï¿½ï¿½ì¤¿ï¿½ï¿½ï¿½Ë¡ï¿½Ä«ï¿½ï¿½Î¶ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ð¶ï¿½ï¿½ï¿½ï¿½ï¿½Î¼ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ê¤É¤È¸ï¿½ï¿½ï¿½ï¿½Ð¤ï¿½ï¿½ï¿½ï¿½ï¿½È¤ï¿½ï¿½ï¿½ï¿½Û¥ï¿½È·ï¿½ï¿½Ê¥Ö¥ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ë¡£ï¿½ï¿½ï¿½ï¿½
��ɸ��������ä�����
�Ȥ������Ȥ� �ϤƤʥǥӥ塼����������ƥʤ��ߤ����ä������
�� CSS:color �� �����
ɽ���Ϥ��������Ȥ򡢲̤����ƴ�֤٤����ݤ���¾�ͤλ��ꤷ�����򡢥��������饤�᡼�����Ť餯�ʤ�Τϴְ㤤�ʤ���
element { color: hsl(0, 100%, 50%) } element { color: rgba(255, 0, 0, 0.5) } element { color: hsla(0, 100%, 50%, 0.5) }
hsl �Ȥ����ΤϿ��ꡦ���١����٤Τ��ȡ�hue �� saturation ��lightness �Ȥ��� Gimp �Ȥ��ʤé¤ï¿½Ã¤È¤ï¿½ï¿½Ê¤ï¿½ï¿½ß¡ï¿½
������Ĥϥ���ե������ͥ�λ��꤬�ä�äƤ����㡣
Ʃ���٤�ؤ�ñ��� transparency �ǤϤʤ� translucency ���Ȥ���餷����
�Ƹ���
<?php class Sample_Callee{ function trial(){ $this-> print_hello(); } function print_hello(){ echo 'sample_callee!'; } } ?>�Ȥ����ե����� [ sample_callee.php ] ���Ѱդ��ơ� �ʲ���¹Ԥ���Ȳ�����������뤫 �Ȥ������ꡣ
<?php ini_set( 'display_errors', 0); error_reporting( E_ALL); $obj= new Sample(); $obj-> main(); class Sample{ function main(){ require_once 'sample_callee.php'; Sample_Callee::trial(); } function print_hello(){ echo 'weeeeeeeela!!!'; } } ?>
����Ū�˥᥽�å� trial ��Ƥ�Ǥ� $this ��̤����� null �ˡ��Ĥޤ���̿Ū���顼�ǽ�λ���롣�����Ǥ� ini_set �λ���ˤ�äƲ���ɽ������ʤ��� �ʤ�������ϴְ㤤��
����� �� weeeeeeeela!!! ��ɽ�������ס�
�Ȥꤢ�����ܤ򵿤ä���
���󥹥ȡ��뤬��λ���ޤ����������ƺ��٤ʥߥ��ʤ�����ɡ����̥桼�����������Ǥʤ��Ƥ� Cybozu Labs �Υ�꡼���Ǥʤ����¿���γ�ȯ�Ԥ⡢�ޤ��� ���äȤ����פ��Ϥ���
���Ȥ��Υ���ԥ塼�����ˡ�ɬ�פʥ��եȥ����������󥹥ȡ��뤵��ޤ��������Τޤ�Pathtraq�򤪳ڤ��ߤ��������ޤ���
���졢�ʤ�����졣
���󥹥ȡ���ʤ�Ƥ����Ĥ��ʤ��Τˡ�
�ֳƥ桼�����ι�ư�����פ���褦�ʤ��ȤϹԤäƤ���ޤ���פʤ�ơ����������ΤϤɤ���Ʊ�����ȸ��������ʡġ�
������ץȤμ¹Ԥ�ɬ�ܤȤʤ륵���ӥ��ʤ顢ʸ����ν��Ϥˤ���Ρ��ɤι��ۤˤ��襹����ץȤǺѤޤ���Ф����ΤˡĤäƤ��Ĥ�פ����äˡ�Internet Explorer 6 �ޤ��� 7 �� Mozilla Firefox 2.0 �Τߡפʤ�Ƹ���Ǥ���ʤ� �ۤȤ�ɥ����Ȥ�ݤ���ʤ���������������Ⱥ���ΤȤϴط��ʤ����� JavaScript �Ȥ�ɬ�פʤ��Τ� �ʤ��??? �äƤ����Τ�������Ȼפ���youmos�Ȥ�youmos�Ȥ�youmos�Ȥ���
�ɵ��� masuda_ex.user.js
�ϤƤ�ƿ̾�������꡼�ʰʲ� ���ġ�
���ĤΥ��󥿡��ե������ϡ����ʤ��Ȥ������Ū�Ǥ� �������ˤ��ɤ��Ϥʤ���
���Τ���Υ�����ץȤ�񤤤Ƥߤ���Τν��������꤫�����Ǥ��ơ��ɤ���Ƴ����뵤�ˤʤ�ʤ��Τǡ��޳Ѥ�����������Ƥ��ޤ������ȡ����Ĥ��ɤ�����Ʊ�����ȹͤ��Ƥ�ï���λ��ͤˤʤ�й�����
ư����ͻҡ�
�ޥ��������С��ǡ����βս�˥�������Ȥ�ɽ������롣
�Ϥä�����äƻȤ��ˤ������������򤤤�����ɡ�
�ޤ�����
��ɽ���������Ρ��ɤ���������ʤ��ʤ���
�����Ǥ��Ťʤ�ˤĤ�����褬�ʤ��ʤ�˽Ť��ʤ롣
�������򥯥�å�����ݤ˥��Ĥ�ɬ�ס�
�������ɲä��٤���
�����˸����ȥ�å��Хå�����ɽ��
��̾ʸ����¸�ʺ�Ԥ�����������ˡ�
���ϤƤʥ����ӥ��Ȥ�Ϣ���ʥ�������Ȥ�̵���ΤǸ����Բġ�
�ì¤ï¿½ï¿½
�����������ı����ѥ�����ץȤ������ȤϻפäƤ�������ɡ������˽����������ȥ��������äƤ���¤ϰճ��˶��路�ơ��Ȥ����Τ�XML�Ȥ��������ʵ��Ҥ���¿���ƥѡ��������ݤ��Ȥ����ޥ����Υ��٥�Ƚ����ȥ���������ε�ư�˼㴳���ʤ����äơ���������פ��Ƥ����Ȥ����Τ���ͳ�ǡ���̤Ȥ��������������֤��񤷤����˲����٤��ս꤬�����������ꡢ��äȸ���������θ��̤��δŤ���̵��Ǥ��ʤ��ʤäƤ��ơ�����ˤ��⤽�⡢���Ļ��ͤ��Ѥ�뤫�������ʼ¸������ӥ��Τ���˻��֤�ݤ������ʤ��Ȥ����פ�����ᤫ�餢�äơ��⤦��ľ�ʤȤ���������ڼ¤�˰�����Ȥ��������������Ǥⵡǽ���Ƥơ����˻�ϻȤäƤ뤷�ġ�
Fri, 24 Aug 2007 19:18:52 +0900
�ɵ���
�ϤƤʥ�������ȤȤä���
// ==UserScript== // @name masuda_ex // @namespace http://blog.livedoor.jp/tzifa/ // @author tzifa // @include http://anond.hatelabo.jp/* // ==/UserScript== // Released under the GPL license // http://www.gnu.org/copyleft/gpl.html (function(){ var pass= function(){ return function(args){ return { to: function(fn){ return fn.apply(this,args); } } }(arguments); }; var isTargetLink= pass( /^http:\/\/anond.hatelabo.jp\/(\?|[0-9].*|$)/, /^a$/i ).to( function(url,tag){ return function(elem){ return url.test(elem.href) && tag.test(elem.nodeName);} }); var requestDocument= pass({}).to( function(textCache){ return function(url,method){ return { onload: typeof textCache[url] == 'undefined'? function(callback){ return GM_xmlhttpRequest({ method: method || 'GET', url : url, onload: function(result){ callback( textCache[url]= extractText( result.responseText, url)); } }); }: function(callback){ return callback( textCache[url]); } }; }; }); var dummySpace= pass( document.createElement('div'), document.getElementById('globalheader') ) .to( function(div,tgt){ document.body.insertBefore( div, tgt); div.style.height= '0px'; return { extend: function(num){ div.style.height= num+ parseInt( div.style.height, 10); }}; }); var getCoord= function(elem){ var x,y, height= elem.offsetHeight; for( x=0,y=0; elem; elem= elem.offsetParent){ x+= elem.offsetLeft; y+= elem.offsetTop; } return { x:x, y:y+height}; }; var extractText= function( text, linkElement){ var tgt= text.slice( text.indexOf('<div class="hatena-body" id="hatena-anond">'), text.indexOf('<div id="footer">') ); var pos= tgt.indexOf('<p id="breadcrumbs">'); if( pos== -1){ return tgt; } var a= tgt.slice( 0, pos); var b= tgt.slice( tgt.indexOf('<div id="body">')); pos= b.indexOf('<form'); return pos== -1? a+b : a+b.slice( 0, pos)+b.slice( 7+b.indexOf('</form>')); }; var adjustPosition= function( targetLink, currentDiv){ currentDiv.style.visibility= 'hidden'; var pos= getCoord( targetLink); currentDiv.style.left= ( pos.x< 0) ? 0 :( innerWidth- pos.x < 600 )? 0: pos.x; document.body.appendChild(currentDiv); var num, diff= currentDiv.offsetHeight-pos.y; if( diff> 0){ dummySpace.extend(diff); scrollTo( pos.x, diff-targetLink.offsetHeight); num= document.body.offsetHeight-pos.y-diff; } else{ scrollBy( pos.x, -targetLink.offsetHeight); num= document.body.offsetHeight-pos.y; } currentDiv.style.bottom= num+ 'px'; currentDiv.style.visibility= 'visible'; } var fn= function(e){ if(!isTargetLink(e.target)) return; var link= e.target; requestDocument(link.href).onload( function(str){ var div= document.createElement("div"); div.innerHTML= str; var form= div.getElementsByTagName('form'); if( form.length){ form[0].style.display= 'none'; } with(div.style){ border= '5px solid #5279e7'; padding= '0px 25px 0px 25px'; opacity= '0.9'; overflow= 'auto'; position= 'absolute'; backgroundColor= 'white'; }; adjustPosition( link, div); }); } document.body.style.position= 'absolute'; document.body.style.top= '0px'; document.body.addEventListener('mouseover',fn,false); })();�ʴؿ� isTargetLink �˥�����ɤΥڡ����䳰����󥯤ϥޥ��������С����оݤ��鳰������