Categories
News Tech

A Brief IoT Processing Tutorial – Apache Nifi 1.7 and MiniFi 0.5

In this tutorial, you will learn the basics of using IoT development by using the DeepLearning protocol. The process involves IoT data reading, Big Data processing and data ingestion in order to track simple events, data processing, flow, conversion and storage. Apache Nifi 1.7 and MiniFi 0.5 are mandatory for data ingestion.

Prerequisites

  1. A Raspberry Pi, to which you add a USB camera, and install Python, Sensor libraries, Java 8, Minifi 0.5, Apache MXNet and the latest patches.
  2. The MiniFi will push files such as JSON and JPEG to the Apache NiFi server. You can also choose to push the data to a Nifi/Kafka cluster instead, as long as they use a HDF 3.2 environment.
  3. The Apache NiFi cluster will push the data to Dockerized API, Hive and HDFS which work in a HDP 3.0 or similar third party IPs.
  4. Nifi and Kafka can be used in conjunction with Schema Registry in order to compile tabular data and JSON GPS data.

I personally prefer to stream data into Apache ORC files and use them in order to compile external data tables

I use command lines in order to create two distinct tables and storage locations. The tables are generated automatically and they are stored at the designated location as ORC locations.

The general command is: ‘’CREATE EXTERNAL TABLE IF NOT EXISTS (insert name)’’

In order to facilitate the processing task, I also create a Hive 3 acid table:

  • create table rainbow acid (add the line between brackets)
  • After it is done I load the data
  • Insert in x acid (where x is the name of the file)
  • Select * from x

I then use the most recent version of Hive in order to sort out and separate data. I hope this tutorial was useful for you and that it will help you to get started in IoT. Cheers!

Categories
Games News Tech

Sony Will Shut Down PlayStation 2 Support In Japan Starting With September 7th

Sony has announced that the PlayStation 2 support service will be cut off in the next few days, although anyone who has contacted the online repair service or Customer Care may have a final repair if they send the device to a PlayStation service, but only before September 7th.

Sony PlayStation 2 remains the best-selling video games console in history

PlayStation 2 (PS2 for short) was released in Japan on March 4th, 2000, and arrived in the United States in October and a month later it emerged in the European market.

Even though it’s old and no one is still developing games for it, PlayStation 2 remains the best-selling video games console in history, with more than 155 million units billed followed up closely by Nintendo DS with 150 million units.

The latest replacement parts, for both the console body and PlayStation 2 related accessories, arrived at Sony’s service desk in Japan on August 31st and once used, no further repairs will be possible, as the local tech news portals reported.

Sony shuts down PlayStation2 support after September 7th

Sony made an announcement on its official website in Japan on June 22nd informing users of the date of the last receipt of parts and the end of PlayStation 2 support service to motivate people to make a final repair to their consoles.

In order to get a final fix, it was necessary to contact the online repair service or PlayStation Customer Service by August 31st.

That is now followed by the recent announcement regarding a deadline set for September 7th. Any person who scheduled a PlayStation 2 repair service has to bring the devices to a Sony PlayStation service station until the before-mentioned date.

After September 7th when the deadline is reached, Sony would permanently shut down the PlayStation 2 support and repair services forever, also closing one of the most successful stories in the video games consoles history.

Categories
News Tech

Google Chrome 69 Rolled Out With Visuals, Performance, and Security Enhancements

Just a few days ago, Google celebrated the 10th anniversary of its most popular product, the Google Chrome Internet browser. Well, as a celebration, to some extent, the company has just rolled out the new Chrome 69 version which comes with many visual, performance, and security enhancements.

Google Chrome is by far the most appreciated and popular product the giant Internet company has in its portfolio. The new Chrome 69, which is available on Windows, Linux, macOS, Android, and iOS, as usual, comes with the new look Google has been talking about for some time now.

In fact, the testers of the preliminary versions had already been able to see firsthand some of the new features related to the Chrome 69 GUI, including a smoother appearance, in general, as well as renewed icons, or a new color palette.

The new Chrome 69 update comes with better visuals and improved performance and security

Chrome 69 comes out with enhanced visuals, allowing us to visualize the contents of the different tabs better while switching from one tab to another is now a smoother task.

At the same time, several under the hood improvements have been introduced, especially regarding the internal passwords manager and the personal data autofill in the forms. Also, the new Omnibox feature has also been added to offer you answers to your queries right in your browser’s taskbar or address bar, or prevent unnecessary duplicate tabs from opening.

With these new improvements, also including the blocking of the HTTP protocol in favor of the use of HTTPS, the built-in ad blocker, or the Site Isolation functionality, it is clear that Google does not stop working on improving his most popular software, so widespread around the world.

The new Chrome 69 update has not only focused on security and under the hood features but also enhanced the Google’s Internet browser’s appearance which is now a more modern and pleasant one.

Categories
News Tech

Python vs. Java – Best Programming Language Comparison

There is an old debate regarding Python and Java when it comes to choosing the best programming language. The truth is there isn’t a correct answer. They both have their advantages and disadvantages and it is up to you to choose the one that suits your needs.

