Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr3797 :: How to submit changes to HPR

rho_n shows Ken how to submit changes to the new HPR static site.

<< First, < Previous, , Latest >>

Thumbnail of Ken Fallon
Hosted by Ken Fallon on Tuesday, 2023-02-21 is flagged as Clean and is released under a CC-BY-SA license.
git, hpr, code, pull request. 5.
The show is available on the Internet Archive at: https://archive.org/details/hpr3797

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:31:35

general.

HPR is switching to a static site and in today's show Rho`n explains to Ken how to submit changes to the code.


[user@pc fix]$ git clone gitea@repo.anhonesthost.net:rho_n/hpr_generator.git
[user@pc fix]$ cd hpr_generator/
[user@pc hpr_generator]$ git status
[user@pc hpr_generator]$ git checkout -b I70_Fix_links_to_audio

Edit the files. Once complete:


[user@pc hpr_generator]$ git add file/to/commit
[user@pc hpr_generator]$ git commit
[user@pc hpr_generator]$ git push origin I70_Fix_links_to_audio

You can now login to the rho_n/hpr_generator git repo and you should be able to see several branches.
Next to your branch you can press New Pull Request
The new pull request button
Review your changes and if you're happy press the green New Pull Request
Fill in the description and a detailed comment
Use the HPR convention [<issue number>] <brief_description> The brief description is usually based on the title of the issue
When Create Pull Request

Full show notes are available.


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2023-02-22 16:08:34 by Mechatroniac

Very cool

I don't know how much I could help but it looks like a fun way to learn more about git and what a static website entails as opposed to whatever is in effect now.

I am having trouble finding where to register.

I keep getting 'bad gateway' error here: https://repo.anhonesthost.net/rho_n/hpr_generator

If I go to anhonesthost.net it is an 'Index of' page, where there is a link to cgi-bin, that leads to '403 forbidden' when clicked.

The git clone command run in linux connects but asks for a password.

Where can I sign up to be a member?

Comment #2 posted on 2023-02-22 21:47:48 by norrist

Repo Location

It looks like we killed repo.anhonesthost.net.

Can the hpr_generator repo be moved to gitlab.com? Moving the repo would eliminate the need for an additional read only mirror, and we could take advantage to gitlab's CICD.

Comment #3 posted on 2023-02-24 21:23:02 by norrist

Automated build on Gitlab

I was able to get Gitlab CICD to build the HPR static site.

First step was creating a mirror of the HPR generator repo:

git clone gitea@repo.anhonesthost.net:rho_n/hpr_generator.git
git remote add gitlab_mirror git@gitlab.com:norrist/hpr_generator_mirror.git
git push gitlab_mirror main

Then I created a Gitlab CICD pipeline to:
- check out the hpr site generator from the mirror
- load the HPR daily mysql dump into a mysql database
- build the site
- publish to gitlab pages.

The CI project is https://gitlab.com/norrist/hpr_generator_build

The build is published at https://norrist.gitlab.io/hpr_generator_build/

Comment #4 posted on 2023-02-25 12:25:08 by rho`n

Sweet! nice work norrist

I was thinking of having a mirror on Gitlab or my own Gitea instance, but now that you've done the heavy lifting.... ;)

One minor modification to your site.cfg and your Gitlab pages will have the audio files and transcripts pointing to the correct spot on archive.org

media_baseurl: https://archive.org/download/hpr$eps_id/

Comment #5 posted on 2023-02-25 12:36:00 by rho`n

RE: Registering at https://repo.anhonesthost.net

Hi Mechatronic, if you goto https://repo.anhonesthost.net -- at the top right of the page there is a register button which takes you to a form to fill out.

It is not an automated process. It may take a day or two for your registration request to be processed.

I am looking into mirroring in a public location, just haven't made time to do that yet

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?