pull request for e2e test at 02/05/2017 04:45:07

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


NodeJS, PassportJS or JWT in Google Cloud Functions

Hello, I would like to know if it is possible to make an authentication system using nodejs with passportjs or JWT integrated with Google Cloud Functions, which I want to know exactly if doing the authentication in GCF I do not have to authenticate every time I do an action and yes only authenticate once

Sorry, not sure.


Renamed packages are not pushed

Some packages (such as notepadplusplus.vm renamed in https://github.com/mandiant/VM-Packages/pull/98) haven't been pushed to myget because our action only checks modified nuspec files and not renamed ones if they are not modified. Note that in a package change of name, the version is not modified. We need to:

Fix action.
Push packages manually (idea: we could have an action to repush packages so that we don't need to do this manually, but not sure how much we will use it)
[optional] removed unused/old packages

[] All packages deleted
[] All packages rebuilt and pushed

Removed Python2.vm from VM-Packages

closed via #129 and above mentioned house-keeping


Linux: /environment throws exception

The /environment route, which returns version and siteLastModified data, throws an exception and returns a stack trace on a Linux site.
Culprit appears to be missing $TMP env var. I don't think SiteLastModifiedTime.txt exists on Linux sites either.
https://github.com/projectkudu/kudu/blob/06eb338f81e8ef91a1fd1fa75760a104eac3868a/Kudu.Services/EnvironmentController.cs#L30

It's a file written by DWAS to tell the site when the config was last modified. However, the code does handle this file not being there.

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


eliminate dangerous and/or useless casts from zlib

It looks like the etc.c.zlib.d was mostly written in D1; it isn't const correct, even compared to the original C! http://www.zlib.net/manual.html
Fixing that constness, I went up and started fixing other const related issues in the public API. compress returned a const void[]... and uncompress took a mutable array. Why? With the fixed C binding, there was no need for these. (And the presence of two casts on most unittest lines that used this showed the signature was just wrong to begin with anyway. Any typical usage that requires two casts ought to be a bit smelly. Especially since those unittests are the closest thing std.zlib has to usage examples!)
So this fixes the broken api in a way that won't break any code - the fixed signature will still implicitly cast to/from the old one, while enabling the elimination of like a bazillion casts.
Finally, casting slices to something directly just kinda worries me, so I tossed in the .ptr property explicitly when I saw that. Half those casts aren't necessary either, but half of them are (the ones from void*) so I kept them while just cleaning it up a wee bit.

LGTM

LGTM

Auto-merge toggled on

This pull request fixed https://issues.dlang.org/show_bug.cgi?id=14821


Improve performance of MergedDocuments::iter_top_level_fields

/bench workloads/hackernews-add-new-documents.json workloads/hackernews-modify-*

Closed as not profitable enough


the part where you test you code doesn't work

in not able to get the test code function after on lesson 100. i tried skipping it but then the next section
had the same issue i wasn't able to run that function eve though i wrote down the code correctly. Then i
went back to the previous lessons and i didn't have any issue running the test your code function

Challenge Name

Target HTML elements with selectors using JQuary
Issue Description

I'm not able to use the test the code function in order to move on to the next lesson and challenge
Browser Information

Browser Name, Version:  Google chrome
Operating System: Windows 7
Mobile, Desktop, or Tablet: Desktop

Your Code

jQuery Playground

#left-well

#target1
#target2
#target3

#right-well

#target4
#target5
#target6

Screenshot

Hi, you have a typo in your code - uppercase and lowercase matter in jQuery! If you need help fixing it, please ask in the Help chat.

@simekhakhatima as @Margaret2 has pointed out, capitalization is important.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding!


ci: fixes ENOSPC warnings

See these errors which spammed the CI: https://travis-ci.org/github/Hacker0x01/react-datepicker/builds/706480820#L1628

Works as expected.


credentials.json is world-readable

Librespot caches credentials in $cache/credentials.json. On my system (Arch Linux; using Librespot through spotifyd) the file seems to be created world- and group-readable (644).
The file stores an authentication token, not the password, so I guess this is not a very serious security issue. It should probably at least be mentioned in the docs that the cache dir should be kept secure (700). As it stands, users might (sensibly!) assign /tmp as a cache dir, which would expose the token to all users on the system.

I would like to start working on this one but I am completely new to Rust so I would like to ask  somebody opinion on the implementation.
I took a quick look at the code and the main problem that I see is the portability between Windows and Unix.
i.e I could do something like this in authentication.rs
        use std::os::unix::fs::OpenOptionsExt;

        let mut options = OpenOptions::new();
        options.write(true).create(true).truncate(true);

        if cfg!(unix) {
            options.mode(0o600);
        }

        let mut file = options.open(path.as_ref()).unwrap();
        self.save_to_writer(&mut file)

but the tricky part would be to conditionally compile std::os::unix::fs::OpenOptionsEx.
My first thought is to separate the logic into different files with a trait or an interface  and then load that specific file conditionally with #[cfg(target_os = "<unix|windows>")]

Added a note in the README.md

Added a note in the README.md


Fix missing OPENAI_API_KEY

The PR that enabled .env was breaking.  See issues:  #589
#590
I tested this with OPENAI_API_KEY set in both .env and as a bash env variable and it worked.

I looked at your change in main.py. mine from stable version looks different. I added your change and still same error. See below: `import logging
from pathlib import Path
import typer
from dotenv import load_dotenv
import openai
from gpt_engineer.ai import AI, fallback_model
from gpt_engineer.collect import collect_learnings
from gpt_engineer.db import DB, DBs, archive
from gpt_engineer.learning import collect_consent
from gpt_engineer.steps import STEPS, Config as StepsConfig
def load_env_if_needed():
if os.getenv("OPENAI_API_KEY") is None:
load_dotenv()
openai.api_key = os.getenv("OPENAI_API_KEY")
app = typer.Typer()`

🙏  @pbharrin


Why not use rustfmt?

Is there a reason why iron/iron code does not comply with rustfmt format?
It means that those of us who use rustfmt plug-ins have to disable the plug-ins from our editors before we can work on this project. It also open space for discussions about style...
I'm happy to create a Pull Request for this, but first want to know if there's a reason for not using it.

Feel free to open a PR and cc me
On Wed, Apr 12, 2017 at 06:56:53AM -0700, Yves Dorfsman wrote:

Is there a reason why iron/iron code does not comply with rustfmt format?
It means that those of us who use rustfmt plug-ins have to disable the plug-ins from our editors before we can work on this project. It also open space for discussions about style...
I'm happy to create a Pull Request for this, but first want to know if there's a reason for not using it.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/iron/iron/issues/532

I'm concerned this will make merging #523 etc very hard.

@Hoverbear Would make sense to cancel this PR (there really was no worked involved), put a moratorium on big PRs until the current ones are being merged, and start this initiative again after that?

agreed with @dorfsmay, this could be done in either order. It doesn't matter tbh.

@dorfsmay @untitaker I'm happy to do whatever as well.  If you wish to merge #533 first, I can rebase on top of that, maintaining the rustfmt runs.  In fact I suspect there is some git trickery I could do to make that trivial :).
Or we can merge #523, then redo #533 on top.  Whatever works for the iron project.

Since #523 is merged, I will now run rustfmt on all files :)


Improve the smiley, string & text helpers

Some speed improvements and fixed/cleared spaces and comments.
Also removed a PHP_VERSION < 5 check, as PHP 4 is no longer supported.

Last commit should partially fix #929.


ESP Easy will do a hard (config) reset when connected via USB-C w/o Serial adapter

Hi all,
fyi - maybe it sould be documented somewhere what we found out here: https://www.letscontrolit.com/forum/viewtopic.php?p=64424#p64424
Summary;

ESP Easy resets configuration when RX/TX is connected on boot
When connecting AC wall adapter via USB-C to the board while not using Lilygo Serial adapter this seems to be the case -> ESP Easy resets to config defaults

That ESPEasy is resetting to factory defaults when it detects a short between RX and TX is of course a feature we could disable in specific builds.
But this is a bit more serious as all data sent is thus echo'ed back to the RX.
In ESPEasy received texts are being parsed as if they are commands, as it is essentially a console.
Thus it will continuously echo the given command with some text that it was an unknown command.
But this will never stop as this error is then also echo'ed back etc.
I can imagine lots of other projects will probably not act nicely when RX and TX are shorted.

Hardware solution - Use this USB cable: https://www.amazon.de/dp/B09479KTC9/
(not tested yet)


fix: docker images

optimize docker images

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


Show matrix rows in a treelike view

The current matrix app allows us to show the different z values for a combination of x and y values. It will show the x or y values in a flat list.
In this issue, we want to explore the possibility of showing a hierarchal dependency of y values in the same view. This essentially means combining the treeview app and matrix. I only mentioned y because we already have a UI solution for showing a vertical tree (tree view app), but a horizontal one might not be as straightforward.
This description is subject to change and is not finalized. I created this issue so we can keep the discussion about this feature in one place.

When we build ermrestjs, chaise, or deriva-webapps, a new dist folder is created. We then deploy this folder into a desired location (either remote or local).
Since this is an experimental feature, we want to avoid deploying it on the server and want to be able to test it locally. So we only want to build the files and skip deploying the code to another location.
In the following, I will write step-by-step instructions on how to achieve this:

Ensure Node.js is installed on your machine. I recommend installing it with nvm, allowing you to switch between different versions easily.

You need to create a parent folder that, in the end, we can serve. All the repositories you will clone must have the same parent folder and are siblings. In my case, I created a folder called "isi":
mkdir isi
cd isi

Let's continue by cloning ermrestjs and deriva-webapps in this folder:
git clone git@github.com:informatics-isi-edu/ermrestjs.git
git clone git@github.com:informatics-isi-edu/deriva-webapps.git

Our build process can be customized by defining environment variables. The following is how you should define them for this local installation:
export WEB_URL_ROOT=./../
export WEBAPPS_REL_PATH=
export ERMRESTJS_REL_PATH=../../../ermrestjs/dist/
export CHAISE_REL_PATH=../../../chaise/dist/

Use echo command to make sure these variables are correct, so
echo $WEB_URL_ROOT
echo $WEB_INSTALL_ROOT
echo $ERMRESTJS_REL_PATH
echo $CHAISE_REL_PATH

This should print the defined values, not /var/www/html paths or empty values.

Build ermrestjs:
 cd ermrestjs
 make dist

If this step was successful, you should see a dist folder under ermrestjs folder.

The previous steps are only needed for the initial setup, and you don't need to repeat them when implementing deriva-webapps features. So now let's go to the deriva-webapps folder and switch to the proper branch:
cd ../deriva-webapps
git checkout matrix-treeview

In this branch, I made the initial changes to make the matrix app work locally. In the local-test folder, you can find the following files:

matrix-config.js: The configuration file that matrix uses for finding where the data are and other customization. Here is the equivalent version on the main branch. You can see how we're using relative paths instead of referring to /ermrest/.
x_values.json, y_values.json, z_values.json, x_y_z_values.json: The data files.

While you can build deriva-webapps with the same make dist command as ermrestjs, it will always reinstall npm packages. While developing features, I would like to skip this step. That's why I directly install the dependencies and then use an alternative command to skip the reinstallation of npm packages. So run the following to install all the Chaise dependencies:
make npm-install-all-modules

(optional) Properly define NODE_ENV depending on whether you want to install in "development" mode or "production":
export NODE_ENV="production"

Use "production" mode by default. Use "development" mode only when you want to debug.
If this environment variable is not defined, it will default to "production" mode.

Build the matrix app:
make dist-wo-deps

If this step was successful, you should see a dist folder under deriva-webapps folder.

You can now access the matrix app by opening the deriva-webapps/dist/react/matrix/index.html file in a browser. But this will give you a CORS error while fetching the data. To solve this, you should solve the parent isi folder we created. The simplest way to achieve this is using the Live Server extension of VS code. I highly recommend using VSCode for development in general. For this, follow the following steps:

Install VS Code.
Install Live server extension
Open the isi folder in VS Code. I recommend creating a workspace based on this folder.
You will see a "Go Live" button on the bottom right of VS Code. Click on it.
It will open a browser and shows the content of isi folder. Navigate to deriva-webapps/dist/react/matrix
You should see the matrix app properly loaded.

I added y_values_tree.json with an example row of how data might relate in parent/child relationships. This should be expanded to have more rows to make the tree structure more complex. A similar file should be created for the x axis when working on the horizontal tree.
This is a link to the functions used to consume the relationship data and create the tree from it in the treeview app:
https://github.com/informatics-isi-edu/deriva-webapps/blob/master/treeview/js/main.js#L692-L987

Thank you, this is very helpful. I will look at it

To extend the function, I explored different plug-ins and filtered the appropriate ones by comparing the UI extensibility and applicability to the project requirements, as well as browser compatibility and other features. Details can be found in the Hierarchy Plug-ins doc.
Through test cases for AntV, MUI, and rc-tree which are in the positive list. MUI gives us more customization for the style of trees than AntV, and more built-in functions than rc-tree.
So I choose MUI as the tree component to dig in and begin introducing it to the matrix app.


Option to add author to compact history view

Firstly, thanks for carrying on the development of GitAhead, and as an open source project.
Would it be possible to have an option to show the Author/Committer in the Compact Mode view next to the date?
Currently you have to disable Compact View, or click on the entry to view the author. Compact view is much easier to read, especially on wide screen. I appreciate not everyone needs this column in compact view, so hence asking to make it optional.

Hi @mahomedh , thanks for the kind words! Can you explain more about what you mean with compact mode?

Hi @Murmele
This is what I mean by the detail history/ commit log view. As you can see, it shows Author and date on the first line, then the ID and then the commit message.

But below is what you see when you choose "compact" mode. As you can see, the commit message, date and ID are on one line. So my request is for the ability to have an option to show the author on this same line.

Hi!
Thanks also for your work on Gitahead/Gittyup, that's a great tool (and I've tested many, many git UIs....)
Regarding this commitlist, I think it deserves a few options indeed.
I can understand why some may need to have the author in compact mode; this could come with another option to hide the commit id (and that'd make room for the author on small screens in compact mode)
Most of the time I really don't care about the commit id and it makes it difficult to read other data.
I know Qt and I could create a pull request, when I'll have a bit of time to write it.
From what I've seen I would:
Add the two settings and their id in Settings
Add the option in the CommitToolBar
Modify the CommitDelegate  in commitlist.cpp
That's seems right?
Is there anything specific to know to compile and test?

I had time to do that already, it's #552

@Murmele
Can this issue be closed?  I think this feature has been implemented and is working on master.

Thanks for the reminder :)


Update docker to last stable 18.09.4

Pull Request Checklist
Update docker to last stable 18.09.4 so new buildkit can be used to speed up docker builds.
Check/accept these:

[X] I've updated the version in the Dockerfile
[X] I've updated the CHANGELOG.md
[X] I've provided a link or explanation below which describes the changes in the tool itself

https://github.com/ambientlight/bitrise-base/blob/patch-1/CHANGELOG.md

still, containerized buildkit doesn't seem to be available even for 18.09.4

Hey @ambientlight, thanks for the PR! 🚀 We haven't merged it because we need to upgrade docker on the underlying VMs as well and we'll merge the two PRs together but we haven't forgotten about this :)

@ghaabor: no worries, though I still haven't figured out why exactly docker-in-docker 18.09.4 daemon doesn't not have buildkit support available

@ghaabor: no worries, though I still haven't figured out why exactly docker-in-docker 18.09.4 daemon doesn't not have buildkit support available

My guess for now is it's because the host outside has an older docker installed. In this case the installed docker just acts as a docker client inside the container, the actual docker is daemon is running outside, on the VM.


Make Data Sets Consistent

Download as csv and then reupload to make all fonts et. al the same.
Fix the columns the way you'd like.

guideline for matching wih multiple speakers

Names with initials are not included in the fuzzy matching process because a single letter change–usually the initial–is sometimes used to distinguish between two speakers who have the first and last name but are different people.
It would be great if we could still perform fuzzy matching with these names, but ignore the middle initial.


Tag v0.16.1

Purpose
Update dependencies
Tag v0.16.1

[x] I have read and checked the items on the review checklist.

Maybe wait for #2141 ?

Yeah, we could do that or just bump the ref counter in this PR, I'm fine with either one. Maybe keep it separate for tracking CI sake (since it's technically behavior changing)?

