Time of Update: 2018-12-04
...Intent intent = new Intent();intent.setAction(Intent.ACTION_PICK);// FTP URL (Starts with ftp://, sftp:// or ftps:// followed by hostname and port).Uri ftpUri = Uri.parse("ftp://yourftpserver.com");intent.setDataAndType(ftpUri,
Time of Update: 2018-12-04
#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <ctype.h>#include <string.h>#include <time.h>#include <getopt.h>#include <errno.h>#include <fcntl.h>#include
Time of Update: 2018-12-04
年前的項目,使用者可以用手機搜尋到想要的音樂並訂製成彩鈴或贈送彩鈴。用到了ASR、TTS等核心技術,我們負責整合。我的工作是做上層業務IVR流程的開發。
Time of Update: 2018-12-04
題意是給出400X600的矩陣,不斷在矩陣400X600內劃矩陣,第一次被划過的矩陣地區顏色改變,問的是經過多次劃矩陣後,400X600矩陣內沒有改變顏色的地區,連通地區的塊數和連通地區大小,按照連通地區大小從小到大排序;思路就是:每次划過的矩陣地區顏色改變(已經變過的不用改變);然後循環圖表;依次搜尋顏色沒變的點;其中學到了把字串轉化為整數可以用 istringstream;#include <cstdlib>#include <cctype>#include <
Time of Update: 2018-12-04
輸入淡騰要死:純粹模板#include<cstdio>#include<string.h>#include<algorithm>#include<vector>#include<stdlib.h>#include<cmath>#include<queue>#include<set>#include<map>#include<list>using namespace
Time of Update: 2018-12-04
在這我用的是tarjan搞的:tarjan的話需要知道樹的根節點,這題沒說,但是可以根據入度等於0,判斷根節點;tarjan的主要思想是DFS和並查集;tarjan:有待補充#include<cstdio>#include<string.h>#include<algorithm>#include<vector>#include<stdlib.h>#include<cmath>#include<queue>#inc
Time of Update: 2018-12-04
ViewPager是個好東西,但往往有些業務需要是android無法滿足的,比如要更新ViewPager的特定view本帖其實就是StackOverflow的總結帖原帖見http://stackoverflow.com/questions/7263291/viewpager-pageradapter-not-updating-the-view一種簡單快速的辦法:Override getItemPosition in your PagerAdapter like this:public int
Time of Update: 2018-12-04
添加本地cdrom到RHEL yum源1.mount /dev/sr0 /mnt/cdrom/2. 確認是否安裝以下軟體包rpm -qa |grep yum rpm -qa |grep createrepo如未安裝則手動從cdrom installrpm -ivh yum-x.x.x.rpm rpm -ivh yum-metadata-parser-x.x.x.rpm rpm -ivh yum-rhn-plugin-x.x.x.rpm rpm -ivh
Time of Update: 2018-12-04
自己第一次在linux下用vim 編寫的代碼,並且A題的,很高興;就是poj上面的一個搜尋題;題目很是經典,搜尋剪枝最佳化;#include<cstdio>#include<string.h>#include<stdlib.h>#include<algorithm>using namespace std;int num[65];bool vis[65];int Max;int sum;bool ok;int n;int len;void
Time of Update: 2018-12-04
第一部分 什麼是NTFS檔案系統 想要瞭解NTFS,我們首先應該認識一下FAT。FAT(File Allocation Table)是“檔案配置表”的意思。對我們來說,它的意義在於對硬碟分區的管理。FAT16、FAT32、NTFS是目前最常見的三種檔案系統。 FAT16:我們以前用的DOS、Windows 95都使用FAT16檔案系統,現在常用的Windows 98/2000/XP等系統均支援FAT16檔案系統。它最大可以管理大到2GB的分區,但每個分區最多隻能有655
Time of Update: 2018-12-04
javascript複習:1 with的使用 eg: var index; with(document.all.oIndex){ index=parseInt(value,10); } 等同於index=document.all.oIndex.value 先吧對象使用申明,可以重複使用該對象2 建立一個對象createElement eg: var obj=document.createElement("option");3 all的使用
Time of Update: 2018-12-04
很神奇的剪枝條件:奇偶剪枝用到奇偶剪枝原理:#include<cstdio>#include<algorithm>#include<cmath>#include<queue>#include<vector>#include<string.h>#include<iostream>using namespace std;int dx[]={1,-1,0,0},dy[]={0,0,-1,1};char Map[7][7
Time of Update: 2018-12-04
1>確定以下核心選項已選定:CONFIG_OPROFILECONFIG_X86_LOCAL_APICCONFIG_X86_IO_APICCONFIG_PCI_IOAPIC2> oprofile 命令opcontrol --init #載入模組 opcontrol --vmlinux=/path/vmlinux #是否對kernel進行profiling opcontrol --reset #清除當前會話中的資料 opcontrol --start #開始profiling
Time of Update: 2018-12-04
檔案操作:包括讀取 寫入 和上傳。 ( 拾遺,很多知識點用的不多 都忘記了 溫故而知新吧
Time of Update: 2018-12-04
ctrl鍵組合ctrl+a:游標移到行首。ctrl+b:游標左移一個字母ctrl+c:殺死當前進程。ctrl+d:退出當前 Shell。ctrl+e:游標移到行尾。ctrl+h:刪除游標前一個字元,同 backspace 鍵相同。ctrl+k:清除游標後至行尾的內容。ctrl+l:清屏,相當於clear。ctrl+r:搜尋之前打過的命令。會有一個提示,根據你輸入的關鍵字進行搜尋bash的historyctrl+u: 清除游標前至行首間的所有內容。ctrl+w: 移除游標前的一個單詞ctrl+t:
Time of Update: 2018-12-04
GRUB的設定檔是/boot/grub目錄下的menu.lst,可在設定檔中添加"serial" 與 "terminal"命令來配置串口輸出.serial命令用於設定串口的參數:--unit:串口裝置,0就表示ttyS0,如果是ttyS1就要設為1;--speed:傳輸速率;--work:資料位元;--parity:同位位元;--stop:停止位。terminal命令用於設定終端的類型--timeout:等待時間,單位是秒; 在等待時間內如有終端按鍵則進入當前終端. 後接 serial,
Time of Update: 2018-12-04
Hopefully the last iteration on this! The handling of out of band data on NAND was accompanied by tons of fruitless discussions and halfarsed patches to make it work for a particular problem. Sufficiently annoyed by I all those "I know
Time of Update: 2018-12-04
無聊,寫了一個多線程同時讀寫檔案,當然同一時刻只有一個線程讀或者寫檔案import java.io.File;import java.util.Random;public class Test { public static void main(String[] args) { File file = new File("c:/test.txt");FileProcess fileObj = new FileProcess(file);String[]
Time of Update: 2018-12-04
演算法導論上面說在選取基準元素是取得最後一個,資料結構課本上面是取第一個;不過沒有原理都是一樣的;通過Qartion(int a[],int l,int r)函數將數組a中元素劃分為三部分,比a[r]小的,比a[r]大的,a[r];最後返回基準元素所在的位置;#include <stdio.h>#include <iostream>#include <string.h>#include <algorithm>#include <math.h&
Time of Update: 2018-12-04
雲端運算基礎交付計算資源的另一種方式Grace Walker, IT 顧問, Walker Automated ServicesGrace Walker,伊利諾斯州芝加哥市 Walker Automated Services 的合伙人,是一個有豐富背景和廣博經驗的IT顧問。她曾在 IT