Today we are going to analyse all the pros and cons so that it will be easier for you to make a choice. There are plenty of things Python and Java have in common, but there are also numerous features that differentiate these two.

There is plenty of library support for both Java and Python and developers seem to use them both equally. However, there are many things that differentiate these two. There are some clear differences, while others are more subjective.

Types of languages

We should start by mentioning that Python is an interpreted language, while Java is a compiled one. Obviously, each type has its characteristics. It is hard to say which language is faster or better, and most developers have contradicting opinions. Usually, the context in which a language is used influences its performance.

The way you write these languages is also different. When you use Python you use indentation if you want to create a structure. Meanwhile, in Java you will have brackets for that. Some developers seem to believe that indentation makes the code well structured.

Each programmer can choose the structure which appears more accessible. This is usually up to each person, and you decide which structure allows you to type faster. Since many developers also use templates and coding environments, this might not be that big of an issue.

The threading models of these two programming languages is completely different as well. Python can run on a single CPU core at a time and that is because it is single-threaded, unlike Java. This makes it a lot easier to use a CPU with Python.

Popularity

If we take a look at the popularity of these languages, there are some clear differences. Java has been around for more time, so it remains the most popular language. However, Python had an impressive evolution, and if it continues to rise that way, it is very likely that it will overcome Java.

Nonetheless, just because Java is older, this does not mean that it does not evolve. Developers continue to add new features and they are doing their best to make Java faster and more powerful. The JVM is also a great tool when it comes to creating cross-platform Java apps.

If you are thinking about money, you should know that a freeCodeCamp post revealed that programmers who use Python earn more money than those who use Java.

Learning process

When you are choosing a programming language you should also think about how much it will take you to learn it. Obviously, you also need to take into account your current knowledge. If you are a beginner and you have no experience you might want to choose Python. It doesn’t take that much time to get used to it and it has a wide range of techniques. Java can be simple for you if you already know how to program in C++ for example.

You should also think about the way the code is presented. Nowadays, programmers aren’t the only persons who have to work with code, so you must think about the skills of all the persons involved. Python supports the literate programming approach, which can be a big plus. These programs offer explanations, graphs and pictures in a document, while the code remains executable.

Related comparison:

The Best Predictive Analytics Application: R versus Python

Categories
News Tech

The Best Tools For Mobile App Development for 2018

Creating an application is something that most developers have to deal with at one point. Apps need to work properly on different platforms, and this can be quite tricky to realise. Luckily for you, there are plenty of tools that that help you with mobile app development.

Making the app work on multiple platforms is no longer a problem, thanks to the WORA concept (write once, run anywhere). This means that the piece of code only has to be written once, for one platform, and it then runs on many platforms. This reduces the amount of work needed from the developer.

Monocross

This tool is ideal if you want to develop apps for bot smartphones and tablets. One thing that you should know about this platform is that the developer is able to access the native device APIs while coding in C#.

Nonetheless, it can be difficult to learn about Monocross, as there are not many resources online. There are few documents and support for this platform, so you might need to discuss with other developers if you need some help. Monocross supports the Mono framework, as well as .NET, Microsoft and C#.

Xamarin

You can use the C# code base in order to develop apps with this tool. It is possible to use the same APIs, language and IDE in all places. You should know that Xamarin development is tied with important companies such as IBM, Microsoft, Foursquare and Dow Jones. For those who use C# or Ruby, Xamarin is the best choice.

Xamarin offers a free version, as well as a paid one. If you choose the free version, you will have features that are limited and you won’t be able to use open-source libraries, which can be a major disadvantage. Sharing code is also possible for a developer.

PhoneGap

PhoneGap can be used to create apps that do not rely on the device. This platform was created by Adobe and it can be used to translate code from JavaScript, as well as CSS and HTML5. Apps can be developed for Android, Windows, iOS and BlackBerry.

A possible disadvantage could be that you can’t really use it for apps that are graphics-intensive. We should also add that this platform is available for free and it comes with great support for the developers.

NativeScript

This is another tool that can be used to develop cross-platform apps. There aren’t too many resources for its features. NativeScript comes with support for TypeScript, as well as Angular.js 2. Native APIs are also provided in JavaScript.

Appcelerator

Developing cross-platform applications with this tool is simple. A JavaScript codebase is used for it, and Appcelerator is open. Apps can be created for Android, iOS AND BlackBerry, but it also comes with support for HTML5.

More than 5000 devices can be supported by Accelerator, as well as OS APIs. The only con for this tool is the fact that the support team can be a bit slow with its responses.

Kony Mobile Platform

The Kony Mobile Platform comes with numerous impressive features such as API connection, automatic coding and app preview. One great thing about the Kony Mobile Platform is that it also has its own pre-built apps that can be used in order to develop a new app.

Once again, there are not many resources available for Kony Mobile Platform, which means that if you want to use it to develop an app, you are on your own. However, if its community continues to expand, there should be more documentation in the future.

Exit mobile version