I rebased!

bors r+


initial commit for simple self-contained cuda example

Description
This PR adds a simple, self-contained example as a test case called 'example-cuda'. It's basically just a stripped down version of testshade, wrapped up so that one could copy it out of tree and get it building as a standalone example with minimal changes to the CMakeLists.txt. I'm submitting this as I just started looking at OSL in CUDA recently and this is the example I would have loved to have started from.
This example is pure CUDA rather than OptiX, but I'd like to do a matching OptiX version at some point.
Tests
It is a test :)
Checklist:

[x] I have read the contribution guidelines.
[ ] I have previously submitted a Contributor License Agreement.
[ ] I have updated the documentation, if applicable.
[x] I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
[x] My code follows the prevailing code style of this project.

I'm ready to merge whenever you let me know you've worked it all out with your company and they are clear with you that this work is covered by the CLA they've already signed.

All is good with the overlords but I'll need to give you an individual CLA.
Where should I email it to?
On Sun, 1 Nov 2020 at 10:47, Larry Gritz<EMAIL_ADDRESS>wrote:

I'm ready to merge whenever you let me know you've worked it all out with
your company and they are clear with you that this work is covered by the
CLA they've already signed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/imageworks/OpenShadingLanguage/pull/1280#issuecomment-719992524,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOYQXN6G3V4EK75QH4WBFDSNSAXXANCNFSM4S7AL5CQ
.

For OSL, email CLAs to<EMAIL_ADDRESS>for OIIO mail to<EMAIL_ADDRESS>

CLA received.
Anders, can you please rebase this on top of the current master and then do a push --force? I think the CI failures are all things unrelated to your change, which have already been fixed. But I'd love to see a fully passed CI so we know there's not a problem lurking in this patch being masked by the other failures.

Done and done. Unfortunately the Appveyor build appears to be failing on
the pugixml build?
On Fri, 6 Nov 2020 at 19:34, Larry Gritz<EMAIL_ADDRESS>wrote:

CLA received.
Anders, can you please rebase this on top of the current master and then
do a push --force? I think the CI failures are all things unrelated to your
change, which have already been fixed. But I'd love to see a fully passed
CI so we know there's not a problem lurking in this patch being masked by
the other failures.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/imageworks/OpenShadingLanguage/pull/1280#issuecomment-722901808,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOYQXJRUU77BQI3RK6NBZ3SOOKI3ANCNFSM4S7AL5CQ
.

Don't worry about the appveyor. I should just kill that entirely.


add compiler

I like your project. Can you plz implement compilers like gcc/clang/make/cmake etc on editor? It will helpful to coding on editor and compile and run...
If possible improve more for better editor... go ahead... thanks

Hey, glad you like it! Adding a way to build and run projects from within the editor is a thing I have thought of adding before, both by adding a builtin terminal (with PTYs or something) and by scripting and adding command macros to function keys. Be sure I'll work on it right when I finish implementing some more "crucial" features I'm still working on, like the undo stack of more complete syntax support.

also editor not responsive on mobile devices (neoterm/termux). make it good look on all os terminals. also remove : and add colors for line count bar and on background. Dark colors mode will be best. dont use white color.
I will use this project on my programming language. thanks again.

Use Makefile:
CC=cc
CFLAGS = -pedantic -Wall -Wextra -Wno-unused-parameter -I. -I./include
LDFLAGS = -lm

ifeq ($(OS),Windows_NT)
	CC = cc
	CFLAGS += -std=c89 -DWINDOWS
	LDFLAGS += -lws2_32 -lShlwapi
else
	UNAME_S := $(shell uname -s)
	ifeq ($(UNAME_S),Linux)
		AR += ar
		CFLAGS += -std=c11 -DLINUX -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
		LDFLAGS += -Wl,-rpath=./
	endif
	ifeq ($(UNAME_S),Darwin)
		AR += ar
		CFLAGS += -std=c11 -DDARWIN
	endif

	CFLAGS += -std=c11 -fPIC
	LDFLAGS += -ldl
endif

SRCS  = bd_config.c
SRCS += st_cobol.c
SRCS += bd_dialog.c
SRCS += st_js.c
SRCS += bd_explore.c
SRCS += st_md.c
SRCS += bd_global.c
SRCS += io_linux.c
SRCS += syntax.c
SRCS += bd_text.c
SRCS += match.c
SRCS += bd_view.c
SRCS += bd_welcome.c
SRCS += bedd.c
SRCS += st_c.c

OBJS = $(addprefix obj/,$(notdir $(SRCS:.c=.o)))

STATIC ?= 0
ifeq ($(STATIC),0)
	ifeq ($(OS),Windows_NT)
		LIB = libbedd.dll
	else
		LIB = libbedd.so
	endif
	LIBFLAGS = -L. -lbedd
else
	LIB = libbedd.a
	CFLAGS += -DSTATICLIB
endif

ifeq ($(OS),Windows_NT)
	install = @install bedd.exe libbedd.dll /bin
	clean = @rm -f bedd.exe libbedd.a libbedd.dll /bin/bedd.exe /bin/libbedd.dll
else
	install = @cp bedd $(PREFIX)/bin && chmod 755 $(PREFIX)/bin/bedd && cp libbedd.so $(PREFIX)/lib && chmod 644 $(PREFIX)/lib/libbedd.so
	clean = @rm -f bedd libbedd.a libbedd.so libbedd.dll $(PREFIX)/bin/bedd $(PREFIX)/lib/libbedd.so
endif

