Add more detail around our testing steps

Changes in this PR
Based upon https://github.com/ministryofjustice/hmpps-temporary-accommodation-ui/pull/196 so please help to merge that first.
This change details the testing steps to help explain the differences of the numerous options.
As I said in the commit, the test:e2e commands don't work for me and I'm not sure what their original intent was, so I've left them out.
Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Have all changes to any dependencies been deployed to both preprod and
production in a backwards compatible way? (This includes our API,
infrastructure, third-party integrations and any secrets or environment variables)
[ ] Has a required data migration been included in this change or been done in
advance?

Post merge checklist
Once we've merged we now need to release this through to production before
considering it done.
Find the build-and-deploy job in CircleCI
and work through the following steps:

[ ] Has the product manager asked to provide approval for this feature?

[ ] Has the product manager approved?

[ ] Manually approve release to preprod
[ ] Verify change released to preprod
[ ] Manually approve release to prod
[ ] Verify change released to production

Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

As we're happy to drop the following tasks - which were the remaining reference to e2e.env - I think we can go back to e2e.local:
"test:e2e"
"test:e2e:ui"

I agree that e2e.env should include safe values that we can commit to git. Looks like we are inheriting the decision to include that file in the gitignore. Feels risky to unignore that file now just incase anyone has a file they might then commit.


Add create remote schema route

LGTM, I guess we don't have to care about locking the file because we use the writeFileSync or do we?

Good question, it's sync, but inside of an async request handler...


Fewer lstmf files being generated as compared to the ground truth

Tesseract Version: 4.1.0
I am trying to fine tune tesseract on custom dataset with the following Makefile:
export

SHELL := /bin/bash
HOME := $(PWD)
TESSDATA = $(HOME)/tessdata
LANGDATA = $(HOME)/langdata

# Train directory
# TRAIN := $(HOME)/train_data
TRAIN := /media/vimaan/Data/OCR/tesseract_train

# Name of the model to be built
MODEL_NAME = eng
LANG_CODE = eng

# Name of the model to continue from
CONTINUE_FROM = eng

TESSDATA_REPO = _best

# Normalization Mode - see src/training/language_specific.sh for details
NORM_MODE = 1

# BEGIN-EVAL makefile-parser --make-help Makefile

help:
	@echo ""
	@echo "  Targets"
	@echo ""
	@echo "    unicharset       Create unicharset"
	@echo "    lists            Create lists of lstmf filenames for training and eval"
	@echo "    training         Start training"
	@echo "    proto-model      Build the proto model"
	@echo "    leptonica        Build leptonica"
	@echo "    tesseract        Build tesseract"
	@echo "    tesseract-langs  Download tesseract-langs"
	@echo "    langdata         Download langdata"
	@echo "    clean            Clean all generated files"
	@echo ""
	@echo "  Variables"
	@echo ""
	@echo "    MODEL_NAME         Name of the model to be built"
	@echo "    CORES              No of cores to use for compiling leptonica/tesseract"
	@echo "    LEPTONICA_VERSION  Leptonica version. Default: $(LEPTONICA_VERSION)"
	@echo "    TESSERACT_VERSION  Tesseract commit. Default: $(TESSERACT_VERSION)"
	@echo "    LANGDATA_VERSION   Tesseract langdata version. Default: $(LANGDATA_VERSION)"
	@echo "    TESSDATA_REPO      Tesseract model repo to use. Default: $(TESSDATA_REPO)"
	@echo "    TRAIN              Train directory"
	@echo "    RATIO_TRAIN        Ratio of train / eval training data"

# END-EVAL

# Ratio of train / eval training data
RATIO_TRAIN := 0.90

ALL_BOXES = data/all-boxes
ALL_LSTMF = data/all-lstmf

# Create unicharset
unicharset: data/unicharset

# Create lists of lstmf filenames for training and eval
#lists: $(ALL_LSTMF) data/list.train data/list.eval
lists: $(ALL_LSTMF)

train-lists: data/list.train data/list.eval

data/list.train: $(ALL_LSTMF)
	total=`cat $(ALL_LSTMF) | wc -l` \
	   no=`echo "$$total * $(RATIO_TRAIN) / 1" | bc`; \
	   head -n "$$no" $(ALL_LSTMF) > "$@"

data/list.eval: $(ALL_LSTMF)
	total=`cat $(ALL_LSTMF) | wc -l` \
	   no=`echo "($$total - $$total * $(RATIO_TRAIN)) / 1" | bc`; \
	   tail -n "$$no" $(ALL_LSTMF) > "$@"

# Start training
training: data/$(MODEL_NAME).traineddata

data/unicharset: $(ALL_BOXES)
	mkdir -p data/$(START_MODEL)
	combine_tessdata -u $(TESSDATA)/$(CONTINUE_FROM).traineddata  $(TESSDATA)/$(CONTINUE_FROM).
	unicharset_extractor --output_unicharset "$(TRAIN)/my.unicharset" --norm_mode $(NORM_MODE) "$(ALL_BOXES)"
	#merge_unicharsets data/$(START_MODEL)/$(START_MODEL).lstm-unicharset $(GROUND_TRUTH_DIR)/my.unicharset  "$@"
	merge_unicharsets $(TESSDATA)/$(CONTINUE_FROM).lstm-unicharset $(TRAIN)/my.unicharset  "$@"

