自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

nomasp

風立ちぬ、いざ生きめやも」

  • 博客(92)
  • 资源 (19)
  • 收藏
  • 关注

原创 只要你敢,总会有光芒指引你

写作最快乐的事莫过于让作品成为阅读者心中的光芒。只要你敢,总会有光芒指引你。——韩寒为雀巢咖啡所写广告前天读完了第三本韩寒的书——《我所理解的生活》,感觉他的书名都很有特色。比如说《1988:我想和这个世界谈谈》、《他的国》,这些名字一度让我想要模仿却未能想出一个更好的名字。虽然读的书还算多,但写作却太少。今天课上看杂志还知道了原来生物学家已经培育出了透明的老鼠,世界的前沿离我们真是太远了。(时间仓

2015-03-31 22:37:56 3343 1

原创 【万里征程——Windows App开发】编辑文本及键盘输入

相信大家都会使用TextBox,但如果要让文本在TextBox中换行该怎么做呢?将TextWrapping属性设置为Wrap,将AcceptsReturn属性设置为True就好咯。PasswordBox很明显就是一个密码框了,和其他的控件相比其有2个特殊之处,一个是其可以用MaxLength来控制最大的长度,一个是用PasswordChanged来捕捉密码的改名。显然比如QQ密码的MaxLength

2015-03-31 22:23:53 5888

原创 【SICP练习】149 练习4.5

练习4-5原文Exercise 4.5. Scheme allows an additional syntax for cond clauses, ( => ). If evaluates to a true value, then is evaluated. Its value must be a procedure of one argument; this procedure is th

2015-03-31 17:11:03 3416

原创 【万里征程——Windows App开发】控件大集合2

下面再来看看一些前面还没有讲过的控件,不过控件太多以至于无法全部列出来,大家只好举一反三啦。Button前面最常用的控件就是Button啦,Button还有一个有意思的属性呢,当把鼠标指针放在Button上时,就会在Button的头顶冒出一串文本啦。这个不太截图哎……<Button ToolTipService.ToolTip="Go to www.blog.csdn.net/nomasp" Mar

2015-03-31 16:20:37 6263

原创 【万里征程——Windows App开发】控件大集合1

使用诸如 Blend for Visual Studio 或 Microsoft Visual Studio XAML 设计器的设计工具。 在 Visual Studio XAML 编辑器中将控件添加到 XAML 标记中。 在代码中添加控件。 当应用运行时会看到你在代码中添加的控件,但在 Visual Studio XAML 设计器中看不到。前面我们已经用过了Grid、Button等控件,现在就

2015-03-31 15:07:45 6097

原创 【SICP练习】148 练习4.4

练习4-4原文Exercise 4.4. Recall the definitions of the special forms and and or from chapter 1: ● and: The expressions are evaluated from left to right. If any expression evaluates to false, false is

2015-03-31 13:19:49 3048

原创 【万里征程——Windows App开发】页面布局和基本导航

上一篇博客中大概的新建了一个应用,几乎是空白的。如果是初学者的话现在当然想往里面加点东西对不对。那么这篇博客就来看看页面的布局都是怎样的。首先安装上一篇博客中的顺序来新建一个项目。新建好之后就点开MainPage.xaml开始敲代码啦。^_^<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

2015-03-30 11:00:06 7294

原创 【万里征程——Windows App开发】开发准备

操作系统及SDK操作系统如果打算开发Windows App,那么你的电脑就不能再用老旧的Windows 7了。推荐使用Windows 8.1。写这篇博客的时候,我用的操作系统是Windows 10 Pro Technical Preview [Build 10041].操作系统除了在官网下载之外,还可以在DreamSpark等地方下载。DreamSpark上除了Office其他微软操作系统、开发工具

2015-03-29 19:37:39 6082 8

原创 【SICP练习】147 练习4.3

练习4-3原文Exercise 4.3. Rewrite eval so that the dispatch is done in data-directed style. Compare this with the datadirected differentiation procedure of exercise 2.73. (You may use the car of a compound

2015-03-29 19:35:50 2452

原创 【SICP练习】146 练习4.2

练习4-2原文Exercise 4.2. Louis Reasoner plans to reorder the cond clauses in eval so that the clause for procedure applications appears before the clause for assignments. He argues that this will make the

2015-03-29 19:31:59 2350

原创 【SICP练习】145 练习4.1

练习4-1原文Exercise 4.1. Notice that we cannot tell whether the metacircular evaluator evaluates operands from left to right or from right to left. Its evaluation order is inherited from the underlying Li

2015-03-29 16:27:24 2950

原创 【SICP练习】144 练习3.82

练习3-82原文Exercise 3.82. Redo exercise 3.5 on Monte Carlo integration in terms of streams. The stream version of estimate-integral will not have an argument telling how many trials to perform. Instead,

2015-03-29 15:38:54 3019

原创 【SICP练习】143 练习3.81

练习3-81原文“random” numbers. Produce a stream formulation of this same generator that operates on an input stream of requests to generate a new random number or to reset the sequence to a specified value

2015-03-29 15:31:56 2527

原创 【SICP练习】142 练习3.77

练习3-77原文Exercise 3.77. The integral procedure used above was analogous to the “implicit” definition of the infinite stream of integers in section 3.5.2. Alternatively, we can give a definition of inte

2015-03-29 11:45:29 1837

原创 【SICP练习】141 练习3.72

练习3-72原文Exercise 3.72. In a similar way to exercise 3.71 generate a stream of all numbers that can be written as the sum of two squares in three different ways (showing how they can be so written). 代码

2015-03-29 11:15:42 2058

原创 【SICP练习】140 练习3.71

练习3-71原文代码(define (Ramanujan s) (define (stream-cadr s) (stream-car (stream-cdr s))) (define (stream-cddr s) (stream-cdr (stream-cdr s))) (let ((scar (stream-car s))

2015-03-29 11:10:17 2970

原创 【SICP练习】139 练习3.70

练习3-70原文代码(define (merge-weighted s1 s2 weight) (cond ((stream-null? s1) s2) ((stream-null? s2) s1) (else (let ((cars1 (stream-car s1)) (cars2 (stream-car s2))) (cond (

2015-03-29 10:41:16 1953

原创 【SICP练习】138 练习3.69

练习3-69原文代码(define (triples s t u) (cons-stream (list (stream-car s) (stream-car t) (stream-car u)) (interleave (stream-map (lambda (x) (cons (stream-car s)

2015-03-29 10:20:34 2337

原创 【SICP练习】137 练习3.68

练习3-68原文Exercise 3.68. Louis Reasoner thinks that building a stream of pairs from three parts is unnecessarily complicated. Instead of separating the pair (S0,T0) from the rest of the pairs in the fir

2015-03-29 10:11:25 2604

原创 【SICP练习】136 练习3.67

练习3-67原文Exercise 3.67. Modify the pairs procedure so that (pairs integers integers) will produce the stream of all pairs of integers (i,j) (without the condition i < j). Hint: You will need to mix in

2015-03-29 10:04:31 2710

原创 【SICP练习】135 练习3.66

练习3-66原文Exercise 3.66. Examine the stream (pairs integers integers). Can you make any general comments about the order in which the pairs are placed into the stream? For example, about how many pairs

2015-03-29 10:01:50 3444

原创 【SICP练习】134 练习3.65

练习3-65原文Exercise 3.65. Use the series ln2 = 1- 1/2 + 1/3 - 1/4 + …… to compute three sequences of approximations to the natural logarithm of 2, in the same way we did above for . How rapidly do the

2015-03-28 23:58:17 1928

原创 【SICP练习】133 练习3.64

练习3-64原文Exercise 3.64. Write a procedure stream-limit that takes as arguments a stream and a number (the tolerance). It should examine the stream until it finds two successive elements that differ in

2015-03-28 23:52:36 1816

原创 【SICP练习】132 练习3.63

练习3-63原文Exercise 3.63. Louis Reasoner asks why the sqrt-stream procedure was not written in the following more straightforward way, without the local variable guesses:(define (sqrt-stream x) (cons

2015-03-28 23:28:32 2867

原创 【SICP练习】131 练习3.62

练习3-62原文Exercise 3.62. Use the results of exercises 3.60 and 3.61 to define a procedure div-series that divides two power series. Div-series should work for any two series, provided that the denominat

2015-03-28 22:59:56 2020

原创 【SICP练习】130 练习3.61

练习3-61原文 代码(define (reciprocal-series s) (cons-stream 1 (scale-stream (mul-series (stream-cdr s) (reciprocal-series s))

2015-03-28 22:58:34 1888

原创 【SICP练习】129 练习3.60

练习3-60原文Exercise 3.60. With power series represented as streams of coefficients as in exercise 3.59, adding series is implemented by add-streams. Complete the definition of the following procedure for

2015-03-28 22:52:40 2187

原创 【SICP练习】128 练习3.59

练习3-59原文 代码a)(define (integrate-series s) (stream-map * (stream-map / ones integers) s))b)(define sine-series (cons-stream 0 (integrate-series cosine-series)))(define cosine-series (con

2015-03-28 22:48:16 1650

原创 【SICP练习】127 练习3.58

练习3-58原文Exercise 3.58. Give an interpretation of the stream computed by the following procedure:(define (expand num den radix) (cons-stream (quotient (* num radix) den) (expand (r

2015-03-28 22:38:17 1934

原创 【SICP练习】126 练习3.57

练习3-57原文Exercise 3.57. How many additions are performed when we compute the nth Fibonacci number using the definition of fibs based on the add-streams procedure? Show that the number of additions woul

2015-03-28 22:28:37 1489

原创 【SICP练习】125 练习3.56

练习3-56原文Exercise 3.56. A famous problem, first raised by R. Hamming, is to enumerate, in ascending order with no repetitions, all positive integers with no prime factors other than 2, 3, or 5. One obv

2015-03-28 22:18:08 1630

原创 【SICP练习】124 练习3.55

练习3-55原文Exercise 3.55. Define a procedure partial-sums that takes as argument a stream S and returns the stream whose elements are S0, S0 + S1, S0 + S1 + S2, …. For example, (partial-sums integers) sh

2015-03-28 22:11:47 1245

原创 【SICP练习】123 练习3.54

练习3-54原文Exercise 3.54. Define a procedure mul-streams, analogous to add-streams, that produces the elementwise product of its two input streams. Use this together with the stream of integers to comple

2015-03-28 22:09:54 1437

原创 【SICP练习】122 练习3.53

练习3-53原文Exercise 3.53. Without running the program, describe the elements of the stream defined by (define s (cons-stream 1 (add-streams s s)))分析s是一串2的幂。也就是1、2、4、8、16、32……

2015-03-28 22:05:47 2203

原创 【SICP练习】121 练习3.52

练习3-52原文Exercise 3.52. Consider the sequence of expressions(define sum 0) (define (accum x) (set! sum (+ x sum)) sum) (define seq (stream-map accum (stream-enumerate-interval 1 20)))(define y

2015-03-28 21:55:08 2517

原创 【SICP练习】120 练习3.51

练习3-51原文Exercise 3.51. In order to take a closer look at delayed evaluation, we will use the following procedure, which simply returns its argument after printing it:(define (show x) (display-line

2015-03-28 21:50:11 2197

原创 【SICP练习】119 练习3.50

练习3-50原文Exercise 3.50. Complete the following definition, which generalizes stream-map to allow procedures that take multiple arguments, analogous to map in section 2.2.3, footnote 12. (define (stream

2015-03-28 21:44:40 2541

原创 【SICP归纳】6 副作用与环境模型

虽说叫做副作用显得不太好听,但在Lisp中副作用还是非常重要的。而相对于所有状态都必须显式地操作和传递额外参数的方式,如果引进赋值和将状态隐藏在局部变量中,那么就可以用更加模块化的方式来构造系统。正如你所知道的,不用任何赋值的程序设计称为函数式程序设计。相反,广泛采用赋值的程序设计称为命令式程序设计。在C等命令式程序设计语言中,我们往往都要仔细考虑变量赋值的顺序,尤其是在循环中,但在函数式程序设计中

2015-03-28 10:38:51 4650

原创 【SICP练习】118 练习3.45【待完成】

练习3-45原文Exercise 3.45. Louis Reasoner thinks our bank-account system is unnecessarily complex and error-prone now that deposits and withdrawals aren’t automatically serialized. He suggests that

2015-03-26 20:02:29 2042

原创 【SICP练习】117 练习3.44

练习3-43原文Exercise 3.44. Consider the problem of transferring an amount from one account to another. Ben Bitdiddle claims that this can be accomplished with the following procedure, even if there are mu

2015-03-26 19:59:00 2514

ELF文件系统格式

ELF文件系统格式。ELF文件系统格式。ELF文件系统格式。

2018-03-16

rubyinstaller

ruby rubyinstaller-1.9.3-p551.exe

2015-12-04

SenchaCmd-4.0.5.87

SenchaCmd-4.0.5.87

2015-12-04

sencha-touch-2.4.2

sencha-touch-2.4.2

2015-12-04

微信多图片选择器

微信多图片选择器,微信多图片选择器,无需积分。

2015-11-05

Windows App 应用开发教程

Windows App 应用开发教程,CSDN博客专家、C#论坛版主所写,为广大微软技术爱好者入门Windows App提供帮助。

2015-09-15

Windows Phone Recovery Tool

Windows Phone Recovery Tool

2015-06-04

Toast通知源码

Toast通知,windows app很常用的一项技术。源码……

2015-05-17

共享目标源码

共享目标源码,和”搜索集成、粘贴板、共享源(http://download.csdn.net/detail/nomasp/8709317)“配套使用。

2015-05-17

搜索集成、粘贴板、共享源

搜索集成、粘贴板、共享源,windows app 应用源码。

2015-05-17

flux小工具

小工具一个,强烈推荐搞计算机的使用……保护视力…… f.lux创意十足很贴心的一款自动屏幕亮度色彩调节,创意在于会根据时间变化,自动调节电脑屏幕的亮度、色彩,让电脑屏幕始终适合保持在适合阅读的状态。f.lux 会据此判断日出、日落时间,分析出特定时间的光照强度,并以此为依据调节屏幕。

2015-05-06

10000的阶层

你想知道10000的阶层是多少吗?答案就在这里……

2015-05-04

unlocker203——VMware安装OS X必备

unlocker203——VMware安装OS X必备

2015-05-03

控制台绘制正弦曲线和余弦曲线同时显示

控制台绘制正弦/余弦曲线,C/C++语言

2015-04-30

控制台绘制正弦/余弦曲线

控制台绘制正弦/余弦曲线,C/C++语言,带注释

2015-04-30

钢琴小程序

钢琴小程序钢琴小程序钢琴小程序钢琴小程序钢琴小程序

2015-03-05

空空如也

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

TA关注的人

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