03 2014 档案

Wireshark设置interface 时提示“There are no interfaces on which a capture can be done ”
摘要:学习于:http://blog.163.com/likaifeng@126/blog/static/32097310201271451655190/ 阅读全文

posted @ 2014-03-30 16:45 Stomach_ache 阅读(155) 评论(0) 推荐(0) 编辑

Markdown 常用语法学习(stackedit)
摘要:Welcome to StackEdit!{#welcome}=====================Hello, I am your first Markdown document within **StackEdit**[^stackedit]. Don't delete me, I can... 阅读全文

posted @ 2014-03-29 22:45 Stomach_ache 阅读(679) 评论(0) 推荐(0) 编辑

Sublime Text2的常用技巧总结(更新中...)
摘要:1. 选中一段内容后,按 Tab 或者 shift Tab 可以控制缩进2. alt + shift + 数字, 开启多个窗口,数字代表分割后的个数,分割后按 Ctrl + shift + 数字 可以把当前窗口的内容剪切到选择的数字所代表的窗口中,也就是转移内容。3.查找/替换Ctrl+F:查找内容... 阅读全文

posted @ 2014-03-29 12:32 Stomach_ache 阅读(203) 评论(0) 推荐(0) 编辑

Python比较有用的小语法
摘要:额,这是在Codeforces做题的时候从Virtual judge那儿学的#ord()内置函数,将单个字符变为int#chr()内置函数,将int变为单个字符# for : else ( 或 while : else) 这个语法好用 阅读全文

posted @ 2014-03-28 22:04 Stomach_ache 阅读(152) 评论(0) 推荐(0) 编辑

Codeforces 405C
摘要:题目链接当时没有做出来,日后想了一会儿也没有好的思路。看了题解才发现自己压根就没有找到题目的关键所在。正如上面所说的那样,除了对角线上的元素外,Aij * Aji 都计算了两遍,所以和结果没有关系。代码如下(优化的不够彻底): 1 #include 2 #include 3 4 int n, ... 阅读全文

posted @ 2014-03-28 15:08 Stomach_ache 阅读(156) 评论(0) 推荐(0) 编辑

LeetCode----Path Sum
摘要:Path Sum Total Accepted: 9765 Total Submissions: 32502 My SubmissionsGiven a binary tree and a sum, determine if the tree has a root-to-leaf path suc... 阅读全文

posted @ 2014-03-27 19:52 Stomach_ache 阅读(144) 评论(0) 推荐(0) 编辑

gdb之x命令
摘要:学习于:http://www.cnblogs.com/tekkaman/p/3506120.htmlhttp://blog.csdn.net/allenlinrui/article/details/5964046gdb之x命令【gdb之x命令】 可以使用examine命令(简写是x)来查看内存地址... 阅读全文

posted @ 2014-03-24 22:45 Stomach_ache 阅读(288) 评论(0) 推荐(0) 编辑

蓝桥杯----连号区间数
摘要:题目链接:点击打开链接这是一个悲伤的故事,看到题目提示,说是并查集,然后就一直想怎么去用并查集呢?!结果显然是没有发现怎么做。后来想到直接暴力,但是考虑到O(n^2)估计会TLE啊!!一直就没敢去写后来看了人家的代码。都是直接暴力 :(附上我的代码:#include int n, p[50005];... 阅读全文

posted @ 2014-03-20 23:42 Stomach_ache 阅读(187) 评论(0) 推荐(0) 编辑

Codeforces 404B
摘要:毫无疑问这题不是难题,但是这种题目最让人纠结打心里对这种题目就比较害怕,果然,各种WE这里贴上代码,用Python写的,比较偷懒: 1 def cur_pos(a, d): 2 3 if 0 <= d <= a: 4 return d, 0.0 5 elif a <... 阅读全文

posted @ 2014-03-20 10:26 Stomach_ache 阅读(171) 评论(0) 推荐(0) 编辑

C/C++中运算符优先级汇总
摘要:编程语言C运算符优先级优先级1: ( )、[ ]、->、 .含义:圆括号、下标运算符、指向结构体成员运算符、结构体成员运算符优先级2:!、~、++、――、-、(类型)、*、&、sizeof (单目运算符,结合方向自右至左)含义:逻辑非、按位取反、自增、自减、负号、类型转换、指针、地址与、长度运算符优... 阅读全文

posted @ 2014-03-19 18:33 Stomach_ache 阅读(1791) 评论(0) 推荐(0) 编辑

关于sublime text2的一些问题(为解决)
摘要:1. 编写markdown文件后,如何转成pdf ?2. 执行程序时,如何在控制台输入数据? 阅读全文

posted @ 2014-03-19 12:52 Stomach_ache 阅读(93) 评论(0) 推荐(0) 编辑

LeetCode OJ---Sqrt(x)
摘要:题目链接:http://oj.leetcode.com/problems/sqrtx/看题目就知道是水题一枚,做这个平台的题目还是没有习惯,毕竟这里的题目都是以面试为目的的,所以Coding的时候一定要谨慎.这里使用二分查找,二分虽然思路很简单,但是代码还是有几个地方值得注意的,比如 mid = l... 阅读全文

posted @ 2014-03-19 12:24 Stomach_ache 阅读(150) 评论(0) 推荐(0) 编辑

linux C 编译时手动链接遇到的问题(未解决)
摘要:写多线程的时候,编译的时候遇到了问题,开始的时候是这样的:编译器不认识pthread_create和pthread_join这两个函数。搜了一下原因是没有链接相应的库,下面是我看到一个博友写的:程序库的链接试着编译下面这个程序/*temp.c*/#includeintmain(intargc,cha... 阅读全文

posted @ 2014-03-16 23:19 Stomach_ache 阅读(249) 评论(0) 推荐(0) 编辑

C语言获当地时间
摘要:代码如下:#include #include #define DEBUGE 1intmain(void){ time_t rawtime; struct tm *timeinfo; time(&rawtime); //printf("%d\n", (int)rawtime); timeinfo = ... 阅读全文

posted @ 2014-03-16 21:41 Stomach_ache 阅读(159) 评论(0) 推荐(0) 编辑

sprintf()函数
摘要:sprintf()函数的printf()函数的格式基本相同,所不同是输出的位置不同,printf是标准输出函数,即输出到控制台,而sprinf()则不同。从下面代码中可以看出,sprinf()函数可以看出对格式的控制, 和printf()相同,第一个参数是指针,即输出的位置#include intm... 阅读全文

posted @ 2014-03-16 21:30 Stomach_ache 阅读(126) 评论(0) 推荐(0) 编辑

Codeforces 13C
摘要:这题纠结了近半年,一直没有好的思路。刚开始看这题的时候就是暴力,明显的TLE后来才知道这题的“一种解”肯定是"原数列中某些数的集合" (很明显这题的最优策略并不唯一)有原数列 a , 数列 b 是数列 a 的一个有序拷贝(对 a 进行不减排序的结果)下面就是 dp...此外这题还需要使用滚动数组,因... 阅读全文

posted @ 2014-03-15 22:38 Stomach_ache 阅读(301) 评论(0) 推荐(0) 编辑

ubuntu常用软件
摘要:ubnutu 一些软件:alsamixer 可以用来调节各种音量 阅读全文

posted @ 2014-03-11 15:38 Stomach_ache 阅读(112) 评论(0) 推荐(0) 编辑

git安装方法
摘要:点击http://git-scm.com/download选择你使用的操作系统,如果是linux就可以看到命令行,windows则是下载客户端 阅读全文

posted @ 2014-03-11 15:08 Stomach_ache 阅读(75) 评论(0) 推荐(0) 编辑

SSH免密码登录的方法
摘要:在你的自己的机器下面使用ssh-keygen命令来实现创建公钥将你~/.ssh目录中的id_rsa.pub这个文件拷贝到你要登录的服务器的~/.ssh目录中,然后再运行以下命令来将公钥导入到~/.ssh/authorized_keys这个文件中cat ~/.ssh/id_rsa.pub >> ~/.... 阅读全文

posted @ 2014-03-10 23:18 Stomach_ache 阅读(120) 评论(0) 推荐(0) 编辑

bash 小技巧
摘要:CTRL-R (reverse find),按下之后敲几个字母就能在最近打过的命令里搜索。 阅读全文

posted @ 2014-03-07 15:28 Stomach_ache 阅读(106) 评论(0) 推荐(0) 编辑

Haskell 学习
摘要:truncate pi-- 表示截断, 此处结果为 3haskell中的touple是可变的,而python中是不可变的lines函数:lines :: String -> [String]以‘\n'为分隔符,建立列表interact 函数:interact :: (String -> String... 阅读全文

posted @ 2014-03-07 12:47 Stomach_ache 阅读(142) 评论(0) 推荐(0) 编辑

客户端connect返回错误显示No route to host
摘要:务器程序运行起来后,客户端connect返回错误显示No route to host,但是两台机子能ping通是firewall的问题, services iptables stop应该就ok了 阅读全文

posted @ 2014-03-06 17:10 Stomach_ache 阅读(430) 评论(0) 推荐(0) 编辑

ubuntu下C操作Mysql数据库第一步
摘要:学习于:http://armsword.com/2013/06/20/ubuntu-c-mysql.html 阅读全文

posted @ 2014-03-03 23:29 Stomach_ache 阅读(127) 评论(0) 推荐(0) 编辑

第一份Markdown。。。。。菜鸟给跪了
摘要:#First Markdown##Hello World###Ahaha- Python- Ruby- C++- Haskell- C- Java1. C2. C++3. C#4. Shell5. Erlang> 一盏灯, 一片昏黄; 一简书, 一杯淡茶。 守着那一份淡定, 品读属于自己的寂寞。 保... 阅读全文

posted @ 2014-03-03 23:06 Stomach_ache 阅读(103) 评论(0) 推荐(0) 编辑

Sublime中输入中文的解决方案
摘要:之前系统用的输入法是 ibus,在sublime中无法使用,可能是不支持该输入法。然后改用 fcitx,切换输入法之后要重启系统才可以生效,启动之后就可以使用中文了。 阅读全文

posted @ 2014-03-03 23:04 Stomach_ache 阅读(135) 评论(0) 推荐(1) 编辑

HTML 基础
摘要:头部声明:添加标题: My Website 添加图片:添加链接: This is a link 使用图片作为链接:使用嵌套,然后用图片来代替本来在中间的内容格式: 阅读全文

posted @ 2014-03-03 21:40 Stomach_ache 阅读(77) 评论(0) 推荐(0) 编辑

Sublime text2 常用插件
摘要:很早就安装了这款软件,因为听说很NB。但是一直都是习惯用vim, 所以一直没有去学习它,现在用用感觉确实很不错,所以找了些插件,参考网址:http://www.hphq.net/Marketing/8.html 阅读全文

posted @ 2014-03-03 18:31 Stomach_ache 阅读(78) 评论(0) 推荐(0) 编辑

Hdu 4597记忆化搜索
摘要:好久没有做题了,水平已经完全在学弟之下了。一个吉林邀请赛最水的题目。:(其实这题一看到数据范围,只可以想到思路,直接爆搜,加个记忆化。这题虽然A了,但是我还是没太想清楚一些边界情况,心虚着A了。我的代码如下: 1 /******************************************... 阅读全文

posted @ 2014-03-02 14:04 Stomach_ache 阅读(122) 评论(0) 推荐(0) 编辑

Markdown Linux
摘要:如何在Linux下使用Markdown进行文档工作学习于:http://www.ituring.com.cn/article/10044Markdown 官网:http://daringfireball.net/projects/markdown/syntax 阅读全文

posted @ 2014-03-01 13:42 Stomach_ache 阅读(130) 评论(0) 推荐(0) 编辑

Linux C socket 基于 UDP
摘要:/************************************************************************* > File Name: server.c > Author: Stomach_ache > Mail: 1179998621@qq.com ... 阅读全文

posted @ 2014-03-01 11:59 Stomach_ache 阅读(232) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

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