Is it possible to get resource usage statistics via pylxd?

Hello guys,
I am working on some ideas to monitor lxd containers though my own program. Is is possible to get resource usage statistics via pylxd? Or shall I use other libraries?
Thank you!

@nypdmax I'm not sure, but I'll try to find out.  Are there any particular metrics/stats that you are looking for, or is it a general query?  Thanks.

Thank you for the reply. Actually we are building a small project using lxd
containers. We hope to find a way to monitor resource usage like CPU,
memory, disk io, network io. So it's more like a general query...now our
solution is installing a small monitor agent in a container which uses
pyutil to get statistics and send them out via UDP packets. Not a beautiful
solution so we would like to see if pylxd can do such things.
Alex Kavanagh<EMAIL_ADDRESS>周四下午11:05写道：

@nypdmax https://github.com/nypdmax I'm not sure, but I'll try to find
out. Are there any particular metrics/stats that you are looking for, or is
it a general query? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lxc/pylxd/issues/242#issuecomment-323088942, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFQCTviQC6t9GqcH83AMl0LoZrtaUqPQks5sZEzjgaJpZM4OsC5k
.

@nypdmax okay, if you take a look at the LXD REST-like API there's a method called: GET /1.0/containers//state.
This would be accessed in the pylxd API something like (I've not tested this):
            >>> api = Client().api
            # /
            >>> response = api.get()
            # Check status code and response
            >>> print response.status_code, response.json()
            # /containers/test/state
            >>> print api.containers['test'].state.get().json()

Is this useful to you, or were you looking for more details?

Thank you Alex. That's really helpful, although I'm confused about some
items in the json list. For example, 'cpu usage<PHONE_NUMBER>86'
means<PHONE_NUMBER>86 cpu time has elapsed?
On Fri, Aug 18, 2017 at 12:02 AM Alex Kavanagh<EMAIL_ADDRESS>wrote:

@nypdmax https://github.com/nypdmax okay, if you take a look at the LXD
REST-like API https://github.com/lxc/lxd/blob/master/doc/rest-api.md
there's a method called: GET /1.0/containers//state
https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10containersnamestate
.
This would be accessed in the pylxd API something like (I've not tested
this):
        >>> api = Client().api
        # /
        >>> response = api.get()
        # Check status code and response
        >>> print response.status_code, response.json()
        # /containers/test/state
        >>> print api.containers['test'].state.get().json()

Is this useful to you, or were you looking for more details?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lxc/pylxd/issues/242#issuecomment-323117561, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFQCTg74TbpCM6o-fpyafr-_P705A95fks5sZGPcgaJpZM4OsC5k
.

CPU time is in nanoseconds (as exposed by the cpuacct cgroup)

@stgraber Thank you. Does it mean the whole CPU time  elapsed since the last starting time of the container? It's weird as  my container has been running for several days but<PHONE_NUMBER>86 nanoseconds is almost 159 seconds.

Nope, the counter refers to the amount of CPU time the container's processes actually used. If a container is perfectly idle, the count shouldn't increase at all (obviously near impossible).

@stgraber @ajkavanagh Thank you all. I think it's time to close this issue.


Fixed: Concurrency static scheduler release failed

For Itseez/opencv_contrib#360
Steps to reproduce:

OS is Windows
call setNumThreads with threads > 1 to initialize static pplScheduler instance with new scheduler
close program

Behaviour:

sched_->Release() call causes a crash

This problem happens in accuracy tests for ximgproc module (many tests call setNumThreads).

:+1:


NG: native SSL support?

Should the registry support SSL out of the box?

Superseded by docker/distribution#95.


optional configuration input file

Rather than using set_input it should also be possible to create a niche model based on a configuration input file.
Both options are useful.

I would combine this with a very tiny cli that provides the option to run niche from command line, using this config file, something like
niche.py config_file.txt -o outputfoldername

and a small help when no command line options.

I'm planning to implement this like this:
type: value
msw: input/msw.asc
mhw: input/mhw.asc
# anything starting with # is considered a comment. Lines starting with # are ignored
soil_code:input/bodem.tif
# values can be left empty
inundation_vegetation:
#or can have a fixed value
rainwater: 0
# it is also possible to overwrite codetables used
ct_vegetation: new_vegetation.csv

Why not use a YAML document for the configuration file?

is a more general existing 'syntax' for configuration files
already includes the # as comments options
provides more structure options to provides sections in the config
you're example already seems to represent YAML anyway

name : my_model_name

input layers:
    - soil_code : ./input/bodem.tif
    - msw : ./input/msw.asc          #no quotes should be required
    - mhw : ./input/mhw.asc
    - inundation_vegetation :        # optional values can be left empty
    - rainwater: 0                       #or can have a fixed value
    - ...

code tables:
    - ct_vegetation :  new_vegetation.csv      # it is also possible to overwrite codetables used

model options:
    - deviation maps: True  # generate deviation maps
    - output maps folder:  c:/nicheoutput

Some questions:

I do not really understand the usage of your type: value? This means to use a continuous value for the layer?
simple_model: should this not be retrieved from the way input layers are provided? Or is this an additional check?

We should proper explain the format in the documentation, see #36
P.S. if you  want to store the config in a df, something like this should work (maybe looks a bit odd to use the json_normalize ;-)
import pandas as pd
import yaml

with open('nich_config.yaml', 'r') as f:
    df = pd.io.json.json_normalize(yaml.load(f))

print(df.head())

Note that for previous versions of niche these values are stored (manually I think -should check) in an excel file "parameters.xlsx"

Yes, in the previous version the user manually added the names of the input layers in the excel file.

@cecileherr would you be fine to use the text format proposed here instead of the xls-file?

@stijnvanhoey  - regarding your questions:

type: value -> i have removed this
simple_model: Just an example, but I think it makes sense to force people to specify it if they want to use it. You can copy the configuration of a full model and make it a simple model. Anyway - let's see what the users think it is easy to change.

It would be OK (or even easier) for us to use a text file, but I think we should still have some kind of GUI / front end for (some) users.
An unexperienced user must also be able to see what the possible options to run NICHE Vlaanderen are and ideally find some information for each possible choice.

Can't say much about the content of the settings file, but agree that a YAML file would be great.

@cecileherr : I created a seperate issue for the GUI.

I will implement it like this anyway:
input_layers:
   mhw: data/mhw_small.asc
   mlw: ../testcase/grobbendonk/mlw.asc
   soil_code: ../testcase/grobbendonk/soil_code.asc

If it turns out to be an issue during user testing - we can still adopt with small changes.
Not being sloppy on configuration file formatting can also be considered a plus.

Rather hard on the file formatting with sufficient feedback to user on why things fail (+ proper examples of configuration files) than trying to capture all possibilities user potentially could define ;-)

Closed as of 3e55dc83a6bdc1e41af3bbde739bd2204e4ba9ec and previous commits.
Note that support for codetables is not yet included (#32 )


More Commands

Additions

Status bar
Command mode

/ Search
:marks

Visual line mode
iw and iW motions for d, c, y, and visual mode (e.g. diw or viW)
Automatically switch to visual mode when making a selection with cursor
Special 0 ~ 9 marks (like `0, `1, `2 ...) for recently visited scripts

New Commands

J (join lines)
D and C
cc
O (insert line above)
I and A (insert at start/end of line)
^ (jump to first non-whitespace character in line)
yy (line yank)
x (delete single character)
s
r (replace character)
n and N (jump to search next/previous search result)
zz (center screen at caret)
>> and << (indent/unindent)
m and ` (create/jump to mark)

Changes

Changed the command for line delete from d to dd
Changed the command for jump to start of file from g to gg
Made w, b and e motions truer to VIM

Wow, this is amazing contribution, thanks for your time and help @WhoStoleMyCoffee :sparkles:


Support evaluation of async functions

This question is purely a matter of interest - no expectation either way! The https://github.com/EdgeVerve/feel project has a very convenient feature in that it allows context functions to be async, for example:
const expression = `{ promiseTrue: promise(true), constantTrue: true }`;
const context = {
    promise: (v) => Promise.resolve(v)
};
feel.parse(expression).build(context).then(console.log);
// { promiseTrue: true, constantTrue: true }

For comparison (and completely expected at the moment) would result in a promise still being in the result. It's easy enough to traverse the results to collate all the leaf nodes and wait for them with a Promise.all, but I just thought I'd ask if something like the above would have a place in the feelin project or not?
const expression = `{ promiseTrue: promise(true), constantTrue: true }`;
const context = {
    promise: (v) => Promise.resolve(v)
};
const result = feelin.evaluate(expression, context);
console.log(result)
// { promiseTrue: Promise { true }, constantTrue: true }

Good question! I guess from the users point of view, it makes a lot of sense. Function calls for instance can be async, as they may fetch, i.e. external data.
To be honest with you though, the interpreter part of feelin needs substantial rework and, if you currently rely on edgeVerve/feel, please continue to do so :wink:.

As it is, I'm not actually using edgeVerge/feel (other than to play around with) as I am unable to get it working in a browser environment. At this stage, I was just comparing the options available (in the FEEL space), and that seemed like a useful feature that I'd ask about.

Closing this as won't fix. Not planned for the forseeable future.


error messages and validation

we need to add the type of validation and messaging that existed prior to the refactor

im not sure i follow. are you asking me to back out the validation refactor?

my attempt at putting your advice here into an issue

that is not in statistics, i think that would go in fda_model on uncertain paired data or in the simulation class.


model trainning method

Is the model training based on supervised learning or unsupervised learning?

Hi,
This is purely unsupervised learning.


Tapo devices stuck on firmware update when update was not even started at all, incorrect Update state in HA

Version of the integration
Latest, 3.0.0, which is actually 3.1.1, but somebody does not update correctly the manifest.jon....

Configuration
1.3.4

Describe the bug
Tapo P100 stuck on firmware update when update was not even started at all

Debug log

This error originated from a custom integration.

Logger: custom_components.tapo.coordinators
Source: helpers/update_coordinator.py:347
integration: TP-Link Tapo (documentation, issues)
First occurred: 14 April 2024 at 23:47:42 (5 occurrences)
Last logged: 12:17:51

Error fetching tapo data: Unexpected exception:

same for my P115

The same issue with 3.1.2.

Same here!

Same here, but for a L510 light.

This error originated from a custom integration.

Logger: custom_components.tapo.coordinators
Source: helpers/update_coordinator.py:347
integration: TP-Link Tapo (documentation, issues)
First occurred: 16 April 2024 at 19:05:55 (6 occurrences)
Last logged: 12:20:29

Error fetching tapo data: Unexpected exception:

Same issue for my P110.

I have this same issue with my P100

Same issue

Same issue with P110

Has anyone tried to update the firmware using the Official Tapo app?
HA is reporting the same firmware as the official app so assuming it’s safe to do the update.

Has anyone tried to update the firmware using the Official Tapo app?
HA is reporting the same firmware as the official app so assuming it’s safe to do the update.

Yes, I've just tried that and it seems to have resolved the issue in HA too. I had to hit the "Update Now" button in the Tapo app for the device a few times before it updated.
I hadn't looked at the Tapo app but it looks like my P110 was set to "Auto Update", but hadn't managed to do so by itself. So maybe HA was simply reporting these attempts by the P110 to update itself?
tl;dr - update your Tapo device firmware from the Tapo App manually and the notification in HA will go away.

The issue is that, that it should not show updating. It should show an option to be able to update from HA. As this option should be skippable as well, theough

the way I see it, we should not be forced to update in order for the notification to go away...
1)it should not display "installing 0%" if we did NOT order it to update thru HA
2)we should be able to disable the notification that a new update is available

