在把很粗糙的论文初稿寄给老师以后,我就不想做事了。虽然我知道我还有一些原理需要弄清楚,但就是没有那么大动力去学习了。来分享一下最近看的一本书《被讨厌的勇气》里的一些想法吧。阿德勒的想法很吸引想要通过改变自己获得幸福的人,也就是我。看书的时候我发现我少了以前看书时想要通过强制力改变自己性格的想法,开始...
分类:
其他好文 时间:
2015-07-12 17:07:16
阅读次数:
191
设置描述符非阻塞的两种方法:1,调用 open 时,设置,O_NONBLOCK;2,调用 fcntl设置;具体如下:1,open("/xxx/file1",O_RDWR|O_NONBLOCK);2,val=fcntl(fd,F_GETFL,0); F_GETFL获取文件状态标识 val |...
分类:
其他好文 时间:
2015-07-12 17:07:22
阅读次数:
98
题意:给个赤裸的最大流问题。思路:EK+BFS解决。跟HDU1532几乎一样的。 1 #include 2 #define LL long long 3 #define pii pair 4 #define INF 0x7f7f7f7f 5 using namespace std; 6 const....
分类:
其他好文 时间:
2015-07-12 17:06:12
阅读次数:
120
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:
其他好文 时间:
2015-07-12 17:06:51
阅读次数:
110
bounce2d2.c 1 /* 2 * bounce2d 1.0 3 * bounce a character (default is 'o') around the screen 4 * defined by some parameters 5 * user input: s...
分类:
其他好文 时间:
2015-07-12 17:06:41
阅读次数:
177
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2015-07-12 17:04:29
阅读次数:
165
原文:http://blog.csdn.net/dongtingzhizi/article/details/15962797Logistic回归总结作者:洞庭之子微博:洞庭之子-Bing(2013年11月)PDF下载地址:http://download.csdn.net/detail/lewsn20...
分类:
其他好文 时间:
2015-07-12 17:05:19
阅读次数:
141
这道题做法应该很多吧....我用了线段树套treap....--------------------------------------------------------------------------------------------------------------#include#i...
分类:
其他好文 时间:
2015-07-12 17:05:33
阅读次数:
129
/* 检测平衡符号 */#include#includestruct stack;typedef struct stack * PtrToStack;struct stack{ char *Array; int TopOfStack; int Capacity;};PtrToSta...
分类:
其他好文 时间:
2015-07-12 17:05:33
阅读次数:
181
我在学习js高级程序设计11章的querySelector()与querySelectorAll()时;发现在ie8以下不支持element.querySelector()和element.querySelectorAll();(element代表元素节点)但是却支持document.querySe...
分类:
其他好文 时间:
2015-07-12 17:01:54
阅读次数:
120
Garmin eTrex 20/30 手持GPSr 自制地图(KMZ)的限制条件
分类:
其他好文 时间:
2015-07-12 17:02:51
阅读次数:
397
1.bom.html bom演示 第一个div 第二个div 测试 测试setTimeout 测试setInterval 停止Interval 多少个link? 第一个link的地址 改变第一个div的内容为“基本上为主” 2.child.html 子窗...
分类:
其他好文 时间:
2015-07-12 17:03:07
阅读次数:
177
代码一: 1 //****************************************************************************** 2 //Description:SPI slave talks to SPI master using 3-wire mod...
分类:
其他好文 时间:
2015-07-12 17:03:25
阅读次数:
133
翻译自http://www.androiddesignpatterns.com/2013/01/inner-class-handler-memory-leak.html在主线程中使用Handler对象,比如下面的代码public class SampleActivity extends Activi...
分类:
其他好文 时间:
2015-07-12 16:59:53
阅读次数:
378
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.public class Solution { ...
分类:
其他好文 时间:
2015-07-12 17:01:11
阅读次数:
107
Pascal Code123456789101112131415161718192021222324252627282930313233343536unitGetLanguageSupports;interfaceusesWinapi.Windows,Winapi.Messages,System.S...
分类:
其他好文 时间:
2015-07-12 17:01:51
阅读次数:
141
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:
其他好文 时间:
2015-07-12 16:58:46
阅读次数:
142