[RFC] Ownership model should be reconsidered

Short description: Nim wrappers for jobject/jclass refs should not take ownership of the ref, but rather create a NewGlobalRef to dispose it later in finalizer.
Long description: currently Nim wrappers make some faulty assumptions about the refs they hold:

Refs are local. That might be wrong, when explicitly creating a wrapper with fromJObject.
Local refs are unique, and the wrapper is the only owner of the ref. This may be wrong, because depending on JNI platform, such methods as FindClass, GetObjectArrayElement, etc, may return the same local ref across multiple calls.
Refs are valid when finalizer is called. This is obviously wrong, because local refs may be invalidated as soon as we return from native to java. While Nim finalizer might be called some time after that.

The way to fix:
Nim wrappers must never take ownership of the ref. Any call to newJVMObject or fromJObject should be revisited to dispose local refs manually. The wrapper should create a personal unique global ref for itself.
Performance considerations: such changes may potentially hit performance, because currently generated glue code makes heavy use of nim wrappers. In the long run the glue codegen has to be optimized to not use nim wrappers, and only create them whenever needed for the higher-level interface.
Good news: I've already started doing everything above, but I'd want to hear your opinion =)
Teaser: I've implemented a way to subclass Java interfaces in Nim, but can't commit it because its unstable due to subj.

I agree 100%. Thanks!


System.AccessViolationException

Hi Tuebel,
I'm not able to run the FmiWrapper_net on my system because of the System.AccessViolationException on the Instantiate method. I thank you for help.

Hi Tuebel,
my problem was fixed.
Thanks for your help


Improve doc of the get_token protocol in azure-core

since we dropped Python 2 I would advocate to rewrite get_token in Python 3 syntax, with the right docstring:
"""Protocol for classes able to provide OAuth tokens.

:param str scopes: Lets you specify the type of access needed.
:keyword str tenant_id: Injected by SDK if scenario X, Y and Z are supported

@seealso aka.ms/azsdk/python/core#credentials
"""
def get_token(
   *scopes : str,
   *,
   tenant_id : Optional[str],
   **kwargs : Any
) -> azure.core.credentials.AccessToken

Also, we have a dev specific documentation of azure.core: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md

Shouldn't docstring go under def? https://www.python.org/dev/peps/pep-0257/
IDEs currently can't recognize :param:

After we put docstring under def:


Need a Makefile build

libMGL needs a Makefile build.... Xcodebuilds are just too slow.

please check out the recently added Makefile, together with my PR. Or wait a little the PR to be accepted, hopefully.

@guymadison I suggest you close the issue since there is a Makefile now

fixed by conversy


Improve: Add NaN related checks for the JavaScript layer

:tada: This PR is included in version 2.8.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Tests

some basics covered, hope its understandable / easy to extend

While I really appreciate the effort, I think requiring Ruby and RSpec is overkill. I'd welcome patches for a simpler testing approach written in Bash.

Everyone working on this should be familiar to ruby, so having a ruby suite seems like little overkill to me.
Is there any usable bash test-suite out there ?
Given there is a decent one, I think learning a bash-test-suite is even more overkill, since you cannot use this knowledge on any other project (e.g. my ruby-to-bash-project-ratio is ~ 150/1 :D )


Fixed file input attribute multiple

The multiple attribute is a Boolean attribute. To work for limit single file upload should be omitted in the input HTML.

Thanks @hanc2006 !


Android Annotations proposal

Fixes #1189 by planning a new and improved annotations API for Android.
Latest version for reading: https://github.com/fynngodau/maplibre-native/blob/annotations-proposal/design-proposals/2023-06-17-android-annotations.md

@fynngodau Thanks for bringing up this proposal! I went through it today and liked the direction it takes a lot.
Actually it's quite funny because me and @JonasVautherin released ramani-maps today and many things you have in the proposal are quite similar to what we have done. E.g. managing the layering under the hood and just exposing a zIndex to the user is exactly what we have done. Also the fact that you propose to instantiate the annotation classes directly is pretty much what we do in compose. With compose we have the additional advantage that it's super declarative, e.g. you add a Circle directly to the UI code.
From what I understand the old workflow of adding annotations via the manager would still co-exists, right? That's important for us in our library as we currently make use of it.
What I like a lot are all the options that can be used to fine-tune the appearance of the elements, e.g. Padding, Transform, ...
And of course I am excited to see the as much "Kotlinification" as possible.

@RomanBapst Your library sounds very exciting!

From what I understand the old workflow of adding annotations via the manager would still co-exists, right? That's important for us in our library as we currently make use of it.

Yes, this is what I had in mind. It wouls be necessary to create annotations using the changed API, but they could still be added to annotation managers as previously. As explained in the proposal, the two use main cases are

when you really can't affort the matching algorithm to take O(n log n) (and have additional knowledge about the desired z layers in advance)
when you want to call methods that are not available on the specific Annotation

As a general note, while porting cycle.travel's app from iOS to Android, I've been surprised how different the Android and iOS APIs are.
Obviously each platform has its own design patterns (e.g. iOS delegates, Android builders, etc.) so you wouldn't expect full convergence, but there's a lot that seems needlessly different between the two - annotations being just one example. It means a whole bunch of extra cognitive load when porting or developing in parallel. From looking through issues on the old Mapbox repos it looks like their two teams were working independently.
So perhaps an additional design goal would be appropriate: increased commonality with MapLibre iOS Native. That doesn't necessarily imply changes have to be made here in Androidland - it could equally mean changing the iOS API to match the new, better Android API. But I think it's worth considering as an aim.

@systemed Very interesting point! Now that Swift is the language of choice for iOS development, I think it makes sense to offer a Swift-first API in the future. Being a much more modern programming language with quite powerful features (in comparison to Objective-C), I think a lot is possible there. If you have specific ideas in mind or want to contribute, check out the general topic for iOS modernization #1248.
I gave you a follow in LinkedIn, let me know if you ever want to brainstorm about this.

Cheers!
Swift and Kotlin are broadly similar languages, each with a good async/await story and heavy use of blocks/closures. To my mind this gives the opportunity to remove some of the more idiomatic design patterns (Java-ish managers and builders, ObjC-ish delegates) and converge on a simpler, more direct API. So @fynngodau's suggestion of de-emphasising manager objects makes a lot of sense in this context.


Add file if doesn't exist for colab

This closes https://github.com/machine-learning-apps/covid19-dashboard/issues/47


chore(release): 1.113.0

See CHANGELOG

AWS CodeBuild CI Report

CodeBuild project: codebuildgithubautobuildPro-fkVQbXRiQi6A
Commit ID: a3ea369616668275db888d797f42512950d7dcec
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: codebuildgithubautobuildPro-fkVQbXRiQi6A
Commit ID: 40763b9ac505b2f6e54e3c3102f0c6e75fa349e1
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


I used mmdet to train my data, the data type was voc format, the image size was 1920x1080, and the error was reported in the data processing stage

Traceback (most recent call last):
File "./tools/train.py", line 125, in
main()
File "./tools/train.py", line 121, in main
timestamp=timestamp)
File "/home/hs/hao/contextnet/ctfpnres/mmdet/apis/train.py", line 125, in train_detector
timestamp=timestamp)
File "/home/hs/hao/contextnet/ctfpnres/mmdet/apis/train.py", line 272, in _dist_train
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/home/hs/anaconda3/lib/python3.7/site-packages/mmcv/runner/runner.py", line 363, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/hs/anaconda3/lib/python3.7/site-packages/mmcv/runner/runner.py", line 263, in train
for i, data_batch in enumerate(data_loader):
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 819, in next
return self._process_data(data)
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 846, in _process_data
data.reraise()
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/_utils.py", line 369, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/hs/hao/contextnet/ctfpnres/mmdet/datasets/dataset_wrappers.py", line 52, in getitem
return self.dataset[idx % self._ori_len]
File "/home/hs/hao/contextnet/ctfpnres/mmdet/datasets/custom.py", line 131, in getitem
data = self.prepare_train_img(idx)
File "/home/hs/hao/contextnet/ctfpnres/mmdet/datasets/custom.py", line 144, in prepare_train_img
return self.pipeline(results)
File "/home/hs/hao/contextnet/ctfpnres/mmdet/datasets/pipelines/compose.py", line 24, in call
data = t(data)
File "/home/hs/hao/contextnet/ctfpnres/mmdet/datasets/pipelines/transforms.py", line 645, in call
if overlaps.min() < min_iou:
File "/home/hs/anaconda3/lib/python3.7/site-packages/numpy/core/_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity
^CTraceback (most recent call last):
File "/home/hs/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/hs/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 246, in
main()
File "/home/hs/anaconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 239, in main
process.wait()
File "/home/hs/anaconda3/lib/python3.7/subprocess.py", line 990, in wait
return self._wait(timeout=timeout)
File "/home/hs/anaconda3/lib/python3.7/subprocess.py", line 1624, in _wait
(pid, sts) = self._try_wait(0)
File "/home/hs/anaconda3/lib/python3.7/subprocess.py", line 1582, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
anyone can help me？

Hi @237014845 ,
This might because the bounding box is empty and you might need to filter the images with no GT.

Some similar discussions can be found here.


fix(router): Not concat server.baseUrl and router.basename

PR Details

Description

Related Issue

Motivation and Context

How Has This Been Tested

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My code follows the code style of this project.
[ ] I have updated changeset
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

用户同时配了要不要给个提示？

用户同时配了要不要给个提示？

可以加一个，这个另起一个 MR 做吧。或者感觉可以和所有需要配置提示的地方一起考虑


IndexError: index is out of bounds for axis 1 with size 2

