Raspberry Pi - Raspbian Apt Mirrors

Posted: Friday 20 November 2015

Jump to the list of sources/mirrors (in apt sources.list format)

Raspberry Pi's entire website down?






Can't access the Raspberry Pi mirror redirector?


Well, here's a bunch of sources that you can add to /etc/apt/sources.list to get yourself back on your feet - in case of another shutdown of the Raspberry Pi foundation's websites.

Last updated: November 2015. List based on a cache of: http://www.raspbian.org/RaspbianRepository

Jump to the list of sources/mirrors (in apt sources.list format)


Regions & Countries:
  • Europe
    • United Kingdom
    • France
    • Ireland
    • Germany
    • Italy
    • The Netherlands
    • Belgium
    • Switzerland
    • Sweden
    • Portugal
    • Slovenia
    • Austria
    • Hungary
    • Denmark
    • Slovakia
    • Czech Republic
    • Russia
    • Poland
    • Moldova
    • Latvia
    • Lithuania
  • North America
    • United States
    • Canada
  • South America
    • Brazil
    • Colombia
    • Ecuador
  • Oceania
    • Australia
    • New Caledonia
    • Vanuatu
  • Asia
    • Singapore
    • China
    • South Korea
    • Japan
    • Indonesia
    • Israel
    • India
    • Taiwan
    • Bangladesh
    • Philippenes
  • Africa
    • South Africa


It is recommended that you only choose the mirrors that are hosted in the country/region closest to you.

Also, have a copy of the mirror list, but instead of it being the latest debian release, point it to an older version.
i.e.
Have both "deb http://mirror.aarnet.edu.au/pub/raspbian/raspbian jessie main contrib non-free rpi"
and "deb http://mirror.aarnet.edu.au/pub/raspbian/raspbian wheezy main contrib non-free rpi"
in the same file.

Don't forget to "apt-get update" after you have modified "/etc/apt/sources.list"!


Caps/Scroll/Num Lock Toggler for Windows

Skip to download section

If you have a keyboard that does not have built-in Scroll Lock/Num Lock capabilities (such as the Microsoft Wireless Arc Keyboard - pictured below),

Then here’s a program that will toggle Scroll Lock/Caps Lock and Num Lock via software.

Download

http://static.extramaster.net/KeyboardLockTool.exe (413KB)

MD5: A7D6EF9C0A528C28198CEE4C907A8671
SHA-256: F90F46A618D70C1436DD9ABA38EA9F68B2CCCC354274E63FAF3B82B1344C8DA7

VirusTotal Scan:
https://www.virustotal.com/en/file/f90f46a618d70c1436dd9aba38ea9f68b2cccc354274e63faf3b82b1344c8da7/analysis/1447947391/
Works with Windows 10. A wired keyboard with Num lock/Scroll lock/Caps lock LEDs light up, indicating that this program is not hardware-dependent.

Demo

Tags:
windows force scroll lock
microsoft wireless keyboard scroll lock
microsoft arc keyboard scroll lock
trigger scroll lock without keyboard
trigger scroll lock

Playing MIDI tracks from an Arduino

Posted: Thursday 29 October 2015

Link: https://www.extramaster.net/tools/midiToArduino/

Table of Contents (TOC)


^ TOC

So, you just learnt how to control a buzzer using an Arduino, but you want more then just simple beeps and hums - you want to assert your dominance over the sound-waves to show-off how well you can control the buzzer.

Cynical? Well there's no denying that it's a sentiment that we all share once we learn something new, but hey, if you've managed to acquire and get an Arduino working, then that's quite far an accomplishment.

A quick search of "music buzzer arduino" should point you to the right direction, but no-one has the time to individually hand-code and map the midi-tones to the frequency values that the Arduino's Tone function requires, especially if you're working with a long MIDI track.

The solution?

https://www.extramaster.net/tools/midiToArduino/

Circuitry

^ TOC

Wiring the Buzzer is trivial, just place the buzzer on two strips (on a breadboard), connect one strip to Pin 11 on your Arduino, and the other strip to the Ground.

Demo

^ TOC
https://www.youtube.com/watch?v=B1oHQzp1P3w
https://www.youtube.com/watch?v=4FDFpycApP4

Note that this also works with Raspberry Pis.
https://www.youtube.com/watch?v=HOisQF-JaS0


Steps/Instructions

^ TOC
  1. Visit: https://www.extramaster.net/tools/midiToArduino/
  2. Upload a midi file
  3. Choose the track that you want to export
  4. Copy the resulting code to a new Arduino sketch

Sample Exported Arduino Code

^ TOC

Didn't get the midi file to work with the web app? No worries, here are some sample code generated by the web-app

Midi: Fleuron-128 - Heaven - Song: Shaun Frank & KSHMR - Heaven (feat. Delaney Jane)

Midi: Antergy - DB15 - Song: Atmozfears - DB15

Midi: Kevin Fishburne - Terra's Theme - Song: Final Fantasy VI - Terra's Theme

https://www.extramaster.net/tools/midiToArduino/

Final Notes

^ TOC Oh, and by the way, it appears that you can leave the Piezo buzzer running on loop for an extensive amount of time (24 hours+), so if you want to play a midi indefinitely, you can use an Arduino to do so.

Unfortunately, you can only have one tone running at a time, so if your midi track has multiple keys being played simultaneously, expect some wacky results. (here - try this: http://www.forelise.com/midi - "Track 2: Acoustic Grand Piano - Piano - Fr Elise")
If you attempt some protothreads hack, then expect only one Piezo buzzer to work (at a time). But if you're game, and want to give using protothreads a try:





https://www.extramaster.net/tools/midiToArduino/