You can not configure hostname in zabbix::proxy

When I declare the proxy hostname by class, for example:
class { 'zabbix::proxy':
zabbix_package_state  => 'latest',
hostname              => 'proxy.domain.com',
database_host         => 'localhost',
database_type         => 'mysql',
manage_database       => false,
database_name         => 'zabbix_proxy',
database_user         => 'zabbix',
database_password     => 'zabbix',
zabbix_server_host    => 'server.domain.com',
database_socket       => '/var/lib/mysql/mysql.sock',
database_port         => '3306',
offlinebuffer         => '8',
logfile               => '/var/log/zabbix/zabbix_proxy.log',
logfilesize           => '0',
zabbix_server_port    => '10051',
pidfile               => '/var/run/zabbix/zabbix_proxy.pid',
}
the hostname is not set in zabbix_proxy.conf file, but the server FQDN.
That would work correct?
I'm using:
Centos 6.6
Zabbix Agent 2.4
Zabbix Proxy 2.4
Puppet 3.7.4
Thank you

Hi xdexter,
Thanks for making time to create this issue.
I found the problem, will push later this day.
Kind regards,
Werner

Hello Werner,
Perfect, I'm waiting.
Kind Regards

Hi xdexter,
I just pushed it. Please let me know if you have any troubles.
Kind regards,
Werner

Hello,
Perfect, is now working!
thank you very much

Hi,
I think I have the same problem but with hiera.
Here my code :
zabbix::proxy::zabbix_server_host: 'my.domain'
zabbix::proxy::database_type: 'mysql'
zabbix::proxy::zabbix_server_port: '10051'
zabbix::proxy::database_name: 'zabbixproxy'
zabbix::proxy::database_user: 'zabbixproxy'
zabbix::proxy::database_password: 'password'
zabbix::proxy::hostname: 'P_domain'
Thank you.


Add support for @sample directive

In order to allow number of items which were hardcoded in arrayResolver I added @sample directive. (Naming taken from lodash/underscore)
Fixes #12

@MilosMosovsky I think sample is very confusing in context of generate fake data.
+ how would you handle two dimentional arrays (e.g. [[Pet]])?

Can you please merge?
It's a feature that blocks me from using this amazing project as an essential component of quite a big setup.

@MilosMosovsky Sorry it took so long.
I rebased your PR on top of master, changed the directive name to @listLength (since @sample is confusing name especially since we already have @examples) and added few minor changes.
Sadly I can't update this PR so I want ahead and committed 5db15f66f13c0c69f7d69b3be004ffd0ba455f05 keeping you as author.
@kristianmandrup @AntonioRedondo @dielduarte @ankithkonda @skuteli Just released 2.0.0-rc.10 📦 with @listLength support. Can you please test it?


Initial Commit

Fixes #4

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@1ced801). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main        #1   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?        26
  Lines           ?       428
  Branches        ?         0
========================================
  Hits            ?       428
  Misses          ?         0
  Partials        ?         0

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 1ced801...c680fd8. Read the comment docs.


cant build, so many files are missing

I cant build it as so many files are missing, like lazy_importer.hpp, imgui.h, discord*.hpp, magic_enum.hpp, xorstr.hpp, nlohman/JSON

Please read, this project uses package manager which should install your missing dependencies.
Install vcpkg, integrate it, clean solution, rebuild, violla your dependecies are installed. It should start the build output by printing cmakes infos, and all vcpkg related stuff.
You don't include libraries by your own

Please read, this project uses package manager which should install your missing dependencies. Install vcpkg, integrate it, clean solution, rebuild, violla your dependecies are installed. It should start the build output by printing cmakes infos, and all vcpkg related stuff. You don't include libraries by your own

after installing vcpkg and integrating it with vs
getting this error

Crashes latest Csgo on Injection

I have a quick poor solution, will push in few mins. The problem is harder to say for now than I thought, code with release does weird thing with ebp reg.

yes, that should fix the release building. As well as injection, although to fix it for stable non UB release build with every feature working fine, I need some time. Don't use release now if that's possible :/

yes, that should fix the release building. As well as injection, although to fix it for stable non UB release build with every feature working fine, I need some time. Don't use release now if that's possible :/

Thanks for your work, buddy. Everything is working perfectly now. Just UI is messed up, it becomes quite difficult to choose drop-down options as they are not visible.

For now key handler widget doesn't work, will fix it today. Popups can be replaced with several window childs, UI is done just to be, matter of huge free time when anyone wants to make it as "nice-looking"

will fix this week with release builds UB, closing


Backlinks mention duplicate links

The backlinks reference shows duplicates of a mentioned link(in the note), shouldn't backlinks mention the link only once regardless of how many times it was mentioned in the note?

Thank you again for this great theme, I'll try to fix these issues myself but I am still a noob.

Okay, I didn't realize this is a feature, not a flaw. 😅

I think it'd be better if the actual refWord  can be highlighted so it won't be confusing at first glance like this.


Training nerfacto with nerfbuster data

Hi,
Thanks for the amazing work. I ran into a problem trying to replicate baseline results. The commands provided for training the nerfacto models for baseline, has --eval-mode argument that doesn't seem to be supported in nerfstudio. When I run the command I get ns-train: error: unrecognized arguments: --eval-mode.
Is there a workaround for this without needing to restructure the whole dataset files? And what nerfstudio version was used that worked with this command?

I found out that the nerfbuster-changes has a slightly different dataparser. I adopted that parser and my problem is solved.
However, I cannot reproduce the very noisy results of the baseline that is presented in the nerfbusters website. The noisy parts in my trained nerf appear to be much more cloudy and less dense. Could you please share if you used any other specific hyper-parameters like distortion loss weight that is different from nerfstudio default? Are there any other changes in nerfbuster-changes branch that might affect the baseline training quality?
Thanks a lot!

Hi @lilygoli, thanks for reaching out. I think the artifacts actually look very similar, shown at the bottom of this page for the plant scene. However, one difference is that when the distance is far away then we set the background to be white, as done here.

Thanks for the reply! Why are you setting the far plane to 2 when using scene contraction?
Are the reported metrics also evaluated on images with white background or is this just for the purpose of rendering? Also is this why the coverage metric for Nerfacto is reported to be <100% for most scenes?

Hi! So the far plane of 2 will include all of the training cameras, since the [-1,1] box is defined to contain all the train and eval cameras. We set it to 2 because we only want to evaluate the foreground, and when things are deleted by various baselines, we don't want to show the random background colors.
The reported metrics are only evaluated on the masked regions, being within a distance of 2 wrt. the far plane but also the visibility mask. Here you can see the code. Here you'll notice that the visibility mask is actually the same for every baselines. We train a Nerfacto model on the train+eval images, and then we compute the visibility from the eval images using the median depth. It checks to see if the point is scene by training images or not. If it is, we want to evaluate all the methods there.

I see. Are the visibility masks in the dataset files? and when Nerfacto coverage is reported to be 0.89 that means 89% of the pixels in the visibility mask had depth less than 2?

It means that the number of visible pixels and the number of pixels with depth < 2 is 89% of the total pixels. The masks are not in the dataset files. We train a "pseudo ground truth" model that uses both train and eval images. It's described in more detail in the paper. Essentially we created an evaluation procedure where the eval views are far from the train views, and we think it's only fair to evaluate on visible regions. That's the reason for this "pseudo ground truth" Nerfacto model.

oh I thought this line meant the denominator is the number of visible pixels. Okay that makes sense thank you!

 It's the percent of visible pixels with depth < 2. Depth < 2 is the proxy for something being there or not. The denominator is always the same since the visible mask is always the same.

I see. Is there any code on how you generate the visibility masks or any chance you could also upload that with the dataset?

Hey @lilygoli, I uploaded the visiblity masks (visibility_median_count from the pseudo ground-truth model) here. Just be aware that they are downscaled from the original images by a factor of 2, as per this line.

I'll close this now, but just get a hold of me if you need anything!

Hi again!
So I ended up reproducing the masks and I noticed (small) differences in the metrics from my runs and the paper results. I was wondering if the results in the paper are averaged over a number of runs? and if so how big is the variance? Just checking if I am getting correct results and this is just due to running on a different machine etc. .
for example here are the results I get for the 'art' scene:
Processing experiment: art---nerfacto-visibility-cube ...
coverage: 0.7181332997103643
depth:<PHONE_NUMBER>06144
disparity: 0.15155763385099405
lpips: 0.3608271160771727
normals: 59.56734950316019
normals_11.25: 0.04745309685445365
normals_22.5: 0.15361157821376897
normals_30: 0.23734036396002636
normals_median: 53.754623519641726
psnr: 14.346749822520676
ssim: 0.4153017530727653
Processing experiment: art---nerfacto---pseudo-gt ...
coverage: 0.8748574999457631
depth: 0.0
disparity: 0.0
lpips: 0.10465816219009501
normals: 0.007647333154194681
normals_11.25: 0.9999999900103947
normals_22.5: 0.9999999900103947
normals_30: 0.9999999900103947
normals_median: 0.0
psnr: 24.383406516559962
ssim: 0.8166800973801639
Processing experiment: art---nerfacto ...
coverage: 0.8636427475087469
depth: 1637.1690739340634
disparity: 0.2164474535504533
lpips: 0.3989156989078948
normals: 62.239795088102035
normals_11.25: 0.04544459727681216
normals_22.5: 0.1471749302728216
normals_30: 0.22700989021602289
normals_median: 56.19305057632191
psnr: 14.229257455751217
ssim: 0.3766709031672451
Thanks!


[VS Code] Joining collaboration session: spawn cmd.exe ENOENT

Error:
Joining collaboration session: spawn cmd.exe ENOENT
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS

extensionVersion
1.0.419

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.35.1

platformName
Windows

platformVersion
10.0.18362

