#include <fcntl.h>;
#include <unistd.h>;
#include <sys/types.h>;
#include <sys/stat.h>;
int open(const char *pathname,int flags);
int open(const char *pathname,int flags,mode_t mode);
int close(int fd);
#include <unistd.h>;
ssize_t read(int fd, void *buffer,size_t count);
ssize_t wr...
#include <unistd.h>;
int execl(const char *path,const char *arg,...);
int execlp(const char *file,const char *arg,...);
int execle(const char *path,const char *arg,...);
int execv(const char *path,char *const argv[]);
int execvp(const char *file,char *const argv[]):
#include <unistd.h>...
#include <unistd.h>
pid_t getpid(void);
pid_t fork();
int pipe(int fides[2]);
int sigemptyset(sigset_t *set);
int sigfillset(sigset_t *set);
int sigaddset(sigset_t *set,int signo);
int sigdelset(sigset_t *set,int signo);
int sigismember(sigset_t *set,...
cp -a $(rootfs_dir)/* $(target_out_romfs)
cp -f $(target_out_kernel)/fs/ext2/ext2.ko $(target_out_romfs)/lib/modules
cp -f $(target_out_kernel)/fs/mbcacke.ko $(target_out_romfs?lic/modules
cp -f $(target_out_user)/bin/* $(target_out_romfs)/usr/bin
vi...
su
apt-get install eclipse-cdt
apt-get install genromfs
apt-get install libncurses5-dev
apt-get install git
apt-get install mc
mc
uclinux
ctrl+O
.ACTIVE.sh
ctrl+O
make
#include
int main()
{
pr...
rails的data-remote="true"很方便,链接加上这个属性点击链接即可在前端运行链接所指向的服务端返回的js代码。前端只需要下面几行代码
$(document).ready(function () {
$("a[data-remote=true]").click(function(e){
e.preventDefault();
$.getScript($(this).attr('href'));
});
});
listview 特性:批量显示数据结构相同式者相近的数据。
以列表形式显示内容。 每行结构相似。
作用:批量展示信息。滑动显示。
listiview 组合控件;
普通控件:内容跟控件是在同一对象里面。
如:文本框等
组合控件:内容跟控件不在一个对象里面。
如:
listview的原理:
UI 内容:
listview控件: Adapter适配器:
框和行分隔 ...
ContextMenu: 上下文菜单
步骤:
1、 textView1 = (TextView) findViewById(R.id.textView1);
textView2 = (TextView) findViewById(R.id.textView2);
//为控件注册上下文菜单
registerForContextMenu(textView1);
registerForContextMenu(textView2);
2、创建上下文菜单:重写onCreateContex...
:
将应用程序的一些重要信息通知给用户。
1、Toast
形式:一般在界面下半部分,弹出一个黑色的方框,不会影响用户操作,过一阵子自已会消失(不会因为界面的消失而消失)
特性:1、Toast提示消息不会获取焦点
2、Toast提示信息过一段时间就会自动消失,不需要用户确认(反馈)
步骤:
1、通过Toast的静态方法:makeText(context,文本,Toast显示的时间)创建一个Toast对象。
makeText()参数:1、上下文对象context,直接指向activity本身
...
看了许多文章之后,感慨万分,淡淡的黑夜无法入睡,谢谢编程中国这个社区给了我继续下去的勇气,我将付出更大的代价来从事软件开发。一路走来,道路坎坷,阻碍重重,但我天生有不放弃的意志,于是我将努力,努力,在努力。加油,明天会更好,早起开始学习,开始奋斗。
很方便,以后可能用的到
https://glot.io/
去年微软在Builder 2013开发者大会上发布了Visual Studio 2013预览版,并且发布其程序组件库.NET 4.5.1的预览版。VS2013较以前的VS2012上进行了大量的改进,使用上更加方便简洁,而且添加很多新的功能。最重要的是VS2013支持 Windows 8.1 App 开发,这对WP开发者是个好消息。今天,小编给大家带来的就是,如何在Win7下安装注册VS2013。
工具/...
http://www.cnblogs.com/timeng/archive/2013/05/17/3084185.html
http://jingyan.baidu.com/article/67662997393cf654d51b8435.html
http://segmentfault.com/a/1190000002401964
http://blog.csdn.net/zhoujn90/article/details/8957713
http://www.linuxidc.com/Linux/2014-09/106914...
ASCII码排序
描述
输入三个字符(可以重复)后,按各字符的ASCII码从小到大的顺序输出这三个字符。
输入
第一行输入一个数N,表示有N组测试数据。后面的N行输入多组数据,每组输入数据都是占一行,有三个字符组成,之间无空格。
输出
对于每组输入数据,输出一行,字符中间用一个空格分开。
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
int main(void){
int num=0,i,tmp;
cha...
Where:
class Teacher < ActiveRecord::Base
has_and_belongs_to_many :students
end
and
class Student < ActiveRecord::Base
has_and_belongs_to_many :teachers
end
for rails 4:
rails generate migration CreateJoinTableStudentTeacher student teacher
for rail...
轻轻地我走了,正如我轻轻地来。时间匆匆,就像流星滑破天际。
时间又犹如流水般匆匆地赶集。“黄河之水天上来,奔流到海不复回。”时间又犹如一去不复的河水,只能让它在岁月里惭惭流逝。
相聚犹在昨天,分别即在眼前。回首逝去的日子,数不清校园里留下多少欢乐,而今心头不免涌起缕缕怅惘。
呤起李叔同的《送别》:“一杯浊洒尽余欢,今宵别梦寒。”“人生难得是欢聚,惟有别离多。”时间不能停留在某一时刻,花好月圆、花容月貌在历史的长河和人生的旅程也只能是昙花一现,或许秉烛夜游才是神机妙算。
天下没有不散的宴席,如今经历的离别也数不胜数,不管内心有多么的不舍...
service 服务
android四大组件之一 。它一直运行在后台,没有界面。
创建service的要素:
1、继承service
2、在清单文件里面配置:
包名+类名
启动服务的方法:
startService(intent)方法;
service生命周期: onCreate() onstartCommand();
注意:第一次开启服务的...
Activity
四大组件之一。
activity的创建要素:
1、创建的类要继承Activity
2、setContentView()引用一个布局文件
3、在清单文件里面进行配置
android:name="com.example.ex00_android.MainActivity"(包名+类名)
跳转到新的界面并传递消息:
A --> B
第一个界面:
一般是在...
类加载顺序:
成员变量 --> 构造方法 --> 普通方法
出现FC
1、看日志:
a、 首先查看异常类型:NullPointException 空指针异常
ClassCastException 类转换异常
b、从异常类型往下看,找到第一行自己的代码(显示代码出错行数)
c、双击定位到出现问题的代码
Logcat 日志
作用:调...
ps ls pwd
ftp ftp server \telnet\telnet server
DHCP client
server login
addusr
NFS mount