Image grid crashes the TUI

Description
termvisage --tui -r ~/Pictures -v
Using 'kitty' render style
Processing sources...
Checking '/home/t/Pictures'
... Done!
Session not ended successfully: (urwid.widget.widget.WidgetError) Widget <LineSquare selectable box widget <Image selectable box widget>> rendered (30 x 15) canvas when passed size (30, 1)!

termvisage --tui .
 File "/home/t/.local/pipx/venvs/termvisage/lib/python3.11/site-packages/urwid/widget/widget.py", line 92, in validate_size
    raise WidgetError(
urwid.widget.widget.WidgetError: Widget <LineSquare selectable box widget <Image selectable box widget>> rendered (30 x 15) canvas when passed size (30, 1)!
(797887) (2024-03-29 14:07:14,435) [CRITICAL] termvisage: Session not ended successfully: (urwid.widget.widget.WidgetError) Widget <LineSquare selectable box widge

Desktop (please complete the following information, if applicable):

OS: Ubuntu 23.10

Kernel version 6.5.0-26-generic

Python version: Python 3.11.6

Installation method: pipx install termvisage

termvisage --version 0.1.0

Terminal Emulator:
kitty 0.33.1
same Error on

konsole
gnome-terminal
wezterm

Thanks so much for the report.
I've started investigating the issue and it seems to be due to some fairly recent upstream changes in urwid (the TUI framework currently in use). The issue occurs starting from version 2.4.2.
In the mean time, you can downgrade urwid (within the same environment as termvisage) to version 2.1.2 using pipx inject termvisage urwid==2.1.2. Some newer versions should also work but I can't be sure other things aren't broken.
I'll continue to investigate till I get to the root of the issue and get back to you once I have something concrete.
Thanks once again. :pray:

@AnonymouX47
 pipx inject termvisage urwid==2.1.2
Kinda works so far :+1: .
The only issue I have now is that one particular picture is not drawn in the preview. If I select it and termvisage goes fullscreen mode it is also not drawn. When I force it to draw it is finally drawn.

This particular picture is very large.
t@t-MS-7C90:~/Pictures$ ll big-sur-mountains-night-dark-macos-big-sur-stock-california-6016x6016-1493.jpg
-rw-rw-r-- 1 t t 4,7M Mär 10 13:11 big-sur-mountains-night-dark-macos-big-sur-stock-california-6016x6016-1493.jpg
t@t-MS-7C90:~/Pictures$ exif big-sur-mountains-night-dark-macos-big-sur-stock-california-6016x6016-1493.jpg
EXIF tags in 'big-sur-mountains-night-dark-macos-big-sur-stock-california-6016x6016-1493.jpg' ('Motorola' byte order):
--------------------+----------------------------------------------------------
Tag                 |Value
--------------------+----------------------------------------------------------
Orientation         |Top-left
X-Resolution        |72
Y-Resolution        |72
Resolution Unit     |Inch
Software            |Pixelmator 3.9
Date and Time       |2020:06:22 22:06:64
Pixel X Dimension   |6016
Pixel Y Dimension   |6016
Exif Version        |Exif Version 2.1
FlashPixVersion     |FlashPix Version 1.0
Color Space         |Uncalibrated
--------------------+----------------------------------------------------------

The only issue I have now is that one particular picture is not drawn in the preview. If I select it and termvisage goes fullscreen mode it is also not drawn. When I force it to render it is finally drawn.

That's by design, for performance reasons. See --max-pixels.

Maybe it is worth to look into allmytoes. It can create smaller sized thumbnails and cache them.

Honestly, not a good idea in my opinion (i.e using allmytoes specifically)...

It can only be used as either a command-line tool or a rust crate. Neither options is reliable or easily workable.
Let's assume I found a way to make it work reliably with good performance, it has just too many dependencies.
Thumbnails will only work for the grid view.

Anyways, I appreciate the idea.
I'll look into similar python libraries or simply implement the functionality myself using temp files.
Thank so much. :hugging_face:

As regards the actual issue at hand, I've managed to fix the bug. I'll clean things up and push the changes as soon as I can.
Thanks for your patience.

You can now follow #12 for updates on image grid thumbnail caching.
Thank you 😃.

@AnonymouX47  I've cloned the repo and successfully compiled it but get an error when starting termvisage:
termvisage --tui --verbose-log
Session not ended successfully: (builtins.ValueError) too many values to unpack (expected 1)

log.txt

@qrockz Thanks for the feedback.
I looked into the issue and found out it was due to an incompatibility with urwid versions older than 2.4.2, which was introduced by the earlier changes to fix the original issue. I've corrected this now and all urwid versions down to 2.1.2 (never tested anything less) should work fine.
Also, I'll bump the requirements very soon... they're long overdue for an update.
For what it's worth, next time, when installing from source (except its for the purpose of contribution), I'd advice installing with:
# `pip` also works but `pipx` is preferable.
pipx install .

as the requirements.txt file doesn't always (in fact, rarely does) specify the latest versions of dependencies and it also specifies other packages required only for development such as linters, etc.
Thank you 😃.

Sorry for bothering you furthermore :eyes: but when I'm installing termvisage with pipx install termvisage  now it still installs the "old" version where I get the error Session not ended successfully: (urwid.widget.widget.WidgetError) Widget <LineSquare selectable box widget <Image selectable box widget>> rendered (30 x 15) canvas when passed size (30, 1)!

downgrading urwid as you previously suggested pipx inject termvisage urwid==2.1.2 would work to fix that
or  instead of downgrading urwid I compile your code with your latest changes and can youse one modern urwid version

I'm really, really sorry if I get something fundamentally wrong here.
But after you have made code changes I was wondering how I can get the updated version of termvisage (the release date and version of termivsiage on the release page on github hasn't changed). pipx still installs the older version of termvisage. What other options do I have to get the latest termvisage other than clone and compile it by myself?
Please help me out and tell me what I'm missing. If you get me to understand this I buy you a big cup of  :coffee:

Sorry for bothering you furthermore 👀

Not at all :laughing:... It's totally okay to ask for help.

when I'm installing termvisage with pipx install termvisage now it still installs the "old" version where I get the error Session not ended successfully: (urwid.widget.widget.WidgetError) Widget <LineSquare selectable box widget <Image selectable box widget>> rendered (30 x 15) canvas when passed size (30, 1)!

downgrading urwid as you previously suggested pipx inject termvisage urwid==2.1.2 would work to fix that

or  instead of downgrading urwid I compile your code with your latest changes and can youse one modern urwid version

That's because I'm yet to make a new release (to either GitHub or PyPI) since I fixed this issue. Only installing from the repository can get the properly working "version" at the moment. As soon as the next release (which will include this fix) is up, I'll make sure to inform you.

What other options do I have to get the latest termvisage other than clone and compile the repo by myself?

In the mean time, you can install directly from GitHub using:
# The same also applies to `pip`
pipx install git+https://github.com/AnonymouX47/termvisage.git

For more info, see this pipx docs section.

Please help me out and tell me what I'm missing. If you get me to understand this I buy you a big cup of ☕ I have no deep knowledge of git or python package installers. Just Basic knowledge.

Once again, it's totally okay... we all learn everyday :hugs:. If you have any other feedback or questions, feel free to give or ask them.
Thank you :smiley:.

Hello again!
This is to inform you that v0.2.0 has just been released, containing the fix/enhancement discussed in this issue. :tada:
You can upgrade to the new version by running:
pipx upgrade termvisage
# OR `pip install --upgrade termvisage`, if that's your installation method.

but if you've earlier installed the package from the git repository (remote or local) or some other source, you might need to run:
# The same also applies to `pip`
pipx install --force termvisage

Thanks so much for your report/suggestion, patience and feedback. :handshake: :smiley:


Missing documentation on Mscrm.OpenRecordItem

I can find no documentation other than this page on the Mscrm.OpenRecordItem command - it used to be located at https://docs.microsoft.com/en-us/dynamics365/release-plans/#override-the-default-open-behavior-of-data-rows-in-an-entity-bound-grid

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

ID: 74252232-bb80-d603-bc46-4c1bdaabb0c4
Version Independent ID: e5c12903-cf4d-5ec7-ffe8-a2272abb00b1
Content: openDatasetItem - Power Apps
Content Source: powerapps-docs/developer/component-framework/reference/dataset/opendatasetitem.md
Service: powerapps
GitHub Login: @Nkrb
Microsoft Alias: nabuthuk

@scottdurow Do you think that the specified doc is missing from the location you have pasted?

No, I wouldn't expect that to still be there because it's from the previous release notes - rather this is the only mention of Mscrm.OpenRecordItem - there should be another docs page describing how Mscrm.OpenRecordItem is meant to be used to change the record open behaviour in grids (as was described in the release notes).

I wasn't aware about this feature until I read Andrew's blog today. This is the only official documentation I could find (apart from PCF's tsds) https://github.com/MicrosoftDocs/testing-preset/blob/cb24f458d94f5ae28ef0158fdaaa949a50c31cc2/samplefiles/get-started/whats-new/customer-engagement/new-in-version-9-for-developers.md#override-the-default-open-behavior-of-data-rows-in-an-entity-bound-grid

@scottdurow @rajyraman Here is the link to the topic. Closing the issue.

I know this is old but the current working URL is:
https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/override-default-open-behavior-grids


MSI/Winget Installer Documentation

What content needs to be created or modified?
Documentation for msi/winget installer added in 1.9 release
Describe the solution you'd like

Where should the new material be placed?

The associated pull request from dapr/dapr, dapr/components-contrib, or other Dapr code repos

https://github.com/dapr/cli/pull/1065, https://github.com/dapr/cli/pull/1068
Additional context

Closing as https://github.com/dapr/docs/pull/2860 completes this issue


ProjectMembersList Scene

Depends on #207

https://www.figma.com/file/IfEmcJeuNY6ucgjYctlKB7/Cord-Field?node-id=2236%3A0

However, we will not be grouping by roles, like Directors. We'll only show one person with multiple roles.
url: /projects/{id}/members
edit button can be stubbed, but it will be a dialog in the future.
The add button functionality can be stubbed. But Patrick asked that the text next to be icon button be clickable as well.

Waiting for ProjectMemberCard and I will be back to this ticket with completion of file service api update.


Ghauri is not able to recognise parameters.

Hi,
Thanks for creating this  tool!
I would like to bring your attention to below issue which I am facing:
Getting error on running command : ghauri -r /Users/rakesh/Documents/Project/Web/NodeGoat/request_benefits.txt
Error:
[10:25:46] [INFO] parsing HTTP request from '/Users/rakesh/Documents/Project/Web/NodeGoat/request_benefits.txt'
[10:25:46] [CRITICAL] no parameter(s) found for testing in the provided data (e.g. GET parameter 'id' in 'www.site.com/index.php?id=1')
Request:
POST /benefits HTTP/1.1
Host: localhost:4000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0)
Gecko/20100101 Firefox/114.0
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 36
Origin: http://localhost:4000
Connection: close
Referer: http://localhost:4000/benefits
Cookie:
connect.sid=s%3AYoTJiL8n06kgek1kzOIADp0FNS1QTP0S.Y%2BuJDaXHwSCr%2BZyVzRLUmnVQZcmdTjaerkYP4Y97gdE
Upgrade-Insecure-Requests: 1
userId=2&benefitStartDate=2030-01-10
Ghauri is not able to find the parameters from the request.

You are providing a wrong request format, check that your request has multiple new line separators within user-agent header and after accept header as well as cookie fix that and Ghauri should work fine.
I would recommend instead of creating request on your own simply intercept it in burp and save to file everything should work fine. Fixing http request is not part of ghauri code you should provide a proper request instead. Do follow the recommendations

POST /benefits HTTP/1.1
Host: localhost:4000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 36
Origin: http://localhost:4000
Connection: close
Referer: http://localhost:4000/benefits
Cookie: connect.sid=s%3AYoTJiL8n06kgek1kzOIADp0FNS1QTP0S.Y%2BuJDaXHwSCr%2BZyVzRLUmnVQZcmdTjaerkYP4Y97gdE
Upgrade-Insecure-Requests: 1

userId=2&benefitStartDate=2030-01-10

Here is fixed version of your request try this

Thanks,it is working fine now.


feat: Add docstring and code source information to Parameter

This change gives the Parameter class the following attributes / propeties:

docstring
lineno
endlineno
parent
lines
linescollections
source

Currenlty these values are only populated for dataclasses, and they are None for regular classes and functions. This makes it possible to accesss this information for all dataclass parameters, especially those set as InitVar where it was not possible to get it since they are not members (attributes) of the class.
Issue #286: https://github.com/mkdocstrings/griffe/issues/286
Related to mkdocstrings/griffe#252: https://github.com/mkdocstrings/griffe/pull/252

@pawamoy, please kill this action.
When the test case for the encoder fails, the json strings being compared are so large they choke pytest when processing the error.

It is ready review, the latest changes pass (for python<3.13) on my repo.

You are right, the docstring is main information.

May I know why not just adding a docstring attribute (and parameter)

Using the source lines is a cheap hack to get nicely formatted code snippets, especially to deal with multiline annotations.
As these values are not available for non-dataclass parameters, it does make sense to limit the scope of what is added in this change.

Squashed and merged, thanks again!


Sometimes Recipient field on Send is red on first opening

Sometimes the Recipient field is background red on first opening.
Everything still works but it's a bit dissonant.
Put to Release 0.2 as it's a minor UI thing.

Bumped to 0.1.3 since we should address it sooner rather than later and it appears to be straightforward to fix.

Not seen this in a while. Is it still occurring?

I just tried to reproduce this but was not successful.
On my machine there is a very short red flash if the user clicks 'Cancel' on the Send form when the recipient field is empty before the dialog disappears but that is pretty minor.
I'll close this.


datree: 0.15.22 -> 1.4.4

Description of changes
Bump version.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

I tested the main functionality, datree test, and it worked without issues for me.

Result of nixpkgs-review pr 172311 run on x86_64-linux 1

1 package failed to build:

datree

There seems to be a hash mismatch, but interestingly it is different from the one ofborg has.
My mismatch:
error: hash mismatch in fixed-output derivation '/nix/store/7dqgq851ailpccnhi3vssibzc66vg0jc-datree-1.4.4-go-modules.drv':
         specified: sha256-nUu2xMFi1y6kkB076Bm+ZwFWh5ccyYy+wCP585zWGRw=
            got:    sha256-GqE/f5htud5d29FFX1CDi/6E4grXV5xrVH2sT3+px+8=
error: 1 dependencies of derivation '/nix/store/9rfys7p9wrjak4xjdcldvid5l8zaawdk-datree-1.4.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/va5aj7mp112zd4j0wyxhz979rwy3lryq-review-shell.drv' failed to build

ofborg's mismatch:
hash mismatch in fixed-output derivation '/nix/store/1jv3l61wb3br61yc2lf45ry1y4cyv5ck-datree-1.4.4-go-modules':
  wanted: sha256:070rssfg7y93q2z8rj8wjy3mc0b7pqcyhfqxj2j2xmv2q72bcjwx
  got:    sha256:1vy7m5zlzb3xaimrqmyp1bi89zlbhd85yifivdfxxfbdk1zkz88s
cannot build derivation '/nix/store/9rfys7p9wrjak4xjdcldvid5l8zaawdk-datree-1.4.4.drv': 1 dependencies couldn't be built
error: build of '/nix/store/9rfys7p9wrjak4xjdcldvid5l8zaawdk-datree-1.4.4.drv' failed


CSAF Parser: fixed branches' names collision

Description of the PR
Fixes #1527 1527
PR Checklist

[x] All commits have a Developer Certificate of Origin (DCO) -- they are generated using -s flag to git commit.
[x] All new changes are covered by tests
[ ] If GraphQL schema is changed, make generate has been run
[ ] If collectsub protobuf has been changed, make proto has been run
[ ] All CI checks are passing (tests and formatting)
[ ] All dependent PRs have already been merged

@lumjjb @jeffmendoza hi! Could you guys take a look at this PR please?

Pinged Jeff @mrizzi! Should be resolved soon


[DOC]: Simple example usage docs

Add a simple and general example of how to use the orsopy fileio module to produce a valid .ort file

Need to add something about Column for the code to be "realistic".

My worry with "just include a few example python scripts" is that (for ESS reduction code) the interaction with orsopy is segmented over many different modules so it can be difficult to follow the thread.

I still want to make it a better example of "best practice" before I merge. Working on it a bit tomorrow.

Thoughts on having a from_dict() class method for Orso? This would mean that one can create an empty object, populate it and then do a Orso.from_dict(my_object.to_dict()) to check everything. @aglavic @bmaranville

There is already a deserializer functionality in fileio.orso, used by load_orso.  How would you envision the new from_dict method would interact with or complement that?

@arm61

Thoughts on having a from_dict() class method for Orso? This would mean that one can create an empty object, populate it and then do a Orso.from_dict(my_object.to_dict()) to check everything.

Sorry for being late to the party. For me this method is not needed, as this is already possible/used. You just have to supply the dictionary as argument Orso(**my_object.to_dict()). If the object is already Orso, it makes more sense to me to supply a convenience method to run the check against schema. I think we already have a function for that.
If you think it is more intuitive, we could also supply a class method from_dict as you suggest that just runs the code above.

Finally got back to this, I have added a correctness check at the end. I think this is the most intuitive approach (cause you can tab-autocomplete from the header object without having to know the exact syntax.

Thoughts on merging this as is with the plan to improve in the future @aglavic @bmaranville ?

Do we have a specification for the "physical quantity"? This definition is important to me, but I am not sure where we have written down the "official" list of physical quantity values, like "wavevector transfer" for q.
It would be nice if this list was available in the code somewhere, so that it could be optionally validated (optionally is very important.)

From the specification (https://github.com/reflectivity/file_format/blob/master/specification.md#column-description) the physical quantity is to be a "plain name" I take that to mean something that the users sees as accurately describing what the column contains.
I am hesitant to be overly prescriptive with respect to what can go in there.

physical quantity has been suggested (I think by Jochen?) as a solution to the problem of unambiguously identifying values that might be columns or might be in the measurement.instrument_settings, e.g. wavelength.  In the context of that discussion it has been suggested that we formalize the names available: see https://github.com/reflectivity/file_format/blob/master/specs_discussion.md#reserve-key-words
I don't really care if we use physical quantity or something else, but we need some way to identify where to find e.g. wavelength or incident angle in a file, since sometimes that will be a column, and sometimes it will be buried deep in the header, and it's critical information in many cases.

I agree with the concerns. I suggest we open a different issue for it though instead of getting into the weeds on this PR.

You're right - it's not specific to this PR.  We can update the usage docs when the issue is resolved.


Update yajl-ruby version in Gemfile/Gemfile.lock

This fixes an an install problem caused by referencing an older version of yajl-ruby in Gemfile, as reported at https://github.com/onetimesecret/onetimesecret/issues/81

It would be nice to get this merged, as onetimesecret cannot be built against a modern ruby without it.
@onetimesecret


Add options for the pants-init action

This adds options for:

Configuring the cache location on the runner
Configuring the GH_HOST for enterprise instances

It also does a little cleanup on some of the other steps. @jsirois encouraged me to submit this after this conversation on Slack

Thanks for catching the typos @kaos! I just commited your suggestions, so should be all good now.

@cognifloyd Thanks for the review! I confirmed the changes worked with thegh-host input set, so I think it's good to go. Thanks!


[top] autogen

Fixes the CI autogen check failure here
Signed-off-by: Alphan Ulusoy<EMAIL_ADDRESS>

Was fixed in https://github.com/lowRISC/opentitan/pull/13352, closing this one. Thanks @weicaiyang and @tjaychen!


isUrl - Host and scheme should be case insensitive

Given I use https://www.yahoo.com, HtTPs://WwW.YaHoO.cOm or HTTPS://WWW.YAHOO.COM, it would still be resolved to https://www.yahoo.com.
The user tried to type HTTPS://TEST.COM and was given an error by the validator with the default options, even though https is valid by default. With https://TEST.COM, it was no longer failing the validation.
Following this article by IBM,

The scheme and host components of a URL are not defined as case-sensitive, but the path and query string are case-sensitive. Typically, the whole URL is specified in lowercase.

the library could lower the case of scheme and host components in order to prevent false negatives.

Thanks. This looks like a regression introduced by f9be99fc355ffb0ff96e3fa54fbbdcd3606c434e.


Allow Laravel 7

Laravel 7 is coming next week, so updated this to prepare/test with L7

Released on v4.9.0. Thanks!


Added IPv6 information for Kubelet arguments

in docs\reference\generated\kubelet.md , IPv6 information was added for the following arguments.
--address ip
--healthz-bind-address ip

This change is

cc: @leblancd @rpothier @pmichali

@mmueen :wave: This looks related to #6465, so I'll change the base to release-1.9 and add tracking info for it. If I'm wrong, please let me know and I'll change it back! 😸

The files in this PR are auto generated. Please close this PR. I will open a PR that updates the auto generated docs.

The files in this PR are auto generated. So any changed here will be overwritten when we update the auto generated docs.

@steveperry-53 Good catch. Where should these updates be performed?


comic earth star

Source name
コミック・アース・スター
Source link
https://comic-earthstar.com/
Source language
Japanese
Other details
No response
Acknowledgements

[X] I have checked that the extension does not already exist by searching the extension listing and verified it does not appear there.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a meaningful title with the source name.
[ ] I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements.
[X] I will fill out all of the requested information in this form.

Coreview


Is this still being updated?

It looks like it's been a year since anything here has been changed.

Pods for M
pod 'Venmo-iOS-SDK' , :git => 'git@github.com:Rayen905/venmo-ios-sdk.git'

Three years, @mgod.


Fix exception when timezone is false

When passing false in the timezone param, twig returns an exception:

An exception has been thrown during the rendering of a template ("Twig\Extra\Intl\IntlExtension::createDateFormatter(): Argument 5 ($timezone) must be of type ?DateTimeZone, bool given

Passing false is supported and allows to skip the timezone conversion.

PR created here: https://github.com/twigphp/Twig/pull/4014


fixed requirements in setup.py

https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#requirements-files

It is not considered best practice to use install_requires to pin dependencies to specific versions, or to specify sub-dependencies (i.e. dependencies of your dependencies). This is overly-restrictive, and prevents the user from gaining the benefit of dependency upgrades.


Support static calls to state changing methods in forge scripts

Component
Forge
Describe the feature you would like
It'd be great to be able to call a state changing (i.e. non-view) method on a contract to get it's return value without affecting contract state.
Basically it'd be doing the same thing as the eth_call method .
Note that this is different from just calling the method outside a broadcast-block since afaik those calls would still affect the simulated state during the scripts runtime.
The syntax could look something like this:
vm.startStaticCall();
uint returnValue = contract.stateChangingMethod();
vm.stopStaticCall();

Additional context
Examples of this functionality in existing libraries:

ethers.js
web3.js

You can achieve this using vm.snapshot() and vm.revertTo(): https://book.getfoundry.sh/cheatcodes/snapshots


Warning: NaN or Inf found in input tensor

When I'm training my own dataset and there is a warning shows up, is it the problem of my datset?
P.s. the weight generated before iter:017300 has AP=0.42 and the weight generated after that iter has AP=0.0
2019-07-14 21:38:03,381 SSD.trainer INFO: Iter: 017150, Lr: 0.00100, Cost: 5.85s, Eta: 2:01:45, total_loss: 2.349, classification_loss: 1.877, regression_loss: 0.473
2019-07-14 21:38:09,292 SSD.trainer INFO: Iter: 017200, Lr: 0.00100, Cost: 5.84s, Eta: 2:01:29, total_loss: 4.072, classification_loss: 2.850, regression_loss: 1.223
2019-07-14 21:38:15,207 SSD.trainer INFO: Iter: 017250, Lr: 0.00100, Cost: 5.84s, Eta: 2:01:13, total_loss: 2.164, classification_loss: 1.097, regression_loss: 1.068
2019-07-14 21:38:21,116 SSD.trainer INFO: Iter: 017300, Lr: 0.00100, Cost: 5.84s, Eta: 2:00:57, total_loss: 2.795, classification_loss: 1.973, regression_loss: 0.822
2019-07-14 21:38:26,999 SSD.trainer INFO: Iter: 017350, Lr: 0.00100, Cost: 5.81s, Eta: 2:00:41, total_loss: nan, classification_loss: nan, regression_loss: inf
Warning: NaN or Inf found in input tensor.
Warning: NaN or Inf found in input tensor.
Warning: NaN or Inf found in input tensor.

This warning comes from tensorboardX. Your loss is fluctuated, try a smaller lr may help.

@lufficc There is another question, some pictures from my dataset have no target(e.g., boxes=[],labels=[],is_difficult=[]), should i modify getitem function in dataset.py?

You should filter out the empty targets in __init__ method.

@lufficc Thank you, I've solved that problem.


Fix Typo

"Extending" was misspelled as "Ectending"

Fixes a typo I saw in the docs. Didn't run tests or anything else, as this changes one letter in a manually-typed documentation link.
Please check the following:

[ ] Do the tests still pass?[^1]
[ ] Does the code comply with the style guide?

[ ] Run make lint from the Wagtail root.

[ ] For Python changes: Have you added tests to cover the new/fixed behaviour?
[ ] For front-end changes: Did you test on all of Wagtail’s supported environments?[^2]

[ ] Please list the exact browser and operating system versions you tested:
[ ] Please list which assistive technologies [^3] you tested:

[ ] For new features: Has the documentation been updated accordingly?

Please describe additional details for testing this change.
[^1]: Development Testing
[^2]: Browser and device support
[^3]: Accessibility Target

Thanks for the typo fix @sheepman4267 - what's your preferred name for us to put on the contributors list?

Thanks for the typo fix @sheepman4267 - what's your preferred name for us to put on the contributors list?

"Hans Kelson" works. Thanks!


Change the code owner to the new team cpp-client-team

Changed the code owner to the new team cpp-client-team.

Windows test FAILed.

Linux test PASSed.


Refactored the script file for modular changes

Refactoring includes:

Pulling out the controller logic from the directive into a separate Angular controller entity
Wrapping the script content into a self calling anonymous function (closure) to avoid creation of objects in global scope.

Thank you.

Most welcome. My pleasure.
Cheers,
Gautam
On 1/17/15, Muhammad Usman<EMAIL_ADDRESS>wrote:

Merged #10.

Reply to this email directly or view it on GitHub:
https://github.com/sherwaniusman/angular-accordion/pull/10#event-220477643


strategies to improve invariance with data augmentation

We use intensity scaling and noise augmentations to make the virtual staining model invariant. We should leverage augmentations while keeping the training process stable and efficient.
This paper suggests a simple strategy and reports that it is effective: include many augmentations of the same sample to construct the batch, and average the losses (which happens naturally). @ziw-liu what is the current strategy in HCSDataModule?  Can you test the strategy reported in Fig. 1B (top) of this paper?
PS: The paper also reports the regularization of a classification model with KL divergence over the augmentations. This doesn't translate naturally to virtual staining.

This paper suggests a simple strategy and reports that it is effective: include many augmentations of the same sample to construct the batch, and average the losses (which happens naturally)

This seems to be what the current code does when data.train_patches_per_stack is set to larger than 1 ($K_{train}$ in the paper). However this technique reduces the number of unique samples per batch, therefore its effect cannot be clearly determined with batch normalization or smaller batches (for example they used batch size of 528 and $K_{train} \in \{ 1,2,4,8,16 \}$ for Fig 9):

Since the performance of models with batch normalisation depends strongly on the examples used to estimate the batch statistics (Hoffer et al., 2017), in the main paper we train on highly performant models that do not use batch normalisation, following Fort et al. (2021), to simplify our analysis (see App. D for more discussion).

Note that for this study to be fully rigorous, one should also sweep over the ghost batch size; however, due to computational constraints and to be able to reproduce the results of Nabarro et al. (2021), we use the same experimental setup as Nabarro et al. (2021) and estimate the batch statistics over all examples in the minibatch.

This experiment involves sweeping hyperparameters (compute-intensive), so I think it should be done after this round of pipeline engineering (e.g. #42, #55).


Support paying LSPS1 order with onchain funds

Pay with external wallet?
Pay with internal wallet
Deposit to internal wallet if not enough funds

From Megalith:

For the onchain payments, keep in mind that confirmation of the channel can take time, so you likely should poll the get_order endpoint so you can keep the user informed of the status of the order: https://docs.megalithic.me/lightning-services/lsp1-get-inbound-liquidity-for-mobile-clients#step-5-your-client-checks-the-status-of-the-order

See https://github.com/getAlby/nostr-wallet-connect-next/issues/402

Also, whoever is implementing onchain payments needs to to know that the LSPS1 has two confusing fields in the /create_order response...... order_total_sat and min_fee_for_0conf -- you'll need to understand both of these -- we cover them in this part of our documentation:
https://docs.megalithic.me/lightning-services/lsp1-get-inbound-liquidity-for-mobile-clients/#step-3-megalith-responds-to-the-client-with-an-invoice

Update: The LSPS1 spec has a late-breaking change ... https://github.com/BitcoinAndLightningLayerSpecs/lsp/commit/76bc908ba109fbdf7fc92aee53f2ce67cba2314d ... which solves a lot of the complexity around onchain payments. We've updated our API and documentation to match:   https://docs.megalithic.me/lightning-services/lsp1-get-inbound-liquidity-for-mobile-clients


Added mandatory type definition for the filename method in the DataTable stub

The DataTable stub is missing return type for the filename() method. The return type is now required for the method to work properly: https://github.com/yajra/laravel-datatables-buttons/blob/88401e104c260415904f03c4936072722b725e30/src/Services/DataTable.php#L532.


object: separate different sql engines

Codecov Report
Patch coverage: 43.83% and project coverage change: +0.03 :tada:

Comparison is base (a0fde60) 55.06% compared to head (7450767) 55.10%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3365      +/-   ##
==========================================
+ Coverage   55.06%   55.10%   +0.03%
==========================================
  Files         143      146       +3
  Lines       34378    34405      +27
==========================================
+ Hits        18930    18958      +28
+ Misses      13439    13432       -7
- Partials     2009     2015       +6

Impacted Files
Coverage Δ

cmd/info.go
14.78% <0.00%> (-0.60%)
:arrow_down:

pkg/object/sql.go
57.55% <ø> (+3.19%)
:arrow_up:

pkg/object/sql_mysql.go
25.00% <25.00%> (ø)

pkg/object/sql_pg.go
25.00% <25.00%> (ø)

pkg/object/sql_sqlite.go
25.00% <25.00%> (ø)

cmd/objbench.go
57.48% <32.14%> (+0.52%)
:arrow_up:

pkg/vfs/internal.go
53.58% <72.72%> (+0.88%)
:arrow_up:

cmd/bench.go
77.15% <100.00%> (+0.31%)
:arrow_up:

pkg/utils/progress.go
76.06% <100.00%> (-0.21%)
:arrow_down:

... and 3 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Check example documentation for consistency

The tl;dr example in the README is a bit out of date - go through all the docs and check it's all consistent.

#89 #88 #86 #81 #76 There'll be more documentation to come, closing this issue for now.


Flake unit test

  	github.com/openshift/odo/pkg/url/labels	1.011s	coverage: 100.0% of statements
--- FAIL: TestRemoveDuplicate (0.00s)
    --- FAIL: TestRemoveDuplicate/Case_2_-_Remove_duplicates,_none_in_array (0.00s)
        util_test.go:1069: expected [bar foo], got [foo bar]

Seems like the output list changes order and thus the error
https://github.com/openshift/odo/pull/1779#issuecomment-498612277

Thanks for creating the issue. I have also observed it sometime
/area testing


Fix on some integration test to prevent timeouts

Please wait before merging this, I'd like to talk about it


Missing documentation on shape functionality requirements

Is your feature request related to a problem? Please describe.
A shape has 2 requirements to work properly :

Overriding CreateDefiningGeometry, which is used to create the Shape's Geometry,
The most important requirement : A static constructor calling AffectGeometry<T> with its own type with at least BoundsProperty as parameter.

static MyControl()
{
    AffectsGeometry<MyControl>(BoundsProperty);
}

If the following requirements aren't met, the shape will not be visible, no matter the styling applied.
Describe the solution you'd like
One of the following:

A documentation page on making your own shapes, including the previous requirements,
Add new line of documentation to AffectGeometry's xmldoc,
Add new line of documentation to every controls inheriting Shape.

Additional context
Related to #13236, Where shapes weren't appearing due to the previous requirements not being met.

This issue should go into docs then. Any contribution is welcome

This issue should go into docs then. Any contribution is welcome

Indeed, just found out the repo, can't transfert the issue on my own it seems like

Will do it the other day


Add make option to generate automated doc, some polishing

This is not yet included in the Ci, but I wanted to try how it looks like.
Changes:

hide some functions involving account and instrument references
add comment to type synonyms (if you agree this makes sense I will do it across the library, otherwise will remove it)
removed one unused function

There are a couple of quirks when generating doc for interfaces, which we should raise:

interface methods don't seem to be displayed nicely (bold is not taken into account)
interface methods are also duplicated as functions
Plenty of extra type-classes are displayed (and the fact that we use I for all interfaces makes things confusing)

It is an open point where this docs should be hosted and how it gets integrated with the SDK doc. What currently happens is the following:

doc for the standard library is generated using daml damlc docs and exported to some json format
the output json is used in the Sphinx doc build, which is then used to produce https://docs.daml.com/

One option could be:

as part of our release, we produce the doc in json format
this gets downloaded from the main doc build in the daml repo

As an alternative:

we copy over the styling and host on a separate website on our side --> this would ensure that the doc gets updated whenever we release Daml Finance (also if there is no SDK release)

There's a parameter you can use to as an argument to daml damlc docs that excludes the creation of certain typeclasses; this may help a bit. Have a look at the makefile for contingent claims for an example.


feat: bump minimal NodeJS version to 18

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


to debug a simple HTML + JavaScript, through the v Code - the Debugger for Chrome, standard configuration file

Goal: to debug a simple HTML + JavaScript, through the v Code - the Debugger for Chrome, standard configuration file.

Through the Attach to Chrome, with sourcemaps added
This way must be IIS configuration on the website, start the server, in order to debug;And Debugger for Chrome plug-ins is inside said, the trouble is that a small have to configure the demo site.

Through the Launch of Chrome against localhost, with sourcemaps such as but not start the IIS,
"Url" : "http://localhost:8080 how access? Therefore, how to debug?
If start the iis more can't debugging, deserves to be good, because the website http://localhost:8080 is equal to the normal visit website, can't debugging

@Cyclone77 Sorry, I don't understand. What's your first language?

A number of days has past without answer on the questions asked. I am thereby going to close this issue to clean up our backlog of issues. Once you can answer on the questions, the issue can be reopened again. Thanks for understanding this process!


Filter needs modification to use newly exposed content_type field

https://github.com/unified-moderation-network/salamander/blob/4902460c278ea32ed4ade3f98f57c411ccf99a86/src/extensions/filter/filter.py#L95

resolved in 49fb521


API call to list references for a readGroup

Unless I'm missing something, it doesn't seem like there's a way to get a list of referenceIds/referenceNames for a BAM file using the API. This would be really helpful for determining if, say, the alignments are using chr19 or 19 as a reference name.

This is indeed a problem @danvk. Currently, we don't have any proper support for linking references to either reads or variants, and this needs to be addressed. I've opened issue #489 to discuss how we might do this.
I'm not sure if your question goes further than this though. Do you think the schema itself supports the functionality you need, or is this just a missing feature in the server? If the functionality is not possible in the schema, then this issue needs to be raised on the ga4gh/schemas issues list.

I am in fact proposing an extension to the API. I've opened an issue in ga4gh/schemas.


Improve development workflow for DX Hub plugins

Context
The initial version of this repo was not designed to release the individual plugins we will add to DX Hub over time. We want to make these plugins available to Backstage adopters and therefore need a way to publish them via the central npm registry.
This question fits into the broader context of managing this repo as a "mono repo". Looking at the evolution and the current state of these repos, we see that there is no single approach:

Some organizations have migrated to yarn 3, while others are still using yarn 1
Some organizations have dropped lerna while moving to yarn 3
Some organizations have upgraded to a more recent version of lerna
The pipelines, implemented as GitHub workflows, vary quite a lot

Here are (some of) the repos that we have studied:

https://github.com/backstage/backstage
https://github.com/RoadieHQ/roadie-backstage-plugins
https://github.com/thefrontside/playhouse
https://github.com/janus-idp/backstage-plugins

Approach
We will start with a simple solution and evolve it over time. The objectives of the first step are:

stay on yarn 1 until it becomes the recommended version for Backstage (today, the documentation explains how to migrate to yarn 3, but the scaffolder still uses yarn 1)
upgrade to the latest version of lerna
use the independent mode for lerna, so that we can manage versions for our plugins independently
implement a release pipeline that publishes plugins on npmjs.com

After digging into this topic, only using lerna does not seem to be enough. Running lerna version forces us to specify a new version for every package (even the packages that have not been modified).
We are going to use changesets and the companion GitHub action to help us. The main reason is that it is used both in the backstage/backstage and in the RoadieHQ/roadie-backstage-plugins repos (with different configurations...).
This article compares some alternatives to changesets: https://www.hamzak.xyz/blog-posts/release-management-for-nx-monorepos-semantic-release-vs-changesets-vs-release-it-

This is a great, short video about changesets and the companion GitHub action: https://www.youtube.com/watch?v=eh89VE3Mk5g

See the origin of using changesets in Backstage: https://github.com/backstage/backstage/issues/1839

I have installled: https://github.com/apps/changeset-bot


href globalUrl directs to wrong url

What did you do?
I installed and ran Prometheus on my WSL2 Ubuntu Linux Distro.
Navigated to http://localhost:9090/targets using browser on my windows operating system.
Under the leftmost Endpoint section, there is one Endpoint displayed http://localhost:9090/metrics
I click on the link trying to see the output

What did you expect to see?
I expect to navigate to http://localhost:9090/metrics
What did you see instead? Under which circumstances?
Instead, I navigated to http://DESKTOP-XXXXXX:9090/metrics where DESKTOP-XXXXX is the hostname of my WSL2 Ubuntu Distro
And no surprisingly, this url doesn't work. I have to manually type the url.
It seems href and link in <a href>link</a> doesn't match each other:

I checked the source code and find this:

Just curious, why do they need to be different, and under what circumstances, this difference would be beneficial?
System information
Linux <IP_ADDRESS>-microsoft-standard-WSL2 x86_64
Prometheus version
prometheus, version 2.45.2 (branch: HEAD, revision: 3d6b7e665928a78c4a18675802436fe92f3f4e04)
  build user:       root@3b1b6808f1b0
  build date:       20231219-14:07:38
  go version:       go1.21.5
  platform:         linux/amd64
  tags:             netgo,builtinassets,stringlabels

Prometheus configuration file
## Default config file ##

Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response

I'd say this is the "expected" behavior even though it may seem confusing, the shown URL is the one Prometheus scrapes and the one in the href is built by prometheus from it's --web.external-url hoping to make it reachable to users from the browser.
This is done here https://github.com/prometheus/prometheus/blob/78c5ce3196e729ded7dbe13cc5c92eb4196c2d19/web/api/v1/api.go#L939-L981 if you want to take a look.

does this need any help? I can help with this as I am new to this repository

Maybe some more comments in the code. I don't know if it's worth mentioning in the doc.


Azure Add role assignment document does not have option "Azure AD user, group, or service principle"

Document Details
Documentation https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal#add-a-role-assignment
has a picture

however in fact there is no option "Azure AD user, group, or service principle"
only "User, group, or service principle"

Could you please update the documentation?
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5bc3bc72-3623-6acf-44e2-887ad49ffd96
Version Independent ID: 73530cea-caa3-4159-0f4b-d67407abb315
Content: Add or remove Azure role assignments using the Azure portal - Azure RBAC
Content Source: articles/role-based-access-control/role-assignments-portal.md
Service: role-based-access-control
GitHub Login: @rolyon
Microsoft Alias: rolyon

@abilous-ti Thanks for the feedback! We are currently investigating and will update you shortly.

@abilous-ti Thanks for the feedback! We are currently investigating and will update you shortly.

@abilous-ti Thank you for catching this. The details refer to the same thing but we will get the screenshot updated.

@abilous-ti Thank you for catching this. The details refer to the same thing but we will get the screenshot updated.

@abilous-ti This has been updated . We will now close this issue  . Thank you.

@abilous-ti This has been updated . We will now close this issue  . Thank you.


RPN model evaluation Bug

https://github.com/open-mmlab/mmdetection/blob/3620bb74893ef688b3243652042660e1b5866d5e/mmdet/datasets/custom.py#L318
I think here should be iou_thrs instead of iou_thr

Hi @sleepfin
Thanks for pointing out. Would you like to create a PR to fix it?


Maintain Account Lock Reason in the claim for Identity Management Rest APIs

A user can be locked due to different reasons like

Admin initiated account lock
Exceed maximum attempts and lock the account.

We need to validate all the possible reasons for an account lock and add the exact reason to the claim.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


feat(elements)!: rewrite with elements

This PR prepares Docus for a rewrite with @nuxt-themes/elements
It removes most components, and the dependency of tailwindcss.
That branch is made to be used with @nuxt-themes/elements locally.

This has been resolved by latest work on both Docus and Elements.


Broken with iOS7?

I notice that http://apps.tomttb.com/pkpass/full_sample does not work on iOS 7. The downloaded pass will load into the iOS simulator, but in Safari I'm getting
"Download Failed - Safari cannot download this file.", and in mobile Chrome I'm getting "Sorry, this pass cannot be added to Passbook at this time".

Same issue here, but nothing is showing when I tail system.log after dragging a pass file into the simulator.
Any suggestions?

Two suggestions:

Make sure you're using a valid certificate. The one in the sample, if it's still generating invalid passes, is likely expired
As suggested, the iOS Simulator's console output(Debug > Open System Log / cmd+/) should give you all you need to know about pass formatting issues. The most common issue I run into is my application putting null in the json where a value is required(ie, the "value" index of a field dictionary).

The sample's error output is:
Jul 27 17:03:26 j.local MobileSafari[96561]:  SecTrustEvaluate  [leaf ValidLeaf]
Jul 27 17:03:26 j.local MobileSafari[96561]: Invalid data error reading pass pass.nl.mijnbc.test/123456. The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified.
Jul 27 17:03:26 j.local MobileSafari[96561]: PassBook Pass download failed: The pass cannot be read because it isn’t valid.

Note that the OSX passbook loader is much more lenient than iOS's, so using the simulator is important.
As I can verify that the library is still working as expected for all current versions of iOS, I am closing this issue.


tensorflow embedding intent classifier GPU optimization issue

Rasa NLU version: 0.13.1
Operating system (windows, osx, ...): ubuntu
Content of model configuration file:
language: "en"

pipeline:
- name: "intent_featurizer_count_vectors"
- name: "intent_classifier_tensorflow_embedding"
  "epochs": 3000

Issue: Training time on GPU and CPU are almost same. I tested this with Nvidia P100 GPU on google club services.

@princerk thanks for testing this out, but I'm afraid that without more information this is impossible to comment on.

how much data do you have?
how long does training take?
what kind of speedup were you expecting? running on a GPU doesn't guarantee things will always be faster, there is overhead in moving computations to the GPU
are you sure tensorflow is able to see and run on the GPU?

Hi, @amn41 Does Rasa core support tensorflow-gpu?

Hi @amn41, thanks for quick reply
I tested on with the example data given the this repo
rasa_nlu/data/examples/rasa/demo-rasa.json
Currently it has only 42 examples with 4 intents, to increase the data size I copied the same training data multiple times. taking it to 170K examples, just to see how does it affect the training time on GPU vs CPU. Initially for small data size I waited to complete the training but for large data size I only saw the it/s. I am sure it is using the GPU as you can see in the following log message.
2018-08-17 15:51:16 INFO     rasa_nlu.training_data.loading  - Training data format of demo-rasa.json is rasa_nlu
2018-08-17 15:51:16 INFO     rasa_nlu.training_data.training_data  - Training data stats:
- intent examples: 42 (4 distinct intents)
- Found intents: 'restaurant_search', 'greet', 'affirm', 'goodbye'
- entity examples: 11 (2 distinct entities)
- found entities: 'cuisine', 'location'
2018-08-17 15:51:16 INFO     rasa_nlu.model  - Starting to train component intent_featurizer_count_vectors
2018-08-17 15:51:16 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 15:51:16 INFO     rasa_nlu.model  - Starting to train component intent_classifier_tensorflow_embedding
2018-08-17 15:51:21.075255: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-08-17 15:51:21.263911: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-08-17 15:51:21.264378: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1405] Found device 0 with properties:
name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285
pciBusID: 0000:00:04.0
totalMemory: 15.90GiB freeMemory: 15.51GiB
2018-08-17 15:51:21.264414: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1484] Adding visible gpu devices: 0
2018-08-17 15:51:22.906366: I tensorflow/core/common_runtime/gpu/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-08-17 15:51:22.906455: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971]      0
2018-08-17 15:51:22.906466: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0:   N
2018-08-17 15:51:22.907796: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15031 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)
2018-08-17 15:51:23 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Accuracy is updated every 10 epochs
Epochs: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3000/3000 [00:17<00:00, 173.59it/s, loss=0.004, acc=1.000]
2018-08-17 15:51:40 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Finished training embedding policy, loss=0.004, train accuracy=1.000
2018-08-17 15:51:40 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 15:51:40 INFO     rasa_nlu.model  - Successfully saved model into '/home/r0k00d7/rasa-gpu-test/projects/default/model_20180817-155140'
2018-08-17 15:51:40 INFO     main  - Finished training

thanks @princerk ! I wouldn't expect any speed difference because this is a tiny amount of data, so all the wall-clock time is spent initializing. If you have a dataset with a few thousand training examples I would expect you to start seeing differences

@amn41 For small data size CPU out performed GPU. I thought maybe because the file transfer to the GPU it taking more time.
Find below the log for 2688 examples on GPU vs CPU, If you want I can provide the log with more examples.
GPU log:
2018-08-17 16:11:30 INFO     rasa_nlu.training_data.loading  - Training data format of demo-rasa.json is rasa_nlu
2018-08-17 16:11:30 INFO     rasa_nlu.training_data.training_data  - Training data stats:
- intent examples: 2688 (4 distinct intents)
- Found intents: 'greet', 'restaurant_search', 'affirm', 'goodbye'
- entity examples: 704 (2 distinct entities)
- found entities: 'cuisine', 'location'
2018-08-17 16:11:30 INFO     rasa_nlu.model  - Starting to train component intent_featurizer_count_vectors
2018-08-17 16:11:30 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:11:30 INFO     rasa_nlu.model  - Starting to train component intent_classifier_tensorflow_embedding
2018-08-17 16:11:33.574997: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-08-17 16:11:33.695800: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-08-17 16:11:33.696252: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1405] Found device 0 with properties:
name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285
pciBusID: 0000:00:04.0
totalMemory: 15.90GiB freeMemory: 15.51GiB
2018-08-17 16:11:33.696286: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1484] Adding visible gpu devices: 0
2018-08-17 16:11:34.009790: I tensorflow/core/common_runtime/gpu/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-08-17 16:11:34.009876: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971]      0
2018-08-17 16:11:34.009886: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0:   N
2018-08-17 16:11:34.010244: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15031 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)
2018-08-17 16:11:34 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Accuracy is updated every 10 epochs
Epochs: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 300/300 [00:45<00:00,  6.64it/s, acc=1.000, loss=0.006]
2018-08-17 16:12:19 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Finished training embedding policy, loss=0.006, train accuracy=1.000
2018-08-17 16:12:19 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:12:19 INFO     rasa_nlu.model  - Successfully saved model into '/home/r0k00d7/rasa-gpu-test/projects/default/model_20180817-161219'
2018-08-17 16:12:19 INFO     main  - Finished training
CPU log:
2018-08-17 16:13:12 INFO     rasa_nlu.training_data.loading  - Training data format of demo-rasa.json is rasa_nlu
2018-08-17 16:13:12 INFO     rasa_nlu.training_data.training_data  - Training data stats:
- intent examples: 2688 (4 distinct intents)
- Found intents: 'restaurant_search', 'greet', 'affirm', 'goodbye'
- entity examples: 704 (2 distinct entities)
- found entities: 'cuisine', 'location'
2018-08-17 16:13:13 INFO     rasa_nlu.model  - Starting to train component intent_featurizer_count_vectors
2018-08-17 16:13:13 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:13:13 INFO     rasa_nlu.model  - Starting to train component intent_classifier_tensorflow_embedding
2018-08-17 16:13:16.338049: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-08-17 16:13:16 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Accuracy is updated every 10 epochs
Epochs: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 300/300 [00:42<00:00,  7.12it/s, acc=1.000, loss=0.002]
2018-08-17 16:13:58 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Finished training embedding policy, loss=0.002, train accuracy=1.000
2018-08-17 16:13:58 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:13:58 INFO     rasa_nlu.model  - Successfully saved model into '/home/r0k00d7/rasa-gpu-test/projects/default/model_20180817-161358'
2018-08-17 16:13:58 INFO     main  - Finished training