[2019-06-19 23:24:27.688 Client I] Deactivating extension from background agent startup.
[2019-06-19 23:24:27.690 Client I] Found workspaceId: C59700235D068DE7C4E673D5885997C9D37B
[2019-06-19 23:24:27.691 Command:Object I] Decorator: CancellationDecorator Starting
[2019-06-19 23:24:27.691 Command:Object I] Decorator: ErrorNotification Starting
[2019-06-19 23:24:27.691 Command:Object I] Decorator: Telemetry Starting
[2019-06-19 23:24:27.691 Command:Object I] Decorator: FirstRunTracking Starting
[2019-06-19 23:24:27.691 Command:Object I] HasRunPreviously: Joining collaboration session -> true
[2019-06-19 23:24:27.691 Command:Object I] Decorator: TelemetryStatus Starting
[2019-06-19 23:24:27.691 Command:Object I] Decorator: Validation Starting
[2019-06-19 23:24:27.692 Command:Object I] Decorator: SessionStateTransitions Starting
[2019-06-19 23:24:27.693 Command:Object I] SessionContext: State update from "Initializing" (undefined) to "JoiningInProgress" (AttemptJoining).
[2019-06-19 23:24:27.693 Command:Object I] Decorator: Progress Starting
[2019-06-19 23:24:27.693 Progress I] Progress notifier opened: 0.
[2019-06-19 23:24:27.694 Command:Object I] Decorator: InfoPage Starting
[2019-06-19 23:24:27.694 Command:Object I] Decorator: Authentication Starting
[2019-06-19 23:24:27.695 Command:Object I] SessionContext: Status update from "undefined" to "SigninCheckStarting".
[2019-06-19 23:24:27.695 Command:Object I] SessionContext: Status update from "SigninCheckStarting" to "AttemptDefaultLoginStarting".
[2019-06-19 23:24:27.696 Client I] Client deactivation requested.
[2019-06-19 23:24:27.698 Command:Object I] SessionContext: Status update from "AttemptDefaultLoginStarting" to "SigninCheckCompletedError".
[2019-06-19 23:24:27.698 Auth E] Suppressed Exception (AuthenticationFlow.attemptAuthenticationCheckFlow): spawn cmd.exe ENOENT
[2019-06-19 23:24:27.698 Command:Object I] SessionContext: Status update from "SigninCheckCompletedError" to "SigninCheckCompleted".
[2019-06-19 23:24:27.698 Command:Object I] SessionContext: Status update from "SigninCheckCompleted" to "SigninPromptStarting".
[2019-06-19 23:24:27.782 Contact.Manager I] registerContactProvider-> serviceId:git
[2019-06-19 23:24:27.782 Contact.Service V] _Initialize:git
[2019-06-19 23:24:27.782 Contact.Service V] Request 'initialize' serviceId:git
[2019-06-19 23:24:27.783 Contact.Manager I] registerContactProvider-> serviceId:selfInvite
[2019-06-19 23:24:27.783 Contact.Service V] _Initialize:selfInvite
[2019-06-19 23:24:27.783 Contact.Service V] Request 'initialize' serviceId:selfInvite
[2019-06-19 23:24:27.783 Client I] Failed to get context services:Error: spawn cmd.exe ENOENT
[2019-06-19 23:24:31.279 Command:Object I] SessionContext: Status update from "SigninPromptStarting" to "SigninPromptCompleted".
[2019-06-19 23:24:35.107 Command:Object I] SessionContext: Status update from "SigninPromptCompleted" to "SigninStarting".
[2019-06-19 23:24:35.107 Command:Object I] SessionContext: Status update from "SigninStarting" to "AttemptAnonymousLoginStarting".
[2019-06-19 23:24:35.107 Command:Object I] Decorator: Authentication Completed Failed (7413ms)
[2019-06-19 23:24:35.107 Command:Object I] Decorator: InfoPage Completed Failed (7413ms abs=0ms pre=0ms post=0)
[2019-06-19 23:24:35.108 Command:Object I] Decorator: Progress Completed Failed (7415ms abs=2ms pre=1ms post=1)
[2019-06-19 23:24:35.108 Command:Object I] SessionContext: State update from "JoiningInProgress" (AttemptJoining) to "SignedOut" (JoiningError).
[2019-06-19 23:24:35.108 Contact.Manager V] ->loadRecentCollaborators:onStateChanged
[2019-06-19 23:24:35.108 Contact.Manager V] SelfInviteProvider-> status:false
[2019-06-19 23:24:35.108 Contact.Service V] onNotified-> serviceId:selfInvite name:suggestedUsers
[2019-06-19 23:24:35.108 Contact.Manager I] onSuggestedUsersUpdate-> serviceId:selfInvite count:0
[2019-06-19 23:24:35.109 Command:Object I] Decorator: SessionStateTransitions Completed Failed (7417ms abs=2ms pre=1ms post=1)
[2019-06-19 23:24:35.109 Contact.Manager V] ->updateRecentContacts -> count:0
[2019-06-19 23:24:35.109 Command:Object I] Decorator: Validation Completed Failed (7418ms abs=1ms pre=1ms post=0)
[2019-06-19 23:24:35.109 Contact.Manager V] <-updateRecentContacts
[2019-06-19 23:24:35.109 Command:Object I] Decorator: TelemetryStatus Completed Failed (7418ms abs=0ms pre=0ms post=0)
[2019-06-19 23:24:35.109 Command:Object I] Decorator: FirstRunTracking Completed Failed (7418ms abs=0ms pre=0ms post=0)
[2019-06-19 23:24:35.109 Contact.Manager V] ->updateSuggestedUsers
[2019-06-19 23:24:35.110 Command:Object E] Command [Joining collaboration session]: Join Failure: spawn cmd.exe ENOENT (7419ms)
[2019-06-19 23:24:35.110 Command:Object I] Decorator: Telemetry Completed Failed (7419ms abs=1ms pre=0ms post=1)
[2019-06-19 23:24:35.110 Contact.Manager V] suggest contacts from provider:selfInvite ids:, emails:,
[2019-06-19 23:24:35.111 Contact.Manager I] <- updateSuggestedUsers count:0
[2019-06-19 23:24:38.606 Command:Object I] Decorator: ErrorNotification Completed Success (10915ms abs=3496ms pre=0ms post=3496)
[2019-06-19 23:24:38.606 Command:Object I] Decorator: CancellationDecorator Completed Success (10915ms abs=0ms pre=0ms post=0)
[2019-06-19 23:24:39.203 Client I] Client deactivation requested.

Duplicate of 2190


Revert NamedTemporaryFile ContextManager in example notebooks

Reverts changes to examples from PTB-MR/mrpro#498 because we decided NOT to use a context manager to open the data files and just ignore the RUFF rule in our example notebooks.

Thanks!
Any objections to merging it?


How to give access to other domains?

hey!
how to get access to cors from other domains?
For instance: I want to use api.site.com like backend,
and site.com like frontend, I'll send requests via jquery for downloading youtube videos, creating mixes (separating), and for getting urls to files.
But when I run js code from site.com
There is one problem:
Access to XMLHttpRequest at 'https://api.site.com/api/source-track/youtube/' from origin 'https://site.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I tried to install django cors headers
BUT it doesn't work, pls help me

and how to separate not to 4 stems (other,bass,drums and vocal) but to 2 stems (vocal and instrumental) ?

Have you tried playing around with the CORS_ALLOWED_ORIGINS setting to allow requests from https://site.com?

and how to separate not to 4 stems (other,bass,drums and vocal) but to 2 stems (vocal and instrumental) ?

This is not currently supported, only 4-stem separation works.

I installed django-cors-header
by running this code:
python -m pip install django-cors-headers
I've added these lines to file django_react/settings_docker.py
INSTALLED_APPS = (
    ...
    'corsheaders',
    ...
)
MIDDLEWARE = [
    ...,
    'corsheaders.middleware.CorsMiddleware',
    'django.middleware.common.CommonMiddleware',
    ...,
]

ALLOWED_ORIGINS = [
    "*"
]

CORS_ALLOW_ALL_ORIGINS = True # If this is used then `CORS_ALLOWED_ORIGINS` will not have any effect
CORS_ALLOW_CREDENTIALS = True

CORS_ALLOW_METHODS = [
    'DELETE',
    'GET',
    'OPTIONS',
    'PATCH',
    'POST',
    'PUT',
]
CORS_ALLOW_HEADERS = [
    'accept',
    'accept-encoding',
    'authorization',
    'content-type',
    'dnt',
    'origin',
    'user-agent',
    'x-csrftoken',
    'x-requested-with'
]

I don't see any problems with the above.
Are you using Docker? And where did you run python -m pip install django-cors-headers? You may need to add django-cors-headers to requirements.txt.

root@e20135:~/karaoke# python3 -m pip install -r requirements.txt
Ignoring python-magic-bin: markers 'sys_platform != "linux"' don't match your environment
Requirement already satisfied: django-cors-headers in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 1)) (3.10.1)
Collecting demucs==3.0.3 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/17/24/3b75e03243651603b95d8dbdb99eba104a464d3e8ca26d1ad54d95a985c5/demucs-3.0.3.tar.gz
Collecting absl-py==0.12.0 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/92/c9/ef0fae29182d7a867d203f0eff8296b60da92098cc41db33a434f4be84bf/absl_py-0.12.0-py3-none-any.whl
Collecting amqp==5.0.6 (from -r requirements.txt (line 4))

Try adding corsheaders.middleware.CorsMiddleware as the first item in MIDDLEWARE?

Try adding corsheaders.middleware.CorsMiddleware as the first item in MIDDLEWARE?
INSTALLED_APPS = (
'corsheaders',
...
)

MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
...]
It was as the first item in Middleware

Hmm maybe try checking the network requests and headers in your browser's Network dev tools. Are all requests missing that Access-Control-Allow-Origin header? Could also be something with the Nginx config


Fixed and added new columns

First of all, thank you for this tool ! I'm using it for llm perf leaderboard 🚀
It seems the layout changed again, so here's a fix 🤗

