Network attached storage (NAS) with Raspberry Pi


There is a Raspberry Pi 3 out there, which is much faster than versions 1 and 2. While latest two are faster than first model, I thought it would be great to give some purpose to first Raspberry Pi model B. We share several computers around the house and sometimes need simple file storage solution to make backups, share and store. Raspberry Pi model B is sufficient for simple Network Attached Storage (NAS) solution. Such network automation setup doesn’t need much processing power to manage the drive. And there is also an option to have a torrent client running 24/7. Another benefit of using Raspberry Pi is low power. Let’s go through all steps on how to set up Network Attached Storage on this Raspberry Pi. You can go with several different solutions for setting up NAS. You could go with cloud solution like Owncloud, which is similar to Dropbox. This might be convenient in many ways, but I would like to have the ability to use the drive as portable media when needed. In that case, I am going to stick with SAMBA server.

Continue reading

3 Ways To Increase Sales on Your Website

E-commerce is a booming industry that companies are making billions of dollars on. The thought of sitting in the comfort of your own home and being able to do any type of shopping is liberating. Many people shop daily online, and increasing sales is the primary goal of every small and large e-commerce company. There are certain things that can be done if your sales aren’t where you want them to be. The following are a few of the ways to increase sales on your e-commerce website. Having a fast and efficient checkout system is essential, as companies can lose millions of dollars in sales if the page has a bug or requires way too much information. The purchaser might get frustrated or have buyer’s remorse before purchasing the item. The speed and efficiency of the checkout page is critical as the checkout page closes the deal for the company. A page that reloads or freezes a computer could be clicked off, and the shopper will go to a competitor for the product.

Continue reading

Continuously running Raspberry Pi torrent client


Previously we have configured basic NAS storage on Raspberry Pi. Having such power and doing nothing with storage is a waste. To prove its usefulness Next logical step is to implement a torrent client on this machine. The benefit is obvious. You have a NAS server that is always available and a torrent client that downloads/seeds files without the need power-hungry PC. You can find many torrent clients that can be used in Raspberry Pi, but it seems that lots of people prefer Deluge, which has plenty of features and requires small memory to run. Deluge is great in its flexibility – the ability to run on desktop, through the web interface, and through ThinClient. The other popular packet is Transmission, which is also lightweight and has great WebUI. Transmission can handle magnet links from the web interface. And it seems it is easier to configure. So we are going to stick with Transmission.

Continue reading

Five Steps to Improve Your Cyber Security

Improve Your Cyber Security

Cyber security is one of the buzzwords in IT, often dominating the thoughts of IT professionals and the front pages of national newspapers and big websites. There’s no doubting that using a professional company to protect your business from cyber-attacks is the best option to choose. However, there are also some things you can do to increase your security. A great place to start is by looking through the government’s pamphlet entitled Small Businesses: What You Need to Know About Cyber Security. If you don’t have time to read through this pretty long document, though, we’ve condensed the five most important points for you, which you’ll find in the handy guide below.

Continue reading

AVR GCC Structures

Structures in GCC are used in a variety of applications, such as: Basically, Structures are nothing more than collections of variables so, called members. Structures allow to reference of all members by a single name. Variables within a structure don’t have to be the same type. General structure declaration: or In the second example, we declared the variable name. Otherwise, variables can be declared this way: Members of the structure can be accessed by using the member operator (.). The member operator connects the member name to the structure. Let’s take an example: We can set the robot’s position by using following sentence: or simply Structures can be nested. A nested structure is a structure that contains another structure as one of its members. To access robot x coordinate, we have to write: Nested structures can be used in various applications, such as representing complex data types, like records or objects, and organizing data in a more readable and maintainable manner. They’re also helpful in systems programming, where you might need to represent hardware or software components as nested data structures. Actions can be taken with structures: Of course, you can treat a structure like a variable type. So you…

Continue reading

