Uniswap Pool Filler

How about creating a special minter contract with the goal of providing Uniswap liquidity against another stablecoin (let's say DAI) and the following properties:

A user can provide 1000 DAI and gets a uniswap position with 1000 DAI + 1000 freshly minted ZCHF on his behalf
The user further has to provide pool shares worth 1000 ZCHF
The user only gets the funds and pool shares back after the position is closed again. If there are fewer then 1000 ZCHF left, pool shares are redeemed until there is enough there to burn.

Details to be figured out. :) But it would help us a lot to get highly liquid pools on DEXes.

Example
We start at dollar-franc parity, i.e. 1 USD = 1 CHF. A user provides 100'000'000 USDC to the pool filler and borrows 100'000'000 ZCHF on top of that to create a pool with a symmetric range around 1 CHF from 0.95 CHF to 1.05 CHF. The users starts with a net wealth of 100'000'000 USD = 100'000'000 CHF = Pool Value - ZCHF debt.
Over the course of time, the dollar falls to 0.95 CHF and the pool now contains about 202'500'000 USDC. The user's new net wealth is roughly 202'500'000 USDC - 100'000'000 ZCHF = 97'500'000 USDC. So they lost some money in dollar terms and even more in ZCHF terms as 97'500'000 USDC = 92'500'000 ZCHF at this point.
If, somewhat later, the dollar climbs to 1.05 CHF, the pool will contain 202'500'000 ZCHF. In that case, wealth in ZCHF has increased to 202'500'000 CHF - 100'000'000 CHF = 102'500'000 CHF. But wealth in dollar terms has declined to about 92'500'000 USD.
So at average, they would lose about 5% of their wealth, regardless of whether it is measured in dollar of zchf terms. This is in line with the basic logic that the impermanent loss of the pure position is 2.5%, but it is leveraged 2x, so the total loss is about 5%.
Disclaimer: all calculations have been made with "linear" calculations and are therefore only an approximation to the actual values. But overall, the liquidity amplifier allows users to fill a uniswap pool with a leverage. Doing so will be profitable when the fees outweigh the impermanent loss, i.e. when the exchange rate goes back and forth often enough.
Analysis
The advantage of the liquidity amplifier is that it contains an interest-free loan, such that providing liquidity on uniswap becomes less expensive. In a competitive system, this should lead to more liquidity and lower fees for the end users.

Proof of concept can be found here: https://github.com/Frankencoin-ZCHF/FrankenCoin/blob/amplifier/contracts/Amplifier.sol


Add SUMO to set of federated simulators

As a CPSWT user, I want a SUMO federate so that I can include SUMO, a traffic simulator, in federations.

Nothing needs to be changed in cpswt-core to add SUMO as a federated simulator -- cpswt-sumo addresses this, and is its own project.


[user_list] Error + HTTP Response for users that don't exist

Currently, it returns an empty array with a 200 status for non-existent users.

user_list endpoint has been depreciated.
More info: https://myanimelist.net/forum/?topicid=1616529#msg52015306


Musical instruments classification

Mirco, I tried your work on VCTK, LibriSpeech and TIMIT. All databases get high accuracy and I'm very pleased.
Currently I'm trying to apply your code on another task - Musical instruments classification.
I wonder, is it too overkill for let's say 10 instruments? Are the sinc filters still needed?
In case it sounds right to you, what changes would you recommend?
I would say enlarge window 200ms->500ms, as well as overlap 10ms->50ms.
Maybe also lesser filters (80->20)?
What would be the filters' length? Still 251?
With much appreciation for your info.
Thanks,
Carmi

Dear Carmi,
the application you propose it is very interesting.
It is however very hard to guess good values of the hyperparameters.
Usually it is better to try some of them and see what happens.
Mirco
On Wed, 27 Nov 2019 at 01:51, carmi shimon<EMAIL_ADDRESS>wrote:

Mirco, I tried your work on VCTK, LibriSpeech and TIMIT. All databases get
high accuracy and I'm very pleased.
Currently I'm trying to apply your code on another task - Musical
instruments classification.
I wonder, is it too overkill for let's say 10 instruments? Are the sinc
filters still needed?
In case it sounds right to you, what changes would you recommend?
I would say enlarge window 200ms->500ms, as well as overlap 10ms->50ms.
Maybe also lesser filters (80->20)?
What would be the filters' length? Still 251?
With much appreciation for your info.
Thanks,
Carmi
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mravanelli/SincNet/issues/78?email_source=notifications&email_token=AEA2ZVV43Q2XZYGZZT2M4PLQVYKG3A5CNFSM4JSCIKYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4KHQLA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEA2ZVUWYM6G5BUJKCHRY4DQVYKG3ANCNFSM4JSCIKYA
.


plugins/vim-be-good: init

Integrate the vim-be-good plugin

Could you split the PR in two commits, one for adding yourself to the maintainers, and the other for the plugin + tests?

@traxys No problem

If you have both hasSettings = true and callSetup = false you need to "apply" the settings in some manner, I'm not sure if this plugin has real "configuration" options

@traxys Ahaha, oops, yeah that was definitely supposed to be hasSettings = false 😅
That should be fixed now

@mergify queue


Please upgrade flux to 0.191.0

flux dependency needs to be upgraded to 0.191.0 to fix the build compatibility with rust 1.66.0+
relates to https://github.com/influxdata/kapacitor/pull/2738

fix pr, https://github.com/influxdata/kapacitor/pull/2811


5.0.1: onZoom not fired before getting onScroll

Hello,
After looking for problem updating the map in my application, I discovered that onZoom event is never fired before scrolling the map first.
EDIT: only occurs when we use MapsForge adapter.
Do you confirm?

The usage of the maps forge adapter most likely isn't related to this issue

Strange.

I am having the same issue. OnZoom is called when you have the zoom controls and you press a button, otherwize, if you zoom with a double tap or with a 2 finger pinch to zoom, it is not called.

Thanks! this info helps a lot with tracking down the root cause
On Feb 22, 2016 11:10 AM, "Laurent"<EMAIL_ADDRESS>wrote:

I am having the same issue. OnZoom is called when you have the zoom
controls and you press a button, otherwize, if you zoom with a double tap
or with a 2 finger pinch to zoom, it is not called.
—
Reply to this email directly or view it on GitHub
https://github.com/osmdroid/osmdroid/issues/248#issuecomment-187246492.

what version is this on again? i'm having some issues replicating this. It appears to be working ok on 5.1 and on master. i just added a sample to validate so at least we'll have something in the future

merged to master

The issue was on 5.0.1. I have not tested with 5.1.
Thanks a lot for your help.
On Wed, Feb 24, 2016 at 3:23 AM, spyhunter99<EMAIL_ADDRESS>wrote:

merged to master
—
Reply to this email directly or view it on GitHub
https://github.com/osmdroid/osmdroid/issues/248#issuecomment-188016299.


Not Working with latest release

Theme does not install correctly on latest release:
cannot create regular file 'admin/style/vendor/AdminLTE.css': No such file or directory

has development stopped?

Im sorry it was my fault, i was working from /var/www/html/admin/

I'm glad to hear that, no need to be sorry - means less work for me 😃. If you have any suggestions or run in to issues, do let me know. I've not been using pihole for a while, so some elements may need updating.


I have some questions about RNNT loss.

hello
I would like to ask you a question that may be somewhat trivial.
The shape of logits of RNN T loss is Batch, max_seq_len, max_target_len+1, class.
Why is max_target_len+1 here?
Shouldn't the number of classes be +1 to the size of the total vocab? Because blank is included.
I don't understand at all.
Is there anyone who can help?
https://pytorch.org/audio/main/generated/torchaudio.functional.rnnt_loss.html

max_target_len+1 is not the vocab size. They are two different things.
You can find my implementation at
https://github.com/csukuangfj/optimized_transducer/blob/master/optimized_transducer/csrc/cpu.cc#L83

@csukuangfj Thank you.
I said that in a misleading way.
What I'm curious about is why target_length +1 needs to be entered as the RNNT loss's 3rd input. Looking at your code, I noticed that you wrote target length+1 because it includes a blank label.
Isn't the blank input already included in n_class? (When setting n_class, I think len(vocab)+1 should be set. Similar to CTC loss.)
I don't quite understand

So the number of classes should be len(vocab)?
I understand.
I had misunderstood the mechanism of RNN-Transducer.
Since model will start from a blank label, it should be target_length+1.

Great to hear it resolves your issue.

@csukuangfj
Thank you for your kindness.


Unable to create agent nodes using the Ansible script

New instance was created successfully but the script stopped at the error below:
(excerpt from ansible output)
[user@bootstrap dcos-gce]$ ansible-playbook -i hosts add_agents.yml
...
things ran fine until
...
PLAY [start dcos bootstrap container] ******************************************
TASK [ensure dcos installer container is started] ******************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error retrieving container list: ('Connection aborted.', error(2, 'No such file or directory'))"}

At a guess I would say docker isn't running.
Can you do following and tell me what you get?
sudo docker run hello-world

Thanks ajazam! You’re right. Docker wasn’t running on the bootstrap node when the script was run.

On Aug 9, 2016, at 2:15 PM, ajazam<EMAIL_ADDRESS>wrote:
At a guess I would say docker isn't running.
Can you do following and tell me what you get?
sudo docker run hello-world
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dcos-labs/dcos-gce/issues/4#issuecomment-238642013, or mute the thread https://github.com/notifications/unsubscribe-auth/ALi_V0cfRZLTib3S4X-2My7eWYOD0xn6ks5qeMPUgaJpZM4JgWfT.

There was a problem with my script. If you try to add an agent after teh bootstrap node is restarted then docker on the bootstrap node does not start. It's fixed now in bb1be959e436e238c0cfdb5a13a354ff89f01170


Use useragent generator

Description
Use useragent-generator to generate the user-agent string rather than building it by hand.
Marking as "draft" till this other PR gets approved and merged
Motivation and Context
This is from the following conversation. Intention/motivation is to avoid hardcoding - so that, as we upgrade electron (and thus chromium) versions, we can rest-assured that functionalities will continue to work.
Screenshots

