This README demonstrates how to communicate with a Videojet printer using the Zipher Text Communications Protocol, as detailed in the official documentation:
📄 Protocol PDF: Zipher Text Coms Protocol v1.21
This README demonstrates how to communicate with a Videojet printer using the Zipher Text Communications Protocol, as detailed in the official documentation:
📄 Protocol PDF: Zipher Text Coms Protocol v1.21
I've recently been looking into the go concurrency model to see how it compares to asyncio.
An interesting concept caught my attention: go generators.
| // See | |
| // https://stackoverflow.com/questions/42429023/how-can-i-perform-an-inner-join-with-two-object-arrays-in-javascript#answer-42429128 | |
| const a = [ | |
| {id: 4, name: 'Greg'}, | |
| {id: 1, name: 'David'}, | |
| {id: 2, name: 'John'}, | |
| {id: 3, name: 'Matt'}, | |
| ]; |
| #![allow(unused)] // silence unused warnings while exploring (to comment out) | |
| use std::{error::Error, time::Duration}; | |
| use tokio::time::sleep; | |
| use redis::{ | |
| from_redis_value, | |
| streams::{StreamRangeReply, StreamReadOptions, StreamReadReply}, | |
| AsyncCommands, Client, | |
| }; |
| // Like interruptWhen / interrupt but allows resumption of the source stream. | |
| def pauseWhen[F[_]: Async, A](controlSignal: Signal[F, Boolean]): Pipe[F, A, A] = | |
| pause(controlSignal.discrete) | |
| def pause[F[_]: Async, A](control: Stream[F, Boolean]): Pipe[F, A, A] = { | |
| def unpaused( | |
| controlFuture: ScopedFuture[F, Pull[F, Nothing, (NonEmptyChunk[Boolean], Handle[F, Boolean])]], | |
| srcFuture: ScopedFuture[F, Pull[F, Nothing, (NonEmptyChunk[A], Handle[F, A])]] | |
| ): Pull[F, A, Nothing] = { |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/ssm" | |
| ) |
| package main | |
| import ( | |
| "net/http" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| @Entity | |
| public class TreeCategory extends IdentifiableEntity { | |
| .... | |
| @ManyToOne(optional = true) | |
| @JoinColumn(name = "parent_id", referencedColumnName = "id") | |
| public TreeCategory getParent() { | |
| return parent; | |
| } |