??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩亚洲国产综合高清,亚洲一线产区二线产区精华,亚洲人成色7777在线观看http://m.tkk7.com/lifesting/Just Do It!zh-cnSat, 05 Jul 2025 07:04:08 GMTSat, 05 Jul 2025 07:04:08 GMT60CloudQuery 一Ƒ֟?Web 的数据库客户端测?/title><link>http://m.tkk7.com/lifesting/archive/2021/03/16/CloudQuery.html</link><dc:creator>Always BaNg.</dc:creator><author>Always BaNg.</author><pubDate>Tue, 16 Mar 2021 11:34:00 GMT</pubDate><guid>http://m.tkk7.com/lifesting/archive/2021/03/16/CloudQuery.html</guid><wfw:comment>http://m.tkk7.com/lifesting/comments/435826.html</wfw:comment><comments>http://m.tkk7.com/lifesting/archive/2021/03/16/CloudQuery.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/lifesting/comments/commentRss/435826.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lifesting/services/trackbacks/435826.html</trackback:ping><description><![CDATA[     摘要: 杨徏荣老师推荐的一N合DBA和开发者的数据库工P相当于web版的datagrip或者navicatQ但比这些桌面Y件更强大Q还支持l粒度的控  <a href='http://m.tkk7.com/lifesting/archive/2021/03/16/CloudQuery.html'>阅读全文</a><img src ="http://m.tkk7.com/lifesting/aggbug/435826.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lifesting/" target="_blank">Always BaNg.</a> 2021-03-16 19:34 <a href="http://m.tkk7.com/lifesting/archive/2021/03/16/CloudQuery.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Eclipse中正则表辑ּ删除所有注?/title><link>http://m.tkk7.com/lifesting/archive/2012/02/02/369251.html</link><dc:creator>Always BaNg.</dc:creator><author>Always BaNg.</author><pubDate>Thu, 02 Feb 2012 09:25:00 GMT</pubDate><guid>http://m.tkk7.com/lifesting/archive/2012/02/02/369251.html</guid><wfw:comment>http://m.tkk7.com/lifesting/comments/369251.html</wfw:comment><comments>http://m.tkk7.com/lifesting/archive/2012/02/02/369251.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/lifesting/comments/commentRss/369251.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lifesting/services/trackbacks/369251.html</trackback:ping><description><![CDATA[<span style="font-size: 12px;"><strong>表达式: /\*{1,2}[\s\S]*?\*/<br /><br />对应语言注释 /* a lot of words */ 或文档注?/** more words */<br />其中 *因ؓ是regular expression的meta wordQ需要{义?br />Eclipse中的查找是不能设|单行或者多行的Q即DOT . 不包?\r \nQ所以\s代替Q?表示非贪婪,即碰到注释结?*/ 要停?br /><br /></strong></span><img src ="http://m.tkk7.com/lifesting/aggbug/369251.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lifesting/" target="_blank">Always BaNg.</a> 2012-02-02 17:25 <a href="http://m.tkk7.com/lifesting/archive/2012/02/02/369251.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>做了一个JSF表格lgQ分享源代码Q?/title><link>http://m.tkk7.com/lifesting/archive/2009/07/04/285453.html</link><dc:creator>Always BaNg.</dc:creator><author>Always BaNg.</author><pubDate>Sat, 04 Jul 2009 05:22:00 GMT</pubDate><guid>http://m.tkk7.com/lifesting/archive/2009/07/04/285453.html</guid><wfw:comment>http://m.tkk7.com/lifesting/comments/285453.html</wfw:comment><comments>http://m.tkk7.com/lifesting/archive/2009/07/04/285453.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://m.tkk7.com/lifesting/comments/commentRss/285453.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lifesting/services/trackbacks/285453.html</trackback:ping><description><![CDATA[周二Q我兴匆匆去老刘那演CRichFaces的Table控gQ可老刘说了QRichFaces太复杂,不适合我们Q且q有不少的bug(q些我无法考证:)。于是他拿出一个用了一堆JSP+Servelet+Bean写的一个表|跟说我,我很怀疑JSF能做个东西来Q你使用UJSF做一个一L表格lg我就怿JSF能够用在开发^??我是此Eclipse开发^台的D架构?上。我心里琢磨Q既然你是用JSP/Servlet搞出来的Q而JSF是基于Servlet的技术,怎么可能实现不了呢? 三天做出来!我一直相信,技术在于用技术的人,而不是技术本w?br /> <br /> <span style="font-size: 18pt;"> <span style="color: red;"><a >下蝲</a></span> </span><br /> <br /> 先看囑֐Q?br /> <br /> <img alt="" src="http://m.tkk7.com/images/blogjava_net/lifesting/09/table.jpg" border="1" height="761" width="625" /><br /> <br /> 再看看对应的JSF标记<br /> <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(0, 0, 255);"><!</span><span style="color: rgb(255, 0, 255);">DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">html </span><span style="color: rgb(255, 0, 0);">xmlns</span><span style="color: rgb(0, 0, 255);">="http://www.w3.org/1999/xhtml"</span><span style="color: rgb(255, 0, 0);"><br />     xmlns:h</span><span style="color: rgb(0, 0, 255);">="http://java.sun.com/jsf/html"</span><span style="color: rgb(255, 0, 0);"><br />     xmlns:f</span><span style="color: rgb(0, 0, 255);">="http://java.sun.com/jsf/core"</span><span style="color: rgb(255, 0, 0);"><br />     xmlns:ui</span><span style="color: rgb(0, 0, 255);">="http://java.sun.com/jsf/facelets"</span><span style="color: rgb(255, 0, 0);"><br />     xmlns:cby</span><span style="color: rgb(0, 0, 255);">="http:/www.lifesting.com/jsf"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> <br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ui:composition </span><span style="color: rgb(255, 0, 0);">template</span><span style="color: rgb(0, 0, 255);">="/tpl.xhtml"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> <br />     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ui:define </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="pageTitle"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">表格展示</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ui:define</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ui:define </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="pageHeader"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">国家</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ui:define</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ui:define </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="body"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> <br />     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">h:form</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">h:panelGrid </span><span style="color: rgb(255, 0, 0);">columns</span><span style="color: rgb(0, 0, 255);">="1"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">h:message </span><span style="color: rgb(255, 0, 0);">for</span><span style="color: rgb(0, 0, 255);">="mytable"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">h:panelGrid</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:rns </span><span style="color: rgb(255, 0, 0);">text</span><span style="color: rgb(0, 0, 255);">="面讄"</span><span style="color: rgb(255, 0, 0);"> tableFor</span><span style="color: rgb(0, 0, 255);">="mytable"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:filter </span><span style="color: rgb(255, 0, 0);">text</span><span style="color: rgb(0, 0, 255);">="qo{略"</span><span style="color: rgb(255, 0, 0);"> tableFor</span><span style="color: rgb(0, 0, 255);">="mytable"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:delete </span><span style="color: rgb(255, 0, 0);">tableFor</span><span style="color: rgb(0, 0, 255);">="mytable"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:table </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="mytable"</span><span style="color: rgb(255, 0, 0);"> var</span><span style="color: rgb(0, 0, 255);">="rec"</span><span style="color: rgb(255, 0, 0);"> checkable</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"> idField</span><span style="color: rgb(0, 0, 255);">="code"</span><span style="color: rgb(255, 0, 0);"><br />                 bean</span><span style="color: rgb(0, 0, 255);">="Country"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:column </span><span style="color: rgb(255, 0, 0);">field</span><span style="color: rgb(0, 0, 255);">="name"</span><span style="color: rgb(255, 0, 0);"> sortable</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"> filterable</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"><br />                     width</span><span style="color: rgb(0, 0, 255);">="200"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="名称"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">h:outputText </span><span style="color: rgb(255, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">="#{rec.wrapped.name}"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">h:outputText</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">cby:column</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:column </span><span style="color: rgb(255, 0, 0);">field</span><span style="color: rgb(0, 0, 255);">="region"</span><span style="color: rgb(255, 0, 0);"> sortable</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"> filterable</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);"><br />                     width</span><span style="color: rgb(0, 0, 255);">="100"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="区域"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">h:outputText </span><span style="color: rgb(255, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">="#{rec.wrapped.region}"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">h:outputText</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">cby:column</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:column </span><span style="color: rgb(255, 0, 0);">field</span><span style="color: rgb(0, 0, 255);">="surfaceArea"</span><span style="color: rgb(255, 0, 0);"> sortable</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);"> filterable</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"><br />                     width</span><span style="color: rgb(0, 0, 255);">="150"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="表面U?</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">h:outputText </span><span style="color: rgb(255, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">="#{rec.wrapped.surfaceArea}"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">h:outputText</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">cby:column</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:column </span><span style="color: rgb(255, 0, 0);">field</span><span style="color: rgb(0, 0, 255);">="population"</span><span style="color: rgb(255, 0, 0);"> sortable</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"> filterable</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"><br />                     width</span><span style="color: rgb(0, 0, 255);">="100"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="人口"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">h:outputText </span><span style="color: rgb(255, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">="#{rec.wrapped.population}"</span><span style="color: rgb(0, 0, 255);">></</span><span style="color: rgb(128, 0, 0);">h:outputText</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">cby:column</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />                 </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">cby:ds </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">cby:table</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">h:form</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />     </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ui:define</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ui:composition</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> <br /> </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">></span></div> <br /> 因ؓ开发^台最l是以BO为核心,所以此表格lg是通过讄 beanQ然后再通过Hibernate来获取数据的?br /> <br /> q个lg除采用JSF +Facelet之外Q没有其它页面技术,代码z,无抽象,且里面还有注释,初学者可以参考一下?br /> <br /> 主要功能Q?br /> 1 讄column的filterable属?true/false)来过滤数?目前实现为左匚wQ比如输入SaQ就是Sa开头的)<br /> 2 分页D<br /> 3 讄column的sortable属?true/false)用来Ҏ列进???排序<br /> 4 改变记录大,默认?0??br /> 5 讄table的checkable属性ؓtrueQ表格将会多一列用来选择?br /> 6 可以扚w删除被checked的记录?br /> <br /> q个lg只考虑了功能,q没有考虑到美观,如果你觉得可以用Q改改它的html属性设|?br /> <br /> 安装Q?br /> <br /> 1 附g是一个Maven目Q必d装有maven?br /> 2 安装MySQL数据库,启动MySQLQ运?<br /> create database world<br /> 3 扑ֈ目下面的world.sqlQ假讑օ路径?a/b/c/world.sqlQ用MySQL的source命o<br /> use world<br /> source /a/b/c/world.sql<br /> 4修改目下的hibernate.cfg.xml中MySQL数据库用户名/密码?br /> 5 执行mvn jetty:run 启动<br /> 6 览器输?http://localhost:8080/jsftry/ 可以看到效果了<br /> <br /> 关于调试Q?br /> 1 下蝲一个Eclipse JEE版本<br /> 2  在项目目录下执行 mvn eclipse:clean eclipse:eclipse -DdownloadSources=true -Dwtpversion=1.5<br /> 3 在eclipse workspace中import此项?br /> <br /> 虽然工作中不用Java很久了,但拿h玩玩q是觉得Java真的很有生力。JSFQHibernateQMavenQEclipse一个比一个牛比?br /> <br /> <br /> <br /> <img src ="http://m.tkk7.com/lifesting/aggbug/285453.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lifesting/" target="_blank">Always BaNg.</a> 2009-07-04 13:22 <a href="http://m.tkk7.com/lifesting/archive/2009/07/04/285453.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Hello, dreamweaver! (PART 2)http://m.tkk7.com/lifesting/archive/2009/06/18/283073.htmlAlways BaNg.Always BaNg.Thu, 18 Jun 2009 09:02:00 GMThttp://m.tkk7.com/lifesting/archive/2009/06/18/283073.htmlhttp://m.tkk7.com/lifesting/comments/283073.htmlhttp://m.tkk7.com/lifesting/archive/2009/06/18/283073.html#Feedback2http://m.tkk7.com/lifesting/comments/commentRss/283073.htmlhttp://m.tkk7.com/lifesting/services/trackbacks/283073.html阅读全文

