`
koliy
  • 浏览: 146920 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
一般刚装好的ubuntu。使用SecureCRT 无法连接成功。 因此需要安装ssh功能。 sudo apt-get install openssh-server openssh-client ok~ 安装好后,确定下ssh-server是否启动成功。 #netstat -tlp root@nsk:~# netstat -tlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program ...
路径: D:\myandroid\myandroid\frameworks\base\core\res\res\values\config.xml     <string-array name="config_statusBarIcons">        <item><xliff:g id="id">ime</xliff:g></item>        <item><xliff:g id="id">sync_failing</xliff:g&g ...
#define DEBUG #ifdef DEBUG #define DBG(stuff...) printk(KERN_DEBUG"-------> " stuff) #else #define DBG(fmt, args...) do{}while(0) #endif
grep -rn "hello,world!" ./ ./ : 表示路径为当前目录. -r 是递归查找 -n 是显示行号
Video Overlay: Video overlay devices have the ability to genlock (TV-)video into the (VGA-)video signal of a graphics card, or to store captured images directly in video memory of a graphics card, typically with clipping Video overlay可以同步video到显示输出,  或者直接存储捕获的images到framebuffer的内存中。也就是说video overla ...
编译wifi的驱动,有时候会提示以下错误信息: error: field 'sem_req' has incomplete type error: field 'sem_async' has incomplete type error: implicit declaration of function 'up' error: implicit declaration of function 'down_interruptible' 。。。。 原因是linux内核升级之后,关于semaphore的头文件变了。修正这个错误很简单,只要在报错的文件中加入正确的头文件 #include <lin ...
1.打开eclipse新建一个android的工程,就叫"helloworld"吧。建立后添加一个class文件作为jni的接口,包名:package mtk.abc; 类名:Uart public class Uart{      public native void print();  static{         try{               Log.i("JNI","try to load libmtkserial.so");               System.loadLibrary(&qu ...
Complex ( double d) {    real =r;    image =0; } 其作用是将double 类型的参数d转换成Complex类的对象。 转换构造函数:将一个其它类型的数据转换成一个类对象。只能有一个参数。 如: c=c1+Complex(2.5); ============================ 类型转换函数:            将一个类对象转换成另一个类型数据。只能是类的成员函数。 operator double() {     return real; }   比如: c1=c2+d1 编译系统是怎么处理的了? ...
void (Time::*p)(); p=&Time::func; Time t; (t.*p)();
#include<iostream> using namespace std; class Time; class Data { public: Data(int d):day(d){} friend void display(Data &,Time &); private: int day; }; class Time { public: Time(int h):hour(h){} friend void display(Data &,Time &); private: int hour; }; ...
#include<iostream> using namespace std; class Student { public : void set(); void show(); private: int num; int data; }; void Student::set() { cout<<"please input one student num:"; cin>>num; cout<<"please input one ...
#include<iostream> using namespace std; template <class sp> class Num { public: Num(sp a,sp b):a1(a),b1(b){} sp max(); sp min(); private: sp a1,b1; }; template <class sp> //类外定义多需要声明此句。 sp Num<sp> ::max() { return (a1>b1)?a1:b1; } template <clas ...
Audio Codec的必要性        在理想状况下,对于录音过程,只需要将麦克风获取到的analog信号通过ADC转换为digital信号并存储即可,对于播放音过程,只需要将digital信号通过DAC转换为analog并输出到speaker播放即可。        但在实际的过程中,对于录音过程而言,会受到外界声源的干扰,麦克风自身对信号的衰减以及物理链路接口上引入的杂音等因素的影响,对于放音,可能会受digital数据本身的问题等因素的影响。 举个简单的例子,拿着手机或者固定电话和别人讲话的时候,虽然一边自己说话,一边听电话另外一端的人讲话,但是从听筒中并没有非常明显的听到自己 ...
这里吐下:ubuntu用的真草蛋,用个软件修改文件,不是这个没权限,就是这个不能修改。我日啊。   /etc/lightdm/lightdm.conf 里面改成"autologin-user=root"就自己root登陆了 ============================ 11.04 sudo passwd root 修改root密码。 退出登录。 在登录界面选择other 输入 root 密码 ========================== 如何删除忘记的root密码。    另种方法是,把需要删除密码的硬盘接到另一个linux系统上 ...
 在编译android环境时,java -version 命令明明能够正确表示java已经安装成功,环境设置正确。但是,在编译android时,检查java版本却通不过去:提示/bin/bash: java: command not found  问题, 重装jdk几次仍是出现这种问题,没办法只好做个软链接了。      sudo ln -s /jdk1.6.0_21/bin/jar /bin/jar    sudo ln -s /jdk1.6.0_21/bin/java /bin/java    sudo ln -s /jdk1.6.0_21/bin/javac /bin/javac ...
Global site tag (gtag.js) - Google Analytics