VPATH  = ./:./include
INCS := $(wildcard include/*.h)

.PHONY: all
all: mkdir bedd
mkdir: obj

obj:
	@mkdir obj

bedd: obj/bedd.o $(LIB) Makefile
	@$(CC) $(CFLAGS) obj/bedd.o $(LIB) $(LIBFLAGS) $(LDFLAGS) -o $@
#	@rm -rf obj
	@make install
	@echo "[Created]: bedd\n\nUse Command: ./bedd (For Shell) or ./bedd [file]\nInstall Command: make install\nTest Command: make test\nClean Command: make clean\n"

libbedd.a: $(OBJS) $(INCS) Makefile
	@echo "\n Please wait...\n"
	@$(AR) rcu $@ $(OBJS)
	@echo "[Created]: libbedd.a"

libbedd.so: $(OBJS) $(INCS) Makefile
	@echo "\n Please wait...\n"
	@$(CC) $(CFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@
	@echo "[Created]: libbedd.so"

libbedd.dll: $(OBJS) $(INCS) Makefile
	@echo "\n Please wait...\n"
	@$(CC) $(CFLAGS) -shared $(OBJS) $(LDFLAGS) -o $@
	@echo "[Created]: libbedd.dll"

obj/%.o: %.c $(INCS) Makefile
	@$(CC) $(CFLAGS) -c $< -o $@
	@echo "[Creating Obj]: "$<

install:
	@$(install)
	@echo "[BeDD]: Installed Successfully!"

clean:
	@$(clean)
	@echo "[BeDD]: Cleabedd Successfully!"

First of all, thanks for taking your time into trying to help me with bedd!
I might check out how it looks on mobile terminal emulators and try to fix minor bugs if any, though keep in mind that bedd is meant to be used in full-blown computer setups and not on phones. And the colon and color thing on line numbers and backgrounds is just a subjective thing, personally I think it looks better as-is but maybe I could plan on adding UI customization onto configs. I'm also baffled by the dark/light mode thing you mentioned, bedd should only work so far on dark mode terminals (tried it on unconfigured xterm, with its light mode, and it looked horrible) and I don't finish to comprehend what you meant.
About the Makefile thing, that is something I'm not going to change no matter what, sorry if that makes it harder for you to use it.
Hope that helps!


Hands - Deleted entity Crash

The hands system holds a reference to the IEntity in each hand. If the entity is deleted the hands system will continue to reference the entity, causing any access to any of the components of the entity to throw an exception, because the components were already disposed.
How to reproduce:
Spawn a Steel Sheet 1, place a wall blueprint down, and click twice on the wall.
Exception:
https://cdn.discordapp.com/attachments/310555209753690112/476846426291175452/unknown.png

This is a bug in content, isn't it? It should be removing the item from the hand on deletion not keeping a reference around.
Preventing it from doing a hard crash is just up to #596

Yup this is a content issue and I made this issue in the wrong repo.


How to set run timeout ?

Such as ci this test, I have been running for more than an hour, and only the two can't pass each time.
https://github.com/umijs/umi/pull/3111/checks?check_run_id=209488044

https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes


Adding new system properties for annotations

Description

Change the default value of com.ca.apim.export.handleDuplicateNames system property from false to true.
Introduce a new system property com.ca.apim.export.migratePortalIntegrationAssertions system property with default value false.
With the above property set to true, policy-plugin should export the portal managed ENCAS/SERVICE entities with @bundle annotation and l7Template=true.
Introduce a new system property com.ca.apim.build.ignoreAnnotations system property with default value false.
Functional Test Results: https://apim-teamcity.lvn.broadcom.net:8443/buildConfiguration/ApiGateway_DevPluginFunctionalTest_PullRequestBuilder/4880341

Checklist

[x] Pull Request Created
[ ] Unit tests have been added
[ ] Integration/Functional test cases have been written and automated

@uppoju I hope I've resolved most of the review comments.


Verified layer and synced layer gets stuck on 0.2 devnet

Repro: Try to sync a node to devnet with genesis of 7/28.
Result: Verified layer is stuck at 166. Synced layer stuck at layer 245. Current layer is 428 as of report time.
$ status node
Node info:
Version: v0.0.0-unreleased
Build: d4270faff08c112a704d9e3beaefab7304eed919
API server: localhost:9092 (GRPC API 1.1). >> Insecure Connection. Use only with a local trusted server <<
Synced: false
Synced layer: 245
Current layer: 428
Verified layer: 166
Peers: 8

log.txt.zip

This issue is outdated by now. We will reopen new if we see verified layer being stuck in new devnet.


about dataset

I want to train my datasets. Could you provide the code about how to process the datasets. Thank you.

You can use the CMU Multimodal toolkits to process the raw data: https://github.com/A2Zadeh/CMU-MultimodalSDK


Very slow V2 request

This seems like a very slow request currently (over 20 seconds to respond):
https://www.nuget.org/api/v2/Search()?searchTerm=%27test%27&targetFramework=%27%27&includePrerelease=true&$filter=IsLatestVersion%20or%20IsPrerelease&$orderby=Id&$top=101&$skip=0

Any chance someone could look into this? Looks like a missing index or something.

I'm looking into this. Will update when I have more details. Is it something that was working fine before?

Yeah used to work fine about 2 weeks ago.

@maartenba , from querying our logs, I see that similar queries had bad performance for at least 3 months.
Performance of OData queries was negatively impacted by introduction of SemVer 2.0.0 support back in June: https://github.com/nuget/nugetgallery/issues/3557 . New DB columns were added that made all OData queries less performant.
From our investigation, there is no missing index we can add to resolve this.
We encourage all our users to migrate their queries to V3 search service. The documentation work of the API is in progress (thanks for reviewing the PR!)

Is there a way to rewrite this specific query to make it faster on V2?

If you remove orderby=id it becomes significantly faster, however, I don't know if this suits your needs.

that should be possible to do. Thanks, @skofman1 !


Remove gulp-util.

Coverage remained the same at 83.333% when pulling 2f078e92e825f188a837a584e86e80681ca08a82 on remove-gulp-util into 94efee4ce452f033565f4745c279050b314f347c on master.

Coverage remained the same at 83.333% when pulling 2f078e92e825f188a837a584e86e80681ca08a82 on remove-gulp-util into 94efee4ce452f033565f4745c279050b314f347c on master.

Coverage remained the same at 83.333% when pulling 2f078e92e825f188a837a584e86e80681ca08a82 on remove-gulp-util into 94efee4ce452f033565f4745c279050b314f347c on master.


TypeScript - Typings

Hi,
I am currently using your NPM module in a TypeScript project.
I tried to install the typings using the following commands npm i --save-dev @types/nexmo and npm i --save-dev @types/nexmo-node. Both commands end up with a 404.
Are you planning to provide a .d.ts file for your NPM module?

Hi @jackTheRipper ,
We are not planning to support TypeScript in the near future. Could you tell us about your use case so we can consider it?
Cheers,
Alex

Hi @AlexLakatos,
I am currently building a micro-service to interact with your APIs. The micro-service is using your NPM module and is entirely build in TypeScript.
For now, I can compile by creating an index.d.ts with this single line inside declare module 'nexmo';.
It works but I am loosing all the advantage of working with TypeScript.
Could it be possible for you to plan an index.d.ts with all the signature of your modules and functions?

Hi @AlexLakatos , any update for that?

Hi @jackTheRipper,
I've considered adding TypeScript typings and won't have the time until later this year with the re-write in version 3. Let me know if you'd like to add the typings yourself and I'll try to help.
Cheers,
Alex

Hi @AlexLakatos, that’s ok for me. However I will push it per functionalities if it’s ok for you instead of opening a big PR which will take ages for being reviewed.
I will start with the “verify” functionality. Is it ok for you?

Very interested in this too. Considering the (small) size of the codebase, a full rewrite to Typescript would be even better (and seems like not too big of a project).
Let me know if that is something you'd be interested in.

Hey, just finished the verify API for our project. I will push the .d.ts
file this week end
On Fri, 1 Feb 2019 at 22:09, Julien Chaumond<EMAIL_ADDRESS>wrote:

Very interested in this too. Considering the (small) size of the codebase,
a full rewrite to Typescript would be even better (and seems like not too
big of a project).
Let me know if that is something you'd be interested in.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Nexmo/nexmo-node/issues/190#issuecomment-459868497,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWahMr8GqJfhh117g-hJwnELKlfyVcKks5vJK0kgaJpZM4Ui6Nh
.

--
Jean Baudin
Email<EMAIL_ADDRESS>Tel.: +31 (0) 6 57 69 76 35

Done.

Awesome @jackTheRipper

@jackTheRipper @AlexLakatos  any Update on publishing the .d.ts ?

Hi @AdelBachene - I updated the PR based on the comment of @AlexLakatos - let's see if everything is alright for him

I think the new update makes it ok for me. Are you using the typings in a project by any chance?

Yes, we were using them in Adidas. Maybe @eduardostuart - @filfreire or @nekgasov can confirm we are still using it

@jackTheRipper @AlexLakatos I confirm, it's still being in use, going forward with PR https://github.com/Nexmo/nexmo-node/pull/241/files would enables us to remove unnecessary code on our end 🙂

Thanks for confirming, I'll release in the next update!

Thank you @filfreire :D
We are a good WWE combo xD

@jackTheRipper only a matter of time to get the tag team championship belts 😉

@AlexLakatos do you have an expected date for the next version?

Tentative date is 17-21 June


pull request for e2e test at 12/11/2016 11:26:02

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


fix: node.js entry option parsing for build command

Fix the parsing of custom node.js entry for build command of CLI.
hattip build ./entry-hattip.ts -n ./entry-node.ts

Thank you for your contribution (and catching this)!
I also added the same fix to the hattip dev command.


Feature request: per-task event handlers

Hi.
I'd like to be able to have some way of reacting to events of a single task instance, instead of every instance of a task class. I guess I could define event handlers on the task's class which check for the specific signature/id of the particular task instance I want, but then there's no way to unregister the handler, so this is not viable.
The context is that I'm implementing a websocket api for triggering tasks(through luigi.interface.build), and I want to send a message once the task is done(or failed). I don't know of any way to track a task execution other than the class-based events.
I'm going to implement this myself on my base task class, but I guess this would be a valuable feature to have natively in Luigi?

Thanks for sharing your plans. As for contributing, it's probably wise to start with something that works for you. Once it's been useful for you for a while one can think further.  What do you think?

Sure, that seems reasonable.

@DrPyser Unless I misunderstand your requirements you should be able to implement this using the existing event handlers. I tried to come up with a simple example based on what I'm already doing... I hope it is clear enough.
I have a mixin class that a Task can make use of:
class NotifierMixin:
    @property
    def notifiers(self):
        return SimpleNamespace(
            success: [ KafkaNotifier() ]
        )

Or the task can define a custom notifier:
class MyTask(luigi.Task):
    @property
    def notifiers(self):
        return SimpleNamespace(
            success: [ KafkaNotifier() ]
        )

And you can define any number of notifiers that have access to the task instance.
class KafkaNotifier:
    def success(self, task):
        # sends success message to kafka
    def failure(self, task):
        # sends failure message to kafka

Now just listen for all events and call the notifier functions:
@luigi.Task.event_handler(luigi.Event.SUCCESS)
def task_success(task):
    if hasattr(task, 'notifiers') and hasattr(task.notifiers, 'success'):
        for k in task.notifiers.success:
            try:
                k.success(task)
            except BaseException:
                L.exception("Notifier failed!")

Hmm, you're right, hadn't thought of doing it that way. I ended up overriding Task.trigger_event(in a base class) to first loop through self._task_callbacks before calling the super() implementation. That way the instance callbacks are all executed before the class callbacks. I guess both ways work. Yours has the advantage of relying only on the existing event system's "public" interface.
I guess this issue can be closed.


Support inserting arbitrary NSAttributedStrings

Hey there! This is a phenomenal library. Best that I've seen by far for SwiftUI rich text w/out forcing UIKit paradigms.
One major enhancement that would make this library even more powerful -- allowing for arbitrary NSTextAttachments. The functionality to support inserting NSTextAttachments has already been implemented internally for the RichTextImageAttachment capability.
An idea on implementation:

Expose a similar method to pasteImages or pasteText that instead of [ImageRepresentable] or String accepts a NSAttributedString (that could include an NSTextAttachment).
Then, as it would be impossible to encode/decode arbitrary data that could be included in these inserted strings, simply ignore those values when encoding/decoding to standard file formats and leave the responsibility for encoding/decoding to the library-user

    func pasteImages(
        _ images: [ImageRepresentable],
        at index: Int,
        moveCursorToPastedContent: Bool = false
    ) {
        #if os(iOS) || os(tvOS) || os(macOS)
        guard validateImageInsertion(for: imagePasteConfiguration) else { return }
        let content = NSMutableAttributedString(attributedString: richText)
        let insertRange = NSRange(location: index, length: 0)
        let safeInsertRange = safeRange(for: insertRange)
        let insertedItems = images.count * 2   // The number of inserted "items" is the images and a newline for each
        let safeMoveIndex = safeInsertRange.location + insertedItems
        let attributes = content.richTextAttributes(at: safeInsertRange)
        let attributeRange = NSRange(location: index, length: insertedItems)
        let safeAttributeRange = safeRange(for: attributeRange)
        images.reversed().forEach {
            performPasteImage($0, at: index)
        }
        mutableRichText?.setRichTextAttributes(attributes, at: safeAttributeRange)
        if moveCursorToPastedContent {
            moveInputCursor(to: safeMoveIndex)
        }
        #else
        assertionFailure("Image pasting is not supported on this platform")
        #endif
    }

This would just be the first step in allowing for arbitrary subviews to be included in the RichTextEditor, but would enable a future update to support custom sub-classed NSTextAttachments like here:

References:
Some libraries that implement this type of functionality:

https://github.com/rajdeep/proton
https://github.com/vlas-voloshin/SubviewAttachingTextView

Hi @rydamckinney
Happy to hear that you like the library! :)
This is a very interesting feature suggestion. Do you think that sort of handling is needed to implement e.g. checklists as suggested here: https://github.com/danielsaidi/RichTextKit/issues/31


Looking forward

To this build please could you try and find away to get Sharc files on PlayStation home extracted that would be amazing for loads of us running Home offline. I believe you can do it
https://drive.google.com/drive/folders/1_HNgt9M-EfrlZ54oxYEPbgEuNlPs3Mht
Here is some files loads of us are trying to get into Please help us

Sorry, but I'm not a big fan of reverse-engineering, and to decode these kind of proprietary file formats you really need to RE the binaries to understand what kind of encoding/encryption/compression they're using, before you can even try to extract a file.
Perhaps someone with a good background on RE and the PPU platform can help you out.

The PS Home sharc format can be decrypted with this tool:
https://www.psx-place.com/threads/release-playstation-home-sdat-dumper-decrypts-sharc-and-lua.38714/


🚀 [Feature] Commit hash behind version number

🚀 Feature

Commit hash behind version number in footer so we can see which commit is deployed.
Consider to refactor this to have the build number from github workflows on the bottom displayed?
This is needed so we can confirm a given commit has reached a deployed server.
Make the commit hash/build number a link to link to the correct github page

I am right that you were investigating this @einhornimmond ?
Consider the following Idea:
The Version is part of the Environment variables. We use the config.js to read the evironment variables. The default should be something like 0000000 or development. In the frontend you can then use the config to display the corresponding value.
For the docker deployment we already have the Version set in the environment when starting docker:
Default value: https://github.com/gradido/gradido/blob/master/frontend/Dockerfile#L14
Passed to the docker-compose environement: https://github.com/gradido/gradido/blob/master/docker-compose.yml#L73
With Kubernetes this will work similar - just pass the ENV variable to the process.
For our custom deployment you could use the .env file and write the commit into that on (automatic) deployment or also use the environment to pass this to the process. E.g. like this: https://pm2.keymetrics.io/docs/usage/environment/


Add Appveyor support

I expect this to fail without the fixes in #280.
Note this goes a little beyond what we need by including support for compiling C extensions (which we don't have), but it was easy enough to do since it was already in astropy's recipe.

This is now hitting one of the failures addressed by #280, so it's probably ready to be merged into that one.

+1

See rcgibbo/asv#1


wakatime 会偷偷上传/盗取代码吗？

在官网找到了这个：https://wakatime.com/faq#data-collected
可供参考，一般这种工具偷偷上传代码早就被发现了，同时国外这种公司数据隐私还是挺重要的
What data is sent to your servers?
WakaTime sends heartbeat events triggered from user actions inside your text editor to the WakaTime API.
Heartbeat events contain data such as:
path of the currently opened file, website, or app
project names
branch names
editor names, for example ‘Vim’ or ‘VS Code’
languages, for example ‘Python’ or ‘JavaScript’
libraries/imports used, for example ‘Django’ or ‘Rails’
line counts of opened files
position of your cursor in opened files
your computer’s hostname, like ‘MacbookPro.local’ or ‘HOME-PC’
category, for example ‘Debugging’, ‘Building’, or ‘Coding’
your computer’s operating system name
your computer’s timezone
…and of course, timestamps
Heartbeat events are sent:
every 2 minutes if you are actively using your text editor
when you switch between files
every time you write to a file

感谢,因为这个东西把项目和所有使用过的文件名都获取到了，比较担心


React 16 upgrade

Issue Description
When react 16 comes out, we'll want to enable compatibility with react 16.
Issue Type

[ ] New Feature
[x] Enhancement
[ ] Bug
[ ] Other

Expected Behavior
Terra components are compatible with React 16
Current Behavior
N/A

Will any uplifts you perform be backwards compatible with consumers using React 15? We still have substantial work to do uplifting deprecated code.

@noahbenham uplifts to use React 16 should remain compatible with React 15 as well.

The React Team's progress in releasing v16 https://github.com/facebook/react/issues/10294

Third Party Dependencies Requiring React:

Good To Go
Dependency
Current Specified Version
React 16 Supported Version
Watch Issue

BLOCKED
enzyme
v^2.8.2
v^3.x

✅
react-intl
v^2.2.3 & v^2.3.0
v2.4.0
Need to bump to v2.4.0

✅
react-redux
v^5.0.4
v4.4.7
N/A

✅
react-router
v^3.0.5
v3.2.0
Need to bump to v3.2.0

react-modal
v^1.6.5
N/A
https://github.com/reactjs/react-modal/issues/498

Waiting on Confirmation
react-router-dom
v^4.0.0
---
https://github.com/ReactTraining/react-router/issues/5563

This is blocked by:

[ ] https://github.com/cerner/terra-clinical/issues/198
[ ] Release of terra-core React 16 support.

Upon checking the react-modal commit history, React 16 compatibility is available in v3.0, however, I noticed a message indicated  v4.0.0-beta.5 replaced PropTypes with the prop-types library. To ensure not warnings occur, we should bump to a minimum of v4.0.0.

Unblocked by #198.  However will need to implement enzyme-adapter-react-16.


riverpod_graph D2 Provider Legend

Describe the bug
The legend generated from riverpod_graph for D2 comes out as "Widget" in a circle and "rectangle" in a rectangle.
The output is
Legend: {
  Type: {
    Widget.shape: circle
    Provider: rectangle
  }
  Arrows: {
    "." -> "..": read: {style.stroke-dash: 4}
    "." -> "..": listen
    "." -> "..": watch: {style.stroke-width: 4}
  }
}
...

To Reproduce
fvm dart packages/riverpod_graph/bin/riverpod_graph.dart packages/riverpod_graph/test/integration/addition/golden -f d2 (I use FVM, Dart SDK version: 3.2.3 (stable) (Tue Dec 5 17:58:33 2023 +0000) on "macos_arm64")
Expected behavior
Outputs
Legend: {
  Type: {
    Widget.shape: circle
    Provider.shape: rectangle
  }
  Arrows: {
    "." -> "..": read: {style.stroke-dash: 4}
    "." -> "..": listen
    "." -> "..": watch: {style.stroke-width: 4}
  }
}
...

Fixed by find/replace Provider: rectangle with Provider.shape: rectangle, the tests  in riverpod_graph don't pass though, looks like the output is different anyway (order of providers for example) otherwise I'd raise the MR!

This is low priority for me at the moment. Feel free to make a PR

I don't plan on working on this for now. So closing


Follow interface of Python implementation closely

Purpose
Provide users the ability to interact with the rust implementation as they would with the python implementation.
Changes

Ensure properties of environments are visible to public.
Add mountain_car and cartpole environments.
Add utility modules found in the python implementation (renderer, seeding, etc..).
Add custom methods to reduce code redundancy.
Restructure folders to match openai/gym
Use sdl2 to ensure rendering closely matches the pygame implementation.
Updated README (split contributions, remove TODO's)...
Updated Cargo.toml version due to breaking changes.
Add examples.
Add documentation to all traits, functions and namespaces.
Removed pendulum implementation.
Removed continuous mountain car.

TODO

[ ] Add unit tests.
[ ] Add integration tests.

Verification

[ ] Tests for  src passing.
[x] Examples are running.

Notes
Here are some changes we can make to build on top of this PR.

Bundle sdl2 and sdl2_gfx in a build.rs script.
Add CI/CD to ensure current / future features are tested and working prior to releases.

@MathisWellmann the PR is ready if you'd like to take a look :)

Hi,
I appreciate the effort put into this PR and I'll take a more in depth look into all the changes during the coming days.
Initially I see a lot of undocumented code marked with "TODO". That would have to be resolved. The initial lib.rs file had the line "#![deny(missing_docs, missing_crate_level_docs)]" which needs to be put back as I'd like clean docs when its eventually published to crates.io. It looks like there are some unused dependencies as well, which you can check with "cargo +nightly udeps --all-targets", those can be removed. It would be cool if you could add a dependency section in the README to tell users they want to install "sdl2" and "sdl2_gfx", at least on arch, because otherwise the tests won't run. I'm not sure if this is required when just importing this as a library, if not then those dependencies can be downgraded to be "[dev-dependencies]". And finally I feel like having an examples folder with both mountain_car and cartpole is always a good entry point for users to explore a library, so if you could integrate the tests that render those into an examples folder that would be great. Now I'd like to emphasize that this PR has big potential and I'm looking forward to seeing those minor points resolved so we can get this thing merged. Thanks for this work, it's much appreciated :)

Perfect, I'll make a list here and check it off as I go on. I'd really like if this library enabled other rustaceans to start ML work easily so I'l be addressing all of the above issues in the weeks to follow :)

Hey @MathisWellmann, regarding the documentation, should we try creating new documentation similar to those found in the native python implementation or should we be copying the documentation over to prevent confusion?

@MathisWellmann still working on it! Just took a break so nothing has changed since we first chatted. Will ping you as soon as its ready.

@MathisWellmann I've documented the source code and updated the README to reflect the dependencies required to interact with the library. I still feel like the source code documentation can be improved but the documentation can be extended in future PR's, what do you think?

@MathisWellmann pinging back in-case you missed the first notification :)

Thank you for your excellent work!

Awesome, looking forward to seeing how these changes impact the gym-rs experience :) There's still a few more things I'd like to contribute. Will open a ticket to start a discussion around future changes!


Removes 3-dot menu for tree items

This fixes issue #19.
Also added the menu action for the Script Manager tree item, fixing issue #18.

Working amazingly! Thank you so much for the changes.


jpegdec on tufty 2040 does not work from SD, only flash

I have a Tufty 2040 which has been adapted to use an microsd adapter.
I am using the sdcard library from here:
https://github.com/OneMadGypsy/pico-sd-card
It is working. I am able to read out a text file which around the size of a jpeg file (11K).
code used for testing:
import machine
import sdcard
import uos

sd = sdcard.SDCard(0, 6, 7, 4, 5, led=25)
sd.detect(wait=True)

# Create a file and write something to it
#with open("/sd/test01.txt", "w") as file:
#    file.write("Hello, SD World!\r\n")
#    file.write("This is a test\r\n")

# Open the file we just created and read from it
with open("/sd/test01.txt", "r") as file:
    data = file.read()
    print(data)

working code:
from picographics import PicoGraphics, DISPLAY_TUFTY_2040, PEN_RGB565
from jpegdec import JPEG
import os
from time import sleep
import random

display = PicoGraphics(display=DISPLAY_TUFTY_2040, pen_type=PEN_RGB565)
j = JPEG(display)

directory = "images"

def random_shuffle(seq):
    l = len(seq)
    for i in range(l):
        j = random.randrange(l)
        seq[i], seq[j] = seq[j], seq[i]

files = os.listdir(directory)
os.chdir(directory)
while True:
  random_shuffle(files)
  for filename in files:
    if filename.endswith(".jpg"):
        print(filename)
        j.open_file(filename)
        j.decode()
        display.update()
        sleep(30)

problem code:
from picographics import PicoGraphics, DISPLAY_TUFTY_2040, PEN_RGB565, PEN_RGB332
from jpegdec import JPEG
import uos as os
from time import sleep
import random
import machine
import sdcard

sd = sdcard.SDCard(0, 6, 7, 4, 5, led=25)
sd.detect(wait=True)

display = PicoGraphics(display=DISPLAY_TUFTY_2040, pen_type=PEN_RGB332 )
j = JPEG(display)

directory = "/sd/a"

def random_shuffle(seq):
    l = len(seq)
    for i in range(l):
        j = random.randrange(l)
        seq[i], seq[j] = seq[j], seq[i]

files = os.listdir(directory)
os.chdir(directory)
while True:
  random_shuffle(files)
  for filename in files:
    if filename.endswith(".jpg"):
        print(filename)
        j.open_file(filename)
        j.decode()
        display.update()
        sleep(30)

Error message:
MicroPython 67fac4e on 2023-02-16; Pimoroni Tufty 2040 with RP2040
Type "help()" for more information.
>>> %Run -c $EDITOR_CONTENT
/sd Mounted
1.jpg
Traceback (most recent call last):
  File "<stdin>", line 33, in <module>
  File "/lib/sdcard.py", line 353, in readblocks
  File "/lib/sdcard.py", line 283, in readinto
OSError: Response Timeout

NB! Thonny could not execute 'Run'.

SCRIPT:

class __thonny_helper:
    import builtins
    try:
        import uos as os
    except builtins.ImportError:
        import os
    import sys

    # for object inspector
    inspector_values = builtins.dict()
    @builtins.classmethod
    def print_repl_value(cls, obj):
        global _
        if obj is not None:
            cls.builtins.print('[object_link_for_thonny=%d]' % cls.builtins.id(obj), cls.builtins.repr(obj), '', sep='')
            _ = obj

    @builtins.classmethod
    def print_mgmt_value(cls, obj):
        cls.builtins.print('<thonny>', cls.builtins.repr(obj), '</thonny>', sep='', end='')

    @builtins.classmethod
    def repr(cls, obj):
        try:
            s = cls.builtins.repr(obj)
            if cls.builtins.len(s) > 50:
                s = s[:50] + "..."
            return s
        except cls.builtins.Exception as e:
            return "<could not serialize: " + __thonny_helper.builtins.str(e) + ">"

    @builtins.classmethod
    def listdir(cls, x):
        if cls.builtins.hasattr(cls.os, "listdir"):
            return cls.os.listdir(x)
        else:
            return [rec[0] for rec in cls.os.ilistdir(x) if rec[0] not in ('.', '..')]

    @builtins.classmethod
    def getcwd(cls):
        if cls.builtins.hasattr(cls, "getcwd"):
            return cls.os.getcwd()
        else:
            # micro:bit
            return ""

    @builtins.classmethod
    def chdir(cls, x):
        return cls.os.chdir(x)

    @builtins.classmethod
    def rmdir(cls, x):
        return cls.os.rmdir(x)

STDOUT:

STDERR:
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "<stdin>", line 3, in __thonny_helper
  File "/lib/sdcard.py", line 343, in readblocks
OSError: [Errno 5] EIO

You may need to reconnect, Stop/Restart or hard-reset your device.

It seems specific to 'j.decode()', as if this is commented out, the program executes normally.

Is there a reason why you're not using the MicroPython lib's SDCard driver? https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/storage/sdcard/sdcard.py
We use this with many of our boards- which have onboard SD card slots- and have no issue displaying JPEGs from SD card.

Does that library support the pico2040?

It took a bit of searching to figure out how to init the SPI bus, but I did manage to get it working as such:
from picographics import PicoGraphics, DISPLAY_TUFTY_2040, PEN_RGB565, PEN_RGB332
from jpegdec import JPEG
import uos as os
from time import sleep
import random
from machine import Pin, SPI
import sdcard

sd_spi = SPI(0, sck = Pin(6, Pin.OUT), mosi = Pin(7, Pin.OUT), miso = Pin(4, Pin.OUT))
sd = sdcard.SDCard(sd_spi, Pin(5, Pin.OUT))
vfs = os.VfsFat(sd)
os.mount(vfs, "/sd")

display = PicoGraphics(display=DISPLAY_TUFTY_2040, pen_type=PEN_RGB332 )
j = JPEG(display)

directory = "/sd/a"

def random_shuffle(seq):
    l = len(seq)
    for i in range(l):
        j = random.randrange(l)
        seq[i], seq[j] = seq[j], seq[i]

files = os.listdir(directory)
os.chdir(directory)
while True:
  random_shuffle(files)
  for filename in files:
    if filename.endswith(".jpg"):
        print(filename)
        j.open_file(filename)
        j.decode()
        display.update()
        sleep(30)


Module not found: Can't resolve 'react-hook-form-resolvers'

Then following the instruction in https://github.com/react-hook-form/react-hook-form-resolvers/blob/master/README.md
Install the module using npm install react-hook-form-resolvers.
Then import yupResolver.
import { yupResolver } from 'react-hook-form-resolvers';
I am getting
Module not found: Can't resolve 'react-hook-form-resolvers' in '{__PATH_TO_A_REMOVED_COMPONENT__}'
When I look into the node_modules/react-hook-form-resolvers it's empty.

hey, @azizur I haven't released an updated version just yet, expected to release a v6 RC version this week.

same issue

@bluebill1049 Before this get released, I was thinking what the API would be?
I have a Yup schema that uses custom validation in a nested object. The custom validation depends on form the data being provided as context. This allows me to use the context object when validating the the object.
According to https://github.com/react-hook-form/react-hook-form/pull/1471. It seems like, you can just do as per your example on there.
import React from 'react';
import { useForm } from 'react-hook-form';
import { yupResolver } from 'react-hook-form-resolvers';

const SignupSchema = yup.object().shape({
  name: yup.string().required(),
  age: yup.number().required(),
});

const App = () => {
  const { register, handleSubmit } = useForm({
    resolver: yupResolver(SignupSchema), // yup, joi and even your own.
  });

  return (
    <>
      <form onSubmit={handleSubmit(d => console.log(d))}>
        <label>Test</label>
        <input name="test" ref={register} />
        <input type="submit" />
      </form>
    </>
  );
};

My question is when the resolver is called by resolver: yupResolver(SignupSchema). Can we provide the form data as validation context as well?
I guess one could do
const validationConfig = {
  passDataAsContext: true // default false
};
const { register, handleSubmit } = useForm({
    resolver: yupResolver(SignupSchema, validationConfig), // yup, joi and even your own.
  });

Or is there a better ways to do this?
I am happy to produce a PR to help with this.

Hey @azizur ,
Thanks for the detailed explanation above. We do pass context into the resolver. However, for those resolvers in the repo, I would treat them as a black box and you only should apply config and not with context. if you need pass data into resolver, i would do this instead
resolver: (data, context) => {
  if (context.xxx) {
    yupResolver(validationSchema)(data);
  } else {
    yupResolver(validationSchema)({...data, test: 'test' });
  }
}

First RC version is out for both RHF and RHFR
https://github.com/react-hook-form/react-hook-form-resolvers/releases/tag/v0.0.2-rc.0
let me know how did it go. 👍

@bluebill1049, Not the nicest API, however this works.
const { handleSubmit, register, errors, setValue, reset } = useForm({
    resolver: (data) => yupResolver(validationSchema, { abortEarly: false, context: data })(data)
  });

a clean API could be something like:
const { handleSubmit, register, errors, setValue, reset } = useForm({
    resolver: yupResolver(validationSchema, { setValidationContext: true })
  });

Where setValidationContext can be abetter named yupResolver's config option that enables config to be  { abortEarly: false, context: data } in https://github.com/react-hook-form/react-hook-form-resolvers/blob/master/src/yup.ts#L52-L54
The value of setValidationContext can be either a boolean or an object.

If the value of setValidationContext==true it will set the context property to data eg  { abortEarly: false, context: data } as per Yup mixed.validate(value: any, options?: object) options. see: https://github.com/jquense/yup#mixedvalidatevalue-any-options-object-promiseany-validationerror

If the value of setValidationContext is an object it will set the context property to that object eg  { abortEarly: false, context:{a:'user-provided-object'} }

const { handleSubmit, register, errors, setValue, reset } = useForm({
    resolver: yupResolver(validationSchema, { setValidationContext: {a:'user-provided-object'} })
  });

const { handleSubmit, register, errors, setValue, reset } = useForm({
  resolver: (data) => yupResolver(validationSchema, { abortEarly: false, context: data })(data)
});

thanks @azizur for your feedback. why not doing the following:
const { handleSubmit, register, errors, setValue, reset } = useForm({
  resolver: yupResolver(validationSchema, { abortEarly: false, context: data })
});


mat-toolbar does not display correctly on Safari, iOS simulator and Android emulator

Bug, feature request, or proposal:

[x] Bug

What is the expected behavior?
mat-toolbar display correctly on all (recent) desktop and mobile browsers.
What is the current behavior?
mat-toolbar does not display correctly on Safari, iOS simulator and Android emulator.
Works fine on Chrome and real Android devices (using Chrome webview).

Safari shows the issue here, but the behavior is the same on android/ios simulator webview.
What are the steps to reproduce?

clone this repo: https://github.com/ngx-rocket/starter-kit/tree/pwa/material
git checkout pwa/material
npm install
npm start and load the website on safari

I tried to reproduce a simpler case on StackBlitz but could not find a productible minimal setup.
I'm also investigating if it's somehow related to the inclusion of @angular/flex-layout
What is the use-case or motivation for changing an existing behavior?
Not really usable as it is :)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/cdk: 5.0.4
@angular/cli: 1.5.5
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material: 5.0.4
@angular/service-worker: 1.0.0-beta.16
@angular-devkit/build-optimizer: 0.0.38
@angular-devkit/core: 0.0.25
@angular-devkit/schematics: 0.0.48
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.5
@schematics/angular: 0.1.13
typescript: 2.4.2
webpack: 3.8.1

tested with safari 11.02, nexus 6/android 7 android emulator and ios 11.2 simulator.
Note that the provided repo use an older angular-material rc.2 version, but the issue is the same with the latest current version shown here I took the screenshot with.
Is there anything else we should know?

Since the issue has been categorized as "minor", do you have any suggestion for a workaround?

same issue with:
"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"@ngx-translate/core": "^9.0.1",
"@angular/cdk": "^5.0.0",
"@angular/material": "^5.0.0",
"@angular/flex-layout": "2.0.0-beta.12",
browser: Google Chrome Version 55.0.2883.87 (64-bit)
os: Arch Linux

Hello, is there a clean solution for iOS?

Hi everyone, does anyone have already found an alternativo solution?

Hi, i am also facing similar issue where the mat tool bar is not fixed on the iOS safari browser. Did anyone got any solution to fix it.

Hi, I found a temporary fix for my project, but I'm not sure that this is correct...
1) Move <app-header> to the top of the root <div> of the shell.component.html
Example:
<div fxFlex>
  <app-header></app-header>
  <mat-sidenav-container fxFill>
    <mat-sidenav></mat-sidenav>
    <mat-sidenav-content>
      <router-outlet></router-outlet>
    </mat-sidenav-content>
  </mat-sidenav-container>
</div>

2) Add the following style to the app.component.scss
.mat-drawer-container {
  position: unset;
}

@AndrewKochura - that worked for me!

@AndrewKochura Thanks for your workaround! I'm using ngxRocket's shell component and had to also add a media breakpoint to hide the top menu when on small screens.
shell.component.scss:
@media ($mat-xsmall) {   .mat-sidenav,   .mat-drawer-content,   :host ::ng-deep .mat-drawer-backdrop {     top: 56px;   } }

Same problem for my app.
IOS 12.4.2
Angular Material: 8.2.3

Is this issue still open? I am having this issue with safari on Android. The above workaround did not work form me because the toolbar did not stay at the top when scrolling...
An update on what to do about this issue would be great.

@AndrewKochura - this workaround worked for me. thanks!

Thank you for reporting. I believe we may have fixed this issue in v15. I was wondering if we could check with you if this issue requires further action. Does upgrading to v15 resolve the issue for you?

Thank you for reporting this issue. Unfortunately we are not able to take action if we cannot reproduce it. This might have already been fixed. If the issue persists, please provide reproduction steps or file a new issue report.
-Zach


Publish to PyPI

@tshu-w Thanks for your kind comment. We have released this version supporting PyPI.


ibm_runtime estimator fails in VQE

Describe the bug
I have been trying the VQE with the new estimators and whereas the estimators from qiskit.primitives and qiskit_aer.primitives works just fine. Nevertheless, the estimator coming from qiskit_ibm_runtime fails.
Steps to reproduce
The Ansatz is a UCCSD with a HF initial guess for water, since I got the integrals from my own driver I'm not including all the steps to get the Ansatz
from qiskit_ibm_runtime import QiskitRuntimeService, Session, Estimator, Options
from qiskit.algorithms.minimum_eigensolvers import VQE

service = QiskitRuntimeService()
options = Options()
options.optimization_level = 3
options.resilience_level = 2

with Session(service=service, backend='ibmq_qasm_simulator') as session:
    estimator = Estimator(session=session, options=options)
    runtime_vqe = VQE(estimator=estimator,
        ansatz=ansatz,
        optimizer=SLSQP(),
        initial_point=np.zeros(ansatz.num_parameters),
    )

solver = GroundStateEigensolver(converter,runtime_vqe)
runtime_res = solver.solve(problem)

Error code:
RuntimeError                              Traceback (most recent call last)
File ~/opt/miniconda3/envs/vlxq05/lib/python3.10/site-packages/qiskit/algorithms/minimum_eigensolvers/vqe.py:253, in VQE._get_evaluate_energy.<locals>.evaluate_energy(parameters)
    252 try:
--> 253     job = self.estimator.run(batch_size * [ansatz], batch_size * [operator], parameters)
    254     estimator_result = job.result()

File ~/opt/miniconda3/envs/vlxq05/lib/python3.10/site-packages/qiskit_ibm_runtime/estimator.py:249, in Estimator.run(self, circuits, observables, parameter_values, **kwargs)
    248 user_kwargs = {"_user_kwargs": kwargs}
--> 249 return super().run(
    250     circuits=circuits,
    251     observables=observables,
    252     parameter_values=parameter_values,
    253     **user_kwargs,
    254 )

File ~/opt/miniconda3/envs/vlxq05/lib/python3.10/site-packages/qiskit/primitives/base/base_estimator.py:233, in BaseEstimator.run(self, circuits, observables, parameter_values, **run_options)
    231 run_opts.update_options(**run_options)
--> 233 return self._run(
    234     circuits,
    235     observables,
    236     parameter_values,
    237     **run_opts.__dict__,
    238 )
...
--> 256     raise AlgorithmError("The primitive job to evaluate the energy failed!") from exc
    258 values = estimator_result.values
    260 if self.callback is not None:

AlgorithmError: 'The primitive job to evaluate the energy failed!'

Expected behavior
Compute VQE as with the other two estimators
Suggested solutions
Additional Information

qiskit-ibm-runtime version: 0.8.0
Python version: 3.10.6
Operating system:

@jadgt Do you by any chance have a job ID?

No, but I have fixed the issue by indenting the solver below the with

@jadgt Your second example has
IBMQ.load_account()
provider = IBMQ.get_provider(project='main')
backend = provider.get_backend('ibmq_qasm_simulator')

Unfortunately you can't mix the old provider (IBMQ) with the new Qiskit Runtime service. Can you try without that and do
with Session(service=service, backend='ibmq_qasm_simulator') as session:
...

instead? The code worked for me once I removed the IBMQ part.

This looks like an error with the estimator primitive - that it cannot do error mitigation on a simulator because simulators don't have coupling map (since everything is connected). I'll report this to the primitive service.

Fair enough, I've been testing out and the max resilience_level allowed in the qasm_simulator is 2


@apply doesn't work with Laravel Mix

Hey,
Everything works fine until I decided to use components as it's said in the documentation.
Compiling failed :
 ERROR  Failed to compile with 2 errors                                                                                12:41:50 PM

 error  in ./resources/assets/sass/app.css

Module build failed: ModuleBuildError: Module build failed: Syntax Error

(2:3) No .text-white class found.

  1 | .btn {
> 2 |   @apply .text-white;
    |   ^
  3 | }
  4 |

    at runLoaders (/Users/thomas/Sites/cdsud/www/node_modules/webpack/lib/NormalModule.js:195:19)
    at /Users/thomas/Sites/cdsud/www/node_modules/loader-runner/lib/LoaderRunner.js:364:11
    at /Users/thomas/Sites/cdsud/www/node_modules/loader-runner/lib/LoaderRunner.js:230:18
    at context.callback (/Users/thomas/Sites/cdsud/www/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at Promise.resolve.then.then.catch (/Users/thomas/Sites/cdsud/www/node_modules/postcss-loader/lib/index.js:185:44)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

 @ multi ./node_modules/laravel-mix/src/builder/mock-entry.js ./resources/assets/sass/app.css

 error  in ./resources/assets/sass/app.css

Module build failed: ModuleBuildError: Module build failed: Syntax Error

(2:3) No .text-white class found.

  1 | .btn {
> 2 |   @apply .text-white;
    |   ^
  3 | }
  4 |

    at runLoaders (/Users/thomas/Sites/cdsud/www/node_modules/webpack/lib/NormalModule.js:195:19)
    at /Users/thomas/Sites/cdsud/www/node_modules/loader-runner/lib/LoaderRunner.js:364:11
    at /Users/thomas/Sites/cdsud/www/node_modules/loader-runner/lib/LoaderRunner.js:230:18
    at context.callback (/Users/thomas/Sites/cdsud/www/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at Promise.resolve.then.then.catch (/Users/thomas/Sites/cdsud/www/node_modules/postcss-loader/lib/index.js:185:44)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

My wepback.mix.js :
let mix      = require('laravel-mix');
let tailwind = require('tailwindcss');
mix.postCss('./resources/assets/sass/app.css', './public/css/main.css', [tailwind('./tailwind.js')]).disableNotifications();

... and app.css:
@tailwind preflight;

@import "./components/buttons.css";

@tailwind utilities;

@import './main.css';
@import './admin.css';

What's wrong? :/

Can you share a public repo that reproduces this? I would expect a different error since @import doesn't inline imports in normal CSS and is also required to be the first statement in a file.
Are you using CSS here or Sass?

Here's the repo: https://github.com/HapLifeMan/apply-css-not-working and I'm using only CSS!

Ah ok I've reproduced this now.
The issue is that @import doesn't work the same way in normal CSS as it does in Sass or Less. Mix seems to be trying to process your buttons.css file with Tailwind independently, and it can't find any of the other classes because they aren't in the same file.
There's a couple ways to work around this:

Use Less just for it's import functionality. Your mix file would look like this then:
mix.less('./resources/assets/less/app.less', './public/css/main.css')
    .options({ postCss: [ tailwind('./tailwind.js')]})
    .disableNotifications()

You can even keep your other files as plain CSS files and import them like this:
@tailwind preflight;

@import (inline) "./components/buttons.css";

@tailwind utilities;

@import (inline) './main.css';
@import (inline) './admin.css';

Use the postcss-import plugin to inline your imports. I would probably lean towards this option if you want to stay away from existing preprocessors and just use Tailwind with raw CSS.
There's one gotcha with this plugin which is that it's very strict about the CSS spec and the CSS spec says that @import rules have to come first in a file, which means you can't have @tailwind preflight come before an @import rule.
The way to get around that is to move your Tailwind calls to their own files, and make your main CSS file just imports:
@import "./tailwind-preflight.css";

@import "./components/buttons.css";

@import "./tailwind-utilities.css";

@import "./main.css";
@import "./admin.css";

tailwind-preflight.css would just look like this:
@tailwind preflight;

...and tailwind-utilities.css would just look like this:
@tailwind preflight;

To use the import plugin, add it to the beginning of your PostCSS plugin chain:
let mix      = require('laravel-mix');
let tailwind = require('tailwindcss');
let postcssImport = require('postcss-import');

mix.less('./resources/assets/css/app.css', './public/css/main.css', [
    postcssImport(),
    tailwind('./tailwind.js'),
])
.disableNotifications();

Let me know if that fixes your issue! We'll definitely have to add some more documentation about this.

Bug fixed! Thank you ❤
I can now move on serious stuff 😈

I have quite large webpack.mix.js - for anyone that finds this issue, it might be helpful to know:
If you have any weird problems (like your css file being literally copied and not processed) you should put that last snippet (excluding the first line) somewhere at the end of the webpack.mix.js. This did the trick for me.

@adamwathan I've tried using your postcss-import method but am still getting the same issue about "missing '}'" when trying to build using @apply.
webpack.mix.js
let mix = require('laravel-mix');
let tailwindcss = require( 'tailwindcss' );

let dirs = {
	src: {
		js: 'src/js/',
		scss: 'src/scss/'
	},
	dist: {
		js: 'web/js/',
		css: 'web/css/'
	}
}

mix.js( dirs.src.js + 'main.js', dirs.dist.js )
.sass( dirs.src.scss + 'tailwind.scss', dirs.dist.css ).options({
	postCss: [ tailwindcss('tailwind.config.js') ]
})
.sass( dirs.src.scss + 'style.scss', dirs.dist.css, [
	portcssImport(),
	tailwind()
])

tailwind.scss
@tailwind base;
@tailwind components;
@tailwind utilities;

body{
	/* This comment solves Mix's issue with needing an SCSS file with at least one non-empty ruleset */
}

