diff --git a/site-generator b/site-generator index 71ec176..405c849 100755 --- a/site-generator +++ b/site-generator @@ -116,8 +116,15 @@ use Pod::Usage; use Config::Std; use Text::CSV_XS; use HTML::Entities qw(encode_entities_numeric); +use Date::Calc; +use DBI; +use DBD::SQLite; +use Tie::DBI; use Template; +use Template::Plugin::Date; +use Template::Plugin::DBI; use Template::Plugin::HTML::Strip; + use Data::Dumper; exit main(); diff --git a/templates/content-about.tpl.html b/templates/content-about.tpl.html index 71c31ce..15f3e71 100644 --- a/templates/content-about.tpl.html +++ b/templates/content-about.tpl.html @@ -1,6 +1,7 @@ -
What differentiates HPR from other podcasts is that the shows are crowd sourced from the community - fellow listeners like you. There is no restriction on how long the show can be, nor on the topic you can cover as long as they are not spam and "are of interest to Hackers". If you want to see what topics have been covered so far just have a look at our Archive. We also allow for a series of shows so that hosts can go into more detail on a topic.
+======= +
What differentiates HPR from other podcasts is that the shows are crowd sourced from the community - fellow listeners like you. There is no restriction on how long the show can be, nor on the topic you can cover as long as they are not spam and "are of interest to Hackers". If you want to see what topics have been covered so far just have a look at our Archive. We also allow for a series of shows so that hosts can go into more detail on a topic.
+>>>>>>> 167_Several_templates_use_non-existent_absolute_url -
You can download/listen to the shows here or you can subscribe to the show in your favorite podcatching client to automatically get our new shows as soon as they are available. You can copy and redistribute the shows for free provided you adhere to the Creative Commons Attribution
You can download/listen to the shows here or you can subscribe to the show in your favorite podcatching client to automatically get our new shows as soon as they are available. You can copy and redistribute the shows for free provided you adhere to the Creative Commons Attribution
Hacker Public Radio (HPR) is an Internet Radio show (podcast) that releases shows every weekday Monday through Friday. HPR has a long lineage going back to Radio FreeK America, Binary Revolution Radio & Infonomicon, and it is a direct continuation of Twatech radio. Please listen to StankDawg's "Introduction to HPR" for more information.
@@ -35,8 +58,19 @@HPR is entirely community driven. Policy decisions are proposed and discussed on the Mailing list, which is open to anyone to join. Mailing list discussions are brought to the attention of the listening community on the first Monday of the month in the HPR Community News show. This show is also open to anyone to participate in. The schedule for the Community News shows can be downloaded as an iCal calendar containing recording dates for the next 12 months. A reminder is also sent to the mailing list in the week before the recording.
Our hosting is kindly provided to us by Josh Knapp from AnHonestHost.com, and he has the last word in issues related to site security. A changing team of volunteers called the "admins" or "Janitors", deal with the day to day operation of HPR. Acting as the first point of contact, processing the shows, coordinating policy discussions, removing spam, updating the website, etc. They are contactable via the email account admin @ HPR. They have no more say over policy than anyone else. Anyone who has shown a long term dedication to the project and is trusted by the community, can become an admin. +======= +
Hacker Public Radio (HPR) is an Internet Radio show (podcast) that releases shows every weekday Monday through Friday. HPR has a long lineage going back to Radio FreeK America, Binary Revolution Radio & Infonomicon, and it is a direct continuation of Twatech radio. Please listen to StankDawg's "Introduction to HPR" for more information.
+ +Hacker Public Radio is dedicated to sharing knowledge. We do not accept donations so please consider supporting our patrons. If you listen to HPR, then we would love you to contribute one show a year. Our shows are by default released under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. All the software we use is Free software. All the code we develop is published in our gitlab repository. All the media is available via the feeds. We are going through an audit process to release the website code as well.
+ +HPR is entirely community driven. Policy decisions are proposed and discussed on the Mailing list, which is open to anyone to join. Mailing list discussions are brought to the attention of the listening community on the first Monday of the month in the HPR Community News show. This show is also open to anyone to participate in. The schedule for the Community News shows can be downloaded as an iCal calendar containing recording dates for the next 12 months. A reminder is also sent to the mailing list in the week before the recording.
+Our hosting is kindly provided to us by Josh Knapp from AnHonestHost.com, and he has the last word in issues related to site security. A changing team of volunteers called the "admins" or "Janitors", deal with the day to day operation of HPR. Acting as the first point of contact, processing the shows, coordinating policy discussions, removing spam, updating the website, etc. They are contactable via the email account admin @ HPR. They have no more say over policy than anyone else. Anyone who has shown a long term dedication to the project and is trusted by the community, can become an admin. +>>>>>>> 167_Several_templates_use_non-existent_absolute_url
-See the section stuff you need to know for more information.
+See the section stuff you need to know for more information.
Our hosting is kindly provided by Josh from AnHonestHost.com. We would appreciate it if you could donate to help reduce his costs in funding the hosting. He is also accepting bitcoins to 1KsxJr9HtsdaUeU7yaV9bk9bQi21UPBtUq
@@ -54,12 +88,13 @@We are always looking for more hosts...
HPR is governed by the community, so decisions about how Hacker Public Radio should be run are made on the mailing list you can join it by going to :
/maillist
+=======
+
+ HPR is governed by the community, so decisions about how Public Radio should be run are made on the mailing list you can join it by going to :
+
+>>>>>>> 167_Several_templates_use_non-existent_absolute_url
Well you've come to the right place. Our goal here at HPR is to make it as easy as possible for you to get a podcast released. We take care of the hard bits so you don't need to. Recording your first show is always a daunting prospect but hundreds of people like yourself have done it and so can you.
-The first thing you will need to do is decide on a topic for your show. You might already have an idea but if not you can have a look at our Archive page for examples of shows people have recorded in the past. You can also look at our Requested Topics, or our Series page to see if you can add your knowledge to the pool.
@@ -184,8 +247,15 @@ If you can't think of anything to talk about then please just record a show telling us how you got into tech as a way to introducing yourself to the community. +<<<<<<< HEAD+ Please select more detailed information on how to record a show: +
+>>>>>>> 167_Several_templates_use_non-existent_absolute_urlDon't forget to introduce yourself in your show.
-Once you have your audio ready you can post your show by going to the Calendar page or press the ⇧Upload⇧ button.
@@ -209,12 +279,12 @@ More Information. -
Got any questions not covered here, then just email "admin" at "HPR", and we’ll get in touch with you with all you need to know about getting your show published.
You can chat with other podcasters using IRC in the #oggcastplanet channel on the libera.chat network. Follow us on identi.ca (use the tag !hpr) and on Twitter (use the tag #hpr). We have a Facebook and LinkedIn group, so please join and spread the word.
Fellow listeners like yourself contribute the shows and so we all know how hard it is to do that first show. You're probably worried that we won't like the topic. Well don't be, have a look at our Archive to see how diverse the contributions have been. You're probably worried about the quality of your audio, that you sound funny, that English isn't your native language, that you suffer from a speech impediment, that your show has loads of ummms and awws in it, well don't be. We have plenty of hosts that fall into all these categories but continue to produce great shows.
@@ -233,7 +303,7 @@This is a list of topics that have been requested by the community. Feel free to add it to the list by emailing admin at hpr or by tweeting us on @HPR.
The community decides the HPR policies. - Please join the HPR Mailing List to participate. + Please join the HPR Mailing List to participate.
- In exceptional circumstances it may be necessary to reserve a slot while not having the audio available, but this must be approved by the HPR Mailing List in advance. + In exceptional circumstances it may be necessary to reserve a slot while not having the audio available, but this must be approved by the HPR Mailing List in advance. Be sure to allow as much time as possible, and include a reason why you feel it is necessary to reserve the slot.
@@ -542,7 +612,7 @@
Feel free to use the promotional material to spread the word in your podcasts, or have them played on to other shows.
- Any host can select any free slot a up to year in advance, by recording their show and uploading it to the desired slot. In exceptional circumstances it may be necessary to reserve a slot while not having the audio available, but this must be approved by the HPR mailing list in advance. Be sure to allow as much time as possible, and include a reason why you feel it is necessary to reserve the slot. + Any host can select any free slot a up to year in advance, by recording their show and uploading it to the desired slot. In exceptional circumstances it may be necessary to reserve a slot while not having the audio available, but this must be approved by the HPR mailing list in advance. Be sure to allow as much time as possible, and include a reason why you feel it is necessary to reserve the slot.
This is intended only for exceptional circumstances, such as a scheduled interview where we would like the audio to be released as soon after the event as possible, or to cover an important topical situation that has occurred. Due to the extended time now needed to post shows to external sites, the extra work this entails and the disruptive effect of reservations, we will no longer be allowing them except in very rare cases of the type mentioned above. [?] @@ -747,8 +817,13 @@
Similarly, a summary helps to add more information describing the show so a potential listener can decide whether to listen to it or not.
Each show is expected to have certain mandatory attributes listed below.
HPR shows are usually expected to be informative or educational, and as such some sort of accompanying written material is highly desirable. This might consist of brief notes, links to relevant web sites, or possibly longer notes and examples. Photographs, diagrams and example files are also welcome if the host feels it helps to get the message across.
Shows are released under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. See Stuff you need to know for much more detail about this and related issues.
As a contributor you can choose when your show will be released. We only release one show a day, during week days, but if a slot is free you can claim it. Go to the calendar page to do this. You need to have your show ready to upload before you reserve a slot though.
Shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported license. See Stuff you need to know for much more detail about this and related issues.
As a contributor you can choose when your show will be released. We only release one show a day, during week days, but if a slot is free you can claim it. Go to the calendar page to do this. You need to have your show ready to upload before you reserve a slot though.
+ On this page you will find information on how to record a podcast. Our golden rule is Any audio is better than no audio. so keep that in mind. Don't forget to introduce yourself in your show. +
+ ++ Many of today's portable media players support recording audio out of the box. Search for "Voice Recorder", to see if there is an application for your smartphone. Whichever option you have close to hand, try and set the recording to the best quality format (WAV or FLAC), and set everything else to the highest setting. It's always the goal to get the best quality audio but here at Hacker Public Radio we value content over quality and so long as it's audible we'll take it. +
++ Then just record your show, request a slot, and we'll do the rest. +
+ ++ Some of our hosts recommend Android Audio Recorder on my android phone. It's available on F-Droid and Google Play. These are the recommended settings: +
++ The majority of podcasters use Audacity. First set the Project Rate to 44100Hz, then you can either record your show in Audacity itself or import the file you recorded earlier and edit it as you wish. +
++ +
+Audacity is a free, easy-to-use and multilingual audio editor and recorder for Windows, Mac OS X, GNU/Linux and other operating systems.+ +
+ When you have finished editing your podcast you can export it. +
++ +
+ ++ If you want to record a one-to-one interview with someone then you can use Skype in conjunction with Skype Call Recorder. If everyone is using skype then it won't cost you anything otherwise you will need to pay for SkypeOut service. Although the quality is usually terrible, you could also put your phone on hands free and record with a portable media player. +
+ +
+ If you would like to record with multiple participants then you can use Mumble. Connect to chatter.skyehaven.net Port: 64738 .
+ Walk through the audio wizard and then pop into the Hacker Public Radio room. Once you are ready press the recording button, select multichannel and then start. That will record multiple tracks, one for each participant which you can edit and then submit.
+
+ Kwisher made a Mumble tutorial which you might find useful and Delwin has produced a number of short shows on how to configure the audio quality.
+
+ +
+ +
+ You may include backing music but it's best if you don't. Most long time podcast listeners speed up their shows, as this allows them to cram more shows into a day. Having bedding music makes it more difficult to understand, and prevents tools like truncate silence from working correctly.
+ Others will convert shows to mono to listen in one ear leaving the other free to carry out their other chores. Still more slow the shows down so that they can improve their English. Others are hard of hearing and backing music makes it difficult to understand the text.
+
+ We will by default mix down your show to one channel mono and we will transcode to MP3, ogg and spx formats. If you want to control this in more detail then please email admin at Hacker Public Radio for more information. +
+ ++ There is no need to add any information to the file as that will be inserted based on the information you fill in when you upload the show. +
diff --git a/templates/content-request_a_slot.tpl.html b/templates/content-request_a_slot.tpl.html new file mode 100644 index 0000000..8196707 --- /dev/null +++ b/templates/content-request_a_slot.tpl.html @@ -0,0 +1,139 @@ + ++ Any host can select any free slot a up to year in advance, by recording their show and uploading it to the desired slot. In exceptional circumstances it may be necessary to reserve a slot while not having the audio available, but this must be approved by the HPR mailing list in advance. Be sure to allow as much time as possible, and include a reason why you feel it is necessary to reserve the slot. +
++ This is intended only for exceptional circumstances, such as a scheduled interview where we would like the audio to be released as soon after the event as possible, or to cover an important topical situation that has occurred. Due to the extended time now needed to post shows to external sites, the extra work this entails and the disruptive effect of reservations, we will no longer be allowing them except in very rare cases of the type mentioned above. [?] +
++ You can post your show by going to the Calendar page. Once you have selected a date you will be redirected to the request page, where you will be asked to select your show and email address. We will send a link to where you can upload your show to this address and therefore it must be a valid working address that you can access quickly. We intend to use GPG to speed up the validation of hosts, so you may wish to use an email address that has an associated public key available on public key servers. +
++ The audio of your show will not be moderated, however the information provided in the upload form may be moderated. All publicly facing material is managed by the HPR Community as a whole, and not just the host providing the show. The show hpr2210 :: On Freedom of Speech and Censorship describes the agreed approach to this topic. +
+Note: This email address will be published on the HPR website and will be given out in the feeds, so please use a public email address for this purpose. Where we publish it we pad it with dot nospam at-sign nospam dot.
+ i.e. hpr@example.com becomes hpr.nospam@nospam.example.com. If you do not want to have your email exposed, please contact the admin@hpr team to arrange a alias.
+
+ Once you press next, an email will be sent to your email address pointing to where you can upload the show. You need to open the link within 15 minutes or the temporary lock will be released. Once you open the link, you can fill in the information at your leisure. The upload form works on the assumption you will be posting one show at a time, from the same IP address. Once you have pressed submit you will not be able to edit any of the information. +
+ + ++ The unique link sent by email will allow you to manage both the episode and information about yourself that is displayed on HPR. The following information will be requested: +
+
+ Remember All information will be displayed publicly. The only exception is that your email address will be sent in the feed with some anti-spam additions.
+ For example hpr@example.com will become hpr.nospam@nospam.example.com
+
+ Your profile information is used on the website, in the RSS feeds, and on social media sites. You can change your profile information at any time, by submitting another show. +
++ http://www.hackerpublicradio.org/eps/hpr9999/index.html + http://www.hackerpublicradio.org/eps/hpr9999/other-file.pdf + http://www.hackerpublicradio.org/eps/hpr9999/yet-other-file.c + ... ++ Ensure that all links are full urls, as relative urls will not work in RSS feeds. Adding additional files will delay processing as they need to be verified manually. +
+ Press submit and your show will be sent to the HPR Volunteers to be processed. Keep an eye on the calendar for when it is posted. + Your show information is used to process the media files, on the website, in the RSS feeds, and on social media sites. +
diff --git a/templates/content-requested_topics.tpl.html b/templates/content-requested_topics.tpl.html new file mode 100644 index 0000000..1aa5b19 --- /dev/null +++ b/templates/content-requested_topics.tpl.html @@ -0,0 +1,59 @@ + +This is a list of topics that have been requested by the community. Feel free to add it to the list by emailing admin at hpr or by tweeting us on @HPR.
+