GPU log:
2018-08-17 16:35:08 INFO     rasa_nlu.training_data.loading  - Training data format of demo-rasa.json is rasa_nlu
2018-08-17 16:35:10 INFO     rasa_nlu.training_data.training_data  - Training data stats:
- intent examples: 43008 (4 distinct intents)
- Found intents: 'goodbye', 'restaurant_search', 'greet', 'affirm'
- entity examples: 11264 (2 distinct entities)
- found entities: 'cuisine', 'location'
2018-08-17 16:35:12 INFO     rasa_nlu.model  - Starting to train component intent_featurizer_count_vectors
2018-08-17 16:35:12 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:35:12 INFO     rasa_nlu.model  - Starting to train component intent_classifier_tensorflow_embedding
2018-08-17 16:35:16.400323: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-08-17 16:35:16.510552: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-08-17 16:35:16.511031: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1405] Found device 0 with properties:
name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285
pciBusID: 0000:00:04.0
totalMemory: 15.90GiB freeMemory: 15.53GiB
2018-08-17 16:35:16.511065: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1484] Adding visible gpu devices: 0
2018-08-17 16:35:16.830469: I tensorflow/core/common_runtime/gpu/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-08-17 16:35:16.830534: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971]      0
2018-08-17 16:35:16.830558: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0:   N
2018-08-17 16:35:16.830866: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15049 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)
2018-08-17 16:35:17 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Accuracy is updated every 10 epochs
Epochs: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 300/300 [12:37<00:00,  2.52s/it, acc=1.000, loss=0.002]
2018-08-17 16:47:54 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Finished training embedding policy, loss=0.002, train accuracy=1.000
2018-08-17 16:47:54 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:47:55 INFO     rasa_nlu.model  - Successfully saved model into '/home/r0k00d7/rasa-gpu-test/projects/default/model_20180817-164754'
2018-08-17 16:47:55 INFO     main  - Finished training
CPU log:
2018-08-17 16:19:56 INFO     rasa_nlu.training_data.loading  - Training data format of demo-rasa.json is rasa_nlu
2018-08-17 16:19:58 INFO     rasa_nlu.training_data.training_data  - Training data stats:
- intent examples: 43008 (4 distinct intents)
- Found intents: 'affirm', 'greet', 'restaurant_search', 'goodbye'
- entity examples: 11264 (2 distinct entities)
- found entities: 'cuisine', 'location'
2018-08-17 16:19:59 INFO     rasa_nlu.model  - Starting to train component intent_featurizer_count_vectors
2018-08-17 16:20:00 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:20:00 INFO     rasa_nlu.model  - Starting to train component intent_classifier_tensorflow_embedding
2018-08-17 16:20:03.936169: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-08-17 16:20:03 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Accuracy is updated every 10 epochs
Epochs: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 300/300 [12:11<00:00,  2.44s/it, loss=0.002, acc=1.000]2018-08-17 16:32:15 INFO     rasa_nlu.classifiers.embedding_intent_classifier  - Finished training embedding policy, loss=0.002, train accuracy=1.000
2018-08-17 16:32:15 INFO     rasa_nlu.model  - Finished training component.
2018-08-17 16:32:15 INFO     rasa_nlu.model  - Successfully saved model into '/home/r0k00d7/rasa-gpu-test/projects/default/model_20180817-163215'
2018-08-17 16:32:15 INFO     main  - Finished training