style.scss
html{
	font-size: 20px;
}
body{
	padding:
		env( safe-area-inset-top, 0 )
		env( safe-area-inset-right, 0 )
		env( safe-area-inset-bottom, 0 )
		env( safe-area-inset-left, 0 );

	font-weight: 200;
}

.plate{
	@apply bg-gray-900 text-white p-4;
}

To confirm, if I remove the @apply declaration then everything works fine...

Can you create a public GitHub repo that reproduces the issue? I can play with it and figure it out much faster that way than having to recreate it all from scratch myself.

tw-bug-example.zip
I tried creating a public GitLab repo but couldn't push to it for some reason... so I've attached a zip here. I removed all sensitive info, node modules and composer packages. It's a Craft CMS site

@adamwathan  have you found what the problem with @jcush  problem, please? I'm facing the same problem here.

@thamerbelfkihthamer I haven't tried this yet, but just re-reading the issue I think in the meantime while we let @adamwathan dig into it it could be an idea to create a separate stylesheet for utilities created by applying tailwind classes, then less that one and sass the others. So you'd do all your @apply calls in one sheet, which would use less, then put the rest of your styles in sass.
In the nicest way possible without any offence meant to Tailwind or Adam (big Refactoring UI fan here) I'm currently customising Bootstrap 4 for theming instead. I just have more experience with it personally and wanted to crack on with the project.


