Support mingw cross-compile

This pull request has some related fixes
https://github.com/martine/ninja/pull/339
I fear that keeping a mingw cross-compile working long-term is maintenance effort that I don't want to worry about.  Not sure what to do about it.

This works perfectly fine now that we have CMake files :)


Title: Enhancement to Height-Conversion-tool

Is your feature request related to a problem? Please describe.
Height-Conversion-tool
Currently, this extension only provides an option to convert from feet to cm.
Describe the solution you'd like.

Add a feature to convert from cm to feet.
Improve the existing ### UI.

Describe alternatives you've considered.
No response
Alternative approach
No response
Add any other context or screenshots about the feature request here.

Thanks for creating the issue @tejasrialluru , you can start working on it :) , but please follow the issue template from the next time and contribution guidelines as well.
Regards.

@narayan954 before assigning issues, you must check is the similar extension already available or not ?
kindly check this https://github.com/ridsuteri/Awesome-Chrome-Extensions/issues/153

@its-harsshhh it's an enhancement not a new extension.

Is this issue still open?
I would like to work on it, if no is working on it

@tejasrialluru  could you tell us if you're working on this issue?

Can i create a pull request, I am done with the code @its-harsshhh


"Deploying a self-contained app" no localhost cert for ssl, no dotnet installed

Hi
I think this is useful but needs more...
What I cannot figure out... is for "Deploying a self-contained app"
This means that dotnet is probably not installed, which mean you cannot run such command "dotnet dev-certs https -v".
Which mean you cannot get ssl working locally
now... what would be nice if they explain how you would get this working step by step, for dev and prod if they should be different.
"Deploying a self-contained app" try running with something like
sudo  ASPNETCORE_URLS=https://*:5001 ./dotnetWebApp
This will not work as there is no localhost cert. it suggests "dotnet dev-certs https -v" but dotnet is not installed.
sudo  ASPNETCORE_URLS=http://*:5000 ./dotnetWebApp - this works
If you install dotnet what was the point of "Deploying a self-contained app".
Please help, with how you get local ssl when you have not installed dotnet.
Reason its not installed as you have gone with "Deploying a self-contained app"
looking for how this is done on Raspberry OS

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 853c5e7f-a0b8-c6ba-8744-293407a12e86
Version Independent ID: 3f79892b-de26-fb7a-77b1-ec02b8a7e566
Content: Deploy .NET apps to Raspberry Pi
Content Source: docs/iot/deployment.md
Product: dotnet
GitHub Login: @CamSoper
Microsoft Alias: casoper

Hello!
Taking a stab at answering your qestion.
Self contained deployment is generally for production distribution where the SDK/Runtime isn't going to be available. The dev-certs are for testing and shouldn't be used for production. When you get your certificates created (either via dev-certs for testing or your real certs for production) I believe you would deploy them with the container.
You can find more information at https://docs.microsoft.com/en-us/aspnet/core/security/docker-https?view=aspnetcore-5.0


R ValueError: Error when checking input: expected simple_rnn_input to have 3 dimensions, but got array with shape (1661, 3)

Here is my code:
used_time_period = "2009-01-01::2017-04-01"

data_used = data_input[used_time_period,]

split_coefficient = 0.8

train_set_rate = round(nrow(data_used) * split_coefficient)

data_train = data_used[1:train_set_rate,]

data_test = data_used[(train_set_rate + 1):nrow(data_used),]
################## keras model #############################################
model = keras_model_sequential() %>%

  layer_simple_rnn(units = 75, input_shape = dim(data_train[,1:3]), activation = "relu", return_sequences = TRUE) %>%
  layer_dense(units = 2, activation = "relu")

model %>% compile(optimizer = "adam", loss = "binary_crossentropy", metrics = "binary_accuracy")

history = model %>% fit(x = data_train[,1:3], y = data_train[,4:5], epochs = 40, batch_size = 20)

the error i'm getting is this:  ValueError: Error when checking input: expected simple_rnn_input to have 3 dimensions, but got array with shape (1661, 3)
dim(data_train[,1:3]) = (1661, 3)
dim(data_train[,4:5]) = (1661, 2)
What am I doing wrong?

Hi!
This issue isn't related to a bug/enhancement/feature request or other accepted types of issue.
To ask questions, please see the following resources :

https://keras.io/
https://keras.io/#support
https://gitter.im/Keras-io/Lobby

Thanks!
If you think I made a mistake, please re-open this issue.

how can I reopen it?


Documentation on how to develop new drivers

Hi, I need some help developing the driver for the UART or CAN interface for my ebedded board.
As the documentations states: "If you do not find your driver supported, it is quite simple to add a driver that conforms to the CSP interface." However I can't find which is this interface. Provided drivers are quite different between each others.
It would be nice to see a small tutorial or a generic driver. For example, what are the expected inputs and outputs for a driver.
Many thanks in advance!

We've merged another CAN layer last Nov.  This should help understand how you do it.
libcsp's "driver layer" is not really a device driver layer in Linux kernel or some other RTOS's sense.  It's more like a glue layer between our interface layer and underlying layer, which can be API given by your OS, middleware, device driver, or whatever you have on your board.
Let us know when you have any question.

I'm closing this.
Please reopne it if you have more questions, or open a new one if you have a specific question.


Programmatic inputs example

Closes #225

FYI here's what it ends up looking like in the gallery

The build failure regarding XS settings is a new one and it's caused by a change in a dependency version, probably in voluptuous, which is treating things differently. I can replicate it on a fresh install of ARMI.

Yeah this commit added sorted which causes this because there is a None in the list getting sorted. alecthomas/voluptuous@997c8db

Good find!

Sweet!


Greeting Message Web Chat v4 - Sending events from bot

Hi,
I am migrating from Webchat v3 to Webchat v4, and I am having problems when I post an event activity for welcome trigger. I was using the workable solution given in official botframework blog:
https://blog.botframework.com/2018/07/12/how-to-properly-send-a-greeting-message-and-common-issues-from-customers/
        botConnection
            .postActivity({
                from: user,
                name: 'requestWelcomeDialog',
                type: 'event',
                value: ''
            })
            .subscribe(function (id) {
                console.log('"trigger requestWelcomeDialog" sent');
            });

But when I try to do it in Webchat v4 React version, using the next code:
let directLine = window.WebChat.createDirectLine({ secret: '' });

directLine.postActivity({
                from: user,
                name: 'requestWelcomeDialog',
                type: 'event',
                value: ''
            })
            .subscribe(function (id) {
                console.log('"trigger requestWelcomeDialog" sent');
            });

the event arrives to the bot correctly, but I get a "conversation ended" error in the web browser console, and the messages don't arrive to the client.
Anybody can gimme an example about how to do it correctly in v4?
Thanks in advance!

The code looks good to me. Web Chat v4 is still using the very same version of DirectLineJS.
Will investigate the code. But since I am locked down on something else more urgent (#1336), my response may be slow.
p.s. we are drafting PR #1286 to make the "send welcome event" story more standard. You can peek into it for details.

We got same error on sending greeting message, with botchatDebug enabled and override DirectLine.end(), we found that seems the DirectLine conversation ended on creating WebSocket connection.
We reverted to v3 since we did not find solution for this problem.

@xinfli if there is any JavaScript errors inside the business logic of Web Chat, we will close the Direct Line connection. This is a new behavior.
I believe the code that call directLine.postActivity() is causing JavaScript errors in Web Chat. We need to dig into that error.

@compulim Thanks, I guess it's caused we transfer customized value in activity and caused this problem, but: 1. same code works fine with v3; 2. in v4 it failed random, sometime it works.
And, how can we catch the error caused the DirectLine connection closed?
Below is our code:
	// ...
	var dl = window.WebChat.createDirectLine({ secret: token });
	var botContainer = document.getElementById('grantBot');

	const styleOptions = {
		// Color options
	};

	window.WebChat.renderWebChat({ directLine: dl, styleOptions }, botContainer);

	var activity = {
		from: {
			id: userId,
			name: userName
		},
		name: 'startConversation',
		type: 'event',
		value: '',
		channelData: {
			"personId": userId,
			"environment": window.location.host
		}
	};

	dl.postActivity(activity).subscribe(function(id) {
		if (console) {
			console.log('"trigger requestWelcomeDialog" sent');
		}
	});
	// ...

Fix is coming in, #1405. More details over there.
(@xinfli, your code is very useful)

Great! waiting for the new release :-)

It's coming, in Travis CI now.

how to send the post activity for any event type from webchatV4? please provide me the exact syntax and dummy code.

I am also looking for. Can u help me with the syntax

Please see https://github.com/microsoft/BotFramework-WebChat/blob/master/docs/WELCOME_MESSAGE.md


Backup files created by editors trigger compile-restart cycle

Editors, like vi and emacs, create backup files by default when you edit as a peer of the existing file and that causes a compile-app restart cycle.  Certain IDEs may do this too.
Dev mode should handle and not perform a compile-restart cycle.

Includes handling for vi, emacs, and IntelliJ temporary files.


Removed emoji characters from the (app) strings.xml file.

Pull request requested by samtstern :)

Fixes #161
Sorry @iainmcgin, your adorable emoji are apparently evil.


Naming GraphQL inputs

I would like to introduce the following rules for naming inputs:

All inputs should finish by the suffix Input
Inputs to create and update a given object should simply be named like the object: CollectiveInput.
If they need to be more specific, they should be suffixed with CreateInput or UpdateInput. ie: ExpenseCreateInput, ExpenseUpdateInput
Inputs to reference an object should have a consistent naming: CollectiveReferenceInput or CollectiveFetchInput (to be defined)
Inputs to sort a collection should be suffixed by OrderInput, ie: ChronologicalOrderInput

Feedback welcome: @Betree, @kewitz, @sbinlondon

