News AggregatorBuilding a Custom CSS3 Pagination User InterfaceAggregated on: n this tutorial I want to demonstrate a collection of CSS techniques for designing pagination. Once you combine these designs with content systems like WordPress you can see how the interfaces really work in action. View more...Mapping domain model objects to wsdl generated objects in JavaAggregated on: There are cases where an application must communicate with an external web service and most of the times the mapping between the application's domain objects and wsdl objects is manually done through custom converters and processors. Dozer framework is a mapping framework that simplifies the mapping between two objects and in this tutorial we will see how to map domain objects to XMLBeans generated wsdl objects. View more...REM to PX Browser Function with SassAggregated on: Performance is a key skill for front-end developers today. New CSS3 and HTML5 features help improve our apps but sometimes these features aren't well supported. This is where Graceful Degradation comes in. You want to leverage the extended features of new browsers but can't afford to ignore support for legacy browsers. View more...Speaking Bites: 5 Traits Putting Your Audiences to SleepAggregated on: Today we held an internal, yep, an internal only mini Red Hat Summit. This is a chance for talks to be presented select content to an internal worldwide audience at Red Hat, but that does not mean that all the content is confidential. That means I would be remiss if I didn't share my session content. View more...The Internet of Dogs: How to Build a $50 IoT Dog Collar That Locates Your PetAggregated on: I love side projects. They give me the opportunity to flex my creative muscles and tinker with tech like the Internet of Things (IoT) in new ways. Fortunately, I didn't have to look far for my next one; a common conundrum for pet owners fueled this concept for an IoT dog collar. My dog had been out in the backyard for a while. When I decided it was time to bring him back into the house, I couldn't find him anywhere! After several minutes of searching and calling his name, I found him napping in the shade of a tree. If this scenario sounds all too familiar to you, then this post is for you! View more...A Guide to Understanding Sidecar Deployment With Istio Service MeshAggregated on: Industry analysts predict that 83% of all enterprise workloads will be in the cloud by the end of 2020. To leverage the scalability and flexibility of the cloud, developers can deploy independent microservices into their cloud environments. Yet, transitioning to a distributed microservice architecture isn't without its challenges. As organizations grow, it becomes increasingly difficult to connect, secure, control, and monitor those services. That's where Istio service mesh comes in. View more...Writing Functional Interfaces in JavaAggregated on: In this article, we will highlight the purpose and usability of a functional interface in comparison with several alternatives. We will look at how to evolve the code from its basic and rigid implementation to a flexible implementation based on a functional interface. For this, let's consider the following Melon class: Java x 12 1 public class Melon { 2 3 private final String type; 4 private final int weight; 5 private final String origin; 6 7 public Melon(String type, int weight, String origin) { 8 this.type = type; 9 this.weight = weight; 10 this.origin = origin; 11 } 12 13 // getters, toString(), and so on omitted for brevity 14 } View more...Kubernetes Installation in RedHat/CentOSAggregated on: Welcome! In this article, we are going to look at how to configure Kubernetes cluster for container orchestration. Before reading this article, you should know basic core concepts of kubernetes components and basic administration in Redhat OS or CentOS View more...Retry Pattern: Examples and RecommendationsAggregated on: Today I would like to talk about Retry pattern. In distributed applications, where constant communications are made between services and/or external resources, temporary or transient failures (transient failures) can occur when interacting with these environments. These failures can be caused by different reasons, among the most common are the momentary losses of connection to the network, temporarily unavailable services, exceeded response times, etc. Normally these errors are solved automatically and in a short period of time so that if the service or resource is invoked, it immediately responds correctly. A classic example of a transient error is the failure to connect to the database due to a peak of simultaneous connections that exceed the maximum number allowed per configuration. View more...Databricks Delta Lake Using JavaAggregated on: Delta Lake is an open source release by Databricks that provides a transactional storage layer on top of data lakes. In real-time systems, a data lake can be an Amazon S3, Azure Data Lake Store/Azure Blob storage, Google Cloud Storage, or Hadoop Distributed file system. Delta Lake acts as a storage layer that sits on top of Data Lake. Delta Lake brings additional features where Data Lake cannot provide. View more...Generating Classes at Runtime and Invoking Their Methods With and Without the Use of Reflection in Java 8 and LaterAggregated on: The generation of classes at runtime is an advanced topic that requires a lot of knowledge that can be reduced if you use particular libraries that perform the most complex functions to accomplish this task.So, for this purpose, we can use the ClassFactory component and the sources generating components of the Burningwave Core library. Once the sources have been set in UnitSourceGenerator objects, they must be passed to loadOrBuildAndDefine method of ClassFactory with the ClassLoader where you want to define newly generated classes. This method performs the following operations: tries to load all the classes present in the UnitSourceGenerator through the class loader, if at least one of these is not found it proceeds to compile all the UnitSourceGenerators and uploading their classes on class loader: in this case, keep in mind that if a class with the same name was previously loaded by the class loader, the compiled class will not be uploaded. View more...Using CRUD Operations in MongoDB in Node.js Using MongooseAggregated on: MongoDB CRUD Operations Mongoose provides a simple schema-based solution to model your app data. In this post, we will see how we can use it to write basic CRUD operations in Node.js. Understanding Schema First let's write a Mongoose schema for a sample requirement. Example entity is Team, where I want to save: View more...Set Up AWS EC2 Instance: RedHat Enterprise Linux 8 (RHEL 8)Aggregated on: Amazon EC2 instances are the most widely used Virtual Machines. In general, EC2 or Elastic Compute Cloud instances run on the hypervisors, it's like a remote computer running a Windows or Linux OS on which you can install whatever software you want, including a Web Server running PHP application and a Database Server. In this article, I'm gonna show you how to set up an AWS EC2 instance - RedHat Enterprise Linux (RHEL8) and to access it remotely using SSH client from a local computer. View more...Top 5 Visualization Tool Types for 2020Aggregated on: Visualization involves the imagination to create various scenarios in our minds. Thus, whenever an individual visualizes any task, he/she creates a mental context about it. Today, visualization technique has become a significant thing associated with web development and an effective way to pass any message to draw the attention of prospects or to clear ambiguous terms and patterns based on presenting any data in a visual manner. Hence, in order to narrate any story or explain any specific pattern, experts of the web development industry have come up with popular visualization technologies and visualization tools to make the entire job of web development an easy task. Here we will discuss 5 such visualization technologies that will make the web development job easy. View more...Go Doesn't Need GenericsAggregated on: Summary A recent survey (https://blog.golang.org/survey2019-results) suggests that 79% of respondents felt that generics are a "critical" missing feature of Go. I can only assume these programmers must: View more...How to Overcome File Transfer Security RisksAggregated on: Individuals are constantly transferring files to their colleagues and trading partners, whether those files are Word documents, reports and spreadsheets, or shipping notices and acknowledgments. Most of the time, people simply assume these file transfers are safe. But in reality, hidden risks abound. View more...4 Self-Deployable Ways to Digitize Your BusinessAggregated on: Migrating to the cloud has always been an onus for organizations looking to step ahead of competitors. Given the current situation, where every business activity is forced to slow down, cloud platforms might bring harmony. The question that arises here is how? When the entire workforce is isolated and at distant locations, dealing and tackling a whole new environment, let alone setting it up, seems inappropriate. But do you know you can still move on with cloud transformations with ease? View more...Jenkins Pipeline With Sonarqube and GitlabAggregated on: In this guide, we are going to deploy a continuous integration process between Jenkins, GitLab, and SonarQube. The end goal will be to review the code quality through SonarQube for GitLab repository using Jenkins. Following is the process flow we need to manage: View more...Direct EDI Software vs. EDI VANAggregated on: Throughout the world, companies large and small alike are increasingly adding, expanding, and modernizing their electronic data interchange (EDI) communications. If you need to meet partner EDI mandates or wish to capture the many benefits afforded by EDI connectivity with more of your partners, you can take several approaches to EDI. Two of the most popular include value-added networks (VANs) and direct EDI (typically via AS2). If you're new to EDI, you may be wondering what these options entail and which is right for your business. If you've been operating EDI for some time, you may be considering whether now is the time to switch. Let's dive in and explore the advantages and disadvantages of direct EDI with AS2 vs. VANs. View more...A 4 Step Guide to E-CommerceAggregated on: Working from home has its benefits; going to work in your PJs, eating whenever (and whatever) you like and a shorter commute, to name a few. But if you’re used to selling products from a brick and mortar store, there’s not much work you can do from home unless you have an online store that […] The post A 4 Step Guide to E-Commerce appeared first on SiteCrafting. View more...Why Smart Cards Are SmartAggregated on: by Kyle Rankin If you use GPG keys, learn about the benefits to storing them on a smart card. GPG has been around for a long time and is used to secure everything from your email to your software. If you want to send an email to someone and be sure that no one else can read or modify it, GPG signing and encryption are the main method you'd use. Distributions use GPG to sign their packages, so you can feel confident that the ones you download and install from a package mirror have not been modified from their original state. Developers in many organizations follow the best practice of GPG-signing any code they commit to a repository. By signing their commits, other people can confirm that the changes that claim to come from a particular developer truly did. Web-based Git front ends like GitHub and GitLab let users upload their GPG public keys, so when they do commit signed code, the interface can display to everyone else that it has been verified. Yet, all of the security ultimately comes down to the security of your private key. Once others have access to your private key, they can perform all of the same GPG tasks as though they were you. This is why you are prompted to enter a passphrase when you first set up a GPG key. The idea is that if attackers are able to copy your key, they still would need to guess your password before they could use the key. For all of the importance of GPG key security, many people still just leave their keys in ~/.gnupg directories on their filesystem and copy that directory over to any systems where they need to use GPG. There is a better way. With OpenPGP smart cards, you can store your keys on a secure device that's protected with a PIN and not only store your keys more securely, but also use them more conveniently. Although some laptops come with integrated smart card readers, most don't. Thankfully, these devices are available as part of multi-function USB security token devices from a number of different vendors, and Linux Journal has published reviews of such products in the past. In this article, I discuss all the reasons OpenPGP smart cards are a better choice for storing your keys than your local filesystem. Reason 1: Tamper-proof Key Storage One of the main benefits of a smart card is that it stores your GPG keys securely. When you store your keys on a filesystem, anyone who can access that filesystem can copy off the keys. On a smart card, once keys go in, they never leave, neither accidentally nor from tampering. The smart card chips themselves are designed to be tamper-proof and resist attempts to extract key data even when someone has physical access. By putting keys on a smart card, you can have a reasonable assurance that your keys are safe, even from a determined attacker. Go to Full Article View more...WebAuthn Web Authentication with YubiKey 5Aggregated on: by Todd A. Jacobs A look at the recently released YubiKey 5 hardware authenticator series and how web authentication with the new WebAuthn API leverages devices like the YubiKey for painless website registration and strong user authentication. I covered the YubiKey 4 in the May 2016 issue of Linux Journal, and the magazine has published a number of other articles on both YubiKeys and other forms of multi-factor authentication since then. Yubico recently has introduced the YubiKey 5 line of products. In addition to the YubiKey's long-time support of multiple security protocols, the most interesting feature is the product's new support for FIDO2 and WebAuthn. WebAuthn is an application programming interface (API) for web authentication. It uses cryptographic "authenticators", such as a YubiKey 5 hardware token to authenticate users, in addition to (or even instead of) a typical user name/password combination. WebAuthn is currently a World Wide Web Consortium (W3C) candidate recommendation, and it's already implemented by major browsers like Chrome and Firefox. This article provides an overview of the YubiKey 5 series, and then goes into detail about how the WebAuthn API works. I also look at how hardware tokens, such as the YubiKey 5 series, hide the complexity of WebAuthn from users. My goal is to demonstrate how easy it is to use a YubiKey to register and authenticate with a website without having to worry about the underlying WebAuthn API. About the YubiKey 5 Series The YubiKey 5 series supports a broad range of two-factor and multi-factor authentication protocols, including: Challenge-response (HMAC-SHA1 and Yubico OTP). Client to Authenticator Protocol (CTAP). FIDO Universal 2nd-Factor authentication (U2F). FIDO2. Open Authorization, HMAC-Based One-Time Password (OATH-HOTP). Open Authorization, Time-Based One-Time Password (OATH-TOTP). OpenPGP. Personal Identity Verification (PIV). Web Authentication (WebAuthn). Yubico One-Time Password (OTP). In addition, the entire YubiKey 5 series (with the exception of the U2F/FIDO2-only Security Key model) now supports OpenPGP public key cryptography with RSA key sizes up to 4096 bits. This is a notable bump from the key sizes supported by some earlier models. Yubico's OpenPGP support also includes an additional slot for an OpenPGP authentication key for use within an SSH-compatible agent, such as GnuPG's gpg-agent. Figure 1. YubiKey 5 Series Go to Full Article View more...ADF : Scope VariablesAggregated on: Oracle ADF uses many variables and each variable has a scope.There are five scopes in ADF (Application, Request, Session, View and PageFlow).The below code snippest explains how to get value of each variable scope. AdfFacesContext adfCtx = AdfFacesContext.getCurrentInstance(); //Page Flow Scope Map pageFlowMap = adfCtx.getPageFlowScope(); Object pageFLowVariable = pageFlowMap.get("VARIABLE_NAME"); //View Scope Map viewMap = adfCtx.getViewScope(); Object viewVariable = viewMap.get("VARIABLE_NAME"); //Session Scope HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); HttpSession session = request.getSession(false); Object sessionVariable = session.getAttribute("VARIABLE_NAME"); //Request Scope Object requestVariable = request.getAttribute("VARIABLE_NAME"); //Application Scope Map applicationMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); Object applicationVariable = applicationMap.get("VARIABLE_NAME");Thanks View more... |
|
|