Time of Update: 2015-01-07
標籤:mapped_file_source mapped_file_params mapped_file_sink #include <boost/iostreams/device/mapped_file.hpp>std::string src_path =
Time of Update: 2015-01-07
標籤::app:dexDebugError: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Program will exit. FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ‘:app:dexDebug‘.> com.android.ide.
Time of Update: 2015-01-07
標籤:GridView的XML布局:main.xml:<GridViewxmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/gridview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:numColumns="auto_fit"
Time of Update: 2015-01-07
標籤:決定不做什麼和決定做什麼同樣重要。——喬布斯,1997Tren Griffin在自己的博文中以喬布斯這句話開篇,來告訴讀者自己在此篇文章中的討論將僅限於喬布斯給他帶來的關於商業的啟發(而非他的個性等等)。同時,喬布斯說這些話的時間對於理解他的話也很重要。1.在電腦硬體方面,如果老闆幸運的話,最好的員工和普通員工可能是2和1的差別。在汽車行業,可能也是2和1的差別。但是在軟體領域,好的程式
Time of Update: 2015-01-07
標籤:所謂移動映像監測,簡單來說就是利用網路攝影機定點監測某個地區,當有移動物體經過時,網路攝影機便自動抓拍(要監測多大物體、按拍照速率都是可調的),並把拍到的映像儲存在指定目錄,實現無人監控功能。motion 是一套免費開源的移動映像監測程式(詳見http://www.lavrsen.dk/foswiki/bin/view/Motion)先去下載原始碼:https://github.com/sackmotion/motion以下操作都是在虛擬機器fedora 10
Time of Update: 2015-01-07
標籤:1. 實現代碼 private int mWidth; private int mHeight; @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) public void getDisplayMetrics() { WindowManager wm = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);
Time of Update: 2015-01-07
標籤:android.intent.action.MAIN決定應用程式最先啟動的Activityandroid.intent.category.LAUNCHER決定應用程式是否顯示在程式列表裡在網上看到文章 android.intent.action.MAIN 與
Time of Update: 2015-01-07
標籤:**注意有牆**開啟https://android.googlesource.com/platform/frameworks/base看左下角 Tags 列表,選擇最新的那個點開如今天(2015.1.7)是android-5.0.2_r1在新頁面中找到 commit 後面的那個 tgz 連結,複製連結地址,用下載工具下載即可。比如可以在VPS上下載完後再用迅雷拖回來,或者為迅雷用戶端設定ssh代理,直接下載。 打包下載Android最新源碼
Time of Update: 2015-01-07
標籤:轉摘:http://www.codeproject.com/Articles/37182/Debug-your-ASP-NET-Application-while-Hosted-on-IISThis article describes how to debug a web application which is hosted on IIS. It also describes how to select the correct process to attach to when
Time of Update: 2015-01-07
標籤:Android應用耗電量統計一直是一個很頭疼的問題,手工統計耗時太長,自動化統計又不是非常精準(執行自動化代碼需要通過USB串連,而USB又會充電,這就造成統計資料不準)。後來從前輩那裡得知可以通過adb connect來實現無線串連,下面就來說說方法。1、首先找到一台已經root的手機2、使手機與PC處於同一個網段3、下載安裝Wireless ADB4、開啟Wireless ADB,勾選Wireless
Time of Update: 2015-01-07
標籤:Using View Controllers in the Responder Chain響應鏈中使用視圖控制器View controllers are descendants of the UIResponder class and are therefore capable of handling all sorts of events. When a view does not respond to a given event, it passes that
Time of Update: 2015-01-07
標籤:從事iOS開發不經意間,已經兩年過去了,記得當初看到OC是,我根本就不知道那些個東西是什嗎?從開始學習開機,到一個個英文開始,為了能找到工作,愣是耐下心去堅持看下去。現在回想起來,很是慶幸我沒有放棄,雖然我不會寫文章但是總有那麼一點東西,會在不經意的瞬間給人些許的協助。第一:基礎一定的編程經驗這裡說的編程經驗是有編程經驗或會一門程式設計語言,對OOP有一定認識,最好是瞭解一些設計模式;但是這都不是必須的,因為我是一名體育生,在學校只是學習過flash,第一次用mac的時候都不會開機,Mac
Time of Update: 2015-01-07
標籤:9-patch 為瞭解決不同分屏下的圖片適應性,對圖片做了padding,而在android中,要給一個控制項設定背景圖,最終是要調用 setBackgroundDrawable
Time of Update: 2015-01-07
標籤:LinearLayout:被稱為線性布局,分為水平和垂直,設定的垂直或水平的屬性值,來排列全部的子項目。全部的子項目都被堆放在其他元素之後,因此一個垂直列表的每一行僅僅會有一個元素,而無論他們有多寬,而一個水平列表將會僅僅有一個行高(高度為最高子項目的高度加上邊框高度)。LinearLayout保持子項目之間的間隔以及互相對齊(相對一個元素的靠右對齊、中間對齊或者靠左對齊)。FrameLayout:被稱為架構布局,預先在螢幕中預留空白處,之後你能夠在當中填充一個單一對象。比方
Time of Update: 2015-01-07
標籤:android studio 匯入eclipse項目 一、匯入單個Eclipse項目1.在Eclipse中匯出包含有gradle的項目,操作如下:如果操作中出現finish按鈕是灰色的,將force overriding強制覆蓋勾選即可,如。操作完成後,並不會複製該項目,而是在原項目的目錄中增加了一些與gradle相關的檔案,而這些正是匯入現有項目到android
Time of Update: 2015-01-07
標籤:android studio android studio項目結構 一、瞭解Android Studio的幾種項目結構類型Android Studio提供了幾種項目結構類型ProjectPackageAndroidProject FilesProblemsProductionsTest二、ProjectExternal Libraries指項目所依賴的開發環境:java sdk 1.7和android sdk API 19
Time of Update: 2015-01-07
標籤:android 源碼 開源項目 github Android邊沿轉場效果(無縫過渡),StackPagerLayout支援像翻書一樣的邊沿滑動,繼承於AdapterView,實現了控制項的複用功能
Time of Update: 2015-01-07
標籤:android android studio 在Android Studio中,使用VCS -> Import into Version Control-> Import into Subversion 可以將Project中的某個Module上傳至SVN伺服器。但是,當Android Studio再次啟動時就會報錯:XXX不是工作複本(XXX is not working
Time of Update: 2015-01-07
標籤:android handler runnable handlerthread looper 本文主要介紹Android中Handler的使用方法,Handler跟多線程,訊息佇列聯絡很緊密,在平常的實際程式開發中比較常見。本文分為4個簡單的例子。Handler使用例1這個例子是最簡單的介紹handler使用的,是將hand
Time of Update: 2015-01-07
標籤:android sqlite3 資料庫 shell adb 在調試過程中,需要修改資料庫中的資料,此時就要用到sqlite3工具,可以方便我們調試由於在介面上無法開啟“資料連線”,只能通過修改資料庫來開啟下面先來看下如何修改表global中的mobile_data資料[email protected]:~$