1.查看电脑配置
sudo apt-get install hwinfo
装好后运行hwinfo
默认输出的信息比较长,
可以用使用--short选项:
hwinfo –short就可以告诉你电脑的硬件配置。
2.ubuntu 查看内存和cpu使用情况
free -m
查看内存使用情况
top
查看cpu 和 内存 使用情况
gnome-system-monitor...
分类:
系统相关 时间:
2015-05-11 14:49:10
阅读次数:
220
jquery判断元素是否存在 :$(expr).length>0存在,否则不存在
js格式化float parseFloat(string s).toFixed(小数位数)...
分类:
Web程序 时间:
2015-05-11 14:49:51
阅读次数:
155
如果实现一个带动画的下拉的Dialog
沿用上篇的基类,实现实际上的子类:
public class DropDownFilterDialogForPhone extends DropDownFilterDialog {
private boolean mShowAnimation = true;
private boolean mIsInAnimation;
...
分类:
移动开发 时间:
2015-05-11 14:49:23
阅读次数:
123
#include
void init(int arr[],int len)
{
int i = 0;
for (i = 0; i < len; i++)
{
arr[i] = len - i;
}
}
void show(int *parr, int len)
{
int i = 0;
for (i = 0; i < len; i++)
{
printf("%d ",...
分类:
编程语言 时间:
2015-05-11 14:50:30
阅读次数:
135
拍婚纱:
厦门是个挺美丽的小岛,长宽都是12公里左右,四面被海水环绕,空气不错,街道有蛮多绿色植物,各个路段有不同时期的建筑,挺适合拍婚纱照的。
厦门拍婚纱的门店很多,很多集中在中山街中华城旁边,有伯爵,钟爱一生,天长地久,大城小爱,台北时尚,启明星,后古,工作室也有好多,爱尓文,咭米,雨墨等等一般门店的销售都很热情,给你看很多照片,其中包括模特的样片和一些客人照的比较好的,然后会介绍这个影楼的...
分类:
其他好文 时间:
2015-05-11 14:49:38
阅读次数:
134
在用户进行注册的时候,为了保证用户名的唯一性,需要在用户注册时进行用户名的验证,这个使用AJAX实现无刷新验证是最合适的。
下面就是我的验证源码,在代码中通过注释讲解用法。
1.jsp页面:
账号
...
分类:
Web程序 时间:
2015-05-11 14:49:58
阅读次数:
147
回调函数经典示例
1.使用java回调函数来实现一个测试函数运行时间的工具类
public class TestObject {
/**
* 一个用来被测试的方法,进行了一个比较耗时的循环
*/
public static void testMethod(){
for ( int i= 0 ; i<...
分类:
移动开发 时间:
2015-05-11 14:48:41
阅读次数:
249
uploadify上传后端加了用户登陆验证后某些浏览器会出现 http error 302...
分类:
Web程序 时间:
2015-05-11 14:48:20
阅读次数:
134
一、 什么是Hive
Hive是基于Hadoop的一个数据仓库工具,可以将结构化的数据文件映射为一张数据库表,并提供简单的sql查询功能,可以将sql语句转换为MapReduce任务进行运行。同时,这个语言也允许熟悉 MapReduce 开发者的开发自定义的 mapper 和 reducer 来处理内建的 mapper 和 reducer 无法完成的复杂的分析工作。
...
分类:
其他好文 时间:
2015-05-11 14:46:41
阅读次数:
115
// 自己的strncpy与库里的strncpy区别
#include
#define CHAR char
#define ULONG unsigned long
CHAR *VOS_strncpy(CHAR *pcDest, const CHAR *szSrc, ULONG ulLength)
{
CHAR *pcPoint = pcDest;
// 对指针进行判空
if ((NU...
分类:
编程语言 时间:
2015-05-11 14:48:35
阅读次数:
163
问题:[fulinux@ubuntu rk3288-5.1]$ adb remount * daemon not running. starting it now on port 5037 ** daemon started successfully *remount of system failed: Permission deniedremount failed解决方法:[fulinux@ub...
分类:
数据库 时间:
2015-05-11 14:48:59
阅读次数:
2517
Linux下ffmpeg添加?h265
在linux 上安装ffmpeg 支持h265编码器按照以下步骤:
1、安装 Mercurial ;
2、安装CMake 2.8.8 or later;
3、YASM 1.2.0 及以上版本;
4、Download the libx265 repository and build as per the instructions here: h...
分类:
系统相关 时间:
2015-05-11 14:48:38
阅读次数:
321
mysql的字符集是utf-8
web工程环境字符集是utf-8
应该是hibernate向数据库中更新的时候错误
数据库了解url改成
jdbc:mysql://localhost:3306/fdoa?useUnicode=true&characterEncoding=utf8
没问题 在xml中注意&符号...
分类:
数据库 时间:
2015-05-11 14:48:34
阅读次数:
138
Content Provider介绍Android中的Content
Provider机制可以支持在多个应用中存储和读取数据。这也是跨应用共享数据的唯一方式。在android系统中,没有一个公共的内存区域,供多个应用共享存储数据,要在多个应用中共享数据,就需要使用Content
Provider。
Android提供了一些常用数据类型的Contentprovider,比如音频、视频、图片...
分类:
移动开发 时间:
2015-05-11 14:47:12
阅读次数:
147
实现能够固定在屏幕顶部的ListView Section Header. 当前section的header固定在屏幕顶部,当滑动到其他section时,其他section的header会代替之前的section的header,固定到屏幕顶部。...
分类:
其他好文 时间:
2015-05-11 14:45:55
阅读次数:
112
Implement Trie (Prefix Tree)
Implement a trie with insert, search,
and startsWith methods.
Note:
You may assume that all inputs are consist of lowercase letters a-z.
解题思路:
前缀树。由于值设定为在a-...
分类:
其他好文 时间:
2015-05-11 14:45:37
阅读次数:
116
jdk1.6升级为jdk1.7后发现签名问题...
分类:
编程语言 时间:
2015-05-11 14:46:23
阅读次数:
347