提示缺少套件啦?别担心,Homebrew随时守候。$ brew install wgetHomebrew 会将套件安装到独立目录,并将文件软链接至/usr/local。$ cd /usr/local$ find CellarCellar/wget/1.15Cellar/wget/1.15/bin/w...
分类:
其他好文 时间:
2014-07-19 17:01:44
阅读次数:
177
当我运行$rails s遇到下面错误/var/lib/gems/2.0.0/gems/execjs-2.2.1/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://gi...
分类:
编程语言 时间:
2014-07-19 15:21:13
阅读次数:
219
利用二级指针删除链表内一个元素,传统的做法是:找到将要删除元素的前一个指针,然后再删除当前元素。代码示例:void delete_node( elem_type x, struct node* l ){struct node* p = find_prev ( x, l );if ( !p->...
分类:
其他好文 时间:
2014-07-19 09:38:58
阅读次数:
240
关键是安装之前配置编译器.1.下载MinGW 编译器http://www.mingw.org/download.shtml2.把编译器路径(例如C:\Program Files (x86)\CodeBlocks\MinGW\bin)加入环境变量列表3.Python路径(例如C:\Python34\L...
数学题。
题意是问你能不能逃脱。
当V1的 角速度大于 V2的时候,可以一直保持 V1,O(圆心),V2 三点一线。
跑到一定距离,角速度小于的时候,就以三点一线为初始状态直接跑直线。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2014-07-19 02:36:55
阅读次数:
188
数序问题。
题意是说 一个数列 a1,a2,……ai,……an; x=i , y = ai;找两个点斜率绝对值!!最大。
第一次没找绝对值,……认真读题。。。
x 每次加1 。 只需要找 相邻的 ai 是否是最大就好了。
#include
#include
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2014-07-19 02:25:35
阅读次数:
168
free -m 查看内存状况cat /proc/version 查看linux版本状况fdisk -l 查看硬盘使用状况模糊查询find / -name "*svn*"find / -name "*Svn*"find / -name "*SVN*"独立安装的方式:1、yum install -y s...
分类:
其他好文 时间:
2014-07-19 00:09:03
阅读次数:
235
以下方法都可以用来定位某个对象,优先选择id,name.find_element_by_idfind_element_by_namefind_element_by_xpathfind_element_by_link_textfind_element_by_partial_link_textfind_...
分类:
其他好文 时间:
2014-07-19 00:06:04
阅读次数:
198
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-07-18 18:17:46
阅读次数:
290
今天项目中使用hql查询时,出现 QingAoCenterInfo is not mapped[from QingAoCenterInfo where...]
显然是Hibernate映射关系出现了问题。
出现这种异常首先要查看查询语句中是否使用了数据库表中的表名,而不是实体类。
查看我的代码:
centerList = manager.find("from Qing...
分类:
移动开发 时间:
2014-07-18 18:08:09
阅读次数:
239