shlomi-fish-homepage / lib / MyNavData.pm

shl...@cec68495-… 5a48613 

shl...@iglu.org.… b57da48 




Shlomi Fish f615f7b 

shl...@cec68495-… 5a48613 

Shlomi Fish 84f8239 
shl...@cec68495-… 5a48613 
shl...@iglu.org.… df09b37 
shl...@cec68495-… 5a48613 
shl...@iglu.org.… df09b37 
shl...@cec68495-… 5a48613 
shl...@iglu.org.… df09b37 
shl...@cec68495-… 5a48613 


shl...@cec68495-… 2c7f8b3 




shl...@iglu.org.… df09b37 

shl...@cec68495-… ae6526f 
Shlomi Fish 383e670 



















































































































































































































































































































































































Shlomi Fish 938b983 
Shlomi Fish f615f7b 
Shlomi Fish 938b983 
Shlomi Fish 77f238c 















Shlomi Fish 655ca04 












































Shlomi Fish d6f0819 
Shlomi Fish 655ca04 



Shlomi Fish d6f0819 
Shlomi Fish 655ca04 



Shlomi Fish d6f0819 
Shlomi Fish 655ca04 





















Shlomi Fish 77f238c 

Shlomi Fish 655ca04 




































Shlomi Fish 8105d47 











Shlomi Fish 655ca04 

Shlomi Fish 77f238c 


Shlomi Fish 655ca04 

















































Shlomi Fish 77f238c 
Shlomi Fish 655ca04 


Shlomi Fish f615f7b 






Shlomi Fish 938b983 



Shlomi Fish 4459276 
Shlomi Fish 938b983 



Shlomi Fish f615f7b 
  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
package MyNavData;

use strict;
use warnings;

use utf8;

use Shlomif::Homepage::SectionMenu;

my $hosts =
{
    t2 =>
    {
        base_url => "http://www.shlomifish.org/",
    },
    vipe =>
    {
        base_url => "http://www.shlomifish.org/Vipe/",
    },
};

sub get_hosts
{
    return $hosts;
}

my @personal_expand = (expand => { bool => 1, capt => 0,},);
my @humour_expand = (re => q{^(?:humour/|(?:humour|wysiwyt|wonderous).html)});

