[Feature Request] Add User Agent strings

Being able to fake browser user agent strings would be exceedingly useful for mocking things like visit tracking and related functions.
ie.
Faker::Internet.user_agent(:firefox) # => 'Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0'
# OR
Faker::Internet.user_agent(:edge)    # => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393'

Hello I am new to Open source can I work on this?

You bet!

@stympy Hey I forked over the repo, but I am having trouble starting this, any advice?
-Thank you.

Hello @stympy quick question, so when someone does Faker::Internet.user_agent(:firefox) they get the UAS's for FireFox.
Now do you want the user_agent method to support only the popular browser such as (FireFox, Chrome, Safari, and Internet) or any browser?
-Thank you.

For my own use case, the major ones would suffice, but others may disagree.
Another thing that comes to mind is mobile browsers, but that's not necessary for an MVP.

Hey @Mihail-K Alright cool, also does the browser that is passed into .user_string() does it have to be a symbol or can it be a string?

Thank you.

I don't think it makes much of a difference.
Generally speaking, unless there's reason to differentiate, it's best to accept both.

Hello @Mihail-K and @stympy I added the tests and the feature. Let me know what you guys think and if I need to fix anything.
-Thank you!

Hello @Mihail-K and @stympy sorry for the bother, but any update on this?


Coroutines 1.4.0

Coroutines had a new release today.
I'm not reporting to request it's immediately upgraded or anything, just to open a tracking issue.
Thanks for all the hard work on this library, it's extremely useful!

1.4.2 is now the latest.


Nicer code highlighting

What Happened?
Our syntax highlight is kind of drab and boring:

What Did You Expect to Happen
The code actually looks much better when rendered on GitHub:

Screenshot (If Applicable)
See above.

Small improvement:
https://github.com/firebase/firebaseopensource.com/commit/0a50abaf42bcd5ab39f18e8178d8f308689d5071

This is now fixed, moved off of hljs


ERROR:  relation "settings" does not exist at character 204

Hi, last week I was able to deploy successfully on AWS and send emails, but now that I'm trying to run it locally I can't get it set up.
I followed the instructions here: https://github.com/freeCodeCamp/mail-for-good/blob/master/docs/local_deploy.md
and after running sudo docker-compose up i got the following error:
postgres_1  | ERROR:  relation "settings" does not exist at character 204
postgres_1  | STATEMENT:  SELECT "id", "amazonSimpleEmailServiceAccessKey", "amazonSimpleEmailServiceSecretKeyEncrypted", "amazonSimpleQueueServiceUrl", "region", "whiteLabelUrl", "email", "createdAt", "updatedAt", "userId" FROM "settings" AS "setting";

i see there is a previous issue that references this same error (#172 ) and the advice was to change line 6 in docker-compose.yml — change tag to latest. i have tried this too but am still getting the same error.
any other ideas how to resolve this?
thanks!

On the first launch, you may see this error or the one below
postgres_1  | ERROR:  relation "users" does not exist at character 112
postgres_1  | STATEMENT:  SELECT "id", "googleId", "picture", "token", "email", "name", "sentEmailsCount", "createdAt", "updatedAt" FROM "users" AS "user";

This is because you have launched a fresh MfG and there is no user nor user AWS configuration (aka "settings") yet. These errors won't be displayed once you have logged into your instance and filled up the setting page.
Did you try to visit localhost regardless?

@zhakkarn this is a different error though, it's not the "users" does not exist error, mine says relation "settings" does not exist. i'm getting the "users" error as well but was not worried about it because i saw from other issues that this is normal on first login. i'm going to try reinstalling everything and starting over and see if i can get it to work... it's working fine on AWS

@rifkegribenes What I failed to convey is that it is a different error but the same cause. Before replying I relaunched the app through docker-compose after clearing all anonymous volumes and recreating the containers. I got both errors then visited http://localhost/ and got the app served.

@zhakkarn thank you, i just switched back to stable in docker.compose and rebuilt and now it is working! thank you for your response, i'll close issue.


支持ARM64架构，添加Helm部署

修改Dockerfile，对ARM64架构的支持。
添加Helm，以支持使用Helm快速部署。

Codecov Report

Merging #313 into master will decrease coverage by 1.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #313      +/-   ##
==========================================
- Coverage   21.46%   20.35%   -1.12%
==========================================
  Files           7        7
  Lines         778      678     -100
==========================================
- Hits          167      138      -29
+ Misses        581      510      -71
  Partials       30       30

Impacted Files
Coverage Δ

pilot/piloter.go
11.76% <0.00%> (-8.24%)
:arrow_down:

pilot/format.go
71.42% <0.00%> (-4.33%)
:arrow_down:

pilot/pilot.go
24.88% <0.00%> (-1.30%)
:arrow_down:

pilot/filebeat_piloter.go
6.25% <0.00%> (-0.33%)
:arrow_down:

pilot/util.go
0.00% <0.00%> (ø)

pilot/extension.go
0.00% <0.00%> (ø)

pilot/fluentd_piloter.go
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

还有人维护吗？

有的 :)

还有人维护吗？

有的 :)


Seeded RB circuits seem to change

What is the current behavior?
Just initialize a simple RB experiment:
lengths = np.arange(1, 10)
num_samples = 1
seed = 1010
qubits = [0]

# Run an RB experiment on qubit 0
exp1 = StandardRB(qubits, lengths, num_samples=num_samples, seed=seed)

Then running exp1.circuits()[0].draw(output='mpl')
yields randomly changing results:

This is not a bug but the expected behavior - circuits() is supposed to return a fresh set of circuits each time it is called. Fixing seed means that you'll get the same two sets of circuits when calling circuits() twice, not that those two sets will be the same.
We should definitely discuss whether we want to keep this behavior and whether it's consistent with other experiments; it should be easy enough to change.


[Security] Workflow nmake.yml is using vulnerable action actions/checkout

The workflow nmake.yml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

Should be resolved in develop.


Scenario Player test passed

Description
Scenario Player test passed
Acceptance criteria

Tasks

[ ]

Remarks

Start with one simple test first and iterate on that

Link to the slides of the meeting with the core team: https://docs.google.com/presentation/d/1nTX9dKp0fNfxN5vK3THYXzryxN4C40CGf7Emu1LR5dc/edit#slide=id.p1

Outcome of the meeting
How could we integrate the Light Client into the Scenario Player?

Identify or create one simple scenario
Within the scenario first just use Light Client (send/receive)
Adapt to the LC CLI or adapt the scenario player to work with the LC CLI (recommended)
a. Keep one code base
b. Write tests for newly implemented features / changes
Provide a nightly build (existing space) - check if it works

Who?

LC team
Support from Dominik, Nils and Augusto for questions

How long?

1 - 4 weeks (more leaning towards 4 weeks) for the first simple scenario

How?

Onboarding into the scenario player code for Thore


import mesh_renderer error

python=3.6 , tensorflow=1.12, cuda=9.0
I used 'pip install mesh_renderer' to install mesh_renderer.
Did anyone meet with this problem when import the mesh_renderer?

Can you try to use bazel to install tf mesh renderer? It seems that pip install is not stable for different environment.

I have tried to use bazel to install tf mesh renderer? but it always got some problems. firstly, I can't find the rasterize_trianales.so file. Then, I changed a library compiled by another person.  but also suffered from the same questions?

You might have to locate the rasterize_trianales.so file in your computer, and then modify the path in tf.load_op_library to your custom path.

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs  " error.
Thank you very much for your kind help!

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

When compiling rasterize_triangles_kernel.so, change g++ param -D_GLIBCXX_USE_CXX11_ABI=0 to -D_GLIBCXX_USE_CXX11_ABI=1. This solves my problem.

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

When compiling rasterize_triangles_kernel.so, change g++ param -D_GLIBCXX_USE_CXX11_ABI=0 to -D_GLIBCXX_USE_CXX11_ABI=1. This solves my problem.

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

When compiling rasterize_triangles_kernel.so, change g++ param -D_GLIBCXX_USE_CXX11_ABI=0 to -D_GLIBCXX_USE_CXX11_ABI=1. This solves my problem.

I change it but it makes another error， then I change tensorflow version to 1.15.2 and now it is ok.  And the output .so file is in tf_mesh_render/bazel-bin/mesh_render/kernels/  .

Yeah, I did that as your suggestions, but also got the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error.
Thank you very much for your kind help!

Have you solved the "undefined symbol:_ZN10tensorflow120pDefBuilder4AttrESs " error. Thank.

I haven't solved!

When compiling rasterize_triangles_kernel.so, change g++ param -D_GLIBCXX_USE_CXX11_ABI=0 to -D_GLIBCXX_USE_CXX11_ABI=1. This solves my problem.

I change it but it makes another error， then I change tensorflow version to 1.15.2 and now it is ok.  And the output .so file is in tf_mesh_render/bazel-bin/mesh_render/kernels/  .

python=3.6 , tensorflow=1.12, cuda=9.0 我使用“pip install mesh_renderer”安装了 mesh_renderer。 有人在导入 mesh_renderer 时遇到过这个问题吗？

python=3.6 , tensorflow=1.12, cuda=9.0 我使用“pip install mesh_renderer”安装了mesh_renderer。有人在导入mesh_renderer时遇到这个问题吗？

可以加个好友交流一下吗？ 我也是卡在了这里


Migrate/integrate crawler/

[ ] https://github.com/osism/openstack-image-manager/issues/474
[ ] https://github.com/osism/openstack-image-manager/issues/475
[ ] https://github.com/osism/openstack-image-manager/issues/476
[ ] https://github.com/osism/openstack-image-manager/issues/477
[x] https://github.com/osism/openstack-image-manager/issues/478
[x] https://github.com/osism/openstack-image-manager/issues/480
[x] https://github.com/osism/openstack-image-manager/issues/481

