-
Notifications
You must be signed in to change notification settings - Fork 0
/
index100.html
836 lines (800 loc) · 64.4 KB
/
index100.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
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
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>IMDagger: Дневник</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Блог IMDagger: IT и жизнь" />
<meta name="keywords" content="python,lisp,scheme,racket,emacs,blender,программирование,моделирование,lua,c++,c,js,java,git,bazaar" />
<meta name="author" content="Alex Moiseenko (IMDagger)" />
<meta name="robots" content="noindex"/>
<!-- Open Graph -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />
<link rel="shortcut icon" href="http://imdagger.github.io/favicon.ico" />
<link rel="stylesheet" href="/theme/css/html4css1.css" />
<link rel="stylesheet" href="/theme/css/style.css" />
<link rel="stylesheet" href="/theme/css/pygment.css" />
<link rel="stylesheet" href="/theme/css/math.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML,http://imdagger.github.io/theme/js/math.js"></script>
<script src="http://s3.amazonaws.com/nwapi/nwmatcher/nwmatcher-1.2.5-min.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="/theme/js/selectivizr-min.js"></script>
<noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
<![endif]-->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="http://imdagger.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="IMDagger Atom-лента" />
</head>
<body>
<div class="row page-head">
<div class="row page-head-status page-head-status-top"><div class="col-sm-12 b-status mine"><p><i></i><a href="#" title="настроение" class="b-consistent-link"><b>Продать кому-то что-то всегда на деле сложнее, чем кажется</b></a></p></div></div>
<div class="col-sm-2 page-left">
<a href="#">
<img src="http://upics.yandex.ru/22199227/normal" ilo-full-src="http://upics.yandex.ru/22199227/normal">
</a>
</div>
<div class="col-sm-10 all-posts">
<div class="title-container">
<h1><b><a href="http://imdagger.github.io" class="fn nickname">IMDagger</a></b></h1>
</div>
<div class="title-menu">
<ul class="nav nav-tabs" role="tablist">
<li class="active">
<a href="#">Дневник</a>
</li>
<li><a href="http://fotki.yandex.ru/users/imdagger">Фотки</a></li>
<li><a href="http://imdagger.github.io/pages/o-sebe.html">О себе</a></li>
<li><a href="http://imdagger.github.io/pages/rss-lenta.html">RSS-лента</a></li>
</ul>
</div>
</div>
</div>
<div class="row page-body">
<div class="col-sm-2 page-left">
<div class="row widget widget-photo">
<a href="posts/2011/08/07/aga-popalsia/" class="b-user-photo__link"><img class="b-user-photo__img" src=" http://img-fotki.yandex.ru/get/5409/22199227.a/0_625fc_e780ccc7_L
?log_nocount=64720402854"></a>
</div><div class="row widget">
<div class="widget-content b-user-info">
<div class="widget__body">
<div class="widget-user-info__age">
<i class="widget-user-info__sex widget-user-info__sex_type_"></i> 27 лет
</div>
<div class="widget-user-info__place">
<a href="#">Гомель</a>, <a href="#">Беларусь</a> </div>
<ul class="contacts">
<li class="contact contact-type-email"><i></i><a href="mailto:[email protected]">[email protected]</a></li>
<li class="contact contact-type-ya-online"><i></i>[email protected]</li>
<li class="contact contact-type-icq"><i></i>350395088</li>
</ul>
</div>
</div>
</div>
<div class="row widget">
<div class="widget-content">
<div class="widget__title">
<div class="widget__title-link">Метрика</div>
</div>
<div class="widget__body">
<div class="widget-line">
<!-- noindex -->
<!-- googleoff: index -->
<div class="widget-entry">
<!-- Yandex.Metrika informer --><a href="https://metrika.yandex.ru/stat/?id=25746494&from=informer" target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/25746494/3_1_FFFFFFFF_EFEFEFFF_0_pageviews" style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:25746494,lang:'ru'});return false}catch(e){}"/></a><!-- /Yandex.Metrika informer --><!-- Yandex.Metrika counter --><script type="text/javascript">(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter25746494 = new Ya.Metrika({id:25746494, clickmap:true, trackLinks:true, accurateTrackBounce:true}); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks");</script><noscript><div><img src="//mc.yandex.ru/watch/25746494" style="position:absolute; left:-9999px;" alt="" /></div></noscript><!-- /Yandex.Metrika counter -->
<!-- googleon: index -->
<!-- /noindex -->
</div>
</div>
</div>
</div>
</div><div class="row widget">
<div class="widget-content">
<div class="widget__title">
<div class="widget__title-link">Популярное в дневнике</div>
</div>
<div class="widget__body">
<div class="widget-line">
<div class="widget-entry">
<div class="widget-day__title">25 июня</div>
<div class="widget-entry clearfix">
<div class="widget-entry__item">
<div class="widget-entry__title">
<a href="#" class="h-link"> Висцеральная теория сна выглядит стр…</a>
</div>
<div class="widget-entry__info">2 ответа</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div>
<div class="col-sm-10 all-posts">
<div class="row b-post-filter">
<span class="pull-right">
записи по
<div class="btn-group">
<span type="button" class="pseudo-link" data-toggle="dropdown">месяцам</span>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li><a rel="nofollow" href="#" class="h-link">Нулябрь</a><li>
<li><a rel="nofollow" href="#" class="h-link">Первябрь</a><li>
</ul>
</div> ·
<div class="btn-group">
<span type="button" class="pseudo-link" data-toggle="dropdown">меткам</span>
<ul class="dropdown-menu dropdown-menu-right" role="menu"> <li> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/emacs.html" class="h-link">emacs</a> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/javascript.html" class="h-link">javascript</a> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/icfpc.html" class="h-link">icfpc</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/blender.html" class="h-link">blender</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/ia.html" class="h-link">Я</a> </li> <li> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/google.html" class="h-link">google</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/zhizn.html" class="h-link">жизнь</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/oshibka.html" class="h-link">ошибка</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/rabota.html" class="h-link">работа</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/python.html" class="h-link">python</a> </li> <li> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/java.html" class="h-link">java</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/bredni.html" class="h-link">бредни</a> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/racket.html" class="h-link">racket</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/programmirovanie.html" class="h-link">программирование</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/bge.html" class="h-link">bge</a> </li> <li> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/eda.html" class="h-link">еда</a> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/linux.html" class="h-link">linux</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/nabrosok.html" class="h-link">набросок</a> <a rel="nofollow" class="tag-1" href="http://imdagger.github.io/tag/radost.html" class="h-link">радость</a> <a rel="nofollow" class="tag-2" href="http://imdagger.github.io/tag/iandeks.html" class="h-link">Яндекс</a> </li> </ul>
</div> ·
<div class="btn-group">
<span type="button" class="pseudo-link" data-toggle="dropdown">типам</span>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li><a rel="nofollow" href="http://imdagger.github.io/category/description.html" class="h-link">обращение</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/friend.html" class="h-link">дружба</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/join.html" class="h-link">клубы</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/link.html" class="h-link">ссылки</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/mood.html" class="h-link">настроение</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/photo.html" class="h-link">фото</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/text.html" class="h-link">текст</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/video.html" class="h-link">видео</a><li>
<li><a rel="nofollow" href="http://imdagger.github.io/category/wishlist.html" class="h-link"></a><li>
</ul>
</div>
</span>
</div>
<div class="row b-post">
<div class="panel panel-text">
<div class="panel-heading b-post-type b-post-type-text">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
написал <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/15/moi-otvet/" >
15 сентября 2009 года, 07:25
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
<div class="row tags-row">
<span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/rasskaz.html">рассказ</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/otvet.html">ответ</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/bredni.html">бредни</a></span></div>
</noindex>
<div class="post-title">
<a class="no-link" href="http://imdagger.github.io/posts/2009/09/15/moi-otvet/">Мой ответ</a> </div>
<div class="row post-body">
<div class="b-text">
<p>Я ж сказал, что напишу зарисовку, где он чего-нибудь отчебучит. Вот
дружеский шарж на
<a class="reference external" href="http://loukat.ya.ru/replies.xml?item_no=56">запись</a> от <a class="reference external" href="http://loukat.ya.ru/">Леська Lou~kat(ze)</a>:</p>
<div class="alert alert-danger compound">
<p><strong>Внимание!</strong> Следующий текст является просто троллингом созданным по мотивам
другого текста, но может всё равно вызывать повреждения мозга.</p>
</div>
<p>Она стояла одиноко на остановке, ждала последний автобус. Ветер
завывал, словно злобное создание насмехается рядом над её горем. В
пальцах слегка покалывало, и снежинки медленно опадали у умирали на её
руках. Но ей было уже всё равно потому, что больше никто не понимает её
в этом мире. Только одна мысль пронзала голову, как тысяча иголок:
«Зачем? зачем?…». Иногда она тихо угасала и казалось, что она не где-то
тут, тут… на этой заброшенной остановке, где старая обветшалая лавочка,
где деревья, которые видели тысячу печальных и счастливых лиц. И вот..
вот… ещё одно… но оно не печальное, оно .. просто остывшее, будто это не
снег падает на него, ложится на ресницы, губы; а может весь этот холод и
вьюга исходят из её стеклянных глаз?</p>
<p>Но когда сознание вновь возвращалось, то она вспоминала, как им было
хорошо, что он был таким нежным. Но вдруг загоралась искорка ярости и
растапливала снежинки на руках: «Зачем?! зачем он это сделал?». Теперь
ей казалось, что этот мир жесток и несправедлив, а она готова его
разрушить. Но лунное сияние возвращало спокойствие в душу, охлаждало, и
она была похожа на снежную королеву. И приходили другие, печальные
мысли… апатия, полная апатия, ей ничего не нужно, ведь всё, что она
могла отдать ему — она отдала. Самое дорогое, что было, протянула в
тогда ещё тёплых ладонях, она отдала ему сердце! Такое горячее, которое
согрело бы их двоих, но … он предпочёл другое:</p>
<p>«Как он мог? Съесть моё сердце!! Изверг…», — думала она.</p>
<p>А он в этот момент наслаждался ароматом жареного мяса, вкусом
подливки. А может он был просто жестоким коллекционером сердец? И это
пополнило его меню?</p>
<p><strong>От меня:</strong> «Да-да-да и ещё раз да!!! Я же обещал шарж про
поедателя сердец и жестокого коллекционера x-D, раз кто-то в своём блоге
не захотел добавить мои правки из комментариев, а ещё выдвинул
претензии, мол “сам пиши, раз такой умный”, то вот нате… кушать подано,
садитесь жрать :)».</p>
</div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-mood">
<div class="panel-heading b-post-type b-post-type-mood">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
поделился настроением <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/14/urn:ya.ru:post/22199227/226/" >
14 сентября 2009 года, 20:43
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
</noindex>
<div class="post-title">
</div>
<div class="row post-body">
<div class="b-text">
<p>Я слишком раздражительный последние дни, наверное “ко мне приехала тётя
Ирма” (см. IT Crowd)</p>
</div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-link">
<div class="panel-heading b-post-type b-post-type-link">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
поделился ссылкой <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/14/ovsianoe-pechene/" >
14 сентября 2009 года, 20:41
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
<div class="row tags-row">
<span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/pechene.html">печенье</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/eda.html">еда</a></span></div>
</noindex>
<div class="post-title">
<a class="h-link" href="http://clubs.ya.ru/4611686018427387998/replies.xml?item_no=34323">
<img class="b-ico" src="http://favicon.yandex.ru/favicon/clubs.ya.ru?default=yaru-external">Овсяное печенье</a>
</div>
<div class="row post-body">
<div class="b-text">
<p class="row photo-item text-center"><a class="reference external" href="http://clubs.ya.ru/4611686018427387998/replies.xml?item_no=34323"><img alt="Печенье" src="http://img-fotki.yandex.ru/get/3702/nat-27.1/0_31396_be475739_L" title="Печенье"/></a></p>
<blockquote>
<p>Состав: геркулес 3 стакана, яйцо 2 шт, сахар 1,5 стакана, маргарин 300 г.,
мука 2 стакана, мед 1 столовая ложка, сода 1 чайная ложка, погасить уксусом, ваниль, соль.</p>
<p>Геркулес подсушить в микроволновке или на сухой сковородке, измельчить в муку.
Все ингредиенты смешать до однородной массы. Влажными руками скатать небольшие шарики и
выложить на противень, застеленный бумагой для выпечки. Выпекать при
температуре 200 градусов до румяной корочки.</p>
</blockquote>
<p>Как раз есть лишний геркулес :) Нужно будет попробовать свои силы…</p> </div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-text">
<div class="panel-heading b-post-type b-post-type-text">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
написал <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/14/emacs-i-uvedomleniia-v-tree/" >
14 сентября 2009 года, 18:06
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
<div class="row tags-row">
<span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/emacs.html">emacs</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/trei.html">трей</a></span></div>
</noindex>
<div class="post-title">
<a class="no-link" href="http://imdagger.github.io/posts/2009/09/14/emacs-i-uvedomleniia-v-tree/">Emacs и уведомления в трее</a> </div>
<div class="row post-body">
<div class="b-text">
<p>Т.к. <strong>Emacs</strong> не поддерживает загрузку динамических библиотек (а
оно ему и не нужно), то иконку в трее и изменение её статуса будет
отображать отдельное небольшое приложение, которое соединяется пайпами с
Emacs. Я модифицировал существующее такое приложение (описывал его
раньше),
<a class="reference external" href="https://yadi.sk/d/lAg5SLN8UmdLG">tray_daemon.c</a> - это
версия, которая умеет:</p>
<ul class="simple">
<li>Отложенное создание иконки (полезно, если иконка нужна только по
время соединения)</li>
<li>Скрытие/показ и мерцание в трее</li>
<li>Установка изображения иконки (чтобы можно было передавать из файла
конфигурации Emacs’а, а не была вшита намертво)</li>
<li>Уничтожение иконки</li>
<li>Возможность отдельной иконки для каждого процесса Emacs, или
множество различных иконок для одного процесса Emacs, т.к. работает
через пайпы и только со своим родительским процессом</li>
</ul>
<p>Вот так оно выглядит:</p>
<p><a class="reference external" href="http://fotki.yandex.ru/users/imdagger/view/80430/"><img alt="Панель" src="http://img-fotki.yandex.ru/get/3707/imdagger.3/0_13a2e_da2dfe6b_L" title="Панель"/></a></p>
<p class="cut"><a class="h-link reference internal" data-toggle="collapse" href="#cut_54509072">дальше много текста и пояснений</a></p>
<div class="collapse" id="cut_54509072">
<p>Процесс, отображающий иконку в трее:</p>
<ol class="arabic simple">
<li>Дублирует при помощи dup стандартный поток ввода (stdin)</li>
<li>Устанавливает значение названия файла иконки по умолчанию равное
<strong>“icon.png”</strong></li>
<li>Переходит к считыванию команд</li>
<li>Т.к. <strong>stdin</strong> находится в режиме блокировки, то <strong>read</strong> будет
ожидать хотя бы одного символа на входном потоке</li>
<li>Ожидает символы либо <strong>‘I’</strong>, либо <strong>‘s’</strong></li>
<li>Если пришло сообщение <strong>‘s’</strong>, то следующие за ним символы — название
файла с изображением (эту команду возможно вызывать только до
инициализации и сколько угодно раз)</li>
<li>Если пришла команда-символ <strong>‘I’</strong>, то вызывается инициализация
<strong>Gtk</strong> и разблокировка потока (добавляется <em>O_NONBLOCK</em>)</li>
<li>Если инициализация уже была произведена ранее, то в режиме
неблокирующего потока приложение ожидает команды <strong>‘b’</strong>, <strong>‘B’</strong>,
<strong>‘v’</strong>, <strong>‘V’</strong>, <strong>‘Q’</strong>, которыми и управляется</li>
</ol>
<p>Описание команд:</p>
<ul class="simple">
<li><strong>‘I’</strong> — инициализация gtk и показ в трее</li>
<li><strong>‘s’ символы_однобайтные</strong> — установка исходного изображения, название
не обязательно завершать терминирующим нулём</li>
<li><strong>‘b’</strong> — выключить мерцание</li>
<li><strong>‘B’</strong> — включить мерцание</li>
<li><strong>‘v’</strong> — спрятать иконку</li>
<li><strong>‘V’</strong> — показать иконку</li>
<li><strong>‘Q’</strong> — завершение процесса, уничтожение иконки</li>
</ul>
<p>Затем для этого приложения был написан на Elisp’е код, который связал
<strong>ejabber.el</strong> и «демона трея». Разберём по порядку. Функция
<code class="code">
my-tray-icon-send-command</code>
умеет отправлять набор символов дочернему
процессу tray_daemon.</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-p">(</span><span class="pgcss-nv">command</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">process-send-string</span> <span class="pgcss-nv">my-tray-icon-process</span> <span class="pgcss-nv">command</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">process-send-eof</span> <span class="pgcss-nv">my-tray-icon-process</span><span class="pgcss-p">))</span>
</pre></div>
<p>Функция <code class="code">
process-send-string</code>
отправляет строку command процессу
<code class="code">
my-tray-icon-process</code>
, она встроенная в Emacs. А функция
<code class="code">
process-senf-eof</code>
отправляет сигнал <strong>EOF</strong> во входной поток процесса,
что позволяет процирующему потоку понять, что запись
завершена. <code class="code">
my-tray-icon-send-command</code>
будет использована, как
базовая для всех функций управления.</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-set</span> <span class="pgcss-p">(</span><span class="pgcss-nv">icon-path</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"s"</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-nv">icon-path</span><span class="pgcss-p">))</span>
</pre></div>
<p>Функция <em>my-tray-icon-set</em> устанавливает путь к изображению иконки.
Для этого сначала посылается байт ‘s’, а затем строка байтов из
icon-path.</p>
<p>Далее показан код функций для управления демоном в трее и смысл их
аналогичен посылаемому символьному коду:</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-init</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"I"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-destroy</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"Q"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-show</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"V"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-hide</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"v"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-blink</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"B"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-no-blink</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"b"</span><span class="pgcss-p">))</span>
</pre></div>
<p>Теперь потребуется описать функцию, которая создаст дочерний
процесс, инициализирует и сконфигурирует демона и установит переменную
<em>my-tray-icon-process</em> с названием процесса:</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-start</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-k">setq</span> <span class="pgcss-nv">my-tray-icon-process</span> <span class="pgcss-s">"*tray_icon*"</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-k">if</span> <span class="pgcss-p">(</span><span class="pgcss-nv">get-process</span> <span class="pgcss-nv">my-tray-icon-process</span><span class="pgcss-p">)</span>
<span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">start-process</span> <span class="pgcss-nv">my-tray-icon-process</span> <span class="pgcss-no">nil</span> <span class="pgcss-s">"~/.emacs.d/tray_daemon"</span><span class="pgcss-p">)))</span>
</pre></div>
<p>Демон будет иметь уникальное имя *tray_icon* в Emacs, а при
помощи <em>get-process</em> проверяется, чтобы процесс не был уже запущен, т.к.
нет смысла в двух одинаковых. Но если <strong>*tray_icon*</strong> отсутствует, то
при помощи встроенной функции <em>start-process</em> он запускается. Формат
вызова <em>start-process</em>:</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nv">start-process</span> <span class="pgcss-err">имя</span><span class="pgcss-nb">-</span><span class="pgcss-err">процесса</span><span class="pgcss-nb">-</span><span class="pgcss-err">в</span><span class="pgcss-nv">-Emacs</span> <span class="pgcss-err">буфер</span><span class="pgcss-nb">-</span><span class="pgcss-err">обмена</span> <span class="pgcss-s">"путь_к_файлу_на_диске"</span><span class="pgcss-p">)</span>
</pre></div>
<p>Т.к. обмен с процессом будет происходить последством каналов, то
буфер нужно установить равным nil.</p>
<p>Для того, чтобы обрабатывать прочитанные сообщения и выключать
мерцание иконки в трее я создал функцию <em>my-tray-icon-mesagge-handler</em>:</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-mesagge-handler</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">when</span> <span class="pgcss-p">(</span><span class="pgcss-nb">and</span> <span class="pgcss-p">(</span><span class="pgcss-nv">get-process</span> <span class="pgcss-nv">my-tray-icon-process</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">equal</span> <span class="pgcss-nv">jabber-activity-count-string</span> <span class="pgcss-s">"0"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-no-blink</span><span class="pgcss-p">)))</span>
</pre></div>
<p>В jabber.el написано, что переменная <code class="code">
jabber-activity-count-string</code>
содержит строковое значение текущего количества пользователей, сообщения
которых ещё не прочитаны. Поэтому нужно её проверить на равество “0” и,
если это так, то убрать мерцание. Этот обработчик вешается как хук на
обновление активности:</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-activity-update-hook</span>
<span class="pgcss-ss">'my-tray-icon-mesagge-handler</span><span class="pgcss-p">)</span>
</pre></div>
<p>Функция обновления активности вызывается в случае, если число
непрочитанных сообщений изменилось. Теперь как только наше приложение
смогло не мерцать, то следует его научить мерцать:</p>
<div class="highlight"><pre><span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-show-notification</span> <span class="pgcss-p">(</span><span class="pgcss-nv">from</span> <span class="pgcss-nv">buffer</span> <span class="pgcss-nv">text</span> <span class="pgcss-nv">proposed-alert</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">when</span> <span class="pgcss-p">(</span><span class="pgcss-nb">not</span> <span class="pgcss-p">(</span><span class="pgcss-nb">equal</span> <span class="pgcss-p">(</span><span class="pgcss-nv">get-buffer-window</span> <span class="pgcss-nv">buffer</span> <span class="pgcss-ss">'visible</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">selected-window</span><span class="pgcss-p">)))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">jabber-message-osd</span> <span class="pgcss-nv">from</span> <span class="pgcss-nv">buffer</span> <span class="pgcss-nv">text</span> <span class="pgcss-nv">proposed-alert</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-blink</span><span class="pgcss-p">)))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-alert-message-hooks</span>
<span class="pgcss-ss">'my-show-notification</span><span class="pgcss-p">)</span>
</pre></div>
<p>Обязательно нужно, чтобы функция-обработчик пришедшего сообщения,
которая применяется как хук к <code class="code">
jabber-alert-message-hooks</code>
, принимала 4
параметра: от кого, буфер для общения с этим человеком, текст сообщения,
тип сообщения (отошёл, текст, отключён и т.д.). Чтобы иконка не начинала
мерцать в тот момент, когда пользователь и так видит окно чата с
человеком, то вызывается <code class="code">
(get-buffer-window buffer 'visible)</code>
, с
параметром visible она проверяет виден ли буфер (учитывает даже факт,
что окно свёрнуто, но не учитывает множество рабочих
столов). <code class="code">
(jabber-message-osd from buffer text proposed-alert)</code>
я
использую, чтобы xosd (треубется скачать osd.el) отображал от кого
пришло сообщение на экране:</p>
<p class="text-center"><a class="reference external" href="http://fotki.yandex.ru/users/imdagger/view/80432/"><img alt="Новое сообщение" src="http://img-fotki.yandex.ru/get/3711/imdagger.3/0_13a30_8fd4035a_L" title="Новое сообщение"/></a></p>
<p>Ну и на закуску мой полный jabber_cfg.el:</p>
<div class="highlight"><pre><span class="pgcss-c1">;; а пароль вводить ручками при к каждом коннекте</span>
<span class="pgcss-c1">;; ну не доверяю я хранить его в открытов виде тут</span>
<span class="pgcss-p">(</span><span class="pgcss-k">setq</span> <span class="pgcss-nv">jabber-account-list</span>
<span class="pgcss-o">'</span><span class="pgcss-p">((</span><span class="pgcss-s">"имя@ya.ru/emacs"</span>
<span class="pgcss-p">(</span><span class="pgcss-ss">:network-server</span> <span class="pgcss-o">.</span> <span class="pgcss-s">"сервер"</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-ss">:connection-type</span> <span class="pgcss-o">.</span> <span class="pgcss-nv">ssl</span><span class="pgcss-p">))))</span>
<span class="pgcss-c1">;; раскомментировать, если будет говорить, что переменная</span>
<span class="pgcss-c1">;; my-tray-icon-process не объявлена</span>
<span class="pgcss-c1">;; (setq my-tray-icon-process "*tray_icon*")</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-p">(</span><span class="pgcss-nv">command</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">process-send-string</span> <span class="pgcss-nv">my-tray-icon-process</span> <span class="pgcss-nv">command</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">process-send-eof</span> <span class="pgcss-nv">my-tray-icon-process</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-set</span> <span class="pgcss-p">(</span><span class="pgcss-nv">icon-path</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"s"</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-nv">icon-path</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-init</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"I"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-destroy</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"Q"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-show</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"V"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-hide</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"v"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-blink</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"B"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-no-blink</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-send-command</span> <span class="pgcss-s">"b"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-start</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-k">setq</span> <span class="pgcss-nv">my-tray-icon-process</span> <span class="pgcss-s">"*tray_icon*"</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-k">if</span> <span class="pgcss-p">(</span><span class="pgcss-nv">get-process</span> <span class="pgcss-nv">my-tray-icon-process</span><span class="pgcss-p">)</span>
<span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">start-process</span> <span class="pgcss-nv">my-tray-icon-process</span> <span class="pgcss-no">nil</span> <span class="pgcss-s">"~/.emacs.d/tray_daemon"</span><span class="pgcss-p">)))</span>
<span class="pgcss-c1">;; подключение скачанной библиотеки</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">require</span> <span class="pgcss-ss">'osd</span><span class="pgcss-p">)</span>
<span class="pgcss-c1">;; настройки для xosd</span>
<span class="pgcss-p">(</span><span class="pgcss-k">setq</span> <span class="pgcss-nv">osd-program-args</span>
<span class="pgcss-o">'</span><span class="pgcss-p">(</span><span class="pgcss-s">"--pos"</span> <span class="pgcss-s">"bottom"</span>
<span class="pgcss-s">"--offset"</span> <span class="pgcss-s">"7"</span>
<span class="pgcss-s">"--align"</span> <span class="pgcss-s">"left"</span>
<span class="pgcss-s">"--indent"</span> <span class="pgcss-s">"18"</span>
<span class="pgcss-s">"--delay"</span> <span class="pgcss-s">"3"</span>
<span class="pgcss-s">"--color"</span> <span class="pgcss-s">"red"</span>
<span class="pgcss-s">"--shadow"</span> <span class="pgcss-s">"2"</span>
<span class="pgcss-s">"--shadowcolour"</span> <span class="pgcss-s">"#1e2320"</span>
<span class="pgcss-s">"--lines"</span> <span class="pgcss-s">"3"</span>
<span class="pgcss-s">"--font"</span>
<span class="pgcss-s">"-*-times new roman-medium-r-*-*-24-*-*-*-*-*-*-*"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">require</span> <span class="pgcss-ss">'jabber-autoloads</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-tray-icon-mesagge-handler</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">when</span> <span class="pgcss-p">(</span><span class="pgcss-nb">and</span> <span class="pgcss-p">(</span><span class="pgcss-nv">get-process</span> <span class="pgcss-nv">my-tray-icon-process</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">equal</span> <span class="pgcss-nv">jabber-activity-count-string</span> <span class="pgcss-s">"0"</span><span class="pgcss-p">))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-no-blink</span><span class="pgcss-p">)))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-activity-update-hook</span>
<span class="pgcss-ss">'my-tray-icon-mesagge-handler</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-post-connect-hooks</span>
<span class="pgcss-p">(</span><span class="pgcss-k">lambda</span> <span class="pgcss-p">(</span><span class="pgcss-nv">connection</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-start</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-set</span> <span class="pgcss-s">"/home/imdagger/.emacs.d/icon.png"</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-init</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-show</span><span class="pgcss-p">)))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-post-disconnect-hook</span>
<span class="pgcss-p">(</span><span class="pgcss-k">lambda</span> <span class="pgcss-p">()</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-hide</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-destroy</span><span class="pgcss-p">)))</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">defun</span> <span class="pgcss-nv">my-show-notification</span> <span class="pgcss-p">(</span><span class="pgcss-nv">from</span> <span class="pgcss-nv">buffer</span> <span class="pgcss-nv">text</span> <span class="pgcss-nv">proposed-alert</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nb">when</span> <span class="pgcss-p">(</span><span class="pgcss-nb">not</span> <span class="pgcss-p">(</span><span class="pgcss-nb">equal</span> <span class="pgcss-p">(</span><span class="pgcss-nv">get-buffer-window</span> <span class="pgcss-nv">buffer</span> <span class="pgcss-ss">'visible</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">selected-window</span><span class="pgcss-p">)))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">jabber-message-osd</span> <span class="pgcss-nv">from</span> <span class="pgcss-nv">buffer</span> <span class="pgcss-nv">text</span> <span class="pgcss-nv">proposed-alert</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">my-tray-icon-blink</span><span class="pgcss-p">)))</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-alert-message-hooks</span>
<span class="pgcss-ss">'my-show-notification</span><span class="pgcss-p">)</span>
<span class="pgcss-c1">;; хуки на изменение статуса и отображение через xosd</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-alert-muc-hooks</span> <span class="pgcss-ss">'jabber-muc-osd</span><span class="pgcss-p">)</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">add-hook</span> <span class="pgcss-ss">'jabber-alert-presence-hooks</span> <span class="pgcss-ss">'jabber-presence-osd</span><span class="pgcss-p">)</span>
<span class="pgcss-c1">;; нам не нужная отладочная информация</span>
<span class="pgcss-c1">;; включим, когда будем что-то дорабатывать в jabber.el</span>
<span class="pgcss-p">(</span><span class="pgcss-k">setq</span> <span class="pgcss-nv">fsm-debug</span> <span class="pgcss-no">nil</span><span class="pgcss-p">)</span>
<span class="pgcss-c1">;; параметры для истории, вида и др.</span>
<span class="pgcss-p">(</span><span class="pgcss-k">setq</span> <span class="pgcss-nv">jabber-history-enabled</span> <span class="pgcss-no">t</span>
<span class="pgcss-nv">jabber-use-global-history</span> <span class="pgcss-no">nil</span>
<span class="pgcss-nv">jabber-history-dir</span> <span class="pgcss-s">"~/.emacs.d/jabber/"</span>
<span class="pgcss-nv">jabber-chatstates-confirm</span> <span class="pgcss-no">t</span>
<span class="pgcss-nv">jabber-events-confirm-composing</span> <span class="pgcss-no">t</span>
<span class="pgcss-nv">jabber-chat-time-format</span> <span class="pgcss-s">"%a %d %b %H:%M:%S"</span>
<span class="pgcss-nv">jabber-backlog-number</span> <span class="pgcss-mi">50</span><span class="pgcss-p">)</span>
<span class="pgcss-c1">;; быстрое переключение к буфферу с сообщением</span>
<span class="pgcss-p">(</span><span class="pgcss-nv">global-set-key</span> <span class="pgcss-nv">[S-f12]</span> <span class="pgcss-ss">'jabber-activity-switch-to</span><span class="pgcss-p">)</span>
</pre></div>
</div> </div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-text">
<div class="panel-heading b-post-type b-post-type-text">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
написал <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/13/den-programmista/" >
13 сентября 2009 года, 18:36
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
<div class="row tags-row">
<span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/blender.html">blender</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/prazdnik.html">праздник</a></span></div>
</noindex>
<div class="post-title">
<a class="no-link" href="http://imdagger.github.io/posts/2009/09/13/den-programmista/">День программиста</a> </div>
<div class="row post-body">
<div class="b-text">
<p>Первый раз задействовал арматуры при создании кистей рук, раньше
как-то просто моделил сразу разные меши. Смоделил всё где-то за 1 час
:S. Да долговато, но я ещё намучался с узлами композиции… Пришлось
выстроить сложную схему объединения слоёв, но всё же напортачил там-сям
:).</p>
<p>Мой ответ на поздравление:</p>
<p class="text-center"><a class="reference external" href="http://fotki.yandex.ru/users/imdagger/view/79930/"><img alt="Робот, спасибо" src="http://img-fotki.yandex.ru/get/3704/imdagger.3/0_1383a_b17155fa_L" title="Робот, спасибо"/></a></p> </div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-text">
<div class="panel-heading b-post-type b-post-type-text">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
написал <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/12/hibernate-timestamp/" >
12 сентября 2009 года, 18:48
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
<div class="row tags-row">
<span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/java.html">java</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/hibernate.html">hibernate</a></span></div>
</noindex>
<div class="post-title">
<a class="no-link" href="http://imdagger.github.io/posts/2009/09/12/hibernate-timestamp/">Hibernate</a> </div>
<div class="row post-body">
<div class="b-text">
<p>Чтобы промэппировать в Hibernate тип базы данных <code class="code">
TIMESTAMP</code>
, то
следует использовать аннотацию <code class="code">
@Version</code>
.</p>
</div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-mood">
<div class="panel-heading b-post-type b-post-type-mood">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
поделился настроением <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/11/urn:ya.ru:post/22199227/215/" >
11 сентября 2009 года, 20:11
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
</noindex>
<div class="post-title">
</div>
<div class="row post-body">
<div class="b-text">
<p>Я в панике :)</p>
</div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-text">
<div class="panel-heading b-post-type b-post-type-text">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
написал <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/11/java/" >
11 сентября 2009 года, 20:10
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
<div class="row tags-row">
<span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/dl.html">dl</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/java.html">java</a></span></div>
</noindex>
<div class="post-title">
<a class="no-link" href="http://imdagger.github.io/posts/2009/09/11/java/">Java</a> </div>
<div class="row post-body">
<div class="b-text">
<p>Скачал:</p>
<ul class="simple">
<li>Apache Tomcat 6.0.20</li>
<li>Spring framework 2.5.6</li>
<li>Hibernate 3.3.2</li>
<li>EhCache 1.6.2</li>
</ul>
<p>Всё это мне потребуется для написания диплома. Нужно уже взяться и
переписать кусочек (отрефакторить) старого кода DL, но… но… сначала я
составлю тесты, предже чем творить (<del class="del">
дада! старый код не тестировался
никак</del>
). Буду работать по методу … не помню как называется, кажется про
него Фаулер писал. Про то, как рефакторить старый ужасный код, который
писал не ты, да ещё разработчика этого кода уже не найти; и этот код
работает и его нужно не сломать, а поэтапно “выровнять”. А переписать с
нуля не представляется возможным :(, т.к.: <strong>413</strong> JSP-файлов, <strong>1050</strong>
Java-классов и <strong>200</strong> ASP-файлов с кодом… Поэтому потихотьну,
помаленьку.. не надрываясь, думая головой и ощущая <del class="del">
тоннель</del>
свет впереди.</p>
</div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-join">
<div class="panel-heading b-post-type b-post-type-join">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
присоединился к клубу <a class="b-club__link" href="http://clubs.ya.ru/hell-kitchen"><b class="b-club__first-letter">Я</b>.Накухне</a> <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/10/urn:ya.ru:post/22199227/213/" >
10 сентября 2009 года, 15:03
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
</noindex>
<div class="post-title">
</div>
<div class="row post-body">
<div class="b-text">
<p>Буду читать и набираться знаний в мою пустую голову :).</p>
</div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div><div class="panel panel-link">
<div class="panel-heading b-post-type b-post-type-link">
<b class="b-user">
<a class="b-user__link" href="http://imdagger.github.io/author/imdagger.html"><b class="b-user__first-letter">I</b>MDagger</a>
</b>
поделился ссылкой <span class="pull-right b-date">
<a class="h-link" href="http://imdagger.github.io/posts/2009/09/09/sushchestvo-iz-sozha/" >
9 сентября 2009 года, 20:29
</a>
</span>
</div>
<div class="panel-body">
<div class="col-sm-1 b-post__layout-left">
<a href="http://imdagger.github.io/author/imdagger.html"><img src="http://upics.yandex.ru/22199227/middle"></a>
</div>
<div class="col-sm-11 b-right-col">
<noindex>
<div class="row tags-row">
<span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/shchiten.html">щитень</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/sozh.html">сож</a></span>, <span class="tag"><a rel="nofollow" class="h-link" href="http://imdagger.github.io/tag/sozdanie.html">создание</a></span></div>
</noindex>
<div class="post-title">
<a class="h-link" href="http://ru.wikipedia.org/wiki/Щитни">
<img class="b-ico" src="http://favicon.yandex.ru/favicon/ru.wikipedia.org?default=yaru-external">Существо из Сожа</a>
</div>
<div class="row post-body">
<div class="b-text">
<p>Теперь буду знать, что эта “штука” из моего видео зовётся Щитень :).</p>
</div>
</div>
<div class="row comments-row">
<span><a class="pseudo-link b-candy b-comment-shortcut"><i class="b-ico"></i>ответить</a></span>
</div>
</div>
</div>
</div> <div class="panel panel-default">
<div class="panel-body more">
<span class="less-prev"><a class="h-link" href="http://imdagger.github.io/index99.html">Назад</a></span>
<span class="more-next"><a class="h-link" href="http://imdagger.github.io/index101.html">Ещё записи</a></span>
</div>
</div>
</div>
</div>
</div>
</body>
</html>