How to accurate statistics how fast dart code runs

I write a test method, try to statistics code running speed, below is my test code:
test('speed',  (){
    int count = 10000;

    int t1 = DateTime.now().microsecondsSinceEpoch;
    for (int i = 0; i < count; i++) {

    }
    print("first for loop spend ${DateTime.now().microsecondsSinceEpoch - t1}");

    int t2 = DateTime.now().microsecondsSinceEpoch;
    for (int j = 0; j < count; j++) {

    }
    print("second for loop spend ${DateTime.now().microsecondsSinceEpoch - t2}");
});

I run this test method, and the console print:

first for loop spend 106
second for loop spend 440

I can`t understand why the second for loop cost more time than the first loop, they do the same thing.
And what is the best way to accurate statistics how fast dart code runs.

Dart SDK Version 2.5.2
Run on MacOS  10.15.1

For general questions related to Dart, please ask on Stack Overflow:
https://stackoverflow.com/questions/tagged/dart

I can`t understand why the second for loop cost more time than the first loop, they do the same thing.

See explanation here: https://github.com/dart-lang/sdk/issues/34216#issuecomment-414957992

And what is the best way to accurate statistics how fast dart code runs.

The answer to this question depends on many factors: most importantly whether in the end you plan on running Dart in AOT (e.g. in Flutter) or JIT form, what hardware you are planning to run it on, etc.
In JIT case you need to accommodate for warmup to measure peak performance.
In AOT you don't.
I would also advice against trying to microbenchmark things - this usually requires very good understanding of how things work inside. Instead I recommend benchmarking your application.


how to get long-tail cifar

Dear Professor,
I want to run a long tail cifar10 on the resnet-32 model with backbone

I want to know how to get the long-tail cifar10 dataset, can I get the long-tail data directly by run  python train.py?
or  need to run imbalance_cifar.py first?

How should I do if  I want to run  the CE experiment baseline in the article?

可以先下载数据集 也可以train代码直接下载


Doesn't work with OWIN

Using this package works fine with normal webapi. But in a project where Global.asax is replaved with Startup.cs exceptions are not being caught.
This has no effect in owin
GlobalConfiguration.Configuration.Services.Add(typeof(IExceptionLogger),  new MyLogger());
Where this on the other hand works:
HttpConfiguration config = new HttpConfiguration();
config.Services.Add(typeof(IExceptionLogger), new MyLogger());

I would love to do a PR but don't know how you would solve this issue
Regards

Thanks for the note. I think this is expected, though I don't have a great solution to propose.
Have you looked at: https://github.com/serilog-web/owin ?
Though we ended up agreeing that it should be discontinued (see the single issue in that repo) I'd be interested in any thoughts you have on how to go about this better.

We would love to see this package working with OWIN. Please could we can re-open this issue?
As @rosrosros points out, manually adding the relevant pieces to the HttpConfiguration is what is required for OWIN based projects.
If we reverted StoreWebApInfoInHttpContextActionFilter.cs to a public class and update the README.md with instructions for OWIN to add the following:
HttpConfiguration config = new HttpConfiguration();
config.Services.Add(typeof(IExceptionLogger), new WebApiExceptionLogger());
config.Filters.Add(new StoreWebApInfoInHttpContextActionFilter());
Would this be sufficient?
Many thanks

Actually, this package has a dependency on SerilogWeb.Classic and on System.Web... most of the code here would not work in self-hosted OWIN (requires HttpContext.Current, registers a HttpModule etc).
It would still kind of feel like a hack, wouldn't it ?

I see, yes; it only gets it working for OWIN hosted by IIS (which is what we have in production currently). Perhaps it needs separate packages altogether then (SerilogWeb.Owin, SerilogWeb.Owin.WebApi). Although, I noticed SerilogWeb.Owin is deprecated. Further thought required I think!


Question about refactoring structure of files

Hi, I have generic question related with refactoring strucutre of files.
Lets say that we have following scenario (T0,  T1, T2 - Point in Time)

T1 - Initial project - documentation is very simple.
T2 - During time project grew and some files have to be moved accross folders in 'docs' strcuture.

My question is not - how confluence builder is managing refactoring of documents in following scenarios.

RST file was moved between folders by headline left un-changed (The same headline will be used in confluence)
RST Headline changed / File was not moved - So new headline will appear in confluence page.
Both changed - RST file was moved and headline has been changed.

As I do understnad - but I can be wrong. Confluence builder push only new documents unless is forced to purge full structure in confluence. How Confluence builder is handling housekeeping on confluence site? Sphinx allows to run 'make clean' which remove all build folder - then new-fresh documents (and layouts) can be created. How this is working on confluence site?
Thank you in advance for help with this question. I am happy add this to documentation (do PR for this project), so please let me to know how I can understand this correctly.

@marcinpraczko, this extension does not really attempt to deploy a lot of "smarts" when performing the act of publishing a documentation set generated from a Sphinx process (some exceptions with assets to help reduce publish duration/etc.). In the simplest view, it is best to consider that a project will publish documents based off a their detected titles names to anyplace inside a configured space. But there are many notables and configuration scenarios to consider.
For a documentation set from a Sphinx invoke, there will be an attempt to publish all documents detected with a "proper" title. As new files are added, these pages will be automatically added and published as well. One does not need to purge content in order to recognize new documents.
Typically, this extension does not worry about the placement of a document unless two configurations are in play -- confluence_parent_page and confluence_page_hierarchy. In a default configuration, pages are normally published in the "root" of a space. If confluence_parent_page is configured, documents will be published as a child of that page. Also, if confluence_page_hierarchy is configured, pages will attempt to be nested based off of the nested structured defines by Sphinx. Keep in mind that even if a "container" for a publish point is defined for a project, it does not mean that non-Sphinx-specific documents in the same configured space are safe from modification (see Confluence Spaces and Unique Page Names].
Changing file names/locations typically do not have an affect unless it adjusts the document's content in some way (via Sphinx includes/etc.) or when hierarchy mode is configured (where placement may be adjusted). Title changes will result in a biggest change since this extension only uses titles to drive publish points into Confluence. This extension makes no attempt to understand the "history" of changes, so if you change the name of a document and re-publish, the older published document will remain untouched (by default). This is the purpose of the purge feature -- to help lazily cleanup other pages in the space which may not be applicable anymore. The feature is disabled by default since it is a very brute force way of cleaning up a space which may not be desired for various user scenarios.
I hope this information helps.

Hi, thank you for reply. So before closing this issue - last question. As I do know there is option to remove all context before creating new one. How safe is this? For example if I have top document where I am creating all context from sphinx-confluencebuilder, what is a risk that I can loose other context as well? It is realted with my question above - that if I going to refactor structure in sphinx, then before publishing this to confluence, I can delete all context (based on top level document). Question is related with risk of loosing documents outsite of 'scope'?

@marcinpraczko, the confluence_purge option is specifically designed to help deal with cleaning up the target context. Instead of pre-clearing a space or container children ahead of time, this extension takes a snapshot of pages before hand, adds/updates pages and then only removes pages that are not part of the new set.
This extension (when confluence_purge is configured) will only delete pages that are the ancestor's (via an CQL search) of the configured "container space" (confluence_parent_page) or all pages of a configured space when confluence_purge_from_master is enabled as well.


Unexpected no-redeclare error inside of comprehension

function test() {
  let items;
  return {
    a: [for (i of items) i],
    b: [for (i of items) i]
  };
}

the second comprehension emits no-redeclare error.

Ah so we would need to create a new scope for each comprehension expression? RIght now it's using the same scope.

@hzoo take a look (I've added "function" scope to isolate it from parent, not sure if it's right)

Yay, it works. Thank you!


support distill_file path that includes dir.

if distill_file starts with directory like "distill_file='where/index.html'", it will be raised FileNotFoundError.
So, I change it to make directories before create a file.

This makes sense, I intentionally left it so the directories would have to exist to avoid overwriting and other conflict issues, but with this example I can see the much more obvious use case. Thanks a lot for the pull request.


Setup ELK Instance

Currently looking into https://github.com/deviantony/docker-elk and reading https://www.sitepoint.com/how-can-the-elk-stack-be-used-to-monitor-php-apps/ to see how to forward logs...
Should be pretty easy!

https://www.digitalocean.com/community/tutorials/adding-logstash-filters-to-improve-centralized-logging-logstash-forwarder

also bitnami-elk-5.3.0-0-linux-ubuntu-14.04.3-x86_64-ebs (ami-04e56012)

VERY nice forwarding guide here: https://www.linode.com/docs/databases/elasticsearch/visualizing-apache-webserver-logs-in-the-elk-stack-on-debian-8

...if we want to create our own ubuntu image (similar to what was done with the our own redis ubuntu image) https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04

You know what? Having put some thought into the effort involved here, this is way too much for v1. Basically, we should include notes in the guide on how to export all of the logs from the instances and call it a day. This is a super lightweight and easy approach that will get the users a ton of mileage.

Actually, I'm going to retrofit this issue for the logs exports :).

Ths work is covered in our new issue/task tracker at https://app.asana.com/0/346554951567668/346554951567703

Ths work is covered in our new issue/task tracker at https://app.asana.com/0/346554951567668/346554951567703


Add extra metadata parameters to code and docs

As described in #843 that I needed and stumbled upon. This PR adds extra metadata parameters to the code and docs. So now you can specify contact and license information as well as terms of service.
I tried to keep the naming of the parameters in line with the specification, but unfortunately license is a Python built-in, so I went with license_info instead.

@Kludex do you mind approving this PR? Thanks!

@tiangolo any ETA for approving this request? In my team we are waiting for this change.

Thanks @dkreeft! :rocket:
I updated it a bit, updated the type annotations, order of arguments, and the docs.
Thanks for your contribution! :coffee: :cake:
This will be available later today in FastAPI version 0.68.0 🔖🎉


qsc_project's get_manifest API is not efficient

@minestarks and @idavis have context.
We have some areas where get_manifest is either called twice, or redundantly called. The language service should be updated to use the same wasm.ProjectLoader interface as the debugger, and we should remove the need to call get_manifest before constructing the project loader, since that takes in getManifest as well.

