Time of Update: 2015-04-30
標籤:應用 vba excel2013 Sub IF條件判斷() If Sheet1.Range("a1") >= 90 Then Sheet1.Range("b1") = "優秀" ElseIf Sheet1.Range("a1") >= 80 Then
Time of Update: 2015-04-30
標籤:salt saltstacksaltstack的安裝簡述:在之前應公司要求配置了zabbix監控所有的伺服器,在管理zabbix,有時候需要監控agent機的某些效能時,預設的zabbix沒有相應的模板去實現,因此需要自己去寫相應的指令碼去監控,這樣的話就需要在每台agent機上都寫一遍指令碼,由於公司的伺服器數量比較多,感覺這樣一台一台的添加會很慢,而且很耗時,就研究使用saltstack實現自動化營運環境:角色ip系統所屬組salt
Time of Update: 2015-04-30
標籤:防火牆 linux 技能 iptables 安全 對於linux使用者來說,iptable是必不可少的必備技能之一!
Time of Update: 2015-04-30
標籤:ospf lesson 3650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/6C/25/wKioL1VA443gWIAhAAL4RllqrGw649.jpg" style="float:none;" title="2015-4-29 19-45-07.png" alt="wKioL1VA443gWIAhAAL4RllqrGw649.jpg" />650) this.width=650;"
Time of Update: 2015-04-30
標籤:#include<stdio.h>#define N 24typedef struct node{ char name[10]; /*作業名*/ int proc; //進程優先數*/ int ArriTime;//到達時間int StartTime;//開始時間int NeedTime; /*進程所需時間*/ int RunTime; /*已耗用時間*/ int EndTime;//結束時間 int ZzTime;//周轉時間 float
Time of Update: 2015-04-29
標籤:題目描述:http://www.oj.swust.edu.cn/problem/show/2469Description最近小Y迷上了數學,總是在思考各種數學問題。有一天,他不小心把墨水灑在草稿紙上。他現在能看到的是“2?3?1?4”(?表示看不清的地方)。小Y的記憶力不錯,他知道:1、每個?只會是“+”、“-”,“=”三個符號之一。2、總共有且僅有一個“=”。3、原式一
Time of Update: 2015-04-30
標籤:自訂adlertdialog/** * 自訂AlertDialog * 用於退出程式按鈕 * */public class AlertDialog {Context context;android.app.AlertDialog ad;TextView titleView;TextView messageView;LinearLayout buttonLayout;public AlertDialog(Context context)
Time of Update: 2015-04-30
標籤:hadoop java 重編譯 cdh Hadoop版本有很多,這裡我選擇的是cdh版本。cdh是Cloudera公司在Apache原版基礎經過加工的東西。chd具體的為:http://archive-primary.cloudera.com/cdh5/cdh/5/版本資訊如下:Hadoop:Hadoop 2.3.0-cdh5.1.0JDK:1.7.0_7
Time of Update: 2015-04-30
標籤:leetcode hash Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character
Time of Update: 2015-04-30
標籤:android viewpager 要實現效果(一)實現迴圈滑動:(1)在MyAdapter中首先修改getCount()方法中的大小,讓ViewPager可滑動頁面增多。(2)instantiateItem()方法中將position對圖片數組求餘:position%imageList.size()(3)如果viewPager設定了OnPagerChangedListener方法,裡面可能會有position,注意將po
Time of Update: 2015-04-30
標籤:CREATE SCHEMA IF NOT EXISTS book;USE book;CREATE TABLE source_words(word VARCHAR(50) NOT NULL,INDEX(word))ENGINE=MyISAM;LOAD DATA LOCAL INFILE ‘C:\\Users\\John\\Desktop\\source_words.txt‘ INTO TABLE source_words(word);SELECT COUNT(*) FROM
Time of Update: 2015-04-30
標籤:acm 福州大學第十屆程式設計競賽 題目傳送:福州大學第十屆程式設計競賽Problem A 神廟逃亡水題AC代碼:#include<cstdio>#include<cmath>#include<iostream>using namespace std;int s, h, vx, vy;int main() {int w;cin >> w;while(w--){cin >
Time of Update: 2015-04-30
標籤:代碼:#import <Foundation/Foundation.h>extern uint64_t dispatch_benchmark(size_t count, void (^block)(void));void processNumber(NSNumber *n);int main(int argc, const char * argv[]) { @autoreleasepool { // 建立一個數組並用隨機數填充
Time of Update: 2015-04-30
標籤:原題地址 LeetCode上也有這道題,直接掃一遍就行了,連數組都不用開,感覺像是蘊含了某種動歸的思想在裡面,要不怎麼是個動歸題呢 代碼: 1 #include <cmath> 2 #include <cstdio> 3 #include <vector> 4 #include <iostream> 5 #include <algorithm> 6 using namespace std; 7 8 int
Time of Update: 2015-04-30
標籤:面試題 字串 /* *!============================================================== *! FNAME: search.cpp *! BRIEF: *! AUTHR: RollStone *! EMAIL: [email protected] *! VERNO: 1.0.31 *! CREAT: 2015-04-28 23:43:04 *!
Time of Update: 2015-04-30
標籤://有101個數,其中有50個數出現了兩次,有一個數只出現了一次,找出出現一次的數#include <stdio.h>#include <stdlib.h>int main(){ int a[11] = {0}; int i; int n = 0; printf("please input the arr :"); for(i = 0;i < 11;i++) { scanf("%d",&a[i]);
Time of Update: 2015-04-29
標籤:linux linux編程 進程間通訊 共用記憶體通訊 1.核心理論共用記憶體是IPC機制中的一種,它允許兩個不相關的進程訪問同一段記憶體,這是傳遞資料的一種非常有效方式。2.函數學習建立/擷取共用記憶體函數名:shmget函數原型:int shmget(key_t key,size_t size,int shmfl
Time of Update: 2015-04-30
標籤:出處:http://blog.sina.com.cn/s/blog_59f0ac9d0101ci2j.htmlView3D在初始化時候就已經建立的Camera3D 所以有時候沒有建立Camera3D但依然可以看到3D情境。Camera3D的預設初始位置在x:0,y:0,c:-1000。Camera屬性:camea.lookAt(new
Time of Update: 2015-04-30
Subversion代碼提交中的org.apache.subversion.javahl.ClientException: svn: E200007: Commit failed異常解決,svncommitfailed引言: 在切換subversion伺服器位址之後,發生的無法正確提交代碼的問題org.apache.subversion.javahl.ClientException: svn: E200007: Commit failed (details follow), 該如何解決呢?1.&
Time of Update: 2015-04-30
NGINX配置HTTPS加密反向 Proxy訪問–自簽CA出於公司內部訪問考慮,採用的CA是本機Openssl自簽名產生的,因此無法通過互連網工信Root CA驗證,所以會出現該網站不受信任或安全性憑證無效的提示,直接跳過,直接存取即可!HTTPS的原理和訪問過程:伺服器必要條件:一個伺服器私密金鑰