simple display push message if i open page

Can you please place an example of even simpler push notification if client open a static page, and   push notification appears(like popup) !?
Thanks!

Sorry, foud by myself in oficial manual:
`window.addEventListener('load', function () {
var button = document.getElementsByTagName('button')[0];
button.addEventListener('click', function () {
// If the user agreed to get notified
// Let's try to send ten notifications
if (window.Notification && Notification.permission === "granted") {
var i = 0;
// Using an interval cause some browsers (including Firefox) are blocking notifications if there are too much in a certain time.
var interval = window.setInterval(function () {
// Thanks to the tag, we should only see the "Hi! 9" notification
var n = new Notification("Hi! " + i, {tag: 'soManyNotification'});
if (i++ == 9) {
window.clearInterval(interval);
}
}, 200);
}
// If the user hasn't told if they want to be notified or not
// Note: because of Chrome, we are not sure the permission property
// is set, therefore it's unsafe to check for the "default" value.
else if (window.Notification && Notification.permission !== "denied") {
  Notification.requestPermission(function (status) {
    // If the user said okay
    if (status === "granted") {
      var i = 0;
      // Using an interval cause some browsers (including Firefox) are blocking notifications if there are too much in a certain time.
      var interval = window.setInterval(function () {
        // Thanks to the tag, we should only see the "Hi! 9" notification
        var n = new Notification("Hi! " + i, {tag: 'soManyNotification'});
        if (i++ == 9) {
          window.clearInterval(interval);
        }
      }, 200);
    }

    // Otherwise, we can fallback to a regular modal alert
    else {
      alert("Hi!");
    }
  });
}

// If the user refuses to get notified
else {
  // We can fallback to a regular modal alert
  alert("Hi!");
}

});
});
`


fix(pinecone): fix PineconeStore to support null or undefined pageContent

This change provides compatibility with vectorstores that may not have been populated by langchain and do not have the pageContent property defined or populated.  Previous versions of this module supported this, so this is to provide backwards compatibility for those data pipelines & workloads.
Note that any new Documents added to the document store via langchain will ensure pageContent is set.
Fixes #6919

Thank you!


fix/frontend: Renamed file for best practice naming conventions

DEV deployments have completed successfully!
Backend: https://nrfc-33-backend.apps.silver.devops.gov.bc.ca/
Frontend: https://nrfc-33-frontend.apps.silver.devops.gov.bc.ca/


Privacy Policy Update

RL website has currently updated their Privacy Policy and now requires to ACCEPT the new terms in order to login.

Thanks for reporting this @Carje4cs. I'll look into fixing this now and pushing a minor update.

@Carje4cs this has been fixed in v0.3.2.
Thanks again for reporting the issue - I haven't been playing Rocket League recently, and therefore I'm not using dodgem, so I would have never known 👍


Teleport Kusama to KusamaHub not working

related?

https://github.com/kodadot/nft-gallery/pull/7765

Yes might be, looks like it was working for @prury.
maybe try to clear node_modules and install packages

@roiLeo , @prury, please let us know if the problem is still present. We have tested all possible scenarios before pushing PR so should be working fine, but a mistake might have happened from our side also.
With kind regards,
Team ParaSpell

works on canary


Add reference to a usable docker image to use

I created my own image, so you are free to refer to it
https://github.com/dkarchmer/docker-fluent-ffmpeg
or to any other appropriate image. With the image above, users can simply do:
docker pull dkarchmervue/fluent-ffmpeg
docker run --rm -ti -v ${PWD}:/work dkarchmervue/fluent-ffmpeg node your-nodejs-script.js

The main advantage is that it avoids having to figure out how to install the latest ffmpeg. I am happy to make the changes but wanted to ask first. Not looking to push my own image, so I would have been happy with a documented image.
Great project, BTW.

That's a good idea. Do you have a repo for the base dockerfile, too (ffmpeg) ? Which version does it install ? Is it easy to update ?

Yes, the fluent-ffmpeg image derives from https://github.com/ampervue/docker-ffmpeg which I also created (its the one I actually use for my back-end infrastructure). It is specifically intended to install the latest FFMPEG as, IMO, there are easier ways to get older versions of ffmpeg. So, this image builds most libraries from source based on the latest software.


All Tests failing on TestScripting.test_script_object

https://github.com/Grokzen/redis-py-cluster/blob/078867b51b2613ad822c1bcf6997fc29df0ade18/tests/test_scripting.py#L97
assert not multiply.sha seems to cause a fail for basically all the unit tests at the moment...
The sha member used to be just '' which will pass assert not '':
https://github.com/andymccurdy/redis-py/blob/d6c300b39ab4c81cd97b81fcd8d25a9cde9476e7/redis/client.py#L2935
But since https://github.com/andymccurdy/redis-py/commit/f49f7d27592a5ed1e7f27f032c1e54d646154c89 is pre-computed as of ~4mo ago so no-longer passes this assertion if using a version of redis-py with this change... A simple fix would probably be to just zap this line, it doesn't seem to have any super-critical purpose

@AngusP I merged the MR you posted. Closing this MR but i will try to take a pass over the entire code base to bump this code to the same standard as the latests redis-py code becuase there is more changes that might need to be ported here.


what does the callback?

I would like an example to know the operation of the callback as prop of this library

Check the demo: https://codesandbox.io/s/ovvwzkzry9


Implement TestCafe tests for UserPage

TestCafe tests should test all aspects of the UserPage page.
The page should only display components that are appropriate to the type of user, and the components should be able to access and update user profile data.

Completed following UserPage tests:

Check that the user's profile information is correct
Check that the user has access to all the clubs they are a member of
Check that the user can edit all the clubs that they have permission to edit

Further tests will be implemented in M3.


Create jboss-cli

For Keycloak 6.x  cli interface is the proposed way to configure. The file is setting the exporter config

Hi @msglueck,
thank you, great addition! Could you please also update the docker build and the readme.md?

Got reminded of the missing CLI documentation today!

@joyrex2001

Looks good 👍🏻


Roll Flutter Engine from 25514eca7dc4 to a3e3e8780439 (4 revisions)

