Failed to create database: Bad status code during Create(CREATE DATABASE stress): 400, body: "missing parameter: db"

[root@53 bin]# ./influx-stress insert cpu,host=server,location=us-west,id=myid busy=100,idle=10,random=5i -r 30s  --host http://<IP_ADDRESS>:9096/write?u=admin&p=admin
[1] 2695
[root@53 bin]# Using point template: cpu,host=server,location=us-west,id=myid busy=100,idle=10,random=5i
Using batch size of 10000 line(s)
Spreading writes across 100000 series
Throttling output to ~200000 points/sec
Using 20 concurrent writer(s)
Running until ~18446744073709551615 points sent or until ~30s has elapsed
Failed to create database: Bad status code during Create(CREATE DATABASE stress): 400, body: "missing parameter: db"
Aborting.

@xander973
just run ./influx-stress insert cpu,host=server,location=us-west,id=myid busy=100,idle=10,random=5i -r 30s --host http://<IP_ADDRESS>:9096, and http://<IP_ADDRESS>:9096 is the url of influxdb

I have same issue, influxdb is 2.0.4(version)

influx-stress currently only targets influxdb v1

influx-stress currently only targets influxdb v1

Do you have a plan for 2.0

@shaolimin There is no plan yet, my main work is on the new version of influx-proxy and apache/dolphinscheduler
ps: There are some bugs and has been no repair and update on influxdata/influx-stress. I have fixed some problems on forked chengshiwen/influx-stress


Basic security audit policy settings documentation uses old WIDs

The product in every subsection of 'Basic security audit policy settings' documentation is listed as Windows 10, but the documentation uses legacy/old Windows event IDs.

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

ID: d8d03917-ca6d-d5e1-a45a-7efe22ca3258
Version Independent ID: 8b79609a-397b-d60a-f790-9a69f62c39c8
Content: Basic security audit policy settings (Windows 10)
Content Source: windows/security/threat-protection/auditing/basic-security-audit-policy-settings.md
Product: w10
GitHub Login: @brianlic-msft
Microsoft Alias: justinha

@officedocsbot assign @e0i

@scwxtsr
The issue has been noted and the document will be revised in the light of your feedback.
Thank you.

@scwxtsr Thank you for pointing this out. Although the "parent" article which you linked does not need any updates itself, the majority of the articles linked in it do. I have made this known and all these articles will be handled independently:
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-account-logon-events
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-account-management \
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-directory-service-access
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-logon-events
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-object-access
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-policy-change
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-privilege-use
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-process-tracking
https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/basic-audit-system-events

Hello @scwxtsr,
The issue is being closed since your question seems to be answered by VLG17 Feel free to re-open this issue if you feel that it hasn't been answered or that there are further suggestions to improve the documentation itself.
Thanks.

@officedocsbot close

It's 2020.07.15 and the old WIDs are still in there.
Furthermore they do not only apply to Windows 10, but probably for everything after vista and also Server 2008 +

@e0i . Look into this PR #7178

@RAJU2529 : #7178 is not a Pull Request, it is an issue ticket.


DM-39583: Fix lots of deprecation warnings

There are still 25 remaining when the tests run but I don't want to fix all the matplotlib problems.

I was not expecting a core dump...

@mfisherlevine good news is that python 3.11 built everything fine. The 3.10 segv was a bit odd.

These look fine to me too!


How are code produce file processed_tran.xlsx?

@trungtruc123 Have you found the file processed_tran.xlsx ?

@VSK02101996   Have you found the file processed_tran.xlsx?

@chenqianqian-k  Can'T give it freely though. I have created that file using original data set ?


Sync master branch with upstream

Something got out of sync with all the branches and PRs and forks, so the tests on master were broken.
As far as I can tell, our changes are still here, but could use a careful review.

just kidding


Use DefaultSelector as context manager.

PR for #1046, uses the selector as a context manager to ensure that it is properly cleaned up.

Thanks! Can we get a test, please? =)

Sure I can add a test to ensure no fd leakage.

Current coverage is 100% (diff: 100%)

Merging #1049 into master will not change coverage

@@           master   #1049   diff @@
=====================================
  Files          21      21
  Lines        1881    1881
  Methods         0       0
  Messages        0       0
  Branches        0       0
=====================================
  Hits         1881    1881
  Misses          0       0
  Partials        0       0

Powered by Codecov. Last update ed7b0f0...ca97a29

Added the test, seems to be passing on my machine but let's wait for CI. :)

Is this the kind of test you were looking for @Lukasa?

Yup, that would be fine.

TIL it's really annoying to inject into an object that's being used as a context manager with Mock. I'll remove  the mock import.

Now testing each selector available for wait_for_* tests as well. :) All the tests!!!

This PR might be ready for merge. :) 🎉

Ready for review again :)

Got an unrelated fail on Python 3.4. This should be ready to be reviewed again :) Happy holidays @Lukasa !


Use latest templates

Checklist

[x] I have read the Contribution & Best practices Guide.
[x] My branch is up-to-date with the Upstream development branch.
[x] I have added necessary documentation (if appropriate)

Short description of what this resolves:
After editing one of the .hbs template files, a developer must restart their server, because the templates are only loaded at boot time.
When I first started working on the project, this was somewhat confusing. I would make changes to the template, and rebuild the site, but my changes did not appear!
Changes proposed in this pull request:
This PR loads the templates from fresh each time a website is generated.
I imagine this will have minimal effect on the live site, but it will make things easier for developers.
I mentioned this concern in issue #1882.
The PR also deduplicates some of the repeated long lines by extracting that behaviour into a function.
Concerns
This approach means we re-register already registered partials each time a site is generated. According to the handlebars code I don't think this will cause any issues, it will simply overwrite the old partial.

I tried deploying to Heroku but it produced some NPM errors (which told me to read a logfile which I could not find!)
Codacy has been complaining about issues which contradict the settings in .eslintrc
I think I have fixed that by renaming .eslintrc to .eslintrc.json. Now Codacy will use the project's settings.

If I fix the Codacy issues, then eslint will report errors (and the new code will not be consistent with the existing code in this file).
I am not sure if this project really wants to conform to all of Codacy's requirements.
But if it does, then we should change the .eslintrc to match!


Allow Domain Admins to deploy VMs in subdomain networks

ISSUE TYPE

Improvement Request

COMPONENT NAME

Component: API

CLOUDSTACK VERSION

<IP_ADDRESS>

SUMMARY

Currently, a parent domain admin can perform most of the operations in a subdomain such as Add/delete FW,PF rules, stop, start & destroy virtual machines but deploying a virtual machine is not allowed. This design is inconsistent and needs to be improved to allow VM deployment to subdomain networks.
STEPS TO REPRODUCE

Deploy Virtual Machine using API as a parent domain admin to a subdomain guest network.
Deployment fails with 'permission denied'
Try destroying a VM in a subdomain as a parent domain admin, this works. These two are contradicting designs.

When picking up, this should keep the backward compatibility and make this feature configurable in the global settings (or so).

I think historically we never want the domain admin to be able to do it. We need to check if this is a UI limitation (perhaps allowed in API?), I see https://cloudstack.apache.org/api/apidocs-4.18/apis/assignVirtualMachine.html allows domain admin to transfer VMs in the domain to accounts.

@rajujith
domain admin has the operate permission on the resources of users in the domain or sub-domains.
But they cannot use the isolated network of account-scope shared network of users.
this is expected behavior.
(root admin is exceptional)

My 2 cents, there is a workaround for the design limitation by manually adding a record on the network_permissions table, mapping the domain admin account ID to the subdomain network ID. In case the domain admin should not be able to deploy on the subdomains networks in any case, I think the rest of the operations should be consistent and he shouldn't be allowed to stop/start/destroy VMs