Checklist:

[x] My pull request is properly named
[x] The changes respect the code style of the project ($ npm run lint && npm run reformat-files && npm run manage-translations && npm run apply-branding)
[x] I tested/previewed my changes locally

In general, I approve using a lib to avoid building it by hand but https://github.com/pastelsky/useragent-generator didn't receive any updates in ~3 years. This means that we will have super old (maybe vulnerable) subdependency versions that useragent-generator depends on.
Unfortunately I didn't find any good alternative to useragent-generator on npm based on a quick search.

Yes @mhatvan: I looked through other alternatives for ua-generation - none of them seemed to be actively maintained. This one seemed to have the most recent commit.

@kris7t - any ideas? or shall I proceed with merging this PR?

It's still quite strange that that ua-generator defaults to Windows as the OS. So we might need to write our own alternative library instead.
Plus, if I see correctly, ua-generator can't really help us with tracking the latest versions of browsers (since it's unmaintained). So we'll need some other tool to let users say, e.g., last Firefox on Linux, and generate an UA string with the latest version of Firefox running on Linux (while, say, last Firefox would result in the Firefox UA, but with the actual OS Ferdi is running on). Maybe something like browserlist could help there instead?

I tried looking through the browserslist npm module and the caniuse-lite one that it depends on. Though the intended use (public methods API) is similar to what we want at the end of this PR, there's nothing similar in either of these 2 npm modules that can be hooked up easily. Also, as @kris7t described it, there might need to be UI changes that take the user's choice, and translate/parse it into what browserslist or caniuse-lite can then be called with. This seems very tedious at this point (at least for me).

@kris7t - please confirm if your 👍🏼 for the above comment means that we can merge this PR? Or whether you are going to take a stab at it later this week/next when you get a chance? If the former, I will remove the "draft" flag and you can approve this. If the latter, then I will close the PR as abandoned.

@kris7t : Based on your comment above - I took a look at the useragent-generatorrepo. The additions for newer configs seem simple enough. I will take a crack at it today. If we have a newer version, and while waiting for the PR to be accepted by the original author (and subsequent publishing into npmjs.com), I am thinking of pointing to my GH fork url in ferdi'spackage.json`. Would this be acceptable for now?

Yeah, I guess we should use our own fork for useragent-generator (at the very least, for generating UA strings with the proper OS) if upstream doesn't support it.

@kris7t - i have reverted parts of the previous commit - to be able to get the closest user-agent string for my macos. Guessed the same for windows and lonux - based on the user-agent-switcher FF plugin for different OSes and versions..
(Please review and approve. I will squash while merging the PR into a single commit.)


Created online shopping

React capstone project - Online shopping
This project is based on an eCommerce website built with React and Redux. The user can check all the products in our and get more details on selected products. The user can also search for a product in our store.
Highlights
API First I have chosen a fakeStore API to base the development of the web app on. The API allows getting numeric values based on a parameter. and the chosen API is open.
Design

Technical

[x] The project is a single-page application (SPA) built with React and Redux.
[x] The data retrieved from the API should be stored in the Redux store.
[x] I filtered the data that you retrieve from the API using a Filter stateless component.
[x] Every page (the main page and the pages for each item) has a unique route within the SPA.
[x] The project is deployed and accessible online. project link

Cheers and happy reviewing!

Thank you @1GORDON for approving my project!


async/await

Why doesn't async/await work like it does in other async libraries?
when I call:
let result = await request(options), it's returning a promise and not the resolved value. I thought the whole idea of await is so you can await for the async function embedded in the Promise to complete. But in the case of this library, it's just returning the promise.

Never mind, figured it out. It's the god-awful async keyword that governs a function to always return a promise. Ugh.


Trouble when $HOME points to a symlink

Hi,
I currently run Silverblue, where $HOME points to /home/<username> (as is normal), but that directory is a symlink to /var/home (the base image is immutable, so everything that changes lives under /var).
Pure however handles this a bit unfortunately:
/var~
❯

Cheers.

Hi @jurf,
Could you tell us what is the content of $HOME and $PWD when in your home directory? That will help us add test to support your scenario.
That's probably related to how _pure_parse_directory works:

https://github.com/rafaelrinaldi/pure/blob/master/functions/_pure_parse_directory.fish
https://github.com/rafaelrinaldi/pure/blob/master/tests/_pure_parse_directory.test.fish

Hey, thanks for the reply. This are the variables in question:
❯ export
…
HOME /home/jurf
PWD /var/home/jurf
…

Thanks,
the behaviour is the expected one in light to our current code.
I'm in favour to support this as an explicit rule, i.e. only symlink to /var/$HOME as we can use a simple glob expansion/regex to do it.
Cc @schrodincat @rafaelrinaldi

Hm, turns out that the latest Silverblue uses $HOME=/home/<user> again.
I do get the directory printed twice, but that is a different issue, I guess.

I'm closing as $HOME behaviour is back to standard.
Feel free to open another issue


constrain requests-oauthlib<2 for tweepy

Checklist

[x] Used a static YAML file for the patch if possible (instructions).
Only wrote code directly into generate_patch_json.py if absolutely necessary.
[x] Ran pre-commit run -a and ensured all files pass the linting checks.
[x] Ran python show_diff.py and posted the output as part of the PR.
[x] Modifications won't affect packages built in the future.

refs conda-forge/tweepy-feedstock#32
The dep solver is finding older tweepy releases with an unconstrained dep on requests-oauthlib
$ python show_diff.py
================================================================================
================================================================================
linux-armv7l
================================================================================
================================================================================
win-32
win-32::tweepy-3.5.0-py27_0.tar.bz2
win-32::tweepy-3.5.0-py35_0.tar.bz2
win-32::tweepy-3.5.0-py36_0.tar.bz2
win-32::tweepy-3.6.0-py27_0.tar.bz2
win-32::tweepy-3.6.0-py35_0.tar.bz2
win-32::tweepy-3.6.0-py36_0.tar.bz2
-    "requests-oauthlib >=0.7.0",
+    "requests-oauthlib >=0.7.0,<2.0.0a0",
================================================================================
================================================================================
linux-ppc64le
================================================================================
================================================================================
osx-arm64
================================================================================
================================================================================
linux-aarch64
================================================================================
================================================================================
noarch
noarch::tweepy-3.10.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-3.7.0-py_0.tar.bz2
noarch::tweepy-3.8.0-py_0.tar.bz2
noarch::tweepy-3.9.0-pyh9f0ad1d_0.tar.bz2
noarch::tweepy-4.0.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.0.1-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.1.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.2.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.3.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.4.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.5.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.6.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.7.0-pyhd8ed1ab_0.tar.bz2
noarch::tweepy-4.8.0-pyhd8ed1ab_0.tar.bz2
-    "requests-oauthlib >=0.7.0",
+    "requests-oauthlib >=0.7.0,<2.0.0a0",
================================================================================
================================================================================
win-64
win-64::tweepy-3.5.0-py27_0.tar.bz2
win-64::tweepy-3.5.0-py35_0.tar.bz2
win-64::tweepy-3.5.0-py36_0.tar.bz2
win-64::tweepy-3.6.0-py27_0.tar.bz2
win-64::tweepy-3.6.0-py35_0.tar.bz2
win-64::tweepy-3.6.0-py36_0.tar.bz2
-    "requests-oauthlib >=0.7.0",
+    "requests-oauthlib >=0.7.0,<2.0.0a0",
================================================================================
================================================================================
osx-64
osx-64::tweepy-3.5.0-py27_0.tar.bz2
osx-64::tweepy-3.5.0-py35_0.tar.bz2
osx-64::tweepy-3.5.0-py36_0.tar.bz2
osx-64::tweepy-3.6.0-py27_0.tar.bz2
osx-64::tweepy-3.6.0-py35_0.tar.bz2
osx-64::tweepy-3.6.0-py36_0.tar.bz2
-    "requests-oauthlib >=0.7.0",
+    "requests-oauthlib >=0.7.0,<2.0.0a0",
================================================================================
================================================================================
linux-64
linux-64::tweepy-3.5.0-py27_0.tar.bz2
linux-64::tweepy-3.5.0-py35_0.tar.bz2
linux-64::tweepy-3.5.0-py36_0.tar.bz2
-    "requests-oauthlib >=0.7.0",
+    "requests-oauthlib >=0.7.0,<2.0.0a0",

cc: @conda-forge/tweepy

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.


Enable CI in PRs from forks

Description
Enable CI in PRs from forks
Changelog
- description: |
    Enable CI in PRs from forks
  # no-changes: the API has not changed
  # compatible: the API has changed but is non-breaking
  # breaking: the API has changed in a breaking way
  compatibility: no-api-changes
  # feature: the change implements a new feature in the API
  # bugfix: the change fixes a bug in the API
  # test: the change fixes modifies tests
  # maintenance: the change involves something other than the API
  # If more than one is applicable, it may be put into a list.
  type: maintenance

Checklist

[ ] Commit sequence broadly makes sense and commits have useful messages
[ ] The change log section in the PR description has been filled in
[ ] New tests are added if needed and existing tests are updated.  These may include:

golden tests
property tests
roundtrip tests
integration tests
See Runnings tests for more details

[ ] Any changes are noted in the CHANGELOG.md for affected package
[ ] The version bounds in .cabal files are updated
[ ] CI passes. See note on CI.  The following CI checks are required:

[ ] Code is linted with hlint.  See .github/workflows/check-hlint.yml to get the hlint version
[ ] Code is formatted with stylish-haskell.  See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
[ ] Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7

[ ] Self-reviewed the diff

Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges.  Please contact IOG node developers to do this
for you.

@newhoggy you might want to add a setting to automatically delete merged branches.


Added PojoDataContextFactory + minor tweaks from REST service PR.

