Brad Lucas

Programming, Clojure and other interests

Attestation

August 13, 2017

Heard and interesting phrase in the talk linked below. The word attestation jumped out as an interesting new word to me.

Blockchains allow for us to create an open, global platform on which to store any attestation about any individual from any source.

Continue reading →

Ctrl-A And Screen

August 12, 2017

If you run Screen from a terminal window you'll notice that Ctrl-A does not bring you to the beginning of the line. as a Emacs user you might find this a bit annoying.

Nicely, you can change this behavior.

I did the following:

Edit and create if necessary a file in your home directory called .screenrc and add the following to it.

Continue reading →

Bootstrap Form Helpers

August 11, 2017

I was looking for dropdowns to allow a user to select a currency, a country and the date for project. They needed to be bootstrap components, look nice and work well. I found and used `Bootstrap Form Helpers' and was very pleased with the results.

If anyone else is looking for the same I'd recommend giving these components a try.

A few comments and notes which may help use them.

I used

Continue reading →

Cname To S3 Bucket

August 10, 2017

The url you get for a S3 hosted web site is a bit long. You might want to set up a subdomain from your domain that points to your S3 hosted site. The trick to do this involves how you name your bucket.

Here is an example.

Suppose your domain is mydomain.com and you want to setup a subdomain myapp.mydomain.com which points to a S3 hosted website.

To make this work the key is to create a bucket called myapp.mydomain.com. This will give you a endpoint of http://myapp.mydomain.com.s3-website-us-west-2.amazonaws.com.

Continue reading →

Redirect From S3 Website

August 9, 2017

So after setting up a few S3 hosted sites what happens if you want to move your site to another place. Say, you want to host the site over on an EC2 instance but you've already handed out the long url to your S3 bucket. It may be useful to have a redirect setup on the S3 bucket. Here is how to set that up.

Step 1

Remove all your files except for the index.html. Then edit the index.html and remove all of it's content except the most basic of html. This is just so you don't have anything left of your site in the bucket.

Step 2

Continue reading →