Easiest Way to Remove Lots of Dirt

I need to remove quite a bit of dirt from my backyard and thought that breaking up the dirt with a rented tiller and then shoveling the dirt aside by hand was sufficient. The problem is it’s a lot quicker to break up the dirt with a tiller than it is to move the dirt by hand so you end up not being able to use the tiller often enough in a short period of time making rental cost expensive. Also, manually moving lots of dirt by hand is incredibly tiring and time-consuming. Though renting an excavator seems like overkill ad expensive for a residential backyard, it’s actually not considering how easy it is to use and how quickly you can get a project done.

With two people working, one breaking up dirt with a tiller and the other moving dirt using an excavator, the project of removing dirt took only a day. The following tools were rented from the Home Depot.

  • Baretto Hydraulic Tiller – ~ $159 per day
  • Yanmar Mini Excavator – ~ $350 per day

Note:

  • There are many tillers but the best is the Baretto hydraulic tiller. It’s huge but it can break up hard dirt that hasn’t even been softened with water. It’s also easy to use but due to its size, it can’t break up dirt along edges like along a fence. This tiller also comes with a mini trailer so you can just tow it.
  • The mini excavator is 2′ 4″ wide so it can fit through a standard 3′ wide fence gate. It takes diesel gas but is very efficient.

Tip:

When using the tiller, you can pull the trigger to have the engine move the wheels forward and in reverse. However, the movement is very slow which is fine for when you’re actually tilling dirt. When you need to move the tiller from the trailer to your dirt, it’s must quicker and quieter to unlock the wheels and manually push the tiller with the engine off. To do that,

  1. rotate the ring that’s attached to a large pin that goes into the wheel rim until the small pin that sits perpendicular to the large pin is aligned with the opening
  2. pull the ring so that the small pin comes through the open and then rotate the ring so that the large pin is held out thereby unlocking the wheel from the engine. if you are unable to pull the ring, rotate it clockwise a few times and try again.

How to Straighten Weed Trimmer Line

I have the MaxPower PivoTrim weed trimmer head because the spool type trimmer heads always get tangled. The MaxPower PivoTrim head makes replacing trimmer line super easy.

When I ran out of the trimmer line that came with the head, I bought a spool of new trimmer line. Unfortunately, when you cut some trimmer line and install it in the head, the line curves up or down instead of pointing straight out. So, I found a way to straighten the trimmer line. Below is a picture of the line straightened (left) and before it was straightened (right).

To straighten the line, I cut the line to length, stapled each end down to a piece of 2×4, took a heat gun and carefully heat up the plastic line to soften it and cause it to take on a new shape.

Then, I folded the straightened line in half and stapled each end down to the 2×4 and heat up the folded end so that it would remember that position.

The end result is trimmer lines that are straight and cut weeds better. Note, you may have better performance if you remove the plastic guard on the trimmer shaft.

Fix Out-of-Sync Audio When Rendering mp4 Videos

If you take an mp4 (mpeg-4) video and put it in a video editing program like Corel VideoStudio and then render the same video without any other assets (images, audio, other videos, etc), then you may find that the resulting video becomes out-of-sync with the audio. To fix this, you can use Avidemux as follows.

  1. Open the mp4 file in Avidemux
  2. In the Audio Output section, check the Shift checkbox and enter a value in the time field. Note that 1 second = 1000 ms. For me, I found that 500 ms works.
  3. Hit the play button and update the time shift value until the audio and the video are in sync.
  4. In the Output Format section, choose Mkv Muxer. This will produce an mkv file. If you choose mp4 muxer, then the output audio will be out of sync with the video again. You can upload mkv files to YouTube.

Test Rest APIs Using Postman

Testing HTTP connections and Rest APIs can easily be done using Postman. This handy tool allows you to provide HTTP headers, among many other things, to test connections and view responses.

Here’s a test of querying a Rest API from restdb.io. The query URL is https://testdb-cd69.restdb.io/rest/people. For authentication, an HTTP header called “x-apikey” is provided with its value (redacted). The response from the call is in the body panel in JSON format.

Restdb.io – Super Simple, Low Code CMS and Database Backend for Web Apps

If you need a quick and easy way to create a CMS (content management system) or a database backend for an app, then Restdb.io will amaze! Here are some features:

  • super developer-friendly with crystal clear documentation
  • affordable and even has a free plan
  • example code for popular programming languages, including client side JavaScript and server side NodeJS, which makes it quick to get up and running
  • webhooks whenever a record is created, updated or deleted
  • codehooks to run custom code before and after a record is created, updated or deleted, e.g. for data normalizing and validation. codehooks also support scheduled tasks like cron jobs.
  • auto-generate test data to seed a table
  • ability to import data from a CSV file
  • native and custom field validation
  • non-technical users can log in and add/edit/delete records using intuitive forms and controls without seeing any developer features
  • ability to upload and host images and files

Below is a tutorial on how to create a simple CRUD (Create, Read, Update, Delete) app using Restdb.io with a PHP backend.

1. Log in to Restdb.io account and create a table (collection)

After you log in, you’ll need to be in Developer Mode to create a table. When creating fields in the table, Restdb.io offers numerous field property options including native and custom field validation.

2. Add or import data

To populate the table, you can

  • Add data field by field, row by row
  • Import data from a CSV file
  • Auto-generate data by clicking on the Test Data tab

Using the Test Data option, I chose to generate 5 rows which gave me this.

3. Get sample CRUD code

Click on [Table] > API Docs and choose a language to see sample code for

  • getting records (using HTTP GET method)
  • creating a record (using HTTP POST method)
  • update a record (using HTTP PUT method)
  • delete a record using (HTTP DELETE method)

