`
文章列表
     以上就是我的解答了。
Cache Lab: Improving Program Locality INTRODUCTION This exercise deals with optimizing memory-intensive code. Image processing is one area that benefits greatly from such optimizations. In this exercise we'll be optimizing two functions: rotate , a function designed to rotate an image 90 ...
人生四悲: 他乡遇故知:情敌 久旱逢甘霖:一滴 金榜提名时:重名 洞房花烛夜:阳痿 人生四郁: 尿尿呲一鞋 喝汤洒一裆 放屁崩出屎 擦屁抠破纸 给大家念过后,全场爆笑。
这一章是一个全面的基本的介绍。 Ruby是一个前大的动态语言,具有很好的元编程能力和构架DSL(Domain-Specific Language)领域语言的本事。 Matz on Ruby 写道 Ruby is designed to make programmers happy.  一、高角度审视Ruby: 完全的OO特性 具有奇异的代码块和多样的迭代器 表达式、操作符和糖果语句(各种省略写法) 1+1 #=> 1.+(1) 方法、消息:丰富的参数设置、最后一句即为返回值 赋值=:基本的赋值、并行赋值 #畸形语句 x,y=1,2 a,b=b,a # swap the value of ...
in_place_editing是一个用于原地编辑的ajax小控件。 典型的效果:  首先请下载相关的rails插件,大家注意:我这里的rails版本是2.1.2 ,所以原始的插件需要改进。 插件原始地址:http://svn.rubyonrails.org/rails/plugins/in_place_editing/ 插件相关改进的讨论:http://railsforum.com/viewtopic.php?id=22457 这是我根据相关的讨论修改后的版本:http://qianjigui.iteye.com/upload/attachment/59164/1ddb2805-c9 ...
小学的时候,家离学校大概2.8km, 初中的时候,大概有3.4km, 高中的时候,大概有3.2km。 原以为我的就很远了,因为那时候不论是骑车还是走路都是一天四趟。   今天得知,老程同学高中也是一天四趟,而且是单趟5.6km. 我肃然起敬。
老张:我感觉,我这戴上套子好丑啊。你那也挺丑的吧? 老王:我也是这个感觉,套子好丑啊。我靠!还是老程那个好看。 老张:老程你没戴套子吧? 老程:我戴套子了,好吧! 老张:?? 老吴:你说老程没戴套子。 老王:哦...... 老张:  :-/   PS:其实讨论的主题是魅族系列MP3的硅胶套美观问题。
http://www.g0574.com/viewthread.php?tid=1142 http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx 我的系统环境 写道 Ubuntu 8.04 Ruby 1.9 VIM 7.1.138 Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert Compiled: Nov 14 2008, 14:57:42 Addresses: <dhiebert@users.sourceforge.net>, http:// ...
学习地址 写道 http://myrpsh.spaces.live.com/blog/cns!10BEB08F8F3CBC84!10449.entry?wa=wsignin1.0 http://www.photo2text.com/ http://topic.csdn.net/t/20060729/21/4914143.html# http://www.cnblogs.com/yangbin1005/archive/2008/05/14/1197347.html http://sourceforge.net/projects/retypar/ 看过大量的用字符垒起来的漂亮图案,今天在考虑自己也写 ...
算法导论部分实现代码Java版
逆序对 逆序对是指在一个元素序列中,按照一定的大小比较方法,序列中任两个元素大小顺序颠倒的组合。 设 A[1..n] 是一个包含 n 个不同数的数组 . 如果在 i<j 的情况下 , 有 A[i]>A[j], 则 (i,j) 就称为 A 中的一个逆序对 . ...
  Programming: Drawing Description This assignment requires you to complete the dynamic drawing components of the Date/Time Control Panel from the previous two programming assignments.  In particular, you will be moving the map found in the "Time Zone" tab when the time zone changes and w ...
Scrolling a Map Description Exercise 8, requires that you learn to scroll the world map from the Date /Time Control Panel of Windows/Windows NT. In the current quiz, Quiz 4, you must scroll a map, starting with only a map in jpg format. The map used is a digitized version of a hand-colored engravi ...
  Profiling Lab: Understanding Program Performance In this exercise, you will modify an existing program to make it run faster. The program is not written for speed. You will find many things to optimize, but you should concentrate on optimizations that will make a significant ...
回复:什么是ActiveRecord ActiveRecord 是什么: 1. 每一个数据库表对应创建一个类.类的每一个对象实例对应于数据库中表的一行记录; 通常表的每个字段在类中都有相应的Field; 2. ActiveRecord同时负责把自己持久化. 在ActiveRecord中封装了对数据库的访问, 即CRUD; 3. ActiveRecord是一种领域模型(Domain Model), 封装了部分业务逻辑; ActiveRecord 不是什么: 1. Row Data Gateway Row Data Gateway模式中每个对象也封装了数据库记录的状态和 ...
Global site tag (gtag.js) - Google Analytics