Time of Update: 2016-04-15
標籤:from __future__ import unicode_literalsfrom django.contrib.auth.models import Userfrom django.db import models# Create your models here.class Host(models.Model): hostame = models.CharField(max_length=64) ip = models.GenericIPAddressField()
Time of Update: 2016-04-15
標籤:有效資料設計的目標一個合格的資料庫應該能夠滿足操作:crud(create-建立,read--讀取,update--更新,delete--刪除)一個合格的有效資料庫設計需要滿足一下特性 1. retrieval(檢索)-------------資料如果沒有辦法被檢索出來就不叫資料庫
Time of Update: 2016-04-15
標籤:1 //mysql 5.6.26安裝前先解壓到d盤根目錄2 cd D:\mysqlwinx64\bin3 mysqld --install //註冊服務4 net start mysql//啟動服務5 net start mysql//啟動服務6 修改資料管理員密碼 預設空密碼 7 mysqladmin -u root password "root"8 9 登入資料庫 mysql –uroot -p 使用navicat
Time of Update: 2016-04-15
標籤:主要代碼如下/// <summary> /// 讀取指定頁面的資料 /// </summary> /// <param name="pagePerCount">每頁顯示的行數</param> /// <param name="page">當前第幾頁</param> /// <returns>總行數</returns>
Time of Update: 2016-04-15
標籤:以Linux平台ArduPlane為例\ArduPlane\Plane.cpp 定義Plane類 繼承自AP_HAL::HAL::Callbacks ,擷取hal對象。\ArduPlane\ArduPlane.cpp 實現setup和loop函數 放置main函數\libraries\AP_HAL\AP_HAL_Main.h 預先處理定義了兩種main函數 一種預設setup
Time of Update: 2016-04-15
標籤:《構建之法》閱讀筆記03—代碼規範
Time of Update: 2016-04-15
標籤:station表列名:stationId-----網站編號stationlon----網站經度stationlat----網站緯度record表列名:recorkId---------記錄編號stationGoId------借出網站編號stationBackId----歸還網站編號查詢結果顯示列:stationGoId-----借出網站編號GoStationlon----借出網站經度GoStationlat----借出網站緯度stationBackId---歸還網站編號BackStati
Time of Update: 2016-04-15
標籤: //思路:就是先將要複製的多媒體檔案讀取出來,然後再寫入到你指定的位置 //C:\Users\Administrator\Desktop\01類.avi string source = @"C:\Users\Administrator\Desktop\01類.avi"; string target = @"C:\Users\Administrator\Desktop\複製.avi";
Time of Update: 2016-04-15
標籤: Link: https://leetcode.com/problems/remove-duplicates-from-sorted-array/Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array,
Time of Update: 2016-04-15
標籤:詐個屍。 1.飛行員配對方案問題二分圖匹配。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <queue> 6 using namespace std; 7 const int INF = 1e9; 8 const int maxn = 2e5 + 10;
Time of Update: 2016-04-15
標籤:1.9-docker資料管理Docker 資料管理容器的空間,只是使用宿主機硬碟的一部分,一般很小。在容器中產生的資料,除非匯出成鏡像,否則停止或者刪除容器,原來產生的資料也隨之丟失。可以把宿主機的一個目錄,掛載到容器中,產生的資料都寫入這個目錄,這樣避免了資料的丟失。1. 掛載本地的目錄到容器裡docker run -tid -v /data/:/data wyp bash //-v
Time of Update: 2016-04-15
標籤:不能安裝!!為什麼,原來是有個3.8的網站不在available範圍內,去google找到了答案:Q:eclipsercp.org問題---->深入淺出rcp1. Help->Install New Software...2. Click Available Update sites link3. Add http://download.eclipse.org/eclipse/updates/3.8(extracted from
Time of Update: 2016-04-15
標籤: 這幾天將《構建之法》的第六章“敏捷流程”和第七章“MSF”讀了一讀,寫一下閱讀筆記。 第六章提到了敏捷流程。在軟體工程的語境裡,“敏捷流程”是一系列價值觀和方法論的集合。敏捷開發原則有12條,為: 1. 儘早並持續地交付有價值的軟體以滿足顧客需求 2. 敏捷流程歡迎需求的變化,並利用這種變化來提高使用者的競爭優勢 3. 經常發布可用的軟體,發布間隔可以從幾周到幾個月
Time of Update: 2016-04-15
標籤:使用artdialog可以實現嵌套頁面間的通訊.一.引入外掛程式//artdialog是建立在jquery上面的所以要首先引入jquery<script src="__CLASSTPL__/js/jquery-2.1.1.js"></script><script src="__CLASSTPL__/js/jquery.artDialog.js"></script><script
Time of Update: 2016-04-15
標籤:使用python的Flask架構時,參考《Flask Web開發》一書時,發現書中可以在全域使用Permission.FOLLOW變數。但是自己在嘗試是,確提示變數沒有定義。經過搜尋,找到了答案。在Flask架構中,把變數註冊到全域,有兩個方法:1、在主app或者藍本中通過裝飾器註冊@app.context_processordef include_permission_class(): return {‘Permission‘:
Time of Update: 2016-04-15
標籤:@Component中有屬性值 selector,template(templateUrl),styles(styleUrl),directives,proviers,inputs,outputs。inputs 和outputs是用來幹嘛的呢??? first.component.tsimport {Component} from ‘angular2/core‘import {FistChildComponent} from
Time of Update: 2016-04-15
標籤:Factory 方法模式是對簡單原廠模式的改進,它為每個對象增加了一個工廠類,專門用於產生該對象。Factory 方法實現加減乘除例子如下:1 操作類 public class Operation { public double NumberA { get; set; } public double NumberB { get; set; } public virtual double GetResult() {
Time of Update: 2016-04-15
標籤:拋出範例: Integer a1 = new Integer(123); Integer a2 = new Integer(123); System.out.println(a1 == a2);
Time of Update: 2016-04-15
標籤://擷取路徑的方法 //string location1 = this.GetType().Assembly.Location; //string location2 = System.AppDomain.CurrentDomain.BaseDirectory; //string location3 = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase; /
Time of Update: 2016-04-15
標籤:https://kathleen1974.wordpress.com/category/itext-pdf/In one of my project, we need to give the user a web UI (a textbox) to enter some text and allow input of superscriptand subscript tag <sup> and <sub>.And this text entered by user