These changes where all part of the PR (GitHub #120) that formed the initial codebase for MetaModel Membrane (our new subproject :-)). They're basically a few minor tweaks to the MM library codebase to make it prepared for more DataContextFactory usage.

Merging as per lazy consensus


Fix safe upload

Short description of what this resolves:
This PR allows the user to enable forceUpload if the gist contents are the same.
Changes proposed in this pull request:

Show message box if gist contents are the same with option to enable forceUpload

Fixes: https://github.com/shanalikhan/code-settings-sync/pull/923#issuecomment-508031793
Checklist:

[x] I have read the contribution guidelines.

I have disabled forceUpload
As discussed in https://github.com/shanalikhan/code-settings-sync/pull/923#issuecomment-508031793
On first upload it should upload.
On second upload on nothing changed right after 2 seconds.
It should not upload the settings on second upload and prompt that settings are the same and ask user to enable forceUpload to perform upload.

@shanalikhan

It should not upload the settings on the second upload and prompt that settings are the same and ask the user to enable forceUpload to perform the upload.

After testing with a portable version of VSCode, I can confirm that this currently works in the v3.4.0 branch.


build(autoware_auto_perception_rviz_plugin): add build dependency

Description

See https://github.com/autowarefoundation/autoware/issues/3222
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@scepter914 @taikitanaka3 could you review this PR when you have a moment? Thanks.


Showing Image in action response

is it possible to show image in response of action execution.

We are working on this feature right now. What channel are you using right now?

I am using chat widget primarily and sometimes slack.

@dcalvom is this feature available now


Using Task<Response> when T is a string does not work.

Description
Using Task<Response<T>> when T is a string does not work.
To Reproduce
public interface ITest
{
    Task<string> CallGoogleAsync(CancellationToken token); // works

    Task<Response<string>> CallGoogleAsync(CancellationToken token); // throws exception
}

The reason is probably that that the T in the second example is always deserialized as JSON, which fails if the string is just a string like "abc".
Version Info

RestEase version: latest
Target framework version: all

Fair point. I guess the same also applies to Response<Stream> (and also I suppose Task<HttpResponseMessage>, although I'm not sure there's much point in that).
I'm somewhat minded to just let the ResponseDeserializer handle bare strings. We can have a property on the deserializer to say whether it handles raw strings or not to avoid backwards compat issues, although I suppose there's still a problem where someone might have written a deserialize specifically for Response<T>, which intentionally handles raw strings.


chore(localize): updated translation from Crowdin

:tada: This PR is included in version 2.64.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Less than 0 items for advanced start

Factorio version
Version number: 0.17.66
Scenario version
Version number: 5.9.1
Bug description
Advanced start attempts to place an invalid amount of items into the players inventory.
Item stack count has to be a positive number
stack traceback:
    ...temp/currently-playing/modules/addons/advanced-start.lua:26: in function <...temp/currently-playing/modules/addons/advanced-start.lua:9>

Reproduction method
Steps to reproduce the behavior:

Unsure, sometimes when a player joins this error is created even with check for count being greater than 0

Expected behavior
No items given rather than error.
Debug command
/interface
local items = require('config.advanced_start').items
for item,callback in pairs(items) do
  local stats = player.force.item_production_statistics
  local made = stats.get_input_count(item)
  local success,count = pcall(callback,made,stats.get_input_count,player)
  output(item..' '..count)
end

if the count is and float value it also says it shood be a postive number so that might be the problem

Did not think of that should be tested to see if something like >=1 would work better

Fixed in PR Fix Spawn Items Equal 0 #141


renamed docker image name in README

When building an Elasticsearch environment in Docker according to the usage, the following error occurs when generating the sample rails application.
rails runner 'Article.__elasticsearch__.create_index! force: true' from "."
/Users/username/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/elasticsearch-7.17.7/lib/elasticsearch.rb:86:in `verify_with_version_or_header': The client noticed that the server is not a supported distribution of Elasticsearch. (Elasticsearch::UnsupportedProductError)

This is because the elasticsearch-ruby gem no longer supports oss only distributions.
https://github.com/elastic/elasticsearch-ruby/issues/1429
To avoid unnecessary errors, we suggest changing the name of the Docker Image for testing, which is introduced in Usage.
version control software: asdf
ruby version: 3.1.2

Thanks for your contribution @yoshi1011!


Fix 'Operation not permitted @ apply2files - app/build.gradle'

Hi, thanks for this plugin! 🙏🏼
I found an issue when using this plugin when the /tmp and the android code are in different devices:
`rename': Invalid cross-device link @ rb_file_s_rename - (/tmp/fastlaneIncrementVersionCode20220309-4119-s2dzmz, app/build.gradle) (Errno::EXDEV)

Changing to FileUtils.cp fixes the issue.
Best,
Gabriel Francisco

Hi,
what do you mein by 'different devices'?  For example your Android code is on an external drive?
Whats happens with the original temp file, if you now copy it instead of moving it?
Should we delete it afterwards as well?

Hi @oklimberg I mean, different block/storage devices. The error EXDEV happens because it crosses the filesystem boundaries.
AFAICS the temp file is unlinked (removed) right after the cp happens.

Note that you can work around this issue by setting the "TMPDIR" variable to a directory on the same device.
export TMPDIR=/some/other/path
This path will be used under the hood https://github.com/ruby/ruby/blob/master/lib/tmpdir.rb#L27
In our case with gitlab CI, we do it like this. Watch out that TMPDIR doesn't mess up downloading artifacts.
job:
  script:
      # Set the tmpdir so that we don't run into this issue when incrementing the version number https://github:com/Jems22/fastlane-plugin-increment_version_code/pull/22
      # This has to be set as part of the script, because this breaks downloading artifacts when set in `variables`
    - export TMPDIR='${CI_PROJECT_DIR}/tmp'
    - mkdir -p $TMPDIR
    - bundle exec fastlane android build

Thanks @stuikomma for the suggestion, just to add more context to the discussion: I found this issue when using a (memory based) tmpfs backed temporary directory.
This patch uses cp instead of mv keeping the same behavior and the file is removed on line 73 anyway.
I'm surprised that the line 73 does not fail when the file is mv-ed (current code). 🙃


Custom Effects can't be created

Hi there,
I just tried to create some custom effects. Unfortunately, as soon as I modify an existing custom effect or even do a page reload the previously created effects vanish from the menu.

Hi, can you give more detailed step by step instructions on how to reproduce this? I'm not seeing any issues.

Also, if it isn't too big of a deal, delete the Custom Convenient Effects item in the items directory. The next time you click Create Effect, it should regenerate it. I'm not sure how that could have gotten messed up though

Ok, did some more testing. It actually does not create any effects permanently. Even if I only click on "Create Effect", give a name and Submit, the effect vanishes as soon as I reload the page. Tested both on Forge and a local installation and also tested with all modules except deactivated except your module, libWrapper and socketlib.
Can you tell me where you store the data for the created custom effects? I'll have a look if those entries are created at all.

They are stored on the Custom Convenient Effects item in your items tab. Of note, if you don't change the name from "New Effect" and don't add any changes, it's considered invalid and I don't show it.

After page reload:

Maybe this helps. Once the custom effect is defined, updating it makes it invalid, because it's name is on the list of existing effects?

Ah okay, I see why now. Thanks, I'll have this fixed soon

Fixed in v1.9.1

Great, thanks :-)


Code Interrupts w/ No Warning When Casting Spell on Immovable Allies

When casting spells like sacrifice on immovable allies, such as an Arrow Tower or Flower West, the hero gets stuck trying to cast the spell and the rest of the code isn't ran.
Replay: https://codecombat.com/play/level/cloudrip-siege?session=5831d88217020f1f002e858b&observing=true
Code:
hero.say("Casting sacrifice on " + friend);
hero.cast("sacrifice", friend);

// code past this point won't run
hero.say("This should run, or a warning should be issued");

The exact same thing happens with seemingly any other ally spell, such as dispel, grow, regen, or shrink.

Fixed.


fix: 🐛  fix plugins upgrade info noy show bug ,set nginx static resou…

…rce gzip on

What this PR does / why we need it:
Add your description
Which issue(s) this PR is related to (optional, link to 3rd issue(s)):
Fixes #
Reference to #

Special notes for your reviewer:
/cc @your-reviewer

Release note:

NONE

https://github.com/kubegems/kubegems/issues/62


Multiple files loaded in chome

Just noticed , that the same font file is loaded 3 times

This project is effectively no longer under active maintenance, since there are better alternatives available these days (OpenType.js, Fontkit, etc), so unless this is a thing that you really need fixed, and you're willing to take a stab at patching the code to do the right thing, this issue will probably not get fixed.

Unfortunately this project appears to be the only one that does what it does.OpenType cannot load fonts for the browser to use (i.e. @font-face) and TypeKit afaik has no support for measuring text.

you may want to check out https://github.com/typekit/webfontloader

obsolete with the 2019 rewrite


Add on_unknown_application_command handler

This is a yet undocumented feature of Pycord, which is called whenever a bot receives an unknown command, perhaps one that is out of sync.  It would be nice to add this handler and also look into its method signature by snooping around in source code.

Reference: https://discord.com/channels/881207955029110855/881224361015672863/962835435082629150


Add a event called ConnectionDenied

The event will be fire when the connection is torn down. This event was requested in #20

Thank you so much @Return25 - much appreciated!  Just posted to NuGet: https://www.nuget.org/packages/HttpServerLite/1.2.6
Sorry about the delay on my end.


Split release job to sub tasks.

The release workflow is passing in the run

Thanks! I'm ok to consider the FirebaseCore refactor for the future.

Thanks! I'm ok to consider the FirebaseCore refactor for the future.

SGTM, will update the workflow in another pr.


Multisig UI: Display contract ID, threshold & nonce without button clicks

Closing to consolidate to a single issue: https://github.com/FuelLabs/sway-applications/issues/592


Building with proguard Android

Hi thjere,
I'm trying to build the app for release but getting the following error, any ideas?
FAILURE: Build failed with an exception.

* Where:
Build file '/Users/zzz/.pub-cache/hosted/pub.dartlang.org/pushy_flutter-1.1.1/android/build.gradle' line: 22

* What went wrong:
A problem occurred evaluating root project 'pushy_flutter'.
> Failed to apply plugin [id 'com.android.internal.version-check']
   > Minimum supported Gradle version is 6.1.1. Current version is 5.6.2. If using the gradle wrapper, try editing the distributionUrl in /Users/zzz/.pub-cache/hosted/pub.dartlang.org/pushy_flutter-1.1.1/android/gradle/wrapper/gradle-wrapper.properties to gradle-6.1.1-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 480ms

