-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
352 lines (199 loc) · 12.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Code Gazer</title>
<meta name="author" content="Icelle Ku">
<meta name="description" content="My first “big” coding project is called Sprout. It’s an app that tracks children’s growth rate (weight and height) over time …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://icelle.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="Code Gazer" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
</head>
<body >
<header role="banner"><hgroup>
<div id="head-txt">
<h1><a href="/">Code Gazer</a></h1>
<h2><span class="ruby">Ruby, Rails</span> & <span class="scales">Scales</span></h2>
</div>
<div id="profile-pic"><img src="/images/profile_pic.png"/></div>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:icelle.github.io" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/12/01/breakable-toy/">Breakable Toy: Sprout</a></h1>
<p class="meta">
<time datetime="2013-12-01T12:00:00-05:00" pubdate data-updated="true">Dec 1<span>st</span>, 2013</time>
</p>
</header>
<div class="entry-content"><p>My first “big” coding project is called Sprout. It’s an app that tracks children’s growth rate (weight and height) over time. Here’s a quick summary of my user stories and acceptance criteria—</p>
<div style="background-color: #f0f0f0; border: 1px solid black; padding: 10px;">
<ul style="list-style-type: none; padding: 0; margin: 0">
<li>As a user,</li>
<li>I want to add a child/children</li>
<li>So I can start tracking weight and height.</li>
<ul style="padding: 0 0 0 2em; margin: 0">
<li>User must add a child.</li>
<li>User can add multiple children.</li>
<li>User must enter each child’s birth date, gender and starting height and weight.</li>
</ul>
</div>
<div style="background-color: #f0f0f0; border: 1px solid black; padding: 10px; margin: 1em 0 0 0">
<ul style="list-style-type: none; padding: 0; margin: 0">
<li>As a user,</li>
<li>I can update child’s height and weight or edit existing information about child</li>
<li>So my child’s information is accurate.</li>
<ul style="padding: 0 0 0 2em; margin: 0">
<li>User can click update button to enter new height and weight for a specific child.</li>
<li>User can click edit button to change/add information.</li>
</ul>
</div>
</div>
<footer>
<a rel="full-article" href="/blog/2013/12/01/breakable-toy/">Read on →</a>
<p class="post-quote-idx">Clear your mind. Practice patience. Practice simplicity.</p>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/11/28/software-licensing-and-the-virtual-worlds/">Software Licensing and Virtual Worlds</a></h1>
<p class="meta">
<time datetime="2013-11-28T12:00:00-05:00" pubdate data-updated="true">Nov 28<span>th</span>, 2013</time>
</p>
</header>
<div class="entry-content"><p>Before dabbling in the coding arts, I was a Code Head (not the technology kind, the <a href="http://law.duke.edu/lib/researchguides/pdf/ucc.pdf">Uniform Commercial Code</a> kind). It’s really interesting to me how law applies to new technology. In this article, I am going to discuss the effectiveness of using software license agreements in resolving virtual property right disputes that arise in massively multiplayer online role-playing games (MMORPG).</p>
<p><strong>Enforceability of Shrinkwrap and Clickwrap License Agreements:</strong>
Shrinkwrap licenses are terms and conditions found inside software boxes. Consumers can only read and accept the terms after opening the product. Clickwrap, on the other had, is usually found on the internet where consumers click “agree” before they can download a particular software. If the user refuses to click “agree,” he can no longer use or purchase the product or service.</p>
<p>Courts considered shrinkwrap and clickwrap licenses accompanying the sale of products as ordinary contracts subject to Uniform Commercial Code. <em>ProCD, Inc. v. Zeidenberg</em>, 86 F. 3d 1447. Given their unilateral nature, courts have found these licenses to be unenforceable contracts of adhesion. <em>Step-Saver Data System v. Wyse Technology</em>, 939 F. 2d 91. In <em>Step-Saver Data Systems v. Wyse Technology</em>, the court relied on UCC § 2-207 and § 2-209 in refusing to uphold the disclaimer of all express and implied warranties contained in the box-top license. The court reasoned that the box-top license was not the final and complete expression of the parties’ agreement because Step-Saver ordered the Advanced Multilink computer program over the phone. The telephone order acted as the final and complete expression of the parties’ agreement; therefore, conditions added subsequent the telephone order in the box-top license are material alterations of the contract.<em>Step-Saver Data System v. Wyse Technology</em>, 939 F. 2d 91. Because UCC § 2-209 requires that both parties must intend to adopt the additional terms, the shrinkwrap license was unenforceable.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2013/11/28/software-licensing-and-the-virtual-worlds/">Read on →</a>
<p class="post-quote-idx">Watch your thoughts; they become words. Watch your words; they become actions. Watch your actions; they become habit. Watch your habits; they become character. Watch your character; it becomes your destiny. - Lao Tzu</p>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/11/07/learn-programming-basics-rolling-dice/">Learn Programming Basics Rolling Dice</a></h1>
<p class="meta">
<time datetime="2013-11-07T19:34:00-05:00" pubdate data-updated="true">Nov 7<span>th</span>, 2013</time>
</p>
</header>
<div class="entry-content"><p>I started dabbling into the coding arts a few months ago (hence Code Gazer). I read Chris Pine’s <em>Learn to Program</em>. This is my attempt to elaborate on Pine’s Die Example to further understand the relationships between objects, classes, variables and methods.</p>
<p><strong>Pine Example:</strong> Create a die that gives you a random number when you roll it.</p>
<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
</pre></td><td class='code'><pre><code class='ruby'><span class='line'><span class="k">class</span> <span class="nc">Die</span> <span class="c1">#create a class</span>
</span><span class='line'> <span class="k">def</span> <span class="nf">roll</span> <span class="c1">#create method</span>
</span><span class='line'> <span class="mi">1</span> <span class="o">+</span> <span class="nb">rand</span><span class="p">(</span><span class="mi">6</span><span class="p">)</span> <span class="c1">#method logic</span>
</span><span class='line'> <span class="k">end</span>
</span><span class='line'><span class="k">end</span>
</span></code></pre></td></tr></table></div></figure>
<p>Everything is an object. Class is an object that allows us to make new classes of objects and defines how those classes behave. A method is the behavior of those objects.
A die is not a basic object in Ruby (i.e. range, integers, strings, arrays and hashes) so in this example, we need to create a new object. We can do that by creating a new class. To create a new class, we use a construct called <code>class</code> (which defines a class’s behavior) and a class name, <code>Die</code>. The first letter of a class name is always capitalized.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2013/11/07/learn-programming-basics-rolling-dice/">Read on →</a>
<p class="post-quote-idx">Don’t impose expectations onto things. Let things be. Abandon your hopes and fears. They’re irrelevant.</p>
</footer>
</article>
<div class="pagination">
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2013/12/01/breakable-toy/">Breakable Toy: Sprout</a>
</li>
<li class="post">
<a href="/blog/2013/11/28/software-licensing-and-the-virtual-worlds/">Software Licensing and Virtual Worlds</a>
</li>
<li class="post">
<a href="/blog/2013/11/07/learn-programming-basics-rolling-dice/">Learn Programming Basics Rolling Dice</a>
</li>
</ul>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating…</li>
</ul>
<a href="https://github.com/Icelle">@Icelle</a> on GitHub
<script type="text/javascript">
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'Icelle',
count: 0,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
<section>
<h1>Twitter</h1>
<a class="twitter-timeline" href="https://twitter.com/IcelleKu" data-widget-id="406245221991579648">Tweets by @IcelleKu</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2013 - Icelle Ku -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>