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/

LG Android QuickMemo+ Location

Posted: Tuesday, 22 September 2015

So, here's the full path to where LG's QuickMemo app stores the "memos" in the Android file system:

/data/data/com.lge.qmemoplus/databases/qmemoplus.db



For a bit of context, I "backed up" my LG QuickMemos from the "storage/emulated/0/Android/data/com.lge.qmemoplus" folder (friendly reminder to backup your LG phone with the official LG Bridge app), and started to delete some fairly important notes - or at least, notes that were important - since I had full faith in the back-up safekeeping any residue important information (so much so, in fact, that I cleared my clip tray, and emptied out the inbuilt QuickMemo trash).

Well, it turned out that the folder at "storage/emulated/0/Android/data/com.lge.qmemoplus" only contains the following: "Audios, Drawings, Images and Videos" - not the memos itself. And so, with a little bit of digging around the root directory, the actual path of the QuickMemo memo database was found.

Note that you may need root to access this folder (where rooting a LG phone is trivial).

Edit (October 2016)

Root is required to easily access the database file at the specified path.

So either chmod as root (to open the quickmemo database files for use without later root),

or,
su
cp /data/data/com.lge.qmemoplus/databases/qmemoplus.db /storage/emulated/0

An alternative method could be through recovering the LG (G4) Quickmemo+ file from a real backup, although it appears that the backup encrypts, or otherwise hides the database file.



The result of cutting Tempered Glass

Posted: Sunday, 20 September 2015

So what happens if you purchase an off-brand "tablet" device, and an incompatible "tempered screen protector"?

Well, you should throw the screen protector away, or at least donate it to a friend that you know has a device which the screen protector can fit on - because unless you have specialized machinery, cutting tempered glass with a pair of scissors, saw, or anything similar will simply break the screen protector.

To clarify, when you cut a Tempered Glass screen protector, the glass will immediately shatter at where you cut it.
So unless you've actually purchased a "fake tempered glass screen protector" - as soon as you apply pressure on the pair of scissors, the Tempered Glass will break, rendering it unusable...







N.B. I purchased two of these screen protectors since they were on sale, one for curiosity purposes (of course using anything outside of its intention has a high chance of destroying it), and the other for an actual iPad.