Add option to hide resources in REST API

The requester may only want the count/subcount from a query. If the
number of resources to be rendered is very large, iterating over them
on the backend unnecessarily carries a performance penalty, as well as
generating a large response body to go over the network. Adding an
option to hide the resources addresses both issues.
/cc @AllenBW
@miq-bot add-label api, enhancement
@miq-bot assign @abellotti

this is the best day ever 🍰

I'm not sure but I think @AllenBW approves of this PR.  😉

@AllenBW can you share your use case and if this PR helps it?  I'm curious if you have numbers before/after this change?

Just tested it locally and I'm 👍 with it.    @AllenBW can you kick the tire ?

@jrafanie Use case is present state of SUI, to update those service badges on the nav a reoccurring call is made every now and again with the options   expand: false,         filter: ['service_id=nil'],         auto_refresh: true,
So this fetches the full list of services, but we don't need the full list, just the subcount for filter (remember this is for the badges).
@abellotti LGTM 👍

Some numbers:
Hitting my development environment with 401 Vms:

Response time (ms)
Views (ms)
ActiveRecord (ms)

With (hide=resources)
136.124
0.1202
19.3664

Without
145.726
0.1412
18.9844

Before
145.828
0.1432
18.8664

I've tried a few different approaches, the above is going off a mean response time which I gathered from the development logs. I made 500 requests for each case. In summary:

Mean response time is lower with the new feature
Mean response time does not appear to be significantly different between before and without cases
Time spent in ActiveRecord is up in with the new feature, contrary to my expectations

I think taken at face value, the first two points should add some legitamacy to this PR. The third is baffling to me, but given the lower overall response time is not a concern.

Note, @imtayadeway we're querying all of the resources even in the situation in which you don't want the resources because you just want a count.  We'd have to change things around to not query for all resources but to instead do a count.  We're saving the time of returning the resources data in the payload.  If you're running this locally, you're probably not seeing much delay because there's no latency.  If you are remote from the rails server, this PR could demonstrate a larger improvement.

LGTM


fix: use dataset plural metadata for all queries

When the schema name is #Person, we were getting a GraphQL all query of allPersons.
We have the Plural in our metadata, so lets use it.

lgtm


default account under cash account field need to be selected again to continue updation of invoices

Location- Update invoices under sales module

location- under payment received in sales module

issue fixed !

please recheck this issue @zahidmuhammed

issue fixed!


transport map : unmanaged resources purge

The resource postfix::transport does not handle unmanaged entries in the /etc/postfix/transport file
steps to reproduce the issue :

manually add an entry to the file /etc/postfix/transport ( e.g : gmail.com : discard )
apply the puppet catalog, using the postfix::transport resource, and a configuration which doesn't include gmail.com
the manually added entry is still present after the puppet run

That is right, and it is the expected behavior. This module allows you to manage the configuration in a granular way, but does not purge unmanaged entries at the moment.


Actualize README

I did a lot of changes and need to actualize README.md including new screenshots.

Need to write about installation

Done with 66e0592


Discovery Page - adjustments needed for search bar and mobile view

Hi Muriel - great work! One issue is that for about a month I thought that the discovery page only consisted of the left column filters.  In that view, the search bar is at the bottom and needs to be moved to the top.  It wasn't until I talked to David that he explained its a screen width issue.  Maybe put a message at the top of the screen informing the user with something like 'You are viewing the mobile page. For the full website click here' or some other kind of information that asks the user to widen the screen, or only shows the mobile view on mobile phones. In mobile view, be sure the search bar appears at the top.
Thanks so much!
Christina

@ChristinaB, I made some layout changes that have now been deployed to www. Could you verify if this issue is fixed now?

This seems great now. It has to be cell phone narrow to lose the right side results now, great!
Thanks Mauriel.
C


Implement sqldelight & remaining APIs

Need tables for :

Accounts
Institutions
Items
Transactions

Queries & mutations for

accountsByUser
transactionsByUser
itemsByUser
itemDelete (unlinkes an intitution)

closed by #14


Quiet down healthchecks to save battery and CPU usage, fixes #1663

The Problem/Issue/Bug:
#1663 complains about the constant running of the ddev-ssh-agent healthcheck, which uses CPU and battery. But really most of the containers have this problem, and with the other ones it multiplies.
Docker provides us only the "interval" configuration for healthcheck, which is both the time to wait before the first healthcheck and how often to run it after that.
In ddev, we mostly care about when it first becomes ready and usable, and it doesn't often need to be checked after that, but we were always stymied by Docker's design mistake here.
How this PR Solves The Problem:
This is admittedly a hacky approach, but

Use a 1 second interval. Docker will wait only 1 second before trying it the first time, and will try thereafter every 1 second.
Use a long 120s timeout, meaning docker will wait that long for a response
Track the health status out-of-band, by creating /tmp/healthy when we find it's healthy.
If the healthcheck finds on startup that it most recently was healthy, sleep for a defined time (configured here to a minute or so) before checking. That slows down the whole healthcheck routine.
The start script deletes /tmp/healthy. This solves the case where a container is docker-stopped (paused in ddev parlance) and then started. The start script on resuming deletes /tmp/healthy so we get a fresh start checking healthy.

Manual Testing Instructions:
ddev stop -a --stop-ssh-agent and ddev start
Look at your computer's CPU usage.
Look at docker events, you should see far less than previously.
An interesting tool is docker inspect ddev-router | jq ".[].State.Health", which shows the last few healthchecks and their result (change container name as necessary). This is particularly interesting early in the life of a container.
Automated Testing Overview:
None provided.
Related Issue Link(s):
OP #1663
Release/Deployment notes:

This is close, but ddev pause (docker stop) leaves that /tmp/healthy in there, so on start, it doesn't update soon enough. Need to figure out a way to use the actual date on /tmp/healthy.

Artifacts for this round are at https://circleci.com/gh/drud/ddev/15097#artifacts/containers/0 for anybody who would like to take a look.

@j6s reviewed and ccommented in https://github.com/drud/ddev/issues/1663#issuecomment-507045785

One minor question (not sure how this project handles configuration): Would it maybe make sense to pass the sleep time down via environment variable? That way we could have something like
ENV HEALTHCHECK_SLEEP=59
HEALTHCHECK...

in the dockerfile

I think it's absolutely worth making that configurable, thanks. I thought about it as the work went on, but just wanted to prove the concept at the time, and never got back. I'll try to add a global config for that setup if this flies with everybody.


i want to add a event in sideMenuButton but it not work?？？

export default function ($rootScope, $scope) {
$scope.clickButton = function () {
$rootScope.$broadcast('info:clicked');
}
}

@Scheinin you need to add an event when a button is clicked?


Implement atomic operations for custom value types

