??xml version="1.0" encoding="utf-8" standalone="yes"?>色综合久久久,亚洲高清影院,午夜精品视频在线观看http://www.aygfsteel.com/oxl/A long way and a dream.zh-cnSun, 18 May 2025 01:49:30 GMTSun, 18 May 2025 01:49:30 GMT60使GDB能打印宏的方?/title><link>http://www.aygfsteel.com/oxl/archive/2009/09/15/295081.html</link><dc:creator>oxl</dc:creator><author>oxl</author><pubDate>Mon, 14 Sep 2009 17:44:00 GMT</pubDate><guid>http://www.aygfsteel.com/oxl/archive/2009/09/15/295081.html</guid><wfw:comment>http://www.aygfsteel.com/oxl/comments/295081.html</wfw:comment><comments>http://www.aygfsteel.com/oxl/archive/2009/09/15/295081.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/oxl/comments/commentRss/295081.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/oxl/services/trackbacks/295081.html</trackback:ping><description><![CDATA[$ gcc -gdwarf-2 -g3 sample.c -o sample <img src ="http://www.aygfsteel.com/oxl/aggbug/295081.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/oxl/" target="_blank">oxl</a> 2009-09-15 01:44 <a href="http://www.aygfsteel.com/oxl/archive/2009/09/15/295081.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>testhttp://www.aygfsteel.com/oxl/archive/2009/02/26/256783.htmloxloxlThu, 26 Feb 2009 03:46:00 GMThttp://www.aygfsteel.com/oxl/archive/2009/02/26/256783.htmlhttp://www.aygfsteel.com/oxl/comments/256783.htmlhttp://www.aygfsteel.com/oxl/archive/2009/02/26/256783.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/256783.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/256783.htmlimport sqlalchemy
from sqlalchemy.orm import relation, backref, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, ForeignKey
engine 
= sqlalchemy.create_engine('sqlite:///:memory:', echo=True)
Base 
= declarative_base()
session 
= sessionmaker(bind=engine)()

class Address(Base):
    
__tablename__ = 'addresses'
    id 
= Column(Integer, primary_key=True)
    content 
= Column(String)
    user_id 
= Column(Integer, sqlalchemy.ForeignKey('users.id'))

    
def __init__(self, user, content):
        self.user 
= user
        self.content 
= content
    
def __repr__(self):
        
return "<Address('%s')>" % self.content

    
class User(Base):
    
__tablename__ = 'users'
    id 
= Column(Integer, primary_key=True)
    name 
= Column(String)
    comment 
= Column(String)
    addresses 
= relation('Address', order_by='Address.id', backref='user')
    
def __init__(self, name, comment):
        self.name 
= name
        self.comment 
= comment
    
def __repr__(self):
        
return "<User('%s', '%s')>" % (self.name, self.comment)

    
class Photo(Base):
    
__tablename__ = 'photos'
    id 
= Column(Integer, primary_key=True)
    name 
= Column(String)
    user_id 
= Column(Integer, ForeignKey('users.id'))
    user 
= relation('User', backref=backref('photos'))
    
def __init__(self, user, name):
        self.user 
= user
        self.name 
= name
    
def __repr__(self):
        
return "<Photo('%s')>" % self.name
        
Base.metadata.create_all(bind
=engine)

oxl 2009-02-26 11:46 发表评论
]]>
配置Log4jhttp://www.aygfsteel.com/oxl/archive/2008/11/27/242978.htmloxloxlThu, 27 Nov 2008 04:16:00 GMThttp://www.aygfsteel.com/oxl/archive/2008/11/27/242978.htmlhttp://www.aygfsteel.com/oxl/comments/242978.htmlhttp://www.aygfsteel.com/oxl/archive/2008/11/27/242978.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/242978.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/242978.html

oxl 2008-11-27 12:16 发表评论
]]>
Spring中用log4jhttp://www.aygfsteel.com/oxl/archive/2008/11/27/242976.htmloxloxlThu, 27 Nov 2008 04:09:00 GMThttp://www.aygfsteel.com/oxl/archive/2008/11/27/242976.htmlhttp://www.aygfsteel.com/oxl/comments/242976.htmlhttp://www.aygfsteel.com/oxl/archive/2008/11/27/242976.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/242976.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/242976.html

