HNHacker News
TopNewBestAskShowJobs

prosaic-hacker

175 karma · joined April 9, 2019

I am a very ordinary hacker that hacks to learn for the job I am in. I have done a little of everything from real time simulation to web development. Used mainframes to micro-controllers.

You can contact me at the username without the punctuation at gmail.

submissionscomments
prosaic-hacker··on Fascination of Awk
Other comments at https://news.ycombinator.com/item?id=35281089
prosaic-hacker··on Fascination with AWK
Perl and Python have syntax options that are similar to the style of awk. The style was described to me as filter thinking. These were not tested on real data.

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])
prosaic-hacker··on Ask HN: Best books to learn embedded systems?
Making Embedded Systems: Design Patterns for Great Software 1st Edition by Elecia White I have not read the book but listen to their podcast https://embedded.fm/ http://makingembeddedsystems.libsyn.com/rss
prosaic-hacker··on Simulation of tsunami from dinosaur-killing asteroid that brought 2.5 mile waves
One of the science show (Nova ? could not find it quickly) did an extinction event analysis on a point far upstream a river and tied it to the Chicxulub event. The local flora and fauna were killed by water flow high up river and hot ash rain.
prosaic-hacker··on I don’t want a new phone, but I’m probably buying one
I decided a long time ago to buy the cheapest unlocked android phone I could get at the time. 6 phones for 2 people over 10 years. I paid 140 to 200 (100-150 US$) pretax for each. This has been mostly Motorola E or G phones. This has kept us current with apps resource needs. The total cost of 6 phone is less than the current cost of an iPhone 14. I have kept all of them and reuse them as night table Alarm clocks or second screens to settle question like "How old is that actor" while watching something.
prosaic-hacker··on Ask HN: How do you explain code verbally?
I teach programming and have experimented with Codetry Readings(C)(TM);) (think beat poet) I have not hit the sweet spot of reading the code in idiomatic spoken language to match to idiomatic code language. Work in progress.

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.