The current implementation of atomic operations (introduced in #57 and #64) does not support custom value types.  Ginkgo will compile, but attempts of using it will result in assertions failures.
We should explore the possibility of general mutex functionalities for GPUs,  which would allow us to implement atomics. They won't be extremely fast, but will at least work correctly.

This is to difficult to do for 1.0. Will have to wait.

It seems like this was already completed with #310, now unsupported types already fail at compile-time


De novo transcriptome assembly, annotation, and differential expression analysis

Finally a tutorial for de novo transcriptome assembly, annotation, and differential expression analysis as promised in #59 .
It's different than the existing de novo transcriptomics as here we don't use a reference genome, we just assemble the transcriptome using Trinity
We (with @r1corre) have a first draft of workflow, but a few things are missing:

blast & co process before trinotate
trinotate visualization
better handling of data collections probably
find a good dataset
...

Fixes #59

It's still in progress.
TODO :

[ ] Finish DE part
[ ] Annotation part
[ ] Text, Text, Question ...
[ ] Main questions
[ ] Main objectives
[ ] Main key_points
[ ] Satellite

[ ] data-library.yaml
[ ] tutorial.bib

[ ] ...
[ ] Full reading

Can we consider to merge this PR?
I disabled the tutorial to get a nice URL we will be able to share tomorrow.
I promise to daily beat @r1corre to make him finish this tutorial 👿

thanks @abretaud and @lecorguille! and good luck tomorrow!

Thanks!

hi, I am trying to run denovo transcriptome pipeline on usegalaxy.org, but the issue is I cant see Trinity in the assembly method. Can you please guide me through how to use it?
Thanks


repro: watcher not triggered on setProps

This is a minimal repro of something I ran into. It does work in the real app, but not in the unit test, so I think setProps is not triggering the watcherEffect.
It is entirely possible that I am doing something weird here, we can close if that's the case :)

setProps + watch was buggy in VTU v1 as well. There is a few issues about it still open.
I wonder why this is happening. I will dive into this sometime this week! Thanks for the repro.


Fixes #332. Add popper matrix subcommand

popper matrix subcommand can be used to define an execution matrix for a pipeline using environment variables. It is used as popper matrix pipeline --add key1=val1 to add a key and popper matrix pipeline --rm key1 to remove a key.

I forgot: can you please rebase master so that tests are added to the popper pipeline


Deprecate iris.analysis.calculus.curl

📰 Custom Issue

The current developer core is uncomfortable with iris.analysis.calculus.curl remaining in Iris' API.
curl was introduced in the earliest days when we were speculating about where Iris would prove most valuable, but complex calculus did not become a 'growth area', putting curl in an unfortunate position of requiring a high level of esoteric knowledge to maintain, and being unlike most other Iris operations. This leaves our developers unfamiliar and out of practice, hence our difficulty answering questions, and the fact that several elements (e.g. 3-dimensional curl) have never functioned as advertised.
Compare this to something like regridding, which also requires a challenging level of specific knowledge, but is a heavily used Iris feature and therefore has dedicated resource/expertise at all times.
There are several ways forward:

Seek a volunteer with the right expertise to maintain curl in Iris. There is even potential for this to expand into a larger satellite project with more calculus conveniences. (see Plugins).
Deprecate the curl function and convert the code into a detailed documentation example. This avoids the current implication that this is a maintained part of Iris, and leaves users to customise in whichever way works for them.
Deprecate the curl function and recommend people use MetPy's curl instead. MetPy would need to be included in environments at the UK Met Office.

After posting this internally at the UK Met Office on 20th November, so far no volunteers have come forward. So it's currently looking like Options 2 or 3 above.


Added endpoint sign up

Summary

I created the sign up endpoint

I installed express validator dependency

I created middleware to validate if email exists

I created regex to validate domains and password

Known Issues

None

[Change!] List any known issue of the feature you are implementing.
Trello Card

https://trello.com/c/Nhmfz79H/35-sign-up

Just some questions and comments, but the code looks good to me 😄


Add limited spot support to ADAM überscript (resolves #256)

Returns spot instance support to the ADAM überscript. If a --spot-price option is passed on the command line, calls to cgcloud to start/grow a toil cluster will pass a spot price. If this option is not passed, on demand instances will be used.
Fixes a syntactical issue with the grow_cluster method in the ADAM überscript that led to the optional cluster_type being incorrectly overridden when trying to pass the *options parameter.

Only nits.

Nits addressed.

@hannes_ucsc, merge once tests pass.


Bad name choice i.icon.fa within icon.css

I'm trying to use FontAwesome in combination with Semantic UI, both loaded through Bower. Unfortunately the Icon pack is preventing me to use font-awesome without making (unnecessary) structural styling changes.
For example: <i class="fa fa-map-marker icon"></i> will match i.icon.fa. Removing 'icon' will unset all styling for icon position thus this is a unwanted solution.
I would suggest changing the name of i.icon.fa to  i.icon.fontawesome preventing this issue resolving the conflict.

Stupid, I can just aswell remove "fa" from the classname, since both are defining FontAwesome. Still I'm behind the idea that it shouldn't use the same naming.


cloudpaird

So after some investigation i've found that under the new 10.11 El Capitan Golden Master there is a process that is failing to start which i believe is the issue why we are unable to get the Continuity / handoff to work.
CloudPairD which is 'Daemon responsible to registers your device for Handoff and Continuity after signing in to iCloud'
On my 2011 MBP with XXCAX BTLE card installed, I am unable to start it, as it reports that "System does not support continuity"
Both myself and BasicGreatGuy on Macrumors have installed GM, and available handoff check box  after installing CAT, however, neither of us has the cloudpaird deamon running. Neither of us can get handoff to work between devices.
However, on my 2012 mbp it does work, and cloudpaird is running.
I think we just need to determine what the requirements are for the cloudpaird to see the system as 'supporting continuity' and maybe we can get El Cap to work with CAT!

So I fixed it!!!
Use a yosemite version (10.10.4 or lower since i think 10.10.5 had issues) of cloudpaird
replace is system/library/coreservices and reboot!!!!

Can you post the file I should replace the current one with?

Ill link to my post on the MR forum where i put it.
http://forums.macrumors.com/threads/modded-continuity-activation-tool-btle-cards-with-el-capitan-is-working.1890715/page-8#post-21810398

Thanks!!


Fixing import in preset_passmanagers code example

Summary
Changed from from qiskit.transpiler.preset_passmanager to from qiskit.transpiler.preset_passmanagers in the documentation example, and a few additional random typos.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
31 unchanged lines in 4 files lost coverage.
Overall coverage decreased (-0.04%) to 84.682%

Files with Coverage Reduction
New Missed Lines
%

qiskit/extensions/quantum_initializer/squ.py
2
79.78%

src/sabre_swap/mod.rs
2
95.05%

src/sabre_swap/neighbor_table.rs
7
69.23%

src/results/marginalization.rs
20
77.01%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
61668

Relevant Lines:
72823

💛  - Coveralls


[WIP] Update dependencies

Description
Update all dependencies to latest version. NOTE: I can't get the tests to pass locally using make test, either before or after the changes. So I admit this is a blind update. I was hoping the CI would provide some feedback that I can trust.
Issues Resolved
Close issue #882
Check List

[x] Commits are signed per the DCO using --signoff
[ ] No linter warnings (make lint)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Oh gosh. And I see I updated the go version accidentally. Let me revise this!

Thanks @jspeed-meyers, please let me know once you are ready with your changes.
@swoehrl-mw @getsaurabh02


_generate_path function cannot convert paths appropriately. Generalisation could be helpful

https://github.com/pySTEPS/pysteps/blob/fcf2bcd8094585a460d062eed35873211b248945/pysteps/io/archive.py#L100
Pysteps source file snap
"mch_rzc": {
            "root_path": "/Users/mohitanand/Documents/projects/masters_project/data",
            "path_fmt": "%Y/Meteo_Swiss_Images_%m",
	    	"fn_pattern": "meteoswiss.radar.precip.%Y%m%d%H%M",
            "fn_ext": "gif",
            "importer": "mch_gif",
            "timestep": 5,
            "importer_kwargs": {
                "product": "RZC",
                "unit": "mm/h",
                "accutime": 5
            }

The code to read the files
import pysteps as stp
from pysteps import rcparams
from datetime import datetime

ds = stp.rcparams["data_sources"]["mch_rzc"]
starttime = datetime(2016,1,1)
importer = stp.io.get_method(ds.importer, "importer")
input_files = stp.io.find_by_date(starttime, ds.root_path, ds.path_fmt,ds.fn_pattern, ds.fn_ext, ds.timestep, 0, 1)
R, _, metaradar = stp.io.read_timeseries(input_files, importer, **ds.importer_kwargs)

Error
path /Users/mohitanand/Documents/projects/masters_project/data/2016/Meteo_Swiss_Images_%m not found.
path /Users/mohitanand/Documents/projects/masters_project/data/2016/Meteo_Swiss_Images_%m not found.

%m not being converted to the month value

Hi @melioristic thanks for this report. @spulkkin maybe you can have a look at this?

It seems that line 101 is causing the issue. Only format strings that start with % are formated using strftime. Otherwise a the same format string is returned.
https://github.com/pySTEPS/pysteps/blob/fcf2bcd8094585a460d062eed35873211b248945/pysteps/io/archive.py#L100-L101

Exactly. Why don't we just remove the if clause?

I'm working on it. I'll also add a few tests for that function.

@melioristic, Pull Request #76 should fix this issue. Let us know if you are still having problems.


added descriptions to AudioEffect, AudioEffectAmplify, and AudioEffec…

…tChorus.
I wrote in descriptions for three audio classes.

Dang it. Fixed.

Changes look okay for merging. Please squash commits together.


added new quote component - example 15

This is new quote component named backgroung-image,
It sets image provided in field as background, it also allows text color modification.

Wow @jahanvir, this looks pretty and unique component that you've crafted 🚀


volumize.py should allow specifying an output directory

[ ] can specify output path (should in fact be an argument not an option)
[ ] cleaned files are suffixed as .cleaned.pdb
[ ] cleaned and annotated files should go into this as a directory if more than one structure is to be parsed
[ ] cleaned and annotated files should have this path if a single file is being processed

Decided to abandon this since the volumizer package is now the entry-point for most users and gives them full control over where files go.
The wrapper volumizer_cli still does saving in specific locations, but this is currently not for public use.


Rebase python2.6 support

This PR rebases the python2.6 support branch to current master.  It's the first step towards actually making a common python-2.6 compatible distro codebase.

@nir0s @SethMichaelLarson  This is in reference to: https://github.com/nir0s/distro/pull/206  I'll be opening another PR on top of this to actually add python-2.6 support.
I've just done the work to bundle distro into ansible for our 2.8 release: https://github.com/ansible/ansible/pull/35985 and it would make sense to me to have a common place for 2.6 compatibility to land.  I can't promise to be a great deal of help on this but I'll do what's needed to get the initial version of python-2.6 support passing in Travis and take a look at rebasing onto newer versions whenever a new Ansible release is in the pipeline.  If other people who are bundling join in, that would make me happy as it would be less work for me.


feat: make document scrollable

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


Please add a license file

I'd like to add this to awesome-zsh-plugins, but it doesn't have a license file.
Please add a license file - if you don't have one in mind,  I recommend using choosealicense.com to help choose an appropriate one.
Thanks!

@unixorn Thank you, I'll add it tomorrow. Most likely it will be MIT


fix: upgrade to version 3.1.22

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign abayer
You can assign the PR to them by writing /assign @abayer in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test gsm

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@jenkins-x-bot-test: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test gsm

kube
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test kube

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@jenkins-x-bot-test: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test gsm

kube
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test kube

vault
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test vault

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@jenkins-x-bot-test: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test gsm

kube
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test kube

vault
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test vault

tls
edd79e0b89e1ba30ad6988d74f50212ed16e99ef
link
/test tls

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

lets get the fix for long term storage in first https://github.com/jenkins-x/jx3-versions/pull/1859
/hold


Refactor Python/C++ implementation of sliding window ops (Conv/Maxpool ops) to ease up model bring up

Two issues with current implementation -

For sliding window ops, we create halo config tensors during op initialization. To construct these halo config tensors, we need the full tensor shape (batch, height, width). As I/O tensors are not available until runtime, we have to manually calculate and track the intermediate tensor shapes during model initialization within init of each module.
Sharding configs are calculated during conv op initialization. This makes conv op init API complicated with a lot of arguments. The sharded ops before and after conv rely on the configs calculated by conv op for resharding at runtime.

From Javelin CNN standup meeting:
Possible solutions and TODO -

Break up conv op init functionality. Expose calculation of shard configs as a helper function that can be called either during init or during forward when we have tensor shape.
Simplify conv op initialization - only create weight and bias tensors. Defer halo config tensors creation for later. Conv op init api would look the same as Pytorch Conv2d op init API. Not required to pass in tensor shape.
Create config tensors during forward pass. Happens in the first iteration where the tensors will be cached. To ensure that all config tensors are stacked on top of l1, we can pre-allocate that space (user configurable) and force TT-metal allocator to allocate in that space. We can tie the config tensors to tt-metal program object which can own them and be responsible for destroying the config tensors at the end of the program.

@nsmithtt @AleksKnezevic @jvasilje @davorchap

One gotcha I just realized is that we need a means for tracking original [n, h, w] dims that ideally are propagated via the tensor.  Perhaps we can introduce the concept of logical_shape vs physical_shape or something.

One gotcha I just realized is that we need a means for tracking original [n, h, w] dims that ideally are propagated via the tensor. Perhaps we can introduce the concept of logical_shape vs physical_shape or something.

Yes. But as a first step, we could track tensor height/width during runtime forward calls.

Update > Proposing JIT Conv

Minimal work during model initialization/preprocessing. pre_process_model handles folding of conv weights for unity stride and batch norm folding into conv weights. All done on host. Weight/bias tensors are NOT moved to device here.
Very minimal runtime code in python. Most of the runtime code (invoked by python forward call) will be moved to C++.
Config tensors for reader pattern will be created/allocated on device within create_program and tied to program object. With program caching enabled, this will happen only once and config tensors will be cached and reused by conv ops with same parameters.
Weights and bias will be converted to desired layout on host and moved to device during runtime just before running conv operation.

followups:
https://github.com/tenstorrent/tt-metal/issues/8744
https://github.com/tenstorrent/tt-metal/issues/8745


What guide should I use to install Homebridge in Raspberry?

I see there are 2 guides to install homebridge in my raspberry pi.
https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi
(this installs node 4.0.0)
https://github.com/nfarina/homebridge/issues/103
(this installs node 0.12 and it seems homebridge is inside my home folder)
The thing is that I cannot make my plugins work with dependencies and I think it is because I messed up everything.
What is the proper way to install homebridge in raspberry pi?
If you have node 4.0.0, are custom plugins with dependencies working in your case?
Thanks!

What model Pi and what version of Raspbian are you running on it?
Also what versions of nodejs and npm are installed (type nodejs -v and npm -v to find out)
The #103 issue was merged with the wiki a while back and is safe to assume is outdated.
What issue are you having?
I'm running node 4.4.4 and npm 3.7.2 on my Pi 2.

Thanks for reply.
I bought a Raspberry Pi 3 a few days ago. I installed Raspbian and it is up-to-date.
Now my node version is 0.12, but yesterday was 4.4.4.
The problem I have is that the plugin I developed in my mac does not work in the RasPi, because the dependencies cannot be loaded.
Does custom plugins with dependencies work in your RasPi?
More info here:
https://github.com/nfarina/homebridge/issues/657
Any help is appreciated. Thanks.

I will comment on the #657 issue, maybe close this one to avoid duplicates?

I close this I continue discussion there, thanks a lot.


Run aggregation projector on shard level

This reduces a lot of blocking between the search threads and can speed
up queries a lot if there are multiple shards on the same node.
In a simple test with 5 shards on 1 node a sum aggregation query
improved from 1.2 to 0.7sec
before:

after:

lgtm, good catch ;)


"setup-kdeconnect" just command

This would be a setup of different scripts for layering and moderately securing KDE connect and related firewall settings.
Goal is to make it more accessible and not take one of KDEs coolest Feature, that works over Wifi only and allows you do use your GrapheneOS phone as a remote. Just assume that is safe enought to support an opt-in feature.

Bug report
Discussion
It seems there is also a way to disable KDE Connect, the issue is at least known. Having it disabled, same with cups, and not uninstalled could make the choice easier

>> ls /etc/xdg/autostart/
org.kde.kdeconnect.daemon.desktop
org.kde.plasma-welcome.desktop
geoclue-demo-agent.desktop
org.kde.discover.notifier.desktop
vboxclient.desktop
spice-vdagent.desktop
vmware-user.desktop

Removing these files will stop the services from autostarting. Users can still add them in their user ~/.config/autostart if they wish to.
This does not only apply to kdeconnect but okay

>> ls /etc/xdg/autostart/
org.kde.kdeconnect.daemon.desktop
org.kde.plasma-welcome.desktop
geoclue-demo-agent.desktop
org.kde.discover.notifier.desktop
vboxclient.desktop
spice-vdagent.desktop
vmware-user.desktop

Removing these files will stop the services from autostarting. Users can still add them in their user ~/.config/autostart if they wish to
This does not only apply to kdeconnect but okay

This is being worked on upstream, butas of now there's no clean way to enable/disable kdeconnectd since it's not a systemd service.
In the meantime you can just layer back kdeconnect if you need it.

yes afaik its as simple as creating an empty desktop entry for kdeconnectd in the autostart. Such a just file could include the layering though, for the time where there is no clean solution. and the remove kdeconnect would unlayer it repectively.
I dont find the time currently, and the new layout has changed a bit, but when I find it I will try to create some just commands and we can see.

Such a just file could include the layering though

That would be very messy. The goal should be to include kde connect in all kinoite images but have it disabled by default. This requires changes to the image, not a just command.


"Neutral" column header not reflecting langusge setting

The VS add-in does not reflect the neutral language selected in the header of the "Neutral" column.
In the AssemblyInfo.cs file, you can set the neutral language for an assembly:
[assembly: NeutralResourcesLanguage("nn-NO")]
However, no matter how this is set, an American flag is flying over the column. This is misleading. Either the flag of the neutral culture should be used, or the flag should be omitted for this column.

Unfortunately assembly attributes are not available in .resx files, and ResXManager can't not compile your source code to detect this...
If you derive from the standard "en-US", you have to change the default in the configuration page of ResXManager.


Empty IUploadRequest Interface?

Hey, how am I supposed to do FileStation Upload if the IUploadRequest interface is empty?

It’s part of the constructor on the concrete class. See https://github.com/DotNetDevs/Synology/blob/master/Synology/FileStation/Upload/UploadRequest.cs


Issue 165: Updating @Named to have RUNTIME retention so it can be det…

…ected by ToothPickTestModule

Coverage increased (+0.06%) to 94.883% when pulling 166383273d09f3e96ff488ba1b62fb54b86fe117 on dlemures/165 into 8deade32b179607f42801644bdc1f9e9faf6827f on master.

It does not make any sense anymore: https://github.com/stephanenicolas/toothpick/issues/176


Allow up-to 6 decimals for transfer values

Change summary:

Allow up-to 6 decimals for transfer values
Apply gas cost flooring up-to 6 decimals

Related issues:

https://github.com/ainblockchain/ain-blockchain/issues/1208

Thanks for the review! @jiyoung-an Now merging..


docs(error/modulerr): describe your change...

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change?
Please check if the PR fulfills these requirements

[ ] The commit message follows our guidelines
[ ] Fix/Feature: Docs have been added/updated
[ ] Fix/Feature: Tests have been added; existing tests pass

Other information:

Since this is a very minor change and you haven't signes the CLA I'm going to close this PR


cannot make empty list

I'm having a really hard time trying to figure out how to make an empty list in version 2.1.2.  For instance, in your tests if I change test/confs/complex_example.conf so that it looks like this:
some_val = foo
sublist_example.opt1 = val1v
sublist_example."opt-2" = val2

You end up with this:
[my_app: [
  complex_another_list: ["$person": [age: nil], first: [username: "test_username1"]],
  complex_list: ["$person": [age: 30, type: :undefined]],
  some_val: :foo,
  some_val2: 2.5,
  sublist: ["opt-2": "val2", opt1:    "val1"]]]

What I am trying to do is to not have the defaults.  If I didn't set anything then the default it getting this $person and a keyword list.  I just want it to be:
[my_app: [
  complex_another_list: [],
  complex_list: [],
  some_val: :foo,
  sublist: ["opt-2": "val2", opt1:    "val1"]]]

I hope this makes sense.  I think I am basically looking for a way to make the default an empty list. I'd be happy to try and make this part of the library if it isn't possible currently.

You should just be able to set the default value in the schema to an empty list. If a transform modifies the value you may need to make sure it doesn't set a default as well. If that isn't doing the trick I'll take a look tomorrow morning

@bitwalker I was able to get this schema to work:
[
  mappings: [
    "complex_list.*": [
      to: "my_app.complex_list",
      datatype: [list: :complex],
      default: []
    ],
    "complex_list.$person.type": [
      to: "my_app.complex_list.$person.type",
      datatype: :atom,
      default:  :undefined
    ],
    "complex_list.$person.age": [
      to: "my_app.complex_list.$person.age",
      datatype: :integer,
      default: 30,
      validators: ['Conform.Validators.RangeValidator': 1..100]
    ],
  ],
  transforms: []
]

This is the result:
[my_app: [complex_list: []]]

I did that on the 2.1.2 release tag, and that is what I am looking for.  Now my problem is I put the exact same config in an umbrella app, add conform to the top-level mix file, and then run mix conform.effective --app=na_server and I get this again:
[vagrant@localhost na]$ mix conform.effective --app=na_server
App not found!

App not found!

App not found!

[complex_list: ["$person": [age: 30, type: :undefined]]]
App not found!

[complex_list: ["$person": [age: 30, type: :undefined]]]

I have the 2.1.2 version in my deps.  I'll keep looking into it.  I really want this to work because we gave some ridiculously configs and this is *.conf is really a sysadmin's dream.  If you have any insight I would appreciate it very much.

Could you give master a shot? There are a number of changes which you'll want, including some fixes for umbrellas :)

I'll get something together for you.  Thanks a lot for the help.

I created an umbrella app.
https://github.com/nhalm2/conform_example
When I run mix conform.effective --app=app1:
[vagrant@localhost conform_example]$ mix conform.effective --app=app1
[clients: ["$client": [host: nil]]]
[clients: ["$client": [host: nil]]]

I expect:
[clients: []]

Here is an example of when I build the release and then try to run it:
[vagrant@localhost conform_example]$ MIX_ENV=prod mix release --env=prod --name=master
==> Assembling release..
==> Building release master:0.1.0 using environment prod
==> Including ERTS 8.1 from /usr/lib64/erlang/erts-8.1
==> Packaging release..
==> Release successfully built!
    You can run it in one of the following ways:
      Interactive: _build/prod/rel/master/bin/master console
      Foreground: _build/prod/rel/master/bin/master foreground
      Daemon: _build/prod/rel/master/bin/master start
[vagrant@localhost conform_example]$ _build/prod/rel/master/bin/master console
Erlang/OTP 19 [erts-8.1] [source-77fb4f8] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

["$client": [host: nil]]

17:41:07.447 [info]  Application master exited: Master.start(:normal, []) returned a bad value: ["$client": [host: nil]]
{"Kernel pid terminated",application_controller,"{application_start_failure,master,{bad_return,{{'Elixir.Master',start,[normal,[]]},[{'$client',[{host,nil}]}]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,master,{bad_return,{{'Elixir.Master',start,[normal,[]]},[{'$client',[{host,nil}]}]}}})

Crash dump is being written to: erl_crash.dump...done

Thank you!

@nhalm2 Could you update your dep to {:conform, github: "bitwalker/conform", tag: "2.2.0"} and let me know if everything looks good to you? There are a number of improvements there, including a fix for the issue you raised.

@bitwalker Ichanged the dep and got this:
[vagrant@localhost conform_example]$ mix deps.update --all
* Getting conform (https://github.com/bitwalker/conform.git)
remote: Counting objects: 1572, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 1572 (delta 6), reused 0 (delta 0), pack-reused 1538
Receiving objects: 100% (1572/1572), 34.76 MiB | 10.35 MiB/s, done.
Resolving deltas: 100% (854/854), done.
Running dependency resolution...
Dependency resolution completed:
  distillery 1.1.2
  neotoma 1.7.3
[vagrant@localhost conform_example]$ MIX_ENV=prod mix release --env=prod --name=master
Compiling src/conform_parse.peg
PEG manifest updated
==> conform
Compiling 1 file (.erl)
Compiling 19 files (.ex)
Generated conform app
==> Assembling release..
==> Building release master:0.1.0 using environment prod
==> Including ERTS 8.1 from /usr/lib64/erlang/erts-8.1
==> Failed to build release:
    {:overlay_failed, :enoent, "/home/vagrant/dev/conform_example/_build/prod/lib/conform/priv/bin/pre_configure.sh", {:copy, "/home/vagrant/dev/conform_example/_build/prod/lib/conform/priv/bin/pre_configure.sh", "releases/<%= release_version %>/hooks/pre_configure.d/00_conform_pre_configure.sh"}}

Ah, you'll need to use master of Distillery as well.

Added Distillery master and now this is looking spot on.  Thanks so much for your help!

Great! I'll be publishing new releases of both conform and distillery today :)


Strange behavior of "align_comma_semicolon" with alignment of struct declaration

With "sv.align_comma_semicolon" : true
typedef struct packed {
    logic a  ;
    logic aaa;
} struct_t;

With "sv.align_comma_semicolon" : false
typedef struct packed {
    logic a;··
    logic aaa;
} struct_t;

Note: · represents a space.

What are you expecting it to be?

When aligning module declaration, there are no spaces at the end of lines

Fixed in v3.0.5 (ST4)


Inititing for GS0C 2019

Hi, I would Like to contribute this project under GSoC 2019
Can You please direct some Instructions for commencing contributions to this project?

@HSR-4 Take a look at the suggestions and then follow through the GSOC process of submission. Thx for you interest!!


Correction for raw affiliation . BRGM -University of Montpellier, 1039 Rue de Pinville, 34000 Montpellier, France.

Correction needed for raw affiliation . BRGM -University of Montpellier, 1039 Rue de Pinville, 34000 Montpellier, France.
raw_affiliation_name: . BRGM -University of Montpellier, 1039 Rue de Pinville, 34000 Montpellier, France.
new_rors: 051escj72;05hnb7x64
previous_rors: 051escj72
works_examples: W4317940077;W4320082213

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


Multiple Exposure Sources Stacking

Multiple Exposure sources of the same elements are stacking the -res, but the mechanic should only allow one. For example, combining Scorching Ray with Wave of Conviction set to Fire, PoB is reporting a total -50 Fire res from both exposures. It should cap at -25. You can turn off either skill to get the real number, but the average user might not realize this is happening.
Another minor issue with Exposure is that you can currently only select one type for Wave of Conviction, but it is possible to stack Exposure to multiple elements simultaneously. Perhaps not practical, but it's pretty easy to at least get both Lightning and Fire with the default skill. This can be simulated using a fake Frost Bomb and Scorching Ray though.

I don't know what the issue is with the second part as putting Frost Bomb and Scorching Ray seems to apply both resistance penetrations correctly (although the cold one is still coming from Frost Bomb and not cold exposure). Wave of Conviction cannot deal 2 different exposures at once
I can fix the exposure issue in a few ways (although I'll need to confirm a few things about how exposure works exactly) but @Openarl might already have a bigger plan for exposure in general so I'll probably wait and see if he replies here. I also feel that GGG plans to make it more widespread instead of limiting it to a few spells, so that would probably need to be handled more generally than just adding a flag that ignores a second same-element exposure (especially if said exposures might have different values?)

Frost Bomb + Scorching Ray is fine, I'm just saying it can be used as a workaround in case you were applying some mix of Cold + Fire + Lightning exposure with Wave of Conviction. You can indeed apply 2 (probably 3, haven't tested) exposures through Wave of Conviction, though you need to have overlapping damage rolls on multiple elements. I don't think you can get 2 exposures with one cast, but since the debuff lasts 4 seconds it's possible to stack them on bosses. Here's a screenshot testing this with a level 1 WoC in Act 5 Reliquary:
https://imgur.com/a/w679XFU
Now whether or not this is useful is another story. I would guess that in most cases people would be scaling one of the elements high enough that it would roll over the other 2. Since it can be worked around using other skills that cause exposure, I don't think it's a high priority.
I have a feeling that GGG wants to use Exposure as one of their keywords like 'recent' in that it will always mean -25% res, but who knows what they will come up with in the future.

Oh alright, I did not know that it's pretty good. I wonder if it was intended though!
It might need to be changed in PoB then but it might get a bit complex depending if we decide to apply exposure automatically from the damage calculated.

I have a feeling that GGG wants to use Exposure as one of their keywords like 'recent' in that it will always mean -25% res, but who knows what they will come up with in the future.

Yes that's exactly how I felt when I read it. If it is changed in PoB to a keyword, it will definitely need a bigger rework as right now it's simply counted as -25% resistance that can stack. I'll probably hold off working on it until we get more information on what GGG wants to do with it or Openarl has a plan for it.


Please update acorn to 5.7.4, 6.4.1, or 7.1.1 to resolve vulnerability in acorn

See advisory from npm: https://www.npmjs.com/advisories/1488

Done in #250

Thank you!


No links lines between tables show up outside the standard are when loading...

The link lines are not visible outside the standard drawing area when loading a saved database, until I start to move a table, drag and move a bit in a direction, then the whole page refreshes and all the lines are visible again. Please see image

PS: or just click on a table makes the lines appear again. Thanks!

Can you please elaborate a bit more on how to reproduce this (buggy) behavior? I am having hard times getting it to show on the demo installation at http://ondras.zarovi.cz/sql/demo/?keyword=default ...

create two tables and move one outside the grid area. make some key-forighn key links and save it. After you close the app, repoen and load the saved design, the link lines wouldn't be visible outside the grid area. At least this is happening to me. After I make a click on a table, all the lines appear normal. Thanks for your time!

Shall be fixed now.

You got it!
Thanks Ondras! This is a very nice project :-)


[NVIDIA XLA] XLA generates element-wise fusion kernel with no data locality for GPU

Click to expand!
Issue Type
Bug
Source
source
Tensorflow Version
tf r2.11
Custom Code
Yes
OS Platform and Distribution
Ubuntu 16.4
Mobile device
No response
Python version
3.8
Bazel version
3.30
GCC/Compiler version
gcc
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
I encountered a case where XLA creates very bad layout for pointwise fused kernel,  the fused kernel are using layout {1,0,2,3},  which leads to almost no data locality across CUDA block threads, and these kernels takes really long time (45% of  training step for Stable Diffusion unit test).

Can you confirm that this is a layout assignment issue (bug) of XLA?

Also we are interested in whether current layout assignment {1,0,2,3} is not an issue for GmlSt?

Attaching the HLO dumps of before/after optimization. please check fusion fused_computation.1116   the fused graph for fused_computation.1116 is also attached.

Attached files:
https://drive.google.com/drive/folders/1BRA4BExE_v0xIOm5v-nRf_Xkb6gDoqhH?usp=sharing

Standalone code to reproduce the issue

In the google drive I shared, there is a unittest to produce the issue. to run it, download the folder `unittest`, and from inside the folder, run `bash r.sh`

Relevant log output
No response

Confirmed that with latest XLA, the layout issue still exist

@shawnwang18,
I can see that you are using Bazel v3.30 for the tensorflow v2.11 which was not compatible. Could you please try to install with Bazel 5.3.0 and let us know if you are facing a similar issue. Thank you!

@tilakrayal   Sorry, this is a typo, I was building using bazel 5.3.0.

@shawnwang18,
Could you please provide the complete error stack trace which helps us to debug and analyse the issue. Thank you!

@tilakray There is no error stack for this issue, it is a perf problem.   Ｉ think the easiest way for you to analysis is to run the unitest I've shared in the google drive.   We have used NVidia's nsight-compute profiler tool to analysis an issue kernel  fusion_1116 ,  the cache and global memory access traffic are like below， which obvious shows no data locality.

If you try compare the same fusion (fused_compuation.1116) but with all inputs and outputs in the row major layout, we can see that we can increase the kernel's perf by around 9X.

with current layout setting | if inputs/output all use layout [3,2,1,0] | Speedup of using layout [3,2,1,0] |
-- | -- | -- | --
21.63ms | 2.43ms | 8.9X |


config: methods to achieve 12factor-ness?

I like what I have read on the 12factor.net site but one concept in particular stands out as unclear, perhaps incomplete: config.
The site recommends using individual environment variables instead of sets of environment variables grouped in to environments (e.g. production, staging). However, the site also recommends that the development and production environments be kept as similar as is possible, suggesting that there must be some mechanism keeping at least the variable names in sync, if not the values, for consistent development environments. These two recommendations seem to be in conflict, or at least one could be clarified to support the other.
Are there practical examples demonstrating a way to manage environment variables without them being grouped in to environments or files that may inadvertently be committed to VCS?

+1. That's very interesting point - I made a question on Programmes.SE about that, but didn't get sufficiently sane answers yet.


improve PS and PSCFG test scripts

Problem

Cluster names are not correct in few instances
Power source and power source configuration cluster tests are mostly manual

Change overview
Improvements
Testing
chip-tool and nrf based DUT

@bzbarsky-apple yes, some of these tests are manual right now. I don't know what the workflow is to update these things.

@fessehaeve You move the test from the "getManualTests()" section in tests.js to the "getTests()" section.

@fessehaeve Please restyle :)

@fessehaeve Please restyle :)

Done

@fessehaeve FYI, this has conflicts.

@fessehaeve Please address the conflicts?

This PR @fessehaeve still need to go ?


Export default SWR config to allow more flexible extensions

To allow more flexible customisations and extensions it would be useful to export default config.
Eg. in our case we want to extend onErrorRetry but keep the current logic. Now we had to copy-paste the default config to our wrapper instead of calling it.

I feel it would be more convenient to change value of SWRConfig to support function, with defaultConfig as argument. to avoid config argument in callbacks been overridden.
<SWRConfig
  value={(defaultConfig) => {
   return {
     onErrorRetry(...args) {
        // customization
        defaultConfig.onErrorRetry(...args)
     }
   }
  }}
>
 <App />
</SWRConfig>

Then you can customize the callbacks at the top root.

Thanks for suggestion @huozhi, in normal application it makes sense.
Our use case is bit different though. We are building our own reusable hook that wraps useSWR() and adds bunch of custom logic & features to it. So when other teams within company use it they don't (have to) know that it is using swr under the hood so wrapping the app in <SWRConfig> would get very impractical. Our config is still static (doesn't change during runtime) it is just extension of the existing one.

