Add sideloading instructions

I've replaced the sideloading instructions from my repository by proper upload support, so... all yours!
You may also be interested in the reverse-engineered Protocol Buffers for real upload support.

Thank you, I'll merge this! I've experimented with manual uploads but was hesitant to add any programmatic support to avoid any TOS/good neighbor issues.

:100: Good point!


Daily energy consumption totals incorrect

Before submitting a new issue

[X ] I'm not using the older Vaillant sensoAPP (which is unsupported by this integration)
[X ] I redownloaded the latest release and restarted Home Assistant
[ ] I've enabled debug logs and attached the relevant logs to this ticket

Problem description
The totals are reset to zero at 0:30.
No more values are recorded until 1:30 am.
The values from 0:00 to 1:30 are lost for the day.
As a test, the system was set to standby during this time, then the values fit.
Logs
The problem cannot be recorded in log files

The values aren't recorded incrementally, like you're describing.
The API returns the totals for the current day, so every hour (when the totals are updated by the integration) I just get the latest total value. AFAIK there is no way to miss any energy values this way. But there may well be something wrong with timezones, or the way the values get reset within Home Assistant. I'm using total_increasing for the energy sensors.
I may be able to help, if you can provide more information (screenshots comparing the vaillant app and what you're seeing in HA).

Thx for answering . . . and ok, I'll understood the Problem now ;-)
Today the HP was not set to standby, so the difference is clearly visible on the Screenshots attached.
I stay in Germany MEZ: UTC+1 and indeed, the gap is smaller since Wintertime startet. Formaly the consumption totals startet app. 3:00 AM - There is no settings in "myVaillant App" to set Timezone - but Germany was selected when I start the App first time

I have also a problem in the logs. In Home Assistant it stop working at 00:35 - Happy New Year ;)
The app says 0 value. I think this is the problem and why the state is "unknown".
Thanks for the great integration!

2024-01-01 00:53:59.673 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform mypyllant Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities     await asyncio.gather(*tasks)   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 754, in _async_add_entity     await entity.add_to_platform_finish()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1025, in add_to_platform_finish     self.async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 745, in async_write_ha_state     self._async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 845, in _async_write_ha_state     state, attr = self._async_generate_attributes()                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 786, in _async_generate_attributes     state = self._stringify_state(available)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 751, in _stringify_state     if (state := self.state) is None:                  ^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 501, in state     value = self.native_value             ^^^^^^^^^^^^^^^^^   File "/config/custom_components/mypyllant/sensor.py", line 776, in native_value     return round(self.heat_energy_generated / self.energy_consumed, 1)                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ZeroDivisionError: division by zero 2024-01-01 00:53:59.764 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up mypyllant platform for sensor Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 369, in _async_setup_platform     await asyncio.gather(*pending)   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities     await asyncio.gather(*tasks)   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 754, in _async_add_entity     await entity.add_to_platform_finish()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1025, in add_to_platform_finish     self.async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 745, in async_write_ha_state     self._async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 845, in _async_write_ha_state     state, attr = self._async_generate_attributes()                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 786, in _async_generate_attributes     state = self._stringify_state(available)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 751, in _stringify_state     if (state := self.state) is None:                  ^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 501, in state     value = self.native_value             ^^^^^^^^^^^^^^^^^   File "/config/custom_components/mypyllant/sensor.py", line 776, in native_value     return round(self.heat_energy_generated / self.energy_consumed, 1)                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ZeroDivisionError: division by zero

I have also a problem in the logs. In Home Assistant it stop working at 00:35 - Happy New Year ;)
The app says 0 value. I think this is the problem and why the state is "unknown".
Thanks for the great integration!

2024-01-01 00:53:59.673 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform mypyllant Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities     await asyncio.gather(*tasks)   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 754, in _async_add_entity     await entity.add_to_platform_finish()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1025, in add_to_platform_finish     self.async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 745, in async_write_ha_state     self._async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 845, in _async_write_ha_state     state, attr = self._async_generate_attributes()                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 786, in _async_generate_attributes     state = self._stringify_state(available)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 751, in _stringify_state     if (state := self.state) is None:                  ^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 501, in state     value = self.native_value             ^^^^^^^^^^^^^^^^^   File "/config/custom_components/mypyllant/sensor.py", line 776, in native_value     return round(self.heat_energy_generated / self.energy_consumed, 1)                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ZeroDivisionError: division by zero 2024-01-01 00:53:59.764 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up mypyllant platform for sensor Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 369, in _async_setup_platform     await asyncio.gather(*pending)   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities     await asyncio.gather(*tasks)   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 754, in _async_add_entity     await entity.add_to_platform_finish()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1025, in add_to_platform_finish     self.async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 745, in async_write_ha_state     self._async_write_ha_state()   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 845, in _async_write_ha_state     state, attr = self._async_generate_attributes()                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 786, in _async_generate_attributes     state = self._stringify_state(available)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 751, in _stringify_state     if (state := self.state) is None:                  ^^^^^^^^^^   File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 501, in state     value = self.native_value             ^^^^^^^^^^^^^^^^^   File "/config/custom_components/mypyllant/sensor.py", line 776, in native_value     return round(self.heat_energy_generated / self.energy_consumed, 1)                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ZeroDivisionError: division by zero

Hello,
I have exactly the same problem and I think it may really be related to some issue with timezones.
If you check the image below, the first graph is my Shelly Energy meter on the main and the second is what the heat pump says. There is basically nothing else consuming power (<50W). You can see the same graph pattern, but about 4.5 hours delayed. Why? My timezone is CET+1 on both the device and HA.
Any ideas?

...and also to add, if I check my energy dashboard, the difference between what Shelly measured and what the heat pump reports as consumption differs exactly by what was consumed by the heat pump in the last 4.5 hours of every day...

If you compare the heat pump current power graph with flow temperature, does it match or is it also shifted by some time as for me?
The power readings are completely off in my case and I assume it will break the consumption alignment for a day...

I posted a more thorough explanation about this problem at the very bottom off this page.

@signalkraft thanks very much for this detailed explanation on the docs page! this helps me alot to understand the problem.
Am I right: we cannot do something against this problem? Is there a discussion at Vaillant or in HomeAssistant to upvote?

So I think, there is nothing to do here.
I will close this Issue for this reason.
Thank you for explaining, Signalkraft!

Hi everyone,
from what I can read on this issue is that there are discrapancies when considering the energy consumption on a specific period of time (i.e. per day).
Would this also effect "manual" meter helper who just have increasing totals? Because they seem to have the same issue with increasing differences.


Unable to uncompress/unzip or decode gzip response data.