oxl 2008-11-27 12:09 发表评论
]]>
Struts2很强http://www.aygfsteel.com/oxl/archive/2008/11/26/242676.htmloxloxlTue, 25 Nov 2008 16:34:00 GMThttp://www.aygfsteel.com/oxl/archive/2008/11/26/242676.htmlhttp://www.aygfsteel.com/oxl/comments/242676.htmlhttp://www.aygfsteel.com/oxl/archive/2008/11/26/242676.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/242676.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/242676.html
Struts2真的很强Q它帮我搞定了重复提交或直接讉K提交地址旉到的问题Q呵呵,token万岁?br />
有点不知所语了Q呵?br />


oxl 2008-11-26 00:34 发表评论
]]>
Ext 2 学习W记Q三Q:Ext模块http://www.aygfsteel.com/oxl/archive/2008/02/11/179595.htmloxloxlMon, 11 Feb 2008 03:35:00 GMThttp://www.aygfsteel.com/oxl/archive/2008/02/11/179595.htmlhttp://www.aygfsteel.com/oxl/comments/179595.htmlhttp://www.aygfsteel.com/oxl/archive/2008/02/11/179595.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/179595.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/179595.html
 1 // 定义一个模块,你可以像使用cM样用它Q你完全可以把它当成是类?/span>
 2 // 它利用js的一些特性实现私有和公有Q就和applayout.js中定义的名命I间一栗?/span>
 3 var module = function() {
 4     // U有变量
 5     var message = 'Hello, Ext 2 beginner.';
 6     
 7     // 公用变量或函?/span>
 8     return {
 9         name: 'oxl',
10         init: function() {
11             message += this.name;
12         },
13         
14         show: function() {
15             this.other();
16             alert(message);
17         },
18         
19         other: function() {
20             alert('Welcome to Ext 2\'s world.');
21         }
22     };
23 }();


oxl 2008-02-11 11:35 发表评论
]]>
Ext 2 学习W记Q二Q:Ext命名I间http://www.aygfsteel.com/oxl/archive/2008/02/11/179594.htmloxloxlMon, 11 Feb 2008 03:19:00 GMThttp://www.aygfsteel.com/oxl/archive/2008/02/11/179594.htmlhttp://www.aygfsteel.com/oxl/comments/179594.htmlhttp://www.aygfsteel.com/oxl/archive/2008/02/11/179594.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/179594.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/179594.html
 1 var btn1Text = "Hello, world.";
 2 
 3 // 填充囄的本地引?/span>
 4 Ext.BLANK_IMAGE_URL = '../ext/resources/images/default/s.gif';
 5 
 6 // x名字I间Q用于下面的定义?/span>
 7 Ext.namespace("myNameSpace");
 8 
 9 // 定义名字I间?/span>
