-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
510 lines (253 loc) · 17.4 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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!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>Nyami’s Blog</title>
<meta name="author" content="Douglas Cameron">
<meta name="description" content="It’s been a while since I’d created a number dotnet projects and supporting solution using the command line so I had to refer to the …">
<!-- 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://www.nyami.uk">
<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="Nyami's Blog" 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/libs/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="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-57354598-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>
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">Nyami’s Blog</a></h1>
<h2>Something interesting for sure…</h2>
</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="https://www.google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:www.nyami.uk" />
<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>
<li><a href="/about">About</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2018/08/17/dotnet-sln-add/">Dotnet Sln Add</a></h1>
<p class="meta">
<time class='entry-date' datetime='2018-08-17T09:02:03+00:00'><span class='date'><span class='date-month'>Aug</span> <span class='date-day'>17</span><span class='date-suffix'>th</span>, <span class='date-year'>2018</span></span> <span class='time'>9:02 am</span></time>
| <a href="/blog/2018/08/17/dotnet-sln-add/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2018/08/17/dotnet-sln-add/">Comments</a>
</p>
</header>
<div class="entry-content"><p>It’s been a while since I’d created a number dotnet projects and supporting solution using the command line so I had to refer to the <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet">documentation</a> to keep me right. As I had just created a number of projects adding each one to the solution is a little tedious so when I’d spotted I could use <a href="https://en.wikipedia.org/wiki/Glob_(programming">globbing patterns</a>) I thought this would save time and a few key presses.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2018/08/17/dotnet-sln-add/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2018/04/10/rguhack-2018/">RGUHack 2018</a></h1>
<p class="meta">
<time class='entry-date' datetime='2018-04-10T18:21:49+00:00'><span class='date'><span class='date-month'>Apr</span> <span class='date-day'>10</span><span class='date-suffix'>th</span>, <span class='date-year'>2018</span></span> <span class='time'>6:21 pm</span></time>
| <a href="/blog/2018/04/10/rguhack-2018/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2018/04/10/rguhack-2018/">Comments</a>
</p>
</header>
<div class="entry-content"><p>I’ll be helping out at <a href="https://rguhack.uk">RGUHack</a> this coming weekend so I thought I’d pull together a few links from <a href="https://docs.microsoft.com/en-gb/azure/index#pivot=products&panel=all">some of the Azure services</a> available which might help the students build something awesome a little quicker. Hopefully the students have taken advantage of Github’s <a href="https://education.github.com/pack">Student Developer Pack</a> to pick up some free Azure credit, but if they haven’t, its easy to get started for free at <a href="https://azure.microsoft.com/en-us/free/">https://azure.microsoft.com/en-us/free/</a></p>
</div>
<footer>
<a rel="full-article" href="/blog/2018/04/10/rguhack-2018/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2018/02/09/simple-ping-middleware/">Simple Ping Middleware</a></h1>
<p class="meta">
<time class='entry-date' datetime='2018-02-09T16:18:39+00:00'><span class='date'><span class='date-month'>Feb</span> <span class='date-day'>9</span><span class='date-suffix'>th</span>, <span class='date-year'>2018</span></span> <span class='time'>4:18 pm</span></time>
| <a href="/blog/2018/02/09/simple-ping-middleware/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2018/02/09/simple-ping-middleware/">Comments</a>
</p>
</header>
<div class="entry-content"><p>If you find yourself needing to create a simple ping endpoint often used by load balancers as a quick check to see if traffic can be directed to your site, rather than complicating the simple and creating an MVC controller etc consider simple middleware.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2018/02/09/simple-ping-middleware/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2017/11/18/creating-a-self-signed-certificate-for-identity-provider/">Creating a Self-Signed Certificate for Identity Provider</a></h1>
<p class="meta">
<time class='entry-date' datetime='2017-11-18T09:54:16+00:00'><span class='date'><span class='date-month'>Nov</span> <span class='date-day'>18</span><span class='date-suffix'>th</span>, <span class='date-year'>2017</span></span> <span class='time'>9:54 am</span></time>
| <a href="/blog/2017/11/18/creating-a-self-signed-certificate-for-identity-provider/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2017/11/18/creating-a-self-signed-certificate-for-identity-provider/">Comments</a>
</p>
</header>
<div class="entry-content"><p>I’d recently had to create a self-signed certificate for use in IdentityProvider4 and was coming up against problems when using the default options with New-SelfSignedCertificate PS module.</p>
<p>Identity Server was throwing “CryptographicException: Invalid provider type specified” and I had ensured the user account had access so it should have been all good. After a little bit of digging it turned out the private keys were not accessible from .NET. David Christiansen’s <a href="http://blog.davidchristiansen.com/2016/05/521/">blog post</a> helped me track down the issue but with a little more research I ended up with the following PowerShell to create a working certificate avoiding additional steps I didnt understand ;).</p>
</div>
<footer>
<a rel="full-article" href="/blog/2017/11/18/creating-a-self-signed-certificate-for-identity-provider/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/10/06/bash-i-forgot-sudo/">Bash - I Forgot Sudo</a></h1>
<p class="meta">
<time class='entry-date' datetime='2016-10-06T08:16:59+00:00'><span class='date'><span class='date-month'>Oct</span> <span class='date-day'>6</span><span class='date-suffix'>th</span>, <span class='date-year'>2016</span></span> <span class='time'>8:16 am</span></time>
| <a href="/blog/2016/10/06/bash-i-forgot-sudo/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2016/10/06/bash-i-forgot-sudo/">Comments</a>
</p>
</header>
<div class="entry-content"><p>If you’re new to running Bash on Windows like me chances are you’ll type some huge long command only to be presented with a nice message telling you that permission was denied and then you realise you forgot “sudo”. Rather than typing the whole thing again prefixing with sudo this handy alias will save you a few keystrokes:</p>
<ul>
<li>Edit bashrc (vi .bashrc)</li>
<li>Add the alias “ffs=‘sudo $(history -p !!)’”</li>
<li>Restart/open bash console</li>
</ul>
<p>And in case you struggle with vi here is a handy <a href="http://www.lagmonster.org/docs/vi.html">cheat sheet</a>.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/07/13/radbutton-single-click/">RadButton Single Click</a></h1>
<p class="meta">
<time class='entry-date' datetime='2016-07-13T20:55:47+00:00'><span class='date'><span class='date-month'>Jul</span> <span class='date-day'>13</span><span class='date-suffix'>th</span>, <span class='date-year'>2016</span></span> <span class='time'>8:55 pm</span></time>
| <a href="/blog/2016/07/13/radbutton-single-click/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2016/07/13/radbutton-single-click/">Comments</a>
</p>
</header>
<div class="entry-content"><p>A great and easy way to avoid the double-bounce issue and prevent getting duplicate entries etc is to use the <a href="http://demos.telerik.com/aspnet-ajax/button/examples/singleclick/defaultcs.aspx">SingleClick</a> property of the RadButton.</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class=''><span class='line'><telerik:RadButton runat="server" ID="btnSend" Text="Send" OnClick="btnSend_Click" SingleClick="true" SingleClickText="Sending...">
</span><span class='line'></telerik:RadButton></span></code></pre></td></tr></table></div></figure>
<p>I’ve no idea how I’ve not encountered this RadButton setting before now, saves wiring up custom OnClientClick events…</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/07/09/a-blog-is-reborn/">A Blog Is Reborn</a></h1>
<p class="meta">
<time class='entry-date' datetime='2016-07-09T20:08:33+00:00'><span class='date'><span class='date-month'>Jul</span> <span class='date-day'>9</span><span class='date-suffix'>th</span>, <span class='date-year'>2016</span></span> <span class='time'>8:08 pm</span></time>
| <a href="/blog/2016/07/09/a-blog-is-reborn/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2016/07/09/a-blog-is-reborn/">Comments</a>
</p>
</header>
<div class="entry-content"><p>Ok, I started off with the best intention of blogging more regularly but 18 months between blog posts was not quite the cadence I was aiming for! Shortly after setting up the blog I rebuild my machine and completely failed in setting up Octopress, following my own steps in [“A Blog Is Born”] just wasn’t working, I was encountering more problems than I knew how to fix I think because most of the tools weren’t playing nicely with each other on Windows so I gave up in a huff until an easy solution came along.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2016/07/09/a-blog-is-reborn/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2015/01/07/tfvc-and-nuget-updates/">TFVC and NuGet Updates</a></h1>
<p class="meta">
<time class='entry-date' datetime='2015-01-07T12:00:04+00:00'><span class='date'><span class='date-month'>Jan</span> <span class='date-day'>7</span><span class='date-suffix'>th</span>, <span class='date-year'>2015</span></span> <span class='time'>12:00 pm</span></time>
| <a href="/blog/2015/01/07/tfvc-and-nuget-updates/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2015/01/07/tfvc-and-nuget-updates/">Comments</a>
</p>
</header>
<div class="entry-content"><p>At some point, for no obvious reason, I kept encountering an error when updating some NuGet packages, the error (TF14092) was basically telling me a file could not be modified as there was a pending delete. Experience has taught me that there is generally a reason for sudden changes in behaviour and after a little analysis I eventually worked it out.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2015/01/07/tfvc-and-nuget-updates/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2014/12/14/a-blog-is-born/">A Blog Is Born</a></h1>
<p class="meta">
<time class='entry-date' datetime='2014-12-14T11:23:47+00:00'><span class='date'><span class='date-month'>Dec</span> <span class='date-day'>14</span><span class='date-suffix'>th</span>, <span class='date-year'>2014</span></span> <span class='time'>11:23 am</span></time>
| <a href="/blog/2014/12/14/a-blog-is-born/#disqus_thread"
data-disqus-identifier="http://www.nyami.uk/blog/2014/12/14/a-blog-is-born/">Comments</a>
</p>
</header>
<div class="entry-content"><p>So I’ve decided to start a blog, not for the first time, I’ve had a few attempts on a couple of different platforms from a custom web app to <a href="http://umbraco.com/">Umbraco</a> and I’ve probably got stuff on Geeks with Blogs and Blogger too. This time I’m going for an Octopress and GitHub Pages combo and I know little of either! Thankfully both are fairly well documented and hopefully be able to learn a few things along the way.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2014/12/14/a-blog-is-born/">Read on →</a>
</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/2018/08/17/dotnet-sln-add/">Dotnet Sln Add</a>
</li>
<li class="post">
<a href="/blog/2018/04/10/rguhack-2018/">RGUHack 2018</a>
</li>
<li class="post">
<a href="/blog/2018/02/09/simple-ping-middleware/">Simple Ping Middleware</a>
</li>
<li class="post">
<a href="/blog/2017/11/18/creating-a-self-signed-certificate-for-identity-provider/">Creating a Self-Signed Certificate for Identity Provider</a>
</li>
<li class="post">
<a href="/blog/2016/10/06/bash-i-forgot-sudo/">Bash - I Forgot Sudo</a>
</li>
</ul>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2018 - Douglas Cameron -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'nyami';
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">
(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>