I still think it's probably a good idea to call loadProject from the language service, but I wouldn't rush to do it since I kind of want to see how the code evolves. We're still fixing bugs and figuring things out and I'm not sure what exactly we need from the LS. I think we can close the issue though, it's a bit unactionable.


Use logical properties everywhere and avoid shorthand

Think these are the remaining physical properties.

This could help prevent developers using physical properties: https://github.com/csstools/stylelint-use-logical.
I've tried it locally and it seems to work well. Including pointing out where we have a couple of sneaky physical properties (https://github.com/libero/pattern-library/blob/master/source/css/sass/mixins/_typography.scss#L85 and https://github.com/libero/pattern-library/blob/master/source/css/sass/mixins/_typography.scss#L88)

Looks good. Stylelint does allow property blacklisting, but worth letting that handle it for us.


Deprecation exception with PHP 8

Hello!
After switching to PHP8.1, I am now getting a slew of deprecation errors, like this one:
Deprecated: Return type of flight\util\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /<REDACTED>/vendor/mikecao/flight/flight/util/Collection.php on line 170

For the end-user, this is easy enough to work around by using the following command before requiring the library:
error_reporting(error_reporting() & ~E_DEPRECATED);

The fastest, least friendly way to address this would be to update composer.json to indicate that PHP compatibility is limited to >8.
The fastest, friendliest way to address this would be to slap a temporary warning in the readme, with the suggestion to use error_reporting(error_reporting() & ~E_DEPRECATED); temporarily.
Perhaps there's a way to specify a recommended PHP version range, and then to conditionally warn a user about the relevant deprecation issue?
OR, maybe the codebase alterations are trivial?
EDIT: PR #439 is relevant.
EDIT2:
Another relevant exception:
During inheritance of ArrayAccess: Uncaught ErrorException: Return type of flight\util\Collection::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /users/ramos/www/worth-the-weight/vendor/mikecao/flight/flight/util/Collection.php:106

Deprecation errors have been fixed in this PR:
https://github.com/mikecao/flight/pull/439/commits/dd73a61c32e96b47d9414aeb522f9bbe764d0fd9
https://github.com/mikecao/flight/pull/439


KES is deprecated, migrate to ESO!

Hi! 👋
KES is officially deprecated
Are you a new user looking to start using KES?
Please take a look at the ESO instead!
KES = Kubernetes External Secrets (this repo)
ESO = External Secrets Operator (repo: external-secrets/external-secrets)
KES is under limited maintenance and the go rewrite ESO has come a long way and more than likely covers your use case, while doing it better at the same time. If it doesn't please raise an issue over there or even better contribute!
ESO offers better documentation, better configuration possibilities, uses modern dependencies, and is written in kubernetes community friendly Golang 😄
ESO can be found here:

Documentation: https://external-secrets.io/
Repository: https://github.com/external-secrets/external-secrets
Helm charts: https://artifacthub.io/packages/helm/external-secrets-operator/external-secrets
To help with migrations a CLI has been created kes-to-eso

KES does not have any dedicated or active maintainer at this time and is on limited life support (and has been for awhile).
As can be seen from some issues, there are tech debts in this project that are causing issues and some of the dependencies we depend on are no longer maintained. To replace them would have required a sizeable effort and is hard to motivate with the golang rewrite ESO having come a long way!
If you have any questions or so feel free to join the community over at #external-secrets in the Kubernetes slack!

This is an acceptable solution to my issues. While it's annoying to have to replace the KES engine, this new project looks promising.
thanks!

There's a tool WIP to ease migration path:
https://github.com/external-secrets/kes-to-eso
But I think most of it is still in a PR https://github.com/external-secrets/kes-to-eso/pull/1 but we'd love help testing it!

I think a deprecation notice on the main README is needed :)
https://github.com/external-secrets/kubernetes-external-secrets/pull/905

Would love to have the deprecation notice on artifact hub: https://artifacthub.io/packages/helm/external-secrets/kubernetes-external-secrets

Would love to have the deprecation notice on artifact hub: artifacthub.io/packages/helm/external-secrets/kubernetes-external-secrets

Should be fixed in 8.5.3 might take awhile before it shows up on artifacthub tho

Ah, there it is! Thank you! 😍

This is unfortunate, this project had a much better developer experience, was much quicker to get up and running quickly. Didn't need to create the AWS credentials in each namespace for pods to access external secrets. Just define the aws credentials in the default namespace once and you're up and running.

Hi,
The new repo is still at v0.x
When is it safe to migrate over?  Are there plans for a 1.0 release?

Hi,
The new repo is still at v0.x
When is it safe to migrate production deployments over? Are there plans for a 1.0 release?

Hi @cep21 ! Even though our release are still at v0.x, most of the providers are already graded stable. We are currently still in a v0.x mostly because our CRDs are still in alpha. We are aiming to release stable CRDs (and therefore a 1.0 release) by the end of this year.
I would still encourage you to see ESO nevertheless. As I already stated before, the reconciliation mechanism for most of the providers are considered stable (with a significant amount of e2e testing being ran against them).

Can this project be marked read-only/archived? I keep ending up on it from google, and seeing recent bot commit history doesn't help to disambiguate it from the active project.
Thanks!

@grrttedwards I suppose its time now!
Marking repo as archived, as of now :)


How i can use Autocomplete input in this package??

i tired to search about autocomplete component in this package but i did'nt found any thing about it

Duplicate of #195


feat: adding upsert api with for conditional insert and update

Initial work on the issue - https://github.com/hypertrace/document-store/issues/43
under discussion, and based on outcome, will raise final PR

So I actually just ran into (almost) this exact same requirement to support concurrent entity updates. The one aspect in the entity case that I think is missing is the actual current state. This is kind of a subset of avinash's comment: https://github.com/hypertrace/document-store/pull/45#discussion_r600404881
Basically, if I attempt to update something and it's rejected because the update is now stale, it would be helpful to have the current state as part of the response. Of course, we can fetch it after if that's not feasible, but it would save a round trip to return it directly (in other words, this is the same requirement that brought in the upsertAndReturn API).

So I actually just ran into (almost) this exact same requirement to support concurrent entity updates. The one aspect in the entity case that I think is missing is the actual current state. This is kind of a subset of avinash's comment: #45 (comment)
Basically, if I attempt to update something and it's rejected because the update is now stale, it would be helpful to have the current state as part of the response. Of course, we can fetch it after if that's not feasible, but it would save a round trip to return it directly (in other words, this is the same requirement that brought in the upsertAndReturn API).

As of now, it looked to me that both MongoDB and Postgres, have support for returning document if an operation is successful, but not on failure. Postgres support it using the RETURNING expression which is an extension to PostgresSQL - https://www.postgresql.org/docs/9.5/sql-insert.html

So I actually just ran into (almost) this exact same requirement to support concurrent entity updates. The one aspect in the entity case that I think is missing is the actual current state. This is kind of a subset of avinash's comment: #45 (comment)
Basically, if I attempt to update something and it's rejected because the update is now stale, it would be helpful to have the current state as part of the response. Of course, we can fetch it after if that's not feasible, but it would save a round trip to return it directly (in other words, this is the same requirement that brought in the upsertAndReturn API).

As of now, it looked to me that both MongoDB and Postgres, have support for returning document if an operation is successful, but not on failure. Postgres support it using the RETURNING expression which is an extension to PostgresSQL - https://www.postgresql.org/docs/9.5/sql-insert.html

Hmm - ok we can disregard. My use case actually doesn't require this as I built it out because entity upserts are merged - I have to fetch the value first to do that merge, so I'm just enforcing the condition at that time before proceeding to either create or update.


Implement Optimization Algorithms

[ ] Viterbi algorithm

Could you explain further?

Hi. I want to work on this. Can I have more information regarding this issue.??

@manrajgrover @junhouse @ashutosh-b-b
Has anyone done any work on this in the last 10 months? Or come across any specific use cases? I'm looking for somewhere to practice a few pull requests and reviews, and this looks like an interesting problem to work on.

Also Manraj if you've found a maintainer do you mind @mentioning them here too?

Hi @remes2000, are you maintaining this project? I've forked this repo and cloned from that for work on my local machine, and I now see that that means I'm pushing commits to my own repo. Granted I'm new to this, but it seems like merging pull requests from a forked repository would be more difficult than from a direct clone of this one.
Any advice on the best way to set this up for making contributions?

Hi. Yes, I currently take care of this project. First off all, You have to fork this repo and then clone it to your local machine. Then create a new branch by typing "git checkout -b [branch name]", then write some code and commit changes. After that push Your branch to your forked repository. Then You can create pull request. After that, I'll review your PR and decide if it's ready to be merged.
Remember to run "npm run test" and "npm run lint" commands, and to pull current master to your branch before sending PR. If something is unclear for You, feel free to contact me. I'll explain everything :)

Thanks for the explanation!

Hi @remes2000 is anyone still working on the case? If no, could you please explain to me a little more about the project, I'm a newbie and would like to contribute...

is this still open?


Textile backup causes dynmap to stall on backup

Probably other backup mods would also cause this. Presumably because they save all chunks at the same time.
https://github.com/Szum123321/textile_backup

Seemed to be just a shortage of RAM


Update CHANGELOG.md

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

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

Project coverage is 40.86%. Comparing base (efa13b2) to head (723b40b).

:exclamation:  There is a different number of reports uploaded between BASE (efa13b2) and HEAD (723b40b). Click for more details.
HEAD has 37 uploads less than BASE

Flag
BASE (efa13b2)
HEAD (723b40b)

macOS
3
1

unit
8
1

go-1.21.x
4
0

ubuntu
7
0

go-1.22.x
4
1

integration
4
0

ydb-23.3
3
0

go-1.23.x
4
0

windows
2
0

ydb-24.1
1
0

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1470       +/-   ##
===========================================
- Coverage   65.91%   40.86%   -25.05%
===========================================
  Files         350      349        -1
  Lines       36315    30561     -5754
===========================================
- Hits        23936    12488    -11448
- Misses      11297    17576     +6279
+ Partials     1082      497      -585

Flag
Coverage Δ