Hi @IlyasMoutawwakil
llm perf leaderboard is back! Nice :)
Thanks for your contribution but I think something is missing:

I will try to fix this, lmk if you do it sooner :)

@IlyasMoutawwakil FYI I added you as a contributor in the readme, thanks again for your contributon :)
Weyaxi/scrape-open-llm-leaderboard#contributors


wifi: nrf70: Pull latest changes

After the initial upstream, pull latest changes from NCS (downstream).

Updated the colloborators for Wi-Fi driver (Zephyr and hal_nordic) to aid in reviews automatically, please review.


refactor(tests): wrong usage of waitFor

This PR resolves []
Description
Refactors tests that were using the waitFor from @testing-library/react-native wrongly and caused false positive tests.
Looking into introducing a linting rule to prevent that in the future

PR Checklist

[ ] I have tested my changes on iOS and Android.
[ ] I hid my changes behind a feature flag, or they don't need one.
[ ] I have included screenshots or videos, or I have not changed the UI.
[ ] I have added tests, or my changes don't require any.
[ ] I added an app state migration, or my changes do not require one.
[ ] I have documented any follow-up work that this PR will require, or it does not require any.
[ ] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against dd61752353a55d62336724ea0a84d9ba5db37cbb


Release does not execute my IOS code

I wrote some code to keep app alive in IOS folder. This code works in debug mode, but it fails in release version. Why

sorry i forget a folder which cause the code crash


ESP32 callback function (using WiFI) not responding since v2.0.0

Callback works flawlessly on Arduino ESP32 v1.0.6
Update to v2.0.1 and I'm missing messages then eventually I get two or three messages come in.
I call my WiFiMQTT.loop();  every second and process any incoming messages.
Sending is working as normal.
I did try v2.0.0 and had the same problem so went back to v1.0.6.
I was hoping the problem had been fixed with v2.0.1 but its just the same.
Using a GSM modem (tinyGSM library) works normally, it's only a problem with the ESP32 WiFi.
Someone mentioned a delay is needed somewhere but not sure where that would be implemented or why.
Any suggestions would be appreciated?

I have the same problem... I would like to continue using PubSubClient...


Auth tokens become invalid after server restart

Description
User tokens become invalid after server restart
Steps to Reproduce

Authenticate a user, get a token
Restart nakama server
Use the token to make any http request

Expected Result
The token should still be valid
Actual Result
Server returns 401 Unauthorized: "Auth token invalid"
Your Environment

Nakama: 3.3.3
Database: Postgres 12.2

Investigation
There seems to be a bug here.
The sessionCache is probably lost when Nakama server restarts, it returns false and thus incorrectly deems the token invalid. It should properly recheck the token and reupdate the cache I think.

In Nakama 3, we've introduced more in-depth session management - to ensure this scales well with short-lived tokens, we've implemented an in-memory "whitelist" in Nakama on the known generated tokens. What you're seeing is expected behaviour for single nodes.
Clients should be prepared to re-authenticate as needed - something they should handle no matter what since session tokens do expire even outside server restarts.

So that means if there are a million tokens generated, the cache must hold all those tokens in memory, otherwise they would be "invalid"? How does that make any sense at all?
If the cache's holding all the tokens it ever generated, then that means if I keep a server running for a couple of years it could run out of memory due to all the tokens in cache adding up whenever somebody logs in and out?
If a token is not whitelisted it should be checked, a cache is just a cache, it cannot hold all information and shouldn't determine that a token is valid or not.

The whitelist is not all tokens ever generated, only a rolling window of currently active ones. Once tokens expire or are otherwise invalidated they are of course removed from the whitelist even if the server never restarts.

The whitelist is not all tokens ever generated, only a rolling window of currently active ones. Once tokens expire or are otherwise invalidated they are of course removed from the whitelist even if the server never restarts.
That's pretty much the same thing because people could set a really long expiration time, or even with just an expiration time of like 3 months there could be many people logging in and out; a malicious attacker could create a bunch of tokens in days, thus crash the server.
This is a serious memory leak and confusing behavior, all for "optimizing" a trivial JWT checking operation.

The intention is not to optimise the JWT check, you'll find that is still done. The whitelist governs session management aspects that JWTs by themselves cannot, and there is currently no plan to significantly change its core behaviour.
Thanks for your feedback, we'll make a note to introduce an upper bound on the maximum size of the whitelist. 👍

The intention is not to optimise the JWT check, you'll find that is still done. The whitelist governs session management aspects that JWTs by themselves cannot, and there is currently no plan to significantly change its core behaviour.
Thanks for your feedback, we'll make a note to introduce an upper bound on the maximum size of the whitelist.

Then the code should perform a full check, whatever that is, when a token is not whitelisted. A cache cannot be used as an authorative check. If the whitelist is still being an authorative check like right now and you limit it's size, it's gonna be even worse, tokens would randomly be deemed "invalid" here and there.

Clients should be prepared to re-authenticate as needed - something they should handle no matter what since session tokens do expire even outside server restarts.

My client code is always ready to re-authenticate, but my players shouldn't have to login again whenever I restart the server for whatever reason. The client doesn't even know that it's token suddenly became invalid for no reason.

Tokens can always be invalidated for any number of reason (config change, developer action, server restart etc) and clients should be prepared to re-authenticate again. This is a design decision we're not looking to change at the moment.


Masking broken in Chrome v50

This Issue is about

A bug in the API/Chrome 64bit

Browse to http://phaser.io/examples/v2/sprites/mask and run your mouse over the black background.  In firefox/ie and Chrome 32bit, the expected masked circle appears at the mouse position and displays the sprite behind.
In Chrome 64bit however (tested 50.0.2661.94), at first no background is seen (game area remains black).  After switching in and out of the tab, or popping open developer tools, the round area that represents the mask starts to flicker/strobe in and out.  Clicking the game component then switches between this flickering effect, or just a black background with no mask visible.
I've tested this against masks in Phaser v2.4.6 and v2.4.4 and saw the same result.  Tests are against the WebGL renderer.

I've isolated this to one machine (Win10) and both Chrome 32bit and 64bit have the masking issue.

Downgrading to Chrome v49 (Discontinued) or updating to Chrome v51 (Beta) fixes the issue, so it's specific to the current stable Chrome v50.
However, I have both a desktop machine and a Surface Pro 3 running Windows 10 v1511 (10586.218), and the symptoms only occur on the desktop.
Will be interesting to see what happens once Crosswalk updates to Chromium 50.

I've tried this in Chrome 50 (stable channel release, 32-bit version) on Win10 and on Chrome 52 (Canary, dev channel, 64-bit) and it works fine with them both.
I'll try Chrome 50, 64-bit and see what happens there, and a few other PCs, but I'm not sure this is just Chrome version related, but involves another factor as well (GPU perhaps)

