New UNIX and Linux History Sections


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? New UNIX and Linux History Sections
# 1  
Old 05-27-2019
New UNIX and Linux History Sections

Dear All,

Taking a break from Vue.js coding for the site, SEO and YT videos; and hopefully addressing some well deserved criticism from some here that I have been too focused on the visual aspects of the forums versus the substance and the community....

While the "current generation programming and tech" is interesting, it is also very important we honor all those before us who made computing as we know it today possible.

Here is a PHP plugin I started this week:

Code:
<?php
$rand = mt_rand(0, 5); 

if ($rand == 0) { 
    eval('$history_div_for_users = "' . fetch_template('unix_linux_history') . '";'); 
} elseif ($rand == 1) { 
    eval('$history_div_for_users= "' . fetch_template('linux_unix_history') . '";'); 
} elseif ($rand == 2) { 
    eval('$history_div_for_users= "' . fetch_template('red_hat_history') . '";'); 
} elseif ($rand == 3) { 
    eval('$history_div_for_users = "' . fetch_template('ubuntu_history') . '";'); 
}  elseif ($rand == 4) { 
    eval('$history_div_for_users = "' . fetch_template('gnu_history') . '";'); 
} elseif ($rand == 5) { 
    eval('$history_div_for_users = "' . fetch_template('man_page_history') . '";'); 
} else{ 
    $history_div_for_users = ''; 
}

Basically, I use this plugin to insert a single random history section into forum pages, based on the size of the content and other factors. You can see these sections in:
  • Short Discussion Threads
  • Show Posts Pages
  • Short Man Pages
  • Tag Search Pages

For example, for each man page, the template looks like this:

Code:
<if condition="$length_manpage < 1500">
<div style="margin-top:20px;">
    $history_div_for_users
</div>
</if>

I should have done this years ago, and so I apologize for not creating UNIX and Linux history sections for the site years ago.

However, better late than never, as they say.

Here is one example I just put together for GNU:

Code:
<div class="neo-table-border" style="margin-bottom:20px;">
  <article class="neo-highlight">
    <div class="alt1 npb-message">
      <div class="smallfont">
        <strong>GNU</strong>
      </div>
      <hr class="npb-hr" />

      <div
        id="post_message_$post[postid]"
        class="alt1 neo-message-area npb-pmessage"
      >
        <div style="margin-bottom:15px;">
          The development of the GNU operating system began in 1983 by Richard
          Stallman. At the time, Richard worked at the MIT Artificial
          Intelligence Laboratory and publicly announced the GNU Project on
          September 27, 1983 on the net.unix-wizards and net.usoft USENET
          newsgroups. GNU software development formally started on January 5,
          1984. The goal of GNU was to bring a totally free software operating
          system into the world. Richard has a vision that computer users should
          be free to study the source code of the computer software, share
          software with others, modify the software, and publish modified
          versions.
        </div>
        <div style="margin-bottom:15px;">
          The GNU open source idea was published as the GNU Manifesto in March
          1985. GNU was designed from the start to be unix-compatible and so GNU
          development used C and Lisp as the GNU system programming languages.
          Most of GNU was been written by volunteers with the exception of
          numerous adopted third-party components. Richard Stallman set up the
          Free Software Foundation (FSF) in October 1985 Then in the late 1980s
          and 1990s the FSF hired software developers to write GNU software. As
          GNU gained in popularity various businesses began contributing to GNU
          development or selling GNU software and support, including Cygnus
          Solutions which eventually became a part of Red Hat.
        </div>
        <div>
          Please enjoy and help our forum community by "showing your work" and
          posting your code, even when your code is not working as expected. To
          help others help you, please wrap your code blocks, sample input,
          sample output, error messages, and other data in
          <span class="neo-icode-tag">CODE</span> tags and wrap your short
          commands and short data objects in
          <span class="neo-icode-tag">ICODE</span> tags. We were all beginners
          in the beginning. If you have any questions about how to register or
          how to post, please contact us in
          <a
            style="color:indigo;cursor:pointer;"
            href="https://community.unix.com/">Live Chat</a>. Thank you and enjoy this "forever free" technical support community
          for UNIX, Linux and computer information technology in general.
        </div>
      </div>
    </div>
  </article>
