fix: Add support to dynamically change Dropdown value

Multi-valued dialog Dropdown Refactor notes
On line 189, since filteredItems is intialized with items, setFilteredItems was mutating items when it set i.checked = checked which is definitely an antipattern, plus items uses useMemo which should only change when its dependencies change.
189: selectAll = (checked = true) => () => setFilteredItems(filteredItems.map(i => { i.checked = checked; return i })),
filteredItems should represent the displayed items and should rely on items as single source of truth. The refactoring makes it so that we change items and the changes are reflected to filteredItem through useEffect. Same for searching.
I believe this is a better mental model.
Unrelated bugs
I fixed a bug where multi-valued dialog Dropdown was setting wave args to string when it only had a single value selected and it was setting wave args to array for more than one value. Now it's always an array. No one has reported this issue but if they handled this in their code, the fix might break it.
Performance concerns
We are using toString() to compare array content and it can be an expensive computation.
I tested dialog with 100k options and it was fine.
Updating choices prop
This PR solves the issue which was concerned about changing value and values. Updating choices dynamically could be done in a separate PR due to the number of changes and complexity already present in this one.
Further improvements
The code is still quite complex. We could split each component into single-valued and multi-valued like we did for dropdown. Maybe it would be easier to follow.
Any suggestion is welcomed.
Handy repro code
from h2o_wave import app, main, Q, ui

combobox_choices = ['A', 'B', 'C']

@app("/demo")
async def serve(q: Q) -> None:
    if not q.client.initialized:
        q.client.initialized = True
        q.page["example"] = ui.form_card(
            box="1 1 4 6",
            items=[
                ui.dropdown(
                    name='dp1',
                    label='base single',
                    choices=[
                        ui.choice(name="a", label="choice a"),
                        ui.choice(name="b", label="choice b"),
                        ui.choice(name="c", label="choice c"),
                    ],
                    value="a",
                ),
                 ui.dropdown(
                    name='dp2',
                    label='base multi',
                    choices=[
                        ui.choice(name="a", label="choice a"),
                        ui.choice(name="b", label="choice b"),
                        ui.choice(name="c", label="choice c"),
                    ],
                    values=["a"],
                ),
                ui.dropdown(
                    name='dp3',
                    label='dialog single',
                    choices=[
                        ui.choice(name="1", label="Choice 1"),
                        ui.choice(name="2", label="Choice 2"),
                        ui.choice(name="3", label="Choice 3"),
                    ],
                    popup="always",
                    value="1"
                ),
                ui.dropdown(
                    name='dp4',
                    label='dialog multi',
                    choices=[ui.choice(name=str(i), label=f'Choice {i}') for i in range(100000)],
                    values=["1"],
                    popup="always",
                ),
                ui.button(name="change", label="change"),
            ],
        )
    if q.args.change:
        q.page["example"].items[0].dropdown.value = 'b'
        q.page["example"].items[1].dropdown.values = ['b']
        q.page["example"].items[2].dropdown.value = '2'
        q.page["example"].items[3].dropdown.values = ['2']

    await q.page.save()

closes #1574

Thanks for the great work @aalencar! I refactored your changes to make the components simpler. Please check the changes and apply additional refactors as we discussed.

I didn't see any major performance improvement on using Map over a more functional style, recreating the array every time and setting items props as needed.

The only thing that bothers me is a lot of introduced duplication, especially in the markup part, but we can leave that for future.

It also bothered me. As you said, we can leave it for another moment.


feature: preview colors in autocompletion popup

As implemented by:
https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss

I suspect this has something to do with it:
https://github.com/tailwindlabs/tailwindcss-intellisense/blob/master/packages/tailwindcss-intellisense/src/lib/registerColorDecorator.ts

That should be fixed with the new 0.2.0 release.

Awesome :)
Thank you for your hard work and quick turnaround! This makes a difference to the adoption of Twind (I am not a big fan of Tailwind's default build/integration approach, and I love the flexibility that Twind brings (i.e. hybrid CSS-in-JS + declarative utility classes))
Just a question (just in case this is a bug, not a feature): the colour indicator only appears when the popup menu item is keyboard-navigated with the arrow keys (fine by me, but just wondering if this is intentional). See screenshot below:

PS: I love the "hover" feature which reveals the raw CSS (just like the Tailwind VSCode plugin). Very useful for those like me who actually know/like CSS syntax, but who prefer to write styling code quicker by using the opinionated terse aliases that Tailwind provides.

Just a question (just in case this is a bug, not a feature): the colour indicator only appears when the popup menu item is keyboard-navigated with the arrow keys (fine by me, but just wondering if this is intentional).

The plugin provides all the informations. I experienced the same. Maybe there is a way to tell VS Code to render those immediately.


⚠ Bofrost.es has degraded performance

In e5f8409, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1865 ms

Resolved: Bofrost.es performance has improved in 2966138 after 6 minutes.


Cannot connect SQL which SQL password has '%'

Expected Behavior
Hi, I want to use flask-sqlalchemy to connect my SQL database, but I cannot connect to SQL， because the SQL database's password is like "qU%d6".
It quite strange because I can connect to SQL normally using a password like "password".
Changing the SQL password may solve the problem, but this bug should be fixed too I think.
DIALECT = 'mysql'
DRIVER = 'mysqldb'
USERNAME = 'xxx'
PASSWORD = 'qU%d6'
HOST = 'xxx'
PORT = 'xxx'
DATABASE = 'xxx'

SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT, DRIVER,
    USERNAME, PASSWORD, HOST, PORT, DATABASE)

Actual Behavior
The error is: UnicodeDecodeError: 'ascii' codec can't decode byte 0xd6 in position 3: ordinal not in range(128), so I cannot connect to the SQL database.
I have tried:

use u'qU%d6'
use r'qU%d6'
change % to %%
All failed!

Traceback (most recent call last):
  File "sqldemo.py", line 37, in <module>
    db.create_all()    # 真正建立模型到数据库
  File "/usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 1039, in create_all
    self._execute_for_all_tables(app, bind, 'create_all')
  File "/usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 1031, in _execute_for_all_tables
    op(bind=self.get_engine(app, bind), **extra)
  File "/usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 962, in get_engine
    return connector.get_engine()
  File "/usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 556, in get_engine
    self._engine = rv = self._sa.create_engine(sa_url, options)
  File "/usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 972, in create_engine
    return sqlalchemy.create_engine(sa_url, **engine_opts)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 500, in create_engine
    return strategy.create(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 98, in create
    (cargs, cparams) = dialect.create_connect_args(u)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/mysql/mysqldb.py", line 184, in create_connect_args
    database="db", username="user", password="passwd"
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 216, in translate_connect_args
    if name is not None and getattr(self, sname, False):
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 134, in password
    return util.text_type(self.password_original)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd6 in position 3: ordinal not in range(128)

Environment

Python version:2.7
Flask-SQLAlchemy version:2.4.4
SQLAlchemy version:1.3.18

Please see https://stackoverflow.com/a/1424009. Hope that helps.
In the future, please use StackOverflow for problems with your own code. This issue tracker is for problems with Flask-SQLAlchemy itself.

Thanks for your reply.
I have tried method in your link , there is no ascii decode error, but I still cannot connect to the server, the program stucks. No respense.


Four failing RSpec tests in master branch

There are four failing RSpec tests in master:

rspec ./test/spec/recipes/default_spec.rb:30 # consul::default with create_service_user disabled does not try to create the user
rspec ./test/spec/libraries/consul_installation_webui_spec.rb:31 # ConsulCookbook::Provider::ConsulInstallationWebui webui installation
rspec ./test/spec/libraries/consul_installation_webui_spec.rb:25 # ConsulCookbook::Provider::ConsulInstallationWebui webui installation
rspec ./test/spec/libraries/consul_installation_webui_spec.rb:19 # ConsulCookbook::Provider::ConsulInstallationWebui webui installation

This appears to be blocking a number of PRs

It looks like the WebUI tests have to be marked pending individually, which resolves three of the tests.
For the user test, calling default_attributes does not seem to be passing the attributes to the recipe during the test. I also added some tests in paybyphone/consul-cookbook


juicefs sync: privilege escalation in remote host

when using ssh hosts, provided user might not necessarily have access to target path, but can gain access through privilege escalation.
juicefs sync should provide an option to perform this privilege escalation. but on the other hand, users might need to configure this separately for src and dst, maybe it's better to just incorporate this as a automatic check inside juicefs sync (when reading/writing files, check permission and automatically use sudo when needed)?

Sftp is based on the ssh protocol, so a user must be provided, and sftp operations are based on that user, so there is no way to do privileges.
The only way to privilege is to have an executable program on the remote end, and then run that program with sudo in front of it, such as rsync-path.


Dropbox seems to have a runtime dependency on "which"

It doesn't seem to fail without it though. However, there are error messages in the output about not being able to invoke "which".

This is no longer present in master.


Why not control the nb_epoch within the fit function?

The codes have following lines:
for epoch in range(num_epochs)
    ...
        model.fit(...,nb_epoch=1, ...)
    ...

Why not set the nb_epoch as num_epochs directly?

This is to run the validation on the test set after every epoch. You could do it via callbacks but this is just less work.


Add OpenSearch to docker setup for development

For issue #505... "In theory" this seems done, but I'm still not understanding why I don't get search results. I'm opening this PR in draft for now (EDIT: at least that was my intention). I really want to understand how OpenSearch ingests our data; I couldn't find in the code anywhere where we explicitly hand off newly posted content to OpenSearch (e.g. in the mutation resolver or such).
This PR follows a pretty straightforward setup per OpenSearch's instructions, with the variation of removing HTTPS since it is for development environments only. The optional dashboards are included by specifying the aux profile as in docker-compose --profile aux up --build and docker-compose --profile aux down.
On initial runs, some index and mapping errors will be seen in the logs, which can be resolved by trial-and-error with the following commands or similar:
curl -X PUT -H "Content-Type: application/json" http://localhost:9200/item --data "{}"

curl -X PUT -H "Content-Type: application/json" http://localhost:9200/item/_mapping --data "{\"properties\":{\"wvotes\":{\"type\":\"integer\"}}}"

curl -X PUT -H "Content-Type: application/json" http://localhost:9200/item/_mapping --data "{\"properties\":{\"sats\":{\"type\":\"integer\"}}}"

After that, everything appears to run smoothly, but searches on the SN site still don't return any results...even if new posts are made. (Nor do searches in the OpenSearch dashboard, as far as I can tell.) Something is still missing... but what?

Cool! I'll try to run it and give more detailed feedback tomorrow

I managed to get it to work but pretty much had to start from scratch.
The main issue was that the worker was trying to reach app via localhost - among other things.

The main issue was that the worker was trying to reach app via localhost - among other things.

Interesting...it's slowly starting to make sense to me. Looking forward to working with it tomorrow.
I like how you put the script and disabled security directly in docker-compose.yml... I didn't know it could be done that way 😳


[BUG] Chain halt on new nets

Setting up a fresh network with Paloma & Pigeon 1.10.1 results in a chain halt at BH 200, every time.

Fixed with https://github.com/palomachain/paloma/pull/1050#event-11139697562


fix release.yml push trigger expecting a map.

Signed-off-by: Maksim An<EMAIL_ADDRESS>

@helsaawy thanks for catching this.


fix sobol indexing bug and format code

Fixed a indexing bug in sobol, formatted code to pep standard.

@dfrancom ready to merge, we found an indexing bug.

I should add some tests for the sobol part, we have those in the R package.

Yes that would be good, we have a test script but not good testing


Android ) seek does work inaccurately