I see your point, current accessing defaultConfig per hook is not ideal.
IMO we can add property config.defaults into useSWR's config value representing the defaultConfig, it's static and not overridable. Since there's not too much pre configured stuff in default config, exposing one more API/variable would be heavy.
// use-swr.ts
const config = Object.assign(
    {},
    defaultConfig,
    useContext(SWRConfigContext),
    args.length > 2
      ? args[2]
      : args.length === 2 && typeof args[1] === 'object'
      ? args[1]
      : {}
+   { defaults: defaultConfig }
  )

then you're able to customize it through hook options like beblow. This can also keep the exposed API as minimal as possible.
useSWR(key, fn, {
  onErrorRetry(err, key, config) {
    const defaultOnErrorRetry = config.defaults.onErrorRetry
    // customization
  }
})

-1 on config.defaults, since that will be circular dependency (semantically). If we do want to expose it, making it a static property of the config context SWRConfig.default would be better. Also the singular name default feels better personally.

On the other hand the SWRConfig.default static prop sounds "cleaner" to me, but thats completely your call.
Do you want me to go and update this PR that way or will you do it by your own?

@jakubriedl go ahead with SWRConfig.default in this PR, we'll adopt it once you finished 👍

is this the way you expected @huozhi ?

Thanks @jakubriedl! Will publish a pre-release soon.


