自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(68)
  • 收藏
  • 关注

转载 [zz] Read and write a properties file

Read/write a properties file in Java using the Properties classimportjava.util.Properties; // Read properties file.Properties properties =newProperties();try{ properties.load(newFileInputStream("filename.properties"));}catch(IOExcept

2010-09-03 16:08:00 703

转载 [zz] 惊人的答案:平均要取多少个(0,1)中的随机数才能让和超过1

惊人的答案:平均要取多少个(0,1)中的随机数才能让和超过1Brain Storm | 2010-08-08 13:16| 33 Comments | 本文内容遵从CC版权协议 转载请注明出自matrix67.com<br />    数学常数最令人着迷的就是,它们常常出现在一些看似与之毫不相干的场合中。 随便取一个 0 到 1 之间的数,再加上另一个 0 到 1 之间的随机数,然后再加上一个 0 到 1 之间的随机数⋯⋯直到和超过 1 为止。一个有趣的问题:平均需要加多少次,才能让和

2010-09-01 14:39:00 3406 3

原创 为什么Java的InputStream.read函数要返回int型而实际上它只读一个byte

<br />今天为了一个低级错误查了一个小时,这个低级错误就是把DataInputStream的read和readInt当作一个函数用。两个都叫read的函数返回值也都是int,Bill Joy(Java之父)应该为我的错误负部分责任!<br /> <br />DataInputStream的read()正如我们所知道是继承自InputStream的read(),作用是读取下一个byte。那为什么读byte却要返回int呢?我想这种“大材小用”的设计的最主要的考虑是-1,即正常的byte值返回为一个0-25

2010-09-01 14:33:00 3515 3

原创 How to Make an Pretty "Under Construction" Homepage

有没有过这样的经历:域名已经申请好了,但是网站还没有完全建好。追求完美的你当然不愿意把一个尚未完成的网站呈现在用户面前,但是域名已经申请不用又浪费...下面这几个Under Construction的网站模板就可以把你从这个窘境中拯救出来<br /><br />Free Templates For Under Construction PagesPUBLISHED ON<br />March 21st, 2010TAGS<br />freebies, web designDISCUSS<br /

2010-09-01 14:20:00 983

转载 [转] Free Templates For Under Construction Pages

有没有过这样的经历:域名已经申请好了,但是网站还没有完全建好。追求完美的你当然不愿意把一个尚未完成的网站呈现在用户面前,但是域名已经申请不用又浪费...下面这几个Under Construction的网站模板就可以把你从这个窘境中拯救出来Free Templates For Under Construction Pages

2010-04-25 19:47:00 910

转载 [转] 微观经济学之定价策略(下):两部分定价与捆绑销售

微观经济学之定价策略(下):两部分定价与捆绑销售 Brain Storm | 2010-02-10 12:11| 22 Comments | 本文内容遵从CC版权协议 转载请注明出自matrix67.com    为了榨干消费者的每一分钱,除了价格歧视以外,商家还想出了各种招数。一种看上去似乎与此无关的定价策略叫做“两部分定价”。游乐园、酒吧

2010-04-25 19:46:00 1113

原创 GRUB 2:恢复被Windows 7覆盖的Ubuntu 9.10

上一篇Blog提到我新买了一块Nvidia GTX 470显卡,买它可不是为了打游戏,是为用CUDA做GPU计算。处于方便上的考虑,我决定给我的台机安一个Windows 7。正如预想的,Windows 7安装好后,原来的MBR(Master Boot Record)就被覆盖了,也就意味着原来的Ubuntu 9.10就不能在开机的时候启动了。 恢复被新安装的Windows 7“覆盖”的Ubu

2010-04-25 19:18:00 2001

原创 Ubuntu 9.10下安装Nvidia GTX 470显卡驱动

Nvidia三月底刚刚推出了基于Fermi架构的革命性产品GTX 470和480。前天去中关村鼎好买470,本以为可以以网上3888的报价买到,但是由于这两款刚刚上市,目前还没大批量到货,商家都一口同声3150,怎么也杀不下价格,所以最终只好以这个价钱买了。我的台式机Think Centre M4099T原来是Intel的集成显卡,为了让GTX 470正常工作,我还不得不新买一块500W的电源

