摘要: 1 scpsudo scp abc root@192.168.1.1:/home/sudo mount -s smbfs -o username=root //192.168.1.1/share /homesudo mount -t ntfs UUID="966A4B803710F028" -w /media/D2ftpcd dir //enter dir of the serverlcd dir //enter the dir of local hostget Path/file //get fileput Path/file //put file 3.shell par 阅读全文
posted @ 2012-04-05 22:04 cascais 阅读(454) 评论(0) 推荐(0) 编辑
摘要: a.webkit to chromium to webkitResourceLoaderAndroid to chromium// for file 1.ResourceLoaderAndroid::start 2.WebUrlLoader::start (convert "ResourceRequest" to "WebRequest") 3.WebUrlLoaderClient::start 4.WebRequest::start 5.URLRequest::start()//chromium 6.URLRequest::StartJob(URLRe 阅读全文
posted @ 2012-04-05 22:03 cascais 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1. interrupt flowHardware->Interrupt Controller->Processor2.Interrupt Handlera. DefinitionThe function that the kernel runs, in response to a specific interrupt.b.Difference between other kernel function.Kernel invoke them.the run in a special context.c.Interrupt handle's jobAcknowledge th 阅读全文
posted @ 2012-04-05 22:02 cascais 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1.awk common format and exampleawk '{cmd}' inputfileor awk 'condition {cmd}'or awk '{if(condition) cmd}for example, b.txt[plain] view plaincopyabcdef>>awk '{printf $1}' b.txtad>>awk '$1=="a" {print $2,$3}' b.txtb c>>awk '{if($1==&qu 阅读全文
posted @ 2012-04-05 22:01 cascais 阅读(320) 评论(0) 推荐(0) 编辑
摘要: steps 1.FrameLoader.cpp didFirstLayout 3.FrameLoaderClientAndroid.cpp dispatchDidFirstLayout 3.WebViewCore.cpp didFirstLayout(); 4.WebViewCore.java// will also callsetupViewport() didFirstLayout(); 5.BrowserFrame.java didFirstLayout(); 6.WebViewCore.java contentDraw(); 7.WebViewCore.java webkitDrawL 阅读全文
posted @ 2012-04-05 22:00 cascais 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Set, Data structure which does not allow duplicate elements. Map.Entry, is a key/value mapping contained in a Map. Map, is a data structure consisting of a set of keys and values in which each key is mapped to a single value. Collection, is the root of the collection hierarchy. It defines operations 阅读全文
posted @ 2012-04-05 22:00 cascais 阅读(167) 评论(0) 推荐(0) 编辑
摘要: [java] view plaincopyprivateBitmapcreateScreenshot(intwidth,intheight){//Werendertoabitmap2xthedesiredsizesothatwecanthen//re-scaleitwithfilteringsincecanvas.scaledoesn'tfilter//Thishelpsreducealiasingatthecostofbeingslightlyblurryfinalintfilter_scale=2;Picturethumbnail=capturePicture();if(thumb 阅读全文
posted @ 2012-04-05 21:59 cascais 阅读(675) 评论(0) 推荐(0) 编辑
摘要: for code copy in the futuresimple server and clientmay be useful for copy in the futureserver:[cpp] view plaincopy#include<errno.h>#include"sys/types.h"#include"sys/socket.h"#include"sys/stat.h"#include"unistd.h"#include<netinet/in.h>//#include< 阅读全文
posted @ 2012-04-05 21:52 cascais 阅读(370) 评论(0) 推荐(0) 编辑