The plugin pushy_flutter could not be built due to the issue above.

Closing due to lack of response, feel free to comment to reopen.


Adding new code in tree

Maximum depth of binary tree in Java - to find max depth

Hello I am a contributor to GSSOC '23  and it's good to find you here. Please assign this to me

Hello I am Arun and I am a contributor to GSSOC '23 and it's good to find you here. Please assign this to me

Hello I am Arun and I am a contributor to GSSOC '23 and it's good to find you here. Please assign this to me

I m also a contributor so asking for issue

ok


Pulse is not centered to view

Hi, I'm trying to get a nice pulse below a round avatar view. The UIImageView itself is a rectangle spanning the entire screen, its image is a circle with aspect fit. When I add the pulsator view like this:
    let pulsator = Pulsator()
    pulsator.radius = 500
    pulsator.numPulse = 3
    pulsator.pulseInterval = 3
    pulsator.animationDuration = 5
    pulsator.backgroundColor = UIColor(red: 0, green: 0.623, blue: 0.890, alpha: 0.3).cgColor
    self.avatarImageView.addSublayer(pulsator)
    pulsator.start()

It works but the pulse comes from the top left of the UIImageView. I want it to spawn pulses from the center of the image, which is also the center of the UIImageView itself. How can I change the pulsator's position? Or how can I center it properly to the view?

@kevinluscii Duplicate #17


Registering other events

I see the example code for registering and executing code when the focus changes, using the registerfocuschangeevent(), but I am trying to register events for other events and I don't see any example code for the others. I have downloaded the source files and in the master test, it has examples for focus change, but the other event examples are /* TO DO */
I am trying to create an event for when something is dragged, utilizing the DRAGCOMPLETE event, ID 20028 and I need some help

The point is that the FocusChangedEvent is a global event so you register that on the global automation object. All other events are registered on an individual element.
So for that specific event, you need to register it like:
var automation = new UIA3Automation();
var element = ...
element.RegisterAutomationEvent(automation.EventLibrary.Drag.DragCompleteEvent, TreeScope.Element, (element, id) =>
{
    Console.WriteLine($"Element {element} finished dragging");
});

I never worked much with events so I would be very thankful about feedback and maybe even an example I can add.

I have that exact code and a breakpoint and It never triggers the breakpoint while I am running. I feel like I am missing something.

I think the main problem is that there are not many controls that support the DragPattern. I could not yet find a control that supports it. Only if a control supports that pattern, you can subscribe to that event.


Updated svelte-i18n to v3

Codecov Report

Merging #1228 (89aa9ed) into master (6e0bf36) will increase coverage by 17.47%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           master     #1228       +/-   ##
============================================
+ Coverage   82.52%   100.00%   +17.47%
============================================
  Files          22        12       -10
  Lines        2535       262     -2273
  Branches      391        46      -345
============================================
- Hits         2092       262     -1830
+ Misses        443         0      -443

Flag
Coverage Δ

backend
100.00% <ø> (ø)

frontend
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/frontend/App.svelte

src/frontend/StepHeader.svelte

src/frontend/Moving.svelte

src/frontend/BackButton.svelte

src/frontend/index.ts

src/frontend/Confirmation.svelte

src/frontend/Introduction.svelte

src/frontend/FolderSelection.svelte

src/frontend/ContinueButton.svelte

src/frontend/Done.svelte


make function builder detector process “louder” aka less magic

uncertain what to actually do but the magic should at least equal project detectors

Closing for now.
Reopen with specifics if you'd like


Update cookbook gallery per #78

Update cookbook gallery as requested in #78. Closes #78.

Okay @jnmorley Now that your config is updated we'll rerun this job

I just pushed a correction to the thumbnail image (the path was .png instead of .svg). I'll change the author too.

I'm waiting for the intake-cookbook repo to have fully built the changes before I rerun this job.

LGTM


[Enhancement] Forum/thread support

Checks

[X] I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting.
[X] I confirm that I noted that if I don't follow the instructions, the issue may be closed directly.

Description
The mod currently doesn't work in a forum thread. It would be nice if it did.

It is completely unnecessary, redundant and impossible to implement a chat bridge in a forum thread.

This issue does not explain how to implement it at all, so it is closed.


added method to use customized route key name in record route binding.

to easily change routeKeyName in resources.

Thanks!


fix webauthn not working as second login

When linking a webauthn account to an account created with the ashirt login, a user was unable to login using the webauthn account; this PR fixes that
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

I wasn't able to reproduce the original bug this fixes. I logged into Albus using the username/password, added a webauthn credential, logged out, then logged in using webauthn. Is there another step to reproduce?

I think I might have fixed this in this  PR: https://github.com/theparanoids/ashirt-server/pull/829

I think I might have fixed this in this PR: #829

