Mesh disappears at camera near distance

My player mesh is disapearing when the camera hits certain near threshold or something. You can see in the gif below. How can I troubleshoot and improve?
This is on commit 7daa5ef9fdf6fc2ffddd704826f9974604b090ee
available for review on: https://github.com/kevzettler/ambient-test-project

Is this something you can look into, @VinhTruongAmbient ?

I suspect the near clipping plane is set too far away. Can you try something like .with(near(), 0.001) when you create your camera?

Ok yes the near adjustment has resolved the issue.


Disable partial-no-import, add media to order rule

Codecov Report

Merging #4 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master     #4   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           3      3
  Lines           3      3
=====================================
  Hits            3      3

Impacted Files
Coverage Δ

index.js
100% <ø> (ø)
:arrow_up:

order-config.js
100% <ø> (ø)
:arrow_up:

scss-config.js
100% <ø> (ø)
:arrow_up:

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 b264ff2...5350eee. Read the comment docs.


Transformers not working with pagination?

Hello
I was using an older version of dingo (months ago) and this would be run through the transformer and properly return only the values I want returned.
return $this->response->paginator($companies, new CompanyTransformer);
But now, when I run this in my new project, it seems to completely ignore what I have in my transform function and returns all the values from the database.
This, tho, DOES return the appropriate fields that I selected
$this->response->item($company, new CompanyTransformer)
I've spent several hours trying to narrow down what it is with no luck, documentation says it should work. I also tried connecting to slack but won't let me join without an invite :(
Edit:
Seems I reverted back to the version I was using months ago and still all the values from the database are being returned. Perhaps it's another issue if anyone can lend a hand!...

Perhaps $companies is not a Paginator instance?

Hi @rdpascua
The entire pagination instance is a:
object(Illuminate\Pagination\LengthAwarePaginator)#281 (9)
and the results are a
object(Illuminate\Database\Eloquent\Collection)
Super weird, I'm not even too sure how to debug it but I may have to always add an extra line to transform the inner 'data' before returning the response , which isn't a super-good thing

I believe you need to type hint the model you need in the transform function
public function transform(Company $company)
{
    return [
        'id' => (int) $company->id,
        'name' => $company->name,

    ];
}

Hi @rdpascua , thanks for the tip
Sadly I tried that too, and I even did a die('123'); at the beginning of that function to see if it hits it and no go.
Yet of course the
$this->response->item($company, new CompanyTransformer)
works.
I'm going to have another developer have a look at it in the meantime to see if I have to do a pull request and fix it, but weird I can't find anyone online complaining about the same issue

perhaps you can replicate this to another repo so I can help you?

Hi @rdpascua
Sure I'll set something up closer to the weekend, I continued with other parts of the site in the meantime so it doesn't hold me back too much
I'll post here once I get the example up or if I find the solution for anyone else who may have ran into this

I am having the same issue too. Trying to come up with a solution, and racking my brain. :/


Update Cosmos, fix Azure tests

Fixes an issue brought up by @mrivera-ms and @dandriscoll, similar to #4909
Description
Microsoft.Azure.Cosmos could not be used alongside Microsoft.Bot.Builder.Azure without updating the ...Cosmos package. In fixing this, I also found few other issues, noted below.
Specific Changes

Update Microsoft.Azure.Cosmos package used in Microsoft.Bot.Builder.Azure library from 3.14.0 (has since been de-listed) to 3.15.1
Update Microsoft.Azure.DocumentDB from 2.1.2 to 2.13.1 since there were no breaking changes and the changelog noted quite a few performance improvements.
Change from cref:<packageReference> to href:<urlReference>

This was a weird one that I couldn't seem to fix. The cref correctly addressed the appropriate class by the full name, but would still throw "ambiguous reference..." errors.
Very open to changing this if there's a better way.

Change tests that inherit from IDisposable to inherit from IAsyncLifetime. There were a few tests that I had issues running until I did this. Similar to this PR. Not all tests seemed to need it, but none of them fail with the change, so this may prevent future failures.
Adjusted how delays work in TranscriptStoreBaseTests.cs. There's some async oddities with TranscriptLoggerMiddleware that only seem to be exposed in these tests with a fast CPU. Not sure why.

Testing
All tests pass. Regarding #4909, I added the Microsoft.Azure.Cosmos package to a sample that already had Microsoft.Bot.Builder.Azure and it threw errors, as in the linked issue. After importing the Microsoft.Bot.Builder.Azure package as updated in this PR, it works:

/azp run BotBuilder-DotNet-CI-PR-(MacLinux)-yaml

/azp run BotBuilder-DotNet-CI-PR-(MacLinux)-yaml

/azp run BotBuilder-DotNet-CI-PR-(MacLinux)-yaml

/azp run BotBuilder-DotNet-CI-PR-(MacLinux)-yaml


Replace numeric thread id by an opaque one

This change replaces usages of the uint thread id by EEThreadId at
places where we use it for thread matching. It also adds new
PAL function PalGetThreadIdForLogging that returns a numeric thread
id for logging purposes if the target platform supports it.
The reason for this change is that in pthreads, thread id is an
opaque struct and numeric id existence is platform specific.
Finally, I have changed the return value of the
GCToOSInterface::GetPalThreadIdForLogging to uint64_t so
that we can get and log the full id e.g. on OSX.

@smosier can you take a look please?

Hmm, it seems the GetCurrentThreadId is called from somewhere in the jit mode. I need to look into that.

Fixed the problem - the GetCurrentThreadId was called by the SerializeExceptionsForDump in the src\System.Private.CoreLib\src\System\RuntimeExceptionHelpers.cs. I've created a throwing implementation in the src\Native\Bootstrap\platform.unix.cpp and I will fix the problem when I'll be working on the exception handling for Unix.

Looks good.

Implements part of #644


Heatmap renders black squares now

Gitea version (or commit ref):
Git version: commit 2949043
Operating system: linux
Database (use [x]):

[ ] PostgreSQL
[X] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[X] https://try.gitea.io/
[ ] No
[ ] Not relevant

Log gist:

Description
Heatmap is no longer using shaded colors.  Heatmap squares are now black only.
...
Screenshots

Ref https://github.com/go-gitea/gitea/pull/5401#issuecomment-442004127


Automate documentation releases

Description:

Closes #232.
This implements several CI/CD jobs:

[X] Deploy documentation for "version" latest (alias master) whenever a push event happens for master.
[X] Check documentation for API Reference and the landing page has been updated when creating a PR/pushing to master.
[x] Deploy documentation for newly released version (updating alias stable to point to it) whenever a new release is published.

This also implements a changelog.
The changelog is auto-generated using the github-changelog-generator in the form of the CharMixer GitHub action.
The changelog will only update on new releases.
Furthermore, a special "this release version" changelog is created and appended to the release description.
An example of this can be seen here, where everything above # Changelog is the original release description.
Type of change:

[ ] Bug fix.
[X] New feature.
[X] Documentation update.

Checklist:

This checklist can be used as a help for the reviewer.

[ ] Is the code easy to read and understand?
[ ] Are comments for humans to read, not computers to disregard?
[ ] Does a new feature has an accompanying new test (in the CI or unit testing schemes)?
[ ] Has the documentation been updated as necessary?
[ ] Does this close the issue?
[ ] Is the change limited to the issue?
[ ] Are errors handled for all outcomes?
[ ] Does the new feature provide new restrictions on dependencies, and if so is this documented?

Comments:

To see the new changelog in the documentation do the following:
$ git fetch origin && git branch cwa/close-232-automate-docs-releases origin/cwa/close-232-automate-docs-releases
$ git checkout cwa/close-232-automate-docs-releases
$ pip install -U -e .[docs]
$ mkdocs serve
...
INFO     - [...] Serving on http://<IP_ADDRESS>:8000/EMMO-python

Then go to http://<IP_ADDRESS>:8000/EMMO-python/CHANGELOG to see the changelog.

Tagged this as BLOCKING as it should be merged before more PRs are merged.


Purview Share 1.0.0b2

@tg-msft I assigned this issue in the sense that you are the one with the most context if necessary while I'm away

.NET: Azure.Analytics.Purview.Sharing
PR Merged. Package published.

Java: azure-analytics-purview-sharing
PR Merged. Package publish request ETA 3/10.

JS/TS: @azure-rest/purview-sharing
PR Merged. Package publish request ETA 3/10.

Python: azure-purview-sharing
PR in Review. Package publish request ETA 3/10.


Update deployment-options.md

I would suggest changing the wiring colours to T568B as they are the colours almost universally used today, and any pre-made patch lead will be in those colours.

There are already some installs with 568A, and a photo if I’m not mistaken. So ideally I don’t want to remove it, but rather keep it for reference
What do you think about adding 568B to the table?

Good idea - have both tables, then in the text you could say that a normal off the shelf ethernet cable is usually T568B.
I've helped three other people set up your excellent integration, and all three of them messed up the same thing (used the T568A colours) - I accept three people is not exactly proof of a pattern, but it is a 100% hit in my experience!
I suspect most people will chop the end off a ready made patch lead when doing this, so they're more likely to be B than A.

Feeding an RJ45 connector through sprague, glands or conduit is no fun, so I only use wire and crimp my own 😉
Also feeding 10+m through the inverter is not feasible when trying to keep the one end. But everyone might not have a crimping tool, so good to know there are 2 standards.

Closing in favor of #117


Automator: update proxy@master in istio/istio@master

Generated by Automator - 2022-12-20T18:27:42+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
1ded5811544a039c1ebe253db160736e237d8828
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test unit-tests-arm64


Better documentation for --static option

This is misleading:
https://github.com/simonw/datasette/blob/aca41618f8761f99c47c8ae8e81b07a6d4af4d7a/docs/datasette-serve-help.txt#L23
The correct format is e.g. static:static/
Also it's not mentioned in the regular documentation at all.

https://datasette.readthedocs.io/en/latest/custom_templates.html#serving-static-files


help:  duplicate module on luarocks.org

Neovim version (nvim -v)
0.10.2
Neovim distribution
rocks.nvim
Description
Hi, I was intending to write the 'rockspec' for the plugin “tadmccorkle/markdown.nvim” and realized that on luarocks the name is already occupied by your plugin. Since yours is now called “render-markdown.nvim” and since the module in question is currently a duplicate I was wondering if it would be possible to delete from luarocks.org the module so that I could try to write the rockspec for that plugin.
Thank you

Done, I kept it around to allow users to migrate over. I think enough time has passed at this point, module has been deleted.

Many thanks and good work


Set up linting

We need both CSS and JS linting. There is an open question on when to run them. The options we are considering are:

Running during each grunt compile
Running only on pre-commit.

Research

Grunt linting tips
Eliminating Code Smell with Grunt
Pre-commit tests
Setting up pre-commit tests with Git

We have ESLint set up with the generator. Still need to consider CSS linting.

I talked with @anselmbradford about LESS linting
We found:

https://www.npmjs.com/package/gulp-lesshint
https://github.com/postcss/postcss-bem-linter
https://www.npmjs.com/package/stylelint

Completed in #675


WMF and EMF support

Feature request
What are you trying to achieve?
It will be gratefull adding conversion from svg to wmf and emf
What would you expect the API to look like?
.toWmf()
.toEmf()
Please provide sample image(s) that help explain this feature
Convert img to wmf/emf

Thanks for the suggestion but this is probably the wrong tool for a vector to vector conversion. Perhaps try inkscape at the command line for this kind of feature.


Break up design doc template?

When I originally implemented the generation of the design doc, I made it as one big generation template since all of the example documents were so similar (the paragraphs and sections in all of the documents are virtually identical and the only thing that changes is the list/descriptions of modules and the entries in tables and graphs).  Unfortunately this makes it difficult to make any changes to the inputs since they are repeatedly passed along and manipulated through the template.
I'm working on cleaning up the examples for the design doc but the way it is now makes changing anything very tedious.  Would it be best if I pull the design doc generation out of Language.Drasil and break it up into individual pieces and place them alongside TableOfSymbols.hs/TableOfUnits.hs/etc. in Example.Drasil, rather than keeping this large rigid template?
Also, is this where those pieces would belong, or should these go into a library like Data.Drasil -- maybe Document.Drasil?

Yes, pull them out of Language.Drasil.  Some parts should go into Data.Drasil.Document (for the things which is really basic to all documents); some parts should go into Examples.Drasil, for those things which correspond to 'our' templates, but may not necessarily be re-used by anyone else.

Close by #413


demo_web

运行demo_web.py报错：
Traceback (most recent call last):
File "web_demo.py", line 129, in
main(args)
File "web_demo.py", line 83, in main
model, tokenizer = get_infer_setting(gpu_device=0, quant=args.quant)
File "/data1/hzb/VisualGLM-6B/model/infer_util.py", line 21, in get_infer_setting
model, args = VisualGLMModel.from_pretrained('visualglm-6b', args)
File "/usr/local/lib/python3.8/dist-packages/sat/model/base_model.py", line 208, in from_pretrained
model_path = auto_create(name, path=home_path, url=url)
File "/usr/local/lib/python3.8/dist-packages/sat/resources/download.py", line 60, in auto_create
raise e
File "/usr/local/lib/python3.8/dist-packages/sat/resources/download.py", line 57, in auto_create
download_with_progress_bar(file_path, url)
File "/usr/local/lib/python3.8/dist-packages/sat/resources/download.py", line 29, in download_with_progress_bar
response = requests.get(url, stream=True, headers=resume_header)
File "/usr/local/lib/python3.8/dist-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 695, in send
adapter = self.get_adapter(url=request.url)
File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 792, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'r2://visualglm-6b.zip'
我好像无法下载这个权重

Please use the latest sat version. Your sat is outdated.
pip install -U SwissArmyTransformer

or
git clone https://github.com/THUDM/SwissArmyTransfomer
cd SwissArmyTransformer
pip install .

thanks！


⚠ API Next - load whole book has degraded performance

In 099d8f7, API Next - load whole book (https://h-edu.cz/content.api/book/book-a/chaptersContent) experienced degraded performance:

HTTP code: 200
Response time: 20092 ms

Resolved: API Next - load whole book performance has improved in 1363dcd after 11 minutes.


🚀 Feature: Add events to Plausible templates

Appwrite Functions allow you to extend and customize your Appwrite server functionality by executing your custom code. 🤩 You can learn more at our official Appwrite Functions docs.
What you’re building
Your task is to implement the events to Plausible in Node.js.
You will implement a function that reports Appwrite events to Plausible using their Events API. This function will be triggered by configured Appwrite events and report these events to Plausible’s events API.
Your function’s implementation should be similar to other Node.js function templates in code format and style. Make sure to follow our contributing guide.
Tasks summary:

[ ]  Fork & clone Appwrite's templates repository
[ ]  Create a branch feat-events-to-plausible-node
[ ]  Write code for the function in folder node/events-to-plausible/.
[ ]  Test the function using Appwrite, provide a video.
[ ]  Write a README.md explaining what the function does, how to use it, and customize it. Here is an example
[ ]  Submit a pull request to our templates repository

If you need any help, contact us on our Discord server.
Are you ready to work on this issue? 🤔 Let us know, and we will assign it to you 😊
Happy Appwriting!

Hi Please assign this issue to me

Hi Please assign this issue to me

Hi, I have already assigned one issue to you and we are assigning a maximum of two issues per person. Do you have the bandwidth to contribute to both?

Hey, I am ready to work on this issue. Please assign it to me.

I would like to work on this. Can you please assign it to me?

Hello @Haimantika. Kindly assign this issue to me as it's free currently :).

Hey, I am ready to work on this issue. Please assign it to me.

Hi, assigning the issue to you. Remember to update us every 3 days, and you can ask your queries on Discord

Hi @codewithinfiver and @omzi we are assigning issues on a first-come, first-serve basis. If the other user gets idle, we will assign it to you.

Hi @Haimantika Can you assign this issue to me

Hi @Haimantika Can you assign this issue to me

Hi @khushi2502 is working on it, and we are assigning issues on a first-come, first serve basis.

Also @khushi2502 if there are any doubts, do not hesitate reaching out to us :)

Sure, I have started working on it now and its going quite well :)