Tried this on a really low-spec laptop, with terrible integrated GPU, and I can see the error in WebGL mode (Canvas is fine). This is 32-bit Chrome. So my money is on this being a Chrome + GPU specific error, rather than 32 or 64 bit (it's possible maybe the 64-bit version uses different GPU drivers, which is why it only happens that way around for you).
There's no errors, nothing in the stack, and WebGL inspector doesn't show me any errors either. Which is just great, as honestly I can't see any way to fix this now.

yep a mix of GPU and browser related issue.
My home laptop displays the mask correctly on both integrated HD4600 and Nvidia 850 while my work laptop is having the issue in Chrome with a Radeon GPU (but not with same GPU in other browsers).

Possibly Radeon (+ Chrome v50) specific?  I only saw symptoms with Radeon 5800.

Good call. My integrated GPU is a Radeon. On my Nvidia it was fine.
Which sadly makes this even less fixable!
On Tuesday, 17 May 2016, Stafford Williams<EMAIL_ADDRESS>wrote:

Possibly Radeon (+ Chrome v50) specific? I only saw symptoms with Radeon
5800.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/photonstorm/phaser/issues/2467#issuecomment-219634464

--
Photon Storm Ltd.
http://www.photonstorm.com
Skype: richard.davey
Twitter: @photonstorm
Registered in England and Wales.
Company ID: 8036404
VAT Number: 136 4333 27

Masks in WebGL use the stencil buffer, so this is definitely a WebGL  + GPU + Chrome specific bug, and as it's fixed in Chrome 51 I think it's best if we just close this off, rather than try to fight it, and leave it here so it's a search result for anyone else coming across it.


Korean Translation for Setup.md

Hi,
I'm an RPA trainer of Automation Anywhere.
RPA is my favorite interest and I'm using Power Automate to automate my legal tech service to create a simple contract online.
Recently, I'm studying Power Automate Desktop(preview) in a group, called "I love hands-on".
I've just translated the setup.md in Korean for Korean learners.
To avoid complexity, I've renamed the file name with 'setup-kr.md'.
Hope this will help Korean Learners.
Gratefully yours,
Inhee

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @rokontol, @olegmelnykov

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @rokontol, @olegmelnykov

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @rokontol, @olegmelnykov

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @rokontol, @olegmelnykov

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @rokontol, @olegmelnykov, @mariosleon

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @rokontol, @olegmelnykov, @mariosleon

@lawbot4me : Thanks for your contribution! The author(s) have been notified to review your proposed change. @msftman, @olegmelnykov, @rokontol, @mariosleon

@BestTechSystem : Thanks for your contribution! The author(s) have been notified to review your proposed change. @olegmelnykov, @msftman, @rokontol, @mariosleon

@lawbot4me Thank you for working on these. We've discussed internally, and unfortunately, we aren't able to use these translations. Thank you again for using Power Automate.


Fixes pushdownGroupByAliases bug with repeated projection column name.

The analyzer rule stored column names in a hash map to mirror deps on
either side of the GroupBy and Project child node. The return expression
were recreated without the table info, which is fine for most cases but
breaks when there are deps from two tables with the same column name.
This maintains table metadata for *expression.UnresolvedColumn
throughout the rule, so that the output projections maintain table
identity.

re https://github.com/dolthub/dolt/issues/2599


Don't restart key units until all keys have been uploaded

Sort of an extension of #174 , it would also be really nice if the temp key files weren't moved into their final locations until all keys have been uploaded, and then were moved as a batch at roughly the same time.  The reason for this is that if you have services that depend on multiple keys, then those services end up getting bounced repeatedly as keys are uploaded.  This isn't so painful for some services, but for other stuff -- e.g. wireguard -- this can be super obnoxious.
A solution I'd propose here is the following:

Upload keys to a temporary destination (removing the ones that haven't changed, as per #174)
Run a script after all keys have been uploaded which

Stops all key units for keys that have changed
Moves the changed keys to their final location
Removes the temporary upload dir
Starts the key units for the changed keys all at once

This would also allow us to do away with the weird flappy service implementation here  and the inotify watches which were mostly written that way to avoid issues with systemd's reliability when using path units (see https://github.com/zhaofengli/colmena/pull/119), because I think we can safely assume that keys will only be touched via colemana itself so we don't have to account for other direct changes on the filesystem (although we would need to account for persistent keys that are available on boot if we went this route).

hey @zhaofengli !  Just curious if you had a chance to see this ticket and think about my proposal?  It's probably my only real pain point with colemana and I'd love to put a fix in for it if you're open to it!


Koffi memory access violation on x86 only

Hello, after porting my app from ref-napi to koffi I encountered a problem in the ia_32 build.
Sample code that works in x64, but does not work in x86:
import koffi from "koffi";

const HANDLE = koffi.pointer(koffi.opaque("HANDLE"));
const HWND = koffi.alias("HWND", HANDLE);

const user32 = koffi.load("User32.dll");

// BOOL CALLBACK EnumWindowsProc(
//     _In_ HWND   hwnd,
//     _In_ LPARAM lParam
//   );
const EnumWindowsProc = koffi.proto("EnumWindowsProc", koffi.types.bool, [
  HWND,
  koffi.types.long,
]);
// BOOL EnumWindows(
//     [in] WNDENUMPROC lpEnumFunc,  -> A pointer to an application-defined callback function
//     [in] LPARAM      lParam
//   );
const enumWindows = user32.stdcall("EnumWindows", koffi.types.bool, [
  koffi.pointer(EnumWindowsProc),
  koffi.types.long,
]);

const windowsProc = koffi.register((hwnd, lParam) => {
  console.log("hwnd", hwnd, "lParam", lParam, Number(koffi.address(hwnd)));
  return true; // continue enumerate
}, koffi.pointer(EnumWindowsProc));

console.log("start enumerate");
enumWindows(windowsProc, 0);
console.log("end enumerate");

In x64 all fine, printed "end enumerate" from console log. In x86 environment (on in x86 build runned on x64 os) process crashes without error before reaching "end enumerate".
In application calling enumWindows on x86 arch causes an error:
0xc0000005: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

Unhandled exception at 0x6CE44642 (koffi.node) in 2adef64c-0bad-41de-8767-a16b0153c494.dmp: 0xC0000005: Access violation writing location 0x000717C2.

[Inline Frame] taskbar-client.exe!ShimMalloc(unsigned int size=1153942365, void * context)

But its partially works - enumarate few windows, but at some point it crashes.
UPDATED:
This comment  prompted me to try using prototype syntax and it worked! But i dont understand what difference between
const EnumWindowsProc = koffi.proto('bool __stdcall EnumWindowsProc (HWND hwnd, long lParam)');   // this works!

and
const EnumWindowsProc = koffi.proto("EnumWindowsProc", koffi.types.bool, [HWND, koffi.types.long]);   // this crashes

and how it make work with classic node-ffi syntax?

The Windows API uses the __stdcall calling convention on 32-bit platforms, for functions and for callbacks. On other platforms, there is only one convention (well, Windows x64 has __vectorcall but Koffi does not support it ATM), so it's ignored.
Although it's good style, it does not really matter if you specify __stdcall or not for function calls. It works regardless. However, for callbacks, it must be correct or the code will crash.
However, it was indeed a limitation of Koffi, that you could not specify the calling convention for callbacks with the classic syntax. I've changed this in Koffi 2.7, which I've just published.
Upgrade to Koffi 2.7 to use this syntax:
const EnumWindowsProc = koffi.proto( '__stdcall', 'EnumWindowsProc', koffi.types.bool, [HWND, koffi.types.long]);

For consistency, I've also changed how you are supposed to declare stdcall/fastcall/thiscall functions:
// Before:
const MessageBoxA = lib.stdcall('MessageBoxA', 'int', ['void *', 'str', 'str', 'uint']);

// After:
const MessageBoxA = lib.func('__stdcall', 'MessageBoxA', 'int', ['void *', 'str', 'str', 'uint']);

The old away is still supported but deprecated, and will be removed in Koffi 3.0.
Documentation here: https://koffi.dev/callbacks#callback-types


SEO alternate Links not rendered on Startpage

Q
A

Bug?
yes

New Feature?
no

Sulu Version
1.2.0

Actual Behavior
No alternate links on startpage.

Seems to be fixed:

@dominikmatt this was fixed in 1.2.2


PDF Formatting related to references and bibliography

Summary
This PR addresses:

Bibliography (References) section and ensures that a bibliography is added to the document
Allow inline references and link to the bibliography, expected behavior
Text can be underlined in rich text editor and will appear in PDF
Line breaks will appear in PDF between paragraph elements and non-list elements
Note: There is an extra section called References that is flagged for removal after some testing. It will leave a comment in the document which reads "pending removal." Please ignore during initial review.

PR does not yet include:

Support for multiple inline references in a row (PR will be updated with this functionality)

To review:

Create a simple document such as the attached example
test-formatting-v1-0-journal (22).pdf

Hi @naomatheus! I am in the process of setting up APT locally, and once that is complete, I will be happy to provide a more detailed review.
In the meantime, I did notice a lot of commented out lines in the diff. I understand that these may be useful for future reference, but as someone new to the codebase, I think it would be helpful to remove them or stash them using git stash to make the review process easier. What do you think?

Hey @sunu. I saw your feedback for this commit. I've actually realized that there are some changes I made that inadvertently are affecting the loading of images and tables in certain situations. I'm going to pull only certain changes from this commit thread and I will open a PR which does not have side effects.
Thanks for looking at this. I expect to close this PR tomorrow or next day.

Hey @sunu  I have force updated this PR and now it is ready for review of the functionality.
And I also tried to remove a lot of the codebase that is commented.
Thanks for your feedback. Let me know if there's the same problem with this branch now and I can clean it up even further.

@thenav56  I have added one more commit to this PR.
Could you verify that the issue #606  is resolved by this PR as well.
cc: @wrynearson

Thanks @naomatheus, I think @thenav56 will be able to review this early this week. I will try to get APT set up locally today so I can test functionality as well.


Error when installing gdown with pip

I am having trouble installing gdown in a python3.6 virtual environment with this error message:
ERROR: Command errored out with exit status 1:
command: /venv/py36env/bin/python /usr/share/python-wheels/pep517-0.8.2-py2.py3-none-any.whl/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmptpf2_pr1
cwd: /tmp/pip-install-35d9jl91/gdown
Complete output (1 lines):
/venv/py36env/bin/python: can't find 'main' module in '/usr/share/python-wheels/pep517-0.8.2-py2.py3-none-any.whl/pep517/_in_process.py'
Any suggestions?
EDIT:
I tested this on python 3.7, 3.8 and it works, so it may be isolated to 3.6

make sure you are running the latest version of pip
confirm it by pip install --upgrade pip
try again with  pip install gdown worked perfectly fine for me


Show browser PID or URL in host app list

Currently if there are multiple WebView2's associated with a host app, the host app appears multiple times in the list with no distinction between them. We should probably show at least the PID of the browser process. Ideally, we would show the URL in the connected WebView2 as that's easier to distinguish for a developer.

Now showing the browser PID in the host apps list. URL may be too difficult (and unclear when there are multiple child WebView2's).


Audit use of threadDelay

threadDelay on 32-bit machines can wait a maximum of roughly 35 minutes. That is not sufficient, in particular in waitUntilSystemStart.

Can fix this in the IOLike wrapper (wait in 10 minute increments, say).

Closed by #2095.


Can't add Slack integration: Please enable popups to auth with slack

Error message from scalar: "Please enable popups to auth with Slack"
Version: 0.8.19 (G-b158)

Other integrations seem to work

Same issue using F-Droid version 0.8.18 on Android 9

Done. Note that I haven't check the full Slack integration flow, but the popup can now be opened.


Manage persistent user data

For now imported user data are volatile, it would be great they can be persisted into the catalog:

[x] add a specific feature service for user data
[x] add a "Save to catalog" action in imported layers
[x] add a "Remove from catalog" action in catalog layers

Consistent with https://github.com/kalisio/kMap/issues/55 & https://github.com/kalisio/kano/issues/53.

For now saved layers are not visible in globe.


Command for introspecting on the index

Problem
Cargo does not prioritize rust APIs but instead CLI plumbing, like cargo-metadata, for APIs to be built, like cargo_metadata.
Currently, there is no CLI plumbing for the index and the rust API hole is being fulfilled by crates-index which has its own set of issues (not fully implementing cargos logic, not implementing auth, no cli fallback, etc).
Soon, there will be sparse registries.  While crates.io might continue to support git, alternative registries might not.
Proposed Solution
Create a command that provides a way to query the index
Strawman sketch
$ cargo index-api --update
... updates the index for git
$ cargo index-api --crates
... lists crate names
$ cargo index-api --crate serde
... lists versions of the crate
$ cargo index-api --crate serde --yanked
... lists versions of the crate
$ cargo index-api --crate<EMAIL_ADDRESS>... lists metadata
$ cargo index-api --crate<EMAIL_ADDRESS>--download
... path to extracted crate

The main challenge will be an API that works well for both git and sparse registries as they have different network connection models.
Notes
No response

@kornelski thought it'd be good to get your input on this

"lists crate names" is one of the most commonly requested API (used for auto complete in cargo.toml), unfortunately the first release of sparse registries is unlikely to have a way to list all crate names. Similarly, the perfectly reasonable action "update the index" does not have clear semantics under the first version of sparse registries.

Similarly, the perfectly reasonable action "update the index" does not have clear semantics under the first version of sparse registries.

This is part of the challenge we'll have to navigate between the two types of registries and the fact that the API is stateless (can't know about prior runs).
For a git registry, we need an explicit update operation so that future commands can be run in offline mode or else the command's could be too slow.
For a sparse registry, the update operation is unneeded but each of the following commands needs to run without offline mode so they can update the registry as needed.

The CLI api could have update that takes a list of packages to update. That would be compatible with both protocols.
cargo index-api --update "serde,rand@0.7,tokio"

cargo index-api --crate serde

This could return the entire JSON file from the index, which includes all information for all the versions. This way you wouldn't need granular commands for working with individual versions, selecting if they're yanked or not, etc.

I am concerned about programmatic API. For native Rust programs a CLI interface is cumbersome and slow when querying many crates.
However, cargo as a whole is a pretty heavy dependency, without long-term stable API, and has a high MSRV. So I think there's still a need for a smaller crate focused on working just with the index.

The CLI api could have update that takes a list of packages to update. That would be compatible with both protocols.

Mostly and is a good idea.  The one case I can think of that this would still fall flat for is if you were to implement something like the resolver where you need to get the information from one crate to then know what further crates to look up.

I am concerned about programmatic API. For native Rust programs a CLI interface is cumbersome and slow when querying many crates.

We are limping along with cargo-metadata.
How frequent is it that a caller is doing a lot of queries?  I'm not familiar enough with all of the use cases to really say.

So I think there's still a need for a smaller crate focused on working just with the index. This could be the crates-index crate, or perhaps index-related code could be extracted from cargo itself into another crate.

I would consider the independent crate is a successful fairly.  Successful in that it is working enough to show the need but otherwise it is missing a lot of functionality and the maintainers have been passing the buck on resolving some of these (authentication).
As for cargo splitting out a crate, a couple of things that we might run into

We don't have a workspace because of the rust-lang workspace which makes scaling up less than ideal.  We will need to crate a new nested workspace feature for this
Our focus is on regularly breaking changes and don't have processes setup to identifier when  not to or not, especially as we scale up to more crates.  My hope is cargo-semver-checks will help with this
Some times the internal needs are different enough from external needs that it becomes a problem (this is why there isn't more sharing with cargo_metadata).  This is less likely to be the case here but still a caution
Generally applicable APIs take on more of a maintenance burden for the cargo team which is already low on resources.  If others could step in to do community management for the API and extend it as needed for the wider community, that would be a help

Sparse index does a greedy fetch, so if you ask it to update tokio, it will update recursively tokio-macros, mio, parking_lot, etc. For this interface it would have to assume all features and all targets.

How frequent is it that a caller is doing a lot of queries?

For example tools may want to scan every dependency you have in your project, and if that's a recursive scan, that can be hundreds of queries.

Sparse index does a greedy fetch, so if you ask it to update tokio, it will update recursively tokio-macros, mio, parking_lot, etc. For this interface it would have to assume all features and all targets.

Are you saying it does today or that you propose the command should do a recursive fetch?
In the cases where I've been using crates_index, I've not needed a recursive fetch.

Sparse index does a greedy fetch, ... For this interface it would have to assume all features and all targets.

I don't know if this is actually relevant to this discussion, but the current implementation of sparse indexes does not have to do a greedy fetch. It ends up doing waves. It resolves based on everything it currently knows about, using a stub dependency for things not yet fetched. (This lets it skip unused features.) It then looks at the result and requests all of the packages that have been stubbed out, and redoes resolution. Of course the current implementation uses internal APIs. If you wanted to reimplement it over this CLI, it could be done with "only" the depth of the dependency tree calls.
Thinking about building an outside tool to do resolution based on this CLI, it would be really helpful if it didn't just take registries but also sources. I.E. if I have a git dependency I may also want to be able to find out what version is there, what its dependencies are, and find out where it was extracted.

If you wanted to reimplement something like cargo tree, you'd need a recursive scan. cargo outdated can show status of all dependencies recursively too. If you want to check if any dependencies are yanked, you need to check them all. cargo crev also checks all the dependencies recursively (currently it uses cargo's Rust API).
@Eh2406 It's nice that it's integrated with the resolver! When I wrote the RFC I assumed this would be difficult, so I suggested greedy fetch approach that first fetches everything without resolving exact versions, so that the precise resolver can later run offline, and safely assume it already has all files it needs.
Anyway, even if the implementation proper is smart enough to be conservative, the tooling-oriented CLI can still be fetching all versions with all features for all platforms. I'd just provide a separate switch for updating with dev deps. It will be some extra overhead, but I don't expect too much, especially that these crates are cached, so it'll be mostly one-time cost of a few usual suspects like winapi and redox_syscall. In any case it will be less than the full git index :)

What would be use-cases for listing all crates? I need it in https://lib.rs, but I also need all the crate metadata, so for this the git index works better.
cargo add needs to normalize _ vs -, but it could just make extra requests (and give up on crate names written in morse code), or it could use the cargo search API.
Would it be useful to list all the crates currently in the cache?

As noted in the issue I don't think typosquatting can be handled client-side. You can detect similar names, but index lacks information to decide which of the similar names is right, so you may end up hurting users by recommending squatted crates when they correctly add good ones.

I have a usecase which doesn't need recursive querying and would prefer to have -_ normalization handled automatically (especially because IIRC that's a per-registry choice? so having one place that knows crates.io allows normalization would be better): cargo-dl. If there's appetite for even more public plumbing commands; that cli also currently attempts to pull data out of cargo's download cache, if there was some way to ask cargo to download a crate into the cache and provide the path/tarball then I could leave all networking up to cargo and just have a trivial wrapper to automate extracting that for inspection.

@Nemo157 that command might be of interest to #1861.


Streaming: TPC-H Q9

create materialized view tpch_q9 as
select
  nation,
  o_year,
  round(sum(amount), 2) as sum_profit
from
  (
    select
      n_name as nation,
      extract(year from o_orderdate) as o_year,
      l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount
    from
      part,
      supplier,
      lineitem,
      partsupp,
      orders,
      nation
    where
      s_suppkey = l_suppkey
      and ps_suppkey = l_suppkey
      and ps_partkey = l_partkey
      and p_partkey = l_partkey
      and o_orderkey = l_orderkey
      and s_nationkey = n_nationkey
      and p_name like '%yellow%'
  ) as profit
group by
  nation,
  o_year
order by
  nation,
  o_year desc;

It may needs nested loop join #1862

It does not need nested loop join if we put lineitem at the beginning of from. Join reordering is the better solution here.

Checked that it is running on CI.


Product name clickable in scanner

What

name clickable in scanner
https://user-images.githubusercontent.com/39344769/171480610-d699fa26-5c4a-4a5f-b945-b4c85697ec34.mp4

@cli1005 it shouldn't be clickable at all from the scan carousel

@cli1005 it shouldn't be clickable at all from the scan carousel

But in the code, we should open Basic Details Edition page by clicking the name of an unknown product 🤔 , you might check the small modification done in the PR https://github.com/openfoodfacts/smooth-app/pull/2142


Fixes travis build x.5

Checklist

[x] I have read the Contribution & Best practices Guide.
[x] My branch is up-to-date with the Upstream development branch.

Short description of what this resolves:
Fixes Travis build for event page.
Changes proposed in this pull request:

Changed broken link count to 2 (https://www.imda.gov.sg/industry-development/spaces/pixel-labs and
http://www.xltech.io)

Fixes #1925

@geekyd @pradeepgangwar @srv-twry  please review.


Initialize namespace to 'default' if not specified

If the namespace is not provided in the target kubeconfig context, use
'default'.
Also squashes a bug where the namespace, server flags may have been
ignored during init.
Fixes #116, #49

@jessicayuen I think this has to be rebased, right?

@hausdorff  -- yes, done.

@bryanl Good feedback. Fixed, PTAL.


Feature Requested

PLEASE ADD MATHS OPEERATION +-/* IN DATA

Currently our Extension structure is like for single url there are many action and each Action there is one Element and Value (process). Now to perform mathematics operation it require minimum two value so . In total it will require three element. two from where to copy numbers which need to operate and third element where to put result. So this is not easily adjusting in our extension. So if there is any specific site where you require such operation we can help you create separate extension for same


Automate releases

Following up on the documented release process, we should fully automate package  releases, in concert with Versioned Documentation.
In line with the above, we should do the following:

Merge bugfixes / documentation improvements / etc directly to master. This should:

Run CI, obviously
If CI passes, publish a new PATCH version of changed packages via lerna on the CI server.
Update the x.y documentation in place.
Add an entry to the changelog

Merge new features to the release/x.y branch. This should:

Run CI, again.
If CI passes, publish a new x.y-canary release of changed packages, via lerna
Update the x.y preview documentation in place (or create it if this is the first commit to the branch).
Add an entry to the changelog

Run minor releases via merging release/x.y to master. This should:

I guess run CI, just to be sure ;)
Publish x.y versions for real, via lerna
Change the x.y documentation to be the latest, update all <x.y documentations to point to it and list it in their menus. Update x.y-1 documentation to be "out-of-date".
Update the changelog with a release date, etc.

I think we can do all of that fairly easily, most of the pieces are in place now. It'll be fun!

I think batched updates would be beneficial. Instead of every change merged to master, we can set to release patch updates twice a week.

I'm gonna close this issue since the current process seems to work more or less. We can reopen this if needed.


[3.x] Simplify block component system names + add them to twill:list:blocks

Fixed in https://github.com/area17/twill/pull/2124


Query Failed on connection for client

Hello,
I have just made a fresh install of the gamemode provided here, and I have followed the install instructions word for word.
The issue I am getting is that when I connect to the server I get this error,
Client "Bloody Senatu" connected (*.***.**.***:27005).

[OCRP] Loaded org member data from database.

Query failed! Attempted: SELECT * FROM `ocrp_users` WHERE `STEAM_ID` = 'STEAM_0:1:19783312';

Error: Lost connection to MySQL server during query

Dropped Bloody Senatu from server (An error occured while trying to load your data. Please retry and post on the forums if this problem persists.)

[OCRP] Successfully connected to database.`

I am running on linux, and have got several databases already setup and working for other gamemodes and systems, so I don't think the issue is with the SQL server.
This is a fresh install of Gmod and the Gamemode, with NO edits done other than putting the database connection details in.
This is the full startup log of the server:
`FIND [/home/mounts/cstrike/*.vpk]

ADDING [/home/mounts/cstrike/cstrike_pak_000.vpk]

Adding Path: [/home/mounts/cstrike]

Couldn't load shader dll: game_shader_generic_garrysmod_srv.so

ConVarRef mat_dxlevel doesn't point to an existing ConVar

Game_srv.so loaded for "Garry's Mod"

Initializing Steam libraries for Workshop..

Fetching Workshop Addons..

OCRP: Finished loading money config.

OCRP: Loading organization config...

OCRP: Finished loading organization config.

OCRP: Loading general config...

OCRP: Finished loading general config.

Error! Variable "$basetexture" is multiply defined in material "models/ocrp2/shoes_2"!

HTTP failed - ISteamHTTP isn't available!

Error, bad server command ai_ignoreplayers 1

ConVarRef room_type doesn't point to an existing ConVar

Executing dedicated server config file server.cfg

Using map cycle file cfg/mapcycle.txt.

Attempted to create unknown entity type info_ladder!

Can't init info_ladder

Attempted to create unknown entity type info_ladder!

Can't init info_ladder

Attempted to create unknown entity type info_ladder!

  (Use sv_setsteamaccount to login to a persistent account.)

Server logging enabled.

Server logging data to file logs/L1121017.log

L 11/21/2016 - 17:25:00: Log file started (file "logs/L1121017.log") (game "/home/tcagame/admin/36/garrysmod") (version "6565")

[OCRP] Successfully connected to database.

[OCRP] Loaded org data from database.

Writing cfg/banned_user.cfg.

Connection to Steam servers successful.

   Public IP is <IP_ADDRESS>.

Assigned anonymous gameserver Steam ID [A-1:3107978243(7765)].

VAC secure mode is activated.

Client "Bloody Senatu" connected (*.***.**.***:27005).

[OCRP] Loaded org member data from database.

Query failed! Attempted: SELECT * FROM `ocrp_users` WHERE `STEAM_ID` = 'STEAM_0:1:19783312';

Error: Lost connection to MySQL server during query

Dropped Bloody Senatu from server (An error occured while trying to load your data. Please retry and post on the forums if this problem persists.)

[OCRP] Successfully connected to database.`

If anyone has had this issue or knows how to resolve this, It would be greatly appreciated!
Thanks,
Senatu

This appears to me like an issue with your SQL database. Note the error "Lost connection to MySQL server during query."
Have you tried using a different database server?

I haven't no, what confuses me is that it says its connected during server launch, and after i drop from connection.
I have multiple databases on this server too so I don't think the issue would be the database.
Is there a specific version of mysqloo that is needed as I am using v8.
Or is the host name for the database being <IP_ADDRESS> a issue at all?

after trying it on a differnt SQL server, it has worked fine. I'll look into why it doesnt work on mine but thank you for the assistance Louis

Glad it worked out. You might consider enabling and checking logs on the SQL server that's terminating the connection to see if it's giving a reasons.


Your latest version may not work.

I install your latest version, which is mmdet==2.21.0, causing error ValueError: need at least one array to concatenate .
However, I used to work well in mmdet==2.18.0 with totally the same dataset.
But now I couldn't run the programme even if I install the version back to 2.18.0.
What should I do?

ValueError: need at least one array to concatenate .   i got the same bug....


Improve OCM Controllers' Documentation

User Story
As a developer or end user of the OCM project, I want clear and comprehensive documentation for OCM Controllers, including examples and tutorials, so that I can easily deploy and use the controllers in various scenarios. The documentation should provide step-by-step instructions, code snippets, and configuration samples to guide me through the process.
Epic links:

OCM Simplification and Ease-of-use #390

Definition of Done:

[ ]  Documentation for OCM Controllers is available in the project repository.
[ ] The documentation includes clear and concise instructions for deploying and using OCM Controllers.
[ ] Examples and tutorials cover various use cases and scenarios.
[ ] Code snippets and configuration samples are provided for practical implementation guidance.
[ ] The documentation has been reviewed, refined, and validated for accuracy.
[ ] User feedback has been incorporated, and further improvements have been addressed.

Tasks:

Research existing OCM Controllers' documentation and identify gaps and areas for improvement.
Create a set of example use cases and scenarios where OCM Controllers can be employed.
Develop step-by-step instructions for deploying and using OCM Controllers in the identified use cases.
Include code snippets and configuration samples in the documentation to demonstrate the necessary implementation details.
Review and refine the documentation to ensure clarity, correctness, and consistency.
Test the provided instructions, examples, and tutorials to validate their accuracy and completeness.
Incorporate user feedback and iterate on the documentation to address any further improvements.

Related Issues:

#115  Issue
#115  Issue

Is this only for ocm-controller or for all controllers? And if for all controllers, is this perhaps covered by https://github.com/open-component-model/ocm-website/issues/106?

@Skarlso it is related,
I missed consistent and comprehensive in repo documentation.
@phoban01 could you cross check with open-component-model/ocm-website#106

Ok, so, what about the first question? :)

Is this only for ocm-controller or for all controllers?

All controllers

https://github.com/open-component-model/ocm-controller/pull/298/

https://github.com/open-component-model/mpas-product-controller/pull/90


Builder is returning 0 exit code when crashed

Expected
Builder is not returning 0 exit code when crashed
A related forum thread:
http://forums.bridge.net/forum/bridge-net-pro/bugs/1799
Actual
Builder is returning 0 exit code when crashed
Steps To Reproduce
I would expect that passing any invalid code should reproduce the problem.

The two other issues fixed along with this are slated 1.13 milestone but maybe they can be pulled in 1.12 as well. See related pull request.


jerryscript on stm32l452re

Hello friends,
I want to run Jerryscript on stm32l452re with Zephyr as os. is there any successful implementation guide for it? because I searched and could not find one. if there is any please respond.
Thank you

Hi @wasi999, project Zephyr.js is what you are looking for. Please check https://github.com/intel/zephyr.js
You can ask them of the supported boards as well. CC: @grgustaf

thank you for your response


Add ability to cycle through progress formats on progress report detail page

Use new functionality from https://github.com/SeedCompany/cord-api-v3/pull/2299.

[ ] Add some UI to pick between Percent, Verses, & Verse Equivalents formats.
[ ] Display summary data with the given format.
[ ] Display table data with the given format.
Currently OtherProducts are formatted uniquely (progress / target). Verses & Verse Equivalents don't apply to these. However, Percent would still apply. Maybe in future we could have a separate toggle for Percent & Numerator formats.

How does this sound @sethmcknight?

Sounds great @CarsonF


ipfs: update to latest master

Already running on neptune mercury and nihal.
Yes these micro PRs are annoying -- let's automate it :)

Opened https://github.com/ipfs/infrastructure/issues/206 to track making this easier


dum test

Signed-off-by: Sébastien Han<EMAIL_ADDRESS>

the dmcrypt scenario needs: https://github.com/ceph/ceph-docker/pull/670

This was just to test a PR on ceph-ansible, closing this.


CLID-53: Introduce env var to provide OCP release signature verificat…

Description
Introduce env var to provide OCP release signature verification key
Fixes # CLID-53
:warning: The commented unit test has shown that oc-mirror doesn't stop when signature is not verified: Please advise if this is the requested behavior.
Type of change
Please delete options that are not relevant.

[ ] 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

How Has This Been Tested?

New unit tests have been introduced.
Execute oc-mirror mirror to disk with the following env var exported - logs should not show errors:

OCP_SIGNATURE_VERIFICATION_PK=./tests/custom-ocp-sig-key.asc

Execute oc-mirror mirror to disk with the following env var exported - logs should show errors but not fail:

OCP_SIGNATURE_VERIFICATION_PK=./tests/buggy-ocp-sig-key.asc

2024/04/18 17:41:33  [ERROR]  : unexpected EOF
2024/04/18 17:42:25  [ERROR]  : invalid signature
2024/04/18 17:42:41  [ERROR]  : unexpected openpgp.MessageDetails: neither Signature nor SignatureV3 is set

@sherine-k - make the change and we can get this merged asap. Happy to give it  looks good to me :)

/lgtm


Bootstrap tab overflow

how to fix bootstrap overflow in one line
before:

after:

or like firefox tab:

i want to implement in my project (Admin LTE Base):
http://adminprototype.dedymiswar.com
need help

This is a generic issue, not related with AdminLTE.
You will have better luck if you ask this on stackoverflow, or search for an existing solution on google.
Best regards.

Check #297 and #299.

Jazakumullah brother


Adding a autocomplete support

What do you think? About this totally not finish making autocomplete support

Btw where i can put autocomplete in the typings/Command


Editing a conditional to change the project its in gives an error

When I try to edit a conditional to change its project it gives an error.

Yep looks like it works fine now, thanks!


compatibility with template-haskell >= 2.16

On https://github.com/emilaxelsson/haskell-exp-parser/blob/master/src/Language/Haskell/ParseExp.hs#L92, the TupE constructor now takes [Maybe Exp] rather than [Exp]. The change was introduced in template-haskell-<IP_ADDRESS>.

Thanks for the report!


Provide pre-filtering by id, tags etc.

in issues already mentioned that there are no plans to add filtering functionality as osmium tags-filter or osmium getid or osmium removeid and etc. provided
most of this logic can be implemented wrapping osmium with subprocesses.run
however it would be nice to have python bindings to apply filtering logic

There certainly won't be direct 1:1 bindings for the functions provided by osmium-tool but I do have vague ideas to provide fast pre-filtering directly in pyosmium. There are no concrete plans when this will happen.

#244 implements pre-filtering by tags and for objects without tags. Filtering by ID seems rather odd.


DynamicForm & PeoplePicker - Defaults to user with first name 'Null'

Category
[ ] Enhancement
[X] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.15]
Expected / Desired Behavior / Question
If there is no user selected in a person field the DynamicForm and PeoplePicker should display the field as empty, regardless of staff members names.
Observed Behavior
We have recently had a new staff member start with the first name 'Null', when editing a SharePoint item built with a DynamicForm or PeoplePicker field if a people field is blank it will default to this staff member 'Null'. This doesn't happen for new items, only when editing an existing one.
Steps to Reproduce
This is happening in web parts and form customizers, in 3.15.

Hello @Fantasticles
I would like to see the username, email. Would you please write it here.
Thanks,
Nishkalank

Hi @NishkalankBezawada
For privacy reasons I can't give the full actual email address but username/email is in the format .@
So in this case Null's email is something like<EMAIL_ADDRESS>Thanks

Hi @NishkalankBezawada
For privacy reasons I can't give the full actual email address but username/email is in the format<EMAIL_ADDRESS>So in this case Null's email is something like<EMAIL_ADDRESS>Thanks

Hey @Fantasticles
I have recently submitted a PR-1570 on similar issue. Can you confirm that the issue you are facing is similar to this?
Thanks,
Nishkalank


Subclassing pyclass from python - new returns wrong type

Originally posted by @thesketh in https://github.com/PyO3/pyo3/issues/945#issuecomment-635465330

I am using #[pyclass(subclass)], but ParentClass.__new__ seems to ignore the first argument and always returns an instance of the parent class instead. The only thing it seems I can do with subclassing is create new constructors

This needs investigating, sounds like a possible bug.

A minimum example which reproduces this:
On the Rust side:
use pyo3::prelude::*;

#[pyclass(subclass)]
struct PyClass {}

#[pymethods]
impl PyClass {
    #[new]
    fn new() -> Self {
        Self{}
    }

    fn get_source(&self) -> PyResult<&'static str> {
        Ok("Rust")
    }
}

#[pymodule]
fn example(_py: Python, m: &PyModule) -> PyResult<()> {
    m.add_class::<PyClass>()?;
    Ok(())
}

On the Python side:
from example import PyClass

class Class(PyClass):
    def __new__(cls):
        return super().__new__(cls)  # This should return an instance of Class

    def get_source(self):
        return "Python"

a = PyClass()
print(a.get_source())
# Rust
b = Class()
print(b.get_source())
# Rust

I'm not sure we can fix it :thinking:
Other C-native types like dict behave the same:
In [9]: class SubClass(dict):
   ...:     def __new__(cls):
   ...:         return super().__new__(cls)
   ...:

In [10]: SubClass()
Out[10]: {}

Interesting. I have a feeling that C++'s pybind11 makes subclassing possible somehow, so I'll take some time to investigate this someday...

@kngwyu I'm not sure the dict repr proves that the object isn't of type SubClass.

@birkenfeld
Ah, you're right, good catch.
In [6]: class SubClass(dict):
   ...:     def __new__(cls):
   ...:         return super().__new__(cls)
   ...:
   ...:

In [7]: c = SubClass()

In [8]: c.__class__
Out[8]: __main__.SubClass

I found a problem with our tp_new and am trying to fix it.


WARNING:tensorflow:AutoGraph is not available in this environment: functions lack code information.

Hi
I'm using the executable application .exe and I get the following error "WARNING:tensorflow:AutoGraph is not available in this environment: functions lack code information. This is typical of some environments like the interactive Python shell. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/limitations.md#access-to-source-code for more information." I'm concern cause it says functions lack code information, reason why I think I'm getting high values for val_loss, for instance:
Epoch 5/100
1/5 [=====>........................] - ETA: 0s - loss: 538.5345 - accuracy: 1.00
5/5 [==============================] - ETA: 0s - loss: 673.7310 - accuracy: 1.00
5/5 [==============================] - 0s 40ms/step - loss: 673.7310 - accuracy:
1.0000 - val_loss: 802.8627 - val_accuracy: 1.0000
Epoch 6/100
1/5 [=====>........................] - ETA: 0s - loss: 800.9542 - accuracy: 1.00
4/5 [=======================>......] - ETA: 0s - loss: 797.1685 - accuracy: 1.00
5/5 [==============================] - 0s 33ms/step - loss: 776.6075 - accuracy:
1.0000 - val_loss: 823.5990 - val_accuracy: 1.0000
I've manage to code a script as a loop for executing the application 100 times, and the lower value I got was close to 300, which I guess it is still high, and it is maybe due to autograph error on logging to source code. I even change to Ununtu 22.04 OS, so I can easily manipulate the python scripts, nevertheless no success; I also built tensorflow from source and no success either. I edited autograph module according directions from webpage provided and didn't work, or I don't know what I missed; but I'm quite confused because despite the perfect accurracy there's a high value loss.
Thanks in advance

Hi
I was wondering if you could help me out with this error, I haven't been able to play lotto with a favorable confidence criterion due to the warning. I'm really disappointed since i bought the windows executable and no support at all

This is typical of some environments like the interactive Python shell. Does not affect ai training. Support comes only with the membership.


Make SQS data structure more reusable

At the moment, the SQSClient implementation has dedicated types for each response of each service's endpoints. Ideally, we should try to align with what's been made in other services clients and replace those specific types with more general ones representing the concepts at play, such as a Queue or a message.

Addressed in 19022a1cfede701a46c221631f39aa21f78e628f


Edit plugins and IDEs

Sublime Text is not here: https://tip.golang.org/doc/editors.html

Turns out the editors on that page is based on popularity from the Go Survey last year:
https://groups.google.com/forum/#!topic/golang-dev/KRpmMzb-hH4


Assumbtion that document is the owner of the host node breaks focuse behavior

I'm running into focusing issue when I code mirror binds to the node in the iframe. I believe it's due to assumption like haw isFocused checks if activateElement is corresponding input node:
https://github.com/codemirror/CodeMirror/blob/58acfddaf32ee776bf0756c20979dda593a6182c/src/util/dom.js#L67-L80
This invariant does not holds true in the described scenario. I'm not entirely sure what exactly fails in terms of focusing, but my guess is it has to do something with an assumption of code being loaded in the same window as node code-mirror binds to.

I'm trying to figure out what exactly is going on, but so far I'm not able to figure out why typed key does seem to be dropped.

One thing I noticed is that keydown handler being invoked but not the keyup event which makes me wonder if maybe document containing codemirror is stealeaning focus from the document where editor is rendered which mabye prvents event from being dispatched.

There is, for reasons I'm not sure I want to really think about, a window.focus() in the mousedown handler, so that is entirely possible. It seems like it would at least make sense to change that to use the editor's own window. Could you see if that helps here?


fix: isQuoteSellAmountBelowMinimum

Description

Manually re-applied diff from
https://github.com/shapeshift/lib/pull/1235 after monorail. Refer to the
description in the lib PR for more info.

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #4220   👈

This comment was auto-generated by Graphite.


Provide a way to configure hierarchical quorums

Motivation:
For multi-data center replication, hierarchical quorums could reduce total
write transaction time than a single quorum.
See #534
Modifications:

Add groupId and weight to Zookeeper replication config

Result:

You can now use hierarchical quorums for the embedded Zookeeper of Central Dogma
Closes #534

Could you also add tests that:

Writing a file to the replica which is participating in the quorum in hierarchical mode.
Writing a file to the replica which is not participating in the quorum in hierarchical mode.

Writing a file to the replica which is not participating in the quorum in hierarchical mode.

I think writing a file is not strongly related to whether a replica has participated or not. Because

A replica which received a command execute the command locally (which is not related to ZooKeeper).
After the job is completed, the command is saved to the ZooKeeper cluster via Curator.
Other replicas, which listen to ReplicationLog from a Curator client, will execute the command when the event is relayed.

The ZooKeeper server status and mode are transparent from Centra Dogma replicas because the replicas only commute with others via the Curator client.

Anyway, I will add some tests for it. :-)

Anyway, I will add some tests for it. :-)

Yeah, let's see how it goes. 😄

Awesome. One step closer to multi-datacenter support :+1:

Thanks for reviewing 😀


Lab 3: Can't achieve 90% accuracy

Hi, thanks for the course. I faced a problem, that I can't achieve 90% accuracy on EMNISTLines dataset, no matter what I try to do. I even tried to simply execute the initial architecture without any changes, but I get no more than 82% of accuracy. For other experiments in this lab, the accuracy is even worse than it's written in the corresponding readme. Could you please, point out, what I'm doing wrong?
I simply clone the repo and executed this line:
python training/run_experiment.py --max_epochs=10 --gpus=1 --num_workers=4 --data_class=EMNISTLines --min_overlap=0 --max_overlap=0 --model_class=LineCNNSimple --window_width=28 --window_stride=28

Did you ever try increasing the max_epochs?

I found the solution and it was just to change the dimension in softmax function for accuracy prediction, as described here: https://github.com/full-stack-deep-learning/fsdl-text-recognizer-2021-labs/issues/27#issue-869823325


.returns parameter should not have to implement Clone if quantification is Once

This is solvable, but requires a refactoring of the public types inside build. What needs to be done is that the type returned from .returns() has to be 100% strongly typed, and only type-erased in the next quantification step.

Looking forward to this landing! Right now, I can't mock functions returning anyhow::Result because Result don't implement Clone. And unfortunately, most of the functions in my program return results.

For now (0.3.x) it's possible to use .answers(|_| Ok(..))  instead of .returns(..). This is already implemented in the 0.4-alpha versions (the next branch), but I'm looking at some other potential improvements before 0.4 gets released.

Version 0.4.0 which fixes this issue has been released. Whenever a method is mocked using .some_call or .next_call, (which kind of implies that it should be called one time) there is no Clone bound on the return value.
Will soon release a new version of entrait with support for the new unimock version.


Ability to flag user-defined functions as "direct-only" or "innocuous"

I'd like to be able to define custom functions or aggregates and mark them as SQLITE_DIRECTONLY or SQLITE_INNOCUOUS.

What's your use case for SQLITE_INNOCUOUS?
According to the SQLite3 docs:

Developers are advised to avoid using the SQLITE_INNOCUOUS flag for application-defined functions unless the function has been carefully audited and found to be free of potentially security-adverse side-effects and information-leaks.

SQLITE_DIRECTONLY is now available in better-sqlite3 version 7.3.0 via the directOnly: true option. I'm hesitant on adding SQLITE_INNOCUOUS until I understand a good use-case.

Here's a simplified example of what I'd like to do:
const Database = require('better-sqlite3')
const fnv = require('@sindresorhus/fnv1a')

const db = Database(':memory:')
db.pragma('trusted_schema=off')
db.function('fnv', { deterministic: true, /* innocuous: true */ }, fnv)