I keep getting similar errors. The line
label, d1, d2 = random.choice(self.rel)
generates a label: 1974 that has nothing to do with the shape of Y (100x2). Same error for python2 and python3.
error:
MatchZoo/matchzoo/inputs/point_generator.py", line 75, in get_batch
Y[i, label] = 1.
IndexError: index 1974 is out of bounds for axis 1 with size 2

I was using wrong format for the sample.txt


Footer color is not matching to the theme

I  will try to set this with proper colour and also it will also look good if u add your some social info below
something like this.

@preeti-14-7 Okay

Can you assign me this one ?

@swaraj-ssk this issue is already assigned.

@preeti-14-7 Okay

Can you guide me to localhost this server i m not able to host it in my computer

You can find the instruction in the readme. Make sure you have nodejs installed on your system.

Can I work on this issue?


Show some elaboration for property not existing in union type

I have some code like this, except there are about a dozen types instead of just three:
interface Foo {
  kind: "foo";
  name: string;
}
interface Bar {
  kind: "bar";
  name: string;
}
interface Qua {
  kind: "qua";
  length: string;
}

type FBQ = Foo | Bar | Qua;
let x: FBQ = <any>undefined;
console.log(x.name);

The error reported is
a.ts(16,15): error TS2339: Property 'name' does not exist on type 'FBQ'.

This is inactionable on a union type, especially when its consituents are hidden behind an alias. We should show something like
a.ts(16,15): error TS2339: Property 'name' does not exist on type 'FBQ'.
   Property 'name' does not exist on type 'Qua'

Yes please!

Accepting PRs / committed for 2.1. Show an elaboration for the first type lacking the property (for whatever definition of 'first' falls out of the implementation)

Should there also be an elaboration when one of the constituent types has the property marked as private or protected and we are in a public context? Currently the code:
class Default {
    member: string;
}
class Private {
    private member: number;
}

var DP: Default | Private;
DP.member;

gives the error:
test.ts(9,4): error TS2339: Property 'member' does not exist on type 'Default | Private'.

This could perhaps be changed to:
test.ts(9,4): error TS2339: Property 'member' does not exist on type 'Default | Private'.
  Property 'member' is private and only accessible within class 'Private'.

I have adjusted checkPropertyAccessExpressionOrQualifiedName to show an elaboration when a subtype of a union lacks a property and will open a PR once I've finished adding tests. It should not be difficult to also show an elaboration when a subtype has the property marked under a stricter access qualifier.

thanks @oijazsh !


!feat: beautify the UI with tailwind cdn

I've added tailwind and a little redesign the UI to look more modern! Here is the preview:

Thanks @spookychill for modifying UI


Normalizations starting with first sample create huge outlier

This has a specific effect for in-burst since the distribution changes

There is a bug in the nm_burst that the previous n seconds are not used


Fixing links and URL SEO

Docs Build status updates of commit f499005:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/index.md
:white_check_mark:Succeeded

docs/overview/excel.md
:white_check_mark:Succeeded

docs/resources/add-ins-differences.md
:white_check_mark:Succeeded

docs/testing/troubleshooting.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

docs/tutorials/excel-tutorial.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[Feature Request] A hook file to customize webpack config.

Intro
We dearly need a lightweight way to customize the internal webpack config file, so advanced users can tweak it, and still use the CLI, without having to eject. The current approach of having to eject causes a huge amount of overhead (also for the CLI team it seems). In NG5, we personally had 4 different fully complete webpack config files, to satisfy our dev environment, which was getting out of hand.
Since you can't eject in NG6, you currently have people rewriting node_modules files, to do some simple customizations. See https://gist.github.com/niespodd/1fa82da6f8c901d1c33d2fcbb762947d
Proposal
Doing an ng serve/whatever calls a hook file, where you can customize the webpack config related to the current ng command.
function webpackHook(config) {
   config.node = {
       crypto: true,
   }

   const args = require('yargs').argv;
   if (args.stats) {
    try {
         console.log('Adding Stats Plugin');
         const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
         config.plugins.push(new BundleAnalyzerPlugin());
      } catch (e) {
         console.error('webpack-bundle-analyzer not installed - `npm i webpack-bundle-analyzer --save-dev`');
      }
   }

   return config;
}

A hook file like this would probably remove the need to eject in the first place.
Was originally posted here, where it seemed to gather support: https://github.com/angular/angular-cli/issues/1548#issuecomment-387136761

Thumbs up and upvote! Would probably eliminate most peoples need to eject at all as I know it would us.

I'm really sorry that I have to close this issue but this is still a duplicate of https://github.com/angular/angular-cli/issues/1656, and our stance on this topic still has not changed. If it changes, we will announce it on that issue.

@filipesilva Any word on the "addon" system that's been in the works for 2 years?
Sorry but we will not expose the webpack confit for various reasons. An addon system is being designed that would allow such a thing but for the time being we won't expose it.