Crawler removed, can be closed here.


TypeError: 'NoneType' object is not subscriptable

Bug description
When I run the autoencoder.py program in the pl_basics directory, I get the error:
Traceback (most recent call last):
File "autoencoder.py", line 193, in
cli_main()
File "autoencoder.py", line 188, in cli_main
print(predictions[0])
TypeError: 'NoneType' object is not subscriptable
How to reproduce the bug
python autoencoder.py --trainer.accelerator 'gpu' --trainer.devices 2

Error messages and logs
# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info
No response

@pan24n Sorry for the late response.
I verified that this will work with Lightning 2.0, and that the predictions get printed.
This is because in the new version, we change the default from ddp-spawn to ddp.


Enable TLS and client-side authentication in Presto and reporting-operator by default.

Currently seeing if the images build correctly.
This needs to add some more validation of relevant fields and clarify some of the behavior we want.

The image CI test failed due to PR 760 being merged to master, and this branch not being updated.

/lgtm
/approve


PR test

Finished landmine_tank.
Shoots landmines:
Stops and turns invisible after travelling a certain distance.
Deals damage upon contact.
Disappears after a certain period of time.


Initial BA implementation for PyTorch

Implements BA equation from ADBench.
Current Issues and Information:
Memory:

ADBench ran their benchmarking on a machine with 32GB of RAM
We are running on a machine with 16GB of RAM
Memory should not currently be an issue as ADBench repo (with default settings) for BA only used up to around 14GB

Default settings are only running on files ba1 through ba5
Default repo has measures in place to stop running a function if it uses up too much memory but they currently have the max set to infinity
Unclear what (if any) memory limitations were used for official benchmarks

On our machine, the jacobian calculation for ba2 took 3GB, ba3 took 11GB before it timed out (after 300 seconds)

Timing:

ADBench has two different timing messages

Killed after 300 seconds

Kills process in run-all.ps1 (line 200) if call is taking too long
Sets status to timed out so future runs don’t happen (see below)

Didn’t run due to guaranteed timeout

If previous runs timed out these will automatically be skipped

The ADBench repo with its default settings has a 300 second timeout in place around individual functions

ba1 and ba2 run, ba3 times out, ba4 and ba5 are then skipped
I could not find what timeout they used for their published benchmark

I implemented a 300 second timeout

Set up a signal alarm that goes off if function hasn’t completed in 300 seconds
Jacobian for ba3

Segmentation Fault:

Despite the timeout and memory staying within ADBench's limits, some files throw a segfault

Objective for ba3: successfully runs in around 100 seconds but throws a segfault before output is sent over JSON
Other files throwing a segfault as well right when they reach the timeout, this is likely due to how the process is killed using signal. Using multiprocessing instead could fix this but causes other issues.

Other:

ADBench published results include a couple tools we have implemented (DiffSharp, Autograd, etc.) but PyTorch is not one of them

Unclear what (if any) memory limitations were used for official benchmarks

Not a direct answer to this question but by using git blame we can find the PR where they introduced the OOM machinery: microsoft/ADBench#177


Documentation?

Hello, I would really like to use this library but couldn't find any documentation beyond the basic usage in the readme. Could anyone point me to some resources where I could learn to use this library?

Honestly, there isn't a whole lot of documentation. This is something I am working on, but I'm a busy college student so my free time is severely limited 😉
I would recommend looking at the source code, and the example usage. Additionally, make use of the TypeScript types to gett better editor reccomendations

Thanks for responding, I'll check out the source code!


Consider more typesafety

product.New(required, fields, here).Optional(field)

This is useful when you change part of the schema, but you don't (or can't) test all codepaths

Nah, this would silently fail if you had two text fields that swapped order.


Fix bug in ORCiD integration by switching to using new method name

I noticed an error in Bugsnag related to someone trying to add employment info to ORCiD. It turned out to be a regression caused by the last Rails upgrade that we didn't catch because our tests in this area are a little thin. I went ahead and made the fix since it was quick, but I haven't done anything to improve the associated tests. That might be an item for future consideration.

Thank you both! I'm not sure if there's a way for us to delete anything in ORCID for a user, but @DanCoughlin or @bdezray might know.

@DanCoughlin @bdezray Do you know whether we can fix the user's ORCID record for them? If not, I would like to email them.

@anaelizabethenriquez I apologize for not responding sooner. I considered Eric's answer to be more informative than what I had. I should have confirmed that for you.

@DanCoughlin Sounds good, thanks! I will email the user.


Update QuartzInitializerServlet.java

Changed the import statement from javax.servlet.* to jakarta.servlet.* to be compatible with Tomcat 10 release
In submitting this contribution, I agree to the current Software AG contributor agreement as referred to here:
https://github.com/quartz-scheduler/contributing/blob/main/CONTRIBUTING.md
This PR...
Changes

Checklist

[x] tested locally
[x] updated the docs
[x] added appropriate test
[x] signed-off on the above mentioned SoftwareAG contributor agreement via git commit -s on my commits.
(If you're not using command-line, you can use a browser extension )

Fixes #

trying to commit


Update to 1.26 with Home Assistant 2023.1 introduced issues controlling thermostat HmIP-WTH-1

custom_component version (if applicable):
1.26.0
known last working custom_component version (if applicable):
1.25.1
Home Assistant:

Version: 2023.1.0
Installation method HAOS, supervised, core, venv, Docker):
HAOS

CCU:

Model (CCU2/3, Raspi3/4, NUC, ProxmoxVE, HA-Addon ...): HA Addon
OS (Original, RaspberryMatic, debmatic ...): RaspberryMatic
Version: <IP_ADDRESS>21218

Problem-relevant configuration:
If have a HmIP-WTH-1 which I control via Home assistant.
Describe the bug
As of version 1.26 I am having issues controlling the thermostat when I try to change the operating mode or the profile of the climate entity in the user interface. In the bottom the failed to call service pops up. In the logs I see the following:
2023-01-05 14:26:00.598 DEBUG (MainThread) [hahomematic.central_unit] check_connection: Checking connection to server HomeMatic
2023-01-05 14:26:00.599 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('ping', ('HomeMatic-VirtualDevices',))
2023-01-05 14:26:00.617 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('ping', ('HomeMatic-HmIP-RF',))
2023-01-05 14:26:00.632 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-VirtualDevices, channel_address = CENTRAL, parameter = PONG, value = HomeMatic-VirtualDevices
2023-01-05 14:26:00.638 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('ping', ('HomeMatic-BidCos-RF',))
2023-01-05 14:26:00.646 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = CENTRAL:0, parameter = PONG, value = HomeMatic-HmIP-RF
2023-01-05 14:26:00.649 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-BidCos-RF, channel_address = CENTRAL, parameter = PONG, value = HomeMatic-BidCos-RF
2023-01-05 14:26:05.321 DEBUG (MainThread) [hahomematic.json_rpc_client] get_all_system_variables: Getting all system variables via JSON-RPC
2023-01-05 14:26:05.322 DEBUG (MainThread) [hahomematic.json_rpc_client] _post: Method: SysVar.getAll, [None]
2023-01-05 14:26:05.424 DEBUG (MainThread) [hahomematic.json_rpc_client] get_system_variables_ext_markers: Getting system variables ext markersvia JSON-RPC
2023-01-05 14:26:05.523 DEBUG (MainThread) [hahomematic.json_rpc_client] _post_script: Method: ReGa.runScript [get_system_variables_ext_marker.fn]
2023-01-05 14:26:05.523 DEBUG (MainThread) [hahomematic.hub] _update_entities: 5 sysvars received for HomeMatic
2023-01-05 14:26:05.524 DEBUG (MainThread) [hahomematic.json_rpc_client] get_all_programs: Getting all programs via JSON-RPC
2023-01-05 14:26:05.524 DEBUG (MainThread) [hahomematic.json_rpc_client] _post: Method: Program.getAll, [None]
2023-01-05 14:26:05.589 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('setValue', ('00391F29AD6151:1', 'BOOST_MODE', False))
2023-01-05 14:26:05.629 DEBUG (MainThread) [hahomematic.hub] _update_program_entities: No programs received for HomeMatic
2023-01-05 14:26:08.297 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = UNREACH, value = True
2023-01-05 14:26:08.298 DEBUG (XmlRpcServer on port 41721) [hahomematic.entity] event: HomeMatic-HmIP-RF, 00391F29AD6151:0, UNREACH
2023-01-05 14:26:08.325 WARNING (MainThread) [hahomematic.client] _set_value failed with ProxyException [(<Fault -1: 'Generic error (TIMEOUT)'>,)]: 00391F29AD6151:1, BOOST_MODE, False
2023-01-05 14:26:08.328 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('setValue', ('00391F29AD6151:1', 'ACTIVE_PROFILE', 1))
2023-01-05 14:26:11.121 WARNING (MainThread) [hahomematic.client] _set_value failed with ProxyException [(<Fault -1: 'Generic error (TIMEOUT)'>,)]: 00391F29AD6151:1, ACTIVE_PROFILE, 1
2023-01-05 14:26:11.125 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = UNREACH, value = True

Also as soon I try to change a value in the Home Assistant user interface, i see in Raspberrymatic:

I can control the thermostat via Raspberrymatic though
To Reproduce
Steps to reproduce the behavior:

Go to the thermostat device in the via the 'devices & services'
In the device view, in the controls section click on the themostat control
Change operation from heat to off
Error in bottom of screen pops up, device becomes unavailable, comms with device becomes interrupted in raspberrymatic. To fix this i have to change a setting in the device in raspberrymatic and send it to the thermostat. Device is then controllable again from raspberrymatic.