I can confirm, same issue here

Tried to add 4 new P100 today, the 3 first got added but the forth got the new update and now i says incorrect credentials (used the same for all 3 previous devices that connected fine) and now also stuck att updating the 3 devices that got connected.

The issue is a stale, as it has not been still fixed. The issue still persists.

The issue is a stale, as it has not been still fixed. The issue still persists.

Issue still exists

same issue here, trying to update via app but downloading 0% remains in screen, after a failed and some devices not updated message

Same Issue

It was a good run... Today I had to realise that the P100 just died on me. Nothing heavy load or anything, it just did not come back to life when I unplugged and plugged it back, as it was disconnected from the Wifi for days now.
I bought it almost 4 years ago, so it is out of warranty, and to be honest, I wouldn't buy another one based on this, no other plugs have let me down, except the IKEA Tradfri ones...
I read on Reddit that they are prone to die, or the relay stops working.
It was a good run, but now I am happy that I don't need to wait anymore that this issue would be fixed....

The issue still wasn't fixed and the notifications about the upgrade are annoying

Im having it again now sadly, just like in May. Will try to update through the app again, but honestly it's so much more convenient through Home assistant because I don't really want to have that app installed.

The problem remains that it shouldn't show up on Home Assistant as being updating with no option to cancel or dismiss the update.
Behind the scenes, it looks like there is an API error in retrieving the update status and it just hangs there (judging by the error message in the log).

bump to remove stale

Just a FYI, the official TP-Link Smart Home integration supports the Tapo plugs: P100, P110, P115, P125M, P135, TP15
I don't think it did then when I first installed this plugin, and I have now migrated into the official integration without any issues.

Just a FYI, the official TP-Link Smart Home integration supports the Tapo plugs: P100, P110, P115, P125M, P135, TP15
I don't think it did then when I first installed this plugin, and I have now migrated into the official integration without any issues.

I just tried this for my L510 bulb and it works with the official integration. Thanks for pointing this out!


[idea] Support express.js path syntax

Overview:

allow to copy/paster path/route definition from express without modifications

example: /users/:userId/books/:bookId
refs:

https://expressjs.com/en/guide/routing.html

const client = forge({
  resources: {
    User: {
      all: { path: '/users' },

      // {id} is a dynamic segment and will be replaced by the parameter "id"
      // when called
      byId: { path: '/users/{id}' },

      // {group} is also a dynamic segment but it has default value "general"
      byGroup: { path: '/users/groups/{group}', params: { group: 'general' } },

      // {market?} is an optional dynamic segment. If called without a value
      // for the "market" parameter, {market?} will be removed from the path
      // including any prefixing "/".
      // This example: '/{market?}/users' => '/users'
      count: { path: '/{market?}/users' } }
    },
    Blog: {
      // The HTTP method can be configured through the `method` key, and a default
      // header "X-Special-Header" has been configured for this resource
      create: { method: 'post', path: '/blogs', headers: { 'X-Special-Header': 'value' } },

      // There are no restrictions for dynamic segments and HTTP methods
      addComment: { method: 'put', path: '/blogs/{id}/comment' },

      // `queryParamAlias` will map parameter names to their alias when
      // constructing the query string
      bySubject: { path: '/blogs', queryParamAlias: { subjectId: 'subject_id' } },

      // `path` is a function to map passed params to a custom path
      byDate: { path: ({date}) => `${date.getYear()}/${date.getMonth()}/${date.getDate()}` }
    }
  }
})

copy/paste from express routes definitions can simplify forge configuration greatly

Hi, what is the requirement I mean is there any modification or feature addition in the above you mentioned?

could you elaborate the requirement with proper file path.

Please let me know the complete requirement on this, would like to contribute on that.

Hi, could you provide requirement for this issue ?

Hi @OleksandrKucherenko, could you explain the issue, what is required in detail.

Its not an issue, its the enhancment.
Most of the BE are done in expressjs, so when i need to create a client i should do a lot of copy/paste modifications.
Support of the expressjs route pathes by default will reduce the adoptation time.

so is there any thing on which I can contribute ?

Hmm., this must be an AI chatbot?


Issue getting all tagged Images

For some reason only 1, or 2 of a specified tagged image are being pulled in, when I know there are obviously way more than that. Anyone dealing with the same issue?
 var userFeed = new Instafeed({
               get: 'tagged',
               tagName:'tag',
               target: 'instafeed2',
               template: '   ',
               limit:14,
               resolution:'standard_resolution',
               accessToken:'XXXXXXX'
              });
              userFeed.run();

Read the recent issues, tagged is not possible anymore since beginning of June because of Instagram changes in API policies. Unless someone will find a workaround...

So.. I get the changes. But when I use the accessToken + clientId + tagged, is returned the user owner feed insted of hashtag feed.

@rodrigokono Can you explain how do you do that?

@invaderhd easy... Just get throught "bower install instafeed.js" and after coded the instructions like to below:
var feed = new Instafeed({
get: "tagged",
tagName: "corregoiania",
clientId: 'myClientId',
userId: myuserId,
accessToken: 'myTokenId',
limit: 12,
sortBy: 'most-recent',
resolution: 'low_resolution',
template: ''
});
So, is returned the "user feed" instead of "hashtag feed".
I am wrong or it's a instafeed bug?

With that code I get my tagged images but only recent ones. Old images don't appear

Also looking for a solution to this.

@invaderhd tagged is not working is this last instagram update. We have a problema with this.
@louiswalch I'm also looking a solution for this.

Old feed, I know, but the answer to the question by @fabiomlferreira is below (taken from the instafeed page
let feed = new Instafeed({         get:'user',         filter: function(image) {             return image.tags.indexOf('YOURTAG') >= 0;         } ,         accessToken:'xxx',         userId:'xxx',         template: ''     })     feed.run();
This gives you all of your uploaded tagged images, with your specified tag.


Add CODEOWNERS

This file designates codeowners for a list of files and directories, who will be required to review any PRs that modify their files. Please see https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners for more details.
I have added myself as codeowner for all GitHub Actions related files.

LGTM!


What is the process for obtaining multiple mask outputs using either the model.predict() or the model.mask_decoder() method when performing instance segmentation finetuning?

I am seeking guidance on performing SAM fine-tuning for multi-mask instance segmentation. Additionally, during the inference stage, I wish to utilize the model.predict function to predict multiple instance segmentation masks without any prompts. This is because the actual inference images may not have any bounding boxes available.

Hi, could you find a solution? I have the same problem


Normalization

In the various camera scrollers (eg: entity scroller, keyboard scroller), I've noticed that there does not appear to be steps taken to normalize the movement in the diagonal. Shouldn't this be considered as an toggle-able option to keep from diagonal movement essentially equating to 2x movement speed?

Shouldn't this be considered as an toggle-able option to keep from diagonal movement essentially equating to 2x movement speed?

You make a valid point. This becomes even more important when we start supporting joysticks and such.

Like, basically, normalized movement vectors rather than incrementing the X/Y axis by speed*delta individually.
I think this would be the proper code snippet:
direction := Point{1, 1} //down and right

normaldirection, _ := direction.Normalize()
normaldirection.MultiplyScalar(speed * delta)

c.entity.SpaceComponent.Position.Add(normaldirection)

This sounds good to me.


Unable to generalize a type variable. It is not unranked.

Using elm-make 0.18 (Elm Platform 0.18.0) on Ubuntu 14.04, running elm-make test.elm produces the following:
elm-make: It looks like something went wrong with the type inference algorithm.

Unable to generalize a type variable. It is not unranked.

Please create a minimal example that triggers this problem and report it to
<https://github.com/elm-lang/elm-compiler/issues>
elm-make: thread blocked indefinitely in an MVar operation

Here is test.elm, as small as I could make it.
module Test exposing (..)

type alias T =
    Int

g : T -> List T
g =
    [ "Blah" ]

f : a
f =
    g 1

This looks to be a smaller example of the problem reported also in https://github.com/elm-lang/elm-compiler/issues/1579. @evancz

I got this error, too, when using a type variable in a type signature, where the implementation required a specific type.

Tracking in #1613 to get a high-level picture of the problem. Thanks for the report!

Based on commit 4b25980d93ada12236c794f35570e197be82f787, I am now seeing the following error in my development build!

Note: You may see extra qualifiers on types in this error. That is part of the dev build, but should not appear in the final thing.


Diagnostic qubits

What is happening?
From @aradnaevinf during 6/9/23 Show it Works scrum:

Submit circuits
Superstaq adds qubits to create, e.g., bell state
Check bell state worked. If it doesn't, raise red flags

What are the current alternatives?
No response
Any additional context?
No response

@SalahedeenIssa I'm guessing the crux here is to specifically pick qubits such that crosstalk is avoided. Otherwise, I think it's straightforward to implement as one of the options flags, maybe diagnose=True?


chore(main): release 0.8.7

:robot: I have created a release beep boop
0.8.7 (2024-11-18)
Bug Fixes

bump cross-spawn from 7.0.3 to 7.0.5 (#605) (dd58a3f)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.8.7
:sunflower:


Color of planets

Setting material color which is material assigned to planet (it makes circle from sprite), color changes "globaly", to every planet which has material. Need to find way to change color only on some game objects.

Changing color on sprite doesn't change because there is this material. I'm kinda new in materials etc.

Fixed by using UI Mask instead of material. Fixed by 6ad52dde350f894e922f358bf111f3a635377ed1 commit


Update Node.js

closes https://github.com/browser-actions/setup-firefox/issues/346
browser-actions/setup-firefox uses Node.js 12.
However, it is already EOL.
Therefore, I update it to 18 (Active LTS).
For your information: https://github.com/nodejs/Release

This should do the trick. Could @ueokande merge? :-)

On October 25th, Node.js LTS changed to 18.
Therefore, I want to update from Node.js 16 to 18, is that ok?

On October 25th, Node.js LTS changed to 18. Therefore, I want to update from Node.js 16 to 18, is that ok?

I don't have a problem with that. The question is what the maintainer of this repo will accept :)

I understand.

I update to Node.js 18: https://github.com/browser-actions/setup-firefox/pull/341/commits/bbdf903aa4318e6d3152c3ff181cb5a71dc48aed

@massongit
Sorry, I'm late to response.  The default versions on github actions is Node 16.  I pick your commit on #369 and close this.
Thank you very much.


serial: add new tests with device resources

Add new tests involving device resources with burstable pods that are expected to be scheduled.
TC ids: 54024, 55450

/hold cancel
smoke tests ran locally and passed


How to backup data base and bot settings

Version
Last 0.93

Description
How can I backup bot settings and database with a cron job?
I think this will be usefull when bot is trading live and we need to recover data in case of issue.

Hello @peweb
I think you can simply do:
cd /path/to/your/binance-bot && ./scripts/backup.sh binance-mongo 27017 binance-bot /tmp/backup-20220828.archive

I didn't check the command but I think it will work like that. Please note that you have to change the path and the parameters based on your configurations
Close the issue if I answer your question :)

