cbothner / readback Goto Github PK
View Code? Open in Web Editor NEWThe WCBN Database – Playlists, Schedules, DJs, and Trainees
Home Page: app.wcbn.org
License: MIT License
The WCBN Database – Playlists, Schedules, DJs, and Trainees
Home Page: app.wcbn.org
License: MIT License
especially interested in CRUDing a Song
Listeners could star their favorite DJs and sign up for reminders when that DJ is about to go on, even when that DJ is subbing. Could deliver notifications in any of a number of ways, including push notifications to mobile apps.
Depends on #5.
Request to whitelist everything under .wcbn.org domain
Specifically, I'm implementing a client-side infinite scroll for the playlist archive which requires this
Local businesses who are kind enough to donate in exchange for semester long bouts of thank you messages on air have told us they don't know when their contract expires. Given the semester to semester turnover of station staff, it's tough to remember when to follow up. Readback could keep track of underwriting contracts and send reminder emails on expiry.
This depends on #2
yarn
blows up when trying to download the fsevents binary that I'm guessing they removed from their aws storage
solving should just be a matter of updating dependencies, probably webpacker in particular
This needs to support complex recurring events, like those we would need for PSA signoffs. Very important for donor notification announcement sign offs that we would use for underwriting.
@dctalbot started cleaning up some semesters that were created in error but ran into some problems. Likely, the automatic destruction of dependent relations was aborted because some of the episodes had songs already, and
class Episode < ActiveRecord::Base
has_many :songs, dependent: :restrict_with_exception
https://github.com/cbothner/readback/blob/master/app/models/episode.rb#L11
I jumped in after he'd deleted the Semesters and the FreeformShows, SpecialtyShows, and TalkShows that belonged to them. There were a bunch of orphaned Episodes that needed to be cleaned up because their nil show
association was causing exceptions on DJ pages.
I cleaned them up like this:
episodes = Episode
.joins("LEFT JOIN freeform_shows ON episodes.show_id = freeform_shows.id AND episodes.show_type = 'FreeformShow'")
.joins("LEFT JOIN specialty_shows ON episodes.show_id = specialty_shows.id AND episodes.show_type = 'SpecialtyShow'")
.joins("LEFT JOIN talk_shows ON episodes.show_id = talk_shows.id AND episodes.show_type = 'TalkShow'")
.where(freeform_shows: { id: nil }, specialty_shows: { id: nil }, talk_shows: { id: nil })
# Sanity checked their timestamps
episodes.map(&:created_at).map(&:beginning_of_day).uniq # Aug 23, Aug 29, and Aug 31, 2021
# Tried this
episodes.destroy_all # ActiveRecord::DeleteRestrictionError (Cannot delete record because of dependent songs)
# Then forced the cleanup
episode_ids = episodes.pluck(:id)
episodes.delete_all
Song.where(episode_id: episode_ids).delete_all
SubRequest.where(episode_id: episode_ids).delete_all
Setbreak.where(episode_id: episode_ids).delete_all
401 Unauthorized, looks like a credentials thing
Ask each DJ to specify when they are and are not available to aid coordinators in planning the schedule.
I built the react native app and now I want to get it to run in the browser 🤓
But I'm getting a CORB error. I've actually never ran into CORB before, but can we try adding a Access-Control-Allow-Origin: *
response header?
<input type=file>
with opacity: 0
in a <label>
with the image. Maybe shade the image and put an icon or “edit” text on.Maybe written in React?
As it stands, previous semesters shows can only be copied at their current timeslot. Shows which are moving our more often re-create it from scratch. However if show information changes across semesters, there is no way to know that they are the same show. As it stands, previous semesters shows can only be copied at their current timeslot. Shows which are moving our more often re-create it from scratch. However if show information changes across semesters, there is no way to know that they are the same show. A catalog of previous semesters shows which could be copied into a new semester at any time slot would make this easier.
When someone takes a sub request, there is a flash message that says "You’ve signed up to cover for ___" but instead of displaying the asking DJ's name, it displays the fulfilling DJ's name
A new guy is really pushing it: https://app.wcbn.org/freeform_shows/797
With the new transmitter we'll have RDS capabilities to display song information on digital radio interfaces
Superuser in particular
those damn socialists are treading on our freedom again
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
Trainee sign-up form should be accessible to trainers designated by the Training Director
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.