IRC log of #novawebdev for Friday, 2023-09-29

*** shmohamud has quit (Remote host closed the connection)00:23
*** shmohamud has quit (Remote host closed the connection)00:46
*** shmohamud has quit (Remote host closed the connection)01:00
*** shmohamud has quit (Ping timeout: 480 seconds)03:08
*** shmohamud has quit (Ping timeout: 480 seconds)04:10
*** shmohamud has quit (Ping timeout: 480 seconds)06:12
*** shmohamud has quit (Ping timeout: 480 seconds)08:13
*** jelkner_ has quit (None)10:07
*** jelkner has quit (Quit: Leaving)10:08
dcammueGood morning everyone10:54
fkoikoiGood Morning Jeff10:55
jelknerGood morning.10:55
jelknerApologizes for the last minute notice, but I am going to have to ask to postpone this meeting until tomorrow.10:56
jelknerI had an electrical fire in my classroom last night.10:57
jelknerSo I have no electricity.10:57
fkoikoiAlright 10:57
jelknerI'm on my phone now, but I can't access the info I need.10:58
jelknerGood morning Shallon.10:58
fkoikoiokay10:58
svayeGood morning Jeff10:58
jelknerWill you be at our meeting tomorrow?10:59
fkoikoiI guess I will just add it to the agenda for tomorrow meeting10:59
jelknerCan we meet a little early?10:59
fkoikoiby what time?11:00
svayeI will be in the meeting tomorrow11:00
jelknerMainly I wanted to ask Shallon and Daniel if they saw the assignment I gave the web class?11:00
svayeI haven't seen it Jeff11:02
svayeI have a hard time getting to the website that have the web class activities11:02
jelknerCan you meet tomorrow at 8:30 am my time?11:04
fkoikoi+1 for me11:05
svayeThat will be like 12:30 pm our time right jelkner 11:05
*** dcammue has quit (Ping timeout: 480 seconds)11:06
jelknerGood morning Daniel, can you meet tomorrow at 12:30 pm your time?11:06
svayeit's okay with me11:06
dcammue_svaye I will help you with the website to the activities11:07
jelknerGreat, let's get svaye, fkoikoi, jelkner, dcammue, and scooper together.11:07
dcammue_yes11:07
dcammue_i will11:07
scooperGood morning Jeff11:07
jelknerTo talk about the web study.11:07
scooperI m here 11:08
dcammue_alright11:08
jelknerOK the electrician is here.11:08
jelknerI need to talk with him.11:08
jelknerLet's continue tomorrow morning.11:08
scooperOk11:08
dcammue_okay 11:09
jelknerThanks everyday!11:09
dcammue_have a nice day11:09
dcammue_take care jelkner 11:09
svayeHave a nice day Jeff11:09
jelknerI will if I get power back ;-)11:09
jelknerOtherwise, no promises.11:09
*** fkoikoi has quit (Read error: Connection reset by peer)11:10
jelknerJust glad irc works from my phone.11:10
*** jelkner has quit (Quit: Quit)11:10
dcammue_I have been trying to do that but can't work11:11
dcammue_on my phone11:11
*** dcammue_ has quit (Quit: Leaving)11:12
*** svaye has quit (Quit: Leaving)11:12
*** fkoikoi has quit (None)11:14
*** fkoikoi_ has quit (Quit: Leaving)11:17
*** shmohamud has quit (Ping timeout: 480 seconds)12:16
*** tboimah has quit (Quit: Leaving)12:40
tboimahGood morning Mr. Cole13:02
ubuntouristtboimah, Hi13:02
ubuntouristDo you know if mulbah will be attending?13:03
tboimahHmmm I don't really know, but let give him some time13:04
ubuntouristOK. Were you able to experiment with that loop with a mistake?13:06
ubuntouristI am starting up a tmate13:07
ubuntouristssh sPzsfsnpMfVDxTHeGms98TW6D@lon1.tmate.io13:07
tboimahyeah i did by adding the "$" to the filename because it was already define in the loop so to use it again you have to use it with the "$" sign13:08
tboimahand when i did it it print all of the directory in the /home/tboimah13:09
ubuntouristYes, but the text said "The NEXT line will print a filename". That text was correct...13:10
ubuntouristIt should not print "The next line will print Music" or "The next line will print test.py" or "The next line will print hello.txt"13:13
ubuntourist(I mean It should not print "The next line will print a Music" or "The next line will print a test.py" etc.13:14
ubuntouristIt shoul print "The next line will print a filename" and then, underneath it, the filename should be printed.13:14
tboimahAhhh okay13:15
ubuntouristBut in my test in tmate, the line underneath is empty. So, what should change to fix that?13:15
ubuntouristHello? Still there?13:19
tboimahyeah i am still looking for the answer13:19
ubuntouristOK. Try this another way: Explain each line in the code on the tmate screen. (The four lines of "oops"(13:20
tboimahThe first line is saying that any filename in the current working directory it should do:13:25
tboimahThe next line will print a filename13:26
ubuntouristCareful: "filename" is nothing magical her....  The asterisk (*) is the wildcard that means "all files".13:27
ubuntouristAnd no. The next line will NOT print a filename. It will print what is between the quotes.13:27
tboimahyeah but it is the next line will print a filename between the quotes13:28
ubuntourist("filename" is nothing magical here -- was what I ment to say.)13:28
ubuntouristThe word "filename" in this script has no special meaning.... Think about your Python code What comes after "for"? What is the meaning of the word after "for" in a pythin script?13:30
ubuntourist(My typing is horrible this morning. Lots of small typos.)13:30
tboimahthis is what "the next line will print a filename" in the quotes so it is what going to print   13:30
tboimahthat is what i mean i am not saying filename is doing something diffrence in the code13:31
ubuntouristCorrect. Now think about "for" in Python. The "for" in Bash.  Go back to your simple counting program....13:32
ubuntourist(The "for" in Bash works very much like the "for" in Python is what I am trying to say.)13:32
tboimah_sorry my connection drop13:34
ubuntouristCorrect. Now think about "for" in Python. The "for" in Bash works very much the same way. Think about your counting13:35
ubuntouristprogram in Python.13:35
ubuntouristDo NOT press enter in the tmate. Just look at what is on the screen right now, and tell me what it would do.13:36
ubuntouristThen think about how you printed the numbes before...13:37
ubuntouristTHEN go back and think about the Bash script wihich is still appearing on the screen.13:37
tboimah_can you send me a link to join tmate again my connection drop13:37
ubuntouristssh sPzsfsnpMfVDxTHeGms98TW6D@lon1.tmate.io13:38
*** scooper has quit (Ping timeout: 480 seconds)13:39
*** tboimah has quit (Ping timeout: 480 seconds)13:39
tboimah_it is going to print "some text" 13:41
tboimah_up to hunderd(10013:41
ubuntouristYes. 13:42
ubuntouristSo to make it print the number also, you would need to do a little bit more.13:42
ubuntouristNow look at the Bash script on the screen and think about it the same way.13:43
ubuntourist("echo" is Bash's "print(...)" statement.)13:43
*** sysadmin_ has quit (Read error: Connection reset by peer)13:43
ubuntouristSo to make it print the number also, you would need to do a little bit more13:46
ubuntouristNow look at the Bash script on the screen and think about it the same way13:46
ubuntourist("echo" is Bash's "print(...)" statement.)13:47
*** tboimah_ has quit (Ping timeout: 480 seconds)13:50
tboimahyou once said that in a Bash script when a variable has been us in a for loop, to use it again in the print statement you should add "$". so for me i think we should add "$" to ("filename") so that it can be able to print those file name.13:52
tboimahTo admit i having hard time understanding the Bash script, is there any Book for it.13:54
ubuntouristHow is it different from the python script.13:55
ubuntouristtboimah, we are joined by jelkner in the tmate right now, in case you are wondering. 14:04
tboimahAhh okay14:04
ubuntouristOK...14:07
ubuntouristBack to you tboimah 14:07
tboimahyeah14:08
ubuntouristtboimah, once again, I encourage you and mulbah to show off tricks like tmate, script and scriptreplay to jelkner..14:08
tboimahokay14:09
ubuntouristtboimah, plan a nice little presnentation and demo. Think about it beforehand and create a lesson that you could use14:09
ubuntouristwith students.14:09
ubuntouristBut back to the Bash script.14:09
tboimahokay i will do that 14:10
tboimahyes back to Bash script14:10
ubuntouristI do not understand why you see the Python script as easy and the Bash script as hard. They are14:10
ubuntouristalmost identical14:10
ubuntouristnumber = 10014:11
ubuntouristfor num in range(number):14:11
ubuntourist    print("Some text")14:11
ubuntourist    print(num)14:11
ubuntouristThat's the Python. Below is my broken Bash script:14:12
ubuntouristfor filename in *14:12
ubuntouristdo14:12
ubuntourist    echo "The next line will print a filename"14:12
ubuntourist    echo $i14:12
ubuntouristdone14:12
ubuntouristIn rhe Python script what is "num"?14:12
ubuntouristIn the Bash script, what is "filename"?14:13
tboimahOkay i think i understand you code now let tmate so that i show you something14:13
ubuntouristYou can use the tmate from before.14:14
ubuntouristIt should connect you back to my session.14:14
ubuntouristssh sPzsfsnpMfVDxTHeGms98TW6D@lon1.tmate.io14:15
tboimahin your code the second echo should have print $filename instead of echo $i14:15
ubuntouristBINGO!14:15
ubuntouristI wanted you to see that yourself, not have me tell you.14:15
tboimahNow i understand your code14:15
ubuntouristIn my script with a mistake, $i is UNDEFINED. It would be like telling Python to print(x) when there is no variable named x.14:16
tboimahIt was a fun figuring out the answer14:16
ubuntouristNormally, when I write a Bash script for myself, I use "for i in..."  (The letter "i" is an ooooold habit: 14:17
ubuntouristI used an old programming language FORTRAN for many, many years, and "i" was commonly used as a variable for an14:18
ubuntouristfor holding an integer value.14:18
ubuntouristBut, if I am trying to write something for other people to understand, I often choose vaiable names with more meaning.14:19
ubuntouristWhen I was trying to type it to you last week, I slipped up: I used a good varialbe name "filename" at the start, but14:19
ubuntouristaccidentally reverted to my old habit when I wrote "echo $i"14:20
ubuntouristI saw my mistake immediately, but I wanted you to see my mistake.14:20
tboimahyeah it was a fun figuring out your mistake14:21
ubuntouristWe will be going back to the more compliacated bash script that you sent me e-mail about.14:21
ubuntouristYou tried to copy something from the README or the script movie, and it didn't work. That's beccause it14:22
ubuntouristis a more complex script and you had two very small typing mistakes. They were hard for me to find.14:22
ubuntouristI will explain more about the problem, but for now the two hints for each mistake. 14:23
ubuntouristIn one place, you added a space character where there was no space in the original. This broke a regular expression,14:24
ubuntouristbecause yo were telling it that a space was part of the pattern to seach for, and there were no strings that14:25
ubuntouristcontained a space.14:25
ubuntouristThe second mistake was that you used an opening quote mark somewhere, and never added a closing quote14:25
ubuntouristmark. That means that all off the lines tha followed were inside the quote and were interpreted as text strings,14:26
ubuntouristnot commands.14:26
ubuntouristI'm actually feeliing a bit tired today: I had a vaccination shot yesterday, and I think it is wearing me out.14:27
tboimahAhhh okay that means you need some rest14:29
ubuntouristYour Linux Command Line book has a section on writing shell scrips14:29
ubuntouristWe are using the Bash shell and so is the book. So, PART 4: WRITING SHELL SCRIPTS is all about what we are doing.14:30
ubuntourist(You probably should try ti read all the parts before that. So maybe we will go back to following thee book more.14:31
tboimahokay i will take a look at it14:32
ubuntouristI think we were at Chapter 11 or 13 in PART 2. I am skipping Chapter 12, because it is all about the "vi" editor, and14:32
ubuntouristI don't really use "vi" as my editor. So, I will leave that for you to study on your own.14:33
tboimahokay14:33
ubuntouristI am hoping that you both understood Chapters 1 to 10, but if you have questions about those chapters,14:34
ubuntouristwe can review.14:34
ubuntouristSo, I think I am going to quit early today. See you on Monday. Share with Mulbah if you can.14:35
tboimahokay thanks for today 14:36
tboimahHave a nice day14:36
ubuntouristBye!14:36
tboimahBey!14:36
tboimahbye*14:36
*** ubuntourist has quit (Quit: Leaving)14:36
*** tboimah has quit (Remote host closed the connection)15:01
jelknerHello tboimah 15:18
tboimahHello jelkner15:30
jelkneri'm working with a student and we are going to try tmate15:49
jelknerare you going to be here for a few more minutes?15:50
jelknermaybe you could try to join at the same time15:50
jelknerKevin showed me that tech.  It looks awesome!15:50
tboimahyeah15:53
avaldezhi scooper 15:56
*** scooper has quit (Read error: Connection reset by peer)15:56
avaldezthis is jelkner15:56
avaldezbut i'm using avaldez'15:56
avaldezs comnputer15:56
avaldezwe are about to try out tmate15:56
jejemploscooper, tboimah, i'm here with Adrian Valdez, one of my students15:59
jejemploWe are about to try tmate15:59
tboimahOkay, that sound great!15:59
jejemplossh PcbegTFcLv7RZsexywDzn29rT@nyc1.tmate.io16:01
scooperOK jejemplo16:02
scooperthat is great16:02
*** tboimah has quit (Quit: Leaving)16:31
*** scooper has quit (Remote host closed the connection)16:39
*** avaldez has quit (Remote host closed the connection)16:51
*** jelkner has quit (Ping timeout: 480 seconds)17:17
*** jejemplo_ has quit (None)18:05
*** jejemplo__ has quit (None)18:05
rlucierhello18:06
jejemplossh 2tnEJgpfNvgSqqDvSVvp9Ws5C@nyc1.tmate.io18:07
*** rlucier has quit (Remote host closed the connection)18:50
*** jelkner_ has quit (Quit: Leaving)19:06
*** jejemplo has quit (Quit: Leaving)19:09

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