Agree with the full proposal, especially {Object}ReferenceInput. We're probably going to have a bunch of them to transition smoothly between API V1 and V2 so a proper way to differentiate is required.

As a transition strategy, I'm proposing a simple breaking change in the API, followed by an immediate Frontend deployment.

I'm all-in for consistency.

Just to add another +1 to the chorus, consistency is always a good thing.


Bug:  - GitHub Action CI Backendless mode + Terragrunt will cause a segmentation fault

Steps to recreate

Use digger config

digger.yaml
projects:
- name: dev
  dir: dev
  terragrunt: true

use workflow config

name: Digger Workflow

on:
workflow_dispatch:
  inputs:
    id:
      description: 'run identifier'
      required: false
    job:
      required: true
    comment_id:
      required: true

jobs:
plan:
  runs-on: ubuntu-latest
  permissions:
    contents: write
    actions: write
    id-token: write
    pull-requests: write
    statuses: write

  steps:
  - uses: actions/checkout@v4
  - name: digger run
    uses<EMAIL_ADDRESS>    with:
      setup-aws: true
      setup-terragrunt: true
      setup-checkov: false
      aws-role-to-assume: "REDACTED"
      no-backend: true
      aws-region: us-west-2
    env:
      GITHUB_CONTEXT: ${{ toJson(github) }}
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Hey @ben-of-codecraft ! Thanks for identifying this bug. I noticed you are using it with the app and that error message is coming from there, however you have no-backend: true set in the action argument. Is this argument intended or you wanted to remove it?
I think we should throw an error earlier if the flag no-backend is set yet the workflow dispatch event invoked digger. If you remove that flag and confirm it works we can ship a fix for this particular case

@motatoes retested this today.  The cause was the dispatch with no-backend = true.  If you change it to PR workflow and no dispatch it does work fine.
Thanks for looking at this.
I think an earlier error that help users know what is causing the problem would be great.


Add addTto Command

Done up all the necessary classes for AddTodoCommand and related classes. Some changes and additional checks were added/made to AddEventCommand and related classes. I have yet to do up tests for AddTodoCommand. I will do AddDeadLineCommand after this, and then will add the tests for Todo and Deadline at the same time. Thanks!


debugger broken when set break pointer on a line containing chinese character

gdb version: GNU gdb (Ubuntu <IP_ADDRESS>61005-0ubuntu1) <IP_ADDRESS>61005-git
os version: ubuntu 16.10 x64
screenshot

here is the code
#include <iostream>
int main(int argc, char *argv[]) {
  std::cout << "好好学习，天天向上" << std::endl;
  std::cout << "lalala" << std::endl;
}

This line is causing the issue:
~"4\t  std::cout << \"\345\245\275\345\245\275\345\255\246\344\271\240\357\274\214\345\244\251\345\244\251\345\220\221\344\270\212\" << std::endl;\n"

My string parsing code (just finding the length and then using JSON.parse) crashes there because \345 can't be parsed to a string using the JSON string parser. I am not sure how I can parse this string because that does not seem to be one byte in the string and it also isn't the correct unicode char code.
One dirty fix would be just outputting the string without parsing it. This would also mean that variables containing chinese characters won't be displayed properly.
I would prefer to parse it correctly though, so the variables view works for every language. I just need to figure out what kind of formatting that is.


counterflow heat exchangers

About the PR

Adds a new atmos device, the counterflow heat exchanger, which allows for an efficient heat transfer between two gases. Gas analyzer UI is still a bit awful but it has to do. Missing sprites and the math makes it randomly crash. Still need to figure that out. Maybe some extra guidebook entries?
Why / Balance

Wide variety of uses, gas recycling, maybe some TEG, re-using water vapor from tritium burns to heat up other gases, etc. This was technically possible before with two radiators and a plasma filled room but now can be done with just one device.
Technical details

Adds support for quaternary atmos devices, touches the gas analyzer UI and NodeContainerSystem accordingly.
Media

TODO
Requirements

[x] I have read and I am following the Pull Request Guidelines. I understand that not doing so may get my pr closed at maintainer’s discretion
[ ] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

:cl:

add: Atmos has received new counterflow heat exchangers!

Hello! Thank you for your contribution! Due to the PR having been set to draft and having no new commits since being made 3 months ago, we are closing it for the time being. If you return to this PR feel free to open up a new submission. Thanks!


fzf use should not be the default if installed on the host

Why not only use FZF only when explicitely selected by something like KUBECTX_USE_FZF=true instead of having to set KUBECTX_IGNORE_FZF=true to disable it ?
It's a behaviour change that I really dislike, which I discovered when moving to zsh (from bash).
Also, kubectx -h should list all this kind of behaviour and how to enable/disable them.
I could submit a PR if you think it's legit.
Thanks

Because this tool is designed for interactive use and this is how >100k existing users like it.


Deprecate multiple matches on regexp

All we need is just one match regexp. It's okay only we have it. Multiple maches regexp is working for now, but no makes sense anyway. I'm not sure a use case at all.
If you use multiple matches regexp, please let me know.

https://github.com/bayashi/irir/releases/tag/v0.3.0


rc2nix: Add more *rc files

Dolphin-related config.

Thanks!

There's also ktrashrc but that has a section that looks like /home/user/.local/share/Trash so maybe we want to replace $HOME with ${config.home.homeDirectory} or something.


Why height 98% of .editor-container?

Why is the height of css class .editor-container set to 98% and not to 100%?
To look up in ngx-monaco-editor/projects/editor/src/lib/editor.component.ts
I need 100%. So I must use ::ng-deep, which should not be used.

I tried to force 100% by CSS but the editor area height keep growing in size.
What is the pro of 98%?
Thanks!

I also noticed this and the pro is that it looks bad. Maybe not when it is 200px height, but having it at almost full screen height  makes it having big empty space at bottom.
Also, I changed it to 100%, kept resizing window to and it looks good, no issues with growing in size. Maybe they've fixed something and now it behaves correctly.

I found that using height: calc(100% - 1px) seemed to work ok FWIW.


Mass Burning

Is your feature request related to a problem?
If someone wants to burn more than one NFT in the collection - they need to burn them manually one by one. Would be nice to have option to burn more NFTs at once
Describe the solution you would like
Option to burn more NFTs at once
Describe alternatives you have considered

Screenshots
No response
Are there opened related issues?
No response

yy

#5585


Create dev_requirements.txt from extras_require section of setup.cfg file using pip-compile

What's the problem this feature will solve?
NOTE: This is pasted and adapted from my question on stackoverflow because I am not sure if this feature already exists: https://stackoverflow.com/questions/68712892/how-to-create-dev-requirements-txt-from-extras-require-section-of-setup-cfg
I use pip-tools to manage my dependencies and environments which perfectly generates a requirements.txt file for my package that consists of a setup.py that looks like this:
#! /usr/bin/env python
import os
from setuptools import setup

if "CI_COMMIT_TAG" in os.environ:
    VERSION = os.environ["CI_COMMIT_TAG"]
else:
    VERSION = "0.0.0"

setup(version=VERSION)

and a setup.cfg like this:
...
[options]
python_requires = >=3.7
zip_safe = False
packages = find:
include_package_data = True
install_requires =
    PyYAML
    Cython
    numpy==1.17.5
    pandas==0.25.3
    ...
package_dir=
    foo=bar

[options.extras_require]
testing =
    tox>=3.1.2
    pytest>=3.4.0
coverage =
    coverage
    pytest-cov>=2.5.1
other =
    anybadge
...

Running $ pip-compile --index-url https://foo<EMAIL_ADDRESS>--no-header --allow-unsafe  yields my package requirements:
...
async-timeout==3.0.1
    # via aiohttp
attrs==21.2.0
    # via aiohttp
bcrypt==3.2.0
...

But this only includes all the packages from the install_requires section of my setup.cfg file and not the requirements from extras_require. It should work with a dev_requirements.in file as described here but I would rather only use one configuration file.
Describe the solution you'd like
Create a separate dev_requirements.txt from this extras_require section of my setup.cfg file using pip-compile without having to create a dev_requirements.in file.
Alternative Solutions
I am also open for other solutions to achieve my goal.
Additional context
Thanks in advance for your help!

After digging a bit more, I found my answer in another issue: https://github.com/jazzband/pip-tools/issues/625#issuecomment-819374864 Thanks for maintaining this cool package!

After digging a bit more, I found my answer in another issue: #625 (comment) Thanks for maintaining this cool package!

I just want to add that personally I prefer a separate file because it usually describes some env, not the package itself. So it doesn't really belong in the package metadata, nor is useful to the final consumers... But yeah, this question is considered controversial in the packaging community and the opinions are polarized.

Yes, I see your point. Nevertheless: is there also an option to pass multiple envs/sections using --extra?
Let's say I have:
[options.extras_require]
dev =
    black==20.8b1
other =
    coverage
    mypy
    anybadge

How can I add both sections?

pip-compile --extra=dev --extra=other should work

You are my heroes of the day. Thanks a lot for your help and this wonderfull package!

I think having multiple options should be enough. --extra dev --extra other. Here are some test cases that check this scenario: https://github.com/jazzband/pip-tools/pull/1363/files#diff-99b06d953a9978ee564df2e67547b8a76f3b1ab116ab7c89a9005b9239f2a904R1803-R1807.


[Bug] Server Wont Start Kept Sending Warn and Error (1.19.2)

Checks

[X] I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting.
[X] I confirm that I followed the MCDC Docs and read the Changelog, but this problem still exists.
[X] I confirm that I noted that if I don't follow the instructions, the issue may be closed directly.