2010-04-17 23:36:00 1096

原创 邮箱的图片地址生成器

E-Mail Icon GeneratorFor GMail, Hotmail, MSN, Yahoo!, AOL and many more! 这个E-Mail Icon Generator可以为各种常用的邮箱比如gmail, hotmail等等生成美观的邮箱地址的图片 效果截图:     

2010-04-13 10:35:00 1894

原创 在Ubuntu下录制桌面视频

在Ubuntu下如何录制桌面视频并以avi格式保存呢?很简单,只要使用recordMyDesktop和gtk-recordMyDesktop首先,安装这两个包:sudo apt-get install recordMyDesktop and gtk-recordMyDesktop 然后,就可以使用gtk-recordMyDesktop来录制桌面视频了

2010-04-11 22:15:00 2074

原创 Cool! TineEye 图片逆向搜索

Tineye是世界上第一个逆向图片搜索引擎,可以根据你提交的图片在Internet找到类似图片。下面是Tineye网站上的一些搜索例子,很神奇吧~Cool Searches (click image to search)This page, along with our widgets page, showcases some of the most interes

2010-04-08 19:42:00 3557

转载 [转] 具备手绘效果的快速原型开发:Balsamiq Mockups

转自:http://imtx.cn/archives/1450.html 这个Balsqmiq Mockups收费,其实gomockingbird这个免费的在线版就可以满足一般需求 具备手绘效果的快速原型开发:Balsamiq MockupsPost by TualatriX at 2010 . Category: Web Develop. 7

2010-04-07 16:25:00 835

原创 如何在Ubuntu 9.10安装subclipse SVN插件

下面是我在Ubuntu 9.10在从源上安装的Eclipse上安装subclipse的一点总结。查了半天才搞明白为什么刚开始安完subclipse插件之后不能用。1. 首先安装eclipse:sudo apt-get install eclipse 2. Help->Install New Software...->输入http://subclipse.tigris.org

2010-03-31 23:03:00 1789 2

转载 [转] 10 个最酷的 Linux 单行命令

10 个最酷的 Linux 单行命令2010-03-19 Toy Posted in Cli, Featured, TipsRSS下面是来自 Commandlinefu 网站由用户投票决出的 10 个最酷的 Linux 单行命令,希望对你有用。sudo !!以 root 帐户执行上一条命令。python -m SimpleHTTPServer利用

2010-03-22 13:16:00 702

原创 各种语言的运行效率比较

在The Computer Language Benchmarks Game上可以查到30中编程语言的在一系列基准测试程序上的两两比较结果。比如:C GNU gcc和Java Steady State的比较结果C GNU gcc和Ruby 1.9的比较结果C GNU gcc和Python 3的比较结果以C为标准,Java的运行时间1~2倍,内存使用量是10~30倍;Py

2010-03-12 16:11:00 9135

转载 [转] Flickr 色彩搜寻室

 Flickr 色彩搜寻室 48+http://labs.ideeinc.com/multicolr#感谢黑猫童鞋在豆瓣的推荐,发现了这个好玩的网站点击这里进入这个叫做Multicolr Search Lab的网页,在右边的颜色格子里选一种颜色,他就会随即展示出Flickr 上以这种颜色为主色调的照片放在一起,比如说上面的蓝色和下面这个绿色……更神奇的是,如果你点两种以

2010-02-24 21:33:00 779

转载 [转] 微观经济学之定价策略(上):价格歧视

 matrix67.com微观经济学之定价策略(上):价格歧视 Brain Storm |  2010-02-05 1:04| 8 Comments | 本文内容遵从CC版权协议 转载请注明出自matrix67.com    上学期学校之外的事情特别多,因此开学时选的课比以前所选的都要少。开学两周后又退掉了不少的课,期中又补退掉了几门,最后整个学期惊人地只上了 16

