通过将栅格各自乘以指定的权重并合计在一起来叠加多个栅格。...
分类:
其他 时间:
2015-07-07 16:58:32
收藏:
0 评论:
0 赞:
0 阅读:
367
CC2530 控制输出功率的寄存器是 TXPOWER:
推荐功率设置:
协议栈默认的设置是 0xd5,为了扩展信号传输的距离,我把TXPOWER寄存器值改为0xf5, 此时输出功率为4.5dBm.在mac_radio.c文件,做了如下修改:
void macRadioSetTxPower(uint8 txPower)
{
halIntState_t s;
/* if the s...
分类:
其他 时间:
2015-07-07 16:58:25
收藏:
0 评论:
0 赞:
0 阅读:
417
今天发布工程,访问其中一个模块,老是返回404异常。
/vweb/view/vweb.action
查看struts2配置文件和Action中的方法,没有问题啊。
于是怀疑是缓存引起的。 rm -rf Catalina/结果还是不行。忽然想到了
tomcat的server.xml中加了对应的模块的资源映射<Context docBase="/home/resource/vweb/" path...
分类:
其他 时间:
2015-07-07 16:58:24
收藏:
0 评论:
0 赞:
0 阅读:
226
Greedy.
证明:
Let's say we have job 1, 2, ..., n, and they have time and fine as t1, f1, t2, f2, ..., tn, fn
and they are in the order of t1/f1
So this is the objective schedule. Now w...
分类:
其他 时间:
2015-07-07 16:56:52
收藏:
0 评论:
0 赞:
0 阅读:
251
ok6410使用的网卡是DM9000,从启动信息来看uboot默认的网卡是CS8900。
修改驱动代码(board/Samsung/ok6410/ok6410.c):
int board_eth_init(bd_t *bis)
{
int rc = 0;
#ifdef CONFIG_CS8900
rc = cs8900_initialize(0,CONF...
分类:
其他 时间:
2015-07-07 16:56:22
收藏:
0 评论:
0 赞:
0 阅读:
336
页面中使用uploadify,在google浏览器中会出现浏览器崩溃的问题,如下图所示:
通过百度查资料找到了解决方案,如下:
setTimeout(function(){
$("#file").uploadify({
//...
});
},10);记录下来,希望可以帮助其他人...
分类:
其他 时间:
2015-07-07 16:56:12
收藏:
0 评论:
0 赞:
0 阅读:
310
If we take 47, reverse and add, 47 + 74 = 121, which is palindromic.
Not all numbers produce palindromes so quickly. For example,
349 + 943 = 1292,
1292 + 2921 = 4213
4213 + 3124 = 7337
That is...
分类:
其他 时间:
2015-07-07 16:53:43
收藏:
0 评论:
0 赞:
0 阅读:
224
题目mplement regular expression matching with support for '.' and '*'.'.' Matches any single character.
'*' Matches zero or more of the preceding element.The matching should cover the entire input string...
分类:
其他 时间:
2015-07-07 16:53:34
收藏:
0 评论:
0 赞:
0 阅读:
158
MEAN开发框架的资料很少,主要的资料还是来自于learn.mean.io网站上的介绍。于是抱着一种零基础学习的心态,在了解的过程中,通过翻译加上理解将MEAN框架一点点消化并且吸收,一步一步来,慢慢地记录我学习MEAN的点点滴滴。...
分类:
其他 时间:
2015-07-07 16:53:22
收藏:
0 评论:
0 赞:
0 阅读:
238
现象:明明已经在.gitignore文件了加了/bin/,更新提交的时候还是显示bin目录下文件。
原因:可能是已经提交了,有记录了,所以不起作用。
解决:先删除bin目录再提交,等再次生成的时候这个目录已经有减号了,起了作用。...
分类:
其他 时间:
2015-07-07 16:53:03
收藏:
0 评论:
0 赞:
0 阅读:
205
所谓游戏主角就是第三视角看到的在屏幕中间附近跑来跑去,然后周围景物随之变换的节点。实现的思路很简单,分为以下三步
1. 获取键盘输入
2. 移动主角,并且在需要的时候更改动画
3. 移动摄像机...
分类:
其他 时间:
2015-07-07 16:52:33
收藏:
0 评论:
0 赞:
0 阅读:
251
大一寒假
1.写代码时我犯了一个很大的错误(不然早就搞定了)把&&与||混淆了;大忌啊
2.这里实现了数字化编码
3.上72 下80 左75 右77
4.特殊图形可以到QQ拼音符号里获取
#include
#include
#include
#define x 1//人的位置
#define y 5
#define n 10//地图大小
int cont;
void ...
分类:
其他 时间:
2015-07-07 16:52:22
收藏:
0 评论:
0 赞:
0 阅读:
145
原版始于2012.1.10
#include "stdio.h"
#include "conio.h"
#include "time.h"
#include "stdlib.h"
void diao(int year,int month);//第一个被调用函数,只是获得space;
int leap(int year);//是闰年加1
int jjmonth(int year,int mont...
分类:
其他 时间:
2015-07-07 16:52:12
收藏:
0 评论:
0 赞:
0 阅读:
184
//大一暑假
#include
#include
#include
#define n 10//地图大小
int m=1;
int g=5;
//////////////////////////人是1,墙是9,星星是8/10,空位是0,光是2;
int count=0;
int point='w';
void move(int a[][10],int i,int j...
分类:
其他 时间:
2015-07-07 16:52:02
收藏:
0 评论:
0 赞:
0 阅读:
160
#include
#include
#include
#include
#define MAXzhansize 30
char stack[MAXzhansize];//
char deleted(int *top);
void add(int *top,char item);
//////////////////////////////////////////////////////...
分类:
其他 时间:
2015-07-07 16:51:52
收藏:
0 评论:
0 赞:
0 阅读:
230
UIImage
*image = [UIImage imageNamed:@"321.jpg"];
//
1> 生成文本附件
NSTextAttachment *textAttach
= [[NSTextAttachment alloc]
init];
textAttach.image
= image;
//
2> 使用文本附件创...
分类:
其他 时间:
2015-07-07 16:51:22
收藏:
0 评论:
0 赞:
0 阅读:
349
题意和思路见:
http://blog.csdn.net/shuangde800/article/details/11273123
我的想法:
首先问题转化一下
将问题转化成:定义f[i][j] 表示给i个水球和j次实验机会,最高能够测试到几层~
则会有如下的转移方程:
f[i][j] = f[i][j-1] + f[i-1][j-1] + 1;
后一部分是说选在第k层试第一次,...
分类:
其他 时间:
2015-07-07 16:51:12
收藏:
0 评论:
0 赞:
0 阅读:
150
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray...
分类:
其他 时间:
2015-07-07 16:51:02
收藏:
0 评论:
0 赞:
0 阅读:
158
AIX Study之--用户访问系统资源限制配置
Aix 用户使用的系统资源限制包括两个概念 --- 硬限制(hard limits) 和软限制(soft limits)。hard limits自Aix 4.1版本开始引入。hard limits 应由Aix系统管理员设置,只有security组的成员可以将此值增大,用户本身可以减小此限定值,但是其更改将随着该用户从系统退出而失效。...
分类:
其他 时间:
2015-07-07 16:50:52
收藏:
0 评论:
0 赞:
0 阅读:
179
在上一篇中提到的Logistic回归是利用最大似然概率的思想和梯度上升算法确定θ,从而确定f(θ)。本篇将介绍另一种求解最大似然概率?(θ)的方法,即牛顿迭代法。
在牛顿迭代法中,假设一个函数是,求解θ值使得f(θ)=0。在图1中可知,
图1
选择一个点,对应函数值为,并将对应的切线与x轴相交的点记为,所以 ,依此类推可知牛顿迭代规律。
为了求得最大似然概率?(θ),让,...
分类:
其他 时间:
2015-07-07 16:50:42
收藏:
0 评论:
0 赞:
0 阅读:
261