从各国目前脑计划的制定看,互联网这个因素并没有得到足够的重视。没有互联网作为参照物,宏大的脑计划必将成为无源之水,无根之木,目前欧美脑计划出现的问题已经反映出这种倾向。中国互联网的快速发展也为中国脑计划的开展奠定了良好的基础和得天独厚的优势,互联网+脑科学,互联网神经学的研究,中国脑计划完全可以对欧美实现弯道超车,找到中国突破的新科学领域。...
分类:
其他 时间:
2015-07-03 12:25:14
收藏:
0 评论:
0 赞:
0 阅读:
175
最近遇到一个问题,每次新建win32控制台 应用程序,编译的时候都会莫名其妙地出现一个问题:LINK : fatal error LNK1123: failure during conversion to COFF: file invalid。
具体也不知道啥意思:但是解决方法是:
1.因为虽然是win32程序,但是引用的库都是64位的,所以要把程序改为x64的
2.修改工程属性,由yes改...
分类:
Windows开发 时间:
2015-07-03 12:24:44
收藏:
0 评论:
0 赞:
0 阅读:
494
Reverse a singly linked list.
定义3个相邻的指针,pre、cur、post,每次往后挪一位,将cur的next指向pre,直到post为空。
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* Li...
分类:
其他 时间:
2015-07-03 12:24:34
收藏:
0 评论:
0 赞:
0 阅读:
126
关于 Builder 模式 详述:http://blog.csdn.net/jjwwmlp456/article/details/39890699
先来张图
看到 Android 中 使用了 Builder 模式的地方还是很多的。
使用时 大概如下:
Notification noti = new Notification.Builder(context).b...
分类:
移动平台 时间:
2015-07-03 12:24:24
收藏:
0 评论:
0 赞:
0 阅读:
320
//将一个数字按字符形式逐个输出,例如1234,输出为1 2 3 4
#include
void print_number(int a)
{
if (a >= 10)
print_number(a / 10);
printf("%d ", a % 10);
}
int main()
{
int a = 1234;
print_number(a);
printf("\n");
re...
分类:
编程语言 时间:
2015-07-03 12:24:15
收藏:
0 评论:
0 赞:
0 阅读:
427
或许这不是一篇心灵鸡汤,因为心灵鸡汤不是我的擅长;或许这就是一篇心灵鸡汤,希望能点燃你的斗志。...
分类:
其他 时间:
2015-07-03 12:24:05
收藏:
0 评论:
0 赞:
0 阅读:
223
//模拟实现memcpy库函数
#include
#include
void * my_memcpy(void * dst, const void * src, int count)
{
void *ret = dst;
while (count--)
{
*(char *)dst = *(char *)src;
dst=(char *)dst+1;
src=(char *)...
分类:
编程语言 时间:
2015-07-03 12:23:45
收藏:
0 评论:
0 赞:
0 阅读:
311
//模拟实现memmove函数(考虑内存重叠)
#include
#include
#include
void * memmove(void * dst, const void * src, int count)
{
void * ret = dst;
assert(dst);
assert(src);
if (dst = ((char *)src + count)) //正常情...
分类:
编程语言 时间:
2015-07-03 12:23:34
收藏:
0 评论:
0 赞:
0 阅读:
296
我们都知道在防止如block的循环引用时,会使用__weak关键字做如下定义:__weak typeof(self) weakSelf = self;后来,为了方便,不用每次都要写这样一句固定代码,我们定义了宏:#define WeakSelf __weak typeof(self) weakSelf = self;之后,我们可以比较方便的在需要的地方:WeakSelf;
...
[weakSelf...
分类:
移动平台 时间:
2015-07-03 12:23:24
收藏:
0 评论:
0 赞:
0 阅读:
338
//模拟实现strcmp函数
//str1>str2,返回1
//str1=str2,返回0
//str1<str2,返回-1
#include
#include
int my_strcmp(const char *str1, const char *str2)
{
assert(str1);
assert(str2);
while (*(str1)==*(str2))
{
if ...
分类:
编程语言 时间:
2015-07-03 12:23:14
收藏:
0 评论:
0 赞:
0 阅读:
268
//写一个函数,实现字符串内单词逆序
//例如student a am i,逆序后i am a student。
#include
#include
#include
void reverse_string(char *left, char *right) //连续的字符串逆序
{
char temp;
while (right > left)
{
temp = *left...
分类:
编程语言 时间:
2015-07-03 12:23:04
收藏:
0 评论:
0 赞:
0 阅读:
262
现在想要监控服务的流量和并发数,可是又没那么多时间来写系统,其他的运维系统又不熟悉,于是就用现有的rrdtool shell做了个简单的监控界面,临时用下,也算是个小实验把。 rrdtool也是刚接触,算是一个小练习
流程大致的流程是这样的(centos6操作系统)
初始化rrd数据库
shell脚本定时更新rrd中的数据
shell脚本定时画图(这里就画了一个24小时的)生成图片
html,把图片...
分类:
其他 时间:
2015-07-03 12:21:45
收藏:
0 评论:
0 赞:
0 阅读:
275
Purpose:display certain line or lines from a text file, such as :
Display the 1000th1000th line from file message.log
or
Display the lines between 1000 and 1020 from file message.log...
分类:
系统服务 时间:
2015-07-03 12:21:44
收藏:
0 评论:
0 赞:
0 阅读:
261
错误描述
11:14:39 delete from t_analy_yhd
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the opti...
分类:
其他 时间:
2015-07-03 12:20:24
收藏:
0 评论:
0 赞:
0 阅读:
302
分类:
移动平台 时间:
2015-07-03 12:19:24
收藏:
0 评论:
0 赞:
0 阅读:
424
在前两篇博文中已经做了铺垫,下面咱们就可以用前面介绍过的内容开始做一个小项目了(项目中会用到Afinal框架,不会用Afinal的童鞋可以先看一下上一篇博文),正所谓麻雀虽小,五脏俱全,这在里我会尽量的将前期的项目搭建做的相对实用一些,以便后期可以有效的实现团队协作和项目维护。一开始可能会看起来.....
分类:
移动平台 时间:
2015-07-03 12:19:14
收藏:
0 评论:
0 赞:
0 阅读:
235
http://blog.csdn.net/pipisorry/article/details/36433305问题描写叙述一个笼子里面关了鸡和兔子(鸡有2仅仅脚。兔子有4仅仅脚。没有例外)。已经知道了笼子里面脚的总数a。问笼子里面至少有多少仅仅动物,至多有多少仅仅动物。输入第1行是測试数据的组数n,...
分类:
其他 时间:
2015-07-03 12:19:04
收藏:
0 评论:
0 赞:
0 阅读:
244
// main.m// C3_循环结构//// Created by dllo on 15/7/2.// Copyright (c) 2015年 cml. All rights reserved.//#import int main(int argc, const char * argv[]) {/...
分类:
其他 时间:
2015-07-03 12:18:54
收藏:
0 评论:
0 赞:
0 阅读:
160
本科项目上需要DSP通过RS232串口连接四个设备,可供使用的芯片串口只有一个。方案一:利用手头器件,简单利用FPGA和max232电平转换芯片采用片选方式设计verilog代码如下:module demultiplexer1to4 (out0,out1,out2,out3,in,s2,s1,s0)...
分类:
其他 时间:
2015-07-03 12:18:44
收藏:
0 评论:
0 赞:
0 阅读:
241
http://blog.csdn.net/goohong/article/details/31411591一 、函数 1.1、 函数的定义和调用 函数的定义以func关键字作为前缀,接着是函数名字,接着跟着一个可以带有参数,也可以不带参数的圆括号,接着用->指示函数的返回类型。函数执行体...
分类:
移动平台 时间:
2015-07-03 12:18:34
收藏:
0 评论:
0 赞:
0 阅读:
104