I get this error
Failed: error connecting to db server: no reachable servers
I had to install mongo-tools first with
sudo apt-get install -y mongo-tools

@peweb wait wait.
Don't try to use the script.
In the frontend, simply go to settings and scroll down, and then you will see the backup button.

@peweb wait wait.
Don't try to use the script. In the frontend, simply go to settings and scroll down, and then you will see the backup button. You do not need to install mongo-tools. It's already in the container.

Yes, the backup in the fromtend works fine but I want to backup via cron jobs every hour or so. It can help in a case of major issue when you need to reinstall the bot and lose config.

@peweb
Sorry, you have to run the command from the Docker.
To do so, try the following:
docker exec container-name ./scripts/backup.sh binance-mongo 27017 binance-bot /tmp/backup-20220828.archive

Change container-name with your bot container name and note that the backup file will be located in the container.
@chrisleekr I think he is trying to do automated backups using a cron job

Ah... that is what you try to do. Interesting approach.
Yes, @habibalkhabbaz's command is correct.

Thanks.


Two Step Verification

More of a question than a comment.  Will the two step verification impact remote email account access, via apps, notebooks, etc.?
This feature when applied to some financial sites prohibit any remote access, due to the two step verification method.

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

ID: 63bc4d65-6d76-5bb1-49b8-0415c76667f8
Version Independent ID: bafb894e-abc2-b068-ee53-38c5e20d0740
Content: Set up two-step verification - Azure AD
Content Source: articles/active-directory/user-help/multi-factor-authentication-end-user-first-time.md
Service: multi-factor-authentication
GitHub Login: @eross-msft
Microsoft Alias: lizross

@1maja Thanks for your feedback! We will investigate and update as appropriate.

@1maja  It does not prohibit the access to your account instead the two step verification is an added step to ensure that you are correct account holder of that account trying to sign-in.

@1maja We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


INVARIANT encodeKey(key, curve, hash,weight) -- invalid key Error

After running the fcl-dev-wallet locally with:
npm run start

and set up the variables FLOW_ACCOUNT_PRIVATE_KEY, FLOW_ACCOUNT_PUBLIC_KEY, and FLOW_ACCOUNT_ADDRESS in .env.example to match the running emulator. On the call to fcl.logIn(), I got the following error on the Next server:
Error: INVARIANT encodeKey(key, curve, hash, weight) -- invalid key (expecting type of string)
    at Object.exports.invariant (/home/my-user/Code/flow/fcl-dev-wallet/node_modules/@onflow/util-invariant/dist/util-invariant.js:1:48)
    at exports.encodeKey (/home/my-user/Code/flow/fcl-dev-wallet/node_modules/@onflow/util-encode-key/dist/util-encode-key.js:1:250)
    at encodeServiceKey (/home/my-user/Code/flow/fcl-dev-wallet/.next/server/chunks/450.js:76:76)
    at init (/home/my-user/Code/flow/fcl-dev-wallet/.next/server/pages/api/init.js:50:536)
    at process._tickCallback (internal/process/next_tick.js:68:7)

It appeared this is from fcl.logIn() sending a GET request to http://localhost:8701/api/accounts which returned 500.
I'm running this locally because I couldn't connect to port 8701 on the Docker version at all.
OS: Ubuntu 20.04 LTS
Node v12.22.5 LTS/erbium

you need to rename .env.example to .env.local

Thanks now that seems to work @bluesign. However, on the browser the GET request to http://localhost:8701/api/accounts still returns 500. What is this request?

I am on mobile, but there were some prefixes on some env variables, something like next_public on some of then if you remove that it is working.

@jochasinga any log on console when you are making the request?

@jochasinga
you tried running like:
docker run -it \
    -e PORT=8701 \
    -e FLOW_ACCESS_NODE=http://emulator:8080 \
    -e FLOW_ACCOUNT_KEY_ID=0 \
    -e FLOW_ACCOUNT_PRIVATE_KEY=4f82df6790f07b281adb5bbc848bd6298a2de67f94bdfac7a400d5a1b893de5 \
    -e FLOW_ACCOUNT_PUBLIC_KEY=519e9fbf966c6589fafe60903c0da5f55c5cb50aee5d870f097b35dfb6de13c170718cd92f50811cdd9290e51c2766440b696e0423a5031ae482cca79e3c479 \       -e FLOW_INIT_ACCOUNTS=0 \
    -e FLOW_ACCOUNT_ADDRESS=0xf8d6e0586b0a20c7 \
    -e FLOW_AVATAR_URL=https://avatars.onflow.org/avatar/ \
    ghcr.io/onflow/fcl-dev-wallet:latest

The intention was for user's to simply run the Docker image and get on with their lives. It should not be necessary to clone and build the project yourself. 🤔
The environment variables are included in the build process for the image and shouldn't need to be specified on the command line, unless you're overriding them.

I think the problem might be renaming the .env.example to .env.local so the nextJS build picks them up during the image build process.

@10thfloor was it possible that in the build for ghcr.io/onflow/fcl-dev-wallet:latest the variables on env.example wasn't picked up by the app? I have success running the repo locally when changing it to .env.local.

@bluesign im also facing the same issue
on using flow dev-wallet getting the below error on console

http://localhost:8701/api returns 404
Failed to fetch config from API. Are you sure the dev-web-server is running on port 8701?
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

@veeran-kochatech Can you please try with the latest release

Update and resolved


shims take ~70ms ... can this be reduced ?

time -p ~/.rbenv/shims/ruby -v
real 0.07
user 0.02
sys 0.04

time -p ~/.rbenv/versions/2.6.3/bin/ruby -v
real 0.01
user 0.00
sys 0.00

... maybe some short-circuit logic for common usecases, like sitting in the directory that has a .ruby-version or $RBENV_VERSION being set
something clunky like this on top of the ~/.rbenv/shims/ruby:
# short-circuit for common path
bin=~/.rbenv/versions/${RBENV_VERSION:-$(cat .ruby-version 2>/dev/null)}/bin/$(basename $0)
if [ -e $bin ]; then
  exec $bin "$@"
fi

takes it down to 10ms overhead for example

Yes, shims add some overhead
Benchmark #1: /Users/mislav/.rbenv/versions/2.7.0/bin/ruby -e0
  Time (mean ± σ):      89.4 ms ±   7.3 ms    [User: 62.4 ms, System: 23.5 ms]
  Range (min … max):    82.2 ms … 115.9 ms    50 runs

Benchmark #2: /Users/mislav/.rbenv/shims/ruby -e0
  Time (mean ± σ):     177.3 ms ±   5.9 ms    [User: 85.2 ms, System: 86.7 ms]
  Range (min … max):   170.0 ms … 196.8 ms    50 runs

It's due to slowness of bash and its not easily fixable. The solution like you proposed above will work for the simplest "happy" case but will sacrifice some other rbenv features.
You might want to try chruby instead of rbenv if this is a deal-breaker for you.


Participants can navigate the map in either map or street view by dragging the mouse.

https://github.com/sopra-fs24-group-12/PeekSeek-client/commit/a1e806f14dbf7edd008e1b6e37e7f27d37205b08


change default backgrounds for webcam views

The default settings have very cute backgrounds you can select, but what if i want different backgrounds?
I used the default installer, and i copied the new backgrounds to: /opt/plugNmeet/client/dist/assets/backgrounds
But they do not show up when i press the webcam icon. only the default ones.

Please follow API: https://www.plugnmeet.org/docs/developer-guide/design-customisation

yes, i know this :) But im not meaning the background for the room, but for the webcam.
So when i turn on the webcam, it doesnt show my hiddeous house, but a nice logo :)

Oh! Sorry, you were talking about virtual background for webcam. You can upload during the session, otherwise you'll require to customize your client & use that customized version.

You'll require to listed those name here: https://github.com/mynaparrot/plugNmeet-client/blob/a2d63d0b7be4b165a3068bf7a08882900a623e4a/src/components/virtual-background/helpers/backgroundHelper.ts#L12
Another trick to avoid customization. What you can do only replace the old image with your own image without changing the old file name. In this case you'll use same name but replace old image.

is there something else i need to do after i renamed them? i removed all but one image, but they all still show up in the client. do i need to reload the docker containers?