2010-02-05 14:07:00 2358

转载 [转] Linux System and Performance Monitoring(总结篇)

Linux System and Performance Monitoring(总结篇)Written by bixuan on 2009年08月14号 – 13:36Linux System and Performance Monitoring(总结篇)Date: 2009.07.21Author: Darren Hoch译: Tonnyom[AT]hotmail.com接前

2010-02-02 12:34:00 751

转载 [转] Linux System and Performance Monitoring(Network篇)

Linux System and Performance Monitoring(Network篇)Written by bixuan on 2009年08月13号 – 21:36Linux System and Performance Monitoring(Network篇)Date: 2009.07.21Author: Darren Hoch译: Tonnyom[AT]hotma

2010-02-02 12:29:00 874

转载 [转] Linux System and Performance Monitoring(Memory篇)

Linux System and Performance Monitoring(Memory篇)Written by bixuan on 2009年08月13号 – 09:47Linux System and Performance Monitoring(Memory篇)Date:       2009.07.21Author: Darren Hoch译:            T

2010-02-02 12:28:00 565

转载 [转] Linux System and Performance Monitoring(I/O篇)

 Linux System and Performance Monitoring(I/O篇)Written by bixuan on 2009年08月13号 – 09:54Linux System and Performance Monitoring(I/O篇)Date:         2009.07.21Author:       Darren Hoch译:        

2010-02-02 12:26:00 648

转载 [转] Linux System and Performance Monitoring(CPU篇)

Linux System and Performance Monitoring(CPU篇)Written by bixuan on 2009年08月13号 – 09:41Linux System and Performance Monitoring(CPU篇)Date:         2009.07.21Author:    Darren Hoch译:            To

2010-02-02 12:24:00 671

原创 Gnome登录画面随心变:让Ubuntu 9.10的登录背景与壁纸同步

Ubuntu 9.10相对于9.04的一项改进就是Gnome的登录界面上可以选择欲登录的用户了,而以前是必须要输入用户名的。但随之而来的一个问题是,以前定制登录界面的方法现在不适用了。下面这篇blog介绍了一种试登录界面的背景总与桌布同步的方法,效果很cool。只需要下载并运行一个脚本即可。 Install wallpaper_daemon.py and change your login

2010-02-01 20:40:00 1492

转载 [转] LaTeX/文献管理

http://wiki.ctex.org/index.php/LaTeX/文献管理 CText上这篇wiki对我最有用两点是:如何引用网址如何使用google scholar提供的bibtex(这样就可以避免自己写了...)   LaTeX/文献管理BibTeX 是学术研究,论文写作的重要辅助工具。作者维护一个或者几个 bib 文

2010-02-01 01:06:00 2386

原创 [Notes] ROOT User Guide (2)

 Chapter 3. Histograms Wikipedia: In statistics, a histogram is a graphical display of tabulated frequencies, shown as bars. It shows what proportion of cases fall into each of several categorie

2010-02-01 00:48:00 871

原创 [Notes] ROOT User Guide (1)

What is ROOT?The ROOT system provides a set of OO frameworks with all the functionality needed to handle and analyze large amounts of data in a very efficient way. See here for more about ROOT.Cha

2010-02-01 00:41:00 869

原创 基于遗传编程(Genetic Programming)的符号回归(Symbolic Regression)简介

本学期加入了数学代数系统Mathumu协会的内核开发部。Mathmu这个项目,简单地说,就是开发清华人(中国人)自己的Mathematica。以Mathematica为目标可能显得有些不自量力。达到甚至超越Mathematica不可能是我们这几十个学生在段时间内就能够做到的,但谁知道呢?Linus Torvalds当初(1991)写Linux的时候难道也预计到如今Linux得到如此广泛的应

2010-01-31 21:32:00 12808 3

原创 解决Ubuntu 9.10失声问题

不知道为什么我的Ubuntu 9.10忽然听不到声音了,怀疑跟我这两天做了一些内核驱动设置有关(使用modprobe命令)。 做了如下几步的检查:系统>首选项>声音,确保没有静音。lspci | grep audio,查看是否检测到声卡,以及声卡的型号,输出结果如下:00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Fam