I understand there are many factors which determines whether the training on GPU would take less time than CPU, one of the factor is the computation that is being done, If most the time goes in reading the data from memory then it is not expected to gain performance from the GPU, to test this out I am increasing the embedding dimensions and the number of layers, and will see how it goes, any other suggestion would be really helpful. because I am getting good classification result with the default number of layers.

@lisongshan rasa_core supports training on GPU. I am not sure about the improvement in training time,I tried with get started example given in rasa_core docs.


documentation training on MPII failure

I download both the source code and the data.zip but when tried to execute
python train.py --epochs=50 --batch_size=512 --lr=0.0001  --coco=True
this message appears, I guess it has something to do with the relative paths while parsing
python train.py --epochs=50 --batch_size=512 --lr=0.0001  --coco=True
Namespace(GPU=True, MSRVTT=False, batch_size=512, coco=True, coco_sampling_rate=1.0, epochs=50, eval_qcm=False, lr=0.0001, lr_decay=0.95, margin=0.2, model_name='test', momentum=0.9, n_cpu=1, n_display=100, optimizer='adam', seed=1, text_cluster_size=32)
Pre-loading features ... This may takes several minutes ...
Traceback (most recent call last):
  File "train.py", line 162, in <module>
    path_to_audio, mp_flow_path, mp_face_path, coco=args.coco)
  File "/home/estathop/Mixture-of-Embedding-Experts/LSMDC.py", line 76, in __init__
    coco_visual = np.load(coco_visual_path)
  File "/home/estathop/anaconda2/envs/tensorflow/lib/python2.7/site-packages/numpy/lib/npyio.py", line 384, in load
    fid = open(file, "rb")