10 // 注意q里Q因为function是立卌行的Q因为最后还有个括号Q,所以myNameSpace.app得到的是q个函数q回的结果?/span>
11 // 因ؓ函数内定义的变量是不能被外部讉K的,利用q种方式可以把变量定义ؓU有的方式?/span>
12 // 因ؓq回的是一个对象,所以app得到的结果就是一个对象,所以就可以通过.q算W得到这个返回对象的变量和方法,
13 // q样可以利用这点申明ؓ公用的变量?/span>
14 myNameSpace.app = function() {
15     // U有变量
16     var btn1;
17     var privVar1 = 11;
18     
19     // U有函数
20     var btn1Handler = function(button, event) {
21         // q里很y妙,虽然表面上说是私有函数可以访问私有变量,可是q里利用了函数栈的概念,
22         // 卛_数可以访问上一层函数定义的变量Q这里的privVar1是上一层函C定义的变量了?/span>
23         alert('privVar1=+ privVar1);
24         
25         // 因ؓq里的this指向的window对象Q所以这里的this.btn1Text为undefined.
26         // 当把它赋l一个对象的时候,this指向q个对象Q也是像下的调用一栗?nbsp;   
27         alert('this.btn1Text=+ this.btn1Text);
28     };
29     
30     // 公共I间
31     return {
32         btn1Text: 'Button 1',
33         
34         init: function() {
35             btn1 = new Ext.Button({
36                 renderTo: 'btn1-ct',
37                 text: this.btn1Text,
38                 handler: btn1Handler,
39                 scope: this
40             });
41             
42             // 调用btn1Handler函数Q这里函数里的this指向的是window
43             btn1Handler();
44         }
45     };
46 }();
47 
48 Ext.apply(myNameSpace.app, {
49     btn1Text: "Hello, Ext 2.0",
50     
51     // q里所说的重写Ҏ函数也无法访问私有变量或U有函数Q其实是因ؓ他不在函C下文Q无法访问函C一层定义的变量而已?/span>
52     init: function() {
53         try {
54             btn1 = new Ext.Button({
55                 renderTo: 'btn1-ct',
56                 text: this.btn1Text,
57                 handler: btn1Handler,
58                 scope: this
59             });
60         } catch (e) {
61             alert('错误: "' + e.message + '" 发生在行: ' + e.lineNumber);
62         }
63     }
64 });


oxl 2008-02-11 11:19 发表评论
]]>
Ext 2 学习W记Q一Q:js变量作用?/title><link>http://www.aygfsteel.com/oxl/archive/2008/02/11/179590.html</link><dc:creator>oxl</dc:creator><author>oxl</author><pubDate>Mon, 11 Feb 2008 02:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/oxl/archive/2008/02/11/179590.html</guid><wfw:comment>http://www.aygfsteel.com/oxl/comments/179590.html</wfw:comment><comments>http://www.aygfsteel.com/oxl/archive/2008/02/11/179590.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/oxl/comments/commentRss/179590.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/oxl/services/trackbacks/179590.html</trackback:ping><description><![CDATA[全局范围内申明的变量其实是window对象的属性,比如_<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008080;">1</span> <span style="color: #0000ff;">var</span><span style="color: #000000;"> test;</span></div> <br /> 我们可以用下面的方式得到它:<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008080;">1</span> <span style="color: #000000;">window.test<br /> </span><span style="color: #008080;">2</span> <span style="color: #0000ff;">this</span><span style="color: #000000;">.test</span></div> <br /> 因ؓ在顶U范_this指向window对象Q可以这么认为,this指向window作用域?br /> <br /> 我们定义一个对象:<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008080;">1</span> <span style="color: #0000ff;">var</span><span style="color: #000000;"> obj1 </span><span style="color: #000000;">=</span><span style="color: #000000;"> {name: </span><span style="color: #000000;">"</span><span style="color: #000000;">oxl</span><span style="color: #000000;">"</span><span style="color: #000000;">, func: </span><span style="color: #0000ff;">function</span><span style="color: #000000;">() {alert(</span><span style="color: #0000ff;">this</span><span style="color: #000000;">.name);}};<br /> </span><span style="color: #008080;">2</span> <span style="color: #0000ff;">var</span><span style="color: #000000;"> obj2 </span><span style="color: #000000;">=</span><span style="color: #000000;"> {name: </span><span style="color: #000000;">"</span><span style="color: #000000;">blogjava</span><span style="color: #000000;">"</span><span style="color: #000000;">, func: </span><span style="color: #0000ff;">function</span><span style="color: #000000;">() {alert(</span><span style="color: #0000ff;">this</span><span style="color: #000000;">.name);}};</span></div> <br /> <br /> q个时候,obj1和obj2都是window的属性,我们可以通过obj1.name讉Kobj1的name属性(obj2也同PQ通过obj1.func()讉Kobj1的funcҎ。注意,q里使用this讉K对象的name属性,因ؓq时func是obj1的方法,所以this指向的是obj1Q所以,this.name其实是obj1.name?br /> <br /> 我们又可以这样去调用obj1的方法:<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008080;">1</span> <span style="color: #000000;">obj1.func.call(obj2);</span></div> <br /> q时Q在obj1.func函数中,所有的this都是指向obj2Q与obj1没有M关系Q所以这时this.name其实是obj2.name?br /> <br /> ȝQ从上面我们可以q样认ؓQthisL指向自己的作用域范围Q全局范围中它指向windowQ而在对象中,它指向对象,如果指定一个对象做为它的作用域Q它指向q个对象。在Ext中就用到q样的方式,因ؓ在onReady函数的第二个参数׃用域指定Q估计也是用call方式指定作用域外?br /> <img src ="http://www.aygfsteel.com/oxl/aggbug/179590.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/oxl/" target="_blank">oxl</a> 2008-02-11 10:20 <a href="http://www.aygfsteel.com/oxl/archive/2008/02/11/179590.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Spring 2 学习W记Q一Q?/title><link>http://www.aygfsteel.com/oxl/archive/2007/08/08/135198.html</link><dc:creator>oxl</dc:creator><author>oxl</author><pubDate>Wed, 08 Aug 2007 03:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/oxl/archive/2007/08/08/135198.html</guid><wfw:comment>http://www.aygfsteel.com/oxl/comments/135198.html</wfw:comment><comments>http://www.aygfsteel.com/oxl/archive/2007/08/08/135198.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/oxl/comments/commentRss/135198.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/oxl/services/trackbacks/135198.html</trackback:ping><description><![CDATA[<p>一QFactoryBean<br>   实现FactoryBean接口的beanc,在获取bean时ƈ不是得到q个beancȝ实例Q而是通过q个FactoryBean的getObjectҎ得到实例Q具体的cd由getObjectTypeҎq回。这UFactoryBean会被Spring自动ƈq行判断Q而申明时像^时的bean那样xQ不q在定义property{属性时Q则是对FactoryBean实例q行讄Q而不是对生成的bean讄Q认清这一点很重要。比如说常用的Spring DataSource是一个FactoryBean?br>下面是一个实例:<br></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000"> com.sanlea.study.spring2.ch03;<br><br></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> org.springframework.beans.factory.FactoryBean;<br><br></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> UserFactoryBean </span><span style="COLOR: #0000ff">implements</span><span style="COLOR: #000000"> FactoryBean {<br>    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> String name;<br>    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> String email;<br><br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> setName(String name) {<br>        </span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.name </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> name;<br>    }<br><br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> setEmail(String email) {<br>        </span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.email </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> email;<br>    }<br><br>    @Override<br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> Object getObject() </span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000"> Exception {<br>        User user </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> User();<br>        user.setName(name </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br>        user.setEmail(email </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br>        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> user;<br>    }<br><br>    @SuppressWarnings(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">unchecked</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br>    @Override<br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> Class getObjectType() {<br>        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> User.</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">;<br>    }<br><br>    @Override<br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">boolean</span><span style="COLOR: #000000"> isSingleton() {<br>        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br>    }<br><br>}<br></span></div> <br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008000"><!--</span><span style="COLOR: #008000"> 定义一个FactoryBean(实现Spring接口的Bean,比如Spring中就有一些关于DataSource的FactoryBean) </span><span style="COLOR: #008000">--></span><span style="COLOR: #000000"><br>    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="fbUserInstance"</span><span style="COLOR: #ff0000"><br>        class</span><span style="COLOR: #0000ff">="com.sanlea.study.spring2.ch03.UserFactoryBean"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br>        </span><span style="COLOR: #008000"><!--</span><span style="COLOR: #008000"> q里讄的属性设|的是UserFactoryBean实例的属?而不是UserFactoryBean实例生成的bean的属?nbsp;</span><span style="COLOR: #008000">--></span><span style="COLOR: #000000"><br>        </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="name"</span><span style="COLOR: #ff0000"> value</span><span style="COLOR: #0000ff">="mm"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br>        </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="email"</span><span style="COLOR: #ff0000"> value</span><span style="COLOR: #0000ff">="mm@yinsha.com"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br>    </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">></span></div> <br>二、工厂方法创建bean<br>   q是利用cȝ工厂Ҏ创徏实例的方法,主要是兼Ҏ有的代码Q还有一些则是必ȝ一个类生成另一个类的实例的Ҏ。比如说我要实例一个JDBC Connectionc,那就要进行很多的步聚Q如注册驱动Q设|连接相兛_数等{,q些q不能直接一个new搞定,必须要有一定的步骤才能完成Q所以就能用Ҏq行实例化了Q在Spring也支持这U方式,主要是指定factory-method属性,如果工厂是一个bean的话p指定factory-bean了?br>下面是一个实例:<br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000"> com.sanlea.study.spring2.ch03;<br><br></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> StaticFactoryBean {<br>    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> String name;<br>    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> String comment;<br><br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> setComment(String comment) {<br>        </span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.comment </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> comment;<br>    }<br>    <br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> print() {<br>        System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">name: </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> name);<br>        System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">comment: </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> comment);<br>    }<br>    <br>    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> StaticFactoryBean(String name) {<br>        </span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.name </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> name;<br>    }<br>    <br>    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> StaticFactoryBean getInstance(String name) {<br>        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> StaticFactoryBean(name);<br>    }<br>}<br></span></div> <br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008000"><!--</span><span style="COLOR: #008000"> 静态工厂方法创建Bean </span><span style="COLOR: #008000">--></span><span style="COLOR: #000000"><br>    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean </span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="staticFactoryBean"</span><span style="COLOR: #ff0000"><br>        class</span><span style="COLOR: #0000ff">="com.sanlea.study.spring2.ch03.StaticFactoryBean"</span><span style="COLOR: #ff0000"><br>        factory-method</span><span style="COLOR: #0000ff">="getInstance"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br>        </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">constructor-arg </span><span style="COLOR: #ff0000">value</span><span style="COLOR: #0000ff">="juggler"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br>        </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="comment"</span><span style="COLOR: #ff0000"> value</span><span style="COLOR: #0000ff">="a good man, but so sad"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br>    </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">></span></div> <img src ="http://www.aygfsteel.com/oxl/aggbug/135198.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/oxl/" target="_blank">oxl</a> 2007-08-08 11:47 <a href="http://www.aygfsteel.com/oxl/archive/2007/08/08/135198.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>思考轻量JEE WebE序架构http://www.aygfsteel.com/oxl/archive/2007/08/01/133818.htmloxloxlWed, 01 Aug 2007 08:50:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/08/01/133818.htmlhttp://www.aygfsteel.com/oxl/comments/133818.htmlhttp://www.aygfsteel.com/oxl/archive/2007/08/01/133818.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/133818.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/133818.html注:标题写得有点夸张Q这是本人的文学修养问题Q不在讨围之内。这里的前提是用血模型模式和轻量JEE WebQ没有考虑分布式?br>
q些天在看Hibernate的资料,除了对它的强大感到惊Z外,更多的就是烦|因ؓ太多本来定的理论现在都变得相当站不住脚Q而且有些东西百思不得其解。这得从DAO层开始讲P一般的架构是这LQ?br>     Web?br>      |
   Service?br>      |
     DAO?br>      |
    数据?/p> 因ؓDAO层主要负责对象持久的操作Q而Service层则是除持久操作外操作,所以各自分工,层次分明。但是因为在按各U条件检索数据的时候,Service层需要向Web层提供相应的接口Q比如说接用户名查订单需要一个接口,按时间查订单需要一个接口等{,但是q样使得DAO层同时也必须提供同样的接口,q样Q当有新的需求时pd两个接口Q而且通常Service层只是简单的调用一下DAO层而已?br>
而另有一U方法就是Servicecȝ承DAOc,覆盖相应的方法,q得只修改Dao的方法就可以了。但是就有了问题Q因为Service层的接口要求的参数和DAO层的参数会不一Pq造成重蝲了相应的Ҏ而不是覆盖相应的ҎQ也是说ServicecL端多了很多接口,使得调用有些混ؕ?br>
从实际来看,常用后面那种ҎQ而且和上一层程序员搞好默契Q哪些方法可以用Q哪些不可以。但是这带来的问题就是一不小心调用错了就ȝ了。而前一U虽然修攚w烦一点,但至得Service层是q净的接口,没有不用得上的接口?br>
其实在日常的开发中Lq样认ؓQDAO有没有一个万能的接口可以用于索对象?旭上面所说的Q按用户名查订单{这L操作Q有没有一个通用的接口去实现呢?DAO不是做不刎ͼ而是开发这L功能相当复杂Q而且难以重用Q似乎这是一个理惻I一个难以实现的理想了?br>
从上面的讨论中我们可以看得到QDAO是持久层,他负责对象的CRUDQ而且我们希望有一个通用的检索对象的接口?br>
l于Q我们的Hibernate横空Z了(赛亚人?Q。他的Session实现了对象的CRUDQ与此同时接供了ZHQL的Query接口Q用于按条g索对象,从这个意义上来说Q他是一个DAO实现Q我们可以直接在Service层用Hibernate做ؓ的DAO?br>
可是Z么还有这么多在Hibernate之上建立DAO呢?无非是做一个可更换持久层的pȝQ如JDOQ,又或者把Hibernate的一些Session操作隐藏hQ得Service层的代码更ؓz明了。对于后面的说法q可以说得过去,可是前面的讲法就不妥了,因ؓ通用的检索接口各个ORM实现都不相同Q那么DAO很难做得到通用Q这又回到前面没有Hibernate之前的困境了Q而与此同Ӟ使用DAO也会有一些问题,是必定是跨了多个Sessionq行的操作,那么在Update操作时就会把整个对象Q这个对象是游离态的Q进行所有字D늚q行更新Q实际上只有一两个字段被修改了Q对于一些计数操作,q样的方式的性能相当差劲Q比如说一文章有多少人阅读过了这L计数Q?br>
其实会这么样Q我会直接在Service使用Hibernate做ؓDAOQ在大多C型应用中,很少Q几乎没有)有h会要求更换持久层中间件的Q所以根本不用担心,而且l护也ƈ没有惌中复杂,因ؓ始终q是得对新的DAO层进行了解的Q不是吗Q?

oxl 2007-08-01 16:50 发表评论
]]>
Spring中定义Bean我用Constructorhttp://www.aygfsteel.com/oxl/archive/2007/07/16/130598.htmloxloxlMon, 16 Jul 2007 07:57:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/07/16/130598.htmlhttp://www.aygfsteel.com/oxl/comments/130598.htmlhttp://www.aygfsteel.com/oxl/archive/2007/07/16/130598.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/130598.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/130598.html