nativeAudio.addListener not functioning as expected

Describe the bug
I'm experiencing an issue with the nativeAudio.addListener method in my application. It doesn't seem to be working as expected. When attempting to use it in conjunction with my code, which plays a series of audio files sequentially, the event listener doesn't trigger when audio playback is completed.
To Reproduce
import { NativeAudio, PreloadOptions } from "@capgo/native-audio";

class AudioPlayer {
  private nativeAudio = NativeAudio;
  private audioUrls: string[] = [];
  private currentIndex: number = 0;

  async playAudioArray(audioUrls: string[]) {
    this.audioUrls = audioUrls;
    this.currentIndex = 0;

    // Preload the first audio
    await this.preloadNextAudio();

    // Start playing
    await this.playCurrentAudio();
  }

  private async preloadNextAudio() {
    if (this.currentIndex < this.audioUrls.length) {
      const assetPath = this.audioUrls[this.currentIndex];
      const assetId = `audio_${this.currentIndex}`;

      const preloadOptions: PreloadOptions = {
        assetPath,
        assetId,
        // Other preload options, set as needed
      };

      await this.nativeAudio.preload(preloadOptions);
    }
  }

  private async playCurrentAudio() {
    if (this.currentIndex < this.audioUrls.length) {
      const assetId = `audio_${this.currentIndex}`;

      // Play the current audio
      await this.nativeAudio.play({ assetId });

      // Listen for the completion event
      const listener = async (event: { assetId: string }) => {
        if (event.assetId === assetId) {
          // Current audio playback is complete
          this.currentIndex++;

          if (this.currentIndex < this.audioUrls.length) {
            // Preload and play the next audio
            await this.preloadNextAudio();
            await this.playCurrentAudio();
          }
        }
      };

      // Add a completion event listener
      const listenerHandle = await this.nativeAudio.addListener(
        "complete",
        listener
      );
    }
  }
}