need to restart the server
service plugnmeet restart

i restarted the whole server :) to no avail! in plug-n-meet settings from wordpress it says "local client" instead of "remote client" maybe thats the problem?

Local client can be your own customized version, remote will be default with plugnmeet server. For your case as you changed in remote, should be select remote client


ng2-translate with webpack does not work without copy-webpack-plugin

ng2-translate with webpack does not work without copy-webpack-plugin
The following example https://github.com/ocombe/ng2-translate/tree/master/examples/webpack is not working without copy-webpack-plugin. It needs to be used webpack.config.js to copy the JSON files to the build folder. @ocombe  please update these (path as per the folder structure)
var CopyWebpackPlugin = require('copy-webpack-plugin'); plugins: [ new CopyWebpackPlugin([ { from: 'src/i18n', to: 'dist/assets/i18n' } ]) ]
Environment:

ng2-translate version: 4.0.0

Angular version: 2.1.0-rc.5

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES5]

Hello,
Would you like to do a PR for that ?

Created a pull request. #356

This has been merged, thanks.


Algolia vue-instantsearch : Works in dev mode but not when built

Describe the bug
Algolia vue-instantsearch works in vite dev mode but raise an issue when built.
I reported the issue at Algolia here.
Any idea how to make this work ?
Reproduction
Will do if necessary
System Info
Here a subset of related librairies I am using :

"dependencies": {
    "algoliasearch": "^4.14.2",
    "vue": "3.2.41",
    "vue-instantsearch": "^4.6.0",
    "vue-router": "4.1.5"
},
"devDependencies": {
    "@vitejs/plugin-vue": "3.1.2",
    "@vue/compiler-sfc": "3.2.41",
    "@vue/server-renderer": "3.2.41",
    "vite": "3.1.8",
    "vite-ssg": "0.21.1",
    "webpack": "5.74.0"
}

### Used Package Manager

pnpm

### Validations

