自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (2)
  • 收藏
  • 关注

原创 Ubuntu vlc vod 服务器

1、终端1输入:  sudo vlc-wrapper --ttl 12 -vvv --color -I telnet --telnet-password 111111 --rtsp-host 0.0.0.0:554 2、终端2输入: telnet 127.0.0.1 4212 password:111111 3、在telnet上输入 new Test vod enabled se

2014-03-08 11:32:38 1239

原创 C调用C++函数

1.C++代码 #include using namespace std; extern "C" void func(void) { cout << "This is a C++ code" << endl; } 2.C代码 #include extern void func(void); void f(void) { printf("being used wi

2014-01-04 18:32:32 708

原创 C++调用C函数

1.C代码 #include void f(void) { printf("This is a C code\n"); } 2.C++代码 #include using namespace std; extern "C"{     void f(); } void func(void) {     cout } int ma

2014-01-04 18:18:22 699

原创 线程同步

测试程序: #include #include #include #include #include static pthread_mutex_t mutex; static pthread_cond_t cond; static int m_exiting = 0; static void *proc(void *arg) { int i = 0; while(m_e

2014-01-02 01:12:44 664

原创 ubuntu环境

sudo apt-get install vim  sudo apt-get install exuberant-ctags  sudo apt-get install cscope  sudo apt-get install build-essential   sudo apt-get install manpages-posix-dev sudo apt-get install op

2014-01-01 20:50:24 603

原创 Android系统音量类型

/** The audio stream for phone calls */ public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL; /** The audio stream for system sounds */ public static final int STREAM_

2013-12-30 17:03:37 1499

原创 man thread

sudo apt-get install glibc-doc sudo apt-get install manpages-posix-dev

2013-12-30 11:18:46 730

原创 ubuntu 网络配置

auto lo iface lo inet loopback auto eth1 iface eth1 inet static address 10.10.2.61 gateway 10.10.2.1 netmask 255.255.255.0 auto eth1:1 iface eth1:1 inet static address 192.168.1.60 gateway 192.168.1

2013-12-29 17:41:00 621

原创 dropbear

1.Ubuntu上移植dropbear支持ssh server 1)编译zlib 2)编译dropbear 3)生产key sudo mkdir /etc/dropbear sudo ./dropbearkey   -t rsa -f /etc/dropbear/dropbear_rsa_host_key sudo ./dropbearkey   -t dss -f /etc/drop

2013-12-23 21:25:29 813

原创 misc device

1.mybinder.c #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #d

2013-12-23 00:06:55 703

原创 Linux hello world 驱动

1.hello.c#include #include MODULE_LICENSE("Dual BSD/GPL"); static int hello_init(void) { printk(KERN_ALERT "hello, world\n"); return 0; } static int hello_exit(void) { printk(KERN_ALERT

2013-12-22 22:15:37 652

原创 Service Manager

1.system/core/rootdir/init.rc service servicemanager /system/bin/servicemanager class core user system group system critical onrestart restart zygote onrestart restart media

2013-12-22 19:07:23 763

原创 Linux kernel rbtree

1.rbtree.h/* Red Black Trees (C) 1999 Andrea Arcangeli This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish

2013-12-21 23:42:09 927

原创 IMediaDeathNotifier

1.IMediaDeathNotifier::getMediaPlayerService()SortedVector > IMediaDeathNotifier::sObitRecipients; // establish binder interface to MediaPlayerService /*static*/const sp& IMediaDeathNotifier::getMedi

2013-12-21 16:18:14 1205

原创 Androd修改app_process为Zygote进程名字

1.process_name.h/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th

2013-12-21 01:19:39 2378

原创 C语言宏

1.常量#include #include #define PI_PLUS_ONE (3.14 + 1) int main(int argc, char *argv[]) { float x = PI_PLUS_ONE * 5; printf("x = %f\n",x); return 0; }输出结果: x = 20.700001 2.条件编译:#if,

2013-12-20 23:56:59 806

原创 Parcel 包裹类

1.Parcel类的声明class Parcel { public: class ReadableBlob; class WritableBlob; Parcel(); ~Parcel(); const uint8_t* data() const;

2013-12-19 17:08:43 1265

原创 Threads

1.线程构造函数 #endif // ---------------------------------------------------------------------------- /* * This is our thread object! */ Thread::Thread(bool canCallJava) : mCanCallJava(canCallJa

2013-12-19 12:46:31 1174

原创 IPCThreadState

1.先看看IPCThreadState的声明 class IPCThreadState { public: static IPCThreadState* self(); static IPCThreadState* selfOrNull(); // self(), but won't instantiate sp pr

2013-12-18 16:52:03 1015

原创 ProcessState

我们先来看一下ProcessState.h文件对ProcessState类的声明: class IPCThreadState; class ProcessState : public virtual RefBase { public: static sp self(); void setContextObject(cons

2013-12-18 13:50:47 1549

原创 defaultServiceManager

1.我们先来看一下IServiceManager.h class IServiceManager : public IInterface { public: DECLARE_META_INTERFACE(ServiceManager); /** * Retrieve an existing service, blocking for a few seconds

2013-12-18 13:48:38 1102

转载 Friend functions and classes

For much of this chapter, we’ve been preaching the virtues of keeping your data private. However, you may occasionally find situations where you will find you have classes and functions that need to w

2013-12-14 18:39:00 791

原创 Android Native常见类

template class Vector : private VectorImpl { public: typedef TYPE value_type; /*! * Constructors and destructors */ Vector();

2013-12-13 20:00:51 1085

原创 Android native线程

先来看一下线程头文件threads.h class Thread : virtual public RefBase { public: // Create a Thread object, but doesn't create or start the associated // thread. See the run() method.

2013-12-11 17:03:45 1693 1

原创 main_mediaserver

1.main_mediaserver入口

2013-12-11 09:37:23 1077

原创 getopt_long

#include     /* for printf */ #include    /* for exit */ #include int main(int argc, char **argv) {     int c;     int digit_optind = 0;     while (1) {         int this_option_opt

2013-09-08 03:25:14 637

原创 getopt

#include #include #include int main(int argc, char *argv[]) {     int flags, opt;     int nsecs, tfnd;     int i;     nsecs = 0;     tfnd = 0;     flags = 0;     while ((opt = g

2013-09-08 02:50:27 715

原创 使用linux中标准的queue.h头文件插件链表,队列,循环队列

#include #include #include #include int test_list() {     LIST_HEAD(listhead, entry) head;     struct listhead *headp;                 /* List head. */     struct entry {         ch

2013-09-07 04:15:58 4724

转载 How to Become a Software Architect

I often get asked by up-and-coming technologists, "what things should I be doing to work towards becoming an architect"? Of course, as is often the case when asking an architect a question, the answ

2013-09-07 02:31:52 1030

byte_of_python

写的很强悍的python教程.英文教程,写的很简单,看得很容易理解。

2013-10-11

byte_of_vim_v051

写得很浅显,但是很容易读懂的vim完整教程。

2013-10-11

空空如也

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

TA关注的人

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