175 karma · joined April 9, 2019
You can contact me at the username without the punctuation at gmail.
The awk program translates to
#!/usr/bin/perl
while (<>) {
push @freq, (split)[2..-1] if /Frequencies/;
push @fc, (reverse(split))[3..-1] if /Frc consts/;
push @ir, (reverse(split))[3..-1] if /IR Inten/;
}print "@freq[$_ - 1] $fc[$_] $ir[$_]\n" for 1..@freq;
and in python
#!/usr/bin/env python3
import sys
freq = []
fc = []
ir = []
for line in sys.stdin:
fields = line.split()
if "Frequencies" in line:
freq.extend(fields[2:])
elif "Frc consts" in line:
fc.extend(reversed(fields[3:]))
elif "IR Inten" in line:
ir.extend(reversed(fields[3:]))
for i in range(len(freq)): print(freq[i], fc[i], ir[i])But now with added AI. I guess we could do better with better Chatbot-FU.
GPT-Chat code and description
Request: python program that takes two numbers on the command line and counts backwards from the first in steps of the second while the value is positive.
Oops did not know it would not preserve format Moved to google docs
https://docs.google.com/document/d/1aKeY1xYalymWIWY7pjoP7Nxw...
Request describe this code to a non programmer
This code is a program written in the Python language. It takes two numbers as input from the command line and counts backwards from the first number in steps of the second number, until the value reaches zero.
The program first checks if the two required numbers are provided as inputs from the command line. If either of the numbers is missing or cannot be converted to an integer, the program outputs an error message and terminates.
If the inputs are valid, the program sets the first number as the starting point, and begins counting backwards by the second number. It outputs each number as it counts, and stops counting when the value reaches zero.
For example, if the first number is 17 and the second number is 3, the program would output the numbers 17 14 11 8 5 2 in that order.
Most had classic line numbers but one had a forward on full screen editor. You could fullscreen edit what was on the screen. This include adding new lines anywhere visible. Any action that made text scroll off the top was inaccessible and would be written to disk.
To get back to earlier lines you had save all and restart.
For problems that happened more that once use the playbook to repeat. Learn about the corner case and record them in the playbook For problems that repeat often add more automation as needed until you have a prototype for the fully automated. If there is enough value and problem stability decide if a rewrite is needed to get it out of my hands and have it fully automated. From my experience this was very rare.
I do not know any more details.
I have a relatively good memory so I remember many details of a story. In spite of that, the flow of rereading a good story is a pleasure.
We listen to music over and over why not reread.
Angle trisection tools. https://www.instructables.com/The-Tomahawk-an-Angle-Trisecti... First AA proof I learned: Cannot trisect an angle with ruler and compass.
I guess it depends on the school and people there to create a fun but educational culture.
You could learn more later and ratchet up your programming "status".
Sounded familiar.
I have been learning thing 5 minutes before my colleagues and coworkers my entire career and then train them. When the newness of a tech wore off I moved on.
I was rarely the best at a technology just the first. A digital Voyageur of sort (Canadian Eh!) portaging through the wilderness of new tech for everyone who followed.
Now as a teacher I am still 5 minutes ahead of my students because our industry does not sit still. Half the time teaching fundamentals that will never change (backups, backups, backups) the other half Win 10/11/Server 2022/Linux quirks.
I would say I am only qualified to learn new things and happy to do that.
EG You ask the Tech Pub dept for the 5000 page Word perfect documents and wait a month to get it printed and shipped through formal channels. Or a couple of days through our team to have it on a secure download location on our public server.
Marketing, New Business, Sales and Engineering each had a rep. If you want a Schematic out of engineering, several weeks until it was plotted or a day or two to get the right Autocad or Bentley Microstation cad file into the secure down load.
I was the goto guy if you needed data off our Mainframe. It was a massive data sink but it was hard to get anything out. Web dev let me turn the MF into a FTP server were I could pull data down to the Web servers. Web application were written for each need. Oh if you did have your own departmental server I would ask H/W services to get me some old PC hardware and have a machine up and ask the Computer center to host it. None of this had official sanction.
Expectations were low as the competition were Green screen MF program. The problem was there was 3 to 5 year waiting list for new MF projects. I could do new apps in a week. It was written prototype level code with no expectation of maintaining it.
One subcontract tracking app stayed up for 7 years (3 years after I left). The alternative was to talk to someone who got a monthly 1000 page printout and manual marked up the updates that were being sent to Daily Data Entry. I download the big monthly output once and each Daily update and merged them. Probably less the 50 lines of Perl. Set up a Perl backed web page the searched the file and display matching records.
Rinse repeat 5 years later 10 people, part time, supported all internet connections and intranet/internet web-servers including application without management sanction. Everyone had a service role in there own department. Being connected to the others meant we performed at a high level. We didn't have a leader per se but we all moved in a common direction.
It lasted 8 years and finally several Directors discovered we existed as a team. Like sharks they each took a bite out of us, each one trying to become the dictator of the internet. Procedures were imposed. We were not allow to speak to each other with out going through the directors. Our individual productivity dropped. Angry internal clients screaming for the old way. Nothing got done. Three months later the director that won got half the people back together but we were not the same any more. I still found interesting work for 2 more years before finally leaving.
Leaderless teams can work under the right conditions. I have tried to create them when I moved into management and it worked to some degree a few times. I did not lead or participate in the teams I just suggested people talk to each other know that the might click. I fed them problems (and resources) that I knew that they could solve that I knew would take more effort/time if we did it though channels. The individuals got recognition and I got my problems solved.
Your hobby programming has selection from all of those areas and it will be different from the program ecosystem at a job. Elevating your selection will give better understanding of the process but not the experience of working in complex environment with others. The selection of ecosystem in a CS school may not be as complex as real world version but "should" be more elaborate than your home brew environment.
All of this to say "it depends". If your homebrew ecosystem is working with a Open source project contributing code through Git(hub/Lab) using the GCC tools chain and VSCode you could be better prepared than the CS students for the real world.
https://social.technet.microsoft.com/forums/windowsserver/en...
https://macmad.org/blog/2018/12/how-to-run-spinrite-on-a-mac...
I don't like the background on web page enough that I got off of it before downloading the distro. Please give me an option to visually assaulted.
Now repairing things and making things fascinates me. I got involved with volunteer repairing groups and been salvaging old electronics for reuse. I want to resurrect my old reading habit (now 2 or 3 books a year, back then 100+. I have a list. There are TV series to watch old and new. I have done Karate in the past. I want to restart that too. Well maybe Tai-Chi. With out this list I would fear retirement with it if the budget would allow it I would start now.
We could turn lots of older phones into portable toy dev platforms for the next gen of programmers.
10 minutes searching: https://play.google.com/store/apps/details?id=com.krazeapps....
Although if you asked one of my 900 coworkers in 1981 who wrote flight simulation software in Fortran, how the VT100 terminals interacted with the computers they were connected to,only a few dozen would know.
One of my projects at the time was to create a library to support the creation of 'screen oriented' applications without knowing the escape sequences.
Richard Campbell Runas Radio (https://runasradio.com) [Selected Episodes] and Dotnet Rocks (dotnetrocks.com) [Selected Episodes]
Greg Faro Packet Pushers (packetpushers.net) various podcasts [Selected Episodes]
Ed Horley, Scott Hogg, and Tom Coffeen (packetpushers.net/series/ipv6-buzz/
Steve Gibson - Security Now. twit.tv/sn
I have a non work side interest in embedded systems programming.
Elecia & Christopher White(embedded.fm)
Dave Jones and Chris Gammell (theamphour.com)
I also watch several Youtube channels that relate to the same topics but not as much as the time spent on the podcast. Most of my podcast time is driving, washing dishes or other house hold chores.
Because of some common layout of keyboards the \ and ] are near each other, or in reach of left and right pinkies I can type \]\ before the name of the tools. This means I don't even have add a dir to the path.
I am sure this violates someone sensibilities but it has saved time over the years as a consultant when I had to deal with a wonky machine and owner did not want permanent install of diagnostic tools.