IOError: [Errno 2] No such file or directory: '../X_train2014_resnet152.npy

I tried to rename the coco_visual_path='../X_train2014_resnet152.npy' ,coco_text_path='../w2v_coco_train2014_1.npy' paths in LSMDC.py but with no success, any thoughts ?

changing the relative paths to absolute paths where the 2 files are located seem to work


Mobile app support

There are apps like Samsung SideSync, Realme Link, and similarly, lots of apps with system privilege exists. Why not implement the same for scrcpy?
Problem: scrcpy is unusable or unreliable without ADB access
Solution: Make a mobile app that acts as a security access point for both mobile and desktops.
List of possibilities:

Magisk module and root access to allow permissions
Flashable zip file to the android phone
Setting permissions to the app through ADB commands (similar to how 3rd party navigation gesture apps work)
Use screen recorder permissions to share audio and video to the PC. For mouse and keyboard, there are many ways. Accessibility settings can be used to control the phone (not sure how this thing works). One-time ADB command can be used to grant some input permissions to the app. And, I have seen sightings of libusb or similar modules in some Github issues.

1st 2 ways are meant for advanced developers or custom ROM users, which will be much more reliable and stay as easy as flashing zip from recovery. The other 2 ways are meant for literally everyone who somehow wants to make the scrcpy work wirelessly without voiding the warranty or breaking system updates.
For the user interface, let the app stay a very basic UI and be open source and the community will shine, making replicas for the scrcpy app with beautiful UI and mods (even Android TVs can be benefitted xD).