oxl 2007-07-16 15:57 发表评论
]]>
理解WW的ValueStackhttp://www.aygfsteel.com/oxl/archive/2007/07/06/128646.htmloxloxlFri, 06 Jul 2007 09:48:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/07/06/128646.htmlhttp://www.aygfsteel.com/oxl/comments/128646.htmlhttp://www.aygfsteel.com/oxl/archive/2007/07/06/128646.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/128646.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/128646.html跟着《Webwork in Action》学COGNLQ一直对ValueStack的概念很模糊Q而书里也没有介绍清楚Q我一直以来连ValueStack里Action是在栈顶呢还是在哪里一层都不清楚,怎么把一个自定义的对上push到ValueStack上,如果在action的execute中pushQ他是在栈顶呢,q是ơ于Action呢?

其实在WW中,ValueStack的栈l构是这LQ在执行Action之前把Action压入栈,q时Action是栈顶Q然后在Action.execute()时再把自定义的bean压入栈,那么q时q个自定义的bean在栈顶了。所以在下面q样的JSP代码中,是先从自定义bean查vQ然后才到Action?
<ww:property value="name" />

在ActionContext上下文中Q默认是从OgnlValueStackL找,因ؓq样Q所以在在查找OgnlValueStack的值时是不?来标明它所在的值栈。而像Session和Applicationq样的MapQ则需要前~Q像q样Q?session.xxx,#application.xxx?br>
至于怎么在ActionContext中添加类gSession的MapQ只有一个方法就是调用putҎ?br>
讲得很粗略,不过内里已经了清楚了?/span>

