Technically Feasible

Tagged "homeEntries"







πŸ”—

Paul’s notes on how JSON-LD works

We all know what JSON-LD is: JSON with a @context field tacked on top, right? That’s pretty much all it is. Except sometimes you see an @id field, which, sure, that makes sense. And sometimes the @context field is multiple URLs, which seems odd β€” because how do they mix? Well, no worries.

paulfrazee.medium.com


πŸ”—

OpenAPI Typescript Codegen

Node.js library that generates Typescript clients based on the OpenAPI specification. There's no named parameter in JavaScript or TypeScript, because of that, we offer the flag --useOptions to generate code in two different styles.

github.com


πŸ”—

Dependency injection in Node.js with TypeDI

Dependency injection is an essential concept in object-oriented programming. It is a way to decouple the creation of objects from their usage. In this article, we will learn what dependency injection is and how we can use it in Node.js applications using the TypeDI library.

blog.logrocket.com









πŸ”—

Mastering AWS CDK Aspects

CDK Aspects are a powerful tool provided by the AWS Cloud Development Kit (CDK). They are utilizing the Visitor Pattern. By applying a CDK Aspect to a specific scope, you get access to every child node within it. You can inspect them or alter them.

blog.jannikwempe.com


πŸ”—

JavaPoet

JavaPoet is a Java API for generating .java source files. Source file generation can be useful when doing things such as annotation processing or interacting with metadata files (e.g., database schemas, protocol formats).

github.com

πŸ”—

Annotation Processing 101

In this blog entry I would like to explain how to write an annotation processor. First, I am going to explain to you what annotation processing is, what you can do with that powerful tool and finally what you cannot do with it.

hannesdorfmann.com



πŸ”—

k3d

What is k3d?ΒΆ k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker. k3d makes it very easy to create single- and multi-node k3s clusters in docker, e.g. for local development on Kubernetes.

k3d.io

πŸ”—

Lightweight Kubernetes

K3s is a highly available, certified Kubernetes distribution designed for production workloads in unattended, resource-constrained, remote locations or inside IoT appliances.

k3s.io

πŸ”—

OpenWhisk deployment on a Kubernetes Cluster

Besides the criticism of Serverless computing [1], it is quite popular these days especially the AWS lambda functions. In this blog, we will deploy OpenWhisk one of the popular opensource serverless computing platforms along with Kubernetes to create a serverless computing environment.

medium.com

πŸ”—

These 10 New Features Make Groovy 4.0 AWESOME!

Sealed types, switch expressions, and record types. Here are just a few new features introduced in the latest Groovy 4.0 release. In this video, I want to show you ten things that make Groovy 4.0 amazing. And to keep this video short, we’re not going to dive deep into each of them.

e.printstacktrace.blog


πŸ”—

Getting Started with Java Message Service (JMS)

Remote procedure call (RPC) systems, including Java RMI, are synchronous -- the caller must block and wait until the called method completes execution, and thus offer no potential for developing loosely coupled enterprise applications without the use of multiple threads.

www.oracle.com

πŸ”—

Introducing Test Suites

As projects grow in size and complexity and otherwise mature, they tend to accumulate a large collection of automated tests. Testing your software at multiple levels of granularity is important to surface problems quickly and to increase developer productivity. In Gradle 7.

blog.gradle.org

πŸ”—

Overview

JCL is a configurable, dynamic and extensible custom classloader that loads java classes directly from Jar files and other sources. The motivation was to create isolated classloaders, which can be easily integrated with IoC frameworks like Spring and with web applications.

github.com




πŸ”—

Java SPI - a simple hello world service

I recently needed a simple example of an SPI implementation I could send around as copy and paste template. After some looking around I found some tutorials, but most of them were rather heavy in the implementation and are thereby loosing the point of being a simple extension system within the JDK.

jens.dev

πŸ”—

Modularizing with Micronaut Framework

In this blog post, I’m going to explain how you can make use of the Micronaut framework to organize your project code in such a way that you can externalize and modularize some of your @Beans. These beans can be used as β€œcommon” and can be shared between several projects.

kreuzwerker.de

πŸ’­

This means that my content, or at least part of it, is still available if I need to migrate instances again.

I need to further refine the process, as media and emoji are hot linked. This was not my preference but I could not get my head around async await at 2am.

mstdn.social

πŸ’­

Last night I switched the method through which I import my mastodon toots from here into my #11ty blog.

It now pulls changes when a ci build is triggered using an external script, rather than during the render/build phase. It does this by generating markdown files with yaml frontmatter. The process creates a new commit which in turn triggers a full build of the site on the main branch.

mstdn.social



πŸ’­

It's early days, too early to be thinking this far forward. I can't get the idea out of my head, so i'm putting it out there for comment. With any luck this will help me to move onto the basics, such as actually implementing activitypub.

mstdn.social

πŸ’­

Are there other solutions I should be considering which would be better suited to the task? I've not implemented anything with OSGi or SPI directly so this area is quite new to me. SPI seems like it may work technically.