https://github.com/flutter/engine/compare/25514eca7dc4...a3e3e8780439
2023-03-20<EMAIL_ADDRESS>Roll Skia from d21c3f85a242 to f7e520c53ab0 (4 revisions) (flutter/engine#40445)
2023-03-20<EMAIL_ADDRESS>Roll Skia from 30456d261bd0 to d21c3f85a242 (1 revision) (flutter/engine#40444)
2023-03-20<EMAIL_ADDRESS>[Impeller] Load instead of restore drawing for non-MSAA passes (flutter/engine#40436)
2023-03-20<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from YLzkZ3N0GvTgBCcMI... to 9sc93KgVblyQ_mGC_... (flutter/engine#40443)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from YLzkZ3N0GvTg to 9sc93KgVblyQ
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC aaclarke@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Issue warning or error when no scopes are specified

We recently had a Monitoring configuration with no auth information. This worked when using credentials obtained via gcloud auth login, but failed with a service account. (It was expected to work, but that's a separate gRPC issue.)
We should at least issue a warning, and ideally stop with an error if we come across such a configuration. (Possibly with some sort of "force because I'm just prototyping" flag?)
Assigning to Brian initially as he'll know where to reassign :)

@bjwatson Please reassign

This is P2, so no one needs to be assigned.

This error message is for the language owners to implement, in either gapic-generator or the microgenerators.

This error message is for the language owners to implement, in either gapic-generator or the microgenerators.

@jskeet Can this be translated to "output a warning if an API does not have (google.api.oauth_scopes) annotation" four years later?

@hzyi-google: Yes, I suspect that's the case :)


Merge live to main - 10/10/23

…nd career path opportunities.md
Fixed formatting issues and added author byline.

#sign-off


Calculator program with python

Calculator with python

Hey there -- thank you for the contribution. Please verify if the repository meets the criteria to list a new project in Good First Issue.


Random subtitle added to every movie

So I just found this amazing script and over all I think its great except for 1 issue. I don't know why but every movie I try to run this against I have an issue with subtitles. I keep getting this 1 random subtitle that only contains a single time stamp  <IP_ADDRESS>. I have removed and downloaded the scrip, changed the config file every possible way I can come up with. I have reloaded the OS about 5 times in a VM and yet the issue is always there. I have left the autoProcess.ini with the most basic settings and still no joy. Any help is greatly appreciated and if there is any further info needed I will provide it. Please note I am a bit of a novice.
Ubuntu 16.04
autoProcess.ini
Python 2.7.12
My goal would be have the movies as mp4s with no integrated subtitles and only a single srt external file.

So just did another clean install of ubuntu 16.04 and did not even install "subliminal<2". Still getting the random subtitle in the media.
How I did the install
sudo apt update
sudo apt install python-pip git ffmpeg -y
sudo -H pip install --upgrade pip
sudo -H pip install requests
sudo -H pip install requests[security]
sudo -H pip install requests-cache
sudo -H pip install babelfish
sudo -H pip install "guessit<2"
sudo -H pip install "subliminal<2" ***skipped this
sudo -H pip install stevedore==1.19.1
sudo -H pip install python-dateutil
sudo -H pip install qtfaststart
cd ~
git clone https://github.com/mdhiggins/sickbeard_mp4_automator/
cd sickbeard_mp4_automator
cp autoProcess.ini.sample autoProcess.ini

Should be resolved with latest subliminal update


Latest version 4.13.3-- can not init due to plugins error.

Note: If your issue/bug is regarding the AWS Amplify Console service, please log it in the
Amplify Console GitHub Issue Tracker

Describe the bug
Upgraded to<EMAIL_ADDRESS>Attempt to init a new gatsby project to upload it to amplify fails with the following--
Error: Found no provider plugins
Run 'amplify plugin scan' to scan your system for provider plugins.
init failed
Scanning for plugins...
The following official plugins are missing or inactive:
awscloudformation: provider |<EMAIL_ADDRESS>codegen: util |<EMAIL_ADDRESS>mock: util |<EMAIL_ADDRESS>Plugin scan successful
To my knowledge, there should have been no change to these plugins as they worked the last 72 hours.
Amplify CLI Version
You can use amplify -v to check the amplify cli version on your system
4.3.3
To Reproduce
Steps to reproduce the behavior or terminal output if applicable
amplify init
Expected behavior
A clear and concise description of what you expected to happen.
Expect to complete init without error as I have done the last few weeks and then setup git push to deliver to amplify
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. Mac/Windows/Ubuntu]
Node Version. You can use node -v to check the node version on your system

Ubuntu 19.04, node version 12.15.0
Additional context
Have tried re-installing aws-amplify/cli, reinstalled all node_modules (local).  I saw in prior errors of this kind on windows, users had to manually link plugins giving file path and name.  I didn't see similar way to do on linux.

After about 6 hours of grubbing around, found this recommendation, #2746.  Removing the yarn global dir and reinstalling using npm seems to fix my problem.  Ugh.

Can confirm this issue is still relevant as of today, using yarn (on windows FWIW) will not let you init correctly. You need to install the cli with npm.

Can also confirm, just experienced this.

Could we add a note to the docs specifying that you must use npm and must install the CLI globally? In the JS ecosystem, you can normally use yarn or npm as you please, and install globally or locally, so this behavior is quite confusing.

Would move to reopen this issue, as it is still an issue.
What is the best avenue? New issue and reference this, or ping someone on the team to reopen?
How about I start with pinging OP and asking for reopen: @weisisheng

I don't know what the protocol is for re-opening but feel free if you wish to keep alive.

I'm having the same issue, despite the fact that I installed the CLI using npm and globally.


Browse remote files without downloading everything

It would be great if the extension supported the possibility of browsing the files on the remote server without downloading everything. If I open a file, only this single file is downloaded and then synced on save (or explicitly). The Atom extension remote-ftp offers exactly this functionality. It is great for browsing directories with data and log files.
Expected Behavior
Sync only the list of files when listing the directory. Download files only when they are directly opened.
Actual Behavior
Every single file is downloaded when the directory is listed.
Steps to Reproduce the Problem

Run command SFTP: List
Look at all the files being downloaded!

Requisites
This is more of a feature request. I don't think there are any requisites.

yes, how to download all files a site?

Try vscode-remote-fs


Update. Test Infinispan server SSL/TLS connection

Test secure connection with Infinispan server
Client and server are using the same keystore/truststore file for authentication.
Native mode is working correctly. Secure communication was checked.

@rsvoboda I guess the previous pull request can be deleted!?


Add USB HID example

Requires usb-tools/python-usb-protocol#6

Generally, the usb/devices/ directory is intended to be a stdlib-esque collection of pre-made devices. I'd prefer to keep it to pre-made "template" devices that are broadly useful to a lot of users.
This PR looks more like it contains a very specific usage of HID for a user use case, rather than something that's a very general-case HID device.
Accordingly, I see three potential paths, here:

Have it exist outside of the LUNA core as a free-standing bit of code (and as an example users can be pointed to). This is probably the most straightforward option; and it's generally how I'd expect particular user applications to end up.
Clean up the code into an example, rather than a core device type. I think with some coalescing into a single file, once the python-usb-protocol stuff is merged, it'll make a pretty nice example. I think this is the option I favor, unless you want to put a bunch more work in. :)
Create a more generic HIDDevice class. This will take a lot more work, as the job of a generic HID class would include squishing together signals to form reports that match the report descriptor. I could see a really nice way for this to work (create a class that allows you to add items consisting of Signals and metadata), but I think this is a lot of work, and probably work for me in the future. :)

I would agree with option 2 (Clean up the code into an example). HID devices seem to be less complicated from an actual gateware logic side, and the complexity is more in terms of creating descriptors that play nice with operating systems. Additionally, as the descriptors get more complex (as a generic HIDDevice class would need to support), status register type endpoints seem less suited to the task. Super long term, I think a generic HIDDeivce class might be a neat idea if people were interested, but I'm thinking that this becomes a better idea once some sort of host -> device status register endpoint is built out, and I'm pretty likely to run out of attention span before that gets completed.

Not really sure if at this stage if this example will get me closer to emulating HID controllers on my FPGA, but watching intensely! Really excited to try it out.

@nevercast As this PR stands, you could probably build a working keyboard or something, I've been using this code for a bit as a HID-based datalogger. There may be some breaking changes to the proposed python-usb-protocol API (see usb-tools/python-usb-protocol#6). I'm currently trying to rework that API to maintain similar code patterns to the rest of the code base while avoiding unneeded edge cases or awkward interfaces, and utterly failing, so if you have any ideas there, let me know.

We'd really like to have a HID example in the repository, but this one is now long out of date and doesn't seem like it would be ready to merge in its current form.
So I'm going to close this PR, but feel free to reopen it if updated, or open a new PR for a new version.


Add SELinux policy install instructions

This contains instructions on how to generate and install SELinux custom policy which allows bluetooth communication from docker containers to host.
This is mostly useful for users that want to maintain SELinux on enforcing mode rather than disabling it.

Thanks for your contribution!


Handling API tokens on backend

Hi There,
Apologies if this is not the correct forum. On the CH docs it says that we should include our API tokens as part of the query parameters. Query parameters are generally logged on servers. I can't find any documentation on whether they are logged on POST. Either way I wanted to find out if CH had any special handling for this to protect against tokens being logged in plain text if they are at all.
Thanks in advance :)

Sorry for the super late response, but we've transitioned to specifying the token in the request headers using the Shortcut-Token header. See our API docs.


Add stackdriver lu8865

This PR adds Stackdriver Logging and Monitoring agents to the mgmt and rest-api nodes.

This PR depends on the Terraform PR https://github.com/ONSdigital/blaise-terraform/pull/419 👍

I'd also highly recommend squashing the commits on merge 🙈


CSS Radial Menu

Animated Circular Navigation Menu Magic Indicator using Html CSS & Javascript
Please assign the above issue under GSSOC

@aishwaryas15 any updates?

@aishwaryas15 any updates?

yes I was going to push the code today


Rundown with # in the name breaks the entire application

I am running 1.0.9 and I created a rundown eg: "Rundown #2"
Everything after the # is skipped internally:
Error: ENOENT: no such file or directory, unlink 'X:\SPX-GC\SPX-GC 1.0.9\DATAROOT__ProjectName__data\Rundown .json'
Note the "Rundown .json" file instead of "Rundown #2.json"  - this spams errors in the node terminal and SPX GC no longer responds to commands.

On 1.0.13 the issue remains: this existing rundown from before is unable to be deleted.
2021-07-03T13:02:19.202Z [SPX GC] error: Error while deleting X:\SPX-GC\SPX-GC 1.0.13\DATAROOT\Degroof Petercam\data\DP On Air .json: Error: ENOENT: no such file or directory, unlink 'X:\SPX-GC\SPX-GC 1.0.13\DATAROOT\Degroof Petercam\data\DP On Air .json'


Dependencies missing in bioconda package

Hi! I am wondering why loompy and pybiomart are not in the list of dependencies. As of now
the package (at least in bioconda) is not fully functional and requieres some extra installation
steps if one wants to use certain functionalities provided.

[x] I have checked that this issue has not already been reported.
[x] I have confirmed this bug exists on the latest version of scanpy.
[ ] (optional) I have confirmed this bug exists on the master branch of scanpy.

Minimal code sample (that we can copy&paste without having any data)
conda install -c bioconda scanpy

import scanpy as sc
annot = sc.queries.biomart_annotations("mmusculus", ["ensembl_gene_id", "external_gene_name"])

 line 108, in biomart_annotations
    return simple_query(org=org, attrs=attrs, host=host, use_cache=use_cache)
  File "/Users/jfnavarro/opt/anaconda3/envs/nf-core/lib/python3.7/site-packages/scanpy/queries/_queries.py", line 64, in simple_query
    "This method requires the `pybiomart` module to be installed."
ImportError: This method requires the `pybiomart` module to be installed.

import scanpy as sc
adata = sc.datasets.pbmc3k()
adata.write_loom('dummy.loom')

write_loom(filename, self, write_obsm_varm=write_obsm_varm)
  File "/Users/jfnavarro/opt/anaconda3/envs/nf-core/lib/python3.7/site-packages/anndata/_io/write.py", line 112, in write_loom
    from loompy import create
ModuleNotFoundError: No module named 'loompy'

Versions

WARNING: If you miss a compact list, please try print_header!
anndata     0.7.6
scanpy      1.7.2
sinfo       0.3.1
PIL                 8.3.1
anndata             0.7.6
beta_ufunc          NA
binom_ufunc         NA
bottleneck          1.3.2
cffi                1.14.6
colorama            0.4.4
cycler              0.10.0
cython_runtime      NA
dateutil            2.8.2
dunamai             1.6.0
get_version         3.5
h5py                2.10.0
joblib              1.0.1
kiwisolver          1.3.1
legacy_api_wrap     0.0.0
llvmlite            0.36.0
matplotlib          3.4.2
mkl                 2.4.0
mpl_toolkits        NA
natsort             7.1.1
nbinom_ufunc        NA
numba               0.53.1
numexpr             2.7.3
numpy               1.20.3
packaging           21.0
pandas              1.3.2
pkg_resources       NA
pyparsing           2.4.7
pytz                2021.1
scanpy              1.7.2
scipy               1.7.1
setuptools_scm      NA
sinfo               0.3.1
six                 1.16.0
sklearn             0.24.2
sphinxcontrib       NA
tables              3.6.1
tqdm                4.62.1
typing_extensions   NA
yaml                5.4.1
zipp                NA
Python 3.7.11 (default, Jul 27 2021, 07:03:16) [Clang 10.0.0 ]
Darwin-20.4.0-x86_64-i386-64bit
12 logical CPU cores, i386
Session information updated at 2021-09-15 10:41

Dear @jfnavarro
we recommend that you install the latest scanpy version from conda-forge.
We are currently updating our installation instructions https://github.com/theislab/scanpy/pull/1974

Hi @Zethson! Thanks for your reply. However, I get the same errors when pulling it from conda-forge.

CC @flying-sheep


Define labelling standards

Define the labeling scheme to be used for the project based on:

type
status
priority

References:
https://medium.com/@dave_lunny/sane-github-labels-c5d2e6004b63


replace chalk with picocolors and color-name

part of trying to refactor the logger to eventually remove winston, realized chalk can be replaced without outright removing winston
was originally gonna use color-convert but the use here can be cleanly replaced with just color-name, which both chalk and color-convert use

chalk@4 - 5 subdependencies
picocolors - 0 subdependencies
color-name - 0 subdependencies

huge. thanks as always @SuperchupuDev 🎉

ohp, looks like we lost some colors:

i'm investigating. if you get a chance, can you do similar. i'm on a mac standard terminal.

likely due to pc.isColorSupported being slightly different compared to chalk, will pr a fix making that logic more straightforward

@motdotla can you do require('node:tty').isatty(1) there and tell me its return value? i believe vitest uses that logic to detect colors

seems maybe an issue related to displaying true color vs ansi 256 color. we should probably stay with 256 color to be safe across more terminals.
rgb olive displays as black on my terminal:
return (message) => `\x1b[38;2;128;128;0m${message}\x1b[39m`

...
while 256 olive` displays correctly as an olive color on my terminal:
return (message) => `\x1b[38;5;100m${message}\x1b[39m`

if you want, i'm good dropping color-name here as well and hardcoding our own ansi256 colors.
we won't add any new colors. we've covered all logging scenarios with the current ones:

black
red
orangered
green
olive
blue
gray
plum

that sounds good! only used color-name in case you wanted to add new colors in the future


Added support to display 1/10 second in GGA/RMC timestamp

This makes the GGA/RMC timestamp look more like a GPS timestamp although in order for it to actually match the actual GPS timestamp your Windows time has to be accurately synced. Better would be to retain the originally GPS timestamp in AgIO.

I think .ff would be better yet.

That is an option but I didn't think the extra precision helped any. With .f0 it "looks" more like the original timestamp. Still better would be to just preserve the original. In the end I'm not sure it matters much but I have not tested on real equipment yet.


Markers with different shapes

Is it possible to add markers to the map with different shapes (square, triangle, star, ...), not only circle?
It would be interesting to have a function like add_markers_from_xy(..., shape='square')
Or even include HTML icons.

I don't think ipyleaflet supports that. You can have an icon inside the marker though. See  https://leafmap.org/notebooks/50_marker_cluster/

Or you can use geopandas to generate shapes (square, triangle, etc) as a polygon layer based on points and then add the polygon layer to the map.

I will check both options.
This idea came to me because of this post:
https://stackoverflow.com/questions/60131314/folium-draw-star-marker
Thank you for the reply and amazing work.

Good to know. I will see if I can implement it.

Looks like it is feasible. Need some time to make the function robust so that it can use multiple shapes at the same time.

Looks great! Thank you


[BUG] Inject interface using Injectable does not work

Describe the bug
Hey,
I'm using DDD approach with Tsed, so for every repository interface (which belongs to my domain layer) I have a implementation (which belongs to infra layer).
So on my services (domain layer as well) I want to inject my repositories, but I'm expecting the interface in service constructor. But that's not working to me.
When I start my app, I get this error:
{
  event: 'SERVER_BOOTSTRAP_ERROR',
  message: 'Injection failed on LanguagesController > LanguageService\n' +
    "Origin: Unable to inject dependency. Cannot read properties of undefined (reading 'prototype')\n" +
    '\n' +
    'LanguageService->constructor(\x1B[31mrepository\x1B[39m: LanguageRepository)\n' +
    '                             \x1B[31m^‾‾‾‾‾‾‾‾‾\x1B[39m',
  stack: 'INJECTION_ERROR: Injection failed on LanguagesController > LanguageService\n' +
    "Origin: Unable to inject dependency. Cannot read properties of undefined (reading 'prototype')\n" +
    '\n' +
    'LanguageService->constructor(\x1B[31mrepository\x1B[39m: LanguageRepository)\n' +
    '                             \x1B[31m^‾‾‾‾‾‾‾‾‾\x1B[39m\n' +
    '    at Function.throwInjectorError (/Users/jonatasdaniel/Dev/project/api/node_modules/.pnpm/@tsed+di@7.48.0_@tsed+core@7.48.0_@tsed+logger@6.6.3_@tsed+schema@7.48.0/node_modules/@tsed/di/src/common/errors/InjectionError.ts:44:11)\n' +
    '    at InjectorService.resolve (/Users/jonatasdaniel/Dev/project/api/node_modules/.pnpm/@tsed+di@7.48.0_@tsed+core@7.48.0_@tsed+logger@6.6.3_@tsed+schema@7.48.0/node_modules/@tsed/di/src/common/services/InjectorService.ts:641:22)\n' +
    '    at InjectorService.invoke (/Users/jonatasdaniel/Dev/project/api/node_modules/.pnpm/@tsed+di@7.48.0_@tsed+core@7.48.0_@tsed+logger@6.6.3_@tsed+schema@7.48.0/node_modules/@tsed/di/src/common/services/InjectorService.ts:212:21)\n' +
    '    at InjectorService.loadSync (/Users/jonatasdaniel/Dev/project/api/node_modules/.pnpm/@tsed+di@7.48.0_@tsed+core@7.48.0_@tsed+logger@6.6.3_@tsed+schema@7.48.0/node_modules/@tsed/di/src/common/services/InjectorService.ts:265:14)\n' +
    '    at InjectorService.load (/Users/jonatasdaniel/Dev/project/api/node_modules/.pnpm/@tsed+di@7.48.0_@tsed+core@7.48.0_@tsed+logger@6.6.3_@tsed+schema@7.48.0/node_modules/@tsed/di/src/common/services/InjectorService.ts:337:10)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
    '    at PlatformBuilder.loadInjector (/Users/jonatasdaniel/Dev/project/api/node_modules/.pnpm/@tsed+common@7.48.0_@tsed+engines@7.48.0_@tsed+logger-file@6.6.3_@tsed+logger@6.6.3_@tsed+openspec@7.48.0/node_modules/@tsed/common/src/builder/PlatformBuilder.ts:200:5)\n' +
    '    at PlatformBuilder.runLifecycle (/Users/jonatasdaniel/Dev/project/api/node_modules/.pnpm/@tsed+common@7.48.0_@tsed+engines@7.48.0_@tsed+logger-file@6.6.3_@tsed+logger@6.6.3_@tsed+openspec@7.48.0/node_modules/@tsed/common/src/builder/PlatformBuilder.ts:187:5)\n' +
    '    at bootstrap (/Users/jonatasdaniel/Dev/project/api/src/index.ts:7:22)'
}

Am I doing something wrong or that's an issue?
To Reproduce
// languages.controller.ts

import LanguageService from<EMAIL_ADDRESS>import { Controller } from "@tsed/di";

@Controller("/v1/languages")
export class LanguagesController {
  constructor(private readonly languageService: LanguageService) {}
}

// language.service.ts

import { Inject } from "@tsed/di";
import LanguageRepository, {
  LanguageRepositoryKey,
} from "./language.repository";

export default class LanguageService {
  constructor(
    @Inject(LanguageRepositoryKey)
    private readonly repository: LanguageRepository
  ) {}
}

// language.repository.ts (my domain repository)

import BaseRepository from<EMAIL_ADDRESS>import { Language } from "./language.entity";

export default interface LanguageRepository extends BaseRepository<Language> {}

export const LanguageRepositoryKey: unique symbol =
  Symbol("LanguageRepository");

// language.pg.repository.ts (infra repository)

import { PostgresDataSource } from "./../data-source/PostgresDatasource";
import LanguageRepository, {
  LanguageRepositoryKey,
} from<EMAIL_ADDRESS>import { Inject, Injectable } from "@tsed/di";
import { POSTGRES_DATA_SOURCE } from "../data-source/PostgresDatasource";
import { Language } from<EMAIL_ADDRESS>import { LanguageEntitySchema } from "../schemas/language.schema";

@Injectable({ provide: LanguageRepositoryKey })
export default class LanguagePgRepository implements LanguageRepository {
  private repository;

  constructor(
    @Inject(POSTGRES_DATA_SOURCE) dataSource: typeof PostgresDataSource
  ) {
    this.repository = dataSource.getRepository<Language>(LanguageEntitySchema);
  }
}

Expected behavior
Expect to inject repository implementation on my service class
Code snippets
No response
Repository URL example
No response
OS
macOS
Node version
Node v.18.6.0
Library version
v7.48.0
Additional context
No response

Hello @jonatasdaniel
There is no reason to not works. There are many integration that cover this usecase. Please create reproducible repo example.
See you

I suggest your to check if you haven't a circular reference between injectable class.

@Romakita here is a repo to reproduce the issue
https://github.com/jonatasdaniel/tsed-di-issue

Ok found error. You missed to import all code in infra in your server project. So the DI cannot discover the services that are attached to your domain.
Edit your barrelsby:
{
  "directory": ["./src/rest","./src/pages","./src/infra"],
  "exclude": [
    "__mock__",
    "__mocks__",
    ".spec.ts"
  ],
  "delete": true
}

Then add the following line in your server.ts:
import { join } from "path";
import { Configuration, Inject } from "@tsed/di";
import { PlatformApplication } from "@tsed/common";
import "@tsed/platform-express"; // /!\ keep this import
import "@tsed/swagger";
import "./infra/index";  /// here
import { config } from "./config/index";
import * as rest from "./rest/index";
import * as pages from "./pages/index";


BitDefender is detecting inchi-1.exe 1.07 as a virus

I see this in my BitDefender logs.
On-Access scanning has detected a threat. The file has been deleted.C:\Dev\Mike***\Inchi\Inchi\inchi-1.exe is malware of type Gen:Variant.Lazy.591568
Please fix this
inchi-1.exe
InChI version 1, Software v. 1.07 (inchi-1 executable)
Windows 64-bit Build (MS VS 2017 or later) of Jul 16 2024 16:25:04

I think it's safe to say this is a false positive, maybe open a report to Bitdefender?

I agree that it's most likely a false posative, but it is also flagged by other engines too.

Besides which it is not my place to report this, it should be done by the Inchi Trust

I got a smiliary warning using G Data on Windows (sorry for the german):
Virus: Gen:Variant.Lazy.591568 (Engine A)
Datei: inchi-1.exe
Verzeichnis: [...]\InChI\INCHI-1-BIN\windows\64bit

The binarys I used were downloaded from the release folder https://github.com/IUPAC-InChI/InChI/releases/download/v1.07.1/INCHI-1-BIN.zip

And this for the 1.07 binaries @JanCBrammer
https://github.com/IUPAC-InChI/InChI/releases/download/v1.07.0/INCHI-1-BIN.zip

can you confirm the released binary files are built in a github workflow and not in any personal PC that may be compromised?

@giallu, the binaries under https://github.com/IUPAC-InChI/InChI/releases/download/ aren't built on GitHub runners. See https://github.com/IUPAC-InChI/InChI/issues/1.
As far a I know, currently, @djb-rwth, is building them on his machine.

Ok. I still think this is likely a false positive (otherwise more engines would mark the binaries as infected) but it make sense to start building them in the github enviroment so we can be pretty sure about it.
For my part, I can add to the cmake branch a package target that bundles the artifacts together and makes them available

I think it would be a good idea to (code) sign all the binary files exe and dll in the release as that should help apease the AV vendors.

I've uploaded the .exe to G Data, they accepted and whitelisted it.

Hi all,
Thanks @fbaensch-beilstein for confirming my suspicions that this is a false positive.
This does not seem to be an isolated case in which BitDefender detected Gen:Variant.Lazy.591568 falsely -- please refer to the following hyperlinks: hl1, hl2 or hl3.
Almost all AV software tends to be over-protective in cases of .exe files as malware and spyware most frequently sneak them within the OS.
Just recently, even the basic Windows Security falsely detected PUABundler:Win32/Rostpay within a MyConsoleApplication.exe which contained a compiled Hello world program and PUA:Win32/Presenoker inside GCC 14.1 for MS Windows installation files.
In line with @MikeWilliams-UK suggestion, all binaries will be digitally signed from now on and we shall see if that works.
I would like to encourage the users who encounter this sort of problem to submit the file(s) to the AV software HQs for further analyses/whitelisting, just like @fbaensch-beilstein did.

Hi @MikeWilliams-UK,
All Microsoft Windows binaries have now been digitally signed in InChI v1.07.2, which has now been uploaded to rwth branch.
Please note that Microsoft Windows SDK's SignTool has been used for digital signatures and that Microsoft Powershell's self-signed certificate has been used for creating digital certificates.
Please be so kind as to test if your AV software still gives false positives.

A virus total scan of inchi-1.exe in the rwh branch shows no false positive.
https://www.virustotal.com/gui/file/902ff29b4eb1e832982c966a3ef21be62f111436b95923e457c2bbc94d9253e7?nocache=1
However I do get a SmartScreen warning when I try to run it, which may concern some.
This may be due the cert being self signed or lack of reputation it's hard to tell.
We at Chem4Word use a code signing service run by the .NET Foundation which uses an EV certificate generated for us and stored in their Azure Key Vault.
See "Code signing" on https://dotnetfoundation.org/projects/benefits

Hi @MikeWilliams-UK,
Thanks for the report.
I would say that the SmartScreen in question pops up because of the self-signed certificate which is mostly used for testing purposes.
I guess that we will have to consider using DigiCert or the .NET Foundation EV certificate, although we do not have the access to Microsoft Azure services at this point -- at least none that I am aware of.
Will keep you posted.

If you wished to use the .NET foundations code signing service you would need to sign up/join their oganisation.
Details of benefit are here https://dotnetfoundation.org/membership/participation-types
I think the section "Open Source Maintainers / Project Owners" would be most appropriate

There are examples of using this in Azure DevOps and GitHub actions on the main page of their CLI tool
https://github.com/dotnet/sign

There are examples of using this in Azure DevOps and GitHub actions on the main page of their CLI tool https://github.com/dotnet/sign

Hi @MikeWilliams-UK,
Thanks so much for this.
Will look into it right away.

There are examples of using this in Azure DevOps and GitHub actions on the main page of their CLI tool https://github.com/dotnet/sign

Hi @MikeWilliams-UK,
Unfortunately .NET Foundations is closed for new applications until next year.
Any further suggestions in this regard would be much appreciated.

Hi all,
All InChI code will be digitally signed by SignPath soon, and this issue will remain open until the mentioned digital signatures are applied.
Meanwhile, the code/binaries will be not be digitally signed in order to avoid SmartScreen warning reported by @MikeWilliams-UK.


AutoLangConfig for Label Doesn't Seem to Work in this Case

When using the library, a common pattern is to set an auto language across the manifest so that you don't need to set the language each time.  For instance:
config.configs['helpers.auto_fields.AutoLang'].auto_lang = "en"
base_url = "https://iiif.io/api/cookbook/recipe/0001-mvm-image"
manifest = Manifest(id=f"{base_url}/manifest.json", label="Single Image Example")

With this, the lang of the label would be 'en'. For some reason, that pattern doesn't work in this case:
config.configs['helpers.auto_fields.AutoLang'].auto_lang = "en"
natural_light = ResourceItem(
    id="https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-natural/full/max/0/default.jpg",
    type="Image",
    format="image/jpeg",
    width=2000,
    height=1271,
    label="Natural Light"
)

Instead, this results in:
Traceback (most recent call last):
  File "/Users/mark.baggett/code/iiif-prezi3/testing3.py", line 14, in <module>
    natural_light = ResourceItem(
        id="https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-natural/full/max/0/default.jpg",
    ...<4 lines>...
        label="Natural Light"
    )
  File "/Users/mark.baggett/code/iiif-prezi3/iiif_prezi3/base.py", line 46, in __init__
    super().__init__(**kw)
    ~~~~~~~~~~~~~~~~^^^^^^
  File "/Users/mark.baggett/code/iiif-prezi3/venv/lib/python3.13/site-packages/pydantic/main.py", line 341, in __init__
    raise validation_error
pydantic.error_wrappers.ValidationError: 2 validation errors for ResourceItem
label -> __root__
  value is not a valid dict (type=type_error.dict)
label -> __root__
  value is not a valid dict (type=type_error.dict)

Expected behaviour:
I expected to be able to set the language for the ResourceItem with config.configs['helpers.auto_fields.AutoLang'].auto_lang = "en".
Observed behaviour:
An error was raised:
Traceback (most recent call last):
  File "/Users/mark.baggett/code/iiif-prezi3/testing3.py", line 14, in <module>
    natural_light = ResourceItem(
        id="https://iiif.io/api/image/3.0/example/reference/421e65be2ce95439b3ad6ef1f2ab87a9-dee-natural/full/max/0/default.jpg",
    ...<4 lines>...
        label="Natural Light"
    )
  File "/Users/mark.baggett/code/iiif-prezi3/iiif_prezi3/base.py", line 46, in __init__
    super().__init__(**kw)
    ~~~~~~~~~~~~~~~~^^^^^^
  File "/Users/mark.baggett/code/iiif-prezi3/venv/lib/python3.13/site-packages/pydantic/main.py", line 341, in __init__
    raise validation_error
pydantic.error_wrappers.ValidationError: 2 validation errors for ResourceItem
label -> __root__
  value is not a valid dict (type=type_error.dict)
label -> __root__
  value is not a valid dict (type=type_error.dict)

Potential bug location(s):
Not sure yet.  I looked in auto_fields.py, but I haven't spotted the problem yet.
Any other comments:

As ResourceItem inherites from Base not Class it needs to be added directly here:
https://github.com/iiif-prezi/iiif-prezi3/blob/daf6e8a7ad41773dacb9302358c53e7d09cce58d/iiif_prezi3/helpers/auto_fields.py#L183C1-L183C55

Addressed in 214.


Update storage-considerations.md

Adding information to explain how Azure Functions can be affected by Blob Lifecycle management.

@FinVamp1 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

Hey @FinVamp1 let's move this PR into the private repo so we can see it build and validate. I'll post my new PR here.

#please-close


No version 2.0.6 on CDNJS or Minified files in Github Download

First of all, amazing job, the plugin is amazing.
Now, I'm trying to get the latest version 2.0.6, but it is not available on CDNJS, even when the official numbro website says it is. Last version on cdnjs is 2.0.5 which contains a bug that was fixed about decimal points not showing when no decimals added.
The Release tag download from here (Github), doesn't have the minified files.
I can minify it myself, that is not why i'm reporting this. Is just so the developer is aware, in case he isn't.

thanks for the report. I have no clue why the CDNJS is not up to date, I will investigate :smile:

Please let me know when is fixed as i’m currently using version 2.0.5 from the cdnjs, I was not able to minify the 2.0.6 version from github. It was giving me some Const error when trying to uglifyjs it.

You can get the minified file from<EMAIL_ADDRESS>all npm packages are available there automatically.

@MartinKolarik Thank you!
@BenjaminVanRyseghem Thank you too.

I know this ticket is closed, but the same issue exists now with 2.10: the website says you can use a 2.1.0 link to cdnjs, but it doesn't work. 2.0.6 is the latest version on cdnjs as of today.
So maybe the website should suggest using cnd.jsdelivr.net if cdnjs doesn't have the latest. Otherwise people have to waste time searching for it.


Bug: Wrong index_id definition

Index_ID = 1 is always the clustered one (B-tree and columnstore)

@StefDBA : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

@WilliamDAssafMSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@StefDBA : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


support Cooler Master CK372

Please add support for the following device:
Device Name:  Cooler Master CK372
Device Website: https://www.coolermaster.com
I select other device, like pro L, but the num lock and other 3 light (C, S, G) did't work. which device should I choose.

I looked at the coolermaster integration and sdk docs and it seems that the key mappings of that keyboard dont have anything special in particular. Those 4 keys you mentioned don't light up at all?

Not 4 keys, just num lock led, caps lock led, scroll lock led and game mode led. The 4 led

Ah you mean the indicator lights? The sdk doesn't mention them at all so i don't think tey can be controlled.

I'm sad, cooler master's sdk is so so weak.


A more semantic nav menu

Hi 😄
Just a small suggestion. Shouldn't the nav manu on the sidebar be more semantic using unordered lists instead of <p>'s? Should be simple enough to use a class for naviation purposes
Thanks a lot for your work!!

@earcos glad to review a pull request if you're interested in taking this on.


img2img doesn't work

It gives this error when trying to make an image on img2img. I use localtunnel

check in A1111 repo for similar issues

check in A1111 repo for similar issues

Sorry, but how can I fix this?

check in A1111 repo for similar issues

Sorry, but how can I fix this?

maybe you'll find the issue here  https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues


Fix: python 3.9 does not support | syntax for union

Running the code on Python 3.9 gives the error:
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'type'
The fix is to use Union and Optional as is done elsewhere in the file.

Thank you very much! Eventually, I'll drop support for Python 3.9 but if this is the only place right now, I'm fine with continuing supporting it.


Kiwi 2.4.0

With shared example groups and Carthage support being merged, I think it's about time to roll a new version.
@kiwi-bdd/core-team I'm happy to take care of this, but I'll need access to push the podspec first!

Hey @sharplet, I've added you to the trunk, and you should have all the permissions to publish new Kiwies now.

Woo :tada:
I might actually reopen this one for the time-being until 2.4 is officially tagged and pushed.


Replace pyheif with pillow_heif

I do not tested it.
Looks the original code has problems with HEIF orientation - i can look at it a bit later. (imho, it is better to manage orientation with Pillow itself)

Fixes #286

PR should be merged to dev branch. This is our staging branch.


Satellite scheduling app

Issue Number:

Objective of pull request:
Pull request checklist
Your PR fulfills the following requirements:

[x] Tests are part of the PR (for bug fixes / features)
[x] PR conforms to Coding Conventions
[x] PR applys BSD 3-clause or LGPL2.1+ Licenses to all code files
[x] Lint (pyb) passes locally
[x] Build tests (pyb -E unit) or (python -m unittest) passes locally

Pull request type

Please check your PR type:

[x] Feature

What is the new behavior?

This PR includes a generic Scheduler and a SatelliteScheduler, which frame scheduling and satellite scheduling problems as Maximum Independent Set (MIS) problems, and solve them as QUBO problems using the Lava QUBO Solver.

Does this introduce a breaking change?

[x] No

Looks good, thanks for your hard work! Just a couple of remarks.

Incorporated your changes. Please go over the replies and approve.


Native protocol disconnection detection optimizations

Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[x] Pull request title reflects its content
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Description:

@Unsttopabull Just a heads-up that this PR changes some config parameter names.

From what I can understand in this PR, this now splits the config and streaming into two separate contexts. In what manner does this affect the issues of disconnection detection - from what I could tell the issue is resolved by resetting the timeout on every successfully sent message? If we have 2 contexts, is there a way of having higher priorities on different contexts?

Yes, streaming and configuration data processed separately, but it's more important that in general the received data is now processed outside the context that schedules the data transfers. This along with resetting the timeout on every successfully sent / received message should enhance the stability of the disconnection detection mechanism.
So, in terms of native protocols, we have three distinct contexts: one for managing read/write operations and timers, one for handling configuration packets, and one for processing streaming-related data. As for priorities, each context runs on its own thread, so the priority adjustments could be done by modifying the threads' priorities.


Not working on Android

did you try to run the app on Android?
it is working on browser and iOS
however, when i run it on nexus 5 5.1.1, when I click the Join button, nothing happen, no error

Yup I tried it on android nexus 5 . 5.1. Why did you close the issue?


annoying error

a couple days ago my PDF layout and template is working good. So today when i create the new template and preview it is return error like this:
PS: I never touch anythings
DOMDocument::loadHTML(): Unexpected end tag : span in Entity, line: 799 DOMDocument::loadHTML(): Unexpected end tag : small in Entity, line: 799 DOMDocument::loadHTML(): Unexpected end tag : span in Entity, line: 835 DOMDocument::loadHTML(): Unexpected end tag : small in Entity, line: 835 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1181 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1183 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1194 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1200 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1203 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1210 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1216 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1216 DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 1221 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1267 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1269 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1269 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1271 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1271 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1273 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1275 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1281 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1285 DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1332
Thank you!

hmm sorry my bad,i change the & to &. Now its working well


Bower migration warning when installing office-toolbox

Ran: npm install -g office-toolbox
c:\dev>npm install -g office-toolbox
npm WARN deprecated<EMAIL_ADDRESS>...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

Removed bower dependency in https://github.com/OfficeDev/office-toolbox/pull/14.

Fixed. https://github.com/OfficeDev/office-toolbox/pull/14


Fix inconsistent semicolon

Fix inconsistent semicolon usage in the Types vs Interfaces section.

Duplicate of #2435.


Create safe name - changing account during the process deletes the safe name

Env: https://safe-team.dev.gnosisdev.com/app/
During the creation of a safe, if you are in the step 2 where you add the owners you decide to change MM accounts it will refresh the owners and it will clear the name you set to the safe. When you reach to step 3 you will see the safe has no name
The result is the safe naming itself LOADED SAFE at the end of the process

I am getting fairly frequent occurrences of this same bug.  @rmeissner suggested my details might be just a bit different, so I'm adding my comment here to document.
This is what I had written on the Gnosis Discord #safe subchannel:
This is ```
(appearing in the Gnosis Safe Multisig webapp at https://gnosis-safe.io/app, running on a Win10 instance, with Chrome browser.  (GSM lists version as 1.1.1)

load a safe; specify an "owner name"; the owner name will occasionally get lost as the safe is used, and the name reverts to the default "LOADED SAFE", losing the name that was input to go with the GSM address.  THis happens on only some addresses; and generally when (or around the time/days) that the safe is actually used with a connected wallet, etc.; it does not happen with all safes that were loaded (I loaded a half dozen GSM addresses in total in order to help test the problem; some just GSM random addresses I found on https://explore.duneanalytics.com/dashboard/gnosis-safe_2)
The problem has occurred several diff times for me and other owners in recent weeks.)

Yep, still happening.

Closing this since it's a duplicate of #1453


Mirrored Screens have hidden cursors

Hyprland Version
Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47  (props: bump ver to 0.35.0).
Date: Mon Feb 5 01:59:02 2024
Tag: v0.35.0
flags: (if any)
System Information:
System name: Linux
Node name: JaryedsDesktop
Release: 6.7.5-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Sat, 17 Feb 2024 14:02:33 +0000
GPU information:
2f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8) (prog-if 00 [VGA controller])
os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
==========END OUTPUT============
xdg-desktop-portal-hyprland - 1.3.1-5
Bug or Regression?
Bug
Description
This is kind of a bug and a feature request, depending on how you look at it - feel free to relabel it if you feel it doesn't belong here:
Hi, i have a setup where i have 3 monitors - Two are 1440p 144hz VRR capable displays (plugged into DP-1 and DP-2 respectively), and the third one is actually an EVGA XR1 Lite capture box plugged into my HDMI-A-1 port and hyprland set to output at 1440p60 (the capture box itself downscale it to 1080p for me)
The issue is that the Mirrored setting does not show the mouse on the screen set to be a mirror - the mouse cursor shows when the screen is NOT mirrored (i.e used as a third monitor with its own workpace) but not when mirrored as expected - I know Wayland doesn't re-render everything when mirroring screens (that would require a lot of overhead) but if it works on the same principle as xdg-desktop-portal screencast  (not sure if it does - i don't really understand the under the hood very well, it just looks like it on surface level) you should at least be able to show the cursor with an option.
This issue is present no matter what i try to set the monitors resolution to.
How to reproduce
Plug in 2-3 monitors - have one monitor mirror the other in a similar way to down below with the mirror flag
The mouse cursor should fail to be visible on the mirrored monitor
Crash reports, logs, images, videos
Here are my Monitor Output settings:
monitor=DP-1,2560x1440@143.912003,0x0,1,vrr,2
monitor=DP-2,2560x1440@143.912003,2560x0,1,vrr,2
monitor=HDMI-A-1,2560x1440@59.96,auto,1,mirror,DP-2
Hyprctl Monitors output (note mirrored screen does not show status for some reason - output still works)
Monitor DP-1 (ID 0):
<EMAIL_ADDRESS>at 0x0
description: AOC Q27G2G4 0x00001577 (DP-1)
make: AOC
model: Q27G2G4
serial: 0x00001577
active workspace: 1 (1)
special workspace: 0 ()
reserved: 0 30 0 0
scale: 1.00
transform: 0
focused: no
dpmsStatus: 1
vrr: 0
activelyTearing: false
Monitor DP-2 (ID 1):
<EMAIL_ADDRESS>at 2560x0
description: AOC Q27G2G4 0x0000156E (DP-2)
make: AOC
model: Q27G2G4
serial: 0x0000156E
active workspace: 3 (3)
special workspace: 0 ()
reserved: 0 30 0 0
scale: 1.00
transform: 0
focused: yes
dpmsStatus: 1
vrr: 0
activelyTearing: false

Well, i f'ed up
I Forgot to check closed issues - i only checked open issues
#1568
closing issue now


Feature to bookmark articles

The app could add the ability to bookmark articles. This could be useful in multiple ways. You could use it as a "read-later" of sorts or you could use it to save really good articles.
There could be an additional tab which has all bookmarked articles.

Sorry I've been traveling and haven't had time to think more on this. Open to proposals, but I think it's hard to see where it nicely fits in at the moment. One thought is maybe items should be expandable on longpress to expose more options, similar to Flamingo.


Errors in executor init

[ ] I have added the tests to cover my changes.
[x] I have updated the documentation, VERSION, and CHANGELOG accordingly.
[x] I have read the CONTRIBUTING document.

@jkanem can you apply the changes in this diff in this PR?
diff --git a/covalent/_shared_files/config.py b/covalent/_shared_files/config.py
index 81f5c1e..5056bf2 100644
--- a/covalent/_shared_files/config.py
+++ b/covalent/_shared_files/config.py
@@ -24,7 +24,7 @@ import shutil
 from functools import reduce
 from operator import getitem
 from pathlib import Path
-from typing import Any, Dict, List, Union
+from typing import Any, Dict, List, Optional, Union

 import toml

@@ -74,27 +74,35 @@ class _ConfigManager:
         # self.config_data may be modified later, and we don't want it to affect _DEFAULT_CONFIG
         self.config_data = copy.deepcopy(_DEFAULT_CONFIG)

-    def update_config(self) -> None:
+    def update_config(self, new_entries: Optional[Dict] = None, defaults: bool = False) -> None:
         """
         Update the exising configuration dictionary with the configuration stored in file.

         Args:
-            None
+            new_entries: Dictionary of new entries added or updated in the config
+            defaults: Defaults do not overwrite existing entries

         Returns:
             None
         """

-        def update_nested_dict(old_dict, new_dict):
+        def update_nested_dict(old_dict, new_dict, defaults):
             for key, value in new_dict.items():
                 if isinstance(value, dict) and key in old_dict and isinstance(old_dict[key], dict):
-                    update_nested_dict(old_dict[key], value)
+                    update_nested_dict(old_dict[key], value, defaults)
                 else:
-                    old_dict[key] = value
+                    if defaults:    # Values provided are defaults
+                        old_dict.setdefault(key, value)
+                    else:           # Values provided should overwrite
+                        old_dict[key] = value

         if os.path.exists(self.config_file):
             file_config = toml.load(self.config_file)
             update_nested_dict(self.config_data, file_config)
+            if new_entries:
+                update_nested_dict(self.config_data, new_entries, defaults)
+
+        self.write_config()

     def read_config(self) -> None:
         """
@@ -163,7 +171,14 @@ class _ConfigManager:
         """

         keys = key.split(".")
-        reduce(getitem, keys[:-1], self.config_data)[keys[-1]] = value
+        try:
+            reduce(getitem, keys[:-1], self.config_data)[keys[-1]] = value
+        except KeyError:
+            data = self.config_data
+            for key in keys:
+                data[key] = {}
+                data = data[key]
+            data[keys[-1]] = value

 _config_manager = _ConfigManager()

The change to update_config allows me to do this in a separate module:
my_module_config_defaults = {
    "key1": "value1"
}
from covalent._shared_files.config import _config_manager as cm
cm.update_config(my_module_config_defaults, True)

which will add these defaults to the config only if they were not already provided in the config file.
The change to set allows the user to do
import covalent as ct
ct.set_config("my.new.nested.key", "new_value")

for a nested key which doesn't already exist, without throwing a KeyError (the current behavior).

@jkanem can you apply the changes in this diff in this PR?
Done

@jkanem @wjcunningham7 I've added the minimum amount of tests required to ensure that diffs added in this branch are covered. @jkanem lemme know when this is ready for another review.

@FyzHsn , I believe this is ready for review, thanks.


Support suffix for metadata files

In the current v3 core protocol draft, keys for metadata documents have no suffix to represent the document format, they are just keys like "meta/root/foo.group" and "meta/root/foo/bar.array". In some situations (e.g., where file systems or web servers are being used as storage) it would be useful to have a suffix that indicates the format, i.e., ".json" for the default. Consider adding support for this.

Add something like :
"metadata_key_suffix": ".json",

An alternative is that the extension is determined by metadata_encoding.  E.g. for the default metadata_encoding the extension is .json, and for a hypothetical cbor metadata encoding the extension would be .cbor or something.
As the spec is right now, if you specify a non-default metadata_encoding then the default metadata_key_suffix of .json is probably not appropriate.

The default zarr.json metadata now has a .json suffix, other metadata formats with different suffixes can be added via group extensions, see #37.


update(Reply): Fix reply baloon color

What this PR does 📖
1. Fix reply baloon color depending on the sender of the message been replied

Which issue(s) this PR fixes 🔨

Resolve #668

Special notes for reviewers 🗒
Additional comments 🎤

🎉


added securityScheme

Add WithSecurity Server Option and Route Security Documentation
Issue #221
Description
Adds a new WithSecurity server option to configure security schemes in the OpenAPI specification and documents the route-level .Security() method. This change improves the API by providing a complete security configuration solution at both the server and route levels.
Features
Server-Level Security Configuration

New WithSecurity function that accepts a map of security schemes
Supports all OpenAPI security scheme types (HTTP, API Key, OAuth2, etc.)
Safe initialization of SecuritySchemes map
Allows multiple security schemes to be configured simultaneously

Route-Level Security

Enhanced documentation for .Security(requirementName string) method
Allows per-route security requirements specification
Links routes to security schemes defined at the server level

Example Usage
Server Security Configuration
s := NewServer(
    WithSecurity(openapi3.SecuritySchemes{
        "bearerAuth": &openapi3.SecuritySchemeRef{
            Value: openapi3.NewSecurityScheme().
                WithType("http").
                WithScheme("bearer").
                WithBearerFormat("JWT").
                WithDescription("Enter your JWT token in the format: Bearer <token>"),
        },
    }),
)

Route Security Configuration
goCopyGet(s, "/protected", handler).
    Security("bearerAuth").  // Requires JWT authentication
    Summary("Protected endpoint")

Benefits

Complete security solution: Configure security at both server and route levels
More maintainable: Security schemes can be defined and updated in one place
More flexible: Easy to add or modify security requirements
Better API design: Follows the pattern of other server options
Improved developer experience: Makes security configuration more explicit and easier to understand
Fine-grained control: Apply different security requirements to different routes

Breaking Changes
None. This is a new feature that maintains backward compatibility.
Example

Thanks for the contribution. Would you mind making the requested changes?
Also a reminder to please add tests! Thank you

Yeah I'll work on it but this is a busy week and it might require a couple of days since I would like to add the possibility to combine multiple requirements: (requirement1 OR requirement2) AND requirement3
It might make sense to add the scope of a requirement as well https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-requirement-object
I will also add some test to cover the feature!

Was able to get to this today.
Disregard my comment as I like this. I realized OR logic with separate calls to OptionSecurity is implemented with this.
Final thoughts:

Should we add some validation in OptionSecurity to ensure the schema being inputted is valid schema. If not we panic/exit?
Could you add an example of using this into the examples/petstore? This will update our golden file open api spec. It helps us spot unwanted changes to spec outputs, kinda an integration test of sorts.

Oh sorry for not being clear. I just meant “ensure the security schema being asked on the route exists in the security schemas on the server.” Just check the map if not panic so we can tell the user early.
😅 sorry saying validate something in terms of OpenAPI can be super ambiguous.

ahahah perfect, do you think that something like this could be enough?
p.s. by the end of the week I should be able to modify the examples/petstore
                // Validate input is not empty
		if len(securityRequirements) == 0 {
			panic("at least one security requirement must be provided")
		}

		// Validate the security scheme exists in components
		for _, req := range securityRequirements {
			for schemeName := range req {
				if r.OpenAPI != nil && r.OpenAPI.Components != nil {
					if _, exists := r.OpenAPI.Components.SecuritySchemes[schemeName]; !exists {
						panic(fmt.Sprintf("security scheme '%s' not defined in components", schemeName))
					}
				}
			}
		}

Yes, you can remove the nil checks as well as everything is new'd up when the server is created.
One thing that is interesting. If we moved away from the varadic input to just a single input we wouldn't need the extra for loop

I've made the asked modifications myself on main.
Thank you a lot @simonemastella for this feature, and @dylanhitt & @ccoVeille for proofreading this! 🙏🏼


Expose transaction de/serialization + native conversions

In our use-case we required getting encoded
Added Transaction::serialize and Transaction::deserialize py methods.
Added small SignedTransaction struct.
Added conversions

@pvolnov , tagging you for visibility & review.


typescript operator '+=' cannot be applied to types Number and Number

Why?
ref: [
  {
    value: Number
    date?: Date
  }
]
total() {
  var total = 0
  for (var ind = this.ref.length - 1; ind >= 0; ind--) {
    total += this.ref[ind].value
  }
  return total
}

This is totaly vaild in JS, should be in typescript too

You want number (all lowercase) not Number. number is the primitive type, whereas Number is a description of the shape of instances of Number and number itself.
See a more detailed response here: https://github.com/Microsoft/TypeScript/issues/2624#issuecomment-89914698
Or @danquirk's response here: https://github.com/Microsoft/TypeScript/issues/2031#issuecomment-74329927

Note that #2361 aims to address this.


fix: resolve sonar highlighted issues

this will fix issues highlighted by sonar

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.40%. Comparing base (31aeb4b) to head (48d4034).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   99.40%   99.40%
=======================================
  Files          20       20
  Lines         336      336
=======================================
  Hits          334      334
  Misses          2        2

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


serde_derive

Not sure if it's against the protocol, but I'd vouch for serde_derive to be added to the top crates.
I wanted to add a modern playground example to http://stackoverflow.com/a/37565736/257568 but it turns out there's no serde_derive there yet.
I mean, Serde is certainly in the top crates, but we'd want to promote the newer serde_derive version of the automation instead of the older serde_macros, right?

Also let's upgrade to serde 0.9.

The selected crates are based on the top 100 crates by downloads, then taking the newest version of those and their dependencies. You can check out the exact logic, if so inclined.
Running the code as-is today, we would upgrade to:
serde = "0.9.6"
serde_codegen = "0.9.0"
serde_codegen_internals = "0.13.0"
serde_json = "0.9.5"

I might just go ahead and perform that update tonight.
But there's nothing that would cause serde_derive to get pulled in. I'm hesitant to start cherry-picking crates for inclusion based on my own whims. If I were to do that, I'd certainly blacklist xml-rs in favor of my own XML parser 😈
Additionally, I think about how I'd explain to someone why a given crate is available or not. If it's "someone submitted a PR", then I fear we'd be compiling 1000s of crates every night. If it's "the maintainer picked it", then I fear the backlash directed towards me on public (and private?) forums.
I would be interested in an improved algorithm that maybe could be more strongly influenced by recentness. Perhaps the most recent crates in the last 30-60-90 days would be better?

I understand, although serde_codegen is 100% deprecated and there is no way to use it correctly from the playground (nor has there ever been). It is replaced by serde_derive which would be easily usable.

I would be interested in an improved algorithm that maybe could be more strongly influenced by recentness. Perhaps the most recent crates in the last 30-60-90 days would be better?

Looking at the charts, serde_derive is much more popular today.
https://crates.io/crates/serde_macros is 400 downloads a day or something.
https://crates.io/crates/serde_derive is more like 2000.
Using last 90 days popularity seems like a good idea to me.

there is no way to use it correctly from the playground

The current rationale is that if the playground has to spend time compiling a crate as a dependency, it's going to try as hard as possible to allow using that crate directly. Obviously, it doesn't work for all crates.

Using last 90 days popularity seems like a good idea to me

Are you aware if there is an API endpoint for the data of "the top N crates, sorted by downloads in the last Y days"?

Would you be willing to compile crates that have a playground feature with that feature enabled for the purpose of dependency resolution? I think this resolves your concerns around explaining why a crate is available or not.
serde/Cargo.toml

[features]
playground = ["serde_derive"]

[dependencies]
serde_derive = { version = "0.9", optional = true }

Are you aware if there is an API endpoint for the data of "the top N crates, sorted by downloads in the last Y days"?

I guess it can be added to https://github.com/sebasgarcep/crates-api ?

Would you be willing to compile crates that have a playground feature with that feature enabled for the purpose of dependency resolution? I think this resolves your concerns around explaining why a crate is available or not.

Ah, that's very interesting! In that case, we'd pull in serde for whatever reason (such as top-100 all-time downloads or an improved recent measure), and then serde could inform us what features are best used to demonstrate itself in the playground.
A technical question: do you know of a way of programmatically checking if a crate supports a feature, starting from only the name of the crate?
A social question: do you think that crate maintainers would be overall receptive to adding such a feature? I'm assuming that serde would, or else you might not have suggested it 😇. Is it ugly from the point-of-view of a maintainer, to customize your packaging for this arbitrary context?

I guess it can be added to https://github.com/sebasgarcep/crates-api ?

I don't mind doing the HTTP / JSON myself, I just meant that I don't know that the crates.io server currently exposes such an endpoint.

do you know of a way of programmatically checking if a crate supports a feature, starting from only the name of the crate?

If you can get a Cargo.toml, the cargo metadata --no-deps command gives a list of the features declared in it. You can use the cargo_metadata crate to process it in a structured way.

do you think that crate maintainers would be overall receptive to adding such a feature?

Yes. I don't think this is a particularly unconventional use of cargo features. We already have things like "unstable-testing" for dependencies of our CI suite like clippy.

I opened https://github.com/serde-rs/serde/pull/755 to add a playground feature on our end.

I opened #99 with an implementation of my proposed approach using a playground cfg.

I've opened a new issue for potentially using recent crate downloads in #101

And it's alive


Spurious inconsistent implicit argument error

val map2':
  #n:nat ->
  f:('a -> 'b -> Tot 'c) ->
  Tot unit
let rec map2' #n f =
  ()

The n argument is implicit in both the val and the let.

n is not implicit in the body of the let, here: map2 n2 f tl1 tl2

sorry, yes, but the error still holds and is reported at the let rec line

Fixing that, I get a different error about the implicit arguments of f: Inconsistent implicit argument annotation on argument f#594372

I thought that annotating f would help, but if I use let rec map2 #n (f:'a -> 'b -> Tot 'c) l1 l2, the typechecker complains about the type of #n2 in the recursive call:
Expected expression of type "Type(n608889)"; got expression "n2" of type "Prims.nat"

This works:
#set-options "--initial_ifuel 1 --max_ifuel 1"

val map2:
  #a:Type ->
  #b:Type ->
  #c:Type ->
  #n:nat ->
  f:(a -> b -> Tot c) ->
  l1:vec a n ->
  l2:vec b n ->
  Tot (vec c n)
let rec map2 #a #b #c #n f l1 l2 =
  match l1 with
  | Cons hd1 n1 tl1 ->
      begin
      match l2 with
      | Cons hd2 n2 tl2 -> Cons (f hd1 hd2) n2 (map2 #a #b #c #n2 f tl1 tl2)
      end
  | Nil ->
      begin
      match l2 with
      | Nil -> Nil
      end

Yes, I guess it's a bad interaction between ML-style 'a and implicit arguments.

I've minimized my original message.

Making n implicit in Cons, this also works:
type vec 'a: nat -> Type =
  | Nil: vec 'a 0
  | Cons: x:'a -> #n:nat -> xs:vec 'a n -> vec 'a (n+1)

#set-options "--initial_ifuel 1 --max_ifuel 1"

val map2:
  #a:Type ->
  #b:Type ->
  #c:Type ->
  #n:nat ->
  f:(a -> b -> Tot c) ->
  l1:vec a n ->
  l2:vec b n ->
  Tot (vec c n)
let rec map2 #a #b #c #n f l1 l2 =
  match l1 with
  | Cons hd1 tl1 ->
      begin
      match l2 with
      | Cons hd2 tl2 -> Cons (f hd1 hd2) (map2 f tl1 tl2)
      end
  | Nil ->
      begin
       match l2 with
      | Nil -> Nil
      end

You can minimize further:
// Inconsistent implicit argument annotation on argument x#639340
val f: #u:unit -> x:'a -> Tot unit
let f #u x = ()

Surprisingly, it typechecks when swapping the arguments:
// Works
val f: x:'a -> #u:unit -> Tot unit
let f x #u = ()

Doing the same in your original example works:

#set-options "--initial_ifuel 1 --max_ifuel 1"

val map2:
  f:('a -> 'b -> Tot 'c) ->
  #n:nat ->
  l1:vec 'a n ->
  l2:vec 'b n ->
  Tot (vec 'c n)
let rec map2 f #n l1 l2 =
  match l1 with
  | Cons hd1 tl1 ->
      begin
      match l2 with
      | Cons hd2 tl2 -> Cons (f hd1 hd2) (map2 f tl1 tl2)
      end
  | Nil ->
      begin
       match l2 with
      | Nil -> Nil
      end

Thanks for all the detective work!

Mixing the #a and 'a notation is an anti-pattern. I'm inclined to simply forbid it.

Imo, 'a exists mainly for ML compatibility. Not to be used when writing non-ML types

I think this is a perfectly fine answer; I just stumbled upon this because I was playing with @jhjourdan and was trying to make the code as concise as possible.

@nikswamy did you forbid it and can we close this issue?

It's not yet forbidden. @karthikbhargavan  got bitten by this recently too.
I'm marking it high priority.
Can someone familiar with front end take it? @tahina-pro  @kyoDralliam ?


Wrong Path in windows

Wrong path when runnin on windows.
debug: initializing workspace
debug: running Infracost in project: c:\Users\Mirusky\Desktop\ultimate-project
debug: running Infracost cmd cmd /C "set INFRACOST_CLI_PLATFORM=vscode && infracost breakdown --path [object Object] --format json --log-level info"
error: Infracost cmd error trace Error: Command failed: cmd /C "set INFRACOST_CLI_PLATFORM=vscode && infracost breakdown --path [object Object] --format json --log-level info"
Error: No such file or directory [object

Try setting --path to a Terraform plan JSON file. See https://infracost.io/troubleshoot for how to generate this.

For some reason when I run the project in windows it does not work as expected, but if I run in linux it run smoothly.

Thanks @mirusky, this was a regression that was added in the last release, I've opened a fix for this now, so hopefully we can get this fixed asap for you.

hey @mirusky I've just push an updated version 0.1.14 to the marketplace, could you test this in your windows machine and see if it's working for you?

Now it's working perfectly, thx @hugorut

amazing thanks @mirusky for bringing to our attention ❤

hey @jayendranarumugam, let me take a peek at this ASAP and try and get a fix in.

@jayendranarumugam I've replicated this locally and have created issue https://github.com/infracost/vscode-infracost/issues/30 to track, can you please follow that issue for updates? thanks


fix: update to eye v9.9.4

fix: update to eye v9.9.4

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

npm package (@latest dist-tag)
GitHub release
v12.8.1

Your semantic-release bot :package::rocket:


Gate needs a waiting duration metric

Proposal
https://github.com/prometheus/prometheus/blob/main/util/gate/gate.go this is used in the remote read handler to limit number of concurrent requests. However, if we are close to that limit then currently it is impossible to know that. Ideally, we'd know if requests are being held up at the gate. I suggest adding a "waiting duration" histogram metric there so that users could understand whether they are hitting that limit.

I want to work on this issue.

is this a good first issue? I am happy to contribute to it.

Hi does this issue still make sense? I'd like to work on it if possible

Is this issue still persisting as it seems to still be open

Hi! There are no open PRs for this Issue, so I would like to take on this PR. I've pushed the PR.

Hello from the bug scrub.
This PR is still in progress.


⚠ RPC server - xDai has degraded performance

In 50fc7de, RPC server - xDai ($XDAI_RPC_URL) experienced degraded performance:

HTTP code: 0
Response time: 0 ms

Resolved: RPC server - xDai performance has improved in a8deb0d after 5 minutes.


additionalProperties management problem in Swagger 2

In swagger 2, additionalProperties are very limited. They didn't support the true and {} values.
To replace this they define it like this
  MyObject:
    type: object
    properties:
      id:
        type: string
    additionalProperties:
        type: object

It works only because in java like words String, Boolean and Numbers are Objects
in swagger 2, it must be transpiled in
export interface MyObject {
    id?: string;
    [key: string]: {}; // or [key: string]: any
}

but for now it is transpiled in
export interface MyObject {
    id?: string;
}

result is the same If I try  to transpile below code
  MyObject:
    type: object
    properties:
      id:
        type: string
    additionalProperties: {}

The only case the correctly works is
  MyObject:
    type: object
    properties:
      id:
        type: string
    additionalProperties: true

Swagger file is correctly converted with Swager.io typescript generators
Is it possible to fix it ?

Problem came from schema.js file

  if (additionalProperties === true) {
    propertiesContent.push({
      $$raw: { additionalProperties },
      description: "",
      isRequired: false,
      field: `[key: ${TS_KEYWORDS.STRING}]: ${TS_KEYWORDS.ANY}`,
    });
  }

  return propertiesContent;

It seams you only support the additionalProperties: true case, not the others

There's another more problematic case
  MyObject:
    type: object
    additionalProperties:
        type: object

Means in openApi 3 Record<string, object>
While in Swagger 2.0 it means Record<string, any>
Because of this problem, server code generated by swagger.io is not compatible with client code generated with your library.

Is this module still supported ? I didn't see any activity since few months

Hello @paztis , this problem will be fixed in next release


GT server and GT client develop web management functions

Description
To improve the user experience, we plan to add web management functions for GT server and GT client respectively, supporting: administrator login, connection status view, configuration management, pprof, etc.
Project output requirements

Design and implement complete web management features: administrator login, connection status view, configuration management, pprof, etc.
Write unit tests and integration tests
Write appropriate design and usage documentation
Focus on page user experience and page effects
Code compliance with specifications: https://google.github.io/styleguide/go/, https://google.github.io/styleguide/htmlcssguide.html

Project technical requirements

Familiarity with Golang, HTML5, Javascript, CSS3
Familiarity with vue3, element-ui framework
Familiar with front-end page adaptation

Open Source Summer Official Website
GT server 与 GT client 开发 Web 管理功能
描述
为了提高用户体验，计划分别为 GT server 和 GT client 增加 Web 管理功能，支持：管理员登录、连接状态查看，配置管理，pprof等
项目产出要求

设计并实现完善的 Web 管理功能：管理员登录、连接状态查看，配置管理，pprof等
编写相应的单元测试和集成测试
编写相应的设计和使用文档
注重页面用户体验、页面效果
代码符合规范： https://google.github.io/styleguide/go/、https://google.github.io/styleguide/htmlcssguide.html

项目技术要求

熟悉 Golang、HTML5、Javascript、CSS3
熟悉 vue3、element-ui 框架
熟悉前端页面适配GT server 与 GT client 开发 Web 管理功能

开源之夏官网

I am interested for contributing to this project. Are there any specific tasks that need to be done?

I am interested for contributing to this project. Are there any specific tasks that need to be done?

Hi, @psankhe28
It's great to hear from you. What kind of tasks do you like? Do you prefer front end tasks?

I am proficient in both front-end and back-end development, but I would prefer front-end tasks.

@psankhe28
Good. This project requires developers with full stack skills.
Can you create a detailed proposal issue about how to design and complete this project before actually working on specific tasks?

I had some doubts regarding the implementation.

Could you please provide more information about what is meant by the implementation of the "pprof" feature in this project?
Could you give me a brief overview of the requirements for "page effects" in this project, and what is expected to be implemented?
I am well versed with frontend and backend technologies but haven't use vue.js and Golang but I would love to learn and implement it in this project, would that be fine?

I had some doubts regarding the implementation and project.

Could you please provide more information about what is meant by the implementation of the "pprof" feature in this project?
Could you give me a brief overview of the requirements for "page effects" in this project, and what is expected to be implemented?
I am well versed with frontend and backend technologies but haven't use vue.js and Golang but I would love to learn and implement it in this project, would that be fine?

@psankhe28

Standard Library Package pprof serves via its HTTP server runtime profiling data in the format expected by the pprof visualization tool<EMAIL_ADDRESS>Currently GT can only be used from the command line, and as the number of parameters increases, it becomes more difficult to use. You can use GT for a while and then think about what you can do from the user's perspective to make it less difficult to use and improve the user experience while displaying important data if you add UI functionality to GT. Perhaps the answer will come.
That's totally fine! :)

Thank you for patiently answering all my queries.


remove 'page' word from urls?

Currently page links are like this:
http://example.com/products/page/2
Is there a way to change it so it create links like this?
http://example.com/products/2
I believe it's more SEO friendly, and also doesn't need to be translated for different locales.
The page number is the last URL segment (always).

This package is built with the idea that there's a keyword, I don't think we're going to add the option to drop it any time soon.

There is #35 available, but the test needs to be done for it


Refs #25006 -- Added a '6 p.m.' option to the admin's time picker.

LGTM. "timepicker" is an unknown word for the spellchecker

buildbot, test on selenium.


New cryptonightR algorithm for XMR (9th March)

New XMR algo
On the 9th of March XMR will move to a new CryptonightR algo.
Can we add support for it on Miningcore?
Reference implementation: https://github.com/monero-project/monero/pull/5126

What are you filing an issue for something that is already implemented?

Sorry I filled the issue because I couldn't find any information on the README or any CHANGELOG :) Again, sorry about this!


Trackers in the latest release

First thanks for providing your app! Unfortunately, v0.8 added a couple of non-free and tracking libs, making it essentially no longer FOSS:
Offending libs:
---------------
* Crashlytics (/com/crashlytics): NonFreeDep,Tracking
* Google Ads (/com/google/ads): Ads,NonFreeDep
* Firebase Data Transport (/com/google/android/datatransport): NonFreeNet
* Google Mobile Services (/com/google/android/gms): NonFreeDep
* Firebase (/com/google/firebase): NonFreeNet,NonFreeDep
* Firebase Analytics (/com/google/firebase/analytics): NonFreeDep,Tracking
* Firebase Installations (/com/google/firebase/installations): NonFreeNet

7 offenders.

According to the release notes, those where added intentionally. So please let me raise 2 question:

would you consider removing them again, or at least replacing them with more privacy-friendly alternatives which are configured to be opt-in? Google isn't exactly known as a "privacy preserving entity", so the above will scare several users away.
if not, would you at least consider a foss build flavor coming without those, providing its APK along the others at your releases?

I've removed v0.8 from my repo again and disabled updates until this issue is solved. If it cannot be solved, I'll unfortunately have to remove your app from my repo, which would be a pity – the idea is great, and the app certainly helpful for many. Thanks in advance!

Hello, thank you for opening this detailed issue.
Yes, I intentionally added these libraries because I want to know how many users use my app and where they are, so I'm not considering to remove them.
I might think in the future about a foss build flavor for my app, but now I don't.
If you would like to keep v0.7 on your website I would be happy, but if you are forced to remove it, I would say thank you for having hosted it until today.

I can keep v0.7 for a while – but it gets much outdated soon. I'd do so if we can strike a deal:
For now I'd add a note to the description why there are no updates – while you think about a foss flavor or replacement of those libs (as outlined above). Please decide until Summer; I'd set a marker to remove it then unless I heard back until July, with an ETA for not much later than August/September that I can pick up an alternative. This would give you some headroom now.
Deal?

Deal. Thank you 🙂

Mark set! Looking forward to your next ping then :smiley:

Would you like me to use this issue to contact you or another method? Please let me know.

This issue is fine (just leave it open please until solved). I've opened it, so I follow it. Should I not react in timely manner, maybe notifications didn't reach me – so in the worst case the flag I've set on my end (with a link here) should trigger me to come looking :wink:
Thanks a lot!

I'd set a marker to remove it then unless I heard back until July, with an ETA for not much later than August/September that I can pick up an alternative.

OK, time to take a look again then. 1 down 6 to go:
Offending libs:
---------------
* Crashlytics (/com/crashlytics): NonFreeComp,Tracking
* Firebase Data Transport (/com/google/android/datatransport): NonFreeNet
* Google Mobile Services (/com/google/android/gms): NonFreeComp
* Firebase (/com/google/firebase): NonFreeNet,NonFreeComp
* Firebase Analytics (/com/google/firebase/analytics): NonFreeComp,Tracking
* Firebase Installations (/com/google/firebase/installations): NonFreeNet

6 offenders.

Maybe splitting up to build flavors (e.g. foss and gplay), and setting firebaseEnabled to false for the foss flavor? Or, the possibly easier approach with the two flavors established, replacing that conditional by
        gplayImplementation(platform(libs.firebase.bom))
        gplayImplementation(libs.firebase.analytics)
        gplayImplementation(libs.firebase.crashlytics)

so it gets only implemented for the gplay flavor – and then making the APK for both flavors available at the release tags?

Thank you for the suggestion on how to implement different flavors.
I can't work on it until late August, is it ok?

Can't expect you to have it finished early August :see_no_evil: So yes, of course. We've agreed on having it ready "at latest September". And I stay to my part of the deal :wink:
Oh, just to make sure: We're talking about August/September 2023 here, right? :rofl:

Sure, don't worry! 🤣
I will start to work on it.

@IzzySoft what program did you use to get the list of trackers in the app?

My own library scanner. It's of course FOSS, see Identify modules in apps.

I finally released a FOSS version of the app: FoodExpirationDates-1.0-foss.apk
I scanned the apk using your tool and these are the results:
Libraries detected:
-------------------
* Android Support v4 (/android/support/v4): Development Framework, Apache-2.0
* AndroidX Activity (/androidx/activity): Utility, Apache-2.0
* Android Jetpack Annotations (/androidx/annotation): Utility, Apache-2.0
* Jetpack Compose (/androidx/compose): Development Framework, Apache-2.0
* Androidx Core (/androidx/core): Utility, Apache-2.0
* Android Emoji2 Compat (/androidx/emoji2): UI Component, Apache-2.0
* AndroidX Fragment (/androidx/fragment): UI Component, Apache-2.0
* Lifecycle (/androidx/lifecycle): Utility, Apache-2.0
* ProfileInstaller (/androidx/profileinstaller): Utility, Apache-2.0
* Room (/androidx/room): Utility, Apache-2.0
* Android Activity Saved State (/androidx/savedstate): Utility, Apache-2.0
* Android Jetpack VersionedParcelable (/androidx/versionedparcelable): Utility, Apache-2.0
* WorkManager (/androidx/work): Utility, Apache-2.0
* Dagger (/dagger): Utility, Apache-2.0
* kotlinx.coroutines (/kotlinx/coroutines): Utility, Apache-2.0

No offending libs found.

Please tell me if it's all ok.

That looks fine, thanks! Switching to the FOSS build then. My updater will only pick APKs matching the regular expression /foss\.apk/i from now on (which is what you currently use, file name ending in foss.apk). Time to pick a badge to accompany the Play and Github ones, linking here I'd say :smiley:
Next station: F-Droid.org maybe?


Idea: a guide for incremental adoption of pothos in a nexus/typegraphql project

Hey @hayes 👋🏼, hope you're doing well.
I'm a member of The Guild, we've been using Pothos for quite some time now and we really admire it but unsurprisingly we get a lot of questions from people asking us about the same thing which is:

Can I use my Nexus/Typegraphql setup in conjunction with an incremental adoption of Pothos?

It's painful to rewrite an entire production app from one framework to another esp when they differ a lot like Typegraphql -> Pothos migration(I did a Nexus -> Pothos migration recently and it took me a whole painful month to do it). I've started investigating a number of ways we can achieve that and I've got this minimal example which is a usage of two graphql schema builders that work internally entirely different, my goal is to make that approach as agnostic as possible literally using any graphql framework in conjunction with Pothos. The idea there is that every setup defines its own types and resolvers like:
Typegraphql -> defines Recipe object type and its resolver
Pothos -> defines Person object type and its resolver
in that particular use case where the two work on their own, it's easy to just use the mergeSchemas utility from the @graphql-tools/schema package to get a single schema from both at the end before passing it to whatever gql server we're using. The issue is that the nexus/typegraphql/etc.. setup is gonna always have all of application's types and the Pothos setup is gonna always has insufficient types, an example as in here where it gets interesting is when we wanna add a new field to our People object type to reference Recipe which is in the typegraphql setup, the issue is that even that we're very sure that the Recipe object type is gonna exist when the schemas are merged but the Pothos builder isn't aware of that and throws an error because of missing object refs and refuses to build the schema. So the challenge here that I faced is making Pothos not complain about missing types because we know they’re gonna exist when we merge the schemas, so is this a limitation from the GraphQLSchema object that gets built or is it a layer that's extensible at Pothos level? because my thinking was towards adding an option for Pothos to skip erroring bc of missing object refs if that's achievable.
Even one of the core engineers for Nexus shared this thread in which he says that he was very very impressed with the approach of Pothos after playing with it and is also thinking of what we're headed for.
Wanted to share with you this process and get your thoughts on it and hear the possible ways I'm not aware of to support such a behavior/feature.

This is definitely something I want to support, and something I am actively working on.  I've been talking with @tgriesser as well, and he is also interested in helping these kinds of migrations easier.

So the challenge here that I faced is making Pothos not complain about missing types because we know they’re gonna exist when we merge the schemas, so is this a limitation from the GraphQLSchema object that gets built or is it a layer that's extensible at Pothos level? because my thinking was towards adding an option for Pothos to skip erroring bc of missing object refs if that's achievable.

At it's core this is an issue with GraphQLSchema.  Issue may not be the right term here, but fields in a GraphQLSchema don't reference type names, the reference actual instantiated types.  This means that we need to build a type in order for a field to be able to reference that type as a return or argument type.  We can't just make up a placeholder, because we don't know if the type is an Object, Interface or whatever.
Fortunately this is actually very easy to work around, you can just create an empty object type with no fields and Pothos should build the schema with no issues, then mergeSchemas should be able to merge the type definitions without any issues.
To make migrations easier, there are 2 things I am working on:
A new plugin for adding types from existing graphql schemas to pothos: https://github.com/hayes/pothos/pull/700
This isn't really documented yet, and only has some of the features speced out, but the goal is to let you add types defined externally to a Pothos schema.  It will support adding types on at a time (and automatically pulling other types that get referenced), but should also allow you to just pull in an entire schema, or list of types from a schema to make this a less granular process for big migrations.
The other thing I am working on is an interactive migration tool that will let you pull in an existing schema, and/or resolvers and codegen pothos definitions.  The goal is to produce something that can directly reference revolvers from the existing schema, so that if you pass in a schema from something like nexus, the generated code would automatically run with the existing resolvers and be fully functional.
It should also be incremental, and work with the plugin mentioned above, so you can slowly generate/pull in more types and always have a working schema as you go through the migration process.
This is still fairly early in my exploration of these ideas and there is a lot of work left to do, but would love to collaborate on making migrations easier!


Issue with installation

Hi all,
Thank you for providing this awesome benchmark! However, I encountered an issue while installing VIMA:
  Preparing metadata (setup.py) ... done
Collecting pybullet (from vima-bench==0.0.1)
  Using cached pybullet-3.2.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (91.7 MB)
Collecting gym==0.21.0 (from vima-bench==0.0.1)
  Using cached gym-0.21.0.tar.gz (1.5 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

python version: 3.9.18
pip version: 23.3

It's appreciated if you could provide any help :)

pip3 install wheel==0.38.4
pip3 install setuptools==66
works for me

@SaulBatman Thank you

@SaulBatman Thank you !!

Thankyou very much！ @SaulBatman