export default AudioPlayer;

const audioPlayer= new AudioPlayer();
audioPlayer.playAudioArray([url, url]);

Desktop (please complete the following information):

OS: Windows
Browser chrome
Version 116.0.5845.188

Do you mean the issue is only on chrome Windows ?

@coxozo did you solved this? I am not sure if complete means complete with loading audio here and not completion of playing!
const audioComplete: CompletedListener = async (event) => {
  // do something
}

NativeAudio.preload({
    assetId: ..,
    assetPath: ..,
    audioChannelNum: 1,
    isUrl: true,
  })
    .then(() => {
      NativeAudio.play({ assetId: .. })
      const handle = NativeAudio.addListener('complete', audioComplete)
      console.log(handle)
})

Promise state in handle is 'fulfilled' immediately in my code above!

@coxozo did you solved this? I am not sure if complete means complete with loading audio here and not completion of playing!你解决了吗？我不确定complete是否意味着在这里完成加载音频而不是完成播放！
const audioComplete: CompletedListener = async (event) => {
  // do something
}

NativeAudio.preload({
    assetId: ..,
    assetPath: ..,
    audioChannelNum: 1,
    isUrl: true,
  })
    .then(() => {
      NativeAudio.play({ assetId: .. })
      const handle = NativeAudio.addListener('complete', audioComplete)
      console.log(handle)
})

