自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(216)
  • 资源 (14)
  • 收藏
  • 关注

原创 开场白

我们步入一家公司,从事一个领域,这并不是我们知识领域的完结。当然,如果你去了一家非常好的公司,跟上一个非常好的项目,或许你只需要跟着公司进度走,能力自然而然就会得到提高。但是实际上,大多数人的工作情况并非如此,我们不少工作就是以往工作的重复,我们如果不主动提高工作效率,就会在一个圈子里打转。自己的能力得不得真正的提升,将N年工作经验变成1年*N的叠加,随着时间的流逝,以往的知识越来越淡,慢慢走上退化的道路。不管何时何地,巩固自己已有知识,努力探寻新知识,这才是一个人应该有的成长模式。所以在此,

2010-09-16 22:12:00 914

原创 Acess to XMLHttpRequest at http://localhost:xx from origin http://localhost has been blocked

本机开启nodejsserver,在通过本地网页访问的时候,出现如上错误。

2023-04-22 11:29:03 1966 1

原创 M2 NGFF PCIE NVME

NGFF, Next Generation Form Factor, 物理外形, 存储器的外形(现在改为为M.2)。和NGFF对应的是2.5‘’, 就是我们常见的笔记本硬盘。PCIE是总线标准,和SATA并列。NVMe是硬盘传输标准,取代现在的AHCI。一般来讲,SATA,总线对应的是AHCI传输协议;PCIe,一般是NVMe标准。为什么人们总是把 NGFF/M.2 与 PCIe/NVMe 联系/等同起来呢?这是因为在笔记本上,M.2 外形的 SSD 最先支持 PCIe

2022-02-17 12:23:27 2852

原创 tmp study note

