StimulusReflex is not compatible with the standalone ActionCable server

Bug Report
Describe the bug
Thanks to @javid-gulamaliyev, we were able to figure out that in the current version of StimulusReflex you can't use StimulusReflex and the Session Store if you are running ActionCable as a standalone server.
It fails to commit the session with:
Failed to commit session! undefined method `commit_session' for nil:NilClass
/usr/local/bundle/gems/stimulus_reflex-3.5.0.rc2/app/channels/stimulus_reflex/channel.rb:101

The issue is this part: https://github.com/stimulusreflex/stimulus_reflex/blob/52aa993165a656eccbe2cefaca9f5388509d014d/app/channels/stimulus_reflex/channel.rb#L100
reflex.request.session is just available in the web-server process and since this is executed in the context of the separate ActionCable server process it has no access to the session, which is also stated in the Rails docs.
> The WebSocket server doesn't have access to the session, but it has access to the cookies. [...]
So I'm not sure if we can actually support the standalone ActionCable server with StimulusReflex, but either we could improve the commit_session method in channel.rb to check if we actually have access to the session and if not show a more helpful warning or trying to detect if ActionCable is running in the standalone mode so we can print a warning and warn the user early.
To Reproduce

Create new Rails app
Run the StimulusReflex installer
Configure the ActionCable standalone server
Configure the session_store in your environmentRails.application.configure do
  config.cache_store = :redis_cache_store, { url: ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } }
  config.session_store :cache_store, key: "_sessions_development", compress: true, pool_size: 5, expire_after: 1.year
end

Expected behavior
Either it should just work and start to commit to the session and don't show the error or it should catch the exception and warn the user that it might be caused by running the ActionCable server in standalone mode.
Versions
StimulusReflex

Gem: 3.5.0.rc2
Node package: 3.5.0-rc2

External tools

Ruby: 3.2.2
Rails: 7.0.4
Node: 18.10.0

also the actioncable settings are not honored from root dir app path, unless you reverse proxy the WS:// with port included

@mckaygerhard this sounds like a different issue. Just for the record, would you mind sharing what you setup to make it work in your case?

Hi @marcoroth thanks in advance i will detail only relevant steps and at the end i put a reference issue pretty similar but different in context (pdfjs gem)
First using a vanilla project
create a project
minimal controler with "hello"
change root_path as described in documentation:  https://guides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root
In config/application.rb
module App
 class Application < Rails::Application
   ....
   config.relative_url_root = '/applicants'
   ...
 end
end

In config.ru file:
map Rails::Application.config.relative_url_root || "/" do
 run Rails.Application
end

After run rails s is working and serving not from http://localhost:3000 but for http://localhost:3000/applicants as must be.. great! now lest test using the integrated ActonCable and stimulus reflex (that i am a newbie but seems not so big issue)
Second try using a more complext project with stimulus
AS i read seems stimulux reflex uses web socket so it depends of such recuest to ws://localhost:3000 so lest assume all the steps and going to the details of the config root path:
After implementing stimulus reflex bla bla configure a root path (with default root set to "/" it works) change root_path as described in documentation:  https://guides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root
In config/application.rb
module App
 class Application < Rails::Application
   ....
   config.action_cable.disable_request_forgery_protection = true
   config.relative_url_root = "/applicants"
   config.action_cable.url = "ws://localhost:3000/applicants/cable"
   ...
 end
end

In config.ru file:
map Rails::Application.config.relative_url_root || "/" do
 run Rails.Application
end

This seems do not work and action cable stimulus reflex just request always to ws://localhost:3000/applicants/cable event ws://localhost:3000/cable
my conclusions based on that:
I concluded one of two things:

Is a bug in stimulus reflex that due rails is a Domain oriented only framework unfortunatelly, so stimulus reflex (and also pdfjs gem too) assumed always a hijaked root from service web
Is only a bug in vage documentation from both rails and stimulus reflex due missing ways to setup a non domain oriented application and as described in https://www.phaedrasolutions.com/blog/how-to-config-subdirectory-with-rails-nginx-unicorn and also well explained at https://jlintusaari.net/deploying-rails-application-to-subdirectory/

For referece @marcoroth  check this similar bug at the pdfjs fixed issue: https://github.com/senny/pdfjs_viewer-rails/issues/74
I am from rails 3 when redmine was started (now we have the great gitea/forgetto/gogs) and years later i found those several unflexible things..

Does anyone have a minimal reproducible example for the original issue? If the standalone server can access Redis, and it has some environment details on the connection I think it should be possible to make a workaround for this... :thinking:

Does anyone have a minimal reproducible example for the original issue?

i already make a reproducible kind of.. as example of that stimulus reflex still is not 100% honoring the RAILS configurations

If the standalone server can access Redis, and it has some environment details on the connection I think it should be possible to make a workaround for this... 🤔

this original bug implicit more than only access to resources.. as i explain, address resources are not accedible so its a clear bug..
you @Matt-Yorkley  can help up making your own test of course.. just following comments

Here's a Gist with a example setup for StimulusReflex with ActionCable running in Standalone mode: https://gist.github.com/Matt-Yorkley/3a523be8597f20173ba91a872250e69d

hi @Matt-Yorkley  your cited example has   map "/" do and if you use subpaths like   map "/myapp" do  the the action cable will break and fails..  as well explained at https://jlintusaari.net/deploying-rails-application-to-subdirectory/

You can use map "/" if your mount point is set to config.action_cable.mount_path = nil or set it to map "/whatever" and use config.action_cable.mount_path = "/whatever", and it'll work either way, it's a separate ru file from the main app. There's a meta tag you have to set in the head as well (mentioned in the docs) so the client side knows what to connect to.

and use config.action_cable.mount_path = "/whatever", and it'll work either way, it's a separate ru file from the main

a meta tag? Do you mean that for stimulus/reflex is not enough to set config.action_cable.mount_path = "/whatever",? Which documentation are you referring to? Stimulus documents or rails documents?
because I do all the things that https://jlintusaari.net/deploying-rails-application-to-subdirectory/ mentions there, "tricks" needed to implements property that way... it is already explained in said article


add a standard topic tag (redundant to routingKey tag)

NetflixOSS » suro » suro-pull-requests #72 FAILURE
Looks like there's a problem with this pull request

suro-pull-requests #240 FAILURE
Looks like there's a problem with this pull request

Change looks good. (Except for the failure of testNormailizeRoutingKey - but this code does not affect that).


build problem on Windows10.

❓ Questions and Help
python: 3.6.0
torch: 1.7.0
the problem was shown as this:
FAILED: D:/GitHub/LocalFiles/detectron2/build/temp.win-amd64-3.6/Release/GitHub/LocalFiles/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.obj
and the detail is this:
D:/Anaconda3/envs/mainenv/lib/site-packages/torch/include\torch/csrc/jit/ir/ir.h(1347): error: member "torch::jit::ProfileOptionalOp::Kind" may not be initialized
1 error detected in the compilation of "C:/Users/aac/AppData/Local/Temp/tmpxft_000049ec_00000000-7_deform_conv_cuda.cpp1.ii".
deform_conv_cuda.cu
ninja: build stopped: subcommand failed.
If some setting is not prepared? For help.

The answer has been found.
comment "static constexpr Symbol Kind" in "/torch/include/torch/csrc/jit/ir/ir.h"

I am using a windows 10 machine with the following configuration
NVIDIA GeForce GTX 1650Ti
miniconda3
python 3.8
CUDA 11.1
PyTorch 1.8 downloaded directly & installed from PyTorch.org for CUDA-11.1
I have tried to install detectron2 based on the steps given in
https://dgmaxime.medium.com/how-to-easily-install-detectron2-on-windows-10-39186139101c
I have succesfully tested PyTorch installation however in the link given when I come to Step 5
that is
pip install -e .

My setup of detectron2 fails and gives me a huge list of errors that start with
Running setup.py develop for detectron2
ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\miniconda3\envs\torch\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\detectron2-windows\setup.py'"'"'; file='"'"'C:\Users\user\detectron2-windows\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: C:\Users\user\detectron2-windows
Complete output (3245 lines):
running develop
running egg_info
writing detectron2.egg-info\PKG-INFO
writing dependency_links to detectron2.egg-info\dependency_links.txt
writing requirements to detectron2.egg-info\requires.txt
writing top-level names to detectron2.egg-info\top_level.txt
reading manifest file 'detectron2.egg-info\SOURCES.txt'
.... which goes on for almost hundreds of lines. Any help will be really appreciated. Thanks


[FancyZones] Zones are drawn in two different rendering orders for editor vs shift-display

Bug: However, when the zones are drawn to an end user, it is reversed.  The first item is on top.  This is backwards based on how the editor was drawn.  See screenshot below

Steps to recreate:

Create a layout with 4 overlapping zones.  (see screenshot)
Apply zone
Hold shift and see how the ordering now has reversed it self.  First zone is now on top.

This also affects the default zones.  Look at the Focus predefined layout.

Fix available in 0.15.0 https://github.com/microsoft/PowerToys/releases


URL not working without 'www' after 'https://'

Before opening, please confirm:

[X] I have checked the custom domains troubleshooting guide.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
d2k8ta4b8b9p58
Region
us-east-2
Step
Domain already connected
Status
Failed
Issue or question
Currently my domain is working fine when entering 'https://www.domainName.com'.
The problem is when removing the 'www'. When I enter 'https://domainName.com', the site does not load.
It does work with 'http' with and without the 'www'.
Im attaching a screenshot of my "Domain Management" configuration and my "Rewrites and redirects" config.

Error message

Additional information
No response

Hi @NicoVelazquez 👋🏽 thanks for raising this issue. The http://domain.com url is working because the traffic is being redirected to https://www.domain.com:

I have a few questions that can help with investigating this:

What DNS provider are you using?
Do you have an ANAME record configured to point to your root domain? If you are using a 3rd party provider, you will have to create an ANAME record that points to your root domain. This is outlined in step 12: Add a custom domain managed by a third-party DNS provider

Hi @hloriana,
Thanks for your response.
Im currently using GoDaddy. GoDaddy does not let me set ANAME records.
Nevertheless, I used to have an application hosted in Amplify and didn't have this issue.
Is there any solution to this? What is strange to me is that when configuring the domain in AWS Amplify, there is a toggle to activate 'https://domain.com' to  'https://www.domain.com', but it doesn't appear to be working. Im attaching a screenshot of this toggle.

I've already solved this issue by transferring my domain host to CloudFlare. Apparently Cloudflare fixes this issue by using what is called CName flattening that works like having an ALIAS (they use this by default - you don't have to do anything else than configuring your nameservers and adding DNS records.


custom getter for salad ingredients

Turnip greens and cabbage are not listed as vegetables - this should be avoided by using a custom getter to require ingredients and disallow others


[Need to verify before merge] Refactor fitToWidth => editMode to support ballerina-lang#9667

Purpose

Refactor fitToWidth => editMode in playground widget to support changes in https://github.com/ballerina-platform/ballerina-lang/pull/9667/commits/4f2f0dcb57c7f1da576b6eddc37a169150f160d2

Related PRs

https://github.com/ballerina-platform/ballerina-lang/pull/9667

Special notes

Need to verify before merge: @kaviththiranga

Will test this properly and release with next widget update. Do not merge yet.


Unify tests and lints - WIP

Unify tests and lints at base of new monorepo.
Update packages
Uncomment old component/ tests
etc.
WIP

FYI @rhyolight the numenta-web README.md setup instructions will have some breaking  changes with this merge, FYI.

looking good. I'll update dox this weekend @rhyolight


Throw exception if required field is missing

For discussion. LtiRequest inspector examines an LtiRequest and reports on potential problems.

@andyfmiller this is actually an issue #40 :simple_smile:

Trying a different approach...moved CheckForRequiredLtiParameters to LtiRequest so it can be used by both the TC (before launch) and TP (after parsing). See SimpleLti.ConsumerController.Launch and SimpleLti.ProviderController.Tool for example.
If this seems like a better approach, then I'll add something like CheckForRequiredOutcomes1Parameters and CheckForRequiredOutcomes2Parameters. What do you think?

Here is a link to the new CheckForRequiredLtiParameters method.

@andyfmiller looks good for me.

Moved to NetCore source.


include notebook tutorials in sphinx docs and various star protocols manuscript updates

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 47.772%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
296

Relevant Lines:
555

💛  - Coveralls


IntoParams derive fixed

Automatic implementation of IntoParams using derive changed to avoid using the 'use' keyword.
Without this, we cannot use the derive in more than one struct in the same module, due to the multiple imports.
New test created and example fixed. #123

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

-8 of 23 (65.22%)  changed or added relevant lines in 2 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-71.09%) to 5.32%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

examples/insert.rs
0
8
0.0%

Files with Coverage Reduction
New Missed Lines
%

examples/insert.rs
2
2.86%

Totals

Change from base Build<PHONE_NUMBER>:
-71.09%

Covered Lines:
134

Relevant Lines:
2519

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

15 of 23 (65.22%)  changed or added relevant lines in 2 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-71.09%) to 5.32%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

examples/insert.rs
0
8
0.0%

Files with Coverage Reduction
New Missed Lines
%

examples/insert.rs
2
2.86%

Totals

Change from base Build<PHONE_NUMBER>:
-71.09%

Covered Lines:
134

Relevant Lines:
2519

💛  - Coveralls


Added a additional check if the posix extension is loaded

Added a check to prevent a thrown exception when the posix is not loaded in php.ini

:+1:

@jdecoster thanks for fixing this issue!


Many pages giving "500 Internal Server Error"

Trying to open the card database (as well as several other areas of the site) results in an error.

Same issue here, "Cards" and "Factions" as well as card search gives the same error.

Seems resolved now :)

I'm still getting this error when I click on user names. I'm also not seeing anything populating when clicking on a deck. Thanks for the great site!

Was resolved at the time, so closing this issue.


📃: Add a Spotify clone

🔴 Title : Spotify clone
🔴 Tech stack : Html css Js
🔴 Objective :
🔴 Summary :
📸 Screenshots

✅ Details to Include When Taking the Issue:
Name : Hamza Mubin
Participant Role (Specify the Open Source Program name, e.g., GSSOC, Hacktoberfest, etc.): gssoc-ext, hactoberfest

Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎

Please assign this to me @Hamza1821 under gssoc-ext,hactoberfest

already present


Improved error message when a gem is not installed

Fixes https://github.com/fastlane/fastlane/issues/1339

Updated :+1:

:cool: :ship: it

Thanks :+1:


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[otbn/doc] CSR and WSR rendering

Description
The generated CSR and WSR tables in otbn docs aren't rendering correctly.

CSR Table Rendered

WSR Table Rendered

Could markdown be used instead of HTML?

The problem appears to be due double new lines in the html. My syntax highlighting shows it quite nicely.


suggestion to improve ease of entering text in boxes

Manage Groups
Would be good to add some 'background text' to the 'create group' box, something like:
"Enter the name of your group here"
Would be like the "Enter your code in here" text on the 'My Account' page to link with teachers

Gameboard Builder
In the 'Game board title' box, the text "Game board title" appears, but you have to highlight it and replace it, whereas the text to the left "Id (optional..." is just background - wherever you click within the box, the cursor appears at the left of the box.

Cheers,
Ally

Dear Ally,
In answer to 2.  The difference is because a title is necessary an id is not.
Lisa
From: allydavies<EMAIL_ADDRESS>Sent: 10 April 2015 13:20
To: ucam-cl-dtg/isaac-app
Subject: [isaac-app] suggestion to improve ease of entering text in boxes (#387)

Manage Groups

Would be good to add some 'background text' to the 'create group' box, something like:
"Enter the name of your group here"
Would be like the "Enter your code in here" text on the 'My Account' page to link with teachers

Gameboard Builder

In the 'Game board title' box, the text "Game board title" appears, but you have to highlight it and replace it, whereas the text to the left "Id (optional..." is just background - wherever you click within the box, the cursor appears at the left of the box.
Cheers,
Ally
—
Reply to this email directly or view it on GitHub https://github.com/ucam-cl-dtg/isaac-app/issues/387 .  https://github.com/notifications/beacon/AFqB9AYRVaJA1kC1b_sx2CZAxj_8TSvkks5n97eDgaJpZM4D9-mN.gif

Sorry, for 2 I realise I didn't actually suggest what I'd like:
I'm suggesting that the prompt text in the right hand box (the game board
title) should be formatted exactly as the "Enter your code in here" is, and
then the teacher would just click anywhere in the box and type, rather than
click and find they're typing in the middle of the text that was there
telling them what to do.
Cheers
Ally
Mr Ally Davies
Hub Events Manager, Isaac Physics http://www.isaacphysics.org
Cavendish Laboratory
Cambridge University
J J Thomson Avenue
Cambridge
CB3 0HE
Tel: 01223 747036
Email<EMAIL_ADDRESS>Webpage: http://isaacphysics.org
On 10 April 2015 at 14:25, Lisa Jardine-Wright<EMAIL_ADDRESS>wrote:

Dear Ally,
In answer to 2. The difference is because a title is necessary an id is
not.
Lisa
From: allydavies<EMAIL_ADDRESS>Sent: 10 April 2015 13:20
To: ucam-cl-dtg/isaac-app
Subject: [isaac-app] suggestion to improve ease of entering text in boxes
(#387)

Manage Groups
Would be good to add some 'background text' to the 'create group' box,
something like:
"Enter the name of your group here"
Would be like the "Enter your code in here" text on the 'My Account' page
to link with teachers

Gameboard Builder
In the 'Game board title' box, the text "Game board title" appears, but
you have to highlight it and replace it, whereas the text to the left "Id
(optional..." is just background - wherever you click within the box, the
cursor appears at the left of the box.

Cheers,
Ally
—
Reply to this email directly or view it on GitHub <
https://github.com/ucam-cl-dtg/isaac-app/issues/387> . <
https://github.com/notifications/beacon/AFqB9AYRVaJA1kC1b_sx2CZAxj_8TSvkks5n97eDgaJpZM4D9-mN.gif>
—
Reply to this email directly or view it on GitHub
https://github.com/ucam-cl-dtg/isaac-app/issues/387#issuecomment-91556422
.


SQL-ID not found

What version of pinpoint are you using?
master/v1.6.2.
Describe your problem
in web UI.I found SQL-ID not  found in almost all application. we use mysql.how was that happen .why the collector can not collect sql?do you have any idea?
What have you done?
Steps you have taken to trigger the problem, for example:

Launched application with agent
Tried tracing sql statement
SQL-ID not found shows up in the web UI

we set log level as WARN .so there is no useful log.can you give some suggest about this.

Hello, @yale2
why don't you try using the latest stable version such as v1.8.0
the latest version has much more coverage as you can expect.
Older versions may have not adopted the changes in mysql.
If it still has errors for v1.8.0. Please check the logs and let us know if there are any suspicious results.

ok,I'll try 1.8.0. thanks.

We already have found the same problem!

Hello, @ITGrocery
It happens when there isn't any metadata of the SQL.
which version of pinpoint are you using?
and is it happening for all SQLs that you tried to see on Pinpoint-web?

No,one application found the problem ,the others don't have this problem.The data of 'SqlMetaData_Ver2' will be lost after two months, Can it will cause the problem?

When I drop the table of 'SqlMetaData_Ver2' using command,the web page will show 'SQL-ID not found',but whe I restart the tomcat,the problem will dismiss.

I found the reason, the application has runned at least half a year,but the data of 'SqlMetaData_Ver2' has already been valid.Can you will solve the problem in the future?

pinpoint怎么监控C#工程

pinpoint怎么监控C#工程


Write or append data  to an Existing excel file say in assets folder of angular

var Excel = require('exceljs');
var workbook = new Excel.Workbook();
let url = "/assets/resources/template.xlsx";
workbook.xlsx.readFile(url )
.then(function() {
var worksheet = workbook.getWorksheet(1);
var row = worksheet.getRow(5);
row.getCell(1).value = 5; // A5's value set to 5
row.commit();
return workbook.xlsx.writeFile(url);
})

This is the repo for a different project, you probably meant to ask https://github.com/exceljs/exceljs/issues


Unable to change default datastore for job

I try to change default datastore for job by setting job.settings.default_datastore = "azureml_v2_default", where azureml_v2_default is datastore name, and it is default ds also. But, when I submit job code files are storing inside another storage account-datastore. I have printed job.settings.default_datastore and its uri created correctly. + another issue is that each job creates temporary container inside storage account.

@AzizNadirov
Thanks for sharing the feedback. Since this channel is for driving improvements towards Docs, could you please provide the URL of the specific documentation that your feedback is applicable to? That way, we can make sure your feedback is addressed by the right team.

ah, sorry. It is more related with sdk itself, not its docs. But I can not to find its repo...

@AzizNadirov
Since this issue isn't directly related to improving our docs, and to gain a better understanding of your issue, I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.
[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows.
[Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1


VS Code does not use environment variable http_proxy

Issue Type: Bug

Go to VS Code settings, section Application>Proxy.

See Proxy setting whose clarification is "The proxy setting to use. If not set, will be inherited from the http_proxy and https_proxy environment variables."

Set environment variable http_proxy.

Do networking stuff. E.g. try to sign in to Azure via Azure Account Extension: Press F1 ">Azure: Sign In".

Get Error notification saying "You appear to be offline. Please check your network connection." which is generated by Azure Account Extension.

Go to Settings.json, set "http.proxy": "http://server:port"

Try to log in again.

Success!

I consider this a Bug, as the help text in the settings dialogue states that environment variables are loaded and used centrally, when they are not.
Further more, it is not the case that proxy settings can't be used by the extension since written directly into the settings.json everything works.
VS Code version: Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:49:35.976Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz (8 x 2808)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.92GB (24.07GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

python
ms-
2019.10.44104

vscode-ai
ms-
0.6.7

azure-account
ms-
0.8.7

team
ms-
1.161.0

azure-iot-edge
vsc
1.18.0

azure-iot-toolkit
vsc
2.13.0

azure-iot-tools
vsc
0.3.0

vscode-iot-device-cube
vsc
0.1.4

vscode-iot-workbench
vsc
0.10.16

Based on the observation, that setting the proxy address explicitly via the setting dialogue or in settings.json, I disagree the classification of this Issue as a duplicate.

Try setting the proxy environment variable and then restart VS Code (if that doesn't work try rebooting the machine after setting the environment variable). We do look at the environment variables, note that if the setting is present, that wins over the environment variables.

Thank you for your input!
I did restart the PC after removing the explicit proxy setting and assuring that the environment variable is set correctly. This did not work. The environment variable was written all uppercase: HTTP_PROXY.
I then changed it to all lowercase which worked fine.
Additionally, since my last post here I observed the behaviour of the Sign In. Most of the times it worked, sometimes not. I can not see a pattern there. Maybe it also didn't not work because of the uppercase/lowercase, but because of other reasons (maybe not in relation to VS Code and the Azure plugin)?
Could you please confirm/disprove the uppercase/lowercase suspicion?

I read the lower- and uppercase names: https://github.com/microsoft/vscode/blob/615732feae7228502eab60919d67837f7a625e7c/src/vs/workbench/services/extensions/node/proxyResolver.ts#L61
Note that the setting wins over the environment variables. So if the setting had an invalid value, that would be tried and not the environment variables.

The proxy setting was empty.
Are there any logfiles that one could look into when the error occurs again?

You can set the log level to Trace (F1 > Developer: Set Log Level...) to get logging in the Output panel's Extension Host channel. Look for lines with 'ProxyResolver#'.

Will this have to be done after every start of VS Code, or is this a permanent setting?

The log level is preserved for as long as at least one window is open (or being reloaded).

Since the problem did, until now, not reoccur, I assume that this issue is related to my company's proxy.
If the problem reoccurs, I am going to get the logs and get back here.
Thank you very much for your help!


Added corepackages

Coverage increased (+0.006%) to 97.5% when pulling 408ed9030ef21503079ed00472a58011883c6a2a on aportner:add-core-packages into 64fd57029d99642530091094377e09f7a49c5f38 on LPGhatguy:master.

Changelog entry, please? :D


177672544 remove deprecated render methods

@knowuh it turns out that all the instances of :nothing were removed during the 5.0 deprecation story so this is good to go.


Closing aux window focuses wrong "main" window

have two screens and two windows of vscode
have one window on screen A and the other window on screen B
in screen A, create a aux window, move it to screen B
close the aux window
the main window on screen B get focused, not the origin window on screen A

@jrieken curious, did you have editors in the aux window before you closed it? Because closing an aux window moves those editors back to the "main" window and will in turn focus it.

Yeah, I had an editor in there and I mean I close the last editor which closes the aux window which then focuses the wrong main window

To truly focus the right window in terms of MRU, we need https://github.com/microsoft/vscode/issues/199529. But the fix I can do for now is to ensure the main window gets focus.


📥 How to install

Go to the releases page and download the most recent Calendr.app.zip.
Unzip the archive and drag Calendr.app to the Applications folder.
Right click it and select Open.

☝🏻 You have to do this the first time you open, because the app is not signed and macOS won't let you.
After that it will be saved as an exception and will open normally.
Here's a tutorial from Apple:
https://support.apple.com/en-gb/guide/mac-help/mh40616/mac

For reference in case someone wants to install with homebrew here is how I did it 😄

Initially it is, but it should fetch latest releases because of the appcast stanza on it on new installs
I might try to submit a PR to homebrew-cask later

Just a FYI, got rejected because the app needs to be signed which I have no idea if feasible or possible. Will keep using the one in my own tap for now 😄
Thank you so much for this little app 💙

It surely can be signed, I just don't want to pay Apple $99 per year 😆

That's... understandable 🤣
What a bummer that you need to pay a subscription to sign stuff. Well, thanks for the explanation and the TIL!

Just a FYI, got rejected because the app needs to be signed which I have no idea if feasible or possible. Will keep using the one in my own tap for now 😄仅供参考，被拒绝是因为该应用程序需要签名，我不知道这是否可行或可能。现在😄将继续使用我自己的水龙头中的那个
Thank you so much for this little app 💙非常感谢你这个小应用程序 💙

Is it possible to have a github action that automatically push the latest version to the tap?

Is it possible to have a github action that automatically push the latest version to the tap?

@thedavidweng It could checks once a day and then submit a PR? Maybe something already exists on the marketplace. Feel free o contribute if you want!
Also, @pakerwreah, do you want to move this formula to a repo under your wing?

@mracos I think you said your tap was not tied to a specific version, right? 🤔

yeah @pakerwreah, I shared a bit of fake news, my bad on that 😅
I assumed that it was not bc of the appcast stanza but it seems (at least with livecheck) that we have to manually run brew livecheck

And tbh it was not working. Fixed it, also fixed the appcast warning (although I thought I fixed it a while ago but missed a dangling call), and already updated to the latest version!
Thanks for the heads up 🙇

Is it possible to have a github action that automatically push the latest version to the tap?

@thedavidweng It could checks once a day and then submit a PR? Maybe something already exists on the marketplace. Feel free o contribute if you want!
Also, @pakerwreah, do you want to move this formula to a repo under your wing?

@mracos I think you said your tap was not tied to a specific version, right? 🤔

yeah @pakerwreah, I shared a bit of fake news, my bad on that 😅 I assumed that it was not bc of the appcast stanza but it seems (at least with livecheck) that we have to manually run brew livecheck

And tbh it was not working. Fixed it, also fixed the `appcast` warning (although I thought I [fixed it a while ago](https://github.com/mracos/homebrew-tap/commit/4310ef4ddb991de223ea1a97433bec119e7d864f) but missed a dangling call), and [already updated](https://github.com/mracos/homebrew-tap/blob/f9a7fbf1c4ffdb43d24bdac7caec0d49cd81b042/Casks/calendr.rb) to the latest version!
Thanks for the heads up 🙇

Thank you! Yes I do believe this can be done with a github action, @pakerwreah do you want to maintain your own tap?

I don't want another thing to maintain 😅
I can see myself, in the future, losing hours trying to figure out some random homebrew breaking change.


arm64 support statement

carried over from https://github.com/MicrosoftDocs/azure-docs/pull/124412, ready for merge

@johnmarco
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Can we get this merged please @johnmarco? 🙂


docs(typo): typo in fitactivity's README.md

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (1fc32d6) 99.88% compared to head (af7be95) 99.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #13   +/-   ##
=======================================
  Coverage   99.88%   99.88%
=======================================
  Files          19       19
  Lines        2523     2523
=======================================
  Hits         2520     2520
  Misses          2        2
  Partials        1        1

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


Lack of information regarding what and how Red Hat/Microsoft SREs access ARO Clusters

There is a lack of information regarding the activities performed by SREs on ARO clusters and also how they perform.
It would be nice to see in the ARO documentation something like what exists for ROSA regarding the SRE access and permissions on ROSA clusters: https://docs.openshift.com/rosa/rosa_architecture/rosa_policy_service_definition/rosa-sre-access.html
Things that would be interesting to know:

A list of activities that could be performed from SREs
How is the SRE access through the ARO RP?
Do they have read/write access?
How do they achieve elevated privileges?
Is there a just-in-time access security feature related?
Are SRE access tracked?
What are the security guardrails involved within the SRE access?
Are the SREs allowed to access customer workload namespaces and customer data?
What kind of RBAC permissions do the SREs have?
There are different levels of access for SREs?
Is the customer informed when SRE is accessing the cluster? Is there any kind of approval process for that?
Can the SRE perform SSH connection against the Cluster nodes?

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

ID: 0119bc23-6b1e-2e7f-7d32-91f413a783b2
Version Independent ID: 22ea356d-74a0-a918-fa4f-ae707234e1bb
Content: Azure Red Hat OpenShift support lifecycle - Azure Red Hat OpenShift
Content Source: articles/openshift/support-lifecycle.md
Service: azure-redhat-openshift
GitHub Login: @joharder
Microsoft Alias: joharder

@ricmmartins
Thanks for your feedback! We will investigate and update as appropriate.

@joharder
Can you please check and add your comments on this doc update request as applicable.

@ricmmartins
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

#assign johnmarco
@johnmarco can we get an item created to look into this?


[5.8] Add where between column support query

Adds support for WHERE ? between column_1 AND column_2 queries.
Not sure about the function name but there is currently whereBetween() and whereColumn(), so tried to follow the name standard.
Before:
->whereRaw('? between `start_date` and `end_date`', [Carbon::now()]);

After:
->whereBetweenColumn(Carbon::now(), 'start_date', 'end_date');

The ? placeholder in queries has often been for values, not for columns. Can you verify that this works both with, and without, emulated prepares? Which database engines (and versions) have you tested this with?

The ? placeholder in queries has often been for values, not for columns. Can you verify that this works both with, and without, emulated prepares? Which database engines (and versions) have you tested this with?

Where is "?" used for columns?
Live, I've only tested it with MySQL 5.7, but checked so the SQL works with SQL Fiddle:

MS SQL Server 2017: http://www.sqlfiddle.com/#!18/da850/2
PostgreSQL 9.6: http://www.sqlfiddle.com/#!17/3ea51/2
MySQL 5.6: http://www.sqlfiddle.com/#!9/3ea51b/2

None of those sqlfiddle links uses variables/parameters. What I am asking about is what happens if the database sees the parameters, and not the values. Imagine the database executing SELECT * FROM users WHERE @param BETWEEN start_date AND end_date;. I know that the support for things like ORDER BY @param is limited, that's why I am asking about this syntax. I'm not sure, but perhaps emulated prepares may affect the outcome of this.
Have we tested other database engines than those you mention? We support several more versions of respective database engine than what sqlfiddle supports.

@sisve With parameter binding, it works on all three Homestead databases and SQL Server 2017. PDO::ATTR_EMULATE_PREPARES => false also works.

@sisve With parameter binding, it works on all three Homestead databases and SQL Server 2017. PDO::ATTR_EMULATE_PREPARES => false also works.

Thanks for the testing!

I would rather not use place-holders for columns here. It's not consistent with any other queries in the framework. Can you re-submit without that?


[core] Fix release changelog to handle commits with empty author field

After https://github.com/mui/material-ui/pull/35876 was merged the releaseChangelog script was failing because the author field was empty. I am not sure how the pull request was created.

In the case of PRs, the committer is @web-flow, so I don't think it's valid to list this account as an author. Perhaps a warning message should be emitted to update the author manually?

That makes sense, let me update


dynamic validation not triggering validation of field

I have a dynamic form field that is required based on the value of a form selected field. ie If the value of a certain field is "Yes" then the comment box is required and if "No" then it is not required.
If I initially select "Yes" and touch and blur the comment field the validation will return the required error. But after if I switch to "No" and back to "Yes" the validation error no longer occurs. If I type into the comment box and remove the validation will occur again.
I am using field level validation.
<Field name={`${fieldId}.comment`}  validate={condition.required ? [required] : []} label={condition.label} className="form-control" component={renderTextField} />

Where condition is the check to see whether the field should be required.
The logic is correct as the validation work on initial selection and if you fill the comment field and remove the text but it just does not seem to receive the validation error.

This is likely fixed by #3094 can you confirm?

Closing due to non-response, and probable (fixed) duplicate. Please request re-open if you think this is a different, still valid issue.

Please help this problem ,

https://github.com/erikras/redux-form/issues/3484


[32-bit] libexample

Looks like the example library build is not 32-bit ready:
https://github.com/meta-flutter/meta-flutter/actions/runs/3034466594

From the docs it seems like Flutter is dropping (or never thoroughly had?) 32-bit support: https://docs.flutter.dev/development/tools/sdk/release-notes/supported-platforms#unsupported-platforms In their Unsupported Platforms section they call out Linux | Any 32-bit platform as well as Windows 32-bit, etc. With that in mind do you plan to keep 32-bit support in meta-flutter going forward?
Supporting 32-bit platforms in Membrane seems somewhat problematic at first glance as the asynchronous FFI port between the two languages is exposed by Dart as a 64-bit integer.

That just means they aren't actively testing 32-bit builds.  They recently merged 32-bit build break fix for 3.3.0.  Until Dart deprecates it, it's still fair game.
The flutter_rust_bridge example does cross-compile and run with 32-bit.  So that's fine.  There's a workable solution for the 32-bit variety.

Looks like it's been long enough that the build logs got deleted from the above job but if I'm remembering the error message correctly then this issue is also closed by #43. We were using c_long which on some systems is only represented by 32 bits instead of it being 64 bits like on most Linux environments.
If there's still an issue that appears on 32 bit systems we can reopen.

Yeah I haven't tested 32-bit for a hot minute.  I'll check in the next month


⚠ Processors has degraded performance

In 14a39d5, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 76 ms

Resolved: Processors performance has improved in b13192e.


How to create iOS FrameWork from mediapie

I try to use Mediapipe in my ios project.
I have run the sample app with bazel. Now I want to create file framework and add to my current project.
I have try to find the solulution but all of them not work for me.
I really want to be instructed how to create iOS Framework step by step. Thank you.

Here are the clear steps for IOS solutions https://google.github.io/mediapipe/getting_started/ios.html#mediapipe-on-ios. Please let me know, if you have any specific query. Thanks!


Integer Overflow in CreateMqRemotingMessage function

Inside the CreateMqRemotingMessage function, there exists integer overflow where the value of int is casted into uint32 without any checks. This result in malformed package.
This code can trigger the integer overflow:
func main() {
        msg := strings.Repeat("A", 4_294_967_295-98) // max uint32
	rocketmq.CreateMqRemotingMessage(msg, 112, 1)
}

I have also added some fmt.Println inside the function so we can see the values.

Running the code above, results in:

Addressed in #63 - thanks @NSEcho!


[libvpx] Build error

Copy issue body from C:/Users/ASUS/Documents/Work_sapce/Rust/vcpkg/installed/vcpkg/issue_body.md

No info, no help.

Please refer  to #30604 to provide the issue details.


Fix YAML parsing with anchors and duplicate keys in dbt_project.yml file

resolves #5268, #5331

Description
Just pondering on a fix for the linked issues.

Seems like safe_load is used in multiple places - so just revert to previous behaviour by default + option to use the newly introduced UniqueKeyLoader.
Looks like a call to flatten_mapping sorts out the YAML anchors.

This seems to work for:
# ~/.dbt/profiles.yml

postgres:
  outputs:
    dev: &profile
      type: postgres
      host: localhost
      user: root
      password: password
      schema: public
      database: postgres
      port: 5432
      threads: 8
    prod:
      <<: *profile
    uat: *profile
  target: dev

and
# dbt_project.yml

...
vars:
  foo: bar
  foo: bar
...

Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[ ] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[ ] I have run changie new to create a changelog entry

Not sure what's up with the unit test but standard run with dupe vars keys worked okay

Perhaps it's not such a bad idea to error as it was doing in the first place?

This wasn't an error in previous versions, so we can't raise an error now. The implicit behavior is to "take the last"; that's what it used to do, and what it will keep doing. It's a huge net improvement that we're raising a warning, so that users can become aware of the duplication/discrepancy and fix it themselves!
One other small aesthetic thing. It's a bit confusing to see:
06:12:47  [WARNING]: Compilation Error

Rather than raising an exception, which we then catch and raise as a warning within load_yaml_text, could construct_mapping just use dbt.exceptions.warn_or_raise to raise the warning message directly? I'm not sure exactly how to make that interact with the try/except, but we should really be falling back to real SafeLoader in all cases, and just using the UniqueKeyLoader for validation/warning.

Use warn_or_raise in construct_mapping instead. warn_or_raise calls the exception - not sure if this is the right way to do this since I couldn't find any other use of warn_or_raise.
Tidied up confusing [WARNING]: Compilation Error print outs.
Not too sure how to get the path of the file to be included in the warning message as before (when we had the path in the load_yaml_text function).

Is it fair to close this PR for now, since we ended up reverting the change in https://github.com/dbt-labs/dbt-core/pull/5146?


Added german language

Added german translation

Your added translation is only for the loader UI.
You need to add the second part for the in-client UI, check out this file:
https://github.com/PenguLoader/PenguLoader/blob/dev/plugins/src/views/trans.json
The next release v1.2.0 is coming soon, so these translations will be deprecated, hope to see you again.
Thank you for your contribution!


Fix TO Go compile error from merge issue

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1774/
Test PASSed.


workflows: retry GCP VM creation up to 3 times

Picked up from https://github.com/cilium/cilium-cli/pull/463.
Fixes: #17063

Link to test run of workflow changes: https://github.com/cilium/cilium/actions/runs/1105157552
In this instance, we did not need to retry. For an example of how it behaves on retry, see this run from cilium-cli: https://github.com/cilium/cilium-cli/actions/runs/1102850699

Adds warnings in the logs:

Run nick-invision/retry@45ba062d357edb3b29c4a94b456b188716f61020

WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#performance.
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
 - The resource 'projects/***/regions/us-west2/subnetworks/default' is not ready

Warning: Attempt 1 failed. Reason: Child_process exited with error code 1

WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#performance.
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
 - The resource 'projects/***/regions/us-west2/subnetworks/default' is not ready

Warning: Attempt 2 failed. Reason: Child_process exited with error code 1

WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#performance.
Created [https://www.googleapis.com/compute/v1/projects/***/zones/us-west2-a/instances/cilium-cilium-cli-1102850699-vm].
NAME                             ZONE        MACHINE_TYPE                   PREEMPTIBLE  INTERNAL_IP   EXTERNAL_IP     STATUS
cilium-cilium-cli-1102850699-vm  us-west2-a  custom (e2, 2 vCPU, 4.00 GiB)  true         <IP_ADDRESS>  <IP_ADDRESS>  RUNNING
Command completed after 3 attempt(s).

And also adds warnings directly on the workflow run page.

Removing temporary test commit.

Marking as ready-to-merge since all reviews are in and this PR does not need to run any additional CI.


Summarize the combined_oma file v2 to identify the number of 1:1 orthologs across species

Depends on #3

Summarize:
For each species,

what percentage of genes are present in all other species?

Across all species,

number of genes that are present in all species.


Access query parameter that contain square brackets using handlebars template

Hi, there is a need to get query parameter that contain square brackets in template eg:
localhost:8080/some_url/?filter[order_id]=123
I need to get value of filter[order_id], valid handlebars template for it is:
"{{ request.query.[filter[order_id\]] }}"
checked here http://tryhandlebarsjs.com/
my JSON API request:
{"request": {"urlPath": "/some_url/", "method": "GET"}, "response": {"body": "{{ request.query.[filter[order_id\\]] }}", "status": 200, "transformers": ["response-template"]}}
but get 500 on request accessing this stub:
 wiremock.com.github.jknack.handlebars.HandlebarsException: inline@7c8b8743:1:17: found: '[filter[order_id\' {{ request.query.[filter[order_id\]] }}
how can I get this query parameter?

No news ?
Seems to be still there  :(

Is this issue still exist?

I am also experiencing this, nearly 3 years later

Any news on this?

Here's how you do it:
{{lookup request.query 'filter[order_id]'}}

Marking as a feature request to remind me to add a doc note.

thanks @tomakehurst
{{lookup request.query 'filters%5B0%5D%5Bvalue%5D'}} worked for me to get filters[0][value]

Documented this in 74058e87

{{lookup request.query 'filters%5B0%5D%5Bvalue%5D'}} This is not working for me, This is returning entire query params like below
{filters[0][value]=NSW, criteria.assetType=assetchithatype, criteria.brand=NRMA, criteria.campaignCode=mockcampaign, criteria.coverType=mockCoverType, criteria.coverage=mockCoverage, criteria.lineOfBusiness=mockLineOfBusiness, criteria.salesChannel=mockSalesChannel, criteria.transactionType=NEW_BUSINESS, product=MOTOR_MOCK}

My requirement is to read a query parameter with dot criteria.coverType


feat: create and open project

Description
Display modal to create new project when "Create New Project" card is clicked, then open new project in a new tab.
Open existing projects in new tab by clicking on their project cards.
Resolves #53
Type of change

[ ] 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?
Please describe the tests that you ran to verify your changes. Provide reproduction instructions and list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

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

Please merge main to resolve conflicts, this should also resolve the CI error you are seeing as well


Add proof API

Sth along the lines of:
fn GetWithProof(nid NamespaceID) -> (startIdx int, proof Proof, nodes []NamespacedDataOrHashes, ...)
and
fn VerifyProof(nid NamespaceID, startIdx int, proof Proof, nodes []NamespacedDataOrHashes, ...) -> bool
To build the proof, we need to rebuild (parts of) the tree. Hence, the above call also needs to be able to iterate of the leaf data / leaf hashes of the tree.

Shouldn't GetWithProof() be implemented on lazyledger-core rather than this library? As this may involve network calls to other nodes.

I was just trying to give ProveNamespace (the ApplicationProof equivalent) a better name, as it does in fact returns the leafs corresponding with their proof (hence, GetWithProof).

The current API to obtain a proof for a namespace is here btw:
https://github.com/lazyledger/nmt/blob/0c6bd6a356459908b9570a2968fc7e2c4cfe7f1d/nmt.go#L69-L90
I still find it weird that this returns the leafs (if found) tbh. Aren't the (namespaced) leaf hashes sufficient for a proof for that namespace? And I think for proving absence can be simplified too (need to think further about this though).

Yes, technically the leaf values aren't part of the proof - they are what's being proven. It's just that it seems convenient to provide the function caller with the actual messages as part of that namespace, too.
I guess if you want to be consistent, you would not return the leaf data, and you would have a different function GetNamespace(nID namespace.ID) that returns the actual messages in that namespace.

Yeah, I'd prefer to separate these two. For convenience, we can add a wrapper method that you can use to get the messages along with proof (GetNamespaceWithProof(nid) or sth like that).

Removed returning the leafs and simplified the API slightly in https://github.com/lazyledger/nmt/pull/3/commits/769674099ae131057601e89b222307851c88e3bb

I don't understand why GetWithProof should live in ll-core while ProveNamespace should be part of this library and does effectively the same (return the messages along with a proof)

Right, I mean the version of "GetWithProof" that makes network calls to get the proof, rather than computes the proof locally, lives in ll-core.


Sessions not setting in local server, works fine on live server

So I have this issue that sessions are not working in local server, I tried a lot of posts but none of them worked for me.
Config.php code is below:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

$config['cookie_prefix']	= '';
$config['cookie_domain']	= '';
$config['cookie_path']		= '/';
$config['cookie_secure']	= FALSE;
$config['cookie_httponly'] 	= FALSE;

Session array is loaded in autoload.php file. Code to set session is:
$this->session->set_userdata('user',$result);
Strange issue is when I set this, two or three files are created under ci_session folder. One of them does consist my data but that doesn't have a session variable in it, see what one of them contains:
user|a:6:{s:2:"no";s:1:"1";s:4:"name";s:11:.....
Second file contains:
__ci_last_regenerate|i:1508506467;
The first file should have been started with the line second file contains but it's not the case.
Can you help in this? I'm not able to get any help for it.

This is a bug tracker, we don't provide the help you're looking for here. Please post on our forums instead.


Typical Sampling

Typical Decoding claims significantly improved sampling performance which could be interesting. Implementing it is relatively trivial; however, we need a checkpoint compatible with the latest model to test it. That's why this PR is currently blocked and only testable once we have a new checkpoint.

Typical sampling is correctly implemented, but the probabilities of our model might be misaligned, or it only works with large tokens, making it difficult to test.


Tool tip showing but is invisible

I'm trying to use your jquery validation to display my error messages in the tool tip, the problem i have is that the tool tip is invisible please check the image I attached.
Any help would be greatly appreciated
This is the code I have in my view.
ViewData["Title"] = "About";

}

@ViewData["Title"]
@ViewData["Message"]
Use this area to provide additional information.

    Tooltip on right

Test

</div>
<input type="submit" value="Test"/>

@Shane-01   Can you create a JSfiddle reproducing this?

@Thrilleratplay  I Fixed the issue , I had different versions of bootstrap in my solution, so i made sure all references of bootstrap are 3.3.7 and it seems to be working fine now.

Bootstrap made a few changes around v3.3.x that caused issues with this plugin.  Glad you fixed the issue.


Needs a built-in hot-reload web server for preview

Just like many other static web site generators, Statik also needs a built-in hot-reload web server for live previewing of generated content.

As per feature addition by @pztrick  #18, this feature has now been added. I've changed the hot reload command line switch to --watch, and it can now watch a project folder even if the output folder is inside the project source folder. Also supports host and port specification from the command line for the server.
All on develop branch now, ready for v0.3.0 release.


VIH-5988 Adding linqpad scripts for AAD operations

https://tools.hmcts.net/jira/browse/VIH-5988

/azp run

Moved this commit of adding linqpad scripts to: https://github.com/hmcts/vh-maintenance-scripts


Fix broken debugging in codespaces

Fix #133178

Code changes look good, and Rob verified this fixes the debug issue -> approved.
I can also test this out in more detail once we have a build out. Let me know if you have some corner cases that should be tried out.


Update to match upstream

Adding newest changes to our repo from the upstream one along with some quick fixes to automation
Changes:

Upstream added a negative control prefix list, in our repo you can modify this within the resources/profile/parameters.yaml file. By default however this is ['negative', 'ntc', 'water', 'blank', 'neg']
--update flag to update the repo (just does git pull) along with updating the ncov-qc pangolin env (runs pangolin --update)

Works as intended on my end


[Translation] Believe or Die - A Search for Ashcan Pete(Korean)

What kind of translation do you want to add (mark with an X, e.g. [X] Descent)?

[X] Mansions of Madness
[ ] Descent

Scenario name or url
Believe or Die - A Search for Ashcan Pete
https://github.com/FASTNAVi/Believe_or_Die_1/issues/1

Translation File
Localization.Korean.txt

@FASTNAVY

I've sent to the author a message on discord.

It is done.

thanks guys!


feat: Create Appimage/dmg/flatpack workflows

Being able to easily install Lnbits is important. On releases we should be creating assets.
GH actions/workflows to create:

Appimage ☐
dmg ☐
Flatpack  ☐

https://www.cloudron.io/


Added back to Top button

closes #410
Added back to top functionality

bro how did you make that gif? what did you use to make that?

bro how did you make that gif? what did you use to make that?

You can use this site https://ezgif.com/
I always prefer this.
On Thu, 21 Jan 2021, 14:01 Ashutosh Khanduala<EMAIL_ADDRESS>wrote:

bro how did you make that gif? what did you use to make that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/smaranjitghose/doc2pen/pull/419#issuecomment-764470163,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLHP3X2MYZQUVI26ZCIYKLS27Q45ANCNFSM4WK5FK5A
.

You can use this site https://ezgif.com/
I always prefer this.
On Thu, 21 Jan 2021, 14:01 Ashutosh Khanduala<EMAIL_ADDRESS>wrote:

bro how did you make that gif? what did you use to make that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/smaranjitghose/doc2pen/pull/419#issuecomment-764470163,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLHP3X2MYZQUVI26ZCIYKLS27Q45ANCNFSM4WK5FK5A
.

so u record the screen then edit it then convert it to gif?

so u record the screen then edit it then convert it to gif?

Yes!!
On Thu, 21 Jan 2021, 16:17 Ashutosh Khanduala<EMAIL_ADDRESS>wrote:

so u record the screen then edit it then convert it to gif?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/smaranjitghose/doc2pen/pull/419#issuecomment-764548059,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLHP3SG7QSVCZ5WL57NOYTS3AA3PANCNFSM4WK5FK5A
.

Yes!!
On Thu, 21 Jan 2021, 16:17 Ashutosh Khanduala<EMAIL_ADDRESS>wrote:

so u record the screen then edit it then convert it to gif?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/smaranjitghose/doc2pen/pull/419#issuecomment-764548059,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLHP3SG7QSVCZ5WL57NOYTS3AA3PANCNFSM4WK5FK5A
.

This top button is too childish it won't look good on this. Try incorporating something minimal and simple. this looks too plain

ok sir

This top button is too childish it won't look good on this. Try incorporating something minimal and simple. this looks too plain

ok sir

This top button is too childish it won't look good on this. Try incorporating something minimal and simple. this looks too plain

@anushbhatia sir can you please explain what type of design you want for to top button. you can also share some design if you want I can try to make that.

This top button is too childish it won't look good on this. Try incorporating something minimal and simple. this looks too plain

@anushbhatia sir can you please explain what type of design you want for to top button. you can also share some design if you want I can try to make that.

take reference from https://github.com/smaranjitghose/doc2pen/pull/414

take reference from https://github.com/smaranjitghose/doc2pen/pull/414

take reference from #414

Sir, it is that same PR with the same code without code formatting.

take reference from #414

Sir, it is that same PR with the same code without code formatting.

This button doesn't look good in UI
https://www.flaticon.com/premium-icon/up-arrow_2767220?term=top&page=1&position=28&page=1&position=28&related_id=2767220&origin=search

This button doesn't look good in UI
https://www.flaticon.com/premium-icon/up-arrow_2767220?term=top&page=1&position=28&page=1&position=28&related_id=2767220&origin=search

This button doesn't look good in UI
https://www.flaticon.com/premium-icon/up-arrow_2767220?term=top&page=1&position=28&page=1&position=28&related_id=2767220&origin=search

@anushbhatia sir but I didn't even use that button I upload a gif above and please see Netlify deployed link I use a different UI.

This button doesn't look good in UI
https://www.flaticon.com/premium-icon/up-arrow_2767220?term=top&page=1&position=28&page=1&position=28&related_id=2767220&origin=search

@anushbhatia sir but I didn't even use that button I upload a gif above and please see Netlify deployed link I use a different UI.

The drop-down menu on hover Add.

The drop-down menu on hover Add.

The drop-down menu on hover Add.

The drop-down menu on hover Add.


Falling back to default version

I have multiple versions of the same controller, like so:
[ApiVersion("1.0")]
[Route("api/v{version:apiVersion}/todo")]
public class TodoController : ControllerBase
{
    ...
}

[ApiVersion("2.0")]
[Route("api/v{version:apiVersion}/todo")]
public class Todo2Controller : ControllerBase
{
    ...
}

Is there any way to specify a "default" version, where all versions given in the URL without a specific controller would use the default controller? For example, navigating to /api/v3/todo would redirect to the version 2.0 controller, as would /api/v100/todo.
Any help is very appreciated, I'm not sure if this is even possible 😄

It's possible - sort of. You can change the IApiVersionSelector, which complements the AssumeDefaultVersionWhenUnspecified option. The default configuration selects the DefaultApiVersion; however, this can be changed. There are a few selectors out-of-the-box. There is one called CurrentImplementationApiVersionSelector, which always selects the highest available API version for a given route.
This configuration is more difficult for your scenario because you've elected to version by URL. There is not way to fill-in or otherwise default the API version for your default route. The only workable solution I know of is:

Add a default route without the API version in it
The default route be a second route definition on current/highest implementation of the service
You'll have to float (e.g. move) the default route to a new controller when you bump the version

If you have a small number of controllers, that isn't a huge deal. If you have a large number of controllers, it can be tedious to maintain. Other versioning approaches do not share this issue. It's specific to using the path.
Another alternate, separate from API versioning, would be to use URL rewriting. This would negate the need to touch or otherwise decorate controllers with the default route information. When a request without an API version comes in, you can forward it to the correct URL. This approach has less touch points for maintenance, but it's probably nasty for configuration. Most of the URL rewriting stuff uses regular expressions or other pattern matching to define the rules. If you can write your own custom rule with code that would probably be easier, but I'm not sure that's possible. The number of rules you need will likely depend on your API size.
There's a few ideas. I hope that helps.

You question appears to have been answered or you otherwise found a solution. If you're still having trouble, feel free to re-open this issue or create a new one. Thanks.


feat(all): add cacheable queries to the magento cacheable queries list

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the new behavior?
Cacheable queries are now cacheable by Magento through the apollo link generators.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Take a gander at https://devdocs.magento.com/guides/v2.4/graphql/caching.html -- I don't think countries are cachable.

fixed. Also, I removed the provider functions. It fails the build because of the "no function calls in decorators" aot rule.

@lderrickable the provider functions can be kept, but they need to be written like:
export function myFunction(): {
 return "test";
}

not

export const myFunction = () => {
return "test";
};

@damienwebdev I don't think that works. Seems like the point of restricting function calls in decorators is to ensure that you can't pass in data at runtime. I think the only reason you can do the factory function thing is because it forces you not to be able to pass anything in. Their example is:
export function serverFactory() {
  return new Server();
}

@Component({
  ...
  providers: [{provide: server, useFactory: serverFactory}]
})

I think the only reason you're allowed to do this is because you can't pass anything into the function, so even though it is a function, it can be completely understood before runtime. I think the only way we could make this work is something like:
export function navigationCacheableQueriesProvider() {
  return ({
     provide: MAGENTO_OPERATIONS_TOKEN,
     useValue: NAVIGATION_QUERY_NAME,
     multi: true
  })
}

@Component({
  ...
  providers: [{provide: server, useFactory: navigationCacheableQueriesProvider}]
})

I don't even know if that would work, but it certainly defeats the purpose of having the functions anyway. Maybe I'm wrong about this, but that's what I gathered from the angular docs. I tried using the new function you wrote too. It doesn't work

@damienwebdev Added the provider functions for angular 9+ apps


.Net: HttpClients are hold as captive dependencies / singletons

This is a follow-up to #790
Describe the bug
Semantic Kernel captures instances of the HttpClient class in singletons.
See https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Connectors/Connectors.OpenAI/OpenAIServiceCollectionExtensions.cs#L55-L59
This will become a massive problem when used in long-running services.
The reason is, that the HttpClient holds an internal instance of a HttpMessageHandler. The HttpMessageHandler is not designed to be used for a prolonged amount of time. In .NET in the HttpClientFactory instances of HttpMessageHandles are pooled and re-used for transient(!) usages of HttpClient instances - with a default maximum lifetime of only 2 minutes for the inner handler.
The reason is, that a TCP connection to a server under some circumstances be held open forever. Even if the HTTP transport is not working anymore.
If, for some reason, the DNS information for the configured endpoint changes, or the connection goes bad (i.e. terminates at a proxy and something changes behind the proxy), the HttpMessageHandler instance is not able to recover from that.
As such, the instance of the HttpClient that uses this inner handler is rendered unusable for the rest of its lifetime. As a singleton this is for the lifetime of the process.
There is no way to recover from such a problem other than restarting the process.
To Reproduce
Use a LoadBalancer in your network (i.e. Big5). "Hide" at least two Azure Open AI services (or the Open AI API) behind this loadbalancer. Make one of these instance active and the other inactive.
Set up any project with Semantic Kernel and an Open AI connector and point it to the loadbalancer/proxy instead of the direct endpoint.
While the project runs, switch the LB to use the configured second instance and switch the first one to inactive.
All existing connections to the LB will still be routed to the now inactive first instance and these TCP connections are now broken until a new TCP connection is established (which will be balanced to the second instance).
The SK project will not be able to recover from that and cannot execute calls to the LLM anymore.
You will have to stop and restart the process hosting the Kernel to recover from that.
Expected behavior
For each call, a new instance of an HttpClient should be retrieved from an IHttpClientFactory instead of capturing an HttpClient in a singleton.
In the scenario above, this will be able to automatically recover from such an error at max after 2 minutes when the old broken inner HttpMessageHandler instances are discarded and new Handlers are created.
Platform

OS: any
Language: C#
Source: one example: https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Connectors/Connectors.OpenAI/OpenAIServiceCollectionExtensions.cs#L55-L59

Hi @gingters !
Is it possible to reproduce an issue when you setup PooledConnectionLifetime property?
https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/http/httpclient-guidelines#dns-behavior
It looks like it's still recommended to use singleton HttpClient instance with PooledConnectionLifetime property, which should solve both the port exhaustion and DNS changes problems:
https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/http/httpclient-guidelines#recommended-use

Please let me know if I'm missing something. Thanks a lot!

@gingters Thank you for reporting this issue!
Maybe it's worth to report similar issue in Chat Copilot repo to see, if something can be improved to handle such scenario, for example change a way how HttpClient is registered.
Tagging @stephentoub to double-check if there is something that can be improved for HttpClient usage on Semantic Kernel side.
Thanks again!

Hi @gingters, today we can't use IHttpClientFactory because the library SK uses to access both OpenAI and AzureOpenAI services does not support it. So, for now, SK consumer code has a few options:

Use a singleton HttpClient instance with the PooledConnectionLifetime set to the desired interval. This option should work in .NET Core and .NET 5+. For more details, see the Recommended Use section.
For .NET Framework, HTTP clients can be configured with a custom HttpMessageHandler that would use another handler internally with the required lifetime obtained through IHttpMessageHandlerFactory. See the example below:sealed class FactoryHttpMessageHandler : HttpMessageHandler
{
    public static FactoryHttpMessageHandler Instance { get; } = new();

    private readonly IHttpMessageHandlerFactory _handlerFactory =
        new ServiceCollection()
        .ConfigureHttpClientDefaults(c => c.SetHandlerLifetime(TimeSpan.FromSeconds(4)))
        .BuildServiceProvider()
        .GetRequiredService<IHttpMessageHandlerFactory>();

    private HttpMessageHandler GetHandler() => _handlerFactory.CreateHandler("");

    protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    {
        return new HttpMessageInvoker(GetHandler()).SendAsync(request, cancellationToken);
    }
}

Registering SK as Transient or Scoped instead of Singleton may work as well for certain scenarios, but it won't be as efficient as the options above due to unnecessary allocations.

These options should be sufficient for now until either the library supports IHttpClientFactory or .NET fixes HttpClient so that "it just works" regardless of how long you keep its instance. For more details, see the Consider updating HttpClientFactory... issue.

I’m closing the issue since there’s not much we can do at the moment except those options listed above.


Cannot have NSCD and SSSD co-exist using this cookbook

Cookbook version
4.2.2
Chef-client version
13.10.0
Platform Details
AWS/amzn1/2018.03
Scenario:
Need to be able to run sssd (through this cookbook) without being forced to remove nscd.  If nscd is correctly figured, these two can exist side-by-side.
In the current form, sssd_ldap/recipes/default uninstalled nscd.  Another cookbook we have then re-installs it and configures it for name resolution only.  And so the loop continues.
Steps to Reproduce:
Run sssd_ldap alongside another cookbook that does a package install for nscd.
Proposed Fix

Minor change to sssd_ldap/recipes/default to add an only_if guard to the nscd uninstall
Add default attribute to sssd_ldap/attributes/default, with the default setting to true (default action: uninstall nscd)

Result

No change to the default behaviour
Those with the requirement to run NSCD can optionally tell this cookbook not to uninstall it if found, should they need to

This was resolved with #37 a while back, so I’ll close this out. Thanks for your help!

This was resolved with #37 a while back, so I’ll close this out. Thanks for your help!


fix(middleware): signed cookie misinterpretation of cookie values with dot

Related issue: https://github.com/honojs/hono/issues/1337
Done the following:

[x] Modified tests
[x] Run tests
[x] yarn denoify to generate files for Deno

Thanks! Let's go!


added QE-automation for userRole Issue

:shipit:

:shipit: looks good. Thanks for fixing indentation.


fix(client): add generator-build to package.json exports

Hi, I'm using old nexus-plugin-prisma module.
After applying prisma 5.9.1, I've found this error:

This is because of changed conditional exports in @prisma/client at prisma version 5.9.0, especially exports part of Prisna client's package.json.
After I've add this commited change lines to @prisma/client/package.json on my local node_modules, it is resolved.
It will Fixes #22927

Thanks for your contribution @Kuhave, it looks good to me. I added a small regression test.


some bugs for your code

Thanks for your great work!
I have some questions.
1.when I use sh train.sh, I got  the following bug.
File "/data1/czy/AAAI/DDMP/DDMP-3D/lib/rpn_util.py", line 154, in generate_anchors
raise ValueError('Non-used anchor #{} found'.format(aind))
ValueError: Non-used anchor #0 found
2.But when I use sh train_xyz.sh ,there is no bug.
When I run sh train_dep_xyz.sh, no such file:  training/depth_2/2189.pkl'
Can you provide pkl files of xyz map?

@czy341181 Thanks for your attention.

The only difference between train.sh and train_xyz.sh is the way to read the input depth map, if you could not find the issues leading to 'non-used anchor', you can just modify the line 96 in imdb_util.py for common depth map input.
'xyz_map' just replace the  the first two dimensions of depth map with x and y values on 2D plane.

Thanks, can you modify your code? I got another error.
File "/data1/czy/AAAI/DDMP/DDMP-3D/models/resnet_mod.py", line 159, in forward
out += residual
RuntimeError: The size of tensor a (57) must match the size of tensor b (110) at non-singleton dimension 3

@czy341181 Sorry for the bugs, I have fixed it, and you can use train.sh to run.


Bump fingerprint version

Some cache entries contain corrupted data. Instead of tracking it down and deleting those entries - let's bump the FP version.

/azp run Public BuildXL PR Validation

/azp run Public BuildXL PR Validation

/azp run Public BuildXL PR Validation

/azp run Public BuildXL PR Validation

No longer needed.


ETL Deal Tracking & Add Deal Tracking Reason

Coverage decreased (-0.8%) to 72.047% when pulling 6017afed1a5428d553af3195d1d165b902f42b51 on jackyrusly:dev into 8fe5498f6cec04f364d272f099ee54ee4d9b5b66 on danliris:dev.

Coverage decreased (-0.7%) to 72.111% when pulling 2dac37eefde380550ba9f24d1c777712d44a4922 on jackyrusly:dev into 8fe5498f6cec04f364d272f099ee54ee4d9b5b66 on danliris:dev.


Environment variable breaking build

Describe the bug
I have an environment variable that is a license key for a product in my project, it has some characters in there that seem to be breaking the build.
Can be reproduced in a vite.new.
Reproduction
https://stackblitz.com/edit/vitejs-vite-zqmwee?file=.env&terminal=dev
System Info
System:
    OS: macOS 12.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 152.78 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 98.0.4758.80
    Firefox: 91.0.1
    Safari: 15.2
  npmPackages:
    @vitejs/plugin-legacy: ^1.6.4 => 1.7.0
    @vitejs/plugin-vue: ^1.2.2 => 1.10.2
    vite: ^2.8.0 => 2.8.0

Used Package Manager
npm
Logs
❯ vite --debug
  vite:config no config file found. +0ms
error when starting dev server:
TypeError: Cannot read properties of undefined (reading 'split')
    at eval (/home/projects/vitejs-vite-zqmwee/node_modules/vite/dist/node/chunks/dep-c9c9d3e5.js:70732:33)
    at Array.reduce (<anonymous>)
    at _interpolate (/home/projects/vitejs-vite-zqmwee/node_modules/vite/dist/node/chunks/dep-c9c9d3e5.js:70718:18)
    at expand (/home/projects/vitejs-vite-zqmwee/node_modules/vite/dist/node/chunks/dep-c9c9d3e5.js:70762:32)
    at loadEnv (/home/projects/vitejs-vite-zqmwee/node_modules/vite/dist/node/chunks/dep-c9c9d3e5.js:71386:13)
    at resolveConfig (/home/projects/vitejs-vite-zqmwee/node_modules/vite/dist/node/chunks/dep-c9c9d3e5.js:70869:9)
    at async createServer (/home/projects/vitejs-vite-zqmwee/node_modules/vite/dist/node/chunks/dep-c9c9d3e5.js:56354:20)
    at async CAC.eval (/home/projects/vitejs-vite-zqmwee/node_modules/vite/dist/node/cli.js:688:24)

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Looks like the issue stems from dotenv-expand according to the logs.

See https://github.com/motdotla/dotenv-expand/issues/45
There is kind of breaking change if our environment variable contain $ (and maybe other special characters that may be related to the interpolation feature of the package)

Escaping $ (replacing by \$) in environment variables fix it.
My recommendations would be to either mention this in 2.8.0 changelog/release notes, or downgrade dotenv-expand to not have the interpolation feature that force environment variables containing $ to be escaped.

I have the same issue because I'm trying to integrate Vite to WordPress with the Bedrock framework which has environment variables for configuring WP. The problem is that these env vars are random salts and there can't be escaped.
Does the upgrade fix the problem here #6906 ?

Added as "bug" since it's technically a intended behaviour from dotenv-expand. Though I'm not a fan of it either, $xxx is quite error-prone, and I don't think there's a way to disable that specifically. And to "fix" it on Vite side is to revert https://github.com/vitejs/vite/pull/6703, dotenv-expand v6 onwards support the $xxx feature so #6906 won't help I believe.

It isn't clear what is the best here. Vite docs clearly state that we are using dotenv to load env files here https://vitejs.dev/guide/env-and-mode.html#env-files, so other users may report that Vite is not supporting a syntax that dotenv supports. And we did the upgrade in a minor, so even if it could count as a breaking change, it is not different from other similar upgrades we have done in the past (like esbuild).
IMO, we should add a note in the 2.8 release notes about this.

We need a more concrete error message here.
The error stack doesn't clearly tell us which file caused the error. It should at least show the file name; and the line number if possible.

I just saw that dotenv-expand isn't actually documented, we only say we are using dotenv. So this now counts as a regression to me, I agree with @bluwy here.
Let's revert https://github.com/vitejs/vite/pull/6703 and we discuss in a future team meeting. Since Vite 3.0 is only a few months away, maybe we could do the update there instead of in a minor.

linking for future reference: https://github.com/motdotla/dotenv-expand/issues/65


Support for using cloud GPU

I want to use the SAM on Qupath but don't have any GPU on my computer. Would it be possible to provide access to something similar to Cloud collab

Hi @DataTracer, thank you for the question.
Unfortunately, Google Colab does not allow to host a web service offerings not related to interactive computing with Colab.
https://research.google.com/colaboratory/faq.html#limitations-and-restrictions
I don't have any good suggestions for free GPU options. For paid options, we can set up the samapi server with a GPU instance on a public cloud service (e.g. Amazon AWS, Microsoft Azure, Google Cloud).
Did you try running the samapi server without GPU (CPU mode) on your machine? I have tested samapi without GPU, and it is still feasible to work with it.
The installation is simple as below:
conda create -n samapi -y python=3.10
conda activate samapi
python -m pip install git+https://github.com/ksugar/samapi.git

Then you can run it with the following command.
export PYTORCH_ENABLE_MPS_FALLBACK=1 # Required for running on Apple silicon
uvicorn samapi.main:app

I hope it works for you.

Thanks! Your extension works really well and  I tried it on CPU but obviously not as fast :-)
I am trying to train the classifiers of Qupath on some users DAB data, fingers crossed!
Thanks for building this and making it available for the community
Best wishes
Nabanita

Hi, I am using a workstation with NVIDIARTX5000 and
installed  as below :
If you're using a computer with CUDA-compatible GPU, install cudatoolkit.
conda install -c conda-forge -y cudatoolkit=11.7
If you're using a computer with CUDA-compatible GPU on Windows, install torch with GPU-support with the following command.
Windows with CUDA-compatible GPU only
python -m pip install "torch>=1.13.1,<2.0" torchvision --index-url https://download.pytorch.org/whl/cu117
Then when i am launching the server i get the following message

I could be wrong but RTX 5000 is CUDA compatible ?
Looking forward to your reply
Nabanita

Hi @DataTracer, RTX 5000 is compatible with CUDA 11.7 according to this matrix.
https://forums.developer.nvidia.com/t/cuda-compatibility-between-nvidia-rtx-a5000-and-geforce-rtx-4060-ti/264216
Could you share the output of the nvidia-smi command? The Nvidia driver may need to be updated.
Example:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 528.89       Driver Version: 528.89       CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA RTX A4000   WDDM  | 00000000:01:00.0 Off |                  Off |
| 41%   31C    P8     7W / 140W |    238MiB / 16376MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

Hi @ksugar , Thank you, I am trying to run the nvidia-smi command, it disappears instantly, so I am unable to share the output.
On a separate note , I also posted this on image.sc but do you have any thoughts on how to  use SAM annotations to train the object classifier in QuPath?
Thanks a lot
Best
Nabanita


rfc bibxml has bad anchors

What https://dev.bibxml.org/get-one/by-docid/?docid=RFC+4214&doctype=IETF&query=4214 offers for download starts out
<reference target="https://www.rfc-editor.org/info/rfc4214" anchor="RFC 4214">

That should be anchor="RFC4214". No space please.
Further, what's served at https://dev.bibxml.org/public/rfc/bibxml-rfcs/reference.RFC.4214.xml starts out
<reference target="https://www.rfc-editor.org/info/rfc4214" anchor="RFC.4214">

There should not be a period in that anchor.

Regarding https://dev.bibxml.org/public/rfc/bibxml-rfcs/reference.RFC.4214.xml, I was going off https://github.com/ietf-ribose/bibxml-service/issues/57#issuecomment-1023539266, from which I got the impression that anchor should exactly match filename.

Regarding https://dev.bibxml.org/get-one/by-docid/?docid=RFC+4214&doctype=IETF&query=4214, after today’s change it should prefer identifier with scope=anchor. (Which value that will be is down to data sources, but for RFCs that value is RFCXXXX without spaces.)

This takes us into legacy RFCXML. These anchors are used in RFCXML source, and the formats are specific to the individual domains. It is unfortunate that they didn't grow more consistency when they developed over time, but they are what they are, and trying to make them consistent right now is simply not an option.

In this case then for legacy paths we can implement the patterns as described in https://github.com/ietf-ribose/bibxml-service/issues/151#issuecomment-1064218979 .
How about returns from the new API?

Do we want to hard-code the anchors to the same names; or
add the "anchor" in the URL as a parameter value so that the user (i.e. xml2rfc) could potentially customise in the future?

The user being affected is not xml2rfc, it is the draft author.
Authors refer to the anchors when making references from within their prose to a reference.
The string they use for target= is what we're talking about.
If the new API returns a different anchor, an author would have to update all of the places the reference was used, changing the target string before the document could be processed.
In particular, any software that tried to bridge the gap for the author would now have a much harder job than "Retrieve the same bibxml using a different technique".
The requirement for this project was to reproduce the existing Bibxml. (Acknowledging that we've adjusted where the existing bibxml is clearly broken).
The new API should return the same anchors.

Thank you @rjsparks for the clarification.
@strogonoff can you please help fix the anchors as described for the datasets mentioned above, i.e.:

RFC: https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.0001.xml => anchor of "RFC0001" (omission of period)
RFC subseries: https://xml2rfc.tools.ietf.org/public/rfc/bibxml-rfcsubseries/reference.BCP.0004.xml => anchor of "BCP4" (omission of period and leading zeros)
bibxml8/IANA. https://xml2rfc.tools.ietf.org/public/rfc/bibxml8/reference.IANA.dns-parameters.xml => anchor of "DNS-PARAMETERS" (upper case of filename)

@ronaldtse

I want to confirm the change of requirements. It was stated to me on a couple of occasions that xml2rfc anchor should match requested filename. That’s how it works now: via xml2rfc API, one can request https://dev.bibxml.org/public/rfc/bibxml/reference.RFC.0001.xml and see anchor RFC.0001, or one can request https://dev.bibxml.org/public/rfc/bibxml/reference.RFC0001.xml and see anchor RFC0001. (And via new API, one can supply any anchor, while Relaton’s scope=anchor docid is used by default.)

If we have fixed anchors Ideally we should provide the requisite anchor value in Relaton’s bibliographic item YAML, and specify how BibXML can obtain the value. Otherwise we’ll be stuck with brittle string manipulation and lots of special cases. For example, if relaton-data repositories update YAML so that docid contains a structure with scope=anchor and anchor conforming to formats you listed in your previous comment, then it will just work in new API with no changes to BibXML service (and if (1) is confirmed, xml2rfc API can also ignore the filename and use these anchors).

@strogonoff the anchors have been updated for RFCs, RFC subseries and IANA. Can you help check the status of this task? Thanks.


ArgumentOutOfRangeException was thrown when creating DateTimeOffset for MinDate

Please find the issue details here https://github.com/microsoft/ProjectReunion/issues/732.

Hi Team,
Any update on this?

Issues are not reviewed here per https://github.com/microsoft/dotnet/issues/1275
Try filing at https://github.com/dotnet/runtime/issues.


Save as and load now uses open canvas as location

-for creating many canvas in the same folder.

Hey, thank you, that has been bothering me for a while and didn't know the cause...
I made some changes and added the fix to background drawing, hope that's ok for you:)
https://github.com/Baste-RainGames/Node_Editor/pull/107/files


Can you provide your log file?

Hi, can you provide your log file so that I can find out whether my training process is correct? Thank you very much.

Some of them are not available for now, I hope the following one could help you.
sst_waymoD5_1x_3class_12heads_20211213_125107.log

Great! Thank you.


Fix serve watching logic for directories

This code is a little complicated. Mostly this is because watching individual files doesn't work (https://github.com/notify-rs/notify/issues/394) so we need to use directories + filtering to achieve the same effect.

Thanks 🙏


Fix typo in Dump DNS documentation

Thanks! Did you use DNS queries successfully, or are you missing things?

I haven't gotten that far. I just read your great blog articles and had a look at the docs out of interest. But so far I haven't had an issue yet where I needed to go that deep.


Feature request : Automatically restore the most recent full backup before when trying to restore a partial backup

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It seems that i have to manually restore to the most recent full backup before my selected partial backup every time, which makes the rollback process a bit more inconvenient. (Actually i am quite curious what will happen if i just skip that first step. )
Describe the solution you'd like
A clear and concise description of what you want to happen.
let the mod detect the most recent full backup before the selected partial backup and automatically restore it in advance so that the user only need to communicate with the shell script once to rollback.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This is already done - and the console should give that information when restoring a partial.
Has this not been the case from your experience?

Apologies for misunderstanding the README file. I reviewed the documentation again and realized that I incorrectly referred to the "MANUAL BACKUP RESTORATION - FULL BACKUP" section for command-line usage. Thank you for the clarification!


Pingora 0.1.1 Version is not published to crates io

Describe the bug
0.1.1 version of Pingora has not been published to Crates IO
Pingora info
Please include the following information about your environment:
Pingora version: release number of commit hash
Rust version: i.e. cargo --version
Operating system version: e.g. Ubuntu 22.04, Debian 12.4
Steps to reproduce
0.1.1 cannot be found on Crates Io
Expected results
0.1.1 should be found on Crates IO.
Observed results
The newest version of Pingora is still 0.1.0 on Crates IO.
Additional context
What other information would you like to provide? e.g. screenshots, how you're working around the
issue, or other clues you think could be helpful to identify the root cause.

Hello! We'll be a little late to publishing 0.1.1 onto crates.io unfortunately, but it should happen this week. I'll leave this issue open until we do. Thanks!

I'm back from vacation and now all the crates are published.


illumina variant name import is clobbering existing entities

This is corrected for all proposed variant alias revisions that are still open.


feature: exit with non-zero exit code

Since ssh-audit can used in a script, it would be nice if ssh-audit would exit with exit code of 2 if there are 1 or more recommendations. I'd be fine with this requiring an optional command argument.

Currently this too has pretty standard utility behavior - exits with 0 on success and with 1 if something failed (connection, data, etc). I don't think it is wise to change exit code to < 0 if everything was run fine, therefore I would opt for the option to control this behavior, as You suggested.
I'd like to have a bit more of Your thoughts on this. For example:

recommendations are given only on what can be done to make configuration better for specific software and version, but that means that sometimes, even if there are no recommendations, there will be fail-s reported. In this case only "recommendation" could be: "upgrade". And as in this case, the output of recommendations would be empty, what would be the error code, - zero? Maybe it's better to handle exit code based on given fail-s and warn-s?

there can be situation, when there are no recommendations, but this specific software has known vulnerabilities or exploits (reported in security section). What exit code to use then?

See where I'm getting with this? A bit more careful planning must be done before implementing this feature.

Thank you for the reply @arthepsy
My hypothetical use case would be to use ssh-audit as part of continuous auditing of all SSH servers using Sensu or Nagios checks. In Nagios compatible checks, exit code 0 means PASS, 1=WARN, 2=CRITICAL,3=CHECKERROR. This is the primary reason behind wanting exit code 2.

there can be situation, when there are no recommendations, but this specific software has known vulnerabilities or exploits (reported in security section). What exit code to use then?

Exit code 2. I think running ssh-agent in my proposed mode should only return 2 if there are security issues or a severe case of misconfiguration that could lead to problems, regardless of SSH server version. If upgrading SSH server is the only way to fix them, then upgrade is what should be done to silence the alarm (get exit code 0).
Basically, exit code 0 should mean "based on all information available to ssh-audit, this SSH server version and configuration are secure".

Once possibility is to define an environment variable detailing the error code further.