372 episodes
- This show has been flagged as Explicit by the host.
Digital Release (can also be found on youtube and Spotify)
https://tidal.com/album/50021
Physical Release (can also be found on Ebay and Amazon)
https://www.discogs.com/master/44287-Lou-Reed-Metal-Machine-Music
Sources
Again, I'm a hack and I use Wikipedia
https://en.wikipedia.org/wiki/Metal_Machine_Music
Next Album I'm Reviewing
https://dreamcrusher.bandcamp.com/album/incinerator-2013
Provide feedback on this episode. - This show has been flagged as Explicit by the host.
No views Sep 11, 2026 #AI #ArtificialIntelligence #TechDemo
Watch a real-world demonstration of AI in action. See how artificial intelligence is being applied to solve
practical problems in everyday scenarios.
CHAPTERS:
0:00 - Introduction
1:30 - Setting up the AI tool
3:45 - First use case demo
6:20 - Advanced features
8:50 - Results & takeaways
10:30 - Conclusion
H@cker Public Radio:
https://hackerpublicradio.org/corresp...
Agent system prompt:
https://github.com/freeload101/Protoc...
PI Agent kagi_search Kagi Quick Search * you can adapt/refactor to anything like google :
https://github.com/freeload101/Protoc...
Uniview_API_IPC3628SR-ADF28KM-WP_get_Last.py
https://github.com/freeload101/Python...
HASHTAGS:
Provide feedback on this episode. - This show has been flagged as Clean by the host.
Civilization VI brought in one new Victory type, Religious, and made modifications to the other familiar types. So in thie episode we do a survey of different ways you can win this game.
Playing Civilization VI, Part 2
Victory Types
Another area with some changes from previous versions is Victory Types. Of course, some things stay the same. You can always win by building a big military and going on a rampage and wiping out all opposition. This never changes, and it can be a lot of fun. But the existing Victory types have received some modifications, and one brand new one, Religious victory, has been added. In this discussion I will assume you are at least up to the Gathering Storm expansion, since that has the latest Victory rules.
Science Victory
This is still basedon getting out to the stars, but the details have changed, Up to Civ V it was based on building or launching a spaceship, with Building being the major part of it. But in Civ 6 it is more based on achieving certain projects before anyone else. It all starts with researching Rocketry, then building a Spaceport, and then completing the Launch Earth Satellite project. But that is only Phase 1. You then need to research Satellites. And you might wonder why that isn’t necessary to research before you do the Launch Earth Satellite project. Well, the answer is they did it this way, so deal with it. Think of it as the difference between simply achieving a launch, like Sputnik, and developing the advanced satellite technologies like Remote Sensing, Communications, GPS, etc. In any case, once you have researched Satellites, you can do the Launch Moon Landing project.
Then you research Nanotechnology, which lets you complete the Launch Mars Colony project. From there you research Smart Materials, and that lets you finish the Exoplanet Expedition project. This expedition then needs to travel 50 light years, and normally it travels one light year per turn, so you would need to wait 50 turns to win. Meanwhile, any other player could win while you are waiting. But you can speed up your expedition by building Laser facilities, some in orbit, others on Earth.
While you obviously need to do a lot of research to get to these technologies, you also need a lot of Production to build the projects. So make sure you have a high production city and place your Spaceport there for maximum benefit. And make sure your enemies cannot take out your Spaceport.
Culture Victory
Although it is called a Culture victory, it is more technically a Tourism victory in terms of the mechanics. This is a fun Victory type to go after. What you want to do is make all of your cultural offerings so compelling that your own people would stay home rather than travel abroad, and so that you attract tourists from other players. Keeping your tourists home is your defense against other players, and attracting their tourists is your offense. If your number of tourists attracted from other players exceeds any other player’s domestic tourists, you become culturally dominant over them. And when you are culturally dominant over all other players you win a Culture victory. So how do you do this? Mainly by focusing on things tourists like to visit. This can be great works of Art, Writing, and Music, but it can also be things like National Parks and Seaside Resorts. And there are Policy cards that can increase your Tourism.
Domination
This should be simple, just build a lot military units and start laying waste, right? Well, of course isn’t that simple. While you are doing this you don’t want your future victims to gang up on you. The basic criterion for a Domination victory is that you control all of the original capitals of the original players, whether or not they are still in the game. Original capitals cannot be destroyed or plundered, but they can be captured. Now, capturing someone’s original capital is likely to cause harsh feelings on their part. But if Player A has captured player B’s original capital you can then conquer it without the same level of penalties. And there are penalties built in to the process. If you are viewed as a warmonger other players wil start to gang up on you. So what you want to do is never fight a 2-front war, to begin with. Only have one war going on at any time, and ideally allow a cooling off period after you capture the original capital. You want to keep the other empires on your side as much as possible. and a good way to do that is wait until you have a Casus Belli with them. This means they have done something to you that entitles you to righteous reaction. There are a number of them, but one my favorites is when they steal one of your technologies and are identified as the thief. That will give you a Casus Belli. If I would rather be at peace, I will usually ignore that, but if I wanted to go to war I would gratefully sieze the excuse. Also note, your objective is to get original capitals, not to wipe them out totally. Conquering the last city of another empire will give you major warmonger penalties.
Religion
This is another major change in Civilization VI. The whole Religion thing is completely new, and there is a Religion victory you can win. This is another fun victory type to experiment with. The victory condition is simple to state, you just need to have your religion be the majority religion in every empire still in the game. It is how you get there that makes this very interesting. Some of your religion spreads naturally from your cities to other cities nearby, but you can also create Missionary and Apostle units to speed up the process. But there is a defense to this as well. The other empire can create their own Missionary and Apostle units to evangelize against you. And they can engage in Theological Combat. This can only be initiated by Apostles and Inquisitors, but it can result in the losing unit being killed. Think of it as if they are calling on God to smite the devilish heathens and it actually happens. And in some circumstances when an Apostle is killed in theological combat a Holy Relic is created, and this can add to your Culture and Tourism.
We’ll talk more about Religion and Theological Combat in a more detailed look at Religion in this game.
Diplomatic
This is a bit different from the Civ V Diplomatic victory. Instead of winning a vote in the World Congress/United Nations, you accumulate Diplomatic Victory Points. If you accumulate 20 Diplomatic Vicgtory Points you win the game. So where are these to be gathered?
The first is that being on the winning side of a vote to Target or to cause an Outcome in the World Congress is worth 1 Diplomatic Victory Point for each such vote.
Building certain Wonders. The Mahabohdi Temple is worth 2 points, the Potala Palace is worth 1 point, and the Statue of Liberty is worth 4! Since machinations in the World Congress can take away points, a good strategy is to get within 2-3 points of Victory and then complete the Statue of Liberty.
Seasteads, a Future Era Tech, and Global Warming mitigation, a Future Era Civic, each are worth 1 point.
Periodically you will get a chance to respond to an aid request from another player in the World Congress. If you provide the most aid, you get 2 points. Having a big Treaasury makes it a lot easier to pull this off.
Score
Should no player win by any of the above Victory types, the winner will be the person with the highest score. This doesn’t happen often, but it can happen.
Changing Horses
You should also be flexible. Circumstances can change as the game goes on, and the original Victory type you were aiming for is looking like bad bet. When that happens you should re-evaluate your options and perhaps pursue a different Victory type. And I have played games where a different Victory type just kind of happened. But any decision you make should be an informed decision, and the game interface is helpful here. In the upper right there are a few buttons, and one of them is called World Rankings. Clicking this button will tell you where you are versus your competitors for each of the Victory types. This is is a popup window that you should consult periodically as the game gets going. One thing you need to watch out for is that you might be leading for your planned Victory, but another player may be moving quickly to a different Victory. It is nice to be heading toward your Diplomatic Victory, but if one of your competitors is doing Space projects for a Science Victory that can be a bad thing for you. Of course, you can just play it for fun and not worry about who is winning, but I suspect most people would like to win a game after they have put in something like 10-12 hours playing
Links
https://civilization.fandom.com/wiki/Casus_Belli_(Civ6)
https://civilization.fandom.com/wiki/Theological_combat_(Civ6)
https://www.palain.com/gaming/civilization-vi/playing-civilization-vi-part-2/
Provide feedback on this episode. - This show has been flagged as Clean by the host.
murph talks about Hacker Public Radio at the Open Libre Free
Conference in Columbus, Ohio in December 2025. (Formerly Ohio
Linux Fest)
He has been a slacker, and took nearly a year to publish this.
Special Thanks to Ken for getting the audio, and Archer72 for
prodding me into doing it.
The Open Libre Free Conference is a yearly conference that happens
in the fall or Winter in Columbus, OH, and is a great community
event that anyone with a hacker mindset would enjoy. https://olfconference.org
Provide feedback on this episode. - This show has been flagged as Clean by the host.
--------------------
01 Introduction
This is the fifth episode in an 8 part series.
02
In the previous two episodes we looked at the Allen Bradley PLC 2 and the Siemens S5 series of PLCs.
In those episodes we mentioned I/O modules, but didn't really go into any detail on them.
Instead we looked at the CPU units and focused on things from the programmer's perspective.
03
In this episode we will look at the I/O modules, what they are, how they work, and the purpose that they serve in the system.
In addition to this, I will discuss machine safety systems and also claims made by certain people about cyber security and industrial safety.
--------------------
04 What is I/O?
First though, we must address the question of what I/O is.
While the CPU module may run the program, in order for the program to do anything useful it must interact with the real world outside the PLC.
It must sense the state of the machine it is controlling through inputs, and it must affect the operation of the machine through outputs.
05 A Simple Example
Let's take a very simple example to try to make the above a bit more tangible.
Assume that we wish to press two parts together, such as pressing a bearing into a housing.
This is a very common industrial process.
06
Let us assume we have the following items which connect to the inputs.
* An emergency stop circuit.
* A safety system to protect the operator.
* A part presence sensor used to detect that the housing was correctly placed in the tooling.
* Another part presence sensor used to detect that the bearing was correctly placed in the tooling.
07
* A sensor which indicates the hydraulic cylinder is fully retracted.
* Another sensor which indicates the hydraulic cylinder is fully extended and the part was fully pressed home.
* A button which the operator uses to initiate the press cycle.
* Another button which the operator can use to abort the press cycle in the event of a fault.
08
We also have the following items which connect to the outputs
* A hydraulic valve with two solenoids (down and up).
* A pilot light which tells the operator that the cycle was completed successfully and the part is good.
* A pilot light which tells the operator that the cycle was not completed successfully and the part is bad.
This gives us a total of 8 inputs and 4 outputs.
09
A typical very small PLC would be suitable for this application.
The PLC program would look at the state of the inputs, and apply the necessary logic to turn the outputs on or off at the appropriate time.
As you can see, what makes a PLC useful is its ability to control I/O.
10
Small PLCs typically have a limited amount of I/O built into the same package as the CPU and can be used as is right out of the box.
Medium to large PLCs will interface to racks of I/O, and the number of I/O points can be in the dozens to hundreds and even the thousands.
--------------------
11 Types of I/O
The above example is very simple.
There are in fact many types of I/O.
I will outline the most common ones here.
12 Digital I/O
The first is "digital" I/O.
This is overwhelmingly the most common type.
Digital I/O are basic on-off signals.
A digital input will detect if a switch is on or off.
A digital output will turn a relay or valve on or off.
13
Digital I/O comes in three main types categorized by the type of electronic device used.
These are
* AC
* Relay
* DC
14 AC
AC I/O was the earliest type, but has largely faded away by now.
This works with 100 to120 VAC or 230 VAC.
Inputs detect the presence or absence of these voltages, and outputs output these voltages when turned on.
The relay logic that PLCs replaced was largely driven by these voltages, so being able to interface with existing systems was an important design consideration for early PLCs.
15 Relay
Relay outputs were an alternative to triac devices used for solid state AC outputs.
These were very small relays built into the output modules.
Their main attraction was they were usually somewhat cheaper than solid state outputs.
However, they suffered from being much less durable and had a shorter life.
16 DC
By the 1980s and 1990s, AC and relay I/O had been largely replaced in new applications by 24VDC.
This allowed for more compact and less expensive control wiring, and fewer electrical safety concerns.
Both inputs and outputs worked with 24VDC.
All of the standard sensors, solenoid valves, relays, push buttons, lights, and pretty much all other devices were designed to be compatible with 24VDC.
In cases where you had large motor contactors or relays, or large solenoid valves which required higher voltages for practical reasons, an additional interposing relay could be used to amplify the control signal.
17
I/O modules or cards came in 8, 16, 32 point sizes, and there were modules which combined both inputs and outputs in a single module.
--------------------
18 Analogue I/O
As well as simple on-off voltages, PLCs could also work with variable voltages, where the actual voltage or current represents a measurable value, such as temperature or dimension.
These are known as analogue values.
These can be inputs or outputs and are known as analogue inputs or analogue outputs.
19
The simplest is voltage.
The most common standard voltage ranges are
* 0 to 10V.
* Plus or minus 10V.
* 0 to 5V.
* 1 to 5V.
20
Another type is current.
This is where the amount of current rather than the level of the voltage is what is significant.
Current has an advantage over voltage in that it is less affected by resistance losses in long wiring runs and is also less prone to being influenced by electrical noise due to the lower impedance.
21
The most common standard current ranges are
4 to 20 mA.
0 to 20 mA.
22
Another common type is thermocouple inputs.
These have special circuitry built into them to interface with thermocouple devices, which are a common device used to measure temperature by measuring the voltage generated when two dissimilar metals are heated in contact with each other.
--------------------
23 Serial Communications
A number of PLCs have serial communications ports, mainly used to interface with things like label printers or bar code readers.
Some of these have even had basic interpreters built into them, mainly to allow for better string formatting or parsing.
24 Servo and Stepper
Another category of I/O are servo and stepper motor controllers.
25 High Speed Counter Timer
Another type are counter/timer modules, which allow for high speed counting of events, or very precise timing of events in hardware, or interfacing with rotary or linear encoders.
Encoders are measuring devices which have a series of very small but precise marks which interrupt beams of light when they move, allowing measurements to be made.
26 Networking
Many PLCs also support some sort of networking.
I won't go into any detail on that here, but will instead address this area in another episode.
However, network ports may be built into the CPU, or may reside in separate network I/O modules.
27 Specialty
As well as the preceding there are many other specialty modules which I won't bother to describe here.
--------------------
28 Operator Panels
The original operator panels were arrays of push buttons, pilot lights, and other basic operator controls mounted in boxes for an operator to interact with the machine.
Later on these were replaced by specialty electronic devices which were also known as operator panels as they served the same function.
29
Modern operator panels are screens and keypads which are used to display information to an operator or to allow data to be entered into the PLC.
While not strictly speaking a type of I/O, operator panels typically look like I/O to the PLC CPU.
Buttons on a touch screen may be effectively the same thing as actual hardware buttons from the PLC's perspective, and analogue values output to the operator panel for display are like hardware analogue devices.
30
All of these data are mapped to memory locations in the PLC, with the details of how this is done varying according to the make and model of PLC.
31
I won't go into any detail on this as this could be a separate subject on its own.
Generally though, you would use software to create screens to display on the operator panel.
The indicators and buttons defined in your screens would be mapped to addresses in the PLC, either directly or indirectly.
This configuration would then be downloaded into the operator panel.
Your PLC program could then interact with the operator panel using ordinary ladder logic.
--------------------
32 Safety Systems
Up to now I have mentioned only PLCs in any detail.
There is however more to a complete machine control system than just a PLC.
One of these is safety systems.
33
I will leave out historical safety systems and just focus on modern ones.
I will also leave out large process industries involving things like boilers or chemical reactors and just focus on assembly operations in industries such as automobiles, appliances, and other similar things.
This won't be a tutorial on safety design, just a very brief overview.
34
An industrial machine must be designed with safety as one of its fundamental design principles.
If the machine cannot be operated safely, then it cannot be put into use.
Safety must take into account the operators, bystanders, and maintainers.
You must assume that people will be inattentive or make mistakes.
35
You must also assume that the PLC program will have bugs and that the electronics will fail in a state which could cause a hazard if it is permitted to.
In other words, the PLC and your PLC program are not part of the safety system.
36
The safety system will decide when the PLC will be permitted to act and when it will not.
The PLC in turn must monitor the safety system in order to understand when it can and cannot act.
Your PLC program must take this into account so that it can differentiate between not being able to act because the safety system has decided it is not safe to cycle, versus there being something wrong with the machine which prevents it from operating.
37 A Few Basic Safety Devices
Here are a few basic safety devices.
I will not attempt to be comprehensive.
Rather, I am just giving a few common examples so that you will understand the environment in which the PLC can operate.
38 Emergency Stop Circuit
A basic element of nearly all industrial machines is some sort of emergency stop circuit.
When the "on" button is pressed, a relay will close and hold itself on.
This will enable power to the machine, including the compressed air supply if there is one.
If the "stop" or "e-stop" button is pressed, the relay will open and remove energy from the machine, rendering it safe.
If the electrical power supply to the machine goes off, due to for example the building losing electrical power, the emergency stop circuit will also "drop out" or open, and remain off until the start button is pressed again.
39
While every, or nearly every, machine will have an emergency stop circuit, is it often not sufficient on its own.
In other words, it is necessary, but not always sufficient.
40 Guard Switches
Equipment hazards must be enclosed by protective guarding.
Movable guards, such as access doors, must be interlocked with the safety circuit such that when the guard is opened, the machine is rendered safe.
To achieve this, there will be safety rated switches on each access door which are connected to the safety circuits of the machine.
41 Two Hand Control
Another common safety circuit is two hand control, often called "anti tie down", although that latter phrase actually describes one of the design principles rather than being the proper name.
With two hand control, the operator station will have two large buttons which the operator must press simultaneously and hold to enable the machine to operate.
42
With both hands on the buttons, you know where the operator's hands are.
The operator must remove both hands from the buttons in order to enable the circuit again.
If one button remains closed and the operator attempts to activate the machine again with the other button, then the safety system will detect this and refuse to enable the machine again until both buttons are de-activated.
43
This is the "anti tie down" feature.
The operator cannot tie one button down and cycle the machine repeatedly with just the other button.
The buttons will be connected to a special relay which monitors and self tests to ensure it operates correctly.
44
The PLC will monitor an auxiliary contact on this relay so that it knows when to start its sequence of operation, but the redundant safety contacts on the relay lie in between the PLC and whatever hazards are being guarded against.
The safety device has ultimate control over whether the machine moves or not.
45 Light Curtain
Another basic safety device is the light curtain.
This has a series of closely spaced light beams across the opening which forms the operator's access to the working area of the machine.
46
If any of these light beams is interrupted, the light curtain controller will not permit the machine to move.
Light curtains can usually be used in places where two hand control systems can be used.
They have an advantage over two hand control in that the operator can be performing other tasks while the machine is cycling instead of being occupied with holding the two hand control buttons down.
This allows for productivity improvements which can usually more than pay for the higher cost of the light curtain compared to simple two hand control.
47 Other Devices
There are many other safety devices, many of which address niche applications.
I won't bother listing any more than I have so far however, as you should understand the basic principles by now.
48 Safety PLCs
There are special safety PLCs which have redundant CPUs which monitor one another, and which have redundant mutually interlocked I/O, and which run safety reviewed software.
Anything connected to a safety PLC must itself be safety rated if it could affect the safety of the machine.
However, these are quite rare and are only used in certain special industries.
49
These are normally used in places where some programmed sequence of operations is required to render a system safe.
This is more commonly found in places such as oil refineries, chemical plants, or electric power generating plants than in typical factories.
--------------------
50 Safety and Cyber Security
This is a good place to bring up the question of safety and cyber security.
There have been a number of articles in the IT press recently about how PLCs could be indirectly affected by computer viruses and how this could cause dangerous safety problems in manufacturing equipment.
51
The premise is that they found security holes in software which runs on personal computers running Windows operating systems which are used to do things like record production data.
There are a number of software systems which are designed for this purpose, although SCADA systems are usually the ones mentioned.
52
I will briefly describe SCADA systems in a later episode.
For our purposes here however, just understand it as specialized industrial software that runs on a PC and conducts monitoring and display using data from a PLC that it is networked to.
53
According to these security researchers, a virus could exploit these security holes to send commands to the PLC and cause it to do arbitrary things which could cause injury or death.
The PLCs being referred to in this instance are ordinary PLCs, not safety PLCs.
54
I find these claims to be highly implausible for the reasons that I have stated above when describing safety systems.
An ordinary PLC is not a safety device, and so the safety of the machine should not be affected by a malfunctioning PLC, regardless of whether any viruses were involved or not.
55
I have seen PLCs malfunction due to memory corruption errors, but these posed loss of production problems, not safety problems.
A malfunctioning PLC may cause property damage to the machine and loss of money, but the control system, of which the PLC is only a part, should not permit it to pose a hazard to personnel.
56
I have not seen any of these security researchers offer any plausible mechanism by which their claims of safety problems may be realized.
As a result of this, I take all such claims with a very, very, very, large grain of salt.
--------------------
57 Conclusion
In this episode we looked at the I/O modules, what they are, how they work, and the purpose that they serve in the system.
In addition to this, we discussed machine safety systems and also claims made by certain people about cyber security and industrial safety.
58
In the next episode I will cover networking, including a detailed look at one industrial network protocol, called Modbus.
59
This has been the fifth episode in an 8 part series.
--------------------
Provide feedback on this episode.
More Education podcasts
Trending Education podcasts
About Hacker Public Radio
Hacker Public Radio is an podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that are of interest to hackers and hobbyists.
Podcast websiteListen to Hacker Public Radio, The Mel Robbins Podcast and many other podcasts from around the world with the radio.net app

Get the free radio.net app
- Stations and podcasts to bookmark
- Stream via Wi-Fi or Bluetooth
- Supports Carplay & Android Auto
- Many other app features
Get the free radio.net app
- Stations and podcasts to bookmark
- Stream via Wi-Fi or Bluetooth
- Supports Carplay & Android Auto
- Many other app features


Hacker Public Radio
Scan code,
download the app,
start listening.
download the app,
start listening.






























