compatibility with the razor loupedeck ans S

Discussed in https://github.com/calibx/msfsdeck/discussions/154

Originally posted by helifella October 27, 2022
Hello, I am using W11 and have MSFS installed through the App Store.
I purchased a Razer Stream Controller and installed it.
I tried installing the plugin via the Loupedeck Marketplace, which threw the installation error as shown in the YouTube video. I ignored that, rebooted and changed the Profile.
My issue was that I only saw two icons on the profile:

I uninstalled that and did the manual install - same issue.
Then I found if I changed the Device to CT or Live, I could see the Profile and associated control mappings applied correctly in the app, but of course changing the Live Profiles did not change the screen on the Razer hardware. So the Plugin appears to have installed as designed, but isn't working to my expectations.
The Razer is technically the same as a Loupedeck Live, and therefore anything Profile or plugin that works on the Live should work on the Razer, but something in the backend is screwing it up. I'll email Razer and Loupedeck about it too because I shouldn't be having this kind of issue- if someone writes a plugin for one, it should work on the other.
I feel ultimately this is a Razer/Loupedeck issue, but if you have a suggestion of a workaround in the interim I'd really appreciate it.
Here is the installation log, perhaps that might shed some light on it...
2022-10-26T15-47-29-5129_LoupedeckServiceTool.log
Edit: I've been looking into it further and I believe the issue is the different hardware ID code of the Razer Stream Controller which is Loupedeck40. I see there are two files, DefaultProfile20win.lp4 and DefaultProfile30win.lp4, which means there also needs to be a DefaultProfile40win.lp4 for it to work on mine. It would be exactly the same as the loupedeck30 (Live) profile as the hardware is identical.
I had a look to see if I could figure out how to modify the code to achieve a solution for myself but it's a bit more advanced than I can handle - I created an issue.

Need profile from razor to make one

duplicated


Problem when I run convert_nuscenes.py

Hi, I downloaded nuscenes dataset and when I run the convert_nuscenes.py, it told me a file doesn't exist in the dataset (from what I remember this file is a frame from one of the RADAR folders and its timestamp is'1531883530444336' from sample_data json file from v1.0-trainval), then I checked the dataset and this file is indeed not there. I have downloaded many different datasets from nuscenes website but neither of them have this file. Thus I found which json file (from sample data json file) includes the request of this file and then deleted that specific cell in the json file. Then when I run convert_nuscenes.py again, it gave me killed.
I am not sure what happened. Can someone give me some suggestions?
Thank you!

Hello, I have also encountered this problem. I downloaded metadata  but it displayed
"KeyError: 'bb867e2064014279863c71a29b1eb381' " when i run convert_nuscens.py . So is it OK to download the corresponding test set and data set, or i must  download the same data set  as you? Could you give me some advice?
Thank you :)

Hi, I downloaded nuscenes dataset and when I run the convert_nuscenes.py, it told me a file doesn't exist in the dataset (from what I remember this file is a frame from one of the RADAR folders and its timestamp is'1531883530444336' from sample_data json file from v1.0-trainval), then I checked the dataset and this file is indeed not there. I have downloaded many different datasets from nuscenes website but neither of them have this file. Thus I found which json file (from sample data json file) includes the request of this file and then deleted that specific cell in the json file. Then when I run convert_nuscenes.py again, it gave me killed.
I am not sure what happened. Can someone give me some suggestions?
Thank you!

same issue here. The reason is that the script will keep all annotations in memory so the memory is run out!

Hi, I downloaded nuscenes dataset and when I run the convert_nuscenes.py, it told me a file doesn't exist in the dataset (from what I remember this file is a frame from one of the RADAR folders and its timestamp is'1531883530444336' from sample_data json file from v1.0-trainval), then I checked the dataset and this file is indeed not there. I have downloaded many different datasets from nuscenes website but neither of them have this file. Thus I found which json file (from sample data json file) includes the request of this file and then deleted that specific cell in the json file. Then when I run convert_nuscenes.py again, it gave me killed.
I am not sure what happened. Can someone give me some suggestions?
Thank you!

same issue here. The reason is that the script will keep all annotations in memory so the memory is run out!

Hi @zye1996 , Do you have any idea how to solve this problem? Thanks

Hi, I downloaded nuscenes dataset and when I run the convert_nuscenes.py, it told me a file doesn't exist in the dataset (from what I remember this file is a frame from one of the RADAR folders and its timestamp is'1531883530444336' from sample_data json file from v1.0-trainval), then I checked the dataset and this file is indeed not there. I have downloaded many different datasets from nuscenes website but neither of them have this file. Thus I found which json file (from sample data json file) includes the request of this file and then deleted that specific cell in the json file. Then when I run convert_nuscenes.py again, it gave me killed.
I am not sure what happened. Can someone give me some suggestions?
Thank you!

same issue here. The reason is that the script will keep all annotations in memory so the memory is run out!

Hi @zye1996 , Do you have any idea how to solve this problem? Thanks

I solved the problem by using a server with more memory. Otherwise the data flow must be changed for the repo