- [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

From Algolia about a failed import :

I've been able to reproduce it, but not what the cause is unfortunately, it seems that the rules of which files are imported are different. Sorry!
Originally posted by @Haroenv in https://github.com/algolia/vue-instantsearch/issues/1159#issuecomment-1295030356


Fixing smells

I ran some SonarQube tests on my project and it showed some code smells. In this PR im fixing them one by one.

@szbence26 please could you review my recent changes and approve if satisfied?


Here I have added the css properties

Here I am creating a PR for merging into the dev branch

Approved


No Way to Leave Settings

If you go to the settings tab, the Menu button isn't there, so you can't re-open the menu to return to the home page. If you hit the back button on your phone, it returns you to your home screen, I'd suggest making the back button just return to the app's home page, and/or adding the menu button on the settings page as well.

@Coolguy3289 Thank you for all the issues created so far. I agree there needs to be an intuitive way to navigate back from the settings page. At the moment, you can swipe from the left of the screen to show the drawer menu.
Additionally, for future bug reports or issues, please include details about your device and Android version. We'll also be adding an issue template to the repository, which should also help.

Fixed. You can now navigate back from the Settings screen using the back button on-screen, or the device's back button.


Missing textures

Every server I join is missing textures. I can only see my hair, the ground textures, and the terminals.
I cannot reproduce

It has been determined that a pre-built Dell Inspiron from 2010 is too old to run the game.


add evaluation result of accesibility checked point

Update page title
add image text alternatives for the empty alt

only for accessibility exercises


Add SFX capabilities to the Windows uploads

The focus of the issue I am opening are users that don't have the itch app installed and are simply downloading a file from the website.
I guess Linux and macOS users might be used to downloading zipped files but Windows users are used to downloading .exe files that simply run or install something to their computers. That said, I currently upload an SFX file created just with free and open source tools such as 7zip, for compression and self-extracting module, and Resource Hacker to simply copy the icon in my game's executable to the SFX file.
This way of working unfortunatelly does not make use of a lot of wonderful features provided but butler. The diffing should be totally possible if butler handled the compression and SFX generation and I would like to make a small contribution and add this feature, if the community thinks it makes sense.

Hi,
I'd like to add automatic installer generation in the backend at some point, however:

There is an acceptable alternative for non-technical users right now: just use https://itch.io/app
It is not an easy contribution to make, as the backend itself is proprietary, and involves a lot of moving parts
There are other priorities at the moment

The initial issue requests diffing of SFX files, more or less, which I'm not willing to add at the moment, so, closing!


DevOps Dojo: Developer (Phase 1)

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I've agreed with the maintainers that I can plan this task.

Description
DevOps Dojo: Developer will introduce modern tools and development methodologies to lower the threshold of contributing, improve the efficiency and availability for our current and future developers.
Phase 1 - Motivation

https://github.com/autowarefoundation/autoware.universe/issues/2653

Phase 2 - Definition

(Add link to Phase 2)

Phase 3 - Execution

(Add link to Phase 3)

Phase 4 - Integration

(Add link to Phase 4)

Purpose
Phase 1 - Motivation

clear purpose

...

outline proposed work item

...

identify beneficiaries, stakeholders and shareholders

...

Possible approaches
One possibility to achieve the goals of DevOps Dojo: Developer is to introduce Docker, Docker Compose, remote development and VS Code.

Docker provides developers with a consistent development environment
Docker Compose to e.g., launch multiple containers simultaneously
Remote development to access Arm architecture on non-Arm developer machine
VS Code as an example IDE to tie these together

VS Code and Docker

https://github.com/athackst/vscode_ros2_workspace/tree/foxy/.vscode

Hardware accessibility

https://code.visualstudio.com/docs/remote/remote-overview

Definition of done
Phase 1 is considered complete once satisfactory motivation has been outlined.

I don't know if it is of any help, but here is my dev environment setup for autoware using vscode devcontainer:

.devcontainer/devcontainer.json

{
  "name": "autoware_dev",

  "dockerComposeFile": "docker-compose.yaml",
  "service": "autoware_dev",

  "extensions": [
    "ms-azuretools.vscode-docker",
    "ms-vscode.cpptools",
    "ms-vscode.cpptools-extension-pack",
    "llvm-vs-code-extensions.vscode-clangd",
    "ms-vscode.cmake-tools",
    "ms-iot.vscode-ros",
    "dotjoshjohnson.xml",
    "davidanson.vscode-markdownlint",
    "donjayamanne.python-extension-pack",
    "wmaurer.change-case",
    "fabiospampinato.vscode-diff"
  ],

  "initializeCommand": "xhost +local:docker",

  "settings": {
    "terminal.integrated.profile.linux": {
      "bash": {
        "source": "/bin/bash"
      }
    },
    "terminal.integrated.defaultProfile.linux": "bash",
    "python.pythonPath": "/usr/bin/python3",
    "files.watcherExclude": {
      "**/.git/objects/**": true,
      "**/.git/subtree-cache/**": true,
      "**/node_modules/*/**": true
    }
  },

  "workspaceFolder": "/home/dev/autoware"
}

.devcontainer/docker-compose.yaml

version: "3"
services:
  autoware_dev:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        ROS_DISTRO: humble
        TAG: humble-latest-cuda
    environment:
      - DISPLAY
    volumes:
      - ..:/home/dev/autoware
      - ~/data:/home/dev/data
      - ~/.Xauthority:/home/sig/.Xauthority
      - /tmp/.X11-unix:/tmp/.X11-unix
      - /lib/modules:/lib/modules
      - /dev:/dev
    stdin_open: true
    tty: true
    security_opt:
      - seccomp:unconfined
    privileged: true
    cap_add:
      - ALL
    network_mode: host
    runtime: nvidia

.devcontainer/Dockerfile:

ARG TAG
FROM ghcr.io/autowarefoundation/autoware-universe:${TAG}
ARG ROS_DISTRO

# apt-add-repository
RUN apt update && apt install -y software-properties-common

# kvaser interface deps
RUN apt-add-repository ppa:astuff/kvaser-linux && \
 apt update && apt install -y kvaser-canlib-dev

# extra rosdep
RUN apt update && apt install -y \
  ros-${ROS_DISTRO}-nmea-msgs \
  ros-${ROS_DISTRO}-can-msgs \
  ros-${ROS_DISTRO}-radar-msgs \
  ros-${ROS_DISTRO}-rmw-fastrtps-cpp \
  ros-${ROS_DISTRO}-rmw-fastrtps-dynamic-cpp \
  ros-${ROS_DISTRO}-rmw-fastrtps-shared-cpp \
  ros-${ROS_DISTRO}-nav2-msgs \
  ros-${ROS_DISTRO}-octomap-msgs \
  ros-${ROS_DISTRO}-nav2-costmap-2d \
  ros-${ROS_DISTRO}-mavros-msgs \
  ros-${ROS_DISTRO}-apex-test-tools \
  ros-${ROS_DISTRO}-ros2-socketcan \
  libtar-dev \
  libapr1-dev \
  libaprutil1-dev \
  bluez \
  librange-v3-dev

# devtools
RUN apt update && apt install -y \
  vim \
  gdb \
  gnome-terminal \
  dbus-x11 \
  ninja-build \
  ccache \
  less \
  ripgrep \
  fd-find

# create dev user with sudo rights
RUN adduser --disabled-password --gecos '' dev && \
  adduser dev sudo && \
  echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

# locales
RUN apt update && apt install -y locales locales-all
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

# default entrypoint
USER dev
WORKDIR /home/dev/autoware

# no more "--Type <RET> for more" in GDB
RUN echo "set pagination off" > /home/dev/.gdbinit

# ROS2 config
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> /home/dev/.bashrc && \
    echo "export RCUTILS_COLORIZED_OUTPUT=1" >> /home/dev/.bashrc && \
    echo "export RCUTILS_CONSOLE_OUTPUT_FORMAT=\"[{severity} {time}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})\"" >> /home/dev/.bashrc && \
    echo "export ROS_LOCALHOST_ONLY=1" >> /home/dev/.bashrc

CMD ["/bin/bash"]

@VRichardJP
Thanks for your contribution!
At this stage we still need approval of Phase 1, once that's been achieved, we can move to Phase 2 where we'll define the dojo. The files you've shared are perfect for a discussion in Phase 2. Once we get there, I'll copy over your comment which we can use as the foundation for discussion.

Closing this issue as we have implemented this vs-code devcontainer with the latest containers


JS file with 1000+ image map gives fs operation timeout

I have javascript file that looks like below. It has lots of object (1000+). As we cannot use dynamic name for images in react-native this is my work around.
"grinning": {
        "image": require('./images/1f600.png'),
        "shortname": ":grinning:",
    }

I am requiring this file in some other react native function and looping to display all the images. But getting internal error on requiring too many images in javascript file.
{"type":"InternalError","message":"react-packager has encountered an internal error, please check your terminal error output for details"}
In terminal it says
fs operation timeout
This works if i remove few entries from the file.
Any suggestion or better approach

At least on Android you can package the assets manually and use { uri: 'file://path/to/file' } as the source.

@satya164 thanks this will solve issue with android any idea about iOS?

👍  have the same issue

Do you have watchman installed?

Have you tried to specify file operation timeout (See this commit https://github.com/facebook/react-native/commit/8edb9524035b0c034135a81551ba955ee514dbd4 )

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with Canny! Check out its new home: https://react-native.canny.io/feature-requests/p/js-file-with-1000-image-map-gives-fs-operation-timeout


post tech-review tasks

After #471 the following tasks are required:

[x] Documentation review by @PipKat @nshum4
[x] Migration to ansys organization and URL changes #393
[x] Use publicly released projects for ansys-tools-filetransfer and ansys-local-product-launcher
[x] Transfer docker image to ansys org and adapt workflows accordingly
[x] Rename docker image to acp and adapt codebase for it #411
[x] Transfer project dashboard from ansys-internal to ansys
[x] Set up branch and tag protection
[x] Generate PyPI token, right before going public
[x] Transfer visibility to public. BEFORE: Check that the Docker image is independently set to Private
[x] Do a first release to PyPI
[x] After going public, allowing codecov.io GH app to access this repository and store codecov token as secret
[x] Add this project to https://github.com/ansys-internal/pyansys-dev
[x] Add project to metapackage within products section

Okay - only adding to the PyAnsys metapackage is missing. Working on this.

Closing since complete!


Add fixes for type stub generation

When shiny type stubs are generated by pyright, and they are used for types (instead of using the shiny source code directly), we have some typing errors, which are visible in shinylive:

This is because some of the .pyi files generated by pyright lack necessary type information. This PR fixes most cases of missing types in the .pyi files, but not all.
@schloerke in the future we should have an automated test which runs pyright on the generated .pyi files, as well as the examples (but using the shiny type stubs instead of shiny sources directly).

To illustrate what's going on, here's the relevant part of OutputTransformer from _transformer.py before the change:
class OutputTransformer(Generic[IT, OT, P]):
    def __init__(
        self,
        fn: OutputTransformerFn[IT, P, OT],
    ) -> None:
        self._fn = fn
        self.ValueFn = ValueFn[IT]
        self.OutputRenderer = OutputRenderer[OT]
        self.OutputRendererDecorator = OutputRendererDecorator[IT, OT]

This is the content of the resulting _transformer.pyi file:
class OutputTransformer(Generic[IT, OT, P]):
    def __init__(self, fn: OutputTransformerFn[IT, P, OT]) -> None:
        ...

Notice that it loses all information about self._fn, self.ValueFn, self.OutputRenderer, and self.OutputRendererDecorator.
This is what the OutputTransformer looks like after the change:
class OutputTransformer(Generic[IT, OT, P]):
    fn: OutputTransformerFn[IT, P, OT]
    ValueFn: Type[ValueFn[IT]]
    OutputRenderer: Type[OutputRenderer[OT]]
    OutputRendererDecorator: Type[OutputRendererDecorator[IT, OT]]

    def __init__(
        self,
        fn: OutputTransformerFn[IT, P, OT],
    ) -> None:
        self._fn = fn
        self.ValueFn = ValueFn[IT]
        self.OutputRenderer = OutputRenderer[OT]
        self.OutputRendererDecorator = OutputRendererDecorator[IT, OT]

The class-level variables like fn and OutputRenderer aren't actually used by any of the code, but pyright uses them for generating type stubs. This is the resulting _transformer.pyi file:
class OutputTransformer(Generic[IT, OT, P]):
    fn: OutputTransformerFn[IT, P, OT]
    ValueFn: Type[ValueFn[IT]]
    OutputRenderer: Type[OutputRenderer[OT]]
    OutputRendererDecorator: Type[OutputRendererDecorator[IT, OT]]

    def __init__(self, fn: OutputTransformerFn[IT, P, OT]) -> None:
        ...

That change makes the red underlines go away in shinylive.

Update: there still seems to be red underlining when I build shinylive with this change:

I'm not sure if it's because shinylive is stuck on an old version of pyright, or if it's because it's not actually fixed here. Note that if I load up the same app in VS Code and use the shiny type stubs (instead of shiny source code), then it does not underline the @output:

App source:
from shiny import App, render, ui, Outputs, Session, Inputs

app_ui = ui.page_fluid(
    ui.output_text("txt"),
)

def server(input: Inputs, output: Outputs, session: Session):
    @output
    @render.text()
    def txt():
        return "boo"

app = App(app_ui, server)


Fixed crash problem when computer is locked

#252

When locked, the key press message is sent, but the key release message is not sent, so win-vind freezes after recovery.


Android Support?

I would love to see Android (and maybe iOS) support. Here is a link to a pull request for AnySoftKeyboard which seems to be the leader in the category of alternate-layout friendly Android keyboards. Maybe it would be a good starting point.
I know you are just one guy but I think with the right exposure Norman could overtake Workman or Colemak. Great job man!
I am an ex-Dvorak user. I switched back to Qwerty for a while thinking I should at least be super fast in Qwerty first before switching to another layout. I'm leaning towards Norman (mainly because of your research and facts on the site). I'm also a keyboardio owner.

I would argue that people want the one layout they are using on desktop to
be the same as the layout they use on mobile, as a mechanism to learn it
more fully and solidify their familiarity. Comng up with a modification for
mobile only makes sense if almost nothing changes. The bluetooth keyboard
comment is not what I was talking about. If learning norman I would want my
Android software keyboard to have norman layout.
On Mon, Oct 15, 2018 at 7:25 AM David Norman<EMAIL_ADDRESS>wrote:

I suppose I could look at this again to help people who hook up to
external, bluetooth keyboards, but Norman is definitely not optimized for
mobile (two-thumb) use. I posted a mobile Norman layout prototype in #13
(comment)
https://github.com/deekayen/norman/issues/13#issuecomment-271932990,
but I've not done any sort of typing metrics on that work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/deekayen/norman/issues/18#issuecomment-429813403, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAqlXvzGZc_WZzmDpDmTeKdNHXRzbkILks5ulHCugaJpZM4Xbpbc
.

--

Mike Searcy http://mikesearcy.com/ |<PHONE_NUMBER>

I think the best course of action is to add it as an alternative layout to AnySoftKeyboard, as it already has support for a lot of other features and plugins, while also being open-sourced.
A recent PR adding the Workman layout has just been merged upstream and it has barely 61 lines. It seems like it's just needed to define which keys are in each row through an XML file. Here is the link for reference:
https://github.com/AnySoftKeyboard/AnySoftKeyboard/pull/1449

I don't object to this. I'm just saying I probably won't do it. Feel free to empower yourself to submit the pull request where you want it.

I was a bit discouraged to get something done for AnySoftKeyboard because my questions got ignored on the Gitter channel. Some community PRs are also lingering forever with no sign of response or interest from the maintainer.
For what it's worth I've been using the QWERTY keyboard on my phone and it doesn't disturb my typing in the computer at all. It's all mostly just muscle memory anyway.

I failed to do anything the first time because the implementation I was following no longer works since the API for external packages has changed completely.
After those 4 months, today, I gave it a try again and was able to figure all of that out. Here's my Android device with AnySoftKeyboard.

Code is in:
https://github.com/reaysawa/LanguagePack/tree/norman
I'll review again tomorrow, use it some more, see if there are any problems, then hopefully upstream the layout soon.

@gooddadmike, @reaysawa We may actually be able to get Norman added to Android if we promote Norman from xkeyboard-config extras to the base list of layouts.
https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/merge_requests/24 is a merge request I just opened to promote Norman to a full layout in xkeyboard-config, which would put it as a feature option in Chromebooks and Android. If you would go add helpful promotion links or just a thumbs up, that may help resolve this situation someday when it works it.

@deekayen I've been able to use Norman as an "add-on" on top of AnySoft Keyboard. It comes with built-in English language dictionary (that's of course overridable through the app's UI link).
For anyone interested in getting it or looking to modify it, there are build instructions in the README. I also thought hosting the APK somewhere for saving people of the trouble of setting up the Android SDK and compiling everything, but didn't find a proper way to do so. @deekayen let me know if you're interested in the idea.
https://github.com/reaysawa/NormanLayoutAnysoftKeyboard

I am interested.

@deekayen I've opened a PR in #21


feat: call built-ins as predicate

I also tried removing Predicate::Log in favor of Predicate::CallBuiltIn, but this turned out to be more complex, because the log implementation wants to inspect the variable being passed instead of only its value, so I left that as is for now.
Unfortunately, this leaves me without a good test case in this repo. Would you like me to create one?

I also tried removing Predicate::Log in favor of Predicate::CallBuiltIn, but this turned out to be more complex, because the log implementation wants to inspect the variable being passed instead of only its value, so I left that as is for now.

We can probably ditch that functionality if it's making the merger harder. I don't consider it critical.

Unfortunately, this leaves me without a good test case in this repo. Would you like me to create one?

It would probably be good to have a simple one just as a test.

Good news: I was able to move the inspection of the variable to the log compiler instead, so Predicate::Log and Pattern::Log are now both replaced with a built-in without loss of functionality.


Implement EngagementLauncher logic

What was solved?
This PR implements EngagementLauncher logic and splits start engagement logic to two phases(setup and coordinator start).
Release notes:

[ ] Feature
[X] Ignore
[ ] Release notes (Is it clear from the description here?)
[ ] Migration guide (If changes are needed for integrator already using the SDK - what needs to be communicated? Add underneath please)

Additional info:

[ ] Is the feature sufficiently tested? All tests fixed? Necessary unit, acceptance, snapshots added? Check that at least new public classes & methods are covered with unit tests
[ ] Did you add logging beneficial for troubleshooting of customer issues?
[ ] Did you add new logging? We would like the logging between platforms to be similar. Refer to Logging from iOS SDKs → Things to consider for newly added logs in Confluence for more information.

Screenshots:

!squash


filtering '--source' source path

@Bachmann1234
Let me apologize in advance for the lack of tests in this PR. I don't know python, so I'm definitely looking for an assist on this.
I'm generating cobertura xml for Java using the Maven Cobertura plugin (version 2.7). My resulting XML always contains a --source source path. I have no special configs, so I can only assume this is some oddity of the maven plugin.
<sources>
        <source>/Users/jfairley/Development/workspace-git/reach-engine/reach-engine-core/target/generated-sources/xmlbeans</source>
        <source>/Users/jfairley/Development/workspace-git/reach-engine/reach-engine-core/target/generated-sources/metamodel</source>
        <source>--source</source>
        <source>/Users/jfairley/Development/workspace-git/reach-engine/reach-engine-core/src/main/java</source>
        <source>/Users/jfairley/Development/workspace-git/reach-engine/reach-engine-core/target/generated-sources/antlr4</source>
</sources>

The line doing os.path.join always fails when it gets to --source, resulting in it missing all source paths that follow --source. This causes me to commonly see No lines with coverage information in this diff. even when there should be. In Jenkins, I have to use grep to strip this line before running diff-cover.
Again, sorry for the lack of tests. Feel free to push extra commits to this PR or just close and fix it in your own way.
Also, thanks for such a neat tool. I've hooked this into our company's github pull request validation so that every check-in can be vetted for proper test coverage. :+1:

Hey! Good call on finding this and thanks for the PR!
Looking over this I think we can improve on it a bit. Ill give some more detailed  comments ASAP

So I took some time and I think there is a different issue here.
First of all, to demonstrate this bug in a text go ahead and add
<source>--source</source>

to the sources list, but make sure it is the first source
Once you see the test failing see if doing this fixes it replaces lines 108 and 109 with
sources = xml_document.findall('sources/source')
sources = [source.text for source in sources]

can you let me know if that fixes it?

Ah that solution is much nicer, and it works perfectly!

Better yet, this fixes an issue with another repo that I had yet to diagnose. This other repo has the src dir not at the root, so I thought the issue was elsewhere. :grinning:

@jfairley awesome! Glad to hear. I am also excited to get some evidence of non python use. Keep me posted on how it goes and any problems that come up
ill release a new version some time this weekend most likely.

And by sometime this weekend I mean right now!
https://pypi.python.org/pypi/diff_cover/0.7.5

I forgot to get back with you. 0.7.5 works great for my builds. :+1:

Awesome! Glad to hear


[Enhancement] (nereids)implement showAuthorsCommand in nereids

showAuthors command is supported in legacy planner but not in nereids(new doris fe planner). you need implement the following showAuthors command in nereids:
unsupportedshowAuthorsStatement
SHOW AUTHORS

pr: #43547, move to In review? @LiBinfeng-01


v2

[x] upgrade prettier
[x] /api/repositories
[x] /api/developers
[x] /api/languages
[x] /api/spoken_languages
[x] local test
[x] staging test
[x] upgrade rollup
[x] fix semantic release
[ ] add custom domain

:tada: This PR is included in version 2.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Conflicts with mpv-discord due to ipc socket

Currently, this plugin works inconsistently with mpv-discord due to the two plugins overriding the socket name.
mpv-discord names the socket to mpv-discord-{pid} while this plugin names it to mpvsocket_{pid}, perhaps there should be configurable option to change this format. Instead of sending the pid to the program, send the socket name instead and let notify_media.lua format it first with the pid in. That way, I can ideally set something like socket_path=mpvsocket_{pid} in the conf file.

I have created a PR in mpv-discord (https://github.com/tnychn/mpv-discord/pull/46). Setting socket_path=mpvsocket_{pid} to match the naming here should now work, but ideally notify_media should have the same configurable option.

Thanks for your advice on configurable socket name :D

Please update the readme with the new socket parameter as well

Yes, thanks for reminding!


cannot locate @types/react-form-validator-core

I cannot find the @types/eact-form-validator-core and I cannot use  react-form-validator-core yet in a  typescript project. Linting is failing on every component extending ValidatorComponent.
Any suggestion?

Hi,

You can exclude this part from typescript linting
You can write your own @types and use them

I don't use typescript so I cannot support it in this library.
Community maintains https://www.npmjs.com/package/@types/react-material-ui-form-validator
for my other package, so you can do it as well, or offer them to add @types/react-form-validator-core


[openephys] calculate durations only if state data exists

Fixes #1188

@samuelgarcia This is ready to be merged.


Error while setting up duke_energy platform for sensor

The problem

Error while setting up duke_energy platform for sensor
Environment

Home Assistant release with the issue:   0.105.3
Last working Home Assistant release (if known): 0.100 but not sure
Operating environment (Hass.io/Docker/Windows/etc.):  Raspberry Pi 3 Model B+
Integration causing this issue:  duke_energy
Link to integration documentation on our website:  https://www.home-assistant.io/integrations/duke_energy/

Problem-relevant configuration.yaml

sensor:
  # Duke Energy
  - platform: duke_energy
    username: "user"
    password: "password"

Traceback/Error logs

2020-02-12 15:26:48 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up duke_energy platform for sensor
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 485, in wrap_socket
    cnx.do_handshake()
  File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1934, in do_handshake
    self._raise_ssl_error(self._ssl, result)
  File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1671, in _raise_ssl_error
    _raise_current_error()
  File "/usr/local/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 376, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 360, in connect
    ssl_context=context,
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 491, in wrap_socket
    raise ssl.SSLError("bad handshake: %r" % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.duke-energy.com', port=443): Max retries exceeded with url: /form/Login/GetAccountValidationMessage (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 159, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/duke_energy/sensor.py", line 28, in setup_platform
    config[CONF_USERNAME], config[CONF_PASSWORD], update_interval=120
  File "/usr/local/lib/python3.7/site-packages/pydukeenergy/api.py", line 48, in __init__
    if not self._login():
  File "/usr/local/lib/python3.7/site-packages/pydukeenergy/api.py", line 137, in _login
    response = self.session.post(LOGIN_URL, data=data, headers=headers, timeout=10)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 581, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 514, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.duke-energy.com', port=443): Max retries exceeded with url: /form/Login/GetAccountValidationMessage (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

New error:
2020-02-12 22:33:06 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up duke_energy platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 159, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/duke_energy/sensor.py", line 34, in setup_platform
    add_entities([DukeEnergyMeter(meter) for meter in duke.get_meters()])
  File "/usr/local/lib/python3.7/site-packages/pydukeenergy/api.py", line 52, in get_meters
    self._get_meters()
  File "/usr/local/lib/python3.7/site-packages/pydukeenergy/api.py", line 160, in _get_meters
    meter_data = json.loads(soup.find("duke-dropdown", {"id": "usageAnalysisMeter"})["items"])
TypeError: 'NoneType' object is not subscriptable

Additional information

Seems like the API has changed, see https://github.com/w1ll1am23/pydukeenergy/issues/2


fix: rustConsole: fix output binary's name in launch.json

After !64, Cargo.toml was changed to name the output binary file to be the same as the project's name. This breaks the launch scripts, which expects the binary to be called main.
See https://github.com/toradex/vscode-torizon-templates/pull/64/files#diff-56d1d15f0241d43d317e04f6f40bf600bddb6e7d4e8e4a0ade43df4286f8a7bfL2 for the change that introduced the issue.

LGTM

LGTM


Support Python 3.12

There's some deprecation warnings on py312, but nothing that prevents us from going ahead with this, I don't think. Some deprecation warnings are from pytest itself, and they're already aware of them. Some are from our own code, but it'll be much easier to resolve them when we drop support from Python 3.7. I'd prefer not to drop support for Python 3.7 until it reaches end-of-life in a few weeks.


Make '+' mandatory for phoneNumber - Location Retrieval / Location Verification

What type of PR is this?
Add one of the following kinds:

correction

What this PR does / why we need it:
Make '+' mandatory for phoneNumber
Which issue(s) this PR fixes:

Fixes #
Special notes for reviewers:
Changelog input
 release-note
- Make '+' mandatory for phoneNumber

Additional documentation
This section can be blank.
docs

Hi @jlurien
Yes will do but I waited for #174
Now that it's merged I will do it :)


added costaconrado as a dummy user for local environment

Added a new dummy user to LDAP local development environment.
Changed local-export.ldif to add the user 1017 (costaconrado) for development environment.

MR wrongly created without githooks.


Markdown in cpptools CHANGELOG.md is rendering incorrectly.

VSCode Version: 1.18.1
OS Version: Windows.

Steps to Reproduce:

Click the Changelog tab in the C/C++ extension page.

Bug: The 1st line renders as
# C/C++ for Visual Studio Code Change Log
When we view our markdown via the Markdown: Open Preview it renders correctly. I don't think our extension could be causing this, although I couldn't find any other extension that was having this problem. The text we use is just # C/C++ for Visual Studio Code Change Log. This used to work for us. We haven't done anything new except add additional lines to the file.

Reproduces without extensions: Yes

I believe this is caused by the BOM (char code 65279) at the start of your changelog. Please try removing this

Thanks -- yeah, the encoding somehow got changed to UTF-8 with BOM in the past month.


Bump gvisor.dev/gvisor to 20240729.0

we hold this PR for a bit, and switch to the latest version requiring go 1.22 in a few weeks

Looks like we went with this option :) I've rebased this, and updated it to the latest gvisor tag in https://github.com/cfergeau/gvisor-tap-vsock/tree/gvisor-update

I've created https://github.com/containers/gvisor-tap-vsock/pull/397


[studio] Sign in button shows up on the tools-public app

Summary
We recently upgraded @toolpad/studio in tools-public and now it uses the dashbaord layout component from toolpad core.
Problem: It shows a Sign in button in the app bar, but it's a public app that needs no authentication. So we need to remove it.
Examples
No response
Motivation
No response
Search keywords: tools-public

Should be fixed if we update to the latest version of @toolpad/studio I think... I've fixed it recently.

Should be fixed if we update to the latest version of @toolpad/studio I think... I've fixed it recently.

Yes, it works in v0.10.0. Thanks.
PR: https://github.com/mui/mui-public/pull/250


Hi, browser, can you provide open source? Different countries have firewalls on the Internet, making access difficult.

The regular windows application (exe) is intended for use in internet-restricted scenarios e.g. workshops, garages. It is feature identical to the browser version and will work permanently without requiring any network access.
It will be a better solution in your situation as it is easier to distribute a self-contained exe, than a webpage. Webpages can go down anytime, but the exe will work as long as you have a copy of it, even if this project disappears. You can also consider developing your own region-specific solutions such as wechat applets or telegram bots.
The web version is simply a wrapper around the core UnlockECU library. The build system is too tightly coupled with my publishing platform, and I am not planning to spend time to untangle that.

Also, please consider using the description field when creating an issue instead of relying only on the title.


feat(example): Add a I2C Simple example (IDFGH-13408)

This program is a simple example of I2C communication using the new I2C API, similar to older versions of the ESP-IDF. The program is essentially the same as in previous versions, with the main difference being the updated API.

.

Thanks for contribution again, changes have been merged with https://github.com/espressif/esp-idf/commit/2f5fcf276cd3dd5b3c49fd756aac82bda5af32a5.


Color fill eating up borders

Hello :)
I'm having issue where after repeated tapping on same area, fill will start eating up black borders.
tolorance is 10, I have created a demo, where on each touch random color will fill tapped area.
is there any way to reduce this?
original image

after few taps

after ~10 taps

Anyone?


Typo fix to README

Small README changes

thanks @bantic

@pzuraq see the failures here re: ember-canary tag cycles complaint (obviously this PR itself is not causing the issue)

@pzuraq see https://github.com/hjdivad/ember-m3/runs/1193859452?check_suite_focus=true for a recent nightly run that passed


Panel Documentation

Panel Teams Doc

August 22 - doc still being written

Aug 24 - WIP. Will request review today but that is a very simple com

PR raised as draft, awaiting final content changes. https://github.com/jpmorganchase/salt-ds/pull/2292

@jpmorganchase/salt-content Panel ready for review. TY!

Requested some content tweaks (on how to use primary and secondary panel). Closer to the finish line.

Aug 29 - completed). Awaiting dev review


[Question] Loading images on disk for training

Hello
Not sure how to build the X_train and Y_train objects from a set of images sitting on disk.
Are there any examples available?
Thanks

Images are just matrices. You can use scipy or opencv, its pretty straightforward: http://scipy-lectures.github.io/advanced/image_processing/

Keras has some utils that could use to do that: https://github.com/fchollet/keras/blob/master/keras/preprocessing/image.py
Take a look at load_img.

@davidlis did you ever find examples of how to do this?


django-parler and page

django-parler define a useful templatetag get_translated_url allowing language switch. For instance:
{% for language in languages %}
    {% get_translated_url language.code as tr_url %}

        {{ language.code|upper }}

{% endfor %}

however the internal of get_translated_url try to guess the current page (using potentially some hacky stuff, that works also for wagtail), and return get_absolute_url() of the best object found.
And here is the bug: wagtail Page object does not define a get_absolute_url but a get_url. So something like
def get_absolute_url(self):
    return self.localized.get_url()

in the Page model fix it.
Question: should it be in wagtail-parler, django-parler or wagtail ?

As you say, django-parler try to guess current object displayed via the context or the view. If you want it works with wagtail page, you must add get_absolute_url to Page model and Snippet you use.
This is not really clean but this will work:
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _

class MyAppConfig(AppConfig):
    name = "my_app

    def ready(self):
        from wagtail.models import Page
        def get_absolute_url(self, *args, **kwargs):
            return self.get_url(request=kwargs.get("request", None))
        Page.get_absolute_url = get_absolute_url


Add SignalCoin

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

Please, lowercase file name for next upload, for now, added lowercased image file name here: https://github.com/TrustWallet/tokens/commit/d8068da97dd6f11f67e21cd9d534263425673c78
Also, you can use these graphics to say that your ERC20 token fully compatible with Trust Wallet (https://trustwallet.com/logo-assets). Tokens will show up automatically once the user receives them.
Feel free to share this on social media and tag Trust Wallet:

Twitter: @trustwalletapp

Facebook: @trustwalletapp


ACM-2112 Fix filter value clash

Allow different filters to have options with the same value, e.g. cluster status/node status/add-on status might all use Unknown as a value.
Also fixes keyboard navigability for the filter select menu.

/cc @chenz4027

/cc @zlayne

@dtthuynh @Napoco @atifshafi Please note, this PR changes the test IDs for checkboxes in filter dropdowns. For one test case, I updated it to use getByRole instead. For another test case, I updated the test IDs to include the filter name. Just a heads up in case there are tests that need updating based on this change.

/test lint-check-unittests-sonarcloud


DCC

Everyone likes DCC, right?
I think CHAT and SEND would cover most use cases.

I've heard that @metathink is working on it. At least SEND


Password printed to screen in cleartext if auth fails

When authorization failed, my password was printed to the terminal screen in cleartext.
$ terminus auth login<EMAIL_ADDRESS>Your dashboard password (input will not be shown):
Logging in as<EMAIL_ADDRESS>Error: Request POST /api/authorize HTTP/1.1
Host: dashboard.getpantheon.com
User-Agent: Terminus/0.5.5 (php_version=5.4.40&script=terminus)
Content-type: application/json
Content-Length: 57

{"email":"myemail@example.com","password":"MyPasswordWasHere"} had failed: [curl] 6: Could not resolve host: dashboard.getpantheon.com [url] https://dashboard.getpantheon.com/api/authorize

This looks like it was unable to reach the host at all, not just an auth failure. The full curl is dumped out to help with debugging. If you simply supply the wrong credentials, you get a nice error message.
At the moment I don't think we'll fix this since the potential threat is narrow: someone looking over your shoulder at a time when there's a connectivity problem.
I'd rather fix this by getting rid of username/password auth alltogether via #291


Remove deprecated React.__spread method usage

React.__spread is deprecated in React v15 and was never intended to be used by external sources. It is also unnecessary in this case as its usage results in a superfluous object clone.

Duplicate of https://github.com/radubrehar/react-load-mask/pull/1


Feature/data ref in scan listener

Added data reference to rule match callback.
Does makes sense for the caller to access data reference in case listener is unaware of scan process.

The proposed changes seem to just store and pass state to the callback function which can be done by the implementation of YaraScanCallback itself without changing the current working model.
Is there any other added benefit of this pull request ? Thanks


New GWAS UI User Experience Design and Review

User Flow Documentation
Sketch of GWAS Website User Flow to reveal how pages or sections within the app connect to each other (just for documentation purposes)
Low Fidelity Mockups
Sketches of new general appearance and presentation, make it easier to communicate and establish contracts with the developer

@ljwh2 to review

https://docs.google.com/presentation/d/1X3MW_CeUsqmy4wxSHI7FCZOHoXOm9RJP8A1MvdyTEr4/edit?pli=1#slide=id.g1d0e8727d0e_0_1270


feat: labelling issues/PRs/discussions

If an issue/PRs/discussion contains content that has been assessed as negative, then such an artefact should be labelled.

test


[12.0.0] Revert "Require wasmtime options are first when running modules (#6737)"

This reverts commit<PHONE_NUMBER>f03b919bad001a580a8a38f18d11a0. The fallout of this change has been larger than expected so revert this on the 12.0.0 branch to provide more time to discuss this and figure out the best course of action.

For fuller context see https://github.com/bytecodealliance/wasmtime/pull/6737

Yeah I mostly don't want to feel time pressure to discuss this just before the release and make a snap decision. I'm driving back from Chicago on Thursday so I may be around but may also be somewhere in the middle of I-80 and I'm pretty sure zooming-and-driving is not recommended. Deferring should help make the timing around this change a bit more comfy.
I'll be sure to update the release notes on main for this change, and they haven't been backported to this branch yet so no need to update the 12.0.0 branch yet.


Compilation issue in linux

Seeing the issue on linux.
Architecture: x86_64
goos: linux
goarch: amd64
github.com/CalebQ42/squashfs/fuse_linux.go:3:15: undefined: fuse
probably import "github.com/CalebQ42/fuse" is missing.

Fixed in v0.7.10


[go_router] query parameter is retained when the app back button is pressed

Steps to reproduce
Press the back button from appBar
Expected results
if we press the back button the queryParameter should be clear from route
Actual results
the queryParameter is still in route, it is not clearing
Code sample
Code sample
 TextButton(
            onPressed: () => context.goNamed(
              'details',
              pathParameters: {'id': '1'},
              queryParameters: {'name': 'Sinnoor', 'description': 'Flutter developer'},
            ),
            child: const Text('Details 1'),
          ),

// AppRouter

class AppRouter {
  static final GoRouter router = GoRouter(
    debugLogDiagnostics: true,
    initialLocation: '/',
    routes: [
      GoRoute(path: '/', builder: (context, state) => const MyHomePage(), routes: [
        GoRoute(
          path: 'details/:id',
          name: 'details',
          builder: (context, state) => DetailsPage(
            id: state.pathParameters['id']!,
            name: state.queryParameters['name']!,
            description: state.queryParameters['description']!,
          ),
        ),
      ]),
    ],
  );
}

Logs
Logs
Full paths for routes:
             => /
             =>   /details/:id
           …paths for route names:
             details => /details/:id
[GoRouter] setting initial location /
[GoRouter] Using MaterialApp configuration
[GoRouter] getting location for name: "details", pathParamete…: {name: Sinnoor, description: Flutter developer}
[GoRouter] going to /details/1?name=Sinnoor&description=Flutter+developer
[GoRouter] popping /details/1?name=Sinnoor&description=Flutter+developer

Flutter Doctor output
Doctor output
❯ flutter doctor -v
[✓] Flutter (Channel stable, 3.10.4, on macOS 13.4 22F66 darwin-x64, locale en-IN)
    • Flutter version 3.10.4 on channel stable at /Users/macsho/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 682aa387cf (12 days ago), 2023-06-05 18:04:56 -0500
    • Engine revision 2a3401c9bb
    • Dart version 3.0.3
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/macsho/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.79.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.4 22F66 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 114.0.5735.133

[✓] Network resources
    • All expected network resources are available.

• No issues found!

@darshankawar  Still same issue

@sinnoorc
Can you provide us complete runnable code sample ?


levelzero: add missing calloc return value check

Static scan notified that calloc's return value wasn't checked.

PS. There could be some define (e.g TEMP_ERROR_RET_VAL) in header for this magic value used (many times) in code: return -999.0;

That's a good point. I'll add it.
Sadly, Github's workers seem to be misbehaving today.


Arrows are not displayed on links while timeplayer is being used

Pointed out by monkeypox group, so it is high priority (for presenting to leadership).
When they turn arrows on (in links settings tabs), then do Timeline, the arrows are no longer displayed. I tried on my end, and it looks like the Show arrow button seems to automatically toggle to off when you hit play. I say this because, if I have link settings open and hit Show again while Timeplayer is playing, a bunch if arrows show up on the already drawn links.

It seems the issue was that directionality was never factored into the network render function as it wasn't needed prior to the timeline function.  I've updated the implementation for this and it seems to be working.  Please verify and I will close this issue.

Thanks Evan!
From: Evan Moscoso @.>
Sent: Wednesday, August 10, 2022 10:53 AM
To: CDCgov/MicrobeTrace @.>
Cc: Subscribed @.***>
Subject: Re: [CDCgov/MicrobeTrace] Arrows are not displayed on links while timeplayer is being used (Issue #546)
It seems the issue was that directionality was never factored into the network render function as it wasn't needed prior to the timeline function. I've updated the implementation for this and it seems to be working. Please verify and I will close this issue.
—
Reply to this email directly, view it on GitHubhttps://github.com/CDCgov/MicrobeTrace/issues/546#issuecomment-1210788660, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHMTDBP6SQEVF4K2CZ6MWATVYO627ANCNFSM56A4LOVA.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>


Delegate susbtitution/interpolation

I would like to delegate the substitution of a ${token}, where the token looks like ${prefix:name}. The example is taken from the Apache Commons Configuration librairie :
http://commons.apache.org/proper/commons-configuration/userguide/howto_basicfeatures.html#Variable_Interpolation
user.file = ${sys:user.home}/settings.xml
action.key = ${const:java.awt.event.KeyEvent.VK_CANCEL}
java.home = ${env:JAVA_HOME}

Then it's possible to customize the substitution by extending the StrLookup class :
http://commons.apache.org/proper/commons-configuration/userguide/howto_basicfeatures.html#Customizing_interpolation
Is there a way to control the substitution ?

The usual way in this lib would be to put the stuff you want to be available to substitute into a Config, and then merge that config in using withFallback. You can put the entire merged-in Config under a path if you want to namespace it.
sys and env are already built in of course.


TEM-156: docker image

make docker

if nvidia gpu available:
make docker MODE=gpu

Looks like a file might be missing
===================  building docker image  ===================
MODE: cpu
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/solidity/go/src/github.com/RTradeLtd/Lens/cpu.Dockerfile: no such file or directory
Makefile:80: recipe for target 'docker' failed
make: *** [docker] Error 1


Lycander's Flank is missing

This is an Amazon unique weapon. I can't find it in the loaded strings.

#96

Thank you. This character editor is great.


#9: Add feature for cloudnativedaysjp/cnd-operation-server

related #9

I still didn't add handler for cnd-operation-server.
In short, "feature is implemented, but unsed" in now.


[FLINK-21272][checkpointing] Report incomplete metrics when aborted

What is the purpose of the change
When a checkpoint is aborted, AsyncCheckpointRunnable still tries to send metrics.
But because some values are not known the validation fails.
The failure is only logged but warnging fails e2e tests.
Verifying this change

Added unit test: AsyncCheckpointRunnableTest.testReportIncompleteStats

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? no

AZP build failures are not related to this PR changes both in PR and private branches:
*2021-02-04T16:08:41.0596767Z Feb 04 16:08:41 [ERROR] Errors:
 2021-02-04T16:08:41.0630149Z Feb 04 16:08:41 [ERROR]   SQLClientSchemaRegistryITCase.<init>:88 » Runtime Could not build the flink-di...
 2021-02-04T16:08:41.0634680Z Feb 04 16:08:41 [ERROR]   SQLClientSchemaRegistryITCase.<init>:88 » Runtime Could not build the flink-di...

*2021-02-04T12:18:34.1949279Z [ERROR] Errors:
 2021-02-04T12:18:34.1950864Z [ERROR]   Elasticsearch6DynamicSinkITCase.org.apache.flink.streaming.connectors.elasticsearch.table.Elasticsearch6Dyn
 2021-02-04T12:18:34.1951904Z [ERROR]   ElasticsearchSinkITCase.org.apache.flink.streaming.connectors.elasticsearch6.ElasticsearchSinkITCase » Exce

Merging, test failures unrelated, already fixed on the master: https://issues.apache.org/jira/browse/FLINK-21277


🐛  Third-party Android NDK suffering from vulnerabilities to multiple CVE exploits

What were you trying to do?
We recently concluded a penetration test of our app and found several vulnerabilities that we believe stems from the the third-party Android NDK used by react-native-vision-camera. The vulnerabilities exist in the following libraries: opencv (v3.4.5), libjpg-turbo (v1.5.3) and libpng (v1.6.35). We suggest that you investigate this and upgrade the third-party NDK and/or its dependencies to later versions that have been patched against these exploits.
Here's a list of the exploits we found:
opencv
Dependency opencv version 3.4.5 was detected at lib/arm64-v8a/libNativeBridge.so
CVE-2019-14492: An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1. There is an out of bounds read/write in the function HaarEvaluator::OptFeature::calc in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.
CVE-2019-14491: An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1. There is an out of bounds read in the function cv::predictOrderedcv::HaarEvaluator in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.
CVE-2019-19624: An out-of-bounds read was discovered in OpenCV before 4.1.1. Specifically, variable coarsest_scale is assumed to be greater than or equal to finest_scale within the calc()/ocl_calc() functions in dis_flow.cpp. However, this is not true when dealing with small images, leading to an out-of-bounds read of the heap-allocated arrays Ux and Uy.
libjpeg-turbo
Dependency libjpeg-turbo version 1.5.3 was detected at lib/arm64-v8a/libnative-imagetranscoder.so and suffers from the following vulnerabilities:
CVE-2018-14498: get_8bit_row in rdbmp.c in libjpeg-turbo through 1.5.90 and MozJPEG through 3.3.1 allows attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted 8-bit BMP in which one or more of the color indices is out of range for the number of palette entries. CVE-2018-20330: The tjLoadImage function in libjpeg-turbo 2.0.1 has an integer overflow with a resultant heap-based buffer overflow via a BMP image because multiplication of pitch and height is mishandled, as demonstrated by tjbench.
libpng
Dependency libpng version 1.6.35 was detected at lib/arm64-v8a/libNativeBridge.so and suffers from the following vulnerabilities:
CVE-2019-7317: png_image_free in png.c in libpng 1.6.x before 1.6.37 has a use-after-free because png_image_free_function is called under png_safe_execute.
Reproduceable Code
No response
What happened instead?
Not applicable.
Relevant log output
No response
Device
Android
VisionCamera Version
2.15.4
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

Try this https://www.youtube.com/watch?v=8QW5HDa4lQU&list=PLQhQEGkwKZUrempLnmxjt7ZCZJu1W3p2i&index=67

Hey - thanks for reporting. What's the solution? Updating the ndkVersion?


Add Hubtel API Support

Maps Hubtel Request/Response objects to allow state definitions to work with Hubtel's USSD API

Thanks for adding Hubtel as a provider. I'm not familiar with the service, but it's great to see supporting for more providers being added. Thanks for adding tests and docs as well.
I should probably think of making it easy to implement providers by making the library more "provider-agnostic"

@habbes Yeah, we are using Africa's Talking as our provider in Uganda/Kenya and Hubtel in Ghana. I liked the way your library handled our business logic so figured it would take less effort to just map then to rewrite all that logic. I'm using this in production with our company (WorldCover) so if you had any bugs or ideas for features you hadn't written down just add them to Issues and I might tackle as part of my day-to-day.
Would be happy to chat further over email (jason DOT schapiro AT worldcovr.com) or WhatsApp (msg me for number)

@yono38 thanks for taking care of the travis build.
Yeah there are issues I've wanted to work on but got swamped. This one for example.


How to crop & align face images?

Now I'm trying your code according to"How to implement our models on your data", but I don't know how to get cropped & aligned face images.
Could you tell me how to crop & align face images?
And if possible, could you share some samples of cropped & aligned face images?
Thanks,

I will recommend the OpenFace 2.2.0 toolkit to you to crop and align faces.

Thank you for reply. I try it.


Typings and common/shared api

move domain typings to common package, to remove redundancy from defining structural typings in both frontend and backend application. This targets also the upcomming websocket package.

@Tada5hi never forget this again in the early stage when creating a mono repo structure with shared apis and typings.


feat: add --skip-sync guidance to upload command

LGTM, but I am wondering about the UX. Maybe I would be more proactive and just disabled the sync automatically without the prompt and only informed the user. The problem with this approach is that we would have to have a flag that could disable this behavior, which is not ideal. Although maybe we could use --no-skip-sync, I am not sure if the framework allows for bool flags to use --no... prefixes for false values.
I will leave the approval to @agazso as he is more aware of the UX side of swarm-cli.

One thing I do see as an issue is that we are using the --quiet flag for non-interactive, but it probably should have its own option, as verbosity level should not effect interactiveness.


Update checkout and order price calculation

Part of https://github.com/saleor/saleor/issues/12539
Update checkout and order price calculation - adjust to new promotion objects. Ensure the prices as properly recalculated based on promotions - checkout and draft order. The currently created orders shouldn't be changed.

Closing, as the base is done. Only requires some cleaning that was moved to a separate tasks: https://github.com/saleor/saleor/issues/13515, https://github.com/saleor/saleor/issues/13516


I can't log in

Hey!
I can't log in, and I think there is an issue with the language server.
https://github.com/znck/grammarly/issues/352
Could you upgrade to the prerelease version?

Hey!
I would love to know if you are going to do anything about this or if you are just going to wait for the main version of grammarly to catch up.


Assignments fragment starts at bottom

This issue has been fixed and will be available in the next release.