Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

Encapsulation in Java (with example)

Categories

Tags java oop programming learning

Encapsulation is a fundamental concept in object-oriented programming (OOP) that allows developers to achieve data abstraction, improve code maintainability, and create more robust software. In this article, we will dive deep into the principles of encapsulation in Java, understand its benefits, and explore the best practices to implement it effectively. By Rahul.

In this article you will learn:

  • Encapsulation overview
  • Benefits of encapsulation
  • Encapsulation in Java
  • Example of encapsulation in Java
  • Best practices

Mastering encapsulation in Java is crucial for writing clean, maintainable, and robust code. By adhering to the principles of encapsulation and following the best practices outlined in this article, you can create well-structured, modular, and reusable software that is easier to develop, debug, and maintain. Nice one!

[Read More]

Autonomous database observability

Categories

Tags monitoring performance database analytics devops

Autonomous Database (ADB) Observability blog series where we’ll cover the basics of database observability and then introduce the most relevant Oracle tools and services that you can leverage to observe your Autonomous Databases. By German Viscuso.

What’s needed is more abundant, higher-quality telemetry that can be used to create high-fidelity, context-rich, fully correlated multi-level metrics for every application event, transaction, infrastructure change, etc. Enter Observability.

The article pays attention to:

  • Observing the autonomous database
  • Observability tools and services for autonomous database within the OCI console
    • Direct access to ADB metrics
    • Events and notifications
    • Performance hub
    • Database actions monitoring pages
  • Oracle Cloud observability and management platform

Autonomous Database on Dedicated Exadata Infrastructure and Cloud@Customer gives you the best of both worlds today: the ability to run natively in the cloud (OCI) or on-premises (Cloud@Customer) while providing deep levels of observability (at the database instance, fleet and data plane levels) via a rich set of Oracle tools and services that cover the whole database observability cycle. Good read!

[Read More]

Building and training your first neural network with TensorFlow and Keras

Categories

Tags data-science big-data app-development analytics

Learn how to build and train your first Image Classification model with Keras and TensorFlow using Convolutional Neural Network. By Aryan Garg.

AI has gone so far now, and various state-of-the AI models are evolving that are used in Chatbots, Humanoid Robots, Self-driving cars, etc. It has become the fastest-growing technology, and Object Detection and Object Classification are trendy these days.

Here is the complete workflow of this tutorial:

  • Importing necessary libraries
  • Loading of the data
  • Preprocessing of the data
  • Building the model
  • Evaluating the model performance

This article shows the entire process of building and training a Convolutional Neural Network from scratch. We got around 75% accuracy. You can play with the hyperparameters and use different sets of convolutional and pooling layers to improve the accuracy. Nice one!

[Read More]

Building and deploying MySQL Raft at Meta

Categories

Tags sql database cloud software-architecture app-development

At Meta, we run one of the largest deployments of MySQL in the world. The deployment powers the social graph along with many other services, like Messaging, Ads, and Feed. Over the last few years, we have implemented MySQL Raft, a Raft consensus engine that was integrated with MySQL to build a replicated state machine. By Anirban Rahut, Abhinav Sharma, Yichen Shen, Ahsanul Haque.

To allow for high availability, fault tolerance, and scaling reads, Meta’s MySQL datastore is a massively sharded, geo-replicated deployment with millions of shards, holding petabytes of data. The deployment includes thousands of machines running over several regions and data centers across multiple continents.

Tah article then explains:

  • Why was MySQL Raft necessary?
  • The Raft library and the MySQL Raft plugin
  • MySQL Raft replication topologies
  • Replicated log
  • Write transaction on MySQL primary using Raft
  • Crash recovery
  • Raft-initiated state machine transitions
  • Monitoring the MySQL Raft rollout
  • Performance

… and more. The biggest win of MySQL Raft was simplification of the operation and making MySQL servers take care of promotions and membership. This gave the provable safety of Raft and reduced significant operational pain. Our goals of having a hands off-management of MySQL consistency, and having tools for the rare cases of availability loss, are mostly met. Good read!

[Read More]

How to build an NFT gallery using QuickNode's GraphQL NFT API

Categories

Tags blockchain apis cloud fintech app-development

A step-by-step tutorial on building an interactive NFT Gallery using QuickNode’s GraphQL NFT API, icy.tools, JavaScript, Next.js, and Tailwind CSS. By Aayush Gupta.

In this tutorial, you will build an NFT gallery using QuickNode’s GraphQL NFT API, Icy.tools, React, JavaScript, Next.js, Vercel, and TailwindCSS. The React web app will provide a user interface displaying a grid view of all the NFTs held by any Ethereum Name Service (ENS). You will fetch NFT data with icy-nft-tools.

The content of the article:

  • What is QuickNode?
    • What is QuickNode’s GraphQL NFT API?
    • Explore QuickNode Marketplace!
  • The Functionalities
  • The Tech Stack
  • The Prerequisites
  • Step 1: Creating Next.js project
  • Step 2: Installing the icy-nft-hooks library
  • Step 3: Getting an NFT API key
  • Step 4: Installing the dotenv package
  • Step 5: Fetching the NFT
  • Step 6: Display the NFT gallery
  • Step 7: Deploy NFT gallery
  • Full code base

QuickNode is a blockchain platform that provides infrastructure for developers to build and scale decentralized applications (DApps). It offers a suite of tools and services, including a developer API, to make it easier for developers to build, test, and deploy DApps on multiple blockchain networks. Good read!

[Read More]

How to mock HTTP APIs with MockServer

