Time of Update: 2015-05-27
Python學習第二篇之tuple,python第二篇tuple一、元組的值不能被修改#!/usr/bin/pythontup =("a","b","c");tup[1]=7執行後出現如下錯誤:Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\time.py", line 3, in
Time of Update: 2015-05-27
android(8) ViewPager頁面滑動切換,androidviewpager一.ViewPager頁面滑動切換實現: 借鑒了別人的源碼,還是比較容易實現的,而且這種效果還是經常使用的,特此記錄一下::主介面:public class MainActivity extends Activity {private ViewPager mPager;// 頁卡內容private List<View> listViews; //
Time of Update: 2015-05-27
支付中文亂碼 java,支付中文亂碼java網上太多php的,java的完全找不到,測試了幾天,這個行得通,注意下方紅色文字/*** 購買產品下單* @param mm* @return*/@RequestMapping("/pay")public void pay(String openid,Integer hotelid,Integer mid,Integer pid,String body,String attach,Integer
Time of Update: 2015-05-27
Android開發:SurfaceView基本用法總結,androidsurfaceview本文主要講解如何使用SurfaceView,旨在協助大家快速上手SurfaceView開發。由於上篇文章《Android開發:SurfaceView基本用法總結及開發問題分享》 排版不佳,所以另起一篇單獨介紹SurfaceView的基本用法總結。轉載請註明作者xiong_it和連結:http://blog.csdn.net/xiong_it/article/details/45966309,謝謝
Time of Update: 2015-05-27
iOS CoreData詳解(四)Faulting and Uniquing,coredatafaulting 原創blog,轉載請註明出處 blog.csdn.net/hello_hwc 歡迎關注我的iOS SDK詳解專欄 http://blog.csdn.net/column/details/huangwenchen-ios-sdk.html前言,faulting 和 uniquing是理解CoreData的兩個比較關鍵的概念,這裡詳細的講解一下。
Time of Update: 2015-05-27
Android問題集錦之四十:Android NDK: Could not find application project directory,androidndk 記得前陣子編譯so庫直接使用ndk-build搞定,今天使用卻報錯如下:$ ndk-buildAndroid NDK: Could not find application project directory ! Android NDK: Please define the NDK_PROJECT_PATH
Time of Update: 2015-05-27
社會安全號碼校正,社會安全號碼驗證之前用Regex進行社會安全號碼校正,但是有時候錯誤的社會安全號碼也能通過前端校正,後來發現這個方法還是不錯,把代碼貼出了給大家:// 社會安全號碼驗證+(BOOL)validateIdentityCard:(NSString*)cardNo{ if (cardNo.length != 18) { return NO; } NSArray* codeArray = [NSArray
Time of Update: 2015-05-27
Android對話方塊使用詳解(二),android使用詳解部落格地址:http://blog.csdn.net/u012637501/article/details/46003413一、使用PopupWindow建立對話方塊風格的視窗 使用PopupWindow建立對話方塊風格的視窗步驟如下: >調用PopupWindow的構造器建立PopupWindow對象;
Time of Update: 2015-05-27
Android塗鴉技術及刮刮樂樣本分析,android刮刮樂概述:
Time of Update: 2015-05-27
Android學習之 Scroller的介紹與使用,androidscroller 類概述Android裡Scroller類是為了實現View平滑滾動的一個Helper類。通常在自訂的View時使用,在View中定義一個私人成員mScroller = new
Time of Update: 2015-05-27
android 藍芽低功耗(BLE)非常棒的工具類,擷取小米手環的步數,androidble 現在物聯網搞的轟轟烈烈的,小米的手環等一系列產品,下面我們就來研究一下小米手環的記步功能 工具類package com.zsl.bluetoothdemo.ble;import android.bluetooth.BluetoothAdapter;import android.bluetooth.BluetoothDevice;import
Time of Update: 2015-05-27
前方高能--Retrofit,高能--Retrofit Retrofit A type-safe REST client for Android and JavaAndroid中非常有名的網路架構 官網 :http://square.github.io/retrofit/ 參考項目: http://square.github.io/okhttp/ Android 樣本項目: https://github.com/goodev/RetrofitDemoRetrofit vs
Time of Update: 2015-05-27
介紹Model-View-Presenter在Android中的應用,modelviewpresenter 這篇文章是我學習MVP模式時翻譯的,原文是Konstantin Mikheev所寫,傳送門。
Time of Update: 2015-05-27
【Fragment精深系列7】Fragment切換最佳化,fragment切換 一、Fragment+RadioGroup 在項目中需要進行Fragment的切換,一直都是用replace()方法來替換Fragment:然後總感覺切換的時候有些卡頓。1、以前的代碼:radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override
Time of Update: 2015-05-27
論學編程的重要性,論學編程重要性學會編程益處多多。學會編程有很多好處。除了明顯的如可以建立網站和web應用,在你找工作的過程中,即使你找的不是天天寫碼的工作,擁有編程技能也可能會讓你脫穎而出。本文摘編譯自Skillcrush,作者LAURENCE BRADFORD。在探索編碼技能能夠為你帶來所有工作的可能性之前,先說下我的一個例子。我獲得了一個與代碼無關的工作,卻是因為我會寫代碼。這個工作機會大部分是與我的技能和協作或營銷有關。舉個我為Josh
Time of Update: 2015-05-27
iOS 類比出一個半透明的ViewController presentViewController 實現,ioscontroller跳轉最近項目有需求, 需要模態初一個半透明的視圖, 好多人都碰到這個問題吧, 在目標視圖中設定背景顏色然後發現模態動作結束後變成了黑色或者不是半透明的顏色。所以今天來告訴大家解決方案- (IBAction)Avtion1:(id)sender { TestViewController * testVC = [TestViewController new];
Time of Update: 2015-05-27
iOS 簡單圖文混排01,ios圖文混011、在Label中顯示圖片// 圖文混排顯示- (void)setLabel{// NSTextAttachment - 附件NSTextAttachment *attachMent = [[NSTextAttachment alloc] init];// 為附件設定圖片attachMent.image = [UIImage imageNamed: @"d_aini"];// 鍵附件添加到圖文混排NSAttributedString
Time of Update: 2015-05-27
AdapterViewFlipper學習筆記,adapterviewflipper布局:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
Time of Update: 2015-05-27
視圖動畫和幀動畫,視圖動畫幀動畫 轉載請註明出處:http://blog.csdn.net/ZhouLi_CSDN/article/details/45971421View Animaiton通常使用xml檔案定義動畫,這樣易讀,重用。xml寫在res/anim/路徑下。 下面是例子:<set android:shareInterpolator="false"> <scale
Time of Update: 2015-05-27
發布輕開平台移動App伺服器,發布平台app伺服器複製webeasy目錄到D:\下,然後進入%TOMCAT_HOME%\conf目錄,用文字編輯器(如:EditPlus)開啟server.xml檔案,在“Host”標籤下添加一“Context”標籤:<Contextpath="/webeasy" docBase="D:/webeasy"reloadable="true" crossContext="true"