DataFrame::delete_row seems to be broken

DataFrame::delete_row behaves in unexpected ways; see the nils in the example below.
I am currently using the daru gem, because gsl-nmatrix fails to get installed on my machine for some reason. So, I'm sorry if this is already fixed in the most recent development version.
[30] pry(main)> df = Daru::DataFrame.new([(1..10).to_a, (1..10).to_a, (1..10).to_a],
                                                                    order: [:a, :b, :c])
=>
#<Daru::DataFrame:70169385618440 @name = 331f90f7-5b92-4d7c-92c3-1fb572917d49 @size = 10>
                    a          b          c
         0          1          1          1
         1          2          2          2
         2          3          3          3
         3          4          4          4
         4          5          5          5
         5          6          6          6
         6          7          7          7
         7          8          8          8
         8          9          9          9
         9         10         10         10

[31] pry(main)> df.delete_row(0)
=> 9
[32] pry(main)> df
=>
#<Daru::DataFrame:70169385618440 @name = 331f90f7-5b92-4d7c-92c3-1fb572917d49 @size = 9>
                    a          b          c
         1          3          3          3
         2          4          4          4
         3          5          5          5
         4          6          6          6
         5          7          7          7
         6          8          8          8
         7          9          9          9
         8         10         10         10
         9        nil        nil        nil

[33] pry(main)> df.delete_row(2)
=> 8
[34] pry(main)> df
=>
#<Daru::DataFrame:70169385618440 @name = 331f90f7-5b92-4d7c-92c3-1fb572917d49 @size = 8>
                    a          b          c
         1          3          3          3
         3          6          6          6
         4          7          7          7
         5          8          8          8
         6          9          9          9
         7         10         10         10
         8        nil        nil        nil
         9        nil        nil        nil

Will look into this.

This is working in the latest development build:

[2] pry(main)> df = Daru::DataFrame.new([(1..10).to_a, (1..10).to_a, (1..10).to_a],
[2] pry(main)* order: [:a, :b, :c])
=>
#<Daru::DataFrame:80715600 @name = b4c26c4a-843a-4fe6-b9da-7785c946a549 @size = 10>
                    a          b          c
         0          1          1          1
         1          2          2          2
         2          3          3          3
         3          4          4          4
         4          5          5          5
         5          6          6          6
         6          7          7          7
         7          8          8          8
         8          9          9          9
         9         10         10         10

[3] pry(main)> df.delete_row 0
=> 9
[4] pry(main)> df
=>
#<Daru::DataFrame:80715600 @name = b4c26c4a-843a-4fe6-b9da-7785c946a549 @size = 9>
                    a          b          c
         1          2          2          2
         2          3          3          3
         3          4          4          4
         4          5          5          5
         5          6          6          6
         6          7          7          7
         7          8          8          8
         8          9          9          9
         9         10         10         10

[5] pry(main)> df.delete_row 2
=> 8
[6] pry(main)> df
=>
#<Daru::DataFrame:80715600 @name = b4c26c4a-843a-4fe6-b9da-7785c946a549 @size = 8>
                    a          b          c
         1          2          2          2
         3          4          4          4
         4          5          5          5
         5          6          6          6
         6          7          7          7
         7          8          8          8
         8          9          9          9
         9         10         10         10

Also, daru no longer depends on gsl-nmatrix (uses rb-gsl), so you can install the latest gem from the tseries branch in v0dro/daru.

By the way, could you check the version of daru that you're using? It should be 0.1.0. I vaguely remember fixing this before the 0.1 release.

Both, the stable daru gem and the tseries development branch display "0.1.0" when I do Daru::VERSION (if that's what you are asking).
Also, you are right, the issue is non existent in the most recent development version of daru. Sorry about that.


Issue #10 - namedtuple

1/ Snicar feeder and the two solvers take as input the same namedtuple defined in the driver
2/ I tried to modify the original code as little as possible so the namedtuple are unpacked at the beginning of the scripts, keeping local variables in the solvers, but I can change and use inputs.variable everywhere also
2/ I think it's better to define R_sfc in the driver for all wvl so that if the user wants it to vary across wvl no need to do into the feeder script (however then I am not sure how to deal with the number of wvl, maybe it can be defined in the driver too? I guess the user should know the spectral resolution of the files used anyway?)
hope that helps!

OK, nice one this is a useful refinement, thanks a lot for working on it!
Now merged into development branch SNICAR_AD


Rework API interaction with the auraxium wrapper

https://github.com/leonhard-s/auraxium/

This would allow to easily track events in realtime (websocket) for example online events


Handling different OSes

It seems like github does not provide all python versions on all OSes. For example, currently the version-manifest only has 3.9.15 for linux.
As a result, I'm having trouble mixing latest-python-versions with an OS matrix. Is there a known solution to this? Here is the relevant section of my workflow:
  get-python-versions:
    runs-on: ubuntu-latest
    outputs:
      python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }}
    steps:
    - uses<EMAIL_ADDRESS>      id: get-python-versions-action
      with:
        min-version: 3.9
        include-prereleases: true

  test:
    needs: [lint, get-python-versions]
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}
        os: ["ubuntu-latest", "macos-latest", "windows-latest"]
    steps:
    - uses: actions/checkout@v3

    - name: Set up Python ${{ matrix.python-version }}
      uses<EMAIL_ADDRESS>      with:
        python-version: ${{ matrix.python-version }}

Hmm I see :+1: I guess we could rewrite the action to produce a latest version per OS. Would you be interested in opening a PR for that?

I'd be happy to give it a try, although I'm not very familiar with github actions yet. Can you suggest what format would be best, and how it could be accessed in the actions yaml?
Another option I thought of is to simply drop the patch version (returning 3.9 or 3.9.* instead of 3.9.15). Do you think that's worth exploring?

There's a few reasons why including the patch version is a good idea, in general. When you build a cache key using the minor version you might build, e.g., a venv on one patch version of Python then see problems when the github runner upgrades to another (and the cache isn't invalidated). I'm sure there are other examples.
This page describes job outputs pretty well: https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs. Right now we output a latest-python-versions, but I guess we could also add another output called latest-python-versions-per-os that's structured {"windows": "3.11.0", "linux": "3.11.0", "macos": "3.11.0"} (or whatever makes sense based on the source data).
Does that make sense, or did you have something else in mind? We could also have changed the existing output, but I'm not sure there's a good reason to break backwards compatibility here 🙂

Thanks for the explanation, it makes sense.
It looks like this is more complicated than just using "windows" or  "linux" as keys however, as even within a given platform the versions available are not always consistent. For example, 3.6.15 is available on ubuntu-20 but not ubuntu-22.
I think the approach that makes most sense is to return something like this:
{'ubuntu-22.04': ['3.11.0', '3.10.8', '3.9.15'],
 'ubuntu-20.04': ['3.11.0', '3.10.8', '3.9.15'],
 'macos-12': ['3.11.0', '3.10.8', '3.9.14']}

But I haven't yet found a way to map from the platform/version/arch labels in the version manifest and the runner image labels. Are you aware of one?
For posterity, here are the current latest non EOL versions for each OS:
{'darwin-x64': ['3.12.0-alpha.2',
                '3.11.0',
                '3.10.8',
                '3.9.14',
                '3.8.14',
                '3.7.15'],
 'linux-18.04-x64': ['3.12.0-alpha.2',
                     '3.11.0',
                     '3.10.8',
                     '3.9.15',
                     '3.8.14',
                     '3.7.15'],
 'linux-20.04-x64': ['3.12.0-alpha.2',
                     '3.11.0',
                     '3.10.8',
                     '3.9.15',
                     '3.8.14',
                     '3.7.15'],
 'linux-22.04-x64': ['3.12.0-alpha.2',
                     '3.11.0',
                     '3.10.8',
                     '3.9.15',
                     '3.8.14',
                     '3.7.15'],
 'win32-x64': ['3.12.0-alpha.2',
               '3.11.0',
               '3.10.8',
               '3.9.13',
               '3.8.10',
               '3.7.9'],
 'win32-x86': ['3.12.0-alpha.2',
               '3.11.0',
               '3.10.8',
               '3.9.13',
               '3.8.10',
               '3.7.9'],
 'linux-16.04-x64': ['3.10.0-beta.3', '3.9.5', '3.8.9', '3.7.10']}

Right, arch also matters :face_with_head_bandage: I guess that will make it hard to generalize on runner OS and version actually.
There's no arm yet, but I think it's on Github's roadmap now that Azure supports it


standard_init_linux.go:178: exec user process caused "exec format error"

I installed docker using
sudo apt install docker.io
and installed juice-shop
while running it showed some permission error, so I added my user to docker.
Now while running I get the following error;
standard_init_linux.go:178: exec user process caused "exec format error"
My machine is ubuntu 16

Are you on latest or snapshot image? Could you try the latest tagged image (7.2.1)?


Merge upstream

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 12 committers have signed the CLA.:white_check_mark: quodlibetor:x: j-bennet:x: bitkeen:x: kevinmarsh:x: laixintao:x: janbrunrasmussen:x: pasenor:x: eumiro:x: amjith:x: ruohola:x: ERYoung11:x: psacawaYou have signed the CLA already but the status is still pending? Let us recheck it.

upstream switched to github actions, so I'm going to see if I can get that working before I merge this. Switching to draft for now.


Vim9: cannot use / Ex command in :def function

Describe the bug
In Vim9 script, we cannot use a / Ex command in a :def function.
To Reproduce
Run this shell command:
vim -Nu NONE -S <(cat <<'EOF'
    vim9script
    def Func()
        append('$', 'pat')
        :/pat/
    enddef
    Func()
EOF
)

E476 is raised:
E476: Invalid command:

Expected behavior
No error is raised.  The cursor is moved on the next line where pat matches.
Environment

Vim version: 8.2 Included patches: 1-1490
OS: Ubuntu 16.04.7 LTS
Terminal: XTerm(358)

Additional context
It's a regression introduced in 8.2.1156.

The issue disappears in a legacy function:
vim9script
fu Func()
    call append('$', 'pat')
    :/pat/
endfu
Func()

The issue also disappears at the script level:
vim9script
append('$', 'pat')
:/pat/

If for some reason it can't work in a :def function, then – to be consistent – I think it should also fail at the script level.

As a workaround, search() can be invoked:
vim9script
append('$', 'pat')
search('pat')

The code where I found this looked like this:
:sil! keepj keepp 1;/^# \%(Changes\|Untracked files\)/

I had a look at the patch 8.2.1156, and noticed this line in a test:
call CheckDefFailure(["CallMe ('yes')"], 'E476:')

I think its purpose is to make sure that white space is disallowed between a function name and the open parenthesis in a function call.
This reminded me that this rule was enforced in a :def function, but not at the script level (issue #6496).  Similarly, no error is raised for missing white space after a comma in a dictionary in a :def function (issue #6672).


TypeError [ERR_INVALID_ARG_TYPE]

When starting the new project after installing and configuring meteor-desktop it displays the error (Note: This only happens in Meteor version 2.3 and above "Node 14", in versions with Node 12 and 10 the problem does not occur):
[meteor-desktop] calculated .desktop hash version is 8704ea9ec60f81720ae71a4fbc0216d38581a0aa_dev
internal/fs/utils.js:793
  throw new ERR_INVALID_ARG_TYPE(
  ^

TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
    at Object.writeFileSync (fs.js:1517:5)
    at Module.<anonymous> (/Users/tiagohintz/.meteor/packages/meteor-tool/.<IP_ADDRESS>s8cqvg.rum1k++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/tools/fs/tools/fs/files.ts:1641:23)
    at packages/meteor-desktop-bundler/bundler.js:869:48
    at runAsync (/Users/tiagohintz/node_modules/@babel/core/lib/transformation/index.js:40:10)
    at /Users/tiagohintz/node_modules/@babel/core/lib/transform.js:34:34
    at processTicksAndRejections (internal/process/task_queues.js:77:11) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Project details:
meteor: 2.3.6 (Blaze)
meteor-desktop: 2.2.5
electron: 6.1.7
electron-builder: 21.2.0
jquery: 3.5.1
OS: MacOS - Darwin <IP_ADDRESS> 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
Tanks

Also tested with Meteor version 2.4 (Blaze) and the same error occurs.

Any one solved it yet?

Same issue

I've tracked it down to this code in https://github.com/wojtkowiak/meteor-desktop/blob/01fb583d25b7b0f82308677389bce77cb5c8ce79/plugins/bundler/bundler.js#L869

In development mode, uglifiedCode will be undefined, which causes an error since fs.writeFileSync introduced type checking of the data parameter in Node 14.
My work-around is to copy the /plugins/bundler folder into my project's /packages folder (so that Meteor uses my local copy of the package), then change that line to uglifiedCode || code.

Also, all these warnings are produced by meteor-desktop's dependency on<EMAIL_ADDRESS> To remove these warnings this should be updated to >= 0.8.4 ref https://github.com/shelljs/shelljs/issues/991#issuecomment-619316520
(node:20512) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:20512) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
...

I've included your fixes in a pull request to the Meteor-Community org's fork of this package since this is no longer maintained https://github.com/Meteor-Community-Packages/meteor-desktop/pull/7


Type assertion too permissive with string literal type

TypeScript Version:  3.9.2

Search Terms: type assertion, string literal type
Code
const o = {
    prop: ('a' as const) as 'b' // No error ?!
};

Expected behavior: Compile error like "Conversion of type "'a'" to type "'b'" may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first." (2352)
Actual behavior: No compile error
Playground Link: https://www.typescriptlang.org/play/index.html?ssl=2&ssc=5&pln=2&pc=32#code/MYewdgzgLgBCMF4YG8BQMMwA4CcRYC4YAKAcgENSZyIZRIoBKa20gIyoHpOYA5eAKY48OGAH4AhKgC+AblRA

Duplicate of #37056.

The issues mentioned as being duplicated are closed. Too bad. It's an unexpected behavior.
Yes, it's a "tricky" usage but intuitive and useful.
Example: when we define our Angular routing modules, we like plain values (like in a config/json file):

{ path: 'home' } ✔
{ path: paths.home } ❌

But this path is used elsewhere (in a sidebar for instance). I though this duplication can be securised with type assertions :

{ path: 'home' as const as typeof paths.home } 👌


How to use tf.keras.texts_to_sequences in tf.dataset

I have a text classification task whose feeding files are lines of text. Before, I use keras and generator to handle with massive dataset.
Now I want to use tf.dataset which can feed the data in a parallel way that is important to me as the bottleneck now is IO and text transformation.
I tried to implement my code below, like a protype, but is does not work, as it will not operate the get_keras_data function in parallel way.
I suppose that the core problem is that API such as texts_to_sequences pad_sequences can not be used for the tensor, while they just use for the numpy arrary.
So is there any other approaches to meet my expectation?
def get_keras_data(lines):
    random.shuffle(lines)
    infos_feat, infos_feat_sub, infos_label = [], [], []
    for line in lines:
        line = line.decode('UTF-8')
        label = line.strip().split(' ')[0].replace('__label__','')
        label_ix = app_id[label]
        feat = ' '.join(line.strip().split(' ')[1:])

        infos_feat.append(feat)
        infos_label.append(label_ix)
        infos_feat_sub.append(feat.replace('.',' '))

    content_ids_list = tok.texts_to_sequences(infos_feat)
    content_pad_array = tf.keras.preprocessing.sequence.pad_sequences(content_ids_list, maxlen=maxlen, padding='post', truncating='post',value=0)
    content_ids_list = tok_sub.texts_to_sequences(infos_feat_sub)
    content_pad_array_sub = tf.keras.preprocessing.sequence.pad_sequences(content_ids_list, maxlen=max_len_sub, padding='post', truncating='post',value=0)

    trunk = ([content_pad_array, content_pad_array_sub], \
            tf.keras.utils.to_categorical(np.array(infos_label), num_classes = 998, dtype='int' ))
    return trunk

def generator(path, batch_size):
    file_list = glob.glob("{}/part-*.csv".format(path))
    dataset = tf.data.TextLineDataset(file_list, num_parallel_reads=32 )
    for lines in dataset.shuffle(buffer_size=buffer_size).repeat().batch(batch_size).prefetch(20).as_numpy_iterator():
        trunk = get_keras_data(lines)
        yield trunk

@yananchen1989,
This question is better asked on StackOverflow since it is not a TensorFlow bug or feature request. There is also a larger community that reads questions there. Thanks!


Add Tulip Creative Computer desktop build

Using for prototyping CLAMS C3 AMY API opcodes.

Closing - it's already there!!


Correct ineffassign warnings

https://goreportcard.com/report/github.com/uber/ringpop-go

https://travis-ci.org/uber/ringpop-go/jobs/181822850 Go 1.5 fails with:
# golang.org/x/tools/go/gcimporter15

../../../golang.org/x/tools/go/gcimporter15/bexport.go:557: undefined: constant.ToFloat

../../../golang.org/x/tools/go/gcimporter15/gcimporter.go:396: pkg.SetName undefined (type *types.Package has no field or method SetName)

make: *** [dev_deps] Error 2

We removed go 1.5. Please rebase on the dev branch and edit your PR to change the base to dev.

But thanks for looking into this! Would be awesome if you could sign or CLA: https://cla-assistant.io/uber/ringpop-go?pullRequest=193.
Thanks!

@mennopruijssers I signed the CLA and rebased PR


Tot on crates.io status

I'm working on a config format with a parser in Rust called Tot.
I noticed that you currently have one of your repos, tot, already published on crates.io but it's labeled as archived (and also not a library according to docs.rs).
Would you be willing to transfer the package to me so that I can publish my parser under the name "tot"?

Indeed, please contact crates.io to claim it

Thanks!


Use optically correct media radius size

This is mostly visible with posts with 2 or more images, since they stretch all the way to the right edge of the post card. This PR makes is so that the gap between the media and the card's border is equal all the way (in the images, you can see the before has a larger gap in the corner vs the sides).
Before/After:

Hi, thanks for the PR. Will be holding off this change for now, few reasons:

This is only visually nice on desktop (larger screens); there's no "post card" border if it's on mobile.
Currently there's a lot of elements with different radius values - my bad, everything looks messy and inconsistent, there's still no "standard" that I've set here 😆
Few months ago, the radius for media is like the one you PR-ed here, but I purposely made it more rounded. The UX-related reason was to further hint/encourage users to click to see the full thing.
I'm still experimenting on how images are rendered so this PR might not work by then.


Rename eks and eks-stage2 Terraform projects

This PR renames the eks and eks-stage2 Terraform projects to cluster-infrastructure and cluster-services respectively. This has been defined in a recent ADR on splitting the Terraform state for the EKS and Kubernetes resources and gives clearer meaning to the intentions of the projects:

cluster-infrastructure is concerned only with setting-up the EKS cluster and all associated AWS resources (such as the worker groups and auto-scaling groups).
cluster-services is concerned only with setting up the Kubernetes resources and configuration, including the aws-auth ConfigMap.

As part of this PR, the Terraform state for the existing eks and eks-stage2 projects has been duplicated within the state bucket and renamed appropriately for the renamed projects; once we transition over to using the renamed projects, the old Terraform state files can be deleted.
Testing: have duplicated the existing Terraform state files, renamed them inline with the new project names defined in this PR and then run a Terraform init, refresh and plan for each project - no changes have been detected for each, which is correct as this should be a no-op change.
Trello: https://trello.com/c/dqG4nXn0

thanks for fixing that. I appreciate the testing.
What is the intention for the CI pipeline to deploy the EKS cluster infrastructure and services?

Good point, thanks Fred. I have updated the EKS pipeline to point at the renamed Terraform projects contained within this PR.


Create hellou.py

We already have a lot of versions on Python. We are sorry. Please contribute for any other undone language.


feat(deployment_target): Update Deployment Target to iOS 12 + warning fixes

Changes description

Update deployment to target from iOS 10 to iOS 12 to be able to use Xcode 14 and follow the iOS Tech Radar from Decathlon Technologies.
Context

Xcode 14 drops support for 32bits environnement (iOS 10) and iOS 12 supports every devices that iOS 11 does.
Checklist

[x] Make sure you are requesting to pull a topic/feature/bugfix branch. Please, don't request directly from your main!
[x] Check commits & PR names matches our requested structure. It must follow the https://www.conventionalcommits.org pattern.
[x] Check your code additions will fail neither code linting checks.
[x] I have reviewed the submitted code.
[x] I have tested on an iPhone device/simulator.
[x] I have tested on an iPad device/simulator.

Does this introduce a breaking change?

Yes
Vitamin iOS will not work in a project with a deployment target lower than iOS 12.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: baptistedajon:x: mackojYou have signed the CLA already but the status is still pending? Let us recheck it.


Failure in the installation of the Openshift GitOps

Due to the newer version of Openshift GitOps 1.3, the CRs changed. Further investigation it's required.
< TASK [ocp4-install-gitops : Wait for GitOps CRD to exist] >
 -----------------------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

ok: [localhost] => (item=applications.argoproj.io)

FAILED - RETRYING: Wait for GitOps CRD to exist (1 retries left).
failed: [localhost] (item=applicationsets.argoproj.io) => {"ansible_loop_var": "item", "api_found": true, "attempts": 30, "changed": false, "item": "applicationsets.argoproj.io", "resources": []}
ok: [localhost] => (item=appprojects.argoproj.io)
ok: [localhost] => (item=argocds.argoproj.io)

@ikke-t ^^

Fixed in https://github.com/rcarrata/devsecops-demo/pull/44. Closing this issue.


Increase product weight accuracy

Please describe the feature you would like to see implemented.
I would like the ability to increase the accuracy of the product weight to five decimal places or alternatively change the unit from kilogram to gram, if that is easier to implement.
Here is why:
As far as I’m aware, the weight is always given in kilogram with three decimal places. While this will be fine in most cases, in our case it’s not enough. We have Parts that weigh 0.08 grams (0.00008 kilograms). The problem accouris wen a customer orders multiple of these.
Say for example someone orders 1000 of these, the calculated package, weight will be 1kg (since the smallest weight we can set is 0.001kg) but the actual package weight will be 0.08kg.
Since we want to weigh our packages bevor sending them, it would also be necessary to have an accurate weight, so we can control if the package was picked correctly.

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37848.
[created from NEXT-37848, comment 488433]

[public] Thank you for your report. We have concluded, that the behaviour you describe does not meet the criteria for a bug and instead consider this suggestion to be an improvement. Please note that Github Issues is for bug reports only. Therefore, we have decided to close this issue and ask you to submit your idea to our Shopware Feedback & Ideas portal: https://feedback.shopware.com/forums/942607-shopware-6-product-feedback-ideas
[created from NEXT-37848, comment 493269]


Which node version is supported?

I am trying to install git-hours - could you maybe reference which node versions are supported? I am currently using v16.11.1.

Turns out to be node v14.x


Throwing exception to the client

I followed the instructions here http://dropwizard.io/manual/core.html#error-handling but nothing is being throwed to the client.
I must inherit the WebApplicationException or do I can throw directly a WebApplicationException object?
I just need to throw it from a resource method?
Any more concrete example on internet? The documentation is not good on this part
PS: I' m really enjoying using this framework. Lot of hours saved!

I can answer some of your questions because I have recently been investigating the issue myself. but don't know what the best practices are. Take my answers with a grain of salt.

I must inherit the WebApplicationException or do I can throw directly a WebApplicationException object?

If you are like me, you will want an application/JSON response to result from throwing an exception.
You need to create your own exception class by extending WebApplicationException.
/**
 * A HTTP 409 (Conflict) exception that produces an application/JSON response.
 */
public class MyConflictException extends WebApplicationException {
	/**
     * Create a HTTP 409 (Conflict) exception.
     */
    public MyConflictException() {
        super(Responses.conflict().build());
    }

    /**
     * Create a HTTP 409 (Conflict) exception.
     * @param message the String that is the exception message of the 409 response.
     */
    public MyConflictException(String message) {
        super(Response.status(Responses.CONFLICT).
                entity(new JSONExceptionMessageContainer(message)).type(MediaType.APPLICATION_JSON).build());
    }
}

JSONExceptionMessageContainer:
/**
 * Simple container for mapping an exception message to a JSON object
 */
public final class JSONExceptionMessageContainer {
	private String message;

	public JSONExceptionMessageContainer(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}

I just need to throw it from a resource method?

Yes. Do throw new MyConflictException("something conflicted!")

Any more concrete example on internet? The documentation is not good on this part

Tell me about it! Here are some pages I have open right now:
Jersey - WebApplicationException and Mapping Exceptions to Responses
SO - Return Jersey exceptions in JSON
SO - JAX-RS / Jersey how to customize error handling?
Dropwizard and Jersey ExceptionMappers
You may also want to look into ExceptionMappers as a part of Jersey, which some of these links talk about.

Wow, excelent answer @MarkHerhold
Thanks! Now it's clear and working.

Thanks!  @MarkHerhold


GetDocument method should accept an int or a string

With:
public class Movie
{
    public int Id { get; set; }
    public string Name { get; set; }
}

MeilisearchClient client = new MeilisearchClient("http://localhost:7700", "masterKey");
var index = client.CreateIndex("movies");
var documents = new Movie[] {
    new Movie {Id = 1, Name = "Batman"}
};
var updateStatus = await index.AddDocuments<Movie>(documents);
Movie movie = await index.GetDocument<Movie>(1);

I got the error "impossible to convert int into a string".
The GetDocument method should be able to accept an int or a string since MeiliSearch can accept a string or an int as a document identifier.
TODO:

[ ] Fix in the code
[ ] Add tests

I can take a look at this once I familiarize myself with the code.
I assume we'd just want another method that takes an int along side the current method
like so
        public async Task<UpdateStatus> DeleteOneDocument(int documentId)
        {
            var httpresponse = await this._client.DeleteAsync($"/indexes/{Uid}/documents/{documentId}");
            return await httpresponse.Content.ReadFromJsonAsync<UpdateStatus>();
        }

If I'm not wrong, this should do the job 🙂

Would you want me to change all document methods that take a string or IEnumberable and add an int version as well?
those would all include

GetDocument

issue explicitly stating this one

DeleteOneDocument
DeleteDocuments

if yes, would you want me to change them all in this PR or submit a new PR for the Delete Methods?
I'm also now in the slack community as Barbados Clemens if you'd need to chat about it.

So cool you are on the slack right now 🙂
You can change all the methods in the same PR, thank you so much 😁 I m going to rename the issue accordingly


Stepping from an initially paused isolate goes immediately to the end of the program

If I start a command-line program with --pause-isolates-on-start, connect to Observatory, and then do any kind of step operation, it goes immediately to the end of the program. It would be better if it stepped to the first line of main()

I've updated the protocol to support StepInto while paused at isolate start.
I've also updated the Observatory to inform users of their options when the program is paused at isolate start.
Fixed in 319214f58be75298f47a8b508ad9023c51fc4117.

Had to revert.  Reopening for now.

Once again: 256b044857a44977ba1b4ca58d3d96ab39765bdf


Test: Async Callstacks

#5552
Complexity: 2

[ ] Any OS - @joaomoreno
[ ] Any OS - @kieferrm

Test that async callstacks appear when applicable

Resolved promises
Native async/await

Test that it can be disabled by setting "showAsyncStacks": false in the launch config

In order to test any of this you'll need "protocol": "inspector" in your launch configs.
In order to test native async/await, you'll need to install Node 7.


Ability to publish apps to InTune Work-Profile Managed iOS/Android devices

Describe the solution you'd like
At the moment, LOB Application will only work on device administrator, and apps are not visible in the company portal for installation. For, Android for work sole source for application is manage google play store hence we need to add the applications as private app in managed google Play store if the application is not published.
Describe alternatives you've considered
Manually publish apps as described in the documentation links below. No end-to-end automation capabilities that App Center offers i.e. build apps -> publish app-> app is available to install on InTune Managed devices.
https://docs.microsoft.com/en-us/mem/intune/apps/apps-add-android-for-work#managed-google-play-private-lob-apps
https://docs.microsoft.com/en-us/mem/intune/apps/lob-apps-ios
Additional context
[Case #:20965144] -  Appcenter App published to InTune does not show in company portal

Is there any way to update the Private apps in Managed Google Play Store from the Visual Studio Appcenter?

This is a crucial requirement for our organization. We only use Managed Play Store Apps for our in-house developed Android apps and the lack of this feature prevents us from building an end to end process with App Center.

See #2304 for a request for the same problem that is being bumped periodically to keep it on the radar.


When packing tilized input, write tile header

Tile header was not written when input was tilized, leading to incorrect behavior of data movement.

I've verified that full t5_large_wormhole_b0.yaml now passes in Budabackend.


chore (BigOperators.Finsupp): avoid importing Order.BigOperators.Ring.Finset

This is one part of the import path from Algebra.Order.Group.Defs here and clearly unnecessary.

bors r+

bors r-

Somehow downstream needs it

bors merge


Split test_snakemake_slurm.py into separate files by method

Summary:
Let's split test_snakemake_slurm.py into separate test files, by method.
Description:
The current test_snakemake_slurm.py file includes tests for two methods, so a failure can ambiguous in the top level pytest -v output, it joins together tests for methods that are otherwise separate in the test suite, and it takes longer to run than other tests.
Splitting out dnadiff and anim tests into their own files would be an enhancement.

i.e. https://github.com/pyani-plus/pyani-plus/blob/main/tests/snakemake/test_snakemake_slurm.py
Do you think this would be a good issue for me to try?

I'd give it a few minutes. I was looking over #35 at @kiepczi's request and there may be a couple of changes merged to main shortly.

There you go - I've merged #35 to fix #18 and that test file should be ready for refactoring.

Note with the changes for #50 on #52 to skip the SLURM tests on GitHub actions, refactoring the SLURM tests will no longer have any impact on the GitHub Actions CI run-time.

I think it would be neater, and I like neat ;) 🌈

Removed in #61. Closing.


fix integration test

use createScenarioDir to create a clean temp dir for integration tests
fix integration test #3200 info should locate paket.dependencies.
now test can be run multiple times, temp dir is cleaned up correctly

thanks


NIFI-5752: Load balancing fails with wildcard certs

Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[X] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[X] Has your PR been rebased against the latest commit within the target branch (typically master)?

[X] Is your initial contribution a single, squashed commit?

For code changes:

[X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

@markap14 Thank you for your kind advice! That makes sense to me.
In the new commit, I have left the existing authorization codes, followed by the authorization using HostnameVerifier (which I added). The authorization is performed as follows:

If the authorization with the string-match succeeded, then returns the node information from Client Identities (as we fixed in #3109 ).
After that, if the authorization by HostnameVerifier succeeded, then returns the derived hostname from the socket is returned.

Does this change seem to be no problem?
Also, I modified a few tests related to LoadBalanceAuthorizer because the interface of authorize is changed.
@ijokarumawak Could you please review it?

@ijokarumawak Thank you again for your review. I fixed the PR based on your comments. Can you check it?

It looks good. +1. Merging. Thanks, @kotarot!

@ijokarumawak Thanks for reviewing and merging my PR!


Use version agnostic links in Navigation

Not ready to merge or for review, but just toying with ideas, rambling, and getting a vercel branch build going.
For now, this just does two things

gets version agnostic links if the "route with version" is inside my array
hides the version picker on the pages that ARE agnostic (maybe? should we?)

I did have some useEffect stuff that could router.replace a path to its not versioned route but i don't really like using useEffect for redirects. I also checked the redirect paths in the config.json stuff and they are version unaware. So, still tinkering.
if you wanna test it out, go to any page, change the version and then navigate to the preview or changelog pages
happy for other thoughts or ideas or stuff i missed

This makes sense to me! Should we also render the default version of a version-agnostic page if a reader, say, navigates to /ver/11.x/changelog manually?


Feature/engine debug info

What's new?

Debug metrics window, where FPS and total number of tris rendered in scene can be seen.
To activate it click on the button Stats on Scene window.

Everything daijobu about the code!
But I just executed the engine to test it! And it shows always the same amount of trees. It seems like culling is never done for some reason. Don't think is the fault of this branch but we have to fix it.

Number of tris being constant is desired, as scene camera doesn't do culling. At the near future this will be also computed in game mode, where culling is applied


[API Integration] USC Digital Library

http://digitallibrary.usc.edu/

Integration is currently blocked due to dual rights of certain objects, e.g. http://digitallibrary.usc.edu/cdm/singleitem/collection/p15799coll95/id/1/rec/1 where the Rights field indicates both Public Domain and CC-BY. We're in communication with the library regarding this.

The library confirms that the work to review and correct licensing information will not be done in the short term. We can keep this in Blocked and review at a later time.

Would it be possible to work on this for GSoC?

@ChariniNana See the comments from @annatuma .  It's not likely to be ready for development any time soon.


fix: use old getter of property for older versions

Partial cherry-pick from https://github.com/StarWishsama/dough/commit/46bcc5f34e47b3a4363f21b185710dd6b8c2c247

@EpicPlayerA10 just in case u dont see this

:D


Add type declarations and ziggy.d.ts generation

Credit for this goes to @lmeysel for the original implentation in #655. This PR includes only the ziggy.d.ts generation and related code necessary to make that work.
Adds --types and --types-only options to the ziggy:generate command to support IDE autocompletion of routes and parameter names. Adds a new Types output class to support overriding how this file is generated if necessary.
Todo

[x] Can we remove tsconfig.json?
[x] Convert index.ts and types.ts to .d.ts and combine them if possible.
[ ] Remove/simplify type declarations if possible to only include what's necessary for autocompletion at this point.
[ ] Include .d.ts files in dist/?

No idea what's going on with the line endings... the .js files work fine.


OTR: Missing parent:heparan sulfate proteoglycan biosynthetic process

To mirror the structure for chondroitin sulfate biosynthetic process:
heparan sulfate proteoglycan biosynthetic process GO:0015012 should be a child of glycosaminoglycan biosynthetic process GO:0006024

Thanks

Hi @hattrill
Looking at this branch of the BP ontology, it seems we make a distinction between the GAG biosynthetic process and the GAG proteoglycan biosynthetic process, so I think that the parentage as shown in the graph view above is okay.
However, I did see that GO:0050650 'chondroitin sulfate proteoglycan biosynthetic process' is the only GAG proteoglycan biosynthetic process term that has an is_a relation to GAG biosynthetic process.  The other GAG proteoglycan terms, e.g. GO:0015012 'heparan sulfate proteoglycan biosynthetic process', do not.
It seems, then, that the parent of GO:0050650 may not be correct and the is_a link to GO:0006024 'glycosaminoglycan biosynthetic process' should actually be removed.

Hi @vanaukenk,
Yes, I see what you mean.  Makes sense to remove the is-a between GO:0050650 and GO:0006024.

@hattrill
It looks like the is_a parentage between GO:0050650 and GO:0006024 is coming in via the logical definition for 'chondroitin sulfate proteoglycan biosynthetic process' that references a preliminary ChEBI entry (CHEBI:26349) that classifies 'proteochondroitin sulfate' as a sulfated glycosaminoglycan.
This is in contrast to other proteoglycans represented in ChEBI, e.g. heparan sulfate proteoglycan and dermatan sulfate proteoglycan, that are not classified as a sulfated glycosaminoglycans (although heparan sulfte proteoglycan is also classified as a polysaccharide sulfate).
So, to fix this in GO, I will temporarily remove the logical def for GO:0050650 and GO:0050654, assert the correct/consistent parentage in GO, and file a request with ChEBI to ask them to review the classification of the proteoglycan child terms.
Note that I'm also going to temporarily remove the logical defs for the equivalent heparan sulfate terms.
I'll leave this ticket open until we hear back from ChEBI and can re-enter logical defs for these terms.

For reference:
https://github.com/ebi-chebi/ChEBI/issues/3400

Thanks, Kimberly!

Still waiting on ChEBI for a new term for logical defs, but I am going to close this ticket for now since the parentage in GO is now correct.


Php8.1: Fix warnings

While we wait for https://github.com/crowdin/crowdin-api-client-php/pull/127 to go out and get a release, let's fix it ourselves.
cc @sctice-ifixit @jarstelfox

QA 📱
I made these changes on ubreakit. I ran:
      $asdf = new \CrowdinApiClient\Collection();
      $asdf = new \CrowdinApiClient\CollectionIterator([1,2]);

Everything passed.


[add-resource] New Plugin "urlparamfilter" - try 2

See #862 for plugin description.
sorry for the confusion in MaZderMind/grav-plugin-urlparamfilter#1 - i totally missed that file. released version v1.1 with fixed up metadata.

I added it back to the site yesterday. Looks good!


Saving Settings Changes the Tab

This may be an issue with the caching system.
Saving any tab in Settings changes the tab to Page.
@rmisio can you take a look at this?

Update: if you control f to reload the page while on a tab, saving any other tab will switch the page to that tab.
ie: if you reload on the Addresses tab, saving other tabs will switch the page to the Addresses tab.

I found it. Nothing to do with caching, the render wasn't using an updated state value. Patch arriving shortly.


[DOCFIX] Fix file name to capital

Fixed file name typo.

alluxio-bot, merge this please

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.6 please


Faily task "wait for the apiserver to be running" is too much faily

Recent CI jobs has too many failures for the given task. We have to do RCA.

Fixed by reverts

The issue is very intermittent and still persists. The related code to be investigated https://github.com/kubespray/kargo/blob/bcec5553c5f9989b1b23f387b89ec8ccf92e05b4/roles/kubernetes/master/tasks/main.yml#L17-L29


Add widgets

This PR adds extra widgets

Arc
BoolButton
ByteMonitor
Ellipse
Polygon

and also includes tests for each widget. For the BoolButton widget, it is intended to have PV write access when clicked. For now this has not been implemented, but will need to be included in future.
I tested these widgets by implementing the individual widget code in an older version of cs-web-proto that did not use the cs-web-lib library, which is not ideal but I couldn't get the npm link method to work. I could not see any issues with the widget functionalities when testing them.

Thanks for the feedback Becky! Hopefully the new commits should fix these issues:

The inverted arc should not appear the correct way around (this did take a while to do, so let me know if there are still issues as I am not 100% sure it is completely fixed)
There is now an LED in the BoolButton - I had initially not included it because I was unsure of its purpose and whether it was used at Diamond but I feel that even if it is not used it is useful to have. The LED should hopefully change colour when the button is clicked.
The border around the ellipse has been removed when line width is 0

I have also updated the appearance of ByteMonitor and adjusted the sizing of a few other widgets to be more accurate to CSStudio, which hopefully all behave as expected.

Thanks for the changes Abii. Just a few more comments:

The Arc widget is no longer inverted and looks correct for all angle except when I just tried putting in a negative angle (e.g. -90). CS-Studio supports this but I think it crashes in the browser and the widget disappears.
I can see the LED light up when I click on the Boolean Button and I know it doesn't currently have write access to update the connected PV but I did notice that the LED does not change when I caput to the PV to change it, i.e. it doesn't seem to reflect the actual state of the PV?
I also notice on the Boolean Button that the label comes up when you click on the button (e.g. ON, OFF). In CS-Studio the showing of the label is configurable with a property (show_boolean_label) so I wonder whether we should do the same here?

Hopefully the issues you raised should now be fixed with these latest commits. I have also added write PV ability to the BoolButton, although I didn't seem to be able to test this fully with the local coniql instance I was running due to errors.


Aligning audio using DTW?

Hey,
Great job on the examples, really helpful. I am trying to align audio sequences of the same sentence spoken by different speakers (different dialects and speed of speaking).  I'm following your DTW example with different audio speeds.
As I am really new to audio processing, can you please guide me as which features would work better in this case - MFCC or Chroma or STFT?
I want to warp/align my target audio to the reference audio after computing the DTW path. How do I use the path to speed up my slow audio to the fast one or vice versa? Can this be done using librosa as well? Any example on how to save the final aligned audio?

Thanks for the kind words. Of those three choices of features, I think MFCCs would be the best suited for tracking changes in speech phonemes among different speakers.
Your second question is a bit more involved, but in short, you use the output path from DTW to time scale parts of the original time-domain signal. You might be able to use time_stretch from librosa: http://librosa.github.io/librosa/generated/librosa.effects.time_stretch.html#librosa.effects.time_stretch

@monamalhotra, I've had great success getting logical alignment with MFCC. I'm now to the scaling step. Did you ever have any luck with that?


Move instead of delete

It could be great to add a command to move the unused files to another directory instead of remove.

Are there any uses for this outside of a soft delete?
I would be down for a soft delete.... <3


.update cleanup the vs toolchain path

this could be done a bit easier.

Err, no, I'm afraid this is not a good idea. The path will have an impact on the build-id of your artifacts. So you won't be able to share artifacts unless Visual Studio is installed everywhere in the same location. I would also consider it a bug that absolute paths are allowed in path. The documentation says

The path attribute is always needed. The libs attribute, if present, must be a list of paths to needed shared libraries. Any path that is specified must be relative.

So it would not be wise to rely on the glitch...

Err, no, I'm afraid this is not a good idea. The path will have an impact on the build-id of your artifacts. So you won't be able to share artifacts unless Visual Studio is installed everywhere in the same location. I would also consider it a bug that absolute paths are allowed in path. The documentation says

The path attribute is always needed. The libs attribute, if present, must be a list of paths to needed shared libraries. Any path that is specified must be relative.

So it would not be wise to rely on the glitch...

Ohh, thanks!! Very good to know :-)

Ohh, thanks!! Very good to know :-)


feat: Better reply support (#418)

Just one more question. What would happen if we implement such a reply:
#[sv::msg(reply, reply_on=success)]
    fn some_reply(
        &self,
        _ctx: ReplyCtx,
        #[sv::data] _data: ComplexData,
        #[sv::payload(raw)] _payload: Binary,
        some_custom_arg: String    // We provide sv::payload(raw) and a custom arg
    ) -> Result<Response, ContractError> {
        Ok(Response::new())
    }

Just one more question. What would happen if we implement such a reply:
#[sv::msg(reply, reply_on=success)]
    fn some_reply(
        &self,
        _ctx: ReplyCtx,
        #[sv::data] _data: ComplexData,
        #[sv::payload(raw)] _payload: Binary,
        some_custom_arg: String    // We provide sv::payload(raw) and a custom arg
    ) -> Result<Response, ContractError> {
        Ok(Response::new())
    }

Good question. I haven't thought about that. I will check


Graph not plotted correctly if I apply OrderedSet on title labels.

If I pass an array of titleValues e.g. [23 May, 31May, 31May, 31May, 31May]. Now I want X-axis to plot "31 May" one time only, for this I applied OrderedSet to get an array of unique values in "_constructTitleLabels" & "_positionTitleLabels" methods. This solved my problem of plotting only unique values on X-axis, but the line plotted on the graph is not proper, as it is plotted considering 5 values plotted on X-axis. Sharing a screen shot for the same.

Any help will be appreciated.

Handled it while passing title array from view controller.


Application gets crashes on launch react native 0.61.0

Performed all setups as per document. Application crashes on launch.
React Native Version: 0.61.0
Platform: Android
Adb logcat
FATAL EXCEPTION: OkHttp Dispatcher
01-11 21:38:34.044  1358  1430 E AndroidRuntime: Process: com.new_relic.integration, PID: 1358
01-11 21:38:34.044  1358  1430 E AndroidRuntime: java.lang.ClassCastException: com.newrelic.agent.android.instrumentation.okhttp3.CallExtension cannot be cast to okhttp3.RealCall
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at okhttp3.OkHttpClient$1.streamAllocation(OkHttpClient.java:188)
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:204)
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at com.newrelic.agent.android.instrumentation.okhttp3.CallbackExtension.onResponse(CallbackExtension.java:42)
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206)
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
01-11 21:38:34.044  1358  1430 E AndroidRuntime:        at java.lang.Thread.run(Thread.java:919)

Note: Sentry is integrated in the application as well

What version of the New Relic Android Agent was used?  If you are using New Relic Agent version of 6.3.1 there is a reported issue with Okhttp3.  Use the 6.1.0 version of the SDK.  That should resolve the issue.


performance tweaks

Increase performance by changing frequently used anonymous functions to named functions

👍  Thank you. Remember to publish.


add Washer

since Washer is already exposed in https://github.com/sampsyo/wideq, it should be pretty straightforward to map existing entities to Home Assistant

I would also be happy if the plugin would support washing machines.
The following code I get from wideq example.py when the washer is running:
`- State: @WM_STATE_RUNNING_W

Remain_Time_H: 1 (0-30)
Remain_Time_M: 33 (0-59)
Initial_Time_H: 1 (0-30)
Initial_Time_M: 41 (0-59)
Wash: @WM_TITAN2_OPTION_WASH_NORMAL_W
SpinSpeed: @WM_TITAN2_OPTION_SPIN_1200_W
WaterTemp: @WM_TITAN2_OPTION_TEMP_40_W
RinseOption: @WM_TITAN2_OPTION_RINSE_NORMAL_W
DryLevel: -
Reserve_Time_H: 0 (3-19)
Reserve_Time_M: 0 (0-59)
PreState: @WM_STATE_DETECTING_W
TCLCount: 40 (0-60)
LoadItem: 0
CourseType: 0
CourseType: 0
Standby: @CP_OFF_EN_W`

Would also love to help expose this, just got an LG washer and setup thinq

@PawelTroka and @rwarner can you also give an example output just like @dieneuser did? I am planning on adding it in: https://github.com/sampsyo/hass-smartthinq/pull/32

@Webunity sure thing, I would love to. Last time I ran example.py however for some sample output on the network it didn't seem to find the Washer at all. Just gave me blank output.
I think other people are encountering the same thing here: https://github.com/sampsyo/wideq/issues/46

I just downloaded the latest code from wideq, setup a new account and managed to find and poll my washing machine. I've managed to add a new washing machine sensor to your code which seems to be working. I don't mind creating a pull request if that helps?

Good day. I installed the server HA as a virtual machine with Ubuntu. Installed your plugin wideq. Can I do something to help add refrigerator LG support?

hi,
sorry for my bad english. i'm french.
i add your github in my Home assistant.
I only have a washer.
do you know when it will be available please?
Thank you for your work ;)

