Giter Club home page Giter Club logo

rubik.zip's Introduction

rubik.zip's People

Contributors

rubiksw avatar

Watchers

 avatar

rubik.zip's Issues

Test Post

image

I didn't really expect to get this involved in making a website that won't get any traffic besides Chinese bitcoin miners trying to brute force my shit. Surprising I'm having a lot of fun with it. I'm essentially using GitHub issues to make these blog posts.


I'm thinking in the future I'll use this blog to talk about coding and (probably) a lot of Garry's Mod. I'm looking to start working on S&Box soon so I'll probably be posting a lot of content about that as well.

FFMPEG+Icecast - playback stops after some time in <audio> element (help me)

image

I set up a looping .mp3 stream using ffmpeg (https://trac.ffmpeg.org/wiki/Concatenate) and Icecast. Everything works great, it’s been running on a loop for months. Here's the issue - if I try to play the stream inside an audio element, the playback will stop after some time until the user reloads the page. Usually 1-5 minutes or when the song changes. If I play the stream directly in the browser or from a WebKit-based browser, playback does not stop between songs. Does anyone have any idea why this might be happening?

Someone mentioned that it may be an issue with how Chromium handles new headers. It doesn’t happen on iOS. If you want to try and reproduce this yourself, try and play one of my streams for a few minutes.

Here is my ffmpeg prompt:

ffmpeg -stream_loop -1 -nostdin -hide_banner -nostats -loglevel panic -re -f concat -safe 0 -i /var/www/audio/brainfuel.txt -f mp3 -b:a 128k -ar 44100 icecast://source:xxxx@localhost:8088/brainfuel

iOS Shortcuts

I take a ton of photos at work and 99.99% of them remain on my phone for years until I run out of storage space and am forced to delete them manually. Deleting a specific set of photos on an iPhone without accidentally deleting ones you want to keep is near impossible. The best solution I found for my specific situation is to allow the storing of location data within the camera app, then use the photos app's "Places" tab to delete all the photos from that location. Here's where it gets hairy - unlike an album, when you select a location, there is not a "select all" button. You have to literally click each photo one by one or drag your finger from the first photo to the last. With 10k+ photos this can take upwards of 30 minutes as my brain melts watching the photos scroll for what seems like an eternity. There has to be a better way, Apple.



I've used the Shortcuts app on iOS in the past to automate some of my routines. For anyone that doesn't have an iPhone, Shortcuts are basically mini scripts you can program to do certain actions. For example, when I want to unwind before bed I turn on the 'Do Not Disturb' mode. Shortcuts will check if I'm connected to my home WiFi and will talk to my thermostat to set the temp to where I like it for sleep, then turn off all the lights. This all happens with a single button press and it's pretty useful. So back to my initial problem with the photos, what if I could create a Shortcut to do all this work for me and delete every photo within say a 1 mile radius of where I work? It's not perfect but if it saves me 15 minutes per month I'd say it's worth it.



So basically I get all of my photos and store this as a Count. I then run a Repeat for Count, get the location for each image, calculate the Distance from where the photo was taken to my work. I then add the photo to a "Cleanup" folder if Distance is < 1. I'm sure there is a way to do this faster but it works.



image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.