The new workspace is part of that addon system. It provides extension points from where you can change what running ng commands do.
The upcoming eject (https://github.com/angular/angular-cli/pull/10946) leverages that. The plan is that doing ng eject will give you a hand-written webpack config, and that then doing ng run project-name:build-webpack runs that config.
If you replace the ejected target name (this is the keys inside the architect entry in your angular.json file) from build-webpack to just build, then ng build will run your webpack config instead.

Disappointing to see the Angular team rejecting collaboration and would rather close tickets and lock them than keep an open ticket on the subject allowing for discussion...

How is this issue still going on.
I've spent 2 days reading through post starting in 2016 relating to this issue. There needs to be a better way than simply running a post install patch directly into the node module to allow for minor webpack tweaking.

I understand the amount of maintenance problems that would come from exposing the full webpack.config. But I also think that it is totally nonsense to need to ng eject and then have to maintain it myself just to be able to add and extra webpack loader.
Why not compromise a bit and expose some parts of the webpack.config with a simple plugin/hook system?
Also you could easily do this while throwing a "At your own risk!" warning.

I can't believe that we're in 2018 and this issue is still alive. I'm finding myself in the need to use google-fonts-webpack-plugin and without ejecting I can't do it.
I fail to see why it's so complicated to use webpack-merge and merge it with whatever file the user can specify through the CLI and get it done. 2 years on this? come on... I used to do this almost daily in all my projects, and they were easily overridable, however, I'm being forced to use the CLI and I can't find a way to override just a specific portion of the config (adding a plugin).
Come on, this is basic stuff, give the user a choice or the possibility to do so.

Check out angular-cli-customizer - did the trick for me

@urish Awesome!! Exactly what I was looking for! Someone give these men a beer and include this as a core functionality in the CLI. I can't believe someone had to hack it... still, great.

Yes, what a pita, I just upgraded an old app, which suddenly stopped working due to node: false being added, then I realized I have to...
Ugh

It would be so great to have an option to customize angular-cli config with webpack.config.js file, just like webpackMerge

It would be so great to have an option to customize angular-cli config with webpack.config.js file, just like webpackMerge

Please add soon!
VUE, REACT can easy add webpack config.

+1
The recent upgrade to angular 7 completely broke coverage reporting in our monorepo setup. The response from the Angular team was that it was "by design". All I need to do to fix this is to disable a single line in the @angular-dekit/build-angular test webpack config.
I'm seriously starting to consider switching my team over to Vue.js for future projects. I've encountered many requests like this one where the default response always seems to be "Deal with it. Issue closed."
There has to be some middle ground here :(

I used angular-builders to patch Angular 7 configs.

I used angular-builders to patch Angular 7 configs.

This works pretty nice, but only for the applications. If you have multiple libraries in your repo consumed by the application, then custom webpack builder will not help.
Referenced custom webpack builder hooks only into @angular-devkit/build-angular builder, which is used to build applications.
Libraries use @angular-devkit/build-ng-packagr builder, which I think is rollup undedr the hood even.
So yea, in a bit more advanced situation we have no workaround at all.


Add Python 3.6 to travis.yml, remove Python 3.3

Should we also remove Python 3.4?  cc @jcrist

Or rather "I am in favor of removing testing for Python 3.4.  Any objections?"

I'd be potentially fine with removing testing for 3.4. One concern is that both scikit-image and xarray still support 3.4. I doubt any incompatibilities will be introduced, but since they are downstream packages, we should still support 3.4. This might be as simple as testing with 3.4 once right before release though.

OK, happy to keep it around until downstream projects remove support.
I plan to merge this soon if no one has any objections.


Add trailing / to defaultPath while generating arclix.config.json

Describe the bug
Trailing / should be added to defaultPath property in config while generating otherwise the folderPath would merge into component folder.
For example:
Generated arclix.config.json would look like this
{
    "generate": {
        "flat": false,
        "addIndex": false,
        "skipTest": true,
        "scopeStyle": true,
        "defaultPath": "./src"
    }
}

So here if we run the following command
npx arclix g c Hero

Arclix would generate a folder with name srcHero instead creating Hero folder inside src folder.
Reproduction
https://github.com/arclix/core
Steps to reproduce

create project using create command

generate component with any name like
npx arclix g c Hero

see the generated output

System Info
System:
    OS: Windows 10 10.0.22621
    CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
    Memory: 1.04 GB / 7.90 GB
  Binaries:
    Node: 18.14.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 3.4.1 - C:\Program Files\nodejs\yarn.CMD
    npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1255.0), Chromium (111.0.1661.44)

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Arclix issue and not a React specific issue.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
[X] Please follow minimal reproducible example of the bug and Refer the example issue

[ Triaged ] Good to start the development


Tree walking utils

Add DOM querying capabilities

Build predicates to search with, use query for one match, or queryAll for N matches in an array
Added tests

Made issue #4 for generic treewalker

LGTM with minor nits. Can you squash before merging?

Squashed. Moved the node adjustment functions to a different PR, as they are not really used in vulcanize demo

@justinfagnani PTAL


Erlang/OTP 18?

apn4serl compiles under Erlang/OTP 18.2 with a minor changes (as of 25ad9d23a372). Is there anything else (e.g. ssl) that specifically requires Erlang/OTP 19+? I've got everything coded up for Erlang/OTP 18.2 (large project, hard to upgrade) but I can't connect to the APNS server: I just keep getting a timeout. Before I go any further I'd like to know if our Erlang version is maybe the issue. (I can connect with openssl s_client, but not with apns4erl).

Hi @cwmaguire, I didn't test apns4erl with Erlang 18. If you did the hack and it compiles well I would think your issue could be related with openssl since it needs TLS 1.2+. Even if you connected with s_client, did you try to send something to APNs? Did you get a response from it?

We have openssl 1.0.2j. I tried doing "GET https://www.howsmyssl.com/a/check HTTP/1.1" and it reported that GET was using TLS 1.2. I haven't tried sending anything with SSL yet. I'll look up how to do that and see if I can successfully send something. Thanks for the tip.

Okay, I can send a push with curl using a certificate and I get BadDeviceToken, so that's a start!
I'll dig through the SSL traces and see what I can come up with. Thanks for the help.

I picked up these SSL options from here and I was able to connect.
{honor_cipher_order, false},
{versions, ['tlsv1.2']},
{alpn_preferred_protocols, [<<"h2">>]}

@cwmaguire where did you these options. I am getting this error https://github.com/inaka/apns4erl/issues/118
Please help me resolve this.

@monkeyfdude

where did you these options?

I added these options to the TransportOpts list in apns_connection:open_gun_connection/1.
  TransportOpts = case type(Connection) of
  cert ->
    Certfile = certfile(Connection),
    Keyfile = keyfile(Connection),
    [{certfile,Certfile},
     {keyfile,Keyfile},
     {honor_cipher_order, false},
     {versions, ['tlsv1.2']},
     {alpn_preferred_protocols, [<<"h2">>]}];

@monkeyfdude Note that we're using the new APNS HTTP/2 API. I see from #118 that you're accessing the "legacy" binary SSL API at gateway.sandbox.push.apple.com whereas I'm using api.development.push.apple.com:443 which is the HTTP/2 API.

Can you please suggest a solution for #118 ?

@cwmaguire did you build apns4erl v2 using erlang 19 and running it on erlang 18?
rebar3/apns4erl does not compile with erlang < 19.
If you built using erlang 18, can you please describe the steps you did?

I am getting this error even with TransportOpts changes.
Can you help me resolve this please?
2017-05-05 11:32:14.958 [error] <0.472.0> SSL: cipher: ssl_alert.erl:93:Fatal error: internal error
2017-05-05 11:32:20.009 [error] <0.483.0> SSL: cipher: ssl_alert.erl:93:Fatal error: internal error
2017-05-05 11:32:24.761 [error] <0.470.0> gen_server 'my-apns-connection' terminated with reason: timeout
2017-05-05 11:32:24.761 [error] <0.470.0> CRASH REPORT Process 'my-apns-connection' with 0 neighbours exited with reason: timeout in gen_server:terminate/7 line 826

Hi @monkeyfdude, since you are trying to update your apns4erl to v2, I recommend you to make some tests first. I mean, download the apns4erl code and play with the console until you achieve push something to APNS and forwarding the messages to your devices. Once you achieve this that implies your certificate and headers are correct, then you can to try to update the library in your ejabberd server.

Thanks. I will try that.
The ssl_alert error is gone. But I am getting the timeout now.
gen_server 'my-apns-connection' terminated with reason: timeout

I get timeout with following changes:
test.config:
[
 {
   apns,
   [ {apple_host,       "api.development.push.apple.com"}
   , {apple_port,       443}
   , {certfile,         "/etc/ejabberd/certs/apns-dev-cert.pem"}
   , {keyfile,          "/etc/ejabberd/certs/apns-dev-key-noenc.pem"}
   , {token_keyfile,    "priv/APNsAuthKey_KEYID12345.p8"}
   , {timeout,          10000}

   %% APNs Headers

   , {apns_id,          undefined}
   , {apns_expiration,  0}
   , {apns_priority,    10}
   , {apns_topic,       "com.example.myapp"}
   , {apns_collapse_id, undefined}

   %% Feedback
   , {feedback_host,    "feedback.push.apple.com"}
   , {feedback_port,    2195}
   ]
 },
 {sasl, [{sasl_error_logger, false}]}
].

erl -pa _build/default/lib/*/ebin -config test/test.config
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.2.1  (abort with ^G)
1> apns:start().
ok
2> apns:connect(cert, my_first_connection).

=ERROR REPORT==== 5-May-2017::12:00:29 ===
** Generic server my_first_connection terminating
** Last message in was timeout
** When Server state == #{backoff => 1,
                          backoff_ceiling => 10,
                          client => <0.34.0>,
                          connection => #{apple_host => "api.development.push.apple.com",
                            apple_port => 443,
                            certfile => "/etc/ejabberd/certs/apns-dev-cert.pem",
                            keyfile => "/etc/ejabberd/certs/apns-dev-key-noenc.pem",
                            name => my_first_connection,
                            type => cert},
                          gun_connection => <0.64.0>}
** Reason for termination ==
** timeout
{error,timeout}
3>

Code changes:
  TransportOpts = case type(Connection) of
    cert ->
      Certfile = certfile(Connection),
      Keyfile = keyfile(Connection),
      [{certfile,Certfile},
      {keyfile,Keyfile},
      {honor_cipher_order, false},
      {versions, ['tlsv1.2']},
      {alpn_preferred_protocols, [<<"h2">>]}];
    token ->
      []
  end,

you have to change the data regarding your app. This is not correct
, {apns_id,          undefined}
   , {apns_expiration,  0}
   , {apns_priority,    10}
   , {apns_topic,       "com.example.myapp"}
   , {apns_collapse_id, undefined}

I did change that. It did not work.
But I am not event able to connect from apns:connect()

did you try to push something without apns4erl? are you sure your certs and http2 headers are correct?

@cwmaguire You may be right. Let me investigate.
Please keep an eye on this issue. I will keep updating as I investigate.

I was able to connect & send atleast 1 notification successfully. Thanks for all your help.
I have other issues. I am opening a new issue.


Sync My List and Kodi Library on startup

Feature request
I'm submitting a proposal to ...

[ ] new feature
[x] change an existing feature

Describe your request
I'm trying to keep in sync Netflix My List with Kodi Library.
I see there are these settings:

Keep My List and Kodi Library in sync: enable feature?
Perform full sync now: clear all an restart the process?
Purge library: clear all?

...but I have not understood how they do
Describe the use case

Select some Movies and Tv Series on Netflix (by app / web interface)
Start Kodi and see Netflix plugin pull new selected movies (and clean the removed ones) in my Library (creating/deleting STRM files).

I see we can auto-update by time scheduling, but It strange this approach on a player that non running all day. Maybe, I'm missing something?
TL;TR as for Kodi setting "Update library on startup", allow Netflix plugin to "Sync My List and Kodi Library on startup"
Thanks!
p.s. I have try to post on forum without answer

if you set to example: sync daily with time 21:00
the sync can start from 21:00 in forward, if the device is switched on at other time example 22:00 the sync start at 22 becouse at 21 not done
yes there is the possibility to add an new option "Sync library on startup"
but i can not guarantee when it will be done

Thanks for the answer. Now, I have understand!
It's look like the difference between Cron and Anacron on Linux.
But in any way, it does not seem works on my PC.
I have enabled daily sync (at 8:00), but after 2 days my library is not synched with Netflix "my list".
I have tried to execute "update library" and "clean library" on Kodi without success.
I have added (and removed) movies on "my list" on Netflix, but these are not added (and removed) on my Kodi library.
I talking about films and series.
I can post Kodi log, but what (inter)action have to do on Kodi?!
p.s. I don't think we need another feature (keep sync on startup), now you have explained how the scheduling works

I'll do some tests to verify

This is the log if can be usefull: https://pastebin.com/LHVR2gDi

I'm checking, but it's gonna take longer.
seem that with the last changes made earlier it there is no longer a check on what has been added/deleted from my list
practically only what is exported locally via the kodi interface is synchronized, but if you add a new TV series to my list from the website, it is not automatically exported
while the button for the initial synchronization is working but only works after closing and reopening the settings, for this can do a quick fix

if you do initial synchronization, then the synchronization at startup works like i explained at first post,
so at startup nf addon check if there is new seasons/episodes for every tvshow exported at this moment.
To make sure that addon automatically exports at kodi startup the tvshows added to my list (outside of kodi, ie example from website/other apps) it is necessary to make changes to the source code of addon. I'm working, when i finish the changes will be available to everyone
Ps. the library sync works only with tvshows not films,
but if you want you can export the films manually

if you do initial synchronization, then the synchronization at startup works like i explained at first post,
so at startup nf addon check if there is new seasons/episodes for every tvshow exported at this moment.
I have missed this...now I figure out :)

To make sure that addon automatically exports at kodi startup the tvshows added to my list (outside of kodi, ie example from website/other apps) it is necessary to make changes to the source code of addon. I'm working, when i finish the changes will be available to everyone

Are you working on this feature?! Really?! Great!!

Ps. the library sync works only with tvshows not films,
but if you want you can export the films manually

By redo an initial synchronization, right?
p.s. I'm the only one that have this this request?! ...and all others guys how anderstand the "particular l" meaning of synching options (only New seasons/episodes)

should now be fine, in case you reopen issue

Thanks for your hard works!
I think to miss something...
Now, all my films and series that appear in "My list" are removed from Kodi library.
If I try to run "Perform full sync now" I get "you can start synchronization only by selecting the owner profile".
Obviously, I'm not the owner (main profile on Netflix), so I cannot sync anymore, like the previous version of Netflix plugin?!

Before I was at least able to sync a non-owner library, but auto sync didn't work. This was better than just being able to sync owner :/

in reality, things are different.
initially the addon allowed synchronization only from the main profile.
following recent changes by netflix a bug was introduced in the addon to perform synchronization from any profile by switching profile.
but this however it may seem nice, but in realty caused a bigger problem with auto-synchronization and other api request for wrong permissions to get/post data from netflix.
that's why now I put the warning message forcing the use of the main profile to ensure the correct operation of the auto-sync.
I have no fun limiting things, there's a reason i did it this way.
in the future you can allow yourself to select from which profile to make the synchronization, but this requires lot of work to fix things, and you can not do it in a short time.

I understand...
So now only the main profile can do manual and auto-sync.
All others profiles can only use "manual navigation" through the Netflix plugin interface.
Is it right?

to now:
"Keep My List and Kodi Library in sync" & "Export new episodes" options, work only with main profile
if "Keep My List and Kodi Library in sync" is disabled: you can do manual export by using context menu from any profile
I specify that on "Keep My List and Kodi Library in sync" option when enabled, there is still a bug that I haven't solved yet, it should happen when you add something from a non-main profile to My List.
too many things to fix, need more time following days

Is there any way to not have to manually export each show on My List from my non-owner profile? I couldn't find a way :(

If I knew this, I had not opened the issue ;)
Don't matter, I know what mean develop and take care of a open source project...and this is a big one.
I hope then in future all profiles will be able to (auto)sync.
As I have already said, thanks for your hard work and your time!


Added support for state flag filter on commands

added support for state flag filter on commands
moved filtration to options-based function

@noamsdahan
help menu still shows 'Not Deployed'
NAME:
cnappgoat list - List CNAPPgoat module scenarios
USAGE:
cnappgoat list [command options] [arguments...]
OPTIONS:
--debug                     Enable debug mode (default: false)
--force, -f                 Enable force mode (unlock locked stacks with pulumi cancel) (default: false)
--module value, -m value    CNAPPgoat module to operate on, e.g. 'CIEM, 'CSPM', 'CWPP', 'IAC'
--platform value, -p value  CNAPPgoat platform to operate on, e.g. 'AWS, 'AZURE', 'GCP'
--status value, -s value    CNAPPgoat status to filter on, e.g. 'Deployed', 'Destroyed', 'Error', 'Not Deployed'

@noamsdahan If no scenario is found with the current status, we throw an error.
But it's not an actual error it's just not found, so maybe change this to the "log.info" message
go run cmd/main.go list --status Deployed
ERRO[2023-08-18T00:23:46+03:00] no scenarios found
exit status 1


add workbox-webpack-plugin to install service-worker

workbox-sw
workbox-sw is a high-level wrapper that ties together the smaller modules into a single, consistent interface.
For most developers, workbox-sw will be all your service worker needs to handle routing and caching.
workbox-sw handles both precaching (using a manifest generated by workbox-cli, workbox-webpack-plugin, or workbox-build), and runtime caching.

to generate service worker, add workbox-webpack-plugin.

I am checking using workbox-build instead of this.
(https://workboxjs.org/reference-docs/latest/module-workbox-build.html#.generateSW)

https://github.com/GoogleChrome/workbox/issues/605


Include time, rows, and bytes read in query result

Like clickhouse server/local, it would be great if we can get the time spent processing the query, number of rows processed, and the total bytes read for a given query.

Hey @danthegoodman1 statistics are included when using the JSON* formats, ie: JSONCompact but they really only contain the elapsed time since there is no storage attached and network operations are not accounted for (yet):
:) SELECT 1;

{
	"meta":
	[
		{
			"name": "1",
			"type": "UInt8"
		}
	],

	"data":
	[
		[1]
	],

	"rows": 1,

	"statistics":
	{
		"elapsed": 0.002978142,
		"rows_read": 0,
		"bytes_read": 0
	}
}

Thanks for the pointer, I think it'd be very valuable to have for df and arrow formats as well as those provide a lot of optimizations.
Or even for CSV for example where I can probabyl stream results back to an HTTP client for example

Sadly not all formats will allow this without poisoning the dataset results and I doubt CSV could. We need to see where else statistics end up from various format sources. Note statistics are returned at a driver level for most native use cases, and only included in flexible formats such as JSON due to the above.

Could they be included in a sort of like x.fetchstats() similar to how DuckDB has a ddb.fetchall() to retrieve results?

Possibly. That's good question for @auxten
I suppose the uniform way would be to return our own chdb statistics and measure response sizes, etc in the middle.

@lmangani I would definitely need bytes to be able to use for bighouse, as that's the only fair usage metric as you never know when network hiccups can cause extended query times.


Rest API not returning all users when searching

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
None
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

browser version
SPFx version
Node.js version
etc

Describe the bug / error
API search on localpeople does not return all users. Only a portion of the users present are returned when queried.
Steps to reproduce

call the rest api and search for users. Not all are returned as should be expected.
https://tenantname.sharepoint.com/_api/search/query?querytext='user'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'

Expected behavior
Return all users when calling the search API for users.

Dear Mr. @Kris3D
After review you mail this looks to be related with query build, maybe could recommend review associated doc below:
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview
There is a multiple parameters that could help display content sample "rowlimit=30", take in consideration that search uses paging approach to display content, don't know if this could be the reason is not displaying all users

@aaclage
The query is not the problem. When I search for a specific user using the office Portal and through the API, I get different results.
The API doesn't return all matching users. Rowlimit has nothing to do with it since the max results of my query don't exceed 5 users when testing.
The SP https://mytenant-admin.sharepoint.com/_layouts/15/TenantProfileAdmin/ManageUserProfileServiceApplication.aspx gives correct results.

Can you try using Search Query tool, and search your user with its exact user name ?
Then, in the result pane you can see "all managed metadata" associated with the search item.

Ensure you have the desired data indexed
Check the configuration of the managed property: is it included in the full text index?
What about if you explicitly specify the managed property as a property restriction query (mean yourproperty:user instead of user)

As a side note, be aware the user profile indexation has a very low reindexing rate; if you setup custom schema mapping, you may have to wait up to 1 week to see the result


Does Crystal utilize multiple cores / is it a right language for me?

Hey everyone!
The entire reason why I am moving to Crystal is because on node, we have to utilize "multiple instances", and then utilize Redis to share memory (and also for the Pub Sub System).  Which is fine! I had no problem doing that, and it's  a fairly easy way to scale.
However, let's say 1000 Websocket connections are active on an Xeon E3 (Using Kemal). 500 Players are in 83 games (6 players each). Each player is moving around the map and sending socket data to the other 5 players in their respective game. [This is not including Player Skills, Dropping an Item, Chatting, Monster Loot drops, etc, etc].
With nodejs, I would have to split these players up on multiple nodes and then either use Redis` Pub Sub to notify each time a player moves [since they will be on different node instances] -- (which is way too much overhead). OR through a Unix Socket (IPC)... or just simply transfer that user to that instance before joining the game.
The reason I ask is because I made a similar topic in the Reddit golang sub weeks ago. And they said using "goroutines and channels" would be necessary. Then, I got a message from someone saying "Crystal would do all that stuff for you".
The problem is though, I really love Crystal's syntax and want to switch. I am just not sure how many connections "1 instance" can handle on a Crystal TCP/Websocket Server.
Do we need to spin up multiple crystal instances, or just 1, and communicate through IPC? This is assuming Crystal handles utilizing multiple cores in the background if we do use IPC. If that makes sense, I'm kind of lost, but thanks!

Crystal is currently am mixture of Go and Node in that regard. The concurrency model is largely that of Go, fibers (goroutines) and channels. There's a runtime scheduler based on libevent that resumes fibers as the IO they blocked on becomes available, while a fiber is blocked another one is run. However that currently happens in a single thread.
That said the current plan is to use a thread pool and automatically distribute fibers among in, just like Go. We're just not there yet.
As to whether Crystal could handle your load on a single core, I don't know and there's no general answer to it, it largely depends on how computationally expensive your game logic is. Being a compiled language I expect it to certainly have a higher throughput than Node.
Please note that we have a mailing list, a subreddit, a IRC channel and our community is active on StackOverflow too, I'm closing this as it's not an issue with the language that needs to be tracked in its issue tracker.

Did you just copy-and-paste this? Almost the same exact thing was posted to the Nim bug tracker...

Yeah I did, do you have a problem? I'm trying to find a new language to move to from nodejs.

@Dillybob92 Elixir might be better suited for your use-case. While it isn't as fast Crystal in terms of raw compute, it does run on multiple cores, and even multiple hosts (connected together directly, without needing an intermediate service such as Redis). Elixir runs on the Erlang VM which can handle millions of connections per server. It's also easier to write concurrent code (that actually runs in parallel) using a functional language, with immutable data, and no shared state. Instead of Channels/[Fibers/Goroutines] as seen in Crystal/Go, you have isolated "processes" (an even lighter version of Goroutines/Fibers), which can not only be distributed across multiple cpu cores, but multiple hosts.
I personally prefer Crystal/Go/Rust for command-line applications (fantastic for client-side/cross-platform distribution) or compute-intensive server applications. For any other networking-related needs, it's hard to beat Elixir (Erlang) in my opinion.


chore(project): minor style improvements

Most refactoring cases were Replacing conditional assignment to a variable with an if expression.

Before I do a full review, is there any underlying reason behind one-lining if statements or is it personal style preference?

Hello @RobertCraigie, Sorry I miss checking the notification in GitHub and PRs that I Open I Just checked this while I was having a lot of works during these days, If we can enhance anything I can help!
Also I'm, working in a PR to Add Prisma-Client to AuthX

Hello @RobertCraigie, Sorry I miss checking the notification in GitHub and PRs that I Open I Just checked this while I was having a lot of works during these days, If we can enhance anything I can help!
Also I'm, working in a PR to Add Prisma-Client to AuthX

@yezz123 no worries!

Also I'm, working in a PR to Add Prisma-Client to AuthX

I'm more than happy to help! Let me know if you have any questions and I'm happy to look over the code when you're finished :)

@yezz123 no worries!

Also I'm, working in a PR to Add Prisma-Client to AuthX

I'm more than happy to help! Let me know if you have any questions and I'm happy to look over the code when you're finished :)

@yezz123 no worries!

Also I'm, working in a PR to Add Prisma-Client to AuthX

I'm more than happy to help! Let me know if you have any questions and I'm happy to look over the code :)

Yes, Lately in FastAPI server a developer asked about adding Prisma-Client Support and I see its time to do it, while i just drop out MongoDB and Add SQL Databases, i Will add Prisma also

@yezz123 no worries!

Also I'm, working in a PR to Add Prisma-Client to AuthX

I'm more than happy to help! Let me know if you have any questions and I'm happy to look over the code :)

Yes, Lately in FastAPI server a developer asked about adding Prisma-Client Support and I see its time to do it, while i just drop out MongoDB and Add SQL Databases, i Will add Prisma also

Exciting! Prisma also supports MongoDB.

Exciting! Prisma also supports MongoDB.

Thank you!


update switch style with guideline style

add different color when button turn on/off correspond to disable/enabled button.

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

Waiting on new wireframe for Switch with better contrast. Will make available in Issue #576 once provided.

Reopen when we have up to date designs/wireframes to work off. The current designs are not accessible.


Add dagger 2 diagrams.

I'd like to add more content to the dagger 2 write up, including these diagrams for reference.

@rogerhu

Not sure if i'm breaking any etiquette in this project, but I started updating the wiki doc for dagger as well.

No etiquette broken, please feel free to improve any of the guides as you see fit :)

I've merged your diagrams as well, feel free to include them in the guide to help illustrate how it works. We definitely need help reviewing our Dagger 2 guide.

Feel free to review and edit...although do you think the diagrams actually
make things clearer?  It seems at the very least they need explanation.
On Dec 15, 2015 12:02 PM, "Nathan Esquenazi"<EMAIL_ADDRESS>wrote:
I've merged your diagrams as well, feel free to include them in the guide
to help illustrate how it works. We definitely need help reviewing our
Dagger 2 guide.
—
Reply to this email directly or view it on GitHub
https://github.com/codepath/android_guides/pull/124#issuecomment-164878499
.

Many thanks for the quick merge!


enh(sql) add limit keyword

Changes
Added limit keyword to sql syntax highlighting. Limit is commonly in SQL flavors to specify number of records/rows to be returned by a query.
Checklist

[X] Added markup tests
[X] Updated the changelog at CHANGES.md

Feel free to squash the commits, leaving CoffeelessProgrammer as author.

Is LIMIT an ANSI SQL keyword?  I don't believe so.  If not, this will be closed as a #wontfix.
Please see #1274.
Our sql grammar is for ANSI SQL only, not a catch all for "common" SQL or any particular engine... if one wishes great MySQL or PostgreSQL support they should use a grammar specific to those engines, not sql.

Not part of ANSI SQL, thanks for the distinction. I assumed it was for general purpose SQL.
LIMIT is part of a few popular flavors incl. SQLite, Postgres, MySQL. But as you mentioned, this probably isn't enough reason to include it.
This is subjective, but I find LIMIT 10, 5 more intuitive, clear, concise, and flexible than equivalent expressions in other flavors, e.g. OFFSET 10 ROWS FETCH NEXT 5 ROWS ONLY, WHERE ROWNUM <= 15, TOP 5 ROWS START AT 11, FROM BOOK ROWS 11 TO 15, etc.
Related links below for future reference:

Is there an ANSI SQL alternative to the MYSQL LIMIT keyword?
How universal is the LIMIT statement in SQL?

but I find LIMIT 10, 5 more intuitive, clear, concise, and flexible than equivalent expressions

I'd wholly agree there, but that's not the criteria here. :-). We made this decision a while back because everyone was just cramming everything into sql and it's hard to know where to draw the line, so ANSI is what we decided... making it a bit of a toy grammar perhaps, but there are good alternatives.


Cool fixed. paf names now fixed.

If this doesn't show any new bugs after a few days, I think I will be done @bgruening and ready for you to merge this into the PR?
Don't want this to go on forever.

Cool. I hope I get this backported. Do you think knyouncan help adding tests, so we make sure this does not break again?

There are still going to be bugs no matter what we test but yes, sure. I think the best would be to use your zip method to test for outputs for each type. The samples used in this one for example.


Neovim crash on autocomplete suggestion initiation

Make sure you have done the following

[X] I have updated to the latest version of blink.cmp
[X] I have read the README

Bug Description
I was running into an issue where whenever blink autocomplete would start, the entire neovim program would crash. This persisted through uninstalling and reinstalling neovim, and stripping down neovim plugins to only the stock plugins (now containing blink) from the LazyVim distribution that I use. That distribution is set to lazy load blink on insert enter, and when I would start typing characters I was able to type 1-3 characters before the program would crash.
I was able to recover by finding and deleting both the blink mongodb files and all the files in the lazy install path, then re-installing everything.
Unfortunately I'm not sure how to reproduce this state, and the crashes produced no error logs, but hopefully this can at minimum be a data point for a future resolution. Thanks for your work on this!
Relevant configuration
No response
neovim version
NVIM v0.10.3 Build type: Release LuaJIT 2.1.1734355927
blink.cmp version: branch, tag, or commit
v0.8.2

I have the same issue and reproduced with versions 0.8.1 and 0.8.0.
This could mean that the state files are compromised.

Same here, but deleting .local/share/nvim/blink did nothing for me.

Duplicate of #68
If someone could share a zip of their .local/share/nvim/lazy/blink.cmp while it's broken, that would be super helpful btw

In most cases, running ldd libblink_cmp_fuzzy.so would show any errors, which lead to the crash on autocomplete initiation. In my case, the gblic on my machine was not compatible with the binary downloaded. Compiling it manually worked out (see https://github.com/Saghen/blink.cmp/issues/68#issuecomment-2560312574).


Provide autoloader by default

Just an improvement suggestion.
Currently usage relies on composer. What if I don't want it? I should require 8 files on top of my index.php which is not really nice.
Adding an autoloading function would be handy or at least please update the readme.md file how to use donenv without composer.

I don't see the point? Just use composer's autoloader.

Even if you don't want to install using composer, just find a PSR-4 autoloader yourself, That's the entire point of PSR-4.

@GrahamCampbell Some cases I just don't want to use composer. In this case I have a CMS and I haven't touched a single line of PHP, nor the CMS uses composer.
PSR-4 is a good point, but that's something I'm requesting here to add it to the docs for newbies who might not know what PSR is.

I think that's unnecessary. That's something everyone should bother to look up first.

That's a funny mindset to assume everybody should know everything before using your lib. Just as you think PSR is a good practice, I think considering other use cases should be best practice too.
For example the guy who deployed the CMS don't know PHP. Shall I start explaining everything to him or go with a dead simple option? I picked the latter.

@tiborsaas, PSR-4 exists so we don't have to write our own autoloaders. As for having a library that is PSR-4 compliant require supplying it's own autoloader, adding to the bloat of every installation that uses a PSR-4 compliant autoloader, in addition to the maintenance of the nearly completely redundant autoloader ... not worth the effort.
With 1 reference, PSR-4, you've increased your knowledge, the knowledge of your team and everyone is happy. No additional code to write, no additional code to maintain.
The mindset is to increase knowledge and provide stable software, not to support every potential edge case that already has any number of pre-invented wheels ready to roll.

Where does the readme say I should use PSR? How is it obvious from it if you don't know what PSR is?

As for the example of your guy, if he doesn't know PHP, why is he even bothering with include a library that does nothing without coding?
And personally, explaining things to him means you now have 2 people capable of doing the work when you get hit by that proverbial bus/lorry/train/truck.
Still no reason to re-invent a perfectly understood, well tested, working solution.

Where does the readme say I should use PSR? How is it obvious from it if you don't know what PSR is?

In fairness to every single library out there, how many DO mention the need for a PSR-4 loader? Well, probably none of them as they tell you to install using composer, which has a PSR-4 loader.

This is a training issue, not a development/technical issue. Solve it using training.

And autoloading has been around since 13 July 2004. 11 years. Nearly. Not a new thing.
http://php.net/manual/en/language.oop5.autoload.php

@tiborsaas This library supports standard autoloading, which has been in use for over a decade in PHP. This library will not ship with its own autoloader, for reasons stated by others in this thread. Just register the 'Dotenv' namespace to the folder you install this package into, and everything will work as expected, even if you don't use Composer.

Thanks for the feedback. If you think the documentation is perfect then just ignore me, sorry for bikeshedding :) I'm a bit bullish on dev UX, which is often terrible, because people just assume that everybody knows everything.


Can AI agents' RAG Search find all the contents of the workspace document

Description
Can AI agents' RAG Search find all the contents of the workspace document

AI agents use RAG to find related content from your document. It does not access the entire document since this would cause context overflow in most models.

AI agents use RAG to find related content from your document. It does not access the entire document since this would cause context overflow in most models.

Is there a problem if the context is sufficient?


Bump npm dependencies

This PR updates rollup to 3.29.5 for high severity vulnerability.
Also this PR closes the following dependabot PRs:

https://github.com/Chia-Network/chia-blockchain-gui/pull/2486
https://github.com/Chia-Network/chia-blockchain-gui/pull/2485
https://github.com/Chia-Network/chia-blockchain-gui/pull/2482
https://github.com/Chia-Network/chia-blockchain-gui/pull/2473
https://github.com/Chia-Network/chia-blockchain-gui/pull/2428
https://github.com/Chia-Network/chia-blockchain-gui/pull/2416
https://github.com/Chia-Network/chia-blockchain-gui/pull/2398
https://github.com/Chia-Network/chia-blockchain-gui/pull/2367
https://github.com/Chia-Network/chia-blockchain-gui/pull/2363

The PRs below are intentionally skipped

https://github.com/Chia-Network/chia-blockchain-gui/pull/2488.

<EMAIL_ADDRESS>is not compatible with<EMAIL_ADDRESS>and currently airbnb config does not support<EMAIL_ADDRESS>

https://github.com/Chia-Network/chia-blockchain-gui/pull/2487.

I found an issue where the GUI crashes on adding a connection via dexie with that PR.

@markelrod @seeden This PR is ready to be reviewed.


Experimental test with Kokoro

NOTHING FOR REVIEW
DO NOT MERGE
This PR is just to test some commit with Kokoro. No need to review. To be closed.

****************************************************************

libgrpc.so

     VM SIZE                                          FILE SIZE
 ++++++++++++++ GROWING                            ++++++++++++++
  +0.0%     +56 [None]                                +216  +0.0%
  +2.2%     +96 src/core/lib/slice/slice_buffer.cc     +96  +2.2%
       +26%    +108 grpc_slice_buffer_trim_end            +108   +26%

  +0.0%    +152 TOTAL                                 +312  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE                                          FILE SIZE
 ++++++++++++++ GROWING                            ++++++++++++++
  +0.0%     +56 [None]                             +4.99Ki  +0.1%
  +2.2%     +96 src/core/lib/slice/slice_buffer.cc     +96  +2.2%
       +26%    +108 grpc_slice_buffer_trim_end            +108   +26%

  +0.0%    +152 TOTAL                              +5.09Ki  +0.1%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[microbenchmarks] Performance differences noted:
Benchmark                  cpu_time    real_time
-------------------------  ----------  -----------
BM_MetadataRefUnrefStatic  -16%        -16%

****************************************************************

libgrpc.so

     VM SIZE                                          FILE SIZE
 ++++++++++++++ GROWING                            ++++++++++++++
  +0.0%     +56 [None]                             +4.99Ki  +0.1%
  +2.2%     +96 src/core/lib/slice/slice_buffer.cc     +96  +2.2%
       +26%    +108 grpc_slice_buffer_trim_end            +108   +26%

  +0.0%    +152 TOTAL                              +5.09Ki  +0.1%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE                                          FILE SIZE
 ++++++++++++++ GROWING                            ++++++++++++++
  +0.0%     +56 [None]                             +4.99Ki  +0.1%
  +2.2%     +96 src/core/lib/slice/slice_buffer.cc     +96  +2.2%
       +26%    +108 grpc_slice_buffer_trim_end            +108   +26%

  +0.0%    +152 TOTAL                              +5.09Ki  +0.1%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences


--480 Preset?

I just found your script and it looks like just what I need right now, but I also have some kids show that I've ripped at 720 and really only need 480 to save space. Is it a lot of work to add an additional resize preset?

Scott,
Thanks. I think you're the first person who's requested this feature. Congratulations! :)
Seriously, I've considered adding a --480p option before. The problem with an implementing it is deciding on the best value for a horizontal constraint because a "perfect" value isn't possible.
Let me explain...
Here's the current code for the three different constraint options:
    --720p|--resize)
        [ "$1" == '--resize' ] && deprecated_and_replaced "$1" '--720p'
        constrain_width='1280'
        constrain_height='720'
        ;;
    --1080p)
        constrain_width='1920'
        constrain_height='1080'
        ;;
    --2160p)
        constrain_width='3840'
        constrain_height='2160'
        ;;

Notice anything similar about those widths and heights? Yes, they're all perfect 16x9 aspect ratios.
So, if the height is 480 then what's the width if we stick to 16x9? Unfortunately that's not an integer. Basically, it's<PHONE_NUMBER>....  And we need not just an integer, but an even-numbered integer. That means we have to approximate the value by choosing 854 like this:
    --480p)
        constrain_width='854'
        constrain_height='480'
        ;;

But if we do that, then the video will always have to be scaled narrower by one pixel when displayed.
Can you live with that imprecision? If so, I can add this feature in my next update.
(And anybody else reading this, please feel free to comment. Thanks!)

I think you may be over thinking it Don, I'd guess this is going to be played on an HD display, assuming it's a telly that's 1920 pixels wide and the video is going to be watched fullscreen it's being scaled by a fractional number of pixels anyway. I'm not aware of any screen standard that's an even multiple of 854. Also I think any player that expects 16:9 480p will be expecting 854. As a side note all that scaling would make me tempted to turn down some of the sharpening x264 does since it's just going to be smeared anyway, not that I'd ever take the time to do the investigation mind.
The main reason I'm replying is because I don't use twitter but wanted to say how awesome this project is :)
I've used variations of all your older bitrate control approaches but this new one seems both novel and a perfect fit for your (and my) use case. I also don't know why setting the VBV buffer to half the bitrate is the magic number. I wonder whether you're effectively disabling some of the "cleverness" of the encoder by preventing it trying to spread the bits evenly over many different types of frames, instead it has to fallback on making sure each frame chooses similar quantizers to those around it. OK that's wild speculation, but it feels like it's probably an implementation detail of x264 rather than something that is implied by the standard. Have you had any other discussions on what makes it work in a place I can read it?

Finn,
I like to think it's being careful and deliberate when adding a feature to make sure people understand the side effects. :)
These constraints mean the output video, after the pixels being scaled one direction, will then be scaled in the orthogonal when displayed. This could be noticeable when then scaling up something that small to an HD screen.
Then again, maybe you'll never see it. But it's best to know before I do the typing. :)
And, thanks, I'm glad you like the scripts.
As for the VBV buffer trick, I suspect setting it to half the maximum rate prevents the x264 encoder from being to aggressive. In fact, your geeky guess may very well be correct. The developers don't have much documentation on this other than their source code. And I haven't yet found anyone else writing about it either.
I know from extensive testing I did last month that setting the buffer size to the minimum or setting it to the same value as the maximum rate still has unpleasant and ugly side effects for some inputs at these low bitrate targets, e.g. 5 Mbps for 1080p.

I'm sure glad there are people smarter than me that create great scripts for people like me to run and request our features. I'm pretty sure that when my kids are watching Sid the Science Kid  via Plex they won't notice a little imprecision.
Thanks

Scott,
I'll consider that a "yes" then. :)
OK, I'll probably have the feature in sometime in the next few days. I'm trying to gather features together this time before I make a new release. I'll leave this issue open until then.
BTW, two thumbs up on Plex. That's a great product. However, I don't have much experience with "Sid the Science Kid." :)

Scott,
It turns out that constraining the video to 854x480 pixels doesn't really save all that much space compared to using the --720p option because the target bitrate is almost as big.
So, I'll have to noodle on this one awhile before I check in a change.
Perhaps the right way to do this is to finally expose the constraint controls in the API with --constrain-width and --constrain-height options.

Isn't the target bitrate 2Mbps v.s. 4Mbps? Having said that it does make sense to me that  x264 is going to hit your quality constraints with 4Mbps 720p where it struggles with 2Mbps 480p. Since increasing the number of pixels tends to make them more similar H.264 can do a better job at compressing the pixels, that's a bit dependent on content. With a scene like grass panning at the right (wrong) distance HD can have enough detail to show the individual blades where SD just shows a sea of green and then HD will be much more expensive to encode than SD. The example content given by Scott is animated which I'd guess is a good example of content where increasing the resolution is very cheap...
A side note is that you get the same behaviour when changing the framerate. Also (IIRC) when x264 introduced 10bit encoding they found it more efficient than 8bit even on 8bit content, simply because the internal representations had more information to work with.

No, the target bitrate isn't 2 Mbps because the proposed constraint width we're talking about is larger than 720 pixels. The way the script works now is that anything that fits inside a 720x576 pixel boundary gets a 2 Mbps target, and anything larger gets a 4 Mbps (or even still larger) target.
And I was stupidly forgetting this last night when I added the code snippet above to the script. :)
All I need to do to solve the problem is simply modify the boundary check so 854x480 gets the 2 Mbps target. Since it's actually smaller in terms of the number of pixels it can contain compared to 720x576, this should be fine from a rate control standpoint.
However, it should be noted that this could mean these "480p" videos are at H.264 level 3.1 instead of level 3.0 because they're wider than 720 pixels. But I'll need to test that to be sure. And even if is, that's probably not a deal breaker for the implementation.

OK, the new patch works and, using a Blu-ray Disc rip as input, produces better quality output than a DVD. At least for widescreen content.
Plus, it remains at H.264 level 3.0 like DVD output.
I'll probably check this in tomorrow after some more testing and when I complete this other patch I'm working on.

The --480p option is now in version 5.10. Let me know how it works for you.
I'll close this issue, but feel free to continue commenting here.


{"component":"virt-launcher","level":"error","msg":"[SeaBios]: exited, restarting","pos":"libvirt_helper.go:383","timestamp":"2023-04-08T09:35:09.359907Z"}
{"component":"virt-launcher","level":"error","msg":"[SeaBios]: exited, restarting","pos":"libvirt_helper.go:383","timestamp":"2023-04-08T09:35:09.359912Z"}
{"component":"virt-launcher","level":"error","msg":"[SeaBios]: exited, restarting","pos":"libvirt_helper.go:383","timestamp":"2023-04-08T09:35:09.359918Z"}
{"component":"virt-launcher","level":"error","msg":"[SeaBios]: exited, restarting","pos":"libvirt_helper.go:383","timestamp":"2023-04-08T09:35:09.359925Z"}
{"component":"virt-launcher","level":"error","msg":"[SeaBios]: exited, restarting","pos":"libvirt_helper.go:383","timestamp":"2023-04-08T09:35:09.359931Z"}

/cc @vladikr @rthallisey

This turned out to be a bug in the Nvidia vGPU manager image.


AttributeError: 'BitsAndBytesConfig' object has no attribute 'load_in_4bit'

System Info
- `Accelerate` version: 0.21.0.dev0
- Platform: Linux-5.15.109+-x86_64-with-glibc2.35
- Python version: 3.10.10
- Numpy version: 1.23.5
- PyTorch version (GPU?): 2.0.0 (True)
- PyTorch XPU available: False
- System RAM: 15.63 GB
- GPU type: Tesla P100-PCIE-16GB
- `Accelerate` default config:
	Not found

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
While Fine-tuning GPT-NeoX-20B with QLoRa using accelerate and bitsandbytes I ran into this issue:
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig

model_name = "EleutherAI/gpt-neox-20b"

#Tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_name)

quant_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_use_double_quant=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16
)

model = AutoModelForCausalLM.from_pretrained(model_name, quantization_config=quant_config)

After trying to load the model ran into this issue:
Unexpected exception formatting exception. Falling back to standard exception
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "/tmp/ipykernel_28/122249750.py", line 1, in <module>
    model = AutoModelForCausalLM.from_pretrained(model_name, quantization_config=quant_config)
  File "/opt/conda/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 467, in from_pretrained
  File "/opt/conda/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2244, in from_pretrained
    load_in_4bit = quantization_config.load_in_4bit
AttributeError: 'BitsAndBytesConfig' object has no attribute 'load_in_4bit'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2105, in showtraceback
    stb = self.InteractiveTB.structured_traceback(
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/ultratb.py", line 1396, in structured_traceback
    return FormattedTB.structured_traceback(
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/ultratb.py", line 1287, in structured_traceback
    return VerboseTB.structured_traceback(
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/ultratb.py", line 1140, in structured_traceback
    formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/ultratb.py", line 1055, in format_exception_as_a_whole
    frames.append(self.format_record(record))
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/ultratb.py", line 955, in format_record
    frame_info.lines, Colors, self.has_colors, lvals
  File "/opt/conda/lib/python3.10/site-packages/IPython/core/ultratb.py", line 778, in lines
    return self._sd.lines
  File "/opt/conda/lib/python3.10/site-packages/stack_data/utils.py", line 144, in cached_property_wrapper
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/opt/conda/lib/python3.10/site-packages/stack_data/core.py", line 734, in lines
    pieces = self.included_pieces
  File "/opt/conda/lib/python3.10/site-packages/stack_data/utils.py", line 144, in cached_property_wrapper
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/opt/conda/lib/python3.10/site-packages/stack_data/core.py", line 681, in included_pieces
    pos = scope_pieces.index(self.executing_piece)
  File "/opt/conda/lib/python3.10/site-packages/stack_data/utils.py", line 144, in cached_property_wrapper
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/opt/conda/lib/python3.10/site-packages/stack_data/core.py", line 660, in executing_piece
    return only(
  File "/opt/conda/lib/python3.10/site-packages/executing/executing.py", line 190, in only
    raise NotOneValueFound('Expected one value, found 0')
executing.executing.NotOneValueFound: Expected one value, found 0

Expected behavior
The model weights should have been loaded correctly from huggingface.

It looks like you need to upgrade your version of Transformers, the 4bit support is only 4.30.0


Symbols in filesystem path cause C# plugins to not compile

We'll have to figure out how to support other encodings, else tell the users to not use symbols in their server path.

Fixed with latest compiler in Oxide thanks to @Nogrod. :)


Give detailed errors when casting to record type

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues.

$title
Fixes #31694
Approach

Describe how you are implementing the solutions along with the design details.

Gives detailed errors (20 maximum) when casting to record type for the cases

missing required fields
wrong variable type
adding additional fields to closed records

Samples

Provide high-level details about the samples related to this feature.

In a Ballerina package named 'packageName', the 'main.bal' is as follows.

import packageName.newModuleName;

type Boss record {
    newModuleName:Person man;
    string department;
};

type Factory record {
    newModuleName:Person man1;
    newModuleName:Person man2;
    Boss man3;
    float grade;
    boolean permanant = false;
};

public function main() {
    json jsonVal = {
    "man1": {
        "fname": "Jane",
        "age": "14"
    },
    "man2": {
        "name": 2,
        "aage": 14
    },
    "man3": {
        "man": {
            "namee": "Jane",
            "age": "14"
        },
        "department": 4
    }
    };
    json readonlyjsonVal = jsonVal.cloneReadOnly();
    Factory f1 = checkpanic readonlyjsonVal.ensureType();
}

Another module named 'newModuleName.bal' is in the same package with content as follows.
public type Person record {
    string name;
    int age;
};

This will give the below output.
Running executable

error: {ballerina}TypeCastError {"message":"incompatible types: 'map<(json & readonly)> & readonly' cannot be cast to 'packageName:Factory':
                missing required field 'grade' of type 'float' in record 'packageName:Factory'
                missing required field 'man1.name' of type 'string' in record 'packageName.newModuleName:Person'
                field 'man1.age' in record 'packageName.newModuleName:Person' should be of type 'int'
                missing required field 'man2.age' of type 'int' in record 'packageName.newModuleName:Person'
                field 'man2.name' in record 'packageName.newModuleName:Person' should be of type 'string'
                missing required field 'man3.man.name' of type 'string' in record 'packageName.newModuleName:Person'
                field 'man3.man.age' in record 'packageName.newModuleName:Person' should be of type 'int'
                field 'man3.department' in record 'packageName:Boss' should be of type 'string'"}
        at ballerina.lang.value.0:ensureType(value.bal:100)
           nadeeshand.packageName.0:main(main.bal:35)

For union types the output is given as follows giving a union of possible errors.

In a single Ballerina file the content is as follows.
type Employee record {
    string name;
};

type Apple record {
    string color;
};

type Orange record {|
    string colour;
|};

type Mango record {
    string taste;
    int amount;
};

type Student record {|
    string name;
    Apple|Orange|Mango fruit;
|};

type Person record {|
    boolean name;
    int outcome;
|};

public function main() {
    json j = {
    "name": 12,
    "fruit": {
        "color": 4,
        "amount": "five"
    }
};
    json readonlyj = j.cloneReadOnly();
    Employee|Student|Person p1 = <Employee|Student|Person> readonlyj;
}

This will give the following output.
Running executable

error: {ballerina}TypeCastError {"message":"incompatible types: 'map<(json & readonly)> & readonly' cannot be cast to '(Employee|Student|Person)':
                field 'name' in record 'Employee' should be of type 'string'
                field 'name' in record 'Student' should be of type 'string'
                field 'fruit.color' in record 'Apple' should be of type 'string'
                missing required field 'fruit.colour' of type 'string' in record 'Orange'
                field 'fruit.color' cannot be added to the closed record 'Orange'
                field 'fruit.amount' cannot be added to the closed record 'Orange'
                missing required field 'fruit.taste' of type 'string' in record 'Mango'
                field 'fruit.amount' in record 'Mango' should be of type 'int'
                missing required field 'outcome' of type 'int' in record 'Person'
                field 'name' in record 'Person' should be of type 'boolean'
                field 'fruit' cannot be added to the closed record 'Person'"}
        at casted_union:main(casted_union.bal:37)

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Related PR #32761
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Will open a new PR using another branch. Hence closing this.


release 4.10.1 broke pip/poetry installation because of missing dependency.

This release includes a new dependency on simdutf, seemingly hard coded to the conda env.
/gitpod/.pyenv/versions/3.11.1/include/python3.11 -c src/cpp_odbc/level2/level1_connector.cpp -o build/temp.linux-x86_64-cpython-311/src/cpp_odbc/level2/level1_connector.o --std=c++17
      src/cpp_odbc/level2/level1_connector.cpp:24:10: fatal error: simdutf.h: No such file or directory
         24 | #include <simdutf.h>
            |          ^~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

https://turbodbc.readthedocs.io/en/latest/pages/getting_started.html#linux-and-osx does not mention any dependency, but i see simdutf is added to the conda env through conda-forge. How can this be replicated outside of conda?

installing simdutf with brew and adding lib / include to the relevant build paths worked for me
LDFLAGS += L/opt/homebrew/Cellar/simdutf/VERSION/lib"
CPPFLAGS += I/opt/homebrew/Cellar/simdutf/VERSION/include"

Thanks @ckalas for the hint. Similar things need to be done on a Linux setup.

@xhochy Can you share what you did to resolve this?

Also looking to understand how I can install this in a Linux setup - would be much appreciated

Also looking to understand how to solve this and why is this issue closed @xhochy ? It seems to be unsolved on Linux.

You need to install the library using your system package manager.


help with pg_activity

Hi. I already installed pg_activity, but the user is not postgres, but admin. Please, how do I do in that case to be able to visualize the consumption of cpu and memory of each query that is executed? I would appreciate the help.

Hello,
Have you tried : $ sudo -u admin pg_activity ?

I explain the procedure I use to use pg_activity, in a console I place sudo su, then its postgres and finally pg_activity -h localhost -U admin -d Bdatos and it throws me the following, FATAL: Must be run with database superuser privileges.
That is, pg_activity only works with the postgres user ???
Please I need help inmediately.

As I understand, you have to run pg_activity with user that has superuser privileges.
User postgres has these privileges by default. That's why you have to use postgres (preferable) OR you need to add superuser privileges to you user admin (may be causing security issues).
ALTER USER admin WITH SUPERUSER;

Hello!
I comment again what I did:
ALTER ROLE admin WITH SUPERUSER;
Then, I opened a console and placed:
sudo its
your postgres
psql -h localhost -U admin -d database
Next, in another console, place:
sudo its
your postgres
pg_activity -h localhost -U admin -d database
But, nothing is displayed in the pg_activity. Please help!

Hello!
First, change the super user permissions to the admin user, as shown below:
ALTER ROLE admin WITH SUPERUSER;
I opened a console and placed:
sudo su
su postgres
pg_activity -h localhost -U admin -d database
Then, in another console I placed:
sudo su
su postgres
psql -h localhost -U admin -d database
database= # SELECT * FROM person;
But nothing is shown in pg_activity. Please help!

Could you try with : select pg_sleep(10);

Hello!
I did what you recommended and I do not see the query in pg_activity! I do not know what to do! :(

Hello!
I did what you recommended and I do not see the query in pg_activity! I do not know what to do! :(

Can you provide more details? May be you can give steps to provide your setup of postgres?

Hello! Will I have to configure postgres for pg_activity to work for me? If so, I do not know how to configure it. I'd appreciate your help.

A FAQ has been added to the README.md to document possible reasons why queries might not show.
If you have more question on this topic feel free to reopen the issue.


Battery state and status - Infinity Feeder

Hello!
First want to say this integration is awesome, and is what drove me to purchase this product, to replace an older Petwant smart feeder with no external connectivity, as well as a terrible app.
I noticed the battery state it not filling in HA, although the unit it-self mentions having an internal battery, and the users guide shows that the LEDs are indicating it working properly.
Is this a limitation for this product specifically (that other models may not have issues with), or has something happened in updates that caused the battery status to no longer sync properly?
Thanks!

This is covered in the documentation:

If you were to unplug your feeder and have it run on batteries, you should eventually see the Battery status entity become available. In addition, the battery entity is more than likely showing a state of not charging because the battery is fully charged (your feeder is being supplied power and has fully charged its battery) - If you were to leave your feeder unplugged for a while to drain the battery some, it should show charging after getting plugged in.

Yes, see that now, sorry. Tested to see the Battery Status & Status both change with the power unplugging for longer than the update rate. Thanks!

All good!


Change ger language code to deu

The ISO 639-2 language codes have two codes B and T. According to Wikipedia, B is more of a legacy set based off of the English names, while the T set is based off on the native name. Additionally it says that T codes are generally favored. So based off of that, and the fact we are already using the T code for Chinese, this PR makes all of the langauges we have use T codes. This only required the changing of the German code, but will also need to be kept in mind when adding new languages in the future.

Thx!


Adding PWA to Vite App

Is your feature request related to a problem? Please describe.
I am trying to convert my vite app to PWA, but there is a limitation in the documentation.
Describe the solution you'd like
Maybe creating a plugin to add PWA
Describe alternatives you've considered
I considered writing all the code myself, but I'm not that great with service workers

I am working on a plugin for PWA support, which requires #739. Please keep tuned.
As this is more like a plugin-provided feature than the features of Vite itself, I'm closing for now. Thanks.

Hi,
what's the status now, where is the pwa plugin for vite?

@softboy99 https://github.com/antfu/vite-plugin-pwa

Hi，
Thanks, it is more better to add any pwa documentation merged to vite documentation like vue cli. It is much more better to add an option to vite cli wizard,just like vue cli

https://vitejs.dev/plugins/#vitejs-plugin-vue-jsx
https://github.com/vitejs/awesome-vite

https://vitejs.dev/plugins/#official-plugins
https://github.com/vitejs/awesome-vite

does this mean, no official pwa plugin for vite?

@BroJenuel yes, there are community plugins for PWA like https://github.com/antfu/vite-plugin-pwa
Vite tries to offer out-of-the-box support for common web idioms so more features may be added in the future, but the rollup-based plugin system is quite versatile so you can just do it through a community plugin.
Adding a message in a closed issue will notify all Vite maintainers. Let's better create discussions for these topics https://github.com/vitejs/vite/discussions, or join the discord server at https://chat.vitejs.dev to chat.


task: merge nxtask_setup_name() before create_stack

Summary
task: merge nxtask_setup_name() before create_stack
After this patch up_create_stack() can do some
judgement with thread name
Impact
task
Testing
bes board

[Experimental Bot, please feedback here]
No, this PR does not meet the NuttX requirements.
Here's why and how to improve it:
Missing Information

Summary:

Why? The summary vaguely mentions a judgment based on the thread name but fails to explain the reason for this change. What problem does it solve? What are the benefits?
What/How: The summary is unclear about the functional changes. What does "merge nxtask_setup_name() before create_stack" actually entail in terms of code modification?

Impact:

The impact section is almost empty. Address all the points listed in the requirements. Be specific about which tasks are affected.
For example, if there's no impact on documentation, state "Impact on documentation: NO" instead of leaving it blank.

Testing:

Insufficient Detail:  "bes board" is not descriptive enough.  Specify the exact board and configuration used.
Missing Logs:  Provide actual testing logs before and after the change to demonstrate the issue and the fix.

How to Improve the PR

Elaborate on the Summary:

Clearly articulate the problem this PR addresses.
Explain the technical changes being made. For instance, "This PR moves the call to nxtask_setup_name() to occur before create_stack() within [function name]. This allows..."
Highlight the positive outcomes (e.g., "This improves...").

Complete the Impact Section:

Go through each item in the Impact section and provide a clear "YES" or "NO" answer.
If "YES," give specific details. For example:

"Impact on build: YES - The build system now requires..."
"Impact on hardware: YES - This change affects the [driver/hardware] by..."

Enhance Testing Information:

Specify the build host details (OS, CPU, compiler).
Provide the full target details (architecture, board, configuration).
Include relevant testing logs from before and after applying the changes.

Example of an Improved Impact Section
## Impact

* Is new feature added? NO
* Is existing feature changed? YES - The task creation process is modified.
* Impact on user (will user need to adapt to change)? NO
* Impact on build (will build process change)? NO
* Impact on hardware (will arch(s) / board(s) / driver(s) change)? NO
* Impact on documentation (is update required / provided)? NO
* Impact on security (any sort of implications)? NO
* Impact on compatibility (backward/forward/interoperability)? NO
* Anything else to consider? NO


Split cards in deck list shown as not collected, while they are.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
If you go to deck list. My decks or even other people decks. It shows you the missing cards you do not have in your collection.
However I do have the cards in my collection. After checking multieple decks and multiple cards shown as missing I noticed all the incorrect missing cards are split cards.
Expected behavior
A clear and concise description of what you expected to happen.
Cards should not show as not in collection if they are in the collection. Probably has to do with the naming of split cards.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

This issue is fixed, collection will update as long as you get at lest 1 new card


TokenRequest feature gate no longer relevant in 1.21

Looks like TokenRequest feature gate in 1.21 has been promoted as mentioned in changelog so no longer relevant.
This change impacts control planes created for new clusters. Leads to error
May 20 04:22:08 kind1-control-plane kubelet[290]: E0520 04:22:08.186018     290 server.go:216] "Failed to set feature gates from initia
l flags-based config" err="unrecognized feature gate: TokenRequest"

Either we should put a pre-req or fix the deploy.sh to take this into account.

cc @linsun ... happy to raise a PR for this

@djannot I think you have fixed this yesterday in the deploy.sh?


Can't install rosbag

I use the Udacity provided VM to develop the project. It shows the rosbag is not installed: The program 'rosbag' is currently not installed. You can install it by typing:
sudo apt install python-rosbag. When I do this, it shows "some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming". It also shows "unable to correct problems"

Hey @scifiss,
You can find the testing instructions using bag over here: https://github.com/udacity/CarND-Capstone/blob/master/ros/src/twist_controller/dbw_test.py
Thank you


Run dartfmt over template files

Fixes #399

Coverage remained the same at 83.784% when pulling c9c7cea60d1cea9155b438c248c4e72d45f1d9f1 on chalin-run-dartfmt-0201 into 937a17da1c89c048a62b0b311ab1e1092fc0d40b on master.

Coverage remained the same at 83.784% when pulling c9c7cea60d1cea9155b438c248c4e72d45f1d9f1 on chalin-run-dartfmt-0201 into 937a17da1c89c048a62b0b311ab1e1092fc0d40b on master.

This seems like a pretty safe change, so I said it was OK to commit without a review from @kevmoo.