How can I make a Apache Kafka setup reproducible?
The same project needs to behave consistently on developer machines, in CI and after deployment. Which versions, dependencies and configuration should be recorded?
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
The same project needs to behave consistently on developer machines, in CI and after deployment. Which versions, dependencies and configuration should be recorded?
I am using System.IdentityModel.Tokens.Jwt package and the below code decoding the jwt token, but it won't give exp value? var handler = new JwtSecurityTokenHandler(); var decodedValue = handler.ReadJwtToken("token"); How to get exp and compare it with the current DateTime to calculate token is expired or not? Update: I am using Azure.Core.AccessToken where
I have table for store file information. File content is stored in column (column datatype is bytea in PostgreSQL). Now I want to get file content size, based on bytea column data. In SQL Server, I am able to get by using below query: select convert(nvarchar(50),DATALENGTH(FileDataInVarbinary)/ 1048576.0 ) +' MB' as FileSize from Table_FileInfo Could you sug
I am trying to create a docker-compose stack with pg and pgadmin as follows, version: '3.1' services: pg-admin: image: dpage/pgadmin4 volumes: - /Users/pkaramol/Desktop/backup.tar:/pgadmin4/dvdrental.tar ports: - "8181:80" environment: PGADMIN_DEFAULT_EMAIL: user@domain.com PGADMIN_DEFAULT_PASSWORD: 1234 depends_on: - pg pg: image: postgres:12 volumes: - ./p
I have the following FastAPI application: from fastapi import FastAPI, Request import time app = FastAPI() @app.get("/ping") async def ping(request: Request): print("Hello") time.sleep(5) print("bye") return {"ping": "pong!"} Calling the above endpoint on localhost —e.g., http://localhost:8501/ping —from different tabs of the same browser window, it returns
I've written a custom jail and filter in fail2ban for logging into my service. The log file is located in /var/log/motion/motion.log and a failed login generates a line like this: [0:ml1] [ALR] [STR] [Nov 02 11:42:59] handle_basic_auth: motion-stream - failed auth attempt from <ip> My jail in /etc/fail2ban/jail.local looks like this: [motion-auth] enab
Compare suitability, operational responsibilities and limits before choosing this technology for a project. Which trade-offs should guide the decision?
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. I am facing this error on mac while trying to run this command docker run --rm --gpus all -v static_volume:/ho
version pip 21.2.4 python 3.6 The command: pip install -r requirements.txt The content of my requirements.txt : mongoengine==0.19.1 numpy==1.16.2 pylint pandas==1.1.5 fawkes The command is failing with this error ERROR: Command errored out with exit status 1: command: /Users/*/Desktop/ml/*/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.arg