*** mulbah has quit (Remote host closed the connection) | 05:14 | |
*** mulbah has quit (Ping timeout: 480 seconds) | 07:05 | |
jelkner | Good morning fkoikoi, scooper, dcammue, and tboimah! | 11:00 |
---|---|---|
jelkner | I *just* made it on time. | 11:00 |
dcammue | Good morning Jeff | 11:00 |
dcammue | yeah | 11:00 |
fkoikoi | Good morning Jeff | 11:01 |
jelkner | The bus didn't show, but I always leave early so the next one will still get me here. | 11:01 |
dcammue | sure | 11:01 |
jelkner | Today is the first day of school for me, so I only have 10 minutes | 11:01 |
jelkner | I read the logs | 11:01 |
jelkner | Thanks for chairing the meeting fkoikoi | 11:01 |
fkoikoi | okay Jeff | 11:02 |
jelkner | I won't be able to make next Saturday either | 11:02 |
fkoikoi | but why Jeff? | 11:02 |
tboimah | Good morning Jefff | 11:02 |
jelkner | its a long weekend (4 days off), so my wife and I are going to New Jersey on Saturday | 11:02 |
jelkner | i'll be here each weekday morning at 11 am your time. | 11:02 |
scooper | Good morning Jeff | 11:02 |
jelkner | fkoikoi, here's more opportunity for you and scooper to take over running Saturday meetings | 11:03 |
scooper | ok I m following the conversation | 11:03 |
jelkner | i only have one thing to discuss today | 11:03 |
jelkner | i cc'd you on two emails i sent to Kate from USFWC. | 11:04 |
jelkner | did you see them? | 11:04 |
scooper | I saw you email Jeff thanks for the progress being made | 11:04 |
fkoikoi | I saw it Jeff | 11:04 |
scooper | Yes I saw the two mails you send me this morning | 11:04 |
jelkner | great | 11:04 |
jelkner | one more thing | 11:05 |
jelkner | NOVA Web Development has a new business manager | 11:05 |
jelkner | Kei Larios | 11:05 |
jelkner | Not yet, but in a few months, after she gets accustomed to irc and Jetro Web gets a little further along | 11:06 |
jelkner | she will start showing up at Saturday meetings | 11:06 |
jelkner | so we can begin collaborating more intentionally | 11:06 |
jelkner | ACTION done | 11:06 |
jelkner | we've got 3 minutes | 11:06 |
jelkner | anyone else have anything? | 11:06 |
scooper | Thanks for the update | 11:07 |
fkoikoi | thanks for the updates jeff | 11:07 |
jelkner | please keep moving forward with skills development! | 11:07 |
scooper | can you please talk a bit about your incoming paython classes at Arlington | 11:07 |
jelkner | school starts today | 11:07 |
scooper | which you want us to be part of | 11:07 |
jelkner | but class starts tomorrow | 11:07 |
jelkner | you should follow along with my classes | 11:07 |
scooper | +1 | 11:08 |
jelkner | svaye and dcammue should follow: https://ict.gctaa.net/sections/webdev/ | 11:08 |
dcammue | ok | 11:08 |
jelkner | is janet still participating? | 11:08 |
fkoikoi | how are we going to do that jeff | 11:08 |
scooper | +1 | 11:08 |
fkoikoi | can you please paste the link here | 11:08 |
jelkner | ok, so scooper and janet should follow: https://ict.gctaa.net/sections/csc221/ | 11:09 |
jelkner | and fkoikoi | 11:09 |
jelkner | mulbah and tboimah will keep working with Kevin | 11:09 |
jelkner | ok, i have to go | 11:09 |
scooper | Thanks | 11:09 |
jelkner | see you again tomorrow at the same time | 11:10 |
fkoikoi | alright | 11:10 |
jelkner | ACTION signs off | 11:10 |
scooper | see you tomorrow at about this time | 11: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 | |
mulbah | Good morning Mr. Cole | 13:01 |
tboimah | Good morning ubuntourist | 13:01 |
ubuntourist | Hi, With you in just a few seconds... | 13:01 |
mulbah | okay | 13:02 |
ubuntourist | ACTION is running a scriptreplay that I will send to you at the end of today... | 13:02 |
tboimah | okay | 13:03 |
ubuntourist | ACTION is back (letting the replay run in the background. It's too slow.) | 13:03 |
ubuntourist | OK. A little preview of the typescript. | 13:04 |
ubuntourist | I decided it was time to take a real, practical example of something that I need to do for myself, | 13:04 |
ubuntourist | and show you how I build up an idea into a Bash script program: | 13:05 |
ubuntourist | I've mentioned before that I am taking sheet music from paper, and entering it in a format | 13:06 |
ubuntourist | that can be shown on the web. Here's an example: | 13:06 |
ubuntourist | https://ubuntourist.codeberg.page/DMC_Songbook/cruiscin_lan.html | 13:06 |
ubuntourist | That web page shows the sheet music, and also plays the melody with a button at the top. | 13:07 |
ubuntourist | The problem: I have over 100 songs that I have converted, but now I realize that I want to change the font | 13:08 |
ubuntourist | for many of them -- but not all of them. | 13:08 |
ubuntourist | I 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 |
ubuntourist | I 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 on | 13:10 |
ubuntourist | that line. | 13:10 |
ubuntourist | It's a complex process, and we will probably spend a few weeks talking about it, but you'll be able to watch the | 13:11 |
ubuntourist | script movie before that and it may help the discussion. | 13:11 |
ubuntourist | ACTION is done with that for now. | 13:11 |
tboimah | okay so how will we get the script movie from you | 13:13 |
ubuntourist | I 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 |
tboimah | okay | 13:14 |
ubuntourist | A few short topics for today "tar" and "diff" | 13:15 |
ubuntourist | Crank up the tmate! | 13:15 |
tboimah | ssh LGvYrXbM6WrketevYedFFysNh@lon1.tmate.io | 13:15 |
mulbah | ssh uGneaW4NzZARMx5Qp5bvfHL2q@lon1.tmate.io | 13:16 |
ubuntourist | First "tar" -- tar is a program with a name based on a concept that doesn't make sense any longer: | 13:18 |
ubuntourist | It means "Tape ARchive" from the days when computers had all their files on reel-to-reel magnetic tape.... But no one | 13:19 |
ubuntourist | wants to change the old command names except for me. ;-) | 13:19 |
ubuntourist | When I send you the typescript movie and the instructions, I will be sending them as a "tarball" -- a compressed tape archive file. | 13:20 |
ubuntourist | A tarball is VERY, VERY much like a ZIP file. It's the Unix / Linux way to do ZIP files. | 13:21 |
ubuntourist | First, lets create one | 13:21 |
ubuntourist | ls -R .config | 13:22 |
ubuntourist | (Capital "R" and there's a period before config.) | 13:23 |
ubuntourist | tboimah, good. | 13:23 |
tboimah | okay | 13:24 |
ubuntourist | That shows you a list of all your configuration files for you personally. They are created either whn your account was | 13:24 |
ubuntourist | created or when you ran a program for the first time. For example, when you started Hexchat on the computer months ago, it created a bunch | 13:25 |
ubuntourist | of configuration files for saving any personal preferences or settings that you might use to customize the behaviour of Hexchat. | 13:26 |
ubuntourist | Suppose you want to keep all of those and maybe put them on a USB stick or mail them to someone? | 13:27 |
ubuntourist | The 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 |
mulbah | Hello tmickelson long time | 13:28 |
tmickelson | hello mulbah | 13:29 |
ubuntourist | There 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 |
ubuntourist | Others are quicker but not as good at compression. Some compress quickly but decompress slowly, or vice versa. | 13:30 |
ubuntourist | So, creating a tarball: | 13:31 |
ubuntourist | Type: | 13:31 |
ubuntourist | tar czvf configuration.tar..gz .config | 13:31 |
ubuntourist | tar cjvf configuration.tar.bz .config | 13:32 |
ubuntourist | (oops. the first line should be "tar.gz" not "tar..gz") | 13:33 |
ubuntourist | ls configuration* | 13:33 |
tboimah | done | 13:34 |
ubuntourist | (You should have typed two slightly different tar commands.) | 13:34 |
*** tboimah has quit (Remote host closed the connection) | 13:34 | |
ubuntourist | and then: | 13:34 |
ubuntourist | ls -l configuration* | 13:34 |
ubuntourist | ACTION waits | 13:35 |
ubuntourist | If you're keeping up, you should see two different files, with different file sizes. | 13:37 |
ubuntourist | Both contain the same data, but they were compressed using different compression algorithms. | 13:38 |
ubuntourist | The two schemes are the older "gzip" compression format, and a newer "bzip2" compression. | 13:38 |
ubuntourist | We'll take the command apart now. | 13:39 |
ubuntourist | tar ...options... output-file ... list of files to be added to the archive | 13:39 |
ubuntourist | So "configuration.tar.gz" and "configuration.tar.bz" are the output files -- the tarballs -- that we created. | 13:40 |
ubuntourist | The list of files to add, in this case, was a directory name ".config". The .config directory and all files and subdirectories of .config | 13:41 |
ubuntourist | were added to each tarball. | 13:41 |
ubuntourist | The 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 |
ubuntourist | Always look for a "v" or "-v" or "--verbose" option, especially when you are trying to learn. VERY useful. | 13:44 |
ubuntourist | and finally "f". "f" for "filename of the output file (i.e. the tarball)" | 13:44 |
ubuntourist | OK so far? | 13:44 |
ubuntourist | ACTION waits for mulbah and tboimah to confirm understanding before continuing... | 13:45 |
tboimah | I am following | 13:46 |
*** tmickelson has quit (Quit: leaving) | 13:47 | |
mulbah | I understood | 13:47 |
ubuntourist | OK. | 13:47 |
ubuntourist | Create a directory and move both configuration* files to the new directory. (You choose the directory name. It doesn't matter.) | 13:48 |
ubuntourist | ACTION 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 |
tboimah | done | 13:51 |
mulbah | done | 13:51 |
ubuntourist | OK. | 13:51 |
ubuntourist | We 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 |
ubuntourist | So, we're unpacking the files somewhere else. | 13:53 |
mulbah | okay | 13:53 |
ubuntourist | First 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 |
ubuntourist | contain files that you don't want. | 13:53 |
ubuntourist | For example, maybe you have created a Python program with some common name. And I have created a Python program with the | 13:54 |
ubuntourist | exact same name, but with a completely different function. If my Python program was in a tarball that I sent you, and you | 13:55 |
ubuntourist | unpacked it, my Python program would replace your program, destroying all your work. | 13:55 |
ubuntourist | By 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 |
ubuntourist | Oh, 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 transfer | 13:57 |
ubuntourist | files 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 |
ubuntourist | probably because "b" does something else.) | 13:59 |
ubuntourist | cd 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 |
ubuntourist | tar tzvf conf<TAB> | most -- notice what it does before you hit enter | 14:01 |
ubuntourist | I mean USE THE TAB KEY. Not "<TAB>" | 14:02 |
tboimah | done | 14:04 |
ubuntourist | Hold a sec... | 14:05 |
mulbah | I am done typing it | 14:07 |
ubuntourist | So, tboimah you can see the list of files that are in the tarball, with all the details. | 14:07 |
mulbah | should I hit enter | 14:07 |
ubuntourist | mulbah, go ahead and hit enter | 14:07 |
tboimah | yeah | 14:08 |
ubuntourist | mulbah, q to quit and see if you can tell what went wrong. | 14:08 |
ubuntourist | mulbah, I'm going to try the tab in your terminal, just to make sure it is not some weird setup. | 14:10 |
ubuntourist | tboimah, hold a second. | 14:10 |
tboimah | okay | 14:10 |
ubuntourist | Well, 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 |
ubuntourist | The question is "why?" or "how?" did it get turned off? | 14:12 |
ubuntourist | We'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 |
ubuntourist | ACTION 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 files | 14:16 |
ubuntourist | mulbah07_, 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 file | 14:18 |
mulbah07_ | name | 14: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 | |
ubuntourist | Right. 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 |
ubuntourist | ACTION waits for thoughts from mulbah | 14:22 |
mulbah | I this it's the configuration.tar.bz file | 14:23 |
mulbah | "think" | 14:23 |
ubuntourist | mulbah, why? | 14:23 |
ubuntourist | By the way, one thing that may help you with your speed while your TAB is broken: | 14:24 |
mulbah | I will try to fix that | 14:25 |
ubuntourist | You 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 |
ubuntourist | That will save you a lot of typing. | 14:26 |
ubuntourist | So, 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 |
ubuntourist | Then type "tar tzvf " and then Ctrl-Shift-V | 14:28 |
ubuntourist | (22 minutes left. This is why speed is important.) | 14:29 |
ubuntourist | You highlighted the wrong text. | 14:30 |
ubuntourist | Now 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 |
mulbah | done | 14:32 |
ubuntourist | That did the paste. Ctrl-A to go to the beginning of the line and type "tar tzvf " | 14:32 |
ubuntourist | keep going... | 14:33 |
ubuntourist | hello? type the rest of it... Is the tmate connection dropping? | 14:34 |
mulbah | should I keep pressing Ctrl-A | 14:35 |
ubuntourist | No: 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 |
ubuntourist | And enter | 14:36 |
mulbah | should I try the other one | 14:37 |
ubuntourist | OK. So, it gave you another error. What do you tthink it is trying to tell you this time? | 14:37 |
ubuntourist | OK. And rememvber the Ctrl-Shift-C and Ctrl-Shift-V to save your typing time. | 14:38 |
mulbah | It's telling me that the file is not in gzip format | 14:38 |
mulbah | okay Mr. Cole | 14:39 |
mulbah | but | 14:39 |
ubuntourist | mulbah, yes? | 14:39 |
mulbah | I'm familiar whit this tow stuff Ctrl-Shift-C and Ctrl-Shift-V | 14:40 |
mulbah | I have been using it before in the terminal | 14:40 |
mulbah | to copy and past | 14:41 |
ubuntourist | Then why be so slow? c.....o.....n.....f.....i.....g..... is painful to watch. This is why those keyboard shortcuts are useful. | 14:42 |
mulbah | okay I will be using it often | 14:42 |
ubuntourist | Please! 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 |
ubuntourist | The "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 |
ubuntourist | you can extract with "x" instead of "t". | 14:45 |
ubuntourist | (That's for tboimah.) | 14:46 |
ubuntourist | mulbah, you should continue with what you're doing first, to catch up. | 14:46 |
tboimah | okay | 14:46 |
mulbah | okay Mr. Cole | 14:47 |
ubuntourist | Oh, 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 |
mulbah | sure | 14:49 |
ubuntourist | mulbah, waiting for you to finish in the terminal... | 14:54 |
mulbah | should i exit in the terminal | 14:55 |
ubuntourist | mulbah, no. I want you to make the tar xzvf work. | 14:55 |
ubuntourist | mulbah, and not give you an error. | 14:56 |
ubuntourist | mulbah, use your up arrow and correct it. | 14:58 |
ubuntourist | tboimah, good. | 14:59 |
tboimah | what next | 14:59 |
ubuntourist | That extracted all the files from the tarball. | 14:59 |
ubuntourist | Now the "ls -A" will show a new file. | 14:59 |
tboimah | okay i can see it now | 15:00 |
ubuntourist | mulbah, 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 |
ubuntourist | mulbah, explain (from the above conversation): what is the difference between "czvf" and "cjvf"? Then apply that knowledge to the "tzvf". | 15:05 |
ubuntourist | But I am calling it "quits" for today. We're already five minutes overtime. | 15:05 |
ubuntourist | So, review the log on your own and see if you can figure it out before we meet on Friday. | 15:06 |
ubuntourist | Meanwhile, I'll investigate why your TAB completion is not working. I will try a quick test now whille we are still connected. | 15:07 |
tboimah | ubuntourist please do not forget to email us the script play please | 15:08 |
ubuntourist | tboimah, I won't | 15:17 |
tboimah | okay thanks | 15:17 |
ubuntourist | mulbah, 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 |
ubuntourist | mulbah, 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 |
ubuntourist | mulbah, but, for now, we have a fix if it happens again. | 15:20 |
mulbah | Alright | 15:20 |
ubuntourist | mulbah, 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 |
ubuntourist | Bye for today. | 15:21 |
mulbah | Alright Mr. Cole | 15:21 |
mulbah | Thanks for today | 15: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 | |
mulbah | Hello Jeff | 16: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/!