SSH Tunnel When we have a service behind a firewall in a remote server sometimes we want a simple way to connect to it without setting up port forwarding. Setting up a ssh tunnel is pretty straight forward and pretty secure because your traffic will be encrypted on his path. This is perfect for a quick and simple connection for yourself without sacrificing the security of your server. Let’s get started with SSH tunnels Before you start, if you’re connecting to a remote host over the internet just make sure that your ssh connection is secured.
How to fix java is not found on your windows installation To run java programs and/or develop java apps your windows must know how to find it. Sometimes even if you havae installed yjava on your windows machine, windows doesnt know how to find it so you must set some System Variables. It’s easy just follow along 1- Make sure you have java installed To run java apps you must have java installed on your machine duh!
How to create a private react component library. While developping apps a some of our code can, and should be, shared between apps, so we can learn once and perfect it in other deployments and so use it more. Copy and paste is an option, but rapidly it will be a headache to mantain and track where did you use it when you need to update something. With that in mind the best is to have a place to store your shared code and have the apps pulling those components when they need it.
While using a frontend client like React you often find yourself calling the backend and using the same code to give axios a JsonWebToken or an Api Key to authorize the client and fulfill the request in the backend code. Instead of passing the authorization token you can handle and instruct axios to save you from that boilerplate code. Axios is a very usefull http client library that can make a lot for us.
When we create a website, it is important to put our contact details so that we can receive correspondence from our readers or customers. The problem is that many bots or spiders (programs designed to get the text of websites automatically) often look for emails to send junk to our mailbox and sell that email to more dubious companies with large lists to send spam to our box. So how can we hide email from these bots?
In the last post i showed you how do i get data in Home Assistant from a Sonoff Pow R2 using MQTT now we going to use that data to feed the energy dashboard. Because just like i said my sonoff is measuring my single solar panel production and we can use that to integrate with the beautiful dashboard that Hass as gifted us. How do i measure my house energy consumption?
Understand your bill Stay up to date and save money on your energy bill. By understanding what and how your electric company charges you at the end of the month, you can use it smarter and therefore save money. Here were gonna clarify and learn how to measure kW/h. How the electric bill price is calculated? Your electricity provider measure the electricity your house consumes in kW/h (it stands for KiloWatt / Hour), puts a price on that and after knowing how much kW/h you spent they know how much they have to charge you.
Last week I’ve been tinkering with Home Assistant and found out that it is a pretty handy piece of software after a few one click integration with my existing smart home devices i stumpled uppon a problem my Sonoff por R2 that was using mqtt to monitor my solar panel power not showing up, even with auto discovery on. So i created a custom config in the configuration.yaml and everything went smooth.
In Android the package name is an identifier of your app. In an android device every app should have an identifier for that app and that identifier is the package name. That's true to publish your app in Google's Play Store as well, just like any' android published app store. Just like in a java package the convention is your domain name in reverse, like : com.slashlogs.myawesomeapp. In this tutorial we gonna learn how to set up that package name for our app in React Native.
Wether you want to secure your connections while you are on a public wi-fi, with or without password, or you simple want to access resources on your home network a VPN connection is the way to go. In this post i will help you setup your own vpn server in your home or office network using a cheap raspberry pi or home PC but it has to be on all the time, at least it must be up when you want to connect to it.