</div>

So far, I have created 5 of these history sections.
  • UNIX and Linux
  • Linux and UNIX
  • GNU
  • Red Hat
  • Ubuntu

It would be great for contributors here to write a short section like the GNU example above, for their favorite parts of UNIX and Linux history.

Here is the HTML for the "Ubuntu" history. You don't need to write the HTML, just a few paragraphs and I will do the rest.

Code:
<div class="neo-table-border" style="margin-bottom:20px;">
  <article class="neo-highlight">
    <div class="alt1 npb-message">
      <div class="smallfont">
        <strong>Ubuntu</strong>
      </div>
      <hr class="npb-hr" />

      <div
        id="post_message_$post[postid]"
        class="alt1 neo-message-area npb-pmessage"
      >
        <div>
          <div style="margin-bottom:20px;">
            Ubuntu is a free, open-source Linux distribution based on Debian
            Linux; and Ubuntu
            is named after the African philosophy of ubuntu, which Canonical
            translates as "humanity to others" or "I am what I am because of who
            we all are". Ubuntu is developed by Canonical and the
            community under a "meritocratic" governance model. Canonical
            provides security updates and support for each Ubuntu release,
            starting from the release date and until the release reaches its
            designated end-of-life (EOL) date. Canonical generates revenue
            through the sale of premium services associated with Ubuntu. Ubuntu is generally released to the public in three editions:
            Desktop, Server, and Core (for IoT devices and robots). Ubuntu is a
            popular operating system for cloud computing and supports OpenStack.
            Ubuntu is released every six months with long-term support (LTS)
            releases every two years. 
          </div>
          <div>
            Please enjoy and help our forum community by "showing your work" and
            posting your code, even when your code is not working as expected.
            To help others help you, please wrap your code blocks, sample input,
            sample output, error messages, and other data in
            <span class="neo-icode-tag">CODE</span> tags and wrap your short
            commands and short data objects in
            <span class="neo-icode-tag">ICODE</span> tags. We were all beginners
            in the beginning. If you have any questions about how to register or
            how to post, please contact us in
            <a style="color:indigo;cursor:pointer;" href="https://community.unix.com/">Live Chat</a>. Thank you and enjoy this "forever free" technical support
            community for UNIX, Linux and computer information technology in
            general.
          </div>
        </div>
      </div>
    </div>
  </article>
</div>


My apologies for not doing this a decade ago. Better late than never as they say. We should expand this for Solaris, other UNIX variants, UNIX and Linux people and personalities, and more to honor all those before us who made computing as we know it today possible.

Also, since I've been getting deeper into video media lately, I think I will make some UNIX and Linux history videos based on this project complete with cool special effects and more, honoring those before us.
These 6 Users Gave Thanks to Neo For This Post:
# 2  
Old 05-27-2019
Update:

Added two short bios, Ken Thompson and Dennis Ritchie. More to come as I have time ...


Code:
$rand = mt_rand(0, 7); 

if ($rand == 0) { 
    eval('$history_div_for_users = "' . fetch_template('unix_linux_history') . '";'); 
} elseif ($rand == 1) { 
    eval('$history_div_for_users = "' . fetch_template('linux_unix_history') . '";'); 
} elseif ($rand == 2) { 
    eval('$history_div_for_users = "' . fetch_template('red_hat_history') . '";'); 
} elseif ($rand == 3) { 
    eval('$history_div_for_users = "' . fetch_template('ubuntu_history') . '";'); 
}  elseif ($rand == 4) { 
    eval('$history_div_for_users = "' . fetch_template('gnu_history') . '";'); 
} elseif ($rand == 5) { 
    eval('$history_div_for_users = "' . fetch_template('man_page_history') . '";'); 
} elseif ($rand == 6) { 
    eval('$history_div_for_users = "' . fetch_template('ken_thompson_history') . '";'); 
}elseif ($rand == 7) { 
    eval('$history_div_for_users = "' . fetch_template('dennis_ritchie_history') . '";'); 
}else{ 
    $history_div_for_users = ''; 
}