2010-01-31 20:26:00 848

转载 [Notes] The Researchers’ Bible

 http://www.ifs.tuwien.ac.at/~silvia/research-tips/researchers_bible-1999.pdfThe Researchers’ Bible2. Choosing a Research ProjectYour research project must fulfil the following criteria:1.

2010-01-30 15:30:00 477

转载 [Notes] How to Be a Good Graduate Student

 How to Be a Good Graduate StudentIntroductionBefore You StartDoing ResearchThe Daily GrindStaying MotivatedGetting to the ThesisFinding an AdvisorFinding a Thesis TopicWriting

2010-01-30 15:27:00 1132

转载 [转] C/C++ STL之remove

 http://www.cppreference.com/wiki/cn/stl/algorithm/remove语法: #include forward_iterator remove( forward_iterator start, forward_iterator end, const TYPE& val );remove 算法移除 [start,e

2010-01-30 15:19:00 878

转载 [转] Using auto_ptr Effectively

http://www.gotw.ca/publications/using_auto_ptr_effectively.htmUsing auto_ptr EffectivelyThis article appeared in C/C++ Users Journal, 17(10), October 1999. Most people have heard of the st

2010-01-30 15:00:00 463

原创 查牛人Paper的好地方:The DBLP Computer Science Bibliography

这个网站能很方便的按作者来查其发表的论文 http://dblp.uni-trier.de/

2010-01-10 23:05:00 1051

原创 [转] unp – Unpack (almost) everything with one command

厌倦了在Linux下解压各种类型压缩文件的复杂命令?有unp帮你~ http://www.ubuntugeek.com/unp-unpack-almost-everything-with-one-command.html unp is a small perl script which makes extraction of any archive filesa bit eas

2009-10-15 13:17:00 668

转载 [转] 費茲定律Fitts’ Law與使用者介面設計

转自http://blog.vgod.tw/2009/10/ [HCI] 費茲定律Fitts’ Law與使用者介面設計 Friday, October 2nd, 2009| 瀏覽:9,780人次 <!-- funp_genButton(http://blog

2009-10-12 22:42:00 2965

原创 fken0.1.5源代码

fken是一个帮助用户背单词的Linux小工具,使用Python实现。fken最大的特点是它能让用户一边用Linux终端,一边回顾用户希望记忆的内容,比如单词,名人名言等。更多关于fken的介绍见 fken0.1.5发布:让Linux终端帮你背单词! fken:#!/usr/bin/env python#!encoding:utf8import sysfro

2009-09-27 23:05:00 1876

原创 fken0.1.5发布:让Linux终端帮你背单词!

 如果你符合下面两个条件,你可能对fken感兴趣:你是个Linux的忠实用户,并且大量使用命令行;出于某些原因(比如出国考G),你需要大量地背单词fken,即fuck english的缩写,是用Python编写的小工具。fken这个小工具能让你在频繁使用Linux终端的过程中辅助你背单词或者英语句型,强化你的记忆。 fken可以单独使用,它的作用是随机返回一条用户希

2009-09-27 22:14:00 2198 1

转载 [转] 最简单的使用UDP通信的Python Socket例子

来源:http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ 客户端程序代码:# Client programfrom socket import *# Set the socket parametershost = "localhost"port = 21567buf

2009-09-27 22:09:00 1721

转载 [转] 使用Python写Linux的守护进程(daemon)

A simple unix/linux daemon in Pythonhttp://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/by Sander MarechalIvewritten a simple Python class for creating daemons

2009-09-27 22:00:00 2117

原创 单词:9.21 - 9.27

tentyhtenementtenant tentacle teem v. 充满 teem with tensiontendon tenuous a. slender 稀薄的,没有实际内容的attenuate v.extenuate v. 减轻, ant. aggravate termite thriffty a. 节约的;繁荣的

2009-09-20 10:52:00 857

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除