failed with ProxyException [(<Fault -1: 'Generic error (TIMEOUT)'>,)]: 00391F29AD6151:1, ACTIVE_PROFILE, 1

There is a TIMEOUT, so at first sight this is a communication problem not related to this integration.
Maybe a restart of the RM-Addon helps.

I know, i tried everything, rebooting it all.
As soon as i start changing mode from Home Assistant the issues start popping where there no issues before upgrading.
Within the raspberrymatic the logs says this:
Jan  5 14:36:27 de838cd8-raspberrymatic local0.warn ReGaHss: WARNING: XMLRPC 'setValue': rpcClient.isFault() failed (url: xmlrpc://<IP_ADDRESS>:32010, params: {"00391F29AD6151:1","CONTROL_MODE",0}, result: [faultCode:-1,faultString:"Generic error (TIMEOUT)"]) [CallXmlrpcMethod():iseXmlRpc.cpp:2608] Jan  5 14:36:27 de838cd8-raspberrymatic local0.err ReGaHss: ERROR: XMLRPC 'setValue' call failed (interface: 1035, params: {"00391F29AD6151:1","CONTROL_MODE",0}) [CallSetValue():iseXmlRpc.cpp:1505] Jan  5 14:36:27 de838cd8-raspberrymatic local0.err ReGaHss: ERROR: rpc.CallSetValue failed; address = 00391F29AD6151:1 [WriteValue():iseDOMdpHSS.cpp:76]

"Generic error (TIMEOUT)"]) [

You have a communication problem from your CCU to your device.

Yes and this communication problem is a result of something happening within communication between Home Assistant and Raspberrymatic which occurs as soon as I change the mode. This started when I updated to 1.26 / Home assistant 2023.1.
Did another test. I first changed the temperatures, then changed mode from heat to off. Temp updates went fine. As soon as I change mode it goes wrong.
log in home assistant:
2023-01-05 15:00:10.557 DEBUG (MainThread) [hahomematic.client] _set_value: 00391F29AD6151:1, SET_POINT_TEMPERATURE, 10.0 2023-01-05 15:00:11.495 DEBUG (MainThread) [hahomematic.central_unit] check_connection: Checking connection to server HomeMatic 2023-01-05 15:00:11.496 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('ping', ('HomeMatic-VirtualDevices',)) 2023-01-05 15:00:11.506 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('ping', ('HomeMatic-HmIP-RF',)) 2023-01-05 15:00:11.512 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-VirtualDevices, channel_address = CENTRAL, parameter = PONG, value = HomeMatic-VirtualDevices 2023-01-05 15:00:11.520 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('ping', ('HomeMatic-BidCos-RF',)) 2023-01-05 15:00:11.523 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = CENTRAL:0, parameter = PONG, value = HomeMatic-HmIP-RF 2023-01-05 15:00:11.563 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-BidCos-RF, channel_address = CENTRAL, parameter = PONG, value = HomeMatic-BidCos-RF 2023-01-05 15:00:13.998 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = CONFIG_PENDING, value = False 2023-01-05 15:00:13.999 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = DUTY_CYCLE, value = False 2023-01-05 15:00:14.000 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = LOW_BAT, value = False 2023-01-05 15:00:14.000 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = UNREACH, value = False 2023-01-05 15:00:14.001 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = RSSI_DEVICE, value = -62 2023-01-05 15:00:14.002 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = OPERATING_VOLTAGE_STATUS, value = 0 2023-01-05 15:00:14.002 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = OPERATING_VOLTAGE, value = 3.0 2023-01-05 15:00:14.016 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = SET_POINT_TEMPERATURE, value = 10.0 2023-01-05 15:00:14.016 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = BOOST_TIME, value = 0 2023-01-05 15:00:14.016 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = PARTY_MODE, value = False 2023-01-05 15:00:14.016 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = HUMIDITY, value = 53 2023-01-05 15:00:14.016 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = QUICK_VETO_TIME, value = 0 2023-01-05 15:00:14.017 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = FROST_PROTECTION, value = False 2023-01-05 15:00:14.017 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = SET_POINT_MODE, value = 1 2023-01-05 15:00:14.017 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = ACTUAL_TEMPERATURE_STATUS, value = 0 2023-01-05 15:00:14.017 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = SWITCH_POINT_OCCURED, value = False 2023-01-05 15:00:14.017 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = ACTIVE_PROFILE, value = 2 2023-01-05 15:00:14.017 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = WINDOW_STATE, value = 0 2023-01-05 15:00:14.018 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = HUMIDITY_STATUS, value = 0 2023-01-05 15:00:14.018 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = HEATING_COOLING, value = 0 2023-01-05 15:00:14.018 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = ACTUAL_TEMPERATURE, value = 17.8 2023-01-05 15:00:14.018 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:1, parameter = BOOST_MODE, value = False 2023-01-05 15:00:19.660 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('setValue', ('00391F29AD6151:1', 'CONTROL_MODE', 1)) 2023-01-05 15:00:22.249 DEBUG (XmlRpcServer on port 41721) [hahomematic.central_unit] event: interface_id = HomeMatic-HmIP-RF, channel_address = 00391F29AD6151:0, parameter = UNREACH, value = True 2023-01-05 15:00:22.249 DEBUG (XmlRpcServer on port 41721) [hahomematic.entity] event: HomeMatic-HmIP-RF, 00391F29AD6151:0, UNREACH 2023-01-05 15:00:22.273 WARNING (MainThread) [hahomematic.client] _set_value failed with ProxyException [(<Fault -1: 'Generic error (TIMEOUT)'>,)]: 00391F29AD6151:1, CONTROL_MODE, 1
So at "2023-01-05 15:00:19.660 DEBUG (MainThread) [hahomematic.xml_rpc_proxy] __async_request: ('setValue', ('00391F29AD6151:1', 'CONTROL_MODE', 1))" i change modes.  I think it has something to do with that.
So again, only after changing the mode, the comms error appears as a direct result from doing a mode change request from Home Assistant.

UNREACH, value = True"

Is a result of a communication problem from CCU to device detected by the CCU!
Rollback to 1.25.1 ! Test it
Nothing changed in 1.26.0 in this communication!

I'm willing to complete go back a backup but I would rather not.
How would you explain the fact that I can control the device perfectly from with the Raspberrymatic webui and that as soon as I change modes from within home assistant this time out pops up?
Something is not right somewhere...

Rollback the integration over HACS!

How would you explain the fact that I can control the device perfectly from with the Raspberrymatic webui and that as soon as I change modes from within home assistant this time out pops up?
Something is not right somewhere...

Sorry but i don't have to explain anything! Maybe you should ask in the RaspberryMatic Forum.
Why am I able to control this device type or any other type without a problem.

I'll give it a shot.
No need to get upset, angry or anything. Just trying to to give feedback here, for you and the rest of the community.

Well, I went back to Home Assistant 2022.12.9 and back to 1.24.3 of HACS Homematic and there also the same issues.
So you are right, it was not related to the 1.26 release.
However, this leaves me no clue of what the actual issue then is. So, if you have any idea please let me know.

Thanks for feedback.

So, if you have any idea please let me know.

Use RM on a dedicated HW.

I have a similar problem with HmIP-eTRV-2 respectively HmIP-HEATING groups for some time now.
When I change the week-profile WP_1/WP_2/WP_3 etc. in the HA thermostat card or with an automation, it's happening very often, that the devices immediately switch to the no available state in the CCU.
I have a CCU3, and the problem exists with the original firmware and RaspberryMatic. HA is running on a NUC with the official image. I really don't know what's happening there. The log files from the CCU3 doesn't give me an answer.

For me the cause of all my issues was the use of the TinyMatic app. For this app to work you had to install an XML-API patch.
After deinstalling this patch all worked well again.

Please no discussions on a closed issue!
What you describe is simply a communication problem between CCU and device, that is hidden from the CCU Web-UI.


Export of a large table cause DBeaver to crash

Description
I have two databases local in docker and remote one. I need to upload large 102GB table from local to remote db. When I try to export this table beaver fetches row count, starts to fetch data and freezes after several second. Docker stats shows 100% usage of cpu while fetching rows then it drops to 0. Mean while dbeaver starts to consume 800+% of cpu, runs for about 2 min, freeze and then been killed by system I guess
I tried different settings, set java memory limit up to 4gb (caught some java heap error during all this) but it still freezes.
Before this I've uploaded a 1.4GB table and worked fine.

Export settings

DBeaver Version
23.2.5
Operating System
macOS 14.1.2
Database and driver
Posgres 16 (postgres:16.0-alpine)
Steps to reproduce

Create a big table
Try to export it to another database

Additional context
No response

Could you try to decrease Fetch size setting?

@E1izabeth
Hi. I've already updated to DBeaver 23.3.0. Tried 1000, 100, 10 and even 1 and it still crashes.

Hello @maksiplus19
Could you please generate a thread dump when DBeaver consumes all resources and attach it here? Here are the instructions:
https://dbeaver.com/docs/wiki/Making-a-thread-dump/
Thank you.

@maksiplus19 Am I correct that during the export docker container doesn't get processor time due to DBeaver using 100% of all cores?

@LonwoLonwo
First time got error 1410: Unable to open socket file /var/folders/83/pg8py7jd7bb26dz46vq_tz1w0000gp/T/.java_pid1410: target process 1410 doesn't respond within 10500ms or HotSpot VM not loaded. Got dump in second time
dbeaver-thread-dump.txt

@Destrolaric I don't think so. In postgres logs looks like dbeaver starts to do something looses a connection to db
2023-12-22 06:51:19.608 UTC [44] STATEMENT:  SELECT * FROM cmdm.rpt_inguru_order_notification 06:51:19.609 UTC [44] FATAL:  connection to client lost

Hi, could you provide screenshots of your data transfer configuration?

@E1izabeth his export settings are in the original message.  Can we continue this investigation?  I'm having the same issue.

Increasing the java heap size fixed my crash.

@maksiplus19 Hi, it looks like DBeaver has more process priority than Docker, which leads to taking an entire available CPU power. Could you see if DBeaver has a high process priority?


How to

Hi guys
I saw this library on Arduino and I wanted to know how do you make it work with Arduino Uno for example.
Because I have the LedControl library which works perfectly but can't make this one work for me with all of the examples.
How should I connect my wires on the Arduino ?
"const uint8_t LEDMATRIX_CS_PIN = 9;"
I think that it doesn't work because of this line that I may have not configure properly.
Thank you

Hi,
From what I see it should be clock (SCK or CLK) to pin 13, DIN to pin 11
and then CS (SS) to wherever you choose (except for pin 10 and 12). 9
should be fine. Don't forget GND and 5V.
You can also try to lower SPI baudrate in the spi settings to something
lower (like few hundred kHz). The default I use for ESP 8266 is 5 MHz and
it could be too much for UNO.
Cheers,
Bartosz

Thank you it works perfectly now. Problem was that CS was connected to pin 10 which was forbidden.


Update Commands

Description
This will be initial release with limited functionality of the following:

swanky phala init [PROJECT_NAME]
swanky phala node start
swanky phala node setup
swanky phala contract compile [CONTRACT_NAME]
swanky phala contract deploy [CONTRACT_NAME]
swanky phala contract typegen [CONTRACT_NAME]
swanky phala contract list
swanky phala account list

Merging then creating new PR for issue #5


added kelvin option for module internal/temperature

What type of PR is this? (check all applicable)

[ ] Refactor
[x] Feature
[ ] Bug Fix
[ ] Optimization
[ ] Documentation Update
[ ] Other: Replace this with a description of the type of this PR

Description
implements temperature in Kelvin for the temperature module

Related Issues & Documents

implements idea #2774
Documentation (check all applicable)

[x] This PR requires changes to the Wiki documentation (describe the changes)

just 2 lines for the formatting options of internal/temperature, I can do that, if you want

[ ] This PR requires changes to the documentation inside the git repo (please add them to the PR).
[ ] Does not require documentation changes

I tested my changes on Linux Mint, and it works perfectly.
My main distro is NixOS, but I haven't figured out how to build stuff there yet.

ok i have no idea what this means lol

ok i have no idea what this means lol

What what means?

ok i have no idea what this means lol

What what means?

the codecov thingy

the codecov thingy

I see. That reports how this PR affects our code coverage. Doesn't really matter here since we don't have any tests for module behavior yet.

thanks :)

