Time of Update: 2018-12-05
NSLog( @"main thread begin..." ); [self performSelectorInBackground: @selector(getImages) withObject: nil]; NSLog( @"main thread end..." ); - (void)getImages{ NSLog( @"one thread begin..." ); NSAutoreleasePool *pool = [[NSAutoreleasePool
Time of Update: 2018-12-05
建立UIDatePicker://大小固定為320*216 datePicker1 = [[UIDatePicker alloc] initWithFrame: CGRectMake( 0, 100, 280, 200)]; datePicker1.timeZone = [NSTimeZone defaultTimeZone]; datePicker1.datePickerMode = UIDatePickerModeDate;
Time of Update: 2018-12-05
大概任務就是,用NDK,新產生一個so來調用已有so檔案中的功能。 開始一頭霧水,因為對NDK,寫makefile不很熟悉,大概看了NDK裡兩個例子之後,沒有提到調用已有的so,於是搜尋了一下,看到一篇文章中的內容基本說明了我要做的事情,(非常感謝) http://blog.csdn.net/vrix/archive/2010/03/06/5351196.aspx 最後在這篇文章的協助下,算是完成了任務。這裡記載一下,記性差。老忘事情。。
Time of Update: 2018-12-05
tableview東東:(主要是再學到tableview的時候,數組了,字典了都不太清楚,還得從頭看.)今天主要咕噥tableview東西,並且也沒有看完.還得繼續...... 1.tableview suite裡面的代碼例子:(SimpleTableView)NSTimeZone方法:[NSTimeZone systemTimeZone][NSTimeZone localTimeZone][NSTimeZone defaultTimeZone][NSTimeZone
Time of Update: 2018-12-05
1. Firefox中所有使用event相關的代碼無法使用.event是IE封裝過的全域對象,控制所有事的事件,但是這個對象在Firefox中不存在,所以在Firefox中無法使用,特別是event.keyCode也是無法取得的。解決方案:下面這段JS重新封裝了EVENT對象,直接在頁面引用,原先的events代碼均可試用於Firefox:<script>/*firefox----這段js重新封裝了event對象,經驗證可以在Firefox下支援!----*/
Time of Update: 2018-12-05
身份證校正碼產生方法:∑(ai×Wi)(mod 11)i: 表示號碼字元從由至左包括校正碼在內的位置序號;ai 表示第i位置上的號碼字元值;Wi 第i位置上的加權因子,其數值Wi=mod(power(2,(n-1)),11)i 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1Wi 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2 1相應的校正碼:∑(ai×WI)(mod 11) 0 1 2 3 4 5 6 7 8 9
Time of Update: 2018-12-05
我的應用程式背景:使用FTP實現檔案分享權限設定和傳輸。條件如下:1. 主機是Windows Vista(安裝FileZilla Server,Windows成為FTP伺服器)2. 虛擬機器Ubuntu Server 9.10(由Virtual Box建立,並能和主機ping通) 在Ubuntu下:# ftp *.158.*.133輸入使用者名稱和密碼後,登入成功:ftp> ls200 Port command successful150 Opening data channel
Time of Update: 2018-12-05
Ubuntu下編譯OpenJDK6沒什麼難度,完全傻瓜式操作即可。我的Ubuntu版本是10.10。首先獲得OpenJDK6的源碼,可以參考我的博文《JDK調研》中的引用地址,通過使用Mercurial到代碼倉庫中擷取,也可以直接下載源碼。執行下列命令:sudo aptitude build-dep openjdk-6sudo aptitude install openjdk-6-jdk libmotif-devexport LANG=C
Time of Update: 2018-12-05
CKEditor 3.3.1 和 ckfinder 2.0 配置 with jQuery 1.42 請看33樓! CKEditor 3.2 在 asp.net 下進行配置的方法:官方網站:CKEditor CKFinder1、CKEditor 不具備上傳功能,需要整合 CKFinder 才能實現上傳功能。 下載 ckeditor 並解壓到 ckeditor(在根目錄下); 下載 ckfinder 並解壓到 ckfinder (在根目錄下);
Time of Update: 2018-12-05
1. 開啟記事本建立一個空白的文字文件,不輸入任何文字,然後儲存此文檔,在“另存新檔”對話方塊中將編碼由預設的 ANSI 修改為 Unicode 或 UTF-8,接著為檔案取名,在此假設將新文檔命名為 UNICODE.TXT。 2. 將 UNICODE.TXT 複製至隱含的系統檔案夾 C:\Windows\ShellNew。 3. 開啟登錄編輯程式定位至:HKEY_CLASSES_ROOT\.txt\ShellNew,建立名為 FileName 的字串值,將此字串值設定為 C:\Windows\
Time of Update: 2018-12-05
Newsletters - MATLAB DigestMatrix Indexing in MATLABby Steve Eddins and Loren ShureSend email to Steve Eddins and Loren ShureIndexing into a matrix is a means of selecting a subset of elements from the matrix. MATLAB has several indexing styles that
Time of Update: 2018-12-05
原代碼:import java.awt.Color;import java.awt.FlowLayout;import java.awt.GridLayout;import java.awt.Toolkit;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JCheckBox;import javax.swing.JFrame;import javax.swing.JLabel;import
Time of Update: 2018-12-05
3.7.11 編程求1!+2!+3!+...20!的值 public class P3711 { public static void main(String[] args) { long sum=0,n=1; for (int i=1;i<=20;i++) { n=1; for (int j=1;j<=i;j++) { n*=j; } sum+=n;
Time of Update: 2018-12-05
近日在AIX上用log4j列印日誌,出現亂碼,經過努力解決問題。 癥狀:在預設語言非中文(或者說預設語言不支援中文的)的Windows、Linux、Unix上,用log4j列印日誌,出現亂碼,常見的就是一堆問號。 解決方案:如果是log4j.properties為設定檔,比如:log4j.appender.A1=org.apache.log4j.RollingFileAppenderlog4j.appender.A1.File=all.log加入一行: log4j.appender.A1=or
Time of Update: 2018-12-05
Swing中用於顯示視窗的組件不外 3 個:JWindow 、JFrame 和 JDialog,它們分別擴充自 AWT 的對應組件。然而,只有 JDialog 可以是模態的,其它兩個都無法實現模態。可是又只有 JWindow 可以沒有標題列,沒有邊框,就像 JToolTip 那樣。
Time of Update: 2018-12-05
在筆記本上開發的 asp.net ajax 程式,發布到 Windows 2003 伺服器出現異常:[TypeLoadException: 未能從程式集“System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中載入類型“System.Web.UI.ScriptReferenceBase”。]
Time of Update: 2018-12-05
searchBar = [[UISearchBar alloc] initWithFrame: CGRectMake(0.0, 0.0, self.view.bounds.size.width, 40)]; searchBar.placeholder=@"Enter Name"; searchBar.delegate = self; searchBar.showsCancelButton = YES; theTableView.tableHeaderView =
Time of Update: 2018-12-05
1:ODBC Jdbc介紹2:JDBC驅動3:jdbc編程4:statement介面5:工具類封裝6:事務講解7:中繼資料8:結果集(可滾動)9:批處理10:大資料類型11:===============================================ODBC的概述: ODBC是Open Database Connect即開放資料庫互連的簡 稱,它是由Microsoft 公司於1991 年提出的一個用於訪問
Time of Update: 2018-12-05
import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.FileReader;import java.io.FileWriter;import java.io.IOException;import java.util.ArrayList;/** * 一個檔案中儲存一首唐詩,用字元流流進行複製,複製到新檔案中的詩,所有的內容倒序輸出。 * * @author user */public class
Time of Update: 2018-12-05
public class _1{ public static void main(String[] argv){ int[] array = new int[10]; int i=0,sum=0,max,min,temp; double avg = 0.0; while(i<10){ int j = (int)(Math.random()*100); array[i] =