Zcash wallet backup addresses

I am busy mining Zcash. And of course, I want all this work to be safe and was thinking of a backup strategy. In my case I wanted not to export my complete wallet because some mining actions created a lot of t-addresses. So I chose to use the export of separate addresses. I have used this page with handy commands: https://github.com/zcash/zcash/blob/master/doc/payment-api.md

On the system with the original wallet I typed:

zcash-cli dumpprivkey t1dBkMCPvLKcQ3gDfG8MiZLvdQk4D9Z6pD

The return value is (fake of course): jKd9o4FY7mdgQ3gDfG8MiZLvdQga8JK3t58yjXGjQHzMzkGUxS

On the system I want to have this address in my new wallet I typed:

zcash-cli importaddress t1dBkMCPvLKcQ3gDfG8MiZLvdQk4D9Z6pD

zcash-cli importprivkey jKd9o4FY7mdgQ3gDfG8MiZLvdQga8JK3t58yjXGjQHzMzkGUxS

After a few hours, all transactions of this address were replicated to my new wallet. Tada!

Please note: You have to be sure that all funds are in this address. To make sure you have backupped the correct addresses, run:

zcash-cli listaddressgroupings

Your Tables

This plugins lets you define forms in the admin area for existing tables in your WordPress database.


Contributors: zerotop
Donate link: http://www.benjamindejong.com/your-tables
Tags: mysql, forms, table, crud
Requires at least: 3.1.0
Tested up to: 4.5.2
Stable tag: 1.0.0
License: GPLv2 or later (http://www.gnu.org/licenses/gpl-2.0.html)


Description

This plugins lets you define forms in the admin area for existing tables in your WordPress database.

The creation of forms to Create, Update and Delete records is a lot of work. This plugin lets you define the tables and its fields and generates the form for you. The definition of your tables and fields is done in the ‘Your Tables’ and ‘Your Table Fields’ items in the ‘Your Tables’ menu. This functionality is created using the Table definition functionality of this plugin itself. Drink your own Champagne!

These are its features:

  • Manage all tables in your WordPress database in the admin area
  • Create, Update and optionaly Delete records
  • Textbox, Dropdown, List, Radiobox, Checkbox, Date and Textarea support
  • Dropdown, List and Radioboxes can be filled with predefined values or with an SQL query that results in 2 columns (value,label)
  • Use one or more primary keys to select the correct record in your tables
  • Define what roles can use the tables
  • Optionaly change the functionality of the Table and Field definition forms
  • Language support (Currently English and Dutch language is available. We’re looking for translators!)

Request: Currently English and Dutch language is available. If you want to translate for us we will add your name here:

  • English translation: Benjamin de Jong
  • Dutch translation: Benjamin de Jong

Installation

This section describes how to install the plugin and get it working.

From your WordPress dashboard:

  • Visit ‘Plugins > Add New’
  • Search for ‘Your Tables’
  • Click ‘Install now’
  • Activate it after installation
  • Make the functionality available for other roles if needed using ‘Your Tables Settings’ under the WordPress Settings menu.

From WordPress.org:

  • Download ‘Your Tables’.
  • Upload the ‘your-tables’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  • Activate Your Tables from your Plugins page
  • Make the functionality available for other roles if needed using ‘Your Tables Settings’ under the WordPress Settings menu.

Screenshots

  1. An example of the list of records you can edit in a table
    An example of the list of records you can edit in a table
  2. An example of an edit form your a record in your table
    An example of an edit form your a record in your table
  3. The definition form for one field of your table
    The definition form for one field of your table

Changelog

1.0.0

  • Created the initial version

Pilot: Biblija Display Verse

This page contains the demo for a new plugin I am creating. Currently I have build a pilot version to get permission of Biblija.net to continue the development of this WordPress Plugin.

The aim of the plugin is to make it easy to display Bible verses in your blog. You don’t have to type them over, but you can add a shortcode to let it be displayed automatically. The bible verses will be downloaded from Biblija.net. A copyright notice and a link to the same piece on Biblija.net will be included also

Currenly I have built the following functions:

  1. Show maximum one chapter
  2. choose from all bible translations and languages available on Biblija.net
  3. a caching system. This make sure that the Biblija.net website will not be flooded with requests. The query outcome will be cached for one week

Examples

Shortcode: [Biblija_Display trans=”web” query=”gen 1″]:

- from Biblija.net

Shortcode: [Biblija_Display trans=”nbg” query=”joh 3:16-17″]:

- from Biblija.net

The future

When I get permission of Biblija.net I will make it available on WordPress.org as a free plugin and I will add the following functionality to it:

  1. More styling options for displaying the verses
  2. Documentation on how to use it
  3. default settings like translations and languages
  4. Configurable caching
  5. more tight restrictions on some translations (like Dutch translations, no more than 50 verses of max 50% of a chapter etc)

If it is a succes, maybe there are options to build a premium version also 🙂

Unexplainable redirect in WordPress

I manage more than 20 WordPress sites. At one of my sites, one of the pages was redirecting to the homepage. I couldn’t find out why and had to spend many hours to find it. I did the following:

  • I disabled all plugins and tried again. No success
  • I checked out the .htaccess file to find redirection rules. No success
  • I copied the site to a test location, and removed all the plugins. No Success
  • I removed all non WordPress-core tables. No Success
  • I opened up the wp-options table, and removed all non WordPress-core records. No Success
  • I banged by head against the wall, and teared out all my hair. No Success
  • I removed all pages and posts, except for my home page and the post that wouldn’t load. No Success
  • I downloaded a WordPress database cleaner and cleaned up all revisions and garbage. No Success.

Can you believe I was crying a 1000 tears?

Now my database was super clean. So I checked out the wp-posts tables. There is a field ‘post_name’. The post_name of my homepage had the same name as the post that wouldn’t load. After I changed that name, everything worked OK!

My lessons: When WordPress processes a URL, it loads all posts with the name in the URL and redirects to the first one. When there are more posts with that name, you can get undesired results 🙁

My questions: How can I see this in the WordPress Admin interface? I couldn’t find it and because of that, couldn’t change it. I’m I the only one?

Control Arduino ports via Serial communication

I need to control some wall outlets to turn them on or off at different moments in the day. I will use this to control the events in the fish tank of my wife. To tell the Arduino when to turn on or off ports, which are connected to relays, I have a PHP script that sends commands to the COM port which is connected to the Arduino.

The commands that I am sending are: 3:255&4:0&8:180. This puts the level on the analog port 3 (C02 gas) on the maximum, turns port 4 (bubbles) off and puts port 8 (Lights) at level 180. During the day, different values are sent.

This is the Arduino script that is behind this: