`
digiter
  • 浏览: 118661 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表

vimrc备份

    博客分类:
  • vim
" vimrc by digiter@126.com " General set encoding=utf-8 " text encoding set nocompatible " not compatible vith vi set autoread " auto load file modified outside filetype plugin indent on " indent configure depend on filetype syntax on & ...

ICPC编码建议

    博客分类:
  • ICPC
写代码最重要的是清晰,包括思路的清晰和代码结构的清晰。我们无法保证写的代码一定是正确的,但我们可以保证自己是在头脑清晰的情况下书写,并且通过不断的练习,用更加清晰的代码结构实现。越清晰,程序就越可能正确,并且即使出错也很容易看到问题。 0) 在能过题的情况下,最朴素最好写的方式就是最好的。 1) double x = 0; scanf("%lf", x); // &x printf("%lf\n", x); // output double -> %f printf("%.6f\n", 0) ...
conf/hbase-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <property> <name>hbase.rootdir</name> <value>hdfs://localhost:54310/hbase</value> </property ...
用于将写好的程序部署到服务器 file: cplab #!/bin/sh if [ ! $1 ] then echo 'err: no input file'; exit fi HOSTNAME=$(hostname) if [ "$HOSTNAME" = 'rush-Vostro-1400' ] then dest='rush@mylab' echo "copy from $HOSTNAME to $dest" scp $1 'cplab' $dest:~/gao/ echo 'done' ssh $ ...
Hadoop conf/masters hadoop-master conf/slaves hadoop-master hadoop-slave1 hadoop-slave2 conf/hadoop-env.sh export JAVA_HOME=/home/michael/lib/jdk1.6.0_27 conf/hdfs-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configurati ...
http://hbase.apache.org/book/hadoop.html 2.3. Hadoop 还得自己build Hadoop,不然会因为缺少a durable sync而丢失数据,真贱…… 暂时没管 2.3.1. Hadoop Security 2.3.2. dfs.datanode.max.xcievers 暂时没管 http://hbase.apache.org/book/standalone_dist.html 2.4. HBase run modes: Standalone and Distributed 2.4.1. Standalone HBase 没用到 2 ...
2001:DA8:0200::/48 清华大学 2001:DA8:0201::/48 北京大学 2001:DA8:0202::/48 北京邮电大学 2001:DA8:0203::/48 北京航天航空大学 2001:DA8:0204::/48 北京理工大学 2001:DA8:0205::/48 北京交通大学 2001:DA8:0206::/48 北京城市学院 2001:DA8:0207::/48 北京师范大学 2001:DA8:0208::/48 北京科技大学 2001:DA8:0209::/48 首都经济贸易大学 2 ...
环境 java version "1.6.0" hadoop-0.20.203.0rc1 hbase-0.90.4 首先是quickstart http://hbase.apache.org/book/quickstart.html 然后是各种配置… http://hbase.apache.org/book/os.html 2.2. Operating System 2.2.1. ssh Google "ssh passwordless login" 得到 http://www.debian-administration.org/articles/15 ...

[转载]TopCoder插件

    博客分类:
  • ICPC
转载自:http://acm.cugb.edu.cn/blog/?p=253 首先我们到http://www.topcoder.com/tc?module=Static&d1=applet&d2=plugins(FTP上有)下载几个插件,主要是这三个: Plugin Name: TZTester Plugin Name: CodeProcessor Plugin Name: FileEdit 下载后如果他们的后缀名变成了*.zip,记得把他们改回.jar的。 然后登陆Arena,选择”option”->”editor”,然后“Add”,Name那里可以自己起一个,例如 ...
header=/*\n * Author: {developer}\n * Filename: {filename}\n * Timestamp: {datetime}\n */\n#include <cstdio>\n#include <cstring>\n#include <cmath>\n#include <cstdlib>\n#include <iostream>\n#include <algorithm>\n#include <vector>\n#include <map>\n#includ ...
http://docs.python.org/library/urllib2.html 记一些我的理解 通常情况需要urllib2.build_opener([handler, ...])生成一个opener,并通过该opener来访问URL proxy_handler = urllib2.ProxyHandler({'http': 'http://www.example.com:3128/'}) proxy_auth_handler = urllib2.ProxyBasicAuthHandler() proxy_auth_handler.add_password('realm', ...

Django Notes

管理静态文件,如CSS, JS等 https://docs.djangoproject.com/en/dev/howto/static-files/
封装了矩阵类 比赛做得很郁闷,为什么别人写得很长、很罗嗦的代码可以过题,而我的总是过不了呢?... /* * Author: rush * Created Time: 2011年01月05日 星期三 19时39分08秒 * File Name: icpc/20100105/E2.cpp */ #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <iostream> #include <a ...
# Mon Jan 03 21:36:09 CST 2011 # pydev color theme refering gedit default color theme /instance/org.python.pydev/STRING_COLOR=255,0,255 /instance/org.python.pydev/COMMENT_COLOR=0,0,255 /instance/org.python.pydev/CODE_COLOR=60,60,60 /instance/org.python.pydev/NUMBER_COLOR=255,0,255 /instance ...

hdu 3236

    博客分类:
  • ICPC
终于能过这道题了,算是背包必做题之一吧 /* * Author: rush * Created Time: 2010年12月12日 星期日 12时34分31秒 * File Name: icpc/hdu3236_3.cpp */ #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <iostream> #include <algorithm> #include <vecto ...
Global site tag (gtag.js) - Google Analytics