__PUBLISH__ = Idea is to reboot the radio station. = == Things to do: == * Download more tracks, add more tracks. * Proper https (cert in icecast?) * Cronjobs for automation of specials and other things. Making playlists etc. * Use ActivityPub for Special shows, so that you can follow an announcement bot. * https://rocket.rs/v0.4/guide/testing/ * or Kroeg, see below * also download links? * Redesign front page with disclaimer, timetable and follow button * == working with rust and kroeg == * currently have rustc(rust compiler, rustup (installer) and cargo(package manager) installed. * switched to the nightly version or rustc (for Kroeg) * trying to install diesel_cli (maybe missing postgresql) * Diesel is a Query Builder for Rust (users::table.load(&connection) in Rust code execute SELECT * FROM users; in for example mySQL) * The problem here was missing libpq-dev, kind of badly documented by Diesel * installation steps not very clear. * diesel cli finally installed with: * cargo install diesel_cli --no-default-features --features "postgres" == Rabbit Hole section == It's the middle of the night in Bacolod: Current problems with using Kroeg. *Very limited knowledge of Rust + rust ecosystem *Very limited knowledge of Postgresql Starting to do a tutorial in Rust, actually need better way of working in VIM *installing NEOVIM **It needs a bundler for plugins like Vundle? **Its there : https://github.com/Shougo/neobundle.vim ***no wait here: https://github.com/Shougo/dein.vim *wrote a vimrc file, combining bits from dein.vim and http://nerditya.com/code/guide-to-neovim/ vim actually looks kinda neato now. vim is great until you have a directory of multiple files. the amount of different(often not working) answers to how to paste from one file to another is kinda stupid. Still true: And the reality is that vi is amazing when you have to type a lot, and generate tons of code. You know what sort of programmers generate tons of code? -> Mediocre programmers. Also true: While vim glorifies typing, because that’s the only thing that it can do, the rest of editors go beyond 1960 in computing and use a mouse. hmmm? Vim is a piece of crap because the amount of things you have to learn to use it proficiently have no valid use outside it. back to rust https://static.rust-lang.org/doc/master/book/getting-started.html Aha! Cargo is Rust’s build system and package manager install vim plugin for .toml syntax too.. cargo new cargo_test --bin makes a: * new git repo * with inside a folder for src * and a toml file for dependencies * thats pretty cool added a dependency to my first cargo.toml file, rand v0.3.0 Cargo build, then updates your crate index, downloads the needed dependencies, compiles them, plus your own src. **Crates.io. Crates.io is where people in the Rust ecosystem post their open source Rust projects for others to use. ** half way here:https://static.rust-lang.org/doc/master/book/guessing-game.html ** ok done with this tutorial === Rabbit hole number 2 The Rocket section === Rocket has launched from http://localhost:8000 Epiphany moment: * Rewrite the radio website with Rocket, can help me get rid of the https problem by putting the enitre webpage in Rocket * Stream and all. * And get rid of Jquery too. following this. https://rocket.rs/v0.4/guide/overview/ Nice, its easy to make routes with this, but I don't need them Templating is what I need, and rocket has Tera and handlebars https://github.com/Keats/tera Templating, it seems pretty straightforward. it's basically Jinja2 but for Rust. Just need to load the old Radio website en replace the ANSI art inside the pre tag and load the track info in some other place, maybe this time also occasionally generate track download links? https://handlebarsjs.com/ I don't like the marketing of this, but maybe this is a more straightforward solution, also because JS based might be good to use for reloading the track info without reloading the page.