Doesn't seem to work with node 12 as advertised

I'm using node 12.18.2 and<EMAIL_ADDRESS>When I try to run a gulp command, I'm still seeing the same "primordials is not defined" error that I get from<EMAIL_ADDRESS>Am I missing something with the setup, or are there still issues with node 12?
It'd be really great if this worked, as it'd save me a lot of time re-writing my gulpfile to work with<EMAIL_ADDRESS>

The call stack showed that the version of fs.js being used was from graceful-fs within the gulp module, not gulp-v3.
I was executing gulp from the command line after doing npm install -g gulp-v3. Despite gulp -v returning 3.12.1 foir both CLI and Local version, it still seemed to be loading fs.js from within gulp, not gulp-v3.

The answer which you noticed would be the best way, I think :)
We need to replace require("gulp") to require("gulp-v3"), did you do that?

Yes, I did do that. However, there are a few complications. In one case I saw an error that the gulp module was missing (an error message within gulp-v3, so I re-installed gulp alongside it, which might have complicated things.
I also know that I use gulp-sequence which unfortunately seems to require gulp rather than gulp-v3. I don't know if I'd need to fork it in order to make it work.

I created https://www.npmjs.com/package/run-sequence-v3 also, it might be work ;)

I've been able to replace gulp-sequence with run-sequence-v3 and it seems to be able to run my gulp tasks successfully. (Not tested every single one yet, but the main ones like building look good.)
Also, I found why I was getting confused about needing to install gulp as well as gulp-v3. In some cases, I was seeing this error:
Local gulp not found in {path}
Try running: npm install gulp

This had led me to think that you needed gulp to be installed as well. I've since discovered that this is an old message from the original repository. You should probably recaption it to "Try running: npm install gulp-v3".
When I run my build in Azure Devops, it's showing that error. I'll do some troubleshooting to find out why.

I'll close this issue as it was my own mistake to have gulp installed at the same time. I'd suggest you update that message to reduce confusion, though. :)


