1.先制作需要执行的Sql文件listCMD 中输入【dir E:\FolderName>E:\ExcuteSqlList.txt 】2.根据ExcuteSqlList.txt 中的文件名list制作执行文件【Excute.sql】。3.Excute.sql [文件里的内容] @@sql1.sql ...
分类:
数据库 时间:
2014-06-25 21:01:22
阅读次数:
258
来乐视快3个月了,也做TV应用3个月了,老大上来就让我独立开发一个智能电视的应用,虽然现在已成功上线了,但感觉问题还是很多的。。。。。把一些经验总结一下,免得以后自己以后绕弯路。电视控制大多数依赖遥控器,遥控器有个缺点,就是用户很有可能疯狂的快速的按按键,所以一定不要响应每次按键事件,可以把每个按键...
分类:
其他好文 时间:
2014-06-25 21:00:01
阅读次数:
286
【问题】
Given n points
on a 2D plane, find the maximum number of points that lie on the same straight line.
【思路】
对每一个点,分别计算这个点和其他所有点构成的斜率,具有相同斜率最多的点所构成的直线,就是具有最多点的直线。
【代码】
class Point:
def __in...
分类:
编程语言 时间:
2014-06-25 19:34:29
阅读次数:
246
1、如果是win7 需要提前安装 .net framework 4 及其语言包(dotNetFx40_Full_x86_x64.exe 和 dotNetFx40LP_Full_x86_x64zh-Hans.exe),一个都不能少。至少在不联网的机器一定需要提前安装。
2、如果是win8 不联网安装的话,需要启用 .net framework 3.5,离线启用要使用命令来开启 dism.exe /...
分类:
数据库 时间:
2014-06-24 23:11:52
阅读次数:
562
1.Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in you
r Gemfile
2.ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/lib/ruby/gems/1.9.1 director.y
3.rails 3遇到 Could n...
分类:
其他好文 时间:
2014-06-24 22:18:45
阅读次数:
316
SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details在文件头...
分类:
编程语言 时间:
2014-06-24 22:13:37
阅读次数:
443
最近在做表单校验的时候,自己写的addMethod 方法老是不起作用,折腾了接近一天的时间。报的错误如下
Uncaught TypeError: Cannot read property 'call' of undefined
jquery.validate.min.js:28
先来看一下 我自己页面的布局。
top.jsp
上面的截图为top.jsp的头部引用的表单校验jq...
分类:
Web程序 时间:
2014-06-24 17:41:10
阅读次数:
2583
C语言中宏的使用(#,##,do…while(0)宏)
1.预定义宏的使用__FILE__,__FUNCTION__,__LINE__。
#include
void fun(void)
{
char v1;
short v2;
int v3;
long v4;
printf("v1: %x\n",&v1);
printf("v2: %x\n",&v2);
print...
分类:
编程语言 时间:
2014-06-24 15:29:13
阅读次数:
214
If you feel like crying you shouldn’t hold back your tears. You should let it all out while you still can, because when you get bigger sometimes you ....
分类:
其他好文 时间:
2014-06-24 14:53:38
阅读次数:
255
$(function () { $(window).load(function(){ alert($('img').height()); });});
分类:
Web程序 时间:
2014-06-24 14:38:07
阅读次数:
211