Sure, I have started working on it now and its going quite well :)

Hi @khushi2502 it has been 5 days without an update. Are you working on it? If not, we will be reassigning the issue to the next person soon.

Hey I have been working on it. I'm just facing some issues with the testing step. Will be figuring it out soon.

Maybe you can raise a PR? Our reviewers can take a look + feel free to ask us questions on Discord

Hi @Haimantika you can assign this issue t the next user as I am not able to resolve my error :(

Hi @Haimantika , can I work on this issue

Closing issue due to inactivity and hacktoberfest being over, thank you for taking the time to be part of hacktoberfest this year :)


Change not to return Promise on some methods, refactor to use async/await

change rgbToAnsi, Syslog#addTlsServerCerts, RFC3164#setColor, RFC3164#buildMessage, RFC5424#setColor, RFC5424#buildMessage, LEEF#buildMessage, LEEF#validate and CEF#buildMessage to not return Promise since they're synchronous operations
use async/await instead of new Promise()
fix typo reson -> reason

Based on https://github.com/cyamato/SyslogPro/pull/1 and https://github.com/cyamato/SyslogPro/pull/4

Pull Request Test Coverage Report for Build 21

352 of 354 (99.44%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.7%) to 99.324%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

index.js
352
354
99.44%

Totals

Change from base Build 17:
-0.7%

Covered Lines:
548

Relevant Lines:
550

💛  - Coveralls

Thanks for creating the great module and sorry for sending this big PR but we need to add some functionalities to this library like https://github.com/zeit/SyslogPro/pull/4 so we wanted to clean it up.
Let me know your thought about this PR and adding features. We'd like to avoid maintaining a different version of this library if possible.


Upgrading packages leads to error Unsupported value: \"upgrade available\"

What happened: Cannot complete a package upgrade
How to reproduce it (as minimally and precisely as possible):
oras pull public.ecr.aws/l0g8r8j6/eks-anywhere-packages-bundles:v1-23-latest

k apply -f bundle.yaml
packagebundle.packages.eks.amazonaws.com/v1-23-175 created

eksa upgrade packages --bundle-version v1-23-175
packagebundlecontroller.packages.eks.amazonaws.com/<cluster-name> configured

k logs eks-anywhere-packages-xxx -n eksa-packages
...
1.6620607606287925e+09	ERROR	PackageBundleController	processing bundle controller	{"error": "updating ivyjin-mgmt-5 status to upgrade available: PackageBundleController.packages.eks.amazonaws.com \"ivyjin-mgmt-5\" is invalid: status.state: Unsupported value: \"upgrade available\": supported values: \"ignored\", \"active\", \"disconnected\""}
...

Anything else we need to know?:
Environment:

EKS Anywhere Release: built from main on 9/1/2022

Fixed by https://github.com/aws/eks-anywhere-packages/pull/460


Update USPS rules to support 95… prefix

USPS now has tracking codes that start with 95. Updated library to support this.

Thanks for this!


Problem when plotting in Comparison widget

When selecting show plots : Yes in the Shadow3 Shadow4 Comparison widget, we can see some plots but also the following error:
NameError                                     Traceback (most recent call last):   File "C:\...\OASYS1-SHADOW4\orangecontrib\shadow4\widgets\compatibility\ow_shadow_compare_beam3_beam4.py", line 335, in compare_beams     check_six_columns_mean_and_std(beam3, beam4, do_assert=self.columns_6_assert, do_plot=self.columns_6_plot)   File "C:\...\OASYS1-SHADOW4\orangecontrib\shadow4\widgets\compatibility\ow_shadow_compare_beam3_beam4.py", line 51, in check_six_columns_mean_and_std     b3 = Shadow.Beam() NameError: name 'Shadow' is not defined
Best, J

Now is working very well. Thank you


ModuleNotFoundError:No module named 'folder_paths'