Categories

Tags app-development apis cloud agile web-development

This post covers step-by-step instructions on how to use MockServer to mock an HTTP API, as well as an overview of limitations one may encounter. As the name suggests, MockServer is a powerful tool that allows developers to mock HTTP APIs, making testing much easier and more efficient. It aims to solve the problem of testing APIs that are still in development or not yet available, allowing developers to continue working without being held up by dependencies. By Kasper Siig. Kasper Siig.

This post will cover step-by-step instructions on how to use MockServer to mock an HTTP API, as well as an overview of any limitations you might encounter. It’s important to note that while MockServer is a great tool, it may not be the best fit for every use case. Further in teh article:

  • What is MockServer?
  • How to Mock HTTP APIs
  • The limitations of MockServer
  • Align the Tool with your use case

In conclusion, this post has provided a comprehensive guide on how to use MockServer to mock HTTP APIs, with a focus on an intriguing example of an online game platform’s RESTful API. MockServer can be used to effectively isolate client-side interactions for testing, with minimal dependency on actual server availability. However, while MockServer is a powerful tool, it’s important to consider its limitations in simulating complex scenarios and real-world network conditions. Good read!

[Read More]

Achieving unbrickable remote firmware updates on MCUs with a Microvisor architecture

Categories

Tags big-data iot streaming robotics cloud infosec

For many years, microcontrollers have been a staple in various products, continuously revolutionizing their feature sets, reliability, and performance. Moore’s Law has brought 16- and 32-bit processing to even the smallest and most affordable consumer products. The presence of larger memory and CPU power has allowed the use of real-time operating systems (RTOS) where previously developers had to rely on “bare metal” coding. However, as products have evolved to become connected devices in the context of IoT, it has revealed fundamental shortcomings in the traditional methods of software development for microcontrollers. By Jonathan Williams.

The article then pays attention to:

  • Consistent Device Reachability is Key in IoT Projects
  • What is a Microvisor?
  • Guaranteeing Device Availability for Firmware Updates

A microvisor is an IoT approach using hypervisors for microcontrollers, which enables reliable and secure remote operations, such as failsafe over-the-air firmware updates, on Internet-connected devices. Architecturally, a microvisor makes use of hardware separation within a microcontroller – such as the STM32U585 from ST – to divide it into two sections at boot time, e.g. by leveraging Arm® Trustzone®. Good read!

[Read More]

How to use Azure functions with MongoDB Atlas in Java

Categories

Tags nosql java azure serverless

In this article, we are going write the function as a service (FaaS) — i.e., a serverless function that will interact with data via a database, to produce meaningful results. FaaS can also be very useful in A/B testing when you want to quickly release an independent function without going into actual implementation or release. By Mohit Sharma.

The article then explains following steps:

  • Serverless function: Hello World!
  • Installing the Azure plugin
  • First Azure function
  • Deploying and running
  • Connecting the serverless function with MongoDB Atlas
  • Adding the Azure function IP address in Atlas Network Config

With MongoDB Atlas on Microsoft Azure, developers receive access to the most comprehensive, secure, scalable, and cloud–based developer data platform on the market. Now, with the availability of Atlas on the Azure Marketplace, it’s never been easier for users to start building with Atlas while streamlining procurement and billing processes. Code examples and screenshots are also included. Nice one!

[Read More]

SAP solutions to add on to an SAP S/4HANA System

Categories

Tags software fintech miscellaneous cio analytics big-data

Along with the core SAP S/4HANA solution, a number of peripheral SAP cloud applications provide benefits to financial organizations. These applications are often in the scope of finance transformation projects, with finance and accounting serving as interested parties in the implementation of these tools. The tools highlighted in this section cover analytics, end-to-end procurement, time and expense management, contingent labor management, and human resources (HR) management. By SAP PRESS.

Tha article then compares:

  • SAP Analytics Cloud
  • SAP Ariba
  • SAP Concur
  • SAP Fieldglass
  • SAP SuccessFactors

SAP Analytics Cloud provides a smooth end-to-end analytics experience that simplifies complex processes with one solution. It allows businesses to navigate easily from understanding the data to devising an appropriate plan to taking necessary action to achieve that plan. Also interesting is SAP Ariba - end-to-end, source-to-pay, software-as-a-service (SaaS) solution from SAP. In recent years, SAP Ariba has extended capabilities beyond traditional source-to-pay technologies and journeyed into enabling an intelligent digital enterprise utilizing the power of SAP Business Network.Interesting read!

[Read More]

How to enable HSTS for enhanced web security in Apache

Categories

Tags app-development infosec web-development apache ssl

HTTP Strict Transport Security (HSTS) is a web security policy mechanism that helps to protect websites against protocol downgrade attacks and cookie hijacking. It allows web servers to declare that web browsers (or other complying user agents) should interact with it using only secure HTTPS connections, and never via the insecure HTTP protocol. This article will guide you on how to implement and optimize HSTS in Apache for improved web security. By Rahul.

The article then describes:

  • Why use HSTS?
  • Implementing HSTS in Apache
  • Optimizing HSTS in Apache
  • Potential pitfalls and how to avoid them
  • Monitoring and maintaining HSTS

Implementing and optimizing HTTP Strict Transport Security (HSTS) on your Apache server is a crucial step towards securing your website and safeguarding user data. By enforcing HTTPS connections, preventing protocol downgrade attacks, and thwarting cookie hijacking attempts, HSTS provides a robust mechanism for enhancing web security. Interesting read!

[Read More]