IRC log of #novawebdev for Monday, 2023-08-28

*** mulbah has quit (Remote host closed the connection)05:14
*** mulbah has quit (Ping timeout: 480 seconds)07:05
jelknerGood morning fkoikoi, scooper, dcammue, and tboimah!11:00
jelknerI *just* made it on time.11:00
dcammueGood morning Jeff11:00
dcammueyeah11:00
fkoikoiGood morning Jeff11:01
jelknerThe bus didn't show, but I always leave early so the next one will still get me here.11:01
dcammuesure11:01
jelknerToday is the first day of school for me, so I only have 10 minutes11:01
jelknerI read the logs11:01
jelknerThanks for chairing the meeting fkoikoi 11:01
fkoikoiokay Jeff11:02
jelknerI won't be able to make next Saturday either11:02
fkoikoibut why Jeff?11:02
tboimahGood morning Jefff11:02
jelknerits a long weekend (4 days off), so my wife and I are going to New Jersey on Saturday11:02
jelkneri'll be here each weekday morning at 11 am your time.11:02
scooperGood morning Jeff11:02
jelknerfkoikoi, here's more opportunity for you and scooper to take over running Saturday meetings11:03
scooperok I m following the conversation 11:03
jelkneri only have one thing to discuss today11:03
jelkneri cc'd you on two emails i sent to Kate from USFWC.11:04
jelknerdid you see them?11:04
scooperI saw you email Jeff thanks for the progress being made11:04
fkoikoiI saw it Jeff11:04
scooperYes I saw the two mails you send me this morning11:04
jelknergreat11:04
jelknerone more thing11:05
jelknerNOVA Web Development has a new business manager11:05
jelknerKei Larios11:05
jelknerNot yet, but in a few months, after she gets accustomed to irc and Jetro Web gets a little further along11:06
jelknershe will start showing up at Saturday meetings11:06
jelknerso we can begin collaborating more intentionally11:06
jelknerACTION done11:06
jelknerwe've got 3 minutes11:06
jelkneranyone else have anything?11:06
scooperThanks for the update11:07
fkoikoithanks for the updates jeff11:07
jelknerplease keep moving forward with skills development!11:07
scooper can you please talk a bit about your incoming paython classes at Arlington11:07
jelknerschool starts today11:07
scooperwhich you want us to be part of11:07
jelknerbut class starts tomorrow11:07
jelkneryou should follow along with my classes11:07
scooper+111:08
jelknersvaye and dcammue should follow: https://ict.gctaa.net/sections/webdev/11:08
dcammueok11:08
jelkneris janet still participating?11:08
fkoikoihow are we going to do that jeff11:08
scooper+111:08
fkoikoican you please paste the link here11:08
jelknerok, so scooper and janet should follow: https://ict.gctaa.net/sections/csc221/11:09
jelknerand fkoikoi 11:09
jelknermulbah and tboimah will keep working with Kevin11:09
jelknerok, i have to go11:09
scooperThanks 11:09
jelknersee you again tomorrow at the same time11:10
fkoikoialright11:10
jelknerACTION signs off11:10
scoopersee you tomorrow at about this time11:10
*** jelkner has quit (Quit: Leaving)11:10
*** tboimah has quit (Quit: Leaving)11:27
*** scooper has quit (Ping timeout: 480 seconds)12:11
*** dcammue has quit (Ping timeout: 480 seconds)12:11
*** tboimah has quit (Ping timeout: 480 seconds)12:11
*** fkoikoi has quit (Ping timeout: 480 seconds)12:11
mulbahGood morning Mr. Cole13:01
tboimahGood morning ubuntourist13:01
ubuntouristHi, With you in just a few seconds...13:01
mulbahokay13:02
ubuntouristACTION is running a scriptreplay that I will send to you at the end of today...13:02
tboimahokay13:03
ubuntouristACTION is back (letting the replay run in the background. It's too slow.)13:03
ubuntouristOK. A little preview of the typescript.13:04
ubuntouristI decided it was time to take a real, practical example of something that I need to do for myself,13:04
ubuntouristand show you how I build up an idea into a Bash script program: 13:05
ubuntouristI've mentioned before that I am taking sheet music from paper, and entering it in a format13:06
ubuntouristthat can be shown on the web. Here's an example:13:06
ubuntouristhttps://ubuntourist.codeberg.page/DMC_Songbook/cruiscin_lan.html13:06
ubuntouristThat web page shows the sheet music, and also plays the melody with a button at the top.13:07
ubuntouristThe problem: I have over 100 songs that I have converted, but now I realize that I want to change the font13:08
ubuntouristfor many of them -- but not all of them.13:08
ubuntouristI need to find (a) which files are ones that I created, and (b) which ones contain the lines with the missing font information.13:09
ubuntouristI need to take that list, save it into a file and then tell the computer to read each line from that file, and open an editor with the filename found on13:10
ubuntouristthat line.13:10
ubuntouristIt's a complex process, and we will probably spend a few weeks talking about it, but you'll be able to watch the13:11
ubuntouristscript movie before that and it may help the discussion.13:11
ubuntouristACTION is done with that for now.13:11
tboimahokay so how will we get the script movie from you13:13
ubuntouristI will send the files in e-mail, along with some instructions.13:13
ubuntourist(I thought I would finish before meeeting with you today but I was still editing when the time arrived.)13:14
tboimahokay13:14
ubuntouristA few short topics for today "tar" and "diff" 13:15
ubuntouristCrank up the tmate!13:15
tboimahssh LGvYrXbM6WrketevYedFFysNh@lon1.tmate.io13:15
mulbahssh uGneaW4NzZARMx5Qp5bvfHL2q@lon1.tmate.io13:16
ubuntouristFirst "tar" -- tar is a program with a name based on a concept that doesn't make sense any longer:13:18
ubuntouristIt means "Tape ARchive" from the days when computers had all their files on reel-to-reel magnetic tape.... But no one13:19
ubuntouristwants to change the old command names except for me. ;-)13:19
ubuntouristWhen I send you the typescript movie and the instructions, I will be sending them as a "tarball" -- a compressed tape archive file.13:20
ubuntouristA tarball is VERY, VERY much like a ZIP file. It's the Unix / Linux way to do ZIP files.13:21
ubuntouristFirst, lets create one13:21
ubuntouristls -R .config13:22
ubuntourist(Capital "R" and there's a period before config.)13:23
ubuntouristtboimah, good.13:23
tboimahokay13:24
ubuntouristThat shows you a list of all your configuration files for you personally. They are created either whn your account was13:24
ubuntouristcreated or when you ran a program for the first time. For example, when you started Hexchat on the computer months ago, it created a bunch13:25
ubuntouristof configuration files for saving any personal preferences or settings that you might use to customize the behaviour of Hexchat.13:26
ubuntouristSuppose you want to keep all of those and maybe put them on a USB stick or mail them to someone?13:27
ubuntouristThe command is "tar". tar has a few different ways for you to create a tarball. Most of the variation is in deciding how you want to compress the file.13:28
mulbahHello tmickelson long time13:28
tmickelsonhello mulbah 13:29
ubuntouristThere are different mathematical ways to compress data. Some are very slow but do a fantastic job of compressing a file to a very small size.13:30
ubuntouristOthers are quicker but not as good at compression. Some compress quickly but decompress slowly, or vice versa.13:30
ubuntouristSo, creating a tarball:13:31
ubuntouristType:13:31
ubuntouristtar czvf configuration.tar..gz .config13:31
ubuntouristtar cjvf configuration.tar.bz .config13:32
ubuntourist(oops. the first line should be "tar.gz" not "tar..gz")13:33
ubuntouristls configuration*13:33
tboimahdone13:34
ubuntourist(You should have typed two slightly different tar commands.)13:34
*** tboimah has quit (Remote host closed the connection)13:34
ubuntouristand then:13:34
ubuntouristls -l configuration*13:34
ubuntouristACTION waits13:35
ubuntouristIf you're keeping up, you should see two different files, with different file sizes.13:37
ubuntouristBoth contain the same data, but they were compressed using different compression algorithms.13:38
ubuntouristThe two schemes are the older "gzip" compression format, and a newer "bzip2" compression.13:38
ubuntouristWe'll take the command apart now.13:39
ubuntouristtar ...options... output-file ... list of files to be added to the archive13:39
ubuntouristSo "configuration.tar.gz" and "configuration.tar.bz" are the output files -- the tarballs -- that we created.13:40
ubuntouristThe list of files to add, in this case, was a directory name ".config". The .config directory and all files and subdirectories of .config13:41
ubuntouristwere added to each tarball.13:41
ubuntouristThe options: "c" for "create a tarball", "z" for gzip, the earliest zip compression OR "b" for "bzip2" compression,13:42
ubuntourist"v" for "verbose" -- a LOT of programs use "v" for verbose. It means: When you are running this command, do not be quiet. Show me what you are doing.13:43
ubuntouristAlways look for a "v" or "-v" or "--verbose" option, especially when you are trying to learn. VERY useful. 13:44
ubuntouristand finally "f". "f" for "filename of the output file (i.e. the tarball)"13:44
ubuntouristOK so far?13:44
ubuntouristACTION waits for mulbah and tboimah to confirm understanding before continuing...13:45
tboimahI am following13:46
*** tmickelson has quit (Quit: leaving)13:47
mulbahI understood13:47
ubuntouristOK.13:47
ubuntouristCreate a directory and move both configuration* files to the new directory. (You choose the directory name. It doesn't matter.)13:48
ubuntouristACTION swiitches to the terminal window and waits for the task to be completed...13:49
ubuntourist(You can use wildcards to speed up the mv )13:51
tboimahdone13:51
mulbahdone13:51
ubuntouristOK.13:51
ubuntouristWe moved the files because now, we're going to unpack them like "unzip" but we don't want to interfere with the ~/.config directory that is already there.13:52
ubuntouristSo, we're unpacking the files somewhere else.13:53
mulbahokay13:53
ubuntouristFirst we do a "test" to see if the files are okay. If someone else sends you a tarball, it might be damaged, or it may 13:53
ubuntouristcontain files that you don't want.13:53
ubuntouristFor example, maybe you have created a Python program with some common name. And I have created a Python program with the13:54
ubuntouristexact same name, but with a completely different function. If my Python program was in a tarball that I sent you, and you13:55
ubuntouristunpacked it, my Python program would replace your program, destroying all your work.13:55
ubuntouristBy running a test, you can see the names of the files in the tarball before unpacking, and decide if you want to continue.13:56
ubuntouristOh, first. Notice that the file size of the .bz file is smaller: It is more efficient at compressing. So, if you need to save space, or you want to transfer13:57
ubuntouristfiles more quickly, then the "cjvf"  is the better choice. And I mis-spoke earlier: I said "b" for "bzip2". It's not "b". It's "j" (I don't know why the developer chose "j"13:59
ubuntouristprobably because "b" does something else.)13:59
ubuntouristcd to your new directory if you are not already there, and then type:14:00
ubuntourist(And use your tab key to complete...)14:00
ubuntouristtar tzvf conf<TAB>  | most                -- notice what it does before you  hit enter14:01
ubuntouristI mean USE THE TAB KEY. Not "<TAB>"14:02
tboimahdone14:04
ubuntouristHold a sec...14:05
mulbahI am done typing it14:07
ubuntouristSo, tboimah you can see the list of files that are in the tarball, with all the details.14:07
mulbahshould I hit enter14:07
ubuntouristmulbah, go ahead and hit enter14:07
tboimahyeah14:08
ubuntouristmulbah, q to quit and see if you can tell what went wrong.14:08
ubuntouristmulbah, I'm going to try the tab in your terminal, just to make sure it is not some weird setup.14:10
ubuntouristtboimah, hold a second.14:10
tboimahokay14:10
ubuntouristWell, we have a problem for a systems administrator: For some reason, mulbah has tab completion turned off, which will make work painfully slow.14:12
ubuntouristThe question is "why?" or "how?" did it get turned off?14:12
ubuntouristWe'll tackle that at a future date. But first, mulbah do you see why your "tar" command did not work?14:13
ubuntourist(The error messages give you the answer.)14:13
ubuntouristACTION waits for mulbah to catch up and answer 14:14
mulbah07_It's saying that the is no file or directory and telling me that there is two child files14:16
ubuntouristmulbah07_, the important part is the "no such file or directory". Do you understand why it said that?14:17
ubuntourist(The whole problem is still on the screen so DON'T clear the screen. Read the whole top of the screen carefully.)14:18
mulbah07_I think because we didn't end the file14:18
mulbah07_name14:19
*** fkoikoi has quit (Ping timeout: 480 seconds)14:19
*** mulbah has quit (Ping timeout: 480 seconds)14:19
*** sysadmin_ has quit (Ping timeout: 480 seconds)14:19
ubuntouristRight. And because you couldn't tab complete, you will need to type the full file name of the CORRECT file. There are two choices and only one will work.14:19
*** tboimah has quit (Ping timeout: 480 seconds)14:19
ubuntourist(Look at the "tzvf" to figurre out which file is corect.)14:20
ubuntouristACTION waits for thoughts from mulbah 14:22
mulbahI this it's the configuration.tar.bz file14:23
mulbah"think"14:23
ubuntouristmulbah, why?14:23
ubuntouristBy the way, one thing that may help you with your speed while your TAB is broken:14:24
mulbahI will try to fix that14:25
ubuntouristYou can highlight text with the mouse and then press Ctrl-Shift-C  to copy the highlighted text, and then Ctrl-Shift-V to paste it.14:25
ubuntouristThat will save you a lot of typing.14:26
ubuntouristSo, Try highlighting (selecting) one of the file names with the mouse, Hold the left mouse button down while dragging the mouse over the file name. When the name is fully highlighted, press Ctrl-Shift-C.14:28
ubuntouristThen type "tar tzvf " and then Ctrl-Shift-V14:28
ubuntourist(22 minutes left. This is why speed is important.)14:29
ubuntouristYou highlighted the wrong text.14:30
ubuntouristNow try again with the file names that are showing. Pick one. and do the Ctrl-Shift-C and Ctrl-Shift-V as suggested above.14:31
mulbahdone14:32
ubuntouristThat did the paste. Ctrl-A to go to the beginning of the line and type "tar tzvf "14:32
ubuntouristkeep going...14:33
ubuntouristhello?  type the rest of it... Is the tmate connection dropping?14:34
mulbahshould I keep pressing Ctrl-A14:35
ubuntouristNo: Ctrl-A to go to the beginning of the line and type "tar tzvf "     --- You re at the beginning of the line, so finish the instructions.14:36
ubuntouristAnd enter14:36
mulbahshould I try the other one14:37
ubuntouristOK. So, it gave you another error. What do you tthink it is trying to tell you this time?14:37
ubuntouristOK. And rememvber the Ctrl-Shift-C and Ctrl-Shift-V to save your typing time.14:38
mulbahIt's telling me that the file is not in gzip format14:38
mulbahokay Mr. Cole14:39
mulbahbut 14:39
ubuntouristmulbah, yes?14:39
mulbahI'm familiar whit this tow stuff Ctrl-Shift-C and Ctrl-Shift-V14:40
mulbahI have been using it before in the terminal14:40
mulbahto copy and past14:41
ubuntouristThen why be so slow?     c.....o.....n.....f.....i.....g..... is painful to watch. This is why those keyboard shortcuts are useful.14:42
mulbahokay I will be using it often14:42
ubuntouristPlease! Thanks!14:43
ubuntourist(Compared to Jeff and to my wife, I am a very slow typist. But I make up for it by knowing a LOT of shortcut keys. The book chapter on keyboard shortcuts is really useful.)14:44
ubuntouristThe "t" in the "tzvf" is for "test". If you like what you see -- and in this case, you should like what you see ;-)14:45
ubuntouristyou can extract with "x" instead of "t".14:45
ubuntourist(That's for tboimah.)14:46
ubuntouristmulbah, you should continue with what you're doing first, to catch up.14:46
tboimahokay14:46
mulbahokay Mr. Cole14:47
ubuntouristOh, one thing: Because the directory ".config" starts with a period, when you type "ls" after extracting, it will not show up. you will need "ls -A" or "ls -a"14:48
mulbahsure14:49
ubuntouristmulbah, waiting for you to finish in the terminal...14:54
mulbahshould i exit in the terminal14:55
ubuntouristmulbah, no. I want you to make the tar xzvf work.14:55
ubuntouristmulbah, and not give you an error.14:56
ubuntouristmulbah, use your up arrow and correct it.14:58
ubuntouristtboimah, good. 14:59
tboimahwhat next14:59
ubuntouristThat extracted all the files from the tarball.14:59
ubuntouristNow the "ls -A" will show a new file.14:59
tboimahokay i can see it now15:00
ubuntouristmulbah, you had an idea that you typed above for what the problem was and how to solve it. I suggested you try it but you have not tried your own solution yet.15:03
ubuntouristmulbah, explain (from the above conversation): what is the difference between "czvf" and "cjvf"? Then apply that knowledge to the "tzvf".15:05
ubuntouristBut I am calling it "quits" for today. We're already five minutes overtime.15:05
ubuntouristSo, review the log on your own and see if you can figure it out before we meet on Friday.15:06
ubuntouristMeanwhile, I'll investigate why your TAB completion is not working. I will try a quick test now whille we are still connected.15:07
tboimahubuntourist please do not forget to email us the script play please15:08
ubuntouristtboimah, I won't 15:17
tboimahokay thanks15:17
ubuntouristmulbah, TAB completion is supposed to be automatic. Every time you login, ~/.profile and ~/.bashrc should be read and executed. That should set your tab completion.15:18
ubuntouristmulbah, when I ran your .bashrc manually, it turned on tab completion. So... Somehow, you started a terminal window without automatically running .bashrc. I have no theory regarding how.15:19
ubuntouristmulbah, but, for now, we have a fix if it happens again.15:20
mulbahAlright15:20
ubuntouristmulbah, if tab completion is not working, type ". ~/.bashrc"  and enter. (Notice: it starts with a period then a space, and there is a period before "bashrc" also.15:21
ubuntouristBye for today.15:21
mulbahAlright Mr. Cole15:21
mulbahThanks for today15:21
*** ubuntourist has quit (Quit: Leaving)15:22
*** tboimah has quit (Quit: Leaving)15:22
*** mulbah has quit (Ping timeout: 480 seconds)16:01
*** jelkner has quit (None)16:03
*** jelkner has quit (None)16:04
mulbahHello Jeff16:38
*** mulbah has quit (Ping timeout: 480 seconds)17:02
*** scooer has quit (Quit: Leaving)17:41
*** jelkner has quit (Quit: Leaving)18:06
*** shmohamud has quit (Remote host closed the connection)22:43
*** shmohamud has quit (Remote host closed the connection)22:56
*** shmohamud has quit (Remote host closed the connection)23:03
*** shmohamud has quit (Ping timeout: 480 seconds)23:17
*** shmohamud has quit (Ping timeout: 480 seconds)23:30

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