Thank your for contributing and also cleaning up some of our code ;)


fix flaking insufficient replace fee check in zkApps test

zkapp_command_insufficient_replace_fee is a transaction trying to replace zkapp_command_update_all transaction with insufficient replace fee. However, at times this check fails due to invalid nonce.
Possible causes:

if the previous transaction got into a block and the pool is updated. https://github.com/MinaProtocol/mina/blob/d257f0ba16ccef219cb6ab5815aa7d260442c24d/src/lib/network_pool/indexed_pool.ml#L931. I did not see this in the logs. Sending the replace transaction immediately after the to-be-replaced transaction to make this unlikely (previously an invalid-proof transaction was sent before the replace transaction)

if the previous transaction was included in the block, the pool's ledger was updated but the transaction wasn't removed from the pool yet. https://github.com/MinaProtocol/mina/blob/d257f0ba16ccef219cb6ab5815aa7d260442c24d/src/lib/network_pool/indexed_pool.ml#L1118 This is a race condition for which

Note: Haven't seen this case https://github.com/MinaProtocol/mina/blob/d257f0ba16ccef219cb6ab5815aa7d260442c24d/src/lib/network_pool/indexed_pool.ml#L998 (with Between in the invalid nonce error)
Fix:  I made a change to retry the insufficient-replace-fee transaction but that doesn't seem to fix case 2
Test: Haven't seen Case (1), blocks are produced before to-be-replaced transaction is sent and after failing transaction
Case(2) seems to happening even after 5 retries
Checklist:

[ ] Dependency versions are unchanged

Notify Velocity team if dependencies must change in CI

[ ] Modified the current draft of release notes with details on what is completed or incomplete within this project
[ ] Document code purpose, how to use it

Mention expected invariants, implicit constraints

[ ] Tests were added for the new behavior

Document test purpose, significance of failures
Test names should reflect their purpose

[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them

Closes #13854

!ci-build-me

This is caused by that the update of the ledger and the update of transaction pool is not happening synchronously. So when best tip changed, first ledger is gets updated; and then transition_frontier_extensions are notified, and transaction_pool is a consumer of transition_frontier_extensions (mainly for best_tip_diff). So ledger always gets updated first and then transaction_pool would be updated later. And there could be such an in-between states that when ledger is update-to-state, while transaction_pool is in an old state. When this happens, we would rejects transactions that tries to replace an existing transaction in the pool.
One of the solution could be make those 2 synchronous. But this could be hard. Another solution is to wait for some time in the integration tests before we send out any transaction that would do a replacement.


adding preds and evaluation reports for SWT evaluation

fixes #43.

The SWT app in this evaluation is too old and no longer relevant. Closing without merge.


Patch to fix build on macos M1

I'm maintaining a script for building ros2_rolling on Macos M1.
I had to patch a smartpointer obj.get() to a normal pointer to make it build on Mac:
https://github.com/pfavr2/install_ros2_rolling_on_mac_m1/commit/d1cea75375d0dbf29b68ca29347c0abc7e540949#diff-c5b35afd050d777ba1c8c90761df926bf296d470ffc31b0d3b161e05b1820354

@pfavr2 I created this PR https://github.com/ros-perception/point_cloud_transport/pull/57, let me know if these changes fix your issues


Remove usage of nonexistent assert_called_once method

This properly fails in mock 1.3.0.
Rather than use assert_called_once_with() I've just used
assertEqual(call_count, 1) which works with older versions
of Mock.
I've bumped the test dependency to mock=1.3.0, which catches
more error cases (such as the one here).
Fixes #738.
cc @kyleknap @mtdowling @rayluo @JordonPhillips

:boat:
Always nice to update dependencies


Enable thread safety analysis for system mutex

New Feature
Thread Safety Analysis is a clang extension tool which adds static analysis for potential race conditions.
This PR adds support for such thread safety analysis to Matter system mutex class.
Simple usage:
int state CHIP_GUARDED_BY(stateMtx);
chip::System::Mutex stateMtx;

void setState_wrong(int value) {
	state = value;      // <--- this will generate clang error during compilation because mutex is not acquired
}

void setState(int value) {
	chip::System::MutexUniqueLock lock(stateMtx);
	state = value;
}

This PR is in fact a single commit from #22895, to make addition of this new feature clear and transparent.
Testing
CI will test build break with new feature added. The Thread Safety Analysis itself is tested in #22895

I would also mention: chip threading model is generally NOT thread-safe as we have a single system thread. This will be beneficial for some platform-specific things like linux ble and the chip main thread as well as async work that we are looking at for crypto not blocking our main processing thread.

I see EFR32 having some trouble

Yes, it's strange, because it looks like a false positive at first glance (maybe pigweed code is not correctly annotated... I'll gave to look at this). Anyway, as far as I remember, a month ago CI was passing (in the original PR).

Related pigweed change request: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/120930


Take advantage of Prepared Geometries

We should give the possibility to 'prepare' geometries and improve performance of subsequent predicates

Those were already used in the STRtree, and in https://github.com/pygeos/pygeos/pull/92 also added more generally with the prepare ufunc.


Add out_parameters Mode::Combined for functions with nontrivial return types

Seems it cover #144 with minor difference. Thanks.

I wasn't completely sure if ret should be the first or last. It probably makes more sense to put it first like suggested in that issue.

And the return value is in the first position now.

Thanks.

@homu r+

:pushpin: Commit f127412 has been approved by gkoz

:zap: Test exempted - status


app init needs flags for prompts

Workspace can be specified by -w, in a same fashion app init should provide flags for project org and extension type

To consider: how easy would it be to pass Project and Org names vs tech IDs?

both could be supported in one flag :)

This can be accomplished by passing a config file.
aio app:init --no-login -i  ./console.json -e dx/asset-compute/worker/1


[OpenCV version of web demo] Simple to use on local PC / Cut out masked objects

Thanks for releasing such an impressing work!
We love this work and we are keep finding the applications and potential of this model.
We also develop a tool using opencv that has similar function as the demo website.
Feel free to try it from my repository here! :hugs:
Main Features:

Point prompt (positive / negative)
Box prompt (support multi-object segmentation)
Auto Masks Generator
No text prompt :cry:

https://github.com/derekray311511/segment-anything/tree/application

(image created by stable diffusion)

follow

@derekray311511  Please make a super simple hello world version of it so people can understand it and go from there. Thanks!

@zdhernandez I just add "Run the model" part so that you can run the model with the script easily. 😃


Remove support for RSS news feed

The news feed is no longer maintained. In preparation for the new react interface, which does not / will not support this, removing the functionality entirely.

Closes https://github.com/inventree/InvenTree/issues/6071

@matmair this was your thing - are you happy for this to be removed?

I think it is a mistake to remove the only way we have pushing info to users but go ahead if you think we do not need it.

