07 2013 档案

摘要:这篇Bash Shell Shortcuts的快捷键总结的非常好。值得学习。下面内容大多数是拷贝粘贴与总结.CTRL 键相关的快捷键:Ctrl + a - Jump to the start of the lineCtrl + b - Move back a charCtrl + c - Termi... 阅读全文
posted @ 2013-07-29 21:38 scue 阅读(342) 评论(0) 推荐(0) 编辑
摘要:错误1:hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp: In function 'int android::hdmi_gl_set_param(int, int, int, int, unsigned int, unsigned int, int, int, int, int, int)':hardware/samsung/exynos4/hal/libhdmi/SecHdmi/SecHdmiV4L2Utils.cpp:1689:92: warning: extended initialize 阅读全文
posted @ 2013-07-28 22:29 scue 阅读(2452) 评论(0) 推荐(0) 编辑
摘要:bluedroid.so for k860/k860i1./media/Enjoy/AndroidCode/cm10.1/device/lenovo/stuttgart/bluetooth/bluetooth.c [new file]/* * 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 阅读全文
posted @ 2013-07-26 22:08 scue 阅读(1030) 评论(0) 推荐(0) 编辑
摘要:1. 修改/etc/ssh/sshd_config文件,设置允许TCP转发和X11转发AllowTcpForwarding yesX11Forwarding yes2. 登录无图形远程主机,并允许图形转发ssh -q -X user@remotehost3. 测试是否成功gedit &以上提到的本机环境为Debian 7.1.0 wheezy(如果是Windows还需要其他的设置)参考资料:http://www.linuxtopia.org/online_books/linux_system_administration/debian_linux_guides/debian_linux 阅读全文
posted @ 2013-07-26 00:48 scue 阅读(12267) 评论(0) 推荐(0) 编辑
摘要:第一部分1. sudo 运行上一条命令 sudo !!2. HTTP方式共享当前目录 python -m SimpleHTTPServer 803. vim保存一个root用户文件 :w !sudo tee %4. 快速切换至旧的目录 cd -5. 替换上一条命令中的一个短语... 阅读全文
posted @ 2013-07-26 00:10 scue 阅读(560) 评论(0) 推荐(0) 编辑
摘要:root@Fedora:~# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Intel Corporation 82540EM Gigabit Ethernet ControllerDEVICE=eth0#BOOTPROTO=dhcpHWADDR=08:00:27:5f:5c:31ONBOOT=yesDHCP_HOSTNAME=localhost.localdomain#NM_CONTROLLED=# add by linkscue, for static ip addrBOOTPROTO=staticNM_CONTROLLED=yesIPAD 阅读全文
posted @ 2013-07-25 22:12 scue 阅读(7230) 评论(0) 推荐(0) 编辑
摘要:char * 与 const char *的转换char *ch1=”hello11″;const char *ch2=”hello22″;ch2 = ch1;//不报错,但有警告ch1 = (char *)ch2;char 转换为 QString其实方法有很多中,我用的是:char a=’b';QString str;str=QString(a);QString 转换为 char方法也用很多中QString str=”abc”;char *ch;ch = str.toLatin1.data();QByteArray 转换为 char *char *ch;//不要定义成ch[n];QB 阅读全文
posted @ 2013-07-24 17:22 scue 阅读(309) 评论(0) 推荐(0) 编辑
摘要:在main.cpp中添加:#include "QTextCodec"QTextCodec *codec = QTextCodec::codecForName("System"); //获取系统编码QTextCodec::setCodecForLocale(codec);QTextCodec::setCodecForCStrings(codec);QTextCodec::setCodecForTr(codec); 阅读全文
posted @ 2013-07-23 22:51 scue 阅读(366) 评论(0) 推荐(0) 编辑
摘要:1. Android手机上打开USB共享2. Linux上修改USB0的ip地址并启用sudo ifconfig usb0 192.168.42.127 up3. Android手机上修改路由表和dnsbusybox route add default gw 192.168.42.1setprop net.dns1 192.168.1.1此时可以连接至电脑的ip(192.168.1.100),并使用tftp下载文件4. Linux使usb0 允许共享网络(Enable Internet connection sharing),手机就可以通过PC的网络上网了sudo apt-get instal 阅读全文
posted @ 2013-07-20 00:05 scue 阅读(10351) 评论(0) 推荐(1) 编辑
摘要:1. 在开发板上的/etc/securetty添加pts/0pts/1pts/2pts/32. 设定开发板的root密码[root@Link /root]# passwd Changing password for rootNew password: Retype password: 3. 设定开发板的ip地址ifconfig eth0 192.168.1.1014. 在开发板上使telnetd在后台运行telnetdtelnetd -F5. 在开发板上设置网关及转发规则ip route add 0.0.0.0 dev eth0ip route add default via 192.168. 阅读全文
posted @ 2013-07-19 19:15 scue 阅读(3506) 评论(1) 推荐(0) 编辑
摘要:1. 安装必须软件sudo apt-get install -y xinetd tftp-hpa2. 修改配置文件vi /etc/default/tftpd-hpa# /etc/default/tftpd-hpaTFTP_USERNAME="tftp"TFTP_DIRECTORY="/media/Study/tftpserver"TFTP_ADDRESS="0.0.0.0:69"#TFTP_OPTIONS="--secure"TFTP_OPTIONS="-l -c -s"3. 打开tftpsud 阅读全文
posted @ 2013-07-19 16:00 scue 阅读(1172) 评论(0) 推荐(0) 编辑
摘要:/* * ===================================================================================== * * Filename: multi.c * * Description: * * Version: 1.0 * Created: Wednesday, July 17, 2013 02:26:11 HKT * Revision: none * Compiler: gcc * * Author: linkscue... 阅读全文
posted @ 2013-07-17 14:39 scue 阅读(3217) 评论(0) 推荐(0) 编辑
摘要:#include #include #include int string2int(char *arg){ char c; int i,j,tmp=0,tmpc=0; for (i = 0; i < strlen(arg); i++) { c=(*(arg+i)); tmp=tmp*10+(int)c-48; } return tmp;}使用语言,C/C++; 阅读全文
posted @ 2013-07-15 12:07 scue 阅读(941) 评论(0) 推荐(0) 编辑
摘要:1. 查询版本aptitude show [软件]2. 查询路径dpkg -L [软件]whereis [软件]which [软件] 阅读全文
posted @ 2013-07-15 09:11 scue 阅读(764) 评论(0) 推荐(0) 编辑
摘要:scue@Link:/home/work/ltib$ ./ltib --helpThis script is used to manage the building of BSPs with common targetroot filesystems.Normally the system default are what you need. However, if you need to finetune some of the setup parameters, edit the file .ltibrc in this directory,alternatively you may us 阅读全文
posted @ 2013-07-14 22:02 scue 阅读(531) 评论(0) 推荐(0) 编辑
摘要:报错内容:scue@Link:/home/work/ltib$ ./ltib Processing platform: Phytec 3250 board with the NXP LPC32XX SoC=================================================================using config/platform/phy3250/.config/opt/ltib/usr/bin/rpm: error while loading shared libraries: libbz2.so.1: cannot open shared obj 阅读全文
posted @ 2013-07-14 20:44 scue 阅读(707) 评论(0) 推荐(0) 编辑
摘要:1. 首先应当使CM代码成功编译过一次;cd /path/to/cm. build/envsetuplunch full-engmka2. 配置eclipse开发的基本环境cd /path/to/cmcp development/ide/eclipse/.classpath .chmod u+w .classpath打开eclipse:window->preferences->java->Code style->Formatter中导入development/ide/eclipse/android-formatting.xml ,配置eclipse编辑器的代码风格win 阅读全文
posted @ 2013-07-03 09:07 scue 阅读(317) 评论(0) 推荐(0) 编辑
摘要:切换至eclipse目录:viplugins/org.eclipse.platform_4.2.*/css/e4_default_gtk.css找到.MPartStack,替换成如下代码:.MPartStack { font-size: 9; font-family: Liberation Sa... 阅读全文
posted @ 2013-07-03 08:10 scue 阅读(1251) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示