Missing types and defines when using make

After installing all prerequisites: (and respective packages)

cups 2.4.7 (apt show cups returns 2.4.1op1-ubuntu 4.7, but I followed the install from the readme)
libppd 2.0.0
pappl 1.4.3
libcupsfilters 2.0.0

I get the following errors when making this rep (tried both the 1.0b2 and master variants on Ubuntu 22.04 (running in Windows):
  CC       legacy/printer_app-legacy-printer-app.o
  CC       pappl-retrofit/libpappl_retrofit_la-pappl-retrofit.lo
pappl-retrofit/pappl-retrofit.c: In function ‘prIdentify’:
pappl-retrofit/pappl-retrofit.c:574:3: error: unknown type name ‘cups_sc_status_t’; did you mean ‘ppd_status_t’?
  574 |   cups_sc_status_t sc_status;
      |   ^~~~~~~~~~~~~~~~
      |   ppd_status_t
pappl-retrofit/pappl-retrofit.c:627:22: warning: implicit declaration of function ‘cupsSideChannelDoRequest’ [-Wimplicit-function-declaration]
  627 |     if ((sc_status = cupsSideChannelDoRequest(CUPS_SC_CMD_SOFT_RESET, NULL,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
pappl-retrofit/pappl-retrofit.c:627:47: error: ‘CUPS_SC_CMD_SOFT_RESET’ undeclared (first use in this function)
  627 |     if ((sc_status = cupsSideChannelDoRequest(CUPS_SC_CMD_SOFT_RESET, NULL,
      |                                               ^~~~~~~~~~~~~~~~~~~~~~
pappl-retrofit/pappl-retrofit.c:627:47: note: each undeclared identifier is reported only once for each function it appears in
pappl-retrofit/pappl-retrofit.c:630:9: error: ‘CUPS_SC_STATUS_OK’ undeclared (first use in this function); did you mean ‘IPP_STATUS_OK’?
  630 |         CUPS_SC_STATUS_OK)
      |         ^~~~~~~~~~~~~~~~~
      |         IPP_STATUS_OK
pappl-retrofit/pappl-retrofit.c: In function ‘_prPollDeviceOptionDefaults’:
pappl-retrofit/pappl-retrofit.c:3238:34: error: ‘CUPS_SC_CMD_GET_BIDI’ undeclared (first use in this function)
 3238 |     if (cupsSideChannelDoRequest(CUPS_SC_CMD_GET_BIDI, buf, &datalen,
      |                                  ^~~~~~~~~~~~~~~~~~~~
pappl-retrofit/pappl-retrofit.c:3239:42: error: ‘CUPS_SC_STATUS_OK’ undeclared (first use in this function); did you mean ‘IPP_STATUS_OK’?
 3239 |                                  5.0) != CUPS_SC_STATUS_OK ||
      |                                          ^~~~~~~~~~~~~~~~~
      |                                          IPP_STATUS_OK
pappl-retrofit/pappl-retrofit.c:3240:19: error: ‘CUPS_SC_BIDI_SUPPORTED’ undeclared (first use in this function); did you mean ‘CUPS_COPIES_SUPPORTED’?
 3240 |         buf[0] != CUPS_SC_BIDI_SUPPORTED)
      |                   ^~~~~~~~~~~~~~~~~~~~~~
      |                   CUPS_COPIES_SUPPORTED
pappl-retrofit/pappl-retrofit.c:3300:37: error: ‘CUPS_SC_CMD_GET_CONNECTED’ undeclared (first use in this function)
 3300 |     while (cupsSideChannelDoRequest(CUPS_SC_CMD_GET_CONNECTED, buf, &datalen,
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
pappl-retrofit/pappl-retrofit.c:3439:34: error: ‘CUPS_SC_CMD_DRAIN_OUTPUT’ undeclared (first use in this function)
 3439 |         cupsSideChannelDoRequest(CUPS_SC_CMD_DRAIN_OUTPUT, buf, &datalen,

I suspect it is related to the CUPS version and most probably an issue on my side.
Later I tried upgrading cups to the 3.0b2 / master in libcups and upgrading the other packages to master, which resulted in errors like below:
pappl-retrofit/pappl-retrofit.c:1135:3: error: unknown type name ‘cups_page_header2_t’; did you mean ‘cups_page_header_
’?
 1135 |   cups_page_header2_t header,              // CUPS raster headers to investigate
      |   ^~~~~~~~~~~~~~~~~~~
      |   cups_page_header_t

pappl-retrofit/pappl-retrofit.c:1547:22: error: request for member ‘HWResolution’ in something not a structure or union
 1547 |         if (optheader.HWResolution[0] != 100 ||
      |                      ^
pappl-retrofit/pappl-retrofit.c:1548:22: error: request for member ‘HWResolution’ in something not a structure or union
 1548 |             optheader.HWResolution[1] != 100)
      |                      ^
pappl-retrofit/pappl-retrofit.c:1551:24: error: request for member ‘HWResolution’ in something not a structure or union
 1551 |           if (optheader.HWResolution[0] > res[j][0])
      |                        ^
pappl-retrofit/pappl-retrofit.c:1552:34: error: request for member ‘HWResolution’ in something not a structure or union
 1552 |             res[j][0] = optheader.HWResolution[0];
      |                                  ^
pappl-retrofit/pappl-retrofit.c:1553:24: error: request for member ‘HWResolution’ in something not a structure or union
 1553 |           if (optheader.HWResolution[1] > res[j][1])
      |                        ^
pappl-retrofit/pappl-retrofit.c:1554:34: error: request for member ‘HWResolution’ in something not a structure or union
 1554 |             res[j][1] = optheader.HWResolution[1];
      |                                  ^
pappl-retrofit/pappl-retrofit.c:1619:15: error: request for member ‘HWResolution’ in something not a structure or union
 1619 |     if (header.HWResolution[0] != 100 || header.HWResolution[1] != 100)
      |               ^
pappl-retrofit/pappl-retrofit.c:1619:48: error: request for member ‘HWResolution’ in something not a structure or union
 1619 |     if (header.HWResolution[0] != 100 || header.HWResolution[1] != 100)
      |                                                ^
pappl-retrofit/pappl-retrofit.c:1621:25: error: request for member ‘HWResolution’ in something not a structure or union
 1621 |       res[1][0] = header.HWResolution[0];
      |                         ^
pappl-retrofit/pappl-retrofit.c:1622:25: error: request for member ‘HWResolution’ in something not a structure or union
 1622 |       res[1][1] = header.HWResolution[1];
      |                         ^
pappl-retrofit/pappl-retrofit.c:1834:7: error: ‘PAPPL_PWG_RASTER_TYPE_BLACK_1’ undeclared (first use in this function); did you mean ‘PAPPL_RASTER_TYPE_BLACK_1’?
 1834 |       PAPPL_PWG_RASTER_TYPE_BLACK_1 | PAPPL_PWG_RASTER_TYPE_SGRAY_8 |
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       PAPPL_RASTER_TYPE_BLACK_1

Let me know if I need to provide other details
Thanks
-gijsn

The solution to the issue above is to checkout master and rebuild. The import to cups/sidechannel.h is missing in version 1.0b2.
Afterwards I got a lot of supposedly undefined cupsfilters. that was caused by libcupsfilters1 being installed in my Ubuntu system. Use dpkg -l | grep libcup as specified here and apt remove libcupsfilters1 if it exists


Commit d455a00 broke the repo

This commit  from two months ago added folders share-code-chunk and share-code-entry next to the folder share-code-widgets, that again contains these two folders (see screenshot below).
This results in the error messages
Name is duplicated. widget1 Name is duplicated. widget2 Name is duplicated. share-code-entry
and causes the compile process to stop. None of the custom widgets from the repo show up in ExB anymore.
Fix suggestion: Remove duplicate folders.

PR with fix here: https://github.com/Esri/arcgis-experience-builder-sdk-resources/pull/187


Open remote settings when in remote session

For #12862
Packaging locally to make sure this command actually works.

[ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[ ] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).
[ ] The wiki is updated with any design decisions/details.

This doesn't work, hence closing. openRemoteSettings opens the JSON and openUserSettings doesn't appear to do anything on a local session.


Add ability to disable automatic table creation

This adds in the ability to disable the automatic creation of the sessions table by providing a createtable: false to the options.
Used mainly if you manage your own migrations for the sessions table and wish to make sure that it's not created when using the module.

Awesome, good idea!

Glad to be of help 👍


Fix console error

Fix console error where 'window.componentHandler' is undefined.

@n8sabes thanks for the PR! These three PRs are fixing the same thing: #113, #114, #115. Is there a reason why do you want to hide this error? If you see this error it may indicate one of the following:

You removed Material Design Lite (MDL) .js reference from index.html but forgot to clean React components not to use that file
The MDL .js file cannot be loaded, e.g. there is an issue with CDN
The code is being executed before MDL .js file is being fully loaded

In either case, this error will force you to fix the issue. If you just hide it, you may never know that there is a bug in your app and it will take you more time to finally notice it and resolve.

While build RSB for a cordova, I was making a lot of changes and #113, #114, #115 should not have been submitted.


Throw exception when simple reference is targeting discriminated document

Closes #1124

:+1:

Question: is it not possible to catch this earlier (e.g. during class metadata loading), because we might not have all of the classes' metadata loaded yet? It definitely should be a mapping exception, but I realize we might not have a stage to do that. And if two discriminated based classes both referred to each other, one would logically have to be loaded first (so we couldn't validate both at load time).
Other than that, LGTM.

@jmikola unfortunately answer to your question is "yes". This was even my main concern that we'll throw MappingException too late, but there's no way to do that while loading metadata

Merged manually in https://github.com/doctrine/mongodb-odm/commit/ab600a72be81ab618c421212a1ddf5e9a2a06cbd


I was trying to create alpine3.9 based python 3.7 image but facing gpg key issue.

wget -O python.tar.xz https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tar.xz
Connecting to www.python.org (<IP_ADDRESS>:443)
python.tar.xz        100% |********************************| 16.4M  0:00:00 ETA

wget -O python.tar.xz.asc https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tar.xz.asc
Connecting to www.python.org (<IP_ADDRESS>:443)
python.tar.xz.asc    100% |********************************|   833  0:00:00 ETA

mktemp -d

export 'GNUPGHOME=/tmp/tmp.clblfH'

gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
gpg: keybox '/tmp/tmp.clblfH/pubring.kbx' created
gpg: keyserver receive failed: Network unreachable

https://github.com/docker-library/faq#openpgp--gnupg-keys-and-verification has some relevant information that might help you resolve this.
(Closing, since it does work for our official builds and our Travis test builds.)


New logo / icon

Hi, I am a graphic designer, I want to help others in graphic design.
After I reviewed your project, you have no logo on this project. Therefore I want to contribute to this project by creating a new logo / icon. what do you think?

@mansya I would love that, it would be greatly appreciated!

i have design logo for this project. what dou you think ? do you like it ?

hi sir. How ? can I continue to make pull requests about this logo? or let me know if there is something you want to change


Device Request - [Zigbee Temperature and Humidity sensor] - [_TZ3000_qaaysllp] / [TS0201]

Prerequisites:

Before requesting a device addition, please ensure there is not already a request for the device among the open issues.
Make sure your Homey is upgraded to firmware v5 or higher.
You need a physical example of the device.

Product Category
wsdcg
Device Information
Manufacturer: _TZ3000_qaaysllp
Device ID: TS0201
Product Name: Zigbee温湿度 NEO
Device ID: bf8a0952998f4f64a9e3nj
Product Category: wsdcg
Device Description: Temperature and Humidity sensor
Link to device Image (Aliexpress): https://nl.aliexpress.com/item/1005002434961203.html
[
  {
    "code": "temp_unit_convert",
    "value": "c"
  },
  {
    "code": "maxtemp_set",
    "value": 40
  },
  {
    "code": "minitemp_set",
    "value": 10
  },
  {
    "code": "maxhum_set",
    "value": 90
  },
  {
    "code": "minihum_set",
    "value": 20
  },
  {
    "code": "switch",
    "value": true
  }
]

Additional Comments:
I will submit some more devices i have, work in Tuya app, not in Tuya clud for Homey.
If you need more information please contact me.
Best Regards Hakob.

Note: Provide any other relevant information or requests related to the device. Link to where you bought the device can be of help

How to interview a device

Add the device as a generic Zigbee device in Homey
Navigate to https://developer.athom.com/tools/zigbee.
Interview the device, the button for this is to the right of the device in the list of Zigbee units.
Click the copy button/icon to capture the device information.
Paste the copied information above.

Note: To be able to add more devices to the Tuya Zigbee app, we rely on community members like you to provide interviews of the devices you want to be added. Thank you for your contribution!

Already supported by the Zigbee app.


InterMine report page - the complex is too tall

Search for EBI-9696567

It's too tall. Or rather, our display area is too short.

Not sure where to find this example - could you use the developer tools in a browser to check whether the SVG element extends beyond what we see of it. E.g. its in a div thats smaller than it or something like that.
But yes, could be a bug in the viewer

It's not an issue in the CP:
http://www.ebi.ac.uk/intact/complex/details/EBI-9696567

it might be something to do with the margin or padding on one of the
elements
On 15/04/16 13:18, Birgit wrote:

It's not an issue in the CP:
http://www.ebi.ac.uk/intact/complex/details/EBI-9696567
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/MICommunity/interaction-viewer/issues/90#issuecomment-210443027

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

@yo fixed this.


package.sh tar command on Mac adds extra files

Describe the bug
A clear and concise description of what the bug is.
Collections build.sh has a script package.sh which use tar command. In some cases, tar command on Mac adds extra file which operator does not like.
tar -tvzf on my linux machine:
$ tar -tvzf incubator.common.pipeline.default.tar.gz
drwxr-xr-x mtamboli/staff    0 2019-11-20 18:34 ./
-rw-r--r-- mtamboli/staff 1089 2019-11-20 18:34 ./build-push-deploy-pipeline.yaml
-rw-r--r-- mtamboli/staff  398 2019-11-20 18:34 ./build-pipeline.yaml
-rw-r--r-- mtamboli/staff 1606 2019-11-20 18:34 ./deploy-task.yaml
-rw-r--r-- mtamboli/staff  794 2019-11-20 18:34 ./build-push-pipeline.yaml
-rw-r--r-- mtamboli/staff 1616 2019-11-20 18:34 ./image-retag-push-task.yaml
-rw-r--r-- mtamboli/staff 1185 2019-11-20 18:34 ./manifest.yaml
-rw-r--r-- mtamboli/staff  384 2019-11-20 18:34 ./._test-task.yaml
-rw-r--r-- mtamboli/staff  573 2019-11-20 18:34 ./test-task.yaml
-rw-r--r-- mtamboli/staff 3217 2019-11-20 18:34 ./image-scan-task.yaml
-rw-r--r-- mtamboli/staff 5476 2019-11-20 18:34 ./build-task.yaml
-rw-r--r-- mtamboli/staff  227 2019-11-20 18:34 ./._test-build-push-deploy-pipeline.yaml
-rw-r--r-- mtamboli/staff 1261 2019-11-20 18:34 ./test-build-push-deploy-pipeline.yaml
-rw-r--r-- mtamboli/staff 5587 2019-11-20 18:34 ./build-push-task.yaml
-rw-r--r-- mtamboli/staff  654 2019-11-20 18:34 ./image-retag-push-pipeline.yaml

tar -tvzf on mac:
Scotts-MBP:monica scottmclements$ tar -tvzf incubator.common.pipeline.default.tar.gz
drwxr-xr-x  0 mtamboli staff       0 Nov 20 18:34 ./
-rw-r--r--  0 mtamboli staff    1089 Nov 20 18:34 ./build-push-deploy-pipeline.yaml
-rw-r--r--  0 mtamboli staff     398 Nov 20 18:34 ./build-pipeline.yaml
-rw-r--r--  0 mtamboli staff    1606 Nov 20 18:34 ./deploy-task.yaml
-rw-r--r--  0 mtamboli staff     794 Nov 20 18:34 ./build-push-pipeline.yaml
-rw-r--r--  0 mtamboli staff    1616 Nov 20 18:34 ./image-retag-push-task.yaml
-rw-r--r--  0 mtamboli staff    1185 Nov 20 18:34 ./manifest.yaml
-rw-r--r--  0 mtamboli staff     573 Nov 20 18:34 ./test-task.yaml
-rw-r--r--  0 mtamboli staff    3217 Nov 20 18:34 ./image-scan-task.yaml
-rw-r--r--  0 mtamboli staff    5476 Nov 20 18:34 ./build-task.yaml
-rw-r--r--  0 mtamboli staff    1261 Nov 20 18:34 ./test-build-push-deploy-pipeline.yaml
-rw-r--r--  0 mtamboli staff    5587 Nov 20 18:34 ./build-push-task.yaml
-rw-r--r--  0 mtamboli staff     654 Nov 20 18:34 ./image-retag-push-pipeline.yaml

So you can see that on the mac, the files are not displayed but they are still there.
Fix::
Update packags.sh file from collections to add

turn off special handling of ._* files in tar, etc.
                    COPYFILE_DISABLE=1; export COPYFILE_DISABLE
                     tar -cz -f $assets_dir/$versioned_archive -C $template_dir .

Reference: https://superuser.com/questions/259703/get-mac-tar-to-stop-putting-filenames-in-tar-archives
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Actual behaviour
What is the actual behaviour.
Environment Details (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

If applicable please specify:

CLI version:
Collection you are using:

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Will be fixed

@mtamboli Are you doing anything special to generate these files within the incubator/common/pipelines/default directory. I don't have these on my system and hence they don't get added to the tar.gz. I am not able to recreate this issue at present so can only add the solution that you provided and hope that resolved your issues, unless I find a way to recreate.

@groeges I am not really sure what access controls are causing this issue on Mac. You can try using one of the the zip files which has the custom tasks. Do you see any issue adding the commands to turn off this special processing in the scripts for Mac?

The change has been added to 0.3.1-rc.1 and 0.4.0-rc.1


Drop Python 2, Support Python 3

Title says it all. I'm planning to provide PR for this, which will start from 3.4 exactly.

I'm not too hot on this. As Python 3 is already supported, what would be the benefit?

Actually, now I'm thinking about this, it might not be a great idea. While I was thinking about it, Python 2 EOL just came to my mind.
The only drawback I can think of is that further contribution to the codebase would require a significant care about compability between versions, which, actually, can be dealt via using tox and build matrix of Travis.
You can, if you wish to, close the issue.

Where did you get these stats?
Does it show which time period 2.7 downloads happened?
On Sun, Oct 28, 2018, 21:21 Hugo<EMAIL_ADDRESS>wrote:

If not now, it may be worth planning when to drop Python 2.
https://python3statement.org lists projects that have pledged to drop
Python 2 on or before its EOL.
By the way, here's the pip installs for pysubs2 from PyPI for last month,
showing quite low numbers for Python 2:
category percent downloads
3.6 40.54% 105
3.5 23.55% 61
null 18.15% 47
2.7 8.88% 23
3.7 8.88% 23
Total 259
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tkarabela/pysubs2/issues/22#issuecomment-433728842,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACSbbNFh94olARKS90LUMckH8I2MsLfAks5upfWRgaJpZM4X9oqb
.

I used this tool, which is getting the data from the PyPI stats stored in a Google BigQuery database:
https://github.com/hugovk/pypistats
Specifically, pypistats python_minor --last-month pysubs2, and those stats are for 1-30 September 2018.

Stats and tool are great. :+1:
Statistics shows a small number of users in latest 30 days, as @hugovk provided, consists of 8.88% of users. This is a small number, still a bit significant though.
Again, this is the owner's, @tkarabela's decision to make. The important things to consider are:
i. Will this project be developed further?
ii. Or is it good enough in current state?
If the case is (i), then it is highly best to migrate to Python 3 since the newer versions of Python became almost incompatible with 2.7. If we do not migrate, then we will have to deal with compatibility between the latest version of Python we support and 2.7.
If the case is (ii), then we don't have to migrate. Any bug issues can be patched any time by owner, maintainers and contributors.

I have now seen the light :) And as of 11d8264be99ff7a1e7b353f44db02c39888b36ae, the library has been migrated to Python 3.7. I did general code cleanup and added type hints, which should make coding a better experience. This will be part of the next release; older Pythons are still supported by current version 0.2.4.


Is there a way to use a downloaded model?

I want to deploy it to AWS Lambda, and it works so far, but it downloads the model each time, which takes a lot of time.

Yes, this should be possible.

Clone the models repository from here
Create a new class instance with the path to the cloned repository
model = PunctuationModel(model = "/path/to/repo/folder")

Thanks Oliver! Actually did that and it works.
The only downside I can't get it running on Lamda. The local model doesn't get loaded somehow.

Feel free to post a solution if you solve this issue.


refactor: upgrade chalk

The new version slightly changed configuration and dropped old node
support.
https://github.com/chalk/chalk/releases/tag/v3.0.0 https://github.com/chalk/chalk/releases/tag/v4.0.0

Looks good, thanks!

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Roll Engine from f93dc3d7860f to c724fa7283e2 (1 revision)

https://github.com/flutter/engine/compare/f93dc3d7860f...c724fa7283e2
2022-02-27<EMAIL_ADDRESS>Roll Dart SDK from c3e3126a598b to ed2ed541d240 (1 revision) (flutter/engine#31702)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Remove Twitter CTA

We should deprecate the Twitter CTA, its component and any related assets.

[ ] Remove component
[ ] Remove styles
[ ] Remove tests
[ ] Remove string literals
[ ] Update usage in pages and components
[ ] Check specs for failures

[ ] Remove component
[ ] Remove styles
[ ] Remove tests
[ ] Remove string literals
[ ] Update usage in pages and components
[ ] Check specs for failures


[Deploy] Google Keep

Service
Google Keep
Link to your repository
https://github.com/SiloCityLabs/recipe-franz-googlekeep

Deployed, thanks for your contribution.


RDKTV-20140: disable resident app on factory mode detection

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


"Chrb 関数 $" needs to be replaced with "ChrB$"

https://docs.microsoft.com/ja-jp/office/vba/language/concepts/getting-started/returning-strings-from-functions

related issue: #842

Working on a fix

Tracking: Bug 3272654

@hyoshioka0128 Article has been HumanTranslated and published live. The issue is fixed


Compilation fails because libelf.so.1 is named wrong

I try to build libnvidia-container v1.4.0 and now I found out that it fails because libelf.so.1 is named wrong, can someone help me out why this happens? I'm building this on a dedicated Debian machine without Docker installed but have all the necessary dependencies installed.
Here is a is the error from the compilation:
...
chmod 444 /root/libnvidia-container/libnvidia-container/deps/usr/local/lib/libelf_pic.a
install -D -c -o 0 -g 0 -m 444  libelf.so.1 /root/libnvidia-container/libnvidia-container/deps/usr/local/lib
install: cannot stat 'libelf.so.1': No such file or directory
*** Error code 1

Stop.
bmake[2]: stopped in /root/libnvidia-container/libnvidia-container/deps/src/elftoolchain-0.7.1/libelf
make[1]: *** [/root/libnvidia-container/libnvidia-container/mk/elftoolchain.mk:56: install] Error 1
make[1]: Leaving directory '/root/libnvidia-container/libnvidia-container'
make: *** [Makefile:234: deps] Error 2

When I look in the directory deps/src/elftoolchain-0.7.1/libelf/ I see a file named name libelf.so.1 if I rename that to libelf.so.1 and ran the make install command again everything works just fine and libnvidia-container also works fine.
Can somebody help me out with this?

@klueska can it be the case because I upgraded to Debian-Bullseye that something isn't compatible with libelf0.7.1 and Bullseye?


DB Full-Text

When you start the application for the first time, calling the "Search> DB Full-Text" function takes extremely long time. All DB connections of the last search are reopend.
Suggestion:
Save the last search and open the search function with default values or blank. Selection of the last search in a dropdown?

Agreed. Full-text search UI has to be improved.

In 4.2.5 I'll just disable tree state save (as it can be really huge).
Need to make some better solution in 4.2.6


train problem

after I successfully installed the DeepMind Lab package, dmhouse and Deep RL PyTorch, then I ran the command python train.py dmhouse
however I found an error and I don't know how to handle it.
Traceback (most recent call last):
  File "train.py", line 41, in <module>
    import trainer as _  # noqa:F401
  File "/home/rokhmat/tesis/robot-visual-navigation/python/trainer.py", line 6, in <module>
    from deep_rl.common.env import RewardCollector, TransposeImage
  File "/home/rokhmat/tesis/robot-visual-navigation/deep-rl-pytorch/deep_rl/common/env.py", line 170, in <module>
    class VecTransposeImage(gym.vector.vector_env.VectorEnvWrapper):
AttributeError: module 'gym.vector.vector_env' has no attribute 'VectorEnvWrapper'

in another PC and virtual env i tried to install an older version of gym and run the command as above i.e. python train.py dmhouse, but i got a different error as below
(tesis) rokhmat@b401:~/tesis/robot-visual-navigation/python$ python train.py dmhouse
Registering trainer turtlebot
Registering trainer turtlebot-end
Registering trainer turtlebot-noprior
Registering trainer turtlebot-unreal
Registering trainer turtlebot-unreal-noprior
Registering trainer turtlebot-a2c
Registering trainer turtlebot-a2c-noprior
Registering trainer dmhouse-a2c
Registering trainer dmhouse-unreal
Registering trainer dmhouse-ppo
Registering trainer dmhouse-ppo-a2cvn
Registering trainer turtlebot-ppo-a2cvn
Registering trainer dmhouse-ppo-unreal
Registering trainer dmhouse-dqn
Registering agent dmhouse-dqn
Registering trainer dmhouse
Registering agent turtlebot-noprior
Registering agent turtlebot-end
Registering agent turtlebot
Registering agent dmhouse
Registering agent dmhouse-a2c
Registering agent dmhouse-ppo
Registering agent dmhouse-unreal
Registering agent turtlebot-a2c
Registering agent turtlebot-unreal
Registering agent turtlebot-a2c-noprior
Registering agent turtlebot-unreal-noprior
starting dmhouse
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
setting iterationsWithSameMap to 50
================================================================
Total params: 4,892,691
Trainable params: 4,892,691
Non-trainable params: 0
----------------------------------------------------------------
Input size (MB): 0.07
Params size (MB): 18.66
================================================================
Using CPU only
ERROR: Received the following error from Worker-2: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-2.
ERROR: Received the following error from Worker-1: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-1.
ERROR: Received the following error from Worker-0: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-0.
ERROR: Received the following error from Worker-5: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-5.
ERROR: Received the following error from Worker-9: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-9.
ERROR: Received the following error from Worker-12: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-12.
ERROR: Received the following error from Worker-13: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-13.
ERROR: Received the following error from Worker-10: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-10.
ERROR: Received the following error from Worker-4: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-4.
ERROR: Received the following error from Worker-11: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-11.
ERROR: Received the following error from Worker-14: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-14.
ERROR: Received the following error from Worker-3: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-3.
ERROR: Received the following error from Worker-15: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-15.
ERROR: Received the following error from Worker-7: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-7.
ERROR: Received the following error from Worker-6: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-6.
ERROR: Received the following error from Worker-8: ValueError: could not broadcast input array from shape (21168,) into shape (28224,)
ERROR: Shutting down Worker-8.
ERROR: Raising the last exception back to the main process.
Traceback (most recent call last):
  File "train.py", line 49, in <module>
    trainer.run()
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/core.py", line 219, in run
    return self.trainer.run(self.process)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/common/train_wrappers.py", line 47, in run
    ret = super().run(*args, **kwargs)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/core.py", line 207, in run
    return self.trainer.run(process, **kwargs)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/core.py", line 207, in run
    return self.trainer.run(process, **kwargs)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/common/train_wrappers.py", line 126, in run
    return super().run(_late_process, **kwargs)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/core.py", line 207, in run
    return self.trainer.run(process, **kwargs)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/core.py", line 239, in run
    super().run(process, **kwargs)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/core.py", line 180, in run
    self.model = self._initialize(**self._model_kwargs)
  File "/home/rokhmat/tesis/deep-rl-pytorch/deep_rl/actor_critic/unreal/unreal.py", line 260, in _initialize
    self.rollouts = RolloutStorage(self.env.reset(), self._initial_states(self.num_processes))
  File "/home/rokhmat/anaconda3/envs/tesis/lib/python3.8/site-packages/gym/vector/vector_env.py", line 80, in reset
    return self.reset_wait(seed=seed, return_info=return_info, options=options)
  File "/home/rokhmat/anaconda3/envs/tesis/lib/python3.8/site-packages/gym/vector/async_vector_env.py", line 308, in reset_wait
    self._raise_if_errors(successes)
  File "/home/rokhmat/anaconda3/envs/tesis/lib/python3.8/site-packages/gym/vector/async_vector_env.py", line 627, in _raise_if_errors
    raise exctype(value)
ValueError: could not broadcast input array from shape (21168,) into shape (28224,)

Is there any suggestion that can solve the error I'm having?
Thanks for your attention. I’m looking forward to your reply.

Can you please:

pull the new version of the repo
start from a fresh venv
install all dependencies by running "pip install -r requirements.txt" (do not install DeepMind Lab!)
download checkpoints and try if evaluation works correctly
try running the training

The instructions are in the new README. If you run into issues with any step, please post the error here.

I have followed the steps you suggested and did the one in the new README.
I did this experiment using ubuntu 20.04 and for the virtual environment I used anaconda.
I have successfully run the evaluation command on DMHouse simulator python evaluate_dmhouse.py dmhouse --num-episodes 100 as below
(robotvn) rokhmat@b401:~/tesis/robot-visual-navigation/python$ python evaluate_dmhouse.py dmhouse --num-episodes 100
/home/rokhmat/anaconda3/envs/robotvn/lib/python3.8/site-packages/deep_rl/common/util.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import OrderedDict, Callable
Registering trainer turtlebot
Registering trainer turtlebot-noprior
Registering trainer turtlebot-unreal
Registering trainer turtlebot-unreal-noprior
Registering trainer turtlebot-a2c
Registering trainer turtlebot-a2c-noprior
Registering trainer dmhouse-a2c
Registering trainer dmhouse-unreal
Registering trainer dmhouse-ppo
Registering trainer dmhouse-ppo-a2cvn
Registering trainer turtlebot-ppo-a2cvn
Registering trainer dmhouse-ppo-unreal
Registering trainer dmhouse-dqn
Registering agent dmhouse-dqn
Registering trainer dmhouse
Registering agent turtlebot-noprior
Registering agent turtlebot
Registering agent dmhouse
Registering agent dmhouse-a2c
Registering agent dmhouse-ppo
Registering agent dmhouse-unreal
Registering agent turtlebot-a2c
Registering agent turtlebot-unreal
Registering agent turtlebot-a2c-noprior
Registering agent turtlebot-unreal-noprior
Registering agent random
Registering agent random-end
Registering agent turtleroom-constant-stochastic
Registering agent shortest-path
/home/rokhmat/anaconda3/envs/robotvn/lib/python3.8/site-packages/dmhouse/__init__.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
 |████████████████████████████████████████████████████████████████████████████████████████████████████| 100.0%
success rate: 10.0000%
avg. episode steps: 516.7000
avg. distance travelled: 104.4753

and successfully run the evaluation command on the real-world dataset python evaluate_turtlebot.py turtlebot --num-episodes 100 as below
(robotvn) rokhmat@b401:~/tesis/robot-visual-navigation/python$ python evaluate_turtlebot.py turtlebot --num-episodes 100
/home/rokhmat/anaconda3/envs/robotvn/lib/python3.8/site-packages/deep_rl/common/util.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import OrderedDict, Callable
Registering trainer turtlebot
Registering trainer turtlebot-noprior
Registering trainer turtlebot-unreal
Registering trainer turtlebot-unreal-noprior
Registering trainer turtlebot-a2c
Registering trainer turtlebot-a2c-noprior
Registering trainer dmhouse-a2c
Registering trainer dmhouse-unreal
Registering trainer dmhouse-ppo
Registering trainer dmhouse-ppo-a2cvn
Registering trainer turtlebot-ppo-a2cvn
Registering trainer dmhouse-ppo-unreal
Registering trainer dmhouse-dqn
Registering agent dmhouse-dqn
Registering trainer dmhouse
Registering agent turtlebot-noprior
Registering agent turtlebot
Registering agent dmhouse
Registering agent dmhouse-a2c
Registering agent dmhouse-ppo
Registering agent dmhouse-unreal
Registering agent turtlebot-a2c
Registering agent turtlebot-unreal
Registering agent turtlebot-a2c-noprior
Registering agent turtlebot-unreal-noprior
Registering agent random
Registering agent random-end
Registering agent turtleroom-constant-stochastic
Registering agent shortest-path
 |████████████████████████████████████████████████████████████████████████████████████████████████████| 100.0%
success rate: 98.0000%
avg. episode steps: 12.6327
avg. goal distance: 0.1366

but I get an error when running the playground notebook provided in the new repository as shown in the following image, whereas I have successfully run evaluate_dmhouse.py and evaluate_turtlebot.py

for the training section I don't get an error, but when the python train.py dmhouse command is executed, the results obtained stop until Using CPU only.

Has it entered the training process?

Turtlebot results look plausible. DMHouse result not. You should have 100% success rate. Did you really downloaded the pre-trained dmhouse models?
As for why the notebook did not work locally for you: you did not add the python directory to the PYTHONPATH. Try running it in Google Colab.
Finally, the training started, yes. I would recommend running it on GPU though. The training would be much faster there. It will take a longer time for the first logs to appear because the replay buffer has to be filled first and because it is logging every 10 episodes and the first episodes are much longer.
Training logs should look like this:

The following plot shows the episode length during training:

As you can see, first ones are longer.

yes i have downloaded the pre-trained dmhouse model, the first time i run the command python evaluate_dmhouse.py dmhouse --num-episodes 100 result i receive 100% success rate as following image

but i don't know why on second time i get success rate 10 % and for the third time I got a success rate of 22%. maybe i would try to re-download the pre-trained dmhouse model.
Thank you very much for sending sample images from successful experiments.
i have tried to experiment using GPU by changing 'cpu' with 'cuda' on line 493 and 496 on trainer.py.
https://github.com/jkulhanek/robot-visual-navigation/blob/a8c8a73cc349fc66eddc802263d7f47633afe880/python/trainer.py#L493-L496
then i run python train.py dmhouse --allow-gpu and produce output in terminal like below
(robotvn) rokhmat@b401:~/tesis/robot-visual-navigation/python$ python train.py dmhouse --allow-gpu
/home/rokhmat/anaconda3/envs/robotvn/lib/python3.8/site-packages/deep_rl/common/util.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import OrderedDict, Callable
Registering trainer turtlebot
Registering trainer turtlebot-noprior
Registering trainer turtlebot-unreal
Registering trainer turtlebot-unreal-noprior
Registering trainer turtlebot-a2c
Registering trainer turtlebot-a2c-noprior
Registering trainer dmhouse-a2c
Registering trainer dmhouse-unreal
Registering trainer dmhouse-ppo
Registering trainer dmhouse-ppo-a2cvn
Registering trainer turtlebot-ppo-a2cvn
Registering trainer dmhouse-ppo-unreal
Registering trainer dmhouse-dqn
Registering agent dmhouse-dqn
Registering trainer dmhouse
Registering agent turtlebot-noprior
Registering agent turtlebot
Registering agent dmhouse
Registering agent dmhouse-a2c
Registering agent dmhouse-ppo
Registering agent dmhouse-unreal
Registering agent turtlebot-a2c
Registering agent turtlebot-unreal
Registering agent turtlebot-a2c-noprior
Registering agent turtlebot-unreal-noprior
starting dmhouse
/home/rokhmat/anaconda3/envs/robotvn/lib/python3.8/site-packages/dmhouse/__init__.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
================================================================
Total params: 4,879,379
Trainable params: 4,879,379
Non-trainable params: 0
----------------------------------------------------------------
Input size (MB): 0.07
Params size (MB): 18.61
================================================================
Using single GPU

did i do it right? and if it's true I just have to wait for the training process to get results like in the example you gave?

Hmm, I wonder why you get a lower success rate on consecutive runs. Perhaps the checkpoint got rewritten somewhere?
You are correct with the training, just wait for the results - it shouldn't take that long for the first logs to appear.

Also, for GPU training, you do not need to change the code. The line you changed is only for inference and by changing it you broke it (at the time you load the model it is on CPU).

I tried running evaluation multiple times and I get similar results each time.

after i re-download the trained dmhouse model, then run evaluation on dmhouse i get the same result over and over with 100% success rate. I guess the problem is because after I successfully run evaluation with 100% success rate, I deleted the __pycache__ folder.
I have also run the playground notebook successfully on Google Colab.
thanks for the answer I will try to do the training process using the GPU.
I'm curious, after the training process is complete, can the video be shown like on a playground notebook?

You should be able to render the video even without the training - I published pre-trained models.

I will create a new issue related to rendering the video, because I'm still confused about how to use it.
related to GPU usage, I saw on wandb.ai monitoring, GPU count is 1, can it use more than 1 core/count?

Does the training work for you? Can I close this issue?

Yes, the training has worked, I will ask another question on another issue.
Thank you very much for your help.


Update integration tests for anoncreds-rs

Final update from the anoncreds-rs branch, brings across some integration tests, and also includes a bit of cleanup.

@ianco — failed test. Sunspots? Should we just run it again?

I'll take a look

Yah solar flares ...  I've restarted the tests.
The error was:
#3/4 Create a new schema/cred def on the ledger
INFO:aiohttp.access:<IP_ADDRESS> [05/Dec/2023:19:18:41 +0000] "POST /webhooks/topic/connections/ HTTP/1.1" 200 149 "-" "Python/3.9 aiohttp/3.9.1"
7hFaber.agent | 2023-12-05 19:18:41,997 aries_cloudagent.ledger.base WARNING Schema already exists on ledger. Returning details.
7hFaber.agent | 2023-12-05 19:18:44,109 aries_cloudagent.core.dispatcher ERROR Handler error: schemas_post
7hFaber.agent | Traceback (most recent call last):
7hFaber.agent |   File "/home/aries/aries_cloudagent/ledger/indy_vdr.py", line 372, in _submit
7hFaber.agent |     request_result = await self.pool.handle.submit_request(request)
7hFaber.agent |   File "/home/aries/.local/lib/python3.9/site-packages/indy_vdr/pool.py", line 116, in submit_request
7hFaber.agent |     result = await fut
7hFaber.agent |   File "/usr/local/lib/python3.9/asyncio/futures.py", line 284, in __await__
7hFaber.agent |     yield self  # This tells Task to wait for completion.
7hFaber.agent |   File "/usr/local/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
7hFaber.agent |     future.result()
7hFaber.agent |   File "/usr/local/lib/python3.9/asyncio/futures.py", line 201, in result
7hFaber.agent |     raise self._exception
7hFaber.agent | indy_vdr.error.VdrError: Request failed: client request invalid: UnauthorizedClientRequest('Kh9jVJcF38XNdJRxsDtWSS',<PHONE_NUMBER>997302404, 'The action is forbidden')

... which doesn't make sense, as the DID was properly registered:
http://test.bcovrin.vonx.io:3707/tx/BCOVRIN_TEST/domain/40230
Maybe a ledger timing issue?

Awesome!!


peer modifications to support new packer-based dev-env

This patch addresses #741 and works in conjunction with https://github.com/openblockchain/obc-dev-env/pull/48 to unify the development and runtime environments behind a singular definition based on ubuntu:trusty.  There are two primary benefits to this patch to consider:

We now are using prebuilt and/or pre-installed binaries for everything such that it is now inexpensive to create a new environment (e.g. vagrant up + BuildImage_Peer).  In my testing, building a new docker image takes about 1 minute, down from over 15 previously.

We have a system in place (via packer) where one definition is used to build both our development environment and the docker environments, which should encourage a more stable environment going forward.

I have tested this patch in conjunction with https://github.com/openblockchain/obc-dev-env/pull/48 and it passes all unit tests.  I also ran behave, and everything passed with one exception:
Failing scenarios:
  peer_basic.feature:218  chaincode example02 with 4 peers and 1 obcca, issue #680 (State transfer) -- @1.3 Consensus Options

0 features passed, 1 failed, 0 skipped
16 scenarios passed, 1 failed, 1 skipped
310 steps passed, 1 failed, 19 skipped, 0 undefined

It is my understanding that this failure is an outstanding issue not related to this patch.
Signed-off-by: Gregory Haskins<EMAIL_ADDRESS>

@ghaskins could you add a doc on how to build and upload pieces that the script needs. I want to make sure there's instruction for someone to be able to do this.
@jeffgarratt any comments?

@binhn I added some doc to the baseimage/README.md included in the patch:
https://github.com/ghaskins/obc-dev-env/blob/packer-baseimage/baseimage/README.md
Let me know if this isn't what you had in mind.

@ghaskins I am looking for info on how the pieces (eg rocksdb) may be built and uploaded as shown in the diagram. It isn't clear to me.  Thanks.

@binhn ah, ok.  I will add some more documentation for that process then

@binhn @srderson it might also be the case where we would be wise to keep the packaging in a repo somewhere (e.g. openblockchain/third-party/rocksdb), as I did have to develop the .deb packaging metadata.  It is tracked (to a degree) within the launchpad environment, but its not super obvious (especially for someone coming up to speed) to figure that out...TBD.

Another idea is we could just put any third party stuff right in dev-env (e.g. openblockchain/obc-dev-env/third-party/... )

@ghaskins +1  openblockchain/obc-dev-env/third-party/...

@binhn https://github.com/ghaskins/obc-dev-env/blob/packer-baseimage/baseimage/PPA.md

Closing for now to re-work patch without utilizing PPA


Scenario/Scenario Outline synonym for C / ObjC / Perl / Python

I've just merged #353 to master. I haven't updated the following languages, and could use some help with that.

[ ] c
[ ] objective-c
[ ] perl
[ ] python

It's realtively easy to do. Just look at some of the last commits in #353.
Please create a branch named gherkin-353-{language} and a separate PR for each. Also, update the top of gherkin/Makefile to re-include it in the monorepo build. I've disabled the build of the languages above until they are made uptodate.
/cc @cucumber/gherkin

Obsolete in light of #425


Add an option to skip secondary authentication.

I have a lot of devices and that it's impossible to memorize all the usernames and passwords(or SSH key).
So I made an option to force login. I hope you accept it.

This may be dangerous.
Anyone who knows your device ID can log in to your device.

In my humble opinion, the security problem can be taken when you set a token that complex enough and also the device ID can be complex too.
Even the best software can't be safe if the user is careless. So let the user make this decision maybe it's a good solution.


Library download stats broken

Basically, the first 10-20 show up but the rest can't be found. I'll update this more.

This is due to pypistats.org setting a rate-limit. See #162 for more info.
#205 will address this issue when merged.


Add preprocessing training data

Resolves #37
This probably should should probably be moved to training after #341 is merged.
This also currently relies on us passing each config option. I'm hoping we should be able to update this (see MACE PR) to allow the config to be passed straight through, as we do for training.

(Rebased and updated use of none_to_dict in preprocess as well)


WASM is greater then 512 Kb and getting error in deploy unexpected end of JSON input last

When I reach 512 Kb  of my WASM and 68 Kb of ABI of my contract I cannot deploy and i receive this error: unexpected end of JSON input last.
If i delete some lines everything is works?
I'm tested on these endpoints
https://wax-test.eosdac.io
https://testnet.waxsweden.org
https://testnet.wax.pink.gg
https://testnet.wax.eosdetroit.io

Connect with our  team representatives to help resolve your issue and troubleshooting .
Connect here: direct.lc.chat/14158209/
Hours of Operation
24/7 (Ready to fix issues)


Declaring a global array extension leads to compiler error

I want to write that array-extension in TypeScript:
if (!Array.prototype.remove) {
    Array.prototype.remove = function <T>(elem: T): T[] {
        return this.filter(e => e !== elem);
    }
}

so I need to declare an interface for it. There's nothing in that file, just:
declare global {
    interface Array<T> {
        remove(elem: T): Array<T>;
    }
}

but the compiler cries:

TS2669: Augumentations for the global scope can only be directly nested in external modules or ambient module declarations

funny is, when I add this line before:
import * as $ from "jquery";

(what has nothing to do with the Array or something - jQuery is not used here), it's okay for the compiler.
What's going on here?

What's going on here?

https://www.typescriptlang.org/docs/handbook/modules.html
In TypeScript, just as in ECMAScript 2015, any file containing a top-level import or export is considered a module. Conversely, a file without any top-level import or export declarations is treated as a script whose contents are available in the global scope (and therefore to modules as well).

After adding the import, your file gets treated as a module - and therefore the global scope augmentation is okay. If you leave out the declare global, you automatically augment the global scope:
// file: array.d.ts
interface Array<T> {
	remove(elem: T): Array<T>;
}

// another file:
[].remove(undefined); // works!

@AlCalzone (nice name!)
...damn... it works. thank you!! should've read the handbook better.


Safari: <swal2 input: 'file'> doesn't work if <swal2 input: 'text'> was shown before

Bug can be reproduced on https://limonte.github.io/sweetalert2/ in Safari.
Steps:

Launch modal with input: 'text'
Close it
Launch modal with input: 'file'

Input inside the modal won't have type="file"

Related SO question: http://stackoverflow.com/q/38466760/1331425

@limonte - I'd probably remove from dom, update, and then reinsert.

@samturrell yeah, inserting a new input will fix this issue for sure.


Add support for Acona Stromat

I have a "Stromat" wallbox from Acona (see Acona website). They offer a custom hardware solution ("Solarkopplung") to connect it to a PV system, but I'd rather use an open source solution like evcc. The wallbox' web interface is very basic and the Solarkupplung suggests that it should also offer an API with all the required features to manage the charging process.
If anyone would be interested in writing the integration for this kind of wallbox, I'd be glad to assist in any way I can.

Is there any documentation? Does the box support OCPP?

I haven't found any documentation on the official website, OCPP is not mentioned in the marketing PDFs. I'll write the manufacturer and ask about it.

Closing until docs available.


Decryption of password protected MacOS zip-file fails

Hi Alex,
I have a zip file (attached) that is password protected with "12345". I am unable to open the file, here is my code
for _, f := range r.File {
	if recipient.ZipPassword != "" {
		f.SetPassword(recipient.ZipPassword)
	} // verified that this password has been set
	fmt.Printf("Opening %s:\n", f.Name)
	rc, err := f.Open()
	if err != nil {
		log.Error(err)
		// getting the error here
		continue
	}
	....

The error I am getting is "zip: decryption error" and it originates from crypto.go line 282 (salt key==0) and this results from a unset File.aesStrength because the program is not able to determine the aesStrength because it does not jump in the switch/case line 306 of reader.go.
Maybe Apple does not follow the WinZip32 standards, could you please have a look at the file and share your ideas? I find very little info (if any) about that issue.
Thanks a lot
Sven
encrypted.zip

@slot It seems that your file is encrypted using Zip Standard Encryption (which isn't actually secure), and not AES.
You can check my fork: https://github.com/yeka/zip
Unless you had no choice, I would suggest to use AES encryption instead.


We should provide an action that can be used to go from  to salesforce ID for that object

Please use SOQL Query Action for that

This action is possible through the SOQL Query Action but there is an ask from customers for this functionality to be exposed in a way that does not require learning the SOQL language.
One way this functionality could work is that:

A customer is presented with a dropdown to select an object type.
Once a customer selects an object type, the customer is presented with a dropdown to select a unique field/property on the object.  (Potentially uniqueness constraints may also exist on combinations of fields/properties.)
Once a customer selects a field/property, they are presented an input (or inputs) to enter value(s) to lookup.
When executed, the component fetches the single (or potentially non-existant) object with the provided value.

Questions:

Why limiting this action to a lookup based only on unique fields?
Why limiting this action to do a lookup on the strong equality, how about substrings (e.g. name like '%foo%')?
What if we need to lookup based on parent object values (e.g. Contact with that particular ID and belonging to Account with name Acme)

Why limiting this action to a lookup based only on unique fields?

What would you expect to happen if this action matched more than one value?  Emit both?  Throw an exception?  Either may be useful in some scenarios.  Can you give me an example of such a scenario where one of the two behaviors would be useful?

Why limiting this action to do a lookup on the strong equality, how about substrings (e.g. name like '%foo%')?

If we assume that we are in a situation where we want to match exactly one record, how could we assure that we only produce one record?  For situations where multiple records are matched, see the questions on the above point?

What if we need to lookup based on parent object values (e.g. Contact with that particular ID and belonging to Account with name Acme)

I don't know.  Does salesforce allow you to create uniqueness constraints than span objects?

I send you guys an email regarding "Referencing Objects by IDs" in Salesforce

CDoD
Development:

[ ] Code is written and formatted in accordance with the Styling guide.
[ ] Component logs does not contain any sensitive data (credentials, input/output requests, Environment variables)
[ ] Code is covered with unit tests.
[ ] Triggers/actions comply with OIH patterns.
[ ] Documentation (README.md file in the Github) is 100% ready.
[ ] Component code is covered with integration tests.
[ ] Component code is reviewed and fixed, if needed.

QA:

[ ] Test cases for the component are ready at the TestRail.
[ ] Functional testing is finished.
[ ] Regression testing is finished (optional).
[ ] All the development branches are reviewed and merged into master
[ ] Component is deployed to the production stage (app.elastic.io).

Smoke test is finished there.
Component has a proper access level

[ ] Release notes are done. (+ changelogs in GH repo)
[ ] Component Roadmap is updated.


Add streaming UTF8 validator

Introduces a type that can perform streaming validation of UTF-8 byte sequences. This is intended to be a drop-in replacement for existing streaming validators such as the one that exists at https://github.com/dotnet/corefx/blob/5617d3996c8cb1c3d3332f6c03dd5f3bf785623f/src/System.Net.WebSockets/src/System/Net/WebSockets/ManagedWebSocket.cs#L1326. This type also demonstrates how some of the primitives (such as inspecting the first sequence or getting the index of the first invalid sequence) hanging off of Utf8Utility can be used.
The type is currently a mutable struct, 4 bytes in length. This should provide respectable performance on all platforms and avoids allocations. Alternative designs can be considered if it's too difficult to consume this type.

This is a different model than our other streaming APIs (i.e. it is a stateful multable struct). Why do we want two different models for APis operating on buffers? Why not stick to the current model, which allows for using Pipe-like routines, and integrates well with SpanWriter, of example?

@KrzysztofCwalina this doesn't produce any output other than true / false since it's a validation routine, not a conversion routine. I didn't see any existing API pattern that seemed applicable. Did I miss something?

this doesn't produce any output other than true / false
Yeah, I know they dont produce any output, but still, today we are telling people our streaming APIs work as follows:

The operations are stateless
You keep calling them to do work, while stitching some buffers using stacalloc spans
This introduces a new pattern and I am not sure there is a storn reason to do it.

Also, if we chose to go with Utf8CodeUnit, then I would imagine Validate would be a transformation from Span to Span

I've been giving this some thought, and I still think we should march forward with these APIs as proposed. Yes, this is a domain-specific stateful validation API, but all of the other methods on Utf8Utility are also domain-specific and don't have easily generalizable analogs. I see the System.Text.Primitives project as being the One True API Surface(tm) for all UTF-8 conversion, parsing, validation, and inspection routines. My ultimate goal is to get the rest of the framework (including the WebSocket type mentioned earlier) to remove their custom UTF-8 logic and to instead use the appropriate API from this set. By keeping all of the UTF-8 related logic consolidated to a single project, we have a single place where we can make performance improvements, and we have a single place where we can perform security review, signoff, and patching.
Nothing here prevents us from in the future including a stateless validation / conversion API that follows a prescribed generalized pattern. Currently we have no consumers of such an API, but we do have potential consumers of a stateful validation API like the one being proposed here.

I think it's fine to merge it, once/if we have a representation of a validated UTF8, we can adjust.


Prompts not iterating using function.py

Hey,
I have been exploring some generator function stuff and I noticed that for following piece of code, the prompts being sent do not change. For example, in this I am using lmrc probes, but everytime the payloads being sent is the same one. No other issue observed. Do I need to maybe change how I am invoking the my_module#my_func? Thanks for your help.
my_module file:
import requests
def my_func(prompt:str, **kwargs)->str:
     print("\nPROMPT: ",prompt)
     form_data = {"query":prompt,"uid":"<Redacted>"}
     headers = {"Cookie": "session=session"}
     response = requests.post('https://<URI>/chat', json=form_data, headers=headers)
     print("\nRESPONSE: ",response.text)
     return response.text

invoking file:
import garak
import garak.cli
import my_module

garak.cli.main("--model_type function --model_name my_module#my_func --probes lmrc".split())

Thanks for this, will take a look

Hey, I think there was some misunderstanding from our end we figured it out. Closing the issue, sorry and thanks for help!


feat(qwik): Experimental support for synchronous QRL sync$().

It is often desirable to have call API on events synchronously. For example, event.preventDefault() and event.stopPropagation() must be called synchronously in order to have a helpful effect.
  <button onClick$={[
    $sync(event => event.preventDefault()),
    $(() => {
      // normal behavior.
    })
  ]}>Click Me</button>

The idea is that $sync() will be inlined into HTML. For this reason, the function, $sync(), must not only be a pure function but also can not depend on any external code, such as imports.
The best way to think about it is that the function inside $sync() must be able to survive fn.toString() and then be reconstructed from the string into a proper function.
In practice, this means that the function must be a simple function which can't:

Close over any state.
Close over any imports.

Fix #5322
Fix #4496
Overview

What is it?

[ ] Feature / enhancement
[ ] Bug
[ ] Docs / tests / types / typos

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why

One use case

Another use case

Checklist:

[ ] My code follows the developer guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

works on my machine 👍

stopPropagation doesn't work. No tests were added for it as well.


Windows cross-env example does not work as expected

The README has the following example:
{
  "scripts": {
    "parentScript": "cross-env GREET=\"Joe\" npm run childScript",
    "childScript": "echo Hello $GREET"
  }
}

If I run this on Windows using cmd.exe I get the following:
C:\path\to\project>npm run parentScript

><EMAIL_ADDRESS>parentScript C:\path\to\project
> cross-env GREET="Joe" npm run childScript

><EMAIL_ADDRESS>childScript C:\path\to\project
> echo Hello $GREET

Hello $GREET

That is, it does not interpolate the value of the env var GREET.  If I change the $GREET line to %GREET% in childScript, I get the following:
C:\path\to\project>npm run parentScript

><EMAIL_ADDRESS>parentScript C:\path\to\project
> cross-env GREET="Joe" npm run childScript

><EMAIL_ADDRESS>childScript C:\path\to\project
> echo Hello %GREET%

Hello Joe

Each npm script is run in a subshell (cmd.exe by default on Windows) so I think that's why $GREET doesn't work, but the README seems to imply that it should, unless I've got the wrong end of the stick.

cross-env version: 5.1.1
node version: 6.11.3
npm version: 3.10.10

I believe you're correct. Thanks for the catch! Could you make a pull request to improve the docs? Thanks!

Sure, I can submit a PR that removes that section.
I'd like to understand why it was there in the first place though - was the expectation that it would work or was it an unimplemented feature or just a bug?

I think it's a bug. I don't have a windows machine to test things on 😅

Me neither, I just fire up VirtualBox with a Windows VM from time to time.

Yeah, I've got a Windows VM for testing my web app, but I've not taken the time to set it up with git/node/etc.


Interfaces implemented by attr accessors or T::Structs do no identify signature mismatches

Input
→ View on sorbet.run
# typed: strict

class A; end
class B; end

module Interface
  extend T::Sig
  extend T::Helpers

  interface!

  sig { abstract.returns(A) }
  def do_it; end
end

class ClassImpl
  extend T::Sig
  include Interface

  # Error: Return type T.nilable(String) does not match return type of abstract method
  # Correct!
  sig { override.returns(B) }
  def do_it
    B.new
  end
end

class StructImpl < T::Struct
  extend T::Sig
  include Interface

  # Does not identify the error
  # Trying to add sig here says the sig is unused
  prop :do_it, B
end

class AttrImpl
  extend T::Sig
  include Interface

  sig { void }
  def initialize
    @do_it = T.let(B.new, B)
  end

  # Does not identify the error
  sig { override.returns(B) }
  attr_reader :do_it
end

Observed output
editor.rb:23: Return type B does not match return type of abstract method Interface#do_it https://srb.help/5035
    23 |  def do_it
          ^^^^^^^^^
    editor.rb:13: Super method defined here with return type A
    13 |  def do_it; end
          ^^^^^^^^^
Errors: 1

Expected behavior
The attr_reader and the T::Struct versions of the implementation should also throw the error Return type B does not match return type of abstract method since they are too implementing the interface.

Duplicate of #1841 / #1694


[Sign In] Incorrect error-message is displayed when trying to sign in with invalid email

Environment: Windows Server 2012 R2 Standard x64, Google Chrome 81.0.4044.129,
Mozilla Firefox 76.0 (64-bit)
Reproducable: always
Build found: commit 7439e88
Steps to reproduce

Go to GreenCity https://ita-social-projects.github.io/GreenCityClient/#/welcome
Click on 'Sign in' link .
Set invalid email address into 'Email' field (e.g. "greencity.test").

Actual result
'Email' field is highlighted with red outline and error message is displayed under 'Email' field:
"This is not email".

Expected result
'Email' field is highlighted with red outline and error message is displayed under 'Email' field:
"Please check that your e-mail address is indicated correctly".

User story #471
Test case https://jira.softserve.academy/browse/GC-525

Verified


Update to FSharp.Core package 4.5.1

FSharp.Core 4.5.1 adds span support for voidptr

Link #5231
This also fixes the malformed XML file for FSharp.Core.


Accpect connections only from certain domain

hi,i want users connect to proxy only with my domain and dont accpect connections from direct ip or other domains.
Is this possible?

Hi. No, this is not possible.

Ok is there a way to drop or reject clients that connect to my server with a wrong SECRET ?

Well, it is not possible to connect with wrong secret.


A7670e battery recharge

Good morning,
I have the a7670e board and I need to know how the 18650 battery recharges.  Does USB-C power charge the battery?
Thank you

Thank you for your information.
Can you post a kink for the homepage because i can't find the home with the instructions you refer.

"....post a link..."

https://www.lilygo.cc/products/t-sim-a7670e?_pos=1&_sid=1f6a77a6b&_ss=r&variant=42534734495925


If DOB updated in the profile, It does not reflect in the patinet information page

This can be achieved without modifying to the source code. Can be achieve by editing the form-set. Please assign it to someone.


Missing files in sdist

It appears that the manifest is missing at least one file necessary to build
from the sdist for version 0.7.3. You're in good company, about 5% of other
projects updated in the last year are also missing files.
+ /tmp/venv/bin/pip3 wheel --no-binary econuy -w /tmp/ext econuy==0.7.3
Looking in indexes: http://<IP_ADDRESS>:9191/root/pypi/+simple/
Collecting econuy==0.7.3
  Downloading http://<IP_ADDRESS>:9191/root/pypi/%2Bf/d30/e8e6efdb40edc/econuy-0.7.3.tar.gz (42 kB)
    ERROR: Command errored out with exit status 1:
     command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-ooi5dob3/econuy/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-ooi5dob3/econuy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-ooi5dob3/econuy/pip-egg-info
         cwd: /tmp/pip-wheel-ooi5dob3/econuy/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-wheel-ooi5dob3/econuy/setup.py", line 18, in <module>
        pipfile_lock_requirements = get_requirements_from_pipfile_lock()
      File "/tmp/pip-wheel-ooi5dob3/econuy/setup.py", line 12, in get_requirements_from_pipfile_lock
        lock_data = json.load(open(pipfile_lock))
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-wheel-ooi5dob3/econuy/Pipfile.lock'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Thanks!


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_b20g7ob_bt/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_b20g7ob_bt/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_b20g7ob_bt/clone/recipe/meta.yaml:40: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_b20g7ob_bt/clone/recipe/meta.yaml:40: missing_description: The recipe is missing a description
ERROR: /tmp/abs_b20g7ob_bt/clone/recipe/meta.yaml:40: missing_license_family: The recipe is missing the about/license_family key.
Errors were found


feat(a9-insecure-components): adding popular vulnerable package: marked

feat(a9-insecure-components): adding a popular vulnerable package: marked
Adding a vulnerable package called marked for parsing and compiling Markdown syntax in JavaScript.
This is a popular package that has several releases related to XSS issues one in less than a year ago, and a very recent one as well.

Adding a /memos section to add memos (notes) which allows free text that is compiled to markdown and uses the marked library
Adding documentation to A9 - Insecure Components section
Explaining how to exploit the vulnerable Marked package

I haven't tested this, but sounds like a good initiative.
It's probably an idea to add a comment in the package.json around the fact that this dependency should not be updated due to the fact of A9, otherwise someone will think they're helping and update it.
Was the development.js change intentional?
"May" also want to mention that snyk although it may be good, is not free. Often this is a show stopper.

Good comments.

development.js was a local change, I'll commit a fix that comments it out again
we can't really add comments in JSON which goes for package.json as well so I'm not sure where else to add it except to just keep an eye on future PRs :-)
snyk has some paid plans but they are free and open source as well so I actually view them as a great partner for Node.js security

{
"//": "a comment",
"//": "another comment"
}
Maybe snyk has just added the free tier? They seem to go up very fast after that though $49 vs NSP $1 for additional repos.

@binarymist fixed both comments

Hi @lirantal Could be worth specifying what exactly the purpose is with:
"do not upgrade the marked package version it is set by purpose"
Someone else may be maintaining this code in the future, even if it was you, you may not remember what the purpose was in 2 years time. Just adding a few more words to what the purpose is, could save significant time, by the time several people read the comment and try and work out what the purpose is?

Agree, updated.

@lirantal I loved the idea to add an example for A9. Can you please go over comments I added and let me know your thoughts.

Great.
Did you possibly not submit your review? I only saw comments for the other PR, not on this one.

@lirantal You are right.. missed to submit the review earlier. Please check now.

Pushed all changes.

@binarymist @ckarande updated the tutorial again with your comments.

👍 @lirantal Thanks for the PR all the updates. @binarymist thanks for your review comments.

Thank you both guys, much appreciate the feedback and collaboration here ;-)

@lirantal can you please keep your commit comments shorter, aprx 80 characters, as it screws up the git log --graph

I'm such a naughty boy

Na, you're probably using one of those graphical editors that handle long lines better :-)

damn it, caught me! :-)
but seriously I actually tend to use changelog semantic commits, and thus have multilines when need to elaborate for a long commit message. I guess I just went free-style with this repo.
Rest assured however that the problem is solved:
git config --global core.editor "nano -r 70"

I tried the suggested attacks, none of them seemed to exploit a vuln. Am I missing something?

There seems to be a bug moving from Memos view to Allocations. The user Id is lost.

yep, definitely the case


autocomplete suggest box text ghost rendering

Description
autocomplete suggestion box text rendering issue
I'm using typescript develop my app using atom-typescript getting for suggestion. but as I scroll up and down using arrow keys the text rendering in suggestion box looks wierd.
I cannot reproduce this under safemode because I need the atom-typescript package to get suggestion display.
I've try to use default theme but doesn't change something.
I don't know it was related to atom or atom-typescript package, but I think It might be atom rendering issue?
gif:

I don't know how to inspect the suggestion box element using dev tools because it close immediatly after i click somewhere else :(
[Description of the issue]
Steps to Reproduce

install atom-typescript
open some project using typescript
get suggeestion by typing something

Reproduces how often: 100%. I can reproduce it on my another laptop.
Versions
λ  apm --version
apm  1.19.0
npm  3.10.10
node 6.9.5 x64
atom 1.25.0
python 2.7.13
git 2.12.2.windows.2
visual studio 2015

λ  atom --version
Atom    : 1.25.0
Electron: 1.7.11
Chrome  : 58.0.3029.110
Node    : 7.9.0

Thanks for reaching out - have you always had this issue or did it start with Atom 1.25?
Also, if you try https://atom.io/packages/ide-typescript do you see the same behavior?

@rsese I can reproduce it under atom 1.24.1, with only ide-typescript and atom-ide-ui 2 community packages enabled. And it seems that there is another issue that the suggestion type detail won't render until I move onto it.

Can you try disabling GPU rendering?

@Arcanemagus It can be reproduced with atom --disable-gpu. same behavior as above

Hmmm, do you have any custom styles in your styles.less file?

@rsese yeah I have some custom style in styles.less, but it seems no relations with this.
I've tried run mv .atom .atombak with new userprofile, and start atom with atom --disable-gpu, install only atom-ide-ui and ide-typescript, the issue still. (atom 1.24.1 and 1.25.0), but it doesn't look that severe as before.

no matter i choose which one of ide-typescript atom-ide-ui or atom-typescript linter linter-ui-default intension busy-signal 2 pack of autocomplete solution, there is still the text render issue. I can't tell if it's cause by atom-ide-ui or intention, both of them cause this issue.


loadmusic/loadsfx/loadsprites/loadmap/loadcode commands

They'd work like ordinary load command, but would only load appropriate section so e.g.
loadmusic (cart name) would load only music data from a cart and replace currently loaded music, loadsprites would do same for sprites and so on.
This would make possible to create "library carts" that contain music/sounds/graphics you often use in games you make but usually don't need until long into development cycle when replacing just one thing via copy-pasting would take too much time.
Mostly quality of life stuff but I think this would be useful.

I'll add the third parameter to load command
load cart.tic [ music | sfx | sprites | map | code ]
Great idea, thanks 👍

Sounds good. Probably adding parameters is better for cleanliness of the command interpreter code.

so, you can load sections from other carts, even from the website
load cart.tic [tiles | sprites | map | cover | code | sfx | waves | music | palette]
done in .27


Time selection

This tool was written for GMTI analysis.  Current workflows include creating densities of the points and running the directional mean tool.  However, provides no indication what the directional mean outputs represent.
This tool takes points that have a defined heading and a polygon area as the AO, to identify how the points are moving over a user defined time.  They can then graph the data to see anomalies.  Next step is to add a moving time average to do time series analytics against the output.
FYI @tquink @nfeuerstein @dbarnes1

Closing to send to a different branch.


[BUG] Results not showing in multi-file search

When using the multi-file search with a query that contains "(", the number of results shows up correctly, but the results themselves are not visible.

Thanks for reporting it, I'll fix it.
On Sat, Aug 12, 2023, 12:58 AM ssolve_ @.***> wrote:

When using the multi-file search with a query that contains "(", the
number of results shows up correctly, but the results themselves are not
visible.
[image: Screenshot_20230811_212517_Acode]
https://user-images.githubusercontent.com/62601321/260130844-7d20f241-2287-411b-b1c8-001effd97947.jpg
—
Reply to this email directly, view it on GitHub
https://github.com/deadlyjack/Acode/issues/794, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJHIHI3CR5PPZ33A5KIL2ITXU2BWLANCNFSM6AAAAAA3NKIYUU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Fixed support for babel 7

Fixes babel/babel#6315 .
Babel7 support is broken at the moment because of 2 things:

rollup's regexp rewrites on the generated code - this PR fixes this
external helpers module outputType is still slightly broken - need to be fixed on babel's side, gonna do it in a moment

This can be published independently of the second fix needed. Once the other one will get published this plugin should start just working with fixed Babel7 (assuming this one gets merged in first)
cc @loganfsmyth @hzoo

ping @hzoo , anything more to be done here?

Ive removed weird dependency on external-helpers - making it deprecated. Now this plugin will deduplicate inline helpers by default, which I think is a better user experience
Thanks @loganfsmyth for the idea.

Can we update this PR to now use the scoped packages? As changing the package name is breaking we can probably make a new major version and also remove support for older versions?

Looking reasonable I think?


Terminal: NVDA does not read the shortcut command of Add Terminal and Split Terminal Properly.

Environment Details:
VSCode Version : 1.24.0
OS Version : Win10
Additional Details:
MAS Violated: MAS1.3.1
ScreenReader Version: NVDA2018.2
Repro Steps:

Launch VS Code while NVDA is ON.
Go to View menu and Select Integrated Terminal.
Tab till Add terminal button(+).

Actual:
NVDA does not read the shortcut command of Add Terminal(Ctrl+Shift+) and split Terminal(Ctrl+\) properly. It only reads Ctrl+shift button and ctrl+ button. Same happens while navigating to Terminal(Ctrl+).
Expected:
NVDA should read the whole command Ctrl Shift Backtick key and Ctrl +BackSlash key like that.
Recommendations:
Refer below link which is repository of bug fixes code snippets:
https://microsoft.sharepoint.com/teams/msenable/mas/pages/browse-fixes.aspx
User Impact:
User will not get the command properly and will not be able to navigate to the particular section.
MAS Reference
https://microsoft.sharepoint.com/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc={54f28d1f-a2d1-4dcd-84e1-5c9b87e8aba4}
Attachment for Reference:
A11y VSCode Terminal NVDA Shortcut Commands.pptx
Does this issue occur when all extensions are disabled?: Yes

This feels like low hanging fruit - the actions should just have proper titles
Assigning to july, @Tyriar feel free to move out

@isidorn how are the labels exposed to the screen reader in the panel actions? I only see a title which screen readers ignore?

@Tyriar the title should be enough and this works perfeltly fine with latest vscode insiders and nvda on windows which aligns with that.
@AccessibilityTestingTeam-TCS can you still reproduce this?

@isidorn well in that case I'm not so sure we can fix this, we're giving "ctrl+shift+`" and "ctrl+" to the screen reader and it's not reading it. I guess we could have a list of characters that screen readers don't read and keep translations for each of them, this should be at the keybindings system level though.

@alexandrudima any thoughts on localizing common keybinding character names to fix this?

@isidorn shortcut for Split Terminal has been changed(Ctrl+shift+5) so this is fine but shortcut for Add Terminal is still same(Ctrl+Shift+') which screenreader is not reading. And found same issue with Zoom out(Ctrl+-).

Removing myself as this applies to keybinding strings in general.

Ok so the issue is that the keybindings are not localized and nvda is not reading them. Removing milestone and leaving to @alexandrudima to decide here

The text we place in the dom is correct. It just happens that NVDA reads the text as if it were prose, omitting to pronounce backticks (`) or commas (,) or dots (.), etc.
The same problem exists when editing source code. Source code is full with such symbols. I believe the solution is that NVDA has some mode where it can read things letter-by-letter.
=> Closing, as we do the correct thing and this is something end users can control from the screen reading software.


[Bug] Can't see the Markdown Image in Update

Checklist

[X] My issue was not mentioned by others, and it is not a duplicate issue.

Description

Reproduction Steps

Open Starward
Click "Join Preview Release Channel" in Setting
Click "Check for Update"

Expected Behavior
See the image in Markdown
Screenshots
No response
Starward Version
0.10.7-preview.2
Windows Version
Windows 10 22H2 - Build 19045.3930
Log
[20:36:39.094] [INFO]
Welcome to Starward v0.10.7-preview.2
System: Microsoft Windows NT 10.0.19045.0
Command Line: "C:\Program Files\Starward\app-0.10.7-preview.2\Starward.dll"

[20:36:39.136] [INFO] Starward.Services.DatabaseService
Database path is 'C:\Program Files\Starward'

[20:36:39.170] [INFO] Starward.Services.DatabaseService
Database version is 8, target version is 8.

[20:36:39.262] [INFO] Starward.Pages.MainPage
Last game region is hkrpg_global

[20:36:39.273] [INFO] Starward.Pages.MainPage
Navigate to "LauncherPage" with param hkrpg_global

[20:36:39.982] [INFO] Starward.Pages.LauncherPage
Game install path hkrpg_global: "C:\Program Files\Star Rail"

[20:36:39.982] [INFO] Starward.Pages.LauncherPage
Install path of hkrpg_global: "C:\Program Files\Star Rail"

[20:36:40.015] [INFO] Starward.Services.GameResourceService
Local game version is "1.6.0" (gameBiz: hkrpg_global)

[20:36:41.269] [INFO] Starward.Services.UpdateService
Start to check update (Preview: True, Arch: X64)

[20:36:41.439] [INFO] Starward.Services.UpdateService
Current version: "0.10.7-preview.2", latest version: "0.10.7-preview.3", ignore version: null

Additional Context
Webview2 Runtime 120.0.2210.144

Tried updating with Webview2 Evergreen Bootstrapper, still in version 120.0.2210.144

Found this link has an updated version of Webview2, I will try it

I updated WebView2 by clicking Repair.

Not working for me

Currently only Edge version 121 supports AIVF format, so it is natural to not see the image if you use version 120 and lower.

How can I update to 121?

@phucho0237 Don't worry, not being able to update to 121 will not affect normal use. It may take some time before Microsoft can push it on a large scale.

Tried updating with Webview2 Evergreen Bootstrapper, still in version 120.0.2210.144

@phucho0237 Try uninstall/reinstall or upgrade Edge Browser? Edge Webview Runtime is just a wrapper for the Edge.

Tried updating with Webview2 Evergreen Bootstrapper, still in version 120.0.2210.144

@phucho0237 Try uninstall/reinstall or upgrade Edge Browser? Edge Webview Runtime is just a wrapper for the Edge.

I uninstalled Edge browser using the ShadowWhisperer Script. Does Webview really need a Edge browser?

Tried updating with Webview2 Evergreen Bootstrapper, still in version 120.0.2210.144

@phucho0237 Try uninstall/reinstall or upgrade Edge Browser? Edge Webview Runtime is just a wrapper for the Edge.

I uninstalled Edge browser using the ShadowWhisperer Script. Does Webview really need a Edge browser?

Webview2 don't need Edge Browser.

If you install a Edge browser, it will use the browser'core instead of the one it carried.

Using [Christitus Tool] (https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winutil.ps1) and uninstalling with the built-in Edge Remover, then installing Edge again, it works as expected.


Maintenance

Bump the ruby version used in development to 3.0.0
Add ruby 2.7.2 and 3.0.0 to the Travis build matrix, and remove ruby 2.3 and 2.4.
Fix deprecation warnings around positional and keyword arguments in ruby 2.7.0
Upgrade rubocop to the latest version, v1.9.1, and fix rubocop violations
Configure rspec to emit warnings, and fix them
Re-record the spec cassettes, which are almost 4 years old 😅
Fix broken links in the README

@mattyb I still have yet to update the version and changelog files, but first I wanted your opinion on these changes, and on whether this should be a minor or major version bump.  Does dropping support for ruby 2.3 and 2.4 count as a backwards incompatibility, even though both are quite past end-of-life?
Also, should I move the re-recording of the spec cassettes into another PR to keep this one cleaner?

Does dropping support for ruby 2.3 and 2.4 count as a backwards incompatibility, even though both are quite past end-of-life?
Also, should I move the re-recording of the spec cassettes into another PR to keep this one cleaner?

this all looks good! I do think we should bump the major version if we're dropping support for ruby versions. I think it's fine to keep the cassettes in this PR, unless there are related code fixes (besides that URL change) that start to complicate things.


[FLINK-24440][source] Announce and combine latest watermarks across SourceOperators

Announce and combine latest watermarks across SourceOperators
Verifying this change
This change adds a dedicated unit test for the new feature.
Does this pull request potentially affect one of the following parts:

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

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Can we merge this PR already? What happens if SourceOperator receives the WatermarkAlignmentEvent?

Yes, we could merge it as it is. First and foremost if SourceOperator receives WatermarkAlignmentEvent it would throw an unsupported/illegal state exception. Which is perfectly fine, as currently there is no way to enable sending those events in the production code. Only the unit test added in this PR is currently enabling this feature.

@flinkbot run azure

private azure was green:
https://dev.azure.com/pnowojski/Flink/_build/results?buildId=614&view=results


Unable to run gauge specifications with latest nightly of language runner and released version of gauge

Expected behavior
With latest nightly version of language runner and released version of gauge we should be able to run specifications successfully with out any errors.
Actual behavior
Getting the below error while we are running specs:
Failed to start gauge API: Compatibility error. Incompatible version. Minimum support version 1.0.6 is higher than current version 1.0.5

Steps to reproduce

Install gauge release version
Install latest nightly of language runner(csharp,python,js,ruby)
gauge run specs

Gauge version
Gauge version: 1.0.5
Commit Hash: 562f036

Plugins
-------
csharp (0.10.6.nightly-2019-07-15)
html-report (4.0.8)
js (2.3.6.nightly-2019-07-16)
python (0.3.6.nightly-2019-07-04)
ruby (0.5.3.nightly-2019-07-15)

The error message is right and expected. The latest version of runner won't work with released Gauge. The latest nightlies contain some changes which are only compatible with the latest Gauge, that's the reason we have restricted the version to 1.0.6.


Support for new Sonoff SPM

I recently installed the new Sonoff SPM and noticed support has not been built. I am sure many users will begin deploying them and it will be great to have support in future.
https://sonoff.tech/product/spm-main-spm-4relay/

Hi @rdgilmour
Do you have anything in the homebridge log about this device being unsupported?

No, there is no mention of the device in the log.

So when you say you “notice that support hasn’t been built” do you mean the accessories don’t already appear in your homebridge?
when the plugin initialises, it should list all your devices, including supported and unsupported devices.
Please do give this another check!

Yes, here is the info:
Warning[Pump Sub 1] is not supported, do create a GitHub issue with the following info:
[130] {"bindInfos":{},"subDevId":"56463237393734134b353637","parentid":"10016a5f75","fwVersion":"1.0.0","overload_00":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"overload_01":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"overload_02":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"overload_03":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"switches":[{"switch":"on","outlet":0},{"switch":"on","outlet":1},{"switch":"off","outlet":2},{"switch":"off","outlet":3}],"threshold":{"actPow":{"min":10,"max":440000},"current":{"min":10,"max":2000},"voltage":{"min":10,"max":24000}},"timers":[],"getKwh_00":2,"getKwh_01":2,"getKwh_02":2,"getKwh_03":2,"demNextFetchTime":1659391200000,"configure":[{"outlet":0,"startup":"off"},{"outlet":1,"startup":"off"},{"outlet":2,"startup":"off"},{"outlet":3,"startup":"off"}],"uiActive":{"outlet":1,"time":60},"actPow_00":446,"apparentPow_00":8741,"current_00":36,"reactPow_00":5867,"voltage_00":23833,"actPow_01":795,"apparentPow_01":1431,"current_01":5,"reactPow_01":1167,"voltage_01":23775}.2022/08/01,
15:18:20 Warning[Pump Sub 2] is not supported, do create a GitHub issue with the following info:
[130] {"bindInfos":{},"subDevId":"3962464e3635361735363236","parentid":"10016a5f75","timers":[],"fwVersion":"1.0.0","overload_00":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"overload_01":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"overload_02":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"overload_03":{"delayTime":0,"maxAP":{"en":0,"val":440000},"maxC":{"en":0,"val":2000},"maxV":{"en":0,"val":24000},"minAP":{"en":0,"val":10},"minV":{"en":0,"val":10}},"switches":[{"switch":"on","outlet":0},{"switch":"on","outlet":1},{"switch":"off","outlet":2},{"switch":"off","outlet":3}],"threshold":{"actPow":{"min":10,"max":440000},"current":{"min":10,"max":2000},"voltage":{"min":10,"max":24000}},"getKwh_00":2,"getKwh_01":2,"getKwh_02":2,"getKwh_03":2,"demNextFetchTime":1659391200000,"configure":[{"outlet":0,"startup":"off"},{"outlet":1,"startup":"off"},{"outlet":2,"startup":"off"},{"outlet":3,"startup":"off"}],"uiActive":{"outlet":1,"time":60},"actPow_00":65,"apparentPow_00":745,"current_00":3,"reactPow_00":727,"voltage_00":23810,"actPow_01":5477,"apparentPow_01":9835,"current_01":41,"reactPow_01":4940,"voltage_01":23693}.2022/08/01,
15:18:20 Warning[Pump house ] is not supported, do create a GitHub issue with the following info:
[128] {"bindInfos":{},"version":8,"sledOnline":"on","fwVersion":"1.2.0","subChipFwVer":"1.2.0","subDevices":[{"subDevId":"3962464e3635361735363236","deviceid":"ab30000228","uiid":"130","index":0},{"subDevId":"56463237393734134b353637","deviceid":"ab30000229","uiid":"130","index":0}],"timeZone":2,"only_device":{"ota":"success"},"rssi":-88}.

Please let me know if further information is required.

Hi @rdgilmour
I realise I still need to work on this, apologies this one slipped my mind 🥲
If you are still using homebridge with this plugin and could we message on discord?
https://discord.gg/cMGhNtZ3tW

Hi,
Closing this just as been a little overwhelmed with issues recently.
If this is still an issue or a feature you would like implemented then please do re-open this ticket!
Thanks for your understanding!


Reproducibility Issue

Could you upload your dataset, please?
I can't run your code because I have no datasets.
I want to run experiments with AGNews and IMDb.
I tested your FreeLB++ code on IMDb by importing it via Huggingface dataset library and I used your parameter settings, but I couldn't reproduce the number although it showed some improvements.
Also, SAFER and InfoBERT were not really good in IMDb experiments.
I wish I can try your full code as soon as possible.

I also have the same issue with the code.
I got ~3% accuracy under attack for FreeLB++ on IMDB against BERT-Attack.

I also have the same issue with the code. I got ~3% accuracy under attack for FreeLB++ on IMDB against BERT-Attack.

I also have same issue with IMDB dataset.
I ran FreeLB++ and got around 20% accuracy under attack on IMDB.
I set step size to 10 as mentioned in the paper. And I used the modified TextFooler attack from this project.
Could the author share the hyper parameter?

I checked other adversarial attack papers from the lab of the authors and it seems 20% acc with FreeLB++ is the right one. I am not 100% sure though. Also, I couldn't reproduce SAFER's performance too.

ther adversarial attack papers from the lab of the authors and it seems 20% acc with FreeLB++ is the right one. I am not 100% s

Thansk for your response! I think the shared codes have some problems. Maybe running the codes provided by the original paper is better choice.

I agree with you. Actually, I checked the original SAFER code too, but it seems the original code has the issue too.

Yeah, nowadays a lot of codes have problems, even the works published on top conferences.

I know what you mean but I want to be cautious and this is a repository of their paper loool

I checked other adversarial attack papers from the lab of the authors and it seems 20% acc with FreeLB++ is the right one. I am not 100% sure though. Also, I couldn't reproduce SAFER's performance too.

Can you tell me the paper where they have 20% for FreeLB++?


Compile revisions

Is this ever going to be merged? This is nearly a year old and is required to build on recent Ubuntu, plus the binaries on solarcoin.org are far too ancient to work due to outdated library dependencies. Maybe solarcoin is abandoned? There has been no updates to this repository for a very long time.
Also, in this pull request - in build-unix.md, the following line:
sudo apt-get install miniupnpc-dev
Should be:
sudo apt-get install libminiupnpc-dev


Brings back playnow and promote from #486

After creating your pull request, tick these boxes if they are applicable to you.

[x] I have tested my changes against the review branch (the latest developmental version), and this pull request is targeting that branch as a base
[x] I have tested my changes on Python 3.5/3.6

Description
Brings back two commands from #486
Promote [target] promotes a song to the top of the queue, to be played next, if non specificed then assumes the last one(basically a playnext for songs already queued, could easily make this a playnext command too), and playnow [song] plays a song entry and skips the current playing song
Related issues (if applicable)
Target correct branch #1876

Closing due to https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1


Updated GitHub url

Usually in github url in a doc, we should redirect to github of the docs and not the project.

Hello @Abdul-Hafeez-Galib , Thanks for the PR.
Have you created the issue for the same? if not you can create it from here https://github.com/reactplay/docs/issues/new