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

原创 开场白
我们步入一家公司,从事一个领域,这并不是我们知识领域的完结。当然,如果你去了一家非常好的公司,跟上一个非常好的项目,或许你只需要跟着公司进度走,能力自然而然就会得到提高。但是实际上,大多数人的工作情况并非如此,我们不少工作就是以往工作的重复,我们如果不主动提高工作效率,就会在一个圈子里打转。自己的能力得不得真正的提升,将N年工作经验变成1年*N的叠加,随着时间的流逝,以往的知识越来越淡,慢慢走上退化的道路。不管何时何地,巩固自己已有知识,努力探寻新知识,这才是一个人应该有的成长模式。所以在此,
2010-09-16 22:12:00
950
原创 Acess to XMLHttpRequest at http://localhost:xx from origin http://localhost has been blocked
本机开启nodejsserver,在通过本地网页访问的时候,出现如上错误。
2023-04-22 11:29:03
2589
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
3197
原创 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
1804
转载 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
1800
原创 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
3504
转载 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
1722
原创 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
864
转载 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
913
转载 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
931
原创 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
2337
原创 Timer
http://blog.youkuaiyun.com/elfylin/article/details/70724061. Timer.startvoid TimerBase::startTimerBase::setNextFireTimeThreadTimers::updateSharedTimerSharedTimer::setFireTimeMainThreadSh
2012-12-07 21:53:23
2538
原创 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
795
原创 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
1633
原创 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
746
原创 java 泛型
Java 中的泛型与 C++ 模板的比较GJ 程序的语法在表面上与 C++ 中的模板非常类似,但是二者之间有着本质的区别。首先,Java 语言中的泛型不能接受基本类型作为类型参数――它只能接受引用类型。这意味着可以定义 List,但是不可以定义 List。其次,在 C++ 模板中,编译器使用提供的类型参数来扩充模板,因此,为 List 生成的 C++ 代码不同于为 List 生成的
2012-11-12 14:15:06
1525
转载 http header
HTTP(HyperTextTransferProtocol)是超文本传输协议的缩写,它用于传送WWW方式的数据,关于HTTP协议的详细内容请参考RFC2616。HTTP协议采用了请求/响应模型。客户端向服务器发送一个请求,请求头包含请求的方法、URI、协议版本、以及包含请求修饰符、客户信息和内容的类似于MIME的消息结构。服务器以一个状态行作为响应,相应的内容包括消息协议的版本,成功或者错误编码
2012-11-06 20:46:04
1576
原创 AC draft
一 GL ICS1. Layer.hLayer.cppLayerAndroid.hLayerAndroid.cppMediaLayer.hMediaLayer.cppMediaTexture.hMediaTexture.cppTreeManager.hTreeManager.cppGLWebViewState.hGLWebViewState.cp
2012-10-31 22:41:46
1872
原创 MainThread
JavaShareClient1.队列:里面有一个队列static SkDeque gFuncPtrQ(sizeof(FuncPtrRec));这个队列里面的类型是 struct FuncPtrRec { void (*fProc)(void* payload); void* fPayload; };2.入队函数void
2012-10-29 23:52:39
4184
原创 hash and frame (draft)
1. hashHashMapKeyArgMappedArgHashArgKeyTraitsArg (KeyTraits)MappedTraitsArg (MappedTraits)函数有值参数,模块有类型参数,也可以有值参数。Traits:1.基类GenericHashTraitsBase定义如下:template struct Generi
2012-10-28 16:34:08
715
原创 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
816
原创 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
1532
原创 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
1940
原创 KeyEvent
一. 接口KeyEvent.Callback和View.OnKeyListener二. 流程a.Activity.dispatchKeyEventa.1.win.superDispatchKeyEvent(win=getWindow)Window.superDispatchKeyEvent->PhoneWindow.superDispatchKeyEventa.2mDe
2012-09-22 23:49:33
5557
转载 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
1330
原创 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
917
转载 转载
https://developer.mozilla.org/en/Gecko_Plugin_API_Referencehttp://blog.youkuaiyun.com/xinzheng_wang/article/details/7416543http://www.2cto.com/kf/201205/132494.htmlhttp://blog.youkuaiyun.com/mapdigit/articl
2012-08-24 00:09:11
3693
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
1898
1
原创 win7 ubuntu
一、安装了win7,想再安装ubuntu本来Win7 有C D E三个区和系统保留区,后来就在E盘用Win7自带工具,多分出来50G,用来给linux但是,在ubuntu安装是时候却发现只有2个分区,一个就是sda和C盘一样的,然后就是剩余一个区是其它几个分区之和。整了半天终于搞清楚了Win7自带的分区工具有问题,它建立分区的时候,默认都是建立主分区了,而一个盘
2012-08-18 23:14:46
2168
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
4449
原创 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
1904
原创 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
1207
原创 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
1550
原创 procrank info
http://blog.youkuaiyun.com/aaronzzq/article/details/5899432Terms VSS - Virtual Set Size 虚拟耗用内存(包含共享库占用的内存)RSS - Resident Set Size 实际使用物理内存(包含共享库占用的内存)PSS - Proportional Set Size 实际使用的物理内
2012-07-13 13:53:50
1002
原创 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
7428
原创 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
1076
原创 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
1999
原创 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
1340
转载 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
808
原创 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
3092
1
Android apk 反编译工具 dex2jar-0.0.7-SNAPSHOT
2011-07-05
Mobile.Messaging.Technologies.and.Services.SMS.EMS.and.MMS
2010-12-08
Android 线程
2010-10-01
gcc 和makefile 详解
2010-09-29
c 更改文件修改日期
2010-09-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人