隨筆-16  評(píng)論-9  文章-0  trackbacks-0
            2007年9月18日
          ??? 在IE下讓打開的網(wǎng)站圖片飄,來源同學(xué)的推薦,純屬好玩,如下代碼,放到已打開網(wǎng)站的IE地址欄上然后回車,效果不錯(cuò)哦。
          #?javascript:R=0;?x1=.1;?y1=.05;?x2=.25;?y2=.24;?x3=1.6;?y3=.24;?x4=300;?y4=200;?x5=300;?y5=200;?DI=document.images;?DIL=DI.length;?function?A(){for(i=0;?i-DIL;?i++){DIS=DI[?i?].style;?DIS.position='absolute';?DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5;?DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5);?void(0);??

          posted @ 2008-04-12 18:21 forker 閱讀(376) | 評(píng)論 (0)編輯 收藏
          ???? Jasypt 是一個(gè) Java 庫,可以使開發(fā)者不需太多操作來給 Java 項(xiàng)目添加基本加密功能,而且不需要知道加密原理。
          可與 Spring Framework Hibernate Acegi Security 集成。 符合 RSA 標(biāo)準(zhǔn)的基于密碼的加密,并提供了無配
          置加密工具以及新的、高可配置標(biāo)準(zhǔn)的加密工具。
          ??? 希望在項(xiàng)目上加上Jasypt.
          posted @ 2007-11-28 22:47 forker 閱讀(831) | 評(píng)論 (1)編輯 收藏
          ??? 下午升級(jí)升級(jí)sql server? 8.00.194到sp4出現(xiàn)掛起操作,要求重啟,重啟無用,解決辦法:
          到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
          刪除PendingFileRenameOperations的選項(xiàng)。
          posted @ 2007-11-27 15:39 forker 閱讀(1393) | 評(píng)論 (2)編輯 收藏
          WEB界面開發(fā)規(guī)范(轉(zhuǎn))

          頁面設(shè)計(jì)規(guī)則

          頁面命名規(guī)則

          1、每個(gè)功能頁面在系統(tǒng)中配置菜單時(shí)統(tǒng)一使用index.jspindex.html。例如客戶管理配置的URLhttp://Server:Port/cc/custmgr/index.jsp

          2、每個(gè)頁面的title必須設(shè)置為和菜單配置中相同的中文,例如在菜單項(xiàng)中配置為“客戶管理”,則此頁面的title也要設(shè)置為“客戶管理”。

          3、對(duì)于JSP頁面都需要在頁面的最開始部分增加以下語句

          <%@ page contentType="text/html; charset=UTF-8" %>

          4、對(duì)于HTML頁面都需要在頁面的最開始部分增加以下語句

          <meta http-equiv="Content-Language" content="zh-cn">

          <meta http-equiv="Content-Type" content="text/html; charset=gb2312">

          5、對(duì)于頁面中控件的屬性設(shè)置都需要用雙引號(hào)包括起來。

          控件命名規(guī)則

          頁面編碼過程中用到的所有控件命名都需要遵循相應(yīng)規(guī)則,方便程序的可讀性。采用控件類型縮寫前綴(小寫)+英文單詞(第一個(gè)字母大寫)的方法來命名每一個(gè)控件。具體規(guī)則如下:

          控件類型

          前綴

          Button

          btn

          Form

          frm

          Select

          sel

          TextArea

          txt

          Input

          ipt

          Image

          img

          DIV

          div


          變量定義規(guī)則

          頁面編碼過程中用到的所有變量定義都需要遵循相應(yīng)規(guī)則,方便程序的可讀性。采用數(shù)據(jù)類型縮寫前綴(小寫)+英文單詞(第一個(gè)字母大寫)的方法來命名每一個(gè)變量。具體規(guī)則如下:


          數(shù)據(jù)類型

          前綴

          整數(shù)

          i

          小數(shù)

          f

          字符

          s

          布爾

          b

          日期

          d

          數(shù)組

          arr


          函數(shù)定義規(guī)則

          頁面編碼過程中用到的所有函數(shù)定義都需要遵循相應(yīng)規(guī)則,方便程序的可讀性。采用前綴(fuc+英文單詞(第一個(gè)字母大寫)的方法來命名每一個(gè)函數(shù)。

          例如:fucAcceptOrder


          CSS文件使用

          • 頁面的規(guī)范

          關(guān)鍵字

          說明

          body

          頁面內(nèi)容基本樣式

          • 表格的規(guī)范

          關(guān)鍵字

          說明

          table

          表格的基本樣式

          • 層的規(guī)范


          關(guān)鍵字

          說明

          div

          層的基本樣式

          • 鏈接的規(guī)范


          關(guān)鍵字

          說明

          a

          超鏈接的基本樣式


          • DataGrid的規(guī)范

          關(guān)鍵字

          說明

          table.datatable

          數(shù)據(jù)表的基本樣式

          table.datatable thead

          數(shù)據(jù)表的頁眉樣式

          table.datatable tbody

          數(shù)據(jù)表的表格體樣式

          table.datatable tfoot

          數(shù)據(jù)表的頁腳樣式

          table.datatable tr.row_odd

          數(shù)據(jù)表的奇數(shù)行樣式

          table.datatable tr.row_even

          數(shù)據(jù)表的偶數(shù)樣式

          table.datatable tr.row_selected

          數(shù)據(jù)表的選中行樣式

          table.datatable tr.row_active

          數(shù)據(jù)表的當(dāng)前激活表格的選中行樣式

          table.datatable td.indicate

          數(shù)據(jù)表的指示器樣式

          • 下拉表格的規(guī)范

          關(guān)鍵字

          說明

          table.dropdowntable

          下拉表格的基本樣式

          table.dropdowntable thead

          下拉表格的頁眉樣式

          table.dropdowntable tbody

          下拉表格的表格體樣式

          table.dropdowntable tfoot

          下拉表格的頁腳樣式

          table.dropdowntable tr.row_odd

          下拉表格的奇數(shù)行樣式

          table.dropdowntable tr.row_even

          下拉表格的偶數(shù)行樣式

          table.dropdowntable tr.row_selected

          下拉表格的選中行樣式

          • 編輯框


          關(guān)鍵字

          說明

          .editor

          編輯框的基本樣式

          .editor_active

          激活的編輯框的基本樣式

          • 按鈕

          關(guān)鍵字

          說明

          .button

          按鈕的基本樣式

          .button_down

          被按下按鈕的基本樣式

          • 數(shù)據(jù)導(dǎo)航條控件

          關(guān)鍵字

          說明

          table.datapilot

          數(shù)據(jù)導(dǎo)航條的基本樣式

          • 樹狀列表控件

          關(guān)鍵字

          說明

          table.tree

          樹狀列表的基本樣式

          table.tree tr.row_odd

          樹狀列表奇數(shù)行的基本樣式

          table.tree tr.row_even

          樹狀列表偶數(shù)行的基本樣式

          table.tree tr.row_selected

          樹狀列表當(dāng)前行的基本樣式

          table.tree tr.row_rightclick

          樹狀列表的響應(yīng)當(dāng)前鼠標(biāo)右擊的行基本樣式

          table.tree .expandbutton

          樹狀列表展開按鈕的基本樣式

          table.tree .icon

          樹狀列表的圖標(biāo)樣式

          • 字段標(biāo)題控件

          關(guān)鍵字

          說明

          .fieldlabel

          字段標(biāo)題的樣式

          • 數(shù)據(jù)標(biāo)簽控件

          關(guān)鍵字

          說明

          .datalabel

          數(shù)據(jù)標(biāo)簽的基本樣式

          • 標(biāo)簽頁控件

          關(guān)鍵字

          說明

          .tabset

          標(biāo)簽頁的基本樣式

          .tab

          標(biāo)簽頁中的單個(gè)標(biāo)簽的樣式

          • 菜單控件

          關(guān)鍵字

          說明

          table.menu

          菜單的基本樣式

          table.menu tr

          菜單行的基本樣式

          table.menu tr.row_selected

          菜單選中行的基本樣式

          table.menu tr.row_disabled

          菜單無效行的基本樣式

          • 菜單工具條控件

          關(guān)鍵字

          說明

          table.menubar

          菜單工具條的基本樣式

          table.menubar .button

          菜單工具條中按鈕的基本樣式

          table.menubar .button_active

          菜單工具條中當(dāng)前按鈕的基本樣式

          table.menubar .button_hot

          菜單工具條相應(yīng)鼠標(biāo)的按鈕的基本樣式

          • 下拉選單的邊框控件

          關(guān)鍵字

          說明

          .dropdown_frame

          下拉選單的邊框的樣式

          • 日歷控件

          關(guān)鍵字

          說明

          .calendar

          日歷控件的基本樣式

          .calendar .title

          日歷控件頁眉的基本樣式

          .calendar .footer

          日歷控件頁腳的基本樣式

          .calendar .cell_day

          日歷控件日期單元格的基本樣式

          .calendar .cell_selected

          日歷控件當(dāng)前單元格的基本樣式

          .calendar .cell_trailing

          日歷中前月和后月的日期單元格的基本樣式



          posted @ 2007-11-04 20:31 forker 閱讀(1163) | 評(píng)論 (0)編輯 收藏

          編寫一個(gè)創(chuàng)建時(shí),就在屏幕上打印Hello,消失時(shí),就打印Goodbye 的C++程序.

          #include<iostream>
          using?namespace?std;

          class?World{
          ????????
          public:
          ????????????????World(){
          //創(chuàng)建時(shí)
          ????????????????????????std::cout<<"Hello!\n";
          ????????????????}
          ????????????????
          ~World(){//消失時(shí)
          ????????????????????????std::cout<<"Goodbye!\n";
          ????????????????}
          };

          //World?theWorld;

          int?main(){
          ??????? //cout
          <<"Hello?World\n";
          ????????World?theWorld;
          ????????
          return?0;
          }

          [root@portal?ctest]#?vi?hello.c
          [root@portal?ctest]#?g
          ++?hello.c?-o?hello
          [root@portal?ctest]#?.
          /hello
          Hello
          !
          Goodbye
          !
          [root@portal?ctest]#

          posted @ 2007-09-24 15:05 forker 閱讀(2435) | 評(píng)論 (0)編輯 收藏
          ERROR? - ?DisposableBeanAdapter.destroy( 149 )? | ?Couldn't?invoke?destroy?method?of?bean? with ?name?'org.springframework.cache.ehcache.EhCacheManagerFactoryBean#12c7568'
          java.lang.IllegalStateException:?The?userCache?Cache?is?not?alive.
          ????at?net.sf.ehcache.Cache.checkStatus(Cache.java:
          1201 )
          ????at?net.sf.ehcache.Cache.dispose(Cache.java:
          1081 )
          ????at?net.sf.ehcache.CacheManager.shutdown(CacheManager.java:
          702 )
          ????at?org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:
          127 )
          ????at?org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:
          146 )
          ????at?org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:
          379 )
          ????at?org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:
          352 )
          ????at?org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:
          325 )
          ????at?org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:
          799 )
          ????at?org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:
          777 )
          ????at?org.springframework.context.support.AbstractApplicationContext$
          1 .run(AbstractApplicationContext.java: 714 )


          添加shared

          <bean?id="userCache"?class="org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache">
          ????????
          <property?name="cache">
          ????????????
          <bean?class="org.springframework.cache.ehcache.EhCacheFactoryBean">
          ????????????????
          <property?name="cacheManager">
          ????????????????????
          <bean?class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
          ??????????????????????? <!-- 添加shared -->

          ??? ??? ??? ??? ??? ??? <
          property?name="shared"?value="true"/>
          ????????????????????</bean>
          ????????????????
          </property>
          ????????????????
          <property?name="cacheName"?value="userCache"></property>
          ????????????
          </bean>
          ????????
          </property>
          ????
          </bean>

          posted @ 2007-09-21 10:35 forker 閱讀(1318) | 評(píng)論 (0)編輯 收藏
          使用ssh傳文件,用于linux與linux互傳,linux與windows互傳
          在linux下用filezilla(http://filezilla-project.org/),在win下用winscp(http://www.winscp.com/)軟件

          也可以用sshfs把遠(yuǎn)程機(jī)器的目錄掛載到本地(遠(yuǎn)程機(jī)器提供ssh服務(wù),安裝fuse-utils工具)
          掛載
          sshfs user@server:/path /path
          卸載
          fusermount -u /path

          posted @ 2007-09-18 10:48 forker 閱讀(490) | 評(píng)論 (0)編輯 收藏
          主站蜘蛛池模板: 鄂伦春自治旗| 四川省| 中宁县| 获嘉县| 弥渡县| 盈江县| 富宁县| 朝阳区| 花莲市| 漳州市| 吉林省| 凤山市| 永昌县| 西林县| 淮南市| 东城区| 武陟县| 房山区| 潞西市| 乌兰察布市| 曲松县| 双辽市| 大英县| 康乐县| 吕梁市| 宜昌市| 阿克苏市| 黑龙江省| 曲靖市| 达日县| 桑植县| 米脂县| 体育| 和静县| 萝北县| 阿荣旗| 碌曲县| 广东省| 淮南市| 桦川县| 陇川县|