You're prompted for a passphrase (should be at least 8 characters long.
Real-life apps should enforce a more strict
passphrase strength
policy).
If the file testsqlcipher.db
doesn't exist, it will be created
with this passphrase, otherwise - the passphrase should match
the existing db (or it can't be decrypted [hopefully]).
import npyscreen | |
class TestInstaller(npyscreen.NPSApp): | |
def main(self): | |
# These lines create the form and populate it with widgets. | |
# A fairly complex screen in only 8 or so lines of code - a line for each control. | |
f = npyscreen.Form(name="Example installer: edit an RPC url",) | |
fields = { | |
'username':f.add(npyscreen.TitleText, name="Username:"), | |
'password':f.add(npyscreen.TitlePassword, name="Password:"), |
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by toxic configure 0.3.3, which was | |
generated by GNU Autoconf 2.68. Invocation command line was | |
$ ./configure --enable-av | |
## --------- ## | |
## Platform. ## |
This sketch was replaced with a better one. Please go here
// A variation on the "fortune telling device" grove tutorial at | |
// http://www.instructables.com/id/grove-lucky-dumpling/ | |
// (same circuit). | |
// It's a "heart analyzer" that "can tell from your pulse" | |
// what you feel and about what. This gives 9*8 possible | |
// messages instead of the original 12, and by adding a | |
// few more "feel" and "about" entries, you can easily | |
// get a pretty large range. | |
#include <Wire.h> |
/* Pin definitions for MilCandy boxes | |
http://www.seeedstudio.com/wiki/MilCandy | |
Notes: | |
* McGroveIn2 and McGroveOut2 aren't used in [most?] Grove components | |
but if you use a breakout-cable/screw-ternimal/etc. it's the white cable. | |
* McBattIn is battery level | |
* McLightIn is a light sensor | |
*/ | |
// analog input(s) ("If" Grove jack) |
Some webcomics have RSS/ATOM feeds that include the images themselves. XBMC, however, require feeds to include the images as RSS enclosures. This script fetches a feed and prints an "XBMC-compliant" one to stdout. You can run a cron job that saves this to an http-accessible file on your pc. You can then use its URL as an rss picture source.
usaage: python webcomic2xbmc.py FEED_URL [IMG_URL_REGEXP]> myxbmcfeed.xml
Examples:
python webcomic2xbmc.py http://xkcd.com/rss.xml > ~/public_html/feeds/xkcd.xml
Zooming is essential when you read comics. If you have the 0-9 keys on your remote control, it's really easy and intuitive, but how can you read comics with an Android remote control app?
Luckily, the ff/rew buttons are not needed when you're in slideshow mode, so we can use them for zooming: Just copy zoom-ff-rew.xml
to userdata/keymaps/
and restart XBMC.
Ironically, by the time I got it going, the android ran out of battery. This made it look like a remote control from the 50s ;)
This tweak lets you see a ticker based on the [https://zzzen.com/420](global 4:20pm clock)'s feed, but with shorter phrasing (to minimize the damage of XBMC's merciless title truncation).
- Run these cron lines on a machine that serves static pages at
/PATH/TO/STATIC/WEB/FOLDER/
(you can even do this on the xbmc machine itself). - add the url of
420.rss
as an RSS source. Update every minute (it's a cheap operation).
Enjoy
Wallpaper credit: Ann Nocenti and Sean Phillips (Kid Eternity, issue #6, 1993).
See it live at https://thedod.github.io Please Put it [or a better version of it :)] on your site (don't worry. Close button sets a "don't show again" cookie). This is urgent.