Oshada Rodrigo


How to use Base64 Encoding / Decoding with Arduino / ESP8266 Module


What is GEEK

Buddha Community

How to use Base64 Encoding / Decoding with Arduino / ESP8266 Module

Why Use WordPress? What Can You Do With WordPress?

Can you use WordPress for anything other than blogging? To your surprise, yes. WordPress is more than just a blogging tool, and it has helped thousands of websites and web applications to thrive. The use of WordPress powers around 40% of online projects, and today in our blog, we would visit some amazing uses of WordPress other than blogging.
What Is The Use Of WordPress?

WordPress is the most popular website platform in the world. It is the first choice of businesses that want to set a feature-rich and dynamic Content Management System. So, if you ask what WordPress is used for, the answer is – everything. It is a super-flexible, feature-rich and secure platform that offers everything to build unique websites and applications. Let’s start knowing them:

1. Multiple Websites Under A Single Installation
WordPress Multisite allows you to develop multiple sites from a single WordPress installation. You can download WordPress and start building websites you want to launch under a single server. Literally speaking, you can handle hundreds of sites from one single dashboard, which now needs applause.
It is a highly efficient platform that allows you to easily run several websites under the same login credentials. One of the best things about WordPress is the themes it has to offer. You can simply download them and plugin for various sites and save space on sites without losing their speed.

2. WordPress Social Network
WordPress can be used for high-end projects such as Social Media Network. If you don’t have the money and patience to hire a coder and invest months in building a feature-rich social media site, go for WordPress. It is one of the most amazing uses of WordPress. Its stunning CMS is unbeatable. And you can build sites as good as Facebook or Reddit etc. It can just make the process a lot easier.
To set up a social media network, you would have to download a WordPress Plugin called BuddyPress. It would allow you to connect a community page with ease and would provide all the necessary features of a community or social media. It has direct messaging, activity stream, user groups, extended profiles, and so much more. You just have to download and configure it.
If BuddyPress doesn’t meet all your needs, don’t give up on your dreams. You can try out WP Symposium or PeepSo. There are also several themes you can use to build a social network.

3. Create A Forum For Your Brand’s Community
Communities are very important for your business. They help you stay in constant connection with your users and consumers. And allow you to turn them into a loyal customer base. Meanwhile, there are many good technologies that can be used for building a community page – the good old WordPress is still the best.
It is the best community development technology. If you want to build your online community, you need to consider all the amazing features you get with WordPress. Plugins such as BB Press is an open-source, template-driven PHP/ MySQL forum software. It is very simple and doesn’t hamper the experience of the website.
Other tools such as wpFoRo and Asgaros Forum are equally good for creating a community blog. They are lightweight tools that are easy to manage and integrate with your WordPress site easily. However, there is only one tiny problem; you need to have some technical knowledge to build a WordPress Community blog page.

4. Shortcodes
Since we gave you a problem in the previous section, we would also give you a perfect solution for it. You might not know to code, but you have shortcodes. Shortcodes help you execute functions without having to code. It is an easy way to build an amazing website, add new features, customize plugins easily. They are short lines of code, and rather than memorizing multiple lines; you can have zero technical knowledge and start building a feature-rich website or application.
There are also plugins like Shortcoder, Shortcodes Ultimate, and the Basics available on WordPress that can be used, and you would not even have to remember the shortcodes.

5. Build Online Stores
If you still think about why to use WordPress, use it to build an online store. You can start selling your goods online and start selling. It is an affordable technology that helps you build a feature-rich eCommerce store with WordPress.
WooCommerce is an extension of WordPress and is one of the most used eCommerce solutions. WooCommerce holds a 28% share of the global market and is one of the best ways to set up an online store. It allows you to build user-friendly and professional online stores and has thousands of free and paid extensions. Moreover as an open-source platform, and you don’t have to pay for the license.
Apart from WooCommerce, there are Easy Digital Downloads, iThemes Exchange, Shopify eCommerce plugin, and so much more available.

6. Security Features
WordPress takes security very seriously. It offers tons of external solutions that help you in safeguarding your WordPress site. While there is no way to ensure 100% security, it provides regular updates with security patches and provides several plugins to help with backups, two-factor authorization, and more.
By choosing hosting providers like WP Engine, you can improve the security of the website. It helps in threat detection, manage patching and updates, and internal security audits for the customers, and so much more.

Read More

#use of wordpress #use wordpress for business website #use wordpress for website #what is use of wordpress #why use wordpress #why use wordpress to build a website

How to use Java 8 Encode (Decode) an Image to Base64 » grokonez