Please contribute if you have time, otherwise I'll have to have all the "historical" fun myself.
These 5 Users Gave Thanks to Neo For This Post:
# 3  
Old 05-27-2019
Update:
(11 down, maybe 89 more to go...)

Added Linus Torvalds and a rough list of various Unix-like flavors, and simplified the PHP plugin:

Code:
<?php
$rand = mt_rand(0, 10);

$flavs = array(
    'unix_linux_history',
    'linux_unix_history',
    'red_hat_history', 
    'ubuntu_history', 
    'gnu_history', 
    'man_page_history',
    'ken_thompson_history', 
    'dennis_ritchie_history', 
    'linus_torvalds_history', 
    'unix_flavors_history',
    'brian_kernighan_history');

$flav = $flavs["$rand"];
eval('$history_div_for_users = "' . fetch_template($flav) . '";');

Note:

You can easily see these "historical sections" on any tags search result at the bottom of the page; for example linux:

Code:
https://www.unix.com/tags/linux.html

Just reload the page to view the various random "historical" entries.
# 4  
Old 05-28-2019
Update: Added Richard Stallman to this plugin:


Code:
$rand = mt_rand(0, 16);

$flavs = array('unix_linux_history','linux_unix_history','red_hat_history','ubuntu_history','gnu_history','man_page_history',
'ken_thompson_history','dennis_ritchie_history','linus_torvalds_history','unix_flavors_history','brian_kernighan_history',
 'richard_stallman_history','bill_joy_history','grep_history','awk_history','sed_history','solaris_history');

$flav = $flavs["$rand"];
eval('$history_div_for_users = "' . fetch_template($flav) . '";');

We should have done this over decade ago (adding history to compliment the forums), but better late than never.

17 down, 83 more to go......
# 5  
Old 05-30-2019
Update:

Code:
<?php
$rand = mt_rand(0, 17); 

$flavs = array(
    'unix_linux_history',
    'linux_unix_history',
    'red_hat_history',
    'ubuntu_history',
    'gnu_history',
    'man_page_history', 
    'ken_thompson_history',
    'dennis_ritchie_history',
    'linus_torvalds_history',
    'unix_flavors_history',
    'brian_kernighan_history',
    'richard_stallman_history',
    'bill_joy_history',
    'grep_history',
    'awk_history',
    'sed_history',
    'solaris_history',
    'vi_history'); 

$flav = $flavs["$rand"]; 
eval('$history_div_for_users = "' . fetch_template($flav) . '";');

# 6  
Old 05-30-2019
Latest:

Code:
<?php
$nodisp = "<script>document.querySelector('.history-community').style.display='none';document.querySelector('.history-lastp').style.margin='0px';</script>";

$flavs = array(
    'unix_linux_history',
    'linux_unix_history',
    'red_hat_history',
    'ubuntu_history',
    'gnu_history',
    'man_page_history',
    'ken_thompson_history',
    'dennis_ritchie_history',
    'linus_torvalds_history',
    'unix_flavors_history',
    'brian_kernighan_history',
    'richard_stallman_history',
    'bill_joy_history',
    'grep_history',
    'awk_history',
    'sed_history',
    'solaris_history',
    'vi_history',
    'unix_like_history');

$final = sizeof($flavs) - 1;
$rand = mt_rand(0, $final);
$flav = $flavs["$rand"];
eval('$history_div_for_user = "' . fetch_template($flav) . '";');

$rand2 = mt_rand(0, 1);
if ($rand2 == 0) {
    $history_div_for_users = $history_div_for_user . $nodisp;
} else {
    $history_div_for_users = $history_div_for_user;
}

