Time of Update: 2015-04-15
標籤:懶得打字/** * 發送post請求傳遞Json */ public void jieXi() { new Thread(new Runnable() { public void run() { // Json中的引號必須加 \ 轉義 String getLightJson = "{\"object\":\"light\",\"action\":\"get\"}";
Time of Update: 2015-04-15
標籤:您可能在遇到這樣的需求時,通過搜尋,看到了這篇文章。但是很抱歉,目前我也沒有什麼好的解決辦法。而這個問題的提出,也是我的同事在偶然間提到的。目前,我所見的小米在4.4以上的系統中提供了這樣的功能,不知道其他手機系統是否也有,同時還不知道具體的操作是怎樣,比如是不是僅有系統內建應用有?顯示在通知欄上的訊息和顯示在表徵圖上的訊息有什麼不同?等等。當然,我也知道一點原理
Time of Update: 2015-04-15
標籤::http://search.cpan.org/CPAN/authors/id/Z/ZI/ZIGOROU/Nagios-Plugins-Memcached-0.02.tar.gzhttp://cpan.uwinnipeg.ca/cpan/authors/id/Z/ZI/ZIGOROU/Nagios-Plugins-Memcached-0.02.tar.gz這個指令碼是用perl編的,所以你要先確保自己的機器裡面是否有perl環境,不過一般都會預設安裝[[email protect
Time of Update: 2015-04-15
標籤:nagios在啟動時報錯# service nagios restartRunning configuration check…done.Stopping nagios: done.Starting nagios:This account is currently not available.done.這個報錯看起來有點礙眼,但實際上nagios是啟動正常的。如果要去掉這個資訊提示需要把/etc/passwd裡的/sbin/nologin修改成/bin/bash (
Time of Update: 2015-04-15
標籤:IOS 系統開關控制項簡單使用總結:初始化:- (instancetype)initWithFrame:(CGRect)frame; 這個frame是沒有意義的,系統的開關控制項大小是確定的。設定開關開啟狀態時的顏色@property(nonatomic, retain) UIColor *onTintColor;設定開關風格顏色@property(nonatomic, retain) UIColor *tintColor;設定開關按鈕顏色@property(nonatomic,
Time of Update: 2015-04-15
標籤:cacti nagios [[email protected]]# mysql -u root -pmysql> use cacti;mysql> select * from user_auth;mysql> update user_auth set password=md5("cactipasswd") where
Time of Update: 2015-04-15
標籤:android 應用 手機 manifest 在不少應用中都會發生出現螢幕方向改變,但是在改變的時候又會發生什麼事情呢?我們寫一個app測試一下代碼在這裡:http://download.csdn.net/detail/edwardwayne/8594291我們在mainActivity中寫了android生命週期中幾個重要的階段onCreate,onRe
Time of Update: 2015-04-15
標籤:March 11 message, the reporter discovered that a couple of days ago, men‘s brand Sea Orchid Residence announced the 2014 Annual Report - income of 12.338 billion yuan, a rise of 72.56%. The report shows that in 2015 Sea Orchid Residence will
Time of Update: 2015-04-15
標籤:ios開發 多線程 線程 ios 非同步 NSOperation 依賴關係,就像你和女友,互相需要對方一樣。非常有意思。#import "ViewController.h"@interface ViewController ()@end@implementation ViewController-
Time of Update: 2015-04-15
標籤:1、使用equals( )方法比較兩個字串是否相等。它具有如下的一般形式:boolean equals(Object str)這裡str是一個用來與調用字串(String)對象做比較的字串(String)對象。如果兩個字串具有相同的字元和長度,它返回true,否則返回false。這種比較是區分大小寫。2、為了執行忽略大小寫比較,可以調用equalsIgnoreCase( )方法。當比較兩個字串時,它會認為A-Z和a-z是一樣的。其一般形式如下:boolean
Time of Update: 2015-04-15
標籤:ios 庫 github 下拉-重新整理 原創Blog,轉載請註明出處 blog.csdn.net/hello_hwc 我的Github https://github.com/wenchenhuang/WCPullRefreshControl前言: 寫IOS代碼有段時間了,是時候寫幾個Github的庫了,即鍛煉了自己,又能夠協助需要的人。
Time of Update: 2015-04-15
標籤:spannablestring textview android開發 MainActivity.java:import android.app.Activity;import android.content.Intent;import android.graphics.Color;import android.os.Bundle;import
Time of Update: 2015-04-15
標籤: class MyView extends View { float phase; PathEffect[] effects = new PathEffect[7]; int[] colors; private Paint paint; Path path; public MyView(Context context) { super(context); paint = new Paint();
Time of Update: 2015-04-15
標籤: 最近做安卓開發,遇到一個問題,就是在匯入本地或者遠程項目,會出現大量錯誤,主要就是can‘t resovled,然後整個項目都是錯誤,這個問題困擾我很久了,今天終於發現原因了。。 有一個典型特徵,你會發現gen檔案裡是空的,也就是沒有R檔案,這樣就不能避免控制項找不到路徑,這樣的話,原因是-------->匯入項目的時候匯入錯誤!!! 匯入項目時,選擇import->general->Existing
Time of Update: 2015-04-15
標籤:1.載入static library *.a檔案{$O-}function XE4_testframe: testframe; cdecl; external ‘libtestframe.a‘ name ‘OBJC_CLASS_$_testframe‘;2.載入動態庫procedure XE4_AVFoundation; cdecl; external
Time of Update: 2015-04-15
標籤:- (void)viewDidLoad { [super viewDidLoad]; UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button setFrame:CGRectMake(100, 100, 60, 40)]; [button setTitle:@"Play" forState:UIControlStateNormal]; [button
Time of Update: 2015-04-15
標籤:ios view ios應用中控制器view的建立方式有三種:storyboard、xib和代碼,當APP啟動後View的具體載入過程(蘋果官方): 650) this.width=650;" src="http://images.cnitblog.com/
Time of Update: 2015-04-15
標籤:elasticsearch nested 嵌套 Setting up a nested field is simple—where you would normally specify type object, make it type&nb
Time of Update: 2015-04-15
標籤: Android3.0提供了drag/drop架構,利用此架構可以實現使用拖放手勢將一個view拖放到當前布局中的另外一個view中。本文將介紹如何使用拖放架構。一、實現拖放的步驟 首先,我們先瞭解一下拖放過程,從官方文檔可以知道,整個拖放過程共分為4個步驟,具體如下: 1、 Started:啟動拖放,主要是調用被拖放View的startDrag方法。此方法原型為:public
Time of Update: 2015-04-15
標籤:ios本文介紹了如何通過API擷取IOS裝置的電量資訊。 行動裝置的電量消耗一直是一個大問題,APP開發中也不可避免地需要收集APP運行時的電量消耗資訊,這也是APP效能的衡量標準之一。 首先需要開啟iphone設定中的電量統計。1.通過Instruments擷取Instruments工具內建的Energy Diagnostics工具可以擷取到iphone特定時段的電量消耗資訊。具體步驟: 開啟Developer選項中的Start Logging —> 斷開iphone與PC串連 —