mstdn.social

πŸ’­

Would this make sense from an implementation standpoint? I'm not currently targeting native image; it will be a deployed service running upon an installed JVM. SPI seems much more lightweight than other solutions like OSGi, which seem like a sledgehammer with far-reaching design implications in comparison.

mstdn.social

πŸ’­

I'm in the process of building an #activitypub implementation using #java and #micronaut.

I'm considering options to make the platform "pluggable". The plan is to use something like SPI to load plugins from JAR files, allowing features to be added to customize the platform for individual needs.

Off the top of my head I'm thinking things like custom APIs or storage back-ends to do things which won't be included a (completely theoretical) core distribution.

mstdn.social

πŸ’­
A completed Lego Lotus Evija #76907 on a grey background

Another lego_brick_red #lego model complete. The lotus is quite nice, though the windscreen is not very secure on this model.

I've run out of shelf space for this one.

mstdn.social

πŸ’­
A completed Lego model of a 1970 Ferrari 512 M #76906

I built one of my lego_brick_red #lego cars. I'm not a petrol head but the builds are quite fun. A nice model for my little collection 😊

mstdn.social


πŸ’­

Excellent, I think I've finished. Shame you can't port your old content, but it would be open to abuse.

Really wish I had implemented the materialize feature for fedi posts into my site now. I'll have to write another import script to parse the full export instead.

mstdn.social


πŸ”—

Transform JSON-LD in Java

In this tutorial, we’ll learn how to transform a Java Object to JSON-LD and vice versa. Also learn how to verify the schema of JSON-LD. JSON-LD is a JSON-based format which is used to represent structured data and linked data. Schema of JSON-LD can be found in documentation of schema.org.

codingnconcepts.com

πŸ”—

JSONLD-JAVA

This is a Java implementation of the JSON-LD 1.0 specification and the JSON-LD-API 1.0 specification. The Options specified by the JSON-LD API Specification are accessible via the com.github.jsonldjava.core.JsonLdOptions class, and each JsonLdProcessor.

github.com

πŸ”—

An ActivityPub Philosophy

This is going to be a look at my philosophy and views on ActivityPub and why I believe the solutions to ActivityPub criticisms must come from communities. I believe there needs to be a clear way for communities to form and build upon the ActivityPub specification.

web.archive.org

πŸ”—

RecordBuilder

Java 16 introduces Records. While this version of records is fantastic, it's currently missing some important features normally found in data classes: a builder and "with"ers. This project is an annotation processor that creates: Hat tip to Benji Weber for the Withers idea.

github.com

πŸ”—

Verifying a Digital Signature

If you have data for which a digital signature was generated, you can verify the authenticity of the signature. To do so, you need In this example you write a VerSig program to verify the signature generated by the GenSig program.

docs.oracle.com


πŸ”—

delightful-activitypub-development

Frameworks Bonfire: An extensible framework with a big focus on customisation and flexibility. Can be used to build new federated apps while focusing on a specific use case rather than reimplementing lots of boilerplate AGPL-3.

codeberg.org



πŸ”—

Awaitility

Testing asynchronous systems is hard. Not only does it require handling threads, timeouts and concurrency issues, but the intent of the test code can be obscured by all these details.

www.awaitility.org


πŸ”—

Add Build Info to an 11ty Site

In a recent update to my site, I decided to show a helpful notice in my footer that timestamps my build, writes the abbreviated commit hash from Git, and links to the changeset on my GitHub repo for ease of reference.

www.aleksandrhovhannisyan.com

πŸ”—

Accordion with CSS3

Today we’ll experiment some more with the adjacent and general sibling combinator and the :checked pseudo-class. Using hidden inputs and labels, we will create an accordion that will animate the content areas on opening and closing.

tympanus.net

πŸ”—

JWT.IO

JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties. JWT.IO allows you to decode, verify and generate JWT.

jwt.io

πŸ”—

Lunr

Designed to be small, yet full featured, Lunr enables you to provide a great search experience without the need for external, server-side, search services. Add powerful language processors to give more accurate results to user queries, or tweak the built-in processors to better fit your content.

lunrjs.com

πŸ”—

Adding Search to your Eleventy Static Site with Lunr

I recently came back from connect.tech (one of my favorite conferences). I had the honor of giving not one, but two different talks. One of them was on static sites, or the JAMstack. This is a topic I've covered many times in the past, but it had been a while since I gave a presentation on it.

www.raymondcamden.com

πŸ”—

Git commits from GitLab CI

Last week I implemented a search functionality for a static website with Lunr.js. The way I implemented the search system, depends on 2 files to work, the pagesData.json and the searchIndex.json.

www.iliascreates.com



πŸ”—

node-html-markdown

NHM is a fast HTML to markdown converter, compatible with both node and the browser. We had a need to convert gigabytes of HTML daily very quickly. All libraries we found were too slow with node.

www.npmjs.com