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://stormzhang.com/devtools/2014/11/25/android-studio-tutorial1/背景相信大家對Android Studio已經不陌生了,Android Studio是Google於2013
Time of Update: 2015-04-15
標籤: 本地類型大小位元組booleanjboolean8位(取決於VM)1bytejbyte8位1charjchar16位2shortjshort16位2intjint32位4longjlong64位8floatjfloat32位4doublejdouble64位8 效能主要取決於以下三個因素:CPU如何操縱特定的資料類型;資料和指令需要佔用多少儲存空間;
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
標籤://// FirstViewController.h// 控制器資料傳遞//// Created by wangtouwang on 15/4/15.// Copyright (c) 2015年 wangtouwang. All rights reserved.//#import <UIKit/UIKit.h>@interface FirstViewController : UIViewController@end//// FirstViewController.m/
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-16
標籤:一、UIScrollView的用法1> 將需要展示的內容添加到UIScrollView中2> 設定UIScrollView的contentSize屬性,告訴UIScrollView所有內容的尺寸,也就是告訴它滾動的範圍(能滾多遠,滾到哪裡是盡頭)二、UIScrollView無法滾動,可能是以下原因1> 沒有設定contentSize2> scrollEnabled = NO3> 沒有接收到觸摸事件:userInteractionEnabled =
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
標籤:原因:安卓內建的控制項沒有鏡像功能,沒關係我們可以自己實現一個。其實很簡單,重寫系統控制項的draw方法,不是ondraw方法。具體可以看源碼解決方案:這是我寫的Seekbar的鏡像,公司需求package com.finals.oilrank.util.view;import android.content.Context;import android.graphics.Canvas;import android.util.AttributeSet;import
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
標籤: Gradle配置Build設定檔gradle.build中添加如下tasktask clearJar(type: Delete) { delete ‘build/outputs/mylib.jar‘}task copyJar(type: Copy) { from(‘build/intermediates/bundles/release/‘) into(‘build/outputs/libs/‘) include(‘classes.jar‘)
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
標籤:先看看performClick()源碼:public boolean performClick() { sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED); if (mOnClickListener != null) { playSoundEffect(SoundEffectConstants.CLICK);
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