go-1.21.x
?

go-1.22.x
40.86% <ø> (-28.84%)
:arrow_down:

go-1.23.x
?

integration
?

macOS
40.86% <ø> (-0.13%)
:arrow_down:

ubuntu
?

unit
40.86% <ø> (-0.57%)
:arrow_down:

windows
?

ydb-23.3
?

ydb-24.1
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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


TypeError: e.toLowerCase is not a function

Error:
TypeError: e.toLowerCase is not a function wade:6:1485
	a https://unpkg.com/wade:6:1485
	s.process https://unpkg.com/wade:6:2116
	s https://unpkg.com/wade:6:1925

Code:
var entries = [
	{
	"title":"Example",
	"link":"Example"
	},	{
	"title":"Example",
	"link":"http://example.com"
	},	{
	"title":"Example",
	"link":"http://example.com"
	}
]
var search = Wade(entries)

Please note that Wade is a text-only search engine, and that you must give it an array of strings. In your case you're giving it an array of objects, which explains the error: objects don't generally have an toLowerCase function. see also #7

Yup, @MMeent is correct. An array of strings must be passed, as Wade only supports searching string arrays as of now.
That means your array will have to look more like:
["Example", "Another Example", "Last Example"]

Closing in favor or #7.


IDBFS syncing causes error when served from Github.

I use github pages to host webdemos for two projects:

Graphoon: http://rm-code.github.io/Graphoon/
LOVE-Example-Browser: http://love2d-community.github.io/LOVE-Example-Browser/