@matmair your preference to keep it is enough for me to keep it. I think that in this case we should be making more use of it - to announce new blog posts, or features, or even things like your C3 talk.


Enable check-target to show availability of docker/rsync on target machine

As mentioned on the description, I am changing the output from "check-target" to also display status of target services (i.e. docker, rsync) . I took a very naive approach of only printing result as text output. This does have an impact on integrated tests and, probably, on UI since "check-target" is not returning a list of containers names any more.
I was thinking on two different solutions:

Outputting data in a more structured format (i.e json) and so callers would be able to parser output properly, or;
Adding options to check-target like: -containers_name, -docker, -rsync. And based on this input returned the desired output (i.e return code, list of containers).

Also, only after proposing this I checked the Trello card mentioning that maybe @ncoghlan was already working on a solution for this problem. If that is the case, please, just close this PR.

I think adding a --json option will be the way to go for implementing this in a backwards compatible way, and then at a later point we can look at making --json the default.

I proposed using a --status/-s together with check-target instead of --json since data returned will not be the same if option is not provided. Without --status check-target will only return claimed names on target machine to keep compatibility.

@vinzenz / @ncoghlan I dont see to be able to remove the wip tag, but  I finished the suggested changes on this PR. It should be ready for another review round

The --status approach looks good to me. Since this isn't urgent, it should probably be updated to use the new SSH driver infrastructure though, rather than the old helper methods.
The check-target feature tests should also be updated to cover the new capability.

Contradicting my earlier refactoring comment: since we're going to need to refactor check-target later anyway, it probably makes more sense to keep it self-consistent for now, and then refactor the whole thing to use the remote access driver infrastructure later.
This does need additional test cases, though.

I added the WIP label back, as this still needs test cases.

@ncoghlan, new test added.

@ncoghlan I think most of your suggestions are addressed. Only missing the improvement of docker check. Any suggestion of what a properly test would be? Do you think something like a pgrep -f docker should be enough?

I filed a separate issue for the docker check improvements: https://github.com/leapp-to/leapp/issues/260

Looks good to me, so merged! :)


Make Color.js proxy-friendly, resolves #305

This will also close #220 due to not using private methods anymore

Ok, merging this with a heavy heart 💔