Java Version
Java 17
Minecraft Version
1.19.2
MCDiscordChat Version
2.1.0
Description
Test the mod on my test server b4 putting it in my main. the server just wont start and kept giving me warn and error (more of it here https://mclo.gs/vCfPqFm )
[14:02:05] [Worker-Main-2/WARN]: @Redirect conflict. Skipping mcdiscordchat.mixins.json:MixinLanguage from mod mcdiscordchat-1_19_x-
[14:02:05] [Server thread/ERROR]: Error executing task on Chunk source main thread executor for minecraft:overworld
To Reproduce
i just install the mod + fabric api (fabric-api-0.70.0+1.19.2.jar) and when i started the server it just wont start and kept giving error and warn
Log
https://mclo.gs/vCfPqFm
Config
mcdiscordchat.txt
cant upload .json so i changed it to .txt

Same issue due to MixinLanguage.
Choose one of the current solutions:

Lower Fabric API to 0.66.0, or
Update to 1.19.3 and MCDC 2.1.1

Latest solution is update to MCDC 2.1.2, which is available for both 1.19.2 and 1.19.3


Objects Pod: exception when watch gets interrupted, leaves defunct processes behind

What happened:
out of the box fluentd in objects pod is configured to open a "watch" to the K8s API (https://kubernetes.io/docs/reference/using-api/api-concepts/)
# oc get cm splunk-connect-splunk-kubernetes-objects -o yaml | less
[...]
      <watch>
        resource_name events
      </watch>
[...]

When this watch gets interrupted by Loadbalancer timeouts, the ruby process will throw an exception
2021-06-25 13:32:46 +0000 [warn]: #0 thread exited by unexpected error plugin=Fluent::Plugin::KubernetesObjectsInput title=:watch_events error_class=HTTP::ConnectionError error="error reading from socket: Could not parse data"
#<Thread:0x000055f1dc976980@watch_events /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:70 run> terminated with exception (report_on_exception is true):
/usr/share/gems/gems/http-4.4.1/lib/http/response/parser.rb:31:in `add': error reading from socket: Could not parse data (HTTP::ConnectionError)
        from /usr/share/gems/gems/http-4.4.1/lib/http/connection.rb:214:in `read_more'
        from /usr/share/gems/gems/http-4.4.1/lib/http/connection.rb:92:in `readpartial'
        from /usr/share/gems/gems/http-4.4.1/lib/http/response/body.rb:30:in `readpartial'
        from /usr/share/gems/gems/http-4.4.1/lib/http/response/body.rb:36:in `each'
        from /usr/share/gems/gems/kubeclient-4.6.0/lib/kubeclient/watch_stream.rb:25:in `each'
        from /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:248:in `block (2 levels) in create_watcher_thread'
        from /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:246:in `tap'
        from /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:246:in `block in create_watcher_thread'
        from /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'
/usr/share/gems/gems/http-4.4.1/lib/http/response/parser.rb:31:in `add': Could not parse data (IOError)
        from /usr/share/gems/gems/http-4.4.1/lib/http/connection.rb:214:in `read_more'
        from /usr/share/gems/gems/http-4.4.1/lib/http/connection.rb:92:in `readpartial'
        from /usr/share/gems/gems/http-4.4.1/lib/http/response/body.rb:30:in `readpartial'
        from /usr/share/gems/gems/http-4.4.1/lib/http/response/body.rb:36:in `each'
        from /usr/share/gems/gems/kubeclient-4.6.0/lib/kubeclient/watch_stream.rb:25:in `each'
        from /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:248:in `block (2 levels) in create_watcher_thread'
        from /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:246:in `tap'
        from /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:246:in `block in create_watcher_thread'
        from /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'
2021-06-25 13:32:46 +0000 [error]: #0 unexpected error error_class=HTTP::ConnectionError error="error reading from socket: Could not parse data"
  2021-06-25 13:32:46 +0000 [error]: #0 /usr/share/gems/gems/http-4.4.1/lib/http/response/parser.rb:31:in `add'
  2021-06-25 13:32:46 +0000 [error]: #0 /usr/share/gems/gems/http-4.4.1/lib/http/connection.rb:214:in `read_more'
  2021-06-25 13:32:46 +0000 [error]: #0 /usr/share/gems/gems/http-4.4.1/lib/http/connection.rb:92:in `readpartial'
  2021-06-25 13:32:46 +0000 [error]: #0 /usr/share/gems/gems/http-4.4.1/lib/http/response/body.rb:30:in `readpartial'
  2021-06-25 13:32:46 +0000 [error]: #0 /usr/share/gems/gems/http-4.4.1/lib/http/response/body.rb:36:in `each'
  2021-06-25 13:32:46 +0000 [error]: #0 /usr/share/gems/gems/kubeclient-4.6.0/lib/kubeclient/watch_stream.rb:25:in `each'
  2021-06-25 13:32:46 +0000 [error]: #0 /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:248:in `block (2 levels) in create_watcher_thread'
  2021-06-25 13:32:46 +0000 [error]: #0 /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:246:in `tap'
  2021-06-25 13:32:46 +0000 [error]: #0 /opt/app-root/src/gem/fluent-plugin-kubernetes-objects-1.1.5/lib/fluent/plugin/in_kubernetes_objects.rb:246:in `block in create_watcher_thread'
  2021-06-25 13:32:46 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'
2021-06-25 13:32:46 +0000 [error]: #0 unexpected error error_class=HTTP::ConnectionError error="error reading from socket: Could not parse data"
  2021-06-25 13:32:46 +0000 [error]: #0 suppressed same stacktrace
2021-06-25 13:32:46 +0000 [info]: Worker 0 finished unexpectedly with status 1
2021-06-25 13:32:47 +0000 [info]: adding filter pattern="kube.**" type="jq_transformer"
2021-06-25 13:32:47 +0000 [info]: adding filter pattern="kube.**" type="jq_transformer"
2021-06-25 13:32:47 +0000 [info]: adding match pattern="kube.**" type="splunk_hec"
2021-06-25 13:32:47 +0000 [info]: adding source type="monitor_agent"
2021-06-25 13:32:47 +0000 [info]: adding source type="kubernetes_objects"
2021-06-25 13:32:48 +0000 [warn]: #0 both of Plugin @id and path for <storage> are not specified. Using on-memory store.
/usr/share/gems/gems/kubeclient-4.6.0/lib/kubeclient.rb:27: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/gems/gems/kubeclient-4.6.0/lib/kubeclient/common.rb:61: warning: The called method `initialize_client' is defined here
2021-06-25 13:32:48 +0000 [info]: adding source type="kubernetes_objects"
2021-06-25 13:32:48 +0000 [warn]: #0 both of Plugin @id and path for <storage> are not specified. Using on-memory store.
2021-06-25 13:32:48 +0000 [warn]: parameter 'cluster_name' in <fields>
  cluster_name
</fields> is not used.
2021-06-25 13:32:48 +0000 [info]: #0 starting fluentd worker pid=784 ppid=1 worker=0
/usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/http_server/compat/server.rb:84: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/http_server/compat/webrick_handler.rb:26: warning: The called method `build' is defined here
2021-06-25 13:32:48 +0000 [info]: #0 fluentd worker is now running worker=0

The process restarts and is working again, but will leave behind a defunct process
When this has happend often enough the container cannot fork any new processes and will fail to work
`2021-06-25 10:19:17 +0000 [info]: #0 starting fluentd worker pid=48465 ppid=1 worker=0
sh: fork: retry: Resource temporarily unavailable
sh: fork: retry: Resource temporarily unavailable
sh: fork: retry: Resource temporarily unavailable
2021-06-25 10:19:20 +0000 [error]: #0 unexpected error error_class=ThreadError error="can't create Thread: Resource temporarily unavailable"
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:70:in `initialize'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:70:in `new'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:70:in `thread_create'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin/output.rb:461:in `block in start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin/output.rb:458:in `times'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin/output.rb:458:in `start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/compat/output.rb:392:in `start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/plugin_helper/formatter.rb:96:in `start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluent-plugin-splunk-hec-1.2.5/lib/fluent/plugin/out_splunk_hec.rb:141:in `start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/compat/call_super_mixin.rb:42:in `start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/root_agent.rb:200:in `block in start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/root_agent.rb:189:in `block (2 levels) in lifecycle'
2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/root_agent.rb:188:in `each'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/root_agent.rb:188:in `block in lifecycle'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/root_agent.rb:175:in `each'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/root_agent.rb:175:in `lifecycle'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/root_agent.rb:199:in `start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/engine.rb:248:in `start'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/engine.rb:147:in `run'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/supervisor.rb:607:in `block in run_worker'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/supervisor.rb:845:in `main_process'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/supervisor.rb:598:in `run_worker'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/command/fluentd.rb:361:in `<top (required)>'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/bin/fluentd:8:in `require'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/share/gems/gems/fluentd-1.11.5/bin/fluentd:8:in `<top (required)>'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/bin/fluentd:23:in `load'
  2021-06-25 10:19:20 +0000 [error]: #0 /usr/bin/fluentd:23:in `<main>'
2021-06-25 10:19:20 +0000 [error]: #0 unexpected error error_class=ThreadError error="can't create Thread: Resource temporarily unavailable"
  2021-06-25 10:19:20 +0000 [error]: #0 suppressed same stacktrace
sh: fork: retry: Resource temporarily unavailable
2021-06-25 10:19:20 +0000 [info]: Worker 0 finished unexpectedly with status 1
2021-06-25 10:19:22 +0000 [info]: adding filter pattern="kube.**" type="jq_transformer"
sh: fork: retry: Resource temporarily unavailable
sh: fork: Resource temporarily unavailable
Unexpected error can't create Thread: Resource temporarily unavailable
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/signal_thread.rb:71:in `initialize'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/signal_thread.rb:71:in `new'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/signal_thread.rb:71:in `signal_handler_main'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/signal_thread.rb:44:in `block in trap'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/process_manager.rb:255:in `select'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/process_manager.rb:255:in `tick'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/multi_spawn_server.rb:84:in `wait_tick'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/multi_worker_server.rb:60:in `run'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/multi_spawn_server.rb:50:in `run'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/server.rb:128:in `main'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/daemon.rb:119:in `main'
  /usr/share/gems/gems/serverengine-2.2.3/lib/serverengine/daemon.rb:68:in `run'
  /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/supervisor.rb:717:in `supervise'
  /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/supervisor.rb:566:in `run_supervisor'
  /usr/share/gems/gems/fluentd-1.11.5/lib/fluent/command/fluentd.rb:341:in `<top (required)>'
  /usr/share/gems/gems/fluentd-1.11.5/bin/fluentd:8:in `require'
  /usr/share/gems/gems/fluentd-1.11.5/bin/fluentd:8:in `<top (required)>'
  /usr/bin/fluentd:23:in `load'
  /usr/bin/fluentd:23:in `<top (required)>'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
  /usr/share/gems/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>'
  /usr/share/gems/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
  /usr/share/gems/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>'
  /usr/local/bin/bundle:23:in `load'
  /usr/local/bin/bundle:23:in `<main>'

# oc rsh $(oc get pod -o name -l app=splunk-kubernetes-objects) bash -c " ps wwwaux|grep defunct|grep -v grep |wc -l"
696

#oc rsh ...
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
1000580+       1  0.0  0.4<PHONE_NUMBER>8 ?        Ssl  Jun25   2:13 /usr/bin/fluentd -c /fluentd/etc/fluent.conf
1000580+      21  0.0  0.0      0     0 ?        Z    Jun25   0:00 [sh] <defunct>
1000580+      22  0.0  0.0      0     0 ?        Z    Jun25   0:00 [sh] <defunct>
[...]
1000580+   18193  0.0  0.0      0     0 ?        Z    10:41   0:00 [sh] <defunct>
1000580+   18235  3.5  1.4 2028952 233540 ?      Sl   10:51   0:04 /usr/bin/ruby -r/usr/share/gems/gems/bundler-2.1.4/lib/bundler/setup -Eascii-8bit:ascii-8bit /usr/bin/fluentd -c /fluentd/etc/fluent.conf --under-supervisor
1000580+   18241  0.0  0.0  14788  3500 ?        S    10:51   0:00 sh -c jq  --unbuffered -c '.record.cluster_name = "ocgiax03" | .record' 2>&1
1000580+   18242  0.0  0.0  14788  3516 ?        S    10:51   0:00 sh -c jq  --unbuffered -c '.record.source = "namespace:\(env.MY_NAMESPACE)/pod:\(env.MY_POD_NAME)" | .record.sourcetype = (.tag | gsub("\\."; ":")) | .record' 2>&1
1000580+   18248  0.7  0.0  16692  3756 ?        S    10:51   0:00 jq --unbuffered -c .record.cluster_name = "ocgiax03" | .record
1000580+   18249  0.8  0.0  16592  3928 ?        S    10:51   0:01 jq --unbuffered -c .record.source = "namespace:\(env.MY_NAMESPACE)/pod:\(env.MY_POD_NAME)" | .record.sourcetype = (.tag | gsub("\\."; ":")) | .record
1000580+   18284  0.0  0.0  14920  4028 pts/0    Ss   10:52   0:00 /bin/sh
1000580+   18291  0.0  0.0  47536  4164 pts/0    R+   10:53   0:00 ps wwwaux
1000580+   18292  0.0  0.0   9504  2164 pts/0    S+   10:53   0:00 more

The reason this happens in Shiftstack (OpenShift on Openstack) with kuryr CNI is because the service the objects pod process is connecting to is under the hood an Amphora LB (Haproxy) wich comes with timeout values of 10min for frontend and backend connections. This configuration will cut any connection after 10 min if nothing happend until then (events, deployments, ...whatever you decided to watch) and the process will execpt, restart and leave the defunct process behind. If we raise the timeouts to say one day, the problem almost disappears
What you expected to happen:
I would expect the process to better act on interrupted connections w/o leaving defunct processes behind.
How to reproduce it (as minimally and precisely as possible):
Unless you find a way to set timeouts for the internal API service in the OpenShift default project you need Openstack with kuryr on a cluster where not much is happening. Or you could force it with values <10min and 1d to see that the problem goes away.
    oc get all -n default
    openstack loadbalancer list  → look for amphora lb with corresponding ClusterIP
    openstack loadbalancer listener list → finder listener to that LB
    openstack loadbalancer listener show mylittle-kuryr-api-loadbalancer-listener
compare values and set e.g. to one day:
     timeout_client_data |86400000
     timeout_member_data |86400000
This is disruptive and may create some noise in OCP

Check the logs after some while and the process list within the SCK-objects container.

Anything else we need to know?:
WORKAROUNDS

One workaround is described above: change the timeout values; we refrained from this because of administrative overhead, possible sideeffects and because we believe this should be handled in the Objects-Pod-Code.
Do nothing. Let the process die and a liveness probe (e.g. https://github.com/splunk/splunk-connect-for-kubernetes/issues/626) handle the hanging pod once it runs into fork issues.

Environment:
Openshift running on Openstack with kuryr CNI

Kubernetes version (use kubectl version):

# oc version
Client Version: 4.6.32
Server Version: 4.6.32
Kubernetes Version: v1.19.0+d670f74

Splunk Connect for Kubernetes helm chart version: 1.4.3, 1.4.7

I have added error handling so that it would just recreate watch connection. Could you try with this image and see how it is? rock1017/kube-objects:1.1.7rc

Hi Rock,
thanks for that.
Rolled it out on  two OCP clusters and it is looking good:
`
Cluster 1:
2021-07-20 08:03:09 +0000 [warn]: #0 both of Plugin @id and path for  are not specified. Using on-memory store.
2021-07-20 08:03:09 +0000 [info]: #0 starting fluentd worker pid=15 ppid=1 worker=0
2021-07-20 08:03:09 +0000 [info]: #0 fluentd worker is now running worker=0
2021-07-20 08:13:09 +0000 [info]: #0 Got exception error reading from socket: Could not parse data. Resetting eatcher.
2021-07-20 08:23:09 +0000 [info]: #0 Got exception error reading from socket: Could not parse data. Resetting eatcher.
2021-07-20 08:33:09 +0000 [info]: #0 Got exception error reading from socket: Could not parse data. Resetting eatcher.
Cluster 2:
2021-07-20 08:11:23 +0000 [info]: #0 starting fluentd worker pid=15 ppid=1 worker=0
2021-07-20 08:11:23 +0000 [info]: #0 fluentd worker is now running worker=0
2021-07-20 08:21:24 +0000 [info]: #0 Got exception error reading from socket: Could not parse data. Resetting eatcher.
2021-07-20 08:31:24 +0000 [info]: #0 Got exception error reading from socket: Could not parse data. Resetting eatcher.
2021-07-20 08:31:24 +0000 [info]: #0 Got exception error reading from socket: Could not parse data. Resetting eatcher.
2021-07-20 08:41:24 +0000 [info]: #0 Got exception error reading from socket: Could not parse data. Resetting eatcher.
`
The defunct processes seem to be history too.
You might want to change "eatcher" to "watcher" unless there is a pun intended.
If I observe anything strange in the next 1-2 weeks I will drop you a line
cheers

Testing was a bit chaotic with different versions from 1.4.3 to 1.4.8.
In general it seems to work. I had once an issue when the process no longer worked after a couple of days, i.e. no events were sent to the backend w/o anything obvious.
The pod/container was fine because it logged the kill signal from oc delete pod ....
Today I deployed it on a couple of machines with SCK 1.4.9 and a custom liveness probe. The one provided would not cover an issue like this and since the container does no longer "repair" itself by dying I took the one from https://github.com/splunk/splunk-connect-for-kubernetes/issues/493 and extended the periodSeconds: from 60s to 300s which should make it useable in our environment.

the fix has been included in splunk/kube-objects:1.1.7
Thanks for sharing your custom probes. it will be helpful for users in the future.


python311Packages.pyscard: modernize, stop propagating PCSC/pcsclite …

…as they are not python packages
Description of changes
Tested basic functionality of yubikey-manager.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 267528 run on x86_64-linux 1

25 packages built:

electron-cash
electron-cash.dist
gen-oath-safe
python310Packages.emv
python310Packages.emv.dist
python310Packages.pysatochip
python310Packages.pysatochip.dist
python310Packages.pyscard
python310Packages.pyscard.dist
python310Packages.pysim
python310Packages.pysim.dist
python311Packages.emv
python311Packages.emv.dist
python311Packages.pysatochip
python311Packages.pysatochip.dist
python311Packages.pyscard
python311Packages.pyscard.dist
python311Packages.pysim
python311Packages.pysim.dist
yubikey-manager
yubikey-manager-qt
yubikey-manager.dist
yubikey-manager4
yubikey-manager4.dist
yubioath-flutter


SchemaNotFoundError

I run in a docker compose postgREST and installed with npm vue-postgrest.
in my Vue I have:
<template>

FROM AXIOS:
 {{ pam }}

FROM vue-postgrest:
 {{ pg }}

</template>

Unfortunately I got this error:
vue-postgrest.common.js?b755:312 Uncaught (in promise) class SchemaNotFoundError extends Error {
  constructor(apiRoot, err) {
    super('No openapi definition found for api-root: ' + apiRoot);
    this.name = SchemaNotFoundError;
    this.causedBy = err;
  }

}: No openapi definition found for api-root: /
    at Schema_Schema._fetchSchema (webpack-internal:///../../../node_modules/vue-postgrest/dist/vue-postgrest.common.js:1624:13)
    at async eval (webpack-internal:///../../../node_modules/vue-postgrest/dist/vue-postgrest.common.js:1551:24)

while the direct fetch with axios works as expected...
FROM AXIOS:
[ { "pt_id": 1, "code": "SEGNALETICA", "descr": null }, { "pt_id": 2, "code": "ATTRAZIONE", "descr": null }, { "pt_id": 3, "code": "GEOLOGIA", "descr": null }, { "pt_id": 4, "code": "STORIA", "descr": null }, { "pt_id": 5, "code": "SERVIZI", "descr": null }, { "pt_id": 6, "code": "PANORAMA", "descr": null }, { "pt_id": 7, "code": "RISTORO", "descr": null }, { "pt_id": 8, "code": "SENTIERO", "descr": null } ]
FROM vue-postgrest:
[]

First thing I notice is that you have a typo in pgConfig. The route is set to py_type here, while you have pg_types for the Axious call.
Another question: Did you install the Postgrest Plugin, too?
import Postgrest from 'vue-postgrest'

Vue.use(Postgrest)

I re-install vue-postgrest and moved the Vue.use after the new Vue command
in main.js
On the component I fixed the typo but still not working.
Now the error is:
Error in callback for immediate watcher "pgConfig.single": "TypeError:
this.$postgrest is not a function
Any hint will be appreciated.... Maxi
[image: image.png]
Il giorno mar 29 dic 2020 alle ore 15:50 Wolfgang Walther <
<EMAIL_ADDRESS>ha scritto:

First thing I notice is that you have a typo in pgConfig. The route is
set to py_type here, while you have pg_types for the Axious call.
Another question: Did you install the Postgrest Plugin, too?
import Postgrest from 'vue-postgrest'
Vue.use(Postgrest)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/technowledgy/vue-postgrest/issues/59#issuecomment-752105738,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC2FTD7QG3ALRSZJAUP2FTSXHUEPANCNFSM4VNIGV6Q
.

--
Massimiliano Cannata
Professore SUPSI in ingegneria Geomatica
Responsabile settore Geomatica
Istituto scienze della Terra
Dipartimento ambiente costruzione e design
Scuola universitaria professionale della Svizzera italiana
Campus Trevano, CH - 6952 Canobbio
Tel. +41 (0)58 666 62 14
Fax +41 (0)58 666 62 09
<EMAIL_ADDRESS>www.supsi.ch/ist http://www.supsi.ch/ist
--
This message was scanned by SUPSI mail-scanner and is believed to be clean.

moved the Vue.use after the new Vue command in main.js

Vue.use needs to be before new Vue.

Then, same error as before:
ncaught (in promise) class SchemaNotFoundError extends Error {
  constructor(apiRoot, err) {
    super('No openapi definition found for api-root: ' + apiRoot);
    this.name = SchemaNotFoundError;
    this.causedBy = err;
  }

}: No openapi definition found for api-root: /
    at Schema_Schema._fetchSchema (webpack-internal:///../../../node_modules/vue-postgrest/dist/vue-postgrest.common.js:1624:13)
    at async eval (webpack-internal:///../../../node_modules/vue-postgrest/dist/vue-postgrest.common.js:1551:24)

Ok. So before making a request to /pi_types, vue-postgrest needs to make a request to / to get the OpenAPI output from PostgREST. There should be a request in your network tab to http://localhost:3000/ that should respond with the OpenAPI schema description in json format.
It looks like this request is not successful. Is there any error for this request in your network tab?

I can also see a baseURL setting in the console output for the axios request. Could that be the difference between the two requests? Are you sure axios is requesting from http://localhost:3000/pi_types correctly?

I don't think...
If I put the URL in the browser I get the correct JSON as for axios get
request, also the openapi at the base URL is returned..
:-(
Il mar 29 dic 2020, 19:33 Wolfgang Walther<EMAIL_ADDRESS>ha
scritto:

I can also see a baseURL setting in the console output for the axios
request. Could that be the difference between the two requests? Are you
sure axios is requesting from http://localhost:3000/pi_types correctly?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/technowledgy/vue-postgrest/issues/59#issuecomment-752197029,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC2FTA6S7CGBM6V35VR4HTSXIOI7ANCNFSM4VNIGV6Q
.

--
This message was scanned by SUPSI mail-scanner and is believed to be clean.

Ah - of course. Now, I understand.
The request for the OpenAPI schema is made with the global apiRoot - and you didn't set a global one, yet. You only set the apiRoot for the mixin you're using.
You need to do:
Vue.use(Postgrest, {
  apiRoot: 'http://localhost:3000'
})

HI there, I think I've found the source of the issue:
the openapi document I get back from postgREST has always the definition object for all the table of type: "object" without any properties element... here vue-postgres in the extractFromDefinition(tableDef) function miss to find the Object.keys(tableDef.properties) and rise an error.....
Is it a problem with postgREST I guess....

Which version of PostgREST are you running?

postgresql v13
postgREST v7.0.1

Now no more errors but still no data in vue
I see the request reaches the postgREST but no data loaded back...
:-(
Il giorno mer 30 dic 2020 alle ore 15:26 Wolfgang Walther <
<EMAIL_ADDRESS>ha scritto:

Which version of PostgREST are you running?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/technowledgy/vue-postgrest/issues/59#issuecomment-752639627,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC2FTFLXN6LCLZEP5ZOVGDSXMZ7TANCNFSM4VNIGV6Q
.

--
Massimiliano Cannata
Professore SUPSI in ingegneria Geomatica
Responsabile settore Geomatica
Istituto scienze della Terra
Dipartimento ambiente costruzione e design
Scuola universitaria professionale della Svizzera italiana
Campus Trevano, CH - 6952 Canobbio
Tel. +41 (0)58 666 62 14
Fax +41 (0)58 666 62 09
<EMAIL_ADDRESS>www.supsi.ch/ist http://www.supsi.ch/ist
--
This message was scanned by SUPSI mail-scanner and is believed to be clean.

I could fix the definition issues (creating the db before running the postgREST) and now no more errors in console.

Ah, ok. That's a classic. See here for details: https://postgrest.org/en/latest/admin.html#schema-reloading

But still no data in vue :-(
Tough, I see the request reaches the postgREST but no data loaded back...

Does that mean the request in the network tab has an empty response? Or is the response correct and the data is just not displayed?
You can try to display the data with JSON.stringify instead of just {{ pg }} - it could be that the data is actually there, but just not displayed like this in the template. Or you can just try {{ pg[0].pt_id }} instead of {{ pg }}.

next step...

using the this.$postgrest.pi_types.get works good

Using the mixin options doesn't work.
<template>

 POSGREST data

    {{ pg[0] }}

</template>

with this only one call to the root path is done (guess to get openapi)
if I add the apiRoot:
pgConfig: {
        apiRoot: 'http://localhost:3000/',
        route: 'pi_types'
      }

it does two requests but both to the root
if I put the tablename in the apiRoot:
pgConfig: {
        apiRoot: 'http://localhost:3000/pi_types',
        route: 'pi_types'
      }

It does two requests, the second to the pi_types with returned data correctly, but not loaded into the pg object that according to the vue tab in developer tool is an Array[0]
It seems it does'nt combine the root with the route... or maybe i'm missing something...

Ty adding an empty query to pgConfig:
query: {}

Oh, and you can try adding the onError hook for the mixin - maybe the get request is throwing some error?
https://technowledgy.github.io/vue-postgrest/api/#onerror

OK, getting closer :-)
with the query: {} object it does the request to the server that returns the correct data (on the Network devTool) but yet no data in pg object.
with the onError hook i get the following error in the console:
TypeError: _classPrivateFieldGet(...).push is not a function
    $get vue-postgrest.common.js:878
    apply vue-postgrest.common.js:503
    handler vue-postgrest.common.js:969
    VueJS 60
    <anonymous> main.js:41
    js app.js:1546
    __webpack_require__ app.js:849
    fn app.js:151
    1 app.js:1931
    __webpack_require__ app.js:849
    checkDeferredModules app.js:46
    <anonymous> app.js:925
    <anonymous> app.js:928

Hm. Strange. I can only guess here. Can you try putting the pgConfig in a computed instead of data? That's how I had been using it in all my projects so far. I would expect it to work in data, too, but you never know...

I moved to computed, but same as before... push is not a function

Hm. No idea why that's happening. Can you maybe create a self-contained minimal example that I can run myself?

Feel free to re-open if you can show a self-contained example, so that I can reproduce it.


Fix issue #2326

Description
Fix app crash. All bottom screen code was refactored and put in a single BottomScreenCommon class.
Related issues and discussion
fixes #2326
@teolemon The code that show the bottom screen (additive, label, category, allergen) was refactored. It is uniquely defined in BottomScreenCommon (instead of being defined in each Fragment/Activity).

[ ] Apply the AndroidStyle.xml style template to your code in Android Studio.
[ ] Code is well documented
[ ] Include unit tests for new functionality
[ ] All user-visible strings are made translatable
[ ] Code passes Travis builds in your branch
[ ] If you have multiple commits please combine them into one commit by squashing them.
[ ] Read and understood the contribution guidelines .

@teolemon The fix is done, but could you check that the bottom screen appears in each case (additive, label, category, allergen)?

cloning

Seems to work. I have found and filed a related issue on some additives.


FPS capped to 60 as if nothing has changed

My Bloxstrap could not unlock the FPS,although the amount I set should be above it.
I tried to make the limit lower or higher,writing JSON file by myself instead of editing in bloxstrap,I even shut it down and just run RobloxplayerLaucher with rbxfpsunlocker.
I heard my friends‘ could still work,so there must be something wrong with my Roblox or Bloxstrap.What should I do?

My laptop hardware performance is good enough.
The FastFlag used to work and the problem just happened a few days ago till now.

Are you using a laptop?

Yes,hardware is OK

Have you checked to ensure that there's nothing that could be limiting it (power saving, quiet mode, etc)?

It can be concluded that it‘s an internal problem

What does that mean?

I mean there's nothing limiting it

Are you sure? Actually, does rbxfpsunlocker work?

I mean there's nothing limiting it

Are you sure? Actually, does rbxfpsunlocker work?

It does not work anymore

I mean there's nothing limiting it

Are you sure? Actually, does rbxfpsunlocker work?

It does not work anymore

works for me

There must be some internal problem with my stuff

I mean there's nothing limiting it

Are you sure? Actually, does rbxfpsunlocker work?

It does not work anymore

works for me

There must be some internal problem with my stuff

u dont really need +60 fps to play roblox so

It does not work anymore

Yeah, that's heavily implying that something on your laptop is limiting it then.

Yeah, that's heavily implying that something on your laptop is limiting it then.
I prefer to know how do you think that what it will be then

I prefer to know how do you think that what it will be then.

You've already mentioned that rbxfpsunlocker doesn't work either. You've also mentioned that you're using a laptop, which are known to have the ability to throttle performance, to keep the computer quiet or running longer.

I prefer to know how do you think that what it will be then.

You've already mentioned that rbxfpsunlocker doesn't work either. You've also mentioned that you're using a laptop, which are known to have the ability to throttle performance, to keep the computer quiet or running longer.
Yeah,but I always use it with power in and cancel all the limits for performance

I prefer to know how do you think that what it will be then.

You've already mentioned that rbxfpsunlocker doesn't work either. You've also mentioned that you're using a laptop, which are known to have the ability to throttle performance, to keep the computer quiet or running longer.

I FEEL SORRY TO TROUBLE YOU,but my issue has been dealt after I closed Battery Boost in NVIDIA Geforece Experience.Thanks for your help.

Hi, I'd like to know why does my FPS unlocker doesn't work in Roblox Studio even thought fps is about 60 frames?


Add Watch and TV targets, Improve semantic version pattern

This PR adds support for watchOS and tvOS targets.
Also improves the expression handling because https://github.com/DaveWoodCom/XCGLogger has versioned his library like Version_4.0.0 and the pattern was failing to find the version number in that string.

Awesome!


Snippet

adding snippet for getInitialState in es2015 with constructor in class.

I'd love to have this snippet.  Not sure I'm in love with the prefix though.  Would is6 (initial state ES6) or something like that work here?  That seems to be more in line with the acronyms used throughout the other snippets.

Hi! Thanks for contributing! I agree with @IanVS that a different prefix would be in order.

Thanks for the response, i'll change the prefix with is6. :)


Error when pressing the apply settings button

If I disable the extension I have no problem, but when I enable it, it reappears, I use Forge.

Removed the setting button in 1.5.0


Need explanation on how dependencies work with request body.

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
# 1. SCHEMAS
from typing import Optional
from pydantic import BaseModel, Field

class PartialUser(BaseModel):
    userid: str = Field(..., title='***', example='***')
    crypted_code: Optional[str] = Field(None, min_length=1, title='***', example='***')
    is_enabled: Optional[bool] = Field(None, title='activation status')

class PartialInternalUser(PartialUser):
    is_admin: Optional[bool]  = Field(None, title='admin rights')

class PartialExternalUser(PartialUser):
    pass

# 2. MODELS
class User(UserBase):
    __tablename__ = "users"
    userid = Column(String, primary_key=True, index=True)
    email = Column(String, unique=True, nullable=False)
    firstname = Column(String, index=True, nullable=False)
    lastname = Column(String, index=True, nullable=False)
    is_internal = Column(Boolean, default=False, nullable=False)
    is_admin = Column(Boolean, default=False, nullable=False)
    is_enabled = Column(Boolean, default=True, nullable=False)

# 3. DEPENDENCIES
async def get_current_user(request: Request, db: Session = Depends(get_user_db)) -> User:
    """
    Dependency used to retrieve the user based on the the userid carried by the session.

    Parameters
    ----------
    request : Request
        the incoming request.
    db : Session
        instance of the Users table.

    Returns
    -------
    User
        user whose userid matched the one carried in the session.

    Raises
    ------
    HTTPException
        401 if the userid could not be found in the Users table,
        or if the user is disabled.

    """
    user_id = request.session.get('user')
    try:
        user = get_user(db, user_id)
    except:
        raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail=f'Could not validate credentials')
    else:
        if user.is_enabled:
            return user
        else:
            raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail=f'User {user.userid} is disabled')

async def has_admin_rights(user: UserComplete = Depends(get_current_user)) -> NoReturn:
    """
    Dependency used to block routes and/or endpoints for front-end user without admin rights.
    """
    if not user.is_admin:
        raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=f'user with id : {user.userid}')

async def get_admin_email(user:UserComplete = Depends(get_current_user), is_admin=Depends(has_admin_rights)) -> EmailStr:
    """
    Dependency used to block routes and/or endpoints for front-end user without admin rights and return his email.

    Returns
    -------
    email : EmailStr
        email of the front-end user if he is admin.

    See Also
    --------
    has_admin_rights

    """
    return user.email

async def get_user_in_db(request: Request, db: Session = Depends(get_user_db)) -> User:
    """
    Dependency used to check if an user exists in the Users table.

    Returns
    -------
    user : User
        user with all his attributes from the Users table.

    """
    _ = await request.json()
    userid = _.get('userid')
    try:
        user: User = db.query(User).filter_by(userid=userid).one()
    except NoResultFound:
        raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f'User {userid} appears in the front but not in the Users DB')
    else:
        return user

# 4. USERS MANAGMENT ROUTER
router = APIRouter(prefix=f'{API_BASE}/users',
                   dependencies=[Depends(get_user_db), Depends(has_admin_rights)])

external_router = APIRouter(prefix='/external')

@external_router.patch('', status_code=status.HTTP_204_NO_CONTENT, responses=ERRORS_DICT['admin']['patch']['external'])
async def update_user(partial_user: PartialExternalUser, db: Session = Depends(get_user_db), admin_email= Depends(get_admin_email), user_to_update : UserComplete = Depends(get_user_in_db)) -> None:
    '''
    # Update a existing external user
    ## Modification allowed on these attributes:
    + **crypted_code**: identify pharmacy, crypted,
    + **is_enabled**: if a user is disabled, he will be remove from somewhere in the cloud but kept in the Users table.
    ## Dependency
    + `get_user_db` is used to inject the Users table,
    + `get_admin_email` is used as a shortcut to lock the endpoint for front-end admin user and return his email.
    + `get_user_in_db` is used to return the corresponding user from the Users table.

    '''
    await user_crud.update_external_user(partial_user, db, admin_email, user_to_update)

router.include_router(external_router)

Description
Hello,
I am pretty new to fastapi but after several day of search I can't find the answer of my question.
I am coding some king of user management and I am struggling with the update of an user.

I want to change the crypted_code of an user : front send a patch request with body :

 {'userid': 'some_uuid', 'is_internal': False, 'crypted_code': 'new_value'}

the matching endpoint function update_user():

expect a partial_user matching the PartialExternalUser schema.
use some dependencies: one to retrieve the email of the front-end admin requesting the changes and one to retrieve the user being updated from my users table.

async def update_user(partial_user: PartialExternalUser, db: Session = Depends(get_user_db), admin_email= Depends(get_admin_email), user_to_update : UserComplete = Depends(get_user_in_db)) -> None:

perform some crud and other thing.

In the provided code, everything work as expected but if I change the get_user_in_db() dependency like this:
async def get_user_in_db(user_to_update: PartialExternalUser, db: Session = Depends(get_user_db)) -> User:

    userid = user_to_update.userid
    try:
        user: User = db.query(User).filter_by(userid=userid).one()
    except NoResultFound:
        raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f'User {userid} appears in the front but not in the Users DB')
    else:
        return user

I get an 422 Unprocessable Entity from my patch endpoint and the following details in my browser console:
{
    "detail": [
        {
            "loc": [
                "body",
                "user_to_update"
            ],
            "msg": "field required",
            "type": "value_error.missing"
        },
        {
            "loc": [
                "body",
                "partial_user"
            ],
            "msg": "field required",
            "type": "value_error.missing"
        }
    ]
}

I don't understand what's happening because if I print the request received by my patch endpoint it's exactly the same with or without the get_user_in_db() dependency.
_ = await request.json()
print(_)

Operating System
macOS
Operating System Details
No response
FastAPI Version
0.70.0
Python Version
3.8.13
Additional Context
No response

I don't understand your question completely. You first give your current update_user() patch method like this:
async def update_user(partial_user: PartialExternalUser, db: Session = Depends(get_user_db), admin_email= Depends(get_admin_email), user_to_update : UserComplete = Depends(get_user_in_db)) -> None:

Then you say:

In the provided code, everything work as expected but if I change the update_user() dependency like this:

And then you provide us with async def get_user_in_db() code. What did you change the update_user() signature in? What dependency did you change?

Sorry I wrote update_user() instead of get_user_in_db (it's know corrected).
When I rewrite this dependency and use a pydantic model instead of await request.json() the patch endpoint raise an unprocessable entity and I struggle to understand why.

Ah I think I see. You are updating get_user_in_db from:
async def get_user_in_db(request: Request, db: Session = Depends(get_user_db)) -> User:

to
async def get_user_in_db(user_to_update: PartialExternalUser, db: Session = Depends(get_user_db)) -> User:

The thing is, you are creating a parameter in 'get_user_in_db' called user_to_update which is then expected by the original request. However, since the original request doesn't have a user_to_update body, you are getting a 422. Note that when your path operation function (in your case, update_user()) depends on other callables, the parameters defined in said callables are becoming mandatory parameters of your path operation, unless you make them optional (by adding some_param: SomeType = None).
Hope this helps :)


make requirements linkable

Markdown is not helpful here, but writing them as e.g.
#### [R43]
Make it possible to link to a requirement, instead of having to point people to the document and then ask them to search for the relevant bit by themselves

would enable links like ..spec.html#[r43] to work

@chaals ... you are more than welcome to do a PR with that change, if you feel strongly about it.

@GoldenBit0 @mehranshakeri and @Therecanbeonlyone1969 ... will take this on. @chaals, you are strongly encouraged to participate in this effort in this branch

@chaals looking for confirmation on the request. Are you looking for the requirements section to be linked - so when they are referred to within the specification and/or outside. See below for example. If this is accurate please let us know :)
[R34] The identifiers and identity utilized in a BPI MUST be controlled by its Principal Owner.
@GoldenBit0

@BriannaMRich Exactly!

@chaals Great!! @GoldenBit0 FYI

@chaals ... that is an absolute (to line 721) not a relative (R34) reference. We do need relative references, however.
cc @BriannaMRich ... see the above-referenced branch for relative links.

Is this already done? I see all the links are already fixed. If not, could you please guide me to where still needs review/correction?

Is this already done? I see all the links are already fixed. If not, could you please guide me to where still needs review/correction?

@mehranshakeri ... yes in the branch pr/101 ... as soon as the API spec .md file has been brought in alignment with the yaml we will do a PR

done with #114


Pester Test Runner does not fall back to shipped version due to local import-module command

Where are you running it?
Azure DevOps Server -Version Dev17.M153.5
Version of Extension/Task
Pester Test Runner -Version 9.1.10
Expected behaviour and actual behaviour
When there is no access to PowerShell Gallery, the task defaults to the shipped version of pester.
I believe this may be due to the Import-Module call in ModuleHelper.psm
Line 49 and Line 70 where the local Import-Module calls are not using Join-Path which was applied to Pester.ps1 in the Fix paths for import-module commands commit for build 9.1.10
Steps to reproduce the problem
Run task against an agent that is isolated from the internet.
The output should be similar to the following, notably the 'code coverage not enabled' line due to 4.10.1 not being used but instead the installed OS default is being used.
WARNING: MSG:UnableToDownload «https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «»
WARNING: Unable to download the list of available providers. Check your internet connection.
WARNING: Unable to find module repositories.
##[warning]Falling back to version of Pester shipped with extension. To use a newer version please update the version of PowerShellGet available on this machine.
##[debug]Processed: ##vso[task.logissue type=warning]Falling back to version of Pester shipped with extension. To use a newer version please update the version of PowerShellGet available on this machine.
Running in AMD64 PowerShell
Running Pester from the folder [E:\Agents\01_work\93\s*] output sent to [E:\Agents\01_work\93\s\TEST-Pester.XML]
WARNING: Code coverage output not supported on Pester versions before 4.0.4.

Thanks for reporting that. I'll try to get it fixed in the next day or two. Or if you've got time to put in a PR then I should be able to review it sooner.

That should be available as 9.1.14 very soon. Thanks for the fix.


Use same precision as rustc for commit sha

Part of rust-lang/rust#39635

Thanks!
@bors r+

:pushpin: Commit 030d644 has been approved by Diggsey

:hourglass: Testing commit 030d644 with merge af54033...

:sunny: Test successful - status-appveyor, status-travis
Approved by: Diggsey
Pushing af54033647bed5857774015e2b19d4a3f9f21ae5 to master...


bitwarden: opens developer console/devtools on launch

Describe the bug
I am packaging the electron app bitwarden desktop and it has what I believe to be a bug. I'm not sure if it's something I did/didn't do while packaging or something on their end. When the app opens the devtools window is open by default. It can be closed with a click or F12. This is strange to me but I haven't confirmed it is not intended behavior.
To Reproduce
Open the bitwarden application from the above PR.
Expected behavior
I don't think devtools pane should be open by default.
Metadata

system: "x86_64-linux"
host os: Linux 4.19.58, NixOS, 19.09pre186857.239fffc90d7 (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.09pre186857.239fffc90d7, nixos-1803-18.03.133402.cb0e20d6db9, nixos-1809-18.09.2574.a7e559a5504, nixos-1903-19.03.173214.4cc5592fe2d, nixos-stable-18.09, nixos-unstable-19.09pre186857.239fffc90d7"
channels(kiwi): ""
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Figured it out. Fixed and merged.


Add hasYear and hasDayOfMonth to LocalDateTime assertions

Check List:

Fixes #2541 (2 tasks)
Unit tests : YES
Javadoc with a code example (on API only) : YES
PR meets the contributing guidelines

Javadoc amended and conflict resolved

Integrated with minor modifications thanks @MatthewLENG2002!


Update Documentation to Indicate When Outputs will be Empty

Preflight Checklist

[X] I could not find a solution in the existing issues, docs, nor discussions
[X] I have joined the ZITADEL chat

Describe the docs your are missing or that are wrong
One example: When using PKCE, one is not returned a client secret. Unless you have gone though the UI first, you don't know this.
I didn't see this in any docs, especially not in the Terraform docs.
Please indicate if there are scenarios where an output will be empty in documentation. Thanks.
Additional Context
No response

Closing issue, moved on to alternate solution


Preview - RI Toast Notifications Feature into main

This is only a dry run... official RI coming soon, let me know if you find anything that seems out of place.

/azp run

Closing, will reopen Friday for good


feat(glup sass): add scss file build

add scss file build for inline template write with sass engine

Nice feature i really like because im working in a Angular UI library and my components has scss but i don't now if this is really interesting for other types of library. Anyways nice work!

@deblockt — Thank you for the PR!
We have been hesitating to add SCSS support, as discussed here: https://github.com/jvandemo/generator-angular2-library/pull/65#issuecomment-295080651.

There have been quite a bit of issues with node-sass lately. I'm not sure if these issues would apply to this generator, but if they do, it may be wise for us to create a wiki page on how to include support for Sass, instead of adding the actual code.

It would be a bummer if the generator was prevented from evolving because some third party support like Sass or Less does not cooperate as expected.

What are your thoughts? Thanks in advance!

@deblockt haven't chimed in yet, but I'd like to say something:
We want this generator to follow at least two principles: we want it to be as lightweight as possible and at the same time we want it to be able to evolve into something increasingly solid
In my opinion this PR allows those two principles since it works for both, .css and .scss files.
If our users want to create a stable library they can use CSS, and if at some point they change their mind, then they can use SASS out-of-the-box (without further configuration!, which is cool).
At the very end is the user who decides what tool to use (with their pros and cons), we are just allowing them to choose.
FYI: @jvandemo @caroso1222

i agree with @jdjuan, the only issues is that new dependency is downloaded on project installation.
But it's not a issue because this is a dev dependency, it don't weigh down the builded library.

@deblockt — I have tried it locally and everything runs smoothly on MacOS.
@jdjuan — Thank you for jumping in.
Can anyone confirm whether this works as expected on Linux and Windows?
Thanks in advance!

I can confirm it works for Windows :+1:

@jdjuan — Thank you for the confirmation! 👍

Merged and released as v9.3.0.
@deblockt — Thank you for your contribution! 👍
@jdjuan — Thank you for your input! 👍


Update to support delete Mongo command. Issue #210

@twillouer --
It should be all set now.

Thanks !


Fix bug for prev and next button in findWidget when nothing being found

close#60938
Now, when finding nothing, the 'prev' and 'next' buttons will be disabled

@egamma @jrieken  Can you help me to check this pr, please


fcitx-table-extra: init at 0.3.8

Motivation for this change
Add extra table for fcitx.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

cc @ericsagnes


follow_users_from_file.py filter

Please follow the guide below

Issues submitted without this template format will be ignored.
You will be asked some questions and requested to provide some information, please read them carefully and answer completely.
Put an x into all the boxes [ ] relevant to your issue (like so [x]).
Use the Preview tab to see how your issue will actually look like.

Before submitting an issue, make sure you have:

[ x] Updated to the latest version
[x ] Read the README and docs
[ x] Searched the bugtracker for similar issues including closed ones

Purpose of your issue?

[ ] Bug report (encountered problems/errors)
[ ] Feature request (request for a new functionality)
[ x] Question
[ ] Other

The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.

For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.
Paste the output of python -V here:
Code:
# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Describe your issue
does the follow_users_from_file.py checks the previously followed users (from followed.txt file) and filter them out then start following the rest of the users in the list automatically? if not then how can do that?
i tried using it but seems it doesn't filter them out automatically and every time it gets to the already followed user will just show a notification that the user ID already exists in the followed.txt file after attempting to follow it.
thanks in advance

from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id,filtration=False,)

from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id,filtration=False,)

thanks for the reply but the code you provided will get a list of the followers. my point was if there is an internal functionality inside the Bot() that does it for me.
will introducing the followed.txt as the backlist_file do the trick?
something like this:
import argparse
import os
import sys

sys.path.append(os.path.join(sys.path[0], '../'))
from instabot import Bot

parser = argparse.ArgumentParser(add_help=True)
parser.add_argument('-u', type=str, help="username")
parser.add_argument('-p', type=str, help="password")
parser.add_argument('-proxy', type=str, help="proxy")
parser.add_argument('filepath', type=str, help='filepath')
args = parser.parse_args()

bot = Bot(filter_users=False, blacklist_file='followed.txt')
users_to_follow = bot.read_list_from_file(args.filepath)
if not users_to_follow:
    exit()
else:
    print("Found %d users in file." % len(users_to_follow))

bot.login(username=args.u, password=args.p,
          proxy=args.proxy)

bot.follow_users(users_to_follow)

i added the following code to the script:
bot = Bot(filter_users=True, blacklist_file='followed.txt')
and it indeed is skipping the user IDs from the "followed.txt" but also is skipping the private accounts and the business account which i need them also to be followed. tried to find how to not let it happen but didnt find anything in the documentation regarding this. any idea?

already figured out how to do it by adding the following in the script:
bot = Bot(filter_users=True,
            followed_file='followed.txt',
            min_media_count_to_follow=0,
            filter_private_users=False,
            max_following_to_follow=10000,
            filter_users_without_profile_photo=False,
            skipped_file='skipped.txt',
            max_following_to_followers_ratio=20,
            max_followers_to_follow=10000)

figured out the documentation is not complete or thorough thats why i could not find things like "filter_private_users" and "filter_users_without_profile_photo" . there are more functions and filters in this script that are not documented and guess that would confuse the not so professional users.


Remove Scope variant from PyObject.

It's a refactor that got big!
I set out to remove the Scope variant because it's not a python object type (you can never get a python object for a scope). Along the way I cleared up naming quite a bit, deleted the StoreLocals instruction, and got rid of a bunch of code.

Codecov Report

Merging #577 into master will increase coverage by 0.33%.
The diff coverage is 50.5%.

@@            Coverage Diff             @@
##           master     #577      +/-   ##
==========================================
+ Coverage   41.81%   42.14%   +0.33%
==========================================
  Files          73       73
  Lines       16557    16461      -96
  Branches     4362     4300      -62
==========================================
+ Hits         6923     6938      +15
+ Misses       7659     7559     -100
+ Partials     1975     1964      -11

Impacted Files
Coverage Δ

vm/src/bytecode.rs
47.74% <ø> (+2.37%)
:arrow_up:

src/main.rs
15.85% <0%> (+1.03%)
:arrow_up:

wasm/lib/src/vm_class.rs
0% <0%> (ø)
:arrow_up:

vm/src/compile.rs
45.7% <100%> (+0.05%)
:arrow_up:

vm/src/obj/objframe.rs
30.95% <100%> (-3.2%)
:arrow_down:

vm/src/eval.rs
41.37% <100%> (-21.78%)
:arrow_down:

vm/src/builtins.rs
43.69% <25%> (+7.63%)
:arrow_up:

vm/src/import.rs
46.05% <33.33%> (-22.8%)
:arrow_down:

vm/src/frame.rs
47.1% <51.35%> (-0.01%)
:arrow_down:

vm/src/pyobject.rs
62.63% <53.33%> (+2.45%)
:arrow_up:

... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 387c21f...9d6e9ac. Read the comment docs.


Chicken wings

Simple chicken wing recipe that never fails
Fix some typos in the template

Add the link to the list in the index.

Add the link to the list in the index.

Done — what's the reasoning behind all those links pointing to .html files? They're all .md and it's tripping me up

They are all compiled into .html files by ssg5, then uploaded.


Buttons high-level node types: implement the string-formatted form node

Subtask of #747.

Done, awaiting review.


"SandwichTimer" can't be opened

I tried using the latest zipped version and got this error - not even sure how to poke it.
On OSX 10.15.2 (19C57)

Does it work if you right-click and pick Open?

Closing for lack of reply.

Hi, I have the same issue here.
Right-clicking and picking open didn't work for me.
macOS Catalina 10.15.6

Right-clicking and picking open didn't work for me.

I’m not able to respond with “didn’t work”. I need detailed steps of what you did and what happened or didn’t.

macOS Catalina 10.15.6

But I’m not on Catalina and won’t be. I’ll take a decent PR to fix an issue but I don’t have the resources to spend on debugging this for free.

I’m not able to respond with “didn’t work”. I need detailed steps of what you did and what happened or didn’t.

My bad, I should have elaborated it a bit. When I selected "open", I saw the same message 'The Application "SandwichTimer" cannot be opened.' I didn't debug it, so I'm not sure what's causing it under the hood. My guess is that it's an issue on Catalina.

But I’m not on Catalina and won’t be. I’ll take a decent PR to fix an issue but I don’t have the resources to spend on debugging this for free.

I might take a look at the code and debug it in my free time.

I might take a look at the code and debug it in my free time.

My recommendation would be to update the Electron dependency to the most recent version and fixing whatever breaks. Electron is great to hit the ground running and has superb documentation, but they deprecate and change things so often that maintaining a functioning app becomes a chore.


[Event Request] page 498 Reservation - OnAfterGetQtyPerUOMFromSource

Could we please have additional parameters (QtyReserved, QtyReservedBase, QtyToReserve, QtyToReserveBase) in event OnAfterGetQtyPerUOMFromSource in page 498?
        DATABASE::"Service Line":
            QtyPerUOM := GetQtyPerUomFromServiceLine;
        DATABASE::"Job Planning Line":
            QtyPerUOM := GetQtyPerUomFromJobPlanningLine;
    end;

    // start kvspsa - Additional Parameters
    OnAfterGetQtyPerUOMFromSource(ReservEntry, QtyReserved, QtyReservedBase, QtyToReserve, QtyToReserveBase, QtyPerUOM);
    // stop kvspsa

end;

Event:
local procedure OnAfterGetQtyPerUOMFromSource(var ReservationEntry: Record "Reservation Entry"; var QtyReserved: Decimal; var QtyReservedBase: Decimal; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal; var QtyPerUOM: Decimal)
begin
end;

Thank you and kind regards

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Disable Frame Range Limit Box when Create Timeline is selected

When you select Create Timeline, the app uses only Time Lenght/s box as limit and not anymore the number you input in the second box of Frame Range (the limit of frames to search). Can you disable this last one when Create Timeline is selected? (make only the second box of Frame Range grey and not modifiable). Because everytime i forgot it and i try to modify Frame Range xD Also other people won't be confused by this

I hide it and make a label. Thank you


[BUG] UnicodeDecodeError while reading simplewiki.json

Describe the bug
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 34260: character maps to
Python's json is unable to read simplewiki dataset.
To Reproduce
Steps to reproduce the behavior:

Go to simplewiki example
Run simple_wiki_demo.py using python simple_wiki_demo.py
See error

Expected behavior
json.load is supposed to load the data without any errors.
Desktop (please complete the following information):

OS: Windows 10 Home

Additional context
Working fix: change encoding type while reading file in read_json function.

If this bug is reproducible, I'd like to fix it please.

Hi @anubhavlohani , a couple of questions i) would you be able to paste the full console output of the error, ii) as well as your python version and iii) if you found a fix could you paste that as well? I am trying to reproduce the error now. Thanks

