java项目中的properties类型的文件,多为配置文件。填写中文注释的时候,就会自动转为ascii码。
如果你文件》Properties》Text file encoding 改为UTF-8或者GBK还是不行的话,那只能安装properties插件了。
选择 Hepl》 Eclipse Marketplat eclipse市场,搜索properties,选择install,因为我安装过...
分类:
其他 时间:
2015-01-26 19:18:50
收藏:
0 评论:
0 赞:
0 阅读:
300
我们都知道Hadoop主要用于离线计算,它由两部分构成:HDFS和MapReduce,其中HDFS负责文件的存储,MapReduce负责对数据的计算,在执行MapReduce程序的时候。需要制定输入的文件uri、输出的文件uri。一般情况下这两个地址都是存放在HDFS上的。MapReduce计算过程又分成两个阶段:map阶段和reduce阶段,其中map阶段是负责将输入文件进行划分,划分的结果是一...
分类:
其他 时间:
2015-01-26 19:18:30
收藏:
0 评论:
0 赞:
0 阅读:
273
2015-1-26 flyfish
继承关系
class CSocket : public CAsyncSocket
class CAsyncSocket : public CObject
class CSocketWnd : public CWnd
TCP服务器流程
socket()
bind()
listen()
accept()
receive() / s...
分类:
其他 时间:
2015-01-26 19:18:20
收藏:
0 评论:
0 赞:
0 阅读:
489
1.首先要遵守三个协议
UIActionSheetDelegate,UINavigationControllerDelegate,UIImagePickerControllerDelegate
2.主要代码
//选择头像
- (IBAction)handleSelectImage:(id)sender {
self.myActionSheet = [[UIAc...
分类:
其他 时间:
2015-01-26 19:18:04
收藏:
0 评论:
0 赞:
0 阅读:
221
django中文版和英文版:(建议不想看英文版的可以参考中文版文字,但是代码不要看中文版的,有些出入会让你迷惑)。
http://djangobook.py3k.cn/2.0/chapter07/
http://www.djangobook.com/en/2.0/chapter07.html
Contact us
Contact us
{% if error...
分类:
其他 时间:
2015-01-26 19:17:50
收藏:
0 评论:
0 赞:
0 阅读:
370
//无法正常运行
#include
#include
using namespace std;
class book
{
public:
int num;
float price;
book *next;
};
book *head=NULL;
bool check(string str)//检查是否是数字
{
for(int i=0;i<str.length();i++)
{
if...
分类:
编程语言 时间:
2015-01-26 19:17:40
收藏:
0 评论:
0 赞:
0 阅读:
386
按按钮截图,图片保存在当前路径为“save.png”:
#include
#include
/********************************************************
功能:指定窗口区域截图,需要包含头文件cairo.h
参数:
area: 需要截图的窗口指针
x, y, w, h: 截图的范围
path_name: 保存图片的路径名字,...
分类:
其他 时间:
2015-01-26 19:17:20
收藏:
0 评论:
0 赞:
0 阅读:
314
Grails官网 http://www.grails.org/ 是这样介绍Grails的。
1 它可以跑在java虚拟机上,与java结合的一流
2 快速开发
3 使用java-like动态语言
4 约定优于配置
5 减少重复开发
6 灵感来源于Ruby
7 强大的插件系统
8 IDE Support
我更倾向...
分类:
其他 时间:
2015-01-26 19:17:10
收藏:
0 评论:
0 赞:
0 阅读:
220
免责提醒
简单有效的手工修改桌面分辨率,不过需要管理员权限,慎!
改坏不予负责
方法步骤
修改默认配置
$ sudo gedit /etc/default/grub查找行这一行#GRUB_GFXMODE=640×480制定分辨率为自己所需,比如1920x1080修改/etc/grub.d/00_header文件
$ sudo gedit /etc/grub.d/00_hea...
分类:
系统服务 时间:
2015-01-26 19:17:00
收藏:
0 评论:
0 赞:
0 阅读:
291
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他 时间:
2015-01-26 19:16:50
收藏:
0 评论:
0 赞:
0 阅读:
217
计划2015年每天写一篇文章
由于文章编辑器的效率实在太低,所以选择演示文稿导出成图片
部分内容直接使用我在曾经北京航空航天大学开设的《移动终端用户交互工程》的演示文稿,同样效率原因因而直接贴图片...
分类:
其他 时间:
2015-01-26 19:16:40
收藏:
0 评论:
0 赞:
0 阅读:
199
在插入带麦克风的耳机时,要求能够从耳机麦克风录音,然后同步的从手机内置扬声器播放。...
分类:
移动平台 时间:
2015-01-26 19:16:30
收藏:
0 评论:
0 赞:
0 阅读:
303
更多:http://www.webyang.net/Html/web/article_135.html
最新的W3C标准里是这么实现HTTP跨域请求的,
Cross-Origin Resource Sharing
简单来说,就是跨域的目标服务器要返回一系列的Headers,通过这些Headers来控制是否同意跨域。
这些Headers有:
4 Syntax
...
分类:
Web开发 时间:
2015-01-26 19:16:20
收藏:
0 评论:
0 赞:
0 阅读:
355
系统垃圾清理脚本代码...
分类:
其他 时间:
2015-01-26 19:16:10
收藏:
0 评论:
0 赞:
0 阅读:
253
在App开发中常使用json与服务器Socket请求和解析服务器返回的数据。
为了确保在网络传输过程中没有丢失数据,一般会在发送请求数据前先发送把数据的长度发送到服务器。但数据的长度是需要发送全4位整型数据到服务器。
举个例子:使用手机号码和验证码登录
发送请求body为:{"cmd":"login","username":"ceshi","code":"123456...
分类:
移动平台 时间:
2015-01-26 19:16:00
收藏:
0 评论:
0 赞:
0 阅读:
330
package com.scala.idle
object PrivateDoor {
def main(args: Array[String]): Unit = {
val privateContainer = new PrivateContainer()
//访问共有变量
println(privateContainer.publicVar)
...
分类:
其他 时间:
2015-01-26 19:15:50
收藏:
0 评论:
0 赞:
0 阅读:
715
//OSG 3.2版本
osg::Group *root = new osg::Group();
osg::Geode *pyramidGeode = new osg::Geode();
deprecated_osg::Geometry *pyramidGeometry = new deprecated_osg::Geometry(); //注意,用deprecated_osg,某些功能...
分类:
其他 时间:
2015-01-26 19:15:20
收藏:
0 评论:
0 赞:
0 阅读:
508
问题描述:
Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the l...
分类:
其他 时间:
2015-01-26 19:15:10
收藏:
0 评论:
0 赞:
0 阅读:
218
static主要用来修饰Filed和方法
static修饰的成员表明它属于这个类本身,而不属于该类的单个实例,换句话说,static修饰的属性就是公共属性(所有对象都可以使用的属性)
static修饰方法时,有如下限制:
static定义的方法不能调用非static的方法或属性,非static定义的方法可以调用static的属性和方法。
主要原因是:
1 使用static定义的属性的方法...
分类:
编程语言 时间:
2015-01-26 19:15:00
收藏:
0 评论:
0 赞:
0 阅读:
139
一个Java代码静态分析工具的聚合器。集成了三种主流的静态分析工具:pmd,checkstyle,findbugs。给你的项目进行全面体检,同时附带了归纳整理并提供邮件通知。...
分类:
编程语言 时间:
2015-01-26 19:14:50
收藏:
0 评论:
0 赞:
0 阅读:
268