Hello everybody. Great work! Very appreciative! The only LG appliance I have is a (clothes) washing machine. I saw some indications that this wasn't supported, but saw some mixed messages too, so I just tried it anyway.
I followed instructions today on this repo, master branch, and setup hass-smartthing. As it advises, I also set up wideq (also today, master branch) in a temp folder to get a refresh_token.
When I use wideq standalone CLI example.py, I see my washing machine (in ls, with a UUID), and if I do mon UUID on the washing machine, it correctly spams the device status out to the terminal. So I know this part is working.
I know that Home Assistant correctly loaded this as custom_component and the component is running, because at first, every time I rebooted Home Assistant, it threw an error regarding token problem to Notifications and to Logs. I then figured out this was because I used access_token instead of refresh_token, fixed the token accordingly, and it no longer puts any error messages into Notifications or into Logs. So for (only) this reason (errors, then no more errors), I think the component is properly loaded and is running.
But I check Developer Tools -> States and scroll the list of current entities, and I do not see anything new regarding a washing machine. Am I looking in the correct place? If this was working, should I be correct in expecting a new entity to magically appear in this list? Do I have the correct state of the problem as per this Issue #30 thread here? Or am I misunderstanding how to use it?
If I have the correct understanding of the issue, is there anything that I can do to get the washing machine to appear? Is there a custom branch or custom fork of this which might provide this type of support?
Hello @BottlecapDave I see here that you commented saying you were able to add this entity. Is this something you might be able to share? (I creeped on your public repos but did not see a fork.)