Oh interesting - I'm getting the error on main right now (with 829 merged in), but this does raise an interesting thing I've wondered (though it doesn't make a lot of sense); I wonder if different keys work somewhat differently with the webauthn library/spec.
I say this because when I looked into the issue that John and I got, the webauthn code for ashirt hadn't changed, and we hadn't upgraded to a newer version of the go webauthn library, but both of us were getting the 403 forbidden error, AND when I went back to the commit in september where webauthn had been added, I couldn't get it to work (but obviously it had been working for at least Joel and I would assume either Joe or John).
Now that we have a second instance where one version of the code worked some some people, but not another, it makes me wonder if the hardware key itself has anything to do with it (I'm using the touch ID sensor on my macbook fwiw). but IDK why that would be the case; what do you guys think?

I've been using a yubikey (I think a series 5). I've used it both with a fiingerprint biometric, and no biometric. I'm unclear why the different systems would behave differently, but I suppose it's something to look into.

I've been using a yubikey (I think a series 5). I've used it both with a fiingerprint biometric, and no biometric. I'm unclear why the different systems would behave differently, but I suppose it's something to look into.

yeah I'll take a look into it after I figure out some of this gorilla/mux stuff!


[Text Field] Unnecessary bouncing effect

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Some of the blue bottom lines for active Input field have an unnecessary bouncing effect. The reason could be the cubic-bezier function.

Expected Behavior 🤔

That bottom line's scale effect should not overflow into the input's container.

Steps to Reproduce 🕹

Steps:

https://material-ui.com/components/text-fields/
Focus on one of the inputs

Context 🔦

adding overflow: hidden to the parent container would fix this issue but not sure if this is a bug or a design.
Your Environment 🌎
--

@cyphernull can you please share on which input fields exactly are you seeing this, as well as your envinfo (running npx @material-ui/envinfo)

@cyphernull can you please share on which input fields exactly are you seeing this, as well as your envinfo (running npx @material-ui/envinfo)

The standard <TextField /> on the website's 'components' section https://material-ui.com/components/text-fields/

Can you include a frame-by-frame? I can't spot any problems in the first video. Maybe it's just an optical illusion?

Can you include a frame-by-frame? I can't spot any problems in the first video. Maybe it's just an optical illusion?

This the frames

Can you include a frame-by-frame? I can't spot any problems in the first video. Maybe it's just an optical illusion?

These are the frames

Awesome, thanks. This may be a rendering bug in your environment. I don't have that overflow on Ubuntu 20.04 and Chrome 89.
Does the issue persist if you change the duration in chrome devtools to e.g. 2000ms:

Can you include a frame-by-frame? I can't spot any problems in the first video. Maybe it's just an optical illusion?

These are the frames

Awesome, thanks. This may be a rendering bug in your environment. I don't have that overflow on Ubuntu 20.04 and Chrome 89.
Does the issue persist if you change the duration in chrome devtools to e.g. 2000ms:

Thanks for the tips. But the issue remains. This is  my environments info :
  System:
    OS: macOS 11.2
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 1.60 GB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.16.3 - ~/.nvm/versions/node/v12.16.3/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v12.16.3/bin/yarn
    npm: 6.14.4 - ~/.nvm/versions/node/v12.16.3/bin/npm
  Managers:
    Cargo: 1.45.1 - ~/.cargo/bin/cargo
    Homebrew: 2.7.5 - /usr/local/bin/brew
    pip3: 20.2.4 - /usr/local/bin/pip3
    RubyGems: 3.1.4 - /Users/eric/.rvm/rubies/ruby-2.7.2/bin/gem
  Utilities:
    Git: 2.29.2 - /usr/local/bin/git
  Servers:
    Apache: 2.4.46 - /usr/sbin/apachectl
  IDEs:
    Atom: 1.54.0
    Nano: 2.0.6 - /usr/bin/nano
    VSCode: 1.55.1 - /usr/local/bin/code
    Vim: 8.2 - /usr/bin/vim
    Xcode: /undefined - /usr/bin/xcodebuild
  Languages:
    Bash: 3.2.57 - /bin/bash
    Perl: 5.28.2 - /usr/bin/perl
    PHP: 7.3.24 - /usr/bin/php
    Python: 2.7.16 - /usr/bin/python
    Python3: 3.9.0 - /usr/local/bin/python3
    Ruby: 2.7.2 - /Users/eric/.rvm/rubies/ruby-2.7.2/bin/ruby
    Rust: 1.45.2 - /Users/eric/.cargo/bin/rustc
  Databases:
    SQLite: 3.32.3 - /usr/bin/sqlite3
  Browsers:
    Chrome: 89.0.4389.114
    Firefox Developer Edition: 88.0
    Safari: 14.0.3
  Monorepos:
    Lerna: 3.14.1

No issue either on Chrome 89.0.4389.90 and macOS 11.2.3.


basic website

A Two page website with 4 main contents:
Page 1:

Image: must be able to receive a js array and display it whenever its called
Dock Primary:

Appropriate inputs and defaults for frequency(32 > int > 1), wavelength(float > 0), ~_range(tuple of 2 floats)~ etc...
These will contain all the parameters of Noise class
whenever input changes, should call appropriate method

Dock Secondary:

This will contain appropriate drop down menus, selection menus etc, for Gradient and LinearColorGradient classes
whenever a selection or a parameter changes, should call appropriate method

Page2:

Info Page:

No specification, can include all docs organized, showing usage as gifs, images etc
Creative liberty can be taken

for initial commits / PRs, the python runtime connection need not be implemented, but placeholders can be created.
to be accepted for PR, Page1 (1, 2, 3) must be implemented
or
Page2 (4) must be implemented

So you need a website which serves as a replacement of the current GUI??

@Divyansh-0 yes

Okk i will try and replicate the features but i have never integrated a python app to a webpage

for initial commits / PRs, the python runtime connection need not be implemented, but placeholders can be created.
@Divyansh-0
But if you're interested you can look into pyodide, and use PyLink component from here

@Divyansh-0 do you want me to assign this issue to you?

Yeah

i didn't get what u want in dock secondary. Also i saw Your image code in the repo u shared why are You not using that??

i didn't get what u want in dock secondary

if u look at Warp, Gradient, LinearColorGradient in selectionTools.py, they have @classmethods which can be used as predefined options. All those options should be made available for selecting(dropdown menu?)

Also i saw Your image code in the repo u shared why are You not using that?

if u mean DImg component, yes it converts arrays to image, but its not well optimized

I get  that part  i have  to store those changed
values and then where should i transfer them??

Also i saw Your image code in the repo u shared why are You not using that?

if u mean DImg component, yes it converts arrays to image, but its not well optimized
U want it to be fast or leaner??

where should i transfer them??

u can have a place-holder method which gets called whenever the state changes for now, latter it can make an API call to python runtime to change settings

U want it to be fast or leaner??

fast would be good, but not the rule. you can improve upon DImg

where should i transfer them??

u can have a place-holder method which gets called whenever the state changes for now, latter it can make an API call to python runtime to change settings

For state change detection u can just use useState hook it would it ll return the current state. Also what is a place-holder method never heard of it in state management context of react

U want it to be fast or leaner??

fast would be good, but not the rule. you can improve upon DImg

So the logic has complications??

so here's what the API would be like, pyodide will run a python script when component mounts, it will have a noise instance created and send an array to be shown, now whenever Primary Dock parameters is changed by user, it will call a function in js specifying the change, which intern will call the noise.set<method> and again new noise values will be sent for display.
Secondary Dock does a very similar thing, but instead of change the noise parameters, it will ask for new gradient and color, which is again handled by the python script
the only thing js has to do is invoke python functions using pyodide, which will return an array to be displayed

So the logic has complications??

no not really, there might be small adjustments to be made.
i will commit the python script by today, so that you have a better idea.
for now just have a empty method which just console logs the change, and renders a random image

i will commit the python script by today, so that you have a better idea.
for now just have a empty method which just console logs the change, and renders a random image

so here's what the API would be like, pyodide will run a python script when component mounts, it will have a noise instance created and send an array to be shown, now whenever Primary Dock parameters is changed by user, it will call a function in js specifying the change, which intern will call the noise.set<method> and again new noise values will be sent for display.
Secondary Dock does a very similar thing, but instead of change the noise parameters, it will ask for new gradient and color, which is again handled by the python script
the only thing js has to do is invoke python functions using pyodide, which will return an array to be displayed

So basically You want to track the changes in the input fields and then user for instance presses a button then make an api call to transfer the newly collected params then py script does the work

For state change detection u can just use useState hook it would it ll return the current state. Also what is a place-holder method never heard of it in state management context of react.

no by placeholder i mean a function which doesn't do anything, it's just used for latter sake. it's a simple js function

So the logic has complications??

no not really, there might be small adjustments to

For state change detection u can just use useState hook it would it ll return the current state. Also what is a place-holder method never heard of it in state management context of react.

no by placeholder i mean a function which doesn't do anything, it's just used for latter sake. it's a simple js function

Ok i thought there are placeholder methods in Tenserflow and all . So i thought i might not be updated about React

i will commit the python script by today, so that you have a better idea.
for now just have a empty method which just console logs the change, and renders a random image

Ook

So basically You want to track the changes in the input fields and then user for instance presses a button then make an api call to transfer the newly collected params then py script does the work

yes spot on, but introduce some delay to the call, so its invoked only after user has made their desired change, we dont want to spam new request for every value the slider moves

So basically You want to track the changes in the input fields and then user for instance presses a button then make an api call to transfer the newly collected params then py script does the work

yes spot on, but introduce some delay to the call, so its invoked only after user has made their desired change, we dont want to spam new request for every value the slider moves

Thats what i was thinking that u should have a second confirmation by a button or something

Or a timeout maybe??

Or a timeout maybe??

yes

Ok i will in the first draft have a button to apply changes see how it goes and then re-configure it

Do you want me to create a repo for the website so that you can see how will it look before i do a PR ??

fork this repo, make your changes there, and then do a PR

ALso u need a double range slider for range??

i think there is no need for range slider, as it won't be displayed anywhere

You mentioned in point 1 of dock 1st that u need a range which accepts two params

You mentioned in point 1 of dock 1st that u need a range which accepts two params

right ignore it, no need for range, implement other parameters

@Divyansh-0 PR to 19-basic-website branch not master

@Divyansh-0 is it possible to host your files to vercel or some other place, to see the website?

Also u should update contribution guidelines docs

Also u should update contribution guidelines docs

yes ik, but i am busy for few days, it will be done soon

Tell me the changes i will fix tmrw And let me know the theme You want to go for the webpage then It will be good for styling

@Divyansh-0, Warp should be a drop down menu of Warp options (see selectionTools.py), waveLength should be an input of say step 128. And after Apply change is pressed all the values change, it should be visible all the time

Ok that input fields i will fix . For the apply change you dont want it to go back to original state??

Warp will take a N- dimensional array?? and a nested array ??

Warp is a class, it has different options, to choose from, see selectionTools.py

Ok that input fields i will fix . For the apply change you dont want it to go back to original state??

no it should be visible what the selected parameters are, you can disable the div, and enable it back when user clicks edit

Ok that input fields i will fix . For the apply change you dont want it to go back to original state??

no it should be visible what the selected parameters are, you can disable the div, and enable it back when user clicks edit

Ok you want it to be visible all the time not only when the user edit??

Ok that input fields i will fix . For the apply change you dont want it to go back to original state??

no it should be visible what the selected parameters are, you can disable the div, and enable it back when user clicks edit

Ok you want it to be visible all the time not only when the user edit??

Sorry can you  explain it clearly I can't get what  you want ?

Warp is a class, it has different options, to choose from, see selectionTools.py, the options are the classmethods

Like the lerp cosine cubic and all?? You want separate fields for them ??

Like the lerp cosine cubic and all?? You want separate fields for them ??

not separate fields, a single one where you can select which method to use

Sorry can you explain it clearly I can't get what you want ?

the dock should be visible always, and a button the edit, only when edit is clicked u can change the inputs, the edit button can become apply change, after changes, when apply change is clicked, change the image and freeze the Dock(but visible, you can disable pointer events in css for this), apply change again becomes -> edit

Like the lerp cosine cubic and all?? You want separate fields for them ??

not separate fields, a single one where you can select which method to

Like the lerp cosine cubic and all?? You want separate fields for them ??

not separate fields, a single one where you can select which method to use

Ok You want to take a value as a input and let user select what operation needs to be performed ??

Sorry can you explain it clearly I can't get what you want ?

the dock should be visible always, and a button the edit, only when edit is clicked u can change the inputs, the edit button can become apply change, after changes, when apply change is clicked, change the image and freeze the Dock(but visible, you can disable pointer events in css for this), apply change again becomes -> edit

Ok let me say this is again in points:

No dropdown for dock
Initially an edit button to allow the editing
Once clicked it changes to apply changes
Apply changes send a array to image
Revert the apply changes button to edit and disable editing

yes

Ok You want to take a value as a input and let user select what operation needs to be performed ??

Its a selection field basically not an input field

made some changes have a look https://neon-daifuku-86d25e.netlify.app/

for warp items I think there should be checkboxes

made some changes have a look https://neon-daifuku-86d25e.netlify.app/

cool
can you make it visually appealing?

for warp items I think there should be checkboxes

anything which works

made some changes have a look https://neon-daifuku-86d25e.netlify.app/

cool can you make it visually appealing?

for warp items I think there should be checkboxes

anything which works

Whats the theme You want??

Gray and white Works or You need something else??

@Divyansh-0 not gray and white, i don't know much about themes, but it should look premium. I would advice you to use Material-UI components which already have styles applied

@Divyansh-0 not gray and white, i don't know much about themes, but it should look premium. I would advise you to use Material-UI components which already have styles applied, it will be easy

I know Material-Ui But i  don't prefer it Limits Ur style . I will fix the alignments and all make it professional colors You can tell m e later

U can track the changes on same link

For dock secondary You want to call the methods in Selectiontools file when the users selects it??

For dock secondary You want to call the methods in Selectiontools file when the users selects it??

no for now just have a placeholder, it will call a function in main script nor selectionTools

Its not related to your project but do you have any idea how can i record user activity on a system using python??

what type of user activity ?

what type of user activity ?

Screen time , no of apps opened


Remove __ind Col from Repaired Data

__ind column that is used internally gets output in the repaired dataset. Looks cluttered and increases the file size unnecessarily. We should remove when done with repairs.
Benefit: Reduces unnecessary clutter.
Cost: one line - just drop the col before output.

TODO: Week of 4/23


[Go] kubens not resolving file paths relative to config file

Hi,
Just switched from bash version to Go version on a Windows environment (Git Bash).
It looks like kubens does not treat relative file paths in .kube/config as relative to the config file, but rather as relative to current working directory:
λ kubens
error: could not list namespaces (is the cluster accessible?): failed to initialize config: invalid configuration: [
unable to read client-cert REDACTED_PATH_CRT.crt for REDACTED_USER due to open REDACTED_PATH_CRT.crt: The system cannot find the file specified.,
unable to read client-key REDACTED_PATH_KEY.key for REDACTED_USER due to open REDACTED_PATH_KEY.key: The system cannot find the file specified.,
unable to read certificate-authority REDACTED_PATH_CRT_2.crt for REDACTED_CLUSTER due to open REDACTED_PATH_CRT_2.crt: The system cannot find the file specified.]

λ cd ~/.kube/
λ kubens
{works as expected}

λ cd ..
error: could not list namespaces (is the cluster accessible?): failed to initialize config: invalid configuration: [
unable to read client-cert REDACTED_PATH_CRT.crt for REDACTED_USER due to open REDACTED_PATH_CRT.crt: The system cannot find the file specified.,
unable to read client-key REDACTED_PATH_KEY.key for REDACTED_USER due to open REDACTED_PATH_KEY.key: The system cannot find the file specified.,
unable to read certificate-authority REDACTED_PATH_CRT_2.crt for REDACTED_CLUSTER due to open REDACTED_PATH_CRT_2.crt: The system cannot find the file specified.]

Current workaround is to use absolute file paths in config file by prefixing all paths with C:\Users\USERNAME\.kube\, but that kinda defeats the purpose of having a .kube directory :D
I did not have a chance to play with Go yet, but if nobody picks this up and I have some time this weekend, I'll have a try at it.
Thanks for the awesome work by the way! 👍

Preliminary investigation indicates the errors occurs when calling clientcmd here:
https://github.com/ahmetb/kubectx/blob/401188fefd4fa3dcd94ee6a8eb1bb1efbff04b25/cmd/kubens/list.go#L61
So perhaps this actually is a bug for https://github.com/kubernetes/client-go/?

Does the same kubeconfig file work with kubectl?
My guess also would be that this is a client-go issue. That said I have never seen file paths in kubeconfig file. So I am not sure what you’re trying to do is valid.

Yes, works fine with kubectl no matter the current working dir. Here are examples from the documentation where you can see how a config can include client certificates and/or CA certificates: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/

Yeah I am suspecting client-go must have a knob for this. But I have not seen it.

Opened an duplicate since experiencing the same issue, but question is why kubectl works in this case ?  Does it use other GO libraries ?

This was reported by couple more folks using mingw/msys2 systems (similar to git bash) in #233.  I'm now trying to figure out if this reproduces outside these shells (natively on windows).
@Skymirrh @eshepelyuk Is it possible you move these kubeconfig file + cert files to %USERPROFILE%.kube\ and run kubens.exe directly from cmd.exe or powershell?

why kubectl works in this case

I'm guessing because kubectl determines which kubeconfig files to parse itself, so it can save where it has read the file from. in our case, we do custom yaml parsing to prevent the node structure in the document, and we need to investigate if client-go has a way of specifying "relative directory" of where the file was read from separately.
I personally don't have any files referenced from my kubeconfig file so I don’t run into this, but I can see many others do have this.

@ahmetb i will try to move an play from within cmd.exe
for now - there's a simple workaround - just to fix manually ~/.kube/confif file and put absolute path there.
So, the issue itself may be closed - if there be some docs explaning how to workaround.

just to fix manually ~/.kube/config file and put absolute path there.

May I ask everyone in this issue: Where do these manifests with relative file paths come from? Is it from a particular cloud-provider, or is it hand-crafted? (The result won't change anything, I’m just curious.)

In my case - those scripts are provided by our infrastructure engineers.

Is it possible you move these kubeconfig file + cert files to %USERPROFILE%.kube\ and run kubens.exe directly from cmd.exe or powershell?

I'm not sure I understand the question, but if the question is "what happens if you run kubens from cmd or Powershell rather than from Git Bash?", then there is no difference.
Git Bash's ~ refers to Windows' %USERPROFILE%, so my .kube and its config/certificates are already stored in the right place. I can use kubectl from Git Bash or Cmd/PowerShell interchangeably, the only advantage is that on Git Bash I can source completion scripts to alleviate resource discovery 😁

in our case, we do custom yaml parsing to prevent the node structure in the document, so we pass client-go library a "parsed YAML"

Ow, I missed that during preliminary investigation. My bad, would have obviously been the primary suspect had I seen it!

Where do these manifests with relative file paths come from? Is it from a particular cloud-provider, or is it hand-crafted? (The result won't change anything, I’m just curious.)

From the Kubernetes documentation itself, as already linked above, which includes calls to kubectl config using relative paths.
You may note this interesting bit from the documentation:

File and path references in a kubeconfig file are relative to the location of the kubeconfig file. File references on the command line are relative to the current working directory. In $HOME/.kube/config, relative paths are stored relatively, and absolute paths are stored absolutely.
-- Source

Yeah the last bit’s certainly valuable. Now we need to go investigate how we can make kubectl use a particular base path when we use the RESTConfigFromKubeConfig method with an in-memory byte array of the kubeconfig file contents.

I have taken a quick look at clientcmd and it looks like BuildConfigFromFlags is a good candidate for loading config files.
There actually is an example provided by Go client:
var kubeconfig *string
if home := homeDir(); home != "" {
	kubeconfig = flag.String("kubeconfig", filepath.Join(home, ".kube", "config"), "(optional) absolute path to the kubeconfig file")
} else {
	kubeconfig = flag.String("kubeconfig", "", "absolute path to the kubeconfig file")
}
flag.Parse()

// use the current context in kubeconfig
config, err := clientcmd.BuildConfigFromFlags("", *kubeconfig)
if err != nil {
	panic(err.Error())
}

Source: https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go

BuildConfigFromFlags is a good candidate for loading config files.

It is ––except it double-reads the file. We already read it in-memory once for detailed YAML doc tree parsing, if we use that it’ll parse the file yet again.
Furthermore we need to be able to work with multiple kubeconfig files, and it's likely we'll implement some of that logic ourselves. I’ll take a closer look later on. Thanks for flagging.

It is ––except it double-reads the file. We already read it in-memory once for detailed YAML doc tree parsing, if we use that it’ll parse the file yet again. (Since we open the file for RW, it might cause issues e.g. on windows.)

Note: I am not an expert at all with clientcmd, however from my quick looks at the documentation and code, I don't think clientcmd is intended to be used for loading the config file from memory. I think it would probably be more fitting to the intended use case if, instead of reading the config file to memory to get a YAML tree, you'd load the config file using clientcmd and then use that as the basis for the rest of your program (RW access is supported by clientcmd configs).

Furthermore we need to be able to work with multiple kubeconfig files, and it's likely we'll implement some of that logic ourselves. I’ll take a closer look later on. Thanks for flagging.

FYI, it seems clientcmd can handle that as well, using EnvVar from PathOptions which are deferred to ConfigAccess via GetLoadingPrecedence() and then used in loaders for the Load() method.

May I ask everyone in this issue: Where do these manifests with relative file paths come from? Is it from a particular cloud-provider, or is it hand-crafted? (The result won't change anything, I’m just curious.)

FWIW, I use direnv to cleanly separate k8s configs between projects:
.envrc
export KUBECONFIG="/home/raphael/.kube/config:kube_config.yaml"

Here, using a relative path for the project config seems prudent: it's automatically correctly scoped and will not break when moving the project folder around. Continuing from there, storing certificates in the project folder, for instance, seems a natural choice, so kube_config.yaml will have relative paths to those as well.


[Bug]Plugin could not be compiled

Describe the Bug
idk, i just started the discord and i just see this error
To Reproduce
idk
Expected Behavior
idk
Screenshots
<!-- If applicable, add
![螢幕擷取畫面 (1660)](https://user-images.githubusercontent.com/99878040/192516049-6c4a05c4-87c5-4b45-a4c2-371c15ec0894.png)

**Discord Version**
Stable

**Additional Context**
pls fix this i really want it working again, my plugins all get this error.

Describe the Bug idk, i just started the discord and i just see this error
To Reproduce idk
Expected Behavior idk

Discord pushed an update that changed almost everything... so most plugins and things are broken. BD devs and themes/plugins devs are working as we speak to fix them

Describe the Bug idk, i just started the discord and i just see this error
To Reproduce idk
Expected Behavior idk

Discord pushed an update that changed almost everything... so most plugins and things are broken. BD devs and themes/plugins devs are working as we speak to fix them

oh bruh, nice discord u just broken the nice addon

Describe the Bug idk, i just started the discord and i just see this error
To Reproduce idk
Expected Behavior idk

Discord pushed an update that changed almost everything... so most plugins and things are broken. BD devs and themes/plugins devs are working as we speak to fix them

so i need wait devs fix the BD?

mainly the plugin devs now

damn


Full example code

Hi there,
I would first like to say thank  you for the tutorial. It has been very helpful. Can I possibly ask that you provide the full code in this example as well. It's quite useful when someone gets stuck at a point, to be able to reference and check for differences in their own work and what should work.
All and all, great writeup

Good point, I will try to at some point

Awesome thanks man :+1:

Added example code in 5b576ab


Workflow imports are not handled

Currently workflow imports of WDL documents are not translated.
A workflow using imports can be found here: https://github.com/broadinstitute/warp/blob/b3f5c898d1b535aaca8dc9e9f4223697a7a0a9a9/pipelines/skylab/smartseq2_single_sample/SmartSeq2SingleSample.wdl#L3

The example above uses select_first, so #59 would have to be fixed first or at the same time


Print out more job configs in cli

Proposed changes

It should print out some configs like following:
15:53:18 INF Suite started. device="Android GoogleApi Emulator" name="Testing Espresso Support - saucy barista" platform=Android suite=storage:250f9dee-7d0b-4024-96e9-a5f37c49bc92 url=https://app.saucelabs.com/tests/5cfa6aa96d1c459baa70e3a091d604b4
Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)

Checklist

[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

Codecov Report

Merging #276 (a718864) into master (84a80d3) will increase coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #276      +/-   ##
==========================================
+ Coverage   34.92%   35.07%   +0.14%
==========================================
  Files          34       34
  Lines        2239     2244       +5
==========================================
+ Hits          782      787       +5
  Misses       1314     1314
  Partials      143      143

Impacted Files
Coverage Δ

internal/saucecloud/cloud.go
61.11% <100.00%> (+0.92%)
:arrow_up:

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 84a80d3...a718864. Read the comment docs.


If field is deprecated, add @deprecated to docblock

That would allow to catch usage of deprecated fields with the deprecation TSLint rule https://palantir.github.io/tslint/rules/deprecation/

been meaning to do this for some time, good idea.
i think i might also add a flag to outright remove deprecated fields


pkg/importer/dummy: staticcheck

Closing this, see my comment here:

https://github.com/perkeep/perkeep/pull/1405#issuecomment-894727096


fix: save memory

Hi, thanks for making this script. I was looking at the code, and noticed that exe and exe_hex aren't being freed, so the script hogs a lot of memory while the game is running.
Before:

Fixed:

I used memory-profiler to do the following analysis:
Reading the exe takes up the expected 78.9MB, and the hex version is twice as big at 157.7MB.
    25     21.4 MiB      0.0 MiB           1       exe_name = Path("eldenring.exe")
    26    100.3 MiB      0.0 MiB           2       with open(exe_name, "rb") as f:
    27    100.3 MiB     78.9 MiB           1           exe = f.read()
    28    258.0 MiB    157.7 MiB           1       exe_hex = exe.hex()

The memory stays in use until the end of the script:
    81    258.1 MiB      0.0 MiB           1       os.rmdir(patched_exe_dir)

I made two changes:

Create exe_hex directly to avoid allocating exe.

    25     21.3 MiB      0.0 MiB           1       exe_name = Path("eldenring.exe")
    26    179.0 MiB      0.0 MiB           2       with open(exe_name, "rb") as f:
    27    179.0 MiB    157.7 MiB           1           exe_hex = f.read().hex()

Free exe_hex once it's no longer needed.

    71    179.0 MiB      0.0 MiB           2       with open(patched_exe_dir / exe_name, "wb") as f:
    72    179.0 MiB      0.0 MiB           1           f.write(bytes.fromhex(exe_hex))
    73
    74     21.3 MiB   -157.7 MiB           1       del exe_hex

The alternative would be to put all the exe stuff inside a function, and exe_hex would get cleaned up when it goes out of scope.

Hey, thanks for the fix! Definitely makes sense to save some memory. I'll merge it right in :)


feat: Add in-place repair mode

Fix #190
This PR adds an in-place repair mode, which writes output directly to the source files. It's literally in-place; if Sorald processes multiple rules the source files will be written to multiple times.
Can be activated by passing --fileOutputStrategy IN_PLACE to the repair command.

LGTM! (Plus I would like to use it now, so if no one objects I'll merge this ;-) )

Thanks for the feature @slarse !

@nharrand You're welcome! I also really needed this as it just makes it so much more convenient to try out Sorald on real projects. In-place repair and the git diff, shows me exactly what changed with minimal effort.

Thanks @nharrand and @slarse.
Very useful feature.


Creating docker containers inside of Microsoft-hosted build agents

Url to article: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
This is a general question or issue about the capabilities of the Microsoft-hosted build machines in Azure DevOps. I have a build scenario where I need to create a docker container using a specific image and then run various commands on the host that do things inside of the container. I would really like to use the Microsoft-hosted build agents, since that's much cleaner than maintaining our own build agents, keeping them compliant, etc.
I'm using YAML to provide the build steps, and I know there are options to specify a container image to use on the build agent, but unfortunately that will not work for us since we need to run our build scripts on the host. When I attempt to create the docker container in the build, I get the error below. Is there any way to enable the Hypervisor on the build agent? Or am I just doing something wrong?
##[debug]STDERR: DockerDo : docker.exe: Error response from daemon: hcsshim::CreateComputeSystem
##[debug]STDERR: eb92fa59bc0583ec6b8ddd2f557bf21eea148ad5cef950040f774e1603913664: No hypervisor is present on this system.
##[debug][Event Detail: Cannot start Hyper-V Container 'eb92fa59bc0583ec6b8ddd2f557bf21eea148ad5cef950040f774e1603913664' since
##[debug]the hypervisor is not running in the host. Provider: 17103e3f-3c6e-4677-bb17-3b267eb5be57 EventID: 12001]

User error. The cmdlet I was calling, which was creating the docker container, was passing the --isolation hyperv parameter. Removing that fixed the issue.


Testing Release build?

After the current fiasco, I realized that we should probably be testing the Release build (as opposed to just the Debug build) before uploading a new version to the Play Store, lol. The main problem is that testing that build requires the APK to be signed, and the inbuilt "sign APK" UI option in Android Studio just hardcodes the key passwords etc into the gradle file, clearly not an option for an open-source app.
I found several options mentioned at https://stackoverflow.com/questions/18328730/how-to-create-a-release-signed-apk-file-using-gradle and am wondering which is the best one to use (since all of them would require some form of gradle file modification). I am leaning towards Gal Bracha's suggestion for ease of use, but I don't see how it allows other people without the key to test the build, as he mentioned.

Aside: Do you really need a signed "Release" build, or just a development build of the code and settings that would end up in a signed build?

I (personally) got around the issue by using environment variables on my machine - in my build.gradle I have
def env = System.getenv()
ext.keystore = env.APP_KEYSTORE ?: 'unsigned'
ext.password = env.APP_KEYSTORE_PASSWORD ?: 'unsigned'

and then later on
signingConfigs {
    release {
        storeFile file(keystore)
        keyAlias 'my_key_alias'
        storePassword password
        keyPassword password
    }
}

And that way the passwords are not embedded in my git repo, but I also have the convenience of not typing a huge command line when I want to release - I just set the "APP_KEYSTORE" and "APP_KEYSTORE_PASSWORD" environment variables on my build server.

Yes, environment variables is how I do for my apps, it works well :-)

Thanks guys! Do those methods allow others to test the Release build as well, though? I would still need to send the keystore to whomever needs to test the Release build, I figure?

@misaochan You don't need (and should probably not :-) ) send the keys to everyone.
Everyone can sign using their own keys, using the exact same code and Gradle files.

Oh, so the "signed" release doesn't actually have to be signed with the exact key that we use for the Play Store! (as long as we don't intend to upload to it on that build)
Cool, thanks @nicolas-raoul . I had no idea, haha.

Yes, for instance the F-Droid maintainer signs all apps (including Commons) with his own key (we never gave our keystore/keys to him), and people can use the app normally, it behaves normally regardless of who signed it. The signature is only checked by Google Play (when uploading the APK).


feat: creatable ArrayWidget without vocabulary

If you want to have a creatable select without a vocabulary you now could have it

@giuliaghisini #2942 is merged! Could you please check if the patch is already required or to rebase it with the current refactoring? Thanks!

Sara Bianchi your emails are not known to GitHub and thus it is impossible to know if you have signed the Plone Contributor Agreement, which is required to merge this pull request.
Learn about the Plone Contributor Agreement: http://docs.plone.org/develop/coredev/docs/contributors_agreement_explained.html How to add more emails to your GitHub account: https://help.github.com/articles/adding-an-email-address-to-your-github-account/

@sneridagh @tiberiuichim could we merge it? we need it as soon as possible. I've verified with last merge but we need this. We also have updated this branch with master

@SaraBianchi signed the contributor agreement already, and she has access to the repo.
Merging.


Modify /v1/list-applications-in-generic-representation logic to utilize the GENERIC_RESPONSE_PROFILE instances

Utilize the GenericRepresentation.js module in server/applicationPattern/applicationPattern/services and change the current business logic in the /v1/list-applications-in-generic-representation service to generate ResponseValueList and ConsequentActionList from the GENERIC_RESPONSE_PROFILE and ACTION_PROFILE respectively.

Issue merged as a part of the PR https://github.com/openBackhaul/RegistryOffice/pull/315. Hence closing it.


feat!: Add Pulsar-Cooperative Template Files & Update existing files

This PR adds all template files from .github to this repository.
Testing how we like the template data added to things such as the readme, but more importantly allows us to test how our workflows function, and that they work as expected.

Looks like all the tests are failing here, but not due to our CI, but instead due to issues with this repos testing.
So I'll go ahead and merge this one so we can go forward and test the workflows.


Track code coverage

[ ] Enable code coverage on sample projects
[ ] Track coverage %

Oh—we'll probably (1) end up with lots of muddled coverage from the sample projects individually; (2) only have coverage from one of them; or (3) we'll have to undo the build-matrix parallelization to be able to combine the coverage from the various sample projects.


python requests and HTTPRequest libraries fails when used with moto, mock_s3

Reporting Bugs
python requests and HTTPRequest libraries fails when used with moto, mock_s3.

when used "@mock_s3" directive and when I run the code, the existing code to fetch data from URL using python requests library is failing with the error - "TypeError: cannot unpack non-iterable CallbackResponse object"
when I comment this "@mock_s3" directive, then everything is working as normal and expected.

I am using the moto with version - 1.3.16 and I installed it using "pip install moto" in windows.

Hi @jagadish432, I believe this was fixed with #3466. I can't reproduce this anymore using moto >= 1.3.16.dev122.
Are you able to upgrade to that version and verify that it fixes your problem?

We seem to still be hitting this (using mock_ecr, here -- although the code in the PR is mostly irrelevant to this issue), even after upgrading to that version. Thanks!

Hi @arekom, did some debugging with the test cases in your repo (on a Linux machine).
Running make test with the latest moto installed gives me these errors:
FAILED cloudknot/tests/test_config.py::test_is_valid_stack - botocore.exceptions.ClientError: An error occurred (EntityAlreadyExists) when calling the DeleteStack operation: Role with name test-valid-stack-ecs-instance-role already exists.
FAILED cloudknot/tests/test_config.py::test_prune_stacks - botocore.exceptions.ClientError: [.. same ..]
FAILED cloudknot/tests/test_knot.py::test_knot - botocore.exceptions.ClientError: [.. same ..]
FAILED cloudknot/tests/test_pars.py::test_pars_with_default_vpc - botocore.exceptions.ClientError: [.. same ..]
FAILED cloudknot/tests/test_pars.py::test_pars_with_new_vpc - botocore.exceptions.ClientError: [.. same ..]

Looks like this is due to the fact that moto does not support deletion of IAM InstanceProfiles/Roles. I've raised #3583 to reflect this.
Your tests do succeed for me after monkeypatching support for that in Moto.
Were you getting the same error, TypeError: cannot unpack non-iterable CallbackResponse object? On all tests, or only specific ones?

Hi @arekom, did some debugging with the test cases in your repo (on a Linux machine).
Running make test with the latest moto installed gives me these errors:
FAILED cloudknot/tests/test_config.py::test_is_valid_stack - botocore.exceptions.ClientError: An error occurred (EntityAlreadyExists) when calling the DeleteStack operation: Role with name test-valid-stack-ecs-instance-role already exists.
FAILED cloudknot/tests/test_config.py::test_prune_stacks - botocore.exceptions.ClientError: [.. same ..]
FAILED cloudknot/tests/test_knot.py::test_knot - botocore.exceptions.ClientError: [.. same ..]
FAILED cloudknot/tests/test_pars.py::test_pars_with_default_vpc - botocore.exceptions.ClientError: [.. same ..]
FAILED cloudknot/tests/test_pars.py::test_pars_with_new_vpc - botocore.exceptions.ClientError: [.. same ..]

Looks like this is due to the fact that moto does not support deletion of IAM InstanceProfiles/Roles. I've raised #3583 to reflect this.
Your tests do succeed for me after monkeypatching support for that in Moto.
Were you getting the same error, TypeError: cannot unpack non-iterable CallbackResponse object? On all tests, or only specific ones?

Hi @bblommers. Thanks for looking into this!
Yes - I can confirm that if I pin responses==0.12.0 and upgrade to moto==1.3.16 I see just the errors you mentioned (and not the TypeError: cannot unpack non-iterable CallbackResponse object)
However, I think that this is a separate issue from the one raised originally. When I then upgrade to responses==0.12.1 I see the errors you mentioned, but also the following:
FAILED cloudknot/tests/test_docker_image.py::test_DockerImage - docker.errors.DockerException: Error while fetching server API version: cannot unpack non-iterable CallbackResponse object
FAILED cloudknot/tests/test_knot.py::test_knot - TypeError: cannot unpack non-iterable CallbackResponse object

So, I think there might actually be two separate issues here (?)

Hi @bblommers. Thanks for looking into this!
Yes - I can confirm that if I pin responses==0.12.0 and upgrade to moto==1.3.16 I see just the errors you mentioned (and not the TypeError: cannot unpack non-iterable CallbackResponse object)
However, I think that this is a separate issue from the one raised originally. When I then upgrade to responses==0.12.1 I see the errors you mentioned, but also the following:
FAILED cloudknot/tests/test_docker_image.py::test_DockerImage - docker.errors.DockerException: Error while fetching server API version: cannot unpack non-iterable CallbackResponse object
FAILED cloudknot/tests/test_knot.py::test_knot - TypeError: cannot unpack non-iterable CallbackResponse object

So, I think there might actually be two separate issues here (?)

Do you have Docker running? I.e., does docker info pass?
The first exception looks like a bug in moto where it doesn't handle the failure if it can't communicate with the docker socket.
On the second exception:

If I [..] upgrade to moto==1.3.16
Just to make it more explicit: our version naming is slightly off. 1.3.16.dev122 is a later release then 1.3.16. So 1.3.16 would give this exception with the latest responses, but 1.3.16.dev122 contains the fix for that.

Do you have Docker running? I.e., does docker info pass?
The first exception looks like a bug in moto where it doesn't handle the failure if it can't communicate with the docker socket.
On the second exception:

If I [..] upgrade to moto==1.3.16
Just to make it more explicit: our version naming is slightly off. 1.3.16.dev122 is a later release then 1.3.16. So 1.3.16 would give this exception with the latest responses, but 1.3.16.dev122 contains the fix for that.

OK - when I upgrade to 1.3.16.dev122 I see only the same errors that you see, so I think that:

It looks like the issue in the OP here is resolved in 1.3.16.dev122; and
Once #3583 is resolved, we should be all set on our end.

So, I think that you can go ahead and close this issue, and then we can follow up on #3583 once that's resolved.
Thanks so much for your work on this!

OK - when I upgrade to 1.3.16.dev122 I see only the same errors that you see, so I think that:

It looks like the issue in the OP here is resolved in 1.3.16.dev122; and
Once #3583 is resolved, we should be all set on our end.

So, I think that you can go ahead and close this issue, and then we can follow up on #3583 once that's resolved.
Thanks so much for your work on this!


ORC-1012: Support specifying columns in orc-scan

What changes were proposed in this pull request?

The PR adds an option to support specifying columns to be read in the orc-scan tool.
Why are the changes needed?

Currently the orc-scan tool will scan all columns. I find it useful to specifying columns when profiling read performance on specified data types.
How was this patch tested?

Manually tested with the new option.
Added tests in tools/test/TestFileScan.cc.

It's great. Thank you, @stiga-huang . BTW, do we support only ordinal column numbers?
Could you give explain how to select columns from complex types like nested columns like struct? It would be great if we can have a test coverage for complex types, too.
cc @wgtmac

The RowReaderOptions support column pruning by fieldName (include(list)), fieldId (include(list)), and columnId (includeTypes(list)). The last one supports pruning nested column in the struct. I think that is what @dongjoon-hyun has mentioned. Support nested pruning requires user to specify the exact columnId which is not easy if the schema is rather complex.

Currently the other tools (orc-contents and orc-memory) that support specifying columns use fieldId instead of columnId. So only top-level field ids are supported. The new option in orc-scan has the same meaning as these tools. I'd suggest adding another option, e.g. --columnIds=1,2,3, for specifying columnIds. Maybe in a separate PR. Do you think it's ok?
BTW, I slightly modify the test to include a top-level STRUCT column (fieldId=9 in examples/TestOrcFile.testSeek.orc).

Currently the other tools (orc-contents and orc-memory) that support specifying columns use fieldId instead of columnId. So only top-level field ids are supported. The new option in orc-scan has the same meaning as these tools. I'd suggest adding another option, e.g. --columnIds=1,2,3, for specifying columnIds. Maybe in a separate PR. Do you think it's ok?
BTW, I slightly modify the test to include a top-level STRUCT column (fieldId=9 in examples/TestOrcFile.testSeek.orc).

I am OK with the current PR (i.e. column selection by the field ids). The orc-scan tool is usually used to verify the integrity of an ORC file. We can add more complex column selection option to it later.

Since this is tools-only change, I backported this to branch-1.7.


Wrong repo url provided, caused installation failure

File: engine/install/rhel.md
sudo yum install -y yum-utils
 sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/rhel/docker-ce.repo

Should be
 sudo yum install -y yum-utils
 sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

Yes, I don't think this is an issue in the docs; let me close this ticket, but feel free to continue the conversation


added example query

Trying to add an example query into the openapi spec.   This seems like it ought to work, but it does not.   @uhbrar , @YaphetKG do you have any insights?


syncplay: Update to version 1.7.0 and fix autoupdate

[X] I have read the Contributing Guide.

/verify


Error when executing

Thank you for creating this tool! I was so waiting for a screen brightness controller on Wayland!
However, I get an error during executing:
~ ./brightness +10
error: Found argument 'adjust' which wasn't expected, or isn't valid in this context

USAGE:
    gnome-randr [SUBCOMMAND]

For more information try --help
error: Found argument 'adjust' which wasn't expected, or isn't valid in this context

USAGE:
    gnome-randr [SUBCOMMAND]

For more information try --help
error: Found argument 'adjust' which wasn't expected, or isn't valid in this context

USAGE:
    gnome-randr [SUBCOMMAND]

For more information try --help

I never expected anyone to use this other than me, I created this when I moved from xorg to wayland and my previous script stopped working, I'll take a look tomorrow.

I have not been able to reproduce this behavior on my system, can you provide me with your version of gnome-randr?

Same version I'm using, but I have an idea of what it could be and I need to do some tests

That's great! Thanks again for looking into it! 🙂

ok I have a possible fix, I didn't remember this earlier because I only had to tinker with it once to get it to work.
gnome-randr doesn't support this by default, it's in a separate experimental branch for this issue
(my fault for not documenting this in the README)
Here is how to fix:
git clone https://github.com/maxwellainatchi/gnome-randr-rust.git
cd gnome-randr-rust/
git fetch
git checkout adjust-brightness
cargo install .
cargo build

sudo apt install libdbus-1-dev pkg-config # NOTE run this if cargo build fails

you can quickly test by:
cd target/debug/
./gnome-randr adjust HDMI-1 --brightness 0.5
# NOTE run ./gnome-randr without any argument to get the list of your displays (HDMI-1 for me)

after that, just copy it to somewhere in your PATH and brightness-control-wayland should be working:
sudo cp gnome-randr /usr/local/bin/

Thank you for the instructions! However, I still can't get it to work. And I realize it's partly my fault too, as I didn't give enough details. I'm using openSUSE Tumbleweed with KDE Plasma 5.27.2
./gnome-randr adjust HDMI-1 --brightness 0.5
The name org.gnome.Mutter.DisplayConfig was not provided by any .service files
But it looks like it's only looking for Mutter, so I'm guessing it's not going to work with KWin? :(


module compiled against API version 0xe but this version of numpy is 0xd

>>> import Pyfhel

Traceback (most recent call last):
  File "__init__.pxd", line 882, in numpy.import_array
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/w/lib/anaconda3/lib/python3.8/site-packages/Pyfhel/__init__.py", line 1, in <module>
    from .Pyfhel import Pyfhel
  File "Pyfhel/Pyfhel.pyx", line 28, in init Pyfhel.Pyfhel
  File "__init__.pxd", line 884, in numpy.import_array
ImportError: numpy.core.multiarray failed to import

I have the same problem.

Closing! version 3 of Pyfhel should now require this automatically.

Thank you.


Redirect stdout and stderr in network mode.

This PR redirects stdout / stderr to io_handle->out() / io_handle->err() (see here) for transmitting the standard stream outputs to client in the network mode. It allows quickstep_client to use COPY ... TO stdout ... command to retrieve result table in CSV format.

LGTM!


Change CI workflow for docker image publishing

re-use artifact generated in H2 job

@mosefer I think Cache local Maven repository step can be now removed