oxl 2007-07-06 17:48 发表评论
]]>
试用Eclipse 3.3的JEEQ不E_http://www.aygfsteel.com/oxl/archive/2007/07/04/128060.htmloxloxlWed, 04 Jul 2007 04:02:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/07/04/128060.htmlhttp://www.aygfsteel.com/oxl/comments/128060.htmlhttp://www.aygfsteel.com/oxl/archive/2007/07/04/128060.html#Feedback1http://www.aygfsteel.com/oxl/comments/commentRss/128060.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/128060.html
q是IDEA好,不过IDEA也太吃内存太慢了Q娘的,JAVA IDEq真没个好用的?

oxl 2007-07-04 12:02 发表评论
]]>
Java 标准IO的理解http://www.aygfsteel.com/oxl/archive/2007/07/02/127558.htmloxloxlMon, 02 Jul 2007 07:26:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/07/02/127558.htmlhttp://www.aygfsteel.com/oxl/comments/127558.htmlhttp://www.aygfsteel.com/oxl/archive/2007/07/02/127558.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/127558.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/127558.html
可以通过包装q行功能上的扩充Q比如说BufferedStreamQ可以缓冲流Q提高读取的性能Q其实在Java中都是以q种操作IO的?br>
但是我们不能把BufferedStream当成是实际可用的,其实它们必须包装一个代表真实的IO讑֤的流才能操作Q?/span>比如说System.in和System.outQ或者是数组和字W串Q另一U包装的)?br>
比如说InputStream可以q样用:
InputStream in = new BufferedInputStream(new BufferedInputStream(System.in));