@zye1996 could you be more specific on how you solved this problem?
I have the same problem as you can see below.
Done loading in 24.039 seconds.
======
Reverse indexing ...
Done reverse indexing in 5.8 seconds.
======
scene_name scene-0001
Traceback (most recent call last):
  File "convert_nuScenes.py", line 340, in <module>
    main()
  File "convert_nuScenes.py", line 154, in main
    radar_pcs, _ = RadarPointCloud.from_file_multisweep(nusc,
  File "/home/fabrizioschiano/repositories/CenterFusion/src/tools/../lib/utils/pointcloud.py", line 116, in from_file_multisweep
    current_pc = cls.from_file(osp.join(nusc.dataroot, current_sd_rec['filename']))
  File "/home/fabrizioschiano/.virtualenvs/centerfusion/lib/python3.8/site-packages/nuscenes/utils/data_classes.py", line 386, in from_file
    with open(file_name, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../../data/nuscenes/samples/RADAR_FRONT_RIGHT/n015-2018-07-18-11-07-57+0800__RADAR_FRONT_RIGHT__1531883530444336.pcd'

Hello, so for now have you solved this problem? If you have solved it could you please share with me how to do with this issue?
Thank you


Test doubles

This pull request creates a new guide, entitled "What Are Test Doubles". It also creates an author page for Alex Basson.
The content needs to be reviewed for conformance to the style guide, and also by a copy editor. As this is my first submission to the TDC, I'd appreciate any help to make this happen.
The PR addresses https://github.com/vmware-tanzu/tanzu-dev-portal/issues/1473

The build is currently failing because the system wants to automatically link your information here. Can you please add a "Team" entry for yourself? Also... welcome to the team!

@joemoore I believe this PR includes a "Team" entry for myself, unless I overlooked something. It's the second commit in the PR. And thanks for the welcome! :)

@abasson-vmware 🤦♂

If I had actually read the error message I would have realized that it was upset about your author photo being a .png instead of a .jpg, which is a built-in assumption the system has. I converted it.

Thank you @abasson-vmware! Welcome and thank you for contributing! Looks like tests are passing and I went ahead and updated the branch. Is this ready for editing and final review then? Or are you still getting other feedback?

I'd say something to consider is the categorization and "levels". @anthonyvetter maybe you can educate us a bit here. Currently it's classified under Building Modern Applications - Modern Development Practices but there is only one other categorized as such. Another option might be Agile Transformation and Practices - Agile Development, but "Agile" is such a squishy term for something as tactical as this article. Any advice as to where this should go?

@joemoore, ya I see your point. Really, it could go in either place. I don't have a very strong opinion here, but IMO, I think it is better in Modern Development Practices. This piece focuses on a way to implement a specific TDD approach. And while TDD is a core tenant of Agile, I think this piece talks about the implementation of testing for testing's sake. Not necessarily through the lens of an Agile methodology.
Here are some excerpts from the descriptions of each page.
For Modern Development Practices:
A long development cycle can be frustrating and a massive contribution to slowing down development. A combination of tools and methods can help shorten that cycle and improve the quality of life for developers.
For Agile Development:
Agile methodologies provide an alternative to the sequential development and long release cycles traditionally associated with Waterfall.
In addition, the Agile page talks about remote working and team building. So I would say that perhaps a higher level TDD piece (an overview of different approaches like test doubles, for example) might fit on the Agile page. But a piece like this detailing how to actually implement a development practice probably belongs on the Development Practices page.
I also think about the pages in terms of audience. Who is going to be reading an Agile page? Maybe not the folks looking to implement a testing methodology? Probably folks looking for information on Scrum, XP, etc. I would say devs looking to do implementations are probably more likely to go to a development practices page.
That said, open to other suggestions or opinions of course. If there are strong(er) feeling from yourself or @abasson-vmware, let me know.

With those definitions "Modern Development Practices" sounds like a good fit.

+1 to "Modern Development Practices"

Ok, sending this over to our editor. Stand by :)

Ship it! 🚀

@joemoore @anthonyvetter Are there any next steps I need to take to move this forward?

The copy editor is looking at this today I believe. I had to port it out to a Google Doc since this editor doesn't work in GH. I will send that over to you as soon as I have it back.

Here is the Google Doc back from the Editor: https://docs.google.com/document/d/14WJLlqouEwHajRtnN060w61wI2VLte91lcRw7cevpU4/edit

@anthonyvetter Thanks for this. I'm not able to view the doc, but I've requested access. As soon as that goes through, I'll take a look at the changes.

@abasson-vmware, Okay your deploy preview is ready. It looks good to me but want to give you the final thumbs up. Let me know and I will get it merged.
https://deploy-preview-1501--tanzu-dev-portal.netlify.app/developer/guides/test-doubles/

Looks good to me! Let's ship it.


Advanced features for IRIs

IRI validation
Support for relative and absolute IRIs (https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#QSynIRI)

Related to the BASE clause

@bigerl feel free to add more details and/or suggestions

My idea, how we could support this is a IRIFactory.
It has 3 main functions:

assign or reassign a base
assign or reassign a shorthand to prefix mapping
consume IRIREF, PNAME_LN or PNAME_NS and return an rdf4cpp::IRI (see https://www.w3.org/TR/turtle/#grammar-production-iri)

The important aspect that needs to be covered is: If a prefix is relative, e.g. PREFIX pr: </prrrr/>, the base, e.g. BASE: http://base.org/ must be used to make an absolute IRI, e.g. from pr:purr construct <http://base.org//prrr/purr>.
The expected behavior is also described at https://www.w3.org/TR/turtle/#sec-iri (for an example see Example 8)
We need to specify a "default base URI", as described here: https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.4
I suggest to make it configurable in the constructor of the factory and default to http://example.org/ .
Open questions from my side:

how (and where) do we handle RDF Uri references:

The set of RDF terms defined in RDF Concepts and Abstract Syntax includes RDF URI references while SPARQL terms include IRIs. RDF URI references containing "<", ">", '"' (double quote), space, "{", "}", "|", "", "^", and "`" are not IRIs. The behavior of a SPARQL query against RDF statements composed of such RDF URI references is not defined.


Issue with Dynamic Card

If the Dynamic Content increased beyond the iOS/Android Screen height only the last item is getting displayed and rest of the content are displayed as blank.

`let themes = [
{
name: '1',
},
{
name: '2',
},
{
name: '3',
},
{
name: '4',
},
{
name: '5',
},
{
name: '6',
},
{
name: '7',
},
{
name: '8',
},
{
name: '9',
},
{
name: '10',
},
{
name: '11',
},
{
name: '12',
},
{
name: '13',
},
{
name: '14',
},
{
name: '15',
},
];
export default class FooterTabsExample extends Component {
constructor() {
super();
}
render() {
return (
  <Container>
    <Content>
      <Card dataArray={themes}
            renderRow={(theme) =>
              <CardItem>
                <Text>{theme.name}</Text>
              </CardItem>
            }>
      </Card>
    </Content>
  </Container>
);

}
}`

The issue occurs when number of cardItems reaches more than 10.
Here is the screenshot when loop/no of items is less than 10:
for(var i=0;i<10;i++){
questionanswers.push({
question:"This is some question",
answer:"This is some answer",
hint:"This is some hint"
})
}

And once the loop/no of items is in more than 10:
for(var i=0;i<11;i++){
questionanswers.push({
question:"This is some question",
answer:"This is some answer",
hint:"This is some hint"
})
}

Find one workaround for this. If we import '' from 'react-native' and not from 'native-base' then it is working fine.

@deep-coder

NativeBase's Card renders dynamically, even when its content goes beyond the iOS/Android Screen height.
Importing Text from RN and not from NB has got nothing to do with Dynamic Card, since NB's Text extends RN's Text.

I tried experimenting with your code snippet, it works as expected

Be sure to use the key attribute of the CardItem. Underneath it uses a ListView and dynamically rendered ListViewItems need keys.

@kenleezle  hey i'm having the same problem: as i have a list that i need to extract from firebase database and then display them in cards. But,I keep getting this error "undefined is not an object evaluating (this.props.title.title)" ALTHOUGH, it works perfectly fine if i displayed them in listView. So, do you have any idea or you can maybe post your code, it might be helpful


Option to allow single clicks to explore folders

This is a UX oddity. When clicking an element in the menu bar, it opens a small navigation pane underneath it, and single clicking a folder in it will open the full screen picker. However, the behavior is different in this full screen picker in that you now need to double click folders to enter them.

This would be implemented in a way that respects the setting in Folder Options.

still not happening


Fixtures folder is not resolved properly

RuntimeException: File SyliusShopApiPlugin/tests/Controller/Checkout/../DataFixtures/ORM/shop.yml does not exist

The Checkout folder should be taken into account when we are determining a folder with fixtures.

I have forgotten, that it can be configured already.


Avoid padding error when using an encoded Azure Storage Services key

Purpose
Corrects an issue where the environment variable preprocessing may remove the trailing "==" of an encoded key (which was obtained from the Azure Storage Service, in encoded format). This happens when the AZURE_STORAGE_KEY environment variable is set on .azure/<environment name>/.env.
The change ensures that the storage key is properly terminated and avoids an Incorrect padding error on binascii.a2b_base64() while trying to create the credentials to connect to the service. If and when this happens the upload fails and the whole script is aborted; nothing is uploaded.
Does this introduce a breaking change?
[ ] Yes
[X] No

Pull Request Type
What kind of change does this Pull Request introduce?

[X] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

Prep work:
Execute azd provision in order to create the infrastructure.
Once the services have been created, obtain the Cognitive Search Service key and Storage Service key. Use the main admin keys to be certain.
Add the environment variables AZURE_STORAGE_KEY and AZURE_SEARCH_KEY to the .azure/<environment name>/.env file, and populate with the values obtained. Preferrably use quotes for the values.
Test:
execute **scripts/prepdocs.ps1** on the PowerShell environment -or- **azd up**

What to Check
Blobs have been uploaded to container on Storage Services, and an index has been created in Search Services.

@microsoft-github-policy-service agree

@swarchitex

This happens when the AZURE_STORAGE_KEY environment variable is set on .azure//.env.

How are you setting AZURE_STORAGE_KEY?  Are you calling azd env set AZURE_STORAGE_KEY ?  Or are you setting AZURE_STORAGE_KEY as a bicep output?
I'd like to understand where is the value losing the padding and fix it, instead of manually inserting padding.

This is a verbose answer. Sorry about that.
Background
I had to resort to using they keys because something on my environment is caching more than one AAD identity and throws an error something about being unable to identify the credentials to use, due to the fact that there is more than one cached (and it states so on the error message when the .ps1 script tries to ascertain the identity to use). This might be due to the fact that I have setup (not joined) a different AAD tenant on my Windows installation (my production/customer's) vs the one I am logging in (my dev) on azd login.
Prep work
The storage key is obtained after the script finishes provisioning and then fails due to issue just described. This storage key being [64]bit encoded should have an "==" terminator and has a fixed length of [80?] chars.
Attempted resolution
Once the script fails for the first time, then the keys are obtained from the Azure portal and then added to the <environment name>\.env file as follows. I am pasting the keys exactly as on the script. They are not valid anymore.
AZURE_STORAGE_KEY="xvbh4OaJFIwSj9svOCqgOmio04pnWTXe6yAN/LsckDDkhPbR5DYYadU8ejtBiSkTjg4fsvgQqgTw+AStCG0PIw=="
AZURE_SEARCH_KEY="VIDFyypwdyTTqx6jrcl01oW2V70TYMPecAn3D7LuwPAzSeDddstP"
Once the keys are on the env file, the prepdocs.ps1 is updated as follows:
python ./scripts/prepdocs.py './data/*' --searchkey $env:AZURE_SEARCH_KEY  --storagekey $env:AZURE_STORAGE_KEY --storageaccount $env:AZURE_STORAGE_ACCOUNT ........
Issue
However, this fails with a "padding error" while decoding the storage key, just before the script starts uploading the split files.
The problem lies on lines 3-7 of prepdocs.ps1. That loop populates the PS environment variables array with the parameters passed to the script. In order to do this, it uses the = character to detect the variables ($line.Split("=")). That is where the trailing = characters are lost in the storage key environment variable and therefore breaks the decoding code.
Solution
My proposed solution is to, in case the loop above is changed in the future, strip any left-over = characters and then adding the two = terminator characters required for the string to be properly formatted.

@swarchitex, instead of settings the keys within the .env file (the azd-environment), can you set them as system environment variables and then read them from prepdocs.ps before calling prepdocs.py ?   the values are only used by the prepdocs.py script, so, you don't really need them inside the azd-environment.


Flutter doctor cannot detect android studio on ubuntu

I was installed android studio, but i couldn't detect it when i called flutter doctor. How i can fix that?

You should install the Flutter and Dart Plugin from the Configure option, and also update the PATH accordingly.
You can update the path by adding
export PATH="$PATH:/home/usr/Documents/development/flutter/bin"
in the .bashrc file which is located in the home folder as a hidden file, and from the looks of it you might also need to install the latest Java Development Kit, the link is already provided in the terminal.
If you still get the error, update or reinstall android studio.
Hope this helps!

You should install the Flutter and Dart Plugin from the Configure option, and also update the PATH accordingly.
You can update the path by adding
export PATH="$PATH:/home/usr/Documents/development/flutter/bin"
( you can change user to your path, also do check if you have properly installed the flutter SDK too)
in the .bashrc file which is located in the home folder as a hidden file, and from the looks of it you might also need to install the latest Java Development Kit, the link is already provided in the terminal.
If you still get the error, update or reinstall android studio.
Hope this helps!
I was reinstall it, but i still get the error

Hi @vando2108
Please follow the getting started guide in https://flutter.dev/docs/get-started/install/linux.
It seems you are asking for assistance. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Updating to v0.4.6

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

I'm hoping I did this right, not sure if this PR should have been autogenerated when I released pyct. @ceball

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@ocefpaf, I am hoping I did this right. It seems that the readme might still need an update?

@jjhelmus might also be interested.

@ocefpaf, I am hoping I did this right.

This is perfect. Thanks!

It seems that the readme might still need an update?

It should be automatically rendered with conda-smithy.


Fix query not hit partition in original planner

Proposed changes
Fix issue  that query not hit partition  in original planner,  which will cause  serve performance degradation.
this issue seems introduced by https://github.com/apache/doris/pull/21533

run buildall

run p0

run buildall

run p0

run buildall

run  buildall

could u submit a pr to master?


SB3 Tutorial - the Resultant Actions are 100 and MOSTLY 0.

Hi everyone,
When I ran the code of SB3 tutorial, the resultant actions were only 100 and 0 (mostly 0 with only 100 on the first 2 days).
I believed there was an issue as if 100 meant buying 100 shares, how come there was no selling? Furthermore, most of the actions were 0, so I thought the training was not working...
Please help!
Thanx.

Have you found any solution to this problem?


Redshift UDFs

See for docs. We don't plan to push this back to Sidewalk Labs, but this is the most convenient workflow.
https://nautodev.atlassian.net/wiki/spaces/ENG/pages/294387728/S2+Functions+in+Redshift

This change is

Sorry, didn't mean to send this to you.
Redshift (analytics database) has Python plug-ins, so I packaged s2sphere as one to get s2 <-> lat/lon functions into our very simple map database.


Left side sideMenuButton should play nice with existing nav buttons

Observations
The side menu button could play nicer with existing navigation buttons by adding itself to the barButtonItems automatically.
Improvements

The menu button should always be visible in the navigation bar.
Existing nav bar items, like the back button or custom items, should not be removed when the menu button is added.
Menu button should always be to the right of the back button and before any other left-side nav item buttons.

Benefits

Menu button is consistently accessible
Custom implementation is not required for each instance
Better user experience

Example

Amazon iOS application

Possible Implementation
Could be implemented by utilizing UINavigationController.navigationItem.leftItemsSupplementBackButton = true

Fixed in release 0.2.3. Now the menu button is appended to the existing items rather than replacing them.


isTuple() INTERNAL ASSERT FAILED

when i run the code,i got this error ,how could i solve it?
terminate called after throwing an instance of 'c10::Error'
what():  isTuple() INTERNAL ASSERT FAILED at "/dxd/libtorch-yolov5/libtorch/include/ATen/core/ivalue_inl.h":842, please report a bug to PyTorch. Expected Tuple but got GenericList
Exception raised from toTuple at /dxd/libtorch-yolov5/libtorch/include/ATen/core/ivalue_inl.h:842 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) + 0x69 (0x7f569de58eb9 in /dxd/libtorch-yolov5/libtorch/lib/libc10.so)
frame #1: c10::IValue::toTuple() const & + 0xe5 (0x4206cd in ./libtorch-yolov5)
frame #2: ./libtorch-yolov5() [0x41916a]
frame #3: ./libtorch-yolov5() [0x4316f6]
frame #4: __libc_start_main + 0xf0 (0x7f5654d44840 in /lib/x86_64-linux-gnu/libc.so.6)
frame #5: ./libtorch-yolov5() [0x4176b9]
Aborted (core dumped)

https://github.com/yasenh/libtorch-yolov5#faq
@wolfworld6 if you use cpu version, please make sure you don't pass --gpu flag

https://github.com/yasenh/libtorch-yolov5#faq
@wolfworld6 if you use cpu version, please make sure you don't pass --gpu flag

i have done this ,as follow:
model = attempt_load(opt.weights, map_location=torch.device('cuda'))
model.model[-1].export = False
gs = int(max(model.stride))  # grid size (max stride)
opt.img_size = [check_img_size(x, gs) for x in opt.img_size]  # verify img_size are gs-multiples
img = torch.zeros((opt.batch_size, 3, *opt.img_size)).to(device='cuda')

https://github.com/yasenh/libtorch-yolov5#faq
@wolfworld6 if you use cpu version, please make sure you don't pass --gpu flag

that is my fault,i do that twice,thx v much!

No problem, good to hear that you fix it!


Upgrade alpine to 3.18

@martinhaus Could we possibly merge this? Would really appreciate your input

This project is legit dead.

@MarkDPierce any alternatives?
The main problem "Cloudflare Metrics -> Prometheus" is still exists

@MarkDPierce any alternatives? The main problem "Cloudflare Metrics -> Prometheus" is still exists

Fork the project and update your fork to use alpine and build the image.
The problem is when cloudflare adjusts their APIs or make changes that are not reflected in this code base because its dead. We have not bothered finding an alternative because we are pulling metrics a different way and the metrics provided by this repo are not what we are after. I totally get it for smaller websites and such though.

we are pulling metrics a different way

@MarkDPierce any suggestions or at least some key words?
My case is also not small one and it is why I actually need metrics in prometheus. For small projects Cloudflare itself is good enough.

(Blog post)[https://blog.cloudflare.com/improving-your-monitoring-setup-by-integrating-cloudflares-analytics-data-- into-prometheus-and-grafana/] points to that repo
https://github.com/transferwise/cloudflare-prometheus-exporter use similar solution
https://gitlab.com/gitlab-org/cloudflare_exporter moved to that repo


stop hiding pointers behind uint64 in *Attr structs

When using uintptr(unsafe.Pointer()) we're hiding the fact that we are using a particular piece
of memory from the garbage collector. This can lead to the GC freeing memory that is in use by the
bpf syscall. See https://github.com/golang/go/issues/13372 for context.
The problem arises with the various *Attr structures, which stuff pointers into uint64 values.
While the syscall will keep the reference to *Attr alive, whatever is pointed to by *Attr may
be collected. This can lead to random crashes.
To keep pointers visible to the GC we introduce a new syscallPtr struct. This is required since
the size of unsafe.Pointer is platform dependent, but the syscall interface always expects a 64bit
value.
Note that the current code won't compile on ppc, s390, sparc GOARCH since I couldn't figure out
their endianness.

Wow! Thanks. LGTM.


[Feature Request]: Addition of a Circular Animated Cursor

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Addition of a Circular Animated Cursor to enhance the UI of the website.
Use Case
Will enhance the UI of the website.
Benefits
Will add interactivity to the website.
Add ScreenShots
https://github.com/MAVRICK-1/e-commerce_website/assets/159264060/8fa512e6-d93e-448c-b668-3338f7a5db38
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

we dont need this as of now, thanks!


Filters - output

I'm not sure if I am setting it up correctly but if I set a low pass filter frequency at 100 (Hz). The 100 Hz should be the cutoff frequency correct? Now if I use the output function of my filter and print the value... should I be seeing a value of zero if my input frequency is over 100 Hz?

The filters are designed to behave identically to their electronic counter parts (single-pole RC, and two pole Bessel/Butterworth filters).  Essentially "Filters" simulates these circuits in real-time digital embedded.  You can lean more about the filter behavior (in terms of frequency response) by checking into standard single- and two-pole filters.
Since the filters are single-pole and two-pole, they are not infinitely sharp in terms of frequency cutoff.  So, you will still see some output at an input frequency 100 Hz, or even 1000 Hz (though dramatically attenuated).
From the user perspective, the frequency you supply is the “corner frequency,” which is the standard number used to define a filter.  The signal is attenuated by 3 decibels at the corner frequency, which is half the power (or 1/sqrt(2) of the magnitude).
So, in your case, if you enter a corner frequency of 100, then your filter will output about 71% the maximum value at that frequency.  Keep in mind that you need to updated the filter FREQUENTLY - many more times than your corner frequency, per second, probably closer to 1000x (or more)- for it to work
Since the filters are recursive (they “time-step” to calculate the next value, so the updates need to happen at a scale that is faster than big the signal, or filter).  This is typically easy to achieve, but can eat up some resources for the DSP.
If you are stepping too infrequently, the single-pole filters will remain stable, and the two-pole filters have a “check,” so they remain numerically stable, but the output will not be correct.
Hope this helps.


Port #1977 to stabilization

Fix crash when running SA1609 code fix
(cherry picked from commit 3483d86a68833f5468e954cb1ae01bfb8ecfed05)

Current coverage is 93.24%

Merging #2007 into stabilization will decrease coverage by -0.19% as of 72a9c88

@@            stabilization   #2007   diff @@
=============================================
  Files                 560     561     +1
  Stmts               35183   35332   +149
  Branches             2246    2267    +21
  Methods
=============================================
+ Hit                 32872   32946    +74
- Partial               744     749     +5
- Missed               1567    1637    +70

Review entire Coverage Diff as of 72a9c88

Powered by Codecov. Updated on successful CI builds.


Suggestion

I suggest that the game start automatically, for example I send people from one host to another with a bungercoord so they arrive in seconds and when the game arrives it starts alone and

Hello there, this ties into #19 with autostart. Presently, I feel as if this UHC plugin is ready to be automated as well, sorry.


怎么肥四

云鹤酱，爱你呢！

Just fixed a few minor bugs. Also add a Verilog code auto-generator.
Be sure to perform git pull !!
A huge thanks to Yunhe Chan for your star.

This really solve my issue!!谢谢老哥


pedro want's to talk

Oussama, check #jesse channel pedro wants to talk to you

for the last 20mins...


Unable to open Civics Tree [Patch <IP_ADDRESS>]

Clicking on the the current civic being researched and/or the dedicated button on the top left both fail to open up the Civics Tree.
I apologize in advance if this this not the right way to go about this, but I figured having separate issues for each of the bugs introduced with the latest patch (<IP_ADDRESS>) would be the best way to track these items.

part of #283


Added style props for actionSheet android

Coverage remained the same at 86.263% when pulling d56ad7443b6a20a06fe3e9ea31ac9143967d5ca1 on zoranmarjanovic:master into 3c2fd3ffd69098e711a7c00c97c62e96b71ed4d4 on xgfe:master.


A problem when indexing tensor, I'm not sure if it is related to gather_nd issue

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
Might be related to https://github.com/tensorflow/tensorflow/issues/206
Environment info
cuda-7.5
tensorflow 0.10.0rc0
If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
# logit_t is tensor of shape (batch_size, number_of_label)
# correct_t is targets, of size  (batch_size)

logit_corrects = []
# I loop through batch_size because gather_nd doesn't support gradient
for i in xrange(batch_size):
    logit_correct = tf.gather( logit_t[ i , : ], correct_t[ i ] )
    logit_corrects.append( logit_correct )

logit_corrects = tf.pack( logit_corrects )
self._cost = cost = tf.reduce_mean( -logit_correct )

However, it complained that there is no supported kernel for GPU device.
What other attempted solutions have you tried?
Logs or other output that would be helpful
E tensorflow/core/client/tensor_c_api.cc:485] Cannot assign a device to node 'model/gradients/model/Squeeze_159_grad/Res
hape/tensor': Could not satisfy explicit device specification '/device:GPU:3' because no supported kernel for GPU device
s is available.
         [[Node: model/gradients/model/Squeeze_159_grad/Reshape/tensor = UnsortedSegmentSum[T=DT_FLOAT, Tindices=DT_INT3
2, _device="/device:GPU:3"](model/gradients/model/Gather_39_grad/Reshape, model/gradients/model/Gather_39_grad/Reshape_1
, model/gradients/model/Squeeze_159_grad/Reshape/Squeeze)]]
Traceback (most recent call last):
  File "learning3.py", line 976, in <module>
    tf.initialize_all_variables().run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1553, in run
    _run_using_default_session(self, feed_dict, self.graph, session)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 3684, in _run_using_default_ses
sion
    session.run(operation, feed_dict)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 382, in run
    run_metadata_ptr)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 655, in _run
    feed_dict_string, options, run_metadata)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 723, in _do_run
    target_list, options, run_metadata)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 743, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'model/gradients/model/Squeeze_1