prosaic-hacker··on Ask HN: Why did BASIC use line numbers instead of a full screen editor?
In 1979 I was developing the same application on several different systems with Basic. Durango (https://en.wikipedia.org/wiki/Durango_F-85) and Sord (https://en.wikipedia.org/wiki/Sord_Computer_Corporation) are 2 of the names I remember.

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.

prosaic-hacker··on I prefer semi-automation
I would extend this idea with Step-Wise semi automation. There have been large complex data sets I had to wrangle or sysadmin operational tasks that I have have to complete that I did in several automation steps. "Bend, fold, and staple" the problem with a script, check the results, make a decision, plan the next step. Repeat until done. (PS Keep all your scripts and record notes in playbook)

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.

prosaic-hacker··on Intelligence – A good collection of great OSINT Resources
BGP Ranking site https://bgpranking.circl.lu/ serve a 503 error Service unavailable.

I do not know any more details.

prosaic-hacker··on Barnes and Noble's surprising turnaround
I have reread my top 200 books I like more than once. I owned well into the 2000s of books. Most bought second hand. Most gone, but not the 200. As life ebbed and flowed books got boxed and unboxed. Glee ensues when a favorite shows up again.

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.

prosaic-hacker··on A guided intro to the Free Pascal language
HexFlexagons https://en.wikipedia.org/wiki/Flexagon

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.

prosaic-hacker··on A guided intro to the Free Pascal language
Back Then. When was that? At University (1978) we used Pascal as the first language to learn (if you exclude CDC Cyber 6600 assembly). Yes we did the Discrete math problems common in CS (https://mathworld.wolfram.com/Floyd-WarshallAlgorithm.html). We did other things as well. The professors were a mix of hippies, math geeks, and the Doctors from Doctor Who. Most knew both the academic and fun side of programming.

I guess it depends on the school and people there to create a fun but educational culture.

prosaic-hacker··on Ask HN: I am in my late 20s looking to change careers. Any advice?
I teach people in your position in life. I recommend at this stage bite size steps in education. Find Colleges with 1 or 2 year programming curriculum. This way you get to working sooner and see for real if this is what you want. These programs tend to be practical in nature. More how to use a particular tools chain to develop in a specific set of languages. Less of the theoretical topics that a CS degree would give you.

You could learn more later and ratchet up your programming "status".

prosaic-hacker··on I don't want to learn your garbage query language
https://news.ycombinator.com/item?id=26410047

Sounded familiar.

prosaic-hacker··on Ask HN: Do more qualified teachers find their jobs less rewarding as a result?
I have been a vocational Lecturer in Computer Support (System Administration) for over a decade. Before that spent 35 years as SysAdmin (Vax, Unix[Aix,Irix...], programmer (FORTRAN real time / Webdev [LAMP Web 1.0 era], Manager of PC deployment and training (Dos and Early Windows).

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.

prosaic-hacker··on Leaderless Teams
Each department had a person service their internal or external client. The could provide the service the old slow way or our way.

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.

prosaic-hacker··on Has the Time for 32GB of RAM Finally Come?
I teach system admin for a living. When Covid hit and on line classes became the norm we put 500GB ssd and 16GB memory into some Dell 5420 laptops(2011 era). We ran Google Classroom and up to 4 VMs (Win1X/Fedora3X) depending on the topic. Two years later we got modern dell machines with 32GB. After configuring the new machines for the same teaching environment I cannot see a big difference. It will be needed eventually as the demands of the VM guests change over time. For our current load not need yet.
prosaic-hacker··on Ask HN: Is electric toothbrush worth it?
I have had a "Plaque Remover" since the 80's when they were medical appliances($$$) due to medical needs. In a sample size of 1 my oral health is always worse when I use a regular tooth on vacation. Today I use a moderately priced ($$) brush with a round head and it works as well as the medical appliance of the past. I get two weeks of 2+ minutes brushing out of a charge and it lasts for several years. As my screen name suggests I have tried to replace batteries on my own. However they are not designed for repair.
prosaic-hacker··on Leaderless Teams
I have experienced leaderless teams in my career (46 years) a handful of times. They formed around a problem that was unrecognized by Management (thankfully) but need to be solved. My best example was at a large SW dev firm in the late 80s. World wide electronic communications was need and faxes and leased lines connected to Decwriters were not good enough. I was assigned to the task as just one of my responsibility. A Single 1200 baud access to internet email at a university solved the problem. The problem expanded many people wanted the same service so we need someone (team member 2) who had access to a UNIX systems. Eight serial ports and 2400 internet connection to the first local ISP.

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.

prosaic-hacker··on Ask HN: How does hobby programming and pure math degree compare with CS degree?
Separate from knowing the syntax and semantics of a programming language (which you have to know), Programming in the real world is about code herding and coding support tools . Each environment has its mix of Code storage location eg folders on a filesystem to GitHub repositories. Support tools include Editor / IDEs , compilers/ interpreters, linters, and Continuous Integration systems.

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.

prosaic-hacker··on Spinrite 6.0 on UEFI and an NVMe SSD drive
I have heard of variations this technique of Spinrite in VMs with pass thrus to physical disks.

https://social.technet.microsoft.com/forums/windowsserver/en...

https://macmad.org/blog/2018/12/how-to-run-spinrite-on-a-mac...

https://noyes.dev/thoughts/spinrite-cli-vbox/

prosaic-hacker··on PsychOS Linux – 32-bit distro for older computers
I like small retro hw supporting distros. Puppy Fossa is running on several of my machines.

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.

prosaic-hacker··on Ask HN: How to prepare your retirement as a Software Engineer?
Get a hobby or 3. I am 2 to 3 years (or one TTJaSI moment) from retiring. I have been an system admin, programmer, accountant, manager of these roles), teacher teacher of them too. I made an early choice to do SW over HW.

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.

prosaic-hacker··on What If We’re Not the First Advanced Civilization?
There is now 128 million bit of space garbage orbiting the earth and some orbiting the sun. How long would that stay in orbit? The next civilization would have to make it to space to verify if we existed.
prosaic-hacker··on Build Android apps without an Android SDK using PicoLisp
I would not be surprised if other constrained interpreter environments could be created like this one. From the descriptions I believe a Hypercard, Logo, python or (forgive me from saying this) Basic scripting could be created.

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....

https://play.google.com/store/apps/details?id=and.bas&gl=US

prosaic-hacker··on What happens when you press a key in your terminal?
It is amazing how the understanding of what happens in our computers goes from : the air we breath to a mystery.

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.

prosaic-hacker··on Ash HN: Book you wish you read as a kid?
Seconded. (or maybe that should be Thirded) Read the whole series in the early 70's when I was in high school. (Thank you High School libraries).
prosaic-hacker··on Ask HN: Do you listen to technical content while driving?
I teach Computer Support for a living so I need to hear about tech trends from a support and development point of view. I also need to like the style of the presenter if I am going to spend time listening to them for months or years. In no particular order.

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.

prosaic-hacker··on Start all of your commands with a comma (2009)
I have used a similar windows trick. I wanted to add to the default window system a place for my library of tools. Most are "portable" cmd apps from various sources (sysinternals, nirsoft). I put them all into a directory called ] in the root of a drive.

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.

prosaic-hacker··on Ask HN: Do You Listen to Podcasts?
During commutes and chores. Mostly really geeky tech podcast. Computer Security, embedded systems, networking. Twit.tv, packetpushers.net, theamphour.com embedded.fm, unnamedre.com. www.cbc.ca/radio/spark. Grazed through dozen more worldsgreatestcon.fireside.fm www.redhat.com/en/command-line-heroes(a season or 2 behind). Audio books don't really do it form me. All of the podcast I listen to have RSS feeds. Don't use podcast services
← PreviousPage 2 of 4Next →