而字W流呢?
其实字符没有实际的形式Q只能是通过包装一些特别的输入才能进行字W操作,比如说包装字节流InputStreamQ?br>Reader reader = new InputStreamReader(System.in);
再比如说包装字符数组Q?br>char[] in = new char[1024];
Reader reader = new CharArrayReader(in);

了解q些后,p明白的操作规律了?

oxl 2007-07-02 15:26 发表评论
]]>
WebWork文g上传中要做的事情http://www.aygfsteel.com/oxl/archive/2007/06/27/126512.htmloxloxlWed, 27 Jun 2007 03:00:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/06/27/126512.htmlhttp://www.aygfsteel.com/oxl/comments/126512.htmlhttp://www.aygfsteel.com/oxl/archive/2007/06/27/126512.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/126512.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/126512.htmlwebwork.properties加入以下内容Q?/span>

webwork.multipart.saveDir=d:\\tmp
webwork.multipart.parser
=jakarta

/WEB-INF/lib加入下面的库Q?br>
commons-io.jar
commons-fileupload.jar

Action内的实例变量可以是数据,不过他们必须遵从q样的格式:
file
fileContnetType
fileFileName


oxl 2007-06-27 11:00 发表评论
]]>
今天试用IDEAhttp://www.aygfsteel.com/oxl/archive/2007/05/18/118309.htmloxloxlFri, 18 May 2007 04:16:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/05/18/118309.htmlhttp://www.aygfsteel.com/oxl/comments/118309.htmlhttp://www.aygfsteel.com/oxl/archive/2007/05/18/118309.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/118309.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/118309.html
q好Q在家的机器?G内存Q还好能q行?br>