Raspberry Pi 3 goes 64-bit and adds more features

Raspberry Pi 3

When the first Raspberry Pi board was introduced it changed the understanding of small computers by bringing Linux closer to us. With great support, low board prices, and the vast community, it stayed on top next to Arduino for four years. Of course, in to keep that success, updates in hardware and software are mandatory. We know how fast things change computer industry, so time to time, Raspberry Pi foundation kept upgrading Pi boards From first to second and now the newest third generation – Raspberry Pi 3. At first glance, you may see that Raspberry Pi 3 board is practically identical to version 2. component layout is the same, including all peripherals. So all enclosures that worked with Pi2 should fit fine for Pi3 boards. But not the most obvious things that make it stand out.

Continue reading

Linear regression – learning algorithm with Python

In this post, we will demystify the learning algorithm of linear regression. We will analyze the simplest univariate case with single feature X wherein the previous example was temperature and output was cricket chirps/sec. Let’s use the same data with crickets to build learning algorithm and see if it produces a similar hypothesis as in excel. As you may already know from this example, we need to find linear equation parameters θ0 and θ1, to fit line most optimally on the given data set: y = θ0 + θ1 x x here is a feature (temperature), and y – output value (chirps/sec). So how are we going to find parameters θ0 and θ1? The whole point of the learning algorithm is doing this iteratively. We need to find optimal θ0, and θ1 parameter values, so that approximation line error from the plotted training set is minimal. By doing successive corrections to randomly selected parameters we can find an optimal solution. From statistics, you probably know the Least Mean Square (LMS) algorithm. It uses gradient-based method of steepest descent.

Continue reading

Simplest machine learning algorithm – linear regression with excel

Some may say that linear regression is a more statistical problem. And this is true at some level. But when the problem is solved from a machine learning perspective, things gets more accessible, especially when moving towards more complex problems. First of all, let’s understand few essential terms. We can start with regression. When speaking of linear regression we try to find a best-fitting line through given points. In other words, we need to find an optimal linear equation to fit given data points. This is a supervised learning problem when we have set of data pairs that can be plotted on x-y axis. I understand theory is a boring thing, even for me, so let’s move to practical examples and learn by solving some problems. In order to work with some examples we need sample data. There are many data sources available on the internet. For instance, a great source is college Cengage, that have several sets with data pairs meant for linear regression problems. For our example, we are going to use Cricket Chirps Vs. Temperature data where each data point consists of chirps/sec and temperature in degrees Fahrenheit. You can send data in three formats: excel, mtp and…

Continue reading

6 Frugal Tips to Help Pay Down Debt

paying down debt tips

Debt. Ugh, what a horrible word. Can we just erase this word from the dictionary completely? If you carry around debt with you, then you know exactly how the sound of that word feels. It is stressful, it causes frustration, and it makes you want to curl up and not face reality. But before you panic, consider these strategies (especially for college students) to help you start paying down your debt, whether it is from student loans, personal missteps, or both. 1. Don’t Just Pay the Minimum Whether you are paying your student loan or a credit card bill, do not simply just pay the minimum. Of course, if you are short one month, the minimum is all that is required to keep your account in good standing, but the more you pay, the quicker you can pay down your debt. To ensure financial efficiency, try to send in additional money that you have instead of pulling from your savings account or your other funds. For example, if you plan to spend $200 on groceries, but you only spend $150, then send the extra $50 to your debt.

Continue reading

Electrical signal power and energy calculations by example

In electronics and signal processing, you have to deal with electrical signals. In many cases, you may need to calculate signal power and energy. Power and energy for DC In a standard situation, when DC power supply is applied to a known resistor or another device like an LED motor you can calculate its power very easy by applying Ohms law: If we run this device for time T then we can calculate total energy used: In some cases, you may not know the resistance of your circuit. In this case, you can measure the current flow. So your power formula can be transformed by using same Ohms law:

Continue reading