2012年11月7日
摘要: Topics on Information Science这周的阅读材料是关于Situating learning的Lave, Jean; Wenger, Etienne (1991). Situated Learning: Legitimate Peripheral Participation. Cambridge: Cambridge University Press. ISBN0-521-42374-0.; first published in 1990 as Institute for Research on Learning report 90-0013有些内容颇有启发Firstly 阅读全文
posted @ 2012-11-07 03:42 月神夜 阅读(180) 评论(0) 推荐(0)
  2012年8月29日
摘要: mac使用经验 阅读全文
posted @ 2012-08-29 14:38 月神夜 阅读(334) 评论(0) 推荐(0)
  2012年5月10日
摘要: 一些杂项:1. 获取命令行参数:>ruby xxx.rb x y z全局变量ARGV将保存x y z三个参数可以用下面代码访问ARGV.each do |arg| puts argend2. 字符串转换成整形str.to_i(base 10) 阅读全文
posted @ 2012-05-10 16:00 月神夜 阅读(153) 评论(0) 推荐(0)
  2012年5月7日
摘要: Ruby入门笔记一切皆为对象“Hello”.length方法定义:def开头 end结尾命名一般采用下划线分隔单词字符串中可以嵌入表达式返回值:a)return+返回值 b) 函数最后一行代码的值为返回值(太神奇了)类定义:class 开头 end结尾Initialize是构造方法@开头的变量是实例变量(一个实例对应一个变量)to_s 方法可重载self. 定义类方法(用类名调用,类似类静态方法,不需实例化对象)@@开头是类变量(类似静态变量)类的继承<表示继承class Popsong < Song def initialize(name, artist, duration, l 阅读全文
posted @ 2012-05-07 16:26 月神夜 阅读(1830) 评论(0) 推荐(0)
  2012年2月27日
摘要: 导师让我多看一些ML的模型,最近打算先下学习LDA模型先找一些资料建议学习LDA模型的步骤http://www.xuwenhao.com/2011/03/20/suggestions-for-programmers-to-learn-lda/计划学习步骤:1.paper:Probabilistic Topic ModelsGibbs Sampling for the Uninitiated2. source codeProbabilistic Topic Model 阅读全文
posted @ 2012-02-27 09:38 月神夜 阅读(465) 评论(0) 推荐(0)
  2012年2月26日
摘要: Financial Management就是个求平均数的#include <iostream>#include <iomanip>using namespace std;int main(){ const int k=12; float month,sum=0; int i; for(i=0;i<k;i++){ cin>>month; sum+=month; } cout<<"$"<<setiosflags(ios::fixed)<<setprecision(2)<<sum/(floa 阅读全文
posted @ 2012-02-26 19:33 月神夜 阅读(139) 评论(0) 推荐(0)
摘要: Background For years, computer scientists have been trying to find efficient solutions to different computing problems. For some of them efficient algorithms are already available, these are the "easy" problems like sorting, evaluating a polynomial or finding the shortest path in a graph. 阅读全文
posted @ 2012-02-26 16:55 月神夜 阅读(333) 评论(0) 推荐(0)
  2012年2月24日
摘要: 初看C++ primer,const关键字的内容林林总总,记录一下。1. 定义const对象:把一个对象定义为常量const int bufSize=512;bufSize=0;//错误2. 被const修饰的对象默认为文件的局部变量:只能在定义该对象的文件中使用,其他文件不可访问。除非显示的指定此const对象为extern。//file_1.ccextern const int bufSize=fcn();//file_2.ccextern const int bufSize;//使用file_1里的bufSize3. const引用:指向const对象的引用,即对于const对象,其引用 阅读全文
posted @ 2012-02-24 10:46 月神夜 阅读(195) 评论(0) 推荐(0)
  2012年2月15日
摘要: 刚刚结束了Drexel的电话面试好几个老师一起,好像很欢乐,互相大笑着问了几个简单常规的问题,都是导师之前交代过的1. Research Interest2. Describe your work in detail3. Why you want to pursue a PhD?4. Why you choose Drexel5. Which professor you would like to study with然后就问了any question总之就是很自由简单的几个问题,15分钟左右,就over了期待结果啊 阅读全文
posted @ 2012-02-15 23:28 月神夜 阅读(519) 评论(0) 推荐(0)
  2012年2月10日
摘要: 温习算法知识,学学C++,打算从排序算法开始书目包括:《计算机算法设计与分析》王晓东《数据结构》严蔚敏暂时写这么多,等代码写好贴出来~~VS2005出现: 无法找到“XXX.exe”的调试信息,或者调试信息不匹配。未使用调试信息生成二进制文件。这一错误,在网上找到的解决方案为:如果创建空项目,需要对项目属性进行如下配置:首先打开菜单 项目->项目属性页 1。选择 配置属性->链接器->调试->生成调试信息 改为 是 2。选择 配置属性->C/C++ ->常规->调试信息格式 改为 用于“编辑并继续”的程序数据库(/ZI) 3。选择 配置属性->C 阅读全文
posted @ 2012-02-10 17:30 月神夜 阅读(424) 评论(0) 推荐(0)