中国真是多灾多难,加油,挺住。 Read More
posted @ 2013-04-21 20:33
javawebsoa
Views(114)
Comments(0)
Diggs(0)
环境:win7,ruby1.9.3p392(鄙视我吧,在win下弄rails不是找死么,只是有时候懒得切linux罢了,好吧只是偶尔要用到win还是希望它能跑起来。) 错误:在一个rails project中运行bundle install(或是搭建octopress博客时运行bundle install时)其他的gem都能正确安装,唯独到json这里出了莫名其妙的错误=。= 如下:Installing json (1.7.7)Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. .. Read More
posted @ 2013-04-21 20:28
javawebsoa
Views(287)
Comments(0)
Diggs(0)
二维的最短路。题意:无向图,节点之间除了边外有“快捷方式”,快捷方式可以看作特殊的边,从起点到终点,给定时限,求使用快捷方式的最少次数。dist[i][j] :到达第i个点,且经过了j个快捷路径的最短时间。优先队列的最短路优化。1。如果已经走到终点,还是要继续扩展,因为可能出现使用快捷方式更少的方案。2。如果已经到终点,可以用当前这个快捷方式数作为限制,继续扩展的节点的使用快捷方式数要小于这个值。3。如果以前经过这个节点,这次再经过时快捷方式数必须更少,才有必要扩展。4。如果超过时限的节点不扩展。 #include <cstdio>#include <cstring># Read More
posted @ 2013-04-21 20:23
javawebsoa
Views(149)
Comments(0)
Diggs(0)
从Spring3.0开始已经去掉了dependency-check属性,以下是可提供等同的功能的变通方法: (1)仅仅使用构造函数(构造函数注入,而不是setter注入)来确保正确的属性被设置。 (2)创建由专用的初始化方法实现的setter方法。 (3)当属性是必需的时候,使用@Required注解创建setter方法。 (4)使用@ Autowired注解驱动的注入,默认情况下,这也意味着所需的属性。 Read More
posted @ 2013-04-21 20:17
javawebsoa
Views(143)
Comments(0)
Diggs(0)
A. Snow Footprintstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a straight snowy road, divided intonblocks. The blocks are numbered from 1 tonfrom left to right. If one moves from thei-th block to the(i + 1)-th block, he will leave a ri Read More
posted @ 2013-04-21 12:17
javawebsoa
Views(190)
Comments(0)
Diggs(0)
B. Sailtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe polar bears are going fishing. They plan to sail from(sx, sy)to(ex, ey). However, the boat can only sail by wind. At each second, the wind blows in one of these directions: east, south, we Read More
posted @ 2013-04-21 12:11
javawebsoa
Views(158)
Comments(0)
Diggs(0)
<?xml version="1.0" encoding="utf-8" ?><resources><color name="white">#FFFFFF</color><!--白色 --><color name="ivory">#FFFFF0</color><!--象牙色 --><color name="lightyellow">#FFFFE0</color><!--亮 Read More
posted @ 2013-04-21 12:06
javawebsoa
Views(152)
Comments(0)
Diggs(0)
------- <a href="http://www.itheima.com" target="blank">android培训</a>、<a href="http://www.itheima.com" target="blank">java培训</a>、期待与您交流! ---------银行业务调度系统的项目需求 模拟实现银行业务调度系统逻辑,具体需求如下: 银行内有6个业务窗口,1 - 4号窗口为普通窗口,5号窗口为快速窗口,6号窗口为VIP窗口。 有三种对应类 Read More
posted @ 2013-04-21 12:01
javawebsoa
Views(202)
Comments(0)
Diggs(0)
今天碰到了拖动ListView时背景变黑色的问题,这样用户体验超级差,然后只需要在listView加上一个属性就可以了,简单<ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:divider="@color/blue" android:cacheColorHint="@color/nocolor" andr Read More
posted @ 2013-04-21 11:56
javawebsoa
Views(127)
Comments(0)
Diggs(0)
计算机图形学中不可避免的会涉及到图像分析与处理的相关知识,前些时间也重温了下常用到的采样、重建以及纹理贴图等内容,并对其中的走样与反走样有了更多的认识,这里小结一下。1. 基本问题信号的采样与重建过程中首先面临着两个基本的问题: 给定一个连续的信号g(x)以及它的离散采样信号gs(x),能否通过gs(x)来完整的描述g(x) 的信息;如果可以,如何通过gs(x)来重建出原始信号g(x)。 这些通过对信息进行频域的分析即可得到相应的结论。 2. 采样将一处于空间域(或时域)内的信号向频域进行转换,可以使用傅立叶变换(Fourier Transformation)来实现。给定空间域信号为g(x.. Read More
posted @ 2013-04-21 11:50
javawebsoa
Views(808)
Comments(0)
Diggs(0)