$(ALL_BOXES): $(sort $(patsubst %.tif,%.box,$(wildcard $(TRAIN)/*.tif)))
	find $(TRAIN) -name '*.box' -exec cat {} \; > "$@"

$(TRAIN)/%.box: $(TRAIN)/%.tif $(TRAIN)/%.gt.txt
	python generate_line_box.py -i "$(TRAIN)/$*.tif" -t "$(TRAIN)/$*.gt.txt" > "$@"

$(ALL_LSTMF): $(sort $(patsubst %.tif,%.lstmf,$(wildcard $(TRAIN)/*.tif)))
	find $(TRAIN) -name '*.lstmf' -exec echo {} \; | sort -R -o "$@"

$(TRAIN)/%.lstmf: $(TRAIN)/%.box
	tesseract $(TRAIN)/$*.tif $(TRAIN)/$* --dpi 300 --psm 7 lstm.train

# Build the proto model
proto-model: data/$(MODEL_NAME)/$(MODEL_NAME).traineddata

data/$(MODEL_NAME)/$(MODEL_NAME).traineddata: $(LANGDATA) data/unicharset
	combine_lang_model \
	  --input_unicharset data/unicharset \
	  --script_dir $(LANGDATA) \
	  --words $(LANGDATA)/$(MODEL_NAME)/$(MODEL_NAME).wordlist \
	  --numbers $(LANGDATA)/$(MODEL_NAME)/$(MODEL_NAME).numbers \
	  --puncs $(LANGDATA)/$(MODEL_NAME)/$(MODEL_NAME).punc \
	  --output_dir data/ \
	  --lang $(MODEL_NAME)

data/checkpoints/$(MODEL_NAME)_checkpoint: unicharset proto-model
	mkdir -p data/checkpoints
	lstmtraining \
	  --continue_from   $(TESSDATA)/$(CONTINUE_FROM).lstm \
	  --old_traineddata $(TESSDATA)/$(CONTINUE_FROM).traineddata \
	  --traineddata data/$(MODEL_NAME)/$(MODEL_NAME).traineddata \
	  --model_output data/checkpoints/$(MODEL_NAME) \
	  --debug_interval -1 \
	  --train_listfile data/list.train \
	  --eval_listfile data/list.eval \
	  --sequential_training \
	  --max_iterations 170000

data/$(MODEL_NAME).traineddata: data/checkpoints/$(MODEL_NAME)_checkpoint
	lstmtraining \
	--stop_training \
	--continue_from $^ \
	--old_traineddata $(TESSDATA)/$(CONTINUE_FROM).traineddata \
	--traineddata data/$(MODEL_NAME)/$(MODEL_NAME).traineddata \
	--model_output $@

# Clean all generated files
clean:
	find data/train -name '*.box' -delete
	find data/train -name '*.lstmf' -delete
	rm -rf data/all-*
	rm -rf data/list.*
	rm -rf data/$(MODEL_NAME)
	rm -rf data/unicharset
	rm -rf data/checkpoints

The number of .lstmf files being generated is significantly lower than .box files being generated.
For eg:
Number of .tif files: 10k
Number of .gt.txt files: 10k
Number of .box files: 10k
Number of .lstmf files: 8k.
Could anyone point me out to the possible reasons for this issue.

See https://github.com/tesseract-ocr/tesstrain/wiki/GT4HistOCR#tesseract-fails-to-create-lstm-files for a possible reason and solution. That article also lists other potential problems.

Using psm 7 created the issue, with psm 13 all empty string outputs got eliminated. I think thats a bug with Tesseract.

We still need a test how using psm 13 instead of 7 changes the training results. If there are no negative effects, the default psm should be changed to 13.


Fixed #35135 -- Fix FilteredRelation when rhs of join condition is a QuerySet

I didn't found an existing Ticket and I think the patch is small enough to avoid one.
Please let me know otherwise.
https://code.djangoproject.com/ticket/35135#ticket

I didn't found an existing Ticket and I think the patch is small enough to avoid one. Please let me know otherwise.

All bugfixes require an accepted ticket. Is it a regression in Django 5.0?

Looks like a regression in 59f475470494ce5b8cbff816b1e5dafcbd10a3a3.

I didn't found an existing Ticket and I think the patch is small enough to avoid one. Please let me know otherwise.

All bugfixes require an accepted ticket. Is it a regression in Django 5.0?

All good, I will create one. Yes, it is a regression introduced by DJango 5.0, probably introduced by d660cee5bc68b597503c2a16f3d9928d52f93fb4 and subsequent improvements in afc880571d5f5a16b977070b15014f9583524898 and 59f475470494ce5b8cbff816b1e5dafcbd10a3a3

I haven't checked the branch locally but I'm curious what the original crash was given QuerySet is also resolvable to sql.Query?

Without this patch, it crashes with:
  File "/django/django/db/models/sql/query.py", line 108, in get_child_with_renamed_prefix
    child = child.copy()
AttributeError: 'QuerySet' object has no attribute 'copy'

I haven't checked the branch locally but I'm curious what the original crash was given QuerySet is also resolvable to sql.Query?

My understanding is that the QuerySet is interpreted as an Expression because it has a resolve_expression method.
...
elif hasattr(child, "resolve_expression"):
...

but the nature of the QuerySet doesn't allow it to be treated like an Expression. Hence the elif isintance(child, QuerySet) is added, to leave the QuerySet as it is (as it was, in previous versions of Django).

My understanding is that the QuerySet is interpreted as an Expression because it has a resolve_expression method.

The presence of resolve_expression is exactly what defines the expression protocol

but the nature of the QuerySet doesn't allow it to be treated like an Expression.

It's treated as an expression in any other context so I don't think your assessment is right.
To me the problem is more than QuerySet doesn't have a copy method but _clone  will do.
Do the tests pass with
elif hasattr(child, "resolve_expression"):
    if isinstance(child, QuerySet):
        child = child._clone()
    else:
        child = child.copy()
    ...

My understanding is that the QuerySet is interpreted as an Expression because it has a resolve_expression method.

The presence of resolve_expression is exactly what defines the expression protocol. There are other objects that are not BaseExpression subclass that implement this protocol.

but the nature of the QuerySet doesn't allow it to be treated like an Expression.

It's treated as an expression in any other context so I don't think your assessment is right. I think that the usage of copy is problematic here.
To me the problem is more than QuerySet doesn't have a copy method but _clone should do.
Do the tests pass with
elif hasattr(child, "resolve_expression"):
    if isinstance(child, QuerySet):
        child = child._clone()
    else:
        child = child.copy()
    ...

We end up with another missing method expected by the Expression's API.
AttributeError: 'QuerySet' object has no attribute 'set_source_expressions'. Did you mean: 'resolve_expression'?

The problem is that QuerySet has very specialized expression resolving logic as its source expressions are stored in multiple different attributes (annotations, where) and can be composed of other querysets as well that themselves would need to have their references repointed (union, intersection).
That brings the question what exactly should be done here.

Don't support querysets

Allow support for queryets but don't support OuterRef or reference to the filtered expression itself (as that requires complex replacement logic)

Add full support for querysets

is the current state of things albeit with an ugly error, 2. is what's proposed here with the pass approach without any warning about the lack of support for OuterRef and references to filtered relations (which would be very hard to implement right), 3. is a large project that has likely minimal benefit given how rare joining against a subquery is.

My take is that we should either go with 1. and raise a more appropriate error (it can always be worked around by materializing the queryset by users) or 2. and emit a warning of some sort.
I have to admit I have a slight preference for 1. because of the can of worms 2. opens with regards to supporting some querysets and not others as whether a subquery is supported or not is not something that can be easily determined at querysets resolving time.
Maybe we can try testing out what the message emitted when making use of OuterRef is and see if we believe it is appropriate?

Thanks for the clarifications. I agree with your strategy. I'll give it a try to option 2 first, though. As it's already not supported, I don't expect many complains will come out of option.

I'd prefer not to support querysets at all. Especially since it's intended for backporting.

I changed the direction of the PR to prevent passing a QuerySet within a FilteredRelation.

@ticosax Thanks :+1:
I pushed edits to the release note and comment.

@charettes Does it work for you?

@felixxm it does, thanks for the patch @ticosax!
I wonder if we should suggest that users materialize the queryset to workaround the problem in the error message. e.g. list(Book.objects.filter(title__istartswith="a").values_list("id", flat=True))). Maybe that's something the rare users who use subquery in this case will be able to figure out on their own?

@felixxm it does, thanks for the patch @ticosax!
I wonder if we should suggest that users materialize the queryset to workaround the problem in the error message. e.g. list(Book.objects.filter(title__istartswith="a").values_list("id", flat=True))). Maybe that's something the rare users who use subquery in this case will be able to figure out on their own?

Thanks for checking :+1: I think it's fine without a hint.


[simulation] Fix wrong cost for shared-memory kernels

Previously shared-memory kernels incorrectly used fusion kernels' cost when being closed. This PR fixes this problem.
Benchmark: test_simulation, qft circuit, 31 total qubits, 28 local qubits, max shared-memory kernel size=10, shared-memory cacheline size=3.
Before: 86 + 12 = 98 kernels (79 fusion, 19 shared-memory), total cost = 933.4 + 132.4 = 1065.8, running time = 33s
After: 42 + 10 = 52 kernels (2 fusion, 50 shared-memory), total cost = 733.6 + 192.4 = 926, running time = 29s

Looks good!


A preview of all the colors in the README.md

... could maybe be an idea?

I think it's only possible by generating an image that will be included in the README.
Github sanitizes html and removes styles that could be used to do this (background-color).
It would be kinda easy to use a svg template and add it to the template compiling step. The build svg could be included in the projects README.
@Larpon do only want a list of colors like this https://raw.githubusercontent.com/chriskempson/base16/master/logo.png or also having the colors name appear beside it?
@yeun if you want to do it like that, I could open a PR that does it.

That would be awesome. An image would probably be best in any case as it is easily updated when updating the colors.
Could you also add rgb codes into the image? This makes it easy to compare and use without including files, e.g. in sketch.

@makepanic Cool! I'd love to see it happen.

@makepanic that was exactly what I had in mind. It would be a tremendous help for people just popping by to see what this is all about.

a project about nice colors - but with no colors to see?


Remove StellarGraphBase reference in FullBatchGenerator

Resolves #1436
This PR removes legacy StellarGraphBase reference as the type of G, a parameter of the FullBatchNodeGenerator and FullBatchLinkGenerator classes.
I also took the liberty to tidy up the docstring of these 2 classes a little bit. (missing punctuation)

CI is fixed, so let's get this merged!


Any API support python generator function?

Hi,
is there any API for python that supports getting data from generator? Specifically like the fit_generator API in keras:
https://keras.io/models/sequential/

If you look at the examples, like the one at [1], you see that mxnet already supports having generators in its fit() method and you can simply derive from the DataIter class [2] to make one in python.
Your class should provide the following methods: iter_next(), reset(), getdata(), getlabel(), getindex() and getpad(). As you write those methods, you should cast your data and labels into NDArray objects. For that you can use the mxnet.ndarray.array() function [3] to convert from numpy.
A notable difference with generators for Keras is that Keras expects an infinite continuous flow, while mxnet expects a StopIteration to be raised after each epoch, so make sure that iter_next() returns False when the epoch is over.
Hope this helps!
--
[1] https://github.com/dmlc/mxnet/blob/v0.7.0/example/image-classification/train_cifar10.py#L81
[2] https://github.com/dmlc/mxnet/blob/master/python/mxnet/io.py#L99
[3] https://github.com/dmlc/mxnet/blob/master/python/mxnet/ndarray.py#L919

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Added slack integration

Coverage remained the same at 100.0% when pulling 43fe8e4b9cf447c123548641dd1e0cf2feccea5e on test-slack-integration into dae8c5e9f6ffb2cf20ecfb7e20ac7e49a0a7419d on develop.

Approve

Coverage remained the same at 100.0% when pulling 6fd4d8782be3b284c13e0ce4f62c366e496abc69 on test-slack-integration into dae8c5e9f6ffb2cf20ecfb7e20ac7e49a0a7419d on develop.


total floor area and total wall area

Hi, is there a function/module in this project where I can get the total floor area and total wall area of floorplan?
Thanks

Hi Micreales,
I don't think it can do it as of now. I am quite confident that the author has abandoned ship a while ago. Meanwhile I forked this repository to create an alternate es6 version which does room area calculation. I don't believe there is area applicable for walls. It has only length and thickness. You can access the alternate version [here] (https://github.com/aalavandhaann/blueprint-js). Make sure you play around the online demo before you clone. This ensures you haven't wasted time.
Regards,
#0K


Hotfix field update

please run and confirm its not all kinds of busted up.
For comparison:
https://drive.google.com/file/d/0B2LQIUUuUDJdcl9XSm56WDhFV0k/view?usp=sharing

I think you linked the wrong comp.
PR looks good tho.

fixed the link. my bad. like i said. today I'm totally not on fire.

Looks nice. I am wondering about the examples in the repo. Are we going to update them some time in the future to match the new designs?

@ktp242 could you clarify / specify? there are many patterns needing changing and updating. If you see something specifically that needs attention nowish let me know...

Tentative approval ... need to know who is making the final decision on the content here! Approved insomuch as it looks like the design.


[MAID-3158] feat/nonce: allow encryption using custom nonces

Closing, we merged these commits in #25


Is there a preferred safe way to share credentials within the project?

WE has setup the dev environment such as a  Kubernetes cluster as test system including:
A Keycloak instance
A hale-connect installation including the required infrastructure and monitoring via Prometheus and Grafana
A preferred safe way to share credentials within the project would be needed.
[Paul] Suggestion to use (masked) secrets in GIT?
WE uses gopass, is this possible for the whole group

email from Nick to Simon:
N: Thank you for the recommendation and information.
I have no experience with gopass, would this be something that WE can easily setup and maintain?
S: we could do the initial setup, but I guess we should first clarify what passwords/secrets should be shared and with who.
For hosting any gopass repositories it would probably make sense to create repositories in the project's GitHub organization, people who need to be able to access secrets need apart from registering their respective public PGP key also read access to the repository. People who need to be able to add new keys or change secrets needs write access.
Related to the infrastructure we set up at wetransform I could imagine that these secrets could make sense:
•	(admin) Access to Keycloak for anyone who needs/wants to integrate with the Keycloak authentication
•	Access to the Kubernetes cluster if custom software should be deployed
o	For that still some work would be required, so it would be important to know if this is required at the moment or not. If it is then it would make sense to coordinate in what way this should be managed
N: Would each project member have a separate login and password (e.g. for hale-connect) or would a general login and password be used by all project members in this first iteration?
S:
•	Right now we have set up some test users in Keycloak, those could be shared by everyone;
o	I guess the next step would be to see if we can integrate the GitHub authentication w/ a limit to the project organization, then everyone would have their own user by definition


🐛 [cloud_firestore] module 'cloud_firestore' not found

Bug report
Describe the bug
I can't build a release version of my Flutter iOS App. I tried everything listed in the just opened bug reports here. Nothing helped. I am using Flutterfire since Flutter exists and I know what I am doing.
Steps to reproduce
Steps to reproduce the behavior:

Create a fresh Flutter project
Add: cloud_firestore and firebase_core
See error or incorrect behavior

Expected behavior
Flutter 2.5.* is working with actual published cloud_firestore package.
 You will have to manually codesign before deploying
to device.
Building de.applogik.nearby for device (ios-release)...
Running pod install...                                              7,8s
Running Xcode build...
 └─Compiling, linking and signing...                         6,8s
Xcode build done.                                           51,2s
Failed to build iOS app
Error output from Xcode build:
↳
    --- xcodebuild: WARNING: Using the first of multiple matching destinations:
    { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
    { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder,
    name:Any iOS Simulator Device }
    { platform:iOS Simulator, id:E04C5EDF-CF35-44B8-822C-16B05F521710, OS:12.4, name:iPad (5th generation)
    }
    { platform:iOS Simulator, id:EAE30452-FC09-4CBD-B9CA-BAC63A9BB775, OS:12.4, name:iPad (6th generation)
    }
    { platform:iOS Simulator, id:3A836177-12CA-464F-9D41-ADDEE8A06ED4, OS:15.0, name:iPad (9th generation)
    }
    { platform:iOS Simulator, id:2D11B292-C73C-47C8-9AF9-06834F42D925, OS:12.4, name:iPad Air }
    { platform:iOS Simulator, id:BC0ED7A0-FD8A-433A-BF2F-189CCC794002, OS:12.4, name:iPad Air (3rd
    generation) }
    { platform:iOS Simulator, id:0F2390DF-C464-4E37-A2F6-F2C0D3E84A84, OS:15.0, name:iPad Air (4th
    generation) }
    { platform:iOS Simulator, id:A1302826-2978-4827-97BB-4DA1A0A46B71, OS:12.4, name:iPad Air 2 }
    { platform:iOS Simulator, id:1706B56C-5A9E-4246-A5E3-1C158F3E8BD0, OS:12.4, name:iPad Pro (9.7-inch) }
    { platform:iOS Simulator, id:B56A7441-5B62-4913-8454-0871C8F4988F, OS:15.0, name:iPad Pro (9.7-inch) }
    { platform:iOS Simulator, id:AB9689F1-2E17-4AEC-A72D-E668546EE105, OS:12.4, name:iPad Pro (10.5-inch) }
    { platform:iOS Simulator, id:0EA618CB-1288-4C43-8830-0B76953EA5CE, OS:12.4, name:iPad Pro (11-inch)
    (1st generation) }
    { platform:iOS Simulator, id:2F1FB520-08E2-4DC5-987F-46006B2A0286, OS:15.0, name:iPad Pro (11-inch)
    (3rd generation) }
    { platform:iOS Simulator, id:E9C8D88F-15DF-4527-9465-84E9F4132BD4, OS:12.4, name:iPad Pro (12.9-inch)
    (1st generation) }
    { platform:iOS Simulator, id:FB552573-6FC9-45C7-83F7-0B5BB642A719, OS:12.4, name:iPad Pro (12.9-inch)
    (2nd generation) }
    { platform:iOS Simulator, id:ED1A8766-FB33-4FE5-8165-029E8F40642B, OS:12.4, name:iPad Pro (12.9-inch)
    (3rd generation) }
    { platform:iOS Simulator, id:6FD0F7D2-B364-4B6E-96CF-D6B9305AFBFC, OS:15.0, name:iPad Pro (12.9-inch)
    (5th generation) }
    { platform:iOS Simulator, id:3218F53D-22F6-475C-AFCD-BD81323FC937, OS:15.0, name:iPad mini (6th
    generation) }
    { platform:iOS Simulator, id:1B3659AF-00C5-4100-8750-7460B64F437E, OS:12.4, name:iPhone 5s }
    { platform:iOS Simulator, id:C3DF2D07-6D5C-45EA-ABDF-B14D84B2C910, OS:12.4, name:iPhone 5s }
    { platform:iOS Simulator, id:C2B3D0C7-A47D-46A8-9B20-AE2842EA30B2, OS:12.4, name:iPhone 6 }
    { platform:iOS Simulator, id:1B26C6E6-FDCA-4511-8EC0-7E367A9D0291, OS:12.4, name:iPhone 6 Plus }
    { platform:iOS Simulator, id:48CDB98D-BE8B-4762-8B74-41DC13F0DD90, OS:12.4, name:iPhone 6s }
    { platform:iOS Simulator, id:8A159D47-46DD-4AB5-9275-0531C25F346E, OS:12.4, name:iPhone 6s Plus }
    { platform:iOS Simulator, id:39D4CE89-4DFF-4D85-9E25-F4706D186180, OS:12.4, name:iPhone 7 }
    { platform:iOS Simulator, id:A360E2E3-6DC2-483E-ABB1-F32DCCFE273F, OS:12.4, name:iPhone 7 Plus }
    { platform:iOS Simulator, id:93CFDB0B-F8C0-4221-A934-81FCB5AEB5E3, OS:12.4, name:iPhone 8 }
    { platform:iOS Simulator, id:0A3A7EA1-E11B-4080-9D83-4F0F08F87049, OS:15.0, name:iPhone 8 }
    { platform:iOS Simulator, id:3335CFA3-332A-4870-8D7C-40AEC680034E, OS:12.4, name:iPhone 8 Plus }
    { platform:iOS Simulator, id:3E712EF0-8A48-4E48-B0B8-136AA3B4336B, OS:15.0, name:iPhone 8 Plus }
    { platform:iOS Simulator, id:2A07BBCF-D36D-488B-A931-A982DA3328ED, OS:15.0, name:iPhone 11 }
    { platform:iOS Simulator, id:ECA7397A-87DC-45D2-86F7-F8B53163E65A, OS:15.0, name:iPhone 11 Pro }
    { platform:iOS Simulator, id:EA195CC3-EAE1-45D2-82B6-644199150728, OS:15.0, name:iPhone 11 Pro Max }
    { platform:iOS Simulator, id:0B7A1635-04BB-4EC3-8ABC-542CDFD61ACC, OS:15.0, name:iPhone 12 }
    { platform:iOS Simulator, id:1D406509-ABD5-42DB-AC87-A97C0240550E, OS:15.0, name:iPhone 12 Pro }
    { platform:iOS Simulator, id:07079C8B-37A0-4F73-8491-750B8E7AFC65, OS:15.0, name:iPhone 12 Pro Max }
    { platform:iOS Simulator, id:A0F9C2F7-16ED-463E-9B36-C94230D0B32E, OS:15.0, name:iPhone 12 mini }
    { platform:iOS Simulator, id:3759455D-B59E-4D5C-853C-A631D34462CE, OS:15.0, name:iPhone 13 }
    { platform:iOS Simulator, id:FCC352A7-4C79-4D14-85A0-1F025B347E1E, OS:15.0, name:iPhone 13 Pro }
    { platform:iOS Simulator, id:EFC4C9C9-E207-4824-B775-222C47622C0F, OS:15.0, name:iPhone 13 Pro Max }
    { platform:iOS Simulator, id:FD2B2F1C-C442-4777-B89D-817EC826EC40, OS:15.0, name:iPhone 13 mini }
    { platform:iOS Simulator, id:E58A5971-EC1F-4158-A739-45E1D75A0750, OS:12.4, name:iPhone SE (1st
    generation) }
    { platform:iOS Simulator, id:DEC99033-7351-4BAF-A3E5-891F74281AFC, OS:15.0, name:iPhone SE (2nd
    generation) }
    { platform:iOS Simulator, id:3AB06B73-3D4F-45E8-90F2-1A3637FA0D52, OS:12.4, name:iPhone X }
    { platform:iOS Simulator, id:5731BBF0-E5A6-4612-B251-4FCB9EA323CB, OS:12.4, name:iPhone Xs }
    { platform:iOS Simulator, id:3B7DD5DA-F1C9-48EB-8B0C-263ADD3F0C6D, OS:12.4, name:iPhone Xs Max }
    { platform:iOS Simulator, id:8492E036-6F5F-4C36-A2D7-A77DF34C55DB, OS:12.4, name:iPhone Xʀ }
    { platform:iOS Simulator, id:5B673B5A-55F8-4396-9A31-6CE5102F5CDC, OS:15.0, name:iPod touch (7th
    generation) }
    ** BUILD FAILED **

Xcode's output:
↳
    /Users/rebar/Development/nearby-museum-app/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error:
    module 'cloud_firestore' not found
    @import cloud_firestore;
     ~~~~~~~^~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in parallel

Encountered error while building for device.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
❯ flutter doctor --verbose
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.5.1 20G80 darwin-x64, locale de-DE)
    • Flutter version 2.5.1 at /Users/rebar/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (vor 4 Tagen), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/rebar/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.0, Build version 13A233
    • CocoaPods version 1.11.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 56.0.3
    • Dart plugin version 203.8173

[✓] VS Code (version 1.60.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (4 available)
    • iPhone von Rebar (mobile) • 00008030-001E6C520E07802E            • ios            • iOS 14.7.1 18G82
    • iPhone 13 (mobile)        • 3759455D-B59E-4D5C-853C-A631D34462CE • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)           • macos                                • darwin-x64     • macOS 11.5.1 20G80 darwin-x64
    • Chrome (web)              • chrome                               • web-javascript • Google Chrome 93.0.4577.82
    ! Error: iPhone von Rebar is busy: Making the device ready for development. Xcode will continue when iPhone von Rebar is finished. (code -10)

! Doctor found issues in 1 category.

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
❯ flutter pub deps -- --style=compact
Dart SDK 2.14.2
Flutter SDK 2.5.1
museum 1.0.0+1

dependencies:
- cloud_firestore 2.5.3 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cupertino_icons 1.0.3
- firebase_core 1.6.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_beacon 0.5.1 [flutter]
- flutter_blurhash 0.6.0 [flutter meta pedantic]
- flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math]
- flutter_tts 3.2.2 [flutter flutter_web_plugins]
- hive 2.0.4 [meta crypto]
- i18next 0.5.1 [flutter path]
- path_provider 2.0.5 [flutter path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- provider 6.0.0 [collection flutter nested]

dev dependencies:
- flutter_lints 1.0.4 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
- integration_test 0.0.0 [flutter flutter_driver flutter_test path vm_service archive async boolean_selector characters charcode clock collection crypto fake_async file matcher meta source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api typed_data vector_math webdriver]

transitive dependencies:
- archive 3.1.2 [crypto path]
- async 2.8.1 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.1.0
- charcode 1.3.1
- clock 1.1.0
- cloud_firestore_platform_interface 5.4.1 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 2.4.2 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.15.0
- crypto 3.0.1 [collection typed_data]
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase_core_platform_interface 4.0.1 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.1.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- flutter_driver 0.0.0 [file flutter flutter_test fuchsia_remote_debug_protocol path meta vm_service webdriver archive async boolean_selector characters charcode clock collection crypto matcher platform process source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api typed_data vector_math]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- fuchsia_remote_debug_protocol 0.0.0 [process vm_service file meta path platform]
- intl 0.17.0 [clock path]
- js 0.6.3
- lints 1.0.1
- matcher 0.12.10 [stack_trace]
- meta 1.7.0
- nested 1.0.0 [flutter]
- path 1.8.0
- path_provider_linux 2.1.0 [flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.2 [flutter]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.3 [ffi flutter meta path path_provider_platform_interface win32]
- pedantic 1.11.1
- platform 3.0.0
- plugin_platform_interface 2.0.1 [meta]
- process 4.2.3 [file path platform]
- sky_engine 0.0.99
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- sync_http 0.3.0
- term_glyph 1.2.0
- test_api 0.4.2 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0 [collection]
- vector_math 2.1.0
- vm_service 7.1.1
- webdriver 3.0.0 [archive matcher path stack_trace sync_http]
- win32 2.2.9 [ffi]
- xdg_directories 0.2.0 [meta path process]

My Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  pod 'Firebase/Core'
  pod 'Firebase/Analytics'
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.6.0'

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
end

Solved: Remove your iOS-folder completely!!! But before that save your changes and apply them again to your freshly created ios project.


[MAINT] Remove extract_rets_pos_txn_from_backtest_obj

The code to extract positions and transaction code from
the research env BacktestResult object has been moved
to qexec where it can be managed internally.
If qexec code changes extract_rets_pos_txn_from_backtest_obj
could break so removing it from pyfolio seems like a good call.

0.50s$ flake8 pyfolio
pyfolio/utils.py:118:80: E501 line too long (80 > 79 characters)

:+1:


Move VpcInfo from Spec to Status

VpcInfo is discovered from cloud. Hence moving the info from spec to status, similar to virtual machine CR.
Signed-off-by: Rahul Jain<EMAIL_ADDRESS>

/nephe-test-e2e-kind

/nephe-test-e2e-kind

/nephe-test-e2e-aws


button on bottom and title on the top

Hi,
It's possible to make this:??

Nope, but you can hack it by putting a row of radio buttons that don't have any text on the bottom.


user.isLoggedIn returns true even if the user is not logged in

✅ Prerequisites

[x] Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
[x] Are you running the latest SDK version?
[x] Are you reporting to the correct repository (magic-sdk)?

🐛 Description
When we're checking if a user is logged in on a brand new session (with cleared cookies or in incognito mode) using isLoggedIn function, magic for some reason tries to refresh session and eventually fails, but the function still returns true as if the user is logged in.
🧩 Steps to Reproduce

Run user.isLoggedIn()

🤔 Expected behavior
The function should return false if user is not logged in
😮 Actual behavior
The function returns true, but shows an error in the console:
GET https://auth.magic.link/v1/session/refresh 400

💻 Code Sample
import { Magic } from 'magic-sdk'

const magic = new Magic(process.env.MAGIC_KEY)

// ...

const isLoggedIn = await magic.user.isLoggedIn() // isLoggedIn === true

🌎 Environment

Software
Version(s)

magic-sdk
4.1.1

Browser
Microsoft Edge v88.0.705.56

Chrome v88.0.4324.146

yarn
1.22.5

Operating System
Windows 10

Are you able to sign a new DID token in the scenario you describe? If isLoggedIn returns true, it indicates that the KMS session is active and the user should be able to sign a token. The 400 from https://auth.magic.link/v1/session/refresh is a red herring because we try to hydrate the session in a number of ways.
If you could provide a more detailed, reproducing example that would help us a lot in troubleshooting for you!

@smithki thank you for your response. There really isn't any additional info. It worked fine until today, but now, even in a completely blank session in incognito mode, it thinks I'm logged in.
We call isLoggedIn() in the router to determine whether to redirect the user to the authentication page. The full code looks like this:
import { Magic } from 'magic-sdk'

const magic = new Magic(process.env.MAGIC_KEY)

// ...

router.beforeEach(async (to, from, next) => {
  const isLoggedIn = await magic.user.isLoggedIn()

  if (to.name == 'Home') {
    return isLoggedIn ? next({ path: '/dashboard' }) : next()
  }

  if (isLoggedIn) next()
  else next({ path: '/' })
})

I can't generate a new DID token since I'm not logged in. magic.user.getIdToken() just throws:
Magic RPC Error: [-32603] Internal error: User denied account access.

@smithki thank you for your response. There really isn't any additional info. It worked fine until today, but now, even in a completely blank session in incognito mode, it thinks I'm logged in.
We call isLoggedIn() in the router to determine whether to redirect the user to the authentication page. The full code looks like this:
import { Magic } from 'magic-sdk'

const magic = new Magic(process.env.MAGIC_KEY)

// ...

router.beforeEach(async (to, from, next) => {
  const isLoggedIn = await magic.user.isLoggedIn()

  if (to.name == 'Home') {
    return isLoggedIn ? next({ path: '/dashboard' }) : next()
  }

  if (isLoggedIn) next()
  else next({ path: '/' })
})

I can't generate a new DID token since I'm not logged in. magic.user.getIdToken() just throws:
Magic RPC Error: [-32603] Internal error: User denied account access.

I've tried to reproduce this behavior with your code snippet (I'm assuming this is Vue router?), but was unable to. I'm wondering if there's a reproducing example available in a public repository I can try?

@smithki Everything started working a few days later, even though we hadn't changed anything on that branch. I talked to the team, and it turns out we've had the same problem a few times before. We tried clearing cookies/cache/browser data, use incognito mode, and even tested on other devices. In all cases we got the same thing: isLoggedIn() returns true even if the user is not logged in. The issue appears suddenly, without any related code changes, and then disappears the same way...
After some consideration, we decided to switch to auth0, so I'm closing the issue as it is no longer relevant

Today we've experienced the same problem.
On a fresh deployment, at the first attempt.
After a 2nd, 3rd etc attempts everything worked fine

I'm reading this thread, and the developers haven't really explained in the SDK  the error occurs. Our user's are experiencing the same issue, when my machine doesn't experience it at all. Is it some magic link rate limiter? Can you just post an explanation for when this error can be thrown or is it a catch all that's send to the SDK? The above responder is not very technical, they are just saying they can't reproduce it on their machine. Can we get an engineer who knows the SDK to actually comment on the error itself and when you've programmed it to be thrown?

+1 to this issue...

Hi @osequi @NullSoldier @Colhodm ,
If you are still experiencing an issue would you please open a new Issue on this repo?
@NullSoldier , I am not sure what error message you are referring to. If it is Magic RPC Error: [-32603] Internal error: User denied account access, the error is thrown whenever you call a method that requires a logged in user. If I try to get the metadata of a user (magic.user.getMetadata()) but they aren't logged in then I will see that error.

Hey, my app was just working fine till now, and for the past few days, I am too facing this error. What may be the issue here?

@0xatulpatil Would you please open a new issue for this? Thank you!

@TomasGonzalez Would you please open a new issue for this? Thank you!

Any updates regarding this?


FFmpeg hangs on load and no console errors are displayed

Describe the bug
ffmpeg hangs on load and no console errors are displayed
To Reproduce
Steps to reproduce the behavior:

Download or clone the project https://github.com/ffmpegwasm/ffmpeg.wasm/tree/main/apps/react-vite-app
Start development (e.g. npm dev)
Open network tab in inspect element then click "Load ffmpeg-core"
An error shows (not in console, see screenshot) "worker.js?type=module&worker_file 504 Outdated Optimize Dep"

Expected behavior
The project should load ffmpeg and convert video from avi to mp4 (e.g. https://ffmpegwasm.netlify.app/video/video-15s.avi)
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows 11
Browser: Chrome
Version 115.0.5790.110

Smartphone (please complete the following information):
N/A
Additional context
N/A

Can you try to run npm run build at the root of the repository, that might be the root cause.

It works when building
I guess the issue might be related to vite

Got it, I will try to make it work with vite. Will update here if any findings.

Ran into this as well on a remix application.
Nothing special, just
const baseURL = 'https://unpkg.com/<EMAIL_ADDRESS>const ffmpeg = new FFmpeg()
await ffmpeg.load({
  coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
  wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
  workerURL: await toBlobURL(`${baseURL}/ffmpeg-core.worker.js`, 'text/javascript')
});

Attempts to access /worker.js that doesn't exist 🤔

Similar error here, but got a CORS error on the server.
My vite config is properly set, and the other resources show the header properly.

In 0.12.3, vite issues has been resolved, please feel free to try it: https://github.com/ffmpegwasm/ffmpeg.wasm/releases/tag/v0.12.3

Sorry but I believe this is the one I was using. I'll try again tonight but I think that was it.

With the latest version it fetches the scripts correctly but it gives me this error:
Uncaught (in promise) Error: failed to import ffmpeg-core.js
I tried loading without a config and also with a config like this:
const baseURL = "https://unpkg.com/<EMAIL_ADDRESS>await this.ffmpeg.load({
  coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, "text/javascript"),
  wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, "application/wasm"),
  workerURL: await toBlobURL(`${baseURL}/ffmpeg-core.worker.js`, "text/javascript"),
})

and i get the same error in both cases.
My vite.config.ts:
...
optimizeDeps: {
    exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
},
...

In 0.12.3, vite issues has been resolved, please feel free to try it: https://github.com/ffmpegwasm/ffmpeg.wasm/releases/tag/v0.12.3

This is a headache

Download zip from 0.12.3 releases link provided.

Unzip and move ffmpeg.wasm-0.12.3/apps/react-vite-app onto desktop

navigate to Desktop\react-vite-app and npm i, then npm run dev

Open http://localhost:5173/ in browser and hit Load ffmpeg-core

No error, worker not loading.

Check if response headers are present

Modify vite.config.ts to include headers

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    headers: {
      "Cross-Origin-Embedder-Policy": "require-corp",
      "Cross-Origin-Opener-Policy": "same-origin",
    },
  },
});

Check if present in main response

✔Looks good
Check for the worker:

❌Headers not present.
I suspect vite doesn't send headers when file is requested via @fs (first time I'm seeing this) is there any way to make this request without using @fs whatever it is?
http://localhost:5173/@fs/C:/Users/Username/Desktop/react-vite-app/node_modules/.vite/deps/worker.js?type=module&worker_file

Because the resource is fetched with new Worker, from the module itself, the file is not served by vite server at the expected url. There isn't the proper server header because it actually not found. Idk yet what the solution could be, but I was faced with exactly that.

In 0.12.3, vite issues has been resolved, please feel free to try it: https://github.com/ffmpegwasm/ffmpeg.wasm/releases/tag/v0.12.3

This is a headache

Download zip from 0.12.3 releases link provided.
Unzip and move ffmpeg.wasm-0.12.3/apps/react-vite-app onto desktop
navigate to Desktop\react-vite-app and npm i, then npm run dev
Open http://localhost:5173/ in browser and hit Load ffmpeg-core
No error, worker not loading.

Check if response headers are present

Modify vite.config.ts to include headers

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    headers: {
      "Cross-Origin-Embedder-Policy": "require-corp",
      "Cross-Origin-Opener-Policy": "same-origin",
    },
  },
});

Check if present in main response
✔Looks good
Check for the worker:
❌Headers not present.
I suspect vite doesn't send headers when file is requested via @fs (first time I'm seeing this) is there any way to make this request without using @fs whatever it is? http://localhost:5173/@fs/C:/Users/Username/Desktop/react-vite-app/node_modules/.vite/deps/worker.js?type=module&worker_file

I've recreated this and exclude ffmpeg from optimizeDeps, and it works
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  optimizeDeps: {
    exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
  },
  server: {
    headers: {
      "Cross-Origin-Opener-Policy": "same-origin",
      "Cross-Origin-Embedder-Policy": "require-corp",
    },
  },
});

I've started with a clean copy of react-vite-app and followed the same steps as before updating videoURL with a downloaded copy into ./public/ directory. (const videoURL = "/video-15s.avi";) and using the vite.config.ts contents you provided.
I'm not sure if I'm still doing something wrong but I hit this error:

Hopefully @olup will have more success than me.
If it makes any difference I'm running under Windows, Node v18.17.1, NPM v9.6.7

Works great for me following @AllenElguira16 config and excluding ffmpeg from vote config

I've recreated this and exclude ffmpeg from optimizeDeps, and it works

This part was not in the vite example last I checked

I tried it on another machine, and got to frame= 1 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x where it stalls.
I'll take another look later today to see if it works.

@mattiaz9 The baseURL should be esm instead of umd
const baseURL = "https://unpkg.com/<EMAIL_ADDRESS>

Since optimizeDeps: { exclude ... } is essential, I have added to the example. I am not sure what it is required as it is not required on my machine.

@mattiaz9 The baseURL should be esm version instead of umd version
const baseURL = "https://unpkg.com/<EMAIL_ADDRESS>

it doesn't exists: Cannot find an index in "/dist/esm" in<EMAIL_ADDRESS>

@mattiaz9 The baseURL should be esm version instead of umd version
const baseURL = "https://unpkg.com/<EMAIL_ADDRESS>

it doesn't exists: Cannot find an index in "/dist/esm" in<EMAIL_ADDRESS>
I think they all exist from my side:
https://unpkg.com/<EMAIL_ADDRESS>https://unpkg.com/<EMAIL_ADDRESS>https://unpkg.com/<EMAIL_ADDRESS>

Im using vite,  I was able to fix this by adding the following to the vite.config.ts
 optimizeDeps: {
    exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
  },
  server: {
    headers: {
      "Cross-Origin-Opener-Policy": "same-origin",
      "Cross-Origin-Embedder-Policy": "require-corp",
    },
  },

and using the esm links because the umd one for the worker seems to not work:
https://unpkg.com/<EMAIL_ADDRESS>https://unpkg.com/<EMAIL_ADDRESS>https://unpkg.com/<EMAIL_ADDRESS>

Having the same issue on Chromium, no issues on Firefox. It hangs even with a simple command ['-i', 'input.mp4', 'test.mp4'] where input.mp4 is this sample video.
Short ones from test data seem to work (video-3s.avi, video-1s.mp4)

I can confirm and reproduce the same issue, running Vite + Svelte, also applying optimizeDeps and using the esm/ffmpeg-....js it hangs on Chrome frame= 1 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x but not on Firefox

hi all , it looks like this bug is solved on the latest release 0.12.6 it's working for me on Chrome MT now, could you all please test and confirm?

Seems like the version 0.12.6 of core-mt isn't yet published on npm/unpkg
I tried this one https://github.com/ffmpegwasm/ffmpeg.wasm/actions/runs/6011459616 and it does have the issue.

Sorry @remixer-dec, here is my setup, and the only difference is I'm running ffmpeg inside a Web Worker, it it's working on Chrome
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Just double-checked, same setup, I'm having the same behavior as mentioned in #578 which mentions the same version

yes the same error I was getting before, now things seems to be working fine since I'm running it from a Web Worker

I'm unable to proceed with example rect-vite app, own app and official ffmpeg.wasm playground. Getting stuck on frame= 1 fps=0.0 q=0.0 size= 0kB time=00:00:00.10 bitrate= 3.6kbits/s speed=4.46x or Stream mapping https://github.com/ffmpegwasm/ffmpeg.wasm/issues/578 with any command.
Example video
Versions tried
"vite": "^4.4.5" / "vite": "5.0.0-beta.3"
"@ffmpeg/ffmpeg": "^0.12.6",
"@ffmpeg/util": "^0.12.1",

https://unpkg.com/<EMAIL_ADDRESS>/ https://unpkg.com/<EMAIL_ADDRESS>
Seeking for any possible workaround

Just double-checked, same setup, I'm having the same behavior as mentioned in #578 which mentions the same version

Same here with<EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>Chrome 118.
I am not running in a WebWorker.
Firefox and Safari both work but Chrome gets stuck.
I am forced to roll back to:
coreURL: await toBlobURL(
  "https://unpkg.com/<EMAIL_ADDRESS>  "text/javascript"
),
wasmURL: await toBlobURL(
  "https://unpkg.com/<EMAIL_ADDRESS>  "application/wasm"
),
workerURL: await toBlobURL(
  "https://unpkg.com/<EMAIL_ADDRESS>  "text/javascript"
),

I made it work with vite using this strategy:

I copied the core file into the project folder and imported it as URL. This meant that the file will get processed through the vite pipeline. Example code: import coreURL from 'src/ffmpeg/0.12.4/ffmpeg-core.js?url'

I copied the wasm file into a public directory of the project and linked to it directly (I believe you can use vite's URL import here as well).

My load() code now looks like this (not that I don't specify workerURL):

await ffmpeg.load({
  coreURL,
  wasmURL: '/ffmpeg/0.12.4/ffmpeg-core.wasm',
})

https://github.com/ffmpegwasm/ffmpeg.wasm/pull/653#issuecomment-1866179722
the same problem happens with the Angular example

Having this same problem https://github.com/ffmpegwasm/ffmpeg.wasm/discussions/678#discussioncomment-8351168 it's just hanging on load and no logs or anything.

This is what worked for me.
Add this to your Vite config as suggested by many others above
optimizeDeps: {
    exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'],
},

I'm using worker.format = 'es' in my Vite config because I have other web workers where I want to use ES syntax. I noticed in the code that default CORE_URL is from unpkg, which I would prefer not to use since I'm using Vite. If you look at the ffmpeg.load function, you can see that if you call load() with no parameters, it will default to the unpkg URL, which can't be loaded with Vite.
My solution was to first install @ffmpeg/core with my package manager then pass something Vite-friendly to the coreURL option in load().
import coreURL from '@ffmpeg/core?url';
import { FFmpeg } from '@ffmpeg/ffmpeg';

const ffmpeg = new FFmpeg();
ffmpeg.load({ coreURL });

The key is to import @ffmpeg/core with ?url so that it works with the Vite's async import() that's called in ffmpeg.load()

extra step for Yarn Berry (2+) users
If you're using Yarn Berry (2+) like me, an extra step you might have to take to get it to work is to configure server.fs.allow to allow Vite to import from your yarn cache, which is likely way outside its default search folder (the project root), depending on how you've configured Yarn
A relative path will be kind of impossible to use if you've got many people working on your project or you're using different machines with different folder structures. You can configure your yarn cache somewhere easily accessible with the relative path, but then everyone else you work with will have to do the same.
For maximum flexibility, I needed a way to get an absolute path. Luckily we can get that by calling yarn config cacheFolder and passing the --json option to output it as JSON. So the way I did it was to use Node.js child_process.execSync in my Vite config in order to get the path of yarn's cache folder and automatically add that to server.fs.allow
import { defineConfig, searchForWorkspaceRoot } from 'vite';
import { execSync } from 'child_process';

export default defineConfig({
  server: {
    fs: {
      allow: [
        // this is the default behavior, but setting the allow option overrides the default, so we add it back
        searchForWorkspaceRoot(process.cwd()),

        // a decent cross-platform solution
        JSON.parse(execSync('yarn config cacheFolder --json')).effective,
      ],
    },
  },
});

I managed to solve my issue by adding post-build command to copy the required .wasm files to the /dist of my build.
It works fine on my AMD PC and a M1 MBP. But some of my testers can't load it on their Intel MBP & Intel PC.
All using the same bundled electron version of our app.

vite+vue3
use 0.12.6 and esm, not umd
const baseURL = 'https://unpkg.com/<EMAIL_ADDRESS>
    await ffmpeg.value.load({
      coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
      wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
    });

vite.config.ts
  optimizeDeps: {
    exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'],
  },

im still having issues with
    "@ffmpeg/core": "^0.12.6",     "@ffmpeg/ffmpeg": "^0.12.10",     "@ffmpeg/util": "^0.12.1",
ive tried everything which was being discussed here.
the ffmpeg.load method just doesnt stop loading.

i also have the worker.js, ffmpeg-core.worker.js and ffmpeg-core.wasm files locally because the url https://unpkg.com/browse/<EMAIL_ADDRESS>isnt working anymmore?

dunno what happenede here.

its not working
using
"@ffmpeg/core": "^0.12.6", "@ffmpeg/ffmpeg": "^0.12.10", "@ffmpeg/util": "^0.12.1"
getting worker.js not found

vite+vue3
use 0.12.6 and esm, not umd
const baseURL = 'https://unpkg.com/<EMAIL_ADDRESS>
    await ffmpeg.value.load({
      coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
      wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
    });

vite.config.ts
  optimizeDeps: {
    exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'],
  },

love you


re-enable ts-events when we fix the Klotho emitter

The ts-events sample-app's integ tests currently fail due to CloudCompilers/klotho#410 1.
Once that ticket is fixed, we should re-enable the test.
1: currently in a private repo, sorry! We'll be making it available soon; if you see this and don't have access to the ticket above, please let us know, because we may have just forgotten to update the link.

Enabled for new path, need it for upgrade path as well as ts-eks and ts-eks helm


Are you really compiling it from source?

Really?
A lot of classes missed.
What the point of copying sources and building android.jar?
Just build AOSP, get frameworks.jar && android.jar and merge it together!
Do not use this repository, it lacks a log of APIs and maybe some classes are damaged.

提问题请具体说明是缺少哪个类，或者哪个类有问题

I need IBluetoothManager, IBluetoothManagerCallback

已添加
https://github.com/Reginer/aosp-android-jar/blob/main/android-34/android.jar


Artifact Reference Subpath

Summary
We should allow users to specify a subpath witthin a referenced artifact.
Motivation
We run workflows where we generate a folder of artifacts we then want to loop over. Our current implementation is to create a hard coded S3 key where we store the output artifacts in an unzipped folder and then run a loop that uses the {{item}} to specify a subkey in the S3 artifact path.
This becomes complex when we nest these loops inside of multiple DAGs and as such it would be helpful to be able to add a subpath to a referenced artifact.
Proposal
How do you think this should be implemented?
I think an example API could use a fromSubpath key to indicate when a user wants to use a subpath from a referenced artifact. Here is a rework of the classic artifact-passing workflow:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: artifact-passing-
spec:
  entrypoint: artifact-example
  templates:
  - name: artifact-example
    steps:
    - - name: generate-artifact
        template: whalesay
    - - name: consume-artifact
        template: print-message
        arguments:
          artifacts:
          - name: message
            from: "{{steps.generate-artifact.outputs.artifacts.hello-art}}"
            fromSubpath: 'hello_world.txt'

  - name: whalesay
    container:
      image: docker/whalesay:latest
      command: [sh, -c]
      args: ["sleep 1; cowsay hello world | tee /tmp/hello_world.txt"]
    outputs:
      artifacts:
      - name: hello-art
        path: /tmp
        archive:
          none: {}

  - name: print-message
    inputs:
      artifacts:
      - name: message
        path: /tmp/message
    container:
      image: alpine:latest
      command: [sh, -c]
      args: ["cat /tmp/message"]

Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

I'm trying to understand this. You have a step that generates a directory of files, and for each file in that directory, you want to loop over it? Could you please attach your current YAML?

I would recommend resolving the from variable with path concatenate in runtime. Controller is already resolving variables in other places like 'args' and command.
args: ["echo result was: {{inputs.parameters.message}}"]

eg:
    - - name: consume-artifact
        template: print-message
        arguments:
          artifacts:
          - name: message
            from: "{{steps.generate-artifact.outputs.artifacts.hello-art}}/hello_world.txt"

Can you use normal output artifacts (with auto-generated keys) and just make an output for every file you want to output?
  - name: whalesay
    container:
      image: docker/whalesay:latest
      command: [sh, -c]
      args: ["cowsay hello world > /tmp/hello_world.txt && cowsay bye world > /tmp/bye_world.txt"]
    outputs:
      artifacts:
      - name: hello-art
        path: /tmp/hello_world.txt
      - name: bye-art
        path: /tmp/bye_world.txt

A bit of context might help here. I am using Argo as a workflow engine, however I define the workflows and workflow templates using a separate (custom) tool. This tool lets me define re-usable/composable container templates and dag templates that I can inject into an Argo Workflow.
 To run these tasks in parallel I often split a big file into smaller files and iterate over them. In some cases the process of splitting files requires a DAG to perform "complex splitting".
When I nest a DAG inside another one I make use of the DAG template outputs key to expose any artifacts/parameters to the tasks in the "parent" DAG.  Once I do this it becomes difficult to resolve the path to an artifact output by a DAG task that is itself a DAG because the path to the artifact is defined deep inside the child DAG.
It's messy to explain so maybe this example will help:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: loops-nested-dag-artifact-passing-
spec:
  entrypoint: parent-dag
  templates:
  - name: parent-dag
    inputs:
      parameters:
      - name: split-by
        value: 4
      artifacts:
      - name: myfile
        raw:
          data: |
            1
            2
            3
            4
    dag:
      tasks:
      - name: split-dag
        template: child-dag
        arguments:
          parameters:
          - name: split-by
            value: '{{inputs.parameters.split-by}}'
          artifacts:
          - name: file
            from: '{{inputs.artifacts.myfile}}'

      - name: loop-read
        dependencies: [split-dag]
        template: read-file
        withParam: '{{tasks.split-dag.outputs.parameters.file-list}}'
        arguments:
          artifacts:
          - name: file
            from: '{{tasks.split-dag.outputs.artifacts.folder}}'
            fromSubPath: '{{item}}'

  - name: child-dag
    inputs:
      parameters:
      - name: split-by
      artifacts:
      - name: file
    dag:
      tasks:
      - name: split
        template: split-file
        arguments:
          parameters:
          - name: split-by
            value: '{{inputs.parameters.split-by}}'
          - name: output-artifact-folder
            value: '{{workflow.name}}/split-file'
          artifacts:
          - name: file
            from: '{{inputs.artifacts.file}}'

      - name: list-dir
        template: directory-list
        dependencies: [split]
        arguments:
          artifacts:
          - name: directory
            from: '{{tasks.split.outputs.artifacts.split-folder}}'
    outputs:
      parameters:
      - name: file-list
        valueFrom:
          parameter: '{{tasks.list-dir.outputs.parameters.directory-file-list}}'
      artifacts:
      - name: folder
        from: '{{tasks.split.outputs.artifacts.split-folder}}'

  - name: split-file
    inputs:
      parameters:
      - name: split-by
      - name: output-artifact-folder
      artifacts:
      - name: file
        path: /cowsay/file
    container:
      image: docker/whalesay:latest
      command: [sh, -c]
      args: ["mkdir tmp && split -n {{inputs.parameters.split-by}} file tmp/ && ls tmp | tee file-list.txt"]
    outputs:
      artifacts:
      - name: split-folder
        path: /cowsay/tmp
        archive:
          none: {}
        s3:
          endpoint: minio:9000
          bucket: my-bucket
          insecure: true
          accessKeySecret:
            name: my-minio-cred
            key: accesskey
          secretKeySecret:
            name: my-minio-cred
            key: secretkey
          key: '{{inputs.parameters.output-artifact-folder}}'

  - name: directory-list
    inputs:
      artifacts:
      - name: directory
        path: /tmp/artifact
    script:
      image: python:alpine3.6
      command: [python]
      source: |
        import json
        import os
        ls = os.listdir('/tmp/artifact')
        with open('tmp/list.json', 'w') as f:
            json.dump(ls, f)
    outputs:
      parameters:
      - name: directory-file-list
        valueFrom:
          path: '/tmp/list.json'

  - name: read-file
    inputs:
      artifacts:
      - name: file
        path: /cowsay/file.txt
    container:
      image: docker/whalesay:latest
      command: [sh, -c]
      args: ["cat file.txt"]

The child-dag template creates a folder with files inside. It is impractical to point to each file individually as an artifact as the number of files depends on the split-by value. Similarly it is challenging to hard-code the location of the folder from outside the child-dag context because it is defined as a variable called output-artifact-folder inside the child-dag.
In this case it becomes useful to let Argo do what it does best (resolve the artifact path at run time) and give it a subpath to iterate over the precise file I am interested in.

@sarabala1979 do you want to assist as you know this well?

Available for testing in v2.10.0-rc1.


Create a UI component for quitting the app

So in the top border (referenced in https://github.com/lukehefson/Menubar-popup-browser/issues/3#issuecomment-75939255) it would also be nice to add a 'settings' button so that users can actaully quit the goddamn app.
How about if it looked something like this?:

And then clicking it would open something like this with just a Quit Menubar popup browser item:

@keithduncan I found the icon on the noun project (so we'd just need to give credit somewhere). It's available in .png and .svg. How do these assets thangs work? What would you need??

:+1: looks good to me, a PNG will be fine

@keithduncan here you go!


attempt to index a nil value

Hey, I'm getting the following error when trying to run a custom hook.
Error executing vim.schedule lua callback: ....local/share/kickstart-nvim/lazy/gp.nvim/lua/gp/init.lua:1426: attempt to index a
nil value
stack traceback:
        ....local/share/kickstart-nvim/lazy/gp.nvim/lua/gp/init.lua:1426: in function 'query'
        ....local/share/kickstart-nvim/lazy/gp.nvim/lua/gp/init.lua:3143: in function 'callback'
        ....local/share/kickstart-nvim/lazy/gp.nvim/lua/gp/init.lua:3164: in function <....local/share/kickstart-nvim/lazy/gp.nv
im/lua/gp/init.lua:3155>

It appears to be this line that isn't able to grab a provider.
I disabled all my custom configuration and just used the hook sample from the README
        UnitTests = function(gp, params)
          local template = "I have the following code from {{filename}}:\n\n"
            .. "```{{filetype}}\n{{selection}}\n```\n\n"
            .. "Please respond by writing table driven unit tests for the code above."
          local agent = gp.get_command_agent()
          gp.Prompt(params, gp.Target.enew, nil, agent.model, template, agent.system_prompt)
        end,

I'm not sure if it's related to the new providers feature, but I tested with a few agents selected and couldn't figure it out. Thanks for the help!

Thanks for the quick fix! 👏


you need to focus that tab first

fix https://github.com/jackusay/cuda_tabs_openlocation/commit/df97476604b6bedd140882e32933060a1e52515b


Keyboard inputs locking, sticking, etc

I run into an issue where my keyboard will have an  input locked, even for extensive periods of time. They key will remain held and I will lose control of my keyboard only, Mouse still works.
Possible fix maybe removing key strokes from the program entierly?

The key manager doesn't work for the latest windows 11 builds due to them changing how csrss.exe functions with win32ksgd.sys.

The key manager doesn't work for the latest windows 11 builds due to them changing how csrss.exe functions with win32ksgd.sys.

How would you recommend going about a fix?


Add wheel color picker

This looks interesting
https://github.com/naeemur/react-native-wheel-color-picker
It needs to be added here:
https://github.com/croma-app/huehive-mobile-app/blob/3bf38915e2d7fe60ed7e1a5df99b60ca02dd54d5/components/ColorPickerModal.js#L43

#236


MVC upgraded from 4 to 5. Access denied javascript error

It loads on the index page and contact.   I've posted on stackoverflow. Because it would not show me the preview for my images.
http://stackoverflow.com/questions/26270749/glimpse-mvc-4-upgraded-to-5-javascript-error-access-denied-on-page-change

I've added a comment on your StackOverflow question @sscoleman. I'm going to close this issue in favor of the one there.


Northstar Client thinks my TV's native res is 1920x1080

The graphics settings seemed to have carried over from vanilla TF|2 except screen resolution.  I cannot select 3840x2160 as a resolution even in full screen.

nevermind i had to back into vanilla tf2 set my res then the NS client kept the res


Only treat ':' specially in the first path element

Hi,
This addresses the issue https://github.com/akarneliuk/pygnmi/issues/40 .
The real change is to make : special only for the first path element. The current code would look at every path element to set the origin, and any path element past the first one that contained a : would the origin to be overwritten.
In test_xpath.py I've included a bunch of example XPATH and the corresponding gNMI paths; taking from both the existing examples and from paths I need to generate. I tried to make really sure that existing documented path would be parsed the same way as the current code; if there is any example where that's not the case, I'll fix that.

Thanks a lot @fperrin , committed. I'm planning to make a new rerelease, thanks for contribution!


Feature/fix id in route attribute

When I was playing around with the client, I noticed a silly mistake in a RouteAttribute with id path parameter.
The correct format for a route is [Route("/{id}")] (the previous version was not catching the parameter [Route("/:id")]).
Another option would be to merge the GetAll and Get methods by applying the ? syntax for optional parameters.
[HttpGet]
[Route("/")]
[Route("/{id?}")]
public Task<List<WeatherForecast>> GetAll(string? id, CancellationToken cancellationToken)
{
	// ...
}

However, for the sake of a clearer example, I would not do that :)

Hi @TomaszCzyz
Oh yes, you are right. My bad. Can you also update the readme file? There is an example code that display this Controller.
And I would like to stick with 2 separate endpoints for GetAll and GetById. Like you said, it is clearer that way.

Hi @Odonno  README updated 😉

Nice. Looks good to me.

Hi @Odonno, should I mention someone or can you approve the workflow to merge the PR?

@kearfy is your hero.


Failed TCP handshake A Tokio 1.x context was found, but it is being shutdown.

When running cargo bench on master (dbb276bce23a768a20c5bd7f72619e3936d7375b), I'm flooded with shutdown errors (most of the time, but not 100%):
2022-12-06T03:34:31.650700Z ERROR ztunnel::proxy::socks5: Failed TCP handshake A Tokio 1.x context was found, but it is being shutdown.
2022-12-06T03:34:31.650666Z ERROR ztunnel::proxy::outbound: Failed TCP handshake A Tokio 1.x context was found, but it is being shutdown.

Bisecting suggests that it started with #161. cc @hzxuzhonghu

Looks this is accept error when shutdown


Coinbase wallet removes BCH support

See also: https://techstory.in/crypto-wallet-coinbase-stoping-bch-etc-xlm-and-xrp-support-citing-low-usage/

Verified via https://twitter.com/CoinbaseWallet/status/1597695219352621057


Forgot to add my paper to the index

@maheroux ... if you're interested, we can write a little Liquid code that will generate this file (at least on the rendered site) automagically

Thanks.  Next time.  We are in the home stretch now.


Remove KFP v2-compatible docs

v2-compatible docs are causing confusions to users: https://github.com/kubeflow/pipelines/issues/10287
Given v2 is out for 6 months and we have v2 docs updated, we should remove docs on the experimental v2-compatible mode.

/lgtm
/hold to let @chensun submit
I like this choice 👍🏼 . Thank you!


Feeback v1

Codecov Report

Merging #24 (85466a3) into master (04e7867) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   90.73%   90.73%
=======================================
  Files          32       32
  Lines        2838     2839    +1
=======================================
+ Hits         2575     2576    +1
  Misses        263      263

Impacted Files
Coverage Δ

cnctcli/actions/reports.py
93.89% <100.00%> (+0.02%)
:arrow_up:

cnctcli/actions/reports_params.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


client paramet "-T" cannot work

Could you please provide more details? Title is only used for logging information in the log file and not for screen printing.


Identity: add delegatecall abilities

allow the Identity contract to delegatecall, which will allow for easy code extensions, such as contracts to perform specific operations in AdEx or complicated defi operations (e.g. adding liquidity to uniswap with only one token by selling for half of the other)

This would be convenient but it's dangerous as it may brick the contract if it overwrites storage slots. Or move tokens. Generally a security nightmare


qwik-city: add events to be able to react to the client side navigation

Is your feature request related to a problem?
It would be nice to be able to react to the client-side navigation as currently, the page does not give any indication of loading which can lead to a bad user experience when trying to load a slow page, or on a slow network.
This should react when using the Link component or the useNavigate hook.
Describe the solution you'd like
Simple events could be dispatched on navigation start and end.
This could then be used in the App layout, where navigation loader could be a top progress bar to indicate something is loading:
  useClientEffect$(() => {
    console.log("adding document event listeners ...");
    const onNavStart = (e:Event) => {
      console.log("qnavigatestart event", e);
      document.getElementById("navigationLoader")?.classList.add("navigating");
    }
    const onNavEnd = (e:Event) => {
      console.log("qnavigateend event", e);
      document
        .getElementById("navigationLoader")
        ?.classList.remove("navigating");
    }
    document.addEventListener("qnavigatestart", onNavStart);
    document.addEventListener("qnavigateend", onNavEnd);
    return () => {
      console.log("removing document event listeners ...");
      document.removeEventListener("qnavigatestart", onNavStart);
      document.removeEventListener("qnavigateend", onNavEnd);
    }
  });

Describe alternatives you've considered
Using a store or signal to store if the navigation is on-going, but AFAICT this did not work well due to render buffering.
Raw events would also be easier to integrate with other libraries.
Additional context
No response

Should be possible now to track useLocation() isNavigating, to know when it's actively navigating!

Yes, I saw this was added when I looked at the code source today after the update.
This could work for some use cases, will have to test it.
Not sure if there is a good way to capture start / end for UI updates and potentially prevent navigation just using this.
Currently, there is another issue with the URL not being updated when using navigate though.


React-native export

Building a react-native expo app with @sanity/client while using the unstable_enablePackageExports metro config setting caused the app to use the incorrect polyfill of eventsource. Adding this export points react-native to the correct polyfill. With help from @joriregter ✌🏽

Might be a good option to look into a polyfill specifically for React Native such as react-native-sse.


Scope components to namespace and app id

Currently, when daprd is injected into a pod it will look for dapr components across all namespaces. Instead, from a security perspective, it should be scoped to only load components from the namespace in which it was injected.
Also see #1045

This will also support being able to specify which app can access which components.

Design
A solution for this issue will put forth the following assumptions:

Dapr sidecars in a given namespace will only load components from the namespace they are deployed to
A user will be able to specify which Dapr sidecars can access which components.

Namespaces
The sidecars will fetch all components from the Operator (as happens today), with a change having the Dapr runtime to discard any components that do not match the namespace it is deployed into, and thus not proceeding to load secrets or initialize the component.
Scopes
The following section will be added to the Component CRD to allow for a user to specify which applications can access the component (in a given namespace).
The following example will grant access to the queue component to apps app1 and app2 deployed to the production namespace.
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: queue
  namespace: production
spec:
  type: bindings.azure.servicebusqueues
  scopes:
  - app1
  - app2

@yaron2 will you allow universal components which can be used in all namespaces?  e.g. if namespace is not defined in yarml.

universal components are not allowed.
In kubernetes, if a namespace is not defined it's assumed to be in the current default namespace.

@yaron2 Does this imply that daprd communication cross namespace is impossible, not only for components, but for all services with sidecars? Further, is this part of the reason ingress controllers are seeming unable to communicate with their respective sidecar?

@yaron2 Does this imply that daprd communication cross namespace is impossible, not only for components, but for all dapr enabled applications? Further, is this part of the reason ingress controllers are seeming unable to communicate with their respective sidecar (considering sidecars can't communicate outside their namespace, but ingress controllers can forward traffic to an ingress in a different namespace)?

sidecars can communicate across namespaces: https://docs.dapr.io/developing-applications/building-blocks/service-invocation/service-invocation-overview/#namespaces-scoping

@yaron2 Does this imply that daprd communication cross namespace is impossible, not only for components, but for all dapr enabled applications? Further, is this part of the reason ingress controllers are seeming unable to communicate with their respective sidecar (considering sidecars can't communicate outside their namespace, but ingress controllers can forward traffic to an ingress in a different namespace)?

sidecars can communicate across namespaces: https://docs.dapr.io/developing-applications/building-blocks/service-invocation/service-invocation-overview/#namespaces-scoping

Apologies, I see. I am just trying to figure out why my controller traffic never makes it to daprd.

@yaron2 can the first 12 minutes of this dapr community video be replicated today?? https://www.youtube.com/watch?v=8W-iBDNvCUM
Other than the updated dapr annotation names...


Linux Crash on help

Linux wallet crashes when you type help into the rpc console.

client version?

I rebuilt branch slimcoin and it no longer crashes.

okay


Removed redundant Directory.Exists

Directory.CreateDirectory documentation states that it already checks for directory existence before creating it.
Fixes #20350

Duplicate of #20378 which is already merged.

Duplicate of #20378 which is already merged.

Technically this one was VB.net and #20378 was C#

@patgoull Ah I see now. Wasn't noticing this.


Add molecule tests for redpanda role

https://molecule.readthedocs.io/en/latest/
Ideally we should add Github actions to help with regression testing as well.

I feel that building out and maintaining molecule unit testing is a burdensome alternative to integration testing -- but am open to hearing an alternative POV!
I've configured the repo to support local testing against AWS through building the docker container, pasting in your cloud provider creds and then ./.buildkite/scripts/runtask.sh. Total runtime is about 7-10m because it includes standup/teardown.
It is also possible to cut total runtime substantially below that level by building out infra and then running through the tasks.
I may set up an explicitly local Dockerfile for testing that includes a cp . /app step to save some time for the user.


always show "Internal compile error. ...."

My unity version is 4.6.9p1, when i modify any code, the console always show errors below.
Internal compiler error. See the console log for more information. output was:Internal error: System.ServiceModel.FaultException1[System.ServiceModel.ExceptionDetail]: preprocessorSymbols (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.ArgumentException: preprocessorSymbols at Microsoft.CodeAnalysis.CSharp.CSharpParseOptions..ctor(LanguageVersion languageVersion, DocumentationMode documentationMode, SourceCodeKind kind, IEnumerable1 preprocessorSymbols)
at IncrementalCompiler.Compiler.BuildFull(CompileOptions options)
at IncrementalCompiler.Compiler.Build(CompileOptions options)
at IncrementalCompiler.CompilerService.Build(String projectPath, CompileOptions options)
at SyncInvokeBuild(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System...).

Thanks for report. It has been a long time since I have run Unity 4. I'll take a look at this problem.

Ok. I fix it and make new release. Please check it out.
Unity4 was passing an illegal preprocessor to a compiler which was ENABLE_NEW_HIERARCHY  (it has a trailing space) New compiler trims it before passing it to compiler.

Thanks for your reply. But still have another error.
Internal compiler error. See the console log for more information. output was:Internal error: System.ServiceModel.CommunicationException: The maximum message size quota for incoming messages (1048576) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. ---> System.ServiceModel.QuotaExceededException: The maximum message size quota for incoming messages (1048576) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. --- End of inner exception stack trace --- Server stack trace: at System.ServiceModel.Channels.ClientDuplexConnectionReader.DecodeMessage(Byte[] buffer, Int32& offset, Int32& size, Boolean& isAtEOF, TimeSpan timeout) at System.ServiceModel.Channels.SessionConnectionReader.DecodeMessage(TimeSpan timeout) at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout) at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout) at System.ServiceModel.Channels.TransportDuplexSessionChannel.Receive(TimeSpan timeout) at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message) at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at IncrementalCompiler.ICompilerService.Build(String projectPath, CompileOptions options) at IncrementalCompiler.CompilerServiceClient.Request(Int32 parentProcessId, String currentPath, CompileOptions options) at IncrementalCompiler.Program.RunAsClient(String[] args)
btw, how can i turn off "/unsafe ", There is so many unsafe code in my 3rd library, I can't modify them at all.
Thanks.

Oh another bugs!
To fix those problems, WCF buffer size is increased and -unsafe options is turned on by default.
Please check out new release which is replaced on same version.

Thanks for quick reply!!
I tried. but some other error appeared. it seems like the mscrolib's problem. how can i solve this?
error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

When I wrote small sample on Unity4, everything went well. So could you explain about your build environment? and please show me compiler logs on Assets/CompilerSetting dialog box.
If your build platform is Web Player (in Build Settings), it could be a reason that causes that problem. Web Player seems not compatible with Roslyn compiler.

My platform is android. and os is Windows7 64,
The log file is so large that I can only post part of the log
`

                      2016-06-01 09:30:10.050                            *

CSharpCompilerWrapper.exe version: <IP_ADDRESS>
Platform: Windows
Target assembly: Assembly-CSharp.dll
Project directory: E:\root\MyProj\UnityProj
Unity 'Data' or 'Frameworks' directory: D:/Program Files (x86)/Unity4.6.9p1/Editor/Data
Compiler: Incremental C# Compiler 6.0

Compilation -----------------------------------------------

Process: E:\root\MyProj\UnityProj\Compiler\IncrementalCompiler.exe
Arguments: -nostdlib+ -noconfig -r:"D:/Program Files (x86)/Unity4.6.9p1/Editor/Data\Mono/lib/mono/2.0/mscorlib.dll" -r:"D:/Program Files (x86)/Unity4.6.9p1/Editor/Data\Mono/lib/mono/2.0/System.dll" -r:"D:/Program Files (x86)/Unity4.6.9p1/Editor/Data\Mono/lib/mono/2.0/System.Core.dll" -r:"D:/Program Files (x86)/Unity4.6.9p1/Editor/Data\Mono/lib/mono/2.0/System.Xml.dll" @Temp/UnityTempFile-6018afb6ac67fea4fbce661a9d29d7f9
Exit code: 1
Elapsed time: 6.18 sec

Compiler output (1 line):
0: Compile failed. (Duration=4.1900744sec)

Compiler errors (11950 lines):
11520: E:\root\MyProj\UnityProj\Assets/ShareWithDS/Scripts/Trigger/EnemyPoint/EnemyPointGroupMsg.cs(62,35): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
11521: E:\root\MyProj\UnityProj\Assets/ShareWithDS/Scripts/Trigger/EnemyPoint/EnemyPointGroupMsg.cs(66,35): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
......
11835: E:\root\MyProj\UnityProj\Assets/ShareWithDS/Scripts/Weapon/Track/TrackFollow_MS20.cs(108,16): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
11836: E:\root\MyProj\UnityProj\Assets/ShareWithDS/Scripts/Weapon/BulletManager.cs(438,20): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
11837: E:\root\MyProj\UnityProj\Assets/ShareWithDS/Scripts/Weapon/Track/TrackParabolaPeak.cs(32,20): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.`

Hmm. It is getting tricky. I was delving into unity-mono compiler environment and found out that my compiler always use .NET 2.0 (mscorlib <IP_ADDRESS>) even if api compatibility level is set to .NET 2.0 Subset (mscorlib <IP_ADDRESS>). In according to your compile log, compiler discovered .NET 2.0 Subset and tried to link it but failed.
So my additional question is what is your Api compatibility level of your project. If it is .NET 2.0 Subset, please change it to .NET 2.0 and try it again.

I just released 1.2.4 to handle .NET 2.0 Subset profile.
Please try new compiler with .NET 2.0 Subset build option.

Thanks a lot, it works now!!

Great! Please enjoy it :smile:


fix border-radius on radio-switch

Description
add radio-switch sample and fix border-radius on radio-switch when roundet disabled

Type of changes

[x] Bug fix (non-breaking change which fixes an issue)

Checklist

[ ] I have read the contributing guidelines
[ ] My code follows the code style of the project (using npm run lint)
[ ] My change introduces changes to the documentation
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] All new and existing tests passed

Live previews

https://deploy-preview-38884--twbs-bootstrap.netlify.app/docs/5.3/forms/checks-radios/#switches

Related issues

👍


Brandonmain

made the views responsive for different resolutions

accidently did all the work on the main branch so i had to copy all the files and move them


I am this after i type spyder in Anaconda prompt and spyder is still crashing.

Start of MainWindow constructor
appusermodelid: 0
End of MainWindow constructor
*** Start of MainWindow setup ***
  ..core actions
  ..toolbars
  ..tools
  ..sift?
  ..plugin: internal console
    ..internal console: initializing
  ..plugin: working directory
Loading help...
Loading outline explorer...
Loading editor...
Assertion failed: Connection reset by peer [10054] (C:\ci\zeromq_1549025594292\work\src\signaler.cpp:371)
Assertion failed: Software caused connection abort [10053] (C:\ci\zeromq_1549025594292\work\src\signaler.cpp:192)
[17152:13292:0510/133910.517:ERROR:broker_win.cc(59)] Error reading broker pipe: The pipe has been ended. (0x6D)

This problem is caused by your firewall and/or antivirus. Please deactivate them and try again, that should fix your problem.

This problem is caused by your firewall and/or antivirus. Please deactivate them and try again, that should fix your problem.

No,  I stopped my firewall it is still not running and i am using Quick Total protection as my firewall and my friend too is using the same but is running in his laptop but not in mine.
Spyder is not opening its editor and whole UI, only the main window come on which Spyder3 is written and then after Loading editor.... it closes and nothing happen after that.
I have tried from Spyder shortcut
I have tried from Anaconda
I have tried from Anaconda terminal
nothing helping.

Sorry, that's all that I know about this problem. You can also get help in our Gitter channel:
https://gitter.im/spyder-ide/public


Confusion About Focus Maps Loading in llff.py

In the llff.py I see that in line 222, code is loading focus_maps self.focus_path = os.path.join(self.root_dir,f"focus_map_{fmo}_{self.focus}.npy")
how to generate these focus maps and are they same as the ones mentioned in the README.md but with wrong file path?

Hi @saikrn112, I apologize for the late response.
I found there are some errors in the released codes (wrong paths and hyperparameters), and I'll handle it in a few days.
Thanks for your patience.


.onion TLD support

Tor domain names identified by their ".onion" top level domain are marked as down, when they are up and running.
Possible solutions:

Use a Tor-HTTP gateway
Run an optional Tor proxy to check their status
...

This isn't something I can test. Feel free to implement it in the link-check module and submit a pull request.


Allow task argument subclasses

Description
This builds on #233 to allow module implementations to use subclassed data model types to implement tasks. Whether or not this is a good idea is definitely up for discussion!

We decided we don't want this functionality for now


How to set currencyCode?

I noticed that CreateTransactionModel has  a currencyCode property, however, I don't see how to set it using TransactionBuilder.  Is there some way I'm missing, or should I make a pull request for
    public TransactionBuilder withCurrencyCode(String currencyCode) {
        this.model.setCurrencyCode(currencyCode);
        return this;
    }

to be added to TransactionBuilder?

This issue is fixed and released as part of 22.5.1. Please take an update and let us know if you happen to see any issues.


Log to stdout and stderr

The original Dockerfile already was doing this -- gunicorn invoked with --log-file=-

Huh, I guess I was not familiar with that syntax, also we weren't seeing logs, but also that might not have been gunicorn, can we confirm?

Gunicorn doesn't log much beyond worker startup without additional config. I'll change the name of this issue to add more detailed log info.

One more change struck me as wanted here

It's a general Gunicorn config addition that's needed here, really

Yep that would be lovely.

#22


Add board definition for stm32 nucleo_f767zi

Refer to Pull Request "Added stm32 nucleo_f767zi board support #21428"
Based on erwango's request to only submit 2 commits, one for the board additions, another for dts.
Tried to rebase but messed up with even more commits.
Signed-off-by: Roland Ma<EMAIL_ADDRESS>

@ioannisg made the changes for the kconig, but got this Nits fail in CI


OCM-2666: Remove AWS validations from rosa_cluster resource

This change is done in order to avoid the requirement to have valid AWS credentials in the local machine, in which the terraform executed. This change include:

Remove the relevant code from the provider
changing the subsystem accordingly to the change
Removing limitation from docs

/uncc @AsherShoshan
/cc @bardielle

/lgtm
/approve

/lgtm


Enable HEVC SCC decoding.

Signed-off-by: Yan Wang<EMAIL_ADDRESS>

This is a draft still. I can continue to refine it. Welcome review comments. Thanks.

@onabiull @alariono I have refined this PR based on your comments. Could you please review it again? Thanks.


is this High performance?

compare to SciChart,How   is the difference

Sorry for not responding, I just don't have much time.
Is this question still relevant.
SciChart is a monster!
Best charting solution across ALL platforms, and I use it my self.
The thing is that this library is much much more simpler and focuses on a very specific use case.
That is why I was able to optimize it to be so fast.


easy way to read a bunch of characters at current offset?

I'm struggling to make it read an array of bytes after a couple of readInt8/16's, printDebug is showing the right offset, but I'm failing to retrieve only 7 bytes from the array. tried using copy, slice (it's returning the whole array), clone, along with mark, flip, compact.

I would be useful to have a method that returns a slice of the specified length from the current offset and advances the offset accordingly. Currently, it has to be done in two calls:
var slice = myByteBuffer.slice(myByteBuffer.offset, myByteBuffer.offset + sliceLength);
myByteBuffer.skip(sliceLength);

How about having this instead?
var slice = myByteBuffer.readBytes(sliceLength);