A list of puns related to "Yaml"
I would like to share with you an open-source project that I was working on for the last two months. It is an open-source framework for converting Jupyter Notebook to web app by adding YAML header (similar to R Markdown).
Mercury is a perfect tool to share your Python notebooks with non-programmers.
The Mercury is open-source with code on GitHub https://github.com/mljar/mercury
Hi everybody,
Some context, In my day job, I'm working on a custom format that is based on yaml but extends it. We're still using C++, so we the used yaml-cpp as a base for our parser and it was great for that purpose. Playing with rust on Advent of Code lately I also got sent back to reality... Not having rust enums, match, great string handling, iterators when working with my AST was hard. So I wanted to try to implement the same parser in Rust as an example to my teammates of how great rust can be.
The first thing I did was to find the crate yaml-rust and it seems it isn't really maintained anymore. It has not been updated in a year and there's a lot of PR's and unresolved issues, the CI is broken... So here is my open ended question.
How should the community handle such a case? Just beginning a new project or a fork seems really sad and would look like stuff we see with npm. I think we should try to bring the repo back to life, but if the maintainer is not interested anymore (which can totally be understandable), we would need to find new people and manage to transfer the ownership of the project.
What are you guys take on this?
NB: This is not at all an attack or critic against the maintainer of yaml-rust, it just happens to be an example I ran into! We all have lives and sometimes we move on.
When moving from a yaml line to another it displays in the bottom bar the current key tree. It also allows to search for some nested keys.
https://i.redd.it/vs2pmc62fi981.gif
Maybe it can help some of you working with long yaml files.
Requires vim 8.0.1630+ or neovim.
where do you keep the edited yaml files? for example the kubectl deployment files and helm custom values?
I currently have them locally on my laptop. github is of course an option, but can you deploy it directly on your cluster with, for example, rancher or are there better tools? I dont know if you can connect github and rancher and deploy directly from there
Hi guys,
Can anyone help me figure out how to get this Dataview query to work?
Eventually, it'll be used in the other areas mentioned in the frontmatter, hence why the multiple selections.
I seem to have no end of issues trying to get YAML to display correctly in Reddit, even if using the 'code block' option. It seems to often strip it out, removing spaces, returns, sometimes leaves the first line OK. What am I doing wrong?
FWIW I mainly use Microsoft Edge for more complex posts with YAML. Firefox doesn't seem to handle it any better.
EDIT: What seems to work best is to drop the code into Notepad++ and do a replace (replace ^ with four spaces, that adds 4 spaces to the start of each line); post in markdown mode in Reddit, paste the code. Posting in the normal editor just ends up in tears...
So I've been looking for a mech to actually fit the sniper artillery or long tom to but the things are so damn heavy. Anyone here found a good platform for the guns without having to load it up with every piece of advanced weight saving equipment possible and no additional weapons?
Hi.
A few days ago I asked whether to host peertube in docker or not. I later then tried and quite satisfied.
But how do I properly acccess production.yaml
? In ./docker-volume/config, I only have local-production.json.
Upon checking, I have /app/config/production.yaml.example in the docker container. Should I mount the directory and rename the file to production.yaml
?
Basically I have less customization with docker unless I do them the hacky way?
I have a WordPress website on the same server, and I'm afraid installing peertube manually will mess something up. So I really prefer docker.
Thank you!
Still fairly new to the game. Got the basics down but not great when it comes to fine-tuning mechs. In particular, I'm trying to get a decent locust going. Currently got a 1E in a newly-made earlygame, no access to PB as of yet.
My big problem is that compared to vanilla, it feels like YAML has kneecapped lights pretty hard with the engine requirements. I also noticed that flamers felt a lot less effective.
That being said, I've tried machineguns with flamers, mgs and lasers, lasers and flamers, lasers and more lasers, but haven't quite gotten anything to stick.
Currently I'm running around in a 1E with four MLs, back and head armor stripped, it seems to do slightly better than the previous attempts, but it's still pretty hard to do anything.
I know locusts aren't exactly anyone's #1 pick, but they're just so.. fun. Something about being a third of the size of most mechs while also being ridiculously fast just makes the game so much more fun for me.
That, and after tasting 120kph+ speeds I'm not sure I can go back to the catapult anymore.
Hello everyone I have to migrate classic release pipelines to YAML pipelines. I saw that in classic release pipelines is possible to extract YAML from tasks but I need to know if there is a tutorial/course where I can learn to define all the steps involved like agent details (authentication, destination, etc) and more. Thanks in advance
Hello. I have a general question about storing settings in python. Currently, I store all my settings in a single config.yaml file but I see several people continue using .ini file types which are parsed using a configparser. Which is better: yaml or .ini? Personally, I find yaml more readable than .ini but I don't know what is accepted as good practice when storing settings
So this is turning into a real piece of work on 2 missions so far:
First was on Veckholm for part of Shadow Coup missions - never see the target but my AI lance seems to shoot at a particular spot for a while but nothing
The second was a random targeted kill on a level 15 planet. Kill Capt Crowder, city setting. Get the verification from Ryana that our target is there but no mech gets the target icon and after wiping them all out it still says 0/1
I've tried to go do other missions and come back to these but it's the same result - my mods are mostly YAML and graphics
Any graphical tools that can be used to create Kubernetes yaml files ?
I'm looking for a data-serialization language (think YAML, JSON, etc) that is: (1) human-writeable, (2) provides the option of type definitions and type annotations.
For example, I should be able to say "the following is a list of floats, yell at me if you see anything in there that's not a float".
Ideally, I would also like to be able to define custom algebraic data types Γ la ML, and use them in my language. For example, here is an imagined syntax for a list of things each of which is either a "yes", "no" or "maybe" variant:
type Answer = yes | no | maybe
someList -- [] Answer --
[]
yes
yes
no
maybe
no
The annotation "[] Answer" (read "list Answer") indicates that "someList" will be comprised of Answer variants. (And whatever engine loads the data should yell at me if this is not the case.)
I understand that the interpretation such a format is not as obvious or JSON or YAML, that only work with "standard primitives" such as strings and floats, because one needs to decide on a language-by-language basis how the "custom primitives" introduced within the file will be represented within the program that reads the file. Nonetheless, I'm still interested to know if something approximating constraints (1) and (2) exists.
Because of YAML, I was never able to try the KGC-CAR using 4x LB 10 slugs.
However, having recently discovered the joys of the Heavy Rifle, I decided to pull the KGC-CAR out of storage. So far, this setup has been one of my best and quickest at ripping through mechs. If not almost instantaenous death, then just a few seconds.
Have thought about ditching the MG arrays, but not sure what to replace them with that won't generate too much heat etc.
Your thoughts and suggestions are welcomed! and Merry Christmas!
https://preview.redd.it/0fkhx3j3or781.jpg?width=1910&format=pjpg&auto=webp&s=5ccf2d9147ea1cb0d44faf9940a78cd19dd1e363
Was looking through Nexus, downloaded Heads-Up Display (HUD Keyword) but when I enable it i get a compatibility flag
Im kinda struggling here to decide. On one hand i like all the additions and added depth to the mechlab, as well as smaller neat things like headlights and UAVs. But on the other hand its destroys any sense of balance and at times feels too open. I know the prevailing opinion is to use it, but i kinda want to hear some opinions against it, or even just some opinions reinforcing your love for it. I'm so split down the middle that its actually holding up my playthrough quite badly.
Hi, I've been trying to set makrprg
and efforformat
for yamllint
to lint YAML files. This is what I've done:
set makeprg=yamllint --f parsable %f
set errorformat=%f:%l\ :%m
However, I get this error every time I open a YAML file:
Error detected while processing /home/happy/.vim/ftplugin/yaml.vim:
line 4:
E518: Unknown option: --f
Press ENTER or type command to continue
What do I need to change? Thanks for your time!
I'm implementing a transpiler to learn the Rust (monkey-scheme), basically, I would like to take a description of the model from a description file like JSON schema, YAML, or any other to build an Intermediary language like LLVM and after that generate the source code of the target language like C++, Go, Rust, etc.
Now, I'm coming from an OOP paradigm and I see Visitor everywhere, but before falling into developing a parser for each language like Yaml, etc, I had a question related to the existing YAML package that gives you the power to walk throw the structure in a generic way.
I see that are packages like https://github.com/dtolnay/serde-yaml and the parser where serde is built on that give a Yaml representation, but I don't see any way to walk through it in a generic way with a Visitor.
My question is: I'm making the wrong step to imagine the Visitor here because I'm new with rust and I need to improve the way that I design programs with rust, or in this case, I have good intuition and I can implement my own parser that gives the possibility to visit the Yaml structure in a generic way?
P.S: If someone can give also an example of how to use the actual YAML parser to implement this generic visit I will be happy to read the example.
I am looking for a JavaScript module that I suspect doesn't really exist. I've been through the docs and repos of several different YAML modules, but have found nothing that appears to meet my needs.
I have an application built around a database. Because of this, I have definitions of the SQL tables, the data models, and an OpenAPI spec file (YAML), all of which have to agree on the size of the text-based fields. Every time I've tuned something, I've had to change it in (at least) these three places.
What I would like, is to be able to parse the YAML while somehow "filtering" each line to look for a syntax that would mean to do a substitution from a table of values. Where I declare the SQL and the data models, it is done with declarative code (so substitution is trivial there). It's the OpenAPI file that has me stuck. I have it currently in YAML, but it could be converted to JSON if that would make it easier. None of the parsers I've looked at seem to have anything like this, though.
Is there a package out there that I've missed? Otherwise I'll have to preprocess the file as a whole before I pass it along to be handled by the OpenAPI layer. Not that I find that too daunting, but I prefer to not reinvent things if I can help it.
Iβd like to add the value for input_number.office_temperature_setting in place of the 73 in this automation. How do I do it?
alias: Evans Office - Heat - Off
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.evans_office_motion_sensor_temperature
above: '73'
condition:
- condition: device
type: is_on
device_id: 42d5557143e15df94e92a8a86a205d0d
entity_id: switch.on_off_module_40_0f_66
domain: switch
action:
- type: turn_off
device_id: 42d5557143e15df94e92a8a86a205d0d
entity_id: switch.on_off_module_40_0f_66
domain: switch
mode: single
Hello guys,
I really love Home assistant. It just works with so many different devices just out of the box. The Android app is great. The Desktop App is great.
But i just dont get along with those automations done in YAML. I know basic programming, PLC programming and everything i want to in HA does seem to be simple logic or conditional statements, but most times I just fail.
It might be because I still don't get the logic behind it, and I am tired to try again after so many hours. I liked the Scratch/Blockly Automation in ioBroker, it seemed so intuitive for me.
Is there a more intuitive way for automating? Is there a good manual/tutorial that might help me? the official documentation is informative, but doenst really tell me how to combine the different parts together.
EDIT:
Well this had more impact than I would have guessed. I cant thank everybody individually for your comments at this point. So let me say this: Thank you for not suffering alone, and thank you for sharing your ideas.
I will look at addons like pyscript, nodered and appdaemon. Sadly I use a manual install of HA on my pi at the moment - why it doenst support - at least automatic installed - addons, well i might have to consider reading into a docker install.
Edit: thanks to the comments below, I gave it another try, without worrying about the key. I decided to first update both the HA OS and the HA core instance first, however. Since I had so few integrations/devices already, I figured if a bunch of stuff broke, Iβd be fine starting over anyway. So after that, in the integrations tab, the HA was detecting something (maybe the zigbee/z waveusb stick?) and I tried to integrate the z wave one. It asked for my S0 key and a few versions of my S2 Key (doesnβt exist yet?) and I left it blank and hit submit, but it said it failed. I then went to add a new integration, chose Z Wave JS, and it installed exactly how I expected, detecting the USB stick as well as the outdoor smart plug! It also detected a 3rd node, which might have been the old lock, that was never properly excluded. I deleted that node as a βfailed deviceβ for now. I did not attempt to integrate the Zigbee part of the stick yet, so we will see how that goes later. Looking forward to getting better at this, I hope soon!
I am new-ish to HA (started setting it up in summer/fall 2020, then stopped) and I want to jump back in, but already messed up, I think.
I have my HA instance on an R Pi with the Nortek stick for Z Wave/Zigbee. I had installed Z Wave only so far, the old way (not the beta way), to use with a Z Wave smart lock that came with the house. We later took out that lock and replaced it with the Nest smart lock, but I didnβt bother taking it out of my HA because I was considering installing it on the detached backyard studio.
Well, when the X Mas lights went up this season, which have a Z Wave outdoor smart plug that I used with them, I was reminded that I needed to update the HA to the new way to do Z Wave.
I went in and uninstalled the Z Wave the way that seemed intuitive to me, in the integrations page, and then went into the yaml file and deleted the couple lines of code. Then I followed instructions for the new way to install Z Wave. It didnβt seem to work, and it asked me for a security key. Only then did I remember that because I had a smart lock, I had set that key up, and I realized I might need it. Because my yaml was so incredibly short, I donβt think I saved a copy of it. I thought I might have the key saved somewhere, but canβt find that either.
Whatβs the best course of action? Iβm looking to reinstall Z Wave to use this smart plug ASAP, and also be able to purchase and install future smart home devices that use Z-Wave.
So I know absolutely 0 about any kind of coding or formatting it's all completely new to me, but I like the idea of formatting my notes so everything is in the frontmatter and i can hide or reveal it. I've figured out aliases and tags which is super useful, but for some reason when i try to put the date it doesn't work.
For reference, I've tried:
date: file.mtime
created: file.mtime
date : [ file.mtime ]
date : {file.mtime}
date: [file.mtime]
although it doesn't show up as an invalid YAML, it doesn't show in the metadata in reading view - i can see aliases and tags but the date just disappears and doesn't show... am i doing something wrong?? I think it's formatted correctly, but for some reason I can't see it in read view?
I spent all my day installing and supporting open source software on Kubernetes.
I tinker with docker, Helm, Azure Pipeline Releases, Kubernetes Yaml, etc.
I don't write code anymore. It's all yaml and config.
I hate it.
I used to be a C# guy and I always hated the CI, Release, DevOps part of the job.
I don't like infrastructure, I don't really like learning tech products.
But currently that's all I do.
I want to write code that works and solve concrete business problem.
Learning how a business domain works gives you a new perspective on the world.
I have been here for 2 years and I can feel I'm getting outdated when it comes to my programming ecosystem (DOT NET).
I have about 10 years of experience as a developer - including the last 2 years that are not really development.
Any advice? Perspective?
Thanks
I wanted to enable some modes when working with yaml files and added this to my .emacs file:
;; yaml-mode
(require 'yaml-mode)
(require 'highlight-indentation)
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
(add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-mode))
(add-hook 'yaml-mode-hook
'(lambda()
(define-key yaml-mode-map "\C-m" 'newline-and-indent)))
(add-hook 'yaml-mode-hook
'(lambda ()
(auto-complete-mode t)
(setq ac-yaml 'ac-source-yaml)))
(add-hook 'yaml-mode-hook
'(lambda()
(highlight-indentation-mode)))
When opening a yaml file these modes are not enabled and all I get is the following message:
File mode specification error: (wrong-type-argument number-or-marker-p nil)
Can someone help me?
Here goes:
I played the Campaign in vanilla mode, and bailed on it to start a new Career with YAML and its attendant mods. In the campaign, I had Boar's Head and it was the crown jewel of my mech collection. Nightstar is nice and all but it couldn't hold a candle to the pig. So naturally I missed it dearly.
Eventually in the career mode I got my first Atlas, the good old AS7-D. By then I got lucky enough to score an tier 5 LBX-20SLD and a tier 5 light rifle (I'm playing with "lore abiding citizen" off so everything has a chance to spawn in the market at any time including Clan stuff). You see where this is going. LBX and rifle in the ballistic slots, four medium lasers, and LRM20 Stream and LRM10 Stream in the missile slots. Double heat sinks, a few Patchworks to get the weight under control, and... it's not quite Yeetus Deletus that a Long Tom would be, but I actually like it better because the LBX and the rifle run cooler, have better fire rate and seem to hit more reliably. It takes care of business literally at any distance, reliably deletes smalls and mediums and makes a mash of everything above while tanking a ton of damage.
Best part perhaps is that there's still room for improvement as I find better gear - I could have better sensors and targeting computer, I can fit ferro armor, and if I find Clan missile launchers, then I can use them at short distances too. Probably could squeeze in a lighter engine too at some point for a speed boost. But even before that it's a rock-solid mech. And it's just a bone-stock AS7-D.
For shits and giggles I spun up a Boar's Head in instant action. I had to give it a full-on Clan makeover for it to match the performance of AS7-D somewhat. There is almost no chance that I will be able to collect all those upgrades in normal game before getting bored (boared? to death?). Now of course in IA you only have access to tier 0 gear and no Cantina upgrades, but still, compared to the AS7-D the pig felt like a one-trick pony (if a substantially faster one).
Moral of the story - up til now I had no idea what /u/Skolloc753 meant when he mentioned in his mod recommendation post that YAML lets you make your own hero mechs. With great power comes great responsibility and also potential disappointment in the formerly treasured hero mechs... unles anyone have any clever YAML builds for the Boar's Head so it doesn't turn out a dud purchase when I finally find it?
Give me some interesting options to try out. Just unlocked XL engines, and I'm loving all the expanded options.
Hello, I have this problem trying to use one environment file for my entire project. Docker-compose is able to fill out env vars properly, but any other arbitrary yaml files do not.
Here is an example of the structure which faces this problem:
.env (as the source of truth for all variables):
POSTGRES_VERSION=14.1-alpine
POSTGRES_DB=dbname
POSTGRES_USER=user
POSTGRES_PASSWORD=password
docker-compose.yaml (for building containers):
services:
postgres:
image: postgres:${POSTGRES_VERSION}
container_name: postgres
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
my-app:
image: docker.io/neighbor/my-app:latest
container_name: my-app
entrypoint: './my-app serve --config "my-app.yaml"'
my-app.yaml (acts as configuration for my-app
, which also needs this info to connect to a db):
database:
postgres:
db_name: ${POSTGRES_DB}
db_user: ${POSTGRES_USER}
db_password: ${POSTGRES_PASSWORD}
The docker-compose.yaml
will get it's values populated from .env
properly, which I am sure many of you know about and use. But how is this done, and how can I do it for any arbitrary yaml?
To run my-app
I do --config "my-app.yaml"
, such that my-app.yaml acts as a configuration file for that program / container. However, these values in my-app.yaml DO NOT get populated from the .env file. This is the problem I face.
How can I populate any yaml with the .env info before a container is ran?
Maybe with something a Makefile
, I can create some script that will populate all the necessary YAML files from the .env
, and then do docker-compose up
?
Note: I realize I could set environment
settings in the docker-compose file for my-app as well, but having one configuration file works much better in my experience when passing variables into go programs.
Any help would be greatly appreciated!
I am newish to Rust and have worked my way through the Rust book last summer. I want to build (what I think is) a simple project. My goal is to make a Rust program that can read a YAML file, parse it, and execute a series of commands within it.
Here is an example YAML:
version: v1
description: "I am the project file description."
entrypoint:
- bash
- -e
- -c
- "$@"
commands:
simple-command:
cmd: echo "Hello"
usage: "Example command that should print Hello."
multiple-command:
cmd: |
echo "Hello"
echo "World!"
usage: "Example of multiple commands that should print Hello World!."
The idea is like most others you have seen - providing simple commands that execute larger complex ones. So "myprogram simple-command" on the command line would output "Hello", as executed by entrypoint.
Here is some sample code:
use std::io::{BufReader, Read};
use std::env;
use serde::{Deserialize};
use serde_yaml;
use serde_yaml::{Mapping, Sequence};
use derivative::Derivative;
#[derive(Debug, Default, Deserialize)]
struct MyStruct {
#[serde(default = "default_version")]
version: String,
entrypoint: Sequence,
commands: Mapping
}
#[derive(Debug, Deserialize)]
struct Commands {
commands: Vec<Command>
}
#[derive(Debug, Deserialize)]
struct Command {
cmd: String,
usage: String
}
fn default_version() -> String {
"v1".to_string()
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
// example routine
let file = std::fs::File::open(".myprogram.yml")?;
let mut buf_reader = BufReader::new(file);
let mut contents = String::new();
buf_reader.read_to_string(&mut contents)?;
let args: Vec<String> = env::args().skip(1).collect();
let mystruct: MyStruct = serde_yaml::from_str(&contents)?;
let command_iter = mystruct.commands.iter();
for command in command_iter {
println!("Command is: {:?}", command);
}
if args.is_empty() {
let commands: Mapping = mystruct.commands;
println!("{:?}", commands);
println!("\n\nI should print all commands and their usage info here since no command was passed.");
... keep reading on reddit β‘Dang, after all this time, I restarted a fresh install of the game with the DLC and I am loving this fresh start.
I played the game when it dropped and was disgusted at the lack of features with only the main story missions being good, then again with the new DLC came out and was happy with the new hand crafted missions.
But with YAML finally ported over to the steam version and is stable (at steam launch when I actually brought the game and DLC YAML and reloaded did not work at all), I finally loaded up YAML + clans and additonal IS stuff.
My god, it made the progression so much like something I'd love, pokemechs are seriously a thing. That CDA-X5 that I skip before? Lovely source of XL330 engine that I stuck into a CP-Q that is wrecking face with some looted ECM and loaded with 7 SRM 6 (seriously fuck ghost heat lol, if I can run this in MWO then i dont think i will run anything else).
The numerous light mechs with DHS kits? brought and stripped just like the K9 before but just so much better when you can reuse the kit.
Those weird mediums and what not but comes with XL275? Stripped and now my 100t gauss erppc head cappers can get so much more DHS into the thing (and DHS engine kits) that ERPPC heat is far less of an issue now. And the speed isn't that slow compared to having a 200 engine (looking at you stock ANH) and is acceptable, although I wish for XL300 for that one.
Or the stalkers with 5 LLs just burning everything down. Or ANH with 5 AC5s and not moving at a snails pace. So much possibilities.
I can see why they didn't want this in native MW5, because at this point, I don't think I will ever play MWO again because this is far better than that experience. Esp at my skill level where I am not good enough to play with the top players but just better than normal players to be placed into matches with them resulting in each game becoming a which side has more top 2000 jarl's list player that carries deal.
This is what the game really needs for someone who has put 5000 hours into battletech (the PC game) with 4500 of it in roguetech from the start of that mod.
I would like to share with you an open-source project that I was working on for the last two months. It is an open-source framework for converting Jupyter Notebook to web app by adding YAML header (similar to R Markdown).
Mercury is a perfect tool to share your Python notebooks with non-programmers.
The Mercury is open-source with code on GitHub https://github.com/mljar/mercury
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.