Access And Change Parent Variables From A Child Component With Vue.js
When working with single page web applications (SPA), chances are you're going to be using a router or some kind of parent and child component structure. In these scenarios, the parent components probably hold their own functions and variables that may at some point in time need to be accessed by the child component. Take for example an application that has authentication. The parent component might manage the authentication state while the child component might be a login form, secure content, or something else. When logging in, you might need to change the authentication state of the parent. This is just one of many possible examples where the child and parent need to interact.
We're going to see how to interact with a parent component from a child component in an application created with the Vue.js JavaScript framework.
Read MoreManage Multiple Authors On A Static Blog Created With Hugo
As you may or may not know, The Polyglot Developer is currently using Hugo, which is a static site generator. When getting started with Hugo, the themes and documentation don't say much when it comes to having more than one possible author producing content.
For example, as mentioned in my previous article, this site is always accepting guest contributions for technical content. There have been several tutorials contributed, but when it comes to credit, I want these tutorials to show under the authors name, not my name just because I'm the owner of the blog.
We're going to see how to work with data templates in Hugo to create and use different authors for different articles.
Read MoreCreate A Bitcoin Hardware Wallet With Golang And A Raspberry Pi Zero
Over the past month or so, in my free time, I've been working towards creating an affordable hardware wallet for various cryptocurrencies such as Bitcoin. Right now many cryptocurrency enthusiasts are using the Ledger Nano S hardware wallet, but those are very expensive and rarely in supply.
I own several Raspberry Pi Zero and thought it would be a perfect opportunity to take what I know about Raspberry Pi and Golang to create a wallet for a fraction of the price as the industry leading wallets.
We're going to see how to create a hardware wallet, which I'm calling the Open Ledger Micro, using Golang and a Raspberry Pi Zero.
Read MoreCreate And Sign Bitcoin Transactions With Golang
About a month ago I had written about creating and importing private keys as well as generating public addresses for Bitcoin and several other cryptocurrencies using the Go programming language. This previous tutorial had more of an emphasis on creating cryptocurrency wallets with Golang than anything.
The next step in making Bitcoin and other cryptocurrencies useful is to be able to transfer or send them to other people. Sending Bitcoin is part of a process known as creating and broadcasting a transaction.
While we won't be actually broadcasting a transaction in this tutorial, we're going to figure out how to create an unsigned transaction, then sign it, using the Go programming language and some popular Bitcoin packages.
Read MoreUse Node.js And A Raspberry Pi Zero W To Scan For BLE iBeacon Devices
Earlier this month I had written a tutorial for detecting nearby BLE iBeacon devices using a Raspberry Pi Zero W and an application written with Golang. It was a great example of accomplishing something with Go and very little code.
Scanning for BLE devices is a great use case for Internet of Things (IoT) devices like the Raspberry Pi Zero W, and Golang isn't the only great language around. I, like many others, do a lot of Node.js development as well.
We're going to see how to scan for BLE iBeacon devices using Node.js and the popular Node.js BLE (Noble) library.
Read MoreInstall Node.js On A Raspberry Pi Zero W Without NodeSource
A few weeks ago I thought I'd try to install Node.js on my Raspberry Pi Zero W to use it as a simple API server that I could take with me on the road. I have installed Node.js so many times before, including on a standard Raspberry Pi, that I figured it would be just as easy to do on the Pi Zero.
I was mistaken in regards to the difficulty.
On the Raspberry Pi Zero W, Node.js was nowhere to be found in apt-get and the scripts that used NodeSource in the official install documentation didn't work because ARMv6l is no longer supported by NodeSource.
We're going to see how to install Node.js on a Raspberry Pi Zero W when everything else fails.
Read MoreResolve Google AdSense Publisher Violations For Valuable Inventory Problems
I don't typically write about these topics since they aren't on the subject of development and operations, but this week Google AdSense put my account on restricted probation for violating its policies, something I hadn't intentionally planned on doing.
After receiving an email from Google and visiting the policy area of the Google AdSense dashboard, I learned that I had a Valuable Inventory: No Content violation for a domain that wasn't mine and I hadn't even heard of.
So what do you do when you're in violation for something you do and don't have control over?
We're going to see some of the things that you can do to keep your account in good standing, beyond the obvious things such as being annoying.
Read MoreSearch
Recent Posts
- Building a REST API With Express Framework and MongoDB
- Build a Real-Time Voice Interview Coach with TypeScript and LiveKit
- Introducing CFP Manager to Manage Speaking Engagements for the Team
- Using Dot Notation to Query Nested Fields in MongoDB
- Build a Movie Watchlist with Node.js, TypeScript, and MongoDB