Time of Update: 2018-08-03
一、Animation簡介 動畫原本是指由許多連續的圖片在人眼前面快速播放,肉眼因視覺殘像產生錯覺,而誤以為畫面活動的作品。 但在 Unity3D 中的“ Animation”【動畫】 系統應該這樣理解——用於為遊戲者自動播放人物動作或自動示範物體運動路徑、色澤、尺寸變化,以及事件觸發的整合組件。 我們可以先看一個執行個體感受一下: 上一節我們知道怎麼建造一個地形,添加系統的playercontroller資源,現在我們先簡單的建一個地形出來,匯入StandardAsset的the
Time of Update: 2018-08-03
Program.cs代碼: using HtmlAgilityPack;using System;using System.IO;using System.Linq;namespace MyDemo{ class Program { static void Main(string[] args) { for (int i = 0; i < 100; i++) { var
Time of Update: 2018-08-03
在使用虛擬機器過程中,因為時常要切換到win7下調試,所以比較麻煩。所以最近嘗試在win下用SSH Secure Shell Client登陸虛擬機器,為了避免反覆的su切換到root,所以希望以root使用者登陸。 1.首先win7安裝SSH Secure Shell Client,Ubuntu下也使用apt-get安裝openssh-server。 2.將 /etc/ssh/sshd_confg中PermitRootLogin no 改為yes,重新啟動ssh服務。
Time of Update: 2018-08-03
function appIconUpload(){ var fileObj = document.getElementById("up_icon").files[0]; // js 擷取檔案對象if(fileObj!=null){ var orgId = $("#orgId").val(); var FileController = "/pluginManage/upload2.do"; // 接收上傳檔案的後台地址
Time of Update: 2018-08-03
使用的開源dhcp client代碼,其中希望將dscp設定為0xC0,但是發現discovery包可以設定成功,但是renew資料包不能,查看代碼發現discovery資料包是跑raw socket的,但是renew則是通過udp socket發送,查看核心代碼發現raw socket不通過netfilter規則,具體如下: kernel/linux/net/packet/af_packet.c packet_sendmsg->dev_queue_xmit
Time of Update: 2018-08-03
1、在做官網上的例子的時候,一直沒有搜尋方塊出來,一直都是普通的<select>標籤實現的效果而已。糾結了好久好久都不知道是咋回事,後來開啟瀏覽器的開發人員工具時,發現提示下圖的錯誤: 才突然意識到,自己傻瓜了,Select2是基於jQuery的一個外掛程式,沒有引用jQuery,Select2腫麼可能有用嘛。真是笨到家了-_-! 也怪自己不好,直接將官網給的代碼寫了一遍就直接運行了。
Time of Update: 2018-08-03
Linux下的JDK和OpenJDK有什麼具體的區別 大多數Linux發行版本裡,內建或者通過軟體源安裝JDK的話,都是安裝的openjdk. openjdk是jdk的開放原始碼版本,以GPL協議的形式放出。 openjdk只包含最精簡的JDK 在安裝openjdk的機器上,輸入“Java -version”顯示的是openjdk openJDK 與 Sun 的 JDK 功能都是一樣的,只是著作權資訊不一樣。 OpenJDK
Time of Update: 2018-08-03
連結:http://www.cppblog.com/API/archive/2014/12/09/209070.aspx protobuf是Google開發的一個序列化架構,類似XML,JSON,基於二進位,比傳統的XML表示同樣一段內容要短小得多。通過protobuf,可以很輕鬆的調用相關方法來完成業務資料的序列化與還原序列化。protobuf repeated類型相當於std的vector,可以用來存放N個相同類型的內容,文章將簡單介紹protobuf repeated的使用。
Time of Update: 2018-08-03
GetDocLinks.cs代碼: using System;using System.Collections;namespace HtmlAgilityPack.Samples{ //擷取文檔連結 class GetDocLinks { [STAThread] static void Main(string[] args) { HtmlWeb hw = new HtmlWeb();
Time of Update: 2018-08-03
根據不同的索引排序結構體。其中tag的意思是指定一個標記,如果不指定的話預設是從0開始,以下例子展示了這兩種情況 代碼: #include <string>#include <iostream>#include <boost/multi_index_container.hpp>#include <boost/multi_index/member.hpp>#include
Time of Update: 2018-08-03
boost鎖的概述: boost庫中提供了mutex類與lock類,通過組合可以輕易的構建讀寫鎖與互斥鎖。 舉個通俗的例子,如果共用資源是一個自動鎖住的房間,互斥體是鑰匙,進入房間必須取鑰匙,離開房間應該還鑰匙。這就對應著互斥體的lock(取鑰匙)和unlock(還鑰匙)。
Time of Update: 2018-08-03
CUDA5.0+VS2008+VisualAssist安裝 轉自:http://blog.163.com/qimo601@126/blog/static/15822093201352084242102/ 1、軟硬體環境 作業系統:Windows7 台式工控機 GPU:Geforce GT420(辦公室另外一台台式機的顯卡) 開發環境:VisualStudio200
Time of Update: 2018-08-03
官網layui table示範頁面:http://www.layui.com/demo/table.html 樣本截圖: 頁面引入layui.css、 layui.js <div id="pTable" style="width: 1200px;"> <table class="layui-table"
Time of Update: 2018-08-03
一直在鼓搗DLL,每天的工作都是調試一個一個的DLL,往DLL裡面添加自己的代碼,但是對於DLL一直不太瞭解啊。今天一查資料,才發現自己對於DLL編寫的一些基本知識也不瞭解。要學習,這篇文章先總結DLL的匯出函數的方法。 1. 首先說一下如何建立一個普通的DLL工程。(以VS2008為例) New
Time of Update: 2018-08-03
HtmlDocument 工具 + 生產力 HtmlDocument 方法 名稱 描述 DetectEncoding(Stream) Detects the encoding of an HTML stream. DetectEncoding(TextReader) Detects the encoding of an HTML text
Time of Update: 2018-08-03
Traversing允許您遍曆HTML節點。 屬性 名稱 描述 ChildNodes Gets all the children of the node. FirstChild Gets the first child of the node. LastChild Gets the last child of
Time of Update: 2018-08-03
Selectors允許您從HtmlDocument中選擇HTML節點。 Methods 名稱 描述 SelectNodes() Selects a list of nodes matching the XPath expression. SelectSingleNode(String) Selects the first XmlNode that
Time of Update: 2018-08-03
首先安裝Win2000 DDK; 全選; 完成後的目錄結構;src下是附帶例子; 例子包括以下類別:audio, debugging, general, ime, input, kernel, mdk, network, preview, print, setup, smartcrd, storage, vdd, video, wdm, win_me; 下面用Understand大體瞭解一下例子代碼的情況;
Time of Update: 2018-08-03
HTML分析器允許您解析HTML並返回一個HtmlDocument。 Html Parser Name Description From File Loads an HTML document from a file. From String Loads the HTML document from the specified string.
Time of Update: 2018-08-03
jqGrid 是一個用來顯示網格資料的jQuery外掛程式,通過使用jqGrid可以輕鬆實現前端頁面與後台資料的ajax非同步通訊。 本篇文章要講的是當利用jqGrid提供的api介面,實現Grid內容多選時,所有所選行置頂的顯示效果,方便查看所有選中內容。 前提:jqGrid設定為多選,表格行較多表格出現捲軸,尤其當不分頁顯示資料較多,而所選項目比較分散;