@LeaVerou There's a simple way to opt in to being transparent to proxies if you explicitly want that: access private fields by deferring to the actual object, instead of the current value of this.
class Example {
  _ = this;
  #private = 42;
  method() {
    console.log(this._.#private);
  }
}

let proxiedExample = new Proxy(new Example, {});
console.log(proxiedExample.method()); // 42

That won't solve your problems with Vue specifically because it's not just a simple Proxy - it recursively Proxy every single property (including _ in this example). (This incidentally requires a bunch of effort to work with built-in types and only works with a small handful they've special-cased.)
But you can interop with Vue specifically with a little more work, if you really want that:
import { createApp } from<EMAIL_ADDRESS>
function makeVueNotProxyBox(value) {
  return {
    [Symbol.toStringTag]: 'box', // using a custom toStringTag will prevent Vue from trying to proxy this thing
    _: value,
  };
}
class Foo {
  #bar = 1;
  _ = makeVueNotProxyBox(this);

  get bar() {
    return this._._.#bar;
  }
}

createApp({
  data() {
    return {
      foo: new Foo()
    }
  }
}).mount("#app");

(This assumes you want to make a thing work with Vue without actually depending on Vue. There's easier ways if you're specifically designing Vue components.)

@LeaVerou There's a simple way to opt in to being transparent to proxies if you explicitly want that: access private fields by deferring to the actual object, instead of the current value of this. Similarly, compare equality by the actual object, not by the current value of this.
class Example {
  _ = this;
  #private = 42;
  method() {
    console.log(this._.#private);
  }
}

let proxiedExample = new Proxy(new Example, {});
console.log(proxiedExample.method()); // 42

That won't solve your problems with Vue specifically because it's not just a simple Proxy - it recursively Proxy's every single property (including _ in this example). (This incidentally requires a bunch of effort to work with built-in types and only works with a small handful they've special-cased.)
But you can interop with Vue specifically with a little more work, if you really want that:
import { createApp } from<EMAIL_ADDRESS>
function makeVueNotProxyBox(value) {
  return {
    [Symbol.toStringTag]: 'box', // using a custom toStringTag will prevent Vue from trying to proxy this thing
    _: value,
  };
}
class Foo {
  #bar = 1;
  _ = makeVueNotProxyBox(this);

  get bar() {
    return this._._.#bar;
  }
}

createApp({
  data() {
    return {
      foo: new Foo()
    }
  }
}).mount("#app");

(This assumes you want to make a thing work with Vue without actually depending on Vue. There's easier ways if you're specifically designing Vue components.)

It's really sad that we have to resort to this. This should be a feature natively supported by JS, instead of having developers take care of it. If I knew private properties would be implemented like this, I'd rather not have them at all and just stick with the good old _private_property

@redzzy30 You have to write code like in my example anyway if you want === to work. That's a consequence of the design of Proxies.


GrahamCampbell issue #16481

Laravel Version: #.#.#
PHP Version:
Database Driver & Version:

Description:
Steps To Reproduce: Why was issue #16481 closed without at least some comment as to how to fix or something. Did GrahamCampbell try to require or include a file?

Got it sorted, not require, was a stray image name, weird.


A mathematical look at electronic structure theory | Workshop | JuliaCon 2021. Timestamps by Tae Hee Ko

A mathematical look at electronic structure theory, https://www.youtube.com/watch?v=HvpPMWVm8aw
Author of this timestamps is Tae Hee Ko, NOT me. He/she put it into commentary and I allow myself to make few cosmetic changes and put them here.
00:00 Welcome!
26:56 DFT formulation
31:13 Definition of SCF
1:12:03 Simple mixing
1:19:16 Anderson mixing
2:38:16 How to compute forces
2:41:07 Finite difference method
2:42:11 Forward diff
2:43:13 How to compute stresses

Added!


fix(conf_loader): skip infer for pg_password

Summary

Checklist

[ ] The Pull Request has tests
[ ] There's an entry in the CHANGELOG
[ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Full changelog

tbd

Issue reference

Fix https://github.com/Kong/kong/issues/10098

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Vault calls these infer_value here (in several places):
https://github.com/Kong/kong/blob/master/kong/conf_loader/init.lua#L1598-L1620
The problem lies probably in here:
https://github.com/Kong/kong/blob/master/kong/conf_loader/init.lua#L592-L597
So could we just skip that with vault infer calls?

We've fixed the issue by reworking how comment processing and hashmark quoting works.  See https://github.com/Kong/kong/pull/10132.


[Bug]: Double probe recording for KiloSortSortingInterface

What happened?
I tried to load two spike sorters from an experiment with two probes, then wrote a single file using ConverterPipe([KiloSortSortingInterface1, KiloSortSortingInterface2]).
When I open the file, I can't find half of the units, which apparently got overwritten. I was planning to just import the sorted units and not the corresponding raw electrical series; am I missing some arguments/metadata specification that would fix this? In that case, sorry in advance!
Steps to Reproduce
interface1 = KiloSortSortingInterface(folder_path=probe1_path, verbose=False)
interface2 = KiloSortSortingInterface(folder_path=probe2_path, verbose=False)

converter_pipe = ConverterPipe([interface1, interface2])
metadata = interface.get_metadata()
session_start_time = datetime(2020, 1, 1, 12, 30, 0, tzinfo=ZoneInfo("US/Pacific"))
metadata["NWBFile"].update(session_start_time=session_start_time)
converter_pipe.run_conversion(nwbfile_path= nwb_spike_file, metadata=metadata)

with NWBHDF5IO(nwb_spike_file, 'r') as io:
    nwbfile = io.read()
    units_table_df = nwbfile.units.to_dataframe()

Traceback
No response
Operating System
macOS
Python Executable
Conda
Python Version
3.10
Package Versions
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] Have you ensured this bug was not already reported?

Hi, neuroconv decides on unit identity based on two things: "unit_name` and its corresponding electrodes (the electrodes in the electrode table associated with it).  There are two ways of solving this from within neuroconv
Change the unit name of the sorting
from neuroconv.tools.testing import MockSortingInterface
from neuroconv import ConverterPipe

sorting_interface1 = MockSortingInterface(num_units=4)
sorting_interface2 = MockSortingInterface(num_units=4)

sorting_extractor1 = sorting_interface1.sorting_extractor
sorting_interface1.sorting_extractor = sorting_extractor1.rename_units(new_unit_ids=["a_sorting1", "b_sorting1", "c_sorting1", "d_sorting1"])

sorting_extractor2 = sorting_interface2.sorting_extractor
sorting_interface2.sorting_extractor = sorting_extractor2.rename_units(new_unit_ids=["a_sorting2", "b_sorting2", "c_sorting2", "d_sorting2"])

data_interfaces = {"sorting1": sorting_interface1, "sorting2": sorting_interface2}
converter = ConverterPipe(data_interfaces = data_interfaces)

# You can also run converter.run_conversion(kwargs)
nwbfile = converter.create_nwbfile()
nwbfile.units.to_dataframe()

Write them in two separate tables
from neuroconv.tools.testing import MockSortingInterface
from neuroconv import ConverterPipe

sorting_interface1 = MockSortingInterface(num_units=4, seed=0)
sorting_interface2 = MockSortingInterface(num_units=4, seed=1)

data_interfaces = {"sorting1": sorting_interface1, "sorting2": sorting_interface2}
converter = ConverterPipe(data_interfaces=data_interfaces)

conversion_options = {
    "sorting1": {"write_as": "processing", "units_name": "UnitsSorting1"},
    "sorting2": {"write_as": "processing", "units_name": "UnitsSorting2"},
}

# You can also run converter.run_conversion(kwargs)
nwbfile = converter.create_nwbfile(conversion_options=conversion_options)

There is another way of solving this but I realize we have not propagated that yet. I will work on that.

Also, can you tell us more on why you want to add more than one sorting interface?
@bendichter was asking recently if there were cases like this and we were thinking it was very uncommon.  Knowing more about use cases is always useful for us.

This worked, thank you very much!
In my case, I used kilosort4 called from spikeinterface one probe at the time. Not sure if this was ill advised. Yet, that resulted in two folders with data sorted for different probes

In that case, I also advise to add an annotation to the sorting unit about the probe if you are using one table or if you are using two tables add the probe in the description.

Yes, I went for units ids with probe name included. Thanks again for your prompt and useful help!

Thanks, I should add a how-to with this kind of info. I would need https://github.com/catalystneuro/neuroconv/pull/1065 to be merge first to write though.


fx file retrieval for OBS

This is not currently implemented. The strategy is as @mattiarighi mentions in #423 :-1:
[project]_[model]_[type]_[version]_fx_[var].nc

We can change it later if we come up with a better idea.```

I will get this done today or tomorrow

If it works for the models, it should work out-of-the-box also for the obs.
We might need some renaming in our obs-data pool.

aye, @mattiarighi I will close the issue once we've tested and all looks to be a-okay!

@valeriupredoi I use it already for my OBS data, it works fine.

excellent, cheers @koldunovn , closed shall remain then :grin:


Rename supportsCodedPHY and supportsExtendedAdvertising

Well, as the title says, please rename the methods supportsCodedPHY/supportsExtendedAdvertising to SupportsCodedPHY/SupportsExtendedAdvertising to follow C# pattern.

My bad, I guess I was a bit sloppy about coding style in #679. Will fix.
And now you got me thinking whether we should take any measures to check (and fix) coding style in an automated fashion, e.g. via dotnet format or similar. Comments/suggestions welcome.

The fix is available in 3.0.0-beta.5.


SoapClient TLS

Does SforceBaseClient need to be updated in light of POODLE vulnerability and Salesforce dropping SSL support?
I cannot find any good resource on how to instantiate PHP SoapClient to use only TLS instead of SSL.

Hi Pat, Now that Salesforce would be disabling TLS1.0 in 2016, would the SoapClient in PHP developer tool kit automatically negotiate TLS1.1 or higher, when making inbound calls to Salesforce, or do we have to upgrade the toolkit.

@jithendraKoduru Yes - the TLS negotiation is a feature of PHP/OpenSSL, not directly under the control of the toolkit. If your PHP deployment currently supports TLS1.1, then I'm pretty sure it's already negotiating 1.1 in preference to 1.0, and will continue to run unchanged when we turn off 1.0.
You can use phpinfo to see what version of OpenSSL PHP is using, and from there figure out whether it has TLS1.1:
phpinfo.php:
<?php
phpinfo();
?>

Example output (in curl section):

SSL Version	OpenSSL/1.0.1q

You'll need OpenSSL 1.0.1 or higher for TLS1.1.

Seems that is not automatic updating. I will have a debug tomorrow and If I find a solution I gonna post here :)

@albertocubeddu any update ? :)


[Tutorial proposal] Species Distribution Modeling Using Google Earth Engine

What is the objective of the proposed tutorial?
Species Distribution Modeling (SDM) is a model that uses computer algorithms to predict the distribution of species across geographic spatiotemporal dimensions. The tutorial I propose will introduce how to implement SDM using Google Earth Engine (GEE). I plan to write this content through the Python API, and it is already preliminarily written in the following repository: GitHub. I am confident this tutorial will be useful for environmentalists or ecologists who want to map potential habitats or habitat suitability through GEE.
What is the scope of the proposed tutorial?
It can be utilized in various fields, focusing on Ecology.
Please provide an outline of the structure of the proposed tutorial?
Section 1: What is Species Distribution Modeling?
a. Subsection 1a: Definition of SDM
b. Subsection 1b: Workflow of SDM
c. Subsection 1c: Introduction to Pitta nympha (Endangered Bird Species)
Section 2: GEE-Based SDM: A Case Study on Pitta Nympha Analysis
a. Subsection 2a: Collection and Processing of Species Occurrence Data
b. Subsection 2b: Defining the Area of Interest
c. Subsection 2c: Adding Predictive Variables
d. Subsection 2d: Generation of Presence-Absence Data
e. Subsection 2e: SDM Model Prediction
f. Subsection 2f: Variable Importance and Accuracy Assessment
In what format will you be submitting the tutorial?
Select one: Markdown
or Colab
I will submit it in Colab format.
This request will be reviewed by the Earth Engine community maintainers, who
will reply on this issue tracker with any questions or suggestions. Once
approved, this issue will be assigned to you and you can begin work on the
tutorial following instructions in
Writing a tutorial.
When creating your Pull Request, enter "Closes #issueno" in the description of
your Pull Request to link the tutorial to this issue.

The tutorial looks great - thanks for proposing!
I took a really quick look at the existing notebook. I think it'll all be fine. Just a couple suggestions:

Make sure that it will work in Colab (I see that it is loading and writing to local files - make sure that everything a person needs, can be fetched via download from the repo - like include pitta_nympha_data.gpkg in the tutorial folder and download it in the notebook.)
Include a couple sentences to each section to explain with a little more detail about what the code is doing - inputs, process, expected output - and any important interpretation of the result or method if not obvious.
Make sure that people are initializing Earth Engine with a cloud project - in the notebook you can use ee.Initialize(project='your-project') as a placeholder.

Please proceed with the next steps and let us know if you have any questions or run into any issues.
Best,
Justin

#789 closes this issue


Which fields are required for the work?

What fields do we need for Share, Google, PAGES, and other external systems?
#359 will influence this issue.

Google is still title, creator and date published. They also suggest other things but based on looking at repos that are indexed these aren't required.
For share, I can't find the documentation for it, although based on their API, maybe nothing is required? Needs further looking into.

I think this ticket can be closed in the sense that we currently required the correct metadata. Google require Title creator and data published. Talking with their rep so far (only two brief emails) it sounds like they also try to verify the info. Not sure how they do it for all the content that doesn't really have that embedded.
I think now that we are live, have the new required fields in place we can see if we improve over the three? items that are in google scholar?
I will continue the dialogue with google as well.
Additionally, we should look at tweaking our ingest forms/workflow to get better metadata. I.e. actual informative titles, not file names or crypto-garbage.
Good descriptions.
Things such as that.


Invalid queries

Right now, the engine is parsing and returning results for some wrong queries.
Having this table:
!> select * from refs;

--> Executing query: select * from refs;

+------------------------------+----------------------+--------------------------------------------+---------------------+-----------+---------+-----------+--------+
|             NAME             |         TYPE         |                    HASH                    |       TARGET        | IS BRANCH | IS NOTE | IS REMOTE | IS TAG |
+------------------------------+----------------------+--------------------------------------------+---------------------+-----------+---------+-----------+--------+
| "refs/heads/master"          | "hash-reference"     | "f54d0f2c6e12a135e0f8762cca88a6d80741a35f" | NULL                | true      | false   | false     | false  |
| "refs/remotes/origin/master" | "hash-reference"     | "f54d0f2c6e12a135e0f8762cca88a6d80741a35f" | NULL                | false     | false   | true      | false  |
| "HEAD"                       | "symbolic-reference" | NULL                                       | "refs/heads/master" | false     | false   | false     | false  |
+------------------------------+----------------------+--------------------------------------------+---------------------+-----------+---------+-----------+--------+

You can perform the query SELECT type,name FROM refs GROUP BY type, which is using the projection name in the SELECT that is not an aggregation neither is present in the GROUP BY.
!> select type,name from refs group by type;

--> Executing query: select type,name from refs group by type;

+----------------------+---------------------+
|         TYPE         |        NAME         |
+----------------------+---------------------+
| "hash-reference"     | "refs/heads/master" |
| "symbolic-reference" | "HEAD"              |
+----------------------+---------------------+

It's returning the FIRST value found in the group of rows for each type.
Another example is SELECT type,name,hash FROM refs GROUP BY count(type), which is using an aggregation for the GROUP BY:
!> select type,name,hash from refs group by count(type);

--> Executing query: select type,name,hash from refs group by count(type);

+----------------------+------------------------------+--------------------------------------------+
|         TYPE         |             NAME             |                    HASH                    |
+----------------------+------------------------------+--------------------------------------------+
| "hash-reference"     | "refs/heads/master"          | "f54d0f2c6e12a135e0f8762cca88a6d80741a35f" |
| "hash-reference"     | "refs/remotes/origin/master" | "f54d0f2c6e12a135e0f8762cca88a6d80741a35f" |
| "symbolic-reference" | "HEAD"                       | NULL                                       |
+----------------------+------------------------------+--------------------------------------------+

The most simple example for a wrong query is SELECT type,count(name) FROM refs:
+------------------+-------------+
|       TYPE       | COUNT(NAME) |
+------------------+-------------+
| "hash-reference" |           3 |
+------------------+-------------+

Closed by #51


Intellisense are not working for inner level child

Environment data
dotnet --info output: 3.0.0-preview8-28405-07
VS Code version: 1.37.1
C# Extension version: 1.21.1
Issue
I have created the asp.net core project in visual studio code. I installed our dll in this application. Parent intellisense are working. But this is not working for inner level child. Please find the below image
For Parent Element

Inner level child

@Saranya13 would you mind elaborating a little bit more on what type of completion you'd expect (feel free to compare to Visual Studio) and what the child TagHelpers look like?

Hi @NTaylorMullen ,
We need this type of tag helper. Please find the below image.

Ah I see, thanks for the info! @Saranya13 would you mind providing a repro project so we can ensure that we fix the issue correctly?


how we start develop compatibility with distributed database function of Citus

I recently saw the Citus Paper (https://dl.acm.org/doi/10.1145/3448016.3457551). They suggest the multi-tenant system for distributed database system through engineering skills. among them, i think the high-performance CRUD by reference table and index is good synergy with AGE. because of 'indexing' function.
I think the AGE can index function unlike Neo4j graph database (native vs. non-native). AGE is non-native but can use indexing of graph by assignment. so whoever wants to develop this project? not intervene low-level code(C++) only high-level code(SQL).

I was researching about Citus and other alternatives for the problem, I have found this article at db-engines.

Name
Citus  X
Memgraph  X
Postgres-XL  X

Description
Scalable hybrid operational and analytics RDBMS for big data use cases based on PostgreSQL
An open source graph database built for real-time streaming and compatible with Neo4j
Based on PostgreSQL enhanced with MPP and write-scale-out cluster features

Link for the complete descriptions and features: Citus comparative article

@M4rcxs thanks your information. wow Memgraph can sharding but they can't multi-modal model(not compatible with SQL).

We have started this project and have tried to use citus exposed symbols and querries to shard tables created for the graphs vetices and edges. The use of reference tables ad colocation is rather favorable for AGE. We are still debating on how to approach automatic sharding of tables on creation and how to dynamically link Citus exposed symbols within  AGE's code.

Citus introduces two types of tables to PostgreSQL: Distributed tables and Reference tables, These tables are initially created as regular PostgreSQL tables, and then they are converted by calling Citus-specific functions. So, to make AGE compatible we have to work on calling these functions in our AGE's source code. If these are enough we are good to go.


Failed to start an training using my own data

Hi I'm trying to train a model using my own data that have only one class. I created my labelmap.prototxt like that
item {
  name: "none_of_the_above"
  label: 0
  display_name: "background"
}
item {
  name: "hand"
  label: 1
  display_name: "hand"
}

then I run the script ./gen_model.sh 2
Start a training ./train.sh

I'm not sure do i need a label for  none_of_the_above  = background and my class number should be 1 or 2
Thanks

@oishi89 Change the batch size in train.prototxt, current size is 32, try 24 , 16 or 8.

@chuanqi305 current size is 24 in train.prototxt I'm going to change to 16. How about test.prototxt ?  currently the batch size in test.prototxt is 8 ? Do I need to update both to 16 or 8 ?

@oishi89 No, the batch size in the test.prototxt need not to be the same as in the train.prototxt.
If memory issue in test stage, you can also change the batch size in the test.prototxt to 4 or 2.
test_iter * batch = test_image_number

Thanks @chuanqi305 it's working now 👍


 Seems like a bug that isn't tracking if it is setup yet or not.

We have received multiple reports on this issue since OctoPrint 1.3.11 was released. It seems like a new bug in OctoPrint 1.3.11.
I have submitted an OctoPrint issue to report this bug.
For now, you can work around this problem by hard-refreshing your page. Once you have done that, the setup wizard will stop popping up.

I updated version to 1.0.5 to give users warning when wizard window keeps on re-appearing.


Golint fixes

removing errors because it is not used.

I am attempting to fix the overall golint issues that we have.

I clicked too soon. More comments on the way

Is this still WIP? if not please rename the PR.

@shawn-hurley update the travis.sh to fail on golint errors:
https://github.com/openshift/ansible-service-broker/blob/master/scripts/travis.sh#L46

On Satellite 5 we used 95 :) because some of us wanted 80 (me) and others wanted 120. We found the longest current line in the source, 95 and used that.

95 works for me. I basically use 80 as a guideline, if I'm going over, I'll finish what I'm doing and newline or break things up.

Longest line in pkg dir is 1521. Longest line in pkg that is NOT a test is 155. Longest line in cmd` is 103.
$ find pkg -name '*.go'| grep -v _test | xargs wc -L | grep total
   155 total

$ find cmd -name '*.go'| grep -v _test | xargs wc -L | grep total
 103 total

$ find pkg -name '*.go'|  xargs wc -L | grep total
  1521 total

 (2) Fix golint errors in Broker source code

 (2) Fix golint errors in Broker source code


created pair created event handler

We need a documentation of the testing of this API. A full graph query with the response before this can be merged so we can know its what we are looking for.


fix(signed-url): replace encodeURIComponent with custom encoding function

Fixes #859  🦕
Made changes to how signed URLs (v2 and v4) are url-encoded:

encodeURIComponent does not encode the following characters: ! * ' ( ), which should have been encoded.
Slashes / in the object's (file) name should not have been encoded. (caused issue #857)

It makes me really uncomfortable to see custom non-standard encoding implementation. Where is the documentation that explains how the encoding should work? It should be mentioned in the code comment if it exists.


[RubyGemsIntegration] Require bundler/gemdeps before using it

What was the end-user problem that led to this PR?
The problem was Bundler.rubygems.use_gemdeps would raise a missing constant error.
What was your diagnosis of the problem?
My diagnosis was we needed to require the gemdeps file
What is your fix for the problem, implemented in this PR?
My fix requires the gemdeps file.
Why did you choose this fix out of the possible options?
I chose this fix because watching autocorrect struggle to understand that gemdeps is not the same as genders is priceless.

@bundlerbot r+


The code of TranAD is not consistent with Figure1

Thank you the shared code,  I learned a lot from it. But I have some doubts about the network structure of the code.
When I read the code, I find:

The essence of window Encoder in Figure1 is Window Encoder in [class TranAD],
The Decoder1 and Decoder2 in Figure1 are self.fcn in [class TranAD].
There are two value as output in TranAD(x1 and x2)

Here are my main doubts:

In [class TranAD], The tgt and memory input Transformerdecoder1 and Transformerdecoder2 and then both input self.fcn to obtain x1 and x2, which means two Window Encoders and one Decoder. It is a contradiction with Figure 1.
And the x1 means O1 and the x2 means /hat{O2}, the output of model does not Include O2, which means the O2 participate in the calculation of losses and it is different from the eq(10) of paper.

I have gained a lot from your articles and code, thank you again for sharing, and hope you have time to answer my doubts.

1

For me, the main source of confusion is that Figure 1 in the paper labels the separate Sigmoid(FCN(x)) components as Decoder 1 and Decoder 2 and labels a single Transformer Decoder layer as "Window Encoder".
However, it seems to be the opposite - there is a single fcn / Sigmoid(FCN(x)) layer and 2 separate Transformer Decoders. While the architecture in the code does make intuitive sense, this discrepancy does make further work a bit confusing.

I agree with @aatifjiwani I and I also noticed this discrepency. There are two transformers decoders in the code, and a unique fcn / sigmoid(FCN). I am afraid however, it is not the only discrepancy in Figure 1 with respect to the code.

Thanks for your questions. For the results in the paper we need one TransformerDecoder and two FCN decoders. However, we realized two TransformerDecoders and one FCN decoder is slightly more robust in training.


Add support for an external configuration file

This PR adds support for an optional external configuration file by reading settings from a nvngx.ini file.
Settings have been added to added to control the init parameters, sharpening, and view FOV/planes.
When a setting is set to auto, missing from the nvngx.ini file, or the entire nvngx.ini file is absent, the mod will use settings from DLSS for the init parameters/sharpening and defaults for the view FOV/planes.
The default vertical FOV is 60, which is a horizontal FOV of about 91. I've noticed some image quality deterioration when the FOV is both too low and too high, so this should be a good middle ground. Users should still be encouraged to set the FOV to match what they're using in-game. If they only know the horizontal FOV, they can use a convertor to get the vertical FOV.
I've left the Cyberpunk2077.exe hook which will still be used for Cyberpunk unless the values are explicitly set in the config file. The output GetModuleHandleW is also checked so the mod will work for other games without crashing.
If this PR is merged, Cyberpunk 2077 players will be able to continue using the mod without the configuration file. My Dying Light 2 fork will be obsolete since the configuration file can be used to set SharpnessRange to negative and FOV to the player's FOV. I haven't used the mod with any other games, but users can now test it and modify the settings to attempt to fix graphical issues.
Notes

I included a default nvngx.ini with the description of each accepted value.
I named the config file nvngx.ini so it would be next to the modded nvngx.dll. Should it be named something else?
The config reader uses the GetPrivateProfileString function, which is part of quite an old API for reading ini files. This was the best way I could find to read the ini files without introducing a dependency, but I don't know if there's a better solution.

Awesome, I didn't expect anyone to make something like that so fast. Your solution looks nice but is there a reason why you didn't just use something like SimpleIni? I think something like that would be much easier to use and would handle errors better. (I don't think your solution accounts for a missing ini file.)
Also I am not quite sure about the sharpness part. I haven't tried your dying light 2 mod but is there a problem with the sharpness? Everything in Dx12ParameterImpl should be properties set by the game itself and not by a config file. Did the developers set the wrong sharpness values? If you are modifying the sharpness I would suggest you only do it here (like you are already doing for the other sharpness values).
This would also allow you to remove the singleton property of the config class and turn it into an instance of the feature context. Then players could just change config file values by simply disabling and reenabling dlss without rebooting the game.
I also think the best way regarding the ViewMatrixHook thing would be to use inheritance with a master ViewMatrixHook, a derived cyberpunk2077 ViewMatrixHook class and a derived config ViewMatrixHook class too. This would easily allow us to extend the system with more custom code (like game specific signature scanning) for other games.
We could then use the config file to select specific inherited ViewMatrixHook classes or "profiles" for different games.

Hi @PotatoOfDoom, thank you for the comments. I'll make the changes over the next few days.

Your solution looks nice but is there a reason why you didn't just use something like SimpleIni? I think something like that would be much easier to use and would handle errors better. (I don't think your solution accounts for a missing ini file.)

There was a typo, but GetPrivateProfileString returns the lpDefault parameter when the file is absent. simpleini looks like the better solution, so I'll rewrite this PR to use that instead. Should the mod report errors like invalid values to the user then? It could be done by combining all the config errors together and show one error message with a MessageBox.

Did the developers set the wrong sharpness values?

You're right that the sharpness changes shouldn't be in Dx12ParameterImpl.
I had to add the sharpness changes for Dying Light 2 since it was sending sharpness values of -0.99 when the in-game slider was at 0. FSR 2.0 only takes sharpness values between 0 and 1 so there had to be a conversion. I saw that the RDR2 fork had the same conversion and thought it would be worthwhile to add it as a configuration option. If that sharpness range only goes negative in Dying Light 2, it's probably only a bug with that game and I'll remove the configuration option.
@RealIndica: can you confirm whether RDR2 has the same sharpness problem or if the conversion is just a remnant of the Dying Light 2 code?

This would also allow you to remove the singleton property of the config class and turn it into an instance of the feature context.

Do you mean that the feature context should have a field for a Config object or that the Config class should be removed and the feature context should have all of the configuration fields itself?

There was a typo, but GetPrivateProfileString returns the lpDefault parameter when the file is absent. simpleini looks like the better solution, so I'll rewrite this PR to use that instead. Should the mod report errors like invalid values to the user then? It could be done by combining all the config errors together and show one error message with a MessageBox.

I am not sure. I thought of something like an autodetection system for games where the dll detects the game and uses the proper configuration (without any interaction or config file). Not sure if this is feasible though. Also, this is obviously not possible if there is no known configuration so maybe we output a messagebox only if we don't know the game and can't find a config file or so. On the other hand, from my experience messageboxes and fullscreen games don't mix very well because they occasionally appear behind the game itself. Maybe someone in here has a better idea.

I had to add the sharpness changes for Dying Light 2 since it was sending sharpness values of -0.99 when the in-game slider was at 0.

Oh okay, my bad. That part is even defined in the dlss spec (here on page 18). Sharpness Values go from -1 to 1. So yeah, the conversion from the nvidia format to the amd 0 to 1 is a very good idea. Though this should mean that we don't really need the "inverse sharpness" right? It just seems to be a bug in our implementation.

Do you mean that the feature context should have a field for a Config object or that the Config class should be removed and the feature context should have all of the configuration fields itself?

I thought about a unique_ptr to the config class like the references to Fsr2Context or ViewMatrixHook.

I think the .ini has one major feature behind it, that you can add new game profiles or change the current ones without the need of compiling again. That makes it much simpler for contributors and for people who want to start.
So it would be awesome if there was a way to change parameters without need of recompiling.

On the subject of a more "universal DLSS to FSR2" translator, I can't help but get vibes similar to DXVK or the like which subsequently makes me wonder about how realistic at some point in the (near? far?) future something similar couldn't be hooked into WINE and/or Proton directly, particularly benefiting Steam Deck users (I would imagine that the manual DLL replacement method is a bit cumbersome to do on SteamOS).

@NintendoManiac64 I actually think this situation is more similar to SpecialK, which has a system-wide automatic .dll loader and special versions for some games.
I also think this mod can't just work with any game. If all the features get implemented each game would still need a few options to be specified, like the sharpness range for example or addresses. And there is no way do do some of those automatically, someone will need to do that for each game. So in this way it won't be like DXVK, but I guess in the future there could be an automatic loader and updater made to simplify things for users. But that is all far future.

I've made the changes, including the start of game-specific profiles based on executable name.
I tried to do error reporting with MessageBox but it was a bad solution. The created message box window appeared behind both the Cyberpunk 2077 and Dying Light 2 windows. Even worse, it is blocking so it would stop the game until the message box is closed (which is very hard to do when it's behind the game window). Another solution is to add logging, but these changes are already quite large in scope, so I think it should wait until another PR.
Let me know if there's something I missed or anything else that needs to be done.
Side note: this PR has a lot of commits now so I would recommend merging it with a squashed commit ("Squash and merge") once it's ready.


increase-rate-limit ?

I got following error while running 'docker pull zixia/wechat:<IP_ADDRESS>'
Is it known issue ? But I didn't find any related here.
Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

I believe that belongs to the Docker policy, not ours.
You can refer to:

https://wechaty.js.org/2021/08/10/docker-open-source-program/


MFA enrollment not detecting AAL properly in CLI version

Describe the bug
When enrolling a new MFA factor with Supabase CLI version of Gotrue/Auth, AAL is not checked properly, hence users with AAL1 can generate a new TOTP even if there's an active MFA factor and they haven't verified for AAL2. We thought we had a serious security vulnerability due to that (and wasted a ton of time debugging it), but seems like the cloud version luckily doesn't experience it. But we now have mismatching environments with dev/prod with regards to this.
To Reproduce
Steps to reproduce the behavior:

Add and verify an MFA token
Sign out
Sign in with email/oauth only
supabase.auth.mfa.enroll succeeds regardless of AAL being AAL1 only

Expected behavior
It should error: "AAL2 required to enroll a new factor", which it does in production/cloud environment, but not locally.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Rerun the failing command with --create-ticket flag.

Ticket ID: –
Version of OS: MacOS
Version of CLI: 1.172.2 (latest as of now)
Version of Docker: v25.0.5
Versions of services: supabase/gotrue:v2.132.3

Seems like we were stuck on an old version of the Gotrue even though we've been updating the CLI continously. Do we need to manually run supabase link all the time to keep the versions in sync?

Do we need to manually run supabase link all the time to keep the versions in sync?

CLI prints a reminder when it finds outdated auth service version when you run supabase start. But generally yes, you need to manually link again to update.

Thanks @sweatybridge. It was a complete surprise for me, as I thought the discrepancy came from out of date CLI previously, and deps were update alongside the CLI automatically.
I'm failing to see why this should be the default behaviour though. I'm sure there are use cases, but I'd rather have them in sync by default and have a flag to change that behaviour. Reduces the amount of surprises imho.
I've also been conditioned by this warning, and learned to ignore it over time, because it's not always possible to get rid of it by linking if the CLI hasn't been updated (iirc), there were cases where I tried to link over and over again, but the warning still popped up, as CLI didn't have access to the same version of deps as cloud or something along the lines. I'm not sure if that has changed by now, but that's the main reason the warning has lost any information value to me.


Sharing an HTML file to WhatsApp

Hi,
I sent you $50 by PayPal, and I hope you can answer this question. Can you tell me if I will be able to share an HTML file to WhatsApp ? When using WhatsApp desktop or web, I am able to drag-and-drop into it an HTML file.  I would like to do the same from my cordova mobile app.
Thanks,
Boris

Did you get an answer to this @borisreitman?

I looked into it, but I don't think you can share a file like that through programmatically.. I'd love to be wrong here so let me know if you find any code for Android and iOS to make that possible.

I found one way to do this. You can see a demo of this by downloading the Documents app by Readdle. When you are in WhatsApp you can attach any file from the apps sharing documents.  Readdle is able to share its documents so that WhatsApp sees them.

That sounds like the other way around, WhatsApp is querying the device looking for content?

I don't know the details, but it works.


Add Graph Data Structure

Add Graph data structure and add its operations
Operation Details to be Added

Added features -

addNode
removeNode
addEdge
removeEdge
getEdgeWeight

New task will be created if Adjacency matrix implementation is required.


Programme to generate program for font array

A c++  program in which we can paste the asci code from website and it will generate the character array code for it. Assign it to me
It will solve all the font adding hustle.

Well, this project was started so that even beginners could contribute. Hence the slightly repetitive nature of this project.
I understand your proposition, but unfortunately, it goes against the purpose of this project. So I cannot approve.
Anyways, thanks for the consideration.😊


Missing information about automatic measure creation

Description
 When working on Atoti I created a cube (in auto mode) based on a first store and for which the following default measures where created (based on the numerical type column "quantity"):

quantity.SUM
quantity.MEAN

And I created a new store and perform a join on the first one. Then, when I visualize the existing cube, I notice that the following default measures for the new numerical column (cost):

cost.VALUES

I have searched on the documentation on the link below:
https://docs.atoti.io/0.4.3/lib/atoti.html#atoti.session.Session.create_cube
But, I could not find explanation about this difference.
Plus, I've found nothing related to this in any existing issue.
Please, could you help me understanding what happened in my case ?
Thank you in advance.
Ariel

Hello Ariel,
The new measure which is created appears because of the join. As such, the behavior for these new measures is documented with the join method: https://docs.atoti.io/0.4.3/lib/atoti.html?highlight=join#atoti.store.Store.join
We put the documentation for measures coming from joined stores because we felt a single docstring explaining the behavior of cube modes, plus the different behaviors for joined stores depending on the cube mode and mappings would be too complicated and intimidating.

Maybe we can add a cell about this in the tuto, when we join with the product store.
It should add a "Purchase Price.VALUE" measure and we could make a query to show that this measure is only defined when the "Products" level is expressed, and that it is simply the value of the Purchase price in the store.

@Skyscimitar I don't see in the documentation link you provided a reference or an explanation for the numerical fields being converted to VALUE instead of SUM and MEAN. Am I missing something?
Could you remind me why we do not create SUM and MEAN for numeric columns when they belong to joined stores?

What is field.VALUE will be clarified in the tutorial of the next version