<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    探索與發現

    研究java技術

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      83 隨筆 :: 0 文章 :: 109 評論 :: 0 Trackbacks

    2009年7月10日 #


    css 樣式
    .productshow{width:100%}
    .productshow .text{list-style-type:none; margin:0; padding:0}
    .productshow .text li{line-height:25px; background:url(../t_line.gif) repeat-x bottom}
    .productshow .text li A {background:url(../icons/dot1.gif) no-repeat; background-position:0 3px; padding-left:13px}
    .productshow .text A:link {color: #000; text-decoration: none}
    .productshow .text A:visited {color:#000; text-decoration: none}
    .productshow .text A:active {color: #000; text-decoration: none}
    .productshow .text A:hover {color: #B00000; text-decoration: underline}
    .productshow .pic{list-style-type:none; margin:0; padding:0}
    .productshow .pic li{float:left; width:120px}
    .productshow .pic li p{text-align:center; line-height:160%; word-break:break-all; width:120px; overflow:auto; }
    .productshow .pic li .picture{margin:0 auto; text-align:Center; width:110px; height:110px}
    .productshow .pic li .picture IMG{MARGIN-TOP: expression(( 110 - this.height ) / 2); width: expression(this.width > 110 ? 110 : true); height: expression(this.height > 110 ? 110 : true); max-width: 110px; max-height: 110px; VERTICAL-ALIGN: middle; TEXT-ALIGN: center}
    .productshow .pic li .sprice{text-align:center;color:#999;text-decoration:line-through}
    .productshow .pic li .proname{margin:0 auto; text-align:center; line-height:160%; height:40px; word-break:break-all; width:120px; overflow:hidden}
    .productshow .pic li .price{text-align:center;color:#ff0000}
    .productshow .pic li .buylist{line-height:25px; text-align:center;color:#6DAADA; display:none}
    .productshow .pic .list-line{width:157px}
    .productshow .pic .list-line .picture-s{float:left; margin:0 auto; text-align:Center; width:50px; height:50px}
    .productshow .pic .list-line .picture-s IMG{MARGIN-TOP: expression(( 45 - this.height ) / 2); width: expression(this.width > 45 ? 45 : true); height: expression(this.height > 45 ? 45 : true); max-width: 45px; max-height: 45px; VERTICAL-ALIGN: middle; TEXT-ALIGN: center}
    .productshow .pic .list-line .picinfo{float:left; padding-left:12px; width:95px}
    .productshow .pic li A:link {color: #000; text-decoration: none}
    .productshow .pic li A:visited {color:#000; text-decoration: none}
    .productshow .pic li A:active {color: #000; text-decoration: none}
    .productshow .pic li A:hover {color: #B00000; text-decoration: underline}



    主體代碼

    <table width="609" style="border:1px solid #FF8119" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td background="shop/skins/56770_com_b_002/center_bg.gif"><div class="productshow">
    <ul class="pic">
    <form action="#" method="post" name="LEBI_FORMBUY_0001" id="LEBI_FORMBUY_0001"><li>
     <div class="picture"><a href="shop/product/default.asp?id=16" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/1211144612000.jpg" {@onmouse}="" alt="2010男裝 秋裝商"></a></div>
     <div class="proname"><a href="shop/product/default.asp?id=16" title="2010男裝 秋裝商" target="_self">2010男裝 秋裝商</a></div>
             <p><span class="sprice">市場價:¥100.00</span></p>
     <p><span class="price">購買價:¥90.00</span></p>
     <p class="buylist">購買數量 <input type="text" name="pro_num_0001_16" id="pro_num_0001_16" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_16" id="pro_size_0001_16" value="-"><input type="hidden" name="pro_color_0001_16" id="pro_color_0001_16" value="-"><br><input type="button" name="button_0001_16" value="購買" onclick="javascript:addtobasket('16','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=16&amp;product_name=2010%E7%94%B7%E8%A3%85+%E7%A7%8B%E8%A3%85%E5%95%86&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
    </p>
    </li><li>
     <div class="picture"><a href="shop/product/default.asp?id=15" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/1211103327386.jpg" {@onmouse}="" alt="2010男裝 秋裝商"></a></div>
     <div class="proname"><a href="shop/product/default.asp?id=15" title="2010男裝 秋裝商" target="_self">2010男裝 秋裝商</a></div>
             <p><span class="sprice">市場價:¥120.00</span></p>
     <p><span class="price">購買價:¥120.00</span></p>
     <p class="buylist">購買數量 <input type="text" name="pro_num_0001_15" id="pro_num_0001_15" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_15" id="pro_size_0001_15" value="-"><input type="hidden" name="pro_color_0001_15" id="pro_color_0001_15" value="-"><br><input type="button" name="button_0001_15" value="購買" onclick="javascript:addtobasket('15','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=15&amp;product_name=2010%E7%94%B7%E8%A3%85+%E7%A7%8B%E8%A3%85%E5%95%86&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
    </p>
    </li><li>
     <div class="picture"><a href="shop/product/default.asp?id=14" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/121181193516.jpg" {@onmouse}="" alt="2010男裝 秋裝商"></a></div>
     <div class="proname"><a href="shop/product/default.asp?id=14" title="2010男裝 秋裝商" target="_self">2010男裝 秋裝商</a></div>
             <p><span class="sprice">市場價:¥100.00</span></p>
     <p><span class="price">購買價:¥100.00</span></p>
     <p class="buylist">購買數量 <input type="text" name="pro_num_0001_14" id="pro_num_0001_14" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_14" id="pro_size_0001_14" value="-"><input type="hidden" name="pro_color_0001_14" id="pro_color_0001_14" value="-"><br><input type="button" name="button_0001_14" value="購買" onclick="javascript:addtobasket('14','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=14&amp;product_name=2010%E7%94%B7%E8%A3%85+%E7%A7%8B%E8%A3%85%E5%95%86&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
    </p>
    </li><li>
     <div class="picture"><a href="shop/product/default.asp?id=11" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/121101451977.jpg" {@onmouse}="" alt="2010品牌男襯衣"></a></div>
     <div class="proname"><a href="shop/product/default.asp?id=11" title="2010品牌男襯衣" target="_self">2010品牌男襯衣</a></div>
             <p><span class="sprice">市場價:¥100.00</span></p>
     <p><span class="price">購買價:¥100.00</span></p>
     <p class="buylist">購買數量 <input type="text" name="pro_num_0001_11" id="pro_num_0001_11" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_11" id="pro_size_0001_11" value="-"><input type="hidden" name="pro_color_0001_11" id="pro_color_0001_11" value="-"><br><input type="button" name="button_0001_11" value="購買" onclick="javascript:addtobasket('11','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=11&amp;product_name=2010%E5%93%81%E7%89%8C%E7%94%B7%E8%A1%AC%E8%A1%A3&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
    </p>
    </li><li>
     <div class="picture"><a href="shop/product/default.asp?id=9" class="picborder" target="_self"><img border="0" src="shop/Pic/201009/121053257865.jpg" {@onmouse}="" alt="2010年秋冬新款特"></a></div>
     <div class="proname"><a href="shop/product/default.asp?id=9" title="2010年秋冬新款特" target="_self">2010年秋冬新款特</a></div>
             <p><span class="sprice">市場價:¥100.00</span></p>
     <p><span class="price">購買價:¥100.00</span></p>
     <p class="buylist">購買數量 <input type="text" name="pro_num_0001_9" id="pro_num_0001_9" value="1" size="3" style="width:30px;" class="form"><input type="hidden" name="pro_size_0001_9" id="pro_size_0001_9" value="-"><input type="hidden" name="pro_color_0001_9" id="pro_color_0001_9" value="-"><br><input type="button" name="button_0001_9" value="購買" onclick="javascript:addtobasket('9','0001','','1')" class="button">&nbsp;<input type="button" name="fav" value="收藏" onclick="location.href='shop/user/?action=shoucang_add&amp;id=9&amp;product_name=2010%E5%B9%B4%E7%A7%8B%E5%86%AC%E6%96%B0%E6%AC%BE%E7%89%B9&amp;backurl=http%3A%2F%2Flocalhost%3A80%2Fshop%2Fdefault%2Easp&amp;product_type='" class="button">
    </p>
    </li></form></ul>

    <div class="both"></div></div></td>
                  </tr>
                  <tr>
                    <td><img src="shop/skins/56770_com_b_002/center_bottom.gif" width="609" height="10"></td>
                  </tr>
                </tbody></table> 
               

    posted @ 2010-09-15 22:55 蜘蛛 閱讀(309) | 評論 (0)編輯 收藏

    為測試 Flex 應用程序設置測試環境

    正確的用于測試 Flex 應用程序的環境設置將有助于確保可靠的功能測試結果。測試環境一般由測試人員在測試計算機上進行設置。

    關于此任務

    要設置測試環境:

    過程

    1. 檢查瀏覽器的設置:
      1. Internet Explorer:
        1. 打開 Internet Explorer。
        2. 單擊工具 > 互聯網選項
        3. 單擊安全性選項卡。
        4. 選擇適當的 Web 內容區域。執行下列某個步驟:
          • 如果在遠程機器上配置了 Web 服務器,那么請完成下列步驟:
            1. 選擇本地內部網
            2. 單擊站點 > 高級
            3. 將此 Web 站點添加到區域字段中,輸入要添加到 Web 站點的 URL。
            4. 單擊添加,然后單擊確定
          • 如果在本地主機上配置了 Web 服務器,那么請完成下列步驟:
            1. 選擇本地內部網
            2. 單擊定制級別
            3. 復位至列表中,選擇中低
            4. 在“設置”窗格中,針對初始化且腳本 ActiveX 控件不標記為安全一項單擊啟用
            5. 單擊確定
      2. Firefox:
        1. 單擊工具 > 選項 > 內容
        2. 清除阻止彈出窗口復選框。
        3. 單擊工具 > 選項 > 安全
        4. 清除當有站點試圖安裝插件時發出警告復選框。
    2. 打開 IBM Rational Functional Tester,然后單擊配置 > 啟用測試環境。必須啟用所需要的 JRE 并將 Internet Explorer 設置為缺省 Web 瀏覽器。
    3. 在“Web 瀏覽器”頁面中啟用所需要的瀏覽器。
    4. 將測試下應用程序設置為可信以在本地運行應用程序。指向單個文件或目錄的路徑處于可信狀態,同時所有的文件將會分配到每個選定的目錄及其可信的子目錄中。按照下列步驟來分配信任目標:
      1. 在 C:\WINDOWS\system32\Macromed\Flash 中創建文件夾 FlashPlayerTrust。
      2. 在 FlashPlayerTrust 文件夾中創建一個名為 Flex 且不帶擴展名的文件。
      3. 在 Flex 文件中輸入 Flex 應用程序的目錄路徑。例如,如果 Flex 應用程序位于 C:\Test 目錄中,請在 Flex 文件中輸入路徑 C:\Test
      4. 保存文件。
    posted @ 2010-07-27 06:00 蜘蛛 閱讀(256) | 評論 (0)編輯 收藏

    http://unitedmindset.com/jonbcampos/2009/08/12/flex-best-practices-events/
    posted @ 2009-09-18 06:53 蜘蛛 閱讀(416) | 評論 (2)編輯 收藏

    http://www.davidtucker.net/category/cairngorm/
    posted @ 2009-09-15 20:36 蜘蛛 閱讀(205) | 評論 (0)編輯 收藏

    1.可以使用PopUpManager進行界面切換
    2.使用狀態(state),自定義一些狀態事件(StateEvent),在index.mxml(mx:application)中監聽組件派發的狀態事件類型,利用改變狀態來改變顯示的界面.


    ⑴用第一種方式來實現相對簡單,利用PopUpManager的一些靜態方法即可實現,比較適用于一些size相對較小的可視化組件,比如:登陸表單組件,或修改一個值,要求重新輸入一個新值等等類似情況.實現示例代碼如下:

    Js代碼
    1. <span style="font-size: small;">var win:*;   
    2. win = new loginPanel();   
    3. //彈出顯示登錄框   
    4. PopUpManager.addPopUp(win,this,true);   
    5. //登陸框顯示在中間   
    6. PopUpManager.centerPopUp(win); </span>  

     ⑵在第二種方法中利用state來改變顯示的界面則要相對復雜許多.

    ①首先我們需要自定義統一的狀態事件名稱

    Java代碼
    1. <span style="font-size: small;">package note.events{  
    2. /** 
    3.  * 狀態事件,每個狀態值要和狀態名稱一樣 
    4.  * @author halzhang 
    5. */  
    6. public class StateEvent{  
    7.           public static const NULL_STATE:String = "";  
    8.           public static const LOGIN_STATE:String = "loginState";  
    9.           public static const ADDNOTE_STATE:String = "addNoteState";  
    10.           public static const ADDUSER_STATE:String = "addUserState";  
    11.           public static const LISTALLUSER_STATE:String = "listAllUserState";  
    12.          }  
    13. }</span>  

     ②在Flex項目的主程序中定義state,當然也可以加上狀態切換的動畫.

    Html代碼
    1. <span style="font-size: small;"><!-- 定義狀態,我們分別定義了三個狀態,每個狀態對應一個自定義的可視化組件  -->  
    2.     <mx:states>  
    3.         <mx:State name="loginState">  
    4.             <mx:AddChild position="lastChild">  
    5.                 <!-- 狀態對應的自定義組件:登陸組件 -->  
    6.                 <view:loginPanel id="panel_login" x="195" y="89"/>  
    7.             </mx:AddChild>  
    8.         </mx:State>  
    9.           
    10.         <mx:State name="addNoteState">  
    11.             <mx:AddChild position="lastChild">  
    12.                 <!-- 狀態對應的自定義組件:添加留言組件 -->  
    13.                 <view:addNotePanel id="panel_addNote" x="10" y="44"/>  
    14.             </mx:AddChild>  
    15.         </mx:State>  
    16.           
    17.         <mx:State name="addUserState">  
    18.             <mx:AddChild position="lastChild">  
    19.                 <!-- 狀態對應的自定義組件:添加用戶組件 -->  
    20.                 <view:addUserPanel id="panel_addUser" x="10" y="44"/>  
    21.             </mx:AddChild>  
    22.         </mx:State>  
    23.           
    24.         <mx:State name="listAllUserState">  
    25.             <mx:AddChild position="lastChild">  
    26.                 <view:allUserPanel id="panel_allUser" x="10" y="44"/>  
    27.             </mx:AddChild>  
    28.         </mx:State>  
    29.     </mx:states></span>  

    ③在組件中派發狀態事件(StateEvent)

    Js代碼
    1. <span style="font-size: small;"> //關閉添加留言組件的時候派發"空"狀態事件,也就是主程序界面不顯示其他組件     
    2.  //如果想顯示其他組件,則派發相應的狀態事件     
    3.  internal function closeMySelf():void{    
    4.         appModel.dispatchEvent(new Even(StateEvent.NULL_STATE));    
    5.  }</span>  

    ④在主程序界面中監聽狀態事件(StateEvent),從而通過改變狀態來顯示我們需要的組件.

    Js代碼
    1. <span style="font-size: small;">                                                //添加狀態事件監聽,在程序初始化的時候執行  
    2.             internal function stateListener():void{  
    3.                 appModel.addEventListener(StateEvent.NULL_STATE,stateEventHandler);  
    4.                 appModel.addEventListener(StateEvent.LOGIN_STATE,stateEventHandler);  
    5.                 appModel.addEventListener(StateEvent.ADDNOTE_STATE,stateEventHandler);  
    6.             }  
    7.             //狀態事件處理函數  
    8.             internal function stateEventHandler(evt:Event):void{  
    9.                 this.currentState = evt.type.toString();  
    10.             }</span>  

    在項目中appModel是一個繼承 EventDispatcher,使用單例模式實現的程序模型.不知道讀者是否發現StateEvent中事件名稱是和主程序界面中定義的state的 name值是一致的.因為這樣定義我們就可以使用統一的狀態事件處理函數,就不需要先去判斷是哪個狀態事件,在來改變當前狀態.只要簡單的執行 this.currentState = evt.type.toString();

    posted @ 2009-09-10 17:50 蜘蛛 閱讀(2870) | 評論 (2)編輯 收藏

    http://blog.csdn.net/lixinye0123
    posted @ 2009-08-24 06:31 蜘蛛 閱讀(380) | 評論 (7)編輯 收藏

    impersonation
    <system.web>
    <identity impersonate="true" />
    </system.web>

    Configuring log4net for SharePoint Windows Authentication
    http://mikeknowles.com/blog/2009/02/17/ConfiguringLog4netForSharePointWindowsAuthentication.aspx


    log4net does not work in IIS
    http://forums.asp.net/p/1420781/3153374.aspx


    http://stackoverflow.com/questions/1061857/sharepoint-and-identity-impersonatefalse
    posted @ 2009-08-11 23:26 蜘蛛 閱讀(604) | 評論 (3)編輯 收藏

    http://msp.sfsu.edu/Instructors/rey/aepage/tutorials.html
    posted @ 2009-08-05 02:17 蜘蛛 閱讀(221) | 評論 (0)編輯 收藏

         摘要: Photoshop超級技巧 色彩技巧    139. Photoshop是32位應用程序,為了正確地觀看文件,須將屏幕設置為24位彩色。    140. 先執行“視圖”→“新視圖”命令,產生有關新視窗后,再執行“視圖”→“預覽”...  閱讀全文
    posted @ 2009-07-31 14:35 蜘蛛 閱讀(402) | 評論 (0)編輯 收藏

    和動畫一樣,剪輯這個詞涵蓋的東西太多,以至于我們無從下口。到底什么是剪輯,

    什么算剪輯,業內人也說不清楚,更別說介紹給普通觀眾了。我們從那些有記可查

    的各種定義,定律,課本文章里跳出來,只談談感受–剪輯:剪什么?

    以我的感受,面對一個片子或者是面對一個未出生的片子我們到底應該先剪什么?

    首先剪到的應當是

    1、剪調性,其次是

    2、剪情緒,再次是

    3、剪內容, 之后是

    3、剪故事,然后是

    4、剪道理,次之是

    5、剪鏡頭,再次是

    6、剪音樂,最次是

    7、剪手法,完后才是

    8、剪技術。

    其中調性是和產品,和目標,和觀眾,和影片相關的,就是我們究竟要做一個什么

    片子,給誰看,說的是男人的事還是娘們兒的事,是個廣告還是專題,是詩歌還是

    散文,是政府報告,還是書情小調–于是我們有了影片的調性,它決定了創作者

    的情緒。

    情緒,是控制影片的主觀元素,我們將”我”,將代表”我”的”情緒”放在代表

    客觀產品和客戶的調性要求之后,是因為我們需要以承認一個好的剪輯是在為客戶

    和觀眾剪輯的先決條件下確立的。因為調性的確立,而導引出”我”在整個影片控

    制中的情緒應當是什么樣的。當情緒控制完整時,我們進入了一個狀態,開剪!

    我們把情緒從空中迫降到內容,面對一大堆素材,內容的整理分類和控制、想象成

    了一個龐大的工作,在這么龐大復雜甚至是有點機械重復的過程中,千萬不要失去

    情緒,選擇素材時候還要時刻考慮調性。而這一步針對內容的篩選和分析,是影片

    對錯的基本保證。

    內容確認,將零散的內容剪輯組織成有趣的故事,常常被看做是剪輯的魅力所在。

    我們可以用剪輯影響情緒故事甚至改變內容,總之一切雖然在你手中,卻依靠想象

    力才能走得更遠。人人心中有,各個筆下無。電視包裝的故事往往并不復雜,但希

    望通過剪輯增加信息量并且要求極其清晰和準確的表達。這里需要大量的訓練和思

    考。

    故事的背后要考慮道理,往往剪輯時候需要一個理由,這個理由不一定有機會說出

    來或者是展示給每個觀眾,或者是讓每個觀眾都能體會到理由所在,但是剪輯師必

    須有一個理由,能夠說服自己剪下去的理由,能夠將當前鏡頭和前后鏡頭連接起來

    的理由。這個理由可能是內容的情緒的故事的,或也可能是鏡頭運動的,色彩的,

    修辭的,反正需要一個理由,將影片進行到底!

    道理依靠鏡頭的組織,這里我們終于剪到鏡頭了。這是一個很視覺的活,這是一個

    很鏡頭感的饕餮。景別,運動,正反打,一個鏡頭一個鏡頭的銜接,一個堡壘一個

    堡壘的推進,一組鏡頭和一組鏡頭的對話,鏡頭就是實在的字,講著道理說著故事。

    沒有鏡頭,也可以剪輯,用黑場替代你現在不存在的鏡頭。我們依然可以組織影片。

    鏡頭的另一魅力就是時長和觀眾的心理預期,恰到好處的鏡頭長短,如呼吸般可以

    與觀眾同步,在同步的呼吸中控制觀眾的節奏,一定要在心里下一個預期前給一個

    準確的時長。甚至可以留下一點點遺憾。這就是鏡頭的魅力。

    配合情緒,故事和鏡頭的音樂舉足輕重。但是只會按照音樂剪輯的剪輯,毫無控制

    力。他們的影片就像流水帳一樣”進人意料”。實際上音樂,同期,字幕,畫面同

    時構成一個 立體的影片空間與線索。完全可以通過音樂的控制手法去講故事。對于

    影片音樂無可厚非屬于一個乘數,而非簡陋的加法。

    其次我們還有N多種剪輯手法配合,實際上可以把剪輯影片理解成一段舞曲,一段

    旋律,我們變換的剪輯手法無非是123,223,323 423……或者是忽然轉變成11123

    —11223—11323……旋律的變化 ,節奏的調整。這些統稱為剪輯手法,可以從廣

    告帶中積累。當然也可以自己創造。而現代剪輯中我認為一些拍攝技巧可以說是從

    剪輯中來的,也可以變成一種剪輯技巧。合成也是一種剪輯。合成影響了影片的色

    調,質感,景別的重構,這些對剪輯都明顯的幫襯作用。

    最后要剪技術,這個不用多提,市場上,培訓上也提的過多。我們再去技術上爭你

    死我活都沒用。還是少提點為好,或者下一帖再說。

    從技術上來說,剪輯軟件都類似,看不出多少分別(實際還是有區別的),基本上

    快的話一天就能學會慢的話兩三個月也能了。之后,你就會剪輯了嗎?你就懂得剪

    輯了嗎?一切要從實踐中來。

    回頭看看:

    1、剪調性,其次是

    2、剪情緒,再次是

    3、剪內容, 之后是

    4、剪故事,然后是

    5、剪道理,次之是

    6、剪鏡頭,再次是

    7、剪音樂,最次是

    8、剪手法,完后才是

    9、剪技術。

    剪到手法還是音樂? —-你剪到了哪一步呢?

    同志們!–剪出九級。

    posted @ 2009-07-29 10:32 蜘蛛 閱讀(306) | 評論 (0)編輯 收藏

    http://itbbs.pconline.com.cn/dv/8515019.html
    posted @ 2009-07-25 09:27 蜘蛛 閱讀(191) | 評論 (0)編輯 收藏

    www.noisejunkies.net/links ...you will find a nice list there
    http://allbetsareoff.com
    http://maltaannon.com
    http://www.sternfx.com

    And, of course,

    http://library.creativecow.net/video-tutorials/adobeaftereffects

    www.aetuts.com

    creativecow.net,
    maltaannon.com,
    everythingfx.tk
    moviemaker933.tk
    fxresource.tk
    noisejunkies.net,
    aetuts+.com
    visualfxtuts.com
    aescripts.com

    These range from beginning to advanced tutorials.
    http://www.lfp-industries.com

    This site is constantly growing and makes some exciting tutorials.



    ref to :http://www.videocopilot.net/forum/viewtopic.php?f=33&t=19288




    posted @ 2009-07-16 10:40 蜘蛛 閱讀(180) | 評論 (0)編輯 收藏

    I would start with Andrew's Basic Training to learn the basis. Also, I would recommend you to have a look at Andrew's DVD Products, I think Serious FX could be a good start to learn effects and compositing.

    Before you go on with Andrews stuff..i suggest you to buy Creating Motion Graphics Vol1 and Vol.2 from Thris and Chris Meyer.
    These books will give you the basic principles of the programm and also make you feel comfortable with the interface of the programm such as its basic rules and knowledge.

    You must know how to put the gears in order to drive a car.....Andrews stuff is surely your next stop after you manage to drive you A.E vehicle goood!!
    posted @ 2009-07-15 15:22 蜘蛛 閱讀(233) | 評論 (0)編輯 收藏

    美國教師Joe Harkins給即將畢業的CG動畫大學生一封信

    偶然在網上看到了這篇帖子,是一位名叫Joe Harkins的美國教師為了解答學生們的疑惑而發表的一封信。Joe Harkins從一個過來人的角度,解答了剛剛入行或者正在準備入行年輕人存在的一些疑惑。雖然有一些問題不適合中國學生,但是也有很多代表性的問題,能給我們一些啟發。

                  作為一個在各個學校演講的演講者,舊金山藝術學院新媒體傳達中心和SIGGRAPH任教的老師, Joe Harkins會收到無數電子郵件。在回復了上百封郵件后,他逐漸認識到幾乎所有的學生都關心這樣一個信息:他們想知道他們所受的教育的真正價值有多少。

                  他們需要一個真正誠懇的,有經驗的人來評判他們的作品。最重要的是他們想知道如何才能獲得一份工作。

             我應該去學校拿一個學位嗎?

            是否上學拿學位并不是關鍵。畢業了以后沒有人會在意你這個了。他們不想知道你在哪里畢業,學校里成績多牛。他們不會問你“你主修什么?”
             他們更可能會說:“你會做什么?”

                  說實話,這個行業還沒有高端到去顧及每個從業人員的學歷,這不同于醫生和律師。的確,這個行業里有一些從名牌學校畢業的天才,他們對于行業來說是價 值連城的。但是那些畢竟是極少數。更多的是普通人,他們做著自己喜歡的事情,他們有天賦并且很努力去做著他們熱愛的事情。

           是否一定需要一個大學學歷才能在行業里生存?并非如此,但并不是說去上學沒有意義,只是沒有學歷也不要郁悶,不管什么途徑學到能幫助你在職場安身立命的技能,才是最主要的。


           如果我走技術路線,我需要有藝術素養么?  

            毫無疑問,所有能力都需要依賴于你天生的藝術天賦,觀察細節的眼力,評價他人和自己作品的能力。雖然很多純技術性工種并不要求藝術方面的能力,但是 如果你想在CG方面變的更優秀,你仍然需要具備一定的藝術素質。這會讓你成為一個綜合實力很強的技術工作者。

           我以前學的和CG毫不相干,進入這個行業怎么樣?
           這很不錯,至少你有一個后路可以做別的。不過你還是必須要選擇一個你真正將要投身的行業,然后努力學習。學的多并不是一個壞事。但是有一個問題,既然你都做好了改行的準備,那么你究竟下了多少的決心投身到CG行業呢?


           我該學什么軟件好呢?

           首先忘記軟件這個東西吧!如果你對技術性的東西有興趣,那么你需要一個很強悍的數學和科學基礎。當然還要會編程!如果你走藝術路線,那么你 需要在傳統技法上下工夫,比如速描,色彩,雕塑等。先打好扎實的2D基礎,再來玩3D。

           軟件僅僅是一個工具而 已,行業里用到最多的3D軟件是MAYA;2D方面,PhotoShop仍然是一個必會項目。說到合成,你學好Shake 或者Combustion 不會有錯,會AfterEffect更好。渲染部分,Renderman和Mental Ray所占比例最大。動作捕捉方面MotionBuilder用的最多。特效家們愛用Hudini,不過MAYA  仍然是用的最多的,尤其是它的流體,像 www.maya.la 這也是不錯的學習交流地方。

          學什么軟件還是很重要的,因為這些龐雜的軟件學習起來會花費大量的時間和精力。對一個流行的軟件你懂的越少,那么你就越不值錢。這并不是說哪個軟件更好,關鍵的是行業中用的最多的軟件是什么,這才是決定學什么軟件更有價值的關鍵!


           馬上要畢業了,我該做什么呢?

    對于即將畢業進入行業的學生,這里有些簡單的準備工作需要做:

                開始關注招聘的信息,準備好你的簡歷。
                著手制作你的作品展示或者一個demo。
                嘗試去正式接觸和聯系那些看過你作品的公司。

           畢業的時候,我應該具備些什么呢?

             最重要的東西就是你手中的demo或者是一個作品展示。當然你還需要一個簡歷,但是那相對是次要的東西。幾乎所有的人的demo都會被單獨看過,如果你畢業的時候沒有這些東西,那么你絕對沒有作好競爭的準備。

           我已經畢業了,接下來該怎么做?

           畢業了,你就進入了這個行業的大海開始“漂”的生活。你是新人,沒人認識你,但是你需要一份工作。“漂”這個詞很重要。盡可能多的發送你的作品和簡歷。花 時間給每個公司寫求職信,而且要保證這些信是針對這個公司而不是泛泛而寫。絕對不要寫那種很沒個性的信,那會讓你失去工作的機會。但是也別做的太過火,簡 單到位就好。求職信,簡歷,作品這3樣東西都準備好了,就夠了。

    關于作品,有以下幾點法則:

              不要超過2分鐘,任何過多的內容都是沒有經驗的表現。
              最好的作品放在第一個,絕對不要重復表現什么內容,更不要把一些不能體現你最佳水平的東西放進去充數。
              忘記配樂吧,你的作品基本都是關掉聲音而且是被快進看完的。很遺憾。
              覺得你的作品很不錯,可以到 www.299.com.cn 的久久CG動畫論壇發出來。
              名字,電話和電子郵件要顯醒目,千萬別忘記這些聯系方式。
              你的作品究竟有多少含金量?

           從某種程度上說,它是無價的!進入行業的機會是十分難得到的,你會和許多極富天賦的人來競爭一個工作。如果你用一個月的時間作出一個作品,很顯然它會很有價值!世界上所有的天才藝術家絕對不會對自己的作品草草了事,不會偷懶和拖拖拉拉。作好準備吧,這里充滿了競爭。

          作品決定了所有的事情。它是你唯一靠的住的伙伴,也是你進入行業唯一的敲門磚。作品會集中大部分的注意力!我有面試的機會了,但是我該怎么做呢?做你自 己!帶上內容更多的作品和簡歷,準時去面試。最重要的是要誠實,別夸大你的能力,那不會有什么幫助。別過分打扮,但是至少要得體。你要保持自信,他們對你 有興趣,你也要表現的對他們很感興趣。

           所有的招聘都要求工作經驗,但是我沒有經驗,我該怎么辦?

            這是一個存在于任何行業中的悖論。對于公司來說,畢業生代表者無名和廉價。雖然招聘要求是只需要有工作經驗的人,但是正因為你比其他人廉價,所以你 有機會去填補那些比較菜鳥的職位空缺,雖然你沒有任何工作經驗。工作經驗的要求是為了篩選人,但是公司知道畢業生仍然會不斷投送簡歷。只要你確定這個工作 你可以勝任,那么你就投簡歷吧!正因為你的不知名,所以你充滿了可能性,公司愿意給你一次嘗試的機會。如果你得到了能證明自己的機會,你該為自己高興!

           擁有了第一份工作以后我該怎么做呢?

            當你還是一個新人你肯定要度過一段難熬的日子。別指望他們告訴你重要的東西,別指望他們來提拔你。你要做的就是埋頭盡最大努力工作,盡可能的學習。 你正在充實你的履歷。工作經驗比工資重要的多。以長遠眼光來考慮你的事業,別僅僅目光短淺的盯在這份工作上。

    完成了最初的幾個項目后,你可能在某些方面贏得了一些重視。

            你可能有足夠的經驗去另外的公司找到一個更好的職位。

            你可能在本公司升職且得到更多的尊重。

            如果可以的話,你可以試著做些新的工作,換些不同的崗位。

    第一年或者第二年間可以嘗試上面這些。但是你需要在這期間看到結果如何,否則你會陷在一個乏味的環境里。

           眾多候選人中,HR更看重什么?

            HR不關心你從哪里來,你努力了多久,你在學校是尖子生還是墊底的。他們只需要你拿出你的作品來證明你可以做什么。同時你需要有謙虛好學的精神,愿 意接受指導。持之以恒,按時完成工作,努力工作直到下班為止。讓他們看的出你是一個聰明的人,愿意自己解決問題而不是想都不想就請教別人。讓他們知道你是多么想把事情做好,最重要的是你的熱情!充滿了活力。這些就是HR希望在侯選者中看到的。無論是不是新人。
    posted @ 2009-07-14 16:49 蜘蛛 閱讀(259) | 評論 (0)編輯 收藏

    Problem. You want to split strings on different characters with single character or string delimiters. For example, split a string that contains ""r"n" sequences, which are Windows newlines. Solution. This document contains several tips for the Split method on the string type in the C# programming language.

    Input string: One,Two,Three,Four,Five
    Delimiter: , (char)
    Array: One (string array)
    Two
    Three
    Four
    Five

    1. Using Split

    Here we see the basic Split method overload. You already know the general way to do this, but it is good to look at the basic syntax before we move on. This example splits on a single character.

    === Example program for splitting on spaces ===

    using System;

    class Program
    {
    static void Main()
    {
    string s = "there is a cat";
    //
    // Split string on spaces.
    // This will separate all the words.
    //

    string[] words = s.Split(' ');
    foreach (string word in words)
    {
    Console.WriteLine(word);
    }
    }
    }

    === Output of the program ===

    there
    is
    a
    cat

    Description. The input string, which contains four words, is split on spaces and the foreach loop then displays each word. The result value from Split is a string[] array.

    2. Multiple characters

    Here we use either the Regex method or the C# new array syntax. Note that a new char array is created in the following usages. There is an overloaded method with that signature if you need StringSplitOptions, which is used to remove empty strings.

    === Program that splits on lines with Regex ===

    using System;
    using System.Text.RegularExpressions;

    class Program
    {
    static void Main()
    {
    string value = "cat"r"ndog"r"nanimal"r"nperson";
    //
    // Split the string on line breaks.
    // The return value from Split is a string[] array.
    //

    string[] lines = Regex.Split(value, ""r"n");

    foreach (string line in lines)
    {
    Console.WriteLine(line);
    }
    }
    }

    === Output of the program ===

    cat
    dog
    animal
    person

    Description. The first example uses Regex. Regex contains the Split method, which is static. It can be used to split strings, although it has different performance properties. The next two example show how you can specify an array as the first parameter to string Split.

    === Program that splits on multiple characters ===

    using System;

    class Program
    {
    static void Main()
    {
    //
    // This string is also separated by Windows line breaks.
    //

    string value = "shirt"r"ndress"r"npants"r"njacket";

    //
    // Use a new char[] array of two characters ("r and "n) to break
    // lines from into separate strings. Use "RemoveEmptyEntries"
    // to make sure no empty strings get put in the string[] array.
    //

    char[] delimiters = new char[] { '"r', '"n' };
    string[] parts = value.Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
    for (int i = 0; i < parts.Length; i++)
    {
    Console.WriteLine(parts[i]);
    }

    //
    // Same as the previous example, but uses a new string of 2 characters.
    //

    parts = value.Split(new string[] { ""r"n" }, StringSplitOptions.None);
    for (int i = 0; i < parts.Length; i++)
    {
    Console.WriteLine(parts[i]);
    }
    }
    }

    === Output of the program ===
    (Repeated two times)

    shirt
    dress
    pants
    jacket

    Overview. One useful overload of Split receives char[] arrays. The string Split method can receive a character array as the first parameter. Each char in the array designates a new block.

    Using string arrays. Another overload of Split receives string[] arrays. This means string array can also be passed to the Split method. The new string[] array is created inline with the Split call.

    Explanation of StringSplitOptions. The RemoveEmptyEntries enum is specified. When two delimiters are adjacent, we end up with an empty result. We can use this as the second parameter to avoid this. [C# StringSplitOptions Enumeration - dotnetperls.com] The following screenshot shows the Visual Studio debugger.

    Split string debug screenshot

    3. Separating words

    Here we see how you can separate words with Split. Usually, the best way to separate words is to use a Regex that specifies non-word chars. This example separates words in a string based on non-word characters. It eliminates punctuation and whitespace from the return array.

    === Program that separates on non-word pattern ===

    using System;
    using System.Text.RegularExpressions;

    class Program
    {
    static void Main()
    {
    string[] w = SplitWords("That is a cute cat, man");
    foreach (string s in w)
    {
    Console.WriteLine(s);
    }
    Console.ReadLine();
    }

    /// <summary>
    /// Take all the words in the input string and separate them.
    /// </summary>

    static string[] SplitWords(string s)
    {
    //
    // Split on all non-word characters.
    // Returns an array of all the words.
    //

    return Regex.Split(s, @""W+");
    // @ special verbatim string syntax
    // "W+ one or more non-word characters together

    }
    }

    === Output of the program ===

    That
    is
    a
    cute
    cat
    man

    Word splitting example. Here you can separate parts of your input string based on any character set or range with Regex. Overall, this provides more power than the string Split methods. [C# Regex.Split Method Examples - dotnetperls.com]

    4. Splitting text files

    Here you have a text file containing comma-delimited lines of values. This is called a CSV file, and it is easily dealt with in C#. We use the File.ReadAllLines method here, but you may want StreamReader instead.

    Reading the following code. The C# code next reads in both of those lines, parses them, and displays the values of each line after the line number. The final comment shows how the file was parsed into the strings.

    === Contents of input file (TextFile1.txt) ===

    Dog,Cat,Mouse,Fish,Cow,Horse,Hyena
    Programmer,Wizard,CEO,Rancher,Clerk,Farmer

    === Program that splits lines in file (C#) ===

    using System;
    using System.IO;

    class Program
    {
    static void Main()
    {
    int i = 0;
    foreach (string line in File.ReadAllLines("TextFile1.txt"))
    {
    string[] parts = line.Split(',');
    foreach (string part in parts)
    {
    Console.WriteLine("{0}:{1}",
    i,
    part);
    }
    i++; // For demo only
    }
    }
    }

    === Output of the program ===

    0:Dog
    0:Cat
    0:Mouse
    0:Fish
    0:Cow
    0:Horse
    0:Hyena
    1:Programmer
    1:Wizard
    1:CEO
    1:Rancher
    1:Clerk
    1:Farmer

    5. Splitting directory paths

    Here we see how you can Split the segments in a Windows local directory into separate strings. Note that directory paths are complex and this may not handle all cases correctly. It is also platform-specific, and you could use System.IO.Path. DirectorySeparatorChar for more flexibility. [C# Path Examples - dotnetperls.com]

    === Program that splits Windows directories (C#) ===

    using System;

    class Program
    {
    static void Main()
    {
    // The directory from Windows
    const string dir = @"C:"Users"Sam"Documents"Perls"Main";
    // Split on directory separator
    string[] parts = dir.Split('""');
    foreach (string part in parts)
    {
    Console.WriteLine(part);
    }
    }
    }

    === Output of the program ===

    C:
    Users
    Sam
    Documents
    Perls
    Main

    6. Split internal logic

    The logic internal to the .NET framework for Split is implemented in managed code. The methods call into the overload with three parameters. The parameters are next checked for validity. Finally, it uses unsafe code to create the separator list, and then a for loop combined with Substring to return the array.

    7. Benchmarks

    The author tested a long string and a short string, having 40 and 1200 chars. String splitting speed varies on the type of strings. The length of the blocks, number of delimiters, and total size of the string factor into performance.

    Results. The Regex.Split option generally performed the worst. The author felt that the second or third methods would be the best, after observing performance problems with regular expressions in other situations.

    === Strings used in test ===
    //
    // Build long string.
    //

    _test = string.Empty;
    for (int i = 0; i < 120; i++)
    {
    _test += "01234567"r"n";
    }
    //
    // Build short string.
    //

    _test = string.Empty;
    for (int i = 0; i < 10; i++)
    {
    _test += "ab"r"n";
    }

    === Example methods tested (100000 iterations) ===

    static void Test1()
    {
    string[] arr = Regex.Split(_test, ""r"n", RegexOptions.Compiled);
    }

    static void Test2()
    {
    string[] arr = _test.Split(new char[] { '"r', '"n' }, StringSplitOptions.RemoveEmptyEntries);
    }

    static void Test3()
    {
    string[] arr = _test.Split(new string[] { ""r"n" }, StringSplitOptions.None);
    }

    Longer strings: 1200 chars. The benchmark for the methods on the long strings is more even. It may be that for very long strings, such as entire files, the Regex method is equivalent or even faster. For short strings, Regex is slowest, but for long strings it is very fast.

    === Benchmark of Split on long strings ===

    [1] Regex.Split: 3470 ms
    [2] char[] Split: 1255 ms [fastest]
    [3] string[] Split: 1449 ms

    === Benchmark of Split on short strings ===

    [1] Regex.Split: 434 ms
    [2] char[] Split: 63 ms [fastest]
    [3] string[] Split: 83 ms

    Short strings: 40 chars. This shows the three methods compared to each other on short strings. Method 1 is the Regex method, and it is by far the slowest on the short strings. This may be because of the compilation time. Smaller is better. [This article was last updated for .NET 3.5 SP1.]

    Performance recommendation. For programs that use shorter strings, the methods that split based on arrays are faster and simpler, and they will avoid Regex compilation. For somewhat longer strings or files that contain more lines, Regex is appropriate. I show some Split improvements that can improve your program. [C# Split Improvement - dotnetperls.com]

    8. Escaped characters

    You can use Replace on your string input to substitute special characters in for any escaped characters. This can solve lots of problems on parsing computer-generated code or data. [C# Split Method and Escape Characters - dotnetperls.com]

    9. Caching delimiters

    The author's further research into Split and its performance shows that it is worthwhile to declare your char[] array you are splitting on as a local instance to reduce memory pressure and improve runtime performance.

    === Slow version - before ===

    //
    // Split on multiple characters using new char[] inline.
    //

    string t = "string to split, ok";

    for (int i = 0; i < 10000000; i++)
    {
    string[] s = t.Split(new char[] { ' ', ',' });
    }

    === Fast version - after ===

    //
    // Split on multiple characters using new char[] already created.
    //

    string t = "string to split, ok";
    char[] c = new char[]{ ' ', ',' }; // <-- Cache this

    for (int i = 0; i < 10000000; i++)
    {
    string[] s = t.Split(c);
    }

    Interpretation of the above table. We see that storing the array of delimiters separately is good. My measurements show the above code is less than 10% faster when the array is stored outside the loop.

    10. Rewriting PHP explode

    C# has no explode method exactly like PHP explode, but you can gain the functionality quite easily with Split, for the most part. You can replace explode with the Split method that receives a string[] array. [C# PHP explode Function - dotnetperls.com]

    11. Summary

    Here we saw several examples and two benchmarks of the Split method in the C# programming language. You can use Split to divide or separate your strings while keeping your code as simple as possible. Sometimes, using IndexOf and Substring together to parse your strings can be more precise and less error-prone. [C# IndexOf String Examples - dotnetperls.com]

    posted @ 2009-07-10 14:41 蜘蛛 閱讀(913) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 国产精品亚洲综合| 亚洲性久久久影院| 东方aⅴ免费观看久久av| 国产一区二区三区亚洲综合| 亚洲AV综合色区无码二区爱AV| 亚洲精品乱码久久久久久| 国产免费牲交视频| 国外成人免费高清激情视频| 精品福利一区二区三区免费视频 | 全黄A免费一级毛片| 中文字幕免费在线| 丝袜捆绑调教视频免费区| 亚洲国产无线乱码在线观看| 亚洲一区二区三区免费在线观看 | 一级免费黄色毛片| 久久久亚洲精华液精华液精华液| 亚洲伊人精品综合在合线| 中文字幕亚洲综合精品一区| 久久亚洲精品中文字幕无码| 亚洲人成在线播放网站| 国产精品亚洲综合一区| 亚洲真人日本在线| 亚洲熟伦熟女新五十路熟妇| 亚洲av无码国产精品色在线看不卡| 日日AV拍夜夜添久久免费| 免费观看的av毛片的网站| 91嫩草国产在线观看免费| 免费不卡视频一卡二卡| 国产在线a免费观看| 成人影片麻豆国产影片免费观看 | 亚洲人成在线影院| 久久亚洲日韩精品一区二区三区| 久久夜色精品国产亚洲AV动态图 | 18禁超污无遮挡无码免费网站| 三级毛片在线免费观看| 免费无码又爽又刺激一高潮| 成人片黄网站色大片免费观看APP| a级毛片在线免费观看| 久久午夜免费鲁丝片| 91精品国产免费久久国语蜜臀| 亚洲成人免费网站|