Promise state in handle is 'fulfilled' immediately in my code above!在我上面的代码中，句柄中的 promise 状态立即“实现”！

It seems my initial approach may have been incorrect. I've switched to using a different solution:  capacitor-plugin-playlist which effectively manages audio playlist playback.


Update/Add [tool name]

Tool name
Microsoft.VisualStudio.Component.VC.ATLMFC
Tool license
same license as the windows-2019 image
Add or update?

[X] Add
[ ] Update

Desired version
latest
Approximate size
No response
Brief description of tool
The windows-2019 image has ATLMFC, ATLMFC.Spectre, v141.MFC, v141.MFC.Spectre.
The windows-2022 image has ATLMFC.Spectre, v141.MFC, v141.MFC.Spectre, but ATLMFC is missing
( Microsoft.VisualStudio.Component.VC.ATLMFC )
URL for tool's homepage
No response
Provide a basic test case to validate the tool's functionality.
No response
Virtual environments affected

[ ] Ubuntu 16.04
[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019
[X] Windows Server 2022

Can this tool be installed during the build?
No response
Tool installation time in runtime
No response
Are you willing to submit a PR?
No response

@newsoft-github could you please change the issue title to Add Microsoft.VisualStudio.Component.VC.ATLMFC to VS22 or something like that?

The component has been added, deployment of the the image with the component is going to happen next week.


Implement report workflow in new reviews workflow

Following the process on outbreak sci, integrate ability to report reviews on frontend (backend already built).

Related to #122

Related to #122


when I run "sh train_stage2_market.sh"，one problem happened

First of all,thanks for your great work.
when I try to run"sh train_stage2_market.sh",one problem happened as the picture show.I wonder know if there anything wrong with my operation? or have you ever come across this problem?

Hi, thanks for your attention. I've never met this problem. It seems that this problem is related to CUDA. I used 1 GPU under cuda10.0 and cudnn7.4.


Stakeholder access to Azure Artifacts.

I believe Azure Artifacts allows stakeholder access.
Several other pages show that stakeholders have access to Azure Artifacts, and I think this page has been a missed change.
example:
https://docs.microsoft.com/en-us/azure/devops/organizations/security/stakeholder-access?view=azure-devops
https://docs.microsoft.com/en-us/azure/devops/organizations/security/permissions-access?view=azure-devops

@tomaeda : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"


Bootstrapper HandleResuming null reference exception

I have an app in the store running 1.1.11. I am seeing a lot of null reference exceptions:
Exception Type:  System.NullReferenceException
Crashed Thread:  2

Application Specific Information:
Arg_NullReferenceException

Exception Stack:
Csn.UniversalWindows!<BaseAddress>+0xa6a833
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
SharedLibrary!<BaseAddress>+0x69993e
SharedLibrary!<BaseAddress>+0x497d7c
Csn.UniversalWindows!<BaseAddress>+0x93eb5c
Csn.UniversalWindows!<BaseAddress>+0x969846
Csn.UniversalWindows!<BaseAddress>+0x969774
Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, ApplicationModel.Core.UnhandledErrorDetectedEventArgs e)

Thread 2 Crashed:
0   Csn.UniversalWindows                 0x00007ff98f27a833 Template10.Common.BootStrapper.<HandleResuming>d__99.MoveNext() in  at 0:0
1   SharedLibrary                        0x00007ff98e4c12b1 0x00007ff98e070000 + 4526769
2   SharedLibrary                        0x00007ff98e70993e 0x00007ff98e070000 + 6920510
3   SharedLibrary                        0x00007ff98e507d7c 0x00007ff98e070000 + 4816252
4   Csn.UniversalWindows                 0x00007ff98f14eb5c McgInterop.McgHelpers.ThrowFailed(Int32 hr, RuntimeTypeHandle typeHnd) in c:\windows\ServiceProfiles\NetworkService\appdata\local\packages\appcompile-20160614-164754-20384\ac\Temp\Ilc924988408\Csn.UniversalWindows.McgInterop\Helpers.g.cs at 5322:10
5   Csn.UniversalWindows                 0x00007ff98f179846 McgInterop.ComCallHelpers.ComCall__HRESULT($__ComObject __this, RuntimeTypeHandle __typeHnd, Int32 __targetIndex) in c:\windows\ServiceProfiles\NetworkService\appdata\local\packages\appcompile-20160614-164754-20384\ac\Temp\Ilc924988408\Csn.UniversalWindows.McgInterop\SharedStubs.g.cs at 5970:5
6   Csn.UniversalWindows                 0x00007ff98f179774 McgInterop.ForwardComSharedStubs.Proc_<System.__Canon>(Void* InstParam, $__ComObject __this, Int32 __targetIndex) in c:\windows\ServiceProfiles\NetworkService\appdata\local\packages\appcompile-20160614-164754-20384\ac\Temp\Ilc924988408\Csn.UniversalWindows.McgInterop\SharedStubs.g.cs at 636:4
7   Csn.UniversalWindows                 0x00007ff98f273d63 Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected(Object sender, $UnhandledErrorDetectedEventArgs e) in  at 0:0

These exceptions are happening on an array of different devices both PC and mobile.
Has anyone had similar issues, may know what is causing it ? I have failed to reproduce on multiple test devices.