Actually root or adb prevelegies are unneded here. All you need is Mirroring and Accessibility APIs. There are a lot of android vnc servers using those apis.


X264 fixes

This switches x264 from "baseline" profile to "high". Re-adding "baseline" will come as a later CL.

@kierank do you want to take a look?
This should address #13.

One question, otherwise looks good.


enable Greenkeeper

I tried to do it myself but I don’t have admin access to the repository

and could you please active this repo at travis, too? Or make me an admin?

Activated! Not sure how to make you an admin, though. You mean in Github or in Travis or...?

GK enabled, Travis enabled


Add Russian Calendar into README

Thank you for taking the time to work on a Pull Request for this project!
To ensure your PR is dealt with swiftly please check the following:

[x] Your submissions are formatted according to the guidelines in the contributing guide
[x] Your additions are ordered alphabetically
[x] Your submission has a useful description
[x] The description does not end with punctuation
[x] Each table column should be padded with one space on either side
[x] You have searched the repository for any relevant issues or pull requests
[x] Any category you are creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Hi @egno , thanks for the PR. Can you please update the description to read "Check if a date is a holiday or not" ?

It means, this API recieves a date and returns information, this is a working day or a day off in Russia. That's better?
I didn't find where I should make changes. Please, help me.

Thanks!


