Failure to update items with files

Your environment
SDK Version: 1.3.0
Connect Server Version: 1.5.7
OS: MacOS Montery 12.6
Python Version: 3.7.5
What happened?
Updating an item that contains a file fails with error
onepasswordconnectsdk.client.FailedToRetrieveItemException: Unable to post item. Received 400                    for /v1/vaults/********/items/***** with message: Validation: (validateVaultItem failed to Validate), Couldn't validate the item: "[ItemValidator] has found 1 errors, 0 warnings: \nErrors:{1. Field of unexpected type \"\" at \"item.details.documentAttributes\". Requires one of [\"object\"]}"

What did you expect to happen?
After downloading the item be able to update it from the sdk
Steps to reproduce

Create json document secret using the json below. I tried with different combinations all jsons break it for us.
run this code (silly code, update without any modification)

client_from_token: Client = new_client()
item_title = "your_item"
vault_title = "your_vault"
item = client_from_token.get_item(item_title, vault_title)
client_from_token.update_item(item.id, item.vault.id, item)

Notes & Logs
had to zip, github does not allow json files uploads. bla.json.zip

Any feedback here @jpcoenen ? I'm happy to open PRs if you approve the issue

Hi @HaddadJoe,
The error returned here is not super helpful, but it comes from the fact that Connect does not yet support modifying or uploading files stored on 1Password (we want to add support for that in the future). That makes it difficult to update a Document item because that item basically represents a file. Nevertheless, the error returned is unhelpful; I will file an internal issue for that.
Could you share what it is that you want to change for the item: the file that is stored in the document or any of the other fields? I think the latter is easier to fix and might already be possible without a change to Connect.

I'm just trying to change some of the other fields like tags and notes. I understand that files might be harder to handle but let's just return an exception when files are changed or just ignore that change(even though that might be tricky as the user would expect a change). The rest of the fields should be able to be editable.

Hi @HaddadJoe.
I was trying to reproduce the issue with the steps you provided, but could not.
Used:
SDK Version: 1.3.0
Connect Server Version: 1.5.7
Python Version: 3.7.5
I was able successfully to update an item with the file.
Here is the code example
# example with updating title
item = client.get_item("Login1", "dev")
item.title = 'Login'
client.update_item(item.id, item.vault.id, item)

# example without modifying item
item = client.get_item("Login1", "dev")
client.update_item(item.id, item.vault.id, item)

# verify there is an item with file
file = client.get_files(item.id, item.vault.id)
print(file)

# it prints
[{'content_path': '/v1/vaults/<vauldId>/items/<itemId>/files/<fileId>/content',
 'id': 'fileId',
 'name': 'bla.json',
 'size': 32}]

Maybe there is something specific in your item, that prevents it from updating?

Hi @HaddadJoe. Is it still the case for you?

We upgraded our op-connect server to the latest 1password/connect-sync:1.5.7 and ran the same code above, still getting the error on the update
from legalist.legalist.credentials.one_pass import client

item_title = "bla"
vault_title = "Engineering-Shared"
item = client.get_item(item_title, vault_title)
print(item.id)
client.update_item(item.id, item.vault.id, item)

here's the error, there was no update to the python sdk since then. I see a lot of commits but the team didn't cut a release yet
Traceback (most recent call last):
  File "/Users/joehaddad/Library/Caches/pypoetry/virtualenvs/legalist-4Blx9NQP-py3.11/lib/python3.11/site-packages/onepasswordconnectsdk/client.py", line 286, in update_item
    response.raise_for_status()
  File "/Users/joehaddad/Library/Caches/pypoetry/virtualenvs/legalist-4Blx9NQP-py3.11/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://staging.1pass.legalist.com/v1/vaults/5owhekkdsih65suiisvfd37niq/items/4zajgalyrblts4ljdx72t7nxkm

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/joehaddad/Desktop/legalist/legalist/local_testing.py", line 7, in <module>
    client.update_item(item.id, item.vault.id, item)
  File "/Users/joehaddad/Library/Caches/pypoetry/virtualenvs/legalist-4Blx9NQP-py3.11/lib/python3.11/site-packages/onepasswordconnectsdk/client.py", line 288, in update_item
    raise FailedToRetrieveItemException(
onepasswordconnectsdk.client.FailedToRetrieveItemException: Unable to post item. Received 400                    for /v1/vaults/5owhekkdsih65suiisvfd37niq/items/4zajgalyrblts4ljdx72t7nxkm with message: Validation: (validateVaultItem failed to Validate), Couldn't validate the item: "[ItemValidator] has found 1 errors, 0 warnings: \nErrors:{1. Field of unexpected type \"\" at \"item.details.documentAttributes\". Requires one of [\"object\"]}"

Process finished with exit code 1

@volodymyrZotov any updates here?

Hi @HaddadJoe. Unfortunately, I didn't have a chance to try to reproduce it once again. But this issue is on the our team's radar and we'll back on that soon.

✅ Fixed in Connect v.1.7.2


Add project files - DateTime check if workday or weekend day

You've probably created a PR from the main branch. This way you've committed both the evaluation article source code and the code for this article. You can check that in the files section. Please create a branch, transfer the source code for this article and create a PR from that branch to our main. That way we'll get a clean commit history.

will not merge this, will create separate branch


Clicking on [TGit] menu of the main menu takes about 4 seconds to open the menu

Is there any way to make the menu open faster?
Opening the context menu doesn't take time though.
VS 2015 Update 2
TGit V 3.7, 3.6

It is doing a lot of checks, which menu items should be visible/enabled. Trying to speed it up for a while now, but it is proving quite difficult. Will look into it some more!

Can you please try if this version is faster?
TGit_3.7.1.zip

Thanks, the new version seems faster, but still there is about about 2 maybe 3 seconds lag.
Strangely, once the menu is opened, and if i do not execute/select any menu item, then the menu opens instantly. But after executing any menu item(of TGit or of other menu) then reopening the TGit menu is taking time.

Can you please try this version: TGit_3.7.3.zip

Thanks. The menu opens instantly now!


Update CentOS Mirrors

Given the recent EOL for CentOS7/8, we need to update the mirrors to point to the "vault" URLs as opposed to the standard mirrors list.

passed CI tests


Remix serve crashes with pm2 in cluster mode

Reproduction
start pm2 with the following config.
module.exports = {   apps: [     {       name: "remix-app",       script: "remix-serve",       args: "build/index.js",       instances: 'max',       exec_mode: 'cluster',       autorestart: true,       restart: 'on-failure',       env: {         NODE_ENV: "production"       }     }   ] };
System Info
System:
    OS: Linux 6.5 Alpine Linux
    CPU: (4) x64 AMD EPYC 7J13 64-Core Processor
    Memory: 2.49 GB / 3.81 GB
    Container: Yes
    Shell: 1.36.0 - /bin/ash
  Binaries:
    Node: 19.9.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.6.3 - /usr/local/bin/npm
  npmPackages:
    @remix-run/css-bundle: ^2.8.1 => 2.9.2
    @remix-run/dev: ^2.8.1 => 2.9.2
    @remix-run/eslint-config: ^2.8.1 => 2.9.2
    @remix-run/node: ^2.8.1 => 2.9.2
    @remix-run/react: ^2.8.1 => 2.9.2
    @remix-run/serve: ^2.8.1 => 2.9.2

Used Package Manager
yarn
Expected Behavior
Start serving remix application with one process per CPU.
Actual Behavior
Application doesnot with with pm2 in cluster mode. it works fine in fork mode.
It crashed with following error:
2|remix-ap | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
2|remix-ap | TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
2|remix-ap |     at run (/usr/local/share/.config/yarn/global/node_modules/@remix-run/serve/dist/cli.js:114:31)

Refer to this. The snippets should be added to the very start of the server entry file.

@cayter, while I agree that those snippets are useful, I wonder about why they would be needed to swallow an error right at server start up?
I have them on my server.js file after server.listen because I want the process to crash out if there is something obviously wrong. It seems like if the service is failing even before the first request, there is something wrong that should be fixed.
The error shows as having a problem on this line:
https://github.com/remix-run/remix/blob/ff06e1656108bc21244e1fd4b33ed53e22b85158/packages/remix-serve/cli.ts#L103
So why would build.future be undefined?
reimportServer() is clearing require.cache even in non-dev mode, so maybe that is not compatible with how pm2 interacts with node.js's Cluster module?
Try modifying cli.js to skip the cache clearing in production mode and see if that helps; record the change with using patch-package. You could also try using the express template as its server.js file doesn't clear the cache when not in development mode.

The snippet makes sure that your nodejs process doesn't crash in case you have code that doesn't handle error properly.
As for fixing the error you are facing, it's hard to tell what's wrong without seeing a minimal reproducible repo.

@cayter  this snippets did not solve the problem.
I added code in the shared snippet in entry.server.tsx and the issue still persists

@cayter this snippets did not solve the problem.
I added code in the shared snippet in entry.server.tsx and the issue still persists

Any chance you can show it in a minimal reproducible repo?

Here it the repo - https://github.com/prudhvi85/debug-pm2-remix
Instruction for running:
docker build -t test_image/test-image -f Dockerfile .
docker run -p 3120:3120 test_image/test-image

@cayter  apologies for bothering you. We are sort of stuck on this. Any help is really appreciated. Thank you

Root Cause
remix-serve is expecting 3rd argument as the build path from the terminal but PM2 executes in the terminal with the build path being 4th argument which leads to the imported build doesn't have any exported build.future.unstable_singleFetch defined because PM2 is misleading remix-serve to load the wrong server build.

@cayter  Thank you!!  any solution to this issue?
Also, I am wondering how it works in fork but not in cluster mode.

The cleanest approach is to avoid using pm2 config and pass the arguments instead.
$ pm2-runtime start remix-serve -- build/server/index.js --name remix-app --instances 1 --exec_mode cluster --env NODE_ENV=production --restart_on_failure true

@prudhvi-tg I assume the issue is resolved? If yes, please close it. Thanks.

Tried passing the arguments instead of config.  Now I am getting another issue
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
Error: ENOENT: no such file or directory, stat '/app/start'
 at Object.statSync (node:fs:1658:25)
at reimportServer (/usr/local/share/.config/yarn/global/node_modules/@remix-run/serve/dist/cli.js:83:39)
at run (/usr/local/share/.config/yarn/global/node_modules/@remix-run/serve/dist/cli.js:112:21)
at Object.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/@remix-run/serve/dist/cli.js:58:1)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
  at Module.load (node:internal/modules/cjs/loader:1208:32)
  at Function.Module._load (node:internal/modules/cjs/loader:1024:12)
 at /usr/local/share/.config/yarn/global/node_modules/pm2/lib/ProcessContainer.js:304:25
  at wrapper (/usr/local/share/.config/yarn/global/node_modules/pm2/node_modules/async/internal/once.js:12:16

@cayter  I am trying to use pm2 for load balancing features


Add Language switch function

For Seller and buyer app, I want to add language switcher function.
Requirements

Buyer and Seller have language switcher.
use language resource under src/Middleware/src/Headstart.Common/Assets

I made Japanese resource file and create pull request #345 to headstart/development.

For anyone that takes this task we'll probably also want  to add some logic in the environment seed that populates the japanese translation file like we are doing with the english one
This is the library  we are using for translations. There is a mechanism in there to allow a language to be switched. It is probably also possible to intuit a default language based on the user's ip address.

Closing this issue as language selection functionality has been added to buyer and seller apps.


Cognitive services python custom search samples

Purpose
Add samples for Custom Search API in cognitive services.

...

Does this introduce a breaking change?

[ ] Yes
[x ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[x ] Other... Please describe:
Adds samples

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information
Make sure to set up a CustomSearch API instead of a Bing v7 API

@lmazuel ready to merge


Update filtered StandardScenarios registry

I rebuilt the StandardScenarios registry on Eagle based on all recent config changes and then reran the filter script.
This is tied to https://github.com/dsgrid/dsgrid-project-StandardScenarios/pull/71

With 352 files changed, I'm tempted just to trust you on this one. Are there specific files I should look at @daniel-thom?

With 352 files changed, I'm tempted just to trust you on this one. Are there specific files I should look at @daniel-thom?

It's tough to verify. There is a mountain of new and modified files from our recent changes. The only logic changes are tied to keeping only model_year 2018 for comstock and resstock, and those are covered in the SS PR. All of these changes are auto-generated.

Merging without approval because this PR is unreviewable.


Add License research and demos

Criteria: License
Candidates: All

Added a first pass to Angular, React and Vue.js.

ah, I see Facebook changed React to standard MIT license instead of the weird custom license with the cant-sue-us clause. nice.


Remove Guice SystemConfigModule, and stop injecting BulkLoader and GuessExecutor

We're going to remove Guice from Embulk v0.10.33. This pull request is to remove Guice's SystemConfigModule, which has been managing the "System Config", @ForSystemConfig, and the new EmbulkSystemProperties.

Thanks!


data is not working

this code is giving me undefined data
var theID = $(this).select2('data').id;
alert(theID);
it is showing undefined

this method was deprecated in version 4
use:
var theID = $(this).val();

to see the error while working with the 4.0.
Use the debug option
$(this).select2({debug:true});

In the console you will see the warning / debug log of all your select2

You appear to be only trying to get the selected value (which is the id), so you're better off using .val() like you would with a standard <select>.

this method was deprecated in version 4

While it's true that this was deprecated in 4.0.0, it is only deprecated if you are setting the data using .select2('data', newData).

this code is giving me undefined data

The return value of select2('data') was changed in 4.0.0, so now it returns a list of selected options, giving a consistent return value across both single and multiple selects.

@penihel @kevin-brown @snichini  one more error is coming i dont not why it is comming,is it bug or not?
i attached screenshot.
when i select something from select2 and remove selected element and again selecting then i m getting this error.

is it bug or not?

Possibly, but there isn't much that can be done without seeing the full traceback there. And possibly a list of step-by-step instructions for reproducing it on the examples page.


Remove Copy Bazel Outputs scripts from non-product targets

The idea about keeping them around was that we would use them for copying diagnostics and then modifying a file to force a "recompile". There are other ways to achieve that though, so these scripts are just plain overhead right now.

This regressed Index build, since we no longer get $SCHEME_TARGET_IDS_FILE updated.


[Sensor dataset] rgb stereo

Hi, can we please get access to the color rgb stereo images if they exist? the ones on s3 are grayscale.
Thanks!

Hi @hadikhkh, the stereo images are grayscale only.


controller/deployer: Add logging.

Signed-off-by: Blaž Hrastnik<EMAIL_ADDRESS>

@titanous Comments addressed.

LGTM


DM-33315: Update minimum version of iDDS packages.

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@ktlim as discussed on slack yesterday, this simply forces the iDDS software to be the current version as a way to kick the containers into rebuilding.

This has been made obsolete by #43


Use relative path for extension unit tests

Description
Use relative path for extension tests, :
nosetests -s -v test_extensions:test_subgraph
nosetests -s -v test_extensions:test_custom_op
nosetests -v -s test_extensions_gpu:test_custom_op_gpu
can also support below test formats:
nosetests -s -v tests/python/unittest/test_extensions.py:test_subgraph
nosetests -s -v tests/python/unittest/test_extensions.py:test_custom_op
nosetests -v -s tests/python/gpu/test_extensions_gpu.py:test_custom_op_gpu
Checklist
Essentials

[ ] Changes are complete

[ ] All changes have test coverage:

[ ] Code is well-documented:

Check the API doc at https://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html

Changes

[ ] Changes to relative path for build directory which is used by test_extensions:test_subgraph
[ ] Changes to relative path for build directory which is used by test_extensions:test_custom_op
[ ] Changes to relative path for build directory which is used by test_extensions_gpu:test_custom_op_gpu

@heaseny It seems you have missed your code changes.

shouldnt we do this for the test_custom_op_gpu test too?
https://github.com/apache/incubator-mxnet/pull/17626/files#diff-460d06cb3af2af996c5ec259b086712fR170

Thanks for the contribution. @samskalicky I think if this PR comes first then we can make the fix on gpu one

Could someone explain why this should be done / hasn't been done before?

@leezu this is only needed for running the tests locally on building from source. And only when the tests are being run in a non-standard way. They run fine in the CI, which runs the tests from the top level directory. But if you go down into the tests/python/unittests and try and run them from there, the paths wont be correct. So the library wont be loaded and it will error out.
@TaoLv and the Intel folks have been asking to make it so that these tests can run from whichever directory you are in for manual builds from source.

Thanks for exact checks, the fix for test_custom_op_gpu has been added .

Please fix conflicts

@leezu the confict issue has been fixed,  thanks for your reminder.

Retriggered CI


TalksApp Slide is cached on the server and not updated immediately

Hi, I am composing this presentation slide using present format recently, but after I made some changes, it's not updated anymore.
Is my bukalapak-bandung-go.slide file cached on the go-talks.appspot.com server?
If that's the case, then when is it supposed to be updated?
Thanks.

Hi, I just found out that my presentation slide is updated already. But I have no idea about how long it will takes to get the slides updated.
Maybe it will be better if we put some information in the home.article file about the caching mechanism.
Although the cache duration depends on Google's AppEngine Memcache, at least we still can make the users aware about it and not expect the updates will be applied immediately.


InvalidCastException: Specified cast is not valid. when connection through Steam

Version Number and Operating System(s):
03/10/2018-19.53.38,04  Windows 10 64bit
Actual behavior:
When the initial connection through Steam, get many of the same errors on each network object.
InvalidCastException: Specified cast is not valid.
BeardedManStudios.Forge.Networking.NetworkObject..ctor (BeardedManStudios.Forge.Networking.NetWorker networker, System.UInt32 serverId, BeardedManStudios.Forge.Networking.Frame.FrameStream frame) (at Assets/Bearded Man Studios Inc/Scripts/Networking/Forge/Networking/Objects/NetworkObject.cs:478)
BeardedManStudios.Forge.Networking.Generated.GameManagerNetworkObject..ctor (BeardedManStudios.Forge.Networking.NetWorker networker, System.UInt32 serverId, BeardedManStudios.Forge.Networking.Frame.FrameStream frame) (at Assets/Bearded Man Studios Inc/Generated/UserGenerated/GameManagerNetworkObject.cs:80)
BeardedManStudios.Forge.Networking.Generated.NetworkObjectFactory+<>c__DisplayClass0_0.b__0 () (at Assets/Bearded Man Studios Inc/Generated/NetworkObjectFactory.cs:32)
BeardedManStudios.Forge.Networking.Unity.MainThreadManager.HandleActions (BeardedManStudios.Forge.Networking.Unity.MainThreadManager+UpdateType updateType) (at Assets/Bearded Man Studios Inc/Scripts/MainThreadManager.cs:165)
BeardedManStudios.Forge.Networking.Unity.MainThreadManager.FixedUpdate () (at Assets/Bearded Man Studios Inc/Scripts/MainThreadManager.cs:171)
I solved the error like this:
Replaced line 475 in Bearded Man Studios Inc/Scripts/Networking/Forge/Networking/Objects/NetworkObject.cs with this:
#if STEAMWORKS
if (networker is SteamP2PClient)
((SteamP2PClient)networker).Send(createdFrame, true);
else if (networker is UDPClient)
#else
if (networker is UDPClient)
#endif
Discord Username:
Evgen Nechyporuk#6745

Could you create a PR for the solution as that was clearly missing from there where you put it.

done

Fix has been merged into develop


Connect databse with newsletter form and custom message after form submit

the db connection will be done soon , i need to add my mongo uri for that , and a message is always displayed after we click submit , hence we do not need this issue thank you !


【Hackthon_4th 180】在FastDeploy中集成地平线推理引擎

PR types(PR类型)

Description

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.12 out of 13 committers have signed the CLA.:white_check_mark: joey12300:white_check_mark: jiangjiajun:white_check_mark: wjj19950828:white_check_mark: linyangshi:white_check_mark: wgy0804:white_check_mark: Zheng-Bicheng:white_check_mark: OpenVINO-dev-contest:white_check_mark: yunyaoXYY:white_check_mark: GodIsBoom:white_check_mark: yeliang2258:white_check_mark: DefTruth:white_check_mark: seyosum:x: Yi-sirYou have signed the CLA already but the status is still pending? Let us recheck it.


add option to include untested files in report

this resolves the issue #70

feature that includes all files .lua within the directory (not only the ones touched by tests)
new option in config file to enable this feature (default is disabled)

@victoriatanaka Merged, thank you! Also, thanks @britzl for the code review!


User does not have access to MSA created organization

When creating an organization in Azure CLI with a Microsoft account (not an Azure Active Directory account), I don't have access to my own Azure Devops projects.
Everytime when I try to create one, an error message shows up:
TF400813: The user 'Windows Live<EMAIL_ADDRESS>is not authorized to access this resource.
This may due to the organization creation process does not have "X-VSS-ForceMsaPassThrough" header set in the VSTS API request.

This issue is closed due to the update on https://github.com/Azure/azure-functions-devops-build/pull/31


Confusing error message when code incorrectly uses -include_lib()

My code was trying to include a header from the standard OTP include directory using -include_lib, rather than -include:
-include_lib("myinclude.hrl").

rebar compile failed with this error message:
ERROR: compile failed while processing /Users/me/...: {'EXIT',
    {function_clause,
        [{filename,join,[[]],[{file,"filename.erl"},{line,392}]},
         {rebar_erlc_compiler,expand_include_lib_path,1,
             [{file,"src/rebar_erlc_compiler.erl"},{line,648}]},
         {rebar_erlc_compiler,process_attr,3,
             [{file,"src/rebar_erlc_compiler.erl"},{line,597}]},
         {rebar_erlc_compiler,parse_attrs,2,
             [{file,"src/rebar_erlc_compiler.erl"},{line,565}]},
         {rebar_erlc_compiler,modify_erlcinfo,4,
             [{file,"src/rebar_erlc_compiler.erl"},{line,400}]},
         {rebar_erlc_compiler,'-update_erlcinfo_fun/2-fun-0-',4,
             [{file,"src/rebar_erlc_compiler.erl"},{line,359}]},
         {lists,foldl,3,[{file,"lists.erl"},{line,1261}]},
         {rebar_erlc_compiler,init_erlcinfo,2,
             [{file,"src/rebar_erlc_compiler.erl"},{line,349}]}]}}

rebar is calling expand_include_lib_path("myinclude.hrl")
$ ./rebar --version
rebar 2.5.1 17 20150420_203341 git 2.5.1-180-g858fb4f

@kejv this is why in #467 I suggested to handle this explicitly/differently.

cc @kej (re #467).

cc @kejv (re #467).

See #485

Confirmed that pull request #485 fixes this problem on my test.

Closing


java -help hangs

For java (latest) / java:8 / java:openjdk-8-jdk.
When executing "java -help" in interactive mode, the process hangs.
Steps to reproduce (in Docker Quickstart Terminal)
$ docker pull java
$ docker run -it java
root@container-id:/# java -help
(or) root@container-id:/# java

Extra info:
$ docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      windows/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      linux/amd64

$ docker images
java                latest              9afbe4c3ddc8        9 days ago   642.3 MB

Could it be related to https://github.com/docker/docker/issues/12469?  Maybe one of these workarounds: troubleshooting-cannot-enable-tty-mode-on-windows?

Indeed, it must be an issue with the local environment; I cannot reproduce:
$ docker run -it --rm openjdk:8 java -help
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32	  use a 32-bit data model if available
    -d64	  use a 64-bit data model if available
    -server	  to select the "server" VM
    -zero	  to select the "zero" VM
    -jamvm	  to select the "jamvm" VM
    -dcevm	  to select the "dcevm" VM
                  The default VM is server,
                  because you are running on a server-class machine.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose:[class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  Warning: this feature is deprecated and will be removed
                  in a future release.
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.


How to extract the key frame from the video?

--- Delete everything above this line ---
I am using this library for photo and video purpose. I am recording the video of 10 seconds. I need to find the keyframe of video from the response object of video. Is there any property available for key frame extraction?
Example:
`ImagePickers.showImagePicker(options, (response) => {
console.log('Response = ', response);
console.log('timestamp = ', response.timestamp);
console.log('uri = ', response.uri);
  if (response.didCancel) {
    console.log('User cancelled video picker');
  }
  else if (response.error) {
    console.log('ImagePicker Error: ', response.error);
  }
  else if (response.customButton) {
    console.log('User tapped custom button: ', response.customButton);
  }
  else {
    this.setState({
      videoSource: response.uri
    });
  }
});`

how to extract the key frame of video from response object.
Additional Information

React Native version: [0.50.3]
Platform: [iOS, Android]
Development Operating System: [developing on MacOS]
Dev tools: [Xcode: 9.3, Android Studio: 3.1]

I might be late to the party; but did you ever find a solution to this @fazeelCGI ?


AMQ-5931 Updated jodatime to 2.8.2

https://issues.apache.org/jira/browse/AMQ-5931

pulled in under 149 instead of 150 in comment.


Playing sounds when keys are pressed

The only way I know of to make a keypress result in a sound is by executing afplay (or whatever alternate command) as a shell_command in my Complex Modifications JSON.
Does anyone know of a way to play a sound and still remap a key?
According to https://pqrs.org/osx/karabiner/json.html#to-event-definition, I can map to key_code or shell_command, but not both.

Try remap a key and use shell_command at the same time.
#!/usr/bin/ruby
"from": {
		"key_code": "t"
		},
"to": [
    {
	    "key_code": "t"
    },
	{
		"shell_command": "osascript -e 'tell application \"Alfred 3\" to run trigger \"repos\" in workflow \"net.deanishe.alfred-git-repos\" with argument \"\"'"
	}
]

The osascript is shell command too，and you can write AppleScript in it, enjoy it!

This could usefully be added to the documentation - currently the json reference manual just says  "key_code, consumer_key_code, pointing_button, shell_command, select_input_source and set_variable are exclusive. You can specify one of them." which is super unhelpful and somewhat misleading given there's an easy workaround


pprint posted data to etherscan

As suggested in https://github.com/raiden-network/raiden-contracts/pull/345#discussion_r231039624.
This closes https://github.com/raiden-network/raiden-contracts/issues/349 .

Don't merge until 0.10.0 is released.


Removing a class takes too many clicks

I have this unreferenced class I want to remove

So I pull up the context menu on it

but that only adds the - button,

clicking which drops down another menu

whereupon I must click the - button to actually remove the class.

I never knew items in that menu had any right click actions. Do you know that on the coder side of things (to the right), right by the class name there is a class deletion button?

That workflow is new to me, does appear like an extra click but that's not the only (or most prominent or quickest) way to delete a class


fix: modify DEFAULT_PAGE from 1 to 0 in usePagination hook

Why need this change? / Root cause:

To ensure accurate data listing, unify the initial page number from 1 to 0.

Changes made:

Test Scope / Change impact:

Issue

Closes  #287

✅ Knip Scan Result for https://github.com/Game-as-a-Service/Game-Lobby-Web/pull/288/commits/64c3b9b482ebd01142a42b0c06d53d786364db71

Unused files (10)

Unused files (10)

.bundlewatch.config.js

components/shared/Chat/ChatContent.tsx

components/shared/Chat/ChatMessage.tsx

components/shared/Chat/index.tsx

components/shared/Icon/group/news.tsx

configs/i18nConfigs.ts

lighthouserc.js

reset.d.ts

scripts/knipScanReporter.js

scripts/lhciScanReporter.js

Unused dependencies (2)

Unused dependencies (2)

@svgr/webpack  package.json

sharp          package.json

Unused devDependencies (5)

Unused devDependencies (5)

@actions/github             package.json

@octokit/core               package.json

@storybook/blocks           package.json

@storybook/testing-library  package.json

@total-typescript/ts-reset  package.json

Configuration issues (1)

Configuration issues (1)

Unused item in ignoreDependencies: @next/bundle-analyzer

🤖 Lighthouse Scan Result for https://github.com/Game-as-a-Service/Game-Lobby-Web/pull/288/commits/64c3b9b482ebd01142a42b0c06d53d786364db71

/rooms

Metric
Value

Performance
63

Seo
80

Accessibility
79

HTML Report for LHCI Scan
Report Link

/rooms/abc

Metric
Value

Performance
73

Seo
80

Accessibility
69

HTML Report for LHCI Scan
Report Link

/login

Metric
Value

Performance
48

Seo
80

Accessibility
97

HTML Report for LHCI Scan
Report Link


Ability to serve a default response?

Since integrating with OpenAI costs real money, should there be a way that I can serve a default response if I want to "turn off" the integration at runtime? Maybe when I'm running in dev mode or if I'm doing a quick demo I don't want it to make "real" calls to an openai provider.

I certainly could add my own logic to whatever code I have that calls my ai service, but it would be nice if the library itself could support it.

How do you envision this would look like?

There would be some new config property, that when set to true, first the api-key (or the other required azure properties if using the azure extension) would no longer be required.
Then, maybe at the point of making the http request, some runtime exception is thrown instead? Maybe some new ClientCallBypassedException or something.
Then in the ai service interface I could use a fallback, either globally for all exceptions, or just for that specific exception, to return some default of my choice.
This way it keeps the extension from caring about what to do in that case?
Just a thought.

My question was really how this would looks from a user code pespective. What would the user set / change / configure?

I can whip up some sample code when I get to my desk if you'd like.

Sure, I'd like to see what you have in mind.

Here's what I'm thinking (I'm not good at naming things and I'm just pulling things out of thin air :) ).
In application.properties:
quarkus.langchain4j.openai.make-live-requests=false # This would be `true` by default
# OR
quarkus.langchain4j.azure-openai.make-live-requests=false # This would be `true` by default

The fact that I set the property to false would then make it so other properties, like api-key, are no longer required. When the service went to make the downstream call, if make-live-requests==false it would throw some new exception type (ClientCallBypassedException).
Then in my code I would do:
@RegisterAiService
public interface OpenAiNarrationService extends NarrationService {
  @SystemMessage("You are a marvel comics writer, expert in all sorts of super heroes and super villains.")
  @UserMessage("""
    Narrate the fight between a super hero and a super villain.

    During the narration, don't repeat "super hero" or "super villain".

    Write 4 paragraphs maximum. Be creative.

    The narration must be:
    - G rated
    - Workplace/family safe
    - No sexism, racism, or other bias/bigotry

    Here is the data you will use for the winner:

    +++++
    Name: {fight.winnerName}
    Powers: {fight.winnerPowers}
    Level: {fight.winnerLevel}
    +++++

    Here is the data you will use for the loser:

    +++++
    Name: {fight.loserName}
    Powers: {fight.loserPowers}
    Level: {fight.loserLevel}
    +++++

    Here is the data you will use for the fight:

    +++++
    {fight.winnerName} who is a {fight.winnerTeam} has won the fight against {fight.loserName} who is a {fight.loserTeam}.

    The fight took place in {fight.location.name}, which can be described as {fight.location.description}.
    +++++
    """)
  @Fallback(fallbackMethod = "narrateFallback")
  String narrate(Fight fight);

  default String narrateFallback(Fight fight, ClientCallBypassedException clientCallBypassed) {
    // It would be nice in here if I had access to the CDI context and could use other beans to form a response
    // Maybe I'm storing something as a property inside an @ConfigMapping class I'd want to read in here
    return "Some fallback because make-live-requests was turned off";
  }

  default String narrateFallback(Fight fight) {
    // It would be nice in here if I had access to the CDI context and could use other beans to form a response
    // Maybe I'm storing something as a property inside an @ConfigMapping class I'd want to read in here
    return "some fallback because something else happened";
  }
}

So this way it would only work if the fallback annotation was present. That doesn't seem ideal, no?

In this case yes the fallback annotation would have to be there yes. I was trying to think of a way that was least invasive for the library. Otherwise the rest call would have to return something. Using this approach the rest client stays "dumb", meaning it doesn't need to know about any particular response it needs to serve.
Just a thought though.

Right, I need to ponder on it

If I went ahead and brought up a PR that implemented this exception-based approach, would you entertain it? Or do you need to shake out the best design first? I'm really itching to have this capability, as when running locally (or in other environments where my credit card isn't available) I'd really like the app to work.

Upon starting to look at implementation details it looks like I'll have to do something in upstream langchain4j first. The config property/flag would need to get into the langchain4j model classes (OpenAiChatModel/etc).

This is because things like OpenAiRecorder directly return the upstream Langchain4j model classes which are then used by QuarkusOpenAiClient.QuarkusOpenAiClientBuilderFactory. There doesn't seem to be a way to feed QuarkusOpenAiClient with a property without going through the Langchain4j model objects.
On the Azure side it looks like the extension manages its own set of model classes.
Would it be worthwhile on the openai "vanilla" side to make it so the extension has its own set of model objects? These could extend the ones provided by upstream, so there wouldn't be much change actually.
I could work that into this change, or create a separate PR just for that if you'd like. Let me know what you think.

Would it be worthwhile on the openai "vanilla" side to make it so the extension has its own set of model objects? These could extend the ones provided by upstream, so there wouldn't be much change actually.

Sure, extending upstream sounds fine

Unfortunately that doesn't seem to be possible due to how Langchain4j is done.

In the Quarkus langchain extension, how does QuarkusOpenAiClient.Builder get invoked and the builder methods on it called? I see the factory getting registered in https://github.com/quarkiverse/quarkus-langchain4j/blob/main/openai/openai-common/runtime/src/main/resources/META-INF/services/dev.ai4j.openai4j.spi.OpenAiClientBuilderFactory, but where do the factory methods actually get invoked on the builder?

public abstract class OpenAiClient {
    public static OpenAiClient.Builder builder() {
        for (OpenAiClientBuilderFactory factory : ServiceHelper.loadFactories(OpenAiClientBuilderFactory.class)) {
            return factory.get();
        }
        // fallback to the default
        return DefaultOpenAiClient.builder();
    }
}

The extension provides QuarkusOpenAiClientBuilderFactory to hook into that

Right I saw that, but where do the methods on the builder actually get invoked within the extension? When application code uses @RegisterAiService the QuarkusOpenAiClient.Builder and its methods must get invoked somewhere in order to create the QuarkusOpenAiClient instance and register it as a bean.

@RegisterAiService uses the chatModel that is configured in OpenAiRecorder

Can you point me to where in the codebase this actually happens? At some point a bean instance for QuarkusOpenAiClient is registered somewere, no? I tried searching for references on QuarkusOpenAiClient but didn't find it, or maybe I overlooked it. Where are the QuarkusOpenAiClient.Builder methods actually called?

Can you point me to where in the codebase this actually happens? At some point a bean instance for QuarkusOpenAiClient is registered somewere, no?

Nope, an instance of the client is created per model (these models are the beans).
So in upstream Langchain4j when
        this.client = OpenAiClient.builder()
                .openAiApiKey(apiKey)
                .baseUrl(baseUrl)
                .organizationId(organizationId)
                .callTimeout(timeout)
                .connectTimeout(timeout)
                .readTimeout(timeout)
                .writeTimeout(timeout)
                .proxy(proxy)
                .logRequests(logRequests)
                .logResponses(logResponses)
                .build();

happens, the client is created

Gotcha! That was the missing link I've been looking for! So back to my previous comment about having our own models that extend the Langchain4j ones - that would give us the ability to customize the builder.
Maybe one enhancement for upstream langchain4j would be to stub out to a separate method where it does that. That way it could be overridden in our own model classes and we could add additional attributes.
The current way it works is that getting new attributes onto that builder involve changes to https://github.com/ai-for-java/openai4j which then have to be pulled into langchain4j, then pulled into here. It would be nice if we could enhance it for things specific to Quarkus that are above & beyond.

It would be nice if we could enhance it for things specific to Quarkus that are above & beyond.

Sure yeah

Once langchain4j/langchain4j#549 is released then this will consume that.


Add support for the service-catalog

It would be awesome support for the Kubernetes service catalog could be added.
Thanks!

That is really interesting @geoand. Could you help me make a strong case for this feature?
How would you (as a developer) use it? How would the user (service consumer) experience look like? I haven't looked into this much so excuse any naive questions. Would you expect MicroK8s to have its own default service broker and managed services would come from there? Would you expect developers to setup their own service brokers and exchange through the catalog the work they are doing with the rest of their team and/or the rest of the MicroK8s users?

Hi @ktsakalozos
Those are great questions :).
I would say that I would expect the most basic support, meaning that when I enabled the addon in microk8s, all I would get is the service catalog API and it's respective controller running.
It would then be up to me to add whatever broker I like

Would you like me to provide any more information about this?

I am coming from the Openshift community and we use a couple specific brokers there, so I'm not really sure what brokers people that use Vanilla Kubernetes are used to


MRG: Move so doctest doesnt use it

Probably a better place for it to be to match up with flow_diagram.py anyway

Ready for review/merge @jaeilepp @jasmainak

Fine with me

LGTM. Feel free to merge if Travis is happy

Thanks @Eric89GXL


Feature: Support specifying which element to include in the docs.

This is a follow up of the discussion held in issue 21.
At the moment mkdocsstrings-typescript only supports exporting the full package. (i.e ::: @package)
In the python version of the library it seems to be possible to display only information about a specific class.
# Reference

::: my_library.my_module.my_class

I maintain a large package, so including the whole package documentation in a single page does not make it very easy to read.
I would like to cherry pick relevant parts of the typedoc documentation within my code base and expose it directly in the documentation.
This would allow the developers of my package to only need to care about the source code and typedoc. mkdocstrings-typescript would then take care of keeping in sync the documentation and the source code.
It would be useful to include only a subset of the entire package. We should be able to specify:

Enumerations

Example: @package::Colors
Having the ability to specify a specific element of the enumeration would be useful instead of displaying all the elements.

Example: @package::Colors.RED

Classes

Example: @package::Car
Having the ability to specify a specific method or property would also be really useful instead of having the full class properties and methods.

Example: @package::Car.startEngine or @package::Car.brand

Interfaces

Example: @package::Vehicle
Having the ability to specify a specific method or property would also be really useful instead of having the full class.

Example: @package::Car.startEngine or @package::Car.brand

Type Aliases
Variables

Example: @package::NUMBER_OF_WHEELS_FOR_CARS

Functions

Example: @package::getCars

Boost priority

Boost priority in our backlog through Polar.sh. Higher pledge, higher priority.
Minimum pledge by user/organization is $5, minimum amount for boost is $30.
View all issues with pledges.
We receive the funds once the issue is completed and confirmed by you.
Features with the insiders label are released to sponsors first, and tied to a funding goal.

@adaxi would you like to try out the obj-path branch?

Sure i'll try it out tomorrow!

@pawamoy looks good, but it seems something else broke in the meanwhile.
When I include ::: @package::Whatever mkdocstrings-typescript seems to behave correctly.
But when I only include ::: @package I have the following error: (when I revert to the default theme, this does not occur).
ERROR   -  mkdocstrings: Template 'project.html.jinja' not found for 'typescript' handler and theme 'material'.
ERROR   -  Error reading page 'softphone.md': project.html.jinja
Traceback (most recent call last):
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/bin/mkdocs", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocs/__main__.py", line 288, in build_command
    build.build(cfg, dirty=not clean)
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocs/commands/build.py", line 310, in build
    _populate_page(file.page, config, files, dirty)
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocs/commands/build.py", line 167, in _populate_page
    page.render(config, files)
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocs/structure/pages.py", line 285, in render
    self.content = md.convert(self.markdown)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/markdown/core.py", line 357, in convert
    root = self.parser.parseDocument(self.lines).getroot()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/markdown/blockparser.py", line 117, in parseDocument
    self.parseChunk(self.root, '\n'.join(lines))
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/markdown/blockparser.py", line 136, in parseChunk
    self.parseBlocks(parent, text.split('\n\n'))
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/markdown/blockparser.py", line 158, in parseBlocks
    if processor.run(parent, blocks) is not False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocstrings/extension.py", line 130, in run
    html, handler, data = self._process_block(identifier, block, heading_level)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocstrings/extension.py", line 230, in _process_block
    rendered = handler.render(data, options)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocstrings_handlers/typescript/handler.py", line 187, in render
    return template.render(
           ^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocstrings_handlers/typescript/templates/material/dispatch.html.jinja", line 1, in top-level template code
    {% extends "_base/dispatch.html.jinja" %}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/mkdocstrings_handlers/typescript/templates/material/_base/dispatch.html.jinja", line 4, in top-level template code
    {% include "project.html.jinja" with context %}
^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gbo/Workspaces/scp-sdk/docs/.venv/lib/python3.11/site-packages/jinja2/loaders.py", line 207, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: project.html.jinja

Also, unrelated to this change, it seems that I am only getting the titles displayed in the generated output, the content is missing (no matter the theme being used)

Thanks! Let me fix try and fix these.

@pawamoy any luck in reproducing the issue?

Yes, this example should reproduce it: https://github.com/mkdocstrings/griffe-typedoc-repro/blob/main/sdk/src/issues/i08.ts
I would expect to have the comment of the methods under the titles in the documentation

Yep! I looked into it, and the comments are not attached to the constructor or the function directly, but to their signatures. Working on a template.

I have pushed griffe-typedoc <IP_ADDRESS>.2.13 and mkdocstrings-typescript <IP_ADDRESS>.4.1, which should now show a few signatures and "docstrings". Work in progress.

I'll close this issue since the original topic is resolved I believe :slightly_smiling_face:


Observations not being updated when new data arrives

#161 introduced a defect where the updates don't occur when they should.  Instead they are mistakenly treated as unchanged and the update is skipped.
The problem is due to mergedObservation and existingObservation being the same object.  When existingObservation is passed to MergeObservation internally the same operation reference is modified.  The return object is identical, so the subsequent check,  if (mergedObservation.IsExactly(existingObservation)) always evaluates to true and the update is skipped.

Issue resolved with #185


Kafka logs flooding

Hi. Found a lot of such messages in the logs (CloudWatch):
[2017-11-29 22:43:58,934] INFO [GroupMetadataManager brokerId=2] Removed 0 expired offsets in 0 milliseconds. (kafka.coordinator.group.GroupMetadataManager)

Is there an option to stop flooding like this?

Could you please post more logs? How often the messages are logged? like every second?

Every 10 minutes:

Thanks for posting the detail logs! This looks ok. It is only logged 1 message every 10 minutes. This would be the expected behaviour of Kafka.
If you still have concern about it, it would be better to ask Kafka guys :)

Thank you, @JuniusLuo !


About freebies..

Submitter: oscar
Would it be possible to be able to set the amount of freebies at your own lvl.. Sometimes the players get more. Sometimes less. =)

This is a feature that is already planned and in the list of things to do. I appreciate the feedback though, it lets me know what to make a priority.


Create and share IAM v2.1 beta e2e demo video

Overview
In order to release IAM v2.1 beta to customers, we need a recorded meeting displaying all major user tasks and scenarios. Together during this meeting, we will create a list of things to fix before release.

@sdelano should we close this card?

im closing this, we can reopen it if needed.


Determine the process for pulling in a slate dependency

As we are going to split out the sections of slate so that we can pull in only the parts that we need then we need to think about how we will manage that process.
The initial thinking is that each project will have a copy of .slaterc in the root listing the slate modules that it is using along with when it was created.
Each slate module has it's own package.json file containing only the dependencies that it has which are merged together to create the project package.json file. Potentially using package-merge.
Each slate module would need to do some or all of the following:

Add it's dependencies to the project package.json
Add it's task file to the project gulpTasks directory
Add files needed for the task to the project directory
Modify the main config object
Specify task names it introduces so that they can be included in the default task

Slate would remain the minimal gulp setup that could be used on any project with the rest of the project being split out to seperate repositorys such as slate-localserver, slate-responsive-images etc.
We need to discuss how we pull these repositories in and merge the contents to build a slate setup specific to the project requirements.

One option could be to make the config file (to replace .slaterc or a second one) which is a JS file. This would run first before anything else. (similar to Grunt's config object, or Karma karma.conf.js file).

As an initial thought could the modules be checked out in to a .slate directory within the project that contains the checked out modules.
All of this is feeling very much like npm. There must be a way that we can leverage npm to do the work for us with this.

This does bring in the other discussion of monorepo (everything in one place) versus having everything/most things split out. https://github.com/emberjs/ember.js/tree/master/packages - Ember has all of their modules in the main repo.

Thinking about this over lunch, we don't have to complicate this at all we could use the following as a workflow:
The base slate setup remains as it is, slate init copies the files from the latest tagged release and adds them to the current working directory.
Each component is a fully fledged npm package, with a main file that resolves adding the component to an existing project. Adding them to a project via slate init or slate add uses the following approach:

Quarry runs npm i --save slate-component for the specific component
After install is finished quarry requires the component
Quarry then calls init() on the required component.
Init then adds the required files to the current working directory

This gives us the following benefits:

We use npm for managing pages so that we're not reinventing the wheel.
The project package.json stays relatively sane as the dependencies for a particular component live within it's package.json. While the project one contains the base dependencies and "slate-local-server": "^1.0.0" for example.
We use npm for managing updates simply wrapping it with quarry to manage the pre /post install functions

If we feel that there will be too much duplication with the component.init() methods then we can pull those out to quarry which calls multiple methods such as component.getTaskFile(), component.getConfig() etc.
Thoughts?

It's also worth noting that this should make upgrading a component easier too.
The other potential is that the task files themselves are never moved. The post install script simply manages modifying the project config and adding the location of the task file to an array that quarry manages for the project.
Then the default gulp file loops through that array and calls them as it does at present.
With that solution we trade a bit of transparency with how the tasks work along for ease of maintenance / upgrade ability.
It would also make customising the files for testing new features harder, unless in that instance we explicitly bring the files within the project as you would no longer be using the specific component at that point.

The other question is should each project start as a fork of slate with all the attendant history or should it be a simple download of the files along with running git init.
Slate could be simplified down to the point where it is the main gulpfile & all of the config. Everything else gets pulled out in to a component, however the Sass and JS modules are simply default ones. That way everything is upgradeable & the base file is unlikely to need changing

Using npm as the 'source' of any modules, components I think is something we should do for sure.
@bmds
Regarding your point of managing them, the lifecycle boiled down would then be...

Grab slate-component from npm
Run some setup code inside of it, mentioned as the init() setup
Copy over relevant files into the current working directory

After the initial slate init (if that's what it's going to be called :smile:) has finished you would be all setup. To this end, I'm unsure if the --save npm flag would be needed, as the slate-component code would only be used once, during the install? After that, the files would be added as part of the repo and that's that.
The comment regarding how to manage initialising a git repo could be done programatically. If the .git folder isn't found in the current working directory then it would ask Do you want this directory to be initialised as a git repo or something. If the .git folder is found then nothing would be done.

The approach of cloning into quarry the slate project before project generation has a few downsides. Mainly the potential loss of having a slate version number (if a fresh clone is done each time quarry generates a project) or if the versioning is done through tagging, the additional management of getting a tagged release of slate into quarry.
Instead, should quarry assume that slate is already installed on the local machine.
So...
npm install -g slate would install slate
npm install -g quarry would install quarry
quarry would check if slate is installed and if so, go ahead with things. If slate is not installed then error and exit.
slate and quarry should be maintained seperately and to whenever possible allow for changes to be made without adversely affecting each other.
This approach would be akin to how grunt and grunt-cli are seperate tools but the latter requires the former to work.

Resolved using npm modules


stop multiplying abg by tree cover fraction

currently running as v0.3.
cc @orianac

I reran 736849 as 0.4.


Bug: The output is error when using VOD HLS.

Use case:
I want to use Sintel.2010.720p.mkv  , Sintel.2010.English.vtt and Sintel.2010.Chinese.vtt as the input.  And just want to output HLS VOD stream. After transcode and package,  the output not includes HLS manifest and the subtitle format is error.

input_vod_config.yaml

# List of inputs.
inputs:
    # Name of the input file.
    # This example can be downloaded from https://storage.googleapis.com/shaka-streamer-assets/sample-inputs/Sintel.2010.4k.mkv
  - name: Sintel.2010.720p.mkv

    # The track number.
    track_num: 0
    # The media type of the input. Can be audio or video.
    media_type: video
    # Frame rate in seconds.
    frame_rate: 24.0
    # Resolution of the input.
    resolution: 720p
    # Start time of video to encode.
    start_time: 00:00:00
    # End time of video to encode.
    end_time: 00:01:00

    # A second track (audio) from the same input file.
  - name: Sintel.2010.720p.mkv
    track_num: 1
    media_type: audio
    start_time: 00:00:00
    end_time: 00:01:00

    # https://storage.googleapis.com/shaka-streamer-assets/sample-inputs/Sintel.2010.English.vtt
  - name: Sintel.2010.English.vtt
    media_type: text
    language: en

    # https://storage.googleapis.com/shaka-streamer-assets/sample-inputs/Sintel.2010.Chinese.vtt
  - name: Sintel.2010.Chinese.vtt
    media_type: text
    language: zh

pipeline_vod_config.yaml

streaming_mode: vod

# A list of resolutions to encode.
# For VOD, you can specify many more resolutions than you would with live,
# since the encoding does not need to be done in real time.
# - 4k
# - 1080p
# - 720p

resolutions:
  - 480p
  - 360p

# The number of audio channels to output.
channels: 2

# The codecs to encode with.
# - aac
# - opus
# - h264
# - vp9
audio_codecs:
  - aac
video_codecs:
  - h264

# Manifest format (dash, hls or both)
# - hls
# - dash
manifest_format:
  - hls

# Length of each segment in seconds.
segment_size: 10

# Forces the use of SegmentTemplate in DASH.
# segment_per_file: True

Running on Mac OS:
$ python3.7 shaka-streamer -i config_files/input_vod_config.yaml -p config_files/pipeline_vod_config.yaml -o ../../shaka_packager/streamer/vod

I'm not sure whether the subtitle output format (m4s) is correct.  I hope the text format is webvtt.

I'm not sure if I understand your report.  Please tell me if I got some of the details wrong.

After transcode and package, the output not includes HLS manifest

Are you saying there are no m3u8 files in the output folder?  I can't reproduce this on Linux, but I'll try again on macOS.

and the subtitle format is error.

What exactly do you mean by this?  If there is no HLS manifest, how do you know that there's a problem with the subtitles?

@joeyparrish  The output result is as the picture described.  There are 2 problems:

I'm not sure why you don't have m3u8 files.  I can't reproduce that on Linux, but I've yet to try to reproduce the issue on macOS.  I'll be able to try that tomorrow.
As for the text, we can't cut or process text in any way.  I'll make sure to update the code to reject this combination and the docs to match.

I can now confirm that there are no HLS outputs on macOS.  I don't know why.  It might be a bug in Shaka Packager, which is responsible for creating the HLS playlists and DASH manifest.  I'll keep digging.

Manifest files (m3u8 and mpd) appear only after full transcoding (segmentation).
If you use live type (streaming_mode: live
) - the manifest appears immediately.
I thought it was a streamer feature :)
But I also did not like this behavior :)
Checked on mac os 10.14.6

The behavior of waiting to write the manifest for VOD is actually controlled by Shaka Packager.
In my test on macOS, even after transcoding was complete, I found no HLS playlists.  This was not the case on Linux.  So there may be a Packager bug on Mac.
@kqyang, I'll prepare a bug report on this soon.

@joeyparrish The problem could be related to the specific content or command options as there is no problem packaging Shaka Packager test content: https://travis-ci.org/google/shaka-packager.
I'll try to re-produce the problem after seeing your bug report.

I've narrowed it down to subtitles.  Without them, everything is working correctly on macOS.  With them, I get no HLS playlists.  I'll send you a minimal repro with a specific command-line soon.
Here's the minimal configs in Shaka Streamer to repro the issue:
# input.yaml
inputs:
  - name: Sintel.2010.720p.mkv
    media_type: audio
    end_time: 00:01

  - name: Sintel.2010.English.vtt
    media_type: text
    language: en

# pipeline.yaml
streaming_mode: vod
resolutions:
  - 360p
manifest_format:
  - hls

This works as expected on Linux, but not macOS.

I've determined that this is not a Packager bug after all.  It has to do with the timing of the shutdown sequence in Shaka Streamer.  FFmpeg shuts down first, and then we're killing Packager before it's done.


Finding Mean,Median,Mode of a numbers

if a user input numbers and he/she will click on mean button to find mean click on median button to find median and mode button to find mode.
I am a gssoc'21 participant can you please assign me this @sairish2001

Feel free to ask your doubts, if any
Deadline 17 March,2021 (11:59 PM IST)

Thanks for assigning this to me i will do my best

I'm a GSSOC'21 participant kindly assign me this issue. I would love to work in this.


Update for 0.5

Various fixes to bring Fontconfig up to date with the rest of the Gadfly ecosystem.

Looks like Travis isn't on. Does anyone have commit access here other than dcjones? Looks like he was online within the last couple days. Should we move this and other similar repos somewhere where they'll be easier to maintain going forward? We can redirect METADTA to point to a fork if absolutely necessary like we did with Showoff.jl, but hopefully that won't be needed again?

Daniel gave me commit access, but I still can't turn on Travis. We should transfer the Gadfly, Compose, Fontconfig stack to an organization. I talked to Daniel about this and he's for it.
Any ideas on what we should call it? Or should we move them to the JuliaGraphics umbrella?


some confused detail when training

Hi, thanks to your code.
First, I follow your readme 'python train.py --regularization 'GRU', and I change the flag 'use_pretrain' to False, so my first question is that is this model need a pre-trained weights?
Second, I use ubuntu18.04, tensorflow1.6.0,gtx1080, I think my memory is enough, but after first epoch, the program has been killed.So I change the max_d and interval_scale.So I'm wonder that if this has some influence on result?Should I use some bigger memeory?

The model can be trained from scratch, the "--use_pretrain" is just an interface for your convenience.
I would not suggest changing the hyperparameters during training. From my experiments, 8GB is enough for MVSNet training, but R-MVSNet requires at least 11GB memory.


Disable Travis CI?

Why still use Travis CI? It seems completely redundant with the GitHub Actions CI, and it's so much slower. A lot of the times, it doesn't even run. It must be costing postgrespro money to use it. Just my thoughts.

GitHub CI seems enough, I don't see why Travis is still useful.


problem about DeformableSwinTransformerBlock

when i feed the input data whose shape is [1, 3, 240, 250], there is an error at https://github.com/ChristophReich1996/Swin-Transformer-V2/blob/d1b89227ef0045c3ab667a4f2cdea9ec4f240236/swin_transformer_v2/model_parts.py#L574 , the error is listed below:
RuntimeError: The size of tensor a (48) must match the size of tensor b (256) at non-singleton dimension 2
it appears that the shape of self.default_grid.repeat_interleave(repeats=offsets.shape[0], dim=0) and offsets is different, I wonder if you have the same problem and it will be of great help if you can help me solve it, thank you~

Hi @nullxjx,
I guess there are two issues with your code. First, if you initialize the Swin-Transformer V2 you need to specify the input resolution you would like to utilize. Second, the resolution [1, 3, 240, 250] is invalid, since, due to the hierarchical architecture of the Swin-Transformer, the feature maps need to be devisable four times by two in the optimal case. But to be sure what the problem is, please share your full code, if possible
Cheers
Christoph

Hi @ChristophReich1996 ,
Here is the thing, currently i am using your code for image super resolution task, the difference between your classification task and mine is that i dont have a hierarchical architecture, this is, after every stage, the shape of the feature maps remain the same.
And your code serves as the backbone in my network architecture.
my full code is available at https://github.com/nullxjx/Swinir-V2.
the above error appears at https://github.com/nullxjx/Swinir-V2/blob/98c33cc9479f13823b6a841bad1eec7ac15018a9/models/utils_for_swinir_v2.py#L619
please check it if you have time, thank you~

Hi @nullxjx,
I can't retrace your full code but I think the error occurs due to the incorrect image shape given to the model's constructor. Also, be aware that the patch size must be compatible with you image shape you want to process. Padding the input image to a resolution of [1, 3, 256, 256] would be the easiest fix I guess. Please refer to the provided example for the correct usage.
Cheers
Christoph

Hi @ChristophReich1996 ,
When using DeformableSwinTransformerBlock, I also found a problem. Here's a quick example: when I use "with torch.cuda.amp.autocast(): " to forward model (set use_deformable_block=False, and delete ": torch.Tensor" from your code which will result in a half-precision error)，It still shows errors with mismatched accuracy.
This is the line of code that finally reported the error:
https://github.com/ChristophReich1996/Swin-Transformer-V2/blob/d1b89227ef0045c3ab667a4f2cdea9ec4f240236/swin_transformer_v2/model_parts.py#L579

Hi @834799106, please provide the full error message and the code, otherwise, I can only guess what the bug might be.

Hi @ChristophReich1996 ,
I've changed a lot of the code for my own tasks now, but the core is pretty much the same. Here's Traceback(The format might be a little messy)
RuntimeError                              Traceback (most recent call last)
/tmp/ipykernel_3054492/3751280697.py in
5 with torch.cuda.amp.autocast():
----> 6     d = model(a)
/model_parts3d.py in forward(self, input)
586         # Apply sampling grid
587         input_resampled = F.grid_sample(input=input, grid=offset_grid.clip(min=-1, max=1),
--> 588                                                       mode="bilinear", align_corners=True, padding_mode="reflection")
589         # Reshape resampled tensor again to [batch size, channels,spatial, height, width]
590         input_resampled = input_resampled.view(batch_size, channels, spatial, height, width)
~/.conda/envs/X/lib/python3.7/site-packages/torch/nn/functional.py in grid_sample(input, grid, mode, padding_mode, align_corners)
3834         align_corners = False
3835
-> 3836     return torch.grid_sampler(input, grid, mode_enum, padding_mode_enum, align_corners)
3837
3838
RuntimeError: grid_sampler(): expected input and grid to have same dtype, but input has c10::Half and grid has float

I think simply casting the default grid to the same data type as the input should get the job done. I thought autocast would do this automatically.
# Cast offset grid to input data type
if input.dtype != self.default_grid.dtype:
    self.default_grid = self.default_grid.type(input.dtype)

After modification, it can work normally. Thanks!

Hi,I wonder if the problem is here. When I define the model, I set the input_resolution to [48, 48], but when I test the model on an input [240, 250], the error occurs. The problem is that I train the model on images whose size is 48x48, but I will test the model on random images whose size are unknown,how should I handle it?

Hi @nullxjx, Yes as mentioned in my previous response this seems to be the problem. The model needs to know the input resolution. If you want to change the resolution use the respective method, as explained in the README.

Hi, I solve the above mentioned problem, but I find a new problem, when I put both the input and the model to cuda device, as the following code in https://github.com/ChristophReich1996/Swin-Transformer-V2/blob/75e5ac9ebb177f5b0accca31460ced323fa7b0e1/example.py#L10
def main() -> None:
    # Make input tensor and init Swin Transformer V2, for the custom deformable version set use_deformable_block=True
    input = torch.rand(2, 3, 256, 256).cuda(0)
    swin_transformer: SwinTransformerV2 = swin_transformer_v2_t(in_channels=3,
                                                                window_size=8,
                                                                input_resolution=(256, 256),
                                                                sequential_self_attention=False,
                                                                use_checkpoint=False).cuda(0)
    # Perform forward pass
    output = swin_transformer(input)
    print(output.shape)

    # Update the resolution and window size of the Swin Transformer V2 and init new input
    swin_transformer.update_resolution(new_window_size=16, new_input_resolution=(512, 512))
    input = torch.rand(2, 3, 512, 512).cuda(0)
    # Perform forward pass
    output = swin_transformer(input)
    print(output.shape)

the below error occurs,

Traceback (most recent call last):
File "C:/Users/XJX/Desktop/Swin-Transformer-V2/example.py", line 29, in
main()
File "C:/Users/XJX/Desktop/Swin-Transformer-V2/example.py", line 24, in main
output = swin_transformer(input)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model.py", line 107, in forward
output: torch.Tensor = stage(output)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 756, in forward
output: torch.Tensor = block(output)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 449, in forward
output_attention: torch.Tensor = self.window_attention(output_patches, mask=self.attention_mask)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 304, in forward
mask=mask)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 211, in __self_attention
attention_map: torch.Tensor = attention_map + self.__get_relative_positional_encodings()
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 180, in __get_relative_positional_encodings
relative_position_bias: torch.Tensor = self.meta_network(self.relative_coordinates_log)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\container.py", line 117, in forward
input = module(input)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\linear.py", line 93, in forward
return F.linear(input, self.weight, self.bias)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\functional.py", line 1690, in linear
ret = torch.addmm(bias, input, weight.t())
RuntimeError: Tensor for argument #2 'mat1' is on CPU, but expected it to be on GPU (while checking arguments for addmm)

the problem is that at line https://github.com/ChristophReich1996/Swin-Transformer-V2/blob/75e5ac9ebb177f5b0accca31460ced323fa7b0e1/swin_transformer_v2/model_parts.py#L180 , the variable self.relative_coordinates_log is not on device cuda，you should put all variables on the same device.

Fixed.

new problem about your recent fix at https://github.com/ChristophReich1996/Swin-Transformer-V2/blob/d54e0cfc480afad1ba1c7d2a818849e5658e5e6e/swin_transformer_v2/model_parts.py#L536
D:\anaconda3\envs\swin_v2\python.exe C:/Users/XJX/Desktop/Swin-Transformer-V2/example.py
Traceback (most recent call last):
File "C:/Users/XJX/Desktop/Swin-Transformer-V2/example.py", line 30, in
main()
File "C:/Users/XJX/Desktop/Swin-Transformer-V2/example.py", line 16, in main
use_deformable_block=True).cuda(0)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model.py", line 137, in swin_transformer_v2_t
**kwargs)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model.py", line 77, in init
use_deformable_block=use_deformable_block and (index > 0)
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 732, in init
for index in range(depth)])
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 732, in
for index in range(depth)])
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 521, in init
self.__make_default_offsets()
File "C:\Users\XJX\Desktop\Swin-Transformer-V2\swin_transformer_v2\model_parts.py", line 537, in __make_default_offsets
device=self.tau.device)
File "D:\anaconda3\envs\swin_v2\lib\site-packages\torch\nn\modules\module.py", line 779, in getattr
type(self).name, name))
torch.nn.modules.module.ModuleAttributeError: 'DeformableSwinTransformerBlock' object has no attribute 'tau'
进程已结束,退出代码1

Also fixed.


Please define outside collaborators in code

Hi there
We now have a process to manage github collaborators in code:
https://github.com/ministryofjustice/github-collaborators/blob/main/README.md#github-outside-collaborators
Please follow the procedure described there to grant @netwidz access to this repository.
If you have any questions, please post in #ask-operations-engineering on Slack.

Outside collaborator not required


fix: add string trim for PrivValidatorListenAddr string

Description

Audit issue: add TrimSpace for the string value of PrivValidatorListenAddr

https://github.com/Finschia/ostracon/blob/df661e931c14c6ec2332a931ce6a1092d0f8d812/cmd/ostracon/commands/show_validator.go#L29
Should this be fixed too?

Please add issue detail.

https://github.com/Finschia/ostracon/blob/df661e931c14c6ec2332a931ce6a1092d0f8d812/cmd/ostracon/commands/show_validator.go#L29
Should this be fixed too?

It has been fixed(3d05d06bdb76f5b0e278930564f1a60be4060cec)


Fix crash after undo when editing Polygon2D (#1275)

A old issue, but i tested it today and still happening.

This PR now needs to be rebased due to merge conflicts.


[PT-BR] Blackout Comics: 500 | Server Error

Source information
Blackout Comics
Source language
Portuguese (Brazilian)
Steps to reproduce

Open extension
Login
Error

Expected behavior
Load mangas
Actual behavior

Mihon/Tachiyomi version
0.16.4
Android version
Android 11
Other details
No response
Acknowledgements

[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 short but informative title.
[X] I have updated the app to version 0.15.3.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

500 errors are server side, nothing we can do about it

500 errors are server side, nothing we can do about it

This error only occurs when you log in via the application

Is there any way to "hide the app" in the webview to log in?


tensors are on different GPUs

I run the demo, return 'tensors are on different GPSs' , but I have only one GPU.
The demo was run successfully with CPU.
Can you put the process of using the GPU to release it?
Thank you very much!

Most likely that the net is not on GPU, try adding the following, just after weight loading:
if torch.cuda.is_available():
net = net.cuda()

I tried this way, another error occurred:
TypeError: mul received an invalid combination of arguments - got (torch.FloatTensor), but expected one of:

(float value)
didn't match because some of the arguments have invalid types: (torch.FloatTensor)
(torch.cuda.FloatTensor other)
didn't match because some of the arguments have invalid types: (torch.FloatTensor)

I added the 'net = net.cuda()' after 'net.load_state_dict(torch.load(trained_model))' , and 'x = x.cuda()' after 'x = Variable(x.unsqueeze(0))' .
Thank you.

I see.. I think setting the default tensor to be cuda might solve it, try to put the following somewhere before model loading:
if torch.cuda.is_available():
    torch.set_default_tensor_type('torch.cuda.FloatTensor')

That's doesn't work, same problem.

Did you restart the kernel?
I tested with the following change on a GPU machine and it works:
if torch.cuda.is_available():
    torch.set_default_tensor_type('torch.cuda.FloatTensor')
net = build_ssd('test', 300, 21)    # initialize SSD
net.load_weights('../weights/ssd300_mAP_77.43_v2.pth')
if torch.cuda.is_available():
    net = net.cuda()

Yes it works！
torch.set_default_tensor_type('torch.cuda.FloatTensor') Should before net = build_ssd('test', 300, 21)
Thank you very much !!

@alexkoltun
I'm sorry but, when I train my network on gpu by below code,
if torch.cuda.is_available():
    net = net.cuda()

Why there is another need when I'm training for example int train.py
        if args.cuda:
            images = images.cuda()
            targets = [ann.cuda() for ann in targets]
        else:
            images = images
            targets = [ann for ann in targets]

Is there also diffenrence between below two line??
images = images.cuda()
# and
images = images

Thanks ahead.


Feat/new report layout

This PR adds...

Added text truncation for aria rule description with read more button

iframe in scanAbout does not display when the user is offline

Version changes

[ ] I've kept this PR as small as possible (~500 lines) by splitting it into PRs with manageable chunks of code

[x] I've requested reviews from 1 reviewer

[x] I've tested existing features (website scan, sitemap, custom flow) in both node index and cli

[x] I've synced this fork with GovTechSG repo

[ ] I've added/updated unit tests (N.A.)

[ ] I've added/updated any necessary dependencies in package[-lock].json npm audit, portable installation on GitHub Actions (N.A.)

Please pull from master in a new branch before merging


Update EventLoop.swift typo

[One line description of your change]
Motivation:
[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]
Modifications:
[Describe the modifications you've done.]
Result:
[After your change, what will change.]

@Andrewangeta can you please amend the commit message to include what you changed and why ?

@swift-nio-bot test this please

ping @Andrewangeta . Thanks for your patch, that's great! Mind changing the actual commit message (not just the PR) to match our commit template (see here on how to set up git to do that automatically)

@swift-nio-bot test this please


Consistent RBR on IOU requests on the LHN

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @davidcardoza
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1718653149685669
Action Performed:

User logging in to NewDot with account<EMAIL_ADDRESS>Observe the LHN

Expected Result:
Should show only the IOUs submitted to<EMAIL_ADDRESS>Actual Result:
Random IOU requests appear that were not submitted to<EMAIL_ADDRESS>The IOUs are blank and cannot be actioned on to remove the RBR from LHN
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos

https://github.com/Expensify/App/assets/38435837/0ad153d8-99e8-4b43-b059-e39b51658033

View all open jobs on GitHub

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

Ah actually, I can't add that as there aren't really useful reproduction steps.

Asking in Slack for some more steps.

Can't get newDot supportal to work. Seeing if Caitlin can help point me in the right direction. https://expensify.slack.com/archives/C036S0BVAHH/p1719242964781929?thread_ts=1718402316.380749&cid=C036S0BVAHH

We have a call booked in a week or so.

Okay, this is no longer an issue but we'll create a new issue for another ongoing thing: https://expensify.slack.com/archives/C036S0BVAHH/p1720441583301569
Logs: 8a3a2739cfd27645-SEA


Showing custom types in Sphinx Docs

Hi @patrick-kidger, thanks for maintaining such a great project! :D
I'm running into some behaviour I'd like to change when rendering docs with Sphinx.
When I define a type it is rendered as a torch.Tensor in the docs e.g.:
#types.py

from torchtyping import TensorType

CoordTensor = TensorType[-1, 3]

# function.py

from .types import CoordTensor

def func(x: CoordTensor) -> CoordTensor:
    """Returns the input.

    :param x: tensor
    :type x: CoordTensor
    """"
    return x

Do you know if there is a way to get Sphinx to show the type name I have defined (and possibly make it clickable so users can jump to the type definition in the documentation?)

I managed to resolve this:
Prevents resolving to torch.Tensor
# types.py

from typing import NewType
from torchtyping import TensorType

CoordTensor = NewType("CoordTensor", TensorType[-1, 3])

And to get sphinx to render links:
# conf.py

import sphinx.ext.autodoc
sphinx.ext.autodoc.NewTypeDataDocumenter.directivetype = "class"

FWIW, these days I now recommmend that folks use jaxtyping, which is pretty much a straight upgrade. Despite the name (historical reasons) it also handles PyTorch, doesn't have a JAX dependency, and it appears in documentation just fine. (At least, MkDocs-based documentation. I've not tried it with Sphinx.)


Instrumentation not registered causing no traces/spans for typeorm

I'm trying to setup typeorm instrumentation following way:
export const otelSDK = new NodeSDK({
  metricInterval: 1000,
  traceExporter: exporter,
  textMapPropagator: new CompositePropagator({
    propagators: [
      new W3CTraceContextPropagator(),
      new W3CBaggagePropagator(),
      new B3Propagator(),
      new B3Propagator({
        injectEncoding: B3InjectEncoding.MULTI_HEADER,
      }),
    ],
  }),
  spanProcessor: new BatchSpanProcessor(exporter, {
    maxQueueSize: 10,
    maxExportBatchSize: 10,
    scheduledDelayMillis: 50,
    exportTimeoutMillis: 3000,
  }),
  instrumentations: [
    getNodeAutoInstrumentations(),
    new TypeormInstrumentation({
      collectParameters: true,

      enabled: true,
      path: 'opentelemetry-plugin-better-sqlite3',
    }),
  ],
});

I've enabled logger for all logs
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.ALL);

Once I launch application there is no typeorm instrumentation loaded
@opentelemetry/api: Registered a global for diag v1.0.4.
Loading instrumentation for @opentelemetry/instrumentation-amqplib
Loading instrumentation for @opentelemetry/instrumentation-aws-lambda
No modules instrumentation has been defined, nothing will be patched
Loading instrumentation for @opentelemetry/instrumentation-aws-sdk
Loading instrumentation for @opentelemetry/instrumentation-bunyan
Loading instrumentation for @opentelemetry/instrumentation-cassandra-driver
Loading instrumentation for @opentelemetry/instrumentation-connect
Loading instrumentation for @opentelemetry/instrumentation-dns
Loading instrumentation for @opentelemetry/instrumentation-express
Loading instrumentation for @opentelemetry/instrumentation-fastify
Loading instrumentation for @opentelemetry/instrumentation-generic-pool
Loading instrumentation for @opentelemetry/instrumentation-graphql
Loading instrumentation for @opentelemetry/instrumentation-grpc
Loading instrumentation for @opentelemetry/instrumentation-hapi
Loading instrumentation for @opentelemetry/instrumentation-http
Loading instrumentation for @opentelemetry/instrumentation-ioredis
Loading instrumentation for @opentelemetry/instrumentation-knex
Loading instrumentation for @opentelemetry/instrumentation-koa
Loading instrumentation for @opentelemetry/instrumentation-memcached
Loading instrumentation for @opentelemetry/instrumentation-mongodb
Loading instrumentation for @opentelemetry/instrumentation-mysql2
Loading instrumentation for @opentelemetry/instrumentation-mysql
Loading instrumentation for @opentelemetry/instrumentation-nestjs-core
Loading instrumentation for @opentelemetry/instrumentation-net
Loading instrumentation for @opentelemetry/instrumentation-pg
Loading instrumentation for @opentelemetry/instrumentation-pino
Loading instrumentation for @opentelemetry/instrumentation-redis
Loading instrumentation for @opentelemetry/instrumentation-restify
Loading instrumentation for @opentelemetry/instrumentation-winston

TypeORM is in version 0.2.45
    "opentelemetry-instrumentation-typeorm": "^0.27.1",
    "opentelemetry-plugin-better-sqlite3": "^0.8.1",
    "@opentelemetry/instrumentation": "^0.28.0",
    "@opentelemetry/sdk-node": "^0.27.0",
    "@opentelemetry/sdk-trace-base": "^1.0.1",
    "@opentelemetry/sdk-trace-node": "^1.2.0",
    "@opentelemetry/tracing": "^0.24.0",

No spans/traces are recorded for TypeORM in Jaeger.

Hi @hejkerooo
I see that the path you defined for the typeorm instrumentation is 'opentelemetry-plugin-better-sqlite3' which might cause this issue. I think you can remove the path attribute and test if it works

I've tried without it aswell and still the same result

Can you please try with "@opentelemetry/instrumentation": "^0.27.0",.
The instrumentations in this repo should be upgraded to support 0.28.0 but that is currently blocked on @opentelemetry/contrib-test-utils which should be published by contrib to allow us to update.
Also, I see that you install both "@opentelemetry/sdk-trace-node" and "@opentelemetry/sdk-node". Don't know if it's related to the issue, but it is probably redundant.


code command opens directory as multi-root workspace

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

VS Code Version: 1.69.2
OS Version: macOS 11.6 (20G165)

Steps to Reproduce:

Open terminal
Switch directory
Execute code .
Multi-root workspace is opened

On the left side, the directory is opened with File > Open Folder. On the right side, the folder is opened with the code . command.
This results in the following popup appearing constantly.

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

The recent nightly insiders build does not appear to have this issue.


PODs within Karpenter nodes are not able to assume roles.

Description
Hi everyone,
I'm using Karpenter 1.1.1. My pod within the Karpenter node is not able to assume roles. I have an EKS cluster with 2 nodes. One node is managed by node groups and Karpenter manages the second node. PODs within the node in the node group can assume roles. PODs within the node managed by Karpenter are not able to assume roles.
Here is an example. This is the POD within the node managed by the node groups.
bash-4.2# aws sts get-caller-identity
{
    "UserId": "SDFGBSFGBSFGBSFGBSFG:i-123456789",
    "Account": "123456789",
    "Arn": "arn:aws:sts::123456789:assumed-role/us-east-2-node-group-role/i-123456789"
}
bash-4.2#

This is the POD within the node managed by Karpenter.
bash-4.2# aws sts get-caller-identity

Unable to locate credentials. You can configure credentials by running "aws configure".
bash-4.2#

I checked the roles attached to both nodes and they have AmazonS3FullAccess policy attached.
Here is my EC2NodeClass
    apiVersion: karpenter.k8s.aws/v1
    kind: EC2NodeClass
    metadata:
      name: default
    spec:
      amiSelectorTerms:
        - alias: al2@v20241205
      role: "${module.karpenter.node_iam_role_name}"
      subnetSelectorTerms:
        - tags:
            karpenter.sh/discovery: "${local.eks-name}"
      securityGroupSelectorTerms:
        - tags:
            karpenter.sh/discovery: "${local.eks-name}"

And here is my NodePool,
    apiVersion: karpenter.sh/v1
    kind: NodePool
    metadata:
      name: default
    spec:
      template:
        spec:
          requirements:
            - key: kubernetes.io/arch
              operator: In
              values: ["amd64"]
            - key: kubernetes.io/os
              operator: In
              values: ["linux"]
            - key: karpenter.sh/capacity-type
              operator: In
              values: ["${local.karpenter-capacity-type}"]
            - key: karpenter.k8s.aws/instance-category
              operator: In
              values: ["c", "m", "r"]
            - key: karpenter.k8s.aws/instance-generation
              operator: Gt
              values: ["2"]
          nodeClassRef:
            group: karpenter.k8s.aws
            kind: EC2NodeClass
            name: default
          expireAfter: 720h # 30 * 24h = 720h
      limits:
        cpu: 1000
      disruption:
        consolidationPolicy: WhenEmptyOrUnderutilized
        consolidateAfter: 1m

Any idea what this problem can be?

I found this post, but it didn't help.
https://github.com/aws/karpenter-provider-aws/issues/5310

Starting with v1.0.0, Karpenter defaults httpPutResponseHopLimit to 1 (ref - upgrade guide) to align with EKS Best Practices. This will prevent pods not using hostNetworking from accessing IMDS and assuming the NodeRole. You can increase the hop limit to 2 to continue to use the NodeRole, but we recommend using EKS Pod Identity or IRSA to manage pod credentials.


Added cdn

A similar PR may already be submitted!
Please search among the Pull request before creating one.
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:
Before opening a pull request, please make sure all the tests pass locally by running npm test.
Summary

This PR fixes/implements the following bugs/features

[ ] Bug 1
[ ] Bug 2
[ ] Feature 1
[ ] Feature 2
[ ] Breaking changes

Explain the motivation for making this change. What existing problem does the pull request solve?

Test plan (required)
Demonstrate how the issue/feature can be replicated. For most cases, simply adding an appropriate html/css template into the reftests should be sufficient. Please see other tests there for reference.
Code formatting
Please make sure that code adheres to the project code formatting. Running npm run format will automatically format your code correctly.
Closing issues

Fixes #

Can be tested in @cantoo/html2canvas


Translation recommendations.

Hi again,
I had some luck translating most of the text used on the calendar, good times. However I noticed that the days and months are all generated by moments.js which also supports locale. On my current project, we do translation a little different from what is mostly expected, but we can get the locales from the backend.
I would suggest that there be a key (or prop) by which we can define locale to be used, which gets passed down to when moments generates the days and month names for that specific locale.

Thanks for the recommendations, I'll make a comment and do the work in #54

Just a heads up - locale support is in the latest commit and will be in the next release (soon):
https://github.com/ClickerMonkey/dayspan-vuetify/commit/ec63896aadb4a889cef981091ab55998b7c0fc8f