Sorry I've been quiet. I was wanting to look at the othe forks of this repo to see what they'd implemented but I haven't found the time.
So I've pushed my fork of this repo to https://github.com/BottlecapDave/hass-smartthinq which includes my washer sensor. Disclaimer - My washing machine is a UK branded one that was purchased ~ 2 years ago so I can't guarantee that other regions/older/newer washing machines will work as well.
I've also updated the base entity to include a unique id so that you can change the name in the Home Assistant UI.

Thanks @BottlecapDave !
It worked flawlessly. I only had to switch to your fork, restart Home Assistant, and my washing machine immediately appeared as a sensor entity in Developer Tools -> States.
For anyone here less tech savvy, the approximate steps to switch to Dave's version is something like this:
cd ~/.homeassistant/custom_components/smartthinq/
git remote add bottlecapdave git@github.com:BottlecapDave/hass-smartthinq.git
git fetch bottlecapdave
git checkout bottlecapdave/master

BottlecapDave's fork works great with my new LG washer. I'm in the US. My dishwasher still shows up correctly too. Now I just need the dryer. Might try to look at the code to see how easy it would be to add it.

This github work very well with washer! i use it! it's very simply to add this in Hassio!
https://github.com/ollo69/ha-smartthinq-sensors


Company: backend merlin-company-backend error "merlin: error (end-of-file) trying to parse answer: " with args (candidates Js.)