Repo doesn't build with --preset vs2022-dev on fresh checkout

To repro on Windows:
cmake --preset vs2022-dev

Then open the solution, and build. Will produce build errors.

I found the problem, I forgot to recursively update submodules. Not sure if we can make this automatic or have better error message to indicate the problem. Closing now.


Cannot get this to work

Hi,
The extension installs OK, but when I try to launch it, I get this error and the space hangs...
File "/mnt/AISSD/forge2024/extensions/forge-space-ollama/forge_app.py", line 215, in <module>     all_models, default_model, default_tab, keep_alive, history_depth = load_configs()                                                                         ^^^^^^^^^^^^^^   File "/mnt/AISSD/forge2024/extensions/forge-space-ollama/forge_app.py", line 61, in load_configs     all_models: list[str] = list_models()                             ^^^^^^^^^^^^^   File "/mnt/AISSD/forge2024/extensions/forge-space-ollama/forge_app.py", line 38, in list_models     return [model["name"] for model in models]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/mnt/AISSD/forge2024/extensions/forge-space-ollama/forge_app.py", line 38, in <listcomp>     return [model["name"] for model in models]             ~~~~~^^^^^^^^   File "/mnt/AISSD/forge2024/venv/lib/python3.11/site-packages/ollama/_types.py", line 20, in __getitem__     return getattr(self, key)            ^^^^^^^^^^^^^^^^^^   File "/mnt/AISSD/forge2024/venv/lib/python3.11/site-packages/pydantic/main.py", line 828, in __getattr__     raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}') AttributeError: 'Model' object has no attribute 'name'
The config file has an empty hash in it, please supply an example of the structure so that we can get past this error.

The new version of the Ollama package changed how the function works...
Please update the Extension, and click Reinstall in the Spaces tab as well, then it should work afterwards.


Google search integration

Google search
a friendlier 404 page

I have mixed feelings about this feature, because we lose the real-time search, and introduces a bunch of adds in the result.

closing this PR as we've decided to stick with Algolia for now :)


Unify tutorial code style

Up to Step 6 the code is ES6, Step 7 and 8 are classic JS
Should be unified

@mcollina @davidmarkclements This one is your call. It really depends on what minimum spec ye use when giving this workshop.

so.. min atm is Node 4 - which supports a subset of es6  (lambdas, let, const etc)
having a quick look through it seems the es6 code is node 4 friendly,
tl;dr - make it work on node 4, use es6 that works on node 4

Awesome, sounds like a plan. @mihaidma In the readme can you add,
Supports: Node 4.x +
Tested On: Win7, Win10, OSX, Linux
And in the setup we need to add, to work through this workshop on Linux please set proxy: 'none' in the fuge-config.js for each step.

can we also please just check the examples with node 4
and make the syntax consistent in the last 2 steps
thanks @mihaidma @mcdonnelldean !

@davidmarkclements  the examples work with node 4

@davidmarkclements Can confirm too. I used LTS on Windows to check which is 4x

:+1:

solved: https://github.com/nearform/micro-services-tutorial-iot/pull/46


Serial Break

Is it possible to send a serial break?
Thanks

Not directly with the ORSSerialPort API, no. To be honest, this is the first time this question has come up. You may be able to use tcsendbreak() on the underlying file descriptor for the serial port, but that's not something I've tested myself. The file descriptor is available in the fileDescriptor property on ORSSerialPort. That's a "private" property, not exposed in the public interface, but you could redeclare it in a category to access it, at least to try this approach out. If you get it working, I'd love to know about it.

Closing as answered.


Getting "context deadline exceeded" in preview 7 for large app

I am getting "context deadline exceeded" when running a large app with about 20 projects with the debugger attached:

The state in the dashboard for the projects that time out is simply "Failed to start".
Using aspire preview 7
This may be related to https://github.com/dotnet/aspire/issues/3435
Output from dotnet --info:
.NET SDK:
 Version:           8.0.300-preview.24203.14
 Commit:            b7e38f457d
 Workload version:  8.0.300-manifests.888fe647
 MSBuild version:   17.10.0+4f6b1bb28

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.300-preview.24203.14\

.NET workloads installed:
 [aspire]
   Installation Source: SDK 8.0.300-preview.24203, VS 17.10.34902.84
   Manifest Version:    8.0.0-preview.7.24251.11/8.0.100
   Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.0.0-preview.7.24251.11\WorkloadManifest.json
   Install Type:        FileBased

Host:
  Version:      8.0.4
  Architecture: x64
  Commit:       2d7eea2529

.NET SDKs installed:
  6.0.418 [C:\Program Files\dotnet\sdk]
  8.0.204 [C:\Program Files\dotnet\sdk]
  8.0.300-preview.24203.14 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.29 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.29 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.18 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.29 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.18 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Output from dotnet workload list:
Installed Workload Id      Manifest Version                      Installation Source
-------------------------------------------------------------------------------------------------------------
aspire                     8.0.0-preview.7.24251.11/8.0.100      SDK 8.0.300-preview.24203, VS 17.10.34902.84

Using VS 17.10.0 Preview 7
I have tried to defer as much initialization as possible in the individual projects so that they can start as fast as possible, yet I still get the timeout. It seems as if it is always the last projects that times out, and the number of projects that times out varies from run to run. It could seem as if the timeout time is computed from starting the first project, leaving the last projects to be started in the faith of the first ones being fast.
It should be noted that the the aspire host app runs fine when the debugger is not attached, where the individual projects start up much faster.

@rmja the timeout for the project startup is now 30 seconds, but it can be extended further by setting DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable. If you set it to something like 180 (3 minutes), does the problem go away?

Thanks @karolz-ms, it works with the extended timeout!

The timeout is per project.   However, after discussing with @karolz-ms , perhaps we may try to bump the timeout as well as give a better error message when we hit this timeout that includes the variable to set.

We've increased the default timeout to 2 minutes and added a more helpful error message in the event of a timeout that informs users they can override the value of DCP_IDE_REQUEST_TIMEOUT_SECONDS.


Updated user guide to include Amazon OpenSearch Serverless

Signed-off-by: saimedhi<EMAIL_ADDRESS>Description
Updated user guide to include Amazon OpenSearch Serverless
Issues Resolved
Closes #371
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

The only difference is the service name? Maybe just collapse the two sections and let’s say that?

The only difference is the service name? Maybe just collapse the two sections and let’s say that?

ok

Sorry for too many revisions. Made the changes as suggested.


Add lambda in factories_spec error messages

When factories fails we don't see any error message :
Failures:

  1) factories request factory is valid
     Failure/Error: expect(factory).to be_valid, factory.errors.full_messages.join(',')
     # ./spec/models/factories_spec.rb:8:in `block (3 levels) in <top (required)>'

After this fix :
Failures:

  1) factories request factory is valid
     Failure/Error: expect(factory).to be_valid, lambda { factory.errors.full_messages.join(',') }
       Apartments doit être rempli(e)
     # ./spec/models/factories_spec.rb:7:in `block (3 levels) in <top (required)>'

See : https://github.com/thoughtbot/factory_girl/wiki/Testing-all-Factories-(with-RSpec)

Nice, thank you! Would you mind fixing that rubocop violation? Maybe make the lambda multiple lines

@jurre done :D

Thanks!!


Whitelist manager list is suddenly empty

Don't know what happened but suddenly it does not list any whitelist entries anymore.
following  error shows up in console:

Uncaught TypeError: t.onClick is not a function
   at HTMLDivElement.onclick (esgst.js:1)