Added NPM badge

Added NPM badge which shows automatically the latest version and links to npmjs.com

Great idea! Thanks! :)


Can't install, ENOENT: no such file or directory, utime '/mnt/c/Users/DD/Git/scratch-blocks/node_modules/.staging/...

 Linux 4.4.0-17134-Microsoft
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! path /mnt/c/Users/DD/Git/scratch-blocks/node_modules/.staging/core-js-267d0b41/es6/function.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall utime
npm ERR! enoent ENOENT: no such file or directory, utime '/mnt/c/Users/DD/Git/scratch-blocks/node_modules/.staging/core-js-267d0b41/es6/function.js'
npm ERR! enoent ENOENT: no such file or directory, utime '/mnt/c/Users/DD/Git/scratch-blocks/node_modules/.staging/core-js-267d0b41/es6/function.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR!     /mnt/c/Users/DD/Git/scratch-blocks/npm-debug.log
Steps to Reproduce

Pull LLK/scratch-blocks develop branch
Sync to head
rm -rf node_modules
npm install

Operating System and Browser
Windows 10

The exact error changes around
ENOENT: no such file or directory, utime '/mnt/c/Users/DD/Git/scratch-blocks/node_modules/.staging/core-js-267d0b41/es6/function.js'
ENOENT: no such file or directory, utime '/mnt/c/Users/DD/Git/scratch-blocks/node_modules/.staging/pify-e77c4163/license'
but it always seems to be in the .staging folder

Fixed by updating to NPM 5 or higher

delete package-lock.json ,and npm i again


Duplicate steam virtual gamepads detected on Steam Deck - can't edit/remove one, causing input clashes

[*] I have checked the known issues and searched Github to ensure this issue has not already been reported.
[*] This is not a feature request, I know those belong on Discord/Github Discussions.

Description of the bug:
On my Steam Deck, the game is detecting two steam virtual gamepads (SDL 0) in the controller configuration menu (pics attached).

I'm launching the game in game mode and using the same controller layout as OoT SoH. The controller in blue is persistant and won't stay removed after re-launching the game and i also can't change the button values either. The controller in red is the one the game recognises when changing button mapping, but during gameplay, buttons from both are recognised.
This is causing input clashes and I have to manually remove the blue virtual gamepad every time I launch the game.
This issue doesn't exist in the controller config for OoT SoH.
Also, I'm not sure if it's related or not, but selecting to invert the X or Y axis for the free camera has no effect.
Expected behavior:
Only one steam virtual gamepad should be detected and in the case of removing one manually, for that to then stay removed upon re-launch.
System Information:

OS: Steam OS
GFX Backend: OpenGL
Game Version: 1.0.0
Rom Version: N64 NTSC-U 1.0

This might be a wider Linux-affecting issue. I get the same thing with my Xbox controller on Fedora 40:

I've tried removing all references to the second device in the 2ship2harkinian.json file with no luck removing it in-game. The only thing I could do for now is to edit the button mapping in that file, so they both match each other and they're both set to what I want.

this should be fixed in Rika Bravo (1.0.1), if this is still an issue on that version (after clearing out all the mappings from 2ship2harkinian.json) i can reopen this


change in debug.js for better responsiveness

Making the main execution asynchronous, allows for better handling of asynchronous operations (can improve performance) + also simplified variable declarations + in Byg configuration object removed : for a syntactic improvement
changing source redeclaration to modifiedSource might improve error handling

i am sorry, it's my bad - i assuming those function synchronous (idk why)


Use tolerances in beamline parameters file for aperture scatterguard

For the aperture scatterguard to be in position we currently use the motor tolerances, we should instead use those in the beamline parameters file see https://diamondlightsource.slack.com/archives/C048RD0KFFF/p1714579073626219
Acceptance Criteria

Tolerances from beamline parameters file are used in the aperture/scatterguard

Should there be signals for this or just attributes?

Signal for outside device, attribute otherwise. This is an attribute as will only be internal
We already read the file, need to get the tolerances out as well as positions and use those
This is just aperture scatterguard for now, ignore the other tolerances in this file
Small


Update afterChange parameters to be an object

I think afterChange has too many parameters. As it turns out, it's super useful for testing, but I have to do this:
expect(afterChangeHandler.mock.calls[0][1]).toBe('store.loading');
expect(afterChangeHandler.mock.calls[0][0].loading).toBe(true);

This would be nicer:
const storeChange = afterChangeHandler.mock.calls[0];
expect(storeChange.path).toBe('store.loading');
expect(storeChange.store.loading).toBe(true);

And the usual case would change from this:
afterChange(store => {
  localStorage.setItem('site-data', JSON.stringify(store));
});

To this:
afterChange(({ store }) => {
  localStorage.setItem('site-data', JSON.stringify(store));
});

Proposed signature would be
afterChange(({ store, propPath, prevStore, components }) => {});

This would be a breaking change, so v3.
Docs would need to be updated.

Not that my opinion matters, but I would 👍 this!

Aww, don't make me blush! 😊
Happy to contribute where I'm able!


CPU 100% when displaying sixel

When I display a sixel, with for example the command cat image.sixel, the CPU shoots to 100% until I close the st instance. I have also tested displaying a sixel image with mlterm, but here this is not the case.
Thanks for this patch btw!

This is the core
#0  0x00007fd9faacf52d in pselect () from /usr/lib/libc.so.6
#1  0x000055a575192144 in run () at x.c:1813
#2  0x000055a575193973 in xinit (rows=<optimized out>, cols=1366772336) at x.c:982
#3  main (argc=0, argv=<optimized out>) at x.c:1977

Sorry if this is not correct. This is my first time debugging a compiled program

I believe the previous core is wrong, this is the right one I believe
(gdb) info threads
  Id   Target Id                              Frame
* 1    Thread 0x7f61bec49780 (LWP 19449) "st" 0x00007f61bf31052d in pselect () from /usr/lib/libc.so.6
(gdb) thread 1
[Switching to thread 1 (Thread 0x7f61bec49780 (LWP 19449))]
#0  0x00007f61bf31052d in pselect () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007f61bf31052d in pselect () from /usr/lib/libc.so.6
#1  0x0000557fc6371273 in run () at x.c:1830
#2  0x0000557fc6372ce7 in main (argc=0, argv=<optimized out>) at x.c:1980

I also want to add in that I've experienced the same issue with a cut-down fork of 0.8.1 with just scrollback and your sixel patches applied. It seems like (as @TomJansen has shown) that almost all of the CPU time is spent in syscall(s).