Always BaNg. 2009-06-18 17:02 发表评论
]]>
Hello, dreamweaver! (Part 1)http://m.tkk7.com/lifesting/archive/2009/06/17/267958.htmlAlways BaNg.Always BaNg.Wed, 17 Jun 2009 09:24:00 GMThttp://m.tkk7.com/lifesting/archive/2009/06/17/267958.htmlhttp://m.tkk7.com/lifesting/comments/267958.htmlhttp://m.tkk7.com/lifesting/archive/2009/06/17/267958.html#Feedback3http://m.tkk7.com/lifesting/comments/commentRss/267958.htmlhttp://m.tkk7.com/lifesting/services/trackbacks/267958.html阅读全文

Always BaNg. 2009-06-17 17:24 发表评论
]]>
GEFC֌捐献的一个图形旋?Rotation)的例?/title><link>http://m.tkk7.com/lifesting/archive/2009/02/20/255789.html</link><dc:creator>Always BaNg.</dc:creator><author>Always BaNg.</author><pubDate>Fri, 20 Feb 2009 03:04:00 GMT</pubDate><guid>http://m.tkk7.com/lifesting/archive/2009/02/20/255789.html</guid><wfw:comment>http://m.tkk7.com/lifesting/comments/255789.html</wfw:comment><comments>http://m.tkk7.com/lifesting/archive/2009/02/20/255789.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://m.tkk7.com/lifesting/comments/commentRss/255789.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lifesting/services/trackbacks/255789.html</trackback:ping><description><![CDATA[     摘要: 实现GEF开发中的图形旋转的一个解x?nbsp; <a href='http://m.tkk7.com/lifesting/archive/2009/02/20/255789.html'>阅读全文</a><img src ="http://m.tkk7.com/lifesting/aggbug/255789.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lifesting/" target="_blank">Always BaNg.</a> 2009-02-20 11:04 <a href="http://m.tkk7.com/lifesting/archive/2009/02/20/255789.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>插g开发之QCommon Navigator View (CNV) 通用D试图http://m.tkk7.com/lifesting/archive/2008/11/30/242634.htmlAlways BaNg.Always BaNg.Sat, 29 Nov 2008 17:28:00 GMThttp://m.tkk7.com/lifesting/archive/2008/11/30/242634.htmlhttp://m.tkk7.com/lifesting/comments/242634.htmlhttp://m.tkk7.com/lifesting/archive/2008/11/30/242634.html#Feedback2http://m.tkk7.com/lifesting/comments/commentRss/242634.htmlhttp://m.tkk7.com/lifesting/services/trackbacks/242634.html阅读全文

