上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: /*in windowsthe fc tool is so ugly!*/#include <cctype>#include <cstdio>#include <cstring>#include <cstdlib>#include <cassert>#include <map>#include <list>#include <set>#include <queue>#include <vector>#include <sstream>#include <it 阅读全文
posted @ 2012-11-18 19:59 strorehouse 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 simple memory manage demo from TCPL 3 should be compiled in unix 4 debug to see how it works 5 */ 6 7 #include <stdio.h> 8 #include <stdlib.h> 9 #include <unistd.h> 10 11 typedef long Align; 12 13 union header 14 { 15 struct 16 { 17 union header* p... 阅读全文
posted @ 2012-10-29 14:27 strorehouse 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 对Busybox 1.1.2版的大体框架进行了抽取,以便于看清。 1 /* 2 Author: 3 Framework of busybox 4 5 A simple demo to show how busybox works 6 7 complie: 8 gcc ***.c -o busybox 9 10 run: 11 ./busybox bbtest 12 13 */ 14 15 #include <stdlib.h> 16 #include <stdarg.h> 17 #include <errno.h> 18 #include <strin 阅读全文
posted @ 2012-10-27 20:36 strorehouse 阅读(4972) 评论(0) 推荐(0) 编辑
摘要: Astyle 一直是我很喜欢的代码格式化工具。以下为ubuntu下在Qt creator 中作为插件使用的方法:安装:1 sudo apt-get install astyle -qq -y配置:Qt creator->Options->Environment->External Tools->Add,我格式化c++程序的参数如下: 阅读全文
posted @ 2012-10-22 17:01 strorehouse 阅读(992) 评论(0) 推荐(0) 编辑
摘要: Qt自带的desert主题不怎么好看,于是找了一个monokai(点我下载)。Linux下安装(USER_NAME 为自己的用户名):cp monokai/home/USER_NAME/.config/Nokia/qtcreator/styleswindows 7下安装(USER_NAME 为自己的用户名):复制到:C:\Users\USER_NAME\AppData\Roaming\Nokia\qtcreator\styles之后就可以在QT的option那里选择了。效果图: 阅读全文
posted @ 2012-10-18 10:21 strorehouse 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 1. 安装1 sudo apt-get install tftp-hpa tftpd-hpa -qq -y2.配置编辑文件:1 sudo gedit /etc/default/tftpd-hpa修改内容:1 # /etc/default/tftpd-hpa2 TFTP_USERNAME="tftp"3 TFTP_DIRECTORY="/tftpboot" #自定义目录4 TFTP_ADDRESS="0.0.0.0:69"5 TFTP_OPTIONS="--secure"3.创建目录并修改权限1 sudo mkdir 阅读全文
posted @ 2012-10-10 18:55 strorehouse 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 不喜欢自带的橘黄色选中框,google了一下解决方案。(以我的12.04为例)将以下三个文件夹(与你当前使用的GTK颜色主题名字一致)中的“#f07746”字段替换为自己喜欢的颜色即可。(比如灰色:#4f4f4f)注销之后可以看到效果。(原本以为Alt+F2输入r可以刷新界面,没想到没见到效果。)/usr/share/themes/Ambiance/gtk-3.0/gtk.css/usr/share/themes/Ambiance/gtk-3.0/settings.ini/usr/share/themes/Ambiance/gtk-2.0/gtkrc 阅读全文
posted @ 2012-10-04 10:40 strorehouse 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 安装:sudo apt-get install vsftpd -qq -y修改配置:sudo gedit /etc/vsftpd.conf 添加内容:#允许匿名登录anonymous_enable=YES #允许本地登录local_enable=YES#以下设定目录,可以不用将/home/ftp 作为匿名的登录的目录#anon_root=/home/ftp建立共享文件夹:1 sudo mkdir /home/ftp2 sudo chgrp ftp /home/ftp测试:随便复制一些文件到 /home/ftp中,然后登录ftp登录方式一:网页登录,浏览器输入ftp://localhost方式二 阅读全文
posted @ 2012-09-24 14:00 strorehouse 阅读(2024) 评论(0) 推荐(0) 编辑
摘要: NASM语言: Codee#27219assume cs:codedata segment db 'Welcome to asm','$'data endscode segment start: mov ah,2 mov bh,0 mov dh,5 mov dl,12 int 10h mov ax,data mov ds,ax mov dx,0 mov ah,9 int 21h mov ax,4c00h int 21h code endsend start 阅读全文
posted @ 2012-09-09 09:09 strorehouse 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 想在vim中阅读使用Qt框架的代码?没有关键字着色怎么行。 似乎唯一可用的脚本就是这个了,按照说明似乎开不起来,于是自己拼凑了一个( 点此下载)。 使用方法: 复制到(~\Vim\vim73\syntax) 中,替换原有的文件即可。 (此脚本历史过于悠久,对Qt新关键字支持不全,可以自己添加) 附图: 阅读全文
posted @ 2012-05-04 09:41 strorehouse 阅读(404) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页