This guide assumes you are using Ubuntu Linux 16.04 (Xenial) but will most likely work for setting up a Go development environment on other versions of linux. You can still follow this guide if you are using OSX but some small things will differ such as the binary to download. You could always run Go on Linux in a Virtual Machine with Virtual Box.
Please note that I own a Ledger Nano s and include affiliate links in this article. I was not hired/paid to write this article.
Whether you are new to cryptocurrencies or not it is important to safeguard your savings. When buying cryptocurrencies you typically go through an exchange such as Coinbase, Binance or Bittrex. An exchange is fine for buying and selling but if you plan to keep cryptocurrency for a long time it would be much safer to store it on a hardware wallet such as the Ledger Nano S or the Trezor. I wanted to write this article to outline some of the things that any user should be aware of.
I bought kitties on CryptoKitties when popularity seemed to peak back in December 2017. At the same time Ethereum hit a $1000 and Bitcoin shot up to $20,000. So I did what any sane person would do and transferred 1 ETH to buy and sell digital cats. It was interesting because this digital economy reminded me a lot of games like Travian that have in game economies, or an even more relevant site would be Neopets which has items you can buy and sell using points you earn from playing games. It’s actually where I got interested in HTML as I learned how to customize the look of my shop.
…And I plan to keep mining.
It has been a fun experience and I would recommend it to anyone who is interested in learning how mining Vertcoin works. I have a gaming PC at home which has a pretty powerful graphics card, the Nvidia 1080Ti. Before I started mining I would turn this beast off to save money on my power bill. However, these days it runs 24/7 as I would save less money by turning it off.
Recently i launched my new personal website ma.rkus.io and that gave me the opportunity to redo the entire website including the HTML head. It was a nice review and here is what I came up with.
Recently I have been getting “spam” notifications from Facebook where it says that “A free $10 credit will be applied when you boost a post”. I have not managed any Facebook pages for months and I have not personally posted anything and therefore I found this pretty annoying. See the image below.
Sometimes when I am working with dummy database I might need to change the password of a generated user. The easiest way to do this is to got to google for a bcrypt generator and then paste the generated hash into the database in order to update the password. This is much quicker than having to write a function to do this for me or to create a new user from scratch. It is also useful if I need to reset a password to an account which I have totally lost access to. Turns out I don’t like many of the bcrypt generators that are out there and the domain bcrypt.fun was available so I figured, why not make my own generator since I already created password.fun.
From what I learned in earlier posts, mostly parsing json from an API endpoint, I created a simple command line program that tracks any cryptocoins and their respective values, you can input the price and amount you bought it for. Colors can be turned on or off, the update interval can be configured and you could have as many or as few coins as you would like. See it in action here:
Earlier today I wrote a quick tutorial on how to use golang to track STEEM or any cryptocurrency for that matter. You can find the post on my Steemit account @tenghamn on steemit here https://steemit.com/cryptocurrency/@tenghamn/how-to-make-a-simple-go-program-to-track-the-price-of-steem-via-an-api
The current script is pretty simple and I plan to expand on it to make a tool that will allow you to track any cryptocurrencies along with a gained or lost amount or percentage based on at what price and how much you purchased these coins for.
You can find the entire script on github here: https://github.com/markustenghamn/golang-steem-cryptotracker
I am a long time user of Apache, it was the first web server software I learned to use and therefore it felt like a no brainer to always use it. However over the past year I have started using Nginx more and more. It felt foreign at first but once you get a hang of how to configure new hosts and do the initial setup it’s really just as easy to use as Apache and in my current opinion, much better when it comes to memory usage and the amount of requests it can handle. If you want to read more about the differences you can read this post from tutsplus that describes the pros and cons of using either one for a wordpress website (generally the things discussed here applies to most other applications).