i get this error on webui-1.7,
File "D:\sd-webui-aki\sd-webui-aki-v4.1\extensions\sd-webui-comfyui\lib_comfyui\comfyui\pre_main.py", line 98, in
main()
File "D:\sd-webui-aki\sd-webui-aki-v4.1\extensions\sd-webui-comfyui\lib_comfyui\ipc_init_.py", line 41, in wrapper
return function(*args, **kwargs)
File "D:\sd-webui-aki\sd-webui-aki-v4.1\extensions\sd-webui-comfyui\lib_comfyui\comfyui\pre_main.py", line 43, in main
patch_comfyui()
File "D:\sd-webui-aki\sd-webui-aki-v4.1\extensions\sd-webui-comfyui\lib_comfyui\ipc_init_.py", line 41, in wrapper
return function(*args, **kwargs)
File "D:\sd-webui-aki\sd-webui-aki-v4.1\extensions\sd-webui-comfyui\lib_comfyui\comfyui\pre_main.py", line 84, in patch_comfyui
paths.share_webui_folder_paths()
File "D:\sd-webui-aki\sd-webui-aki-v4.1\extensions\sd-webui-comfyui\lib_comfyui\ipc_init_.py", line 41, in wrapper
return function(*args, **kwargs)
File "D:\sd-webui-aki\sd-webui-aki-v4.1\extensions\sd-webui-comfyui\lib_comfyui\webui\paths.py", line 9, in share_webui_folder_paths
from folder_paths import add_model_folder_path
ModuleNotFoundError: No module named 'folder_paths'

related: #149

I would suggest trying to install ComfyUI manually, making sure it works on its own with its own separate venv, and then linking it in the Webui settings for sd-webui-comfyui.
Does your ComfyUI work at all on its own?

Maybe it should be a setting? I think we talked about using a separate venv as an option in the settings at some point, but forgot about it later on.

Maybe it should be a setting? I think we talked about using a separate venv as an option in the settings at some point, but forgot about it later on.

What about symlinking a separate portable install? Would that perhapt be possible?
Because not even my sd-webui uses venv cause that is the portable version with similar structure as the portable comfyui
path-to-sd-webui
  "ParametersExamples"
  "system" 'Portable env with python'
  "webui" 'webui directory'
  "run.bat" 'starting batch script'
  "update.bat" 'update batch script'
  "environment.bat" 'batch script equivalent to "venv/Scripts/activate"'

Hm that's interesting. If you have 2 separate portable versions, it should work just fine. If I understand correctly, this is the same as having 2 seprate venvs, but as portable installations.
The comfyui launcher of the extension looks for 2 paths:

{rootdir}/venv/scripts/python.exe (1)
{rootdir}/../python_embeded/python.exe` (2)

This means that if you have a portable version of ComfyUI, it should be able to use the 2nd (2) python executable path and use it to launch ComfyUI.
I think this conversation should be continued in another issue, because I don't think it's related to OP's problem. Some people seem to not be able to install ComfyUI using our custom install script in the tab, and we don't know why.

I suspect the reason is directory permissions by the way. Not totally sure, but it's a track to investigate I think.


Highlight email you are browsing

Expected behavior
Very grounding thing: To see email adress you are seeing (in folders view or inbox)!! There is only color distinction what makes it hard if you have 5+ email accounts to recognise and remember.
Actual behavior
You open inbox and dont see what you opened..
Environment
K-9 Mail version: 5.203
Android version: 4.2.1 (tablet)
Account type (IMAP, POP3, WebDAV/Exchange): IMAP

This makes sense. I think the main reason it's not been done already is we've not done much testing and design work for tablets. Feel free to suggest other tablet related improvements :)

@philipwhiuk We can already see the (optional) account name in the inbox and folders. I checked for  the given android version and the given K-9 mail version and the name of the account comes up on the top of the activity.

I mis-read this issue - it's not really related to tablets - you just want the account name somewhere (e.g. Work - Inbox, instead of 'Inbox')


Shelly EM support

Hi!
First off, thanks for implementing this (and all the other IoT stuff), much appreciated!
I have a Shelly EM here which is not yet supported by the teacher.
I tried copying over the Shelly 1 PM template and renaming to SHEM. This basically makes the relay and overtemperature sensor available, so partial success. But toggling the relay does not work (neither do I see a change in domoticz when I switch in the Shelly's webUI nor the other way round, switching in domoticz does not really switch the relay)
However, I'd (naturally) like to also add power measurement support.
How do these templates get created? What needs to mapped where?
The following is a mosquitto_sub command for all subtopics of this device generated with
mosquitto_sub -h mosquitto_server -t "shellies/shellyem-123456789012/#" -F %J
Error: Message payload is not valid JSON on topic shellies/shellyem-34945473D3B2/relay/0.

{"tst":"2023-03-11T16:43:19.953152+0100","topic":"shellies/shellyem-123456789012/emeter/0/power","qos":0,"retain":0,"payloadlen":6,"payload":611.53}
{"tst":"2023-03-11T16:43:19.953278+0100","topic":"shellies/shellyem-123456789012/emeter/0/reactive_power","qos":0,"retain":0,"payloadlen":6,"payload":382.27}
{"tst":"2023-03-11T16:43:19.953337+0100","topic":"shellies/shellyem-123456789012/emeter/0/voltage","qos":0,"retain":0,"payloadlen":6,"payload":238.85}
{"tst":"2023-03-11T16:43:19.953388+0100","topic":"shellies/shellyem-123456789012/emeter/0/total","qos":0,"retain":0,"payloadlen":6,"payload":1891.9}
{"tst":"2023-03-11T16:43:19.953438+0100","topic":"shellies/shellyem-123456789012/emeter/0/total_returned","qos":0,"retain":0,"payloadlen":3,"payload":0}
{"tst":"2023-03-11T16:43:19.953482+0100","topic":"shellies/shellyem-123456789012/emeter/1/power","qos":0,"retain":0,"payloadlen":4,"payload":0}
{"tst":"2023-03-11T16:43:19.953528+0100","topic":"shellies/shellyem-123456789012/emeter/1/reactive_power","qos":0,"retain":0,"payloadlen":4,"payload":0}
{"tst":"2023-03-11T16:43:19.953576+0100","topic":"shellies/shellyem-123456789012/emeter/1/voltage","qos":0,"retain":0,"payloadlen":6,"payload":238.85}
{"tst":"2023-03-11T16:43:19.953652+0100","topic":"shellies/shellyem-123456789012/emeter/1/total","qos":0,"retain":0,"payloadlen":3,"payload":0}
{"tst":"2023-03-11T16:43:19.953703+0100","topic":"shellies/shellyem-123456789012/emeter/1/total_returned","qos":0,"retain":0,"payloadlen":3,"payload":0}
{"tst":"2023-03-11T16:43:33.775189+0100","topic":"shellies/shellyem-123456789012/emeter/0/energy","qos":0,"retain":0,"payloadlen":3,"payload":612}
{"tst":"2023-03-11T16:43:33.777174+0100","topic":"shellies/shellyem-123456789012/emeter/0/returned_energy","qos":0,"retain":0,"payloadlen":1,"payload":0}
{"tst":"2023-03-11T16:43:33.777264+0100","topic":"shellies/shellyem-123456789012/emeter/1/energy","qos":0,"retain":0,"payloadlen":1,"payload":0}
{"tst":"2023-03-11T16:43:33.777304+0100","topic":"shellies/shellyem-123456789012/emeter/1/returned_energy","qos":0,"retain":0,"payloadlen":1,"payload":0}
Error: Message payload is not valid JSON on topic shellies/shellyem-34945473D3B2/relay/0.

{"tst":"2023-03-11T16:43:49.930766+0100","topic":"shellies/shellyem-123456789012/emeter/0/power","qos":0,"retain":0,"payloadlen":6,"payload":609.46}
{"tst":"2023-03-11T16:43:49.930859+0100","topic":"shellies/shellyem-123456789012/emeter/0/reactive_power","qos":0,"retain":0,"payloadlen":6,"payload":379.26}
{"tst":"2023-03-11T16:43:49.930897+0100","topic":"shellies/shellyem-123456789012/emeter/0/voltage","qos":0,"retain":0,"payloadlen":6,"payload":238.19}
{"tst":"2023-03-11T16:43:49.930929+0100","topic":"shellies/shellyem-123456789012/emeter/0/total","qos":0,"retain":0,"payloadlen":6,"payload":1902.2}
{"tst":"2023-03-11T16:43:49.930981+0100","topic":"shellies/shellyem-123456789012/emeter/0/total_returned","qos":0,"retain":0,"payloadlen":3,"payload":0}
{"tst":"2023-03-11T16:43:49.931023+0100","topic":"shellies/shellyem-123456789012/emeter/1/power","qos":0,"retain":0,"payloadlen":4,"payload":0}
{"tst":"2023-03-11T16:43:49.931058+0100","topic":"shellies/shellyem-123456789012/emeter/1/reactive_power","qos":0,"retain":0,"payloadlen":4,"payload":0}
{"tst":"2023-03-11T16:43:49.931099+0100","topic":"shellies/shellyem-123456789012/emeter/1/voltage","qos":0,"retain":0,"payloadlen":6,"payload":238.19}
{"tst":"2023-03-11T16:43:49.931141+0100","topic":"shellies/shellyem-123456789012/emeter/1/total","qos":0,"retain":0,"payloadlen":3,"payload":0}
{"tst":"2023-03-11T16:43:49.931181+0100","topic":"shellies/shellyem-123456789012/emeter/1/total_returned","qos":0,"retain":0,"payloadlen":3,"payload":0}

Here is a nicer formatted json_pp version of the same:
{
   "payload" : 611.53,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/power",
   "tst" : "2023-03-11T16:43:19.953152+0100"
}
{
   "payload" : 382.27,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/reactive_power",
   "tst" : "2023-03-11T16:43:19.953278+0100"
}
{
   "payload" : 238.85,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/voltage",
   "tst" : "2023-03-11T16:43:19.953337+0100"
}
{
   "payload" : 1891.9,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/total",
   "tst" : "2023-03-11T16:43:19.953388+0100"
}
{
   "payload" : 0,
   "payloadlen" : 3,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/total_returned",
   "tst" : "2023-03-11T16:43:19.953438+0100"
}
{
   "payload" : 0,
   "payloadlen" : 4,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/power",
   "tst" : "2023-03-11T16:43:19.953482+0100"
}
{
   "payload" : 0,
   "payloadlen" : 4,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/reactive_power",
   "tst" : "2023-03-11T16:43:19.953528+0100"
}
{
   "payload" : 238.85,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/voltage",
   "tst" : "2023-03-11T16:43:19.953576+0100"
}
{
   "payload" : 0,
   "payloadlen" : 3,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/total",
   "tst" : "2023-03-11T16:43:19.953652+0100"
}
{
   "payload" : 0,
   "payloadlen" : 3,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/total_returned",
   "tst" : "2023-03-11T16:43:19.953703+0100"
}
{
   "payload" : 612,
   "payloadlen" : 3,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/energy",
   "tst" : "2023-03-11T16:43:33.775189+0100"
}
{
   "payload" : 0,
   "payloadlen" : 1,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/returned_energy",
   "tst" : "2023-03-11T16:43:33.777174+0100"
}
{
   "payload" : 0,
   "payloadlen" : 1,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/energy",
   "tst" : "2023-03-11T16:43:33.777264+0100"
}
{
   "payload" : 0,
   "payloadlen" : 1,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/returned_energy",
   "tst" : "2023-03-11T16:43:33.777304+0100"
}
{
   "payload" : 609.46,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/power",
   "tst" : "2023-03-11T16:43:49.930766+0100"
}
{
   "payload" : 379.26,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/reactive_power",
   "tst" : "2023-03-11T16:43:49.930859+0100"
}
{
   "payload" : 238.19,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/voltage",
   "tst" : "2023-03-11T16:43:49.930897+0100"
}
{
   "payload" : 1902.2,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/total",
   "tst" : "2023-03-11T16:43:49.930929+0100"
}
{
   "payload" : 0,
   "payloadlen" : 3,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/0/total_returned",
   "tst" : "2023-03-11T16:43:49.930981+0100"
}
{
   "payload" : 0,
   "payloadlen" : 4,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/power",
   "tst" : "2023-03-11T16:43:49.931023+0100"
}
{
   "payload" : 0,
   "payloadlen" : 4,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/reactive_power",
   "tst" : "2023-03-11T16:43:49.931058+0100"
}
{
   "payload" : 238.19,
   "payloadlen" : 6,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/voltage",
   "tst" : "2023-03-11T16:43:49.931099+0100"
}
{
   "payload" : 0,
   "payloadlen" : 3,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/total",
   "tst" : "2023-03-11T16:43:49.931141+0100"
}
{
   "payload" : 0,
   "payloadlen" : 3,
   "qos" : 0,
   "retain" : 0,
   "topic" : "shellies/shellyem-123456789012/emeter/1/total_returned",
   "tst" : "2023-03-11T16:43:49.931181+0100"
}

Is flashing tasmoto onto the Shelly a better solution?
Your note "Energy reporting will not be good, until Domoticz AD implements basic math in templates" makes me doubt whether this will really have the benefit I strive for..
Shelly's own app however shows the same total_returned as MQTT, I think that should suffice, if Domoticz just logs these values.
Or is there a certain cause you have explicitly not implemented support for it yet?
Thanks in advance for any help provided!

But toggling the relay does not work (neither do I see a change in domoticz when I switch in the Shelly's webUI nor the other way round, switching in domoticz does not really switch the relay)

Based on this error message:
Error: Message payload is not valid JSON on topic shellies/shellyem-34945473D3B2/relay/0
your payload is invalid, either because an incorrect semicolon, { " \ } , or line ending cant tell if i cant see.

How do these templates get created? What needs to mapped where?

Home Assistant Discovery MQTT messages are documented here:
https://www.home-assistant.io/integrations/mqtt/
(but it have a long-long learning curve, this is the reason why this script exists)
These keywords will be replaced with the device data in runtime:
%discovery_prefix%  %shelly_id% %shelly_model% %shelly_mac% %shelly_ip% %shelly_mode%

Is flashing tasmoto onto the Shelly a better solution? Your note "Energy reporting will not be good, until Domoticz AD implements basic math in templates" makes me doubt whether this will really have the benefit I strive for.. Shelly's own app however shows the same total_returned as MQTT, I think that should suffice, if Domoticz just logs these values.

I do not see any reason to flash a Shelly device with Tasmota.
Yep when i wrote "energy reporting" i mean it. Energy is reported in watt-minute for some reason and Domoticz has a Wh sensor...
See https://github.com/enesbcs/shellyteacher4domo/issues/6
"total_returned" is reported in Watt-hour so conversion not needed and it will work without problem.

Or is there a certain cause you have explicitly not implemented support for it yet?
Energy fields is implemented in devices, just defaults to disabled see https://github.com/enesbcs/shellyteacher4domo/issues/6
If you mean why Shelly EM templates not created yet the reason is very simple: i dont have a Shelly EM. But based on your MQTT examples i can add support it.

Shelly EM templates added at commit https://github.com/enesbcs/shellyteacher4domo/commit/4e3ef837a3b6036893586fb8bb40583559972e4d

Thank you for your extremely quick response, much appreciated. I haven't been so quick (ShellyEM not at my house and COVID struck again), so sorry for the delay.
However, I can confirm the teacher taught Domoticz very well!
It seems all metrics got integrated into Domoticz. The relay also works. It's only been a few minutes that data is coming in, so only a first impression. But voltage and resistive power seem to make sense. We see -140W of reactive power (on an idling heat pump), I am unsure what to make of this value (I have an EE background, so yeah, if there is some power supply and frequency transformation going on, it's pretty plausible voltage and current are not in phase, but still, it seems a little high). I guess however these are just the Shelly's values and your tool is not to blame.
So I'd say this issue can be closed if you don't want me to test anything more.
The wrong JSON for the relay we talked about above does not seem to be an issue.

Thank you for testing, closing issue!


Make SVPullToRefreshState and SVInfiniteScrollingState more friendly …

…to Swift.

@tounaobun I think I have merged some code like this, please check.


[ast/syn] Fix buffer labels causing issues applying the SDC file

These labels currently break synthesis since our SDC constraints expect u_* instead of uu_*.
Signed-off-by: Michael Schaffner<EMAIL_ADDRESS>

My typo!  Can Verilble check for this rule?

Unfortunately Verible does not support label checking for this naming convention yet...


Physics gun should pick up items

Mouse 1 to pickup
picked up item hovers in front of view, collision disabled
mouse 1 shoots item being held
how to detect item to pickup? perhaps shape raycast, capsule that shoots forward
item must be within specific distance

Proper Half Life 2 style physics gun has been implemented! 😎


Minimum cmake version for blt

We should define the minimum cmake version allowed for blt-based projects.
This minimum version should be tested/checked within blt, and should be clearly indicated in our documentation.
One of our core macros used for transitive dependencies is using a cmake 3.3 feature:
if(... IN_LIST ...)

This feature also requires setting cmake policy CMP0057 to NEW (as pointed out by @zbeekman in PR #108).
Note: Setting a value for CMP0057 is only valid in Cmake versions above 3.3 and is required in versions above 3.3.2 when using if(.. IN_LIST ...).
See: https://cmake.org/cmake/help/v3.3/policy/CMP0057.html

Where would be the most appropriate place to set CMP0057 to NEW. I'd like to include that in my PR (#108).

Thanks -- I'd think it should be around here -- https://github.com/LLNL/blt/blob/master/SetupBLT.cmake#L63 -- in SetupBLT.cmake.
It should be guarded by the version until we decide about adding a cmake_minimum_version to blt (and which version that should be), since earlier cmake versions will complain about unknown policies.
E.g.
if("${CMAKE_VERSION}" VERSION_GREATER 3.3)
    cmake_policy(SET CMP0057 NEW)
endif()

I agree, but how do you propose working around IN_LIST? Without setting
CMP0057 to new, using IN_LIST is essentially a syntax error. I'd rather
have the unknown policy complaint to warn me that something may break. The
alternative is to proceed anyway in previous versions of CMake that don't
support IN_LIST at all. In fact, it caused CI failures when I introduced
IN_LIST in my PR, and I'm surprised the other instance of IN_LIST hasn't
caused a problem yet.
On Mon, Oct 30, 2017 at 4:23 PM Kenny Weiss<EMAIL_ADDRESS>wrote:

Thanks -- I'd think it should be around here --
https://github.com/LLNL/blt/blob/master/SetupBLT.cmake#L63 -- in
SetupBLT.cmake.
It should be guarded by the version until we decide about adding a
cmake_minimum_version to blt (and which version that should be), since
earlier cmake versions will complain about unknown policies.
E.g.
if("${CMAKE_VERSION}" VERSION_GREATER 3.3)
cmake_policy(SET CMP0057 NEW)endif()
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/LLNL/blt/issues/109#issuecomment-340572449, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAREPGPAuOeTsv4g_wWQ8LPBMIz4KdKfks5sxjAogaJpZM4QLni-
.

I think that it is feature is not yet in our blt tests.
It comes up when there is a transitive dependency in the DEPENDS_ON lists.
Perhaps we should avoid resolving the policy part of this problem within BLT until the cmake_minimum_version is decided.   In the meantime, it is easy to add both a minimum version and the cmake policy part to your project's build system.

Perhaps we should avoid resolving the policy part of this problem within BLT until the cmake_minimum_version is decided. In the meantime, it is easy to add both a minimum version and the cmake policy part to your project's build system.

OK, I'll hold off adding the policy in my PR and leave it as the more portable/flexible MATCHES variant.

Thanks @zbeekman.
It looks like we will explicit require cmake-3.3+ for basic blt functionality by testing against ${CMAKE_VERSION} in blt and throwing a FATAL_ERROR for earlier versions.
We will most likely not be adding the cmake_minimum_version to blt since this macro has side effects, and is better left to the user projects that brings in blt.
It is also worth mentioning that some of the CUDA functionality requires a significantly newer version of cmake (e.g. cmake-3.8.x), but since this is an optional feature of blt, we will not make this a requirement for all blt users.
We will be adding documentation and internal checks for these in the near future.

Sounds like a good plan.
FYI 3.7 or 3.8 introduces support for Fortean submodules too.
Do you want me to include any of this in the PR I have open? I.e.
cmake_policy(SET CMP0057 NEW) or checking CMAKE_VERSION?
On Mon, Oct 30, 2017 at 6:22 PM Kenny Weiss<EMAIL_ADDRESS>wrote:

Thanks @zbeekman https://github.com/zbeekman.
It looks like we will explicit require cmake-3.3+ for basic blt
functionality by testing against ${CMAKE_VERSION} in blt and throwing a
FATAL_ERROR for earlier versions.
We will most likely not be adding the cmake_minimum_version to blt since
this macro has side effects, and is better left to the user projects that
brings in blt.
It is also worth mentioning that some of the CUDA functionality requires a
significantly newer version of cmake (e.g. cmake-3.8.x), but since this is
an optional feature of blt, we will not make this a requirement for all blt
users.
We will be adding documentation and internal checks for these in the near
future.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/LLNL/blt/issues/109#issuecomment-340602797, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAREPFvlArlTkJTutoZZ2xrlQYx3LNlsks5sxkw_gaJpZM4QLni-
.

Let's make is a separate PR to keep it separate from the fortran fixes.

Sure thing. They are somewhat related if we want to use IN_LIST, but that
can be fixed later
On Mon, Oct 30, 2017 at 8:09 PM Kenny Weiss<EMAIL_ADDRESS>wrote:

Let's make is a separate PR to keep it separate from the fortran fixes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/LLNL/blt/issues/109#issuecomment-340621434, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAREPIi2Xm7Z3JhCg42qjAIUsH2JfE12ks5sxmU7gaJpZM4QLni-
.

This maybe caused by gmock/gtest overriding the cmake minimum in their code.  It is at the top level CMakeLists.txt.
cmake_minimum_required(VERSION 2.6.2)
This should probably be commented out in our code.

cmake_minimum_required calls were removed and a check was added in BLT to warn if you are below CMake 3.8.


Window positioning results in wrong window positions

Software Versions

Python: 3.9.7
OS: Manjaro Linux (KDE)
Kivy: 2.0.0
Kivy installation method: Manjaro community repository: python-kivy

Describe the bug
When a window is positioned via Window.left or Window.top then

it is moved to a position that differs from the one specified and
the properties top and left show position values that seem correct but differ from the specified position.

The behavior seems to be affected by the Window size.
Expected behavior
After placing a Window with Window.top or Window.left then the Window should be positioned
so that the outmost pixel of the top or left Window border is located at the specified screen position
of the current screen. After positioning, the properties Window.top or Window.left match the
previously specified values.
To Reproduce
Code and Logs and screenshots
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Window positioning test"""

from kivy.app import App
from kivy.uix.button import Button
from kivy.core.window import Window

class MyApp(App):
    """App that fails assertion when positioning the main window"""

    def build(self):
        Window.size = 100, 200
        Window.left = 0
        left_0 = Window.left
        Window.left = 600
        left_600 = Window.left

        print(left_0, left_600)
        assert (left_0, left_600) == (0, 600)

        return Button(text="Test")

if __name__ in ("__android__", "__main__"):
    MyApp().run()

Output
$ python kivy_window_position_test.py
[INFO   ] [Logger      ] Record log in /home/xxx/.kivy/logs/kivy_21-10-09_10.txt
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "/usr/lib/python3.9/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.9.7 (default, Aug 31 2021, 13:28:12)
[GCC 11.1.0]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python"
[INFO   ] [Factory     ] 186 symbols loaded
[DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[DEBUG  ] [Text        ] Provider <pango> ignored by config
[INFO   ] [Text        ] Provider: sdl2(['text_pango'] ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 21.2.3'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa Intel(R) Iris(R) Graphics 540 (SKL GT3)'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[DEBUG  ] [Shader      ] Fragment compiled successfully
[DEBUG  ] [Shader      ] Vertex compiled successfully
[DEBUG  ] [ImageSDL2   ] Load </usr/lib/python3.9/site-packages/kivy/data/glsl/default.png>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[DEBUG  ] [App         ] Loading kv </tmp/my.kv>
[DEBUG  ] [App         ] kv </tmp/my.kv> not found
6 474
 Traceback (most recent call last):
   File "/tmp/kivy_window_position_test.py", line 28, in <module>
     MyApp().run()
   File "/usr/lib/python3.9/site-packages/kivy/app.py", line 949, in run
     self._run_prepare()
   File "/usr/lib/python3.9/site-packages/kivy/app.py", line 919, in _run_prepare
     root = self.build()
   File "/tmp/kivy_window_position_test.py", line 22, in build
     assert (left_0, left_600) == (0, 600)
 AssertionError

Please note that Window.top is affected as well even though this is not shown in the code example.

@manns
from PIL import ImageGrab

# TODO: You may know an easier way to get the size of a computer display.
resolution = ImageGrab.grab().size

# Change the values of the application window size as you need.
Config.set("graphics", "height", resolution[1])
Config.set("graphics", "width", "400")

from kivy.core.window import Window

# Place the application window on the right side of the computer screen.
Window.top = 0
Window.left = resolution[0] - Window.width

@manns ???

I'm having similar problems on MacOS.
When running my code in the debugger I see that the values for Window.left and Window.Top are passed as the center of the window! And Window.width and Window.height return twice the value I have set.
Config.set("graphics", "height", 101)
Config.set("graphics", "width", 41)
from kivy.core.window import Window
# At his point in the debugger: center=(41,101), width=82, height=202, left=1003, top=525
Window.top = 0
Window.left = 0
# At his point in the debugger: center=(41,101), width=82, height=202, left=0, top=53

Pretty weird.
Another confusion in all this is that (on my system) the line
resolution = ImageGrab.grab().size

returns the wrong resolution.

from kivy.core.window import Window, WindowBase
Window.size = (width, height)
WindowBase.width = width
WindowBase.height = height
Window.width and Window.height are readonly

[I am having trouble seeing where we are at here.]
@manns: Can you please confirm this still happens with Kivy 2.2.1?

@Julian-O
Yes, it still happens:
$ python kivytest.py
[INFO   ] [Logger      ] Record log in /home/mn/.kivy/logs/kivy_23-11-03_3.txt
[INFO   ] [Kivy        ] v2.2.1
[INFO   ] [Kivy        ] Installed at "/usr/lib/python3.11/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.11.5 (main, Sep  2 2023, 14:16:33) [GCC 13.2.1 20230801]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 190 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2(['text_pango'] ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 23.1.9-manjaro1.1'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa Intel(R) Iris(R) Graphics 540 (SKL GT3)'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
6 474
 Traceback (most recent call last):
   File "/tmp/kivytest.py", line 28, in <module>
     MyApp().run()
   File "/usr/lib/python3.11/site-packages/kivy/app.py", line 955, in run
     self._run_prepare()
   File "/usr/lib/python3.11/site-packages/kivy/app.py", line 925, in _run_prepare
     root = self.build()
            ^^^^^^^^^^^^
   File "/tmp/kivytest.py", line 22, in build
     assert (left_0, left_600) == (0, 600)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 AssertionError

However, the issue from my 2nd comment with
Window.left = 300
seems to be fixed.

@mjmare:

Window.width and Window.height return twice the value I have set.

That sounds like a HiDPI issue with OSX. I have seen a few issues related to that. I suspect unrelated to the original issue here, but I haven't the expertise to be definitive.

Window.width and Window.height return twice the value I have set.

This has been explained in #8630 (and duplicated of #8140 ).
Please also take a look at https://kivy.org/doc/master/api-kivy.core.window.html#kivy.core.window.WindowBase.system_size and https://kivy.org/doc/master/api-kivy.core.window.html#kivy.core.window.WindowBase.size.
The original issue doesn't seem to be replicable on the latest master.
Please reach out here if the original issue still happens on your side.

@misl6 The behavior is still the same for 2.3.0
$ python kivy_window_position_test.py
[INFO   ] [Logger      ] Record log in /home/mn/.kivy/logs/kivy_24-03-20_6.txt
[INFO   ] [Kivy        ] v2.3.0
[INFO   ] [Kivy        ] Installed at "/home/mn/.local/lib/python3.11/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 195 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 24.0.2-manjaro1.1'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa Intel(R) Iris(R) Graphics 540 (SKL GT3)'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
6 474
 Traceback (most recent call last):
   File "/home/mn/Downloads/kivy_window_position_test.py", line 28, in <module>
     MyApp().run()
   File "/home/mn/.local/lib/python3.11/site-packages/kivy/app.py", line 955, in run
     self._run_prepare()
   File "/home/mn/.local/lib/python3.11/site-packages/kivy/app.py", line 925, in _run_prepare
     root = self.build()
            ^^^^^^^^^^^^
   File "/home/mn/Downloads/kivy_window_position_test.py", line 22, in build
     assert (left_0, left_600) == (0, 600)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 AssertionError


dependency injection support

add dependency injection support. warning: this is little tested and might decide to just do a little breaking... it shouldn't though.
lmk about any changes you want

i hope this works


How to know if user has made payment successfully?

There is no callback for payment success and failure. how to know a payment is successful?

@Arunshaik2001 These are hosted Pages.  Which comes out of PCI compliance. Please refer CC_Avenue Office Docs for More Info

Ok thank u, @avinash-gotluru can i use the redirect and cancel urls provided by the package in production environment.

Those are test details we suggest not to use them.
On Thu, 3 Aug 2023 at 16:58, Shaik Ahron @.***> wrote:

Ok thank u, @avinash-gotluru https://github.com/avinash-gotluru can i
use the redirect and cancel urls provided by the package in production
environment.
—
Reply to this email directly, view it on GitHub
https://github.com/avinash-gotluru/cc_avenue/issues/15#issuecomment-1663813421,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT3P6YENUIH3HVPK6KARVI3XTODMPANCNFSM6AAAAAA3BGQCYY
.
You are receiving this because you were mentioned.Message ID:
@.***>


cba/prepare 2.1.9

Codecov Report

:exclamation: No coverage uploaded for pull request base (2.1@a2a651f). Click here to learn what that means.
The diff coverage is 100%.

@@          Coverage Diff           @@
##             2.1    #6501   +/-   ##
======================================
  Coverage       ?   83.08%
  Complexity     ?    12454
======================================
  Files          ?     1438
  Lines          ?    47117
  Branches       ?     5802
======================================
  Hits           ?    39146
  Misses         ?     5265
  Partials       ?     2706

Impacted Files
Coverage Δ
Complexity Δ

core/src/main/java/io/crate/Version.java
71.42% <100%> (ø)
12 <0> (?)

Continue to review full report at Codecov.

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


Add OPFS support to WebAssembly bindings

Related to #531
Add support for OPFS in WebAssembly bindings for browser storage.

bindings/wasm/lib.rs

Update Database constructor to handle OPFS option.
Modify PlatformIO to use OPFS for I/O in the browser.

bindings/wasm/vfs.js

Replace Node fs module with OPFS API.
Implement OPFS methods for open, close, pread, pwrite, size, and sync.

bindings/wasm/docs/api.md

Update documentation to mention OPFS support.
Add examples demonstrating usage with OPFS.

bindings/wasm/examples/drizzle.js

Update example to use OPFS for database storage.

bindings/wasm/examples/example.js

Update example to use OPFS for database storage.

bindings/wasm/integration-tests/tests/test.js

Update tests to use OPFS for database storage.

@jussisaurio
Hi can you take this PR fix the issue from your end?
If any implementation leftover let me know on this I will work on it

This does not actually add OPFS support although the PR says so. I am therefore closing it so thay anyone wanting to work on this wont be confused.


Simple maintenance improvements

Rebased on latest master to resolve merge conflicts.

Thank you. Don't hesitate to send more patches, it helps.


[WIP] docs: use let in all ngFor and replace var- w/ ref-

Commit these changes immediately after beta.17
In all samples

Replaced all like *ngFor="#hero of heroes" with *ngFor="let hero of heroes".
Fixed all expanded (de-sugared) versions with something like let-hero
Replaced the few cases like var-phone with ref-phone

PR #1208 continues this one; it is devoted to fixing the doc prose. The two PRs must go in together ... or else the template-syntax chapter will have broken region tags

closed by PR #1213 with commit 216120d


Implement a client.Client that can return errors

controller-runtime's fake client currently does not support returning errors. To verify our error handling for API server failures, we should try and implement a reactor that would allow simulating errors.
cc @mresvanis

Tracked in Red Hat ITS as MGMT-10532.

Implemented in #69.


Adding "resources" section

Hey Alixander!
I've been doing lots and lots of diagrams and I struggled with something...
When you define your objects, there's no way to keep them invisible and use them later... I came across an idea of creating a section of resources; just like D2 classes but those "resources" could be based on classes too.
To help you understand the idea better, I share you a link to a diagraming tool that a friend of mine found. This tool has a resources section (coincidently LOL).
If you can implement that "resources" behavior, D2 will be strong enough to have no competitors, I have all the faith in your efforts; I wish I had the time to spare helping you coding it.
Imagine if the next scenario could be possible:
FILE: styles.d2
classes: {
  dog: {
    shape: circle
  }
  male: {
    style.fill: brown
    style.fill: brown
    style.font-color:white
  }
  female: {
    style.fill: orange
  }
}

FILE: dogs.d2
resources: {
  dog1: Frido {
    class: [dog; male]
  }
  dog2: Snoopy {
    class: [dog; male]
  }
  dog3: Paulette {
    class: [dog; female]
  }
}

FILE: houses.d2
resources: {
  my-house: {
    label: "Home"
  }
  friends-house: {
    label: "Friend's House"
  }
}

FILE: diagram.d2

...@styles
...@dogs
...@houses

relations: {
  my-house: {
    dog1 -- dog3: "Couple"
  }
  friends-house: {
    dog2
  }
}

The previous example should compile into something like this:

It really improves the readability of what really matters: the relations, ¿Don't you think?
¿What do you say, can you implement it sometime in the future?

Can you move this to https://github.com/terrastruct/d2/issues.  This repo is for the vscode extension and this is a language issue.

Can you move this to https://github.com/terrastruct/d2/issues. This repo is for the vscode extension and this is a language issue.

Sorry Barry, I will

Not a problem, I just have enough bugs of my own :)


List of Xiaomi devices from Xiaomi Gateway 3 integration by Alexxit

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
please add new device to library
Describe the solution you'd like
    {
    "manufacturer": "Xiaomi",
    "model": "zigbee WSDCGQ01LM (lumi.sensor_ht)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Xiaomi",
    "model": "zigbee WXKG01LM (lumi.sensor_switch)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee WXKG11LM (lumi.remote.b1acn01)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee WXKG12LM (lumi.sensor_switch.aq3)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Xiaomi",
    "model": "zigbee WXKG01LM (lumi.sensor_switch)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Xiaomi",
    "model": "zigbee MCCGQ01LM (lumi.sensor_magnet)",
    "battery_type": "CR1632"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee DJT11LM (lumi.vibration.aq1)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Xiaomi",
    "model": "zigbee GZCGQ01LM (lumi.sen_ill.mgl01)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Honeywell",
    "model": "zigbee JTYJ-GD-01LM/BW (lumi.sensor_smoke)",
    "battery_type": "CR123A",
    "battery_quantity": 2
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee MCCGQ11LM (lumi.sensor_magnet.aq2)",
    "battery_type": "CR1632"
    },
    {
    "manufacturer": "Xiaomi",
    "model": "zigbee RTCGQ01LM (lumi.sensor_motion)",
    "battery_type": "CR2450"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee RTCGQ11LM (lumi.sensor_motion.aq2)",
    "battery_type": "CR2450"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee WSDCGQ11LM (lumi.weather)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee WXCJKG11LM (lumi.remote.b286opcn01)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee WXCJKG12LM (lumi.remote.b486opcn01)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee WXKG02LM (lumi.sensor_86sw2)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Aqara",
    "model": "zigbee WXKG17LM (lumi.remote.acn004)",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Xiaomi",
    "model": "ble CGD1",
    "battery_type": "AAA",
    "battery_quantity": 2
    },
    {
    "manufacturer": "Xiaomi",
    "model": "ble CGH1",
    "battery_type": "CR1632"
    },
    {
    "manufacturer": "Xiaomi",
    "model": "ble CGPR1",
    "battery_type": "CR2450",
    "battery_quantity": 2
    },
    {
    "manufacturer": "Xiaomi",
    "model": "ble LYWSD02MMC",
    "battery_type": "CR2032",
    "battery_quantity": 2
    },
    {
    "manufacturer": "Xiaomi",
    "model": "ble SJWS01LM",
    "battery_type": "CR2032"
    },
    {
    "manufacturer": "Yeelight",
    "model": "ble YLAI003",
    "battery_type": "CR2032"
    },

Describe alternatives you've considered
NA
Additional context
sorry for not adding via device addition form prepared json instead

Thanks for the additions, that was a lot to add by a form but easier and quick for me to merge.


CBORObject.Read & ToObject, CBOR byte string (type 2) and target types

Hi Peter,
Still a happy user of PeterO.Cbor (v4.5.2). Thanks for your efforts. :)
In relation to the application I am developing I have stumbled on something subtle with our use of deserializing bytes with PeterO.Cbor. Specifically the lib is rather picky when deserializing CBOR byte string (type 2) to a CLR byte array/list type.
Here is an NUnit test to demonstrate:
        [Test]
        [TestCaseSource(nameof(BytesAndTargetTypes))]
        public void SerializeBytesAndDeserialize(object bytes, Type targetType)
        {
            // Arrange
            using var stream = new MemoryStream();

            // Act
            CBORObject.FromObject(bytes).WriteTo(stream);
            stream.Position = 0;
            var deserializedBytes = CBORObject.Read(stream).ToObject(targetType);

            // Assert
            Assert.That(deserializedBytes, Is.EqualTo(bytes));
        }

        private static readonly object[] BytesAndTargetTypes =
        {
            // FromObject byte[] - yields CBOR byte string type 2
            new object[] { new [] { (byte)65 }, typeof(byte[]) },
            new object[] { new [] { (byte)65 }, typeof(Collection<byte>) },
            new object[] { new [] { (byte)65 }, typeof(List<byte>) },
            new object[] { new [] { (byte)65 }, typeof(ICollection<byte>) },
            new object[] { new [] { (byte)65 }, typeof(IList<byte>) },
            new object[] { new [] { (byte)65 }, typeof(IReadOnlyCollection<byte>) },
            new object[] { new [] { (byte)65 }, typeof(IReadOnlyList<byte>) },

            // FromObject List<byte> - yields CBOR array type 4
            new object[] { new List<byte> { 65 }, typeof(byte[]) },
            new object[] { new List<byte> { 65 }, typeof(Collection<byte>) },
            new object[] { new List<byte> { 65 }, typeof(List<byte>) },
            new object[] { new List<byte> { 65 }, typeof(ICollection<byte>) },
            new object[] { new List<byte> { 65 }, typeof(IList<byte>) },
            new object[] { new List<byte> { 65 }, typeof(IReadOnlyCollection<byte>) },
            new object[] { new List<byte> { 65 }, typeof(IReadOnlyList<byte>) },
        };

When I run this test I get:

Deserializing CBOR byte string works only when the target type is byte[] - not any of the [I][ReadOnly]Collection/List types work.
And, deserializing CBOR array (of bytes) can be done to any of the target types; byte[] or [I][ReadOnly]Collection/List.
Is this how deserializing CBOR byte string is meant to work?

I note that there are two possible ways to serialize from non-array byte lists to CBOR:

As a byte string.
As a CBOR array of integers.

And this library chooses to serialize as a CBOR array of integers to avoid ambiguities in round-tripping between CBOR and plain-old-data types that use non-array byte lists.
It is a design question—

whether to support deserializing from byte strings to non-array list types by default or to make such support optional, and
whether to support serializing non-array byte lists to byte strings by default or to make such support optional.

Hi Peter,
Thanks for your response.
After thinking more about it and reading your response I think it makes good sense to treat CBOR byte strings and CBOR array of integers/bytes as different things.
Closing issue. Thanks again. :)


bug: popper.scheduleUpdate is not a function (3.1.1)

Hello
When using the version: 3.1.1:
popper.scheduleUpdate is not a function
This problem did not exist in the previous version

what's the solution ?!
Isn't anyone responsible here?!

You can head over to https://coreui.io/pro/#c-pricing-new and get a paid version for any urgent support

It's fixed in the latest release


Fn http api reveals values of "fn config app" variables to anyone, which may reveal secrets

I've been building an Fn application with functions that have to hold authentication info to connect to a central object store. I passed the login secrets to the Fn functions using "fn config app APP {name_of_secret} {value_of_secret}", and then retrieved them in the function from environment variables. This all worked great :-)
However, while I was exploring the Fn-related API of the app I saw that the config variables are given in plain text to anyone who can connect to the Fn server, via http://{server_url}/v2/apps. Example output is;
{"items":[{"id":"XXXXXX","name":"XXXXX","config":{"SECRET":"XXXXXX"},"created_at":"2018-08-16T10:52:01.187Z","updated_at":"2018-08-16T19:13:04.270Z"} etc. etc.
You can also get the config data using the app's ID, e.g. via http://{server_url}/v2/apps/{APP_ID}
Is this expected behaviour? It surprised me that the config data of a function would be so publicly visible, as this leaks useful information for bad actors.
If this is expected, then what is recommended way to store secrets in functions (e.g. passwords for object stores or databases)? I'd rather not embed them in the containers themselves as then I'd have to use a private container registry and worry about the containers leaking. Using "fn config app" works really well, as it is easy to change after deployment, thereby supporting easy automated password/key rotation.
(this is also the case for the V1 API - I updated everything to V2 to see if it was already fixed, and have scoured docs and issues to see if this has been discussed before and whether I am handling secrets incorrectly)

Hi @chryswoods, yea, this is expected. Agree, this would be a useful feature - of course, we expect most fn deployments to add some kind of auth on top of the API to attenuate permissions on endpoints like getting apps (using extensions, ala https://github.com/fnproject/ext-auth - I think this won't build atm, but the code gives a good idea). We have discussed allowing users to upload encryption keys, and we're discussing how to integrate with KMS (Key Management Service) now too, which seems related - am not sure there's any public links to this discussion at this time (mega :((( ). It does seem like uploading encryption keys to fn on an app (and not showing on GET) and encrypting config / decrypting to hand off to function would satisfy your use case. If you have any thoughts on what you would like, feedback would be great! thanks

Thanks @rdallman - really useful reply. My user-authentication is built on top of OCI object store and the secret is the private key needed to read and write to that store. I agree that the best solution would be encrypting my config and then uploading the decryption key to the functions. Looking at ext-auth (an apologies in advance as my go is basic) it looks like the extension adds in support for holding a secret that is copied from an environment variable (SIMPLE_SECRET) which is copied into the function during "fn deploy". The presence of this secret is checked for in "Setup" (lines 39+40 in simple.go), but nothing is then done with it?
The "Setup" function then continues to initialise a database with rows to hold usernames and passwords (line 90, s.ds.GetDataBase()). How does the function authenticate with this database? Where is the secret held that allows the function calling GetDataBase() to prove that it has read/write access to this database?

Regarding using something like an S3-compatible store, worth saying that you still can create presigned URLs that you may feed to your function, therefore, there's no need in auth (unless your usecase is way more complex).

Way more complex I'm afraid :-(
Functions can create new buckets, adjust permissions and provide an interface that sits over the object store as part of an "access, authorization and accounting infrastructure" for running HPC applications on demand as Fn functions. The presentation here gives an overview of what I am building... (https://drive.google.com/file/d/1VB6I-Eu04uszcTojPeOLpZGlsIEdK0yS/view). I have the identity and accounting service working so that I can log in from Jupyter notebooks and perform accounting for data uploads / simulation compute, but then noticed what I thought was secret wasn't...
A presigned URL is a solution, but I then need something that can feed that URL to the function. As the presigned URL is not known by and must not be accessible to the user calling the function, then it would have to be secretly provided by another service, or the function would have to pull it from another service (which then brings me back to needing the function to possess a secret that lets it authenticate itself with that "signed URL" providing service).
In its simplest form, I have functions that modify the state of shared data. They need privileged access to that shared data so that they can modify its state. Thus they need a secret that only they know that provides them with that privileged access.


Move channelConnected handling to worker thread + javadocs

See
https://issues.jboss.org/browse/NETTY-439

Also add a fix for NETTY-440 which can lead to an FD leak

Add support for FileRegion when using OIO. See https://issues.jboss.org/browse/NETTY-441


🐛 [firestore] native error not bubbling

Some errors from native are not bubbling correctly to flutter / dart.
  @override
  Stream<T?> watchOneOfUser() {
    return colRef
        .where('createdBy', isEqualTo: _authRepository.authUser?.id)
        .limit(1)
        .snapshots()
        .map(converter.oneFromSnapshot)
        .doOnData((data) => Log.api.i('watch one of user $collection: $data'))
        .doOnError((e, st) => _handleError(e, 'watchOneOfUser'));
  }

doOnError here is never called, while the doOnData receives null.
The console output:
W/Firestore(28460): (22.1.2) [Firestore]: Listen for Query(target=Query(users order by __name__);limitType=LIMIT_TO_FIRST) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}

I have tried quite a few things but I am unable to reproduce the issue.
Could you share a minimalist, reproducible example?

Just letting you know that I didn't forget this, I'm busy with something right now but will try to find reproductible steps after I've finished my tasks.

Just letting you know that I didn't forget this and will try to find reproductible steps when I'm done with my current tasks


created issue reminder workflow

Related Issue
none
Fixes:  #4182
Description
Description: Create a GitHub Actions workflow that sends reminders on open issues without updates for 7 days. The workflow should post a comment prompting assignees to take action.

issue #4182
Type of PR

[ ] Bug fix
[x ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes. Make sure to attach before & after screenshots in your PR.]
Checklist:

[ x] I have made this change from my own.
[ ] I have taken help from some online resources.
[ x] My code follows the style guidelines of this project.
[ x] I have performed a self-review of my own code.
[ x] I have commented my code, particularly in hard-to-understand areas.
[ x] I have made corresponding changes to the documentation.
[ x] My changes generate no new warnings.
[x ] I have tested the changes thoroughly before submitting this pull request.
[ x] I have provided relevant issue numbers and screenshots after making the changes.

Hello @sailaja-adapa can you level 3 label as GSSOC ext will be over in 2 days

Let it be @MastanSayyad bcoz it’s their choice if they are not having any problem giving high labels

Hi @amiya-cyber but the Guidelines are same for everyone.


i am trying to optimize the cost of SQLDatabaseToolkit calls

System Info
aws
Who can help?
No response
Information

[ ] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
here's my PROMPT and code:
from langchain.prompts.chat import ChatPromptTemplate
updated_prompt = ChatPromptTemplate.from_messages(
[
("system",
"""
You are a knowledgeable AI assistant specializing in extracting information from the 'inquiry' table in the MySQL Database.
Your primary task is to perform a single query on the schema of the 'inquiry' table and table and retrieve the data using SQL.
 When formulating SQL queries, keep the following context in mind:

 - Filter records based on exact column value matches.
 - If the user inquires about the Status of the inquiry fetch all these columns: status, name, and time values, and inform the user about these specific values.
 - Limit query results to a maximum of 3 unless the user specifies otherwise.
 - Only query necessary columns.
 - Avoid querying for non-existent columns.
 - Place the 'ORDER BY' clause after 'WHERE.'
 - Do not add a semicolon at the end of the SQL.

 If the query results in an empty set, respond with "information not found"

 Use this format:

 Question: The user's query
 Thought: Your thought process
 Action: SQL Query
 Action Input: SQL query
 Observation: Query results
 ... (repeat for multiple queries)
 Thought: Summarize what you've learned
 Final Answer: Provide the final answer

 Begin!
 """),
("user", "{question}\n ai: "),

]
)
llm = ChatOpenAI(model=os.getenv("OPENAI_CHAT_MODEL"), temperature=0) # best result
sql_toolkit = SQLDatabaseToolkit(db=db, llm=llm)
sql_toolkit.get_tools()
sqldb_agent = create_sql_agent(
llm=llm,
toolkit=sql_toolkit,
agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
verbose=True,
handle_parsing_errors=True,
)
sqldb_agent.run(updated_prompt.format(
question="What is the status of inquiry 123?"
))
Expected behavior
This is my current cost
response: The inquiry  123 is  Completed on August 21, 2020, at 12 PM.
Total Tokens: 18566
Prompt Tokens: 18349
Completion Tokens: 217
Total Cost (USD): $0.055915
I want to reduce the cost to less than > $0.01
any suggestions will help.

https://medium.com/snowflake/sec-10-k-filings-analysis-for-life-science-companies-leveraging-snowflake-marketplace-llamaindex-f8ef99f18abd
On Thu, Oct 26, 2023 at 8:38 PM dosubot[bot] @.***>
wrote:

🤖
Hello @akashkumar398 https://github.com/akashkumar398, it's good to see
you again!
I understand you're looking to optimize the cost of SQLDatabaseToolkit
calls in the LangChain framework. The cost you're referring to seems to be
related to the number of tokens processed by the language model, which is
directly proportional to the cost of using the model.
Here are a few suggestions that might help you reduce the cost:

Optimize the Prompt: The prompt you're using is quite large (18349
tokens). You could try to make it more concise, removing any unnecessary
information. Remember, the cost is directly proportional to the number of
tokens processed, so reducing the size of the prompt can significantly
reduce the cost.
2.
Limit the Completion Length: You can limit the length of the model's
output by setting a maximum token limit. This can be done by setting the
max_tokens parameter when calling the model. However, be careful with
this approach as setting a limit too low might result in incomplete or
nonsensical responses.
3.
Use a Smaller Model: If you're not already doing so, you could
consider using a smaller language model. Smaller models usually generate
fewer tokens, which could help reduce the cost.
4.
Batch Requests: If you're making multiple requests, you could try to
batch them together. This can sometimes be more cost-effective, as the
model can process multiple prompts at once.
Remember, these are just suggestions and the effectiveness of each will
depend on your specific use case. It's always a good idea to experiment
with different approaches and measure their impact on cost and performance.
I hope this helps! If you have any other questions or need further
clarification, feel free to ask.
Sources

libs/langchain/langchain/agents/agent_toolkits/sql/toolkit.py
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/agents/agent_toolkits/sql/toolkit.py
libs/langchain/langchain/utilities/sql_database.py
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/utilities/sql_database.py

This response is meant to be useful and save you time. It is not meant
to be a precise solution, but rather a starting point for your own
research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it
is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot
https://github.com/dosu-bot.
—
Reply to this email directly, view it on GitHub
https://github.com/langchain-ai/langchain/issues/12341#issuecomment-1781318436,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF55W6BZ6TOXLJCPFV7UMKTYBJ4F3AVCNFSM6AAAAAA6RLFCWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBRGMYTQNBTGY
.
You are receiving this because you were mentioned.Message ID:
@.***>


Should refactor TableEntitiy for support table instruction?

Now it assume that only support Func.

@yjhmelody was this what you were intending to ask?

Yeah. Wasm2.0 Has something new about table.

Okay this is resolved then (i guess)


Add support for Fantem Door/Window Sensor and MultiSensor

Fantem OEM Aeotec devices so should have the same capabilities. These are the values for the sensor that ZWave JS shows in the Manufacturer Specific section (Using the ZWaveJS2MQTT addon)
Door/Window Sensor (Fantem)
Man: 362 == 0x16a
Prod Type: 514 == 0x202
Prod ID: 112 == 0x4a
Motion Sensor
Man: 362 == 0x16a
Prod Type: 514 == 0x202
prod Id: 100 == 0x64

I've added a new issue template to get a hold of these kinds of requests to make it easier for us. Could you please add the missing information to your request:

(first two points are done)
Did you check if we really don't have it?

[ ] It is not in the configuration DB
[ ] It was not merged recently or has a pending PR
[ ] It is not in the TODO list

Do you have a link to the PDF manual?
If so, it helps in creating the config file.

Thanks.
Not in DB
Not merged or pending PR
It's not in the TODO List. The zwave alliance site lists it for China and US/Canada/Mexic but not for AUS/NZ which is my territory.
The door/window sensor and the multisensor are there for the Aeotec (OEM) items for my territory.
Door/Window
https://products.z-wavealliance.org/products/1616?selectedFrequencyId=4
MultiSensor
https://products.z-wavealliance.org/products/1404?selectedFrequencyId=4
OomiMultiSensor.pdf
Oomi Door Window Sensor manual.pdf

I have added the door window sensor as a pull request.  I will work on the Mutli sensor another day.

From what I found I think these devices already exist with different product IDs.  This guy: https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/devices/0x016a/ft112-k.json and https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/devices/0x016a/ft100.json. I will keep reading to see if I can confirm.  If they are the same I will update these with additional product IDs.


Allow for enum value deprecation

What
Enum values marked as deprecated are removed instead of deprecated in the generated code

Does swift have a deprecation annotation for enum values? Could you at least add a comment in the generated code or something?

Does swift have a deprecation annotation for enum values? Could you at least add a comment in the generated code or something?

I don't understand, a comment about what? @available(*, deprecated, message:"string") can be used anywhere, even on enum cases (like what this PR is doing)


Urban Dictionary definition

I'd like to add a functionality to view definition of a word or phrase from Urban Dictionary. It's pretty relevant considering that Jarvis is a messenger bot.
For eg :- 'urban define lol' would give its definition from Urban dictionary.
This may cause some conflicts with the dictionary feature. It would have to rely on the 'urban' keyword.
Please let me know what you think.

Looks good to me! 😄
Can define be avoided somehow? 😜

I cant really think of anything else other than 'urban lol' :stuck_out_tongue_winking_eye:
Any suggestions?

urbandictionary maybe?

How about showing two definitions in the dictionary module itself?
One normal; other urban. In different cards maybe!

Nice idea, but the domain of words the 2 dictionaries cover is very different.
One of the 2 cards will give an error on most of the queries.

Seems fine :)
Would you elaborate "cards"? :)

Option 1: See GenericTemplate e.g. news module.
Option 2: Serve both definitions using TextTemplate, separated by a couple of newlines.

Hello @swapagarwal . I do not see a pull request for this issue and I would love to tackle this suggestion. I do not have experience working an open-source yet so I think this would be a great starting point.


Add/Edit/Delete users in admin dashboard

It would be nice if we could add functionalities to the template to add/edit and delete users from the admin dashboard (https://opensaas.sh/admin/users)
Editing page:

disabled, but visible fields: createdAt, lastActiveTimestamp, subscriptionStatus, subscriptionPlan, sendNewsLetter, stripeId
editable: e-mail, username, isAdmin, credits

The only library I would add is react-hook-form, to make form handling a bit easier. Not sure if there is solution for dialog already, but Radix's unstlyed one could be useful: https://www.radix-ui.com/primitives/docs/components/dialog
I'd like to be assigned to this if this gets accepted.

All looks good to me. Thanks, Boris!

I'll go with headlessui, no need to use different one.

hey , i want to contribute to your issue . I think i can do it .


maxFileSize，fileType

These two properties do not take effect，why???

Test link, details?

local java demo
var r = new Resumable({
target:'/java-example/upload',
chunkSize:110241024,
simultaneousUploads:1,
testChunks: false,
throttleProgressCallbacks:1,
fileType: ["jpg"],
maxFileSize: 210241024,
method: "octet"
//  method: 'multipart'
});

Alright, without being able to access a concrete demo it's hard to help along. I have verified that both properties are working on my own production systems with Resumable.


Alias lab undercloud deployment issue

While deploying OSP 16.2 on an allocation in Alias lab, undercloud deployment failed with the following error.
DELETE command will not execute.\n- WARNING  - Some interfaces are not valid boot devices. Ignoring: NIC.Integrated.1-1-1, NIC.Integrated.1-2-1\n- WARNING  - No changes were made since the boot order already matches the requested.\n- ERROR    - POST command failed to create BIOS config job, status code is 400.\n- ERROR    - No pending data present to create a Configuration job.

This issue seems to appear in badfish when the boot order is already set to director.


it doesnt work... compiler errors out

Hello! I'm tryna use your header file for a project, and the compiler spits 1000000 errors at me. I have simply used
#include "nbt.hpp" in my code to check if it work.

Hey, what compiler are you using and what options are you passing it?

Hey, what compiler are you using and what options are you passing it?

https://pastebin.com/kD4FZYwY msvc debug x86

https://i.imgur.com/aMzVR1i.png with latest cpp standard

https://pastebin.com/kD4FZYwY msvc debug x86

Hi! As it says at the top of the ReadMe, this only compiles with GCC right now. MSVC doesn't support C++20 abbreviated function template syntax in any official release yet.

Ok sorry, I must have missed it
On Mon, Feb 8, 2021 at 7:16 PM Vito Gamberini<EMAIL_ADDRESS>wrote:

https://pastebin.com/kD4FZYwY msvc debug x86
Hi! As it says at the top of the ReadMe, this only compiles with GCC right
now. MSVC doesn't support C++20 abbreviated function template syntax in any
official release yet.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SpockBotMC/cpp-nbt/issues/4#issuecomment-775553965,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLSDRECFV3ALIJ533MQFMLS6B5EFANCNFSM4WIXMSSA
.

This should now work with Visual Studio 16.9, which is still in pre-release but all the code compiles on Godbolt.


AcitonScript/MXML Server got closed!

Here is the extension output:
[Error - 7:29:54 PM] Request textDocument/codeAction failed. Error: Connection got disposed.     at Object.dispose (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:248534)     at Object.dispose (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:142861)     at x.handleConnectionClosed (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:143036)     at x.handleConnectionClosed (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:163874)     at t (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:141183)     at n.invoke (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:232974)     at i.fire (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:233704)     at $ (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:240347)     at n.invoke (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:232974)     at i.fire (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:233704)     at l.fireClose (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:251528)     at Socket.<anonymous> (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:252290)     at Socket.emit (events.js:327:22)     at Pipe.<anonymous> (net.js:673:12) [Error - 7:29:54 PM] Request textDocument/documentSymbol failed. Error: Connection got disposed.     at Object.dispose (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:248534)     at Object.dispose (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:142861)     at x.handleConnectionClosed (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:143036)     at x.handleConnectionClosed (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:163874)     at t (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:141183)     at n.invoke (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:232974)     at i.fire (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:233704)     at $ (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:240347)     at n.invoke (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:232974)     at i.fire (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:233704)     at l.fireClose (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:251528)     at Socket.<anonymous> (c:\Users\NgocHuy\.vscode\extensions\bowlerhatllc.vscode-nextgenas-1.7.1\extension.js:1:252290)     at Socket.emit (events.js:327:22)     at Pipe.<anonymous> (net.js:673:12)

Did you happen to force quit any Java processes? It looks like some of the Java code has quit without notifying the extension. Anyway, if this happens again, you should restart VSCode.


Make the API async ?

If we want to use webworker or webGPU we would need promise

You mean the entire API? That would be quite annoying. We can discuss ways to avoid it if you want.


Write source mapping files even if they already exist.

 Issue by gabrielsjoberg
Friday Jul 28, 2017 at 20:54 GMT
Originally opened as https://github.com/samaxes/minify-maven-plugin/pull/149

This fixes issue #142 by updating the source mapping files if they exist and then including the corresponding sourceMappingURL in the minified file.

gabrielsjoberg included the following code: https://github.com/samaxes/minify-maven-plugin/pull/149/commits

Merged.


[precheck] check locally metadata first

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

I run precheck before everything and it is expected to check precheck before initiating process. I updated local metadata and precheck utility ignores it instead it check live like copyright or URLs.
It should check first local instead of live.
Command executed

precheck in Fastfile

Will give a try to modify_services action then.
But it's really strange that enable_services is in the documentation of produce action if it's not working ..
By the way, executing the action directly by command line is working perfectly :