my %reduced_sub_trees =
(
    'Humour' =>
    {
        text => "Humour",
        url => "humour/",
        expand => { @humour_expand },
        title => "My Humorous Creations",
        subs =>
        [
            {
                text => "Stories",
                url => "humour/stories/",
                title => "Large-Scale Stories I Wrote",
                expand => { @humour_expand, capt => 0,},
                subs =>
                [
                    {
                        text => "The Enemy",
                        url => "humour/TheEnemy/",
                        title => "The Enemy and How I Helped to Fight It",
                    },
                    {
                        text => "TOW The Fountainhead",
                        url => "humour/TOWTF/",
                        title => "The One with the Fountainhead",
                    },
                    {
                        text => "Human Hacking Field Guide",
                        url => "humour/human-hacking/",
                        title => "The Human Hacking Field Guide",
                    },
                    {
                        text => "We, the Living Dead",
                        url => "humour/Star-Trek/We-the-Living-Dead/",
                    },
                    {
                        text => "Humanity - The Movie",
                        url => "humour/humanity/",
                        title => "Parody of Humanity and Modern Life in Particular",
                    },
                    {
                        text => "The Pope",
                        url => "humour/Pope/",
                        title => "The Pope Died on Sunday",
                    },
                ],
            },
            {
                text => "Aphorisms and Quotes",
                url => "humour/aphorisms/",
                expand => { @humour_expand, capt => 0,},
                subs =>
                [
                    {
                        text => "My Quotes Collection",
                        title => ("Collection of Funny or Insightful " .
                            "Quotes or Aphorisms I came up with"),
                        url => "humour.html",
                    },
                    {
                        text => "Fortune Cookies Collection",
                        title => "Collection of Files for Input to the UNIX ‘fortune’ Program",
                        url => "humour/fortunes/",
                    },
                ],
            },
            {
                text => "Small Scale",
                url => "humour/bits/",
                expand => { re => "^humour/bits/", },
                title => "Small Scale Funny Works of Mine",
                subs =>
                [
                    {
                        text => "Factoids",
                        title => "“Facts” about Chuck Norris and other things",
                        url => "humour/bits/facts/",
                    },
                ],
            },
            {
                text => "By Others",
                url => "humour/by-others/",
                expand => { re => "^humour/(?:by-others|GNU-Visual-Basic)/", },
                title => "Humorous Works by Other People",
            },
        ],
    },
    'Puzzles' =>
    {
        text => "Puzzles",
        url => "puzzles/",
        expand => { re => q{^(?:MathVentures/|puzzles/|toggle\.html)}, },
        title => "Puzzles, Riddles and Brain-teasers",
        subs =>
        [
            {
                text => "Math-Ventures",
                url => "MathVentures/",
                expand => { re => "^MathVentures/", },
                title => "Mathematical Riddles and their Solutions",
            },
            {
                text => "Logic Puzzles",
                url => "puzzles/logic/",
                expand => { re => "^puzzles/logic/", },
            },
        ],
    },

    'Software' =>
    {
        text => "Software",
        url => "open-source/",
        expand => { re => "^open-source/", },
        title => "Pages related to Software (mostly Open-Source)",
        subs =>
        [
            {
                text => "Projects",
                url => "open-source/projects/",
                expand => { re => "^(?:open-source/projects|jmikmod|rwlock|grad-fu)/", },
                subs =>
                [
                    {
                        text => "Freecell Solver",
                        url => "open-source/projects/freecell-solver/",
                    },
                    {
                        text => "MikMod",
                        url => "open-source/projects/mikmod/",
                        title => "A library and player for playing music module files",
                        subs =>
                        [
                            {
                                text => "For Java",
                                title => "A Player for MOD Files (a type of Music Files) for the Java Environment",
                                url => "jmikmod/",
                            },
                        ],
                    },
                    {
                        text => "FCFS RWLock",
                        title => "A First-Come First-Served Readers/Writers Lock",
                        url => "rwlock/",
                    },
                    {
                        text => "Quad-Pres",
                        title => "A Tool for Creating HTML Presentations",
                        url => "open-source/projects/quad-pres/",
                    },
                    {
                        text => "Gradient-Fu",
                        title => "Gradient-Fu Patch for the GIMP",
                        url => "grad-fu/",
                        hide => 1,
                    },
                    {
                        text => "Bits and Bobs",
                        title => "Various Small-Scale Open-Source Works",
                        url => "open-source/bits.html",
                    },
                ],
            },
            {
                text => "Resources Pages",
                title => "Various Software Resources Pages",
                url => "open-source/resources/",
                expand => { re => "^open-source/(?:resources/|favourite|interviews/|portability-libs/)", },
                subs =>
                [
                    {
                        text => "Favourite OSS",
                        title => "Favourite Open-Source Software",
                        url => "open-source/favourite/",
                    },
                    {
                        text => "Interviews",
                        title => "Interviews with Open-Source People",
                        url => "open-source/interviews/",
                    },
                    {
                        text => "Portability Libraries",
                        title => "Cross-Platform Abstraction Libraries",
                        url => "open-source/portability-libs/",
                    },
                    {
                        text => "Text Editors and IDEs",
                        title => "List of Text Editors and Integrated Development Environments (IDEs)",
                        url => "open-source/resources/editors-and-IDEs/",
                    },
                    {
                        text => "Software Management Tools",
                        title => "Software Constructions and Management Tools",
                        url => "open-source/resources/software-tools/",
                    },
                    {
                        text => "Israel-Related",
                        title => "Israel-Related FOSS Resources",
                        url => "open-source/resources/israel/",
                    },
                ],
            },
            {
                text => "Contributions",
                title => "Contributions to Other Projects, that I did not Start",
                url => "open-source/contributions/",
            },
            {
                text => "Anti Pages",
                title => "Against Commonly Used but Bad Software",
                url => "open-source/anti/",
                expand => { re => "^(?:no-ie|open-source/anti)/", },
            },
        ],
    },
    'Lectures' =>
    {
        text => "Lectures",
        url => "lecture/",
        expand => { re => "^lecture/", },
        title => "Presentations I Wrote (Mostly Technical)",
        subs =>
        [
            {
                text => "Perl for Newbies",
                url => "lecture/Perl/Newbies/",
            },
            {
                text => "Web Publishing using LAMP",
                url => "lecture/LAMP/",
                host => "t2",
                title => "Web Publishing using Linux, Apache, MySQL, and Perl/PHP/Python (or equivalents)",
            },
            {
                text => "The Cathedral and the Bazaar",
                url => "lecture/CatB/",
            },
            {
                text => "Prog. Languages",
                url => "lecture/cat/programming-languages/",
                title => "Presentations about Programming Languages",
            },
            {
                text => "Various Tools",
                url => "lecture/cat/various-tools/",
                title => "Presentations about Various Tools",
            },
            {
                text => "Welcome to Linux",
                url => "lecture/W2L/",
                title => "Presentations for the Israeli series for Linux Newcomers",
            },
            {
                text => "About My Projects",
                url => "lecture/cat/projects/",
                title => "Presentations about my Open Source Projects",
            },
            {
                text => "Lightning Talks",
                url => "lecture/cat/lightning-talks/",
                title => "Short (5-15 minutes) Presentations",
            },
        ],
    },

    'Essays' =>
    {
        text => "Essays",
        url => "philosophy/",
        expand => { re => "^(?:philosophy|prog-evolution|DeCSS)/", },
        title => "Various Essays and Articles about Technology and Philosophy in General",
        subs =>
        [
            {
                text => "Index to Essays",
                url => "philosophy/Index/",
                title => "Index to Essays and Articles I wrote.",
            },
            {
                text => "Computing",
                url => "philosophy/computers/",
                title => "Computing-related Essays and Articles",
                expand => { re => "^(?:philosophy/computers/|prog-evolution)", },
                subs =>
                [
                    {
                        text => "Open Source",
                        url => "philosophy/computers/open-source/",
                        title => "Essays about Free and Open Source Software (FOSS)",
                    },
                    {
                        text => "Software Management",
                        url => "philosophy/computers/software-management/",
                        title => "Essays about how to manage software workplaces, projects and teams",
                    },
                    {
                        text => "Perl",
                        url => "philosophy/computers/perl/",
                        title => "Essays about the Perl programming language",
                    },
                    {
                        text => "The Web (WWW)",
                        url => "philosophy/computers/web/",
                        title => "About the World-Wide-Web",
                    },
                    {
                        text => "Education",
                        url => "philosophy/computers/education/",
                        title => "About Computer and Technical Education",
                    },
                ],
            },
            {
                text => "Political Essays",
                url => "philosophy/politics/",
                title => "Essays about Politics and " .
                "Philosophical Politics",
                expand => { re => "^philosophy/politics/", },
            },
            {
                text => "General Philosophy",
                url => "philosophy/philosophy/",
                expand => { re => "^philosophy/(?:philosophy/|the-eternal-jew/)" },
            },
        ],
    },
    'Meta' =>
    {
        expand_re => "^meta/",
        url => "meta/",
        text => "Meta Info",
        title => "Information about this Site",
        show_always => 1,
        subs =>
        [
            {
                url => "meta/FAQ/",
                text => "FAQ",
                title => "Frequently Asked Questions and Answers List (FAQ)",
            },
            {
                url => "meta/privacy-policy/",
                text => "Privacy Policy",
            },
            {
                url => "meta/site-source/",
                text => "Site’s Source",
                title => "The source code used to generate this site",
            },
            {
                url => "meta/how-to-help/",
                text => "How to Help",
                title => "How you can help promote this site",
                subs =>
                [
                    {
                        url => "meta/donate/",
                        text => "Please Donate",
                    },
                ],
            },
            {
                url => "meta/hosting/",
                text => "Hosting",
                title => "About this site’s hosting provider.",
            },
        ],
    },
);