This is an error I am having with reason-cli's merlin (I am unsure of whether I should post here, or on merlin's github page). I also tried using the which ocamlmerlin-reason binary, but got the same error.
To recreate this error, I just tried to enter at the top of the ReasonML file let a = Js. and inspected the Emacs messages.
Here is my configuration:
(defun shell-cmd (cmd)
     "Returns the stdout output of a shell command or nil if the command returned
      an error"
     (car (ignore-errors (apply 'process-lines (split-string cmd)))))

   (quelpa '(reason-mode :repo "reasonml-editor/reason-mode" :fetcher github :stable t))
   (use-package reason-mode
     :config
     (let* ((refmt-bin (shell-cmd "which refmt")))
       (when refmt-bin
	 (setq refmt-command refmt-bin)))
     (add-hook
      'reason-mode-hook
      (lambda ()
	(add-hook 'before-save-hook 'refmt-before-save nil t)
	(setq-local merlin-command "~/.nvm/versions/node/v9.9.0/bin/ocamlmerlin")
	(merlin-mode))))

I am happy to share any other details that might be relevant.

I have also encountered this error recently. Emacs Company Merlin used to work on ReasonML (Bucklescript) projects just fine.

I figured this out. You need odoc installed. You may close this issue.


Fix deprecation warning regarding NSOKButton on 10.10+.

I've been fixing some of the deprecation (and other) warnings and static analysis issues in my local fork. Before I continued doing so I wanted to send a PR for one of the simpler ones to make sure I'm handling things the right way.
This commit addresses two warnings regarding the use of NSOKButton, which was deprecated in 10.10 in favor of NSModalResponseOK. The change itself is very simple; I'd like guidance on handling the versioning, however.
In general I've guarded deprecation changes by testing against the OS version the deprecation was introduced in (10.10 in this case) to avoid changing the behavior for an "older" build. This will let somebody build a binary against older deployment targets if desired, but they'll still need the latest SDK (to see the appropriate availability macros).
Is this sufficient or should I also take steps to make sure I check the SDK version somehow before doing the availability check? I don't really see this being done elsewhere, but MacVim.h does have a redefinition of the OS version macros up to 10.7; should I add the ones through 10.10 if I'm going to be using them?

Looks good to me :)


[python3] Build error on x64-osx

Package<EMAIL_ADDRESS>Host Environment

Host: x64-osx
Compiler: AppleClang <IP_ADDRESS>00029
vcpkg-tool version: 2024-10-18-2024.10.18
vcpkg-scripts version: 4f746bc66 2024-11-01 (31 hours ago)

To Reproduce
vcpkg install boost
Failure logs
CMake Warning at ports/python3/portfile.cmake:16 (message):
  python3 currently requires the following programs from the system package
  manager:

      autoconf automake autoconf-archive

  On Debian and Ubuntu derivatives:

      sudo apt-get install autoconf automake autoconf-archive

  On recent Red Hat and Fedora derivatives:

      sudo dnf install autoconf automake autoconf-archive

  On Arch Linux and derivatives:

      sudo pacman -S autoconf automake autoconf-archive

  On Alpine:

      apk add autoconf automake autoconf-archive

  On macOS:

      brew install autoconf automake autoconf-archive

Call Stack (most recent call first):
  scripts/ports.cmake:192 (include)

-- Using cached python-cpython-v3.11.10.tar.gz.
-- Cleaning sources at /Users/cennanyin/vcpkg/buildtrees/python3/src/v3.11.10-0ce35030d7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/cennanyin/vcpkg/downloads/python-cpython-v3.11.10.tar.gz
-- Applying patch 0001-only-build-required-projects.patch
-- Applying patch 0003-use-vcpkg-zlib.patch
-- Applying patch 0004-devendor-external-dependencies.patch
-- Applying patch 0005-dont-copy-vcruntime.patch
-- Applying patch 0008-python.pc.patch
-- Applying patch 0010-dont-skip-rpath.patch
-- Applying patch 0012-force-disable-modules.patch
-- Applying patch 0014-fix-get-python-inc-output.patch
-- Applying patch 0015-dont-use-WINDOWS-def.patch
-- Applying patch 0016-undup-ffi-symbols.patch
-- Applying patch 0018-fix-sysconfig-include.patch
-- Applying patch 0019-fix-ssl-linkage.patch
-- Applying patch 0002-static-library.patch
-- Using source at /Users/cennanyin/vcpkg/buildtrees/python3/src/v3.11.10-0ce35030d7.clean
-- Found external ninja('1.12.1').
-- Getting CMake variables for x64-osx-dbg
-- Getting CMake variables for x64-osx-rel
-- Generating configure for x64-osx
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /usr/local/bin/autoreconf -vfi
    Working Directory: /Users/cennanyin/vcpkg/buildtrees/python3/src/v3.11.10-0ce35030d7.clean/
    Error code: 1
    See logs for more information:
      /Users/cennanyin/vcpkg/buildtrees/python3/autoconf-x64-osx-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/python3/portfile.cmake:293 (vcpkg_configure_make)
  scripts/ports.cmake:192 (include)

/Users/cennanyin/vcpkg/buildtrees/python3/autoconf-x64-osx-err.log
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/local/Cellar/autoconf/2.72/bin/autoconf --force
configure.ac:18: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: error: /usr/local/Cellar/autoconf/2.72/bin/autoconf failed with exit status: 1

brew install autoconf automake autoconf-archive

Hello,
I sincerely apologize for not responding earlier to the issue I reported. Due to a long period of inactivity on GitHub, I missed following up in a timely manner. I realize this may have caused some inconvenience or wasted your valuable time, and I deeply regret that.
Thank you so much for your efforts in addressing the issue and for maintaining such a high level of professionalism and responsibility. Your dedication to improving vcpkg and supporting the community is truly appreciated.


BLD: fix cython error on master-branch cython

Cython now complains if the types of the two branches in the ternary statement do not match (here 1D vs 2D).
With this change scipy cythonizes with ~cython master and fails without it.
This should be backported as far as it can be.

I should also add that this now matches similar constructs else where in the same file.

Thanks @tacaswell


Simplify / Improve Way

Hi, sometimes there are 10+ point on a straight line, or group of point that are straight. It would be use full for data cleanup to get a tool to remove all those points, for example:

      2----3----4----5
     /                \
   1                   6
  /
0

Here 1,3,4 should be removed. but you need to check that there is no tag on point, for example if node for is tag as "highway=stop", then you shouldn't remove this one.
Furthermore, it should be a bit flexible, because maybe there are not really really straight but get a little angle.

Sure, I'm fine with leaving this open, but the history is in these tickets:
#851 ->  #857 -> #871 -> #910
I'd like a simplify operation too, and have thought a bunch about it.

OpenStreetMap data is messy, overnoded imported data, gps traces with error, etc.
Traditional algorithms like Douglas-Peucker (distance conserving) and Visvalingam (area conserving) are imperfect for this kind of simplification as they assume the input data is ideal
My preference is to roll my own line simplification algorithm that better matches the things I do when cleaning up overnoded TIGER and GPS data.

If I remember, there is a tool to simplify in JOSM

If I remember, there is a tool to simplify in JOSM

I've never used JOSM, but seen a lot of stuff in OSM that looks very Douglas-Peuckery.

Traditional algorithms like Douglas-Peucker (distance conserving) and Visvalingam (area conserving) are imperfect for this kind of simplification as they assume the input data is ideal

@bhousel can you elaborate on that? I don't think these algorithms have assumptions like this.

Since we were talking about this on IRC, I'll copy my thoughts here:
I guess the short of it is, what I really want to do is detect where the curves are and move more of the points there to smooth them out, then after the curves are considered smooth enough, start deleting points from the straight sections… This is very different from what Douglas Peucker and Visvalingam do, which is more like you have a coastline with a lot of nodes and you want to iteratively throw out the least important ones.

Hello,
What do you think about that?
My idea to implement this :

Convert point coordinates from lat lon to x y coordinates
always enable high quality resolution
add a slider to allow people to choose the best quality
If a node is a child of 2 ways (extensible to n) check if the node before and the node after is part of the 2 ways (or n) then delete

This should not be a development priority as it won't be used by a lot of people. But this can slightly improve OSM data (reduce a bit the number of node, faster rendering, avoid duplicates nodes on polygon etc...)

What do you think about that?

It's just Douglas Peucker, so it will drop points but not improve the way shape around turns.
Your idea is pretty good though, and would be a good candidate for a plugin if we had a plugin architecture.
I do spend a lot of my editing time just deleting nodes from overnoded sections and reshaping ways that are not drawn very well, so I have an idea of how I would want a "magic" way improvement tool to work.
You are right that it's not really a development priority because it is a more advanced feature.  I don't want to spend too much time just copying what JOSM does, since users who really care about these features can just use JOSM.

For smoothing out curves, you could look into something like https://en.wikipedia.org/wiki/Centripetal_Catmull–Rom_spline, interpolating points along the spline, then simplifying with DP.

Awesome @mourner, thanks!  That does look pretty close to what I'm looking for... There would be a move/add point step, followed by a drop point step.  Is there a similar spline that can go kind of between the control points rather than hit every one?  Or maybe I want to, for each control point, determine a confidence score of how good it is based on the overall line geometry.
Here are some examples of the sort of things I see a lot of in OSM that I would want to clean up  (hope you can see from the screenshots why I'm kind of "meh" on DP):

I'm not sure there's a universal algorithm that would tell whether a point in a polyline is "good" or "bad" — this kind of thing seems to require human judgement (and lining up against satellite). So maybe what we need is two separate tools — one for spline-based point addition, and the other one for simplifcation. So e.g. you would simplify radically, then move/add points at key places, then interpolate a curve through them, then simplify again etc. This kind of workflow would be for advanced users, but would give a degree of flexibility.

It's just Douglas Peucker, so it will drop points but not improve the way shape around turns.
Your idea is pretty good though, and would be a good candidate for a plugin if we had a plugin architecture.
I do spend a lot of my editing time just deleting nodes from overnoded sections and reshaping ways that are not drawn very well, so I have an idea of how I would want a "magic" way improvement tool to work.
You are right that it's not really a development priority because it is a more advanced feature. I don't want to spend too much time just copying what JOSM does, since users who really care about these features can just use JOSM.

I'm not sure that adding nodes to curves automatically is a good idea, but I'm not going to be able to be sure without an implementation to play with.

If you want to know what is a 'good node ' and a 'bad node' you need to define rules.
And the first rule is : how accurate OSM needs to be.
There is no simple answer because the accurancy needed is not the same for everything.
For a car you need enough nodes for a road because GPS will calcute the distance and the time between the point A and the point B : if you have 300 points or 400 points and the distance is 50 km or 50.4 km, for the GPS it is the same (especially when you know that one GPS will tell you that you need 1 hour and another one 45 minutes !).
For a river or a stream, accurate is not so important everywhere. When I'm trekking the first thing I want to know is if there is a river/stream to cross by foot, so many are not mapped !
This issue was opened more than 2 years ago and it looks like it's a very difficult issue : but not at all if you go step by step and know what do do.
Based on the calcul I use for my GPS tracks (see the issue closed just over this message) I will suggest :

take 3 nodes A, B, C on a same way
look if the node in the middle (B) is empty (no tag, no relation) and not connected to another object (another way, an area)
calculate the angle ANG at the node B between AB and BC
calculate the distance DIST at the node B between the node B and the projection of B on the line AC.
if  ANG is very small (less than 0.2°), delete the node B
if ANG is more importante (but less than 1°) and DIST less than 3 meters, delete node B
otherwise keep the point B
if you delete the point B, the next step is to compare the nodes A, C and D (the first node is the same)
if you don't delete node B, the next step is to compare the nodes B, C et D

The DIST is very important because if you have a very long road almost rectilinear, the ANG may be very small but, with the distance, by deleting node B you will have the line drawing outside the real road . Here you have an example :

The road is straight over some very long distances (look at the scale, some are more than 5 km), then the road turn very few to another straight line. If you don't use this DIST and only the ANG,, you will delete all the points between the right (next to the small pond) and the left !
3 meters is the distance of half a road (a normal road is 6 or 7 meters wide) : so if you have a node where DIST is more than 3 m, it means that if you delete this node B, the road will be mapped straight between A and C and, next to the old node B, this line will be out of the road.
For me, 1° and 3 m gives very good results for a normal map for roads.
When I create a synthetic map like this one :

I use 9° and 6 m and for the biggest map 18° and 18 m
For OSM I will suggest to begin with 1° and 2 m for a road rather than 1 and 3, you need more accuracy than for my website.
For other ways or areas (like the borders of a lake, a wood and so on) I dont' know because the result will not be use for any kind of device (like a GPS) but only for mapping and you will need to try
Best regards

Yes it would be great if there were some tool to make my curves "more professional looking."

In this issue Unnecessary nodes I was talking about a way of 3.1 km with 1411 nodes.
I just find better examples : 432 nodes on a way of 36 meters :
https://www.openstreetmap.org/way/450539750
Or 295 nodes on a way of 18 meters !!!!
https://www.openstreetmap.org/way/450539749
Do you think that, one day, you will add something in ID to help us to improve that kind of ways, I mean other than telling us that there are 429/292 problems "2 nodes are too closed" ?
Best regards

I just find better examples : 432 nodes on a way of 36 meters :
https://www.openstreetmap.org/way/450539750
Or 295 nodes on a way of 18 meters !!!!
https://www.openstreetmap.org/way/450539749

Why not just shift-drag around the nodes and delete them, and redraw those sections?  36 meters is not very big.

Do you think that, one day, you will add something in ID to help us to improve that kind of ways,

Given enough time I might eventually build something to close this issue - but the actual editing task is not very complicated, and iD has been able to do this sort of editing for a while:

Very good advice.
I was using another way : I copy all the tags (using the version 'text" of the list of tags), delete the objet and create a new one with a paste of the tags. But your way is better because with mine we lost history.
And yes, I agree with you : you could close this (old) issue.
Best regards

And yes, I agree with you : you could close this (old) issue.

I never said we should close the issue.

Another really nice option is to "square" q the line. In fact this deletes all the nodes that seems to be a straight line and clean the corners.

I might eventually build something to close this issue

might+eventually+5 years old's issue : for me it was meaning "never", sorry if i misunderstood you (it was a kind of joke in fact, I hope I didn't offend you, sorry if I did).
More important : here an area (I zoomed on a part but the area is quite big) where all your solutions don't work unless you are ready to spend a lot of time to improve the intermittent streams (look at the one on the right for example but a lot are like that)
So for me a special procedure (like those for squared, circled or aligned nodes) is still necessary.
Best regards

More important : here an area (I zoomed on a part but the area is quite big) where all your solutions don't work unless you are ready to spend a lot of time to improve the intermittent streams (look at the one on the right for example but a lot are like that)

I did take a look and I think it's fine.
163 nodes spread out over a kilometer of intermittent stream is - totally fine.
You can just leave it.


Uncaught Security Error -- Every Click

Everything appears to work well in my application. Thanks for the great work.
However, I now have this error on every click on my site after leaving the registration form.
Uncaught SecurityError: Blocked a frame with origin "https://www.google.com" from accessing a frame with origin "http://localhost".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
nz                 cb=gapi.loaded_0:46
jz.send         cb=gapi.loaded_0:44
Fz                cb=gapi.loaded_0:48
(anonymous function)   cb=gapi.loaded_0:48
Perhaps I need to unload the google api when moving off of the page? Watching the error count increase is not a good thing.

The new API does not provide a way to remove/destroy the instance of recaptcha.  An ugly workaround is to manually remove the elements it adds to the page. This can easily be done on the $destroy event for the directive's scope.
I'll put a PR together when I get a sec.

Fantastic!  Thanks!

Well, that was easier than I thought.  Just added a part to remove the junk (including the iframe) that recaptcha adds.  This happens directly after a successfully click and for the $destroy event.

Excellent work! Works perfectly!

I have added the new lines of code but still getting the error.
Do you have any other ideas?
Are there any other changes that has to be made except those two in the directive?

@PelleWombit can you add any additional information.  Make sure you are using the version with the edits and your cache has been cleared/disabled.

Thanks for such quick response!
Yes I have added the edits to my angular-recaptcha.js
Same error as above:
cb=gapi.loaded_0:46
Uncaught SecurityError: Blocked a frame with origin "https://www.google.com" from accessing a frame with origin "http://www.aktivskola.local".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
nz @ cb=gapi.loaded_0:46
jz.send @ cb=gapi.loaded_0:44
Fz @ cb=gapi.loaded_0:48
(anonymous function) @ cb=gapi.loaded_0:48

It might be connected to whether or not you are using a publicly accessible url. On my local development vhost I get the same "Uncaught SecurityError: Blocked a frame with origin [...]" error but on the stage and prod servers it works fine. All sites are using the same code with the same recaptcha key and they are added to the recaptcha admin domain list properly.


Linker error when cross compiling on Linux for Windows

Hello,
I am using winapi to validate the authenticode signature on executables (via https://docs.rs/codesign-verify/).  When I cross compile on Mac for Windows, it works fine; when I cross compile on Linux for Windows, it fails with a linker error:
note: /usr/bin/x86_64-w64-mingw32-ld: cannot find -lWintrust

A simple test case follows:
Cargo.toml:
[package]
name = "test"
version = "0.1.0"
edition = "2018"

[dependencies]
codesign-verify = "0.1.2"

main.rs:
extern crate codesign_verify;

use codesign_verify::CodeSignVerifier;

fn main() {
	let path = "C:/Windows/explorer.exe";
	CodeSignVerifier::for_file(path).unwrap().verify().unwrap();
	println!("Success");
}

On the build system (Linux) I have installed Rust, added the x86_64-pc-windows-gnu target, and installed mingw-w64.
rustup target add x86_64-pc-windows-gnu
sudo apt-get install mingw-w64

I build with command:
cargo build --target=x86_64-pc-windows-gnu

The error log is attached:
error.txt
Do you have any idea how to get around this?  I can't think why an OSX build machine would work while Linux does not.  We unfortunately need to build on our Linux dev server.
Thank you very much!

This turned out to be an issue with codesign-verify.  Sorry for the ticket!


fully functioning demo

hey Matt
What fully functioning demo repo would you recommend I check out to see a full learn theme in action?  I'm trying to build a site now that I've got the content and much of the metadata finished for this tutorial:
https://github.com/YosaiProject/yosai/tree/master/doc/tutorials/totp_tutorial
Problem is that this project don't publish the learn theme site as I hoped it would when I run hugo, and I am still on the hugo learning curve..

Actually :

the theme is here : https://github.com/matcornic/hugo-theme-learn
the demo is live here : https://matcornic.github.io/hugo-learn-doc/basics/what-is-this-hugo-theme/ (It is documentation about this theme. So everything you need to know is explained there. Feel free to edit it or add an issue if something is missing ! )
you're writing an issue in the repo of the demo. So, the code behind the documentation website is right here ;)

What issue are you encountering, exactly ?

I guess this is the equivalent of asking for directions to the place where I am standing.  I've since cloned this repo and will try to figure this out, but I may return.  Thanks for understanding. :)

I am trying to publish this documentation site using hugo and then run the site with a small python http server.  I'm confused as to why this doesn't end up with a replica of the docs web site.  Instead, it redirects to your web page.  What do I need to change inside this source to produce the desired result?

Yeah, launching the demo is kind of tricky.
Learn theme does not come with a real homepage, so we suggest you to create a page that redirects to the first chapter.
You have to override the default home page by writing an index.html page in your layout folder. In this repo, you can see it redirects automatically to the online doc : https://github.com/matcornic/hugo-learn-doc/blob/master/layouts/index.html. That's why you get redirected.
I also had to change baseurl parameter from config.toml because of Github pages. So, when you run the website, it's generated to http://localhost:1313/hugo-learn-doc/ instead of http://localhost:1313/. It's explained in the green tip box of this page
What you need to know is that the relative path of your pages is generated from the folder name where your content is.
By using hugo server command on this repo :

hugo server
Go to http://localhost:1313/hugo-learn-doc/basics (Because 'basics' is the folder name under content folder. In you case, that could be '01.overview')
If you do no want to have a path equal to the folder name, use aliases to redirect page to a clearer name.


fixes to SS.py for reform runs

This PR fixes a bug with the SS solution for reform policies.  The resource constraint was not satisfied because of an error with how the model income factor was being applied.

This PR adjusts tax functions to limit potential for multiple equilibria.  A better solution should be added (by constraining the parameters for the tax functions in estimation), but this PR will improve functionality and be an intermediate step.

As a note, these commits leave a lot of extraneous code in parameters.py and a few lines in SS.py. These are left in for help debugging future issues.
Also, note that the values in parameters.py are set to help the model run quickly, but are not what we would want the parameters to be set at for policy analysis.


Issues with "-MailEnabled" Parameter of "New-AzureADMSGroup" command

Since about one week the "-MailEnabled" Parameter of "New-AzureADMSGroup" command in AzureADPreview PS-Module seems not more to work
If we create a mail-enabled dynamic group using the command
New-AzureADMSGroup -DisplayName  -Description  -MailNickName  -MailEnabled:$true -SecurityEnabled:$true -GroupTypes "DynamicMembership","Unified" `-MembershipRule  -MembershipRuleProcessingState ""
this Group is not available in ExchangeOnline Powershell, neither with Get-UnifiedGroup / Get-Recipient / Get-DistributionGroup, or in new EAC.
One week ago, this way of creating MailEnabled Dynamic SecurityGroups using AzureAdPreview Powershell worked without a problem.
We still use the Groups that have been created in this way, but we have to create more.
Could you please have a look int this issue?

Hello!
This issue seems to be related to MO697570 (started December 7,2023)
========================
Users may have been unable to create Microsoft 365 Groups in multiple Microsoft 365 services
MO697570, Last updated: December 15, 2023 at 8:57 AM GMT+1
Start time: December 7, 2023 at 12:51 PM GMT+1, End time: December 15, 2023 at 3:30 AM GMT+1

Hi @Sektorsync the issue seemed to be related to MO697570 and it is resolved by now.
Please be aware that Azure AD Powershell is planned for deprecation on March 30, 2024. For more details on the deprecation plans, see the deprecation update. We encourage you to continue migrating to Microsoft Graph PowerShell, which is the recommended module for interacting with Azure AD.  For answers to frequent migration queries, see the Migration FAQ.
I'm closing this issue now. Please feel free to reopen if needed.
Thank you.


Proxying a USB flash drive

Hi Kate, I'm trying to proxy a simple USB 2.0 flash drive. There is no error in the output of Facedancer but the device never shows up for mounting and in dmesg there are some device descriptor read/64, error -71 entries. Any ideas?

@ikarus23 were you ever able to get this working? using the latest GreatFET One sw/fw. I am getting a crash in Facedancer though, so it may be a different issue

Hi @decidedlygray. No it is not working. With the latest firmware the whole setup breaks with a new error.
sudo python facedancer-usbproxy.py -v 4146 -p ba65
Using GreatDancer backend.
GreatDancer initialized
GreatDancer connected device Proxy'd USB Device
-- Reset requested! --
-- Reset requested! --
Traceback (most recent call last):
  File "/home/ikarus/Documents/hack/usb/greatfet-venv/lib/python3.8/site-packages/pygreat/comms.py", line 780, in execute_command
    result = self.unpack(out_format, raw_result)
  File "/home/ikarus/Documents/hack/usb/greatfet-venv/lib/python3.8/site-packages/pygreat/comms.py", line 617, in unpack
    bytes_consumed, raw_bytes = cls._split_off_bytes_for_format(subformat, raw_bytes)
  File "/home/ikarus/Documents/hack/usb/greatfet-venv/lib/python3.8/site-packages/pygreat/comms.py", line 425, in _split_off_bytes_for_format
    num_bytes_consumed = cls._get_bytes_consumed_by_format(format_string, raw_bytes)
  File "/home/ikarus/Documents/hack/usb/greatfet-venv/lib/python3.8/site-packages/pygreat/comms.py", line 402, in _get_bytes_consumed_by_format
    return int(match.groups(1))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'

@ikarus23 here is a workaround for that error message: https://github.com/greatscottgadgets/libgreat/issues/18

Hi, @ikarus23 are you still experiencing this issue?

I'm going to close this as there hasn't been a response in a while, but please re-open this issue or open a new one if you still need assistance.


Storage: Use generic x86-64-v2

DPDK requires a minimum x86 arch level that includes sse4.2.  gcc
provides a set of generic x86-64-v levels for different architecture
versions.  Version 2 is the minimum that meets the requirements for
DPDK.

Set x86-64-v2 for spdk container
Print actual x86-64-v level
Specify cr to use for golang containers for podman

Signed-off-by: Steven Royer<EMAIL_ADDRESS>

For example: https://github.com/opiproject/opi-poc/runs/7683612735?check_suite_focus=true#step:11:22


PR: Show tests for plugins that use a mocked main window

Before this change it was not possible to visually inspect tests for the IPython console and other plugins included in this PR, even when pytest-xvfb is not installed.

Hello @ccordoba12! Thanks for submitting the PR.

There are no PEP8 issues in the file spyder/plugins/editor/plugin.py !

There are no PEP8 issues in the file spyder/plugins/editor/tests/test_plugin.py !

There are no PEP8 issues in the file spyder/plugins/help/tests/test_plugin.py !

There are no PEP8 issues in the file spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py !


Porsche Macan

I can log into my Porsche Macan on the my Porsche app as I used to on the my BMW app yet the integration will not load my car
I understand it’s not listed as a compatible vehicle but surely someone who is much smarter than me as a lot of these integrations are awesome can work this out.

We're back to square one, cf. #242 and reopen any new issues.


Align Error Structure with design guideline

Already discussed before the break but to be sure to not forget it: We should align error structure in both flavor with adding a status attribute. Source: https://github.com/camaraproject/WorkingGroups/blob/main/Commonalities/documentation/API-design-guidelines.md#6-error-responses.

Agreed during 18th Januaty meeting to align proposals on this matter

Think we can close this issue

Yes it has been implemented in our swaggers.


Getting started broken on errai-ui: Unable to find 'org/jboss/errai/databinding/DataBinding.gwt.xml' on your classpath

I only need to use errai-ui for now, so I followed the instructions on this page:
http://erraiframework.org/getting-started/index.html#ErraiUIPage
and added the dependency and inherited module, which causes:
[INFO] --- gwt-maven-plugin:1.0-rc-6:compile (default-compile) @ optashift-employee-rostering-gwtui ---
[INFO] Loading inherited module 'org.optaplanner.openshift.employeerostering.gwtui.WorkerRosteringWebapp'
[INFO]    Loading inherited module 'org.jboss.errai.ui.UI'
[INFO]       Loading inherited module 'org.jboss.errai.databinding.DataBinding'
[INFO]          [ERROR] Unable to find 'org/jboss/errai/databinding/DataBinding.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

Workaround: add this dependency:
    <dependency>
      <groupId>org.jboss.errai</groupId>
      <artifactId>errai-data-binding</artifactId>
    </dependency>

Looks like errai-ui is missing a transitive non-optional dependency on errai-data-binding.

I've submitted a PR for this: https://github.com/errai/errai/pull/259
Also, looks like that all usages of <scope>provided</scope> in dependency elements should be replaced by <optional>true</optional>.

Hi @ge0ffrey,
Closing this issue as I've copied it to JIRA.