The following pselect() call is returning EPERM consistently while sixels are present: https://github.com/charlesdaniels/st/blob/e6ddd6e7897c22d8a616a4ae55166dfba620e6ec/x.c#L1830

Sorry, was misinterpreting the return code (noob mistake, I know). The xfd FD is constantly generating events in the loop while sixels are present; I'm still investigating what exactly it's signaling and why.

Idk why this works, but putting in a call to XPending(xw.dpy) when FD_ISSET(xfd, &rfd) is true seems to stop the insane CPU usage and reduce the number of events per second to reasonable levels.

Nice. I can confirm that adding XPending(xw.dpy) works. I have not seen any side effect so far


create file from command line

Is your feature request related to a problem? Please describe.
Starting lapce from command line with a file name that does not exist results in a empty lapce session.
It is annoying as there are often situations where a new file should be created, using a great editor.
Describe the solution you'd like
Other editors like kate or vim open the non-existing file at the location ready for editing & saving.
Additional context
lapce 0.2.6
https://github.com/lapce/lapce/issues/157
https://github.com/lapce/lapce/issues/752

Duplicate of https://github.com/lapce/lapce/issues/2109

Sorry, I'd overlooked that.


Dev rose

Please resolve linting that you've disabled to have a common convention terms

Enable them and resolve

Okay..
On Wed, 9 Nov 2022, 11:53 AM Felix Orinda @.***> wrote:

@.**** requested changes on this pull request.
[image: rose]
https://user-images.githubusercontent.com/55891685/200784250-ac317ce2-7874-4bd5-ad5c-16e61839bcf8.png
We don't disable all conventions but only the ones that cannot conform
fully. Please re-enable them and fix them
—
Reply to this email directly, view it on GitHub
https://github.com/eucossa-2022-sem2-web2-project/react-frontend-service-2022-s1/pull/71#pullrequestreview-1173603034,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUAQUIMYMREUJHUXUJ4R3CTWHNRBJANCNFSM6AAAAAAR3DRFQM
.
You are receiving this because you authored the thread.Message ID:
<eucossa-2022-sem2-web2-project/react-frontend-service-2022-s1/pull/71/review/1173603034
@github.com>


Removed reporting of user value to a meter inside a timer metric

Unlike meter, user values for histogram are not restricted to come from a finite set, and generally they are unique.
Saving them will cause huge number of sub-meter-per-item allocations inside a meter metric.
Moreover those sub-meters are useless, since rates-per-item are not reported for timers.

Sounds reasonable. Looks like merging #34 wasn't good idea.
Looking forward to this to be merged ;)

Merging #34 seemed a good idea at the time, since you would want consistent behavior: if a meter supports recording user values, you'd assume (at first glance anyway) that the meter inside a timer should too. But you're right, the use-cases for meters and timers differ in the characteristics of the user value set. Thanks!


[Regression]vscode-test can hit --no-sandbox issue with VS Code 1.40.0

VSCode Version: 1.40.0
OS Version: RHEL 7

Steps to Reproduce:

use vscode-test
launch test on a system requiring --no-sandbox workaround