59_grad/Reshape/tensor': Could not satisfy explicit device specification '/device:GPU:3' because no supported kernel for
 GPU devices is available.
         [[Node: model/gradients/model/Squeeze_159_grad/Reshape/tensor = UnsortedSegmentSum[T=DT_FLOAT, Tindices=DT_INT3
2, _device="/device:GPU:3"](model/gradients/model/Gather_39_grad/Reshape, model/gradients/model/Gather_39_grad/Reshape_1
, model/gradients/model/Squeeze_159_grad/Reshape/Squeeze)]]
Caused by op u'model/gradients/model/Squeeze_159_grad/Reshape/tensor', defined at:
  File "learning3.py", line 967, in <module>
    m = Recognizer(is_training=True, config=config)
  File "learning3.py", line 501, in __init__
    grads, _ = tf.clip_by_global_norm(tf.gradients(cost, tvars),
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gradients.py", line 478, in gradients
    in_grads = _AsList(grad_fn(op, *out_grads))
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_grad.py", line 291, in _SqueezeGrad
    return _ReshapeToInput(op, grad)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_grad.py", line 281, in _ReshapeToInput
    return array_ops.reshape(grad, array_ops.shape(op.inputs[0]))
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 1750, in reshape
    name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 454, in apply_op
    as_ref=input_arg.is_ref)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 621, in convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gradients.py", line 95, in _IndexedSlicesToTensor
    name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_math_ops.py", line 2350, in unsorted_segment_su