What did you do?
-> API response data are compressed coming from node rest API in which npm package compression used. When the response is coming in Alamofire is getting an error like ERROR Code=-1015 "cannot decode raw data"
I got response encoded with gzip and it gives ERROR Code=-1015 "cannot decode raw data"
please more details check this link
https://stackoverflow.com/questions/57078987/unable-to-uncompress-unzip-or-decode-gzip-response-data
What did you expect to happen?
-> I want to expect to uncompress gzip response data in JSON format.
What happened instead?
-> It gives failure response like below:-
FAILURE: Error Domain=NSURLErrorDomain Code=-1015 "cannot decode raw data" UserInfo={NSLocalizedDescription=cannot decode raw data, NSErrorFailingURLStringKey=https://devapi.homeinspectortech.com/API/v1/2153/GetAllComments, NSErrorFailingURLKey=https://devapi.homeinspectortech.com/API/v1/2153/GetAllComments, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <8CDE86AE-AD43-4654-A033-F875E1E34B7B>.<3>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8CDE86AE-AD43-4654-A033-F875E1E34B7B>.<3>, NSUnderlyingError=0x600003816970 {Error Domain=kCFErrorDomainCFNetwork Code=-1015 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x600001547430 [0x1120b0b68]>{length = 16, capacity = 16, bytes = 0x100201bb22da3e220000000000000000}}}}

failure : Error Domain=NSURLErrorDomain Code=-1015 "cannot decode raw data" UserInfo={NSLocalizedDescription=cannot decode raw data, NSErrorFailingURLStringKey=https://devapi.homeinspectortech.com/API/v1/2153/GetAllComments, NSErrorFailingURLKey=https://devapi.homeinspectortech.com/API/v1/2153/GetAllComments, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <8CDE86AE-AD43-4654-A033-F875E1E34B7B>.<3>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8CDE86AE-AD43-4654-A033-F875E1E34B7B>.<3>, NSUnderlyingError=0x600003816970 {Error Domain=kCFErrorDomainCFNetwork Code=-1015 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x600001547430 [0x1120b0b68]>{length = 16, capacity = 16, bytes = 0x100201bb22da3e220000000000000000}}}}

Alamofire Environment
**Alamofire version:4.4.8
**Xcode version:10.1
**Swift version:4.2
**Platform(s) running Alamofire:iOS
**macOS version running Xcode:10.14

If the response from the server doesn't contain a Transfer-Encoding (older style) or Content-Encoding of gzip, then the OS cannot automatically decompress the data for you.
Alternatively, if the server isn't properly implementing gzip compression (which I've seen), then the system may not be able to decode the stream either.
You should check to ensure the gzip response is actually decodable, perhaps using a tool like curl, and ensure the response has the appropriate headers. Unfortunately there isn't anything Alamofire can do here if underlying data is malformed.
Additionally, you should update to the latest version of Alamofire you can support, which is 4.8.3 for Swift 4.2.


mat-autocomplete causes invalid aria-owns value when opened and then closed

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
Invalid ARIA aria-owns attribute value with mat-autocomplete when the autocomplete has been opened and then closed again.  I see this previous bug:  https://github.com/angular/components/issues/12332 and the associated PR appears to have partially fixed it but not fully.
Reproduction
StackBlitz link:
Steps to reproduce:

open mat-autocomplete
choose option
close mat-autocomplete
Run AXE and get "Invalid ARIA attribute value: aria-owns='mat-autocomplete'"

Expected Behavior
There should be no accessibility issue
Actual Behavior
There is accessibility issue "Invalid ARIA attribute value: aria-owns='mat-autocomplete'"
Environment

Angular:  16.2.7
CDK/Material:  16.2.6
Browser(s):  Chrome
Operating System (e.g. Windows, macOS, Ubuntu):  Windows

I cannot reproduce this: https://stackblitz.com/edit/rojxwd-fvhrph. Please open a new issue with a reproduction if you are still able to reproduce


IA-2397 Add terra-app-setup-chart

Tested in fiab with https://github.com/DataBiosphere/leonardo/pull/1866

Add a terra-app-setup-chart outlined in here. This chart will create service account and certs as secrets required for deploying galaxy and custom apps.

Will test things out in a fresh new fiab since I did something manually on current fiab

Is adding the empty .crt and .key files intentional? If so, what is the use case, some sort of testing stub?

@jdcanas yea, it's just allowing the chart to be deployed locally on minikube....

yea...the chart is tested in leo and things work as expected...
I didn't really try it out on minikube becuz I wasn't able to start minikube. It just hangs for ever to start. But I think terra-app-local.sh should work as before becuz set up chart is a separate chart. It's just the script won't deploy the setup chart.


release 1.0.0 and follow semver

Although we claim semver, we still don't have a version 1.0.0 (which is required for semver).  :)
If everything goes well with the RC I pushed last night, I'll make that 0.5.0 next Tuesday.  I've held off on v1.0.0 because of the many warts, but since I've been using this in production (as-is) for several years, I think those warts aren't enough to prohibit a first release.
What will hold off a public release is if there is if there are any backwards compatible changes that "need" to be made.  I'd rather make them now than make a 1.0 release that is only supported for a couple of weeks/months (or backport bugfixes).
If there are no backwards-incompatible changes to be made, I'll just rename 0.5.0 as 1.0.0 a week or so after 0.5.0 is released.

In particular, I'd like to analyze the most significant or longest lived forks and see if there's anything we need to merge from them that might impact backwards compatibility.  If so, let's merge them before 1.0.0.  If not, we can merge them for 1.1 or 1.2.
After a quick perusal of the fork-network (most of which have been inactive for over a year), these seem to be the most significant branches that haven't sent in pull requests (and some that have):

[ ] https://github.com/backupify/resque-pool/compare/nevans:master...master

mostly @haruska, also @nirvdrum, @ericalexander, @bpovlich, @james-lawrence

[ ] https://github.com/ShippingEasy/resque-pool/compare/nevans:master...deploy @joshuaflanagan and @brasic
[ ] https://github.com/PeopleAdmin/resque-pool/compare/nevans:master...deploy (and other branches)

@joshuaflanagan, @lwoodson, @mattdbridges

[ ] https://github.com/jonleighton/resque-pool/compare/nevans:master...hooks @jonleighton
[ ] https://github.com/mcwiklinski/resque-pool/compare/nevans:master...master @mcwiklinski
[ ] https://github.com/AF83/resque-pool/compare/nevans:master...af83 @spk and @nono
[ ] https://github.com/optimis/resque-pool/compare/nevans:master...drb @uchouhan
[ ] https://github.com/optimis/resque-pool/compare/nevans:master...v3 @uchouhan
[ ] https://github.com/maxdunn210/resque-pool/compare/nevans:master...master @maxdunn210
[ ] https://github.com/ono/resque-pool/compare/nevans:master...master @ono
[ ] What other significant forks are we missing?

This is not a commitment to merge in every single change they've made (we might want to make their changes easy to do as plugins or configuration rather than core part of resque-pool).  It's a commitment to research them for backwards incompatibility, and plan the shortest course to semver 1.0.0 (that won't require us to release 2.0.0 in order to support what these forks are doing).

I'm unsure if backupify is still using resque-pool. That said, those changes to ensure you don't 2x your worker count on restart are probably still valuable to those using resque.

Thanks for the heads-up. We wanted to monitor memory usage of each worker processes with monit. Monit requires pid file and my patch gives the sequential name like resuque-pool.worker.1.pid, resuque-pool.worker.2.pid... to pid files. It also considers when a worker process gets killed and resque-pool spawn a process again. In that case, it has to rewrite the existing pid file instead of creating a new one.
The reason I didn't send PR was:

implementation is hacky
the use case is limited so I supposed that you didn't want to maintain

Besides we are also sunsetting a sub-system which is currently using it. So please don't worry about my fork.

The significant work in the PeopleAdmin/ShippingEasy forks has already been
submitted as a PR:
https://github.com/nevans/resque-pool/pull/85
I still think that PR has widespread value and should be pulled in. We are
still actively using our forks.
On Tue, Feb 3, 2015 at 4:48 PM, Tatsuya Ono<EMAIL_ADDRESS>wrote:

Thanks for the heads-up. We wanted to monitor memory usage of each worker
processes with monit. Monit requires pid file and my patch gives the
sequential name like resuque-pool.worker.1.pid, resuque-pool.worker.2.pid...
to pid files. It also considers when a worker process gets killed and
resque-pool spawn a process again. In that case, it has to rewrite the
existing pid file instead of creating a new one.
The reason I didn't send PR was:

implementation is hacky
the use case is limited so I supposed that you didn't want to
maintain

Besides we are also sunsetting a sub-system which is currently using it.
So please don't worry about my fork.
—
Reply to this email directly or view it on GitHub
https://github.com/nevans/resque-pool/issues/120#issuecomment-72752839.

The most important of these branches (custom config loader) was merged and released in 0.6.0.rc1. Please help test it (and the other changes) out, if you can.

I'll try to get this release deployed soon, to test. For what its worth, the custom config loader code has been running in production at 2 different companies for over a year. One company uses the custom config loader feature, and the other relies on the default yml file config, and both scenarios have been running fine with that code.

Sorry for being nosy, but how that custom config loader would benefit the mass?

@phuongnd08 A lot of teams are constrained by the static yaml configuration. See https://github.com/nevans/resque-pool/pull/69, https://github.com/nevans/resque-pool/pull/62, and https://github.com/nevans/resque-pool/pull/99 as some examples of people trying to work around the static config. The custom config loader offers an extension point to solve all of those problems, without requiring resque-pool to take on code specific to those solutions.

Thank you. Perhaps I could use this to tackle #136

Just to clear thing up: If number assigned to a queue is currently 1. If on a configuration reload I set it to 0, would it terminate the current executing task or would it wait until the task completed?


responseCallback is not supported

Getting this error in my console when starting up the application from scratch without having changed anything

It's from redux-devtools-extension, also related to https://github.com/electron/electron/issues/6307. We didn't use the options page (it's not supported), so it's no problem. Maybe we should avoid this error.

It should solved by<EMAIL_ADDRESS>

I'm still getting this error after pulling down latest release

@burgerzzz could you check the extension version on the console? Just run:
require('electron').remote.BrowserWindow.getDevToolsExtensions()['Redux DevTools'].version

It should no any errors if extension version >= 2.3.0, because I have write a test to ensure no output logs in redux-devtools-extension repo.

Looks like you were correct, in that I have version "<IP_ADDRESS>" of redux-devtools. Is there a reason electron-devtools-installer installed that version, or is it installed globally from that package? Guess, I'm not sure how to update redux-devtools to >=2.3.0.

@burgerzzz try use UPGRADE_EXTENSION=1 npm run dev to upgrade extensions (I'll add it to readme), if you're tried and it's still getting old version, it maybe related to https://github.com/GPMDP/electron-devtools-installer/pull/14, please wait new version of devtools-installer, or just run following code on the console and restart app:
require('electron').remote.BrowserWindow.removeDevToolsExtension('Redux DevTools')


DSD-892: Adding a11y docs for Typography components

Fixes JIRA ticket DSd-892
This PR does the following:

Adds table of contents and accessibility docs for Heading, List, and Text components.

How has this been tested?
Storybook.
Accessibility concerns or updates

More docs.

Checklist:

[ ] I have updated the Storybook documentation accordingly.
[ ] I have added relevant accessibility documentation for this pull request.
[ ] All new and existing tests passed.

Front End Review:

[ ] View the example in Storybook

Tugboat has finished building the preview for this pull request!
Link:

https://pr952-et1msqyvljb1nrc2vyqf7ywswswkhxno.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/625705acd9027707d3527e80

Tugboat has finished building the preview for this pull request!
Link:

https://pr952-et1msqyvljb1nrc2vyqf7ywswswkhxno.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/625705acd9027707d3527e80

Tugboat has finished building the preview for this pull request!
Link:

https://pr952-et1msqyvljb1nrc2vyqf7ywswswkhxno.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/625705acd9027707d3527e80


Ability to set ACE, ACL attributes

I'm trying to set a user attribute for the checkbox: "User cannot change password"

this is supported by existing functions

set_user_security_descriptor
find_security_descriptor_for_user
add_permission_to_user_security_descriptor

there's utils in ms_active_directory/environment/security/security_descriptor_utils.py if you want to build your own security descriptor.
check out the docs for more info :)
microsoft docs cover the proper guids/masks needed to achieve this


Update synergy to 1.8.8,c30301e

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Thank you for your contribution.


Fixup imports

This is a noop change. It simply improves the coding style, which should make development a bit easier.

Use absolute_import - PEP 328

Improves readability of imports
Allows us to name files with standard library names if we want (like utils.logging, for example)
Required if we ever want to upgrade to Python3

Alphabetize and re-order imports - PEP 8

Each import in its own, rightful place (as far as possible)
Should minimize merge conflicts

Phew, this is a tough one to review. I can't say I have checked everything but in principle this looks OK to me.

Phew, this is a tough one to review. I can't say I have checked everything but in principle this looks OK to me.

Indeed it is. Thanks for taking a look!


Add page type specific configuration editor tab translations

So far translations for tabs in the page and page linke configuration
editors always came form pageflow.ui.configuration_editor.tabs. Page type
plugins that use non standard tabs add translations to this scope. This
risks naming collisions.
Add tabTranslationKeyPrefixes option to ConfigurationEditorView and
change PageType#createConfigurationEditorView and
PageType#createPageLinkConfigurationEditorView to pass the prefixes:
pageflow.<page_type_name>.page(_link)_configuration_tabs

pageflow.common_page(_link)_configuration_tabs
Keep existing (singular) tabTranslationKeyPrefix option, which is already
used in plugins. Keep using fromer pageflow.ui scope as
fallbackTranslationKeyPrefix to prevent breaking plugins that already
define a tab tanslations in that scope.
REDMINE-16823

Coverage remained the same at 99.299% when pulling ce5c82666421c76d70485da6c4e359e1c4234049 on tf:tab-translations into 154b226ff95a0b290a5779236b22175fef896381 on codevise:master.


COPY failed

file not found in build context or excluded by .dockerignore: stat upstream/CMakeLists.txt: file does not exist

how u fixed this?

It triggers when you push it to upstream


Update nrfx-blink-sdk example to use native CMake Swift support

This should also resolve https://github.com/apple/swift-embedded-examples/issues/14

@naknut would you be able to verify that this change fixes the crash?

For me the add_library(app_swift OBJECT Main.swift) solved the issue.
The LED is blinking now.

@naknut would you be able to verify that this change fixes the crash?

I'm on vacation at the moment @rauhul . Will try to verify later this week or next week.

@rauhul I know this is already merged but I wanted to let you know this works on my board now. Thanks @kubamracek for fixing this!


[Docs] When to use WSK.

@paulirish conducted a survey over the weekend for the Chrome team. In this developers were asked what parts of the development process is most painful to them. One of the top painful areas was "Getting Started". People expressed big confusion on what tools to use when. We have Yeoman, WSK, H5BP, Bootstrap, Gulp, Grunt, etc. All these tools and quick-start pieces are great, lots of ideas get used and developers in different situations find uses for each thing. But, this is at a cost of people having "analysis paralysis" when starting a project. People look at a slew of new tools released and they just don't know which to use.
We need to make a clear reference point for what WSK is compared to other tools. Some quick thoughts are:

WSK is a boilerplate. It is what you should use as your initial base. Don't think of it as a dependency but a skeleton to start working with.
WSK can play nicely with frameworks like Bootstrap and Foundation. Don't feel like by using one you need to give up the other.
Scaffolding tools such as Yeoman can also be used with WSK without issue.
Covering some initial thoughts on how to structure your application. Many people just want to be told where to put things.

Some of this is already covered in small bits. However, trying to help with this confusion in a specific doc would be very helpful for a one-stop reference point for people looking at WSK trying to figure out how to get the most out of it.
The thing is, this may help confusion for people who come across the WSK repo but it probably won't hit the majority of devs who are confused. Taking that on is probably a task for another place.

@Garbee Would you be interested in helping write some simple initial paragraphs around this topic? We haven't added in docs around it just yet :)

:+1:


patch for new option -numcolumns

The ps | jimsh ./tabulate.tcl example on the tcler's wiki is kind of a red herring--in real life the 4th column is multiple words and the result is gibberish. I'm not sure how to make a patch so I've included the updated ::tabulate::main procedure to handle that new switch. This makes ps | tclsh ./tabulate.tcl -numcolumns 4 look good.
# Read the input, process the command line options and output the result.
proc ::tabulate::main {argv0 argv} {
    options::process $argv \
        store -FS in FS default {} \
        store -style in style default default \
        store -alignments or -align in alignments default {} \
        store -margins in margins default 0 \
        store -numcolumns in numcolumns default 0
    set data [split [string trim [read stdin]] \n]

    # Input field separator. If none is given treat each line of input as a Tcl
    # list.
    if {$FS ne {}} {
        set updateData {}
        foreach line $data {
            lappend updateData [split $line $FS]
        }
        set data $updateData
    }
    if {$numcolumns > 0} {
        if {$FS eq {}} { set FS " "}
        set updateData {}
        foreach line $data {
            set last [join [lrange $line $numcolumns-1 end] $FS]
            lappend updateData [lreplace $line $numcolumns-1 end $last]
        }
        set data $updateData
    }

    # Accept style names rather than style *values* that ::tabulate::tabulate
    # normally takes.
    set styleName [::tabulate::dict-get-default $argv default -style]

    puts [tabulate -data $data \
            -style [::tabulate::style::by-name $style] \
            -alignments $alignments \
            -margins $margins]
}

My bad that I did not explain it on the wiki, but the command line interface for Tabulate is pretty much a toy intended for demonstration purposes. It started out limited in what it could do, and because Tabulate was immediately folded into the Sqawk project it has staid limited to avoid duplicating Sqawk's functionality.
I think giving Tabulate even this much of a command line interface may have been a mistake, so I can't accept your patch. What I recommend instead is to use Sqawk. It can print the same kind of tables, but is more flexible in what it can do with its input. In particular, it can emulate -numcolumns 4 with the option fields=1,2,3,4-end (see Input formats).
I've updated the README to make the examples of parsing the output of ps more realistic (first, second). Replace -output json,indent=1 with -output table in the second example to print a table.


Replaced obsolete gethostbyname with getaddrinfo

When Vnmrbg initially responds to java, it now uses localhost.

This should fix the hostname problem in issue #129


For some View which inherits from Backbone.View, if View.prototype.attri...

...butes is a method (e.g. one that serializes the View's form elements), invoke it from Backbone.View.prototype._ensureElement before passing it to jQuery.fn.attr in Backbone.View.prototype.make to avoid an exception being thrown when using jQuery 1.7.1+ (jQuery checks for typeof(name) === 'object' rather than 'function', so it attempts to use the function as a string and invokes the *.toLowerCase() method on it)

We already have a helper method for this. Fixed in the above commit.


uv pip without venv

We often use docker-based dev containers. In these, we typically skip creating a venv; with pip we can install the packages and freeze them without one. With uv, working with a venv seems to be enforced -- is this the case?
$ pip freeze
absl-py==2.1.0
agate==1.7.1
[...]
$ uv pip freeze
error: Failed to locate a virtualenv or Conda environment (checked: `VIRTUAL_ENV`, `CONDA_PREFIX`, and `.venv`). Run `uv venv` to create a virtualenv.

I ran into the same issue, and as a work arround I had to create and activate a virtual env within the docker file with code that looks like the snippet below. Maybe it can serve you too.
ENV VIRTUAL_ENV=/bin/venv
RUN uv venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

Thanks! We're aware this is an issue. Closing as a duplicate of https://github.com/astral-sh/uv/issues/1526 :)


Allow User to input the array size

Allow the user to define the array size which would then be randomly generated and visualisation would be done on that array.

can i work on this?

Done, sent a PR
https://github.com/shivam7374/Algorithm-Visualizer/pull/8

Can i get a bit more details about the issue?
On Thu, 6 Oct 2022, 8:05 pm shivam7374, @.***> wrote:

Yes, sure it is open to all.
—
Reply to this email directly, view it on GitHub
https://github.com/shivam7374/Algorithm-Visualizer/issues/6#issuecomment-1270169920,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDQK7A2LFPTJ7XHPLLLLUTWB3PUBANCNFSM6AAAAAAQ6U3Q5Q
.
You are receiving this because you commented.Message ID:
@.***>


How to parse the customized structure in the golang program, and use 'swag init' to parse it into definitions in swagger.yaml?

I have a Golang code as follows,nest the structure Rule as an array in LifecycleRules：
// exp1

type LifecycleRules struct {
	Rules []Rule `json:"Rules"`
}

type Rule struct {
	Expiration lifecycle.Expiration `json:"Expiration,omitempty"`
	ID         string               `json:"ID"`
	RuleFilter lifecycle.Filter     `json:"Filter,omitempty"`
	Prefix     string               `json:"Prefix,omitempty"`
	Status     string               `json:"Status"`
}

The comments I configure on the method are as follows:
// @param LifecycleRules body LifecycleRules true "lifecycle rules"

After I used 'swag init', I got the definition of LifecycleRules in the swagger.yaml file as follows:
definitions:
  main.LifecycleRules:
    type: object

Compared with the structure members that I set as basic types, we can see from the definition :
// exp2
type ReqQuota struct {
	/* Quota value in bytes*/
	Quota string `json:"size" binding:"required"`
	/* Quota type, "hard" or "fifo" */
	Type string `json:"mode" binding:"required"`
}

// ReqQuota in swagger.yaml
  main.ReqQuota:
    properties:
      mode:
        description: Quota type, "hard" or "fifo" "
        type: string
      size:
        description: Quota value in bytes
        type: string
    required:

   - mode
     - size
       type: object

How can I get the correct parsing of 1 in the yaml file like 2?

Hey @lips0127 I've been playing around with swag in the past few days and came across your issue.
If I have a main.go as follows (modified some of your types slightly for simplicity):
package main

import "time"

type LifecycleRules struct {
	Rules []Rule `json:"Rules"`
}

type Rule struct {
	Expiration time.Time `json:"Expiration,omitempty"`
	ID         string    `json:"ID"`
	RuleFilter string    `json:"Filter,omitempty"`
	Prefix     string    `json:"Prefix,omitempty"`
	Status     string    `json:"Status"`
}

// @Param LifecycleRules body LifecycleRules true "lifecycle rules"
func Handler() {}

the generated spec is as you asked for:
definitions:
  main.LifecycleRules:
    properties:
      Rules:
        items:
          $ref: '#/definitions/main.Rule'
        type: array
    type: object
  main.Rule:
    properties:
      Expiration:
        type: string
      Filter:
        type: string
      ID:
        type: string
      Prefix:
        type: string
      Status:
        type: string
    type: object
info:
  contact: {}
paths: {}
swagger: "2.0"

Maybe you made a mistake somewhere?


Enabling less secure apps

As google has disabled less secure apps option since 30 May, 2022, what is the alternative to use this package in my flutter app?

Yes, I kindly request you to check the documentation 😅
Kindly use test servers.

Hi @ammar-bay , You can use production servers with outlook as an alternative to the project / You can also try out other alternatives such as pocketbase, supabase, firebase etc..


Make it work with latest embedded-hal 1.0.0 alpha

Currently pinned to alpha 4 because alpha 5 breaks some things.
Might need adjustments of the serialport fork.

Fixed in #16.


Keyboard shortcut

A keyboard shortcut to quickly open the tweet tray window to would be pretty sweet, for all platforms.
I often find myself looking for the icon in the menu bar (on Mac).

@riotherio try ⌘ + ⇧ + Alt + T. Does it work for you?
Pretty lengthy I know, but wanted to make sure it didn't conflict with other apps. Could always make it custom in the future I guess...

Ohhh cool!
Forgot about that one! 😎

Would be cool for customization in the future for sure.


docs: update docs for tf.python.tools.import_pb_to_tensorboard

Using SavedModel instead .pb model

@ringw Please have a look at this PR, thanks!

Adding @nfelt (from Tensorboard side), @k-w-w (from SavedModel side) and @akshaym (afaik, owner of this code) for more review

cc @davidsoergel for TensorBoard since this is relevant to https://github.com/tensorflow/tensorboard/issues/1962.  I don't have any particular context on this script or why it lives here versus in TensorBoard proper, other than that it's been around for a long time.

We can also move the file in this PR (plus one on Tensorboard side), if that is case

Closed by mistake, reopening

The other reviewers have much more context here, so I'm removing myself.


Action blocked when asking about firewall

VS Code Version:
OS Version:
Logs:

Steps to Reproduce:

Ask it how i can turn firewall off with powershell
2.fail

To turn a firewall of requires admin rights, at which point all bets are off so this doesn't need to be blocked. It would be good if more granular controls were in place. Anything that requires admin credentials on a device shouldn't be blocked from being answered.

Example of how arbitary this policy is. Asking copilot how i can shut a machine down (which could be a server causing major disruption if done wrong) is given an answer with context that you may need permissions so what is the difference between them?

I can not reproduce this. Can you reproduce with latest version of VS Code Insiders and latest pre-release of Copilot Chat extension?
If yes, can you provide reproducible steps. Until then I will go ahead and close this issue.
Thank you for your understanding


Add DPoPWebIdExtractor

Had some fun with @matthieubosquet tonight 😎
This makes the server support DPoP-based authentication by default.
Also, it makes extractors specific to one type of authentication, such that multiple extractors can be chained in case a server wants to support multiple authentication schemes.

Rebased on #359 because of https://github.com/LinkedSoftwareDependencies/Components.js/issues/22.


When opening new window requires auth for github even if I did it many times

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.95.1 (user setup)
Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6

Steps to Reproduce:

Do auth in github
Open new window

Perform auth again
Close window, wait a minute
Go to step 2.

/duplicate https://github.com/microsoft/vscode/issues/232516


Misplaced Player Spawn Point on the Example Map

Hey @DaveFace,
The player spawn point is inside world geometry and that causes clipping issues when the player spawns.
I have since fixed this on my end. But this may confuse users who are new to unreal engine 4.

Yes I spotted this when I rebased the project earlier, it's fixed in the most recent update. Guess I've gotten to used to having the player start at camera location. Cheers for the heads up


[VL][CI] Enable abfs in building velox to install its dependencies in docker image

This PR was raised to address this comment
I am attempting to resolve this problem by enabling ABFS (Azure Blob FileSystem).

cc @gaoyangxiaozhu

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_4413_time.csv
log/native_master_01_15_2024_8fb2c35d5_time.csv
difference
percentage

q1
32.25
34.48
2.221
106.89%

q2
24.93
24.98
0.040
100.16%

q3
37.91
38.86
0.951
102.51%

q4
39.35
37.85
-1.501
96.18%

q5
70.92
70.70
-0.220
99.69%

q6
7.09
5.78
-1.313
81.48%

q7
86.77
85.94
-0.829
99.04%

q8
86.25
84.86
-1.388
98.39%

q9
123.33
123.88
0.546
100.44%

q10
45.93
46.04
0.110
100.24%

q11
20.43
20.63
0.197
100.97%

q12
28.50
25.93
-2.568
90.99%

q13
46.32
46.63
0.315
100.68%

q14
18.24
23.32
5.082
127.86%

q15
30.36
31.44
1.083
103.57%

q16
13.03
14.88
1.845
114.15%

q17
101.83
100.72
-1.110
98.91%

q18
149.29
147.03
-2.260
98.49%

q19
15.19
13.73
-1.465
90.36%

q20
28.93
27.44
-1.492
94.84%

q21
226.92
227.79
0.873
100.38%

q22
14.46
13.83
-0.626
95.67%

total
1248.24
1246.73
-1.510
99.88%


Fix PG

@dangtony98 @DanielHougaard Since the newest published version of this library does not yet include this fix it does not work with any newly created tokens (at least for me, because of the missing "-" in the regex, I don't know if Infisical sometimes still generates accidentally compatible tokens): When can we expect a new release ?
This is currently breaking my workflow, so I would appreciate a release soon, thanks :)

Oooooh, I was only looking at the Github releases and when I tried updating with pip yesterday it was not yet released. Thank you :)


Update results.py

We need to stage out these changes rather than doing it in one pass. Would be very rough to do without a transition release.

worth doing an UpgradeHelper https://github.com/psi4/psi4/pull/1351/files#diff-a7c88e038c7c4c8ab84033e68c2b7c38R99 https://github.com/psi4/psi4/blob/master/psi4/driver/p4util/exceptions.py#L85 or more targeted at database than users?

It's a database issue.


feat: implement Mux badge

Adds proudly-display-mux-badge attribute to render a linkback to Mux

Such a good idea!


check if external for infobutton

fixes #2441

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

4 of 4 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.648%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
12520

Relevant Lines:
12522

💛  - Coveralls


hotfix: support scope list filter, resolve filter conflict

这个 PR 实现什么功能/修复什么问题:
list支持过滤器scope（取代admin=true)，解决pending-delete的过滤器冲突
是否需要 backport 到之前的 release 分支:

release/2.11.0

Codecov Report

Merging #1048 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1048      +/-   ##
=========================================
- Coverage    7.92%    7.9%   -0.02%
=========================================
  Files         356     356
  Lines       56349   56425      +76
=========================================
- Hits         4466    4463       -3
- Misses      51490   51568      +78
- Partials      393     394       +1

Flag
Coverage Δ

#aFlag
7.9% <0%> (-0.02%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/cloudcommon/policy/policy.go
1.93% <ø> (ø)
:arrow_up:

pkg/compute/models/secgrouprules.go
3.68% <ø> (+0.02%)
:arrow_up:

pkg/mcclient/options/base.go
48.9% <ø> (ø)
:arrow_up:

pkg/compute/models/vpcs.go
2.28% <0%> (ø)
:arrow_up:

pkg/compute/models/loadbalancers.go
1.96% <0%> (ø)
:arrow_up:

pkg/compute/models/keypairs.go
6.56% <0%> (-0.25%)
:arrow_down:

pkg/cloudcommon/db/opslog.go
2.08% <0%> (+0.01%)
:arrow_up:

pkg/cloudcommon/db/modelbase.go
2.5% <0%> (ø)
:arrow_up:

pkg/cloudcommon/db/standalone.go
0.97% <0%> (-0.08%)
:arrow_down:

pkg/cloudcommon/db/virtualresource.go
0% <0%> (ø)
:arrow_up:

... and 18 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 2541ebc...a2c0530. Read the comment docs.

/hold

/hold cancel

/hold cancel

/approve
/lgtm


Want fail on unhandled promise rejections

Hello!
Can I use this package to fail on unhandled promise rejection warnings?
I want this to cause a failure:
(node:38060) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
I tried adding the following code to a file I use in setupFiles
process.on("unhandledRejection", () => {
  console.error(
    `Unhandled promise rejection while running test!`,
  );
});

And I see my new error message is getting logged to my terminal, but the tests aren't failing. I have confirmed this package works great on other console.errors I have in other tests.
Thanks!

I'm not 100% sure. I'm wondering if it could be due to process.on("unhandledRejection" being added in setupFiles while this library is initialized setupFilesAfterEnv.
Did you try moving your code in the latter file?

It doesn't work, and also if I move process.on("unhandledRejection" to setupFilesAfterEnv nothing outputs to the console. Not sure the why about that yet.

Sorry for the late response.
I tried to get this working but, as far as I understand, the console.error in process.on is executed too late. Indeed, the required cleanup code from jest-fail-on-console has already been executed at this point.
However, one approach that you can do is:
process.on('unhandledRejection', (err) => {
  console.error(err);
  throw new Error(`Unhandled promise rejection while running test!`);
});

This will actually make the test run fails completely which is better than nothing.
See https://stackoverflow.com/a/58634792/1713469

Closing as there was no answer for a while. Comment to re-open 😉

@brianabaker If you are writing TypeScript, you might find linting useful to address this issue:
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-floating-promises.md


Prevent multiple rendering with PureRenderMixin

Creating a new instance of error triggers two additional rendering when typing in an input, using same instance prevent it to happen.

@christianalfoni do you intend to merge it? Also can you make a release after? Thanks :+1:

Hi! Could you add a test for this case?

@Semigradsky for multiple rendering I don't see how to write the test :/

@neoziro ok, could you show this in http://codepen.io/semigradsky/pen/dYYpwv?editors=001 ? Just fork this pen and edit it.

@Semigradsky you can see 3 render in the console http://codepen.io/anon/pen/EVpEpd?editors=001
With my modification, you will see only one.

Nice! I added test 59bde8324c013f5d7f63307f3645a772e8a5a5b4 and merged it

@Semigradsky thanks, can you release it?

Nope. @christianalfoni ?

@christianalfoni: could you transfer the ownership of this project if you're not maintaining it anymore.


[Disaster Dashboard] Fix date bug that blocks rendering in Safari

This PR fixes the bug that prevented the disaster dashboard from rendering correctly in Safari.
The culprit was the date parsing for the histograms. Safari does not support using "Z" in a datestring for Zulu Time. Since the histogram tile only ever uses dates and doesn't need timezone information specified, this PR switches "Z" to using Date.parse() instead, which according to MDN will interpret date-only formatted dates as UTC.
Before:

After:

nice find! Probably also need to update these, I'm guessing the date drop down on Safari also doesn't render properly because of the same problem: https://github.com/datacommonsorg/website/blob/master/static/js/utils/disaster_event_map_utils.tsx#L116-L117

yes - let's do that in a follow up


adding new files

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

created with error


[CSBindings] Extend early array literal favoring to cover dictionaries

Follow-up to https://github.com/apple/swift/pull/70148
Just like with arrays it's advantageous to favor dictionary literals over
disjunctions to bind the elements together and enable inference across
elements and, as a consequence, type pruning.
Resolves: rdar://119040159

@swift-ci please test

@swift-ci please test source compatibility

@swift-ci please test source compatibility

@swift-ci please test Linux platform


Investigate test failures on linux

For some reason specifically on linux https://github.com/iterative/dvc-azure/actions/runs/6268969092

Looks like just needed to upgrade azurite version, but due to https://github.com/iterative/pytest-servers/pull/121 we were not getting an obvious error message.


Refresh code coverage integration

This PR exposes the code coverage target macro to the user and allows source directories to be specified instead of using what I think is a hardcoded source directory.
It also allows for coverage analysis of failing tests, as it may be useful to evaluate test coverage even if not all tests pass.

@cyrush I am pretty sure you use this macro and the macro signature is changing.

@joshessman-llnl please update the RELEASE-NOTES.md


Text truncating in the file

i am zipping 2 text files with some text at the end of the line. when i open the zipped files, the text is getting truncated.
Same issue does not occur when the text at the of the line is numeric values

That does sound odd, can you give a bit more information, examples, screenshots, maybe some sample code?


Is AR calculated with proposals or final detections in COCO?

Hi guys,
Thanks a lot for the great work.
In COCO dataset, AP is calculated with at most top 100 highest score bboxes amongst final detected results(post-nms) based on what I've comprehended. (Let me know if I've misunderstood sth here)
In mmdetection, you guys give "proposals" option as --eval-options, and it seems to calculate AR of 100, 300, 1000 proposals. Are they region proposals, not the final detected bboxes?
If so, how can I get AR with single-staged detectors like yolo or ssd as they don't have "proposals" in general.
Looking forward to your answer.

My biggest wonder is the meaning of "proposal"( --eval) in one-stage detectors? I get different AR setting --eval as "bbox" and "proposal" in yolov3!

For one stage model, the boxes used for calculating metrics are always the predicted boxes. There is no "proposal" for one-stage models. The meaning of  --eval proposal means using 'AR@100', 'AR@300', 'AR@1000', 'AR_s@1000', 'AR_m@1000', 'AR_l@1000' as the metric_items and set cocoEval.params.useCats = 0(means ignore the categories of the boxes). You can refer to  https://github.com/open-mmlab/mmdetection/blob/94afcdc6aa1e2c849c9d8334ec7730bb52b17922/mmdet/datasets/coco.py#L509

Big thanks for the confirmation @RangiLyu!
I've checked the codes, but I still wonder why the reported AR values are different when --eval bbox and --eval proposal. According to what you said, shouldn't the numbers same as there are no "proposal"...?
Does ignoring categories of the boxes causes the difference?
[results attained with --eval proposal]

[results attained with --eval bbox]

I wonder what makes the difference between these two.
Thanks again!!

Does ignoring categories of the boxes causes the difference?

Yes.

Thanks a lot!!


Identity search when sending money and certify identity actions.

As build actually in Cutecoin, we should deal with people which are in our contact list. Normal thing, because we mainly deal with people we know. But, it could be more user-friendly if we could search in all identities for this two actions. What do you think?

Like a search filter "Contacts" ?

Yep, it could be a search filter in the contact list. But, I were thinking about search filter in all identity like on WoT and search identities tabs. I am not sure if it is useful. We will see that later.

I'm not sure to understand what you are trying to explain...

I mean, searching for identities among all identities for sending money and certify identities actions.

Ah the dialogs which are at the moment suggesting to send to a contact, you think we should add a
search field ?

Yep, it could be great.

Done https://github.com/ucoin-io/sakia/commit/55fa2e53f01382c71666da3e17f3453434250edf


Reserves Law

We are drafting the Reserve Law in this document.
Requirements:

need to be reviewed

Closing because further drafting will take place in the repository itself, as it should be with GitHub. Please feel free to open new issues for particular problems or ideas regarding this particular law.


Merge groups in documentation

This PR fixes #535 by splitting the @group tag content into a groupName and groupDescription. The group title alone is used as the heading, and the first non-empty group description is picked from the routes in that group.
Also included: propagating verbosity level down to Collision library, updated Dingo version, removed callable route syntax test for Dingo since Dingo doesn't support it.

Codecov Report

Merging #556 into master will decrease coverage by 1.33%.
The diff coverage is 84.21%.

@@             Coverage Diff              @@
##             master     #556      +/-   ##
============================================
- Coverage     90.89%   89.55%   -1.34%
+ Complexity      290      239      -51
============================================
  Files            14       14
  Lines           692      680      -12
============================================
- Hits            629      609      -20
- Misses           63       71       +8

Impacted Files
Coverage Δ
Complexity Δ

src/Tools/Utils.php
71.42% <0%> (-2.11%)
13 <2> (ø)

src/Tools/Generator.php
94.53% <100%> (-1.17%)
61 <0> (-25)

src/Commands/GenerateDocumentation.php
93.98% <100%> (-0.14%)
34 <1> (-10)

.../Tools/ResponseStrategies/ResponseCallStrategy.php
86.77% <0%> (-4.14%)
41% <0%> (ø)

src/Postman/CollectionWriter.php
92.5% <0%> (-0.69%)
9% <0%> (-10%)

...ols/ResponseStrategies/TransformerTagsStrategy.php
81.63% <0%> (-0.37%)
24% <0%> (-2%)

...c/Tools/ResponseStrategies/ResponseTagStrategy.php
100% <0%> (ø)
9% <0%> (-2%)
:arrow_down:

.../Tools/ResponseStrategies/ResponseFileStrategy.php
100% <0%> (ø)
11% <0%> (-2%)
:arrow_down:

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 f691f9e...d5cedf4. Read the comment docs.


Have timeout for tunnel, new connections reset timer

/assign
SSH tunnel have a timeout of 10 mins. Any new connections will disable this timer. Once that connection is closed the timeout is reset to 10 mins unless there is another open connection.
ixes #723
SSH tunnels timeout after 10 minutes of inactivity.

/unassign
/assign @simonswine

Needs rebase, works well for continued kubectl get.


Python interpreter does not find compiled libraries

Describe the bug
When executing Liver.py to build the UI, Python interpreter fails in loading the library qSlicerLiverResectionsModuleWidgetsPythonQt on Windows 10 (Liver.py line 178). The library file it is compiled and exists in the solution directory. Other modules are found and loaded correctly.
To Reproduce
Steps to reproduce the behaviour:

Configure the project for VS 2019 v16
Compile in Debug mode for Windows 10 (x64)
Open Slicer, install the Liver extension
Open the liver extension, this will execute Liver.py to build the UI an trigger the error.

Expected behaviour
To load the qSlicerLiverResectionsModuleWidgetsPythonQt library an complete the execution of Liver.py
Screenshots

Desktop (please complete the following information):

OS: Windows 10 (version 21H1, build 19043.1415)
Version: Slicer 4.13.0, Slicer-liver updated to 27.01.2022

Additional context
The libraries are compiled as static (.lib) instead of dynamic (.dll)

@jpdefrutosSINTEF is this related (https://discourse.slicer.org/t/python-message-failed-to-import-pythonqt-qslicerxxxxmodulewidgets/21575/3. If so, please make sure that you reply to that post in discourse to add that we are experiencing similar issues (give me a mention in discourse so I have it referenced and can discuss with the developers tomorrow)
@olevs

Information needed @olevs, @jpdefrutosSINTEF :

PYTHONPATH

LD_LIBRARY_PATH (Linux only)

Compnent that works on load

Component that it does not work.

[ ] Testing another extension @jpdefrutosSINTEF

I compiled Slicer with the new Python 3.9, and looks like the bug is gone. The extension is loaded without Python complaining at all, as you can see in blank Python terminal of the attached image.

Same for me on macOS Javier. A lot of issues in the super build when trying to build Slicer in Debug mode (stops in ITK). Release mode works ok though.

Exactly, ITK is the package failing while compiling the debug version... sus

Could you guys open an issue on the official Slicer repo? I think not having Debug is workable, but you might need it further down the road.

Quick update: Slicer compiles fine in Debug mode, as well as Slicer-Liver. Though there is an error when creating the resection plane. I will add the information in another issue, to not glut this thread

@ALive-research/alive-software Should we close this one?


Bug: Windows generact

This shouldn't be happening. It works perfect in a unix environment but not my windows 10

This seems to be a problem with this function: https://github.com/diegohaz/generact/blob/master/src/utils.js#L11-L20
I don't have a Windows machine to test it. Could you try to change it?

Parallels? Windows 10 vm's are free https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

still not working on Windows 10 even not the extension of vs code.

Hi, guys. I'd appreciate very much if some Windows user could take this.
The problem seems to be with this function: https://github.com/diegohaz/generact/blob/638f95242d4572887802bbe0551974870e69c02f/src/utils.js#L12-L21

I am willing to contribute please guide me how to setup the basic environment and how to test it.

Sure, @Shhzdmrz.

Fork the repo and clone it in your local machine (git clone https://github.com/Shhzdmrz/generact);
Change to the directory: cd generact;
Install dependencies with yarn or npm install;
Run tests with yarn test or npm test (if you're on Windows, some should fail);
Keep tests running with yarn test --watch or npm test -- --watch;
Update the code in src trying to make tests to pass.

Just make sure to run yarn lint before creating the PR.

@diegohaz please check my forked branch with the comments I added.


sidekick and kubernetes-vault difference

I'm using sidekick in order to get secrets.
I've been able to propagate secrets into files correctly. Nevertheless, I've not been able to figure out how to extract this content file and propagate it again as environment variables.
By other hand, I also don't understand why sidekick is shown like an addon inside kubernetes-vault. Which's the difference between them? Which is the goal of both?

Sidekick is used to retrieve secrets from Vault. Kubernetes-vault only gets a Vault token into your pods. I haven't really used sidekick, but I think you should open an issue in the sidekick repo as this seems to be about how to use sidekick.

Closing this due to staleness.


Add description of auto refresh case

This PR includes description of code integration when auto refresh is enabled for mobile ads.

Thanks @anwzhang !


Clarification on .url Links

I've been trying to set a new image up for a client and they require .url links in the start menu. For ease of manageability I first tried putting the .url files on the Domain Controller along with the layout file. Within the layout file I was pointing to the UNC path for those .url files: <start:DesktopApplicationTile Size="2x2" Column="3" Row="6" DesktopApplicationLinkPath="\UNC\Path" />. This is hands down the best way to be able to deal with this. When our clients need to change the URLs in their start menu we can just push a new layout without messing around with files, but this does not work. The layout file will load fine and pins the applications that I've configured in the layout.xml, but the .url files are not showing up in the start menu.
Next I tried loading the .url files onto the windows image in various folders including %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Links\Link.url and pointing to them like so: <start:DesktopApplicationTile Size="2x2" Column="0" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Links\mylink.url" /> in the layout file but the .url files still do not show up in the start menu. As a side note when loading the start layout manually with the import-startlayout cmdlet there are no errors.
Lastly I've tried using this method: <start:DesktopApplicationTile DesktopApplicationID="http://myurl/" Size="2x2" Row="2" Column="0"/> and again the .url files are not showing up in my start menu.
I am testing on Windows 10 1803.

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

ID: 061157dc-8fc8-3f9d-c01f-37f22fbdf1c7
Version Independent ID: 0b0b6797-9367-eb7c-22ef-5f2b8bbfe592
Content: Start layout XML for desktop editions of Windows 10 (Windows 10)
Content Source: windows/configuration/start-layout-xml-desktop.md
Product: w10
GitHub Login: @jdeckerMS
Microsoft Alias: jdecker

@officedocsbot assign @jvsam

Hi @WindyBinDay thank you for sharing your experience in customizing the Start menu. Were you able to successfully configure it? Would you mind letting us know of the status? The doc describes what's supported but if you have feedback or suggestions regarding the customized Start, or on things you'd like to be different, I encourage you to add your voice in the Windows 10 User Voice. You feedback goes directly to the engineering team of the selected feature or product.
Thank you for engaging with the community!

Hi again @WindyBinDay , we haven't received any response or update from you so we will now close this issue. Please feel free to re-open it if you have comments or suggestions to help improve the contents of this document. Thank you.

@officedocsbot close


Provided dependency that is also a transitive dependency should be considered provided

[x] I've read the CONTRIBUTING guidelines

steps
If I have a project project1 that has a dependency (compile) to a library
And a project project2 that has a dependency (compile) to project1 but in project2 the same library is provided
problem
In project2 the library is resolved as a compile dependency. As a result if I generate a fat jar, it is included in the jar while it is not needed.
expectation
As the library is provided in project2 it should be resolved as provided and not included when doing an assembly
notes
Sample project to reproduce the issue:
build.sbt
name := "testProvidedDependencies"
version := "0.1"
scalaVersion in ThisBuild := "2.12.8"

lazy val project1 = project
  .settings(
    libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.5")

lazy val project2 = project
  .dependsOn(project1)
  .settings(
    libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.5" % Provided)

plugins.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.7")
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2")

sbt version: 1.2.8

@fxbonnet  Thanks for the report.
This does not match my expectation. Compile configuration extends Runtime configuration. Because project2 depends on project1, you will have "commons-lang3" in the Runtime.
Provided basically means that you have in Compile, but not in Runtime.
If you extend your logic, a direct dependency in Test configuration will evict dependencies off of Runtime or Compile too?

@eed3si9n thanks for your answer.
I am not familiar with sbt internal logic about configurations and inheritance rules. I am just saying that in that particular case it does not work.
But you are perfectly right, if I have a test dependency in project2 but it is also a compile dependency in project1, the dependency is required at runtime as well as for the tests (compile and runtime) so it should end up as compile.
I am not sure it is possible to define a generic eviction policy that applies to any configuration based only on inheritance between configurations. compile, test and provided are quite different things.
My example works as I expect with maven commons-lang3 ends up as provided and therefore is not included in the fat jar.
If you want to reproduce:
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>test</groupId>
    <artifactId>testProvidedDeps</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <modules>
        <module>project1</module>
        <module>project2</module>
    </modules>
</project>

project1/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>testProvidedDeps</artifactId>
        <groupId>test</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>project1</artifactId>
    <dependencies>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.9</version>
        </dependency>
    </dependencies>
</project>

project2/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>testProvidedDeps</artifactId>
        <groupId>test</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>project2</artifactId>
    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>project1</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.9</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>

I think you'd need to mess with sbt-assembly settings to exclude it manually.

I agree with @fxbonnet that I don't think the current behavior is the desired one or least some way of achive the other behavior is desired.  Am I missing some easy way that currently achieves the same thing? If not I would be willing to help implement such a feature.
My use case is that we currently build a fat jar using sbt-assembly for running against a a provided spark runtime. So it would be desired that the fat jar does not contain spark or any of sparks transitive dependencies (if it does it easy to end up with multiple versions of libraries). From what I can tell sbt-assembly does not provide some easy way to exclude all the transitive dependencies and you end up needing to exclude all (or at least all that you have overlap with) of them manually.

To some extent this is more of a design problem at the layer of dependency management engine. Could either of you open an issue on coursier/coursier? My guess is that any implementation effort would need to happen there.

So there's a coursier/coursier issue called https://github.com/coursier/coursier/issues/1846, and it's been fixed by @adpi2 in https://github.com/coursier/coursier/pull/2891?


This application failed to start because no Qt platform plugin could be initialized

I had a working version of system python 3.6 and the PySide2 module without erros. However, to check out if the unreal native python works as well (which is Python2) I have installed PyQt4 in unreals python 2.7 interpreter through pip. However not satisfied with Unreal Engine's python I wanted to go back to tab20 UEPlugin but started getting that error message when running the beneath code.
from PySide2.QtWidgets import QApplication
app = QApplication()

So to start a clean sheet I've

Installed embedded python (3.6 for 4.20)
Then used the command from the Plugins\UnrealEnginePython\Binaries\Win64\python install --target . PySide2

However that gives me again the same error as above.
Interestingly, when i just launch the python interpreter from the Plugin's directory the above code works fine.
Any help/hint appreciated.

I've kind of a workaround to it, but I don't think it's the best Idea. I've added a new environment variable:
QT_PLUGIN_PATH with the string *UnrealEnginePython\Binaries\Win64\Lib\site-packages\PySide2\plugins
That shouldn't be necessary,

Closing this, as the issue is indirectly solved.


sails.js & pm2 ghost processes

Issue
I posted this issue on the pm2 issues boards. i wanted to create it here as well to foster some cross application support. Here
Hey guys I have an issues that we have been trying to solve for a little while now. We currently use pm2 with sails.js. I think there is bug in the way these two applications talk to each other at least when it comes with pm2 sending a SIGTERM to sails.js
The problem arises when we start and stop our application.
We generate a process.json file and use the standard command pm2 start process.json to start the application.
Things are fine. Right now, when we grep the for a number of processes we have 4 node processes running. Great!
But when we try to stop the application using pm2 stop process.json
We basically get his long stack listed below. That's the output of the error log.  And when we grep for the number of node processes they are still running. Which is a problem and we have to run commands like the one below to stop all the processes. Was hoping to get some direction on how to solve this.
ps aux | grep 'node' | grep -v 'grep' | awk '{print $2}' | xargs kill -9
ps aux | grep 'pm2' | grep -v 'grep' | awk '{print $2}' | xargs kill -9

SIGTERM
Does Sails have a hard time dealing with SIGTERM signals?
Versions
node version = v0.10.28
pm2 version = 0.9.1 && 0.8.5
os = ubuntu 12.04 && osx 10.9.3

process.json
{
    "name": "project-activitystreams",
    "script": "./app.js",
    "instances": 4,
    "env": {
        "NODE_ENV": "development"
    }
}

Error Log from one of the process
debug: --------------------------------------------------------
debug: :: Wed Jul 02 2014 16:07:46 GMT-0400 (EDT)
debug:
debug: Environment	: development
debug: Port		: 9365
debug: --------------------------------------------------------
Error: channel closed
  at process.target.send (child_process.js:406:26)
  at WriteStream.write (/usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:122:45)
  at Console.log (console.js:53:16)
  at process.<anonymous> (/Users/fsyed/code/project-activitystreams/app.js:5:11)
  at process.EventEmitter.emit (events.js:117:20)
  at Signal.wrap.onsignal (node.js:761:46)
debug: Lowering sails...
Error: channel closed
  at process.target.send (child_process.js:406:26)
  at WriteStream.write (/usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:111:45)
  at [object Object].Console.log (/Users/fsyed/code/activitystreams/node_modules/sails/node_modules/winston/lib/winston/transports/console.js:78:20)
  at emit (/Users/fsyed/code/activitystreams/node_modules/sails/node_modules/winston/lib/winston/logger.js:174:17)
  at /Users/fsyed/code/activitystreams/node_modules/sails/node_modules/async/lib/async.js:108:13
  at Array.forEach (native)
  at _each (/Users/fsyed/code/activitystreams/node_modules/sails/node_modules/async/lib/async.js:32:24)
  at Object.async.each (/Users/fsyed/code/activitystreams/node_modules/sails/node_modules/async/lib/async.js:107:9)
  at [object Object].Logger.log (/Users/fsyed/code/activitystreams/node_modules/sails/node_modules/winston/lib/winston/logger.js:202:9)
  at [object Object].target.(anonymous function) [as debug] (/Users/fsyed/code/activitystreams/node_modules/sails/node_modules/winston/lib/winston/common.js:63:18)
  at bound.log (/Users/fsyed/code/activitystreams/node_modules/sails/lib/logger.js:136:34)
  at bound.Sails.lower (/Users/fsyed/code/activitystreams/node_modules/sails/lib/app/index.js:187:9)
  at bound (/Users/fsyed/code/activitystreams/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
  at process.<anonymous> (/Users/fsyed/code/activitystreams/node_modules/sails/lib/app/teardown.js:25:31)
  at process.EventEmitter.emit (events.js:117:20)
  at process.exit (node.js:711:17)
  at [object Object]._onTimeout (/usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:166:19)
  at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

I also have this same issue when using forever instead of pm2. When I stop the app using forever's commands for stopping a running application I get some leftover grunt processes that don't get killed. I'm on OS X Yosemite. This is with SailsJS v0.10 and NodeJS v0.12.


Fix linux brew workflow

Update linux brew workflow so it is correctly building
This PR getting merged will mean all the CI checks are green ✅ 🎉

Fantastic job @jonathangreen 💯


Update README.md

exitFullscreen seems to be a getter?

Yes it is a getter. But the the getter function is called when you access the property, e.g. fscreen.exitFullscreen. When you access the property and call the function (e.g. fscreen.exitFullscreen()), then the function returned from the getter function is called.
Do you think in the Readme I should separate calling the getter function (e.g. accessing the property) vs calling the function that is returned from the getter function?

Yes it is a getter. But the the getter function is called when you access the property, e.g. fscreen.exitFullscreen. When you access the property and call the function (e.g. fscreen.exitFullscreen()), then the function returned from the getter function is called.

Ah, gotcha 👍

Do you think in the Readme I should separate calling the getter function (e.g. accessing the property) vs calling the function that is returned from the getter function?

Not sure, now that you explained, it makes sense. I was writing Typescript definitions for DefinitelyTyped, so it wasn't obvious at that point.


Consider alternatives to loginctl for graphical session owner

Currently, we use loginctl (man page) to see who's logged in.
An alternative solution would be to check for a process that is launched along with a graphical session, such as those relating to dbus:
ps -ef |
    grep -e 'dbus-launch.*--exit-with-session' |
    fgrep -v -e grep |
    awk '{print $1}'

Another option is to find which processes are children of the display manager, lightdm. (You can find the display manager by checking who spawned X, but on DICE it'll always be lightdm). The window manager should be a child, so checking the owner of the child processes will give you who has a graphical session.
ps -ho user --ppid $(pidof lightdm) |
    fgrep -v -e 'root'

I think the second option would be a lot neater and more reliable. Thoughts?

Does the second option still work with different WMs?

Yep, as far as I can tell. The display manager, lightdm launches the WM when you select it at login. That's why it's considered to be the parent process.
Example with i3:

I tested this against people using gnome and i3. Haven't asked anyone who's using something customly built (xmonad :p) yet to try it, but I still bet it'd work.

Sounds good.

I hope $() and pipes will work in code without much refactor but lets try
Can people run lightdm themselves and screw with this? It's fine if they can because a new command is better than what we have now, but it's good to know

Also, for reference, this is what squinney said:

Thanks for the report, it appears to be related to the gnome-keyring-daemon process not being killed when a user logs out. We'll investigate but I don't think it's a major problem.

We should give it a go. It works over SSH normally, as long as you put the whole command in quotes and escape the $(): ssh amelia "ps -ho user --ppid \$(pidof lightdm) | fgrep -ve 'root'"
Only root should be able to launch lightdm. Local and SSH users can launch lightdm with the --test-mode flag, but it'll crash on launch; it won't affect this method of finding users unless someone was doing something like while true; do lightdm --test-mode; done but I find this unlikely.

I think one can wrap the $() in quotes and it’ll still execute? I might be thinking of $args in strings though. My bash scripting isn’t the greatest…

On 28 Sep 2018, at 15.57, fox<EMAIL_ADDRESS>wrote:
We should give it a go. It works over SSH normally, as long as you put the whole command in quotes and escape the $(): ssh amelia "ps -ho user --ppid $(pidof lightdm) | fgrep -ve 'root'"
Only root should be able to launch lightdm. Local and SSH users can launch lightdm with the --test-mode flag, but it'll crash on launch; it won't affect this method of finding users unless someone was doing something like while true; do lightdm --test-mode; done but I find this unlikely.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/compsoc-edinburgh/mapp-worker/issues/2#issuecomment-425463072, or mute the thread https://github.com/notifications/unsubscribe-auth/AFhM38szb2grvvUEINr8WgrWnPWG-N1Fks5ufjjTgaJpZM4W-Nkm.

@neanias the difficulty is passing $() over SSH without the local machine absorbing and inserting the expansion: running ssh amelia "ps -ho user --ppid $(pidof lightdm)" will cause bash to do the $(pidof lightdm) replacement before ssh passes the command to the remote host. I don't think just using quotes around $() fixes it in this instance but I may be wrong.
Apologies if that was unclear.

It works well when there is a user, but (unless we write a workaround) it needs to return error code 0 when there is no user.
s1620208@ashbury: ~
➜ ssh delpotro "/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root'"
s1620208@ashbury: ~
➜ echo $?
1
s1620208@ashbury: ~
➜ ssh marsala "/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root'"
s1506301
s1620208@ashbury: ~
➜ echo $?
0

That’s because fgrep finds no match. Pipe it to true for a always 0 return code.
~ Fox

On 28 Sep 2018, at 20:06, Qais Patankar<EMAIL_ADDRESS>wrote:
It works well when there is a user, but (unless we write a workaround) it needs to return error code 0 when there is no user.
s1620208@ashbury: ~
➜ ssh delpotro "/usr/bin/ps -ho user --ppid $(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root'"
s1620208@ashbury: ~
➜ echo $?
1
s1620208@ashbury: ~
➜ ssh marsala "/usr/bin/ps -ho user --ppid $(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root'"
s1506301
s1620208@ashbury: ~
➜ echo $?
0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Nice, i'll give that a go

Piping to true gets rid of stdout (obviously).
This works:
s1620208@ashbury: ~/Documents/Go/src/github.com/compsoc-edinburgh/mapp-worker
➜ ssh delpotro "/usr/bin/printf '%s' \$(/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root')"
s1620208@ashbury: ~/Documents/Go/src/github.com/compsoc-edinburgh/mapp-worker
➜ echo $?
0
s1620208@ashbury: ~/Documents/Go/src/github.com/compsoc-edinburgh/mapp-worker
➜ ssh marsala "/usr/bin/printf '%s' \$(/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root')"
s1506301%                                                                                s1620208@ashbury: ~/Documents/Go/src/github.com/compsoc-edinburgh/mapp-worker
➜ echo $?
0

does not seem to be reliable
s1620208@hampsten: ~
➜ ssh marsala "/usr/bin/printf '%s' \$(/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root')"
s1505551%                                                                                s1620208@hampsten: ~
➜ ssh hampsten "/usr/bin/printf '%s' \$(/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root')"
s1620208@hampsten: ~
➜ ssh hampsten loginctl
   SESSION        UID USER             SEAT
      5607    1671166 s1620208
      5543    1696197 s1642301         seat0
      5613    1671166 s1620208

3 sessions listed.
s1620208@hampsten: ~
➜
Connection to hampsten closed.
s1620208@habiganj: ~
➜ loginctl
   SESSION        UID USER             SEAT
      1918    1671166 s1620208         seat0

1 sessions listed.
s1620208@habiganj: ~
➜ ssh habiganj "/usr/bin/printf '%s' \$(/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root')"
s1620208@habiganj: ~
➜ ssh herrera "/usr/bin/printf '%s' \$(/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root')"
s1806352%                                                                                s1620208@habiganj: ~
➜ ssh hampsten "/usr/bin/printf '%s' \$(/usr/bin/ps -ho user --ppid \$(/sbin/pidof lightdm) | /usr/bin/fgrep -ve 'root')"
s1620208@habiganj: ~
➜

my machine habiganj is running xmonad but doesn't have lightdm for some reason. I don't think this is an xmonad thing, as this was working for myself earlier.
hampsten is running a regular normal gnome session. not worky

to clarify:
s1620208@hampsten: ~
➜ ps aux | grep lightdm
root      1092  0.0  0.0 322664  9608 ?        Sl   10:20   0:00 lightdm --session-child 13 22
s1620208  8367  0.0  0.0 112716  1000 pts/0    S+   11:57   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn lightdm
root     32365  0.0  0.0 365020  4372 ?        SLsl Oct08   0:00 /usr/sbin/lightdm
root     32371  0.4  0.3<PHONE_NUMBER>4 tty1     Ssl+ Oct08   5:46 /usr/bin/X -core -noreset :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch -background none
lightdm  32391  0.0  0.0  58860   956 ?        S    Oct08   0:00 dbus-launch --autolaunch=d05bc30137d24b13921cbb351a63b538 --binary-syntax --close-stderr
lightdm  32395  0.0  0.0  70204  1400 ?        Ss   Oct08   0:00 /usr/bin/dbus-daemon --fork --print-pid 6 --print-address 8 --session

and
s1620208@habiganj: ~
➜ ps aux | grep lightdm
root      7549  0.0  0.0 322616  7560 ?        Sl   10:25   0:00 lightdm --session-child 13 22
root     22073  0.0  0.0 365024  6432 ?        SLsl Oct08   0:00 /usr/sbin/lightdm
root     22079  0.4  0.3<PHONE_NUMBER>2 tty1     Ssl+ Oct08   3:37 /usr/bin/X -core -noreset :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch -background none
lightdm  22099  0.0  0.0  58860   960 ?        S    Oct08   0:00 dbus-launch --autolaunch=b5000765b79c4bf680bd6440ea0d20af --binary-syntax --close-stderr
lightdm  22103  0.0  0.0  70204  1396 ?        Ss   Oct08   0:00 /usr/bin/dbus-daemon --fork --print-pid 6 --print-address 8 --session
s1620208 24156  0.0  0.0 112720  1004 pts/0    R+   11:58   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn lightdm

s1620208@marsala: ~
➜ ps -ho user --pid $(pidof lightdm)
root
root
s1620208@marsala: ~
➜ loginctl
   SESSION        UID USER             SEAT
      1006    1671166 s1620208
<PHONE_NUMBER> s1505551         seat0

2 sessions listed.

then again for a person that does appear on mapp, we get this:
s1620208@belloni: ~
➜ ps -ho user --pid $(pidof lightdm)
root
root
s1620208@belloni: ~
➜ loginctl
   SESSION        UID USER             SEAT
     10678    1890854 s1804891         seat0
     10680    1671166 s1620208

2 sessions listed.

I suggest reverting 86fccb457bbc52ba6f3150906c3c09439ec8551f until we can work out a better solution, then. When I'm back up North I'll look into this properly.

okay, apologies for this bug then. I promise I tested it beforehand <3

fwiw, I tried this technique because I thought it would be a reliable way to find a user's window manager when running locally. Since the WM process will be owned by the user and all-but-guarantees* the user is sitting at the machine, finding the WM process seemed like a reasonable plan.
Remind me later to investigate the process tree to find out what's happening in this false negative case. What is the parent process of the WM?

Remind me later to investigate the process tree to find out what's happening in this false negative case. What is the parent process of the WM?

Don't know. This is what htop says:

There is a line bash /usr/libexec/xinit-dice just above xmonad. This looks promising

nvm xinit-dice is only called for people using a custom user script

We found that this is, for some reason, unreliable in bash.
Use this instead:
PIDS=$(pidof lightdm); for pid in $PIDS; do ps -ho user --ppid $pid | fgrep -v -e 'root'; done

It returns lightdm if there is nobody logged in, but that will do!
if result.User == "lightdm" {
    result.User = ""
}

Thanks for this @sleepyfoxen

Actually -e lightdm


Add nonVolatile and omitChanges Attribute options

This PR adds two new Attribute options to be used in later PRs

nonVolatile means that the value is persisted and initialized again on reboot/restart
ommitChanges means that value changes should not send in subscriptions

I decided to add them as options and not types because I think the current types (optional, writable. normal and all combination) are already enough :-)
The PR also contains some minor typo fixes

@mfucci Adjusted prsistent as proposed and also "defaults" to false now both. For "omitChanges" see above: I would vote for staying with this name to be more easy mappable to the specs


create a matrix to display admirals AdAM IG coverage (1)

goal: come up with a way to measure how much of the ADaM IG standards are covered by admiral
show overall coverage
show Roche coverage
show GSK coverage
question for testing:
how much is covered by the testing companies?

I see this was moved to Sprint Done.  Can we close this issue?


Add result count per all/draft/active story type

When searching and filtering results on the dashboard, add the number of results per status (e.g. 10 totals, 5 drafts, 5 published), excluding templates.
As per UX design:
https://www.figma.com/file/hUTw97921an0e3uU28JoDn/Dashboard?node-id=1936%3A82064
Todo in follow-up changes:

Split myStories/index.js into multiple files, to make testing easier.
Write a test.
Resolve the question posted to the issue, whether the number below the tab is the total or for the tab.

Hi @cvolzke4 - welcome to the team!

Thanks Brittany! :)
I missed this context in the ticket, I thought it was only relevant to the template.
Would a sensible approach be to send 3 queries and read the 'X-WP-Total' response header from each:

status=all, per_page=1   (or 0)
status=draft, per_page=1
status=live, per_page=1

Or is the plan for us to write a new API on the Wordpress side in PHP?

Hi @cvolzke4 - welcome to the team!

Thanks Brittany! :)
I missed this context in the ticket, I thought it was only relevant to the template.
Would a sensible approach be to send 3 queries and read the 'X-WP-Total' response header from each:

status=all, per_page=1   (or 0)
status=draft, per_page=1
status=live, per_page=1

Or is the plan for us to write a new API on the Wordpress side in PHP?

No worries!
So I belive the plan is to add new headers to the existing API, that's what the ticket #1120 is for for Pascal and Miina to address the changes in PHP

Heya @cvolzke4!
#1761 has just been merged, which adds a new X-WP-TotalByStatus HTTP response header. This should unblock this PR.


w3wp terminated due to unhandled exception

I saw w3wp crashing with the exception below logged in eventlog.xml
I think it happens when I touch host.json while a bunch of queue functions are running.
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
   at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
   at System.Threading.CancellationTokenSource.InternalRegister(System.Action`1<System.Object>, System.Object, System.Threading.SynchronizationContext, System.Threading.ExecutionContext)
   at System.Threading.CancellationToken.Register(System.Action`1<System.Object>, System.Object, Boolean, Boolean)
   at System.Threading.CancellationToken.Register(System.Action)
   at Microsoft.Azure.WebJobs.Host.Timers.TaskSeriesTimer+<StopAsyncCore>d__4.MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
   at Microsoft.Azure.WebJobs.Host.Queues.Listeners.QueueListener+<ProcessMessageAsync>d__11.MoveNext()
   at Microsoft.Azure.WebJobs.Host.Timers.BackgroundExceptionDispatcher+<>c__DisplayClass1.<Throw>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Actually now it seems to be happening without touching host.json

This might be tough since there is no clear repro. We might have some issues on our dispose paths.

This was also a long time ago, if the info in the stack at the top are not meaningful, I'd just close this bug

Agreed. Closing.


SQSClient.sendMessage method doesn't support sending message attributes

I am only able to send the message body using SQSClient.sendMessage and not able to send any message attributes. Kindly address this issue.

Hi @viggu888 👋🏻
#65 should provide what you're looking for.
As a general note, this is an open-source project, and whenever in need for a specific feature, please feel free to open a pull request for it, and we will gladly support you to bring it to the finish line 🙇🏻

yeah thanks. it works now.


[DR] Hierarchical Communicator Design

Prototype/Production Branches
Please see the branch multib-app for work on communicators. This is the same branch in which the multi-block work is happening as these two issues are connected. I consider this to be a production branch
Introduction
Communicators need to be arrange hierarchically to reflect the hierarchy in the App system:

Some functionality is purely communicator based, for example, ranks, size of communicator, barrier, etc
Some functionality requires a decomposition. For example sync of ghost-cells in each block, all-gather etc
Some functionality requires both a decomposition and a topology, for example, inter-block communication

Hence, a refactoring of the existing comm system is needed to support all these various scenarios.
Principles

Each communicator type (null, MPI and nccl) must support the same functionality. This is critical to avoid any if-statements except in communicator creation functions
Connected with the above principle is that there should not be "host" methods in nccl communicators. This breaks layering by indicating that we are dealing with a CUDA communicator. The specific comm type should not be visible or matter to any user code (except for creation)
No leakage of internal data should occur, for example, MPI specific pointers should not be returned from methods (for obvious reasons)

Proposed Design
I propose that we add a new set of methods that work on inter-block communications. The design needs some thought: should this be a new set of objects built on top of the existing comm objects, or just added to the present comm object. The latter has the advantage that we already have communicators used extensively everywhere in the code and so no need things will be needed. The disadvantage is that the IFCs become pretty fat.
We should aim for hierarchical methods. For example, a all-reduce on a communicator that is topology aware should call the block-level all-reduce and then do what is needed to all-reduce based on the topology. This frees up the user from worrying about how to do these operations himself.
One code implementation option is to introduce more structure into the gkyl_comm structure: perhaps we put the function pointers in nested structs for cleaner code, though this is only a cosmetic thing (perhaps not).

I have performed some major surgery to the comm interfaces. This cleans up the code significantly, removing all internal details to private headers not accessible to a user. This is achieved by an additional level of indirection. The gkyl_comm object now simply looks like:
struct gkyl_comm {
  char id[128]; // string ID for communcator
  bool has_decomp; // flag to indicate if comm has an associated decomp
  const struct gkyl_rect_decomp *decomp; // decomp, if it exists, or NULL

  struct gkyl_ref_count ref_count; // reference count
};

No function pointers are in this struct. Instead a new gkyl_comm_priv struct holds them. As the name indicates this struct is private and not visible to the user. This greatly cleans up the main gkyl_comm.h header as all nasty function typedefs are not leaked to the user now. (We need to do this across the code, I believe).

This DR is completed and can be closed. Some more work remains in inter-block comm but the work that was proposed here is completed.


Key error in fcn_ctx

I've run into an error using metame. It appears that fcn_ctx is missing the key 'type'.
I'm using python 3.5.
$ metame -i file.exe -o foo.exe
[INFO] Opening file with r2
[INFO] Analyzing functions with r2
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x0040485b
[anal.jmptbl] Missing cjmp bb in predecessor at 0x004049f7
[INFO] Loading functions information
[INFO] Replacing instructions
Traceback (most recent call last):
  File "venv/bin/metame", line 5, in <module>
    metame.main()
  File "venv/lib/python3.5/site-packages/metame/__init__.py", line 20, in main
    patches = r.iterate_fcn()
  File "venv/lib/python3.5/site-packages/metame/r2parser.py", line 43, in iterate_fcn
    replacements += arch.replace_fcn_opcodes(fcn_ctx)
  File "venv/lib/python3.5/site-packages/metame/x86handler.py", line 174, in replace_fcn_opcodes
    if fcn_ctx["ops"][count]["type"] not in self.mutables:
KeyError: 'type'

It seems that this could be easy enough to fix -- use the dict.get method & provide a sensible default.

Sorry for the late response!
I've fixed it in the git version and soon in pip. Thanks!


chore: fix fastboot testing environment for ember-data >= 4.12

Fixed fastboot configuration as per https://github.com/ember-fastboot/ember-cli-fastboot/issues/913
https://github.com/emberjs/data/tree/b1c8aad0d14bfa360aa9a741d0b2e394dc30155b/tests/fastboot/config

ember-data >= 4.12 seems to break under fastboot by default and need additional fastboot and fastboot-testing configuration.

@mansona pinging you specifically since you might want to see this.

Resolves #2550

🙌

confirm, EmberData expects fastboot users have a more complete/realistic sandbox. We should get an SSR guide up somewhere soon.


Embedded swift crashes when trying to use ManagedBuffer

Description
The compiler crashes when using ManagedBuffer with an assertion Cannot specialize vtable method $ss13ManagedBufferC12_doNotCallMeAByxq_Gyt_tcfC
Reproduction
struct Foo {
  func thing() { print("doing a foo thing") }
}
struct Bar {
  var baz: [ManagedBuffer<Foo, UInt8>] = []
  func doThing() {
    guard baz.count > 0 else { return }
    baz[0].header.thing()
  }
}

Expected behavior
The compiler should not crash
Environment
Swift version 6.0-dev (LLVM 4ee06774aa7ace9, Swift 2944529a674a6e8)
Target: arm64-apple-macosx15.0
Additional information
No response

I think this was fixed via https://github.com/swiftlang/swift/pull/76658


[WIP] Global Refactoring

this PR closes
https://github.com/truskovskiyk/nima.pytorch/issues/22
https://github.com/truskovskiyk/nima.pytorch/issues/19
https://github.com/truskovskiyk/nima.pytorch/issues/14
https://github.com/truskovskiyk/nima.pytorch/issues/13
https://github.com/truskovskiyk/nima.pytorch/issues/12