sub generic_get_params
{
    my ($class, $args) = @_;

    my $is_fully_expanded = (
        exists($args->{fully_expanded})
        ? $args->{fully_expanded}
        : 1
    );

    my $get_sub_tree = sub {
        my ($sect_name) = @_;

        return $is_fully_expanded
            ? Shlomif::Homepage::SectionMenu->get_modified_sub_tree($sect_name)
            : $reduced_sub_trees{$sect_name}
            ;
    };

    my $tree_contents =
    {
        host => "t2",
        text => "Shlomi Fish",
        title => "Shlomi Fish’s Homepage",
        subs =>
        [
            {
                text => "Shlomi Fish’s Homepage",
                url => "",
            },
            {
                text => "About Myself",
                url => "me/",
                @personal_expand,
                subs =>
                [
                    {
                        text => "Bio",
                        url => "personal.html",
                        title => "A Short Biography of Myself",
                        expand => { re => "^(?:me|personal/)", },
                        subs =>
                        [
                            {
                                text => "Intros",
                                url => "me/intros/",
                                title => "Introductions of Me to Various Forums",
                                subs =>
                                [
                                    {
                                        text => "MIT Writers",
                                        url => "me/intros/writers/",
                                        title => "My Intro to the MIT Writers Mailing List",
                                    },
                                ],
                            },
                        ],
                    },
                    {
                        text => "Contact Me",
                        url => "me/contact-me/",
                        title=> "How to Contact Me",
                    },
                    {
                        text => "My Résumés",
                        url => "me/resumes/",
                        subs =>
                        [
                            {
                                text => "English Résumé",
                                url => "SFresume.html",
                                skip => 1,
                            },
                            {
                                text => "Detailed English Résumé",
                                url => "SFresume_detailed.html",
                                skip => 1,
                            },
                        ],
                    },
                    {
                        text => "Personal Ad",
                        url => "me/personal-ad.html",
                        title => "My Personal Ad: what I’m looking for in a prospective girlfriend and what I can add to the relationship.",
                    },
                    {
                        text => "My Weblogs",
                        url => "me/blogs/",
                        title => "Links to my online journals.",
                    },
                    {
                        text => "Interviews",
                        url => "me/interviews/",
                        title => "Interviews that were conducted with me",
                    },
                ],
            },
            $get_sub_tree->('Humour'),
            $get_sub_tree->('Puzzles'),
            {
                text => "Computer Art",
                url => "art/",
                expand => { re => "^art/", },
                title => "Computer art I created while explaining how.",
                subs =>
                [
                    {
                        text => "Back to my Homepage",
                        url => "art/bk2hp/",
                        title => "A Back to my Homepage logo not unlike the one from the movie “Back to the Future”",
                    },
                    {
                        text => "Linux Banner",
                        url => "art/linux_banner/",
                        title => "Linux - Because Software Problems should not Cost Money",
                    },
                    {
                        text => "Made with Latemp",
                        url => "art/made-with-latemp/",
                        title => "“Made with Latemp” Button",
                    },
                    {
                        text => "HHFG Background",
                        url => "art/hhfg-background/",
                        title => "Background Image for the “Human Hacking Field Guide” Story",
                    },
                    {
                        text => "Better SCM Logo",
                        url => "art/better-scm/",
                        title => "Logo for the “Better SCM” Site",
                    },
                    {
                        text => "Slogans’ Designs",
                        url => "art/slogans/",
                        title => "The design of my aphorism - useful for T-shirts and other merchandise",
                    },
                    {
                        text => "By others",
                        url => "art/by-others/",
                        subs =>
                        [
                            {
                                text => "Yachar’s Music",
                                url => "art/by-others/Yachar/",
                                title => "Fresh Neoclassical Music",
                            },
                        ],
                    },
                ],
            },
            $get_sub_tree->('Software'),
            $get_sub_tree->('Lectures'),
            $get_sub_tree->('Essays'),
            {
                text => "Work",
                url => "work/",
                expand => { re => "", capt => 0,},
                title => "Work-Related Pages",
                subs =>
                [
                    {
                        text => "Hire Me!",
                        url => "work/hire-me/",
                        title => "I’m a Geek for Hire",
                        expand => { re => "work/", },
                        subs =>
                        [
                            {
                                text => "Private Lessons",
                                url => "work/private-lessons/",
                                title => "I’m Giving Private Lessons for High School Subjects and Computing.",
                            },
                        ],
                    },
                ],
            },
            {
                separator => 1,
                skip => 1,
            },
            {
                text => "Cool Links",
                url => "links.html",
                title => "An incomplete list of links I find cool and/or useful.",
            },
            {
                text => "Recommendations",
                url => "recommendations/",
                title => "Recommendations of Books, Compact Discs, Movies, etc.",
            },
            {
                separator => 1,
                skip => 1,
            },
            {
                url => "site-map/",
                text => "Site Map",
                title => "A site map showing all of the main pages.",
            },
            {
                separator => 1,
                skip => 1,
            },
            $get_sub_tree->('Meta'),
        ],
    };

    return
        (
            hosts => $hosts,
            tree_contents => $tree_contents,
        );
}

sub get_params
{
    return __PACKAGE__->generic_get_params(
        {
            fully_expanded => 0,
        }
    );
}

1;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.