Time of Update: 2015-07-09
標籤:tomcat 伺服器 https 認證 Windows下的配置:第一步:為伺服器產生認證使用keytool 為 Tomcat 產生認證,假定目標機器的網域名稱是“ localhost ”, keystore 檔案存放在“ d:\tomcat.keystore ”,口令為“ password ”,使用如下命令產生:> keytool -genkey -
Time of Update: 2015-07-10
js簡易漂亮的提示框,js<span style="font-size:14px;">function showTips(txt, time, status) {var htmlCon = '';if (txt != '') {if (status != 0 && status != undefined) {htmlCon = '<div class="tipsBox" style=
Time of Update: 2015-07-10
javascript類比類的最佳實務,javascript最佳實務1:如何類比一個類在sencha touch2 系列裡面定義一個類和new出這個類的對象Ext.define("Animal", {config: {name: null},constructor: function(config) {this.initConfig(config);},speak: function() {console.log('說點什麼');}})var
Time of Update: 2015-07-10
JSTL開發執行個體詳解,jstl執行個體詳解 現在做一個web項目,需要實現以下功能 選著不同的選項,顯示不同的內容。 那麼顯然需要用到JSTL裡的選擇標籤。 下面是實現方案: 前端的資料是後端服務給的,比如,grade欄位是true則表明已經評分,id==null則表明沒有提交。<!-- 作業列表 --> <div id="homeworkDetail"> <div
Time of Update: 2015-07-10
Nginx事件處理中的connection和read、write事件的關聯,nginxconnection/********************************************************************* * Author : Samson * Date : 07/08/2015 * Test
Time of Update: 2015-07-10
模仿福士點評過濾框,模仿福士點評相關的js代碼:$('#control-part-1').click(function(){ $(this).css('backgroundColor','#fff'); $('#part-1').css('display','block');
Time of Update: 2015-07-10
網頁固定側欄的做法,側欄做法固定側邊的做法有很多種,今天為大家介紹一種非常簡單的做法。整個html文檔只有23行代碼就搞定了。網上也有很多做法,但是都太過複雜,一大堆代碼。而且有的很採用一些jquery的一些外掛程式。側欄的做法和頂部、頁尾都大致雷同。掌握其中的一種,其他的都很容易實現。常見的例子有:新浪微博的功能表列,新浪體育的右側二維碼掃描等功能都是這樣的實現。這種固定特定部位,而不隨捲軸滾動的做法,見下面代碼:<!DOCTYPE
Time of Update: 2015-07-10
jQeury入門:操作元素 Manipulating Elements,jqeurymanipulating 更完整的jQuery操作方法,參見 Manipulation documentation on
Time of Update: 2015-07-09
百度UEditor使用,百度ueditor*要點:1. 把ueditor的樣式與容器綁定 2.
Time of Update: 2015-07-09
JS-JavaScript學習筆記(一),javascript學習筆記javaScript1.文檔的輸出:document.write() 可輸出字元,運算式,html標籤,函數2.任何類型和字串相加,都會被轉換成字串類型。例如:var i=5; var j="5"; var k=i+j; 結果:k=553.運算子優先順序(由高到低)算術操作符->比較操作符->邏輯操作符->"="賦值操作符
Time of Update: 2015-07-09
學習easyui疑問(一),學習easyui疑問 如果你跟我一樣是初學easyui的話,當然前提你要對html、csss、javascript有一定的瞭解了,你會發現我們想使用easyui中的控制項時,會發現class=“easyui-panel”等類似的樣式類,我們在所引用的css檔案中是找不到的。 這是為什麼呢?初始的時候或許你跟我一樣,花了比較長的時間去找css檔案中的樣式類,但都是無功而返。當我開啟easyui.min.js會驚喜的發現原來問題在於此:
Time of Update: 2015-07-11
python學習筆記二,python學習筆記第13章 for和while迴圈1.for比while的執行速度快,python學習手冊的作者一直重啟強調這一點,絕對不嫌囉嗦2.for的用法特別多a.for x in list:,跟C#裡的foreach類似,但是對x的修改不能改變原值,除非x是對象的引用(如果要修改原值,只能使用b用法,並且對list[idx]賦值)b.for idx in range(10):,range可以產生有序整數賦&
Time of Update: 2015-07-10
ICV_DEF_FIND_STUMP_THRESHOLD( suffix, type, error )弱分類器最佳閾值的確定,貝葉斯分類器原始碼在opencv庫裡面的cvboost.cpp檔案裡面,該宏的總體思路是通過定義帶參數的宏,把參數傳遞給宏內部的函數,然後進行一系列的計算,並最終根據一定的演算法找到合適的閾值。具體解析如下:#define ICV_DEF_FIND_STUMP_THRESHOLD( suffix, type, error )
Time of Update: 2015-07-10
java含參建構函式初始化,java參建構函式</pre><pre name="code" class="java">package com.mejustdoit;public class Component1 {public Component1(int i) {// TODO Auto-generated constructor stubSystem.out.println("Component1"+i);}
Time of Update: 2015-07-10
LeetCode131:Palindrome Partitioning,partition Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = “aab”, Return [
Time of Update: 2015-07-10
將一個4X4的數組進行逆時針旋轉90度後輸出,要求原數組資料隨機輸入,4x490度//將一個4X4的數組進行逆時針旋轉90度後輸出,要求原數組資料隨機輸入#include<stdio.h>int main(){int a[4][4],b[4][4],i,j;//a存放原是數組資料,b存放旋轉後的數組資料printf("please input 16
Time of Update: 2015-07-10
2015華為機試—— 輸入整型數組和排序標識,對其元素按照升序或降序進行排序,2015華為介面說明原型:void sortIntegerArray(Integer[] pIntegerArray, int iSortFlag);輸入參數: Integer[] pIntegerArray:整型數組int iSortFlag:排序標識:0表示按升序,1表示按降序輸出參數:
Time of Update: 2015-07-10
MyBatis批量增刪改查操作,mybatis增刪 前文我們介紹了MyBatis基本的增刪該查操作,本文介紹批量的增刪改查操作。前文地址:http://blog.csdn.net/mahoking/article/details/43673741批量增加操作步驟1. 在介面UserMapper中添加批量增加方法。/** * 批量增加操作 * @param users */ public void
Time of Update: 2015-07-10
17.合并兩個排序的鏈表,17合并兩個排序當代碼試圖訪問null 指標指向的記憶體時程式就會崩潰,從而導致魯棒性問題。所以要對空鏈表單獨處理。ListNode* Merge(ListNode* pHead1, ListNode* pHead2){if (pHead1 == NULL)return pHead2;else if (pHead2 == NULL)return pHead1;ListNode* pMergedHead = NULL;if (pHead1->m_nValue
Time of Update: 2015-07-09
解決方案:Resharper對系統關鍵字提示‘can not resolve symbol XXX’,並且顯示紅色,但是編譯沒有問題,resharperresolve環境:Visual studio 2013 community Update 4 + Resharper 8.2 + Windows 7現象:我的C#工程編譯沒有問題, 但是在代碼編輯器中系統關鍵字顯示紅色, 提示系統關鍵字提示‘can not resolve symbol