Brad Lucas

Programming, Clojure and other interests

Creating a private Ethereum testnet

August 6, 2017

Working against a local private testnet is very useful when you are developing your own smart contracts for Ethereum. It is faster and you don't have to worry about ether and having enough for gas.

testrpc

One of the simplest methods to run a local testnet is to install testrpc. When done just run the command testrpcs and you'll have a local node with accounts running for you to excercise your code against.


Continue reading →

Installing The Solidity Plugin Into Webstorm And PyCharm

August 5, 2017

The following instructions work for other JetBrains environments. Here I only added the Solidity plugin to WebStorm and PyCharm.

The latest version of the Solidity plugin is available here: https://plugins.jetbrains.com/plugin/9475-intellij-solidity

Procedure


Continue reading →

Cryptop

August 4, 2017

I found an interesting tool which I've been using to show current cryptocurrency values. It is called Cryptop. It is a Python app which shows current values for a cryptocurrency portfolio.

See it's git repo for the detail on how to install and run.

If you want the green screen shown in the instructions edit the config.ini in .crypto directory which is created after you first run the app. Change the default values to the following.

[theme]
text=green
banner=green
banner_text=black
background=black

Continue reading →

Get Hyperlink Value From An Excel Cell

August 3, 2017

I received a spreadsheet with a list of addresses setup so you can click the name in the cell and it would open. I wanted to export the actual url which is inside the cell.

You can do this with a function. Open the VBA editor with Fn/Option F11 on the Mac. Then Open Modules and insert a new module with a name of your choosing.

Paste in the following function, save and exit the VBA editor

Function GetCellURL(cell As Range) As String
     On Error Resume Next
     GetCellURL = cell.Hyperlinks(1).Address
End Function

Continue reading →

Default ssh usernames for ec2 instances

August 2, 2017

I started a project with many different ec2 instance types and found the following link very useful recently.

https://alestic.com/2014/01/ec2-ssh-username/


Continue reading →