onclick @ esgst.js:1
esgst.js:1 Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
   at t.<anonymous> (esgst.js:1)
   at w (esgst.js:54)
   at Generator._invoke (esgst.js:54)
   at Generator.e.(anonymous function) [as next] (chrome-extension://fekmnijijhcjkhoknkombinhhdnibdjn/esgst.js:54:15035)
   at n (esgst.js:1)
   at r (esgst.js:1)
(anonymous) @ esgst.js:1
w @ esgst.js:54
(anonymous) @ esgst.js:54
e.(anonymous function) @ esgst.js:54
n @ esgst.js:1
r @ esgst.js:1
Promise.then (async)
n @ esgst.js:1
r @ esgst.js:1
(anonymous) @ esgst.js:1
(anonymous) @ esgst.js:1
(anonymous) @ esgst.js:1
(anonymous) @ esgst.js:1
value @ esgst.js:1
(anonymous) @ esgst.js:1

The data seems to still to be there as it shows the signs besides names on other pages

Please specify what you mean by "whitelist manager".

Settings > "Manage Whitelist/Blacklist Checker caches:" button

Thanks, there's a feature literally called Whitelist/Blacklist Manager, so I got confused. xD

I've fixed the t.onClick console error, but I don't think it's related, because I get it and the list shows up fine for me.
I think the relevant error is Cannot read property 'id' of undefined, but I don't know yet where it's coming from.

Those logs referring only to line 1 aren't really helping XD
I noticed the blacklist counter to drop that day, maybe someone deleted his account which tripped some checking function somewhere.
Could also possibly be some unrelated data corruption but not sure how to investigate that.
I tried loading a one week old backup but that did not help.

Yeah, that's Babel, it minifies the entire code for the user. You can possibly get better logs if you test with the dev version, because dev versions aren't compiled with Babel.

``
Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
at UsersWhitelistBlacklistChecker.wbc_setCheck (esgst.js:110939)

I added a check to v8.1.6 (Dev.29) that allows you to bypass the bug, but if you want to actually fix it, I also added some logs to that version that output the username of the user followed by their Steam ID.
So you can install that version and see what the last log is, and then manually see what's the username of that user by going to https://www.steamgifts.com/go/user/XXXXXXXXXXXXXXXXX.

I have run a WL check (which I have avoided out of data loss fear) on the previous version. That made the list reappear, but the exception still happens.
I have now upgraded and got the causing user with the log. Doing a recheck even with clearing cache does not resolve that error. Don't know what's so special about this one
undefined
76561198036886086
https://www.steamgifts.com/go/user/76561198036886086
https://www.steamgifts.com/user/PraiseRhllor

I'm not visiting steamtrades with the Script on all too much but it can possibly have happened.
Is there anyway for me to reset the data for this specific user?

What did you mean when you said that the list reappeared but the exception still happened? The error should be gone, is it not?

The user might be wrong, I've added a new log to the latest dev version that should output the correct user. Can you test it?

Closing due to inactivity. If this is still happening, please let me know.


Update Composer dependencies (2021-07-29-00-02)

Visual regression test passed!
View the visual regression test report


Missing "integrating other libraries" wiki page

From @parenparen on September 16, 2018 18:55
https://github.com/processing/p5.js/wiki/Integrating-other-libraries link is broken on https://p5js.org/learn/. It looks like the page might have been deleted.
Copied from original issue: processing/p5.js#3219

Can i close this issue? @lmccart

i have replaced the old broken link with the new one https://github.com/processing/p5.js/blob/master/developer_docs/creating_libraries.md @lmccart

@hyperkookie this is still present in the src code, can you link to where you've made this update?
https://github.com/processing/p5.js-website/blob/master/src/templates/pages/learn/index.hbs#L109

i've just completed the changes, submitting code with changes now.

this was fixed in https://github.com/processing/p5.js-website/commit/a53f4faee93f0f6b72f9dfab7981fb14ca68866f


Possible tweak to ensure complete call total

NOTE: I can’t test this locally because there’s an error, so I’m doing
this blind Please confirm it works. E.g. will typescript let me add a
number to a string and return a number here?

Also, I'll add this here too. This is the link from our internal dashboard justifying the addition of these calls. There were multiple campaigns and the leaderboard is only tracking one campaign. https://github.com/fightforthefuture/battleforthenet/blob/master/images/12-13-2017-callpower-stats.png

received approval from two devs. merging.


Wallet not syncing

Good afternoon
I brought spacemesh a few weeks ago however I've been trying to set up the wallet ready for transferring but without success. I've been trying for the last 2 weeks. 1. When are you going to have a easy to use wallet. This problem is making me want to sell. 2. What am I doing wrong, the first stage of creating the wallet was simple, the problem I have is the network is not syncing, I have tried over a couple of weeks first by doing a full sync and most recently trying a quick sync. It's currently stating preparing node cache. What do you suggest, I'm losing my patience
Many thanks
Kayleigh
spacemesh-log-7c8cef2b.txt
Uploading spacemesh-log-7c8cef2b.txt…

If it's saying preparing the node cache then all good. Keep it running for few minutes (will be faster with soon to be released 1.5.0) and it will run.


Thanks a lot :heart:


Game force aspect ratio: new feature proposal

Hi,
I want to propose a new feature for Monogatari. Its to force an aspect ratio for game images.
I already changed Monogatari code for what I want, and I am going to use it on my game.
Here is an example: https://fsvieira.github.io/thecorporation/

You can try to change window size,
You can test it with phone simulation on browser with different phone orientation.

There is also the advantage that we can define size (width, height) and position as % of the total size of images, witch I think is more predictable than the current solution.
I also have changed menu and speech text to appear outside of game visuals area, this way we can still use the screen space outside of game visuals, and if game visual fill all screen it will work as is currently working.
Before I do a pull request, I need to figure out how to put this as a new option on options file.
So my question is, what would be the best way to put this on options ? maybe a flag to activate this mode ?

Hi there that would be an awesome feature!
In fact, we probably should see if we can take advantage of the existing variables used for electron which uses the AspectRatio option and Resolution preference to work. What happens on electron is that given the Aspect ratio you want to keep, it generates all possible resolutions that fit that and puts them as a select on the settings screen so you can choose from them. Take a look at the electron function here
Enclosing the game visual elements on a specific element to differentiate them from the UI as you did is probably a good idea though (even without it being resized). We would only need to check if that could limit anything on the future but I can't think of anything right now so seems to be good.
If we can link it to the electron options, maybe we would only need an EnforceAspectRatio boolean variable or something like that. If that variable is set to true, then you would set up the resize listener on the bind () stage of the GameScreen component life cycle.
Maybe use a data-content="visuals" instead of the game_visuals id for identification. Also, remember Artemis is used on the game's core instead of jQuery so if you need any help translating the functions, let me know!

Hi,
I think this is done, so I am going to close it. Thank you for all your help.


[New Snap] Chainsafer

Checklist
All items in the list below needs to be satisfied.

[x] Is the Snap repository publicly accessible and linked in this ticket? https://github.com/trendmicro/app-metasec-chainsafer-snap
[x] Is the Snap distributed on npm and linked in this ticket? https://www.npmjs.com/package/tm-chainsafer-snap-beta
[x] Has an audit been performed and the audit report attached or linked in this issue? https://github.com/slowmist/Knowledge-Base/blob/master/open-report-V2/blockchain-application/SlowMist Audit Report - Chainsafer Snap_en-us.pdf
[ ] Is a complete list of discovered vulnerabilities from the audit documented in this issue?
[ ] For vulnerabilities that have been deemed necessary to be addressed, are the links to the fixes attached to this issue?
[ ] For vulnerabilities that have been deemed not necessary to be addressed, is a reason for each of them documented in this issue?
[ ] The corresponding pull request in this repo has been merged.

List of discovered vulnerabilities:

[N1] [Low] an issue in obtaining ChainID - Fixed in https://github.com/trendmicro/app-metasec-chainsafer-snap/commit/4ceb4d952e8a31af6fe34b944bb480135e4ed204

The remaining findings are recommendations and not required to be addressed. Regardless, both were fixed.
The version to allowlist is 1.0.227


Use the common frequenz API

I would add a release notes entry mentioning the split, as downstream projects could be accessing some of the common objects or enums, and now they need to be imported from a different place in python, and if used explicitly, the frequenz-api-common pip package should be added to the dependencies too.

Of course.
This is still a draft PR, and is WIP. I'll update people when it's ready for a review.

Closed this because the tests were waiting indefinitely for the outdated python versions.
I will create a new PR for this instead.


create a python package

I need to be able to share this code.
FIgure out how to create a package

OK - fumbled through that the first time.
perftest@ubuntu:~/.local/share$ pip show iqss-gh-reporting
Name: iqss-gh-reporting
Version: 0.1
Summary: collects raw data from github and transforms it into a format that can be used for reporting
Home-page: http://localhost/
Author: Mike Reekie
Author-email<EMAIL_ADDRESS>License: MIT
Location: /home/perftest/.local/lib/python3.10/site-packages
Requires: gql, json2xml, pandas, pathvalidate, PyGithub
Required-by:
perftest@ubuntu:~/.local/share$

bash -cl "/usr/bin/python3.10 /home/perftest/DevCode/github-com-mreekie/iqss_gh_reporting/setup.py bdist_wheel"; pip install .

I set it up so that this is where you should run it from
perftest@ubuntu:~/iqss_gh_reporting$ pwd
/home/perftest/iqss_gh_reporting
perftest@ubuntu:~/iqss_gh_reporting$ find . -type d
.
./run
./run/in
./run/wrk
./run/out
perftest@ubuntu:~/iqss_gh_reporting$

this is a sample shell script.
#!/usr/bin/bash

sprint_name=
collection_flag=
src_file_name=
src_dir_name=
collection_timestamp=

echo ">>$sprint_name"

#create_iq_snapshot_init_sprint.py --sprint_name "April 12, 2023" \
#                                  --collection_flag "start" \
##                                  --src_file_name "2023_04_12-sprint-20230412-1632-02.csv" \
#                                  --src_dir_name "~/DevCode/github-com-mreekie/iqss_gh_reporting/run/wrk" \
#                                  --collection_timestamp "20230412-1632"
#create_iq_snapshot_file.py

create_iq_snapshot_init_sprint.py --sprint_name "April 26, 2023" \
                                  --collection_flag "snapshot" \
                                  --project_name "IQSS/dataverse" \
                                  --organization_name "IQSS"

echo "launching the api snapshot"
create_iq_snapshot_api.py

It is critical that the python files have the
#!/usr/bin/env bash
entry in them


Create Posts “uc-san-diego-pattern-library”

Automatically generated by Netlify CMS

👷 Deploy Preview for benevolent-muffin-215770 processing.

Name
Link

🔨 Latest commit
ed375d898b0eada70b0115028ce3416ec6dc8c64

🔍 Latest deploy log
https://app.netlify.com/sites/benevolent-muffin-215770/deploys/62844f6636750a0008c1f90c


bug(mat-form-field): mat-form-field inputs not rendering properly when deployed

Reproduction
Steps to reproduce:

Add form markup to template file using mat-form-field elements with input elements displaying the 4 different appearances.
View app in browser.

https://stackblitz.com/edit/angular-ivy-gl3pev
Expected Behavior
What behavior were you expecting to see?
I expect the mat-form-fields of the deployed app to render exactly as they do when the app in run locally.

Actual Behavior
What behavior did you actually see?
The mat-form-fields render incorrectly on stackblitz:

Also render incorrectly when app is hosted in SharePoint Online on a Web Part Page using a Content Editor Web Part:

Another observation, textarea fields seem to render just fine in mat-form-field elements.
I followed this article to deploy angular apps to SharePoint Online:
https://www.c-sharpcorner.com/article/sharepoint-with-angular/
I'm fairly new to Angular and feel that a dependency was missed or misconfigured during deployment?  Having said that, I merely copied & pasted the code of my simple example app to stackblitz & it doesn't render properly there either.
In SharePoint, sometimes I get a 404 error, but not always:

Environment

Angular: 10.0.14
CDK/Material: 10.2.7
Browser(s): Chrome 88.0.4324.182 (Official Build) (64-bit)
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Angular CLI: 10.0.8
Node: 13.12.0
OS: win32 x64
Angular: 10.0.14
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package                           Version
@angular-devkit/architect         0.1000.8
@angular-devkit/build-angular     0.1000.8
@angular-devkit/build-optimizer   0.1000.8
@angular-devkit/build-webpack     0.1000.8
@angular-devkit/core              10.0.8
@angular-devkit/schematics        10.0.8
@angular/cdk                      10.2.7
@angular/cli                      10.0.8
@angular/material                 10.2.7
@ngtools/webpack                  10.0.8
@schematics/angular               10.0.8
@schematics/update                0.1000.8
rxjs                              6.5.5
typescript                        3.9.9
webpack                           4.43.0

As far as I can tell, it's because you haven't included a theme. There's more information in the theming guide: https://material.angular.io/guide/theming


Allows specifying k3s version

Sometimes a cluster operator might prefer to specify the k3s version (e.g. v1.29.6+k3s2) instead of the channel (e.g. v1.29, stable etc.)
Reasons for that could be not wanting the system upgrade controller to run at unpredictable times, or having more fine-grained control over the running version.
This PR introduces a new variable install_k3s_version in kube.tf. If undefined, the present behavior is preserved such that current installations are not affected. However, when defined, this variable takes precedence over initial_k3s_channel.
The mechanism for upgrades in either case continues to be the system upgrade controller.

By the way, the following scenarios were tested and worked according to expected:

Created a new cluster with default settings and initial k3s channel was used
Configured install k3s version on above cluster and plan was changed to refer to k3s version and executed properly
Created a new cluster with install_k3s_version and it was installed with the desired k3s version
Deleted install_k3s_version variable on above cluster, plan changed to use initial k3s channel instead and executed properly

Sorry @gmautner, I had to revert the PR as it did not did not deploy on my test. If you manage to fix it with or without channel and with or without version, please don't hesitate to submit a new one.

I think this was caused by a network connectivity issue unrelated to my PR.
When the server https://update.k3s.io/v1-release/channels is down, the behaviour of the k3s installation script is to return the input channel instead of the release, because curl follows all redirects and uses the called URL when there are no redirects.
I manually tested and was able to reproduce the problem with the following commands:
version_url='https://update.k3s.io/v1-release/channels/v1.29'
curl -w '%{url_effective}' -L -s -S ${version_url} -o /dev/null | sed -e 's|.*/||'
v1.29.7+k3s1

Turning off the network:
curl -w '%{url_effective}' -L -s -S ${version_url} -o /dev/null | sed -e 's|.*/||'
curl: (6) Could not resolve host: update.k3s.io
v1.29

This behaviour has been documented by other users of kube-hetzner, like:
https://github.com/k3s-io/k3s/issues/10578#issuecomment-2257389559
So probably it has no relationship to the PR. Could you please test it again?

@gmautner Thanks for the info. This is a crazy coincidence because I've ever seen this very error before.

Ok, I see it's a new feature to allow specifying the version. Please let's wait a bit until it's more stable then we can try again.


Update docs, reintroduce pivotaltracker tests

Coverage increased (+0.5%) to 86.02% when pulling c462c6bc4bca17ab44ba436a989d0373c35a6da8 on docs into 47499ef32ce7f13167c37202e9ec7fc4b888e77f on master.


Update package.json for newer/future React version

npm install of this packages fails when using react 17

please merge. I need this package

please merge. I need this package

If you need it urgently, just run npm i react-native-deck-swiper --legacy-peer-deps

will probably push it live in the next few hours / days tops.


Fix all the bugs in the code

Wow, thanks for you from all creatures in the University!! You saved all of us!!! Excellent job.

doubi

this passes all tests 👍

I have been waiting for this update!

how do you commit without change files?

this is a bug

in your pull request.
check your code

LGTM

I think if you halve the number of lines of code, it will be faster.


FakeAlwaysOnTop or FakeAlwaysFocused

Description of the new feature / enhancement
Make a window always thinks itself on top, or make the window always thinks it's activated, but actually is not.
Scenario when this would be used?
Some games and programs wont play audio and stop rendering if it is not on top, or loses focus, or is not foreground.
Supporting information
Maybe hook GetForegroundWindow would be a way to do it?

I don't see the core team building this out.  I also wonder if this is a security issue.  Example an app blurs data. on focus loss

I don't see the core team building this out. I also wonder if this is a security issue. Example an app blurs data. on focus loss

I believe this feature would be useful for users who want to run multiple games on the same machine, while keep all of them active rendering.