-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
709 lines (383 loc) · 18.4 KB
/
index.html
File metadata and controls
709 lines (383 loc) · 18.4 KB
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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
<!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>Orokana Pekoponjin</title>
<meta name="author" content="df1">
<meta name="description" content="Error Handling in Aspect of UX Apr 16th, 2013 exception handling, java, ux 最近接了一個project,主要工作是重新設計一個web-based的『百年系統』。
對企業來說,下這種re-engineering決定是一個難題 …">
<!-- https://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="https://df1.github.com/">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="Orokana Pekoponjin" type="application/atom+xml">
<!--Fonts from Google"s Web font directory at https://google.com/webfonts -->
<link href="https://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic' rel='stylesheet' type='text/css'>
<link href='/stylesheets/' rel='stylesheet' type='text/css'>
<style>
#custom_img{
}
header hgroup img{
background-position: 0px 0px;
opacity: 0.4;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
top:24px;
left:10px;
}
header hgroup:hover img{
background-position: 0px -200px;
opacity:1;
top: 15px;
}
.gallery img{
width: 30%;
}
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30403561-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' : 'https://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body >
<header role="banner"><hgroup>
<div id="custom_img">
<img src="/favicon.png">
</div>
<h1><a href="/">Orokana Pekoponjin</a></h1>
</hgroup>
</header>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/04/16/error-handling-in-aspect-of-ux/">Error Handling in Aspect of UX</a></h1>
</header>
<p class="meta">
<time datetime="2013-04-16T22:53:00+08:00" pubdate data-updated="true">Apr 16<span>th</span>, 2013</time>
</p>
<span class="categories">
<a class='category' href='/blog/categories/exception-handling/'>exception handling</a>, <a class='category' href='/blog/categories/java/'>java</a>, <a class='category' href='/blog/categories/ux/'>ux</a>
</span>
<div class="entry entry-content"><p>最近接了一個project,主要工作是重新設計一個web-based的『百年系統』。
對企業來說,下這種re-engineering決定是一個難題,但這種需求卻很常見。
支持這決策的關鍵考量可能有幾項:</p>
<ul>
<li>舊系統code base難以維護,或是年久、失傳等歷史因素</li>
<li>舊系統架構已經無法滿足新的商業需求</li>
<li>舊系統Operation Support的Effort過於龐大</li>
<li>族繁不及備載XD</li>
</ul>
<p>如果是談軟體工程等架構面的問題,應該發個100篇文章也講不完吧XD
所以今天只來講講最後一項的Operation。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2013/04/16/error-handling-in-aspect-of-ux/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/04/05/code-snippet-for-dumping-facebook-album/">Code Snippet for Dumping Facebook Album</a></h1>
</header>
<p class="meta">
<time datetime="2013-04-05T21:14:00+08:00" pubdate data-updated="true">Apr 5<span>th</span>, 2013</time>
</p>
<span class="categories">
<a class='category' href='/blog/categories/facebook/'>facebook</a>, <a class='category' href='/blog/categories/js/'>js</a>
</span>
<div class="entry entry-content"><p>最近終於有一點點動力來寫上次日本行的遊記,但是苦於免費圖床難找難用,又不想用facebook網誌功能來寫,所以一直富堅至今XD
後來熊熊想到,其實我還是可以用以經上傳好的FB相簿,然後把權限公開來當圖床使用,還有免費的CDN,真是賺翻了XDD
<del>(未來有一天就突然消失就囂張不起來了XD FB表示:怪我囉?)</del></p>
<p>總之我要做的事就是dump出所有相簿裡的照片URL還有我打好的comment,於是在chrome按<code>F12</code>敲了以下snippet:</p>
<pre><code>var lastSrc = '';
var dumpArr = [];
var handler = function () {
var img = $$('.spotlight')[0];
if (dumpArr.length > 0 && img.src == dumpArr[0].src) {
$$('.fbPhotosPhotoCaption')[0].removeEventListener('DOMSubtreeModified', handler);
return;
}
if (img != null && img.src != lastSrc) {
setTimeout(function () {
lastSrc = img.src;
dumpArr.push({
src: img.src,
comment: ($$('.hasCaption').length > 0 ? $$('.hasCaption')[0].innerHTML : '')
});
console.log(dumpArr[dumpArr.length - 1]);
$$('.snowliftPager.next')[0].click();
}, 500);
}
};
$$('.fbPhotosPhotoCaption')[0].addEventListener('DOMSubtreeModified', handler);
</code></pre>
<p>只要進到秀照片的theater模式(就是四周都會變黑的模式)就可以跑囉!</p>
<p>然後再轉成markdown或是圖片語法的字串:</p>
<pre><code>dumpArr.map(function(o){
/* markdown語法 */
return '!(' + o.comment + ')[' + o.src + ']';
/* img tag */
return '<img alt="'+o.comment+'" src="' + o.src +'">';
}).join('\n');
</code></pre>
<p>欸…亂寫的需要就用用看吧,有空再來解釋XD (靠)</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/03/02/2012-japan-trip/">2012 Japan Trip: Sanyo, Kansai, North-Kyushu</a></h1>
</header>
<p class="meta">
<time datetime="2013-03-02T17:40:00+08:00" pubdate data-updated="true">Mar 2<span>nd</span>, 2013</time>
</p>
<span class="categories">
<a class='category' href='/blog/categories/japan/'>japan</a>, <a class='category' href='/blog/categories/travel/'>travel</a>
</span>
<div class="entry entry-content"><p><video autoplay>
<source src="/attachments/2013-03-02-2012-japan-trip/Japan%202012.mp4" type="video/mp4">
<source src="/attachments/2013-03-02-2012-japan-trip/Japan%202012.WebM" type="video/webm">
Your browser does not support the video tag.
</video></p>
<p>『蝦密?這是你第一次出國玩?』</p>
<p>『嘿阿,嚴格來說是啦XD』</p>
<p>如果是說狹義的第一次出國,那是在研究所時候的馬來西亞行,是去做正事的。
當時過的是有點瘋狂、不太正常的一個多禮拜生活,而且沒有照片可供查證囧。</p>
<p>而這次,才是我第一次靠自己力量、花自己積蓄的旅行。就在我吃頭路兩年後,終於要成行了!</p>
<p>旅行,對我來說最珍貴的一部分,是可以讓自己找到擁抱這個世界的熱情!
我沒看過啥旅遊文學,更不是背包客(是很嚮往啦XD)
我充其量只是一個生活平凡、心靈匱乏的死阿宅罷了。
因為這樣,更會覺得偶而真的要讓他豐富一下阿!
但如果說要壯遊的話,衡量一下現在的自己,看來是無能為力orz</p>
<p>(未完待續)</p>
</div>
<footer>
<a rel="full-article" href="/blog/2013/03/02/2012-japan-trip/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/09/11/js-group-taichung-meetup-september-2012/">JS Group Taichung Meetup September 2012</a></h1>
</header>
<p class="meta">
<time datetime="2012-09-11T14:39:00+08:00" pubdate data-updated="true">Sep 11<span>th</span>, 2012</time>
</p>
<span class="categories">
<a class='category' href='/blog/categories/events/'>Events</a>, <a class='category' href='/blog/categories/js/'>JS</a>, <a class='category' href='/blog/categories/js-group/'>JS Group</a>
</span>
<div class="entry entry-content"><p>這次是<a href="https://javascript.tw">JS Group</a>在台中舉辦的第五次聚會。這個聚會除了每隔週在台北之外,通常選在每個月的第一個禮拜六下午會來到台中舉行。今天大家一樣是在老地方的水舞饌三樓,一起吃吃喝喝、coding、聊天。而這次的講者就是主辦的TonyQ大大。</p>
<p>TonyQ本身因為工作的關係,對jQuery等前端技術相當有經驗,所以大多分享還是會以jQuery為主。不過這個活動中大家討論的內容還是可以跳脫jQuery、跳脫library,廣泛地去討論所有JS或前端技術。今日主題就是網站裡很本質的要素:JS表單驗證、彈出式視窗。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/09/11/js-group-taichung-meetup-september-2012/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/07/20/web-dev-party-5/">Web Dev Party #5 活動小記</a></h1>
</header>
<p class="meta">
<time datetime="2012-07-20T19:40:00+08:00" pubdate data-updated="true">Jul 20<span>th</span>, 2012</time>
</p>
<span class="categories">
<a class='category' href='/blog/categories/event/'>event</a>, <a class='category' href='/blog/categories/html5/'>html5</a>
</span>
<div class="entry entry-content"><p>今天請假北上參加了年度的<a href="https://service.ithome.com.tw/20120720Java/">Java大拜拜</a>,剛好有機會參加這次在蛙.咖啡 (frog.cofe)舉辦的<a href="https://registrano.com/events/webdev-party-05">Web Dev Party #5</a>!這可是傳說中全台最有梗、一票難求,大大、神人、正妹(!)一次到位的熱鬧技術趴,快來一探究竟吧!</p>
<p>這次的主題是關於現正快速崛起的新的Web標準– <a href="https://zh.wikipedia.org/wiki/Html5">HTML5</a>的應用,一共有兩個講題:Responsive WAT Design 與 HTML5 JavaScript APIs。還是要先提醒的是,如果您用的是IE且版本是10以前,還是先換個瀏覽器再來玩下面的東西吧<code>>_^</code></p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/07/20/web-dev-party-5/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/07/01/node-js-hsinchu-group-meetup-2012-06-30/">Node.JS Hsinchu Party 2012/06/30</a></h1>
</header>
<p class="meta">
<time datetime="2012-07-01T20:50:00+08:00" pubdate data-updated="true">Jul 1<span>st</span>, 2012</time>
</p>
<span class="categories">
<a class='category' href='/blog/categories/event/'>event</a>, <a class='category' href='/blog/categories/nodejs/'>nodejs</a>, <a class='category' href='/blog/categories/note/'>note</a>
</span>
<div class="entry entry-content"><p>這次Node.JS Hsinchu Party,除了有<a href="https://blog.jackbean.tw">JackBean</a>提供的免費場地、Nausca大大熱情贊助的飲料外,
還有大家期待已久的、一樣是由<a href="https://storiii.com/">storiii</a>的Yusen大大來分享的兩個主題:<a href="https://github.com/visionmedia/ejs#readme">EJS</a>與<a href="https://en.wikipedia.org/wiki/Y_Combinator#Y_combinator">Y-combinator</a>。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/07/01/node-js-hsinchu-group-meetup-2012-06-30/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2012/06/21/2012-event-log/">2012 Event Log</a></h1>
</header>
<p class="meta">
<time datetime="2012-06-21T20:50:00+08:00" pubdate data-updated="true">Jun 21<span>st</span>, 2012</time>
</p>
<span class="categories">
<a class='category' href='/blog/categories/event/'>event</a>, <a class='category' href='/blog/categories/note/'>note</a>
</span>
<div class="entry entry-content"><p><img src="https://i.imgur.com/Gq3Gp.png"></p>
<p>This post is an information/note aggregation from all the events that I have joined in 2012.</p>
</div>
<footer>
<a rel="full-article" href="/blog/2012/06/21/2012-event-log/">Read on →</a>
</footer>
</article>
<div class="pagination">
<a class="prev" href="/blog/page/2/">← Older</a>
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<form action="https://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:df1.github.com" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2013/04/16/error-handling-in-aspect-of-ux/">Error Handling in Aspect of UX</a>
</li>
<li class="post">
<a href="/blog/2013/04/05/code-snippet-for-dumping-facebook-album/">Code Snippet for Dumping Facebook Album</a>
</li>
<li class="post">
<a href="/blog/2013/03/02/2012-japan-trip/">2012 Japan Trip: Sanyo, Kansai, North-Kyushu</a>
</li>
<li class="post">
<a href="/blog/2012/09/11/js-group-taichung-meetup-september-2012/">JS Group Taichung Meetup September 2012</a>
</li>
<li class="post">
<a href="/blog/2012/07/20/web-dev-party-5/">Web Dev Party #5 活動小記</a>
</li>
<li class="post">
<a href="/blog/2012/07/01/node-js-hsinchu-group-meetup-2012-06-30/">Node.JS Hsinchu Party 2012/06/30</a>
</li>
<li class="post">
<a href="/blog/2012/06/21/2012-event-log/">2012 Event Log</a>
</li>
<li class="post">
<a href="/blog/2012/05/29/jsdc-gaia-keynote-transcript/">JSDC.TW Transcript: Building Mobile Devices with the Open Web </a>
</li>
<li class="post">
<a href="/blog/2012/05/07/notify-me-when-theres-guitar-giveaway-in-ptt/">無聊分享:PTT有人在送吉他時候跟我說一聲</a>
</li>
<li class="post">
<a href="/blog/2012/05/01/cat-wheel-diy/">自製波笛跑步機</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/df1">@df1</a> on GitHub
<script type="text/javascript">
$(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: 'df1',
count: 0,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
<section>
<h1>Latest Tweets</h1>
<ul id="tweets">
<li class="loading">Status updating…</li>
</ul>
<script type="text/javascript">
$(function(){
getTwitterFeed("bl_", 4, false);
});
</script>
<script src="/javascripts/twitter.js" type="text/javascript"> </script>
<a href="https://twitter.com/bl_" class="twitter-follow-button" data-show-count="false">Follow @bl_</a>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2013 - df1 -
<span class="credit">Powered by <a href="https://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'orokana';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'https://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="/javascripts/aharris.js"></script>
<script src="/javascripts/jquery.lazyload.min.js"></script>
<script src="/javascripts/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(function function_name () {
$('.gallery img').lazyload();
});
</script>
<script src="/javascripts/slash.js"></script>
<script data-ad-client="ca-pub-4066516091601351" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</body>
</html>