Skip to content

Latest commit

 

History

History
227 lines (151 loc) · 9.59 KB

Raspberry music.md

File metadata and controls

227 lines (151 loc) · 9.59 KB

http://lifehacker.com/lifehacker-pack-for-linux-our-list-of-the-essential-li-815376368 http://lifehacker.com/top-10-uses-for-linux-even-if-your-main-pc-runs-window-1513172815 http://lifehacker.com/5790955/how-to-make-a-web-site-the-complete-guide https://github.com/makaimc/howdoistartup.github.io http://codecondo.com/category/business/

[Flat UI] (http://designmodo.github.io/Flat-UI/#) * from: [RuneAudio's credit] (http://www.runeaudio.com/credits/)

Flat UI -> BootStrap UI -> http://angular-ui.github.io/bootstrap/ , my question is: what's the different between angularJS and BootStrap? Google: angularjs vs bootstrap Google: angularjs and bootstrap -> http://www.quora.com/What-are-the-differences-between-bootstrap-and-angular-js

RuneAudio and Volumio is soso similar. So, what's the difference? Google: runeaudio and volumio Google: runeaudio vs volumio

Google: raspberry music player -> http://www.pimusicbox.com/ is a Headless audio player based on Mopidy (no need for a monitor), streaming music from Spotify, SoundCloud, Google Music, Podcasts (with iTunes, gPodder directories), MP3/OGG/FLAC/AAC, Webradio (with TuneIn, Dirble directories), Subsonic, Soma FM. - See more at: http://www.pimusicbox.com/#sthash.3z0vOWIV.dpuf The image is around 227MB in (compressed) size; 950MB uncompressed [Web Client for Mopidy Music Server and the Pi MusicBox] (https://github.com/woutervanwijk/Mopidy-MusicBox-Webclient)

Google: raspberry music server -> http://lifehacker.com/how-to-turn-a-raspberry-pi-into-a-private-streaming-mus-1583221462

Baidu: runeaudio -> [树莓派组建无线播放器 — 树莓派也玩hifi] (http://jy.smzdm.com/detail/30739)

new thing: i2s (firstly seen in [Raspberry Pi i2s DAC: why this sounds so good - Volumio] (http://volumio.org/raspberry-pi-i2s-dac-sounds-so-good/))

Google: raspberry audio image -> [Model B+ Audio Experiences] (http://www.raspberrypi.org/forums/viewtopic.php?f=35&t=81942)

the front page. [flat page] (https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/) is a good idea.

[Flat UI] (http://designmodo.github.io/Flat-UI/#) * from: [RuneAudio's credit] (http://www.runeaudio.com/credits/)

Google: flat ui

Flat UI -> BootStrap UI -> http://angular-ui.github.io/bootstrap/ , my question is: what's the different between angularJS and BootStrap? Google: angularjs vs bootstrap Google: angularjs and bootstrap -> http://www.quora.com/What-are-the-differences-between-bootstrap-and-angular-js

Google: flat ui -> http://flatuicolors.com/

Google: flat ui django -> http://programmers.stackexchange.com/questions/148489/how-to-develop-front-end-ui-for-my-django-website -> http://html5boilerplate.com/

http://make.wordpress.org/ui/tag/front-end-editor/


Everday Django Resources: RealPython https://code.djangoproject.com/wiki/DjangoResources (from: Google: django ui framework)

Hobototes template reloaded.

2014-09-10: inspired by RuneAudio. 多看一些時裝網站,看看人家的設計如何(不是如何設計,how to do)。例如:Logo/名字是置中的並且兩旁襯以帶弧的幼勾線,背景是近白色的(可能不是純白,而是帶有些非常淡色的白 texture)。

See the visual element / designmodo element.

the front page. [flat page] (https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/) is a good idea.

[Flat UI] (http://designmodo.github.io/Flat-UI/#) * from: [RuneAudio's credit] (http://www.runeaudio.com/credits/) * see also: http://codecondo.com/8-essential-design-tools-for-front-end-web-developers/


WordPress pinterest theme -> https://wordpress.org/plugins/wp-masonry-layout/ ->WordPress Themes: Pinterest -> https://wordpress.org/themes/pinpress -> "Masonry" -> Masonry layout -> jQuery pinterest | jQuery masonry -> http://masonry.desandro.com/ -> http://desandro.github.io/masonry/

-> masonry vs isotope


http://www.webhostingreviewboards.com/development/11-best-free-wordpress-development-frameworks-for-developers/


Google: it-ebook laravel -> Google: laravel code bright ebook

Laravel.Code.Bright.2014 http://www.foxebook.net/laravel-code-bright/#.UhrTDrTYyOY.scoopit -> http://www.embedupload.com/?d=0SA1RWGXWY

see also: http://kickass.to/usearch/laravel/ http://www.foxebook.net/?s=django


Replace MySQL with MariaDB

2014-09-10: My django apps respond slowly. I turn on htop & nmon to see what's happen then. There are 6 or more mysqld processes running at the same time! OMG! That's the reason why the Pi respond slowly as it has 1 core. Now, I am thinking of replacing MySQL.

Google: raspberry mariadb http://haydenjames.io/download-lemp-raspberry-pi-nginx-mariadb-mysql-php/ * http://haydenjames.io/mysql-query-cache-size-performance/ http://www.homecomputerlab.com/nginx-php-mariadb-wordpress-on-archlinux-on-a-raspberry-pi http://raspbian-france.fr/installer-mariadb-raspbian/ http://blog.pi3g.com/2014/07/easy-mariadb-installation/

There is no MariaDB package on Pi's repositiory. I have to [compile by myself] (http://raspbian-france.fr/installer-mariadb-raspbian/). Luckily, pi3g makes one: [Easy MariaDB installation | pi3g Blog] (http://blog.pi3g.com/2014/07/easy-mariadb-installation/)

However, I am not eazy to go with new MariaDB before try to tune the performance of the existing MySQL firstly. HayDen james writes an interesting article [MySQL Query Cache Size and Performance] (http://haydenjames.io/mysql-query-cache-size-performance/) and I am trying to figure it out now.

Install Nginx on raspbian and replace Apache Raspbian France: Installer Nginx Raspbian, et accélérez votre serveur web Raspberry

Port Forwarding


Wordpress cache

http://haydenjames.io/best-wordpress-cache-plugin-wp-ffpc/ (Google: raspberry mariadb -> http://haydenjames.io/download-lemp-raspberry-pi-nginx-mariadb-mysql-php/)


2014-09-14

Google: raspberry audio image -> [Raspberry Pi: Mopidy on a credit card] (http://docs.mopidy.com/en/latest/installation/raspberrypi/)

Mopidy is an extensible music server written in Python. http://www.mopidy.com/

Mopidy plays music from local disk, Spotify, SoundCloud, Google Play Music, and more. You edit the playlist from any phone, tablet, or computer using a range of MPD and web clients.

Load the IPv6 kernel module now:

 sudo modprobe ipv6

Add ipv6 to /etc/modules to ensure the IPv6 kernel module is loaded on boot:

echo ipv6 | sudo tee -a /etc/modules

Since I have a HDMI cable connected, but want the sound on the analog sound connector, I have to run:

sudo amixer cset numid=3 1

to force it to use analog output. 1 means analog, 0 means auto, and is the default, while 2 means HDMI. You can test sound output independent of Mopidy by running:

aplay /usr/share/sounds/alsa/Front_Center.wav

If you hear a voice saying “Front Center”, then your sound is working.

Add the archive’s GPG key:

sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/mopidy.list

Install Mopidy and all dependencies:

sudo apt-get update
sudo apt-get install mopidy

Finally, you need to set a couple of [config values] (http://docs.mopidy.com/en/latest/config/), and then you’re ready to run Mopidy.

When a new release of Mopidy is out, and you can’t wait for you system to figure it out for itself, run the following to upgrade right away:

sudo apt-get update
sudo apt-get dist-upgrade

Configure Mopidy

Need to config Mopidy.

A config file is created automatically when the 1st run of Mopidy. Therefore, I run it my issue a mopidy command, then I edit the generated configure file:

vi ~/.config/mopidy/mopidy.conf

Change the hostname to the location of the pi (Mine is 192.168.0.101), and as I put music in ~/Music:

[http]
enabled = true
hostname = 192.168.0.101
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname

[local]
enabled = true
library = json
media_dir = ~/Music
data_dir = ~/Music/mopidy/local
playlists_dir = ~/Music/mopidy/local/playlists
scan_timeout = 1000
scan_flush_threshold = 1000
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt

Each time I change the music files in the ~/Music folder (add, delete, etc), I need to let Mopidy know it:

mopidy local scan # see mopidy --help

Running Mopidy

To start Mopidy, simply open a terminal and run:

mopidy

For a complete reference to the Mopidy commands and their command line options, see mopidy command.

When Mopidy says MPD server running at [127.0.0.1]:6600 it’s ready to accept connections by any MPD client. Check out our non-exhaustive MPD clients list to find recommended clients.

###Stopping Mopidy

To stop Mopidy, press CTRL+C in the terminal where you started Mopidy.

Mopidy will also shut down properly if you send it the TERM signal, e.g. by using pkill:

pkill mopidy

[HTTP clients] (http://docs.mopidy.com/en/latest/clients/http/) [Web Client for Mopidy Music Server and the Pi MusicBox] (https://github.com/woutervanwijk/Mopidy-MusicBox-Webclient) [Moped - Web Client for Mopidy] (https://github.com/martijnboland/moped) (from: http://docs.mopidy.com/en/latest/ext/web/) [Mopify] (https://github.com/dirkgroenen/Mopify) (from: http://docs.mopidy.com/en/latest/clients/http/) [MPD] (http://en.wikipedia.org/wiki/Music_Player_Daemon)

h.m.pack-for-linux-our-list-of-the-essential-li-815376368 ゆうきちせ