
OS
文章平均质量分 60
fanbird2008
这个作者很懒,什么都没留下…
展开
-
find which process use some tcp/udp port
windows platform1. run command netstat -a -n -o from the output find the pid id for the port2. open task management or run command tasklist /svc /FI "pid eq 2404" linux原创 2011-12-29 14:32:59 · 491 阅读 · 0 评论 -
install MinGW and git
Installing MinGW and other ToolsThe following instructions assume you have none of the necessary build tools installed. If you have already installed MinGW and/or Git on your machine, you can of cou转载 2012-06-29 13:03:43 · 2132 阅读 · 0 评论 -
outer network on virtual machine
单机环境,ADSL拨号上网,安装VMware后,客户机如何与宿主机共享上网?朋友老问这个问题,其实已经不是什么新问题了。为了方便大家还有新手,今天有功夫就写下来,希望方便大家参考。为了具有针对性,我就拿自己的机器做为参照对象。 Product:VMware WorkStation(英文版) Version:6.0.0 build-45731 硬件配置:三星Q70-AV01笔记本、I转载 2012-11-24 15:25:24 · 660 阅读 · 0 评论 -
vmware tools install
正确安装 VMWARE TOOLS步骤如下:1、以ROOT身份进入LINUX2、按下 CTRL+ALT组合键,进入主操作系统,点击VMWARE状态栏安装提示,或者点击 SETTING菜单下的ENABLE VMWARE TOOLS子菜单。3、确认安装VMWARE TOOLS。 这时我们并没有真正的安装上了VMWARE TOOLS软件包,如果您点击菜单:DEVICES,您就会发现光驱的转载 2012-12-17 11:17:58 · 571 阅读 · 0 评论 -
skip wall
1. https://dtunnel.com2. www.dongtaiwang.com 中国三大电信营运商的3G网络制式、网速、价格对比 本来不想写这一篇文章的,但老是有一些朋友问有关中国三大电信营运商的网络制式、网速、价格谁优谁差的问题,我现在就给大家整理整理,希望可以给大家选择营运商或手机有一定的帮助。注意:本文讨论的是3G网络,不要告诉我什么中国移动的网络转载 2012-03-20 12:50:44 · 2479 阅读 · 0 评论 -
debian linux android ndk compile env setup
debian linux android ndk compile env setup1. install debian linux 6.0.62. edit source list file3. setup gcc g++ compile env apt-get install gcc g++ gdb automake make autoconf etc4. downl原创 2012-11-14 15:18:30 · 1105 阅读 · 0 评论 -
windows cygwin android ndk compile env setup
1. install cygwin and check env gcc g++ gdb check2. install android-ndk of window version3. edit /home/someuser/.bash_profileANDROID_NDK_ROOT=/cygdrive/d/cygwin/opt/android-ndk-r8bexport原创 2012-11-15 13:54:55 · 538 阅读 · 0 评论 -
eclipse java compile error
1. @overrideproject property ----> javaCompiler-->complier compliance level -->1.5 changed to1.6by default, Java 1.5 compiler is override parent class' method, by @Override statement;but 1.6 exte原创 2012-11-20 13:28:45 · 651 阅读 · 0 评论 -
android source code download notes
download is successfully finished in light of following steps.1、install repo$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod +x ~/bin/repo 2、rep原创 2012-11-20 15:05:25 · 2835 阅读 · 0 评论 -
adb upload so file to /system/lib
1. adb remount change /system/lib to wirtable2. adb uploadadb push e:\libffmpeg.so /system/lib原创 2012-11-26 14:08:43 · 663 阅读 · 0 评论 -
YUV420P的格式以及转换为RGB565的代码(Android摄像头的输出一般为YUV420P)
static void cvt_420p_to_rgb565(int width,int height,constunsignedchar*src,unsignedshort*dst){ int line, col, linewidth; int y, u, v, yy, vr, ug, vg, ub; int r, g, b; const unsigned char转载 2012-11-28 07:07:33 · 3893 阅读 · 0 评论 -
Android Make flow
从ndk-build命令开始解析:1,ndk-build.sh:编译总脚本 a,获取make工具,找到makefile文件; b,执行make -f makefile(or othername:build-local.mk);2,build-local.mk:启动的makefile a,检查NDK_ROOT的合法性; b,初始化环境init.m转载 2012-12-14 15:12:19 · 1201 阅读 · 0 评论 -
adb install apkt
1. open android simulator2. install apk adb install e:\mytest.apk原创 2012-11-12 09:35:22 · 481 阅读 · 0 评论 -
android adb connect multiple online devices
1. 通过adb devices命令获取所有online设备的serial number。C:\Users\Administrator>adb devicesList of devices attachedemulator-5554 deviceSH0A6PL00243 device上面表示,当前有两个设备online,第一个emulator-5554是模拟器,后一个转载 2012-11-29 15:16:11 · 956 阅读 · 0 评论 -
android 多媒体框架
http://blog.youkuaiyun.com/conowen/article/details/7526398http://blog.youkuaiyun.com/conowen/article/details/7875080移植havlenapetr/FFMpeg 1. ffmpeg for x86 http://gitorious.org/~olvaffe/ffmpeg/ffmpe转载 2012-12-01 09:59:51 · 1270 阅读 · 0 评论 -
Android Makefile example
1. example 1# run ndk-build in parent directory of jni#jni/Android.mk#jni/include/test1.h........#jni/include/testn.h#jni/include/client/client1.h.........#jni/include/client/clientn原创 2012-12-06 18:08:00 · 584 阅读 · 0 评论 -
Android NDK static shared library
Android NDK about Library (static library , share library and 3rd party library)A:Static library文件Android.mk:LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := hello-j转载 2012-12-14 14:46:52 · 6177 阅读 · 0 评论 -
Android start simulator manually
emulator @TestVideo15原创 2012-12-20 16:19:10 · 520 阅读 · 0 评论 -
android init.rc modify
首先来这里下载已经编译好的busybox的二进制文件。按照下述步骤操作即可:1) 将ramdisk.img复制到其他目录,改名为ramdisk.img.gz,使用gunzip解压。2) 新建一个文件夹,new_ramdisk,进入,执行: cpio -i -F ../ramdisk.img3) 修改init.rc,将/data/busybox添加到PATH的最前面,转载 2012-12-21 09:16:43 · 590 阅读 · 0 评论 -
android create sdcard
1. cd tools2 . mksdcard -l mysdcard 256M e:\mysdcard.img -l命令行参数表示虚拟磁盘的卷标,可以没有该参数3. emulator -avd TestVideo15 -sdcard e:\mysdcard.img4. add -sdcard e:\mysdcard.img on eclipse windows--原创 2012-11-07 15:51:42 · 486 阅读 · 0 评论 -
android makefile
BUILD_ROOT := `pwd`\buildLOCAL_PATH := $(call my-dir)BUILD_PATH := $(LOCAL_PATH)/$(BUILD_ROOT)include $(CLEAR_VARS)LOCAL_C_INCLUDES := $(ANDROID_NDK_ROOT)/platforms/android-14/arch-arm/usr/i原创 2012-11-20 13:03:56 · 471 阅读 · 0 评论 -
android platform env setup
1. init.rc file on early-init start ueventd on init sysclktz 0 loglevel 3 # setup the global environment export PATH /sbin:/vendor/bin:/原创 2012-11-29 16:09:39 · 1964 阅读 · 0 评论 -
Android JNI JNINativeMethod register
http://marakana.com/s/post/1292/jni_reference_exampleAndroid JNI JNINativeMethod register1. Andoird JNINativeMethod 定义如下:typedef struct {const char* fname;const char* sg;void* f原创 2012-11-28 16:55:42 · 3724 阅读 · 0 评论 -
cross compile
http://blog.youkuaiyun.com/veryitman/article/details/70516801. build、 host 和 target 初步在交叉编译中比较常见的一些参数就是build、host 和 target了,正确的理解这三者的含义对于交叉编译是非常重要的,下面就此进行解释--build=编译该软件所使用的平台-转载 2014-02-19 12:22:38 · 828 阅读 · 0 评论 -
cross compile openssl
http://blog.youkuaiyun.com/zqj6893/article/details/8778237最近的项目需求中依赖libcrypto和libssl库,所以需要编译安装openssl0.9.8e,花了差不多一天的时间终于成功安装和裁剪,现在总结并分享个人的方法,贴出来供大家参考和指正。方法如下(不同的平台要根据实际环境更改相应的编译工具):一、配置:./config转载 2014-02-19 10:18:26 · 2180 阅读 · 0 评论 -
linux review usb device information
# cat /proc/bus/usb/devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfg原创 2014-04-16 10:37:58 · 705 阅读 · 0 评论 -
Time Intro - Epoch Time
time() returns the time since the Epoch (00:00:00 UTC, January 1, 1970), measured in seconds转载 2014-12-24 10:38:57 · 495 阅读 · 0 评论 -
static library link
As far as static library link, you must keep it not stripped when linked, otherwise error relevant to symbol no found will rise...原创 2014-12-25 16:00:03 · 621 阅读 · 0 评论 -
VS2013 配置全局 VC++ 目录
1. 随便打开一个项目,然后点击菜单中的 视图->其他窗口->属性管理器2. 打开属性管理器,点击项目前的箭头,展开项目,找到debug或者release下面的Microsoft.Cpp.Win32.user这个属性,3. 双击会出现一个跟在项目上右键属性一样的窗口,修改里面的“VC++目录”就是修改了全局的,原创 2015-05-04 12:46:13 · 11594 阅读 · 0 评论 -
Ubuntu change default sh from dash to bash
1. run dpkg-reconfigure sudo dpkg-reconfigure dash 2. choosechoose no原创 2015-06-09 13:53:40 · 1178 阅读 · 0 评论 -
Visual Studio Compile and Link error LNK2005
错误 1 error LNK2005: "void __cdecl _invalid_parameter(unsigned short const *,unsigned short const *,unsigned short const *,unsigned int,unsigned int)" (?_invalid_parameter@@YAXPBG00II@Z) 已经在 LIBCMTD.原创 2015-08-25 15:46:11 · 1414 阅读 · 0 评论 -
GCC Intro - Compile 32-bit Application on 64-bit ubuntu
gcc -m32 -o tat.x tat.c atom1.o原创 2015-09-07 17:21:12 · 718 阅读 · 0 评论 -
embed linux development - nfs
/myshared *(rw,sync,no_subtree_check,no_root_squash)mount -t nfs -o nolock -o tcp 192.168.1.166:/myshared /mnt原创 2015-10-05 10:45:08 · 398 阅读 · 0 评论 -
Linux TLS - pthread_setspcific
下面说一下线程中特有的线程存储, Thread Specific Data 。线程存储有什么用了?大家都知道,在多线程程序中,所有线程共享程序中的变量。现在有一全局变量,所有线程都可以使用它,改变它的值。而如果每个线程希望能单独拥有它,那么就需要使用线程存储了。表面上看来这是一个全局变量,所有线程都可以使用它,而它的值在每一个线程中又是单独存储的。这就是线程存储的意义。下面说一转载 2016-02-19 15:25:50 · 454 阅读 · 0 评论 -
ubuntu vmware bridged mode on surf
1. dhcp mode1.1 设置 /etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopback1.2 重启 ubuntu1.3 重新进入系统将会看到 /etc/resolv.conf内容如下:nameserver 12原创 2016-02-25 14:29:19 · 472 阅读 · 0 评论 -
linux ldconfig
1. configure compile and install protobuf-2..6.1.tar.gztar zxf protobuf-2.6.1.tar.gzcd protobuf-2.6.1./configuremakemake insall2. check library so file in /usr/local/libsure, they ar原创 2016-02-26 15:07:50 · 447 阅读 · 0 评论 -
IOS Dev Intro - FBO
https://developer.apple.com/library/ios/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/WorkingwithEAGLContexts/WorkingwithEAGLContexts.htmlDrawing to Other Rendering Destinations转载 2016-06-25 21:44:03 · 532 阅读 · 0 评论 -
IOS Dev Intro - Resize image in ios programatically
http://www.abdus.me/ios-programming-tips/resize-image-in-ios/Make sure toInclude QuartzCore.FrameWork in projectImport in implementation fileResize Image in iOSview转载 2016-06-26 11:03:57 · 793 阅读 · 0 评论 -
IOS Dev Intro - Opengl ES Context Share Group
https://developer.apple.com/library/ios/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/WorkingwithOpenGLESContexts/WorkingwithOpenGLESContexts.htmlConfiguring OpenGL ES Conte转载 2016-06-25 21:40:42 · 1394 阅读 · 0 评论 -
IOS Dev Intro - Subclass UIView to Render by Opengl ES
http://nehe.gamedev.net/tutorial/ios_lesson_01__setting_up_gl_es/44001/Hi all to the first tutorial in our new iOS series!PrefaceBefore you start with the tutorial you should know,转载 2016-06-26 12:06:46 · 696 阅读 · 0 评论