Hi @anubhavlohani , a couple of questions i) would you be able to paste the full console output of the error, ii) as well as your python version and iii) if you found a fix could you paste that as well? I am trying to reproduce the error now. Thanks

Hi @jn2clark, I've updated the original commented with the requested details.

Thanks. I just merged a PR to update the script https://github.com/marqo-ai/marqo/pull/104 and https://github.com/marqo-ai/marqo/blob/mainline/examples/SimpleWiki/simple_wiki_demo.py#L13

Thanks. I just merged a PR to update the script #104 and https://github.com/marqo-ai/marqo/blob/mainline/examples/SimpleWiki/simple_wiki_demo.py#L13

Great. Glad I could help out 🙂


docs: add tag to docker command example

the auto docker image build workflow doesn't tag the latest images with latest so the example doesn't actually work:
docker run --rm --init --interactive --tty --privileged --volume /:/mnt/root ghcr.io/dundee/gdu /mnt/roo
Unable to find image 'ghcr.io/dundee/gdu:latest' locally

This will start working once I release the next version.


Ready to use implementation on Windows?

Are you aware of a ready to use implementation for Windows? Ideally I specify a repository URL and the name of a Windows service. As soon as an update is available the service will be stopped, replaced by the updated version and started again.

I'm not aware of an integration of TUF with Microsoft Windows Update, nor of software that supports the ideal approach you have outlined.  Let us know if you find one, or attempt to implement your outlined approach!
I recommend you give Notary (based on TUF) a try.  A demo of Notary is available here: http://www.ustream.tv/recorded/64499822#to01:54:00.  It might be usable for your use case.
If you meant something else, then I'm not sure what you mean by "ready to use implementation."  Can you please clarify?
Integrating TUF with a software update system is covered here, but I'll try to summarize below how integrators are expected to integrate the framework with the Python implementation.
This framework (TUF) is meant to be imported as a library by the software update system.  In your example, the software update system (it must already exist) keeps track of Windows services, and handles stopping and restarting them if an update is available.  You as an integrator would have to import the TUF library into this software update system and make specific calls provided by the framework to check and download updates.
Note:
We have thought about an extension to TUF where legacy updaters (or update systems that cannot be modified to use TUF) are interposed to securely fetch these updates with TUF metadata.  However, this extension isn't available yet.

Ok thanks for the information!


Enable canary helm releases with Flagger in GitOps

Details
Describe the solution you'd like:
Enable the ability to canary out certain functionality and changes using a tool such as Flagger
https://github.com/weaveworks/flagger
Anything else you would like to add:
N/A
Additional Information:
N/A

Done


enable uniform-bucket-level access

Configuring Uniform Bucket Level Access is a standard security recommendation when configuring a GCS bucket, otherwise object-level ACLs can easily be exfiltrated to non-org members.
https://cloud.google.com/storage/docs/using-uniform-bucket-level-access
UBLA is also enforced by many google recommended frameworks such as the Security Foundations Blueprint, so trying to deploy this repo in an environment configured to Google recommended best practices without enabling UBLA will fail.
https://cloud.google.com/architecture/security-foundations/using-example-terraform#organization-policy-setup

#37


All Tests and Bug fixes for release-4

Ran 68 of 75 Specs in 2374.803 seconds
SUCCESS! -- 68 Passed | 0 Failed | 0 Pending | 7 Skipped --- PASS: TestE2E (2375.00s)
PASS
ok  	github.com/appscode/voyager/test/e2e	2375.092s

Fixes #630