oxl 2007-05-18 12:16 发表评论
]]>
加把油啊?/title><link>http://www.aygfsteel.com/oxl/archive/2007/05/18/118273.html</link><dc:creator>oxl</dc:creator><author>oxl</author><pubDate>Fri, 18 May 2007 02:39:00 GMT</pubDate><guid>http://www.aygfsteel.com/oxl/archive/2007/05/18/118273.html</guid><wfw:comment>http://www.aygfsteel.com/oxl/comments/118273.html</wfw:comment><comments>http://www.aygfsteel.com/oxl/archive/2007/05/18/118273.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/oxl/comments/commentRss/118273.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/oxl/services/trackbacks/118273.html</trackback:ping><description><![CDATA[hQv步,q在赯U上Q不q自己有了全E的地图Q我坚信自己q会再跑到前面去的? <img src ="http://www.aygfsteel.com/oxl/aggbug/118273.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/oxl/" target="_blank">oxl</a> 2007-05-18 10:39 <a href="http://www.aygfsteel.com/oxl/archive/2007/05/18/118273.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>解决PHP UTF-8问题?/title><link>http://www.aygfsteel.com/oxl/archive/2007/01/19/94887.html</link><dc:creator>oxl</dc:creator><author>oxl</author><pubDate>Fri, 19 Jan 2007 03:29:00 GMT</pubDate><guid>http://www.aygfsteel.com/oxl/archive/2007/01/19/94887.html</guid><wfw:comment>http://www.aygfsteel.com/oxl/comments/94887.html</wfw:comment><comments>http://www.aygfsteel.com/oxl/archive/2007/01/19/94887.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/oxl/comments/commentRss/94887.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/oxl/services/trackbacks/94887.html</trackback:ping><description><![CDATA[修改php.ini文gQ?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">mbstring</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> language for internal character representation.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.language </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> Neutral<br /><br />mbstring.strict_detection </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> On<br /><br />default_charset </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> UTF-</span><span style="color: rgb(0, 0, 0);">8</span><span style="color: rgb(0, 0, 0);"><br /><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> internal/script encoding.</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> Some encoding cannot work as internal encoding.</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> (e.g. SJIS, BIG5, ISO-2022-*)</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.internal_encoding </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> UTF-</span><span style="color: rgb(0, 0, 0);">8</span><span style="color: rgb(0, 0, 0);"><br /><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> http input encoding.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.http_input </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> UTF-</span><span style="color: rgb(0, 0, 0);">8</span><span style="color: rgb(0, 0, 0);"><br /><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> http output encoding. mb_output_handler must be</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> registered as output buffer to function</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.http_output </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> UTF-</span><span style="color: rgb(0, 0, 0);">8</span><span style="color: rgb(0, 0, 0);"><br /><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> enable automatic encoding translation according to</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> mbstring.internal_encoding setting. Input chars are</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> converted to internal encoding by setting this to On.</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> Note: Do _not_ use automatic encoding translation for</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);">       portable libs/applications.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.encoding_translation </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> On<br /><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> automatic encoding detection order.</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> auto means</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.detect_order </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> UTF-</span><span style="color: rgb(0, 0, 0);">8</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">ASCII<br /><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> substitute_character used when character cannot be converted</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> one from another</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.substitute_character </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> none</span><span style="color: rgb(0, 128, 0);">;<br /></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 0);">;</span><span style="color: rgb(0, 128, 0);"> overload(replace) single byte functions by mbstring functions.</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> etc. Possible values are 0,1,2,4 or combination of them.</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> For example, 7 for overload everything.</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> 0: No overload</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> 1: Overload mail() function</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> 2: Overload str*() functions</span><span style="color: rgb(0, 128, 0);"><br />;</span><span style="color: rgb(0, 128, 0);"> 4: Overload ereg*() functions</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">mbstring.func_overload </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">7</span></div><br />然后是修改my.iniQ?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">mysql</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><br />default-character-set</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">utf8<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">mysqld</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><br />default-character-set</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">utf8<br />default-storage-engine</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">MyISAM<br />init_connect</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'SET NAMES utf8'</span></div><br /><img src ="http://www.aygfsteel.com/oxl/aggbug/94887.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/oxl/" target="_blank">oxl</a> 2007-01-19 11:29 <a href="http://www.aygfsteel.com/oxl/archive/2007/01/19/94887.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>2007-1-17 http://www.aygfsteel.com/oxl/archive/2007/01/17/94522.htmloxloxlWed, 17 Jan 2007 15:39:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/01/17/94522.htmlhttp://www.aygfsteel.com/oxl/comments/94522.htmlhttp://www.aygfsteel.com/oxl/archive/2007/01/17/94522.html#Feedback0http://www.aygfsteel.com/oxl/comments/commentRss/94522.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/94522.html
我的心情Q我的心情是会出CU很莫明的感动,然后不到十秒Q立卛_得沉默,然后原本应该做什么就做什么,像没有发生过一栗?br />
我不知道我这样做是不是近g冯Q但是我清楚Q我很不Ҏ让自己心情变得^静,我不x变现在的生活Q至在我认为我已经忘记了她之前Q我不应该去接受M人,更不应该d扑ֈ的什么h来代ѝ?br />
前些日子都在L一个h来代替,真有点迫不及待的意思,可是一场酒醒后Q回看发送给Ҏ的短信后Q突然猛醒,制止了这场没有意义的行动。回惻I有些事情会生一q串的连锁反应,q算是命q的安排Q而木L自己必然再次回到痛苦之地Q那时必是永无超生之境了?br />
让一切^静消逝吧?br />
-----