Always BaNg. 2008-11-30 01:28 发表评论
]]>
插g开? View里面的对象托拽到Editor步骤http://m.tkk7.com/lifesting/archive/2008/11/22/241723.htmlAlways BaNg.Always BaNg.Fri, 21 Nov 2008 17:27:00 GMThttp://m.tkk7.com/lifesting/archive/2008/11/22/241723.htmlhttp://m.tkk7.com/lifesting/comments/241723.htmlhttp://m.tkk7.com/lifesting/archive/2008/11/22/241723.html#Feedback3http://m.tkk7.com/lifesting/comments/commentRss/241723.htmlhttp://m.tkk7.com/lifesting/services/trackbacks/241723.html阅读全文

Always BaNg. 2008-11-22 01:27 发表评论
]]>
Ubuntu下GTK+开发环境设|?/title><link>http://m.tkk7.com/lifesting/archive/2008/11/17/240884.html</link><dc:creator>Always BaNg.</dc:creator><author>Always BaNg.</author><pubDate>Sun, 16 Nov 2008 16:28:00 GMT</pubDate><guid>http://m.tkk7.com/lifesting/archive/2008/11/17/240884.html</guid><wfw:comment>http://m.tkk7.com/lifesting/comments/240884.html</wfw:comment><comments>http://m.tkk7.com/lifesting/archive/2008/11/17/240884.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://m.tkk7.com/lifesting/comments/commentRss/240884.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lifesting/services/trackbacks/240884.html</trackback:ping><description><![CDATA[Z搞清linux下SWT与GTK+的映机Ӟd老笔记本装了个UbuntuQ配|GTK+开发环境还是比较简单的?br /> <br /> <ol> <li>安装必须要的东西</li> <ol> <li>安装JDKQ用命令:<span style="color: red;">sudo apt-get install sun-java6-sdk</span></li> <li>安装eclipse+CDT 5.0Q我觉得CDT?开始渐成气候了Q作Z个eclipse开发者,我觉得他比kdevelop好用:)Q遗憄是在win下不支持msvcQ只能通过mingw或cygwin</li> <li>安装gnome和gtk+开发库Q用命令:<span style="color: red;">sudo apt-get install libgtk2.0-dev libgnome2-dev</span> ,安装之后Q所有相关的头文件和静态/动态库文g已经准备好了Q不得不说apt-get真NB?/li> </ol> <li>试一?/li> <ol> <li>头文件用命?<span style="color: red;">pkg-config --cflags gtk+-2.0</span>Q正常情况下会出C下结果:<br /> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1</li> <li>库文件用命?<span style="color: red;">pkg-config --libs gtk+-2.0</span>Q正常情况下会出C下结果:<br /> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 <br /> </li> </ol> <li>启动EclipseQ新Z个c projectQ然后右键单?properties->c/c++ build->SettingsQ在Tool Setting中将lGCC讄头文件目录以及链接库(q有一U做法是自定义make fileQ里面调用pkg-configQ因为没有显式设|,cdt无法做静态分析,不能利用它的强大功能Q比如烦引,重构{)?/li> <ol> <li>讄头文Ӟ点击GCC C CompilerQ?gt;DirectoriesQ然后用命?<span style="color: red;">pkg-config --cflags gtk+-2.0 | sed 's/ /\n/g' > include.txt</span>Q然后用命?<span style="color: red;">sed 's/-I//g' include.txt</span>Q依ơ将出现的每一行add到inclue path里面厅R?/li> <li>讄库,点击GCC C Linker->LibrariesQ然后如头文件操作一样用命?span style="color: red;">pkg-config --libs gtk+-2.0 | sed 's/ /\n/g' > lib.txt</span>Q然后用命?<span style="color: red;">sed 's/-l//g' lib.txt</span>Q依ơ将出现的每一行添加到libraries里?br /> </li> </ol> <li>~写一个包含GTK+试代码的C文gQ添加到目里面Q内容如下:<!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><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(0, 0, 0);">#include </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">gtk</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">gtk.h</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> destroy(GtkWidget</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">, gpointer);<br /> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> gboolean delete_event(GtkWidget</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">, GdkEvent</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">, gpointer);<br /> </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> main(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> argc, </span><span style="color: rgb(0, 0, 255);">char</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">argv[]) {<br />     GtkWidget </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">window, </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">label;<br />     gtk_init(</span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">argc, </span><span style="color: rgb(0, 0, 0);">&</span><span style="color: rgb(0, 0, 0);">argv);<br />     window </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> gtk_window_new(GTK_WINDOW_TOPLEVEL);<br />     gtk_window_set_title(GTK_WINDOW (window), </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Hello World!</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />     gtk_container_set_border_width(GTK_CONTAINER (window), </span><span style="color: rgb(0, 0, 0);">10</span><span style="color: rgb(0, 0, 0);">);<br />     gtk_widget_set_size_request(window, </span><span style="color: rgb(0, 0, 0);">200</span><span style="color: rgb(0, 0, 0);">, </span><span style="color: rgb(0, 0, 0);">100</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);"> Connect the main window to the destroy and delete-event signals. </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />     g_signal_connect(G_OBJECT(window), </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">destroy</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, G_CALLBACK(destroy), NULL);<br />     g_signal_connect(G_OBJECT(window), </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">delete_event</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,<br />             G_CALLBACK(delete_event), NULL);<br />     </span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"> Create a new GtkLabel widget that is selectable. </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />     label </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> gtk_label_new(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Hello World</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />     gtk_label_set_selectable(GTK_LABEL (label), TRUE);<br />     </span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"> Add the label as a child widget of the window. </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />     gtk_container_add(GTK_CONTAINER (window), label);<br />     gtk_widget_show_all(window);<br />     gtk_main();<br />     </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</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);"> Stop the GTK+ main loop function when the window is destroyed. </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> destroy(GtkWidget </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">window, gpointer data) {<br />     gtk_main_quit();<br /> }<br /> </span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"> Return FALSE to destroy the widget. By returning TRUE, you can cancel<br />  * a delete-event. This can be used to confirm quitting the application. </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);"> gboolean delete_event(GtkWidget </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">window, GdkEvent </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 255);">event</span><span style="color: rgb(0, 0, 0);">, gpointer data) {<br />     </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> FALSE;<br /> }<br /> </span></div> <br /> (以上代码来自图书 Foundation of GTK+ development)<br /> 然后q行Q正怼昑ּ如下Q?br /> <img alt="" src="http://m.tkk7.com/images/blogjava_net/lifesting/gtk-code.png" width="872" height="538" /></li> </ol> Ubuntu真是个好东西Q耗的资源,囑ŞpȝE_Q对开发h员及其友好,真的很强大?br /> <br /> <img src ="http://m.tkk7.com/lifesting/aggbug/240884.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lifesting/" target="_blank">Always BaNg.</a> 2008-11-17 00:28 <a href="http://m.tkk7.com/lifesting/archive/2008/11/17/240884.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个^庸程序员的想法?/title><link>http://m.tkk7.com/lifesting/archive/2008/10/31/237839.html</link><dc:creator>Always BaNg.</dc:creator><author>Always BaNg.</author><pubDate>Fri, 31 Oct 2008 09:37:00 GMT</pubDate><guid>http://m.tkk7.com/lifesting/archive/2008/10/31/237839.html</guid><wfw:comment>http://m.tkk7.com/lifesting/comments/237839.html</wfw:comment><comments>http://m.tkk7.com/lifesting/archive/2008/10/31/237839.html#Feedback</comments><slash:comments>54</slash:comments><wfw:commentRss>http://m.tkk7.com/lifesting/comments/commentRss/237839.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lifesting/services/trackbacks/237839.html</trackback:ping><description><![CDATA[前天晚上Q老婆和我偎在床上说悄悄话Q大致的意思是所有她的同学都有房子了Q有些还当上了管理h员,q带着许调侃说我以后也就q样了,1q?0多万Q失业就会掉头发?br /> <br /> 我今q?8Q一个C++/JavaE序员,跟大多数ZP天资q_^Q虽然爱学习Q但没有上一个好大学Q工作这么几q也没有混上一个管理h员,有时候在自己看来Q稍E有些可悌Ӏ因为官本位的残?农耕文化,在中国搞技术历来就是一个吃力不讨好的事情。搞技术意味着被h,薪酬低,上升通道H,所以好多技术h员包括优U的L希望能在一D|间以后{型,可是理也是一门学问,控制C会关系不一定比控制计算机简单,所以彷徨且不时有受挫感。我也一P有时候一个h看书的hM惌q理想到底是什么?什么才会让我觉得自己有存在价|思来惛_Q我q是觉得自己是一个比较典型的E序员,喜欢写程序,喜欢调试Q喜Ƣ帮助别人,q些都能带给我快乐。既然认定了q条路线Q就坚定地走下去Q但只是惛_技术h员还不够?br /> <br /> 我有q一位法国同事,技术h?0来岁Q做试写文,攑֜中国来说是典型的p|。有ơ看了他写的详细试报告Q我不敢怿Excel能做么NB的东西出来,在我的赞扬之下他怸荡漾着满感。听他说自己做了十多q技术h员,觉得自己挺适合q这个,非常坦然Q我有一U朴素的感动。这Ҏ看到国内E序员普遍焦虑不一?当然有社会保障因?,那就是专注于自己喜欢的,一直干下去。在兴趣和严D求自׃出物的导引下Q一个你认ؓ不v眼的事情也会让人感觉莫大的惊喜。岁月会让我们老去Q但兴趣Q专业的心态不会。我更希望在帮传代的q程中,用朴素的Q职业的技术情节媄响新生代E序员,推动行业的整体进步?br /> <br /> 你到底想q什么?q是一个问题。我看到好多人工作几q后q在今天groovy, 明天rubyQ后天umlQ然后是struts2Q反正什么火跟什么。一天一天宝늚旉再流逝,Z来焦虑,我不知道他们到底惌q什么,因ؓ普通h是很隑֐时干好几件事情的。或总们认些新鲜简单,学学׃Q但我认为,不专业是技术h员最大的敌h。很久前我面试过一个开发h员,据说对struts非常_N,我就?说说你怎么jbpm集成到struts里面去,然后支支向֐一大堆Q貌?00+k的struts源代码都没有读过(我试验过Q扩展webActionContext, 引用jbpmcontextQ增加线E保护,扩展struts bean映射jbpm var)。就如同学groovyQ但不知道它是通过什么样的语法翻译出来的(parser generator)Q学rubyQ不知怎样用C增加pȝ兌性,d技术的外围打{Q这样下去,焦虑是一U必然了。我的想法就是抓住一U最感兴的Q把它搞透,不要x哪一天这个技术被淘汰了,计算往下关联越大,周期长。即使有时候因为工作的性质让我们在外围打{Q我们也应该在兴点上持l深入,专业一点,更专业一点,卛_以探奇得到满xQ也可以让你时时充满竞争力,说不定哪天就用上了?br /> <br /> 计算机的基础是编?操作pȝ+数学Q比如写一个高效的多线E程序,写一个调试器Q写一个脚本语a。基的基是数学,所以要想专业必趁q轻能看q去书的时候打好数学基Q即使不通透,也要知道概念。就拿我做的DSL的graphical editing来说Q就包含解析几何、线形代数、立体几何、微U分、图?L数学){学U,q还不包括DSL的Run/Debugger/DebuggeeQText Editing{。如果你做的工作感觉不到数学的存在,那很危险:)。曾l有“计算机是数学的艺?#8221;Q一点不假?br /> <br /> 但L有些Wh比如我,老头了还在看数D,概率{数学书Q看到ms, google的requirements都不敢投历,但没关系Q只要能够按照自己定的目标逐步靠近Q不断学习,不断挑战自我Q肯定会有收P无论物质上还是心理上。即使最l没有在IT史留下名字的一撇,人生也没有白z,因ؓ我在自己站着的土C认真地来q?br /> <br /> 爱就努力的去做吧Q愿每个E序员都能有坚强的信念和一片属于自q天空Q?br /> <br /> <br /> <br /> <br /> <br /> <img src ="http://m.tkk7.com/lifesting/aggbug/237839.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lifesting/" target="_blank">Always BaNg.</a> 2008-10-31 17:37 <a href="http://m.tkk7.com/lifesting/archive/2008/10/31/237839.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://jsky163.com" target="_blank">һ</a>| <a href="http://sdkjkj.com" target="_blank">ҹƵ</a>| <a href="http://wcnmgb.com" target="_blank">ˬˬƵѿԿ</a>| <a href="http://wushicn.com" target="_blank">A</a>| <a href="http://cebeke.com" target="_blank">˳߲վ</a>| <a href="http://1444000.com" target="_blank">a߹ۿַȫ</a>| <a href="http://cao8080.com" target="_blank">ѿ20</a>| <a href="http://hnqkzj.com" target="_blank">ĻmvӰ</a>| <a href="http://wwwabxx.com" target="_blank">޹þþۺվ</a>| <a href="http://ywjh666.com" target="_blank">ˬˬƬA </a>| <a href="http://kanzhelu23.com" target="_blank">޸߹ۿ</a>| <a href="http://zaideqin.com" target="_blank">ѹۿһ</a>| <a href="http://181xx.com" target="_blank">ƷþƵ</a>| <a href="http://90hong.com" target="_blank">þѾƷav</a>| <a href="http://haichuanwangluo.com" target="_blank">޸һѿ</a>| <a href="http://wivyswap.com" target="_blank">Ʒҹҹ</a>| <a href="http://kyqp0022.com" target="_blank">AV뾫ƷһٶӰԺ</a>| <a href="http://606059.com" target="_blank">ɫ͵͵</a>| <a href="http://ahbbht.com" target="_blank">ŷһëƬ</a>| <a href="http://www84847.com" target="_blank">ŷһ</a>| <a href="http://bb927bb.com" target="_blank">aëƬ</a>| <a href="http://manghuo365.com" target="_blank">Ʒ鶹ѹۿ</a>| <a href="http://179228.com" target="_blank">ĻĴȫƵ</a>| <a href="http://26672814.com" target="_blank">ۺպĻv</a>| <a href="http://w6336.com" target="_blank">AV߲ </a>| <a href="http://niutextile.com" target="_blank">vƵ߹ۿ</a>| <a href="http://junyehome.com" target="_blank">ŮƵվa </a>| <a href="http://bixnu.com" target="_blank">һɫƵ</a>| <a href="http://dstbxg.com" target="_blank">ҹƬ69</a>| <a href="http://yy6767.com" target="_blank">avר޹Ʒ</a>| <a href="http://df6618.com" target="_blank">һƵѹۿ</a>| <a href="http://www-2236444.com" target="_blank">޾Ʒҹר</a>| <a href="http://wwwav888.com" target="_blank">Ƶ</a>| <a href="http://b7277.com" target="_blank">޾ƷԴ</a>| <a href="http://zdxxxx.com" target="_blank">һƷһAVһи</a>| <a href="http://fkg675.com" target="_blank">޹Ʒþþϼ1 </a>| <a href="http://yxjcgs.com" target="_blank">޹ŮƷþþþá</a>| <a href="http://chiyizi.com" target="_blank">պһѸ</a>| <a href="http://2c06xyz.com" target="_blank">av뾫ƷƷ</a>| <a href="http://theav25.com" target="_blank">18ëƬѹۿ</a>| <a href="http://ryhjled.com" target="_blank">޹߾Ʒһ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>