m
    num_segments=num_segments, name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 703, in apply_op
    op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2310, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1232, in __init__
    self._traceback = _extract_stack()

...which was originally created as op u'model/Squeeze_159', defined at:
  File "learning3.py", line 967, in <module>
    m = Recognizer(is_training=True, config=config)
  File "learning3.py", line 480, in __init__
    tf.gather(logit_t[i,:], correct_t[i])
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 340, in _SliceHelper
    return squeeze(sliced, squeeze_dims=squeeze_dims)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 2273, in squeeze
    squeeze_dims=squeeze_dims, name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 703, in apply_op
    op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2310, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1232, in __init__
    self._traceback = _extract_stack()

I can't immediately tell which Op is missing a GPU kernel.
In the mean time, can you set allow_soft_placement to True?  See tensorflow/g3doc/how_tos/using_gpu/index.md as an example.

When I switched to CPU, it did run, but slower than I want it to. I thought that you can run gradient on tf.gather using GPU, but it seems like it couldn't. Am I correct?

@tuandnvn can you try version 0.11:
https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html#download-and-setup
Based on the error it looks like the op with a missing GPU kernel is UnsortedSegmentSum, but that support was added in this commit:
https://github.com/tensorflow/tensorflow/commit/88686b308146887a88903c883bed7affc650e076
So I'm expecting it to work in 0.11, or at least you'll run into a different problem.  :)

I would try that, thanks tataodd for your new update.

@tuandnvn, did this work for you, could I close the issue?

Cleaning up issues mentioning 0.11.
Closing due to lack of activity.


Add support for search operators like "title:man"

I would like to be able to filter or search specific properties using search operators frequently found in google search and gmail. I would like to be able to do things like -{someexpression} or tag:someTag or other ways to search specific properties instead of just general fuzzy searching.

@krisk any update on the estimated or plan to release this feature. We need this feature for one of requirements. Wanted get some insight nf the priority and plan .


Add iOS iSH app ?

Description
If you're suggesting a new feature then just a description will suffice.

[ ] Does this issue still occur in the master branch? (Required if issue)

https://ish.app/
Neofetch version
Screenshot
Config file
Verbose log

Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.

What would you like me to do exactly?
What does neofetch output in ish right now?

Oh, sorry, I misunderstand this, I'll close issue.
But there's a question, neofetch logo only supports linux distribution? iSH app is just running alpine linux with busybox, not a distribution, but it is an independent app.


Make parameter cursorlessSnippetsDir optional

Checklist

[/] I have added tests
[/] I have updated the docs and cheatsheet
[/] I have not broken the cheatsheet

I'm not against that, but I wonder if we gonna need that parameter once we moved to the new community snippets?


Is gocraft/web compatible with standard http.Handlers?

Ive been trying to integrate and use middleware provided by go libraries that make use of the http.Handler pattern, but for the life of me can't figure out how to get those to work with GoCraft on a subrouter.
Any pointers would be appreciated :-)

@lonelycode - Here's an example that may get you started using a RedirectHandler from the http package.
package main

import (
	"github.com/gocraft/web"
	"net/http"
)

// Context is required for gocraft web router.
type Context struct{}

func main() {

	router := web.New(Context{})

	router.Get("/", func(w web.ResponseWriter, r *web.Request) {
		w.Write([]byte("index page"))
	})

	redir := http.RedirectHandler("https://www.google.com", http.StatusTemporaryRedirect)

	sub := router.Subrouter(Context{}, "/redirect")
	sub.Get("/google", func(w web.ResponseWriter, r *web.Request) {
		redir.ServeHTTP(w, r.Request)
	})

	sub.Get("/google2", func(w web.ResponseWriter, r *web.Request) {
		http.Redirect(w, r.Request, "https://www.google.com", http.StatusTemporaryRedirect)
	})

	panic(http.ListenAndServe("localhost:9090", router))

}


HDDS-10210. Ensure atomic update in StateContext#updateCommandStatus

What changes were proposed in this pull request?
While tracing the block deletion logic, I found a possible problem regarding command status update logic.
The cmdStatusMap in StateContext is a ConcurrentHashMap
Currently the update logic for command status is as follows:
public boolean updateCommandStatus(Long cmdId,
    Consumer<CommandStatus> cmdStatusUpdater) {
  if (cmdStatusMap.containsKey(cmdId)) {
    cmdStatusUpdater.accept(cmdStatusMap.get(cmdId));
    return true;
  }
  return false;
}

