/
index.html
348 lines (194 loc) · 11.8 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8">
<title>Things To Think About</title>
<meta name="author" content="Anojh Gnanachandran">
<meta name="description" content="12 Apr 2017 Onwards and Upwards I’m about 8 days away from finishing my last final exam at the University of Waterloo. Over the past few weeks …">
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/atom.xml" rel="alternate" title="Things To Think About" type="application/atom+xml">
<link rel="canonical" href="">
<link href="/favicon.png" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,700,400italic|Open+Sans:700,400|Noto+Serif:400,400i,700" />
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/monokai-sublime.min.css" />
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body class="home-template">
<header id="site-head">
<div class="vertical">
<div id="site-head-content" class="inner">
<h1 class="blog-title"><a class="no-rollover" href="/">Things To Think About</a></h1>
<h2 class="blog-description">By <a class="white" href="http://www.pluszero.ca">Anojh Gnanachandran</a></h2>
</div>
</div>
</header>
<main class="content" role="main">
<article class="post">
<header class="post-header">
<span class="post-meta">12 Apr 2017</span>
<h2 class="post-title">
<a href="/blog/2017/04/12/onwards-and-upwards/">
Onwards and Upwards</a>
</h2>
</header>
<section class="post-excerpt">
<p>I’m about 8 days away from finishing my last final exam at the University of Waterloo. Over the past few weeks I’ve often been asked, “what do you plan on doing after graduation?” I usually respond with some combination of “travelling, living in Toronto for a while, doing my own thing,” but nothing really concrete. I guess that’s because I don’t really know myself. While many of my friends have found and accepted full-time jobs, I have not. I’m not really sure what I want to do yet, or where I want to work. Besides, I’ve been alternating between studying and working for the past 5 years or so of my life. I’m not ready to just jump into something new and start working.</p>
</section>
<a href="/blog/2017/04/12/onwards-and-upwards/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">17 Jul 2016</span>
<h2 class="post-title">
<a href="/blog/2016/07/17/using-simulated-annealing-to-solve-logic-puzzles/">
Using Simulated Annealing to Solve Logic Puzzles</a>
</h2>
</header>
<section class="post-excerpt">
<p>The other day, I was watching Ted Ed’s collection of YouTube videos on riddles and came across this interesting logic puzzle described as <a href="https://www.youtube.com/watch?v=1rDVz_Fb6HQ">“Einstein’s Riddle”</a>. Einstein probably didn’t make up the riddle, but the problem itself is kind of interesting for a few reasons. You can either watch the video or keep reading for a retelling of the problem below.</p>
</section>
<a href="/blog/2016/07/17/using-simulated-annealing-to-solve-logic-puzzles/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">15 Aug 2015</span>
<h2 class="post-title">
<a href="/blog/2015/08/15/short-interval-updating-in-angular/">
Short Interval Updating in Angular</a>
</h2>
</header>
<section class="post-excerpt">
<p>Let’s take a look at a problem. We have a webapp to track build times for a continuous integration (CI) server. The main page has an HTML table with dozens of rows (one row for each build) and each row has an entry for the creation time of the build and the length of time it took for the build to be deployed, tested, or whatever else you’re doing with your CI server.</p>
<p>For most rows in your table, the duration can be populated with information from the server. The server sends back a creation time, and if the build is finished, a finishing time. Both the creation time and finishing time are specified in a milliseconds version of <a href="https://en.wikipedia.org/wiki/Unix_time">Unix time</a>. The duration is easy enough to calculate. Firstly, in Angular we would opt to use the <code>ng-repeat</code> directive to display the data in a table:</p>
</section>
<a href="/blog/2015/08/15/short-interval-updating-in-angular/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">06 Apr 2014</span>
<h2 class="post-title">
<a href="/blog/2014/04/06/when-stackoverflow-isnt-the-answer/">
When StackOverflow Isn’t the Answer</a>
</h2>
</header>
<section class="post-excerpt">
<p>I spent the better half of today debugging one of my current projects, an Android app designed to help users do things on their phone faster. Vague, I know.</p>
<p>The issue at hand was a <code>java.lang.IllegalStateException</code> resulting from a fragment not being attached to its activity. Reproducing the bug was easy. Launch the app, search for a YouTube video, back out of the app, and search for another YouTube video. The app crashes. An easy ‘solution’ was to check <code>fragment.isAdded()</code> in the <code>onVideosRetrieved</code> callback. Of course, the real problem is that the fragment still wasn’t attached to an activity.</p>
</section>
<a href="/blog/2014/04/06/when-stackoverflow-isnt-the-answer/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">14 Mar 2014</span>
<h2 class="post-title">
<a href="/blog/2014/03/14/on-2048/">
On 2048</a>
</h2>
</header>
<section class="post-excerpt">
<p>This week on Hacker News, a game called 2048 rose to the top of the front page. Subsequently, productivity at software companies everywhere dropped tremendously.</p>
<p><a href="http://gabrielecirulli.github.io/2048/">The game itself is quite simple</a>. Use the arrow keys and get the numbered tiles to combine over and over again until you get a ‘2048’ tile.</p>
<p>The game is partially (read: very) luck-based. When the board is getting tight, a single wrong number, or a number popping up in the wrong place, can mess you up for the rest of the game.</p>
</section>
<a href="/blog/2014/03/14/on-2048/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">20 Dec 2013</span>
<h2 class="post-title">
<a href="/blog/2013/12/20/how-to-do-x-in-octopress/">
How to Do X in Octopress</a>
</h2>
</header>
<section class="post-excerpt">
<p>So I spent the last couple days tweaking my Octopress themes and relearning how to do things since not blogging for a while and getting a new MBP. Navigating the Octopress file hierarchy isn’t easy, but hopefully this post will help you (and be a useful reference for myself).</p>
</section>
<a href="/blog/2013/12/20/how-to-do-x-in-octopress/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">29 Jul 2013</span>
<h2 class="post-title">
<a href="/blog/2013/07/29/a-masterpiece-of-music/">
A Masterpiece of Music</a>
</h2>
</header>
<section class="post-excerpt">
<p><em>Originally posted June 23rd, 2013</em></p>
<p>I was at a grocery store a couple weeks back, and over the PA system, I heard the lyrics “we are, we are we are, we are we are”, and for some reason, I thought it was catchy. It sounded like Kesha, so I had a starting point for searching (and I was too embarrassed to use Soundhound/Shazam in public to recognize the song).</p>
</section>
<a href="/blog/2013/07/29/a-masterpiece-of-music/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">29 Jul 2013</span>
<h2 class="post-title">
<a href="/blog/2013/07/29/software-engineering-at-the-university-of-waterloo/">
Software Engineering at the University of Waterloo</a>
</h2>
</header>
<section class="post-excerpt">
<p>This post was inspired by <a href="http://aimango.wordpress.com/2013/05/12/software-engineering-waterloo-courses/">a fellow software engineering student at UW</a>. If you want even more detail than I’m providing here, check it out.</p>
<p><em>Last updated December 29th, 2013</em></p>
<h2>The Courses</h2>
<p>Here’s a quick list of the courses I’ve taken (the full curriculum can be found <a href="https://uwaterloo.ca/software-engineering/class-2017-2a#course%20sequence">here</a>):</p>
</section>
<a href="/blog/2013/07/29/software-engineering-at-the-university-of-waterloo/">Read on →</a>
</article>
<article class="post">
<header class="post-header">
<span class="post-meta">28 Jul 2013</span>
<h2 class="post-title">
<a href="/blog/2013/07/28/percent-s-slash-wordpress-slash-octopress-slash-g/">
:%s/WordPress/Octopress/g</a>
</h2>
</header>
<section class="post-excerpt">
<p>So after only a few months of using WordPress, I decided to switch to Octopress. I decided to make that obligatory post that every new Octopress user writes. It’s some sort of rite of passage, I think.</p>
</section>
<a href="/blog/2013/07/28/percent-s-slash-wordpress-slash-octopress-slash-g/">Read on →</a>
</article>
<nav class="pagination" role="pagination">
<span class="page-number">
Page 1 of 1
</span>
</nav>
</main>
<footer class="site-footer"><div class="inner">
<!--
Follow me on
<a class="social github" href="http://github.com/agnanachandran" title="GitHub">GitHub</a>
-->
<section class="copyright">All content copyright <a href="/">Anojh Gnanachandran</a> © 2018 • All rights reserved.</section>
<!-- <section class="poweredby">Casper theme by <a class="icon-ghost" href="http://tryghost.org">Ghost</a> &amp; Published with <a href="http://octopress.org">Octopress</a></section> -->
</div>
</footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad()</script>
<script type="text/javascript">
var disqus_shortname = 'thingstothinkabout';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37973526-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>