chromium log macrologging.cc里面有min_log_level,minimal log level,可以设置或者获取这个level,SetMinLogLevel,GetMinLogLevel。(c++的## 处理器,会忽略空格)在实现中SetMinLogLevel,最小的level,取std::min(LOG_FATAL, level);const

2015-04-30 09:18:10 1745

转载 cookie

Session cookie[edit]A session cookie, also known as an in-memory cookie or transient cookie, exists only in temporary memory while the user navigates the website.[15] When an expiry date or vali

2014-07-02 10:21:06 1746

原创 libstdc++/include/new: No such file or directory

jni/stlport/stl/_new.h:47:50: fatal error: libstdc++/include/new: No such file or directory

2014-04-24 23:45:52 3445

转载 log

A. call1. Assertions.h LOGL#define LOG(channel, ...) WTFLog(&JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__)//convert a string to a channel variable#define JOIN_LOG_CHA

2014-02-21 17:53:26 1688

原创 pointer to ref of an array, and to the func that return a ref of an array

The expression A->B is exactly equivalent to (*A).B for builtin types. If a user-defined operator-> is provided,operator-> is called again on the value that it returns, recursively, until the

2014-02-17 17:33:28 830

转载 bosh comet ajax

Bidirectional-streams Over Synchronous HTTP (BOSH) is a transport protocol that emulates a bidirectional stream between two entities (such as a client and a server) by using multiple synchronous H

2014-02-14 14:55:50 874

转载 java synchronized

saw more, and used morehere just for record .The Java programming language provides two basic synchronization idioms: synchronized methods and synchronized statementsSynchronization is

2014-02-08 14:32:49 899

原创 notes

好久没有写,不过想想就当个笔记吧!find c definition from java.1. first in os.java implemented in Posix.javaOs2. native file: method:libcore_io_Posix.cppNATIVE_METHOD(Posix, connect, "(Ljava/io/FileDescript

2014-02-07 11:18:27 2306

原创 Timer

http://blog.csdn.net/elfylin/article/details/70724061. Timer.startvoid TimerBase::startTimerBase::setNextFireTimeThreadTimers::updateSharedTimerSharedTimer::setFireTimeMainThreadSh

2012-12-07 21:53:23 2492

原创 class create and member

Page(PageClient): (FBS)Chrome Settings(own) BackForwardController Frame PluginData(ref) RenderTheme(ref) EditorClient(raw)DragCaretController DragController(own) FocusController(own) ContextMenuCo

2012-11-30 15:01:46 761

原创 pthread

1.创建pthread_create( &a_thread, a_thread_attribute, thread_function, (void *)some_argument);pthread_t         a_thread;  pthread_attr_t    a_thread_attribute;  void *             thread_functio

2012-11-30 15:00:28 1600

原创 android Network class and method (draft)

Class1.RequestFeederRequestQueue's parent class.has interfaces:getRequest haveRequest requeueRequest.has a mPending queue, LinkedHashMap>(32)最多有32个队列,每一个队列是一个主机+一个请求列表。and a ActivePool.

2012-11-17 20:54:36 713

原创 java 泛型

Java 中的泛型与 C++ 模板的比较GJ 程序的语法在表面上与 C++ 中的模板非常类似,但是二者之间有着本质的区别。首先,Java 语言中的泛型不能接受基本类型作为类型参数――它只能接受引用类型。这意味着可以定义 List,但是不可以定义 List。其次,在 C++ 模板中,编译器使用提供的类型参数来扩充模板,因此,为 List 生成的 C++ 代码不同于为 List 生成的

2012-11-12 14:15:06 1489

转载 http header

HTTP(HyperTextTransferProtocol)是超文本传输协议的缩写,它用于传送WWW方式的数据,关于HTTP协议的详细内容请参考RFC2616。HTTP协议采用了请求/响应模型。客户端向服务器发送一个请求,请求头包含请求的方法、URI、协议版本、以及包含请求修饰符、客户信息和内容的类似于MIME的消息结构。服务器以一个状态行作为响应,相应的内容包括消息协议的版本,成功或者错误编码

2012-11-06 20:46:04 1534

原创 AC draft

一 GL ICS1. Layer.hLayer.cppLayerAndroid.hLayerAndroid.cppMediaLayer.hMediaLayer.cppMediaTexture.hMediaTexture.cppTreeManager.hTreeManager.cppGLWebViewState.hGLWebViewState.cp

2012-10-31 22:41:46 1840

原创 MainThread

JavaShareClient1.队列:里面有一个队列static SkDeque gFuncPtrQ(sizeof(FuncPtrRec));这个队列里面的类型是    struct FuncPtrRec {        void (*fProc)(void* payload);        void* fPayload;    };2.入队函数void

2012-10-29 23:52:39 4126

原创 hash and frame (draft)

1. hashHashMapKeyArgMappedArgHashArgKeyTraitsArg (KeyTraits)MappedTraitsArg (MappedTraits)函数有值参数,模块有类型参数,也可以有值参数。Traits:1.基类GenericHashTraitsBase定义如下:template struct Generi

2012-10-28 16:34:08 681

原创 ld and sopath and gdb useage

1. so search path:The necessary shared libraries needed by the program are  searched  for       in the following order      a      Using      the      environment     variable     LD_LIBRARY_PAT

2012-10-22 12:43:44 777

原创 ubuntu svn

1. can't find dnsgedit /etc/nsswitch.conf#hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4hosts:          files dns2.can't input passwordrm ~/.gnome2/keyrings/login.keyring

2012-10-21 09:36:42 1504

原创 push exe

1 push1.1 完全破解adb push dumpstack /system/bin/dumpstackadb shell "chmod 777 /system/bin/dumpstack"adb shell "ps" | grep com.elfylin 1.2 rootadb push dumpstack /mnt/sdcard/dumpstackadb s

2012-09-26 23:29:53 1902

原创 KeyEvent

一. 接口KeyEvent.Callback和View.OnKeyListener二. 流程a.Activity.dispatchKeyEventa.1.win.superDispatchKeyEvent(win=getWindow)Window.superDispatchKeyEvent->PhoneWindow.superDispatchKeyEventa.2mDe

2012-09-22 23:49:33 5478

转载 ubuntu11.10编译android4.0

原址:http://blog.sina.com.cn/s/blog_493667730100yuh7.html1._FORTIFY_SOURCE”重定义build/core/combo/HOST_linux-x86.mk line 61: -HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0 +HOST_GLOBAL_CFLAGS += -U

2012-09-14 23:18:47 1305

原创 view group

get view group, need to be improved.public class HelloworldActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle saved

2012-09-04 00:17:43 886

转载 转载

https://developer.mozilla.org/en/Gecko_Plugin_API_Referencehttp://blog.csdn.net/xinzheng_wang/article/details/7416543http://www.2cto.com/kf/201205/132494.htmlhttp://blog.csdn.net/mapdigit/articl

2012-08-24 00:09:11 3607 2

原创 local shell

to be continuedcheckerror(){ if [ "$?" -eq 1 ] then echo "error $*" exit else echo "OK" fi}#get archtechtureresult=`uname -a |grep "x86_64"`if [ ! -s arch ]thenarch=amd64fi

2012-08-22 23:47:27 1857 1

原创 win7 ubuntu

一、安装了win7,想再安装ubuntu本来Win7 有C D E三个区和系统保留区,后来就在E盘用Win7自带工具,多分出来50G,用来给linux但是,在ubuntu安装是时候却发现只有2个分区,一个就是sda和C盘一样的,然后就是剩余一个区是其它几个分区之和。整了半天终于搞清楚了Win7自带的分区工具有问题,它建立分区的时候,默认都是建立主分区了,而一个盘

2012-08-18 23:14:46 2124 4

原创 Texture and Surface

TextureSurfaceTextureClient(ANativeWindow) .... SurfaceTexture...Server1. SurfaceTexture Server and SurfaceTextureClientServer, render the data ; client provide the data; they share a buffer.c

2012-08-11 22:15:43 4370

原创 flash's SurfaceTexture

original, how webview go?1. generate a MediaLayer with webview.2. MediaLayer has a MediaTexture.in MediaLayer generate a MediaTexture with webview.3. MediaTexture has a TextureWrapper(Textur

2012-08-05 23:32:44 1874

原创 Plugin NPP and MediaPlayer

1.NPP是一个结构体,包含两个void的指针ndata, the pointer of the browser, usually the PluginView, was valued in PluginView::PluginView.pdata, the pointer of the plugin, was valued by Plugin in NPP_New, maybe a ty

2012-07-22 22:51:33 1170

原创 c++ to asm

cppint main(int argc, char** argv){ return 0;}asmdump: file format elf32-littlearmDisassembly of section .plt:00008378 : 8378: e52de004 push {lr} ; (str lr, [sp, #-4]!) 837c: e59

2012-07-19 19:35:51 1508

原创 procrank info

http://blog.csdn.net/aaronzzq/article/details/5899432Terms VSS - Virtual Set Size 虚拟耗用内存(包含共享库占用的内存)RSS - Resident Set Size 实际使用物理内存(包含共享库占用的内存)PSS - Proportional Set Size 实际使用的物理内

2012-07-13 13:53:50 963

原创 oneway interface

Oneway interfacesIn early betas, the Android IPC was strictly synchronous. This means that service invocations had to wait for the return value of the remote method to arrive back to the caller.

2012-07-12 14:54:43 7355

原创 AIDL sample

AIDL1.编写一个AIDL如:package com.elfylin; interface IMyService { String getValue();}AIDL和java一样,要保证路径和包名一样。不过不是每一个java对象,AIDL都支持,不需要声明的有int、boolean、String、CharSequence,在List、Map、Parc

2012-07-12 11:25:16 1043

原创 WebViewCore/SurfaceHolder and JNI引用

一、WebViewCore.java WebViewCore.cpp的绑定1.WebViewCore.initialize()mBrowserFrame = new BrowserFrame(mContext, this, mCallbackProxy,                mSettings, mJavascriptInterfaces2.BrowserFram

2012-07-09 09:41:53 1962

原创 IntPoint and PluginMainThreadScheduler

IntPoint 描述一个点有x、y两个变量,支持move、expandedTo、shrunkTo等方法IntSize 描述一个大小有width,height两个变量,支持scale、expand等接口IntRect  描述一个巨星有一个m_location和一个size,location是这个矩形左上角的坐标right和bottom这个点,并不在这个矩形里面。infl

2012-06-26 18:09:12 1297

转载 Surface、SurfaceView、SurfaceHolder及SurfaceHolder.Callback之间的关系

源地址:http://www.apkbus.com/android-43293-1-1.html一、SurfaceSurface就是“表面”的意思。在SDK的文档中,对Surface的描述是这样的:“Handle onto a raw buffer that is being managed by the screen compositor”,翻译成中文就是“由

2012-06-15 11:17:36 793

原创 Plugin sample study notes

一、 ANP interface1. ANP interface in android a android为插件提供了额外的NPN函数,称之为ANPb 这些函数是通过传递函数指针的方式传递给插件的具体操作方式是通过NPN的GetValue函数浏览器和插件通过头文件约定好一些值,这些值代表APN函数结构体的指针c 通过NPN_GetValue插件获取到了这些结构图的指针,然后

2012-06-14 11:15:31 3049 2

VMware_Install_Cleaner

卸载vmware的神器 提示 vmware已经安装,安装程序又找不到,可以用这个卸载。

2012-08-19

IDL(Interface_Definition_Language)

介绍IDL,接口描述语言的文档。简述、结构和语法。

2011-08-27

Android apk 反编译工具 dex2jar-0.0.7-SNAPSHOT

Android 反编译工具,可以把apk的资源导出生产文件夹,也可以把资源重新修改,再编译成apk

2011-07-05

wap-230-wsp-20010705-a.pdf

wap-230-wsp-20010705-a.pdf

2010-12-14

Mobile.Messaging.Technologies.and.Services.SMS.EMS.and.MMS

1、Basic Concepts 2、Standardization 3、Short Message Service 4、Enhanced Messaging Service 5、Multimedia Messaging Service: Service and Architecture 6、Multimedia Messaging Service, Transactions Flows References

2010-12-08

android 文件浏览器

改写filelist,显示文件列表 从根目录显示

2010-10-25

GNU makefile 中文手册

别的不说了 学习makefile最全的资料了

2010-10-22

Android 线程

 Android底层Binder System在binding-time会从该进程的Thread pool里启动一个线程来执行SDK-Service的Binder接口对象(如myBinder)。  执行myActivity对象的线程与myBinder对象的线程会同步(Synchronize),让myActivity开发者觉得IPC远程呼叫、跨进程的两个线程,就如同单一线程一般。

2010-10-01

gcc 和makefile 详解

GNU Make 的主要工作是读进一个文本文件, makefile 。这个文件里主要是有关哪些文件 (‘target’目的文件)是从哪些别的 文件(‘dependencies’依靠文件)中产 生的,用什么命令 来进行 这个产生过程。 gcc/g++在执行编译工作的时候,总共需要4步   1.预处理,生成.i的文件[预处理器cpp]   2.将预处理后的文件不转换成汇编语言,生成文件.s[编译器egcs]   3.有汇编变为目标代码(机器代码)生成.o的文件[汇编器as]   4.连接目标代码,生成可执行程序[链接器ld]   [参数详解]

2010-09-29

linux C函数库

chm格式的,函数查询,比较实用。 支持索引和分类查找,是linux以及C开发必备资料。

2010-09-18

水仙花数narcissus number

水仙花数计算,比如153=pow(1,3)+pow(5,3)+pow(3,3) 支持N位的水仙花数计算

2010-09-18

最大公倍数和最小公约数

非枚举法求最大公约数和最小公倍数 支持2个数以上求值,可应用于通分

2010-09-18

VC下graphics图形库

VC下实现的graphics库。有4个文件,一个是graphics.h头文件,一个是lib库(VC6),一个测试主函数,还有一个帮助文档

2010-09-16

c 更改文件修改日期

C语言实现,遍历一个文件夹,并且将修改该文件夹所有文件的修改日期为最近2月。 只有一个文件,在VC下编译通过。如有需求,请自己修改。 调用_findfirst、_findnext,纯C递归实现 大家只要修改里面的changeFiletime函数就可以自己定制功能。

2010-09-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除