db.prepare(`
	create table Strings(
		id integer primary key not null,
		string text not null,
		hash int not null as (fnv(string)) stored
	)
`).run()

db.prepare(`insert into Strings(string) values(?)`).run('Hello, world')


CherryPick into dev15.8 (Fixes #5504 - 15.8 Internal MSBuild Error (#5557))

The issue is that when we do a build in the ide we copy all of the msbuild global loggers into the project.  This behavior is incorrect and causes them to be used multiple times during a build.  Those global loggers are not required or in some cases not designed to be reusable in that way.  Causing the internal error.
The resolution is to not use the Global Loggers in our design time build.

@dotnet-bot test Ubuntu16.04 Release_default Build please

@dotnet-bot test Ubuntu16.04 Release_default Build please

@dotnet-bot test Ubuntu16.04 Release_default Build please


Add Google Maps Geolocation device tracker

Description:
Add Google Maps Geolocation device tracker.
Added a new constant to define max radius of acceptable accuracy
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#TODO
Example entry for configuration.yaml (if applicable):
device_tracker:
  - platform: gmaps
    api_key: $GoogleMapsAPIkey
    id: $device_name
    accuracy: $meters

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[X] New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
[X] New dependencies are only imported inside functions that use them ([example][ex-import]).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

@icovada Thanks for this PR. This component works well for me, and I would very much like to see it in the official home assistant releases. I wonder why this PR got closed. I will be happy to help.
(I already share my location with Google maps, and to not drain my phone battery, I don't want to share it with another app like Locative or OwnTracks, which HomeAssistant supports.)

Unfortunately this is not the correct API! I too thought that I was getting my phone's location (though with a weird 81 km radius of precision)
What this code does instead isn't asking Google "where is this user", it's asking "Where am I?"!!
There used to be an API to ask "where is this phone", called Google Latitude. I remember they would even give you the whole iframe code to embed a google map in your site. Apparently in 2014 they scrapped everything and there is no official way to get this data.
I would be very happy if someone found a way, I don't want to install Owntracks either

As suggested at http://stackoverflow.com/a/32343280/391753, the url https://www.google.com/maps/timeline/kml exports my recent Google maps timeline as a .kml file, when I am logged in.
Then, as suggested in this blog, I exported my cookies to a file cookis.txt. Then, the following command gives me my location timeline:
curl -b cookies.txt https://www.google.com/maps/timeline/kml

Interesting, thanks, I'll give it a look

OK, I've found how to do it, and I have working code, but I'm stuck. I have to import a dictionary into the module and I can't find how to do it, it seems like it gets changed to str

Great! If you share your code, I and others may be able to help.

#4131


2.1 hotfix bugs

Addressing hot fix bugs against our 2.1 version of the ODH Dashboard.
Directly for the RHODS 1.16 rebuild.

@andrewballantyne Are the changes from #543 required for this hotfix?

@andrewballantyne Are the changes from #543 required for this hotfix?

I believe so -- I thought it was the problem with the build which is what Chris implemented to fix it.

@andrewballantyne Are the changes from #543 required for this hotfix?

I believe so -- I thought it was the problem with the build which is what Chris implemented to fix it.

Ignore my comment I missed that you pulled that commit in before my comment

Downstream effort was merged. Merging effort https://github.com/red-hat-data-services/odh-dashboard/pull/237


feat: move gateway settings onto Studio SOFIE-1330

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature/refactoring

What is the current behavior? (You can also link to an open issue here)

Settings for PeripheralDevice subdevices live in the PeripheralDevice documents and are configured on each gateway in the ui.
The new blueprints upgrade and config flows are unable to define any subdevices, which they were previously capable of with the old migrations system.

What is the new behavior (if this is a feature change)?

The settings for these subdevices has been moved off the gateways and onto the studio document, using the ObjectWithOverrides that we use elsewhere. This lets studio blueprints define defaults, and for someone to configure them in the UI to fill in the remaining properties.
The 'Attached Subdevices' settings section for the Studio has been expanded to house these subdevices, grouped by the gateway category they belong to.

SubDevices can be added and removed (same as we allow for Mappings). Because they reside on the document now, there is a dropdown to select which PeripheralDevice they belong to. Unassigned is an allowed option, and is how they will be set when created by blueprints.
Due to the ui being built by config manifests from the gateway, when set to unassigned the settings cannot be viewed or edited.
Once assigned to a gateway, they look the same as before

The PeripheralDevice page has been simplified as a result:

Other information:

Providing these subdevices from blueprints is optional, which allows existing blueprints to work unmodified. The existing config gets copied over to be pure overrides, so will not be lost when rerunning the applyConfig.
The settings of the device, outside of the subdevices still resides on each PeripheralDevice. These are less likely to be wanted to be set by blueprints, and were outside of the scope of this task.
Some refactoring of server-core-integration was done as part of this, to help minimise the amount of unused data being written into mongo for each of the subdevices.
Status

[ ] Code documentation for the relevant parts in the code have been added/updated by the PR author
[ ] The functionality has been tested by the PR author
[ ] The functionality has been tested by NRK

Codecov Report

:exclamation: No coverage uploaded for pull request base (feat/peripheral-device-tidying@0a82147). Click here to learn what that means.
Patch has no changes to coverable lines.

:exclamation: Current head f295a16 differs from pull request most recent head a4ba8bd. Consider uploading reports for the commit a4ba8bd to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@                        Coverage Diff                        @@
##             feat/peripheral-device-tidying     #907   +/-   ##
=================================================================
  Coverage                                  ?   81.02%
=================================================================
  Files                                     ?      131
  Lines                                     ?    25845
  Branches                                  ?     2064
=================================================================
  Hits                                      ?    20940
  Misses                                    ?     4881
  Partials                                  ?       24

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


Feature Request: Ensure Voila Render Copies Notebook to Current Working Directory

Description:
When using the "Open a predefined notebook" option, a copy of the notebook is created in the current working directory (cwd). However, when using the "Open a notebook with Voila" option, no new file is created. Instead, the working directory is changed to the location of the template, which is inconsistent with the behavior of the predefined notebook option.
Desired Behavior:
I would like the behavior of the "Open a notebook with Voila" option to be consistent with the "Open a predefined notebook" option. Specifically, when a user opens a notebook with Voila, a copy of the template should be created in the cwd. The Voila rendering should use this copied notebook, ensuring that the cwd remains unchanged.
Current Behavior:
"Open a predefined notebook" creates a copy of the notebook in the CWD, maintaining the CWD as expected. "Open a notebook with Voila" renders the template without creating a copy and changes the working directory to the location of the template.
This feature would enhance the usability of Voila when used with predefined notebooks and reduce confusion around changing working directories.
Thank you for considering this feature request and thank you for this package - it makes JupyterLab even more accessible to less experienced users.
I'm happy to create a PR and implement this feature if you agree with the request.

Hi. The notebook-voila option is used to serve the dashboard without exposing the notebooks. Copying notebook files to your CWD defeats this purpose.
In 0.3.0 I added a new option for the notebook launcher (https://jupyter-app-launcher.readthedocs.io/en/latest/usage.html#open-a-predefined-notebook). now you can select the document widget used to open your notebook. The following config will copy the notebook to your CWD and open the notebook using Voila Preview widget
- title: Notebook example
  description: Example of opening a notebook in dashboard mode without Voila
  type: notebook
  source: ../../samples/sample.ipynb
  cwd: ../../samples
  args:
    widget-type: 'Voila Preview'
  catalog: Notebook catalog


feat: Add notification panel

Description
Adds the notification button to the header and the notification panel.
Task Item
Closes #4462
Screenshots

Coverage increased (+0.07%) to 55.29% when pulling 61ac0b83e3317310634fbc7994ac830bab7dce32 on tdurnford:feature/notification-panel into 2a89e745b6b4d0e54c98340f5757e38e447faa51 on microsoft:main.


Tweak additional hint text to living independently question in physical health

Missed a bullet point on managing own medication from previous PR

Changes in this PR
Screenshots of UI changes
Before
After
Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Are any changes required to the e2e tests?
[ ] If you've added a new route, have you added a new
auditEvent? (see server/routes/apply.ts for examples)
[ ] Are there environment variables or other infrastructure configuration which needs to be included in this release?
[ ] Are there any data migrations required. Automatic or manual?
[ ] Does this rely on changes being deployed to the CAS API?

Post merge checklist
Once we've merged it will be auto-deployed to the dev environment.
Find the build-and-deploy job in CircleCI.
Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

Closing pull request to try again with right formatting