Please keep chasing this. Give me some hints on where to look into if there's an issue.

I've been looking into this and I think I might have cracked it. In my application I was making the NavigationServiceFactory call inside  OnInitializeAsync. When the app is activated through prefetch in some cases the app gets suspended before the call to NavigationServiceFactory completes (or before its even reached since I had some code before it) therefore when the user launches the app and NavigationService is invoked from OnStartAsync it is null.
Now I'm calling the NavigationServiceFactory inside CreateRootElement and moved a lot of the code that was in OnInitializeAsync to OnStartAsync. I have deployed a new version to the store yesterday and so far it looks promising, haven't seen the null reference exception yet. I will monitor for a couple of days if its all good I will close the issue.

Brilliant.


"OS X" -> "macOS"

Codecov Report

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

@@           Coverage Diff           @@
##           master     #212   +/-   ##
=======================================
  Coverage   98.68%   98.68%
=======================================
  Files         145      145
  Lines        3338     3338
=======================================
  Hits         3294     3294
  Misses         44       44

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 5556625...e716a38. Read the comment docs.

Thanks!


Is fastapi-filters supporting tortoise-orm

Hi!
I was trying to use this python library to make filtering along with tortoise-orm and fastapi. I've seen it supports SQLAlchemy at this moment. Is there any possibility that we can have the support for tortoise-orm?
@uriyyo

Hi @xalien10,
Yup, I have a plan to add tortoise-orm integration.

Can you please share if it could be anything sooner or later? 😃

I hope to add initial integration in 2-4 weeks.

That will be awesome 😄


Added login via refresh token

@ronan Closes #620

I've made the indicated changes, @ronan.

I approached the problem the wrong way here. Closing in preference to #665.


pixel_cls_logits_flatten and pos_mask have different dimention while calculating tf.nn.sparse_softmax_cross_entroy_with_logits

in pixel_link_symbol.py
pixel_cls_loss = tf.nn.sparse_softmax_cross_entropy_with_logits(
logits = self.pixel_cls_logits_flatten,
labels = tf.cast(pos_mask, dtype = tf.int32))
logits and labels have different dimentions while calculating loss.
logits dim is [BATCH_SIZE, 16384, 2]
labels dim is [BATCH_SIZE, 16384]
why is it different? what is is effect on pixel_cls_loss ?how is the loss calculates then?

I have the same problem


Rename package name to ease upgrades

Currently the packages are named nvidia-fabricmanager-XXX where XXX is the branch name. This helps lock to a specific driver branch, which is important as these packages must be in sync with the corresponding NVIDIA driver version.
Unfortunately, it works a little too well, preventing upgrading to a new driver branch. This was expected to work with the virtual Provides nvidia-fabricmanager-branch (literal "branch" string), however this virtual Provides is not taken into account by the package manager with Obsoletes (unlike with apt).
This change to nvidia-fabric-manager [branch-less] package name, will require the use of meta-packages (cuda-drivers-fabricmanager-XXX) to stay locked into a branch. And to upgrade to a newer branch the use of --allowerasing parameter with dnf.
For distros that use yum, it is recommended to skip use of the meta-packages (specifically cuda-drivers-fabricmanager), otherwise upgrading will first require uninstallation.

To keep to latest branch:

RHEL8:
sudo dnf module install nvidia-driver:latest/fm

Update
sudo dnf upgrade

RHEL7:
sudo yum install nvidia-driver-latest-dkms nvidia-fabric-manager
sudo yum install cuda-drivers

Update
sudo yum upgrade

Move from a locked 460 branch to 470 branch:

RHEL8:
sudo dnf module install nvidia-driver:460/fm

Update to 470
sudo dnf remove "*nvidia-driver*"
sudo dnf module reset nvidia-driver
sudo dnf module install nvidia-driver:470/fm

RHEL7:
version=460.91.03;
stream="latest-dkms";
list=("kmod-nvidia-$stream-$version")
list+=("nvidia-driver-$stream-cuda-$version")
list+=("nvidia-driver-$stream-cuda-libs-$version")
list+=("nvidia-driver-$stream-devel-$version")
list+=("nvidia-driver-$stream-$version")
list+=("nvidia-driver-$stream-NVML-$version")
list+=("nvidia-driver-$stream-NvFBCOpenGL-$version")
list+=("nvidia-driver-$stream-libs-$version")
list+=("nvidia-fabric-manager-$version")
list+=("nvidia-libXNVCtrl-$version")
list+=("nvidia-libXNVCtrl-devel-$version")
list+=("nvidia-modprobe-$stream-$version")
list+=("nvidia-persistenced-$stream-$version")
list+=("nvidia-settings-$version")
list+=("nvidia-xconfig-$stream-$version")
sudo yum install ${list[@]}
sudo yum install cuda-drivers-fabricmanager-460

Update to 470
sudo yum remove cuda-drivers-fabricmanager-460 cuda-drivers-460
sudo yum upgrade


feat: unit tests for AddEditViewTransfer

feat: vitest unit tests for the AddEditViewTransfer component

Having trouble creating spys for mutations and state changes

What's the plan with this pr?

@prv-proton - were you still working on this? I can take another stab at this if your not

@kevin-hashimoto , is this ready for review?

@prv-proton yes ready for review


AsmHighlighter Fix

Hi! I've forked and modified your AsmHighlighter so that it now correctly highlights the syntax such as registers and directives. The issues was within the way that it was attempting to get the color index in the token switch statement. I've since updated not only that, but the references to some newer assemblies for Visual Studio 2015. As far as I can tell, it works pretty well now.

What exactly was the issue?

Only the instructions (mov, add, sub etc), strings, and numbers were being highlighted. I tested it with both VS2015 and VS2013 and neither had proper highlighting. This was because of the indices that were made in the AsmHighlighterColorableItem weren't matching up with the indices that were being assigned to the different tokens, resulting in no syntax highlighting. This fixes it. Also, I did find however that this does not work on VS2013 now as I had to update some references to use VS2015 so it would compile in VS2015, so there would be some compatibility issues unless recompiled on VS2013 with updated references I would assume. Also, I forgot that it does not commit the bin/debug folder so you may want to edit that change out of the Readme.md file I edited if you decide to pull.

Binaries shouldn't be put into git anyway.
For me it was quite strange. I only got partially working highlighting, but in the experimental instance it seemed to work better.

Yeah, I'm aware. Just a lapse of thought on my part, probably because I don't use github much. I believe I did notice the exp instance seemed to work better but I believe it should work on a default instance pretty well now. I'm able to change highlighting colors and all that now and seems to cover that vast majority of the items in the map file. Only issue now would be compatibility with VS2013 as far as I'm aware.

Compatibility with old versions of the IDE is not of concern. Extensions should still work when older toolsets are used though. But in this case that shouldn't matter.

Interestingly it seems like the highlighting suddenly works better with 2015 Update 2.

In the end it looks like this is the only way to get VS to use custom colors properly:
https://github.com/Trass3r/AsmHighlighter/commit/28c7d118ef39c432d65994ee6456cdb37c6d05f2


Basic install won't run Empty Bot

Describe the bug
Install to Windows 10 22H2 device using default options with firewall allowed on private and public networks. Bot Framework Composer won't run any bots, and it won't even run the most basic, unmodified Empty Bot. I get an error starting the bot. The error message is "Local bot runtime manager, Status failed". When I click See details I am directed to Output which is blank.  Please note that an older version of 2.0.0 successfully runs on my other Windows 10 machine.
Version
2.1.2
OS

[X] Windows

To Reproduce
Steps to reproduce the behavior:

Install version 2.1.2
Create new bot, Runtime type Azure Web App
Select empty bot
Without modifications, run the bot

Expected behavior
Bot should run

@jb-dev1
Please get additional logging information while reproducing the issue. Here are the steps:

Go to Composer's install location (mine is at C:\Users{username}\AppData\Local\Programs\Bot Framework Composer)
Open a terminal here
run set DEBUG=composer*
run the executable from the terminal Ex. "Bot Framework Composer.exe"

After reproducing the issue, send the output contents of the terminal.

Closing due to lack of response.


Update version to 2.0.0

Coverage remained the same at 65.102% when pulling 8c8c352efba2f22d81ccd2e2c7451d51bd27efa7 on fcastilloes:master into d36d5d83b3a927afb29f52d8bdd8ff93424ceb2c on kusanagi:master.


cmake find_package(libzip) support

It would be nice if find_package(libzip REQUIRED) would work after vcpkg.exe install libzip.
Installing something like the attached files to the installed<your-triplet>\share\libzip when installing libzip should do it.
libzip-config.cmake.zip

Please see relevant discussion here: https://github.com/nih-at/libzip/issues/27

@benstieg would you take a look at possibly fixing the linked issue upstream?

You can use the CMake standard module FindPkgConfig to detect and use libzip:
https://cmake.org/cmake/help/v3.11/module/FindPkgConfig.html

@ras0219-msft Using the cmake files provided by benstieg does work. I know that upstream fixes are preferred but as I am not a cmake-wizard, I am not of a big help here. But would committing the above files as module patch in vcpkg be an acceptable solution?

I've added find_package() support to libzip itself in https://github.com/nih-at/libzip/commit/dadba129cd2f2aee9095882cc0f9e28e3afd6575
Pull requests with improvements welcome!

So now that libzip 1.7 is in vcpkg, vcpkg has decided to export the target as zip instead of libzip::zip. I don't know why but vcpkg likes to export a bunch of libraries with names that differ from what you'd import them as in any other environment (e.g. I have to search for FFMPEG (which isn't even the name of the library; it's FFmpeg) instead libavcodec, libavutil, etc) and it's extremely annoying to have to add these workarounds. This one is particularly egregious because it goes against the convention of the CMake targets that libzip specifically exports.

Now, libzip support to export cmake configuration files.

Now, libzip support to export cmake configuration files.

Same with pkgconfig.

Same with pkgconfig.


Commands fails when input data is an array

% echo > basic.j2
% echo '[{}]' > basic.json
% jinja2 --format=json basic.j2 basic.json
Traceback (most recent call last):
  File "/xxx/.local/bin/jinja2", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/xxx/.local/lib/python3.11/site-packages/jinja2cli/cli.py", line 449, in main
    sys.exit(cli(opts, args))
             ^^^^^^^^^^^^^^^
  File "/xxx/.local/lib/python3.11/site-packages/jinja2cli/cli.py", line 327, in cli
    data.update(parse_kv_string(opts.D or []))
    ^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'update'

Yeah, I guess that's true. Data is intended to be key/value pairs. The same could be said for any other type. What are you trying to accomplish?

You should be able to do that pretty easily on your own with some pipe like jq before passing it in. From a templating POV it makes no sense to not handle a dict for input.

Ok that's what I did, closing from my side. But that could have been an improvement to support such JSON files as they're not uncommon.


[WIP] Add instanceID busola-migrator override

Description
Add instanceID busola-migrator override
Changes proposed in this pull request:

Add instanceID busola-migrator override

Related issue(s)

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

before merge don't forget to bump the KEB image
I also wondering about step name, it shouldn't be something related to busola component? maybe like "BusolaMigratorOverrideStep"?