Git Product home page Git Product logo

jr's Introduction

Screenshot

The Hugo Academic Resumé Template empowers you to easily create your job-winning online resumé, showcase your academic publications, and create online courses or knowledge bases to grow your audience.

Get Started Discord
Twitter Follow

Trusted by 250,000+ researchers, educators, and students. Highly customizable via the integrated no-code, widget-based Wowchemy page builder, making every site truly personalized ⭐⭐⭐⭐⭐

Easily write technical content with plain text Markdown, LaTeX math, diagrams, RMarkdown, or Jupyter, and import publications from BibTeX.

Check out the latest demo of what you'll get in less than 10 minutes, or get inspired by our academics and research groups.

The integrated Wowchemy website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with Hugo, and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.

We ask you, humbly, to support this open source movement

Today we ask you to defend the open source independence of the Wowchemy website builder and themes 🐧

We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way.

Hugo Academic Theme for Wowchemy Website Builder

Demo image credits

Latest news

jr's People

Contributors

al-x avatar eljeko avatar foogaro avatar gianlucanatali avatar gphilipp avatar hifly81 avatar ram-pi avatar sdellang avatar ugol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jr's Issues

Get rid of the switch in the serializer code

To serialize with avro according to the input, the types are generated at build time by gogen-avro starting from an avsc schema with go:generate. But then the serde wants an instance to serialize on, see [1] and [2]: there is a megaswitch to choose the right instance, and if one adds his own template, he then has to necessarily add a case to it and recompile (if he wants schema registry support) which is ugly.

[1]

func getType(templateType string) interface{} {

[2]
payload, err := ser.Serialize(k.Topic, t)

Stats must wait for the output to be finished

or stderr may be intertwined on the screen with stdout

% jr run -k '{{key "KEY" 20}}' -f 1s -d 10s net-device | jq

{
"VLAN": "ALPHA",
Elapsed time: 10s
"IPV4_SRC_ADDR": "10.1.78.31",
Data Generated (Objects): 10
Data Generated (bytes): 3469
"IPV4_DST_ADDR": "10.1.226.185",
"IN_BYTES": 1788,
Throughput (bytes per second): 346

"FIRST_SWITCHED": 1677849577,
"LAST_SWITCHED": 1679728004,
"L4_SRC_PORT": 80,
"L4_DST_PORT": 22,
"TCP_FLAGS": 0,
"PROTOCOL": 3,
"SRC_TOS": 201,
"SRC_AS": 4,
"DST_AS": 0,
"L7_PROTO": 443,
"L7_PROTO_NAME": "ICMP",
"L7_PROTO_CATEGORY": "Application"
}

create more Address functions

Most of these:

buildingNumber
cardinalDirection
county
direction
latitude
longitude
nearbyGPSCoordinate
ordinalDirection
secondaryAddress
street
streetAddress
streetName
streetPrefix
streetSuffix
timeZone

-X prop=val

Set librdkafka properties on the command line, like kcat

Stats

when closing a report should be generated:

  • data created (number, MBs, throughput, etc)
  • ideally also the effectiveness of the kafka compression, if present

Localization structure

Generic way to have kind of polymorphism for data:

names function should generate random names typical for US or IT or other locales

Finalize Docker images and documentation

  • buildargs (version, time, who, as in the Makefile)
  • document how to use it (local kafka and registry props file mounted, local templates, etc)
  • multiarch build to have linux/amd and linux/arm in the same image

Kcat specific templates

Separating K and V (see issue #21 ) makes harder to | to kcat.

A nice and simple solution could be to use nested templates:

kcat_net-device:
{{random KEY1|KEY2|KEY3|KEY4}},{{template "net-device"}}

Shutdown hook

JR should be shut down waiting for the last cycle of generation (not in the middle of producing a message)

JR Docker image

A docker image with JR and kcat to make it easy to use in containerized environments. Ideally FROM SCRATCH or FROM ALPINE to minimize disk usage.

To be added to DockerHub too

Install script

Install jr in bin directory and templates in home directory (~.jr/templates)

Generic base function to load words from a file

Create a function to generate tags, paragraphs, words from a list of words on a file (separated by newlines)
The function should be cached if executed (do not read again from file when invoked again) and accept functions to operate on the words with basic functionality:

choose a random word from the list
shuffle the array and get the first n
use the words to create combinations
markov chains

then higher level functions like name, city, etc would done just pointing at a specific path. This will also enable localization

Docker build is broken on arm with new librdkafka 2.1.0

Something sasl related is missing in Alpine image:

/usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux_arm64.a(rdkafka_sasl_cyrus.o): in function `rd_kafka_sasl_cyrus_close':
#15 12.65 (.text+0xb4): undefined reference to `sasl_dispose'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux_arm64.a(rdkafka_sasl_cyrus.o): in function `rd_kafka_sasl_cyrus_recv':
#15 12.65 (.text+0x1a0): undefined reference to `sasl_client_step'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0x1c8): undefined reference to `sasl_errdetail'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0x35c): undefined reference to `sasl_getprop'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0x38c): undefined reference to `sasl_getprop'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0x3ac): undefined reference to `sasl_getprop'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux_arm64.a(rdkafka_sasl_cyrus.o): in function `rd_kafka_sasl_cyrus_client_new':
#15 12.65 (.text+0xf74): undefined reference to `sasl_client_new'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0xfd4): undefined reference to `sasl_client_start'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0xff4): undefined reference to `sasl_errdetail'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0x110c): undefined reference to `sasl_listmech'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0x1180): undefined reference to `sasl_errstring'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux_arm64.a(rdkafka_sasl_cyrus.o): in function `rd_kafka_sasl_cyrus_global_init':
#15 12.65 (.text+0x16dc): undefined reference to `sasl_client_init'
#15 12.65 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: (.text+0x170c): undefined reference to `sasl_errstring'

Create higher level objects to be used in templates

Create higher level objects to be used in templates to easily maintain "consistency" in data created:

name, surname, gender, email, company, etc.

At the moment it's needed to create consistency directly in the template code, see email crreation in [1] for example, which could become cumbersome in more complex scenarios

[1]

{{$NAME := name}}{{$SURNAME := surname}}{{$COMPANY := company}}{

JR website

Create JR website (on netlify with hugo)

-n and -d

Without -f these two options don't have any meaning: -d should be parsed only in presence of -f

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.