It seems like both of them crash at random. Sometimes everything works fine and sometimes it crashes with the following log:
Uncaught abort(9) at Error
    at jsStackTrace (http://rm-code.github.io/Graphoon/love.js:1:17162)
    at stackTrace (http://rm-code.github.io/Graphoon/love.js:1:17345)
    at abort (http://rm-code.github.io/Graphoon/love.js:24:13317)
    at Array.LDb (http://rm-code.github.io/Graphoon/love.js:17:239977)
    at rqb (http://rm-code.github.io/Graphoon/love.js:9:475594)
    at pqb (http://rm-code.github.io/Graphoon/love.js:9:475431)
    at oqb (http://rm-code.github.io/Graphoon/love.js:9:474004)
    at nqb (http://rm-code.github.io/Graphoon/love.js:9:473939)
    at __ATINIT__.push.func (http://rm-code.github.io/Graphoon/love.js:1:27935)
    at callRuntimeCallbacks (http://rm-code.github.io/Graphoon/love.js:1:20409)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.abort @ love.js:24LDb @ love.js:17rqb @ love.js:9pqb @ love.js:9oqb @ love.js:9nqb @ love.js:9__ATINIT__.push.func @ love.js:1callRuntimeCallbacks @ love.js:1ensureInitRuntime @ love.js:1callMain @ love.js:24(anonymous function) @ love.js:24doCallback @ love.js:1done @ love.js:1IDBFS.reconcile @ love.js:1(anonymous function) @ love.js:1IDBFS.getRemoteSet.IDBFS.getDB.index.openKeyCursor.onsuccess @ love.js:1
(index):99 [post-exception status] All downloads complete.Module.setStatus @ (index):99Module.monitorRunDependencies @ (index):91removeRunDependency @ love.js:1applyMemoryInitializer @ love.js:24xhr_onload @ love.js:1

Please let me know if you need more information.

Apparently the persistent filesystem stuff I put in works on the simple python server but not when served from Github's CDN. This is my first priority when I get a chance to look at it. In the meantime, this is the last known good commit if you wanna check it out and use the files from there: b76a48a8f2db789151c544996d44ad48df53f3df

Resolved by 55ad3d5.


MacOs make file fix

Description:
This pull request adds  a check , that just runs uname to find out the OS , in the make file to decide which command to run because the makefile would not run by default on MacOs because , MacOs uses python3 and pip3 command.

Hi @D0T7
I would suggest you either properly link python to a version 3 binary (no one should be using python 2 these days) or keep these changes in your local if that helps.


Staff pages follow ups

To keep staff page initial PR readable, we are deferring a few tasks for later these can be done in bulk or done as separate tickets:

[ ] Click to copy needs to be implemented
[ ] Implement roles connection
[ ] Form validations for invitation form
[ ] Form validation for staff details update form
[ ] Date of birth picker for staff details page
[ ] Error handling on all forms
[ ] Loader for details page
[ ] Loader for list page
[ ] Loading on click save

This is a follow up to #61


executeSwap() is an "always failing transaction"

Hello, I have the following contract. My questions are in a comment block. I'm a semi-experienced solidity person, but I can't get this function to execute no matter what I try. Any help is appreciated.
pragma solidity ^0.4.24;
import "./ERC20Interface.sol";
import "./KyberNetworkProxy.sol";

contract Demo{

	function Demo(KyberNetworkProxy _kyberNetworkProxyContract) public {
    	kyberNetworkProxyContract = _kyberNetworkProxyContract;
  	}
	//Assuming msg.value is sufficient, this function swaps the sent ether, for a maximum of "_dollars" worth of DAI
	function exchangeETHforDAI(uint _dollars) public{
		executeSwap(ETH_ERC20, msg.value, DAI_ERC20, msg.sender, _dollars*(10**18));
	}

	//************
	// MY PROBLEMS:
	//
	// 1) There is a type error when I compile if I pass in the un-casted token (i.e. DAI_ERC20_Address instead of DAI_ERC20).
	//		Passing the casted version compiles fine.
	// 2) Once the contract is deployed inside of Remix, calling the function with reasonable
	//		"msg.value"=82485875706214690 and "_dollars"=20 parameters gives the error
	//			"gas required exceeds allowance (6000000) or always failing transaction".
	//
	//	I can call "getConversionRates()" and it returns values just fine (the exchange rate is off, but it's the testnet afterall.)
	//		I have included all of the required contract dependencies...
	//		 	What could be the reason why this txn would always fail?
	//************

	//--------------------------
	//vars and functions required by Kyber docs---------------
	//--------------------------

	//falback function
	function() public payable {}

	//copied directly from the docs
	function getConversionRates(ERC20 srcToken, uint srcQty, ERC20 destToken) public view returns (uint, uint){
    	return kyberNetworkProxyContract.getExpectedRate(srcToken, destToken, srcQty);
  	}

  	//copied directly from the docs (comments omitted), used above
  	function executeSwap(ERC20 srcToken, uint srcQty, ERC20 destToken, address destAddress, uint maxDestAmount) public {
    	uint minConversionRate;
	    require(srcToken.transferFrom(msg.sender, address(this), srcQty));
	    require(srcToken.approve(address(kyberNetworkProxyContract), 0));
	    require(srcToken.approve(address(kyberNetworkProxyContract), srcQty));
	    (minConversionRate,) = kyberNetworkProxyContract.getExpectedRate(srcToken, destToken, srcQty);
	    kyberNetworkProxyContract.trade(srcToken, srcQty, destToken, destAddress, maxDestAmount, minConversionRate, 0);
	    Swap(msg.sender, srcToken, destToken);
  	}

  	//required addresses of tokens
  	address ETH_ERC20_Address = 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee;//eth proxy, 18 decimals
  	address DAI_ERC20_Address = 0xaD6D458402F60fD3Bd25163575031ACDce07538D;//ropsten, 18 decimals
  	address KyberNetworkProxy_Address = 0x818E6FECD516Ecc3849DAf6845e3EC868087B755;

  	//cast the token addresses as ERC20
  	ERC20 public ETH_ERC20 = ERC20(ETH_ERC20_Address); //kyber ether proxy
  	ERC20 public DAI_ERC20 = ERC20(DAI_ERC20_Address);

  	//copied directly from the docs
  	event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken);
  	KyberNetworkProxy public kyberNetworkProxyContract;

	//--------------------------
	//-- end/   vars and functions required by Kyber docs---------------
	//--------------------------
}

Hi, was answered in telegram. The tldr is that the manual is wrong.

so they didn't test the manual code???
:(
On Mon, May 20, 2019 at 6:39 PM yaronvel<EMAIL_ADDRESS>wrote:

Hi, was answered in telegram. The tldr is that the manual is wrong.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/KyberNetwork/smart-contracts/issues/408?email_source=notifications&email_token=ACNXTBL2TPWQKF5QSPWCLWDPWLA4VA5CNFSM4HODAC6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVZHOKQ#issuecomment-494040874,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACNXTBJZAUEKO73Z6R5SQHDPWLA4VANCNFSM4HODAC6A
.


Add MSI Analyzer Package

Create an MSI analyzer package using msiexec.exe. Add a detection to automatically use the package for files submitted with a .msi extension. (File magic is unreliable)

Thanks a lot, nice contribution.


Consider "nested" bundle support

Something like :bindsecret in refs could allow looking into bundles inside bundles.
This could simplify autowiring in Voyager and make bundle structure clearer? (thought bubble)

It will either reduce concurrency (now we need to wait until the whole bundle is ready until we proceed with things that depend on it) OR it will require us to flatten the bunle-in-bundle-in-bundle... into a single tree. I don't see how either of these options is better than the status quo?

I was imagining option 1 (i.e. how it would work currently - we could nest bundles right now, after all... just no nice way to look up objects inside the bundles once they're resolved). In practice, I don't think the 'concurrency' loss will be a big problem, and it makes the system as a whole easier to reason about/visualise... much like the state layer does? Actually (more thought bubbles), one could probably replace that layer entirely with a 'state' smith pseudo-plugin that generated bundle a bundle (ok, ok, I'll stop, but it would be cool for people to decompose only one part of their structure...).
I was also thinking it might make the autowiring functions look nicer and make them easier to write for third parties, but probably not (could make them less flexible - need to think more).
Anyway, this and the kube object validation occured to me on on the train and missed my stop, so I had to comment :)

Oh damn, now I keep thinking... one could actually get a long way with a setup like:

ostache/json-e template support as a smith resource (i.e. object, plugin OR template) to replace autowiring functions (templates can be registered as SmithTemplate CRDs)
allowing one to specify in the template what input parameters you require from the platform (cf rps-user-cloudformation) and your parameter schema
these input parameters can come from 3 config maps (one for Smith, one for namespace, one for state), for different kinds of config (environment/region level, group level, service level); immediate fail if they don't exist

Feel free to delete this coomment that is now super-unrelated to this issue. I know, I know, you want Smith to be simple/low-level.


no comments table

Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'videotube.comments' doesn't exist in C:\xampp\htdocs\includes\classes\Video.php:231 Stack trace: #0 C:\xampp\htdocs\includes\classes\Video.php(231): PDOStatement->execute() #1 C:\xampp\htdocs\includes\classes\CommentSection.php(20): Video->getNumOfComments() #2 C:\xampp\htdocs\includes\classes\CommentSection.php(16): commentSection->createCommentSection() #3 C:\xampp\htdocs\watch.php(33): commentSection->create() #4 {main} thrown in C:\xampp\htdocs\includes\classes\Video.php on line 231

The error is being thrown because the comments table does not exist in the videotube database. Here are some steps you can take to resolve this issue:
Check Database Schema: Make sure that the comments table actually exists in the videotube database. You can do this by logging into your database management tool (like phpMyAdmin) and checking the list of tables.
Check SQL Query: Look at the SQL query on line 231 of Video.php file and make sure it is correct. If the table name is misspelled or if there's any other error in the query, that could be causing the issue.
Create Table: If the comments table doesn't exist, you'll need to create it. You should find the SQL schema for your application and run the necessary SQL commands to create the comments table with the correct structure.
Once you've taken these steps, the error should be resolved. If you're still seeing the error, you may need to review your application's code and database schema to make sure everything is set up correctly.

The error is being thrown because the comments table does not exist in the videotube database. Here are some steps you can take to resolve this issue:
Check Database Schema: Make sure that the comments table actually exists in the videotube database. You can do this by logging into your database management tool (like phpMyAdmin) and checking the list of tables.
Check SQL Query: Look at the SQL query on line 231 of Video.php file and make sure it is correct. If the table name is misspelled or if there's any other error in the query, that could be causing the issue.
Create Table: If the comments table doesn't exist, you'll need to create it. You should find the SQL schema for your application and run the necessary SQL commands to create the comments table with the correct structure.
Once you've taken these steps, the error should be resolved. If you're still seeing the error, you may need to review your application's code and database schema to make sure everything is set up correctly.

An AI answer


Checking node logs for ERROR

Checking for errors in node logs

I don't see the need for the changes to cluster.py at all.

I'd prefer to wait to merge this until you've finished up the other half in the validation harness. If you end up wanting to change the output format here based on your other work, it's better to isolate it into one PR

There are still changes to cluster.py that shouldn't be made


(protoc) fix the staled version problem

Fixed the google protocol buffer library staled automatic update problem (issue #1588). Also removed explicit shimming generation and removal as @majkinetor and @AdmiringWorm suggested in pull request #1345.
Description

I did not use streams, because, compared to the chromium package, this one relies on the github release page and the prerelease version is not guaranteed to even exist within the first few pages, and I feel like it might be tricky to handle these "nullable" values in streams. As a compromise, I am now limiting the download link regex match to search for stable versions only.
I removed the call to Install-BinFile and the script chocolateyBeforeModify.ps1 as suggested in pull request #1345.

Motivation and Context

Fixes issue #1588.
How Has this Been Tested?

Tested locally.
Screenshot (if appropriate, usually isn't needed):
Types of changes

[x] 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)
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[ ] My change requires a change to documentation (this usually means the notes in the description of a package).
[ ] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[x] All files are up to date with the latest Contributing Guidelines
[ ] The added/modified package passed install/uninstall in the chocolatey test environment.
[x] The changes only affect a single package (not including meta package).

:white_check_mark: Package verification completed without issues. PR is now pending human review


Added recommendations for motions.

@emanuelschuetze You can use the new config variable in the template to set a string like "Antragsvorbereitungskommission". :-)
The connection the the new motion comment fields require merging of this feature first.

Ok, some remarks.

All done. I had to rebase everything. Please test again.

Ok. looks good.


Mac OS High Sierra missing Boost Library

This error causes wallet to crash on open for some users:
Dyld Error Message:   Library not loaded: @loader_path/libboost_system-mt.dylib   Referenced from: /Applications/StoneCoin-Qt.app/Contents/Frameworks/libboost_thread-mt.dylib   Reason: image not found
Can be fixed for now by installing homebrew and boost:
Hombrew how to:
http://osxdaily.com/2018/03/07/how-install-homebrew-mac-os/
Run in terminal:
brew install boost

Closing this issue, feel free to contact the team with any questions.


Homebrew fails to load

A homebrew that was fine yesterday (March 18,2017) doesn't display today. I'm seeing the blue background, the top menu (with v0.0.0), and the edit menu. Both windows (display and code) are empty. I also cannot open the Edit Brew Metadata window. When I go to the Shared page and select Source, the code is there but also not displayed.
Additional Details
Share Link :
http://homebrewery.naturalcrit.com/share/Sy7c7kjU
or
Brew code to reproduce : Click to expand
PASTE BREW CODE HERE

Duplicate of #655


Doc example is invalid

I attempted to follow the docs to extract raw reads:

but it fails with the following error:

Is it possible to extract raw reads and would y'all mind amending the docs to reflect how one might do so or what one should do instead?

A second thing: it seems input files follow the command rather than preceding the flagged options. Would be nice if the Github docs reflected this as well.


Allow wireguard connections

While using your role I discovered that setting up wireguard tunnels is not supported yet.
I added capabilities to configure wireguard tunnel interfaces with the networkmanager role.

Hi Paul, thanks for the contribution. I am currently traveling and can't properly look through it right now, but I come back to it. On first glance it looks good

I squashed the commits and made some changes in https://github.com/aisbergg/ansible-role-networkmanager/commit/60a6a8d264564e160c7d48a91bd5d8e2328e6098 . I will create a new release.

See https://github.com/aisbergg/ansible-role-networkmanager/blob/main/molecule/default/converge.yml for an example for configuring wireguard (I changed the variable naming)


Fix segfault when there's no root node

previously this caused a segfault; a separate exception string is used as accidentally parsing an empty document seems like a reasonably common mistake
inline changes weren't necessary in the end, but it's a good idea anyway

Codecov Report

Merging #86 (0f8a386) into master (146670a) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
+ Coverage   89.51%   89.59%   +0.07%
==========================================
  Files         115      115
  Lines        5534     5536       +2
==========================================
+ Hits         4954     4960       +6
+ Misses        580      576       -4

Impacted Files
Coverage Δ

include/adm/private/rapidxml_utils.hpp
100.00% <100.00%> (ø)

src/private/xml_parser.cpp
90.53% <100.00%> (+0.04%)
:arrow_up:

src/parse.cpp
100.00% <0.00%> (+50.00%)
:arrow_up:

Continue to review full report at Codecov.

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


iOS 15.4 - Xamarin.iOS - Crash when scanning with AVCaptureEngine

Hello.
Once I updated my device to iOS 15.4, I get the following runtime exception when trying to scan using the AVCaptureEngine.
I use the latest available stable version 2.4.1.
System.Exception: System.NotSupportedException: Codabar has no associated enum value on this platform.
at AVFoundation.AVMetadataObjectTypeExtensions.GetValue (Foundation.NSString constant) [0x0015b] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/ios/native/AVFoundation/AVMetadataObjectType.g.cs:420
at AVFoundation.AVMetadataObject.ArrayToEnum (Foundation.NSString[] arr) [0x00016] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/AVFoundation/AVMetadataObject.cs:51
at AVFoundation.AVCaptureMetadataOutput.get_AvailableMetadataObjectTypes () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/AVFoundation/AVCaptureMetadataOutput.cs:39
at ZXing.Mobile.AVCaptureScannerView.SetupCaptureSession () [0x0041b] in <04e0b9ffeac840b494808f043a3ab5ba>:0
at ZXing.Mobile.AVCaptureScannerView.b__36_0 () [0x00001] in <04e0b9ffeac840b494808f043a3ab5ba>:0
at Foundation.NSActionDispatcher.Apply () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSAction.cs:62
at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_bool(intptr,intptr,intptr,intptr,bool)
at Foundation.NSObject.InvokeOnMainThread (System.Action action) [0x00007] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSObject2.cs:619
at ZXing.Mobile.AVCaptureScannerView.StartScanning (System.Action`1[T] scanResultHandler, ZXing.Mobile.MobileBarcodeScanningOptions options) [0x00047] in <04e0b9ffeac840b494808f043a3ab5ba>:0
at ZXing.Mobile.AVCaptureScannerViewController.ViewDidAppear (System.Boolean animated) [0x0006a] in <04e0b9ffeac840b494808f043a3ab5ba>:0
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)

I also got this, and the a workaround would be to explicitly set the PossibleFormats options value to the list of iOS-supported barcode formats. Then the else block that accesses AvailableMetadataObjectTypes isn't called:
https://github.com/Redth/ZXing.Net.Mobile/blob/f8abca8d7e4d0e1e76b6ba6b9418545aa2085036/ZXing.Net.Mobile/iOS/AVCaptureScannerView.ios.cs#L238
I don't know what the solution would be, since the crash happens inside AVCaptureMetadataOutput.cs, which is a Xamarin.iOS project, and isn't contained in ZXing.Net.Mobile.

I had a similar problem (not using ZXing but rather iOS built-in scanning) with the same error message (Codabar has no associated enum value on this platform) but I could solve it by simply rebuilding the application with the latest version of Xamarin.iOS (15.8).

Thanks for the update! It seems the Xamarin.iOS - Xcode 13.3 update added some other barcodes with AVFoundation as well:
https://github.com/xamarin/xamarin-macios/pull/14325

Thanks for the update! It seems the Xamarin.iOS - Xcode 13.3 update added some other barcodes with AVFoundation as well: xamarin/xamarin-macios#14325

Thank you all for your quick replies.
To overcome this issue, I stopped using the AVCaptureEngine through the scan(bool useAVCaptureEngine) method.
Instead, now I am using the (custom I suppose) implementation of the ZXing.Net.Mobile, so I can keep scanning codabar barcodes.
To your knowledge, is there any downside to not use the AVCaptureEngine through the scan(bool useAVCaptureEngine) method?


Fix #1490: Fix broken sample-data ignestion due to User classes refac…

…tored
Describe your changes :

I worked on the ..... because ...

Type of change :

[x] Bug fix

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have performed a self-review of my own.
[ ] I have tagged my reviewers below.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

LGTM


Rotation

how rotation only and save image Without crop?

Not at the moment, PR is welcome.

ok. thanks


jupyter related packages updates 2024-02-14

Description of changes
Update jupyter-related packages at once to avoid building hundreds of packages over and over again.
This PR is based on the commits generated by the following command.
nix search nixpkgs#python311Packages 'ipython|jupyter|notebook' --json | jq -r 'keys | .[]' | cut -d . -f 3,4 | xargs -n 1 nix-update --commit

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 288582 at 3cc0e126 run on x86_64-linux 1

9 packages marked as broken and skipped:

python311Packages.elegy
python311Packages.jupyter-contrib-nbextensions
python311Packages.kmapper
python311Packages.labelbox
python311Packages.openllm
python311Packages.scikit-tda
python311Packages.stytra
python311Packages.treex
python312Packages.nbdev

30 packages failed to build:

coconut (python311Packages.coconut)
napari (python311Packages.napari)
open-interpreter (python311Packages.open-interpreter)
python311Packages.ax
python311Packages.bambi
python311Packages.cirq
python311Packages.dalle-mini
python311Packages.distrax
python311Packages.dm-haiku
python311Packages.ffcv
python311Packages.flax
python311Packages.glueviz
python311Packages.jupyterlab-git
python311Packages.k-diffusion
python311Packages.nbdime
python311Packages.pydeck
python311Packages.pymc
python311Packages.pytorch-pfn-extras
python311Packages.qcodes-contrib-drivers
python311Packages.rlax
streamlit (python311Packages.streamlit)
python311Packages.textacy
python311Packages.textnets
python311Packages.tf2onnx
python311Packages.vqgan-jax
rocmPackages.mivisionx (rocmPackages.mivisionx-hip)
rocmPackages.mivisionx-cpu
rocmPackages.mivisionx-opencl
tts
wolfram-notebook

144 packages built successfully:

cantor
deface
easyocr (python311Packages.easyocr)
ihaskell
inkcut
inkscape-extensions.inkcut
jupyter
jupyter-all
labplot
manim
nbqa
opsdroid
python311Packages.altair
python311Packages.ansible-kernel
python311Packages.anywidget
python311Packages.arviz
python311Packages.atomman
python311Packages.augmax
python311Packages.bash-kernel
python311Packages.batchspawner
python311Packages.bqplot
python311Packages.bqscales
python311Packages.calysto
python311Packages.calysto-scheme
python311Packages.cirq-ft
python311Packages.cufflinks
python311Packages.datashader
python311Packages.devito
python311Packages.dockerspawner
python311Packages.einops
python311Packages.encodec
python311Packages.experiment-utilities
python311Packages.fastai
python311Packages.folium
python311Packages.gradio
python311Packages.gradio-client
python311Packages.gradio-pdf
python311Packages.ilua
python311Packages.insightface
python311Packages.ipycanvas
python311Packages.ipydatawidgets
python311Packages.ipykernel
python311Packages.ipympl
python311Packages.ipynbname
python311Packages.ipyniivue
python311Packages.ipyparallel
python311Packages.ipytablewidgets
python311Packages.ipyvue
python311Packages.ipyvuetify
python311Packages.ipywidgets
python311Packages.jupyter
python311Packages.jupyter-book
python311Packages.jupyter-c-kernel
python311Packages.jupyter-collaboration
python311Packages.jupyter-console
python311Packages.jupyter-contrib-core
python311Packages.jupyter-lsp
python311Packages.jupyter-nbextensions-configurator
python311Packages.jupyter-server
python311Packages.jupyter-server-fileid
python311Packages.jupyter-server-mathjax
python311Packages.jupyter-sphinx
python311Packages.jupyterhub
python311Packages.jupyterhub-ldapauthenticator
python311Packages.jupyterhub-systemdspawner
python311Packages.jupyterhub-tmpauthenticator
python311Packages.jupyterlab
python311Packages.jupyterlab-lsp
python311Packages.jupyterlab-server
python311Packages.jupyterlab-widgets
python311Packages.jupytext
python311Packages.layoutparser
python311Packages.lightparam
python311Packages.livelossplot
python311Packages.memestra
python311Packages.metakernel
python311Packages.mkdocs-jupyter
python311Packages.mmcv
python311Packages.myst-nb
python311Packages.napari-console
python311Packages.nbclassic
python311Packages.nbconflux
python311Packages.nbconvert
python311Packages.nbdev
python311Packages.nbexec
python311Packages.nbsmoke
python311Packages.nbsphinx
python311Packages.nbval
python311Packages.nikola
python311Packages.nix-kernel
python311Packages.notebook
python311Packages.notebook-shim
python311Packages.notedown
python311Packages.oauthenticator
python311Packages.onnx
python311Packages.onnxconverter-common
python311Packages.onnxmltools
python311Packages.onnxruntime-tools
python311Packages.orange3
python311Packages.osmnx
python311Packages.papermill
python311Packages.pdfplumber
python311Packages.phik
python311Packages.potentials
python311Packages.pweave
python311Packages.pygmo
python311Packages.pyls-memestra
python311Packages.pymoo
python311Packages.qcodes
python311Packages.qgrid
python311Packages.qtconsole
python311Packages.rotary-embedding-torch
python311Packages.schemdraw
python311Packages.scikit-rf
python311Packages.skl2onnx
python311Packages.spacy
python311Packages.spacy-loggers
python311Packages.spacy-lookups-data
python311Packages.spacy-transformers
spyder (python311Packages.spyder)
python311Packages.spyder-kernels
python311Packages.testbook
python311Packages.thinc
python311Packages.tsfresh
python311Packages.unidic
python311Packages.unstructured-api-tools
python311Packages.vector
python311Packages.vega
python311Packages.wasabi
python311Packages.weasel
python311Packages.widgetsnbextension
python311Packages.xarray-einstats
python311Packages.ziafont
python311Packages.ziamath
python312Packages.jupyterlab-widgets
python312Packages.widgetsnbextension
quarto
rocmPackages.migraphx
rstudio
rstudio-server
rstudioServerWrapper
rstudioWrapper
sage
sageWithDoc

There is no regression related to this PR.


Added scroll progress indicator bar

Fixes Issue🛠

Closes #1695
Description👨💻
A progress bar is a visual representation of the completion status of a task or process. It typically consists of a horizontal bar divided into segments, with each segment representing a portion of the total progress. The length of the filled portion of the bar corresponds to the completed percentage.
Type of Change📄

[X] Style (non-breaking change which improves website style or formatting)

Checklist✅

[X] I am an Open Source contributor
[X] I have performed a self-review of my code
[X] My code follows the style guidelines of this project

Screenshots/GIF📷
https://github.com/user-attachments/assets/ddade299-1265-483b-a0d5-4c2da70f0569

@Rakesh9100 please review the PR

@Rakesh9100 please review the PR

@Rakesh9100 please review the PR

@Rakesh9100 please review the PR

@Rakesh9100 please review the PR

@Rakesh9100 please review the PR

@Rakesh9100 please review the PR

@Rakesh9100 PR looks good but issue is not assigned.

@Rakesh9100 please review the PR

@Rakesh9100 please merge this if u like it , if any changes pls do mention.

@Rakesh9100 please merge this if u like it , if any changes pls do mention.

Please also include it on every other page such as About, Contributors, etc. @Anjaliavv51

@Rakesh9100 please review the changes and merge it.

@Rakesh9100 please review the PR

@Rakesh9100 please review the PR

The scroll to top button is distorted, pls fix @Anjaliavv51

Also, progress bar is still not added in FAQ and Contact page, you can check the deploy preview or your local files and then make the proper commits @Anjaliavv51

@Rakesh9100 please review the PR.


I have added weather app -frontend -Design

*Weather app Design Using HTML, CSS
Preview:

@simranquirky yeh sure I will try


Android Redirect

Hi,
Same code works on iOS, but on android neither Google nor Facebook redirecting back to client app. I have added AndroidManifest.xml scheme as specified.
<activity
        android:name=".MainActivity"
        android:launchMode="singleTask"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
          <intent-filter>
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="com.XXXXXXXXX" />
          </intent-filter>
          <intent-filter>
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data android:scheme="fbXXXXXXXXXXXXX" />
          </intent-filter>
      </activity>

I am using same  iOS AppId, Callback for Android (For Google, Facebook). Hopefully, same iOS credential for Google and Facebook works on Android ? Am i missing anything on Android ?

Hopefully, same iOS credential for Google and Facebook works on Android ?

Yes - you can use the same credentials

Am i missing anything on Android ?

Your AndroidManifest.xml looks good, so I can't see any reason why the deep links back to the android app wouldn't work.

Yes it didn't work, touch button action do bring Google and Facebook page login happen and consent page appear but would not return to the app , for Google it goes to Google page and Facebook after consent stay at white background. How should I debug it ?

@adamjmcgrath I tried your app ReactNativeSimpleAuthExample with my AppId, does not work either, not able to bring my app after consent page.

@adamjmcgrath So, here is another news, i tried earlier with gynemotion emulator that had only web view tester client that was not working at all in redirecting back to client app. However, i installed emulator using Android Studio that has chrome as well as web view tester, chrome does work on Android in redirecting back to app but not web view tester.

ok, thanks for checking. I'm not familiar with the web view tester client - do you mean the "Browser" app that comes on Android?

So the browser app (Chrome or Other browser) works fine but Webview client in emulator does not work.

ok, thanks for the info - I'll leave this open in case someone has any insight on how to fix

similar things happens to me. IOS works just fine.
On Android after returning from the FB page (closing the webview) it does not fire the callback.
Not even an error, nothing.
Any idea?

@valinaga try with emulator that has native browser either chrome or something else, Google redirect does not work with webview user agent.

@jainh I trust that the emulator works, but at the end, I need it to work on the device. Is there a way to trigger open the default browser instead of webview?
Thanks for help.

@valinaga  - the library uses Linking.openUrl which should open the default browser on the device or emulator you are using. What @jainh was suggesting was that you make sure you're using a device or emulator which doesn't have a webview client (apparently Genymotion does this?) as the default browser as there seems to be an issue with that.
If your issue is not that, you could check that you have android:launchMode="singleTask" in the activity tag of your AndroidManifest.xml, eg https://github.com/adamjmcgrath/ReactNativeSimpleAuthExample/blob/master/android/app/src/main/AndroidManifest.xml#L21

@adamjmcgrath Thanks a lot! It's working now just fine.

chrome does work on Android in redirecting back to app but not the web view tester

Going to close this bug as I don't see myself adding support for the web view tester


[Question] [Code-review] Get user id from reference token in API

My setup,

An IdentityServer using MVC Identity to store the Users, created with dotnet new mvc -au Individual and applying the http://docs.identityserver.io/en/release/quickstarts/0_overview.html tutorial, running in localhost 5000.
An Ionic App (basically Angular2), but now I'm using postman to do tests.
A WEB API, created with dotnet new webapi, running in localhost 5001.

The IdentityServer resources and clients configuration is the following, notice that I'm using reference tokens:
   public static IEnumerable<IdentityResource> GetIdentityResources() {
        return new List<IdentityResource>{ new IdentityResources.OpenId() };
    }

    public static IEnumerable<ApiResource> GetApiResources() {
        return new List<ApiResource>{
            new ApiResource("api_resource", "API Resource") {
                Description= "API Resource Access",
                ApiSecrets= new List<Secret> { new Secret("apiSecret".Sha256()) },
            }
        };
    }

    public static IEnumerable<Client> GetClients() {
        return new List<Client>{
            new Client {
                ClientId= "angular-client",
                ClientSecrets= { new Secret("secret".Sha256()) },
                AllowedGrantTypes= GrantTypes.ResourceOwnerPassword,
                AllowOfflineAccess= true,
                AccessTokenType = AccessTokenType.Reference,
                AlwaysIncludeUserClaimsInIdToken= true,
                AllowedScopes= { "api_resource" }
            }`

The password and user is send with postman and the token received is send to the WEB API also with postman, something like call localhost:5001/v1/test with the option bearer token .
In the API Startup, in ConfigureServices I'm adding the lines below
   services.AddAuthentication("Bearer")
            .AddIdentityServerAuthentication(options =>
            {
                options.Authority= "http://localhost:5000";
                options.ApiName= "api_resource";
                options.ApiSecret = "apiSecret";
            });`

And I'm getting the Id of the user inside the controller as follows:
public async Task<IActionResult> Get(int id) {
    var discoveryClient = new DiscoveryClient("http://localhost:5000");
        var doc = await discoveryClient.GetAsync();

        var introspectionClient = new IntrospectionClient(
            doc.IntrospectionEndpoint,
            "api_resource",
            "apiSecret");

        var token= await HttpContext.GetTokenAsync("access_token");

        var response = await introspectionClient.SendAsync(
            new IntrospectionRequest { Token = token });

        var userId = response.Claims.Single(c => c.Type == "sub").Value;
}

The question itself is if I'm using the right path to get the Id from the reference token, because now It works but I don't want to miss anything, specially thinking that is a security concern.

This seems to be a general question about IdentityServer - not a bug report or an issue.
Please use one of the our free or commercial support options
See here for more details.
Thanks!

Sorry for pollute the issues board, @brockallen this is the question in stackoverflow.
CC: @leastprivilege because I'm using IdentityModel and the IntrospectionClient, (to be precise the IntrospectionResponse) don't seems to have an extension method to get user Id specific claim, that's why I have the felling that I'm missing something, plus there is the OAuth2Introspection repository that make some noise to me.
Thanks guys, excellent work!


useEDS: Load MaterialCommunityIcons

Package / App
MAD Components
Description
Load MaterialCommunityIcons in useEDS to make sure icons are preloaded.
Alternatives
No response
Other info
No response

@dansvend Do you have any documentation on what to use for preloading? I can't find information on it in the expo vector icons docs

@dansvend Do you have any documentation on what to use for preloading? I can't find information on it in the expo vector icons docs

I see we use useFonts in useEDS.
This is the code in useCachedResources for preloading fonts that was initialised in an Expo SDK 47 project where switching FontAwesome with MaterialCommunityIcons does the trick.
// Load fonts
await Font.loadAsync({
  ...FontAwesome.font,
  'space-mono': require('../assets/fonts/SpaceMono-Regular.ttf'),
});

Duplicate of #277


[release-22.11] esphome: 2022.10.2 -> 2022.11.4

Backport #203910 #200382
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Ah, no. We're crossing the monthly boundary. Let's not do that.


Allow cloned modules to propagate arbitrary data through immutable pointers

Support propagating arbitrary data between cloned modules by blindly
copying pointers tagged with blueprint:"immutable_ptr".  The type
of the property must be a pointer, and the value referenced to must be
nil or never changed, as the value will be shared by multiple modules.
Unfortunately Go has no way to enforce immutability on a type, so this
has to be on the honor system.
Test: TestCloneProperties, TestCloneEmptyProperties, TestZeroProperties, TestExtendProperties
Change-Id: I488de0005c7883e5180b7ffeb2d69e4d1f9aea44

I'm going to close this one, I think anything this could be used for would be better handled with Providers from #309.


vectorized version

Is that possible to get a vectorized python version?

What do you mean exactly? Maybe a function to compute rolling spreads as proposed in https://github.com/eguidotti/bidask/pull/8?

@eguidotti
The edge procedure gets a list of open, high, low, close, and returns a number, right? the spread.
Imagine i want to do this to all the expending subsets of the list.
In other words, and efficient way do to that:
[edge(open[:i], high[:i], close[:i], low[:i]) for i in range(len(open))]

I prefer not to add complexity in the implementation here to maintain consistency with the implementations in other languages. Hopefully, your solution should already be fast enough


Proxy configuration is extensible for custom metadata on routes, destinations etc

There are several *Options types specifying parameters of different providers and policies like CookieSessionAffinityProviderOptions, ConsecutiveFailuresHealthPolicyOptions, TransportFailureRateHealthPolicyOptions etc. In the essence, they are part of the YARP configuration, but currently it's not possible to define them through the generic config provider mechanism. They can be set and changed through code only. There are some ad hoc workarounds to this issue created for some scenarios (e.g. health check policies), but there is a solid need for a well designed *Options configuration mechanism.
We should design and implement a proper *Options configuration subsystem.

Right, configuration metadata is a bit of a hack in how it gets manifested as a strongly typed object. We should have a system where configuration metadata is properly represented as a strongly typed object for consumption when various components are manifested.

Duplicate of #1709


docs: update blog tutorial for v2 routes

@ryanflorence requested some help with updating the tutorials to v2 routing, so here's the Blog tutorial:
https://discord.com/channels/770287896669978684/940264701785423992/1094007493098741911

Help! Anybody in here willing to take some time to check the tutorials (blog and jokes) and make sure any references to route files names match up to the new route convention?

Duplicate of #5959


Implementing over commitment

[x] Model

[x] Forms

[x] View (Table in ResourcePool + List Attribute from ResourcePool)

[x] Test model

[x] Test form

[x] Documentation

[ ] Initial value at creation for over commitment
[ ] Doc for taggit
[ ] Round with no decimal
[ ] Fix delete message on RG/RP (missing   in RG)
[ ] Change help text to label below input field
[ ] Factorize RG/RP form for edit/create
[ ] Fix "for" attribute in label tag ( <label for="{{ field.id_for_label }}"...>) Click on label will bring you to the input

Very good job done here. Thanks.
Code - Doc - Tests reviewed. All ok.
This is definitely an important feature for the v1.


#71 - A11y fixes

Closes #71
Fixes Issue
Closes #71
Changes proposed
Done:

[x] small color changes for readability
[x] added 1 aria label where a link was empty

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots
Can be seen on #71
Note to reviewers
Had some issues with creating the PR because my version was already 19 commits behind 😆 I hope this works

:/ I'm too much of a noob wit Git to know how to solve this conflict

:/ I'm too much of a noob wit Git to know how to solve this conflict

I think I have resolved the conflict, but I hope merging works fine. Haha, I am pretty much a noob sometimes too. What happened is, while you were away, updates were made to the remote, but these weren't synced to your local. If you clone a repo, it is always advisable to do git pull before you start work on it so that it pulls the new changes from the remote.

:/ I'm too much of a noob wit Git to know how to solve this conflict

I think I have resolved the conflict, but I hope merging works fine. Haha, I am pretty much a noob sometimes too. What happened is, while you were away, updates were made to the remote, but these weren't synced to your local. If you clone a repo, it is always advisable to do git pull before you start work on it so that it pulls the new changes from the remote.

I did pull, you just were so busy this afternoon. I already made the changes this morning without committing while you were merging 😆

:/ I'm too much of a noob wit Git to know how to solve this conflict

I think I have resolved the conflict, but I hope merging works fine. Haha, I am pretty much a noob sometimes too. What happened is, while you were away, updates were made to the remote, but these weren't synced to your local. If you clone a repo, it is always advisable to do git pull before you start work on it so that it pulls the new changes from the remote.

I did pull, you just were so busy this afternoon. I already made the changes this morning without committing while you were merging 😆

Welp. This repo is going fast ahead 😂 I merged your PR, but vercel and github seem to have deployment issues. Once they fix it, we'll see the awesome changes u made


No adaptation navigation bar

Hi @huangboju!
Sorry for the late reply.
Could you provide more information on this issue?
Thanks!
Ruslan

@huangboju ping

If under nav，it is frame not ok

@huangboju What do you mean by "its frame is not ok"?

@huangboju ping

At the moment, for me, everything looks as it should. So, I will close the issue.
If you have additional information, feel free to reopen it.


Any resolution change on Jetson Nano  with C270 don't work

If I change the USB camera settings to anything but 640x360 it fails to start up after I restart docker-compose.
seen 64, trained: 32012 K-images (500 Kilo-batches_64)
video file: v4l2src device=/dev/video0 ! video/x-raw, framerate=30/1, width=800, height=448 ! videoconvert ! appsink
[ WARN:0] global /usr/src/app/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global /usr/src/app/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /usr/src/app/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
I've tried 1280x720, 640x480, 800x600, 800x448 and some others. I'm using a Logitech C270 camera. If I change it back to the normal resolution it starts up fine.
Any ideas?

I assumed you followed https://github.com/opendatacam/opendatacam/blob/master/documentation/CONFIG.md#change-webcam-resolution and looked the video resolution supported by your webcam ?
not sure how to help much more.. maybe you can try to debug your gstreamer pipeline outside OpenDataCam, please see: http://www.einarsundgren.se/gstreamer-basic-real-time-streaming-tutorial/

Yes I did double check that and was trying resolutions from there. I'll look at the debug. It's not a huge deal just would be nice to push it above the 400x400 range.  I'll give the debug a change. Maybe try out my csi camera and see if it has the same issue or not either.

Please make sure you read the limitations on using CSI with Docker: https://github.com/opendatacam/opendatacam/blob/master/documentation/CONFIG.md#run-from-raspberry-pi-cam-jetson-nano :-)

closing due to inactivity


Wide Scope

Is there a way to make Action or Context Action work not only on .cs and .vb files but also on all file types such as .txt and .json?

AFAIK there is no way to create a context action for unsupported languages, but you can create a regular IExecutableAction, get the ITextControl from the IDataContext and make the changes you want (assuming you are talking about ReSharper)

I'm sorry, but would you please give me an example?

Sure, you can look at the action with dotPeek, this action works in txt files
JetBrains.ReSharper.Features.Intellisense.TextEditor.JoinLinesAction

I mentioned in the first message that the approach provided only works for ReSharper.
We already have the feature you want in the product.
https://www.jetbrains.com/help/resharper/Options_Source_Browsing.html
Unfortunately the UI is not yet implemented in Rider. As workaround you can configure your pattern in ReSharper, save to .dotSettings file and use it in Rider. Related ticket: https://youtrack.jetbrains.com/issue/RIDER-69445

Okay, Thanks for your help.

I am sorry, but I ask one more question.
I organized the folder as shown here, created the archive, and installed the plugin using "Install Plugin from Disk...", but it doesn't work even with standard files.
I would appreciate it if you could tell me what I did wrong.
https://rider-support.jetbrains.com/hc/en-us/articles/115001610564-How-to-repack-ReSharper-extension-to-Rider-plugin


Feature request: specify the metrics port for default config

Our container serves metrics at either port 9090 or 2112. I see that the default configuration expect the port to be 8080.
Currently I don't see an option to customize the metrics port. There is another option of specifying a whole collector config, but then I lose all the nicety of the default config.
Can we please allow specifying the metrics port through an env var like METRICS_PORT? If this approach sounds good, I would be happy to help add it.

In order to configure the sidecar to scrape another port or path, you need to add a config that will look like:
apiVersion: monitoring.googleapis.com/v1beta
kind: RunMonitoring
metadata:
  name: <NAME>
spec:
  endpoints:
  - port: <PORT>
    path: /metrics
    interval: 30s

And use secret manager to store this custom configuration and have the sidecar use it (mounting the secret as a volume), docs here: https://cloud.google.com/stackdriver/docs/managed-prometheus/cloudrun-sidecar#sidecar-intro
We're evaluating whether its reasonable to have the config )like above) be stored as an env variable instead, in something like RUN_GMP_CONFIG, to avoid using secret manager. Would that help this use case as well?

https://github.com/GoogleCloudPlatform/run-gmp-sidecar/pull/23 should solve this as well - list of ports.

Thanks all. Both of these options are very helpful!


Issue15: Implement CMV condition 13

feat: added CMV13 and a test for it. Also added a test for the helper function isInsideCircle which is used for CMV13.

The helper function is called smallestRadius, takes 3 points, and returns smallest radius that incorporates these 3 points.

Make sure that the for loop condition does not check for values outside of the array, I think in this case since you have "<=", if we assume 5 points, we are going to check 0,2,4, but will also check 1,3,5 which is technically out of bounds since 5 is the 6th NUMPOINT even though we are assuming 5.
I am not sure about the purpose of including the print line code here except for testing.
Also I think you have misinterpreted condition 13, it wants you to look for 3 points that do not fit within a circle of radius1 and 3 points that do fit within a circle with radius2, they do not have to be the same 3 points meaning if you find 3 points that do fit within radius2, you are now only looking for 3 points to do not fit within radius1 etc.
Also we already have a helper function for this that takes 3 points and outputs the smallest possible radius for a circle to fit these 3 points, use this one instead and compare with radius1 and radius2.

You are correct I misunderstood the question and fixed so the radius1 and radius2 checks can be for different sets of points. The print was also just for testing purposes as you mentioned and I missed to remove it. I also changed the indexing after further thinking about it and realizing you are correct. Now it should be fixed


Support QsysFs INB files for IBM i Notebooks

Changes
Added support for saving source type INB files in Qsys. Before it would attempt to save the JSON from IBM i Notebooks up to the record length, causing malformed JSON and a loss of all data stored in your INB file.
Writing to Qsys
If extension is INB and the sourceData array has 1 element of valid JSON then it will use regex to split on recordLength instead of \n.
Reading from Qsys
If extension is INB join srcdta using `` instead of \n back to the body
Checklist

[✅] have tested my change
[✅] updated relevant documentation vscode-ibmi-notebooks commit/future PR
[✅] Remove any/all console.logs I added
[✅] eslint is not complaining
[✅] have added myself to the contributors' list in CONTRIBUTING.md
[✅] for feature PRs: PR only includes one feature enhancement.

@worksofliam the reason I marked this as a draft - this works when using qsys/complex, but nothing I can do for qsys/basic. In essence, you need to have config.enableSourceDates turned on.
Should I make a new config option and let the code drop into using qsys/complex on config.enableSourceDates || config.enableINBSupport or just update the description for Source Dates to mention IBM i Notebooks?
Or perhaps a different idea?

Here's a test showing INB loading correctly from Qsys (left) and the JSON that was split at 100 (right).

@Wright4i Neat! I've got to be careful with this, since it's affecting quite a serious bit of code. It makes sense that you're changing the lines to not go over the record lengths, but I imagine there is some impact on how this affects source dates.

Should I make a new config option and let the code drop into using qsys/complex

Let's not do this. I think something that needs to be investigated before we look into this is: changing the document content (the JSON) before it even touches writeFile or readFile.
I am not sure how I feel about checking for a specific extension in those methods either. Seems kind of hacky and would like to investigate if this is something that we can achieve alone in vscode-ibmi-notebooks before touching this filesystem implementation.
Let me know what you think.
Thanks!

@worksofliam the extension check was really to make sure this change doesn't affect anything else as I was also concerned about an impact on source dates and non-INB files. There's no reason this wouldn't work without the extension check and then any valid 1 line JSON document would save properly to Qsys.
I'll see what it would take to modify the JSON before the writeFile. This might be the better solution I'll report back.
I started here as this was the exact spot in the code making malformed JSON today. I made 2 notebooks and lost everything then found the documentation mentioning don't use source members 😅.
This bit of code I especially don't like in the current content.js. Just quietly truncating any source you have over the record length. It could use some improvement as well.
      if (sourceData[i].length > recordLength) {
        sourceData[i] = sourceData[i].substring(0, recordLength);
      }

@worksofliam so following up on modifying the JSON before the writeFile.
To do that the change would need to be back in vscode-ibmi-notebooks in the serializeNotebook function.
There's a few issues though with modifying the serialize function I ran into:

No access to recordLength
Return type expected is <Uint8Array> which I can't seem to change as vscode.workspace.registerNotebookSerializer needs to process the content in that type
JSON doesn't support multi-line values. You can add in \n newline characters, but the value itself will still be one long string
No way to detect we're trying to save to Qsys

So with those issues this is the best I could come up with after trying a half dozen ideas and it definitely seems worse than modifying writeFile. This is just a POC change, obviously it'd have to be conditioned not to always split (see Issue 4 above)...
  async serializeNotebook(
    data: vscode.NotebookData,
    _token: vscode.CancellationToken
  ): Promise<Uint8Array> {
    let contents: RawNotebookCell[] = [];

    for (const cell of data.cells) {
      let splitCell = cell.value.match(/.{1,87}/g);
      if (splitCell === null) {
        splitCell = [cell.value];
      }

      for (const split of splitCell) {
        contents.push({
          kind: cell.kind,
          language: cell.languageId,
          value: split
        });
      }
    }

    return new TextEncoder().encode(JSON.stringify(contents,null,1));
  }

So I'm splitting the cell pushing a new object everytime a cell.value is over the recordLength (112). I also need to stringify with 1 whitespace to at least make the individual JSON key-value pairs on new lines before it gets encoded.
The result looks like this:

It's better than nothing.. but it still is 💩
Long story short
I'm open to any ideas on how to abstract it / make it less hacky, but I think the change will have to be somewhere in this repo.
-or-
Maybe we give up and instead make a QOL issue ticket to just block Notebooks from even trying to open from a Qsys .inb file and instead suggest an IFS/Local notebook. Then nobody else can fall into the same trap.

Yeah, this is tricky. IMO, I personally am ok with not supporting QSYS more than I am ok with updating our filesystem provider to support it. I think we are better off blocking notebooks for that filesystem.

No way to detect we're trying to save to Qsys

Yes, there is a way but I have no idea if you can access it from the notebook.
document.uri.scheme === 'member' where document is a TextDocument.

@Wright4i Ok, here's an idea but think I found an issue in the VS Code API.
There is a onWillSaveTextDocument event as part of workspace, but not a onWillSaveNotebookDocument. This is the event that might allow us to check the scheme, and if it is member, then reformat the JSON before writing to the filesystem.

Discussed with @Wright4i what the next steps are. Will close.


Update assets license to CC BY-NC

 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.


v3.googlecode.com gives me a 404

I'm currently using http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/src/markerclusterer.js?ver=4.5.2 for my clustering.
But it's giving me a 404. Is it down or has it moved?
If moved. What should I do to make it work again?

Even on simple example https://googlemaps.github.io/js-marker-clusterer/examples/simple_example.html
I get next exception:
Failed to load resource: the server responded with a status of 404 ()
https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m1.png

Here is an error https://github.com/googlemaps/js-marker-clusterer/blob/gh-pages/src/markerclusterer.js#L191

+1 on this issue...

I've no idea why Google code is down, but if you want to host them on your web server for now change MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_  , lines 192-194 on my markerclusterer.js to you local image path. If anyone finds a better solution or CDN please let me know!

+1
GET http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m2.png 404 (Not Found)
GET http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m1.png 404 (Not Found)

Does anyone have a local version to share?

Find there https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m5.png
https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m1.png
https://github.com/googlemaps/js-marker-clusterer/pull/57

I was thinking of markerclusterer.js. But thanks anyway =)

+1, please fix this asap.

Quick fis is:
Pull this project to vendor/marker-clusterer folder
<script src="vendor/marker-clusterer/src/markerclusterer.js"></script>
and edit file markerclusterer.js line 190-192
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ =
  'vendor/marker-clusterer/images/m';

The problem is that our website use the SVN version of the library. This is not a good practice.
Quick (and right) solution:

Download the GitHub version (zip) and put it local to your website (use _compiled.js for production)
Reference it from your HTML file
Download marker cluster icons (here an example..)
cluster.zip
Configure MarkerCluster with the following (or similar) options:

...
if (typeof MarkerClusterer == 'function') {

  var mcClusterIconFolder = "/img/cluster";
  var mcOptions = {
    maxZoom: 11,
    styles: [
      {
      height: 53,
      url: mcClusterIconFolder + "/m1.png",
      width: 53
      },
      {
      height: 56,
      url: mcClusterIconFolder + "/m2.png",
      width: 56
      },
      {
      height: 66,
      url: mcClusterIconFolder + "/m3.png",
      width: 66
      },
      {
      height: 78,
      url: mcClusterIconFolder + "/m4.png",
      width: 78
      },
      {
      height: 90,
      url: mcClusterIconFolder + "/m5.png",
      width: 90
      }
    ]
  };

  markerCluster = new MarkerClusterer(map, mapMarkers, mcOptions);
}
...

Hope this helps.
PS: in any case, current lib must be updated, since images point to old svn path..

+1
We are getting the same error for the marker clusterer images (404).
It could be good to restore images in the previous url, otherwise we will have to hot fix in production.

+1

+1

+1

+1

+1

+1

why do we all write this comment "+1" while we have emoticons for each comment (little smiley) ,, that's better solution

@mkdizajn it's because when this post will get 100 '+1' issue will be automatically fixed.

+1
Thanks

Even easier: Just download the images and use the imagePath option to set it to your local image path.

+1

+1

+1

+1

the solution:
you can search the key words "MARKER_CLUSTER_IMAGE_PATH_" in the markerclusterer.js
and change the path.
The path must be ended of "m" likes "/img/m" because markerclusterer would re-organize the full path to /img/m+(i+1)+.png
you also could find the image of m1 to m5.png on the internet.
After you doing all these change, restart your server and clean your browser's cookies, and you will see the images.

@mygod0520 don't change MARKER_CLUSTER_IMAGE_PATH_, just set the imagePath option like: var mc = new MarkerClusterer(map, makers, {imagePath: 'images/m'});!

fixed by 2f659a3

I've uploaded the markerclusterer.js to my server and set my custom image path. Now my map markers work again. Thanks to the hints given here. ;-)

Just fixed this in Suitecrm. It's caused by images moving to github. To fix it replace every place that has 'https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/'
with
'https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/'
In SuiteCRM/SugarCRM, make sure to only switch the difference in address. E.g. some of the addresses end with /m so keep this on the end of the new URL

+1, Why don't you keep previous URL available?

hamedcrm, thx. it's work for me

The URL given by hamedcrm doesn't work for me. But this worked instead:
https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/[...]
In SuiteCRM I changed files:
/custom/modules/jjwg_Maps/javascript/markerclusterer.js
/custom/modules/jjwg_Maps/javascript/views/view.map_markers.php

The easiest way to fix this is to simply set the imagePath when declaring your MarkerClusterer, like so:
var markerCluster = new MarkerClusterer(map, markers,
            {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});

https://developers.google.com/maps/documentation/javascript/marker-clustering

Using this URL:

https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/

gave me this error:

Cannot execute https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/images/ because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Instead, I had to use this URL:

http://rawgit.com/googlemaps/js-marker-clusterer/gh-pages/src/markerclusterer.js

Don't use GitHub as a CDN, just download and include it.

I agree. Now go tell them http://www.magestore.com/magento-2-store-locator-extension.html and btw that Google Maps doesn't work anymore without an API key. Or instead, tell Google to stop changing their API assuming that the entire world will follow without balking.

@Yonn-Trimoreau I'm not at Google, feel free to tell them yourself.. ^^

@PeterTheOne If only they'd listen LOL

MarkerClusterer.IMAGE_PATH = "https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m";

я прямо в файле markerclusterer.js  изменил путь к png
вот так:
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = '../img/gmap/m';
в папку /img/gmap/ предварительно скопировал все png изображения.
все работает и протолок https подсвечен теперь зеленым цветом

xD

excuse me ))
edit file: markerclusterer.js
changed and commented:
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = '../img/gmap/m';
/** 'http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/' +
'images/m'; */
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_ = 'png';
png icons previously copied to a folder:  ../img/gmap/


problem with step 1

Hello,
I am interested in the tutorial for the btp-sac-forecast.
The step 1 is to verify all the access and make sure all the prerequisite are good to go.
In the:
"2. Prerequisites for SAP BTP
Enable SAP BTP Cloud Foundry global account."
By going to the link in "global account" i am sent to a page saying that the tutorial could not be found. What can i do next ?
Thank you

Hi,
Thank you for reaching out.
It appears that the previous link has been removed. Please try the new one:
https://developers.sap.com/tutorials/prepare-btp-cf.html.
I will update the link on the page accordingly.
Best regards,
Abdelkader


Add support for CBOR

What is the feature you are proposing?
CBOR is a binary format for serializing objects defined in RFC 8949. It is JSON-compatible and suitable for network communications that require efficient data exchange, as well as for use in resource-constrained environments such as IoT devices.
I would be happy to assist if there is anything I can help with. If there are concerns about supporting CBOR in the Hono core package, I am considering creating a helper as third-party middleware first.

Hi @3w36zj6
It's interesting. Does it need external libraries?

There is quite a bit of lines...
I think seems too big to incorporate as core middleware
https://github.com/paroga/cbor-js/blob/master/cbor.js

If implemented according to the definition, I believe it can be implemented without dependencies.
In fact, cbor2, the successor of cbor, has no dependencies. However, the required lines of code are longer.

@3w36zj6
I think we can use c.setRenderer and c.render like the React Renderer.
Code example:
import { Hono } from 'hono'
import { createMiddleware } from 'hono/factory'

const app = new Hono()

declare module 'hono' {
  interface ContextRenderer {
    (content: any): Response | Promise<Response>
  }
}

const renderer = createMiddleware(async (c, next) => {
  c.setRenderer((content) => {
    return c.body(encodeCBOR(content))
  })
  await next()
})

app.use(renderer)

app.get('/', (c) => {
  return c.render({ foo: 'bar' })
})

export default app

So, if the implementation is not too complicated, we may not provide the middleware and can write the instructions on our website.

As an example of utilizing setRenderer, I have added example code to return a CBOR response on a website: https://github.com/honojs/website/pull/532
IMO: CBOR has related RFCs such as CBOR Sequences (RFC 8742), COSE (RFC 9053), and CWT (RFC 8392). Considering future support for these, I think it would be preferable to manage reusable code and calls to other third-party middleware centrally through CBOR Middleware/Helper.


Update s3 to 2.17.97

Updates software.amazon.awssdk:s3 from 2.17.83 to 2.17.97.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk", artifactId = "s3" } ]

labels: library-update, commit-count:1, early-semver-patch, semver-spec-patch

Superseded by #575.


Is there any timeline for how quickly AppStream will build the latest rubies? I remember software collections being way behind.

Is there any timeline for how quickly AppStream will build the latest rubies? I remember software collections being way behind.
I know we have required a minimum patch version in the past due to bugs in lower patch versions.  Is there any way to specify that?
Does AppStream work properly with Bundle.with_clean_env?

Originally posted by @bdunne in https://github.com/ManageIQ/manageiq-appliance-build/issues/393#issuecomment-600245345

@Chelsbells1123 Did you intend to open this issue?

Closing the issue since the user account has been deleted (as per 'ghost'...)


All  valid PR will be accepted if REPOSITORY IS STAR and pls follow me so i could easily chcek  ur PR

pls comment here if u have star this repo and  followed me ur PR will be merged first

Stared your repo and followed you sir

starred and following you now


Two local fonts familly, Only one legible

Here is my config code
families: [
      {
        name: 'Display',
        src: '/fonts/Display/',
        weights: ['200', '300', '400', '500', '700', '900'],
        display: 'swap',
      },
      {
        name: 'Narr',
        src: '/fonts/Narr/',
        weights: ['100', '300', '400', '500', '700', '900'],
        display: 'swap',
      },
    ],

and this structure of my font file

The Narr font is already readable, and the  display font not readable like this.

Would you be able to provide a reproduction? 🙏
More info

This https://stackblitz.com/~/github.com/narr07/nuxtfont-minimal my reproduction.
@danielroe

This is the problem with your configuration. src should be pointing to the font file. If you're using a provider, you won't need to define it because their job is to determine the src automatically for you. So if you change your config to this, it will work:
    families: [
      { name: 'Display', weights: ['200', '300', '400', '500', '700', '900'], display: 'swap' },
      { name: 'Narr', weights: ['100', '300', '400', '500', '700', '900'], display: 'swap' },
    ],

Closing this issue.

Thanks