在看一些FreeBSD斚w的资料,因ؓ我的服务器要用到PHPQ不qBSD斚w的资料少一些,而且handbookq没有想象中那样完美Q因为很多参数没有很详细地解释,而且也没有指明到哪去看这些参数的文档Q唉Q没办法Q因为BSD的稳定,我需要它?br />
q台服务器可能要托得很远Q自q旉又少Q所以一定要很稳定的pȝQ性能反而是其次了?br />
-----

心里q是挂记着些什么,可是却是道不清言不明?img src ="http://www.aygfsteel.com/oxl/aggbug/94522.html" width = "1" height = "1" />

oxl 2007-01-17 23:39 发表评论
]]>
FreeBSD内核参数描述http://www.aygfsteel.com/oxl/archive/2007/01/17/94466.htmloxloxlWed, 17 Jan 2007 09:41:00 GMThttp://www.aygfsteel.com/oxl/archive/2007/01/17/94466.htmlhttp://www.aygfsteel.com/oxl/comments/94466.htmlhttp://www.aygfsteel.com/oxl/archive/2007/01/17/94466.html#Feedback1http://www.aygfsteel.com/oxl/comments/commentRss/94466.htmlhttp://www.aygfsteel.com/oxl/services/trackbacks/94466.html阅读全文

oxl 2007-01-17 17:41 发表评论
]]>
վ֩ģ壺 ɳ| ǫ| | ɽ| | ¡| | Ϻӿ| | ̳| ˳| | | | | ͩ| | Ϫ| | | ݳ| ͺ| ɽ| | | | | | | ˮ| | | ϸ| ƺ| | | | | | ʯ| Դ|