This is a regression, all our jobs started to fail on the release of VS Code 1.40.0.
error message:
Downloading VS Code 1.40.0 from https://update.code.visualstudio.com/1.40.0/linux-x64/stable
Downloaded VS Code 1.40.0 into .vscode-test/vscode-1.40.0
[8978:1108/023921.458640:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /mnt/hudson_workspace/workspace/vscode-openshift-build/.vscode-test/vscode-1.40.0/VSCode-linux-x64/chrome-sandbox is owned by root and has mode 4755.

Exit code:   null
Done

Failed
npm ERR! Test failed.  See above for more details.

a workaround seems to provide --no-sandbox for launchArgs
something like https://github.com/apupier/camel-lsp-client-vscode/commit/3923230f8f4477aa940ed1a19324ef481f9a4d5f

@octref this is something vscode-test needs to provide automatically, it should not have any harms for older Electron versions.

Option 'sandbox' is unknown. Ignoring.

I see that as well. I'll add that to release notes.
I added the option. Will release in v1.2.3.
To Verifier:

You need to be on Ubuntu or Fedora linux
Clone https://github.com/microsoft/vscode-extension-samples/tree/master/helloworld-test-sample
npm i -D<EMAIL_ADDRESS>Modify this line to include launchArgs: ['--disable-namespace-sandbox']
npm install && npm run test
You should see the above error
Now upgrade vscode-test, npm i -D<EMAIL_ADDRESS>You shouldn't see the above error

@bpasero  @octref  would it be possible to update the "legacy" package with a similar change too?

I'm not sure if adding this would break other people sitting on a legacy version of vscode and the vscode module. I'd rather not. You should use the new @types/vscode and vscode-test. Here's the migration guide: https://code.visualstudio.com/api/working-with-extensions/testing-extension#migrating-from-vscode


 without  href=""

If you use NavLink -Component without href in Selfmade-BlazorComponent, the Selfmade-BlazorComponent is no longer loaded and you only get the following message in the console from Browser

Uncaught Error: No element is currently associated with component 7
at e.updateComponent (blazor.server.js:23)
at Object.t.renderBatch (blazor.server.js:16)
at e. (blazor.server.js:38)
at blazor.server.js:16
at Array.forEach ()
at e.invokeClientMethod (blazor.server.js:16)
at e.processIncomingData (blazor.server.js:16)
at e.connection.onreceive (blazor.server.js:16)
at WebSocket.i.onmessage (blazor.server.js:16)

This issue was moved to aspnet/AspNetCore#7694


Node pools for hosted providers types

Today NodePool concept in Rancher exists only for RKE clusters - it's an easy way to define the template for the nodes provisioning, and cluster scale up. Have to NodePool support for other k8s providers - AKS, EKS, GKE. If the provider has support for the NodePools - GKE does, check the rest - integrate with their NodePool APIs.

eagerly awaiting this now that aks supports node pools

Sorry to pester, but is there any idea on where this falls on priority/is slated for work? This would be a really nice feature to have.

looking forward to this feature guys.

I'm looking forward to it as well.

Closing this in favor of the node pool support added in refactored versions for EKS (available as of v2.5.0).
AKS and GKE are currently targeted for v2.5.7 (end of April).
The node pool support will be available for provisioning new hosts.

Closing this in favor of the node pool support added in refactored versions for EKS (available as of v2.5.0).
AKS and GKE are currently targeted for v2.5.7 (end of April).
The node pool support will be available for provisioning new hosts.


feat: Enhance security bootstrap to support Postgres

Resolves #4836. Enhance security bootstrap/secret-store to support Postgres.

If your build fails  due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[x] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[x] I am not introducing a new dependency (add notes below if you are)
[x] I have added unit tests for the new feature or bug fix (if not, why?)
[x] I have fully tested (add details below) this the new feature or bug fix (if not, why?)
[ ] I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 33.33333% with 94 lines in your changes missing coverage. Please review.

Project coverage is 39.33%. Comparing base (b103c04) to head (34cdaf9).

Files
Patch %
Lines

internal/security/secretstore/init.go
0.00%
69 Missing :warning:

...ecurity/bootstrapper/postgres/handlers/handlers.go
67.30%
11 Missing and 6 partials :warning:

...al/security/bootstrapper/helper/postgres_script.go
53.84%
3 Missing and 3 partials :warning:

internal/security/bootstrapper/helper/helper.go
71.42%
1 Missing and 1 partial :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4839      +/-   ##
==========================================
- Coverage   39.34%   39.33%   -0.01%
==========================================
  Files         114      116       +2
  Lines       10770    10891     +121
==========================================
+ Hits         4237     4284      +47
- Misses       6171     6235      +64
- Partials      362      372      +10

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Overwritten "dynamic" output from two datums

What happened?:
First datum (D0) produces a dynamic output. Second datum (D1) produces another dynamic output. Both datums contain the same file with altered contents. The processing of the two datums only produces a single output file on HEAD of master (from D1). The actual output can be found via the pfs_state on the stats branch.
What you expected to happen?:
Two output files on HEAD of master since the output file names are dynamic.
How to reproduce it (as minimally and precisely as possible)?:
1. simple transform for dynamic output files
{
  "pipeline": {
    "name": "single"
  },
  "transform": {
    "image": "alpine:latest",
    "cmd": [ "/bin/sh" ],
    "stdin": [
       "for a in /pfs/A/*",
       "do",
       "rand=$(hexdump -n 16 -e '4/4 \"%08X\" 1 \"\n\"' /dev/random)",
       "touch /pfs/out/$rand",
       "done"
    ]
  },
  "input": {
        "pfs": {
           "repo": "A",
           "glob": "/*"
            }},
  "enable_stats": true
}

2. create repo + pipeline
pachctl create repo A && pachctl create pipeline -f single.json

3. add “elephant" file to A
echo "elephant" | p put file A@master:A1

4. job output for “elephant"
pachctl list job

ID                               PIPELINE STARTED      DURATION           RESTART PROGRESS  DL UL STATE
57f1c0b57ee54851a82e636d47a2e08c single   1 second ago Less than a second 0       1 + 0 / 1 9B 0B success

5. check output for “elephant"
p list file single@master

COMMIT                           NAME                              TYPE COMMITTED      SIZE
97ede16f756148cfa1825579713a71c8 /8FF6074D2D183C5BA4867D8FF6FC9099 file 44 seconds ago 0B

6. append “rhino” to A1 to have a “altered” file
echo "rhino" | p put file A@master:A1

7. check job list to only find a single datum -> technically there are two datums but “overwritten” since the input file is the same (i.e. path = /A1)?
pachctl list job

ID                               PIPELINE STARTED            DURATION           RESTART PROGRESS  DL  UL STATE
9dd0417912be4b67a81257ab98a040ea single   2 seconds ago      Less than a second 0       1 + 0 / 1 15B 0B success
57f1c0b57ee54851a82e636d47a2e08c single   About a minute ago Less than a second 0       1 + 0 / 1 9B  0B success

8. check output for “rhino” -> dynamic output from “elephant” is overwritten!
p list file single@master

COMMIT                           NAME                              TYPE COMMITTED          SIZE
594d644a66594f59ba196082f2edd81e /52CACA44579CE44C329A8E3EF859316F file About a minute ago 0B

Environment?:
COMPONENT           VERSION
pachctl             1.9.0
pachd               1.9.0

This is the expected behavior, by appending to A1 you're creating a new file and thus your output reflects only the results of running against that version of the datum, the results from running against the previous version of the datum aren't reflected in the output because that version no longer exists in head. Read more about this in our Lifecycle of a datum docs.


Check all patterns in the testsuite ?

While working on https://github.com/ansible/schemas/pull/284, found out that:
"pattern": "^[a-z][a-z0-9_]+$",

will not generate a pattern error with an invalid string. This pattern will:
"pattern": "^[a-z][a-z0-9_]+$",

Not sure exactly the reason of this but if this is a real problem and not a local one, some other places will need fixing:
git grep -rw pattern f/ | egrep -v '"\^'
f/ansible-galaxy.json:      "pattern": "[a-z][a-z0-9_]+",
f/ansible-galaxy.json:      "pattern": "[a-z][a-z0-9_]+",
f/ansible-meta.json:          "pattern": "[a-z0-9][a-z0-9_]+",
f/ansible-meta.json:          "pattern": "[a-z][a-z0-9_]+",

So, some fixing may be needed and also some tests files are needed to caught this.

@apatard Do you have any example of namespace or collection that starts with a number from galaxy? My impression was that number was not allowed as prefix, just like in python identifiers.
A link to official allowed patterns would also help.

damn. now, I see a typo in my BR, months after writing it. My point was not about the filtering but how the pattern is written:
some (all?) tools used to check the schema seems to properly match things only with proper string start '^' and end characters '$'.
The first example should rather be:
"pattern": "[a-z][a-z0-9_]+",

So my bug report was about:

is this really the case ?
if so, we should  change all patterns detected to use ^....$. Then, would this break stuff ?
are we missing some proper testing since this possible problem was not detected ?


Task: List v2 Mapping of meta widgets to template widgets.

Closing this issue in favour of merged PR


Add number of suggestions to the search

In order to help figuring out which synsets need work, we could add a counter with the number of "new" (pending) suggestions as a facet when searching for synsets.

good idea!
On Wed, May 27, 2015 at 1:37 PM, Fabricio Rosario<EMAIL_ADDRESS>wrote:

In order to help figuring out which synsets need work, we could add a
counter with the number of "new" (pending) suggestions as a facet when
searching for synsets.
—
Reply to this email directly or view it on GitHub
https://github.com/fcbr/cl-wnbrowser/issues/106.

--
Valeria de Paiva
http://www.cs.bham.ac.uk/~vdp/
http://valeriadepaiva.org/


Bhuyia Electronics

Thank I all forevers love you bhuyia you are interested and communication technology companies in the future please reply with a big deal

I love & love so much bhuyia...


Long multicopter mission in jMAVSim SITL shows spikes in sensors

Describe the bug
I tried to fly a little further in SITL jMAVSim at 20x and at about 220 km I started seeing weird twitches in the HUD in yaw. The multicopter kept flying and the twitches disappeared again after a while.
The twitches show up in the log data and also in the attitude ground truth data. This would hint at a problem in jMAVSim itself.
To Reproduce
Fly a long mission in jMAVSim with export PX4_SIM_SPEED_FACTOR=20.
Log Files and Screenshots
I can't upload the logfile because it's over 700MB.

We see the same thing in Gazebo as well:


New version: SimplePartitions v0.2.1

Registering package: SimplePartitions
Repository: https://github.com/scheinerman/SimplePartitions.jl
Created by: @scheinerman
Version: v0.2.1
Commit: ebaa8e38d517b40e8f5c0353fb0895a1f4724f26
Git reference: master

Superseded by #17079


Problem installing in Colab

when running

!pip install -q git+https://github.com/tensorflow/examples.git

I get kicked this error

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Anyone know any fixes for this problem?

Hey! I wish to confirm if it occurred to you multiple times. I have faced that error, but it resolved when I restarted the colab instance. Please check whether your resources were caped when running this. In case of low disk space, colab does not allow further imports sometimes. Just reopening the instance solves the issue most of the times.

In case it is still persistent, please instruct me on how to reproduce the error.

More technical log. Note: SetupTools has been updated.
**UserWarning**: The version specified ('729681c50ce87d0dea774ea8b1f893eacdfccc52\n') is an invalid version,
this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.

 python setup.py egg_info did not run successfully.
 exit code: 1

###################
# Invalid version #
###################
'729681c50ce87d0dea774ea8b1f893eacdfccc52\n' is not valid according to PEP 440.

Please make sure specify a valid version for your package.
Also note that future releases of setuptools may halt the build process
if an invalid version is given.

@18mdemark Could you please confirm if the issue has been resolved after restarting the colab?
Thank you!

Oh, if it is a general issue then I can work on it and try to see what's causing the problem.

Good evening,
Since yesterday I am having the same issue when executing the first cell of the TensorFlow Segmentation tutorial: https://www.tensorflow.org/tutorials/images/segmentation. No issues before yesterday.
Restarting Colab does not solve the issue for me.
Regards,
Federico

Hey, @fedezocco @alecamacho @18mdemark, I guess it is a problem with pip installing git.
Please try these commands in order once:

!apt remove git -y - remove any degraded git module
!apt-get install git -y && git clone https://github.com/tensorflow/examples.git - Install git first, then clone.

Meanwhile, I will look at possible problems and create a PR if I am able to solve it.

@Shreyas-SAS, thanks for the prompt reply. Should I execute 1 and 2 before
!pip install git+https://github.com/tensorflow/examples.git ?
If that is what you meant, then I tried and it does not solve the problem. I get the same error message.
Federico

@Shreyas-SAS, thanks for the prompt reply. Should I execute 1 and 2 before
!pip install git+https://github.com/tensorflow/examples.git ?
If that is what you meant, then I tried and it does not solve the problem. I get the same error message.
Federico

No actually there seems to be a problem with installing git using pip.
The 1st code line is to remove any instance of git if it was not completely installed.
2nd is to first install git using apt and then clone the repo.

The second is an alternative to the pip command that you mentioned.

I see. So I am executing 1 and 2 instead of the pip command I mentioned. Then, I proceed with the Segmentation tutorial as usual. Now I get the error below

Hi, if you're cloning https://github.com/tensorflow/examples.git in colab and want to import pix2pix model from the tensorflow_examples' model package, then make sure that you're using the import command from the right path.
It seems that the command from examples.tensorflow_examples.models.pix2pix import pix2pix doesn't work because the module tensorflow_examples is not in your working directory. You can either change the working directory or can change the import statement.
For example, if the examples repository folder is in your working directory, use from examples.tensorflow_examples.models.pix2pix import pix2pix.
I hope this helps!

Hi, if you're cloning https://github.com/tensorflow/examples.git in colab and want to import pix2pix model from the tensorflow_examples' model package, then make sure that you're using the import command from the right path.
It seems that the command from examples.tensorflow_examples.models.pix2pix import pix2pix doesn't work because the module tensorflow_examples is not in your working directory. You can either change the working directory or can change the import statement.
For example, if the examples repository folder is in your working directory, use from examples.tensorflow_examples.models.pix2pix import pix2pix.
I hope this helps!

Thank you @yuktathapliyal and @Shreyas-SAS, you solved my issues.

Glad that I could help. Still, I am trying to understand why the pip command isn't working. Is there an OpenSource repo for pip? Someone can tell them about this problem. If it's working fine with other package managers, then there is no problem on TensorFlows side I guess.

Sorry for responding to the thread late, I've been running into identical issues as Feezocco. That workaround from yuktathapliyal after cloning the repository into my colab instance is working.
Tried to use pip and still nothing, but this will work for my project.
Thanks!

@18mdemark Thank you for your response!
Could you please confirm if the issue has been fixed and close the ticket?
Thank you!

from examples.tensorflow_examples.models.pix2pix import pix2pix

can you try once using from examples.tensorflow_examples.models.pix2pix import pix2pix and check.
Really sorry for the late reply though.

!git clone https://github.com/tensorflow/examples.git
import sys sys.path.append('/content/examples')
import tensorflow_examples as tf_ex
i hope it could work!

when running

!pip install -q git+https://github.com/tensorflow/examples.git

I get kicked this error

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Anyone know any fixes for this problem?

hi . How did you fix it

Hey, @fedezocco @alecamacho @18mdemark, I guess it is a problem with pip installing git.
Please try these commands in order once:

!apt remove git -y - remove any degraded git module
!apt-get install git -y && git clone https://github.com/tensorflow/examples.git - Install git first, then clone.

Meanwhile, I will look at possible problems and create a PR if I am able to solve it.

I solved this problem by adding this before installing.

Same problem here, I can install other packages using pip, the problem is with this package. Could be something about upgrading the python version from 3.7 to 3.10 in colab?

Hello,  @18mdemark! Could you please let us know if this is still an issue for you ? I am able to run the code successfully on colab using TF v2.12. Please find the gist here and confirm the same?
Thank you!

Hello, @18mdemark! Could you please let us know if this is still an issue for you ? I am able to run the code successfully on colab using TF v2.12. Please find the gist here and confirm the same?
Thank you!

It is works! at least for me.

I am also facing this issue while installing Object detection API. Three days before it was working fine. but now its creating issue


refactor cleanInput utility method  to prevent double encoding

instead of looking for markup and sanitizing this approach looks for encoding, decodes it, and re encodes everything via jquery.

9b12717 I hate adding dependencies explicitly for an ide but if i recall there have been other incidence of ide's not integrating with our rules so thought this would help


WIP: refactor: 💡 dashboards meta update

Codecov Report

Merging #286 (602ede8) into develop (31511c2) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #286      +/-   ##
===========================================
+ Coverage    86.83%   87.01%   +0.17%
===========================================
  Files          536      538       +2
  Lines         6677     6691      +14
  Branches       629      629
===========================================
+ Hits          5798     5822      +24
+ Misses         798      788      -10
  Partials        81       81

Impacted Files
Coverage Δ

src/modules/dashboards/dashboardsSaga.ts
52.63% <ø> (+2.38%)
:arrow_up:

src/modules/dashboards/fixtures.ts
100.00% <ø> (ø)

src/modules/dashboards/types.ts
100.00% <ø> (ø)

...rc/modules/dashboards/utils/createDashboardMeta.ts
100.00% <ø> (ø)

src/modules/dashboards/utils/fixtures.ts
100.00% <ø> (ø)

src/modules/dashboards/saga/index.ts
100.00% <100.00%> (ø)

src/modules/dashboards/saga/saveDashboard.ts
100.00% <100.00%> (ø)

...c/modules/dashboards/saga/saveDashboardMetadata.ts
100.00% <100.00%> (ø)

...dules/dashboards/utils/computeDashboardMetadata.ts
100.00% <100.00%> (ø)

src/modules/dashboards/utils/index.ts
100.00% <100.00%> (ø)

... and 2 more

Continue to review full report at Codecov.

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


Feature: Add Github authentication and team support

We currently default to no authentication, when you setup Rancher you get an admin account with full access to everything.  This is not entirely desirable if you set it up on a public IP open to the world.  There should be an easy way to optionally require authentication via GitHub and provide multi-tenancy with an account per user + accounts for GitHub teams.
UI (authentication disabled)

Detect that authentication is not enabled and show a warning in the header that you might in fact like to have auth maybe.
Provide instructions on how to go to GitHub and setup an application
Make API call to enable auth, providing the GitHub client_id, client_secret, organization name, etc needed.

UI (authentication enabled)

Detect that authentication is enabled and show a login screen
Send user to GitHub OAuth and get back code
Send code to API and get back JSON web token
Send token on all subsequent requests as Authorization: Bearer <token string>
List accounts ("projects") that the user has access to and provide a mechanism to switch between them
Send X-API-Account-Id: <account id> header to identify the account each request is for.
Provide a mechanism to update the authentication configuration, or disable auth.

API

Add a mechanism to create, update, and remove the authentication configuration (client_id, client_secret, organization names)
Enable/disable the unauthenticated admin user according to the config.
- Open: Should we support one organization or many?
- Open: Should we automatically use all teams, or have a configurable whitelist/prefix/blacklist?
- Create a team account in Rancher for each team the user has access to, if one does not already exist.
Add an endpoint to accept POST /v1/token {code: '<github oauth code>'} and return a JSON web token.

Take the code and send to github API to get back an access_token.  Then use the access_token to request info about the user, e.g. their team memberships.
If the github user is not a member of the configured organization(s), return 403.
JWT should be valid for a configurable amount of time (default: 1hr?)
JWT body should contain any info you need to authorize an API request for this user.  e.g. ID of the account, ID of team accounts the user is associated with.
JWT body should not contain the github access_token, if we can avoid it.  Try to get everything we need up-front.

Validate API requests against the token and account ID passed in the Authorization and X-API-Account-Id headers.  If expired (exp) or not valid yet (iat), return 401.  If the signature doesn't match, the user is not a member of the account, etc, return 403.
GET /v1/accounts should return only accounts that the user (identified by token) has access to.

[ ] Add list of github organizations and user_id to POST /v1/tokens response and token
[ ] Add whitelists in settings to restrict access to a list of GitHub user_ids and organization_ids
[ ] Enforce whitelist on authentication
[ ] Add x-enforce-authentication: true header to not fallback to admin on auth failure


VVCEasy Batchfile/C# (Version v.0.5.0, beta)

Upcoming with Windows, Mac OS and Linux are now latest version of VVENC and VVDEC since 24th February 2022.

Reminder: Next release after v.0.5.0 should be Windows (Forms .NET Application), but Mac OS and Linux are not built, my reason is that I don't have Xcode and Python skills to build Mac OS and Linux for GUI application. I'm not kinda sure that I'm gonna make it. From now on of release v.0.5.0, I am ready merge to master.

I think it is ready for review and merge right now...


New beta sucks battery dry on OsX

When I use Franz detached from the power line, my battery drains in 30min and my fan goes into overdrive.

Service

Link to your repository

Additional Information

This is not the place to be asking this question/reporting a bug. You can report at meetfranz/franz.


Improve code analysis severity/suppress info

Fixes #21692, fixes #21132.
Preview links:

Language rules
CA2007 - this is just one rule; if approved, I'll add the "Suppress a warning" section via include file to each CA rule.

@Youssef1313 Do you want to take a look?

@Youssef1313 Do you want to take a look?


Just stumbled upon this

Having this integration is going to be great. Thanks for doing it.
A couple of requests:
Can we get a lovelace card that shows history and progress towards your weight goal. Could customize it to show weekly or monthly or maybe even daily tracking?
Thoughts?
Would be cool to include the other stats as well as weight like BMI, body_fat, water!
THANKS!

Can we get a lovelace card that shows history and progress towards your weight goal. Could customize it to show weekly or monthly or maybe even daily tracking?

Hmm. Do you mean the weight goal listed in Weight Gurus? Will have to see if that is exposed via API. If so, I think this could be created with HA built-in tools.

Would be cool to include the other stats as well as weight like BMI, body_fat, water!

Will work on this.

@jcgoette - yea I mean clearly this isn't very helpful...

Im just looking for something a little more user friendly and something that shows useful data. Thanks!

Got it. I think this will work better if we update this integration to allow HA to provide long-term statistics.
Also, it looks like goal weight is provided in account level JSON under key goalWeight.
I will start work on updating integration soon-ish.


 Investigate providing a theme that renders graph as an image. Probably will have to refactor theme into a trait.

Added in e4009a762 - we now have png output :-D

It'd be nice to make these more configurable, including line graphs etc.


Implement epoch advancing loop

Btw, there seems to be some kind of problem with the tests - it has been running for 3+ hours. I have seen the same thing in the past a few times.

Last thing in the log
     Running tests/integration_tests.rs (target/debug/deps/integration_tests-055bb40146daa692)
running 2 tests
test read_uninitialized_epoch ... ok
test read_epoch has been running for over 60 seconds

Btw, there seems to be some kind of problem with the tests - it has been running for 3+ hours. I have seen the same thing in the past a few times.

@purujit yes the test is flaky. Having finished the epoch components I'm going to do a round of hardening, improve logging and test infra


Use rr instead of flexmock

I try to use rr instead of flexmock in tests.
In most cases, using rr is slightly readable than flexmock.
Current status

[x] test_filter_stdout
[x] test_output
[x] test_in_tail
[x] use mock instead of stub as much as possible

Question

Should we completely replace flexmock with rr?

test_z_refresh_watchers's test case is hard to replace flexmock with rr. → Done.

Replacing flexmock with rr simply looks not good for me.
Anyway, it's a bit late to reconsider this point, and now we have a problem about rr.
https://github.com/fluent/fluentd/issues/1115


Monitor fails due to self signed cert only when using socks5 proxy

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
I have a single monitor in my Uptime Kuma instance which checks a server which is using a self-signed cert (a PiKVM). This was working fine when I was not using any proxy and had "Ignore TLS/SSL error for HTTPS websites" checked. However after adding the proxy (which is a socks5 (+DNS) proxy), the monitor fails due to this self signed certificate.
👟 Reproduction steps
Create an HTTP or HTTP keyword monitor which makes requests to a server with a self signed certificate and check "Ignore TLS/SSL error for HTTPS websites". Then create a Socks5 (+DNS) proxy and apply it to the monitor.
👀 Expected behavior
The server continues to be registered as ok
😓 Actual Behavior
The monitor registers the server as down due to the self-signed certificate.
🐻 Uptime-Kuma Version
1.21.0
💻 Operating System and Arch
Debian 5.10.162-1 (2023-01-21) x86_64
🌐 Browser
N/A
🐋 Docker Version
Docker 23.0.1
🟩 NodeJS Version
No response
📝 Relevant log output
2023-03-25T20:38:44-04:00 [MONITOR] WARN: Monitor #55 'PiKVM': Failing: self signed certificate | Interval: 120 seconds | Type: keyword | Down Count: 0 | Resend Interval: 0

Yes, the fix only applies to socks, socks5, socks5h, socks4.
Given that I don't have an HTTP Squid proxy configured, could you test if adding the respective option to HttpProxyAgent/HttpProxyAgent above works?
⇒ Could you provide a PR via https://github.com/louislam/uptime-kuma/blob/bbaba29222eccdcda0a5a1e1e6355b8b0da057b9/CONTRIBUTING.md

I did a cursory search and it seems like there are a lot of complications with passing rejectUnauthorized to the proxy library that we are using, and just adding the parameter won't work. (https://github.com/TooTallNate/proxy-agents/issues/89)
I would advice against creating such a PR unless you can test and verify that it works.


Flag manually added assets in asset registry to prevent overwriting

This flag will prevent the asset from being deleted when the update assets script is running.

Also included in https://github.com/paraspell/xcm-tools/pull/500


Extension tries to execute something as superuser?

I'm a bit surprised. Is this documented somewhere?
Is this what you meant by

this extension uses patching in order to allow tabs style editing

Yes, the extension applies a patch to a vs code file, if the file is read only it should ask for permission. Patching is the only way to get access to tabs style on vs code as the API doesn't offer any solution for this

Thank you for your response.
Is there an upstream ticket for VSCode to allow changing tab colours via API?

You're welcome.
The last time I searched there was no ticket about that. This extension is an alternative until such an option becomes available


s3 503 Slowdown error with to_parquet

I am currently using aws-data-wrangler to ingest data with a scheduled lambda function to a datalake.
We are using the dataset functionality to append partitions to Glue from IoT sensor data coming in through Kinesis Firehose, it looks something like this:
wr.s3.to_parquet(
        df=df_measurements,
        path=out_path,
        mode="append",
        dataset=True,
        database=database,
        table=stream_name,
        partition_cols=["sensor_id", "date"],
)

Now Occasionally and unreproducably the function fails with a s3 Slowdown error like so:
   {'errorMessage': 'An error occurred (SlowDown) when calling the PutObject operation (reached max retries: 5): Please reduce your request rate.', 'errorType': 'ClientError' }
Whats puzzling to me is that the function writes depending on time of day roughly 500-1000 files, so in no way should it achieve the 3500 files /s limit from S3 especially given that most of the files are written to specific prefix that have their own limit anyway.
Am I overlooking some specific things that go on under the hood?

@rpauli if function indeed only writes 500-100- files, something else must be eating the quota.
Try to minimize the number of requests you send. For example, you can configure batching in your lambda function and collect a bigger dataframe before you attempt to write it. Also it is worth to check what is reading the files - the quota is for 3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD combined so you might exhaust it by doing frequent reads, too.
You can read more about optimizing S3 performance here.