It does not seem correct. Although the get containsKey and get is protected by the ConcurrentHashMap, the CommandStatus retrieved is mutated directly using the cmdStatusUpdater and not protected by the ConcurrentHashMap (Please correct me if I'm mistaken). This might trigger race condition.
We should use atomic operation like computeIfPresent.
Note: The cmdStatusMap is also exposed to public (getCommandStatusMap) which might not be a good idea since we cannot guarantee correct usage of the map. We might need to encapsulate it properly inside StateContext. Also we might want to add @VisibleForTesting for getCmdStatus and/or make defensive copies of the CommandStatus.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10210
How was this patch tested?
Existing tests.
Clean CI: https://github.com/ivandika3/ozone/actions/runs/7650123708

@siddhantsangwan would you like to take another look?

Thanks @ivandika3 for the patch, @aswinshakil, @siddhantsangwan, @sodonnel for the review.

Thank you @aswinshakil, @siddhantsangwan, @sodonnel for the reviews and @adoroszlai for the merge.


The efficient way to get topdocs from int filed

I want to get the largest number from a indexed u64 filed, but from the API seems I need first get the filed count then use RangeQuery to search, Or is there other more efficient way?
which more like equivalent to order by <filed> desc limit 1 in sql.
//#1
let count = ...
let query = RangeQuery::new_u64(field, (count-1..count));
searcher.search(&query, &TopDocs::with_limit(1));
//#2
searcher.search(&AllQuery, &TopDocs::with_limit(1)); //this will scan all the docs?

//let query = RangeQuery::new_u64(field, -1); is there any implementation like this.

If it is a fast field you can do this with a TopDocs collector that sorts by this field. The code will slightly similar to your #2 but not exactly. And yes it will be grossly inefficient as it will scan all docs.
For #1, I am not entirely sure how you get your variable count, but it might be possible to reduce the computational time if you have a good approximation of your lowerbound.

Slightly more efficient today : you iterate through the Searchers and access their SegmentReader. From there, you can get their InvertedIndex and iterate all of the terms of your field in increasing fashion using the stream_field method (https://tantivy-search.github.io/tantivy/tantivy/termdict/trait.TermDictionary.html#associatedtype.Streamer).
Stream the entire dictionary and keep the remaining X.
Note if your index have deletes, the terms you get are not necessarily in the index :
To be sure... You need to access the posting list associated to the term. Call .advance() once and check that it returns true...
In other words... It is fairly hard.
You are the second person to ask for that. We can open a ticket to make it possible.

@fulmicoton Yes it is hard to maintain the lower/upper bound.
So the fast filed itself have already sorted right? I see lucene have separated  for sort/nonsort fast values.

@raultang I am not sure exactly what lucene sorted fast field are... I think it means the values are sorted and encoded in an fst while the term ordinal is stored for each doc.
In your case you said you wanted that for int. You don't need them "sorted" for the AllQuery solution to work.
The value is directly bitpacked. There is no dictionary encoding in between.


[TCTC] integrate getAllOperations and getAllClients

After getAllOperations merged, python emitter need to integrate it

Closing in favor of #2266


ci(changelog): automatically update changelog at pre release

This change is

Builds ready [f6298b0]builds: chrome, firefox, opera
bundle viz: background, ui, inpage, contentscript, ui-libs, bg-libs, phishing-detect
dep viz: background
all artifacts


Unable to train the model

Hello, I followed the instructions then ran the code using the given arguments
python main.py -learn_var -seed 1
which failed to generate anything meaningful as shown below. Could you kindly let me know the exact arguments you used to train the model? Or if anyone is able to generate anything other than noise, could I also know the arguments?

Hi Haziq, have you tried running multiple seeds? It is the case that GAN
training can be unstable.
On Mon, Dec 13, 2021 at 6:46 PM Haziq Razali @.***>
wrote:

Hello, I followed the instructions then ran the code using the given
arguments
python main.py -learn_var -seed 1
which failed to generate anything meaningful as shown below. Could you
kindly let me know the exact arguments you used to train the model? Or if
anyone is able to generate anything other than noise, could I also know the
arguments?
[image: simple_plan_min_L2_3_epoch_100]
https://user-images.githubusercontent.com/16434638/145805998-0e3592ba-ef82-416d-a4d3-595e991202ac.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/thanard/causal-infogan/issues/7, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2YE672PKIVLTU7OZZSNM3UQXMJRANCNFSM5J55NKQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Build fails on iterator_for_each

$ cd rust
$ cargo build

   Compiling xi-core-lib v0.2.0 (file:///usr/local/google/home/issactrotts/rust/xi-editor/rust/core-lib)
error: use of unstable library feature 'iterator_for_each' (see issue #42986)
   --> core-lib/src/tabs.rs:660:22
    |
660 |         config_files.for_each(|p| self.load_file_based_config(&p));
    |                      ^^^^^^^^

error: aborting due to previous error

error: Could not compile `xi-core-lib`.
$ rustc --version
rustc 1.20.0 (f3d6973f4 2017-08-27)

Hi Issac! I remember you from when I just started at Google.
We need latest Rust, I think this feature is listed as 1.22.

Hi Raph, good to see you again! Yeah, I just got it to build with the latest rust.
rustup update
cargo build


vdk-coverity-scan: double the limit for resources

What: Double the limit fr resources for coverity scan
Why: Due to recent problems with the cicd https://gitlab.com/vmware-analytics/versatile-data-kit/-/jobs/5841662488

I don't think this is working

Not a problem anymore.


New functionality:  Video Topic-Provide Keywords

是否已存在类似的功能请求？

[X] 我已搜索现有的功能请求

痛点
Video Script Settings: Video Topic-Provide Keywords
建议的解决方案
I feel that the (Video Topic-Provide Keywords) section is too general. I feel that you should add an option to include a detailed personal prompt for the topic you want to create. For example, I need to create a topic with the keyword "feeling of guilt" ... instead of entering the keyword "feeling of guilt" I will enter a "personal prompt": "You’re a compassionate therapist who specializes in helping individuals navigate complex emotions, particularly guilt. You have an empathetic approach and use evidence-based techniques to facilitate understanding and healing.
Your task is to guide me in processing feelings of guilt. Here are some details about my situation:

Specific event causing guilt: __
Duration of these feelings: __
Impact on my daily life: __
Any coping strategies I’ve tried: __

Please keep in mind the importance of providing a safe space for exploring these feelings, and offer practical steps to help me cope and move forward."
I hope you add this option!
有用的资源
No response
其他信息
No response

Roughly, I understand that you need an input box where you can enter your custom prompts.
However, I need to consider a question:
If there needs to be a prompt input box, there would need to be two - one for generating copywriting prompts and one for generating keyword prompts. But this would increase the complexity of the configuration, and once the video theme or character changes, all the prompts would need to be reconfigured.


Question: API Test Coverage (gin.io + busted + luacov)

This is not an issue but a question to all gin.io users / developers.
I am currently trying to figure out how to report busted / API test coverage.
Due to the integrative / indirect nature of the tests run with hit(), there is no direct code coverage path that busted -c could use to connect the test suite driven API calls with the underlying controller implementation.
Does anybody of you have a good idea on how to achieve a code coverage report on indirect / integration tests for gin.io?
I would like to refrain from the naïve approach adding direct calls to the controller's handler functions.
Rather, I am thinking about a way

either for hit() to automatically add a call to the appropriate handler (as configured in routes)
or to read out the configured routes and track the calls to each handler using spies or the like

Anybody with any experience or code for this approach?

Interesting question.
I think that the best testing approach for testing GIN applications is integration testing. This is to ensure that everything, from the nginx.conf file to the routes, is properly set. The other option, as you state, is to directly hit the routes stack without even starting nginx (just as Rails does for instance in controller tests).
The latter option would allow you to set up proper coverage; the first one does not. However, for the reasons here above I'd keep the integration approach. Therefore, I'd rule out having hit() to call the appropriate handler.
How to set up spies in a clean way for coverage, though, is another question.

Yes, I would stick with the integration part, too -- no question. Just trying to find a good way to turn the integration tests into integration + unit tests (with coverage) automatically.
The other option I will need (in the very near future) would be a single nginx instance for a complete test group / suite, because starting/stopping nginx for each single test takes quite a lot of time if you have lots of tests (which I have).

Outdated.


Port Qtum to core 0.21

The code contin the Taproot soft fork and also other updates from Bitcoin 0.21 version.
The configuration file chainparams.cpp need to be updated for mainnet and testnet for Taproot activation to those networks (Consensus::DEPLOYMENT_TAPROOT).
The python tests for qtum are not fixed, so they might failed.

Included in https://github.com/qtumproject/qtum/pull/966


[proposal] Warning banners configuration structure

Context
Currently we have a PR implementing warning banners to direct users to the latest version of docs if they're on an old version. However it has stalled out because it wasn't clear the right configuration mechanism to use. This is a proposal for something so we can move forward.
Constraints for configuration
I believe the most important points @bryevdv mentioned were:

There should be a single source of truth for the configuration across multiple docs sites (so nothing that embedded in the HTML of each site)
We don't want to have to change more than one configuration when a new version is added (to reduce toil and forgetting to update things). So no "package version-specific config with each version".

Proposal
Here's what I'd suggest we do to move forward:

Currently we accept a versions.json file that contains a list of configuration entries, each one corresponding to a version.
We allow versions.json to optionally be a dictionary instead of a list. If it is a dictionary, we assume it is a collection of key:val pairs to configure the versions behavior.
If it is a dictionary, there must be an entry called items, the value for items will be the list of version entries that currently populates versions.json.
In addition to items, there may be other configuration to control behavior. We propose two optional values:

preferred_version: is a unique ID to point to a version that users should use (e.g. stable). If the user is on a docs build that does not have this version, they'll get the warning banner with a message saying they're on an outdated version.
development_version: is a unique ID to point to the "development version" of the docs. The only difference this makes is that this version will display a "this is a development version" message, instead of the "this is an outdated version" message.

Feedback

Any objections to this proposal?
Anything you think we should change?

References

Original warning banners issue: https://github.com/pydata/pydata-sphinx-theme/issues/759
Implementation PR: https://github.com/pydata/pydata-sphinx-theme/pull/780/files

cc @jarrodmillman who I discussed this with yesterday

Seems reasonable. Another possibility is to keep it as a list-of-dicts, and have users optionally add a preferred=True item to one entry, and similarly an optional latest=True to one entry.
The reason to (maybe?) prefer this approach is that I think it will end up needing fewer / simpler changes to the existing JS that parses the versions.json data. (That is a hunch based on memories of the code, not based on reviewing it today. Nor is it an expression of strong preference; whoever implements it can choose which way seems easier, as far as I'm concerned.)

Seems reasonable. Another possibility is to keep it as a list-of-dicts, and have users optionally add a preferred=True item to one entry, and similarly an optional latest=True to one entry.
The reason to (maybe?) prefer this approach is that I think it will end up needing fewer / simpler changes to the existing JS that parses the versions.json data. (That is a hunch based on memories of the code, not based on reviewing it today. Nor is it an expression of strong preference; whoever implements it can choose which way seems easier, as far as I'm concerned.)

Another possibility is to keep it as a list-of-dicts, and have users optionally add a preferred=True item to one entry, and similarly an optional latest=True to one entry.

I'm not a huge fan on this as it easily leaves open the possibility of erroneously adding preferred and latest to more than one dict, and now you need some validation step if you want to make sure you haven't screwed up your JSON file. I'd rather just have one top -level value to update, which does not leave open that possibility, and is also simpler to automate.

@choldgraf is this solved by https://github.com/pydata/pydata-sphinx-theme/pull/1354 ?


Need support for Composable with dynamically changing height on iOS

I would like to be using Compose Multiplatform for an Android / iOS app. The use case is to display a collapsible list of items. The list will initially show as collapsed, then when the user taps it, it shows the full list. I will be embedding this in an existing UI. On Android, it works as expected and when the list expands, the non-Compose UI elements below the list are pushed further down the screen.
But, on iOS, the height can either be a fixed number of pixels or the entire screen, but I haven't found a way to make it respond dynamically to the height of the Composable.
Similarly, this issue prevents wrapping the Composable so that it takes up only the space it needs in the iOS UI, so I believe solving this would have greater benefits than just my particular use-case.
I did hack a workaround together where I created a callback function from the Composable that returns the current height of the Composable in onGloballyPositioned(), but this then requires that I know the exact PPI for every iOS device that I want to run the app on so that I can do the dp -> pixel conversion.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Bump up GA actions/checkout to latest (v2.3.5)

Why are the changes needed?

Fix Github Action, see: https://github.com/actions/checkout/issues/672#issuecomment-1010571414
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

nice catch~


[SPARK-14354][SQL] Let Expand take name expressions and infer output attributes

What changes were proposed in this pull request?
JIRA: https://issues.apache.org/jira/browse/SPARK-14354
Currently we create Expand operator by specifying projections (Seq[Seq[Expression]]) and its output. We allow Expand to reuse child operator's attributes and so make its constraints invalid when we change the corresponding values of these attributes (e.g., making them null when doing a roll up). We should let it take name expressions and infer output itself.
How was this patch tested?
Modified ConstraintPropagationSuite.

Test build #54806 has started for PR 12138 at commit 376d2e1.

Test build #54806 has finished for PR 12138 at commit 376d2e1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54806/
Test FAILed.

Merged build finished. Test FAILed.

Test build #54845 has started for PR 12138 at commit c9a3887.

Test build #54845 has finished for PR 12138 at commit c9a3887.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54845/
Test FAILed.

Test build #54991 has started for PR 12138 at commit 8a18acd.

Test build #54991 has finished for PR 12138 at commit 8a18acd.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class TimestampFromLong(child: Expression) extends UnaryExpression with ExpectsInputTypes

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54991/
Test FAILed.

retest this please.

Test build #54993 has started for PR 12138 at commit 8a18acd.

Test build #54993 has finished for PR 12138 at commit 8a18acd.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class TimestampFromLong(child: Expression) extends UnaryExpression with ExpectsInputTypes

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54993/
Test PASSed.

ping @marmbrus @yhuai @cloud-fan

If my understanding is right, the problem is: when child output changes(e.g. making them null when doing a roll up), the output of Expand can't reflect it.  I have a simpler idea, when set the output for Expand, use a placeholder to reference to a child column, and define a output method in Expand that replace the placeholder with child attribute. How about it?

@cloud-fan Thanks for comment.
The problem is we re-use child's output as Expands output.  We will create new attributes in Expand because Expand actually performs multiple projections. However, we let the projections in Expand as Expression instead of NamedExpression and re-use child output attributes. Thus there is a inconsistency between Expand's output attributes and projected values.
The obvious example for this inconsistency is constraints. Previously Expand inherits child's constraints. As we will change child's output values by projections (e.g., set it as null), these constraints bound on child's attributes are not valid.
In previous PR we just set Expands validConstraints to empty to avoid such inconsistency. But as the result, we don't have reliable constraints after Expand operator.

Yea, and in this PR we use NamedExpression to avoid re-using child's output, which should work. My proposal is that, we can use placeholders(maybe BoundReference) to reference child's output, and define an output method in Expand that replace the placeholder with child attribute. I haven't looked through all cases, but if this proposal can work, it should be simpler to implement.

I just get noticed that this PR can also solve another JIRA ticket: https://issues.apache.org/jira/browse/SPARK-14495.

@cloud-fan yea. this solution looks complicated due to that I need to fit it into current usage of Expand... I will try your proposal and see if it works. Thanks!

@cloud-fan As you replace the placeholder with child attributes, does it mean we re-use child's output too?

no it's different when we do it in a method.

We may not talk the same thing. Not the change of child output causes problem. We create new attributes in Expand. But we use child's output as Expand's output.
For example, if the child output is [a, b, c]. Currently we set it as Expand's output too.
But when we do a roll up, we may set a, b, c to null. But our output in Expand doesn't reflect this change.

But our output in Expand doesn't reflect this change.
It's because Expand.output is a val, if we make it a def, and use child.output to construct the output of Expand every time we call the output method, the problem should be fixed.

Why? Every time we call output method on Expand, it still uses child output to construct its output. But child's output doesn't know the values are changed now. Isn't it?

I think the output attributes of Expand operator should based on its projections, not child's output.

I may misunderstand this problem, could you add a test case in this PR to show what's wrong before?

@cloud-fan The obvious wrong case is Expand's constraints. I've modified the test in ConstraintPropagationSuite. Basically the previous usage works except for constraints inference.


Typo on line 1316 on powerdnsadmin/routes/admin.py

Line says:
NSS_PATTERN = re.compile(fr'^({NSS_PCHAR})({NSS_PCHAR}|/|\?)*$', re.IGNORECASE)

But should be
NSS_PATTERN = re.compile(r'^({NSS_PCHAR})({NSS_PCHAR}|/|\?)*$', flags=re.IGNORECASE)

Not used to make changes on code, sorry if this is not the correct way to fix it

The f-tag before the string is needed, because inside the string the variable "NSS_PCHAR" is referenced.
Furthermore, according to the python3 documentation, stating explicitly that the 2nd argument used is the "flags" argument is not necessary.

Kostas is right, closing.


nm.profile: rewrite NM profile activation

Created new classes:

NmProfiles handle the NmProfile creation and keeps the list of
profiles. In addition, it is used to apply the config of each
NmProfile in the correct order.

NmProfile handle the activation, deactivation and deletion of the
profile. In addition it keeps the
NM.RemoteConnection/NM.SimpleConnection and handles the profile creation
of proxy interfaces.

The logic of profile activation from libnmstate/nm/applier.py and
libnmstate/nm/connection.py has been unified in
libnmstate/nm/profile.py.

Moved functions:

Move _preapply_dns_fix() from nm/applier.py to libnmstate/dns.py and
rename it to preapply_dns_fix_for_profiles().

Move create_proxy_profile to NmProfile class. For each profile,
Nmstate will check if it is needed to create a proxy profile.

Move _is_ovs_lag_port() from nm/applier.py to libnmstate/ifaces/ovs.py

Signed-off-by: Fernando Fernandez Mancera<EMAIL_ADDRESS>

You don't have clear line between NmProfiles and NmProfile.
For example. the profile.to_activate = True line show the NmProfiles is determine the state of
NmProfile while NmProfile can know it via iface_state.

I wanted to unify this. In that specific case this is true but for other cases it must be done in NmProfiles because the others NmProfile objects affect the action that must be taken. I could split this up but in my opinion it will make it less clear because then NmProfiles will determine some of the actions that must be done on the NmProfile objects and at the sime time NmProfile object will determine others too.

I think:
* `NmProfiles` is for handling actions require knowledge **between** profiles.

* `NmProfile` is taking actions based on given iface_state.

Meanwhile, I would like to see the object of BaseIface been passing to NmProfile instead of dict,
so that you can use BaseIface.master etc properties.

NmProfiles are being created using the BaseIface object. But from create_proxy_profile() I am creating it using the dictionary but I will change that. Thanks!

There is also unclear line between nm/profile.py and nm/connection.py.
I would like to suggest:
* `nm/profile.py` handle profile activation/deactivation/deletion.

* `nm/connection.py` handle converting iface_state dict to `NM.SimpleConnection` or updating `NM.RemoteConnection`.

I am removing a lot of code from nm/connection.py. nm/connection.py will handle only NM.SettingConnection.


get_fastq_pe: fasterq-dump quit with error code 3

Hit this error on get_fastq_pe today:
disk-limit exeeded! fasterq-dump quit with error code 3
I ran commands locally and managed to get rid of disk-limit error (plenty of space was available)
fasterq-dump SRR7774199 -O SCA_5/ -e 8 -t /tmp --disk-limit-tmp<PHONE_NUMBER>00 --disk-limit<PHONE_NUMBER>00 -x
But still, I received error code 3, so I tried a bunch of things.
I think the issue has to do with how read pairs are split in this accession. Here are commands that don't error:
fasterq-dump with no output folder specified does not error, but this command produces one fastq file, rather than 2. The same result when --split-files is provided:
fasterq-dump SRR7774199
ffq also runs successfully, but it produces 1 fastq file:
ffq --ftp SRR7774199 | grep -Eo '"url": "[^"]*"' | grep -o '"[^"]*"$' | grep "fastq" | xargs curl --remote-name-all --output-dir ffq_SCA_5
fastq-dump also runs without error, but correctly generates two fastq files when --split-files is specific:
fastq-dump ./SRR7774199 -O SCA_5/ --split-files
All three solutions produce 2 paired fastq files without error on other accessions in this bioproject. All accessions originate from bam file uploads, so I wonder if there is an issue with how SRA handles bam file uploads.
tl;dr switching to ffq does not solve this issue, but switching to fastq-dump might…but this project on NCBI might just be garbled

I pushed a fix (from Cade's account on our server). basically the problem I found is that snakemake doesn't recognize code 3 as an error, so we cant use the same unix error catching. So I just look to see if read 1 was made and if not, try fastq-dump. Works with this dataset. This seems to be related to https://github.com/ncbi/sra-tools/issues/318, but none of the solutions there solved it

I might hesitate to implement this change because the split files from fastq-dump have illogical names. Even sorting them, I cannot map them with BWA:
[mem_sam_pe] paired reads have different names: "SRR7774199.10000000", "SRR7774199.10"
Checking the reads confirms this:
zcat /data/snpArcher/SCA_5/SRR7774199_1_sorted.fastq.gz | head | grep "@"
@SRR7774199.100 100 length=87
@SRR7774199.10000000 10000000 length=87
@SRR7774199.100000000 100000000 length=87
zcat /data/snpArcher/SCA_5/SRR7774199_2_sorted.fastq.gz | head | grep "@"
@SRR7774199.1 1 length=87
@SRR7774199.10 10 length=87
@SRR7774199.1000 1000 length=87

So this bugfix does work, but I'm worried it means that the files are unusable anyway, so maybe better to keep fasterq-dump as it is most likely to get files that can go through the pipeline.

The fact that ffq and fasterq-dump can be made to work but produce only a single output file is definitely consistent with errors in how the paired end information is encoded by NCBI and/or the submitter.
Looking at the read browser, there is definitely something wrong with this accession:

It looks like for each pair of reads either read 1 or read 2 has data, but not both. So fasterq-dump correctly outputs a single file, while fastq-dump outputs r1 and r2 files but with nothing actually paired between them.
This is the first time we've seen this issue so I think we should leave the code as is and treat errors in this step as data problems. I'm closing this issue but @erikenbody please reopen if you disagree.

Thanks @tsackton  - I agree, and that was good idea to check the browser, which seems to make it clear that only one read was uploaded


add null check to scc usage var

What if there are no evaluations done in a given month? 👀

What if there are no evaluations done in a given month? 👀

quantity should be set to null and passed along downstream where it will be handled

Ah, okay, I understand, thank you


WIP Guoqing/number insight ga

Choose a PR Template
Switch to "Preview" on this description then select one of the choices below.
Click here to open a PR for a Data Plane API.
Click here to open a PR for a Control Plane (ARM) API.
Click here to open a PR for only SDK configuration.

API change check
APIView has identified API level changes in this PR and created following API reviews.
CallAutomation-PhoneNumbers


flutter android build failed

Target aot_android_asset_bundle failed: IconTreeShakerException: ConstFinder failure: Unhandled exception:
Reference to package:puppeteer/protocol/css.dart::StyleSheetId is not bound to an AST node. An extension type declaration was expected

anyone help me on this?

Can you provide a small reproducible example?

it's working, it was gradle 8.0 issue

Faced a similar problem, using gradle 8.3
flutter build apk
Reference to package:puppeteer/protocol/css.dart::StyleSheetId is not bound to an AST node. An extension type declaration was expected
#0      Reference.asExtensionTypeDeclaration (package:kernel/canonical_name.dart:559:7)
#1      ExtensionType.extensionTypeDeclaration (package:kernel/ast.dart:11982:41)
#2      ExtensionType.visitChildren (package:kernel/ast.dart:12095:5)
#3      RecursiveVisitor.defaultNode (package:kernel/visitor.dart:1725:10)
#4      VisitorDefault.defaultDartType (package:kernel/visitor.dart:1524:39)
#5      DartTypeVisitorDefaultMixin.visitExtensionType (package:kernel/visitor.dart:804:47)
#6      ExtensionType.accept (package:kernel/ast.dart:12085:14)
#7      MapLiteral.visitChildren (package:kernel/ast.dart:8278:13)
#8      RecursiveVisitor.defaultNode (package:kernel/visitor.dart:1725:10)
#9      VisitorDefault.defaultTreeNode (package:kernel/visitor.dart:1521:39)
#10     TreeVisitorDefault.defaultExpression (package:kernel/visitor.dart:618:43)
#11     ExpressionVisitorDefaultMixin.visitMapLiteral (package:kernel/visitor.dart:196:41)
#12     MapLiteral.accept (package:kernel/ast.dart:8270:44)
#13     VariableDeclaration.visitChildren (package:kernel/ast.dart:10749:18)
#14     RecursiveVisitor.defaultNode (package:kernel/visitor.dart:1725:10)
#15     VisitorDefault.defaultTreeNode (package:kernel/visitor.dart:1521:39)
#16     TreeVisitorDefault.defaultStatement (package:kernel/visitor.dart:622:41)
#17     StatementVisitorDefaultMixin.visitVariableDeclaration (package:kernel/visitor.dart:386:7)
#18     VariableDeclaration.accept (package:kernel/ast.dart:10739:43)
#19     LocalInitializer.visitChildren (package:kernel/ast.dart:3597:14)
#20     RecursiveVisitor.defaultNode (package:kernel/visitor.dart:1725:10)
#21     VisitorDefault.defaultTreeNode (package:kernel/visitor.dart:1521:39)
#22     TreeVisitorDefault.defaultInitializer (package:kernel/visitor.dart:624:45)
#23     InitializerVisitorDefaultMixin.visitLocalInitializer (package:kernel/visitor.dart:468:53)
#24     LocalInitializer.accept (package:kernel/ast.dart:3589:45)
#25     visitList (package:kernel/ast.dart:14784:14)
#26     Constructor.visitChildren (package:kernel/ast.dart:2685:5)
#27     RecursiveVisitor.defaultNode (package:kernel/visitor.dart:1725:10)
#28     VisitorDefault.defaultTreeNode (package:kernel/visitor.dart:1521:39)
#29     TreeVisitorDefault.defaultMember (package:kernel/visitor.dart:626:35)
#30     MemberVisitorDefaultMixin.visitConstructor (package:kernel/visitor.dart:409:43)
#31     Constructor.accept (package:kernel/ast.dart:2671:40)
#32     visitList (package:kernel/ast.dart:14784:14)
#33     Class.visitChildren (package:kernel/ast.dart:1508:5)
#34     RecursiveVisitor.defaultNode (package:kernel/visitor.dart:1725:10)
#35     VisitorDefault.defaultTreeNode (package:kernel/visitor.dart:1521:39)
#36     TreeVisitorDefaultMixin.visitClass (package:kernel/visitor.dart:556:31)
#37     _ConstVisitor.visitClass (package:kernel/const_finder.dart:132:11)
#38     Class.accept (package:kernel/ast.dart:1471:38)
#39     visitList (package:kernel/ast.dart:14784:14)
#40     Library.visitChildren (package:kernel/ast.dart:596:5)
#41     ConstFinder.findInstances (package:kernel/const_finder.dart:208:15)
#42     main (file:///b/s/w/ir/cache/builder/src/flutter/tools/const_finder/bin/main.dart:103:41)
#43     _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
#44     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

To disable icon tree shaking, pass --no-tree-shake-icons to the requested flutter build command

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/home/akim/snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1

Error related to TreeShakeIcons.
we can pass
--no-tree-shake-icons
as a build argument - in that case build is OK, but is there any way to succsess build android apk without this argument?


We need to come up with a project idea

Creating application to track location geo-mapping for specified area (allTrails API), and weather data for that area(Openweather API) .
General theme allowing firefighters to track best times for prescribed burn activities and exact weather conditions in set location.

Issue is solved!


Change default OpenXR pose to aim pose

This PR changes the mapping of the default pose in our default action map to the aim pose instead of the grip pose.
I'm making this change for two reasons:

We were also using the aim pose as the default pose in Godot 3 making porting easier
The aim pose is more clearly defined. It is a pose that always always has its Z-axis pointing forward. When a controller is used it's positioned at the front tip of the controller pointing to where the player is aiming the controller. When hand tracking is used it faces the direction an extended index finger would naturally point at. It's is less defined for hand tracking with some vendors like Oculus placing it on the finger tip, while others like MS put it at the palm.
The grip pose on the other hand is placed where the grip button/sensor is on the controller and its orientation varies wildly as it conforms to the form of the controller. It really is only suitable for correctly placing the render model of the controller in the scene.

As this change only impacts newly created action maps, action maps already created for existing projects remain unchanged.

This makes sense to me!


BurstyPool in spanner can lead to unbounded number of sessions to be created

BurstyPool takes a parameter which is supposed to bound the maximum number of sessions that will be maintained in the pool. But this invariant if maintained when the session is put back in the pool. In case there is a bug (either in the client or in the user code) which leads to session leaking and never being released back into the pool, this can cause an unbounded number of sessions to be created. That can be dangerous since sessions expire only after an hour on the backend so this can cause a user to quickly hit the session limit on the backend and then in effect be locked out of the database for upto an hour.
Instead the behavior should be changed to make the user wait in get if the existing number of sessions that have been created is equal to the max size.

As per discussion with @bjwatson making this P0.

Any updates on this?

@tseaver Can you work on this next? @vkedia wants this to be done before we declare Beta.

All the pools are designed to be used via a Python context manager, which prevents any possibility of leaked sessions (that is the point of the context manager).  E.g.:
with pool.session() as session:
    session.read(...)
    session.run_in_transaction(func)

No matter what, the session gets returned to the pool at the end of the with block.  In the case of BurstyPool,  if the pool is over its target size at that point, the session is just discarded (after a call to its delete API).
If we make BurstyPool have a hard cap on its size, then we might as well just delete it:  the FixedSizePool fills that niche already: when empty,  its get() blocks for a configurable timeout, and raises an exception if no session can be acquired.

Thanks for the clarification @tseaver.
@vkedia Given this explanation, are you okay with the the behavior of BurstyPool? It sounds like there should be no leaks, but it can temporarily exceed the configured session pool size in the interest of not blocking on an empty pool.

Having not heard anything on this, and also having looked at the code, I am going to declare this working and close the issue. (@tseaver is correct about how context managers work; solving this kind of problem is exactly why they exist.)

I think this is fine.


 still needed

After updating to 1.0.4, my project fails to compile.  I am using clang on OSX. I guess  is still needed for cross-platform.

Error message without :
Incomplete type 'std::__1::ios_base' named in nested name specifier

Thanks for reporting the issue! I have reverted the commit.


Fix encoding of payloads to respect UTF8 when sending data to nodejs and java actions

Fixes invoker-side defect affecting actions and enables proper language support for node.js and java actions (part of #252).
PG2/945.

Fixed Java actions as well in latest commit.

This pr has passed pg2/952 and pg3/200 but is failing in Travis for the python and swift tests. I will suppress those two tests and investigate them separately.

rebased, merged as 61a8ed2..53395f4


feat: adds sbom.json as install artifact

This commit adds a dev dependency on @cyclonedx/cyclonedx-npm to generate an sbom.json file after each run of npm install. If the dependencies have changed, the sbom.json file will be updated. Finally, sbom.json is added as a file to the distributed package.

Codecov Report
Patch and project coverage have no change.

Comparison is base (a03e828) 90.34% compared to head (6b1b2fc) 90.34%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #229   +/-   ##
=======================================
  Coverage   90.34%   90.34%
=======================================
  Files           9        9
  Lines         290      290
=======================================
  Hits          262      262
  Misses         28       28

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


Beds data has duplicate fips

Looks like a recent change (that I probably made) caused the bed data to break.
Would be great to add some better testing around this to make sure beds data properly loads.

I assume this is fixed now, but maybe we should open a new issue for adding the testing before closing this?


prisma migrate  gives:  Error querying the database: db error: ERROR: syntax error at or near "NOT"

Bug description
prisma migrate dev --preview-feature is failing with Error querying the database: db error: ERROR: syntax error at or near "NOT"
The full debug output is:
yarn prisma migrate dev --preview-feature
yarn run v1.22.10
warning ../package.json: No license field
$ /home/ec2-user/environment/node_modules/.bin/prisma migrate dev --preview-feature
  prisma:loadEnv project root found at /home/ec2-user/environment/package.json +0ms
  prisma:tryLoadEnv Environment variables loaded from /home/ec2-user/environment/.env +0ms
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "ebdb", schema "public" at "localhost:5432"

  prisma:migrateEngine:rpc starting migration engine with binary<EMAIL_ADDRESS>+0ms
  prisma:migrateEngine:rpc SENDING RPC CALL {"id":1,"jsonrpc":"2.0","method":"devDiagnostic","params":{"migrationsDirectoryPath":"/home/ec2-user/environment/prisma/migrations"}} +5ms
  prisma:migrateEngine:stderr Mar 09 12:00:17.017  INFO migration_engine: Starting migration engine RPC server git_hash="da6fafb57b24e0b61ca20960c64e2d41f9e8cff1" +0ms
  prisma:migrateEngine:stderr Mar 09 12:00:17.031  INFO quaint::single: Starting a postgresql connection. +13ms
  prisma:migrateEngine:stderr Mar 09 12:00:17.273  INFO DevDiagnostic:calculate_drift:sql_schema_from_migration_history: quaint::single: Starting a postgresql connection. +242ms
  prisma:migrateEngine:rpc { jsonrpc: '2.0',
  prisma:migrateEngine:rpc   error:
  prisma:migrateEngine:rpc    { code: 4466,
  prisma:migrateEngine:rpc      message: 'An error happened. Check the data field for details.',
  prisma:migrateEngine:rpc      data:
  prisma:migrateEngine:rpc       { is_panic: false,
  prisma:migrateEngine:rpc         message:
  prisma:migrateEngine:rpc          'Database error: Error querying the database: db error: ERROR: syntax error at or near "NOT"\n   0: sql_migration_connector::flavour::postgres::sql_schema_from_migration_history\n             at migration-engine/connectors/sql-migration-connector/src/flavour/postgres.rs:270\n   1: sql_migration_connector::sql_database_migration_inferrer::calculate_drift\n             at migration-engine/connectors/sql-migration-connector/src/sql_database_migration_inferrer.rs:40\n   2: migration_core::api::DevDiagnostic\n             at migration-engine/core/src/api.rs:106',
  prisma:migrateEngine:rpc         backtrace: null } },
  prisma:migrateEngine:rpc   id: 1 } +370ms
Error: Error: Database error: Error querying the database: db error: ERROR: syntax error at or near "NOT"
   0: sql_migration_connector::flavour::postgres::sql_schema_from_migration_history
             at migration-engine/connectors/sql-migration-connector/src/flavour/postgres.rs:270
   1: sql_migration_connector::sql_database_migration_inferrer::calculate_drift
             at migration-engine/connectors/sql-migration-connector/src/sql_database_migration_inferrer.rs:40
   2: migration_core::api::DevDiagnostic
             at migration-engine/core/src/api.rs:106

    at Object.registerCallback (/home/ec2-user/environment/node_modules/prisma/build/index.js:55009:26)
    at MigrateEngine.handleResponse (/home/ec2-user/environment/node_modules/prisma/build/index.js:54882:38)
    at LineStream.byline_12.default.on (/home/ec2-user/environment/node_modules/prisma/build/index.js:54967:18)
    at LineStream.emit (events.js:198:13)
    at LineStream.EventEmitter.emit (domain.js:448:20)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:269:11)
    at LineStream.Readable.push (_stream_readable.js:224:10)
    at LineStream.Transform.push (_stream_transform.js:151:32)
    at LineStream._pushBuffer (/home/ec2-user/environment/node_modules/prisma/build/index.js:54719:19)
error Command failed with exit code 1.

How to reproduce
I am not entirely sure what the exact steps that lead to the problem are, but hopefully the following is helpful:
I had deleted the previous migrations folder by accident, which had a single migration file in it. This migration file set up a basic User model.
After seeing the above errors,  I did try a complete refresh of the database (dropped and recreated), as well as uninstall/reinstall and reset of prisma. Unfortunately the problem persisted.
Expected behavior
prisma migrate to run normally and create the migration sql.
Prisma information
My current prisma schema is:
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native"]
}

model Place {
  id        Int         @id @default(autoincrement())
  createdAt DateTime    @default(now())
  updatedAt DateTime    @updatedAt
  place_id  String      @unique
  users     UserPlace[]
}

model User {
  id           Int         @id @default(autoincrement())
  createdAt    DateTime    @default(now())
  updatedAt    DateTime    @updatedAt
  email        String      @unique
  firstName    String
  lastName     String
  promotion    Boolean     @default(false)
  places       UserPlace[]
}

model UserPlace {
  id        Int      @id @default(autoincrement())
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  placeId   Int?
  place     Place?   @relation(fields: [placeId], references: [id])
  userId    Int?
  user      User?    @relation(fields: [userId], references: [id])
}

Environment & setup

OS:  Amazon Linux 2
Database: PostgreSQL  (localhost)
Node.js version: v10.23.0
Prisma version

prisma               : 2.18.0
@prisma/client       : 2.18.0
Current platform     : rhel-openssl-1.1.x
Query Engine         : query-engine da6fafb57b24e0b61ca20960c64e2d41f9e8cff1 (at<EMAIL_ADDRESS>Migration Engine     : migration-engine-cli da6fafb57b24e0b61ca20960c64e2d41f9e8cff1 (at<EMAIL_ADDRESS>Introspection Engine : introspection-core da6fafb57b24e0b61ca20960c64e2d41f9e8cff1 (at<EMAIL_ADDRESS>Format Binary        : prisma-fmt da6fafb57b24e0b61ca20960c64e2d41f9e8cff1 (at<EMAIL_ADDRESS>Studio               : 0.356.0

Thanks for your time!

Thanks for creating this issue! We'll look into it as soon as possible

Can you share the contents of the migrations folder? If it is confidential, you can send it to<EMAIL_ADDRESS>

Thanks for the response! I sent it via email. To clarify, this is the folder that I since deleted. I did try replacing it but the error still occurred.
I should also note that the current schema (posted above) and the migrations folder that I sent over don't match much anymore.  I found that using yarn prisma db push --preview-feature coupled with yarn prisma migrate reset --preview-feature allowed me to continue working.
I have no sensitive data, so I was ok to lose all the data with each db change, but this means the db has changed quite a bit since the last migration was created.

I have some more info to provide.
I modified the schema again to add note and tags to the UserPlace model. I then ran a test to do an update query on UserPlaces, using the following:
...
    const userPlace = await prisma.userPlace.update({
      where: { id },
      data: { tags: { create: { name: e.name} },
      include: {
        tags: true // Include all tags in the returned object
      }
    });
...

This returned a similar error with "message: "syntax error at or near \"ON\"". I did some googling as I am a bit of newbie to all things database and I found some reference to ON CONFLICT working on postgresql 9.5, not 9.4.
So today I started a new environment (using AWS Cloud9), however instead of running postgres locally, I used a hosted postgresql server running 12.5.
I reran prisma init and after copying over my up-to-date schema, I was able to successfully run the migration! And the query I posted above also works.
I am still not sure of the exact cause of all the issues, but I assume it had to do with the postgresql version and perhaps running it locally (but wrong)? Hopefully this extra information can expose the cause.

I've tried locally, following the steps you gave, and I can't reproduce the problems with 2.19.0. Given than nobody in this thread is able to reproduce the issue, let's close it. If you see it reappear, please open a new issue with as much context as possible so we have a better chance at fixing it. Thanks fer reporting your problem @HStromfelt !

Thanks a lot for looking into it! I'll keep an eye out and make sure I document as much as possible if I manage to mess it up again


need an endpoint to get submissions for grading

maybe like GET /api/courses/${slug}/submissions/${activityId}/${partId}
responds with the most recent submission

for all assignments with

enrollment_id of students in course with slug slug and
activity_id = activityId in url
part_id = partId in url


Doesn't list version

[Enter feedback here]
This article does not list the server version.   It lists processor requirements and says you can determine if you meet using "coreinfo" utility from SysInternals.  On the example output from Coreinfo, some of the requirements are not there.  Does that mean it doesn't check for them, or the just the computer they cheched for the example did not.  Maybe mine supports it, but coreinfo can't tell.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 32754531-b03c-cecd-e5c6-2b57fcd03586
Version Independent ID: 6af72327-1828-7845-3d67-6903de50d69c
Content: Hardware requirements for Windows Server
Content Source: WindowsServerDocs/get-started/hardware-requirements.md
Product: windows-server
Technology: getting-started
GitHub Login: @dknappettmsft
Microsoft Alias: daknappe

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Error in deduplicate returns

I tried deduplicate and it returned things that weren't the expected shapes. I took a peak at the underlying function here and noticed it calls igl to do the deduplicating.
Looks like IGL expects the order of inputs to be:

verts
faces
epsilon
v_out
SVI #SV by 1 list of indices so SV = V(SVI,:)
SVJ #V by 1 list of indices so V = SV(SVJ,:)
faces_out

But it is input as:

verts
faces
epsilon
v_out
faces_out
SVI #SV by 1 list of indices so SV = V(SVI,:)
SVJ #V by 1 list of indices so V = SV(SVJ,:)

This results in a swapping of the outputs so all of faces_out, SVI and SVJ are swapped with one another.

Thanks for finding this! If you send a PR fixing this and add a small test, I'll merge it in!

Will look into it and make a pull.

Thanks so much!!

Fixed by #74


[feat] Support consumer batch receive.

Motivation
apache/pulsar-client-python#39
Modifications

Support consumer batch receive.

Could you wrap the BatchReceivePolicy class into the pulsar module? It's better to avoid using the class from _pulsar module directly.

Yes, When I coded, I struggled with whether to implement a wrapper. It turns out that implementing a wrapper class can clearly define the input parameters and docs.
I changed it, PTAL.

@shibd you may try to rebase on the latest master so that we're sure there's no doc string syntax regression :)


Info.

Hi,
where can i find a sample use guide for installation and configuration?
(I just import from hack to /homeassistant/custom_components/besmart).
Thanks
Greg

Hi,
I'm sorry but the code of thi integration is no more updates, since 2y I
have moved to another thermostat solution.
Regards,
Andrea
Il Gio 5 Dic 2024, 20:23 gregpd @.***> ha scritto:

Hi,
where can i find a sample use guide for installation and configuration?
(I just import from hack to /homeassistant/custom_components/besmart).
Thanks
Greg
—
Reply to this email directly, view it on GitHub
https://github.com/muchasuerte/ha-besmart/issues/19, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALTEWF4M636GTDZF24BWXD2ECR3HAVCNFSM6AAAAABTDFDV6GVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4ZDCMRSGAZDCMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Indicate when a OneDrive Folder is "Always Keep on Device"

What feature or improvement do you think would benefit Files?
In OneDrive, there is a toggle setting called Always keep on this device.

This option is supported on Windows Explorer through an indicator on the Right-Click Context Menu, as well as on the Column Status.
Here, the Dark Green signifies Always keep on this device, while the Outline Green means Synced.

Files App doesn't support this feature - it doesn't distinguish between Synced and Always keep on this device statuses
both on the Right-Click Context Menu

and on the Column Status

Requirements

Indicate on Context Menu when Always keep on this device is toggled
Indicate the same thing on the Column Status

Files Version
<IP_ADDRESS>
Windows Version
10.0.19045.3693
Comments
No response

Thanks for the feedback, I've added this to the project board.


Update packages

Updated gulp packages:

gulp-cli just lets devs run gulp
gulp-htmlmin replaces gulp-minify-html, see the npm warning
gulp-uglify is now used in #6 - previously commented out
sass upgraded patch only

Updated testing packages:

karma, jasmine, and sinon
In testing, we fail 6/49 tests before this upgrade, and 6/49 (same six) after upgrade
Recreated karma.conf.js for more options (specified here)

Other: ui-router started publishing scoped packages (ref), so this was changed.

No longer necessary due to https://github.com/fantasycalendar/kobold-plus-fight-club


Scottrhoyt master

:+1:  So glad to see this make it in. Let me know if there is any other ways I can help, and keep up the great work! I'm currently about to use ObjectMapper with SwiftYaml and some custom extensions to easily map Yaml to swift objects!


How to read data from an external file

description: Type in email address field
action: org.getopentest.selenium.SendKeys
args:
locator: {  xpath: "//input[@placeholder='Login Id']" }
text: $data("people.yaml").name

This should work fine, as long as the data file looks like this:
name: xxxxx
password: xxxxx

If your data contains multiple people, like this
- name: xxxxx
  password: xxxxx

- name: xxxxx
  password: xxxxx

then the syntax to access the data fields needs to include the index of the person you are trying to access:
$data("people.yaml")[0].name