$rand2 = mt_rand(2, $final);
$flav2 = $flavs["$rand2"];
eval('$history_div_for_user2 = "' . fetch_template($flav2) . '";');
$history_div_for_homepage = $history_div_for_user2 . $nodisp;

Now displaying two "history blocks" on the home page; and displaying only one "history block" on prior "thin content" pages.

Nineteen done, eighty one to go....

When I get 100 done, I will group them somehow into a small number or arrays, and will then will change the algorithm a bit.

Also, for "thin content" pages like "single post", "tag search results" or "thin content man-pages", etc I will create a simple pattern matching routine to match the array of "_history" entries with the content, so for example solaris man pages will see a lot more solaris _history articles than linux history articles; and ditto for tags, and single post pages, or discussion pages with little content (no replies, etc).

So after 100 *_history templates are done (hopefully I will get 100 done all by myself), I'll write some logic to match content with the history files and stop relying strictly on a few random number generators.
# 7  
Old 05-30-2019
I just created a "Review Page" for these little History sections (Temporarily Disabled) which has all the current "history" entries, so if anyone is interested, please review and cut-and-paste proposed additions or revisions.

Code:
(Temporary Disabled)

Thanks.

Or you can write your own and I'll format them.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to find out and monitor IO spikes history in Linux?

hello all i have application which according to AWS monitoring is reaching to high spikes of IO at random time . and causing the server to crash and restart . my question is how can i find out what cause the spike and if i can't with the native linux tools what free open source minimon... (6 Replies)
Discussion started by: umen
6 Replies

2. What is on Your Mind?

The Great History of UNIX (1969-1999) | 30 Years of UNIX History | YouTube Video

I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX. The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)
Discussion started by: Neo
8 Replies

3. Shell Programming and Scripting

History file in UNIX

commands to view the history file in unix. I am not sure whether it is bash_history.sh (1 Reply)
Discussion started by: ramkumar15
1 Replies

4. UNIX for Dummies Questions & Answers

How to clear history in Linux

Hello All, Good Morning. I am trying to erase history list in my linux box, but my below command is failing. What is the actual way to clear it? > history clear -bash: history: clear: numeric argument required Also when I run my commands in my command prompt, my team lead can see my... (7 Replies)
Discussion started by: NARESH1302
7 Replies

5. Linux

History of executed command in Linux

Hi All, Is there a way to check command executed by users in Linux for a specific date? I know we can use history, but it doesn't shows yesterday's executed commands. rgds, (3 Replies)
Discussion started by: ronny_nch
3 Replies

6. UNIX and Linux Applications

Unix History

Hi everybody Im Megadrink!!! This is my first thred. Ive recently been introduced to Unix and i was interested in Unix's History. Can anyone give me a breif History On Unix. Just when it was invented/released. Maybe someother cool things about it. Thx for the information in advance!! :D (2 Replies)
Discussion started by: Megadrink
2 Replies

7. Shell Programming and Scripting

stop users from running 'history -c' in Linux

Hi All, My question is how can i stop my users on system from deleting their history. How can i stop the users from running 'history -c'. I have searched thoroughly on the forum but didn't find any satisfactory solution to the problem. kindly help if you any suggestions Thanx in... (3 Replies)
Discussion started by: xander
3 Replies

8. SuSE

Linux SuSE 10 - Disable Unsuccessful Login History.

When we login to any remote connections in SuSE Linux, say for example, telnet , the following line is displayed "Last Login : Date and time is displayed" I would like to disable this. In SuSE 9, I could find the solution . Please suggest me a solution to disable the line displayed for SuSE... (3 Replies)
Discussion started by: Laksmi
3 Replies

9. Solaris

unix command history

is there any way to determine the last command entered on a unix machine??? Thanx (3 Replies)
Discussion started by: mm00123
3 Replies

10. UNIX for Dummies Questions & Answers

Unix History Question: Why are filenames/dirnames case sentsitive in Unix?

I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard
3 Replies
Login or Register to Ask a Question