To make sure we clear (what seems to me as) the misunderstanding - it's not about domain admin being able to deploy a VM in another-users network alone - but to be able to deploy a VM for another user (in his/user's network). Any other use case (admin-owned VM deployed in another user's network must stay impossible like currently)

@rajujith can you please mention your reproduction steps in detail (step-by-step)?
In my testing I found the following scenarios (in a main branch env):

Both ROOT admin and domain admin can deploy a VM in a network owned by a user in a subdomain when user and domainid params are passed for that user
Both ROOT admin and domain admin can not deploy a VM in a network owned by a user in a subdomain when user and domainid params are not passed

My steps:

Create domain d1 and create a domain-admin account dadmin in this domain
Create subdomain d11 in domain d1 and create a normal user account user1 in it
Using user1 deploy an isolated network n2
Using ROOT admin admin and domain-admin dadmin try deploying VMs in network n2

cc @andrijapanicsb @weizhouapache

@rajujith can you please mention your reproduction steps in detail (step-by-step)? In my testing I found the following scenarios (in a main branch env):

Both ROOT admin and domain admin can deploy a VM in a network owned by a user in a subdomain when user and domainid params are passed for that user
Both ROOT admin and domain admin can not deploy a VM in a network owned by a user in a subdomain when user and domainid params are not passed

My steps:

Create domain d1 and create a domain-admin account dadmin in this domain
Create subdomain d11 in domain d1 and create a normal user account user1 in it
Using user1 deploy an isolated network n2
Using ROOT admin admin and domain-admin dadmin try deploying VMs in network n2

cc @andrijapanicsb @weizhouapache

thanks @shwstppr
the testing results are expected I think.

@rajujith can you please mention your reproduction steps in detail (step-by-step)? In my testing I found the following scenarios (in a main branch env):

Both ROOT admin and domain admin can deploy a VM in a network owned by a user in a subdomain when user and domainid params are passed for that user
Both ROOT admin and domain admin can not deploy a VM in a network owned by a user in a subdomain when user and domainid params are not passed

My steps:

Create domain d1 and create a domain-admin account dadmin in this domain
Create subdomain d11 in domain d1 and create a normal user account user1 in it
Using user1 deploy an isolated network n2
Using ROOT admin admin and domain-admin dadmin try deploying VMs in network n2

cc @andrijapanicsb @weizhouapache

thanks @shwstppr the testing results are expected I think.

I could verify the same scenario and it is working fine. Following are the cases that I've tested
1. Domain admin can create a VM for a user in a subdomain of it (using the network created by the user) by passing "account" and "domainid" parameters. This VM will be owned by that user in that subdomain
2. Domain admin can create a VM in the network created by the user after setting the corresponding network permission to that domain admin. This VM will be owned by the domain admin.
@rajujith if you agree for this we can close this issue.

thanks @harikrishna-patnala  we can close this now.


Linting for Tutorial

quick linting

hi, buddy
I can't Compile 0.36.0 and 0.37.0，but your sdk-application-tutorial use cosmos-sdk 0.36.0, so I can't use it,
could u can give me a version code of cosmos sdk 0.35.0 with sdk-application-tutorial?
please.   thanks

can you please show me the error you are getting? not sure why its not compiling, I can compile and others can as well.

OS: macOS mojave 10.14.3
cosmos sdk version:0.36.0  git branch -->release/v0.36.0
localhost:cosmos-sdk skill$ make tools install
make: Nothing to be done for tools'. make: *** No rule to make target install'.  Stop.
localhost:cosmos-sdk skill$ make install
make: *** No rule to make target `install'.  Stop.
localhost:cosmos-sdk skill$ make
/Users/skill/workspace/workgo/bin/golangci-lint run
server/start.go:103:2: unreachable code (govet)
return nil
^
x/simulation/event_stats.go:41:17: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
fmt.Fprintf(w, string(obj))
^
x/staking/keeper/querier.go:63:6: SA6005: should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b) (staticcheck)
if strings.ToLower(val.GetStatus().String()) == strings.ToLower(params.Status) {
^
WARN [runner/nolint] Found unknown linters in //nolint directives: accepting nolint, deadcode unused, gosec error is arising in testing files, unparam deadcode unused, unused deadcode
make: *** [lint] Error 1

ah cosmos-sdk 0.36 does not hold make install anymore. the sdk has no reason to be installed. If you wan tto install gaia, then you have to go the gaia repo. if you want to build the tutorial then you make install when you are in the root here.

gaia has installed，cosmos-sdk 0.36 does not make，so it lead to tutorial more errors。I tried make tutorial as root.
localhost:sdk-application-tutorial skill$ sudo make
golangci-lint run
WARN [runner/megacheck] Can't run megacheck because of compilation errors in packages [_/Users/skill/workspace/workgo/src/github.com/cosmos/sdk-application-tutorial _/Users/skill/workspace/workgo/src/github.com/cosmos/sdk-application-tutorial/x/nameservice _/Users/skill/workspace/workgo/src/github.com/cosmos/sdk-application-tutorial/x/nameservice/client/cli _/Users/skill/workspace/workgo/src/github.com/cosmos/sdk-application-tutorial/x/nameservice/client/rest _/Users/skill/workspace/workgo/src/github.com/cosmos/sdk-application-tutorial/x/nameservice/types]: app.go:7: could not import github.com/tendermint/tendermint/abci/types (invalid package name: "") and 58 more errors: run golangci-lint run --no-config --disable-all -E typecheck to see all errors
app.go:7:7: could not import github.com/tendermint/tendermint/abci/types (invalid package name: "") (typecheck)
abci "github.com/tendermint/tendermint/abci/types"
^
app.go:8:6: could not import github.com/tendermint/tendermint/libs/common (invalid package name: "") (typecheck)
cmn "github.com/tendermint/tendermint/libs/common"
^
app.go:9:6: could not import github.com/tendermint/tendermint/libs/db (invalid package name: "") (typecheck)
dbm "github.com/tendermint/tendermint/libs/db"
^
cmd/nscli/main.go:7:2: could not import github.com/cosmos/cosmos-sdk/client (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/client"
^
cmd/nscli/main.go:8:2: could not import github.com/cosmos/cosmos-sdk/client/keys (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/client/keys"
^
cmd/nscli/main.go:9:2: could not import github.com/cosmos/cosmos-sdk/client/lcd (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/client/lcd"
^
cmd/nsd/main.go:7:2: could not import github.com/cosmos/cosmos-sdk/server (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/server"
^
cmd/nsd/main.go:8:2: could not import github.com/cosmos/cosmos-sdk/x/genaccounts (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/x/genaccounts"
^
cmd/nsd/main.go:9:13: could not import github.com/cosmos/cosmos-sdk/x/genaccounts/client/cli (invalid package name: "") (typecheck)
genaccscli "github.com/cosmos/cosmos-sdk/x/genaccounts/client/cli"
^
x/nameservice/alias.go:4:2: could not import github.com/cosmos/sdk-application-tutorial/x/nameservice/types (invalid package name: "") (typecheck)
"github.com/cosmos/sdk-application-tutorial/x/nameservice/types"
^
x/nameservice/genesis.go:6:6: could not import github.com/cosmos/cosmos-sdk/types (invalid package name: "") (typecheck)
sdk "github.com/cosmos/cosmos-sdk/types"
^
x/nameservice/genesis.go:7:7: could not import github.com/tendermint/tendermint/abci/types (invalid package name: "") (typecheck)
abci "github.com/tendermint/tendermint/abci/types"
^
x/nameservice/keeper.go:4:2: could not import github.com/cosmos/cosmos-sdk/codec (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/codec"
^
x/nameservice/keeper.go:5:2: could not import github.com/cosmos/cosmos-sdk/x/bank (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/x/bank"
^
x/nameservice/module.go:6:2: could not import github.com/gorilla/mux (invalid package name: "") (typecheck)
"github.com/gorilla/mux"
^
x/nameservice/module.go:7:2: could not import github.com/spf13/cobra (invalid package name: "") (typecheck)
"github.com/spf13/cobra"
^
x/nameservice/module.go:10:2: could not import github.com/cosmos/cosmos-sdk/types/module (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/types/module"
^
x/nameservice/handler.go:4:2: "fmt" imported but not used (typecheck)
"fmt"
^
x/nameservice/client/cli/query.go:6:2: could not import github.com/cosmos/cosmos-sdk/client (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/client"
^
x/nameservice/client/cli/query.go:7:2: could not import github.com/cosmos/cosmos-sdk/client/context (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/client/context"
^
x/nameservice/client/cli/query.go:8:2: could not import github.com/cosmos/cosmos-sdk/codec (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/codec"
^
x/nameservice/client/cli/tx.go:9:6: could not import github.com/cosmos/cosmos-sdk/types (invalid package name: "") (typecheck)
sdk "github.com/cosmos/cosmos-sdk/types"
^
x/nameservice/client/cli/tx.go:10:2: could not import github.com/cosmos/cosmos-sdk/x/auth (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/x/auth"
^
x/nameservice/client/cli/tx.go:11:2: could not import github.com/cosmos/cosmos-sdk/x/auth/client/utils (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/x/auth/client/utils"
^
x/nameservice/client/rest/rest.go:7:2: could not import github.com/cosmos/cosmos-sdk/client/context (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/client/context"
^
x/nameservice/client/rest/rest.go:8:2: could not import github.com/cosmos/sdk-application-tutorial/x/nameservice/types (invalid package name: "") (typecheck)
"github.com/cosmos/sdk-application-tutorial/x/nameservice/types"
^
x/nameservice/client/rest/rest.go:10:6: could not import github.com/cosmos/cosmos-sdk/types (invalid package name: "") (typecheck)
sdk "github.com/cosmos/cosmos-sdk/types"
^
x/nameservice/types/codec.go:4:2: could not import github.com/cosmos/cosmos-sdk/codec (invalid package name: "") (typecheck)
"github.com/cosmos/cosmos-sdk/codec"
^
make: *** [lint] Error 1


Headless mode possible?

Is it possible with this library?

how

why

@nothingismagick because webview are more lightweight for automation

Cool, Not only me had this question :)


Add documentation for installer controller implementation

Describe the solution you'd like
Add documentation for installer controller implementation

/assign


Manipulate data

User story
As a developer testing micro-service connections, I should be able to modify API data before it gets sent to its destination, so that I can test edge cases that may be difficult to come by naturally.
Sub-tasks

[x] Determine available modifications
⤷ All those supported by react-json-view: add, delete, edit value
[x] ~Mock up UI for data manipulations~
[x] ~Write unit tests to ensure modifications persist~

Notes

This issue is closely linked to how we present API data (#2), how we “save” tests, and how we send data to the destination micro-service
Let’s think carefully about what data modifications make the most sense to support—we don’t necessarily need to support arbitrary changes and it may make for a better UX to constrain modifications to the most common edge case scenarios

react-son-view takes care of most of this for us. Closing for now, but as we discussed we may need to revisit this issue as we build out support for non-JSON data formats


BUGFIX: Allow jinja namespace command to work.

Description:
Allows the Jinja 2 namesapce class that was added in 2.10 to work in Home Assistant.
namespace does not currently work as Home Assistant is using the ImmutableSandboxedEnvironment and when namespace was added no code was written on the Jinja side to handle this situation. In the case of dicts or lists attempting to be mutated a jinja error is correctly raised and shown to the user, whereas when a namespace is used  in conjunction with this environment type a recursive loop is entered with no output given to the user and a stacktrace thrown into the logs.
Given that the namespace class was added in order to stop the need for the hacks that the ImmutableSandboxedEnvironment is protecting against, and we're already specialcasing AllStates as a mutable object it seems reasonable to do the same with namespace.
The added test fails before the change in helpers/template.py is applied.
Related issue (if applicable): fixes #16480
Pull request in home-assistant.io with documentation (if applicable): n/a
Example entry for configuration.yaml (if applicable): n/a
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Nice!


Release

Things to do for release:

[ ] Update spiner
[x] Merge in #246. Person responsible: @mauneyc-LANL
[ ] Merge in #245. Person responsible: @dholladay00

@annapiegra do you have an ETA on https://github.com/lanl/singularity-eos/pull/278? I think we can do a minor version release after this one if you need significantly more time. I think @dholladay00 's MR will be sometime next week I'd imagine

I need to add warnings for minenergy fucntions in debug mode (will do by the end of the week) and docs. This still needs the new spack env since the spiner dependencies in the singularity_eos.f90 are hacked away and the spack mr will fix them.
--
Anna Pietarila Graham
Deputy Group Leader - HPC-ENV
Los Alamos National Laboratory
<EMAIL_ADDRESS>Pronouns: she/her
505-667-5785 (onsite Mon-Wed)
From: Jeff Peterson @.>
Reply-To: lanl/singularity-eos @.>
Date: Thursday, August 3, 2023 at 9:53 AM
To: lanl/singularity-eos @.>
Cc: Anna Pietarila Graham @.>, Mention @.***>
Subject: [EXTERNAL] Re: [lanl/singularity-eos] Release (Issue #272)
@annapiegrahttps://urldefense.com/v3/__https:/github.com/annapiegra__;!!Bt8fGhp8LhKGRg!FVQ6Oauw2-VdPgCT6VJHlJ9Gg68a39E7K31K1Q6mg9_6ed-9PjiIU8dtTL5L-27y71iyxBPoR7Dq5Ih2C1dNO3M$ do you have an ETA on #278https://urldefense.com/v3/__https:/github.com/lanl/singularity-eos/pull/278__;!!Bt8fGhp8LhKGRg!FVQ6Oauw2-VdPgCT6VJHlJ9Gg68a39E7K31K1Q6mg9_6ed-9PjiIU8dtTL5L-27y71iyxBPoR7Dq5Ih2fMN-cFo$? I think we can do a minor version release after this one if you need significantly more time. I think @dholladay00https://urldefense.com/v3/__https:/github.com/dholladay00__;!!Bt8fGhp8LhKGRg!FVQ6Oauw2-VdPgCT6VJHlJ9Gg68a39E7K31K1Q6mg9_6ed-9PjiIU8dtTL5L-27y71iyxBPoR7Dq5Ih2rinLu7M$ 's MR will be sometime next week I'd imagine
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/lanl/singularity-eos/issues/272*issuecomment-1664235216__;Iw!!Bt8fGhp8LhKGRg!FVQ6Oauw2-VdPgCT6VJHlJ9Gg68a39E7K31K1Q6mg9_6ed-9PjiIU8dtTL5L-27y71iyxBPoR7Dq5Ih2GZuuc9s$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AU36G6KF6FMUCG6NTFKEPRTXTPCN7ANCNFSM6AAAAAA2IANIV4__;!!Bt8fGhp8LhKGRg!FVQ6Oauw2-VdPgCT6VJHlJ9Gg68a39E7K31K1Q6mg9_6ed-9PjiIU8dtTL5L-27y71iyxBPoR7Dq5Ih2s_Yhh10$.
You are receiving this because you were mentioned.Message ID: @.***>

FYI @Yurlungur since #246 makes spiner optional, I think the spack isn't completely consistent with the CMake as I'm running into some missing spiner symbols when I try to link to singularity-eos. I'll make an MR to fix this sometime this week, but I'd want to get this in before the release

this is done.


COPY STILL WIP - Create stacks explorer sandbox

I plan to come back to this, just wanted to submit these changes in case I lose them. #githubnoob

@He1DAr - here's a feature guide for sandbox explorer. LMK what you think. The only outstanding item here is
to write an example for calling an NFT mint function from the Sandbox, I would just need a mint contract and I think I can take it from there. thanks!

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


Preparation for selected panel

Note

Rename ShareTargetSearchResultTableViewController to ShareTargetSearchResultViewController
For easier add selected panel view to search result table viewController, add a viewController to hold the original ShareTargetSearchResultTableViewController
the main change part could be view in the commit: https://github.com/line/line-sdk-ios-swift/commit/cd95abc6f4f33b2a1c3224713df288d6c285a0fb

@eJamesLin I think we can merge it first. For the comment, just do it when it's necessary later.


Allows Content-Length for 304 Not Modified response

Resolves #2099

@Tratcher Care to review? Feel free to merge.

Nice and simple

@Tratcher I was thinking is that maybe we should verify that the actual length of the response body is zero for 304 responses instead of just skipping the response-body-too-short validation.
I didn't bring this up in the PR review because it's a separate issue and we'll probably want to do the same validation for HEAD requests. Do you think this is worth addressing?

I'm not too familiar with the spec requires wrt this. Is a 304 response ever allowed to have a non-empty response body?

304 is pretty special, it's allot like a head request. It explicitly must not have a response body, but it is allowed to describe the body it would have had if it were a 200.

@halter73 I thought about the response length validation as well, but as you said is a separate issue. Also it can be considered a breaking change.
I'm happy to have a look if I find a clean way to implement it.
Should I open a issue for discussion?

We're good then. We already log and ignore response body writes for HEAD requests and 204/205/304 responses.
I'm assuming we should not allow a non-zero content length to be set for 204 and 205 responses.

See here for the logic that decides whether or not to ignore writes to the response body.

304 is include, see here
and it's already handled as write throws if it can't have body.
Tests here
Nothing else to be done, right?

I think we have everything covered. I just wanted someone to agree that allowing a non-zero Content-Length response header for 204 and 205 responses is silly.


[Bug]: Commons app not showing pictures uploaded via web

Summary
I mostly upload images via Commons app, but sometimes I do it via web interface on my desktop via this webpage: https://commons.wikimedia.org/wiki/Special:UploadWizard
However, Commons app does not seem to show those uploads (on main page, or via Hamburger menu / Username / Contributions), instead of only showing the pictures uploaded via Commons app.  Even when I try to "swipe down" to try to refresh the list of pictures, or enable/disable limited connection mode in attempt to get list of contributions to "sync".
That is, needless to say, highly confusing, as then I imagine I did not upload that pictures at all...
Note: I'm lately also experiencing:

https://github.com/commons-app/apps-android-commons/issues/5287
https://github.com/commons-app/apps-android-commons/issues/5462

if that might be related? I'm note 100% sure, but I think that  it updated automatically correctly few months back (at least I still seem to see some older pictures in the Commons app that were uploaded e.g. in November 2023 via web interface. But the new ones in last week or two do not seem to get into the app)
Steps to reproduce

Have some pics uploaded via Commons app
note the list of Contributions on main screen in Commons app
upload some pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard
open Commons app again and check list of contributions -- it didn't change; i.e. it does not show new contributions even if app is restarted or one tries to refresh...

Expected behaviour
after I upload some pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard, they should be visible in Commons app too (at least after app restart / refresh).
Actual behaviour
pictures to commons via https://commons.wikimedia.org/wiki/Special:UploadWizard are not visible in Commons app.
Device name
Samsung Galaxy S23+
Android version
Android 14
Commons app version
4.2.1~14b6c455b (latest F-droid)
Device logs
CommonsAppLogs2.zip
Screen-shots
note that that yellow circle pic (Turning marker on Jarun.jpg) is missing in Commons app display, while it is visible on my commons web page.
https://github.com/commons-app/apps-android-commons/assets/156656/8f54ce13-45f7-4653-8061-5b0fa811da6f
Would you like to work on the issue?
Prefer not

I'm not sure if this has started happening recently, I remember seeing some requests in the Play Store reviews as well. For instance, this is from March 2023 (this was for tablets, but I we use the same logic I believe):
When I upload a file from computer, I can't see the updated file from here.

Also, does some sort of workaround like the one suggested here work? Some observations like the ones shared here might help in fixing this bug too.

Also, does some sort of workaround like the one suggested https://github.com/commons-app/apps-android-commons/issues/5131#issuecomment-1368408843 work?

Yes: logging out, and then logging back in makes the web contributions appear in the Commons app.

I can confirm that bug is still present in latest f-droid release (5.0.1~af028cbdd) on Android 14 (OneUI 6.1), Samsung Galaxy S23+

While signing out and then signing in again helps load the images from web, interestingly, Commons treats the images uploaded via web and app wizard differently. Even though I'd uploaded this picture via web, I didn't get any warning that the picture exists already while uploading from the app (it shows up in my contributions list on the app because of the workaround I'd followed). The picture got uploaded again, and is still not showing as a duplicate.

I didn't get any warning that the picture exists already while uploading from the app

@RitikaPahwa4444 you should probably best open that as a separate issue (mentioning this one) as it seems a different problem entirely. Without looking at the source, I'd guess that either:

app might keep hashes of file that it has uploaded, but doesn't have hashes of other files on the Commons, or
the hash of the same file shared via different ways actually has changed - i.e. Android 10+ will silently modifies images on sharing depending on permissions of the app the image has been shared to - see e.g. https://github.com/marcosdiez/shareviahttp/issues/84 and https://github.com/nextcloud/android/issues/6248#issuecomment-1147167524)

I tried uploading a picture from Web Upload Wizard and the images updated successfully on the app. However, I uploaded it from the mobile browser rather than my computer. Do you still have this issue @mnalis?

I tried uploading a picture from Web Upload Wizard and the images updated successfully on the app. However, I uploaded it from the mobile browser rather than my computer. Are you still facing the same issue @mnalis?

This is encouraging; can anyone confirm whether the functionality is now working correctly?
Thanks,
Chris.

it does not show new contributions even if app is restarted...

For me, on the latest F-Droid release (5.1.0), the contributions made on the web upload wizard appear after the app is restarted (by first removing it from the recents screen).

or one tries to refresh

There doesn't seem to be any pull-to-refresh gesture (as attempted in the attached screen recording). Implementing one is fairly straightforward. If it isn't seen as introducing unnecessary complexity, I can take it on.

I just merged https://github.com/commons-app/apps-android-commons/pull/6041 which fixes this. 🙂


Missing contact flow descriptions

I copied various flows from one instance to an other perfectly fine but I noticed descriptions were missing on the imported flows

Thank you @themarkyates for your report. This issue will be addressed in the next release v1.3.4. Thank you for your patience.

Thanks

Version 1.3.4 has been pushed to the development branch, and will be released to main after more testing. Feel free to try it out from the development branch @themarkyates .

@kjacky I have tested the new version of the scripts 1.3.4 and I don't seem to get the descriptions to copy across with the flows


Icons on the URL bar do not fit properly

Some icons on the URL bar look weird, the circle they are in is smaller than the icon (this happens for the Pocker icon and the Reader icon).
There are two circles around icons at the moment, one that appears when you hover your cursor over the specific icon, and another that surrounds the icon when you hover over the URL bar, I think this could be work out by only having the first mentioned circle, and deleting the other which makes looks them weird.
Also, addresses look a bit awful in my opinion since they are too close to the beginning of the bar, a space to the left would make it look better, but that's kind of subjective, I think.
Screenshot:
https://upload.vaa.red/niGKF#49cc01ed31a130fb5fa99768b22cf32c

I don't have this issue using normal density or compact density on Firefox Dev 86.03. Have you tried experimenting on a fresh Firefox profile?

I don't have this issue using normal density or compact density on Firefox Dev 86.03. Have you tried experimenting on a fresh Firefox profile?


Test doesn't do what it says it does

These lines say:
  -- make sure table.find checks the hash portion as well by constructing a table literal that forces the value into the hash part
  assert(table.find({[(1)] = true}, true) == 1)

The test passes, but does it really succeed in testing what it claims to? I added a C function to ltablib.cpp that will just return the arraysize of a table argument. When I then call table.size({[(1)] = true}), I get a return value of 1, indicating that the literal being created puts the entry in the array part, not in the hash part.
Perhaps in some older version of Luau, the table literal was handled in the way this test references, but this behavior is now gone, and the test was never updated?

There's a similar test in tests/conformance/basic.lua, starting around line 729.

Yeah this predates the table invariant. I think these will need to be adjusted to find with an offset as that's the only case when indexing with an increasing sequence can access hash part now.


Replay Weirdness

The current replay code is really weird and a few things seem off:

Replay data contains exact HP, but only if the game is over. This is intentional (there's a comment in the code mentioning it). However, the replay website doesn't have a way to view exact HP except for viewing the log directly and a very unobvious on-hover title on the percentage numbers. Is this not an information leak? It's pretty easy to find a team's EVs this way.
You can create replays in the middle of games. Isn't that just ridiculous?

Creating replays in the middle of the games is definitely an information leak.

Eh, the exact HP is not shown unless the replay is saved at the end of the game:
if (room.battle.ended) {
	// If the battle is finished when /savereplay is used, include
	// exact HP in the replay log.
	logidx = 3;
}

You can create replays in the middle of games. Isn't that just ridiculous?

No, it's not o_O

Creating replays in the middle of the games is definitely an information leak. I don't see why the ability to do so is needed anyway.

The information is split, so there is no leak there...

However, the replay website doesn't have a way to view exact HP except for viewing the log directly and a very unobvious on-hover title on the percentage numbers. Is this not an information leak? It's pretty easy to find a team's EVs this way.

There is no leak whatsoever regarding replays. If there is a leak there, it's regarding the percentages vs pixels issue, which doesn't concern this Issue Tracker, but Smogon Policy.

You can create replays in the middle of games. Isn't that just ridiculous?

No, it's not o_O

Why would you ever need to save a replay in the middle of a game?

For lots of reasons, and I have used that functionality more than the post-battle saves in the last year.

Why would you ever need to save a replay in the middle of a game?

The game could have crashed or experienced a bug preventing the game from ending. That's a pretty big reason to save a replay before the game ends.

Is this not an information leak? It's pretty easy to find a team's EVs this way.

Do people not want their HP EVs known even after the game's ended? I suppose we could only save spectator-visible values instead of exact values, if enough people have a problem with this. Maybe we should poll it or something.

Sometimes it's not just the HP EVs but the amount of damage certain moves do. For example: I was playing a LC battle against a team I'd faced before. I purposely made a decision to switch because I knew the opposing Timburr had odd EVs and could KO my Lileep.

Ew this falls into another scouting issue. I guess if people have an issue
with it, it's definitely s point of interest. As long as no info is leaked
from the content of the current battle it's fine imo. Until we end up with
BoN tournaments in tournament mode anyway.

--
-- Hugh Gordon

Should this be moved to Policy Review?

I don't think it needs to, I think we'll just remove exact HP information from replays.


Coinflex - There was an error requesting exchange info "Service Unavailable"

Describe the bug
While checking development branch, we have noticed this error on the log panel for Coinflex perpetual connector ERROR - There was an error requesting exchange info...

2022-09-19 09:02:16,309 - 2384 - hummingbot.connector.derivative.coinflex_perpetual.coinflex_perpetual_api_order_book_data_source - ERROR - There was an error requesting exchange info ({'timestamp': '2022-09-19T01:02:16.502+0000', 'path': '/v2/all/markets', 'status': 503, 'error': 'Service Unavailable', 'message': 'Unable to find instance for service-markets', 'requestId': '507528ea-98828', 'errors': 'Service Unavailable'})
2022-09-19 09:02:16,396 - 2384 - hummingbot.connector.exchange.coinflex.coinflex_api_order_book_data_source - ERROR - There was an error requesting exchange info ({'timestamp': '2022-09-19T01:02:16.523+0000', 'path': '/v2/all/markets', 'status': 503, 'error': 'Service Unavailable', 'message': 'Unable to find instance for service-markets', 'requestId': '77d40ba0-103149', 'errors': 'Service Unavailable'})

Note: While this is observed happening on the log panel, it does not seem to affect other connectors and the client is working as expected.
Steps To Reproduce

Open hummingbot client
Check log panel for the error returned by Coinflex perpetual connector

Release version
Development dev-1.8.0
Attachments
logs_hummingbot.log

As we discussed in our meeting, this is not an issue but is the expected behavior. I think that we should vote to remove this exchange because the order book is empty and the service is unavailable frequently.

Happened again on latest development (dev-1.11.0)
Bot flooded with errors on the initial start
2022-12-07 08:30:21,771 - 131983 - hummingbot.connector.derivative.coinflex_perpetual.coinflex_perpetual_api_order_book_data_source - ERROR - There was an error requesting exchange info ({'errors': '<!DOCTYPE html>\n<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->\n<!--[if I ... (truncated)', 'status': 502})
2022-12-07 08:30:33,033 - 131983 - hummingbot.connector.exchange.coinflex.coinflex_api_order_book_data_source - ERROR - There was an error requesting exchange info ({'errors': None, 'status': None})

https://github.com/hummingbot/hummingbot/pull/5943 deployed to development branch
connector will be removed on the next release version 1.11


MergeTable()在ToPageListAsync中sql语句错误，ToListAsync中是好的【sqlSugarCore <IP_ADDRESS>】

我的需求 写法是这样的：
var _list = await repositoryBase.Db.Queryable<SearchDayInfo>()
                .With(SqlWith.NoLock)
                .Where(_expTime)
                .GroupBy(a => new { a.OnlyQuerywordId })
                .Select(a => new KeywordQueryDbInfo
                {
                    OnlyQuerywordId = a.OnlyQuerywordId,
                    Cost = SqlFunc.AggregateSum(a.Cost),
                    Click = SqlFunc.AggregateSum(a.Click),
                    Impression = SqlFunc.AggregateSum(a.Impression),
                })
                .MergeTable()
                .Select(a => new KeywordQueryDbInfo
                {
                    OnlyQuerywordId = a.OnlyQuerywordId,
                    Cost = a.Cost,
                    Click = a.Click,
                    Impression = a.Impression
                })
                .OrderBy("cost desc")
                .ToPageListAsync(where.PageNo, where.PageSize, _totalCount);

生成的sql语句：[ExpandoObject]本应该是group的sql语句
SELECT * FROM (SELECT  [OnlyQuerywordId] AS [OnlyQuerywordId] , [Cost] AS [Cost] , [Click] AS [Click] , [Impression] AS [Impression] ,ROW_NUMBER() OVER(ORDER BY cost desc) AS RowIndex  FROM [ExpandoObject] ) T WHERE RowIndex BETWEEN 1 AND 10
我想要的sql语句是这样的：
SELECT * FROM (SELECT  [OnlyQuerywordId] AS [OnlyQuerywordId] , [Cost] AS [Cost] , [Click] AS [Click] , [Impression] AS [Impression] ,ROW_NUMBER() OVER(ORDER BY cost desc) AS RowIndex  FROM  (SELECT  [only_queryword_id] AS [OnlyQuerywordId] , SUM([cost]) AS [Cost] , SUM([click]) AS [Click] , SUM([impression]) AS [Impression]  FROM [search_day] WITH(NOLOCK)   WHERE (( [only_queryword_id] > '0' ) AND  ([v_date] BETWEEN '20190916' AND '20190926') )GROUP BY [only_queryword_id] ) MergeTable  ) T WHERE RowIndex BETWEEN 1 AND 10
上面的sql是我用下面的写法生成的：
var _list = await repositoryBase.Db.Queryable<SearchDayInfo>()
                .With(SqlWith.NoLock)
                .Where(_expTime)
                .GroupBy(a => new { a.OnlyQuerywordId })
                .Select(a => new KeywordQueryDbInfo
                {
                    OnlyQuerywordId = a.OnlyQuerywordId,
                    Cost = SqlFunc.AggregateSum(a.Cost),
                    Click = SqlFunc.AggregateSum(a.Click),
                    Impression = SqlFunc.AggregateSum(a.Impression),
                })
                .MergeTable()
                .Select(a => new KeywordQueryDbInfo
                {
                    OnlyQuerywordId = a.OnlyQuerywordId,
                    Cost = a.Cost,
                    Click = a.Click,
                    Impression = a.Impression
                })
                .OrderBy("cost desc")
                .Take(10)
                .ToListAsync();

在 sqlSugarCore <IP_ADDRESS> 问题依旧


CAMEL-11575 - Rename http4s into https4 which is the real component name

Thanks for the PR it has been merged. Do you mind closing this?

Thanks for merging it.


fix(dotnet): allow down-casting to parent interface type

Cast controls were too strict and prevented the framework from
successfully down-casting an object reference to a parent interface of
it's declared type; causing a cast error.
The new code looks for class compatibility using the standard .NET
primitives and successfully performs the requested cast.
Fixes #982

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Added the mighty Python test (I swear that was always the plan, but I knew this was not a problem there, and I had to turn to other problems for a moment :D)

AWS CodeBuild CI Report

Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Farming Station does not completely chop down ID Menril Trees

Issue Description:
As repoted in CyclopsMC/IntegratedDynamics#75, the Farming Station does not completely chop down the Menril Trees from Integrated Dynamics.
Menril Trees consist of two blocks (each having several rotated variants), one for the regular log and another for "filled" logs.
The farming station successfully chops down all regular log blocks, but skips the "filled" logs.
Both blocks are registered in the oredict as "logWood".
Not sure if this can be considered as a bug, or if separate compatibility needs to be implemented for this.
What happens:
The Menril Tree is not completely chopped down, the "filled" variant blocks still remain.
What you expected to happen:
The Menril Tree must be completely chopped down.
Steps to reproduce:

Place Farming Station with axe and power
Add Menril Saplings to the Farming Station inventory
Wait until a tree grows and is (partially) chopped down

Affected Versions (Do not use "latest"):

EnderIO: <IP_ADDRESS>_beta
EnderCore: <IP_ADDRESS>-beta
Minecraft: 1.10.2
Forge: <IP_ADDRESS>1

The normal TreeHarvester will harvest all blocks that are the same as the starting block plus all kinds of leaves.
So yes, this tree needs a special harvester.

On the latest development build of EnderIO and I have yet to see a simple Oak tree to be chopped down completely. There is always or mostly always 1 log left to be chopped down. Not sure why.


Create CODE_OF_CONDUCT.md

Just checking all the coding standards boxes here. This is a boiler plate (but pretty comprehensive) code of conduct.

Good for a first pass. We'll revisit in a bit.


Parse Info Object

See #175
Add Info struct to OpenAPI, cause Info Object is required.
Also test parsing function (only yaml file).
Checklist:

[x] Tests for the changes have been added (for bug fixes / features / refactoring)

Codecov Report

Merging #192 (0945321) into main (da9fcaa) will increase coverage by 2.63%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
+ Coverage   65.69%   68.33%   +2.63%
==========================================
  Files          10       10
  Lines         379      379
==========================================
+ Hits          249      259      +10
+ Misses        123      110      -13
- Partials        7       10       +3

Impacted Files
Coverage Δ

internal/faker/faker.go
95.27% <100.00%> (ø)

internal/faker/person.go
95.65% <0.00%> (ø)

internal/faker/internet.go
100.00% <0.00%> (+14.28%)
:arrow_up:

internal/openapi3/parse.go
32.00% <0.00%> (+32.00%)
:arrow_up:

Continue to review full report at Codecov.

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

@mxv2, wow! Thank you!


Release it in F-Droid

Do some research on how to do it

created issue #79 to keep track of each part of this process

https://f-droid.org/docs/Submitting_to_F-Droid_Quick_Start_Guide/


Bar and column width/height calculated as NaN

When no data is present, bar height and column width functions will return NaN, which produces errors in the console. Add logic to return 0 instead.

Closed by #31


can "this" type for callbacks be used yet?

nightly build
the roadmap says it's there and a pull request merged
however although the declaration syntax works, the callsite doesn't seem to be aware of it
function testme(callback: (this: { blackjack: string; otherStuff: number }) => void) {
}

testme(() => {
    this. // <-- expected to be of the type specified in the callback declaration, actual any
});

lambdas inherit their containers this binding. they do not introduce a new this; so regardless of how testme calls it, it will always use this from the global scope in this example.
use function expressions instead:
testme(function() {
    this.blackjack = 0; // Error: blackjack is not  number
});

ah, silly me


No property reserve for type string

Reserve makes part for dynamic array API for append operation, it will avoid reallocations. I'm documenting API differentiations while trying to convert my engine to be LWDR compatible

reserve requires the implementation for the function _d_arraysetcapacity


[Enhancement] Update Contribution guide

Description
We don't need --recurse-submodules any more since switching to use Hugo modules.
Slack discussion
No response

Can I make a pr where I would remove the --recurse-submodules from the readme.md file and contributing.md file?

Closed by #922


Documentation improvement

Please add to Readme/Usage section information about how to properly set up package, meaning that you need to use Mindz\LaravelRelationships\Traits\Relationship trait within model, because without that trait package isn't working.

@tomasztryka you are free to do that!

Done !


Not fixed

As I said before in my issues that you closed
The settings aren't there!

Duplicate of #3, reopened


Turn tip radius simulation into a true pipeline class

This has been fixed @sannant if I remember correctly?

https://github.com/ContactEngineering/SurfaceTopography/blob/master/SurfaceTopography/ScanningProbe/RigidScan.py
I guess not: this is a function and not a class.


Digits switch to the max value + 1 (60 seconds/minutes, 24 hours) before switching to the next digit (59 seconds/minutes, 23 hours)

The minute and second countdown digits quickly switches from 0 to 60 before switching to 59. It should go from 0 to 59 without the switch.
I assume the same happens with hours, where it would quickly switch from 0 to 24 before switching to 23, but I haven't tested that.
This should not be possible and is just a sneaky fix that most don't see, myself included until now :P
Demonstration video:
https://user-images.githubusercontent.com/94898347/196671664-bdbdff28-f672-4cad-a81b-207f24a458a7.mov

I have a similar problem, and furthermore the decrees is configure with the default value, but visually it seems that is decreasing 2 seconds each time

fixed in https://pub.dev/packages/slide_countdown/versions/1.2.0


Getting error: Image is required when selectorContainer is not passed in

I'm trying to use the rancher api to create a service, but I'm getting the error Image is required when selectorContainer is not passed in. What am I missing?
Rancher Version:
v1.1.3
Docker Version:
1.9.1
OS and where are the hosts located? (cloud, bare metal, etc):
Ubuntu
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Single node
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
Create a python script called service_create.py as follows and run it. Make sure to replace the <<>> values
import base64
import requests

host = <<Your Rancher host ip>>
port = 8080
access_key = <<Your rancher access key>>
secret_key = <<Your rancher secret key>>
environment_id = <<Your environment id>>
api_token = base64.b64encode("{0}:{1}".format(access_key, secret_key))
service_config = {
    "scale": 1,
    "assignServiceIpAddress": False,
    "startOnCreate": True,
    "type": "service",
    "environmentId": environment_id,
    "launchConfig": {
        "kind": "container",
        "networkMode": "managed",
        "privileged": False,
        "publishAllPorts": False,
        "readOnly": False,
        "startOnCreate": True,
        "stdinOpen": True,
        "tty": True,
        "vcpu": 1,
        "type": "launchConfig",
        "labels": {
            "io.rancher.container.pull_image": "always"
        },
        "restartPolicy": {
            "name": "always"
        },
        "imageUuid": "docker:tutum/hello-world",
        "ports": [],
        "dataVolumes": [],
        "dataVolumesFrom": [],
        "dataVolumesFromLaunchConfigs": [],
        "dns": [],
        "dnsSearch": [],
        "capAdd": [],
        "capDrop": [],
        "devices": [],
        "logConfig": {
            "driver": "",
            "config": {}
        },
        "count": None,
        "cpuSet": None,
        "cpuShares": None,
        "createIndex": None,
        "created": None,
        "deploymentUnitUuid": None,
        "description": None,
        "domainName": None,
        "externalId": None,
        "firstRunning": None,
        "healthState": None,
        "hostname": None,
        "memory": None,
        "memoryMb": None,
        "memorySwap": None,
        "pidMode": None,
        "removed": None,
        "requestedIpAddress": None,
        "startCount": None,
        "systemContainer": None,
        "user": None,
        "userdata": None,
        "uuid": None,
        "volumeDriver": None,
        "workingDir": None,
        "networkLaunchConfig": None
    },
    "secondaryLaunchConfigs": [

    ],
    "name": "hello",
    "createIndex": None,
    "created": None,
    "description": None,
    "externalId": None,
    "healthState": None,
    "kind": None,
    "removed": None,
    "selectorContainer": None,
    "selectorLink": None,
    "uuid": None,
    "vip": None,
    "fqdn": None
}

headers = {
    'Authorization': 'Basic {0}'.format(api_token)
}
url = 'http://{0}:{1}/v1/services'.format(host, port)
res = requests.post(url, headers=headers, data=service_config)
service = res.json()
print service

Results:
{u'status': 422, u'code': u'InvalidOption', u'links': {}, u'detail': None, u'actions': {}, u'fieldName': u'Image is required when selectorContainer is not passed in', u'message': None, u'type': u'error', u'id': u'2b36a5c2-3e2e-416a-ba2f-bbacd6f5201a'}
Expected:
The service should be created with a scale of 1

@alejom99 the data you are passing in to the post request, should be Json encoded. So you add one extra import + change the response line:
import json
......
res = requests.post(url, headers=headers, data=json.dumps(service_config))

Worth mentioning that this error can also occur where you have a service defined in your rancher-compose.yml that is not defined in your docker-compose.yml file
Hope that helps some internet browser sometime in the future :)

@em0ney thanks, made my day. kinda obvious, but the error message isn't  :/

Thanks, @em0ney .

Thanks @em0ney  - that sorted my problem with this error as well.


ConnectAccount does nothing in Safari, opens Phantom in Chrome, and nav's to Brave wallet in Brave 🤔

Describe the bug and the steps to reproduce it
I use many different wallets in my desktop browsers and am finding the OnchainKit ConnectAccount button a little troublesome. Here is an outline of the behaviour:
Safari: tapping the ConnectAccount button does nothing. Obviously I don't have any wallets installed in desktop Safari, but doing nothing doesn't seem like a good way to handle this.
Chrome: I have MetaMask, Coinbase Wallet, and Phantom installed here, amongst other wallets. Tapping the ConnectAccount opens Phantom. No option to select MM or CBW instead is provided, which would be incredibly helpful.
Brave: I have just MetaMask installed here. Instead of connecting to MetaMask, I am routed to Brave's wallet page: brave://wallet/crypto/onboarding/welcome
The docs don't explain how I might modify the behaviour of ConnectAccount to address this.
At present this makes the ConnectAccount unusable for me. Would love to see these issues addressed.
What's the expected behaviour?
Users should be able to select the wallet they'd like to use.
What version of the libraries are you using?

"@coinbase/onchainkit": "^0.23.2"

Ah we haven't tested with multiple wallets loaded into the browsers. This is a great call out!

Yes you can. We use wagmi under the hood. So you should be able to use any other wallet provider that uses wagmi. I think walletconnect or privy should work.

We are releasing a new Wallet component that will replace ConnectAccount. FYI, think it will have the same issue that you experienced here. We will take a look at this shortly.

Ok actually check your wagmi config. This is what we have on the doc site:
import { WagmiProvider, createConfig, http } from 'wagmi';
import { base } from 'wagmi/chains';
import { coinbaseWallet } from 'wagmi/connectors';

const wagmiConfig = createConfig({
  chains: [base],
  connectors: [
    coinbaseWallet({
      appName: 'onchainkit',
    }),
  ],
  ssr: true,
  transports: {
    [base.id]: http(),
  },
});

Haven't tested multi wallet browser plugin but this should pop up the smart wallet if user does not have any wallet browser extensions installed.

@kyhyco thanks for the tips! I've managed to get this all working with some finessing of wagmi config.. you can see an example of this on a project I'll be submitting to the Base Onchain Summer hackathon this week!
https://www.anglez.xyz/
Still needs a little work 😁


Sped up .prune drastically

.prune has been sped up by using DeleteMessages method instead of a foreach-loop and deleting them one by one

I'm working on it myself atm, thanks for finding the method though :D


Set focus on first item in navbar menus if triggered via hotkey.

before:

after:

Works for me!

This seems like a lot of fragile semi-duplicated code for what it does; could we just add a "skip-for-initial-keyboard-focus" class on those elements, and then have these code paths share a common focus_first_popover_item function that respects that.
(And if possible, I'd like to avoid the new is_triggered_via_hotkey variables; I'm not sure what the best way to do that is, but I wonder if switching to using toggle_popover_menu rather than register_popover_menu, and just calling the focus_first_popover_item or not based on the parameter to functions like gear_menu.toggle would work?)

Did we fix the issue detailed here via another PR? I have a vague recollection that we did.

No, this requires some thoughtful work which will likely happen post 8.0 now.


License?

Thanks for this script :clap: . Would like to contribute, but missing an (open source) license. Mind adding one?

Sure, feel free to contribute, I've put the project under MIT license :)

Thanks


Export useOrderQueue, useQueueStatus, useOrderItems from SDK

What's the purpose of this pull request?
Allow stores to use orderform hooks
How it works?
Tell us the role of the new feature, or component, in its context.
How to test it?
btglobal
References
Spread the knowledge: is there any content you used to create this PR that is worth sharing?
Extra tip: adding references to related issues or mentioning people important to this PR may be good for the documentation and reviewing process

please add prs pointing to the stores

Hey @gimenes i added a store to test.

@klzns and @tlgimenes I need your review again, because I've created a new hook


Custom dataset problem

Hi, thank you very much for your work. Excuse me, I put the pictures in the nyu dataset directory, and modified the nyu_test file, but the program does not run normally, but the nyu dataset can run normally, is it because of the resolution or what?
My data resolution is 3840 * 2160, what needs to be modified?

I was wondering if this process is out of memory? And it would be killed by the system.


Fix some 404s in the docu

Renaming:

template-operator -> template
virtual-control-plane -> vc

Thanks!


Flaky test - The node backend is unreachable at the moment.

Context

Saw only once, could just be us overloading the node due to parallel tests, especially in this region

https://hydra.iohk.io/build/4800986
https://hydra.iohk.io/build/5279297

Test Case

STAKE_POOLS_QUIT_02 from src/Test/Integration/Scenario/API/Shelley/StakePools.hs:433
STAKE_POOLS_QUIT_01x

Failure / Counter-example

  1) API Specifications, SHELLEY_STAKE_POOLS, STAKE_POOLS_QUIT_02 - Passphrase must be correct to quit
       uncaught exception: RequestException
       DecodeFailure "{\"code\":\"network_unreachable\",\"message\":\"The node backend is unreachable at the moment. Trying again in a bit might work.\"}"

  src/Test/Integration/Scenario/API/Shelley/StakePools.hs:850:9:
  2) API Specifications, SHELLEY_STAKE_POOLS, STAKE_POOLS_QUIT_01x - Fee boundary values, STAKE_POOLS_QUIT_01xx - I can quit if I have enough to cover fee
       uncaught exception: RequestException
       DecodeFailure "{\"code\":\"network_unreachable\",\"message\":\"The node backend is unreachable at the moment. Trying again in a bit might work.\"}"

It seems that most recent failures are always preceded by:
  src/Test/Integration/Framework/DSL.hs:1471:16:
  1) API Specifications, SHELLEY_WALLETS, WALLETS_LIST_01 - Wallets are listed from oldest to newest
       uncaught exception: ErrorCall
       getFromResponse failed to get item
       CallStack (from HasCallStack):
         error, called at src/Test/Integration/Framework/DSL.hs:1471:16 in cardano-wallet-core-integration-2020.12.21-AAYZFneZURcKNEp0gMVmAX:Test.Integration.Framework.DSL

  To rerun use: --match "/API Specifications/SHELLEY_WALLETS/WALLETS_LIST_01 - Wallets are listed from oldest to newest/"

So, it might be the one we ought to investigate.

@KtorZ That error message is a big red herring.
There is no evidence that the node backend is unreachable.
All it means is that some LSQ returned some kind of failure.
We should review and merge #2419 as a matter of urgency, so that we stop seeing this error message, and instead have enough information logged so that we can debug the failure.

@KtorZ That error message is a big red herring.
There is no evidence that the node backend is unreachable.
All it means is that some LSQ returned some kind of failure.
We should review and merge #2419 as a matter of urgency, so that we stop seeing this error message, and instead have enough information logged so that we can debug the failure.

@rvl I agree. The error message isn't really helpful as it is but I am pretty convinced that it would suffice to retry the stakeDistribution query after re-acquiring a more recent point.

@rvl I agree. The error message isn't really helpful as it is but I am pretty convinced that it would suffice to retry the stakeDistribution query after re-acquiring a more recent point.

I opened an issue - ADP-647.

I opened an issue - ADP-647.

Seems odd that this failure only appeared recently though

Seems odd that this failure only appeared recently though

Let's keep this open still.

Let's keep this open still.

This should be closed because the tests fail due to an actual bug not a flaky test.
Also the error message has been improved, so the title of this issue is no longer relevant.

This should be closed because the tests fail due to an actual bug not a flaky test.
Also the error message has been improved, so the title of this issue is no longer relevant.

I think it's useful that new failures end up in the same group as the previous 16 failures, such that people see that this is a common problem, and don't create new tickets for it.
It's still a test failure, even if it is also a bug.

I think it's useful that new failures end up in the same group as the previous 16 failures, such that people see that this is a common problem, and don't create new tickets for it.
It's still a test failure, even if it is also a bug.

Would this be a relevant bug report? -> https://jira.iohk.io/browse/ADP-647

Would this be a relevant bug report? -> https://jira.iohk.io/browse/ADP-647

Yes

Yes

OK

OK

Should be fixed now.

Should be fixed now.


Use generator instead of list expand or add method

We can use generator to create pretty string of Tree in place of list. This PR reduce memory usage.

I like this change.
You can turn a few more of the "yield"s to "yield from"s.

@erezsh Done!

What I meant is that you don't need any for loop..
yield from (i for i in ('\t', '%s' % (self.children[0],), '\n'))

can be
yield from ('\t', '%s' % (self.children[0],), '\n')

etc.

Thank you for review, I change few lines,  use yield with f-string method.

Thanks!


pype.api.PypeHook with Template solving

Is your feature request related to a problem? Please describe.
At the moment each of host's prelaunch hooks need to solve possible Template.ext path and the code used is duplicated.
Describe the solution you'd like
Lets add the get_anatomy_filled and get_workfile_plath with template solver into the global hooks. If the template file is not found it will just simply start the host as it is doing now. Good example is in Photoshop prehook.

Would this be better to add into pype2 global hooks @iLLiCiTiT ?
Lets say pype\hooks\global\pre_workfile_from_template.py The idea is that this will create from template if any is found if none is found the outcome of the hook will be nothing and host will start without it.

Would this be better to add into pype2 global hooks @iLLiCiTiT ?
Lets say pype\hooks\global\pre_workfile_from_template.py The idea is that this will create from template if any is found if none is found the outcome of the hook will be nothing and host will start without it.

Would this be better to add into pype2 global hooks

Pype 2 does not have global hooks as pype 2 is support single hook on launch and it would be complicated to add this kind of feature with the way of launching applications.
In Pype 3 it is already prepared. Launch context always contain path to last workfile, if last workfile does not exist then contain path to first workfile even if does not exist yet. It is quite easy to add hook that will check existence of last workfile path and use it as destination path for template.

Would this be better to add into pype2 global hooks

Pype 2 does not have global hooks as pype 2 is support single hook on launch and it would be complicated to add this kind of feature with the way of launching applications.
In Pype 3 it is already prepared. Launch context always contain path to last workfile, if last workfile does not exist then contain path to first workfile even if does not exist yet. It is quite easy to add hook that will check existence of last workfile path and use it as destination path for template.

let's add the option for this to settings


Collated Code

Not included:

Imports
Refactorings
Trivial stuff
Stuff added in v1.4, since this is a test run only.

Coverage remained the same at 92.056% when pulling a4087c74e454940b84438131b26f3668cba45560 on ZY-Ang:Contributions into d4017e08a3baf681673001fc2db51292f1b4d9ea on CS2103AUG2017-W11-B2:master.

Coverage remained the same at 92.056% when pulling ef9e494cf9f403612b00c323fbd0aac440de9d42 on ZY-Ang:Contributions into d4017e08a3baf681673001fc2db51292f1b4d9ea on CS2103AUG2017-W11-B2:master.

Coverage remained the same at 92.056% when pulling 6aa33fb76811fe8f68ec41249872e720ebd9c2d2 on ZY-Ang:Contributions into d4017e08a3baf681673001fc2db51292f1b4d9ea on CS2103AUG2017-W11-B2:master.


build plan fails with random missing crate

I'm trying to run cargo build -Z unstable-options --build-plan
Each time I run it, it fails with a different random crate from my dependency tree. Each time it gives a different error, of the form:
error: failed to find <random crate> <version>

This should be fixed by #6086 and is just waiting for rust-lang/rust#54648 to be merged.

@Diggsey the fix is now available on the latest nightly.  Can you confirm it fixed your issue?

Yep, it's fixed!


CHANGELOG.md: Reordered the entries in the change log.

Pull Request (PR) description

Changes to CHANGELOG.md

Reordered the entries in the change log.

This Pull Request (PR) fixes the following issues:
Fixes #674
Task list:

[x] Change details added to Unreleased section of CHANGELOG.md?
[ ] Added/updated documentation, comment-based help and descriptions in .schema.mof files where appropriate?
[ ] Examples appropriately updated?
[ ] New/changed code adheres to Style Guidelines?
[ ] Unit and (optional) Integration tests created/updated where possible?

This change is

Codecov Report

Merging #677 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            dev   #677   +/-   ##
===================================
  Coverage    97%    97%
===================================
  Files        30     30
  Lines      3232   3232
===================================
  Hits       3147   3147
  Misses       85     85

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


UP Squared Board - Problem using Grove Button on GrovePI - Configured as MRAA_GPIO_IN

Hello,
I am using GrovePI on UP Squared Board. Instead of running the examples available with ArduinoCreate for GrovePI,  i am handcoding them using mraa/upm APIs.
I see the GPIO configured as IN doesn't seem to work properly on Digital Pins.
Here is the code snippet:
...
mraa_add_subplatform(MRAA_GROVEPI, "0");
dev=mraa_gpio_init(BUTTON_PIN);
mraa_gpio_dir(dev, MRAA_GPIO_IN);
while (true)
{
fprintf(stdout, mraa_gpio_read(dev));
}
...
where BUTTON_PIN = 516 (connected to D4), which works.
Problem scenario:

Grove Button connected to D7, BUTTON_PIN set to 519  : Doesn't detect the key press/release
Grove Button connected to D4, BUTTON_PIN set to 519, key press/release is detected.

i.e independent of the 'pin_no' passed to the initialization, the key press/release is detected only on D4 (516).

@BinduRao2018 could you please post the whole source code file? This looks a bit fishy - are you sure you aren't overriding BUTTON_PIN somewhere else, so it effectively points to D4 all the time?

Yes, I am not overriding BUTTON_PIN anywhere. I have a simple example to read the GPIO for the GroveButton. Here is the complete source code for this:
_#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "mraa/gpio.h"
//512 offset + digital pin 4
#define BUTTON_PIN 516_
int main(void)
{
int mraa_return = 0;
mraa_gpio_context dev;
mraa_add_subplatform(MRAA_GROVEPI, "0");
dev = mraa_gpio_init(BUTTON_PIN);
if (dev == NULL)
{
  fprintf(stderr, "Failed to initialize BUTTON_PIN");
  mraa_deinit();
  return EXIT_FAILURE;
}
mraa_return = mraa_gpio_dir(dev, MRAA_GPIO_IN);
if (mraa_return != MRAA_SUCCESS)
{
   fprintf(stderr, "unable to set the gpio to input mode");
   goto err_exit;
}

while (1)
{
   fprintf (stdout, "value = %d\n", mraa_gpio_read(dev));
   upm_delay(2);
}

err_exit:
mraa_result_print(mraa_return);
mraa_deinit();
return EXIT_FAILURE;
}_

Update -
The problem no longer exists. Grove Button seems to work fine on any digitial pin.
Observation:
When the problem was observed, there were some GPIO - 516 logs present in systemd, which is no longer logged now.
Can I assume it to be a power glitch??
Now in the logs, I can see i2c5:write_byte_data: Access error: Remote I/O error from libmraa. Would this be an issue for the device connected on i2c?

Thanks alex for the inputs.
I am using the UP2 with the power adapter for UK as the kit came with the standard US power plug.
I have now stopped ArduinoConnector.service as I don't use it and I don't see any errors on GPIO or I2C after that.
I assume that this service was trying to initialize some of the pins by default, resulting in the error.


Exec tachikoma update<PHONE_NUMBER>2129

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io

Coverage remained the same at 99.7% when pulling 6b3554107f8fc075bd292977c14086e0c52e63fd on tachikomapocket:tachikoma/update-20150319152129 into 77a776d257a2436999eb722afb99b372b7aa9f95 on hoshinotsuyoshi:master.


fix(locale-tr): fix tr locale

Summary
minor fixes

@cagatayldzz thanks for this! you probably need to run yarn format to fix the build.
Also, any reason this is a draft PR?

I made a draft to check
@erezrokah thanks


Add missing Electron built-in modules

Add ipc-renderer and ipc-main to the list of Electron's external modules
ipc module is deprecated since v0.35.0, and ipc-main & ipc-renderer should be used instead

Thanks


Linting fails due to upstream configuration difference

Hello! I'm getting the following error after a basic yarn create serverless-stack resources. I installed the stack into a subdirectory of a project which has it's own ESLint configuration. I get the following error during yarn build:
❯ yarn build                                                                                took   4s   12.18.3   2.4.0
yarn run v1.22.10
$ sst build
Preparing @serverless-stack/resources
Linting source

Oops! Something went wrong! :(

ESLint: 7.11.0

ESLint couldn't determine the plugin "@typescript-eslint" uniquely.

- /Users/me/some-app/infrastructure/node_modules/<EMAIL_ADDRESS>(loaded in "--config")
-<EMAIL_ADDRESS>(loaded in "../.eslintrc.js » plugin:@typescript-eslint/recommended » ./configs/base")

Please remove the "plugins" setting from either config or remove either plugin installation.

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Seems this can be resolved by making sure the CLI's ESLint process treats itself as the root via --resolve-plugins-relative-to . This could also be solved by allowing me to specify my own ESLint config to sst, or by letting end users skip linting altogether.

Ah let me have a look at this. Is your SST app installed one directory inside your project root?

Yes, so my project looks a bit like this:
my-app/
├─ infrastructure/
│  ├─ sst.json
│  ├─ package.json
├─ .eslintrc.js
├─ node_modules/
├─ package.json

I'm using that ESLint config for other files in the same repo. I suppose it's worth it to mention that I'm using Yarn workspaces and the infrastructure directory is included in that configuration. I patched it locally via patch-package with the following patch:
# patch file named @serverless-stack+cli+0.4.2.patch

diff --git<EMAIL_ADDRESS><EMAIL_ADDRESS>index f473dba..ddc8b4a 100644
---<EMAIL_ADDRESS>+++<EMAIL_ADDRESS>@@ -128,6 +128,8 @@ function lint() {
       ".js,.ts",
       "--fix",
       "lib/**",
+      "--resolve-plugins-relative-to",
+      ".",
     ],
     { stdio: "inherit", cwd: paths.appPath }
   );

Yup makes sense. Thanks for sharing the patch.
Just pushed out a new release with it:
https://github.com/serverless-stack/serverless-stack/releases/tag/v0.4.3


Importmap optim during build

[x] Add urlOverrides to buildProject, it can be used to use an other build during build process
[x] Nice to have: new return value in buildProject: buildStats

About buildStats it would look like this:
const { buildStats } = await buildProject()

buildStats = {
  before: {
    jsFileCount: 10,
    otherFileCount: 5,
    totalFileCount: 15,
   totalFileSize: 100000
  },
  after: {
    jsFileCount: 2,
    otherFileCount: 5,
    totalFileCount: 7,
    totalFileSize: 1000
  }
}

This could come up with a new log like
------- build summary -------
file count: 7 (15 before build)
size: 1 mb (7mb before build)
duration: 1min
------------------------------

About treeshaking importmap file

For systemjs keeping the initial importmap mappings is useless (they are used only by systemjs)
For esmodule we could imagine a scenario where the mappings should be kept but in practice it means the build is unaware of some files which is not supposed to happen.

As long as ul versionning happens, it's the importmap generated by the build that should be used, and it's already optimized.
If url versionning and concatenation where disabled it might make sense to try to treeshake the import mappings.
Even here, once could just use @jsenv/importmap-node-module to have an already optimized importmap.
So won't do https://github.com/jsenv/jsenv-core/issues/179 but rather remove mappings from the importmap as long as url versionning or  concatenation is enabled.

Fixes #179


[IMP] Add note to specify variables should have meaninfull names

This note is based on the section "Call your fish a fish" from the Old
Odoo Guidelines:
https://doc.odoo.com/contribute/15_guidelines/coding_guidelines_framework.html#call-your-fish-a-fish

@moylop260 could you review, please?


wstunnel on Android ?

Hello.
Is there a app that i can use as a client with wstunnel ?
example :
SERVER:
i installed wstunnel on a ubuntu VPS .
CLIENT:
Android phone
I will wait your answer.

You have both the client and the tunnel installed on your server?


parsing primary.txt

Any guidelines for how many entries can be in primary.txt? And/or how long each one has to be? 2, 3, 4 characters?
this file, as primary.txt will crash with the following error - "AttributeError: 'NoneType' object has no attribute 'encode'"
primary.txt:
ADA
ALGO
ATOM
BAND
BAT
BCH
BITCNY
BNB
BNT
BSV
BTC
BTS
BUSD
COMP
CRO
DASH
DOT
EOS
ETC
ETH
JST
KNC
LEND
LINK
LTC
NEO
OKB
OMG
ONT
PAX
QTUM
SRM
SXP
TRX
TUSD
USDC
USDT
VET
WAVES
WETH
WGRT
XLM
XMR
XRP
XTZ
YFI
ZEC
ZIL
ZRX
Thoughts?

Remove XLM, and the list works... Strange?

@dlasher
yes, definitely strange. I am using the same script in this gist. I tweaked it to use a text file for the primary coins since I wanted to make them parametric. So I have no idea about the limitations of the text file.
This is a work in progress and any help is appreciated 🙂 .

primary.txt
I attached the primary.txt I'm using (top 250 coins by volume)
See if you can make that work?

@dlasher I can not reproduce your error, I can run the container successfully with this command:
 docker run -it -v "$(pwd)"/primary-2.txt:/app/primary.txt -e PUBLIC_KEY=<PUBLIC_KEY> -e SECRET_KEY=<SECRET_KEY> denizgokcin/binance-triangle-arbitrage:latest

Which OS are you using?


Sign Up is not working

In the SignUpViewModel.cs Line 85 and 86, "var created" returns a false value.
Are there any steps that I am supposed to use to make the registration functionality work? Keep in mind that I have already enabled Email/Password auth in the Firebase Console.

I just solved the problem. Turns out, the timer in my Android Emulator was way off and not correct. I fixed the the date and time in the settings and performed a cold boot to force refresh time and date in the emulator.


Python 3 Luma can't be found

Hi I'm having troublke getting LUMA started, I've used it msany times in the past.
I'm using a Raspberry Pi 4 - with Buster - fully up to date. I'm using sn SSD1306 display.
I have the simplest test page and I have Python 2.7 and 3.7
python crap.py
pi@rpi419buster:~:17:05[0]> python crap.py
Traceback (most recent call last):
File "crap.py", line 1, in
from luma.core.interface.serial import i2c, spi, pcf8574
ImportError: No module named luma.core.interface.serial
trying python3
pi@rpi419buster:~:17:05[130]> python3 crap.py
Traceback (most recent call last):
File "crap.py", line 1, in
from luma.core.interface.serial import i2c, spi, pcf8574
ModuleNotFoundError: No module named 'luma'
pi@rpi419buster:~:17:06[1]>
Python3 says no luma yet I used PIP3 show and it says yes?
pi@rpi419buster:~:17:06[130]> pip3 show luma.core
Name: luma.core
Version: 2.0.1
Summary: A component library to support SBC display drivers
Home-page: https://github.com/rm-hull/luma.core
Author: Richard Hull
Author-email<EMAIL_ADDRESS>License: MIT
Location: /usr/local/lib/python3.7/site-packages
Requires: pillow, pyftdi, RPI.GPIO, smbus2, spidev, deprecated, cbor2
Required-by: luma.oled
pi@rpi419buster:~:17:07[0]>
Any ideas?
Pete

python2 is not supported anymore, use python3.

Hi Pete, you installed as per the instructions here: https://luma-oled.readthedocs.io/en/latest/software.html?
Is there a package called luma installed? Try: pip3 show luma
If so, please remove it, and reinstall luma.oled

Thanks for the quick response - REALLY apperciated. Erm yes I installed (not from scratch as I had a working Adafruit version until it stopped working):
https://luma-oled.readthedocs.io/en/latest/software.html
And no there is no luma it seems. See below. Any pointers appreciated. I just want my SSD1306 working again.....
pi@rpi419buster:~:19:20[130]> pip3 show luma
WARNING: Package(s) not found: luma
pi@rpi419buster:~:19:20[1]>

python2 is not supported anymore, use python3.

I tried. No  joy, just replied...

pip3 show luma.oled shows v 3.8.1  and pip3 show luma.core shows v2.0.1 - yet python3
crap.py - returns - modulenotfounderror: no module named luma.

If you run ls -lR /usr/local/lib/python3.7/dist-packages/luma*, could you paste the output here please

Just checked Richard - there is /usr/local/lib/python3.7/dist-packages/ but nothing in it
in  /usr/local/lib/python3.7/site-packages there is a TON of stuff including luma, luma-core-2.01.dist-info and luma.oled-3.8.1.dist-info
Does that help?

@scargill try ls -lR /usr/local/lib/python3.7/site-packages/luma*

pi@rpi419buster:~:12:38[0]> ls -lR /usr/local/lib/python3.7/site-packages/luma*
-rw-r--r-- 1 root staff  529 Nov 20 16:47 /usr/local/lib/python3.7/site-packages/luma.core-2.0.1-py3.8-nspkg.pth
-rw-r--r-- 1 root staff  529 Nov 20 16:47 /usr/local/lib/python3.7/site-packages/luma.oled-3.8.1-py3.8-nspkg.pth
/usr/local/lib/python3.7/site-packages/luma:
total 8
drwxr-sr-x 5 root staff 4096 Nov 20 16:47 core
drwxr-sr-x 4 root staff 4096 Nov 20 16:47 oled
/usr/local/lib/python3.7/site-packages/luma/core:
total 152
-rw-r--r-- 1 root staff  2974 Nov 20 16:47 ansi_color.py
-rw-r--r-- 1 root staff 24322 Nov 20 16:47 bitmap_font.py
-rw-r--r-- 1 root staff 16343 Nov 20 16:47 cmdline.py
-rw-r--r-- 1 root staff   348 Nov 20 16:47 const.py
-rw-r--r-- 1 root staff  9170 Nov 20 16:47 device.py
-rw-r--r-- 1 root staff   873 Nov 20 16:47 error.py
-rw-r--r-- 1 root staff  5184 Nov 20 16:47 framebuffer.py
-rw-r--r-- 1 root staff  5157 Nov 20 16:47 image_composition.py
-rw-r--r-- 1 root staff   134 Nov 20 16:47 init.py
drwxr-sr-x 3 root staff  4096 Nov 20 16:47 interface
drwxr-sr-x 3 root staff  4096 Nov 20 16:47 legacy
-rw-r--r-- 1 root staff  1131 Nov 20 16:47 lib.py
-rw-r--r-- 1 root staff  2559 Nov 20 16:47 mixin.py
drwxr-sr-x 2 root staff  4096 Nov 20 16:47 pycache
-rw-r--r-- 1 root staff  1727 Nov 20 16:47 render.py
-rw-r--r-- 1 root staff  8886 Nov 20 16:47 sprite_system.py
-rw-r--r-- 1 root staff  1312 Nov 20 16:47 threadpool.py
-rw-r--r-- 1 root staff  3920 Nov 20 16:47 util.py
-rw-r--r-- 1 root staff 21085 Nov 20 16:47 virtual.py
/usr/local/lib/python3.7/site-packages/luma/core/interface:
total 44
-rw-r--r-- 1 root staff   109 Nov 20 16:47 init.py
-rw-r--r-- 1 root staff  4147 Nov 20 16:47 parallel.py
drwxr-sr-x 2 root staff  4096 Nov 20 16:47 pycache
-rw-r--r-- 1 root staff 27439 Nov 20 16:47 serial.py
/usr/local/lib/python3.7/site-packages/luma/core/interface/pycache:
total 40
-rw-r--r-- 1 root staff   157 Nov 20 16:47 init.cpython-37.pyc
-rw-r--r-- 1 root staff  4172 Nov 20 16:47 parallel.cpython-37.pyc
-rw-r--r-- 1 root staff 27813 Nov 20 16:47 serial.cpython-37.pyc
/usr/local/lib/python3.7/site-packages/luma/core/legacy:
total 100
-rw-r--r-- 1 root staff 90426 Nov 20 16:47 font.py
-rw-r--r-- 1 root staff  3138 Nov 20 16:47 init.py
drwxr-sr-x 2 root staff  4096 Nov 20 16:47 pycache
/usr/local/lib/python3.7/site-packages/luma/core/legacy/pycache:
total 40
-rw-r--r-- 1 root staff 33554 Nov 20 16:47 font.cpython-37.pyc
-rw-r--r-- 1 root staff  3339 Nov 20 16:47 init.cpython-37.pyc
/usr/local/lib/python3.7/site-packages/luma/core/pycache:
total 144
-rw-r--r-- 1 root staff  2614 Nov 20 16:47 ansi_color.cpython-37.pyc
-rw-r--r-- 1 root staff 20963 Nov 20 16:47 bitmap_font.cpython-37.pyc
-rw-r--r-- 1 root staff 13730 Nov 20 16:47 cmdline.cpython-37.pyc
-rw-r--r-- 1 root staff   520 Nov 20 16:47 const.cpython-37.pyc
-rw-r--r-- 1 root staff 10388 Nov 20 16:47 device.cpython-37.pyc
-rw-r--r-- 1 root staff  1575 Nov 20 16:47 error.cpython-37.pyc
-rw-r--r-- 1 root staff  4795 Nov 20 16:47 framebuffer.cpython-37.pyc
-rw-r--r-- 1 root staff  6039 Nov 20 16:47 image_composition.cpython-37.pyc
-rw-r--r-- 1 root staff   168 Nov 20 16:47 init.cpython-37.pyc
-rw-r--r-- 1 root staff  1015 Nov 20 16:47 lib.cpython-37.pyc
-rw-r--r-- 1 root staff  2826 Nov 20 16:47 mixin.cpython-37.pyc
-rw-r--r-- 1 root staff  1798 Nov 20 16:47 render.cpython-37.pyc
-rw-r--r-- 1 root staff  8655 Nov 20 16:47 sprite_system.cpython-37.pyc
-rw-r--r-- 1 root staff  1690 Nov 20 16:47 threadpool.cpython-37.pyc
-rw-r--r-- 1 root staff  6319 Nov 20 16:47 util.cpython-37.pyc
-rw-r--r-- 1 root staff 21644 Nov 20 16:47 virtual.cpython-37.pyc
/usr/local/lib/python3.7/site-packages/luma/oled:
total 72
-rw-r--r-- 1 root staff 59895 Nov 20 16:47 const.py
drwxr-sr-x 3 root staff  4096 Nov 20 16:47 device
-rw-r--r-- 1 root staff   258 Nov 20 16:47 init.py
drwxr-sr-x 2 root staff  4096 Nov 20 16:47 pycache
/usr/local/lib/python3.7/site-packages/luma/oled/device:
total 64
-rw-r--r-- 1 root staff  3134 Nov 20 16:47 color.py
-rw-r--r-- 1 root staff  1139 Nov 20 16:47 framebuffer_mixin.py
-rw-r--r-- 1 root staff  4567 Nov 20 16:47 greyscale.py
-rw-r--r-- 1 root staff 41781 Nov 20 16:47 init.py
drwxr-sr-x 2 root staff  4096 Nov 20 16:47 pycache
/usr/local/lib/python3.7/site-packages/luma/oled/device/pycache:
total 52
-rw-r--r-- 1 root staff  3370 Nov 20 16:47 color.cpython-37.pyc
-rw-r--r-- 1 root staff  1253 Nov 20 16:47 framebuffer_mixin.cpython-37.pyc
-rw-r--r-- 1 root staff  4552 Nov 20 16:47 greyscale.cpython-37.pyc
-rw-r--r-- 1 root staff 35632 Nov 20 16:47 init.cpython-37.pyc
/usr/local/lib/python3.7/site-packages/luma/oled/pycache:
total 20
-rw-r--r-- 1 root staff 15799 Nov 20 16:47 const.cpython-37.pyc
-rw-r--r-- 1 root staff   301 Nov 20 16:47 init.cpython-37.pyc
/usr/local/lib/python3.7/site-packages/luma.core-2.0.1.dist-info:
total 52
-rw-r--r-- 1 root staff     4 Nov 20 16:47 INSTALLER
-rw-r--r-- 1 root staff  1123 Nov 20 16:47 LICENSE.rst
-rw-r--r-- 1 root staff 26483 Nov 20 16:47 METADATA
-rw-r--r-- 1 root staff     5 Nov 20 16:47 namespace_packages.txt
-rw-r--r-- 1 root staff  3452 Nov 20 16:47 RECORD
-rw-r--r-- 1 root staff     5 Nov 20 16:47 top_level.txt
-rw-r--r-- 1 root staff   110 Nov 20 16:47 WHEEL
/usr/local/lib/python3.7/site-packages/luma.oled-3.8.1.dist-info:
total 52
-rw-r--r-- 1 root staff     4 Nov 20 16:47 INSTALLER
-rw-r--r-- 1 root staff  1123 Nov 20 16:47 LICENSE.rst
-rw-r--r-- 1 root staff 25522 Nov 20 16:47 METADATA
-rw-r--r-- 1 root staff     5 Nov 20 16:47 namespace_packages.txt
-rw-r--r-- 1 root staff  1610 Nov 20 16:47 RECORD
-rw-r--r-- 1 root staff     0 Nov 20 16:47 REQUESTED
-rw-r--r-- 1 root staff     5 Nov 20 16:47 top_level.txt
-rw-r--r-- 1 root staff   110 Nov 20 16:47 WHEEL
pi@rpi419buster:~:13:34[0]>

I even tried removing all references to luma anything from /usr/local/lib/python3.7/site-packages/
then followed the instructions here - https://luma-oled.readthedocs.io/en/latest/software.html
No further forward, "No module named 'luma' and /usr/local/lib/python3.7/dist-packages/ still remains empty

What version of pip3 is installed? try pip3 --version
I just realized that the help page says to use pip rather than pip3 (now corrected), so perhaps you could try the following, and then copy the output and paste it here again?
$ sudo -H pip3 install --upgrade --force-reinstall luma.oled

Lastly, what does the following display:
$ python3 -c "import sys; print('\n'.join(sys.path))"

pi@rpi419buster:~:09:34[0]> pip3 --version
pip 20.2.4 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)
Did the SUDO -H pip3 line above...
things happened - lots of uninstalls -
...
Successfully uninstalled luma.oled-3.8.1
Successfully installed RPI.GPIO-0.7.0 cbor2-5.2.0 deprecated-1.2.10 luma.core-2.0.1 luma.oled-3.8.1 pillow-8.0.1 pyftdi-0.52.0 pyserial-3.4 pyusb-1.1.0 smbus2-0.3.0 spidev-3.5 wrapt-1.12.1
BUT  /usr/local/lib/python3.7/dist-packages remains empty
Finally...
pi@rpi419buster:~:09:39[130]> python3 -c "import sys; print('\n'.join(sys.path))"
/usr/lib/python37.zip
/usr/lib/python3.7
/usr/lib/python3.7/lib-dynload
/home/pi/.local/lib/python3.7/site-packages
/usr/local/lib/python3.7/dist-packages
/usr/lib/python3/dist-packages
pi@rpi419buster:~:09:40[0]>
Finally...
pi@rpi419buster:~:09:40[130]> python3 -c "import sys; print('\n'.join(sys.path))"
/usr/lib/python37.zip
/usr/lib/python3.7
/usr/lib/python3.7/lib-dynload
/home/pi/.local/lib/python3.7/site-packages
/usr/local/lib/python3.7/dist-packages
/usr/lib/python3/dist-packages
pi@rpi419buster:~:09:45[0]>

Ok, I wonder if the cause is that pip3 has been installed locally (as evidenced from pip 20.2.4 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)). This may be the reason why your sys.path points to /home/pi/.local/lib/python3.7/site-packages rather than the one in /usr/local
In which case you could try installing the luma packages locally with (note no sudo here):
$ pip3 install --upgrade --force-reinstall luma.oled

I think the tldr here is that python packaging is still a mess... :(

Ok, I wonder if the cause is that pip3 has been installed locally (as evidenced from pip 20.2.4 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)). This may be the reason why your sys.path points to /home/pi/.local/lib/python3.7/site-packages rather than the one in /usr/local
In which case you could try installing the luma packages locally with (note no sudo here):
$ pip3 install --upgrade --force-reinstall luma.oled

I think the tldr here is that python packaging is still a mess... :(

Thanks - in the meantime I scrfubbed my one file and went to Adafruit in case there were no answers... bad move. Now I've grabbed your examples - which have been updated since I last used them - I normally specidfy the display - ssd1306 using 128*32. It seems your examples use something called demo_opts which I apparently don;t have -I've run your latest suggestion, looked like it installed but apparently I need demo-opts to try anything. Any idea? Sorry.

python3 welcome.py
Traceback (most recent call last):
File "welcome.py", line 13, in
from demo_opts import get_device
ModuleNotFoundError: No module named 'demo_opts'
pi@rpi419buster:~:15:08[1]> pip3 show luma.core
Name: luma.core
Version: 2.0.1
Summary: A component library to support SBC display drivers
Home-page: https://github.com/rm-hull/luma.core
Author: Richard Hull
Author-email<EMAIL_ADDRESS>License: MIT
Location: /home/pi/.local/lib/python3.7/site-packages
Requires: pillow, spidev, RPI.GPIO, cbor2, pyftdi, deprecated, smbus2
Required-by: luma.oled

If you are targeting a specific device, just import the relevant class and use that. The demo_opt / get_device is just a helper in the examples repo (https://github.com/rm-hull/luma.examples/blob/master/examples/demo_opts.py) to allow the examples to run on a wide variety of devices by specifying command line args

Going to try that now, I'm a Python novice so I just hope "importing the relevant class" (I know what classes are but only done basic Python) is as simple as you make it sound. Thanks for that.. I use SSD1306, eitheth the 32 or 64 vertical dots by 128 across, I2c, no reset etc.  :-)

Replace https://github.com/rm-hull/luma.examples/blob/master/examples/sys_info.py#L111 with:
from luma.core.interface.serial import i2c
from luma.oled.device import ssd1306
serial = i2c(port=1, address=0x3C)
device = ssd1306(serial, width=128, height=32)

My hero - I will check that after lockdown-breaking trip out tomorow to get the car MOT'd (or ITV'd as we call it in Spain). When I get back lunchtime I'm putting that code in - cheers.
Pete


Adds CNN classification

Fixes #51
Adds convolutional neural network for classifying DECO images developed by @milesjwinter

Codecov Report

Merging #58 into master will decrease coverage by 6.5%.
The diff coverage is 15.81%.

@@            Coverage Diff            @@
##           master     #58      +/-   ##
=========================================
- Coverage    38.2%   31.7%   -6.51%
=========================================
  Files           5       6       +1
  Lines         479     675     +196
=========================================
+ Hits          183     214      +31
- Misses        296     461     +165

Impacted Files
Coverage Δ

decotools/convnet.py
15.81% <15.81%> (ø)


Experiment: with esModuleInterop, synthesize a default even when the module is not a function

Noticed this behavior while documenting esModuleInterop, because it made one of my examples not work. I believe it was done as an optimization—the baselines show new type identities that are created and typically not needed. It’s rare for someone to do a namespace import and access the .default, when they could have just done a default import. But only claiming that the .default is there when the type of the module has signatures is hard to explain, so I want to see whether this optimization is worth it.

@typescript-bot perf test this
@typescript-bot test top100

@typescript-bot perf test this
@typescript-bot test top100


Save default e-mails doesn't work

In Settings, when you want to change (and Save) the default e-mail, it get's a 404

Fixed in an earlier merge


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/33583

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/53830

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/70515


Fixed links to the config files

The config-server.toml link to the personal gist was broken.
I suppose that linking to the actual master repo would make more sense. Hence, why I'm proposing to update both links.
thanks, Jaume

This is no longer needed after we just launched brand new HoneyTrap documentation.


When will the Android source be added to the repo?

Couldn't wait to test it on the Google Pixel :) Thanks

Same question...Is there still a plan to publish the android source pls?


"Permission denied" error while trying to create temporary file on Windows

Hello, iqdb_tagger crashes on Windows during file upload procedure. I've been able to fix that on my copy by adding "delete=False" to NamedTemporaryFile parameters but I'm not a python developer so I don't know if this is a good fix or not.
ERROR:flask.app:Exception on / [POST]
Traceback (most recent call last):
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask-1.0.3-py3.7.egg\flask\app.py", line 2311, in wsgi_app
    response = self.full_dispatch_request()
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask-1.0.3-py3.7.egg\flask\app.py", line 1834, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask_restful-0.3.6-py3.7.egg\flask_restful\__init__.py", line 273, in error_router
    return original_handler(e)
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask-1.0.3-py3.7.egg\flask\app.py", line 1737, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask-1.0.3-py3.7.egg\flask\_compat.py", line 36, in reraise
    raise value
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask-1.0.3-py3.7.egg\flask\app.py", line 1832, in full_dispatch_request
    rv = self.dispatch_request()
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask-1.0.3-py3.7.egg\flask\app.py", line 1818, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask_admin-1.5.3-py3.7.egg\flask_admin\base.py", line 69, in inner
    return self._run_view(f, *args, **kwargs)
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\flask_admin-1.5.3-py3.7.egg\flask_admin\base.py", line 368, in _run_view
    return fn(self, *args, **kwargs)
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\iqdb_tagger\views.py", line 33, in index
    form.file.data.save(temp.name)
  File "c:\users\~~~~\appdata\local\programs\python\python37-32\lib\site-packages\werkzeug\datastructures.py", line 2799, in save
    dst = open(dst, "wb")
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\~~~~\\AppData\\Local\\Temp\\tmpc_41uzok'

@Megalan thank you for the report. your fix is actually correct and i added that to the program.
i will release minor version next week on pypi


Changes to VWidgets

@sgpearse  as we discussed, this PR

comment out a dangerous practice which could lead to dangling pointers
catch a proper signal and rename the functions.

As I mentioned, I think it's actually acceptable to offload the validation work to whoever owns a VLineEdit widget, so VLineEdit is cleaner.

@sgpearse  I think it's probably even better to not provide any validation at all here, since QValidator classes does not provide a fixup() implementation: https://doc.qt.io/archives/qt-4.8/qdoublevalidator.html
In other words, this widget won't know what to do if it receives an invalid input. It's best to leave this part of work to users who owns this widget.