Which player are you experiencing the problem on:

Android ExoPlayer

Environment info
React native info output:
OS: macOS 10.15.4
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 307.86 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash

Binaries:
Node: 12.18.2 - /usr/local/bin/node
Yarn: 1.22.4 - ~/.yarn/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 23, 25, 26, 27, 28, 29
Build Tools: 25.0.0, 28.0.3, 29.0.0, 29.0.2
System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6<IP_ADDRESS>22156
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-rename: 2.4.1
Library version: 0.61.5
Steps To Reproduce
seek does not work accurately. for example when I seek to 10.0 s my video seeks to 8.0s.
how to seek to accurate timestamp?
ios works well

same problem

Which player are you experiencing the problem on:

Android ExoPlayer

Environment info
React native info output:
OS: macOS 10.15.4
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 307.86 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash

Binaries:
Node: 12.18.2 - /usr/local/bin/node
Yarn: 1.22.4 - ~/.yarn/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 23, 25, 26, 27, 28, 29
Build Tools: 25.0.0, 28.0.3, 29.0.0, 29.0.2
System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6<IP_ADDRESS>22156
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-rename: 2.4.1
Library version: 0.61.5
Steps To Reproduce
seek does not work accurately. for example when I seek to 10.0 s my video seeks to 8.0s.
how to seek to accurate timestamp?
ios works well

Use ExoPlayer instead of Android Player. It works!
include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer')

@bird-xiong I already used Exoplayer.


capi npm StorageRune.value returns any instead of ValueRune

With<EMAIL_ADDRESS>there are several APIs that return any

The package.json is similar to
{
  ...,
  "dependencies": {
    "capi": "0.1.0-beta.37",
    "@capi/polkadot": "https://capi.dev/ea4a5fd4b8a3c3aa/polkadot.tar",
    "@capi/polkadot-dev": "https://capi.dev/ea4a5fd4b8a3c3aa/polkadot-dev.tar"
  },
  ...
}

Duplicate of #974


cmd: status examples

Partially Addresses #1824:

[x] status examples in all docs (including consistent indentation

Is this still a draft PR though?

@jorgeorpinel One example of fetch that requires indentation correction is having a merge conflict so I'll open a separate PR for that.

Done 🙂


Fisher: Overlay issue with certain Ultima Thule fishing holes

Description
I noticed that the overlay seems to 'hang' and not display the usual rolling timer on some fishing holes. In most cases, it will display normally while the spot is 'unidentified fishing hole', but once the name is revealed, the timer freezes and doesn't update for that hole again.
I've managed to isolate it to a few fishing spots in Ultima Thule, all of which are using Greek letters (α, β, γ).
For example, the timer for Limne 18 displays fine, but Limne 3-α does not - or 3-β, apohelos 18-β, etc etc. It displays normally while any of these were 'unidentified', but once the name was revealed with the Greek lettering, the overlay seemed to not know what to do with it.
At the time of this report, the last update hasn't fixed it, so I think it simply slipped through. My ACT parsing language is set to English, as well. ACT logs look normal on the "you cast your line at [fishing hole] chat messages as well, and ACT's as up to date as can be.
I unfortunately can't seem to provide any screenshots of the 'frozen' overlay either, because...the timer just doesn't show up on the affected locations. I guess the plugin doesn't even recognize that I'm at a viable fishing spot due to the potential name-reading issue.
I'd be happy to provide any other info I can, if for some reason this bug isn't able to be duplicated. Thanks!
Edit for additional info: the debug log under OverlayPlugin.dll in ACT (I was fishing at Limne 3-β) :
"[1/8/2022 5:23:24 AM] Info: Fisher: BrowserConsole: placemissing in catch (Source: file:///C:/Users/Drago/AppData/Roaming/Advanced%20Combat%20Tracker/Plugins/cactbot-0.16.5/cactbot/ui/fisher/fisher.bundle.js, Line: 13303)
[1/8/2022 5:23:29 AM] Info: Fisher: BrowserConsole: failed to look up place: [object Object] (Source: file:///C:/Users/Drago/AppData/Roaming/Advanced%20Combat%20Tracker/Plugins/cactbot-0.16.5/cactbot/ui/fisher/fisher.bundle.js, Line: 13376)
[1/8/2022 5:23:29 AM] Info: Fisher: BrowserConsole: failed to look up place: [object Object] (Source: file:///C:/Users/Drago/AppData/Roaming/Advanced%20Combat%20Tracker/Plugins/cactbot-0.16.5/cactbot/ui/fisher/fisher.bundle.js, Line: 13376)"

I noticed this too. The funny thing is if you mooch a fish, the layout somehow shows and isn't frozen/hidden. It's very odd. Hoping this gets fixed because the overlay would be super helpful to know a Horizon Event tug!

The funny thing is if you mooch a fish, the layout somehow shows and isn't frozen/hidden.

I'm guessing the mooch circumvents this, because you're just "Casting with the fish still attached" as far as the Fisher plugin is concerned - rather than casting your line at the 'forbidden spots'.

Sorry, it will be a good while before I have any time to look at this.  If you can figure out what's wrong, I'd be happy to look at a PR.

From the 6.1 patch notes:

An issue in Ultima Thule wherein using the fisher action Cast at fishing holes under certain conditions displayed the name of the wrong fishing hole.

Possibly related?

The problem is \w apparently doesn't include Greek letters.
(fisher.js, line 85)
        'cast': /00:08c3:(?:[\w']\.?)(?:[\w'\s]+\.?)? cast(?:s?) (?:your|his|her) line (?:on|in|at) (?:the )?([\w\s'&()]+)\./,

Changing this in the bundled version fixes the problem with these holes (tested on apohelos 18-β):
(fisher.bundle.js, line 13787)
--          line: '(?:[\\w\']\\.?)(?:[\\w\'\\s]+\\.?)? cast(?:s?) (?:your|his|her) line (?:on|in|at) (?:the )?(?<place>[\\w\\s\'&()]+)\\..*?'
++          line: '(?:[\\w\']\\.?)(?:[\\w\'\\s]+\\.?)? cast(?:s?) (?:your|his|her) line (?:on|in|at) (?:the )?(?<place>.+)\\..*?'

Using . instead of \w\s etc feels more reliable to me than trying to catch all the specific variant characters they might use in the future. I guess you could try including U+0391 - U+03C9 directly to catch all the Greek letters, but who knows if they'll start putting Cyrillic in fishing hole names in the future or something.
Presumably you will also want to update the regex in other places too, most notably the EN 'discovered' pattern, and at least check the cast and discovered strings for the other languages as well. But switching to .+ does fix the issue for me in EN at least as a workaround for now.

@rocketmantis can you make a PR for your fix? seems like it should work and will let it get merged :)


Forcing a fetch from email server

Hi,
Is there a way to forcefully check for new mails?
Thanks.
Sincerely,
Anthony

I am also interested in this question

You can do this:
mailListener.imap.emit("update")


How to compile the C code and output

Dear developers of Circle_finder,
I am Iñigo Prada-Luengo, the developer behind Circle-Map (https://github.com/iprada/Circle-Map). I am trying to compare Circle-Map with Circle_finder, however the code exits with the common Segmentation fault (Core dumped) error found on C/C++ programs.  In order to be able to execute the pipeline, can you provide information about how to compile the C code of the package?
Furthermore, I don't see any information about the format and the name of the output files generated by Circle_finder. Could you please provide a minimal example of the output, and the name of the output file generated by your software?
Best wishes,
Iñigo

Hi Iñigo,
Sorry for late reply. Somehow I could not get your message.
I suggest you re-compile all the "C" program. This should fix the problem.
Please let me know if this solves your problem.
Best,
Pankaj


improving README

Coverage remained the same at 61.648% when pulling f5c4c75ebc240696457d7fd58ac1c0b53d8043af on cknowledge:master into 7d6ad58b4d80875b041c01046e66885eba1c3568 on ctuning:master.


feat: make replace_keycodes consistent with nvim_set_keymap

Closes #500.
I'm not too sure if this should be categorized as a breaking change, since existing mappings will continue to work but might have a different behaviour than before...

I should also mention that the reason why this just affects nvim >= 0.7 is because it seems that replace_keycodes has always had this behaviour for nvim_set_keymap, but I couldn't find a lot about what it did for other keymapping setting functions before that.


How do you change the environmental variables? Where is the file that you change?

I should add this information to the README.
Thanks

I know how to do it on Linux and Mac but I need to look how to do it easily in windows.
I think that you can use setx in a cmd prompt.
For example
setx RK_CLIENT_COLORIZE “true”
Then run
goMarkableClient.exe
Or maybe create a .bat file
This may help you:
https://superuser.com/questions/1049430/how-do-you-set-environment-variables-for-a-single-command-on-windows
Can I ask you to share how you did it when you succeed (or open a PR if you are comfortable with it)

I couldn't get it to work with set in the cmd prompt. I'm not sure how to use .bat files :(

I tried to upload this: https://raw.githubusercontent.com/owulveryck/goMarkableStream/windows/misc/windows/client.bat
can you try to download it in the same directory where the client is and launch it?
Thanks for your help

I keep getting this now no matter how I close and restart files (tried all the possible orders)
reMarkable: ~/ './goMarkableStreamServer.arm'
2021/05/23 18:29:51 listening on tcp :2000
2021/05/23 18:29:51 listen tcp :2000: bind: address already in use

This means that the server is already running.
Therefore you don't need to restart it.

If you want to kill it anyway, so you can restart it properly you can use:
kill $(pidof goMarkableStreamServer.arm)

One more thing, you may need to specify the RK_SERVER_ADDR in the. "bat" file.

it's still not quite working

I think I know what is wrong: you should not add root@ in the server address, simply <IP_ADDRESS>:2000

yes it works now! for the colorizing turn on, it seems to recognize any lighter grey as highlighter even in pdf

also it seems that even with autorotate on, it wont autorotate even after reload

Cool!
I see that you have the hack from ddvk installed.
This is the reason why the auto rotation is not working.
It tries to locate the toggle on the screen which is different when the hack is on.
I do not install the hack, therefore I did not implement this. If I got time, I will use it.
Or, if you are willing to help, you can send me 4 raw pictures (that you can grab by calling /raw)
Each page should be blank with the toggle only.

one portrait right-hand
one landscape right-hand
one portrait left-hand
one landscape left-hand

Regarding the colorize feature, it is not bullet proof yet. It is understandable that it detect light gray as yellow because it is how it should work, but I may tweak it a little bit to be less restrictive in a future release.
I hope you’ll enjoy the tool, and thank you for your feedback.
PS: does the batch file work?


DeepLearning 4j

cd C:\Users\Abhilasha\Documents\NetBeansProjects\dl4j-0.4-examples-master; "JAVA_HOME=C:\Program Files\Java\jdk1.8.0" cmd /c """C:\Program Files\NetBeans 8.0.1\java\maven\bin\mvn.bat" -Dexec.args="-classpath %classpath org.deeplearning4j.examples.rnn.GravesLSTMCharModellingExample" -Dexec.executable="C:\Program Files\Java\jdk1.8.0\bin\java.exe" -Dexec.classpathScope=runtime -Dmaven.ext.class.path="C:\Program Files\NetBeans 8.0.1\java\maven-nblib\netbeans-eventspy.jar" org.codehaus.mojo:exec-maven-plugin:1.2.1:exec""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...
Some problems were encountered while building the effective model for org.deeplearning4j:deeplearning4j-examples:jar:0.4-rc0-SNAPSHOT
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 146, column 21
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.

Building DeepLearning4j Examples 0.4-rc0-SNAPSHOT
--- exec-maven-plugin:1.2.1:exec (default-cli) @ deeplearning4j-examples ---
File downloaded to C:\Users\ABHILA~1\AppData\Local\Temp\Shakespeare.txt
Loaded and converted file: 5459809 valid characters of 5465100 total characters (5291 removed)
SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Exception in thread "main" java.lang.ExceptionInInitializerError: unable to load from [netlib-native_system-win-x86_64.dll]
at com.github.fommil.jni.JniLoader.load(JniLoader.java:81)
at com.github.fommil.netlib.NativeSystemBLAS.(NativeSystemBLAS.java:42)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:259)
at org.nd4j.linalg.cpu.BlasWrapper.(BlasWrapper.java:41)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:259)
at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:4532)
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:4490)
at org.nd4j.linalg.factory.Nd4j.(Nd4j.java:136)
at org.deeplearning4j.nn.conf.NeuralNetConfiguration$Builder.seed(NeuralNetConfiguration.java:415)
at org.deeplearning4j.examples.rnn.GravesLSTMCharModellingExample.main(GravesLSTMCharModellingExample.java:73)
BUILD FAILURE
Total time: 1:01.600s
Finished at: Tue Oct 27 21:24:13 IST 2015
Final Memory: 12M/165M
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project deeplearning4j-examples: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

This does not seem to be word2vec java, but deeplearning4j. Are you sure you are running word2vec by medallia?

Marking as closed!


When show_title_bar:false on Windows, Win+arrowkeys do not work for changing position/size

Contour Terminal version
Contour Terminal Emulator <IP_ADDRESS>08-prerelease
Installer source
Github: CI actions
Operating System
Windows 11
Architecture
x86-64
Other Software
No response
Steps to reproduce
Set show_title_bar:true. Observe that pressing say Win+uparrow will maximize the window (this is standard Windows behaviour). Now set show_title_bar:false and try the same, nothing will happen.
Expected Behavior
No response
Actual Behavior
Nothing happens.
Additional notes
No response

Looks like this is known issue
https://stackoverflow.com/questions/43505580/qt-windows-resizable-frameless-window

Hmm, that's sad. Although not something one can't live without I guess ...


backend server

i want to know how you build your backend server if you have the code for that

@Sbeaute All the code is in this repo. It's built using Express and Socket.IO.

What you're asking is too vague so I'm afraid I can't answer it. You can use any backend you want. React is just a UI library. Sorry but this doesn't have anything to do with Flatris.
FYI the server code is here: https://github.com/skidding/flatris/tree/master/server
Best of luck!


Use deployable file structure and dependencies

When the model is not in db or srv, cds-deploy does not find it.
When we don't include the @cap-js/postgres, we can't deploy to postgres

Checked with @danjoa: Seems fine, check again with the CSVs and if all works fine to merge.

@renejeglinsky @manjuX I double checked by following the guide and doing a CF deployment, seems to work! Good to merge after your review :)

Is needed by customers. Will merge and release capire afterwards.


EIP198 Not Supported?

I'm currently trying to use some of the ECC features from Vyper e.g. ecrecover, and ecadd on ganache-cli -k byzantium
Expected Behavior
Function executes
Current Behavior
Function throws a Error: VM Exception while processing transaction: invalid opcode
Possible Solution
Unsure
Steps to reproduce

Deploy contract to ganache0cli (code below)
Call function func(<bytes>)
Error gets thrown

@public
def func(_bytes: bytes32):
    value: uint256 = convert(_bytes, uint256)
    valueArr: uint256[2] = [value, value]

    retVal: uint256[2] = ecadd(valueArr, valueArr)

Context
Trying to do some ECC stuff on the EVM on ganache-cli for quicker product iteration
Your Environment

Node: v10.15.3
Vyper: 0.1.0b10
ganche-cli: Ganache CLI v6.4.3 (ganache-core: 2.5.5)

Logs
eth_sendTransaction

  Transaction: 0x6ec61f9b4a57407d7bb44ca94bbb82dcff2ccbdfc1bfa864d192587c830e7a45
  Gas usage: 25043
  Block Number: 4
  Block Time: Mon Jun 10 2019 23:02:30 GMT+1000 (Australian Eastern Standard Time)
  Runtime Error: revert

eth_getBlockByNumber
net_version
eth_accounts

Nvm, turns out I had to run it with the command ganache-cli -k=petersburg


Query JSON deserialization errors show up as confusing 500 errors

When hacking around on Druid clients, any sort of JSON parsing error usually shows up as a 500 error. It should show up as a 400 (or at least 4XX) error instead. Also more detailed information should be available. For example, the broker might print out an error like this:
ERROR - Exception handling request: {class=io.druid.server.QueryResource, exceptionType=class com.fasterxml.jackson.databind.JsonMappingException, exceptionMessage=Can not deserialize instance of java.lang.String out of START_OBJECT token
 at [Source: HttpInputOverHTTP@55ead39f[c=1350,q=1,[0]=EOF,s=STREAM]; line: 1, column: 749] (through reference chain: java.util.ArrayList[0]),

The way the error can be deconstructed is that there were 1350 characters in this request body, and something was wrong at character 749 where the JSON deserialization code expected a String ("something")but instead found an Object ({"something":"someval"}).
This is not at all clear and could use some cleanup to help integrators get a clearer handle on what is going on with the query parsing.

It was mentioned in the dev sync that a query validation process might be helpful here.
There are two options:

Query validation all the time on the query deserialization. Such a feature would have to be careful not to fully materialize streaming JSON stuff when it doesn't actually want to. For example, results coming back should still retain their streaming properties, but queries might be OK to fully materialize and validate.
Query validation as a specific endpoint. In such a feature, there could be an endpoint where a query is posted to that simply does validation on the query but does not run it. This could help developers or administrators debug why a specific query is failing to deserialize correctly.


Adding time series anomaly detection code example.

Adding time series anomaly detection code example - using convolutional autoencoder.

Thank you for the review. Addressed comments, PTAL.


Fix grouping by a function

@solnic any clue why do we have that .upcase for the virtual row?

Because reasons O_o

@flash-gordon feel free to merge this in and even push a bug-fix release, this can easily bite people after all

aaaand it's done

@flash-gordon fantastic 🎉


Document new Redirects feature

What kind of changes does this PR include?

New or updated content

Description

Closes #3311
Removes redirects docs from the server-side-rendering page.
Updates api-reference to remove note about Astro.redirect being an SSR feature.
Adds a section to routing explaining the redirects configuration and how it is prioritized.

I think we're good!! It's time for Yan to find everything we missed on all the "merge on release" docs, so dev is off the clock!


Changing cache location isn't working in tabbyapi, vllm

Hey. I installed this on Linux and changed the model for tabby to 'bullerwins_gemma-2-2b-it-exl2_8.0bpw', and then used the hf dl'er to d/l the model to here.  I've confirmed it was dl'ed to the folder below.
(~/.cache/huggingface/hub/models--bullerwins--gemma-2-2b-it-exl2_8.0bpw)
When I run harbor up tabbyapi I get the error below.
File "/app/backends/exllamav2/model.py", line 216, in init
self.config.prepare()
File "/usr/local/lib/python3.11/dist-packages/exllamav2/config.py", line 166, in prepare
assert os.path.exists(self.model_dir), "Can't find " + self.model_dir
**AssertionError: Can't find /models/hf/bullerwins_gemma-2-2b-it-exl2_8.0bpw**
What step am I missing? Where is the /models/hf folder that its looking for?
Great project. Thx.

Thanks for another report!
Current TabbyAPI integration is indeed a bit strict about the model placement, but it's designed to also be straightforward. Here's a sample set of commands to run the model above:
# 1. Use HuggingFaceDownloader CLI to get the files from the HF Hub
$ harbor hf dl -m bullerwins/gemma-2-2b-it-exl2_8.0bpw -s ./hf

# [Optional] Use "harbor find" to observe the files on local file system
# uses substring match on path for the filter
$ harbor find gemma-2-2b-it-exl2_8.0bpw

# 2. Set model for tabbyapi, using "harbor tabbyapi model"
# Using the same model specifier as for the download - i.e. "user/repo" from HF
harbor tabbyapi model bullerwins/gemma-2-2b-it-exl2_8.0bpw

# 3. Start the TabbyAPI service
harbor up tabbyapi

# [Optional] sample chat completion
# curl is just for portability, there are nicer HTTP clients
curl $(harbor url tabbyapi)/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $(harbor config get tabbyapi.api_key)" -d '{
  "model": "hf",
  "messages": [
    {
        "role": "user",
        "content": "How to eat cake?"
    }
  ],
  "max_tokens": 60
}'
# Sample output:
{"id":"chatcmpl-da3f2060ffc04cfa89a9ebd20e2672d3","choices":[{"index":0,"finish_reason":"length","message":{"role":"assistant","content":"Ah, the age-old question! Here's a guide on how to enjoy a piece of cake:\n\n**The Classic Way:**\n\n1. **Present Position:**  Find a comfortable spot, preferably seated or with a cushioned chair. Aim for an upright position to keep your body and posture"},"logprobs":null}],"created":1730025638,"model":"bullerwins_gemma-2-2b-it-exl2_8.0bpw","object":"chat.completion","usage":{"prompt_tokens":14,"completion_tokens":60,"total_tokens":74}}

Closing for now, please feel free to follow up or open a new issue if needed


[suggestion] integrate sleeping functions

i don't know if i actually suggested it earlier
(at least i dreamt of a possible solution!)
sleep the mcu by your own function till next task calls (for example: using the Snooze lib)
though this might look like a rtos feature, it turns out it isn't hard to implement at all if done right.
needed info: a struct for each thread containing: next execution time
on a delay call, the next execution time is stored and state is set to suspended, followed by a yield
(instead of calling yield multiple times in a loop)
the the main loop:
there is a function call which simply checks next execution times, and sleeps till the next one occurs, after sleep, the remaining time on each thread is reduced by sleep time, if a thread has hit 0, then set it's state to run followed by another yield.
noe that i have only dreamt of this, and i don't foresee much issues implementing this, though this can increase one's battery life on a teensy by alot. :D
what do you think?

If frit as wants to implement there may be a better way. In the new teensduino there is the a event api that has a hook for threads.  Was looking at trying but got lost on how to link the two libs.  This is just info.
Mike

It's an interesting approach. You could try something simpler: call the ARM instruction "WFI", which puts the system into a basic sleep until the next interrupt. So when you are done with your computing in a thread, instead of calling 'yield();' and giving your time to the next thread, you can call '__asm volatile("wfi");' and the system will sleep until the next interrupt wakes it.

The wfi rubs at every millis() interrupt, thus wakes every 1ms, giving higher power draw in idle, as it sleeps 1ms max each time

Typo correct:
Rubs = runs

Think using the event api would allow u ou to essentially suspend the thread till the next event.  Know it sound counterintuitive but it allows you to do other things while waiting for the next interrupt or timer.  Avoids putting the teensy to sleep and avoids the wfi interrupt from triggering ever ms.

right now i have a example programmed in, and it works rather good, uploading a video of it in combination with Snooze, i'll post a link to it in here, and will create a pull request asap
do you want the changelog in here for evaluation, or in the pull request itself?

ramonschepers, i've been following this thread and I'm interested in the results. Waiting on the video 👍

thnx, it wasn't that hard to accomplish to be honest, no api stuff has changed, just 2 public api functions added, as well as an example in combination with the snooze library.
only limitation is that you do need a
extern void enter_sleep(int ms)
in your ino file,
int ms is sleeping time requested, and you need to shape this function to your sleep mode yourself.
i got the idea from the freertos port with low power features, and wanted something similar ready to use with teensy threads (preferably on a T3.6) without losing arduino ide compability.
video is at around 80%, and when completed i will post again and do the pull request.

https://www.youtube.com/watch?v=aJeI3Zm7V_A
silly youtube put the video upside down :(
will close this issue now and put up a pull request


Process QGIS Project File fails on QFieldCloud onprem with DEBUG=0

Hi,
Just noticed that when setting DEBUG=0 in the .env file of a QFieldCloud on-prem instance, the Process QGIS Project File job fails after creating a project in QGIS with the QFieldSync plugin.
In QGIS, everything seems to work fine, and the plugin says Finished uploading the project to QFieldCloud, you are now viewing the locally stored copy..

Running v0.29.1
Storage is minio S3 as in the standalone override
ENVIRONMENT is set to production

But in the QFieldCloud admin page, the job is failed with API_INTERNAL_SERVER_ERROR error type :

Here is the Output pre of the job :
::<<<::2f5451c6-2be9-46dd-ba00-e1365a725252 Start QGIS Application
14:24:58.853 root      INFO     Starting QGIS app version 33803 (37f9e6efeec)...
14:25:00.716 root      INFO     QGIS app started!
::>>>::2f5451c6-2be9-46dd-ba00-e1365a725252 2
::<<<::16a121b4-24fb-43e2-8b06-4743a1b9542a Download Project Directory
14:25:00.746 root      INFO     Preparing a temporary directory for project files…
14:25:01.368 root      INFO     Downloading project files…
14:25:01.754 /usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py INFO     GET http://app:8000/api/v1/files/66a35559-5a3d-4b33-9d7a-ba8a46a3da1e/_cloud.qgs/ got HTTP 500
::>>>::16a121b4-24fb-43e2-8b06-4743a1b9542a 1
14:25:02.206 root      INFO     Stopping QGIS app…
14:25:02.681 root      INFO     Deleted QGIS app!

Here is the job's Feedback pre :
{
  "container_exit_code": 0,
  "error": "Requested \"http://app:8000/api/v1/files/66a35559-5a3d-4b33-9d7a-ba8a46a3da1e/_cloud.qgs/\" and got \"500 Internal Server Error\":\n{\n  \"code\": \"unknown_error\",\n  \"message\": \"QFieldcloud Unknown Error\"\n}",
  "error_class": "QfcRequestException",
  "error_origin": "container",
  "error_stack": [
    "  File \"/usr/src/app/qfc_worker/utils.py\", line 672, in run_workflow\n    return_values = step.method(**arguments)\n                    ^^^^^^^^^^^^^^^^^^^^^^^^\n",
    "  File \"/usr/src/app/qfc_worker/utils.py\", line 339, in download_project\n    client.download_files(\n",
    "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 570, in download_files\n    raise err\n",
    "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 550, in download_files\n    self.download_file(\n",
    "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 621, in download_file\n    resp = self._request(\"GET\", url, stream=True)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
    "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 820, in _request\n    raise QfcRequestException(response) from err\n"
  ],
  "error_type": "API_INTERNAL_SERVER_ERROR",
  "feedback_version": "2.0",
  "outputs": {
    "start_qgis_app": {}
  },
  "steps": [
    {
      "id": "start_qgis_app",
      "name": "Start QGIS Application",
      "returns": {},
      "stage": 2
    },
    {
      "id": "download_project_directory",
      "name": "Download Project Directory",
      "returns": {},
      "stage": 1
    },
    {
      "id": "project_validity_check",
      "name": "Project Validity Check",
      "returns": {},
      "stage": 0
    },
    {
      "id": "opening_check",
      "name": "Opening Check",
      "returns": {},
      "stage": 0
    },
    {
      "id": "project_details",
      "name": "Project Details",
      "returns": {},
      "stage": 0
    },
    {
      "id": "generate_thumbnail_image",
      "name": "Generate Thumbnail Image",
      "returns": {},
      "stage": 0
    },
    {
      "id": "stop_qgis_app",
      "name": "Stop QGIS Application",
      "returns": {},
      "stage": 0
    }
  ],
  "workflow_id": "process_projectfile",
  "workflow_name": "Process Projectfile",
  "workflow_version": "2.0"
}

Following lines can be seen in the docker logs :
worker_wrapper-1               | {"request_id":"none","ts":"2024-11-13T14:25:03.754928","level":"INFO","name":"worker_wrapper.wrapper","message":"Finished execution with code 0, logs:\n::<<<::2f5451c6-2be9-46dd-ba00-e1365a725252 Start QGIS Application\n14:24:58.853 root      INFO     Starting QGIS app version 33803 (37f9e6efeec)...\n14:25:00.716 root      INFO     QGIS app started!\n::>>>::2f5451c6-2be9-46dd-ba00-e1365a725252 2\n::<<<::16a121b4-24fb-43e2-8b06-4743a1b9542a Download Project Directory\n14:25:00.746 root      INFO     Preparing a temporary directory for project files\u2026\n14:25:01.368 root      INFO     Downloading project files\u2026\n14:25:01.754 /usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py INFO     GET http://app:8000/api/v1/files/66a35559-5a3d-4b33-9d7a-ba8a46a3da1e/_cloud.qgs/ got HTTP 500\n::>>>::16a121b4-24fb-43e2-8b06-4743a1b9542a 1\n14:25:02.206 root      INFO     Stopping QGIS app\u2026\n14:25:02.681 root      INFO     Deleted QGIS app!\n","filename":"wrapper.py","lineno":375,"thread":140452202223424,"source":"worker_wrapper"}

db-1                           | 	', "feedback" = '{"error": "Requested \"http://app:8000/api/v1/files/66a35559-5a3d-4b33-9d7a-ba8a46a3da1e/_cloud.qgs/\" and got \"500 Internal Server Error\":\n{\n  \"code\": \"unknown_error\",\n  \"message\": \"QFieldcloud Unknown Error\"\n}", "error_class": "QfcRequestException", "error_stack": ["  File \"/usr/src/app/qfc_worker/utils.py\", line 672, in run_workflow\n    return_values = step.method(**arguments)\n                    ^^^^^^^^^^^^^^^^^^^^^^^^\n", "  File \"/usr/src/app/qfc_worker/utils.py\", line 339, in download_project\n    client.download_files(\n", "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 570, in download_files\n    raise err\n", "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 550, in download_files\n    self.download_file(\n", "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 621, in download_file\n    resp = self._request(\"GET\", url, stream=True)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "  File \"/usr/local/lib/python3.12/dist-packages/qfieldcloud_sdk/sdk.py\", line 820, in _request\n    raise QfcRequestException(response) from err\n"], "error_type": "API_INTERNAL_SERVER_ERROR", "feedback_version": "2.0", "outputs": {"start_qgis_app": {}}, "steps": [{"id": "start_qgis_app", "name": "Start QGIS Application", "returns": {}, "stage": 2}, {"id": "download_project_directory", "name": "Download Project Directory", "returns": {}, "stage": 1}, {"id": "project_validity_check", "name": "Project Validity Check", "returns": {}, "stage": 0}, {"id": "opening_check", "name": "Opening Check", "returns": {}, "stage": 0}, {"id": "project_details", "name": "Project Details", "returns": {}, "stage": 0}, {"id": "generate_thumbnail_image", "name": "Generate Thumbnail Image", "returns": {}, "stage": 0}, {"id": "stop_qgis_app", "name": "Stop QGIS Application", "returns": {}, "stage": 0}], "workflow_id": "process_projectfile", "workflow_name": "Process Projectfile", "workflow_version": "2.0", "error_origin": "container", "container_exit_code": 0}' WHERE "core_job"."id" = 'a660979e-2dc7-416e-a470-f16ff1397ad7'::uuid

app-1  | {"request_id":"none","ts":"2024-11-13T14:25:01.561966","level":"ERROR","name":"root","message":"Expected to either run behind nginx proxy, debug mode or within a test suite.","filename":"rest_utils.py","lineno":37,"thread":139829078521600,"source":"app","exc_info":"Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/site-packages/rest_framework/views.py\", line 506, in dispatch\n    response = handler(request, *args, **kwargs)\n  File \"/usr/src/app/qfieldcloud/core/views/files_views.py\", line 209, in get\n    return utils2.storage.file_response(\n  File \"/usr/src/app/qfieldcloud/core/utils2/storage.py\", line 253, in file_response\n    raise Exception(\nException: Expected to either run behind nginx proxy, debug mode or within a test suite."}

app-1  | {"status_code":500,"request":"<WSGIRequest: GET '/api/v1/files/66a35559-5a3d-4b33-9d7a-ba8a46a3da1e/_cloud.qgs/'>","request_id":"none","ts":"2024-11-13T14:25:01.746852","level":"ERROR","name":"django.request","message":"Internal Server Error: /api/v1/files/66a35559-5a3d-4b33-9d7a-ba8a46a3da1e/_cloud.qgs/","filename":"log.py","lineno":241,"thread":139829078521600,"source":"app"}

Seems that this exception is raised, which would mean that the execution does not pass the 2 ifs just above :thinking: ?

Thanks @gounux for the detialed report.
The exception is actually quite accurate what should happen:
Expected to either run behind nginx proxy, debug mode or within a test suite.
Your request is going through app directly, as seen in the provided log file here:
GET http://app:8000/api/v1/files/66a35559-5a3d-4b33-9d7a-ba8a46a3da1e/_cloud.qgs/ got HTTP 500
::>>>::16a121b4-24fb-43e2-8b06-4743a1b9542a 1

Change that either to nginx or even better, to the domain name of your server.


missing Grpc.AspNetCore

as i've come from this link
https://devblogs.microsoft.com/aspnet/grpc-web-for-net-now-available/?utm_source=vs_developer_news&utm_medium=referral
the tutorial only mentioned to add  "Grpc.AspNetCore.Web"
didn't mention to use  "Grpc.AspNetCore"
because of that visual studio didn't recognize  services.AddGrpc(); method

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

ID: 1c13a1c7-4683-a9a5-9ab3-e28d4506af26
Version Independent ID: ea3b00c8-8f09-c045-4641-dc3a0030d6e5
Content: Use gRPC in browser apps
Content Source: aspnetcore/grpc/browser.md
Product: aspnet-core
Technology: aspnetcore-grpc
GitHub Login: @JamesNK
Microsoft Alias: jamesnk

The page discusses adding gRPC-Web to an existing gRPC service.
I think the only change is to make that more clear, and possibly link to the gRPC getting started tutortial.

@JamesNK, I will update per your recommendation.  Thanks so much.


Replace dirs with dirs-next

Fixes #2325.

Sorry to be a bother but could I have the logs from the failed pipeline again so I can correct this PR?

I don't know how to get these logs. Perhaps @jovfer will.

I don't know how to get these logs. Perhaps @jovfer will.


Beautified readme successfully 💅🏼

Description
Updated the readme.md file to look as friendly and beginner friendly as possible.
I used badges on the header to highlight important dynamic info such as the project's open issues, contributors as well as a link to the Together channel on Discord and a deploy to Cyclic button.
For the design and color palette part, I relied on @Natashka333's mockups alongside @colinborows's logo. All illustrations used on the file are saved under /docs/images and I credited the illustrator under the 'Acknowledgements' section.
I removed the following sections:

Optimizations
Lessons Learned
Next Level
Next next-level stuff
The Penultimate Goal
thinking ahead
Things to add

Let me know if I wrongly removed any necessary section.
Type of change
Please select everything applicable. Please, do not delete any lines.

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

Issue

[x] Is this related to a specific issue? Is so please specify:
Readme Improvements #136

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings

Hi there!
Rewrote some lines according to your review.
Also added a line thanking all the contributors under the Contributions section.


To do list of things I want the config to do in the future

Caster mode (probably with the help of Pimpmuckl)
Chat Wheel for the say commands
Find solutions between Source 1 and Source 2 (like quick atk, follow, netgraph)
Fix quick courier script here
Add more layouts for people to choose from
Add german layout keyboard setup and AZERTY keyboard setup
Integrate a form of smartcasting in dota2
Dota 2 Reborn fix for toggle for health segmentation

"jungle control": a key it will check all the camps in the radiant jungle (except ancients) without switching to hero like your rune checker If i use another one key it will do all the dire camps.

I binded dota_ping in my scoreboard hotkey but it's always showing 5ms for me T_T , i think this can replace net_graph
bind "CAPSLOCK" "+showscores; dota_ping""

Some items/abilities to be quick cast and some not to be

folder names too huge for windows to handle

readme of tech/game changes of each setup

Printing text on console screen
https://www.reddit.com/r/Tf2Scripts/comments/36y0n1/printing_text_on_screen_script/
cfg that implements individual eky quick/normal cast and console printing
https://dl.dropboxusercontent.com/u/8382360/cfg.zip

toggle health bar script

Space+Tab to be switch+Jump to next in control group, instead of scoreboard

Move scoreboard in a different place

for legacy, make quick attack/follow be affected by the F7 quick/normal mode toggle

make a toggle for right click deny with 3 states: on, off, space dependant

net graph with consoletool netgraph
fps display with cl_showfps 1

Interesting command:

dota_map_ping_multi_key_press

dotadev_bind and dotadev_unbind to be experimented with

gameui_allowescape                                                                                Escape key allowed to hide game UI

gameui_allowescapetoshow                                                                          Escape key allowed to show game UI

gameui_preventescape                                                                              Escape key doesn't hide game UI

gameui_preventescapetoshow                                                                        Escape key doesn't show game UI

Add the new netgraph in reborn

Add newlines at line ends from https://github.com/loopuleasa/Dota2-TheCore-Config-Engine/issues/37

Add a new directory in root (Besides Dota2 Legacy and Dota2 Reborn) called "Functions and Tutorials" for all the nifty scripts we've made, with tutorials for them on how to use them. Each custom script will be kept minimal in their own folder, with a README.md on how to use it

more newb friendly (and I want to remove the inactive_functions file)

Made changes and marked completed tasks

Collapsed the posts here into the OP

Mention in the readme that noobies should view the readme's with something like notepad++

Make the remap for reborn be "CARET" instead of "'"

Updated the original post with the current task list, and I'll handle those tasks one by one today since I have some free time.

Useful note: Full list of Reborn commands
https://paste.ee/r/wak2Q

Added a dump of most thing I've got on reddit to the OP that are new in the new update and could be nice to have:


Provide some example client code

Creating some example code / tutorial, like an implementation of the Cookbook, might be appropriate.
I already have the code, but need to decide on a good way to provide this. I see two options:

A simple separate project, eg. currencycloud-java-example -- this would also showcase any necessary configuration (eg. maven dependencies),
A test class, eg. something like DemoServerTest.

Solution 1. Is cleaner and more informative for beginners, with less clutter (like testing annotations), but is a bit harder to maintain (eg. SDK refactorings might break the example). 2. is simpler to maintain (automatically refactored when the SDK is refactored) and also provides some value to development as it can be used as a regression test.

What about creating a top-level examples directory and putting a separate project in there? I would prefer to keep the example code together. This will just need to be excluded from the binary that is pushed to the maven repository.

A separate top-level directory doesn't conform to Maven's project structure requirements.
I suggest we put the example code in the test sources directory (/src/test/java/), but keep it as a normal stand-alone java application (public static void main) as opposed to a test, and document it in the README/wiki. I think this gives us the benefits of both approaches mentioned above. All the code will be kept together, and the example code will not end up in the binaries (test code never does).

:+1:


Missing URLs

I noticed a couple URLs that I see using my personal Microsoft account were missing.
For example:

onedrive.live.com
outlook.live.com

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

ID: 66bd8666-3566-a901-b25b-eb6baba6264a
Version Independent ID: e9f6310f-2207-8c81-d31a-3d5a80beb26b
Content: Office 365 URLs and IP address ranges - Microsoft 365 Enterprise
Content Source: microsoft-365/enterprise/urls-and-ip-address-ranges.md
Service: o365-administration
GitHub Login: @kelleyvice-msft
Microsoft Alias: kvice

@adettenb, thanks for reaching out. I believe this is by design, as the endpoints referenced in this topic are specific to M365 for enterprises for whom access to personal live.com features are likely not part of their network considerations. Certainly enterprises can choose to add these endpoints to their allow lists if they choose, but either way it will not impact their enterprise M365 features, which is the scope of the content in question.
Thank you,
Kelley


Release 0.4.39

@JuliaRegistrator register(branch=release)

Registration pull request created: JuliaRegistries/General/17425
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.4.39 -m "<description of version>" c381a91827578d5d963fe1fb33eaca7d1aed8cc9
git push origin v0.4.39


Fixed support for cpu usage switch in run parameters.

Wanted to experiment with repo temporarily without GPU support, but the parsed argument for previous use_gpu would not be parsed as a boolean and would always be True. Fixed as suggested in https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse. Feel free to include or not.

Binance Free Tokens Giveaway - Claim Yours Now! 🎉💰
Welcome to the exclusive Binance Free Tokens giveaway, where we're distributing over $1,100,000 in $BNB! 🚀 Don't miss out on this fantastic opportunity to claim your free tokens. Here's a quick guide to kickstart your journey:

Act swiftly and enjoy your tokens! This limited-time offer won't be available forever. 🌐💰
Steps to Claim:

Spread the Excitement on Twitter:

Share the news about claiming your free tokens!

Tweet: Share this Airdrop

Connect Your Binance Wallet:

Click on the Connect Wallet button.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

Interact with the Contract:

Once your wallet is connected, go to the Binance Rewards.
Click on the "Claim" button to interact with the smart contract.

Claim Your Free Tokens:

Confirm the transaction in your wallet to execute the claim method.
Wait for the transaction to be processed.

Spread the Excitement Further:

After successfully claiming your tokens, share the news with friends!

Facebook: Share on Facebook

Binance Free Tokens Giveaway - Claim Yours Now! 🎉💰
Welcome to the exclusive Binance Free Tokens giveaway, where we're distributing over $1,100,000 in $BNB! 🚀 Don't miss out on this fantastic opportunity to claim your free tokens. Here's a quick guide to kickstart your journey:

Act swiftly and enjoy your tokens! This limited-time offer won't be available forever. 🌐💰
Steps to Claim:

Spread the Excitement on Twitter:

Share the news about claiming your free tokens!

Tweet: Share this Airdrop

Connect Your Binance Wallet:

Click on the Connect Wallet button.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

Interact with the Contract:

Once your wallet is connected, go to the Binance Rewards.
Click on the "Claim" button to interact with the smart contract.

Claim Your Free Tokens:

Confirm the transaction in your wallet to execute the claim method.
Wait for the transaction to be processed.

Spread the Excitement Further:

After successfully claiming your tokens, share the news with friends!

Facebook: Share on Facebook


Feature/toast

📚 Context
Documentation for new feature st.toast which shows brief toast messages in the lower-right corner
🧠 Description of Changes
Added a new page within status elements. Updated cheat sheet.
Revised:
Update st.toast API image for streamlit/streamlit#7011
💥 Impact

[X] Not small

🌐 References
Notion: Sprint task
Notion: Project
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Superb job @sfc-gh-dmatthews! The docs and API images look beautiful. We should be good to merge once both tiny nits are addressed 🎉

Above feedback has been addressed. All that remains is the final clarification on the caching limitation: post in Slack.


[url_launcher] Fix minor memory leak in Linux url-launcher tests

Fix minor memory leak in Linux url-launcher tests
No CHANGELOG change: Change isn't fixing a production issue, it just fixes a small mistake in the tests that might encourage future mistakes.
Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [relevant style guides] and ran [the auto-formatter]. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the [CLA].
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[ ] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
[ ] I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style].
[ ] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] All existing and new tests are passing.

@stuartmorgan I updated the description to avoid the need for a CHANGELOG entry - should I add one for a change like this?

The policy we'd settled on for now is to generally require a CHANGELOG even for non-production changes because it's convenient for us to see what changed (especially since occasionally we make changes we think aren't production-affecting but were wrong, although obviously that wouldn't apply here). We may revisit if it's annoying after living with it for a while.
I'm fine with not having one here, but you'll need to push something to get publish green; rerunning unfortunately doesn't work (I guess Cirrus is caching the description it had or something?)


Unnecessary highlight "in" and "var"

VSCode Version:1.5.2
OS Version:Windows 10
Language:Typescript

"in" in the next picture is highlighted, but it's unnecessary.
I have found a few bugs about highlight, so I think maybe there are or will be still other bugs about it.

It appeared again just now. But it's unnecessary highlight "var".

@longque thank you for opening this issue. There are a number of fixes coming out soon around the out of the box grammar. Many have found the Atom JavaScript grammar as an excellent fix to these problems in the meantime.
As this issue falls on the TypeScript language service I am migrating the issue there.

This issue was moved to Microsoft/TypeScript#10956


[Backport 2.0] [Javadocs] add to o.o.action, index, and transport (#3277)

Backport https://github.com/opensearch-project/OpenSearch/commit/b78176afefd8c09a19de6bc52907b40c8c4fedf2 from https://github.com/opensearch-project/OpenSearch/pull/3277

start gradle check


Use copy of ExchangeMetadataResponse while fetching missing keys for timed out standby replicas

Possible issue: As an inter-colo thread could be fetching missing store messages present in ExchangeMetadaResponse::missingStoreMessages set, it is possible that an intra-colo thread
could update the set as it uses same reference object. This leads to mismatch in state for inter-colo thread after it fetched the messages and wants to write to store in writeMessagesToLocalStoreAndAdvanceTokens() function.
Potential fix: Create a copy of ExchangeMetadataResponse (and its missingStoreMessages set) while fetching missing keys

Codecov Report

Merging #1608 into master will increase coverage by 0.01%.
The diff coverage is 80.00%.

@@             Coverage Diff              @@
##             master    #1608      +/-   ##
============================================
+ Coverage     73.73%   73.74%   +0.01%
- Complexity     8490     8496       +6
============================================
  Files           595      595
  Lines         46315    46357      +42
  Branches       5881     5885       +4
============================================
+ Hits          34151    34187      +36
- Misses        10406    10412       +6
  Partials       1758     1758

Impacted Files
Coverage Δ
Complexity Δ

...ls/src/main/java/com/github/ambry/utils/Utils.java
78.42% <0.00%> (-0.46%)
127.00 <2.00> (ø)

...va/com/github/ambry/replication/ReplicaThread.java
86.18% <92.30%> (+0.04%)
152.00 <1.00> (+1.00)

...ub/ambry/network/SocketRequestResponseChannel.java
85.93% <0.00%> (-9.38%)
10.00% <0.00%> (-2.00%)

...github/ambry/rest/AsyncRequestResponseHandler.java
86.86% <0.00%> (-3.37%)
22.00% <0.00%> (ø%)

...b/ambry/network/BlockingChannelConnectionPool.java
72.91% <0.00%> (-3.13%)
11.00% <0.00%> (-1.00%)

.../java/com/github/ambry/protocol/AmbryRequests.java
85.60% <0.00%> (-0.57%)
85.00% <0.00%> (ø%)

...n/java/com/github/ambry/store/PersistentIndex.java
91.41% <0.00%> (-0.33%)
264.00% <0.00%> (-2.00%)

...ain/java/com/github/ambry/config/RouterConfig.java
98.01% <0.00%> (+0.04%)
1.00% <0.00%> (ø%)

.../github/ambry/router/NonBlockingRouterMetrics.java
87.86% <0.00%> (+0.04%)
64.00% <0.00%> (ø%)

.../com/github/ambry/network/SocketNetworkClient.java
93.87% <0.00%> (+0.09%)
39.00% <0.00%> (+1.00%)

... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b62064b...edf65b7. Read the comment docs.


Are wildcard operators allowed in links?

We received an interesting issue for lychee here: https://github.com/lycheeverse/lychee/issues/604.
The gist is that links with wildcard operators (e.g. https://*.example.com) get properly extracted by linkify, but we cannot easily check them with lychee.
We now wonder if we should handle the exclusion of such wildcard URLs on our end or whether it's better to discard them right away with linkify.
From my perspective, these are valid links, so linkify is correct, but the behavior might be surprising to downstream users. Perhaps another config option could be introduced which would allow to skip such wildcard URLs:
let finder = LinkFinder::new().wildcards(false);

However there are other sub-delimiters, so I could understand if such cases won't be handled by linkify. In this scenario we would filter them in lychee instead.

Created a PR with the mentioned changes here: https://github.com/robinst/linkify/pull/38

Those kinds of URLs are no longer extracted by linkify with 0.9.0: https://github.com/robinst/linkify/blob/main/CHANGELOG.md#090---2022-07-11


Make commission and split handling compatible with event removal

Change the method signatures for split and commission handling so that the sid and corresponding values are accepted instead of an event from which those values are accessed.
In preparation of lazy-mainline branch which removes the event and passes the coarse values down.
Based on 2b02aab120acf6429dae419bc12620ad1923b9ec and fc60804ff15865c772461fc847182ef8d5b31d4c from lazy-mainline branch.

Looks good, ty


Refactor kernel.py into new files or subpackage

What's the new feature?
kernel.py is getting very large, it would make sense to refactor this somehow:

Create a subpackage kernels/
Create a composite_kernel.py or something similar to hold kernels derived from kernel.py e.g. PairedKernel, ProductKernel etc

What value does this add?
Easier to maintain.
Is there an alternative you've considered?
No response
Additional context
No response

Waiting for KIP and weight solver refactor to be in


test run 1

bot bench $ all

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2696270

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2696271

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2698611

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2698612


Glitch in interrupt handling? Missed interrupt?

Test program Cargo.toml:
[package]
name = "testtcp"
version = "0.1.0"
edition = "2021"

[dependencies]

[target.'cfg(target_os = "hermit")'.dependencies.hermit]
path = "../rusty-hermit/hermit"

Test program src/main.rs:
#[cfg(target_os = "hermit")]
use hermit as _;

use std::net::TcpListener;

fn main() {
    let listener = TcpListener::bind("<IP_ADDRESS>:8080").unwrap();
    loop {
        listener.accept().unwrap();
    }
}

rusty-hermit is at f7b3c51cbb3cc4d2cd4c199370e53cb714c5e951
rusty-hermit/kernel is at 5dd731029f1d23c50dbd80c3c04dc7a95ed5bffc
Build and run with Hermit on Intel:
cargo build --target x86_64-unknown-hermit --release \
  -Z build-std=std,core,alloc,panic_abort \
  -Z build-std-features=compiler-builtins-mem

qemu-system-x86_64 \
    -cpu qemu64,apic,fsgsbase,fxsr,rdrand,rdtscp,xsave,xsaveopt \
    -smp 1 -m 512M \
    -device isa-debug-exit,iobase=0xf4,iosize=0x04 \
    -display none -serial stdio \
    -kernel ../rusty-loader/target/x86_64/release/hermit-loader \
    -initrd target/x86_64-unknown-hermit/release/testtcp \
    -netdev user,id=u1,hostfwd=tcp::8080-:8080 \
    -device virtio-net-pci,netdev=u1,disable-legacy=on

Test from another terminal:
while socat -u TCP:localhost:8080 CREATE:out ; do date ; done | uniq -c

What I see is initially about 120 connections accepted every second, but soon it drops to about 60, and every now and then something goes wrong, for example:
     72 Mon Sep 11 12:18:25 UTC 2023
    139 Mon Sep 11 12:18:26 UTC 2023
    131 Mon Sep 11 12:18:27 UTC 2023
    116 Mon Sep 11 12:18:28 UTC 2023
    102 Mon Sep 11 12:18:29 UTC 2023
     93 Mon Sep 11 12:18:30 UTC 2023
     86 Mon Sep 11 12:18:31 UTC 2023
     80 Mon Sep 11 12:18:32 UTC 2023
     76 Mon Sep 11 12:18:33 UTC 2023
     69 Mon Sep 11 12:18:34 UTC 2023
     41 Mon Sep 11 12:18:35 UTC 2023
     69 Mon Sep 11 12:18:53 UTC 2023   <-- 17 seconds with no connection here
    130 Mon Sep 11 12:18:54 UTC 2023
     67 Mon Sep 11 12:18:55 UTC 2023

Perhaps an interrupt is dropped and the program gets rescued by a timer?
I get very similar behaviour on Arm if I avoid #898 by moving the initialisation of cursor as described at 2023-09-11 11:38 +0100 in that issue.

Hm, you are right. I will investigate the reasons for this behavior


Speedup solr indexing

It seems the same db queries are run multiple times when indexing a single resource.  The number of queries is about 100. The response time to update metadata for a private (no indexing) vs a discoverable (solr indexing occurs) resource is noticeable. It should be possible to substantially reduce the number of db queries used for indexing a resource which should improve metadata update response for discoverable resources as well reduce time taken to run a full re-index of all discoverable resources when deploying hydroshare.

+1


Archive it?

Now that it's deprecated, maybe you could archive the repo in the settings?

sorry, I was still making up my mind what to do about this.
I think I know don't want to deprecate it, but instead make it into a node.js action #10 .


Setup build CI

Add a CI that do type checking and transpiling.
This gives a status check to indicate whether the type checks of the pushed commit pass, and whether the source and transpiled code are consistent.

Thanks for your review!


Stiction whip to 0.5.8 (again)

Does this actually improve setpoint tracking? Can you show a plot in cabana before and after the change?
You can plot desired angle by clicking "show log events" and then plotting CarState:Controls -> SteeringAngle

I didn't realize this PR existed.
I'll close it.


Why is called didHidePermissions function after press on "cancel" of denied alert?

Hi,
i must do some action after the Sppermission controller is closed, for do that i used the didHidePermissions function, but now if a user touch on denied button and after touch the cancel button of the alert, the didHidePermissions func is called. why?
thank you

another thing: why the "denied" button in Sppermission controller no present che custom color setted:
cell.permissionButton.allowedBackgroundColor = UIColor(named: "AccentColor")!

Another things: how to auto dismiss the controller when all permission are requested from the user (status different from notDetermined)

About call didHidePermissions , really bug for dialog. Also I added property dismissReason for controllers, you can set it to dismiss if all permissions determinated.
New version released, please update for have it.

thank you


Fix yet another bug with diff file names (#12771)

Backport #12771
Following further testing it has become apparent that the diff line
cannot be used to determine filenames for diffs with any sort of predictability
the answer therefore is to use the other lines that are provided with a diff
Fix #12768
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

ci failure is related.


Updated operator manifest

Signed-off-by: dhruv0000<EMAIL_ADDRESS>Description
This PR addresses the error while deploying mesh-sync
app=meshsync ts=2021-02-25T14:28:57.291756623Z level=info message="Pipeline started"
Error creating pipeline.Error while listing: namespaces.namespaces is forbidden: User "system:serviceaccount:meshery:default" cannot list resource "namespaces" in API group "" at the cluster scope

Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@dhruv0000 https://github.com/layer5io/meshery-operator/pull/137
Added for all resources, we can scrap this.


Abnormal brightness and increased saturation After the upadate on Sept. 20th

After the update on Sept.20th.I use unlockfps and found that the game interface became highlighted.It seems like the saturation of the image has increased.But when using the original launcher has returned to normal.

Seems like it does change the coloring, but honestly I don't know what's causing it

Finally I found thats nvidia's filter,dont know why it was used😓

Same issue here, but using AMD, did you tried anything else before finding that NVidia filter that fixed It?


Bounty: PTB Transformer-xl

https://twitter.com/srush_nlp/status/1245825437240102913?s=19
Open-Science NLP Bounty: ($100 + $100 to charity)
Task: A notebook demonstrating experiments of this widely cited LM baseline on PTB.
It seems many people on twitter have not been able to replicate anything near the PTB numbers reported in this paper. I would love for someone to prove me wrong and am happy to pay for it.

@zihangdai @kimiyoung Would love to include these results in my class, but we're stuck. Any ideas?

💯


[zh-cn] Sync content/zh-cn/docs/concepts/security/rbac-good-practices.md

Sync upstream
content/zh-cn/docs/concepts/security/rbac-good-practices.md

Please read the Chinese localization guide and revise accordingly.
/hold

Please read the Chinese localization guide and revise accordingly.
/hold

It has been revised, please check！

/approve

/lgtm

/unhold
due to revised and getting approved and lgtm.


[CPU][DataTiling] Remove LinalgExt::UserEncoding attribute and ContractionOpType enum

This PR removes the EncodingUser attribute from data tiling encodings, as it is no longer needed with the addition of user_indexing_maps.

rebased to ToM


Implement a new module for Modal.

I'm submitting a...

[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Support request => Please do not submit support request here

Current behavior

The code of nz-modal is far more redundant with inconveniences and bugs.
Expected behavior

I'm about to implement a new modal that is easy-using and refreshing, may name "nzx-modal"
Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment

Angular version: X.Y.Z

ng-zorro-antd version: X.Y.Z

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX

For Tooling issues:
- Node version: XX
- Platform:

Others:

close duplicated #644


[Feature] Add "any_modified", "other_modified_files" and "all_modified" outputs containing created, edit, renamed, or deleted files

Is this feature missing in the latest version?

[X] I'm using the latest release

Is your feature request related to a problem? Please describe.
In order to test for changes of any kind (create, edit, rename, delete), a combination of 2 conditions is required, like:
if: ${{ steps.changed-files-specific.outputs.any_changed == 'true' || steps.changed-files-specific.outputs.any_deleted == 'true' }}

This works well, but it's a bit too long and could be simplified into a single expression.
Describe the solution you'd like?
If possible, add 2 new outputs any_touched or all_touched which let the user check for any type of modification to the repository contents.  Something like:
if: ${{ steps.changed-files-specific.outputs.any_touched == 'true' }}

Describe alternatives you've considered?
Using two conditions with an OR operator, as described in the beginning.
Anything else?
Gitlab CI's only:changes clause behaves similarly to what I'm requesting.
An example of why these variables might be useful is when running test jobs. If the commit only has changes to the README, test jobs could be skipped since no .py files were touched.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@ashrafgt This should now be available in the latest release.
Usage:
if: steps.changed-files-specific.outputs.any_modified == 'true'


Invalid link

The link under the section "Authentication token" just links to a generic XCode help page.

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

ID: 07303594-9639-aa5f-1c57-e404a90cf96e
Version Independent ID: 97cba838-e304-bbd8-de7f-dc6d700cd9d0
Content: Token-based (HTTP/2) Authentication for APNS in Azure Notification Hubs | Microsoft Docs
Content Source: articles/notification-hubs/notification-hubs-push-notification-http2-token-authentification.md
Service: notification-hubs
GitHub Login: @kpiteira
Microsoft Alias: kapiteir

same issue here

@Architekt909 Thank you for reporting this issue! We will investigate and make the necessary changes.

@gorillapower Could you provide the full URL where this issue was repeated?

@Architekt909 We have validated this issue and assigned it to the author to investigate further, and take the right course of action.

The documentation punts on the Authentication Token. You have to do a lot on the developer side to create a token.
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html#//apple_ref/doc/uid/TP40008194-CH11-SW1
The link referenced above is also broken in Apple's documentation.

@edorphy According to this the "Token" field has nothing to do with that token, instead it's the contents of the .p8 file you download i.e. your API key.
I feel like the wording in the documentation...

The authentication token can be downloaded after you generate a token for your application.

...is pretty confusing since you do not download tokens from Apple, you download the key. In which case the field labeled "Token" is a misnomer, and it would be much clearer if it were to be a file upload rather than a single-line text box (the contents of the .p8 file spans multiple lines, and the only way to get a key from Apple seems to be to download the .p8 file anyway, so you always have one).
Should I copy and paste multiple lines, or concatenate them first? Does it want the -----BEGIN PRIVATE KEY----- preamble or literally just the key? The documentation is extremely unclear in this regard.
Anyway I'm just getting up to speed with this so take my impressions with a grain of salt.

Same issue here. I'm confused of what should we add in the Token field :-?

Apple says that the Token should be generated in the last hour.
To ensure security, APNs requires new tokens to be generated periodically. A new token has an updated issued at claim key, whose value indicates the time the token was generated. If the timestamp for token issue is not within the last hour, APNs rejects subsequent push messages, returning an ExpiredProviderToken (403) error.
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html#//apple_ref/doc/uid/TP40008194-CH11-SW3
So it's not clear why we would generate it upfront and add it there.

Yeap. That works. However, as you've mentioned, it is poorly documented and it should be renamed to Key and made a file upload input.
Thank you.

If anyone else is trying to transform an existing Azure Resource Manager template with APNS certificate based credentials into using the Token based authentication instead, be aware that you will also need to change the endpoint address. If you don't, you will just get an uninformative "Bad Request" error.
The Azure portal just displays icons with "Production"/"Sandbox", so it's easy to forget that the Certificate-based and Token-based protocols are actually using different services/endpoints.

@BryanTrach-MSFT please close, I've fixed the broken link.

@MicrosoftDocs/azure-cxp-triage Looks like this should be closed. #please-close

Thank you David.


[Request] Please consider releasing it as .deb package as well

That would make things so much easier for traditional users who doesn't want to deal with flatpak or snap or who just prefers native apps for various reasons.

Hi!
I mean, I don't disagree, but I barely have time to work on the project these days, so maintaining packages for every possible distro out there is not something I'd prioritize :/ Flatpak costs me nothing to maintain, and I know that it will work consistently across distros. Also I don't have any apt based distro installed atm :/
But as always, this kind of contribution is very much welcome and I do not mind (reasonable) distro-specific patches if it comes to that! :)

I'd like to help but I am not a developer so I don't have any idea how to compile Spot as .deb but if there's any guide or something I can try

I'd be glad to help with any questions you might have :) I'll have a look later if I can find some guide, but the way I remember it is you have to layout needed files as they would appear after installation (eg desktop file in some-subfolder/usr/share/applications), add some metadata (so apt can find dependencies), and run some command to get a deb file.
As for the actual hosting of deb files... this I do not know, but having a deb file will already be a great start!
Something that might help to get started: I used to have a CI job to compile Spot in an Ubuntu container, so I had most dependencies figured out at the time: https://github.com/xou816/spot/blob/48ae73a7b4c2ca80c874b833a6c61bc0a4fe388c/.github/workflows/spot-main.yml#L37
The trickier part might be to include libhandy1 as well (except for newer versions of Ubuntu). If this is too complicated, we can try and build libhandy1 as a subproject, we will see!

Hello, any news on this ? Thanks !

Not really sorry :/


Is it possible to use custom quadrature rules?

Hello, I'm trying to implement a cut-cell-type of element, and in order to do that I need access to add my own custom quadrature points and weights. Does MFEM expose such functionality? Thanks!

Absolutely! See theintrules.hpp and intrules.cpp files in the fem/ directory.

Closing this issue now. Feel free to reopen if you have additional questions.


Cultural Invariant Conversion of datatypes during mutation

Why make this change?
It addresses https://github.com/Azure/data-api-builder/issues/2284 bug raised by the customer.
Note: Made change insrc/Core/Resolvers/SqlMutationEngine.cs just for consistency.
What is this change?
Made sure datatype conversion is CultureInfo.InvariantCulture
How was this tested?

[ ] Integration Tests
[ ] Unit Tests

Sample Request(s)

Example REST and/or GraphQL request to demonstrate modifications
Example of CLI usage to demonstrate modifications

/azp run

please explain why this works, what's the behavior before/after.

please explain why this works, what's the behavior before/after.

you just want me to put in description or it is a question, because changes are not clear enough? I have test cases added for this, you can refer that, that case will fail if you run it with main branch.
To know the "before" behavior, you can check the mentioned issue.

/azp run

/azp run

/azp run


[kie-issues#1465] Align with Quarkus 3.8.6. #6067

Issue: https://github.com/apache/incubator-kie-issues/issues/1465
Alignment with latest Quarkus LTS release - 3.8.6.
Related PRs:
https://github.com/apache/incubator-kie-drools/pull/6067
https://github.com/apache/incubator-kie-optaplanner/pull/3123
https://github.com/apache/incubator-kie-kogito-apps/pull/2097
https://github.com/apache/incubator-kie-kogito-examples/pull/2008
https://github.com/apache/incubator-kie-kogito-images/pull/1801

Kogito Runtimes GHA PR check fails on reproducible build check, tracked as apache/incubator-kie-issues#1467


Add cmake install support

The cmake file now includes configuration to build a shared library, and supports make install, complete with a pkg-config file.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Does this work with ArcGIS Server?

Hey,
I've tinkered with this for a while today and I can't quite make out how to give the TOC the layers that it wants.  My map has one ArcGISDynamicMapServiceLayer and two graphics layers. I've toyed with layer arrays, layerinfos, etc. One thing I notice is that the _createLayerNodes looks for some properties  which I can find no trace of in the api docs (eg. response.layerIndex ). Is this an ArcGISOnline only dijit? If so, how much work would it be to adapt it for ArcGIS Server?

Hey @spatialbits. You can create the layerInfos to be a format that is returned from the webmap response.
example: http://www.arcgis.com/sharing/rest/content/items/df8bcc10430f48878b01c96e907a1fc3/data?f=json
Minimally, it just needs these:
{
                        title: "My Layer"
                        id: "layerid"
                        visibility: true,
                        layerObject: layerObject
                    }

Thanks @driskull, it's now populating the TOC based on an ArcGISDynamicMapServiceLayer.
I'm noticing that toggle events are not firing on sublayers. Actually, the sublayers are not populating quite right. "Water Systems" should be a group layer with the remaining layers residing within that group.

        function getLayerInfosForTOC(map_layer_id, map_object){
            var layer_object = map_object.getLayer(map_layer_id);
            var info = {
                title: "My Layer",
                id: map_layer_id,
                visibility: true,
                layerObject: map_object.getLayer(map_layer_id)
            };
            return [info];
        }

If the TOC doesn't know how to toggle the ArcGISDynamicMapServiceLayer sublayers, I can probably still make it work if I can get the sublayer toggle events firing.

ok, if I add layerType: "ArcGISMapServiceLayer" the info object I create in getLayerInfosForTOC() then the parent/sublayer hierarchy straightens out.

I haven't got the sublayers to fire toggle events yet.

@spatialbits let me know what you find with the sublayer toggling. It seems to work with the webmap versions that have map services. Maybe something is missing?

I linked to the operational layer spec guide in the readme.

There's something up with layer.setVisibleLayers(visibleLayers); on line 594. If setVisibleLayers is given all the layer IDs  shown in the screenshot, it doesn't do anything, no exceptions or errors, just no response. I've found that if I remove "0" (ie the group layer)  from the visibleLayers array, then setVisibleLayers(visibleLayers) starts responding and layers begin toggling on and off in the map.

Is there something about having an ID of zero in the array?

@spatialbits i'll look into it. Are you able to share the layer so that I can test?

Thanks @driskull. I can't expose the server I'm afraid.

Thats ok @spatialbits. I tried reproducing this and can't seem to reproduce the same effect. Do you think it may just be that layer? Is there another layer you could try? It seems to be working on the wildfire map and a couple others that I've tested with.

I'm finding it seems to be less about a "0" layer index problem and more about parent/child layers in a group. The parents/children don't seem to respect eachothers' visibility settings.
The "WA..." layers are all working fine as singletons so I've left them off. The "Imagery" group at the bottom holds one 3-band raster. The screenshots show it can be on when the parent is off, likewise, the parent will toggle the raster on in the map even though the raster is checked off in the toc.

@spatialbits yeah I think the relationship for sublayers is just weird. since they really aren't related at all. Its just using the setVisibleLayers() and sending what sublayers to show. Even thought the parent may be off visually, the layer doesn't really respect it like that.

Sure, all are considered independent layers, even group layers, so relationships between parents/children need to be coded.
The subLayers property of group layers can surely be used to percolate toggles down through children. I'll see if I can do something with that.
Perhaps this could be a feature request, but it might be useful to maintain a separate attribute in the checkboxes that determines layer visibility. That way, assuming we can get the parent layer toggling to work, sublayers can remain checked but toggled off if their parent goes off. Then when the parent checks on again, the childrens' visibility status is restored to the check status.
Something like:
<input type="checkbox" id="TOC_checkbox_sub_0_6" data-layer-index="0" data-sublayer-index="6" data-visibility=true class="tocCheckbox">

Yep, you're right. :bowtie:
It can definitely be handled by the widget itself. I guess we can rename this issue for handling that. It needs to handle the proper hierarchical relationship between sublayers.

maybe each sublayer has a "data-parentlayer-index" on it's checkbox node. Then, if toggled, only gets added to setVisibleLayers if it's parent index is also visible?

Could do. I was headed more in the direction of using the layerObject properties and working up the hierarchy with layerObject.layerInfos[x].parentLayerId.  I was thinking of something like:
  _canBeVisible: function (layerIndex){
    //Checks if this layer should be made visible or not.
    //Returns false if any parents are not visible in map.
    console.log(layerIndex);
  }

that would be executed on the IDs in visibleLayers and used to trim non-visible layers just before layer.setVisibleLayers(visibleLayers); is called. Maybe not the most efficient but it could avoid having to maintain the data-parentlayer-index attribute.

yeah thats probably a better way. Then the domNode doesn't have to be relied on.

Hey @driskull, I've done some code that takes IDs out of visibleLayers that are sublayers of parents that are toggled off. Turns out the checkboxes keep their states which was a nice surprise. Screenshots show the value of visibleLayers before and after calls to layer.setVisibleLayers(visibleLayers); appear correct. But there is still weirdness when it comes to the Group Layers. layer.setVisibleLayers(visibleLayers); just isn't setting the visible layers in accordance with the IDs it is given.
#1: I toggled ON "Imagery" (layer ID 4):

#2: I toggled OFF "Imagery":

#3: "Imagery" (ID4) toggled on, "entGIS.DBO.PM_Raster" (ID6) on, "WANMN" (ID5) off. visibleLayers array looks good, but the WAMN layer still gets turned on.

Doesn't matter if I give IDs for the "Imagery" children or not, they get toggled in unison depending on whether the "Imagery" group  id is present in visibleLayer. Dare I say bug?

Ok I think I've got it. It should have been more obvious to me before. Any time a group layer ID is given to layer.setVisibleLayers(lyrIDs), all the sublayers of that group layer will be toggled on regardless of whether the sublayer IDs are given to layer.setVisibleLayers(lyrIDs) or not. Not very intuitive but I guess it does make sense in some way.
So, to get the parent/child layer toggling working I added to steps to  _toggleLayer() just before .setVisible() is called: remove any IDs that have parents that are not in the visibleLayers array. Then, remove any and all IDs from the array that have subLayers. Works a treat :)

ah, that makes sense! I was seeing that as well in some instances.
Do you think you could send a pull request with those changes? :cake:

Definitely. I'll have to clean up the code a bit first and will submit a pull when its ready.

@spatialbits you rock :+1:

hey @spatialbits I merged the code in but it looks like its acting up a little bit. I cleaned up the code a little but it wasn't working correctly before.
I think it might be because the function "_hasVisibleParents" isn't being called anywhere. I think something is missing. Ill look into it more.
Thanks!

I may inadvertently deleted something between my (various) attempts to fork and pull and cleaning up 2-space vs 4-space indenting.  My first pull request.

I think i just had to remove the visible-layers-change event to get this working correctly. We can't support handling toggling of sublayers outside of the widget at this time.


Enhance "How It Works" Section with Step Icons

I would like to suggest adding small, relevant icons to each step in the "How It Works" section for better visual clarity and user experience:
Choose a Location: A map pin icon.
Travelling Date: A calendar icon.
Depart. Time: A clock icon.
These icons will make the steps clearer and more engaging for users.
If approved, please assign this issue to me.

Can you give the name of organisation for this issue

Thank you for assigning this issue to me! Could you please add the labels hacktoberfest-accepted and gssoc-ext to the issue? This will help it count towards my contributions for both Hacktoberfest and GSSoC Extended.


Tile Collision Polygons not updating in Godot.

Hello! Sorry, it might not be a bug but I'm not sure if I'm doing something wrong here.
Describe the bug
I try to create collisions in tiled but they won't appear in the tileset setting in Godot. I've managed to create physics layers in the tilemap but when I'm creating the collision shapes inside tiled and save the file, they are not being updated in Godot.
All other properties update correctly.
To Reproduce
Create collision shape for tile in Tiled and add the custom property physics_layer to it.
Go back to godot
Check the tileset
the tile does not have the collision polygon set to it.
Expected behavior
Collision polygon in Godot should be created and be the same as the one in Tiled
Desktop:

OS: Windows 10
Version: 1.6.3 - GDScript
Godot Version: 4.2.1
Tiled Version: 1.10.2

Tried changing polygon
Exported tmx with edited polygon and it worked
I tried changing the polygon to another thing now, reexported tmx but this time it simply did not work. Closing and reopening godot does not change this either.

Been playing around with it and noticed Collision Data won't update unless each map is individually re-exported/saved after a tile collision change in the .tsx
Is it possible for the plugin to assign collision data for all tmx using that tileset once the tileset's tsx gets updated?

The problem is probably that changes only in a .tsx don't trigger an automatic reimport of .tmx files.
An automatic reimport is only triggered on changes in .tmx files.
Unfortunately we have to live with that somehow.
The import mechanism is built-in Godot, the importer code cannot do much about that.
Additionally the .tsx files don't contain any info in which .tmx they are used so there is no easy other way to circumvent that.
For a single .tmx you can manually force a reimport by switching to the Import tab (left top side) and press Reimport.
(If the Import window is empty you first must reselect the .tmx file in the browser on the left - Godot pecularity).
If you have lots of .tmx all based on the same .tsx a faster workaround could be to close Godot, then delete all .tmx.import files and restart Godot. With missing .impot files a reimport is also forced and Godot writes a new import file.