How to use Java 8 Encode (Decode) an Image to Base64

For some purpose like transfering an image through RestfulAPI or saving an image to a DataBase, We need Encoder (Decode) the image to Base64. In the tutorial, JavaSampleApproach will guide you how to use Java 8 for converting.

Related post: Java 8 Base64

I. Technologies for Java 8 Encode Decode an Image to Base64 tutorial

- Eclipse - Java 8

Note: Prepare an Image at folder C:\base64\image.jpg

II. Java 8 Encode an Image to Base64

public static String encoder(String imagePath) {
	String base64Image = "";
	File file = new File(imagePath);
	try (FileInputStream imageInFile = new FileInputStream(file)) {
		// Reading a Image file from file system
		byte imageData[] = new byte[(int) file.length()];
		base64Image = Base64.getEncoder().encodeToString(imageData);
	} catch (FileNotFoundException e) {
		System.out.println("Image not found" + e);
	} catch (IOException ioe) {
		System.out.println("Exception while reading the Image " + ioe);
	return base64Image;

III. Java 8 Decode an Base64 String to an Image


How to use Java 8 Encode (Decode) an Image to Base64

#java8 #decode #image #base64

Ray  Patel

Ray Patel


Top 20 Most Useful Python Modules or Packages

 March 25, 2021  Deepak@321  0 Comments

Welcome to my blog, In this article, we will learn the top 20 most useful python modules or packages and these modules every Python developer should know.

Hello everybody and welcome back so in this article I’m going to be sharing with you 20 Python modules you need to know. Now I’ve split these python modules into four different categories to make little bit easier for us and the categories are:

  1. Web Development
  2. Data Science
  3. Machine Learning
  4. AI and graphical user interfaces.

Near the end of the article, I also share my personal favorite Python module so make sure you stay tuned to see what that is also make sure to share with me in the comments down below your favorite Python module.

#python #packages or libraries #python 20 modules #python 20 most usefull modules #python intersting modules #top 20 python libraries #top 20 python modules #top 20 python packages

Layne  Fadel

Layne Fadel


Genetic Algorithm Robot: Evolving Altitude, using Python, C++ and an Arduino.


The purpose of the study was to design a flight control system with no pre-determined mathematical model, but instead using a genetic algorithm to maintain the optimal altitude. The study is done through a quantitative empirical research method. In the process of conducting the research, we found that programming a genetic algorithm was cumbersome for novice users to implement. Due to this, we created and released an open-source Python package called EasyGA.

An initial population of 15 chromosomes, 10 genes per chromosome with 100 generations, were used during one trial. The throttle value of the device had an associated gene value of 1 second. A minimum of 30 trials per robot were used to show statistical significance in the study. When the trials were completed, machine learning was achieved. Results showed that optimizing a one degree of freedom(DOF) device, in real-time, is possible without using a pre-determined mathematical model.

How it works:

In order to run the genetic algorithms needed for this experiment to be successful, an Arduino Uno, Python, Electronic Ducked Fan(EDF), Electric Speed Controller(ESC), an ultrasonic ranging module (USRM, and a laptop are required.

**Ardunio Uno: **Is an open-source micro controller board. This micro controller board comes with digital and analog pins. The pins have different purposes. Some pins are used for sending 3.3V and 5V power to other devices, and other pins are used as input, and output pins, which send pulse width modulation (PWM) signals to other devices.

Evolving Altitude Robot Wiring Diagram. Image by Author

For this experiment, digital pins 9, 10, and 11 will be used to send PWM signals and receive sensory information from the ultrasonic range module. Digital pin 9 (TRIG) is used for the signal output, pin 10 (ECHO) is used for the signal input, and pin 11 is used for PWM signals to the ESC.

**Arduino C++: **The code written on the Arduino is to receive directions from the python script in the form of throttle values. The Arduino then executes those instructions while also reading the heights from the USRM and transmits them back to python using serial communication.

**Python: **Python was used as the main language to handle the genetic algorithm while also sending directions to the Arduino.

**SQL Database: **A Sqlite3 database is used to store all running and configuration data coming from the robot and genetic algorithm. It is also used to find trends and query data.

One DOF device: The device is made up of an EDF fan, the USRM, a carbon fiber tube, assorted wiring, and three 3D printed parts: the intermediary connector, and platform. The platform for the device is designed to work functionally with all parts and pieces needed for the EDF to run. The EDF required that the 120mm x 20mm carbon fiber tube connect directly to the fan.

#arduino #python #ai #python #c++ #arduino.