PHP

The sample PHP CRUD code provided by RestDB.io requires the use of the HttpRequest PEAR PECEL HTTP_Request extension. To avoid having to install this dependency, you can just use cURL which is included with PHP.

NodeJS

Below is a screenshot using NodeJS using the Request library.

JavaScript using jQuery AJAX

You can also perform CRUD actions using client-side JavaScript but you need to set up CORS (cross-origin resource sharing). The example below shows JavaScript using jQuery AJAX.

For client-side JavaScript, you need to generate a CORS API key. The screenshot below shows a CORS API key (redacted) that allows connections from any origin server but only allows the GET method to read data.

In the screenshot above, the API key would only work for the “people” table / collection. To have one key work for all tables / collections, use “/**” instead.

4. PHP: Create a file to test reading from the database

I created a test file called read-curl.php which uses cURL to connect to the remote database.

After uploading it to my web host, opening the file in a browser shows me the data in JSON format, as expected, which you can see live at http://zabuun.com/restdb.io/read-curl.php

You can also test the API by installing Postman (free), entering a query in the form of a REST URL, and entering your API key as an HTTP header.

4. JavaScript (jQuery + AJAX): Create a file to test reading from the database

I created a test file called read.html with the following code. This code uses the CORS key for cross-origin resource sharing.

After uploading it to my web host, opening the file in a browser shows me the data in JSON format, as expected, which you can see live at http://zabuun.com/restdb.io/read.html

If you have JSON data as in the example above, you can use Handlebars.JS to format the output in HTML.

5. Query data

When reading data from RestDB , you will often want to filter data based on conditions rather than retrieve an entire collection (all records). RestDB supports many MongoDB-like query syntax. Read the docs. Here’s an example of RestDB queries for equivalent relational DB SQL queries.

SQLRestDB
SELECT * FROM usershttps://<db-name>.restdb.io/rest/users?q={}
SELECT id, user_id, status FROM users/rest/users?q={}&h={"$fields": {"user_id": 1, "status": 1} }
SELECT * FROM users WHERE status = “A”/rest/users?q={ "status": "A" }
SELECT * FROM users WHERE status != “A”/rest/users?q={"status":{"$not":"A"}}
SELECT * FROM users WHERE status = “A” AND age = 50/rest/users?q={ "status": "A", "age": 50 }
SELECT * FROM users WHERE status = “A” OR age = 50/rest/users?q={ "$or": [ { "status": "A" } ,{ "age": 50 } ] }
SELECT * FROM users WHERE age > 25/rest/users?q={ "age": { "$gt": 25 } }
SELECT * FROM users WHERE age < 25/rest/users?q={ "age": { "$lt": 25 } }
SELECT * FROM users WHERE age > 25 AND age <= 50/rest/users?q={ "age": { "$gt": 25, "$lte": 50 } }
SELECT * FROM users WHERE user_id like “%bc%”/rest/users?q={ "user_id": {"$regex" :"bc"}}
SELECT * FROM users WHERE user_id like “bc%”/rest/users?q={ "user_id": {"$regex" :"^bc"}}
SELECT * FROM users WHERE status = “A” ORDER BY user_id ASC/rest/users?q={ "status": "A" }&sort=user_id&dir=1
SELECT * FROM users WHERE status = “A” ORDER BY user_id DESC/rest/users?q={ "status": "A" }&sort=user_id&dir=-1
SELECT COUNT(*) FROM users/rest/users?q={}&h={"$aggregate":["COUNT:"]}
SELECT COUNT(*) FROM users WHERE age > 30/rest/users?q={"age":{"$gt": 30}}&h={"$aggregate":["COUNT:"]}
SELECT * FROM users LIMIT 1/rest/users?q={}&max=1
SELECT * FROM users LIMIT 5 SKIP 10/rest/users?q={}&max=5&skip=10

You can also aggregate data, e.g. min, max, avg, count, groupby, etc, using aggregation and grouping functions. Read the docs.

If you already have an entire JSON dataset and you want to query against it, you can use JSONata. JSONata is a lightweight query and transformation language for JSON data. 

6. Auto-generate a web form

If you want to create a web form for public use, you can have restdb.io auto-generate one for you, complete with JavaScript validation and code to publish the data to your restdb.io database. See an example at

http://zabuun.com/restdb.io/form.html

7. Filesystem

Below is a screenshot of my remote filesystem on a shared GoDaddy server. The error.log file is auto-generated.

8. Create users with editor access

If you work with other developers or editors, you can give them role-based access to your restdb.io account to manage data. An editor, for example, will not see the developer features and can simply add records using a user-friendly web form like shown below.

Simple, Yummy Eggs

How to make these yummy eggs

  1. Put a couple tablespoons of olive oil in an 8 inch pan on medium heat
  2. Put in 4 eggs making sure not to break the yolk
  3. Sprinkle salt and pepper. Cumin is good, too.
  4. Using a flipper, inspect the bottom of the eggs along the perimeter occasionally until it’s slightly brown and the egg pancake, if you will, is firm. Personally, I like my egg yolks half cooked.
  5. Remove to a plate

Eating method

Personally, I don’t like to break the yolk cuz that’s messy. I’d eat the egg white separately and each entire egg yolk separately.

Easily Highlight Text in a Screenshot Using Photoshop

Let’s say you’ve taken a screenshot of some text and you’d like to highlight part of the text. By using different blending modes, this becomes an easy task. Here’s how to do it.

1. Open the screenshot containing text in Photoshop and select the text you want to highlight

2. Create a new layer and fill it with yellow

3. Change the blending mode to darken or any other one you like to create the highlighted text.

Here, I’ve chose the Darken blend mode.

This is the result.