IRC log of #novawebdev for Friday, 2023-08-18

*** fkoikoi has quit (Read error: Connection reset by peer)10:29
jelknerGood morning tboimah!10:31
scooper!agenda10:35
LittleWebsterWarning: There are no items on the agenda!10:35
scooperGood morning Jeff10:36
jelknerGood morning scooper!10:36
jelknerscooper, how are we coming in learning how to form a worker cooperative in Liberia?10:37
jelknerSECOSOL made *a lot* of progress this Summer.10:37
scooperWe are all making a lot of effort in accomplishing this skill10:38
jelknerand how is it going?10:38
jelknerwhat specifically are you doing?10:38
jelknerwhat have you learned?10:38
jelknerwhat needs to be done?10:38
jelknerwhich resources are you using?10:39
scooperthat is something are can assure you, but only project will prove to you that we are working behind the scene everyday10:39
scooperpython for every body and other resource like10:40
scooperYoutube 10:41
jelkneri'm not sure you're understanding my question, scooper 10:42
jelkneri'm not asking about the web dev skills, on which i know you are working,10:42
jelknerbut about the process of creating a legal business in Liberia10:43
scooperoh is that what you mean10:43
scooperit will be added to the agenda today Jeff10:43
scooperCreating a legal business in liberia will come with a cost, so I think for now we are not ready for that yet because10:44
tboimahGood morning Jeff10:44
scooperwe are not generating our own revenue yet10:44
jelkneri understand10:44
jelknerand that will take a while yet10:45
jelknerbut maybe you didn't understand when i mentioned earlier10:45
jelkneri am hoping during the next few months to explore making the $800 i am sending each month10:45
jelknerfrom me to you10:45
scooperGoing about seeking lawyer and registering a business is not what we need right now Jeff, but we the relevant skill10:45
jelknera grant from SECOSOL to Jetro Web Development10:46
jelkneri don't know legally how to do that10:46
jelknerbut we need to investigate10:46
jelkneri'll work with fkoikoi to talk to the Supe10:47
jelknerspeaking of that, is the Supe back yet?10:48
scooper+1 but since he return have not set my eyes on him yet. due to this basic schedule for other activities10:49
scooper* schedule with other activities10:50
scooperJeff now Shmon is not around for now could please help us continue to advance our python study??10:51
jelknerGood morning fkoikoi!10:51
fkoikoiGood Morning Jeff10:51
scooperby giving us question or we post question to you on some area of study that we done understand or grab fully????10:52
jelknerno, my dear friend, i can't do that10:52
jelkneri talked about that last Saturday10:52
jelkneryou are asking me to "spoon feed" you10:52
jelknerby now, you need to move beyond that if we are going to be successful10:53
jelknerin fact, you should be doing that for each other10:53
jelknerwhen i come to Monrovia next Summer, it will be to discuss how to expand our project10:53
jelknerby having you all teach the next next group10:54
jelknerso you need to "learn how to learn" in IT10:54
jelknerthere are *so many* resources10:54
scooperI m doing it that way Jeff "the IT way10:54
jelknerexcellent!10:54
jelknerwhen i start class on August 28th10:54
jelkneryou all should follow along with the tasks i give my students here10:55
scooperOK10:55
jelknerthat way, you can benefit from what i will already be doing10:55
scooperI m also part of some python community like "Real Python" and a resource called "Code war"10:56
jelknerthat's great10:56
jelknerbtw. i've seen Sahnun a lot over the past week10:57
scooperNow do you have any thing on mind that you want freena add to the Agenda????10:57
jelknerhe is one of my son's closest friends10:57
jelknerand my son Louis was here from California for the past week celebrating his 30th birthday10:58
jelknerso i got to talk to Sahnun10:58
jelkneri think we are getting together for breakfast tomorrow10:59
jelknerand that he will be at the meeting10:59
jelknerGood morning fkoikoi!10:59
fkoikoiGood Morning Jeff10:59
jelknerlet's jump right in11:00
jelknerthis is our last stand up meeting before we meet tomorrow11:00
jelknerscooper was asking me about the agenda11:00
jelkneri would like you to develop the agenda's for saturday11:00
jelkneri'll be meeting with you for 10 minutes each weekday11:00
jelknerduring which i'll talk to you about the things i am hoping we can accomplish11:01
jelknerthat should give you some ideas about what to put in the agenda11:01
jelknerwe have several long term goals on which we have been working:11:01
jelkner1. learn the "web development trifecta" (HTML, CSS, and JavaScript)11:01
jelkner2. learn basic Python programming in preparation to learn Django11:02
jelkner3. learn enough Linux system administration to maintain our own computers11:02
jelknernow, fkoikoi, i am hoping i can work with you to add another goal11:02
fkoikoisure Jeff11:03
jelkner4. learn to set up a legally constituted worker cooperative in Liberia called "Jetro Web Development"11:03
jelknerfkoikoi, we made *a lot* of progress this past Summer in forming SECOSOL.11:04
jelknerSECOSOL will be a non-profit membership organization whose mission is to develop worker cooperatives11:04
jelknerthe "members" of SECOSOL will be cooperatives11:05
jelknerand SECOSOL will provide support for the members such as bookkeeping, cooperative training, etc.11:05
jelkneri am hoping SECOSOL can soon have four members:11:06
jelknerMujeres Manos a la Obra Cleaning, NOVA Web Development, Magic Broom, and Jetro Web Development11:06
jelkneri am also hoping we can make the $800 that Jetro is using for it's development "official"11:07
jelknerwhich means it will be a legally recognized grant from SECOSOL to Jetro Web Development11:07
jelkneri don't know how to do all this11:07
jelknerbut now is the time to get serious about investigating it11:08
jelknerACTION done11:08
jelknerok, my time is up11:09
jelkneri will look tomorrow morning and see if there is an agenda11:09
jelknerif there is, i'll see you at 1 pm your time11:09
fkoikoi!add Update from each group 11:09
LittleWebsterSuccess: "Update from each group" has been added to the agenda.11:09
fkoikoi!add Report from UoPeople 11:09
LittleWebsterSuccess: "Report from UoPeople" has been added to the agenda.11:09
jelknerok11:09
jelknergreat11:09
fkoikoi!add forming a Business and How to be a member of ICA 11:09
LittleWebsterSuccess: "forming a Business and How to be a member of ICA" has been added to the agenda.11:09
jelknersee you tomorrow11:09
jelknerexcellent!11:10
fkoikoi!agenda11:10
LittleWebsterThis is the agenda for the next meeting:11:10
LittleWebsterUpdate from each group (added by fkoikoi)11:10
LittleWebsterReport from UoPeople (added by fkoikoi)11:10
LittleWebsterforming a Business and How to be a member of ICA (added by fkoikoi)11:10
jelknerACTION signs off11:10
*** jelkner has quit (Quit: Leaving)11:10
mulbahGood morning to all11:24
*** fkoikoi has quit (Ping timeout: 480 seconds)11:32
*** fkoikoi_ has quit (Quit: Leaving)11:36
*** mulbah has quit (Ping timeout: 480 seconds)11:37
*** mulbah has quit (Read error: Connection reset by peer)12:24
*** scooper has quit (Quit: Leaving)12:48
tboimahGood morning Mr. cole12:55
mulbahGood morning Mr. Cole12:56
ubuntouristHi,12:59
ubuntouristI did not sleep well. So, I'm feeling a bit foggy-brained this morning.12:59
ubuntouristI may decide to quit early today, but we will see how it goes.13:00
mulbahokay13:01
ubuntouristmulbah, you had a question about "chmod". Let's get right to that while I'm still awake. 😉13:01
mulbahI don't have question again i already understand what i wanted to ask13:04
ubuntouristACTION is waiting for the question...13:04
ubuntouristOh. OK. Never mind. 😉13:04
mulbahsure13:04
ubuntouristLet me open your book and remind myself of some of the topics.13:05
mulbahMr. Cole I create a python program that convert a binary to a decimal13:05
mulbahso I think it will be helpful to us today13:06
ubuntouristmulbah, cool! Using the formatting tricks?13:06
ubuntourist(I mean, the f-string techniques?)13:06
mulbahno I try different method13:07
mulbahshould I send you it13:07
ubuntouristSure. Send it in e-mail as an attachment.13:08
ubuntouristOK. I've got the book opened. It looks like we are up to chapter 10? 13:09
ubuntourist(I'm not reading it, I'm skimming. And we've talked about expansions and permissions. Keyboard tricks you can learn on your own.13:10
ubuntourist(The keyboard tricks are all about using TAB, Ctrl-R, and other special keystrokes to speed up your typing, and it's really something that you just need to memorize and practice until it becomes second nature. Like learning to play a musical instrument.)13:11
mulbahokay13:12
mulbahI just send you it13:12
ubuntouristmulbah, OK, I'll look later.13:13
ubuntouristI'm skimming chapter 10 now and it doesn't look too exciting or difficult. 13:13
ubuntouristSummarizing A LOT: Right now, your computer has several different programs running simultaneously.13:14
ubuntouristIt is the job of your operating system -- Linux, Windows, Mac OS X, or whatever operating system you're using, to13:15
ubuntouristcoordinate and schedule all of these simultaneous activities so that none of them interfere with each other..13:15
ubuntouristAll operating systems do this task.13:15
ubuntouristEach program that is running is called a "process". Your computer is constantly processing information.13:16
*** tboimah has quit (Ping timeout: 480 seconds)13:17
ubuntouristSome processes run in the background and you will never be aware of them unless you dig deeper and ask to see13:17
ubuntouristwhat is happening "under the hood". In fact that's not a bad idiom: Under the hood. When people think about driving a car,13:18
ubuntouristmost do not think about the spark plugs, the pistons, the cam shaft, etc. How do all these parts coordinate? Each does their own task,13:19
ubuntouristbut they are timed so that the gears don't grind together and destroy the vehicle. 13:20
ubuntouristThe only way you can get an idea is to "look under the hood" at the engine, radiator, etc.13:21
ubuntouristSo, chapter 10 talks about different ways to see all the moving parts -- all the processes that are running, 13:21
ubuntouristwhich ones are "running hotter"  -- using up more computing power or taking up more of the time or memory, and how to13:22
ubuntouristinterupt or get the attention of a process that is busy doing something.13:23
ubuntouristFor example, right now, there are programs running that are keeping track of how much disk space is being used.13:23
mulbahshould I tmate13:24
ubuntouristThere are processes that record the "health" of the computer every few secconds, making sure that the network is up, the temerature is not too hot, etc.13:24
ubuntouristmulbah, OK...13:24
mulbahssh pAQRxr4gg9DnPWwtVSpqyHLmd@lon1.tmate.io13:25
ubuntouristSome processes are keeping track of13:25
ubuntouristkeeping track of how many windows you have open on your screen and where they are positioned.13:26
ubuntouristtype13:26
ubuntouristps13:26
ubuntouristps is for process status.13:27
tboimah_should also share my screen so that you can also what i am typing?13:27
tboimah_I*13:27
ubuntouristtboimah_, sure.13:27
tboimah_ssh XpAgg8mehgPGEAxDdNcKdZwKE@lon1.tmate.io13:27
ubuntouristps in its simplest form  shows you only YOUR processes: The ones being run by the users mulbah07 and sysadmin13:28
ubuntouristYou are both running the bash shell, and you both ran the ps command. So, it is showing you that13:29
ubuntouristyou're running those two programs.13:29
ubuntouristActually, I should be more careful here. It's showing the processes running for the current terminal that is open. 13:30
ubuntouristIt is not showing you ALL the processes that are running.13:30
mulbahso what the "PID", "TTY" TIME and "CMD" means?13:30
ubuntouristEvery process has a "Process ID" - PID. It's possible that sometimes you will be running the same program more than once13:31
ubuntouristsimultaneously. The program that is running will have the same name, but since it is running twice there are two processes,13:32
ubuntouristand each gets a unique Process ID (PID).13:32
ubuntouristThe TTY is kind of an anachronism -- an old word for a new way of doing things. There is a lot of that in computer tech:13:33
ubuntouristWe hold on to old words that don't mean as much to new users. TTY is for "Teletype"13:33
ubuntouristBack when dinosaurs still roamed the earth 😉 programmers used old "telephone-connected-typewriters" to talk to computers.13:35
ubuntouristTele-typewriters = Teletypes = TTYs13:35
ubuntouristLater, TTYs were simply referred to as "terminals". They were still separate from the computer, but considered to be13:36
ubuntouristat the "end" of the "telephone" and so they were where input started, and output ended. End-points or terminals.13:37
ubuntouristNow, your "terminal" isn't a separate device that connects to the computer, but the old names stay around.13:38
ubuntouristYou can start more than one terminal. Each terminal gets ID.13:39
ubuntouristSince these are not real physical terminals, they are fake or "pseudo" devices. Pseudo-TTYs. 13:40
ubuntouristI forget what "pts" stands for but I think the "p" and "t" are for "pseudo" and "tty" or "terminal".13:41
ubuntouristpts/0 is the first terminal window that you open. If you open another, you should see an TTY id of pts/1. and so on.13:42
ubuntouristTIME is a little harder. to explain. It is how long the computer has been running the specific process uninterrupted.13:43
ubuntouristbut it is very misleading. You will probably need to ask someone other than me for more information about TIME.13:43
mulbahokay13:44
ubuntouristand the final part, CMD is the Command that starts the program that is being run. So, "bash" and "ps".13:44
ubuntouristSometimes you want a LOT more information.13:44
ubuntouristI can no longer remember all the parts but when I really want to see EVERYTHING 13:45
ubuntouristI have memorized the command with a bunch of options:13:45
ubuntouristTry this:13:46
ubuntouristps awxwww | most13:46
ubuntouristNow scroll around and "explore" what you see on the screen.13:46
ubuntouristScroll left and right on the long lines.13:47
ubuntourist(Some of the lines you were seeing filled up the full width of the screen and went off the right side.)13:48
ubuntouristNow you're seeing programs being run in all TTYs by all "users" -- most of them are those progams that act like real users.13:49
ubuntouristWe talked a little bit about those a few weeks ago.13:50
ubuntouristAnd "T" to go back to the "Top" of the list13:50
ubuntouristmulbah, move left again.13:50
ubuntouristOther way.13:50
ubuntouristLeft. Good.13:50
ubuntouristSo, we see PID TTY TIME and COMMAND (instead of CMD) and a new one: STAT for Status13:51
ubuntouristYou can study this on your own, because I don't remember enough details. But the STAT can show you when a13:52
ubuntouristprocess is "stuck" or broken.13:52
ubuntouristSometimes, a process will be interrupted then, when it is restarted, it is missing some critical information,13:53
ubuntouristand it "hangs" or "freezes" trying to accomplish some task. Studying the STAT can tell you if a process is waiting for13:54
ubuntouristinformation, actively working at doing some task, or is in a hung / frozen state.13:55
ubuntouristOh, before I continue: The TTY for most things running in the background is "?" because the process was NOT started from13:55
ubuntourista terminal window, and so it has not TTY ID.13:56
ubuntouristI forget what all the status codes are. So I don't remember what "S" or "Ss" or I<" or any of the other codes mean.13:56
ubuntouristThe book might explain some of that.13:57
mulbahAlright I will make research on it13:57
ubuntourist"man ps" at the command line will also have a lot of info, but it will be tough reading. Still, you should probably skim the manual page13:58
ubuntouristwith the "man ps" command.13:58
tboimah_okay13:58
ubuntouristUsually, for me, the important parts of wat you see on the screen with "ps auxwww | most" are the13:58
ubuntouristPID and the CMD or COMMAND.13:59
tboimah_In the command we just type what the auxwww do 13:59
ubuntouristYou can use the PID to control the behavior of some processes that you do not currently have control over.14:00
ubuntouristtboimah_, Honestly, I forget. Each letter does something different, and combined they give you lots off information.14:00
ubuntouristtboimah_, I remember parts of it though.14:01
tboimah_okay 14:01
ubuntouristEach "w" says "Make the output Wider" -- include more information about the CMD / COMMAND part.14:01
ubuntouristThree w's means "REALLY wide" Show me EVERYTHING about the command.14:02
ubuntouristNear the top of the "man ps" page, it shows examples, and one of the early examples is "show everything" and it says to use "aux"14:03
ubuntourist(Well it says use "axu" but the ordeer of the letters doesn't matter.)14:04
ubuntouristScoll down in the man page.14:04
ubuntouristOh, right. one more IMPORTANT detail:14:05
ubuntouristA bit of history that can bite you in the ass if you are not aware of it:14:05
tboimah_yeah14:05
ubuntouristLinux is a "descendent" of UNIX. But, it is not the only one. 14:06
ubuntouristUNIX was created by Bell Labs telephone company. The University of California at Berkeley asked Bell Labs14:07
ubuntouristif they coud get a copy of UNIX, and Bell Labs said "Sure! But, if you modify it, you cannot keep calling it UNIX. We make UNIX. You don't."14:08
ubuntouristSo, Bell Labs official UNIX was know as UNIX System 5 or SYSV UNIX. Berkeley's UNIX became known as the Berkeley Standard Distribution (BSD).14:09
ubuntouristFast-forward in time to the early 90s. Linua Torvalds, a student at the University of Helsinki is studying SYSV UNIX and says I could recreate that for the PC14:10
ubuntouristand he creates Linux. IMPORTANT: He is basing Linux on SYSV UNIX.14:10
ubuntouristMeanwhile OTHER people are recreating UNIX for the PC based on the Berkeley Standard Distribution (BSD).14:11
ubuntouristSome of the competition for Linux are FreeBSD, NetBSD, OpenBSD, BSDi, and others.14:12
ubuntouristThis is important because commands like "ps" do the same thing on both SYSV-based and BSD-based systems but14:12
ubuntouristuse different options to mean the same things. This makes commands like "ps" very confusing for people14:13
ubuntouristwho learned on a BSD-based system and then switch to a SYSV-based system.14:13
ubuntouristThe "man ps" shows BOTH the BSD way and SYSV way to use the command.14:14
ubuntouristI just looked at the man page again and I see that my way "auxwww" is really the BSD way. I should probably try to forget14:15
ubuntouristthat and use the SYSV way, because Linux is more like SYSV.14:15
ubuntourist(Done. Ask questions, or whatever.)14:15
ubuntouristACTION talks too much. 😉14:16
tboimah_The history was Good and helpful at least i learn some history about UNIX14:17
tboimah_and the man page also give more detail about the ps command14:17
ubuntouristWell the important part for right now is that the "ps" command can be very confusing, because the way you use it depends on14:18
ubuntouristwhich set of options you are using BSD options or SYSV options.14:18
ubuntourist(I don't know why or where I learned the BSD options. But, I should really try to forget them and switch to SYSV options.)14:19
ubuntouristOld habits die hard.14:19
tboimah_hahaha14:19
ubuntouristI think I'm going to skip the rest of chapter 10. You should both read it and come back with questions.14:20
tboimah_okay14:20
ubuntourist(Later we will talk about the "kill" command for "killing" a process. Chapter 10 will talk about that. I use "ps auxwww" and "kill" and "killall" 14:21
ubuntouristwhen something has gone wrong with a process, bit it is more out of habit, and I will need to review the specifics.)14:21
ubuntouristSo, a much more simple thing. Let's go back to environment variables for a second.14:22
ubuntouristwhen you tried "man ps" it showed the information one screen at a time... almost the way that "most" does.14:23
ubuntouristbut "man" used its own pager. 14:23
ubuntouristTry "man ps" again but don't study the infromation. Look at the bottom of the screen that is telling you how to continue scrolling.14:24
ubuntouristSo it says "Manual page ps(1)  line 1172/1192 (END) (press h for help, or q to quit)"14:25
ubuntouristAlso, everything you see is black and white, although some white is brighter than other white.14:26
ubuntouristI still like the appearance of "most" better. So let's fix that.14:26
ubuntouristtype 14:26
ubuntouristexport PAGER=most14:27
ubuntouristNow try the "man ps" again.14:27
ubuntouristI find that MUCH prettier! Now we can see that "ps" is a command and that "options" are something diferent. The color is very helpful to me.14:28
ubuntouristThe bottom of the screen is also more useful.  The blue line separates the manual information from 14:29
ubuntouriststatus (what line I am on) and instructions "Q" to quit and "H" for help.14:29
ubuntouristUnfortunately "most" cannot really understand that it is looking at a manual page and istead just says that it is viewing something from the14:30
ubuntourist"standard input device" -- **stdin** instead of saying "ps manual page". But the benefit of the color, and other features14:31
ubuntouristmake up for that deficiency.14:31
ubuntouristThe problem is that your system will "forget" that you want "most" as your pager when you close the terminal.14:32
ubuntouristLet's make it more permanent:14:32
ubuntouristnano .profile14:32
ubuntouristScroll down to the bottom and add the following two lines:14:33
ubuntourist# 2023.08.18 mulbah - Set default pager to most14:34
ubuntouristexport PAGER=most14:34
ubuntourist^X 14:34
ubuntouristto save the file. 14:34
ubuntouristtboimah_, you use "# 2023.08.18 tboimah" of course14:35
ubuntouristRight.14:35
tboimah_okay14:35
ubuntouristmulbah, just enter14:36
mulbahdone14:36
ubuntouristNow, the next time you open a terminal on that computer, it will remember the environment varaible you've set.14:36
ubuntouristAnd you added a comment that said WHO set the variable and WHEN it was set.14:37
ubuntouristSo, if you do this on a classroom computer and someone else becomes "sysadmin" they will be able to look at the .profile and say,14:38
ubuntouristHmmm... Why does "man " use color on this computer.... Ah. I see: tboimah_ changed the PAGER variable way back in 2023...14:39
ubuntouristI think I am going to quit early today. I ddn't have a good lesson plan and we are 20 minutes away from finishing.14:40
ubuntouristI don't think I can start anything new in 20 minutes.14:40
mulbahalright14:40
ubuntouristIf you  have questions, I can try to answer them now, though.14:40
mulbahThanks for the teaching14:40
tboimah_okay thanks for today, and have a nice day14:41
ubuntouristBye! Look through chapter 10 but don't worry too much about it. If you see something you're curious about, we can talk about that on monday.14:42
tboimah_We will make sure and read chapter 10 okay the book to get more understanding14:42
ubuntouristtboimah_, then you can explain it to me. ha-ha.14:42
tboimah_hahaha okay14:43
*** ubuntourist has quit (Quit: Leaving)14:43
*** tboimah_ has quit (Quit: Leaving)14:43
*** mulbah has quit (Ping timeout: 480 seconds)14:58
*** shmohamud has quit (Remote host closed the connection)23:56

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!