Giter Club home page Giter Club logo

lemonade's Introduction

lemonade's People

Contributors

kevinwoodward avatar reschouw avatar amitkhatri avatar

Watchers

James Cloos avatar  avatar Tarik Zeid avatar  avatar  avatar

lemonade's Issues

We should decide on an absolute install location

Using temp files and playlist files means there will have to be a shareable path between users. Two options:

  1. Make the install directory be static, in a location such as /opt/share/ which all linux users have

  2. Maintain a relative directory on a per user basis, referencing it whenever an internal file must be read/written

Getting music to play

The branch "boilerplateMPD" has a stub that sucessfully opens an MPD connection. The next step is to figure out how to send music files down to the server.

Directory where internal use files are stored needs permissions

The location /usr/share/lemonade directory was chosen to have a constant location all distros would have. Because it is a root level directory, it must obtain permissions for the program to write a file to the location.

To do this:
sudo mkdir /usr/share/lemonade // can skip if it exists already
sudo chmod 777 /usr/share/lemonade

Race condition in specific usage case

The system() function in C is supposedly synchronous, however the screen command to instantiate a new screen must spin off at least one independent child process, which makes the creation of a new screen not synchronous. This results in the command to play a song/playlist execute before the screen to play the song/playlist is even created.

This is only an issue if the song/playlist command is sent within less than a second of the screen being created, which shouldn't be an issue in actual use cases (user has to navigate to songs, press play, etc). It will be noticed maybe 1 in 10 times if the debug backend flags are used (such as -s, -l).

Without the use of multiprocessing this isn't a trivial issue unless we want to build and deploy our own version of the screen package with lemonade which is way out of scope for the project.

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.