WSL2 - PHPStorm on Windows - XDebug works - CLI does not

Is there an existing issue for this?

[X] I have searched the existing issues

Run a Diagnostic and Paste Link Here
https://gist.github.com/ChristianAdamski/aaa7acb3872b66fc80f2cc78e5084bec
Expected Behavior
The CLI in PHPStorm does not work. See attached Sceenshot. Visiting the site in Windows at XXX.ddev.site works, Xdebug works, CLI does not.
Specifically tried to enable CodeSniffer.
Actual Behavior

\wsl$\Ubuntu\home\cap.ddev\bin\docker-compose exists
PHPStorm Docker is set to WSL, PHPStorm can connect.
Steps To Reproduce
No response
Anything else?
No response

What CLI are we talking about here? The ddev cli?
Does it work in the WSL terminal?
What are you doing to get this to happen?
Are you using the DDEV PhpStorm plugin?
Does your project have extra configuration, like .ddev/docker-compose.*.yaml files? Have you tried removing them? It seems to be complaining that you have an invalid configuration, and is probably telling you what line it's on...
Thank you for showing the output of ddev debug test, which says that ddev is doing everything fine.
Squinting to read your screenshot, I see it saying that docker-compose config --file is invalid, I imagine your PhpStorm is not configured to point to the proper docker-compose, and probably you have a version of docker-compose v1 somewhere in your $PATH.
Please take another look at https://ddev.readthedocs.io/en/latest/users/install/phpstorm/#phpstorm-setup and walk through each thing step-by-step, and if you're not using the plugin, you'll sure like it.

What CLI are we talking about here? The ddev cli?
=> Yes
Does it work in the WSL terminal?
=> What does that mean?
Simply opening a Terminal (from PHPStorm) and calling "php" does not work. php-cli is not installed.
What are you doing to get this to happen?
=> Simply opening the DDEV CLI configuration screen in PHPStorm. It's just there. I think for a split second the "web" service can be seen, but then the service-drop-down-select is empty and the error is shown
Are you using the DDEV PhpStorm plugin?
=> Yes
Does your project have extra configuration, like .ddev/docker-compose..yaml files? Have you tried removing them? It seems to be complaining that you have an invalid configuration, and is probably telling you what line it's on...
=> No. I did not touch the .ddev--.yml
Thank you for showing the output of ddev debug test, which says that ddev is doing everything fine.
Squinting to read your screenshot, I see it saying that docker-compose config --file is invalid, I imagine your PhpStorm is not configured to point to the proper docker-compose, and probably you have a version of docker-compose v1 somewhere in your $PATH.
=> Calling docker-compose from Terminal does not work. It's not installed. The specifc docker-compose at ~/.ddev/bin shows version 2
The docker settings in PHPStorm want me to point to a Windows executable. In WSL. ???
Please take another look at https://ddev.readthedocs.io/en/latest/users/install/phpstorm/#phpstorm-setup and walk through each thing step-by-step, and if you're not using the plugin, you'll sure like it.
=> I'm pretty sure I did that :(

I don't know what to do from here. It generally work, I just can't use any tools in PHPStorm based on CLI.

The problem you're demonstrating in the screenshot is not about the ddev CLI, but about docker-compose failing.
If you go through and make sure you've done the instructions again, I'll be glad to do a screenshare call with you to help you figure it out. Lots of people are using this successfully.

Well, I do think the relevant documentation is this:
Prerequisite
Regardless of your setup, you need to have PhpStorm use DDEV’s private docker-compose executable.

In PhpStorm, navigate to Preferences → Build, Execution, Deployment → Docker → Tools, and set the docker-compose executable to the full path of your .ddev/bin/docker-compose file relative to your home directory.

If you’re using WSL2 and running PhpStorm on the Windows side, PhpStorm can’t use docker-compose from WSL2, so configure Docker Desktop in Settings → General to “Use Docker Compose V2” and use a recent version of Docker Desktop.

But how? I do not have docker desktop installed, as the documentation advises against it. So docker is within WSL2. PHPStorm is installed on Windows. PHPStorm therefor demands a Windows executable file. So what to do?

I don't think you ever said that you are using the docker-ce install here.

The plugin has not really yet been thoroughly tested with non-docker-desktop.
However, latest PhpStorm allows you to configure the Docker integration to use docker-inside-wsl2. I casually tested it and found that it worked:

Hmm. Wanna do a screenahre? If yes, how?
Alternatively: You do recommend docker-desktop?
From the documentation I assumed it to be outdated:
`Windows¶
You can install DDEV on Windows three ways:
[Using WSL2 with Docker inside](https://ddev.readthedocs.io/en/latest/users/install/ddev-installation/#wsl2-docker-ce-inside-install-script)
[Using WSL2 with Docker Desktop](https://ddev.readthedocs.io/en/latest/users/install/ddev-installation/#wsl2-docker-desktop-install-script)
[Installing directly on traditional Windows](https://ddev.readthedocs.io/en/latest/users/install/ddev-installation/#traditional-windows) with an installer

We strongly recommend using WSL2. While its Linux experience may be new for some Windows users, it’s worth the performance benefit and common experience of working with Ubuntu and Bash.`

My recommendation is docker-ce for most things. Docker Desktop is fully supported. Only in the latest version did PhpStorm start working with docker-ce-inside-WSL2.
Screenshare with google meet, zoom, anything you want. I don't have a WSL2 machine with me just this moment so can't do it right now What timezone are you in? I'm US MT, UTC-7

Berlin, Germany<EMAIL_ADDRESS>Google works, Zoom I can install. Send me an invite and I can show you. Might be interesting.

If you'll be available tomorrow afternoon/evening your time? or Monday? That way I can try it out and see how it's working for me before our call.

Tomorrow before 4pm or after 8pm, Monday before 7pm, Berlin time is fine. Or right now, just to demonstrate the issue.

I think maybe you're saying this, that WSL2 does not have PHP installed. It generally should not (I don't recommend installing it because it will cause confusion). php lives in the ddev-webserver container; you get there with ddev ssh or you can ddev exec php.

All you have to do is ddev ssh to get into the container where everything is happening.

Sent you an invite for Monday.
If just knowing that the WSL2 shell and the ddev-webserver container are different things gets you farther along, we don't have to do that. But happy to spend some time taking a look.

This section of the docs may help as well, https://ddev.readthedocs.io/en/latest/users/usage/architecture/#container-architecture

Thanks for taking the time to study this PhpStorm problem today, and will look forward to what you learn with experimentation. I'm sure that PhpStorm can do better here, and the PhpStorm plugin may need some effort for this too. And it may be that we should put in the docs that the Docker Desktop setup is best if you're using PhpStorm on the Windows side.
I'm going to close this for now because it doesn't lead anywhere but I think now that you understand the various things going on we can create new issues as needed (or you may want to click the edit button on the PhpStorm integration page in the docs to create a PR). Looking forward to hearing more, and of course you're invited to DDEV Discord Channel


release: v0.10.0

Coverage remained the same at 86.116% when pulling cd6fee0954ea7dedb219e8697f3f608aa007e28b on fenekku:release_v0.10.0 into 578c01e999b974e7d52f98abafe251db3d5f9428 on inveniosoftware:master.


examples: use getline() to read commands

examples: use getline() to read commands
The previous approach works only if the terminal is operating in cannonical mode (input available line-by-line), which is not always true. getline() ensures that commands are always read correctly.
With this change commands work properly on Apache NuttX

Hi @raiden00pl, thanks for your contribution. Nice to see on which platforms Wakaama is integrated.
There are no regression tests for Apache NuttX yet, so we can not guarantee that we won't break NuttX with future changes.

No problem with that. NuttX tries to be compatible with Linux as much as possible for a system dedicated to embedded applications, so it shouldn't be that easy to break NuttX support ;)


[SPARK-35440][SQL] Add function type to ExpressionInfo for UDF

What changes were proposed in this pull request?
Add the function type, such as "scala_udf", "python_udf", "java_udf", "hive", "built-in" to the ExpressionInfo for UDF.
Why are the changes needed?
Make the ExpressionInfo of UDF more meaningful
Does this PR introduce any user-facing change?
no
How was this patch tested?
existing and newly added UT

Test build #138702 has started for PR 32587 at commit 3aa2124.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43223/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43223/

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

Test build #138702 has finished for PR 32587 at commit 3aa2124.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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

Two questions:

built-in is one of languages types?
How is this additional info useful for a user?

@maropu, thanks for reviewing

built-in is one of languages types?

Nope. But I really couldn't find another name for the built-in functions

How is this additional info useful for a user?

This allows the admin role could audit the registered UDFs, for example, list all the functions and check the function type
spark.sessionState.functionRegistry.listFunction().foreach { funcId =>
  val info = spark.sessionState.catalog.lookupFunctionInfo(funcId)
  }
}

cc @cloud-fan

Test build #138789 has started for PR 32587 at commit f7d01f1.

Test build #138790 has started for PR 32587 at commit 69236de.

Test build #138789 has finished for PR 32587 at commit f7d01f1.

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

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43313/

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

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

Test build #138790 has finished for PR 32587 at commit 69236de.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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

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

Test build #138906 has started for PR 32587 at commit b2f9904.

Test build #138906 has finished for PR 32587 at commit b2f9904.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

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

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43428/

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

Test build #138909 has started for PR 32587 at commit 0a7b357.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43431/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43431/

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

Test build #138909 has finished for PR 32587 at commit 0a7b357.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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

Test build #138953 has started for PR 32587 at commit 999c251.

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43473/

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

cc @cloud-fan, thanks for reviewing. all the comments are addressed.

thanks, merging to master!

Test build #138953 has finished for PR 32587 at commit 999c251.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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


Attributes CSV loading

On reading of a CSV file it will inline calculate the necessary attributes metadata to be added to the folder.
Slightly different than the Node.js version.  That one does an additional pass on all tracks after initial read.  This one currently does it inline to build up the values and then a single loop through the attributes to confirm the type.
https://user-images.githubusercontent.com/61746913/110162978-7038e580-7dbd-11eb-8392-727f3f6ab4a5.mp4

Fixed an issue in the Node.js version regarding predefined attribute values that weren't first in a track
python getTracks have now been updated to getTrackAndAttributes.  To make attribute calculations in a single loop through the CSV file this was required.  Let me know if you have any other idea or better ways to structure the typing for the return value of the functions that used to just load the tracks.
Added testing of the attribute processor on python, specifically the predefined values
Added NodeJS attributeProcessor testing.  Let me know if I should do an integrated cli.ts parseFile test at the same time.  I don't know if the parseFile function would ever be used without the attributeProcessor.  It seems natural that they should be tested at the same time.

That's what I get for suggested edits.... It's a lint error, black will fix it.

entirely my fault


fixes in case a file have more than one parent.

1.0.0_wmagent branch version of #5715

Thanks a lot Seangchan! Now I see both parents :-)
I'll run a few thousand jobs for that skim workflow in testbed before pushing it to prod.

Feel free to merge it! Thanks


Created Alert words screen in Setting details screen.

Rebased 👍

Not necessarily. At least visually I would want to make some changes.
Possibly conceptually too, just haven't put much thought into it.


BUG: Active tokens not saved

This PR:

Fixes the conditions for recalculating active tokens, there are only 2 situations where we do this: Safe's tokens updated (UPDATE_SAFE action) / Custom token added for all safes (ACTIVATE_TOKEN_FOR_ALL_SAFES action)
Small eslint fixes

Travis automatic deployment:
https://pr168--safereact.review.gnosisdev.com
Storybook book automatic deployment:
https://pr168--safereactstorybook.review.gnosisdev.com


Missing -race flag

I'm assuming this because I have an outdated binary somehow. When I run gb help build, the flag doesn't appear:
$ gb help build
usage: gb build [build flags] [packages]

Build compiles the packages named by the import paths, along with their
dependencies.

Flags:

	-f
		ignore cached packages if present, new packages built will overwrite
		any cached packages. This effectively disables incremental
		compilation.
	-F
		do not cache packages, cached packages will still be used for
		incremental compilation. -f -F is advised to disable the package
		caching system.
	-q
		decreases verbosity, effectively raising the output level to ERROR.
		In a successful build, no output will be displayed.
	-P
		The number of build jobs to run in parallel, including test execution.
		By default this is the number of CPUs visible to gb.
	-R
		sets the base of the project root search path from the current working
		directory to the value supplied. Effectively gb changes working
		directory to this path before searching for the project root.
	-v
		increases verbosity, effectively lowering the output level from INFO
		to DEBUG.
	-dotfile
		if provided, gb will output a dot formatted file of the build steps to
		be performed.
	-ldflags 'flag list'
		arguments to pass on each linker invocation.
	-gcflags 'arg list'
		arguments to pass on each go tool compile invocation.

I tried upgrading using go get github.com/constabulary/gb/... but that didn't see to help.

I could have forgotten to add it to the help text. If so, i'll add that
documentation and send a PR to close this issue.
On Fri, Jan 15, 2016 at 2:58 PM, Lance Carlson<EMAIL_ADDRESS>wrote:

I'm assuming this because I have an outdated binary somehow. When I run gb
help build, the flag doesn't appear:
$ gb help build
usage: gb build [build flags] [packages]
Build compiles the packages named by the import paths, along with their
dependencies.
Flags:
-f
    ignore cached packages if present, new packages built will overwrite
    any cached packages. This effectively disables incremental
    compilation.
-F
    do not cache packages, cached packages will still be used for
    incremental compilation. -f -F is advised to disable the package
    caching system.
-q
    decreases verbosity, effectively raising the output level to ERROR.
    In a successful build, no output will be displayed.
-P
    The number of build jobs to run in parallel, including test execution.
    By default this is the number of CPUs visible to gb.
-R
    sets the base of the project root search path from the current working
    directory to the value supplied. Effectively gb changes working
    directory to this path before searching for the project root.
-v
    increases verbosity, effectively lowering the output level from INFO
    to DEBUG.
-dotfile
    if provided, gb will output a dot formatted file of the build steps to
    be performed.
-ldflags 'flag list'
    arguments to pass on each linker invocation.
-gcflags 'arg list'
    arguments to pass on each go tool compile invocation.

I tried upgrading using go get github.com/constabulary/gb/... but that
didn't see to help.
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/issues/543.

Is this where it's supposed to be?
https://github.com/constabulary/gb/blob/master/cmd/gb/help.go

It looks like this was fixed in 56a6bd0b


backend_api service exits due to missing dependency

When I start the application with docker compose using
docker-compose --profile all up

the backend-api service exits with the following error message:
showwhy-backend_api-1     |   File "/opt/python/3.9.15/lib/python3.9/site-packages/rpy2/rinterface.py", line 817, in __call__
showwhy-backend_api-1     |     raise embedded.RRuntimeError(_rinterface._geterrmessage())
showwhy-backend_api-1     | rpy2.rinterface_lib.embedded.RRuntimeError: Error in library(synthdid) : there is no package called ‘synthdid’

I run into the same problem

I have the same issue.

Hi @danielschweigert, @Brezesky and @efitkov !
Thanks for pointing that out to us, there was a problem with synthdid repository so we forked a fix #421 and updated our code so it's pointing to the right place now.
If you could please try again and let us know,
Thank you!

Dayenne,
Thank you for your email and letting me know that you have so kindly looked into this issue with showwhy.
I downloaded the updated main and rebuilt showwhy in Docker and am pleased to report that the backend API is working beautifully on my Intel Mac.
I had to download the main branch file and then build from that, as when I tried using the clone git command to download showwhy and tried building in Docker from that download it did not seem to reflect the fix for sythdid as a got the same error as before the fix.
I hope this makes sense to you. I am not an expert on github and am truly grateful to you and your colleagues for taking up the time to make the software available and fixing any issues.
Kind regards, Elena
Elena Fitkov-Norris
@.***

On 3 Aug 2023, at 15:59, Dayenne Souza @.***> wrote:
Hi @danielschweigert https://github.com/danielschweigert, @Brezesky https://github.com/Brezesky and @efitkov https://github.com/efitkov !
Thanks for pointing that out to us, there was a problem with synthdid repository so we forked a fix #421 https://github.com/microsoft/showwhy/pull/421 and updated our code so it's pointing to the right place now.
If you could please try again and let us know,
Thank you!
—
Reply to this email directly, view it on GitHub https://github.com/microsoft/showwhy/issues/412#issuecomment-1664148759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7JCUPMNOHWJLUUZN5Z573XTO4EHANCNFSM6AAAAAAZV347QE.
You are receiving this because you were mentioned.


upd: returns the error location of the schema file instead of the usual error

Before

After

This doesn't seem to be working for me. The original behavior still happens.

This doesn't seem to be working for me. The original behavior still happens.

I checked out this pr then tested

This seem to work in some files but not others. Can you make this work on all files, for example, the minEngineVersionMap.json crashes the script with invalid syntax?


resolve sampling frequency discrepancy

When importing TDT data in the NeuralData class, it can happen that the synch channel had a different sampling rate than the raw data. At the moment it leads to the unexpected behavior of assigning the sync channel sampling frequency (or the lower one?) as the .fs attribute.

[x] ensure that .fs is the one corresponding to raw data
[x] add .fs_sync attribute
[ ] add warning raising if the two are not matching

fs is already clearly assigned to be the one corresponding to raw data.
fs_sync already existed as sync_fs, changed now for naming consistency.
Will test on proper data when available to try to reproduce the error.


Same origin iframes aren't getting rendered

Same origin iframes aren't getting rendered.

Page:

    <input type="button" value="picture" onclick="render()"></input>

Iframe content:

Hello World

Log:
html2canvas: Preload starts: finding background-images
html2canvas: Preload: Finding images
html2canvas: Preload: Done.
html2canvas: start: images: 0 / 0 (failed: 0)
Finished loading images: # 0 (failed: 0)
finished rendering 0 children.
finished rendering 6 children.
Done parsing, moving to Render.
html2canvas: Renderer: Canvas renderer done - returning canvas obj

The new version of this problem be solved?


UnicodeEncodeError: 'ascii' codec can't encode character u'\u20ac' in position 5: ordinal not in range(128)

I'm submitting a ...

[x ] bug report
[ ] feature request
[ ] support request

General infomration
Prerequisites

[x ] Are you running the latest version?

Description
[Description of the bug or feature]
Steps to Reproduce

Start Netflix Addon

**Expected behavior: it should login and show netflix
**Actual behavior: nothing except error
Context (Environment)
Installation

[ x] I installed the plugin via zip from the Releases page
[ ] I´m using the Netflix Repo
[ ] I´m using a different source (Please tell which)

Operating System

[ ] Linux (x86/x64)
[ ] OSX (x86/x64)
[ x] Windows (x86/x64)
[ ] Linux (ARM)
[ ] Android

Debug log
10:23:28.181 T:2540   DEBUG: [Netflix] Started (Version 0.13.10)
10:23:28.181 T:2540   DEBUG: [Netflix] "Navigation::router" called with arguments :paramstring = action=video_lists&profile_id=GF3BQUKT2VDPZDAI45M5TKDTSM:
10:23:28.182 T:2540   DEBUG: [Netflix] "Navigation::before_routing_action" called with arguments :params = {'action': 'video_lists', 'profile_id': 'GF3BQUKT2VDPZDAI45M5TKDTSM'}:
10:23:28.183 T:7320   DEBUG: [Netflix] No cookies found
10:23:28.200 T:2540   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode character u'\u20ac' in position 5: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\addon.py", line 33, in
NAVIGATION.router(paramstring=REQUEST_PARAMS)
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils.py", line 45, in wrapped
result = func(*args, **kwargs)
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\Navigation.py", line 98, in router
options = self.before_routing_action(params=params)
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\utils.py", line 45, in wrapped
result = func(*args, **kwargs)
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\Navigation.py", line 808, in before_routing_action
self.nx_common.set_credentials(credentials['email'], credentials['password'])
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\NetflixCommon.py", line 69, in set_credentials
encoded = NetflixCredentials().encode_credentials(email, password)
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\NetflixCredentials.py", line 27, in encode_credentials
'password': self.encode(raw=password)
File "C:\Users\mediapc\AppData\Roaming\Kodi\addons\plugin.video.netflix\resources\lib\NetflixCredentials.py", line 65, in encode
raw = bytes(Padding.pad(data_to_pad=raw, block_size=self.bs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u20ac' in position 5: ordinal not in range(128)
-->End of Python script error report<--
Other information
It can't encode this unicode character: \u20ac
Which is actually an € sign. I have no Idea from where it is comming.

pls. deinstall netflix addon (including user-data), and install from zip again.

Yes, understand your suggestion, thanx for reporting back!


[Feat]: Generate random key / tokens

What new feature are you looking for / expect?
pub struct Users {
    // ..
    #[geekorm(rand, rand_length = 32)]
    token: String
}

Expectations
Opt-in Feature

Added support in #34


first prototype for tracing in build.sh

This is still a work-in-progress.
Some things we may want to do:

Introduce a stack of spans
Instrument more stuff, especially the appliances, and maybe stages on a high level

refs https://github.com/travis-ci/reliability/issues/142

To test locally:
bundle install
bundle exec rackup -Ilib

Generate payload (write into job_payload.json):
heroku run -a travis-scheduler-staging ruby script/generate-job-payload.rb 725023

Generate build.sh:
curl -i -XPOST<EMAIL_ADDRESS>localhost:9292/script

I changed this to pre-compute most of the data going into the trace file at build time, to avoid complex bash logic for escaping and state. This means that even the span ids and the tree structure is pre-computed, and makes some assumptions about the order of operations. The only thing that happens in bash is interpolating the timestamp and the exit code, and appending the result to a file.
One tricky bit was that the individual steps before_script, script, etc. are defined as individual functions, and as such are not nested within the code that calls those functions. So I had to pre-allocate a root span and add a special case for that, so that those steps become children of the root.

Looks like this still needs some work 🤦♂
/home/travis/build.sh: line 1: travis_trace_span: command not found
/home/travis/build.sh: line 907: warning: here-document at line 15 delimited by end-of-file (wanted `EOFUNC')

This is currently only producing a partial trace, not sure yet what is up. Will continue with this next week. :)

This is working correctly now!


The Raw view of a object show offer a tree

Currently the raw view is a simple list. We should make it a tree.

With a customizable, selectable treeelement view?

Object can override gtInspectorVariableNodesIn: if they want to customize the list of attributes, or gtRawFor:  in case they want to provide a different view.


Add support for S3 compatible storage providers

Hello, is it possible to include the endpoint configuration option to enable other S3 compatible storage providers such as Backblaze?
This was implemented in the S3 media storage plugin, which can be found at https://github.com/strapi/strapi/blob/3b504a5284f4e0eeaec73af89fc7c1604a953214/packages/providers/upload-aws-s3/src/index.ts#L39.
You can also find documentation regarding this feature at https://market.strapi.io/providers/@strapi-provider-upload-aws-s3.

Hello @LaurensVanAcker,
I am pleased to inform you that the functionality you requested has been successfully added to the latest version of the plugin, v1.0.0-rc.1, now available on Github and NPM.
Thank you again for your suggestion and your interest in this project.


Illegal istruction when running dart2js in a docker container

We had a problem while using an old pc as a build server using a docker image. In particular we get an illegal istruction when running flutter build web
The CPU on the build server is a Intel(R) Atom(TM) CPU  330   @ 1.60GHz
Are there any minimal CPU requirements to run flutter build?
Thanks
Steps to Reproduce

Create a new project
Run flutter build web

Logs

Logs

💪 Building with sound null safety 💪

Compiling lib/main.dart for the Web...
Target dart2js failed: Exception:
===== CRASH =====
si_signo=Illegal instruction(4), si_code=2, si_addr=0x7f21de736887
version=2.16.0-38.0.dev (dev) (Mon Nov 22 14:23:59 2021 -0800) on "linux_x64"
pid=40, thread=46, isolate_group=main(0x55b373489000), isolate=main(0x55b37348b000)
isolate_instructions=7f21de5b5000, vm_instructions=55b370ccd640
  pc 0x00007f21de736887 fp 0x00007f21d88fd0a8 Unknown symbol
  pc 0x00007f21de739e16 fp 0x00007f21d88fd0e0 Unknown symbol
  pc 0x00007f21de739a29 fp 0x00007f21d88fd120 Unknown symbol
  pc 0x00007f21df53fa1a fp 0x00007f21d88fd208 Unknown symbol
  pc 0x00007f21df5436a5 fp 0x00007f21d88fd288 Unknown symbol
  pc 0x00007f21df4a7b54 fp 0x00007f21d88fd2b8 Unknown symbol
  pc 0x00007f21df5447e3 fp 0x00007f21d88fd310 Unknown symbol
  pc 0x00007f21de952a95 fp 0x00007f21d88fd368 Unknown symbol
  pc 0x00007f21df566da7 fp 0x00007f21d88fd3f0 Unknown symbol
  pc 0x00007f21df56cfdb fp 0x00007f21d88fd420 Unknown symbol
  pc 0x00007f21df5447e3 fp 0x00007f21d88fd478 Unknown symbol
  pc 0x00007f21de759231 fp 0x00007f21d88fd4e8 Unknown symbol
  pc 0x00007f21de75ad38 fp 0x00007f21d88fd538 Unknown symbol
  pc 0x00007f21de75b51a fp 0x00007f21d88fd588 Unknown symbol
  pc 0x00007f21df665a2c fp 0x00007f21d88fd5f8 Unknown symbol
  pc 0x00007f21de75b218 fp 0x00007f21d88fd658 Unknown symbol
  pc 0x00007f21df665849 fp 0x00007f21d88fd6b8 Unknown symbol
  pc 0x00007f21df6c799a fp 0x00007f21d88fd710 Unknown symbol
  pc 0x00007f21de766d55 fp 0x00007f21d88fd778 Unknown symbol
  pc 0x00007f21df3991a1 fp 0x00007f21d88fd7c0 Unknown symbol
  pc 0x00007f21df66981c fp 0x00007f21d88fd808 Unknown symbol
  pc 0x00007f21de75b218 fp 0x00007f21d88fd868 Unknown symbol
  pc 0x00007f21df66934e fp 0x00007f21d88fd8b8 Unknown symbol
  pc 0x00007f21df6c85da fp 0x00007f21d88fd910 Unknown symbol
  pc 0x00007f21de766d55 fp 0x00007f21d88fd978 Unknown symbol
  pc 0x00007f21df39979b fp 0x00007f21d88fd9d0 Unknown symbol
  pc 0x00007f21df399ef8 fp 0x00007f21d88fda20 Unknown symbol
  pc 0x00007f21df39ad69 fp 0x00007f21d88fdad8 Unknown symbol
  pc 0x00007f21df39b931 fp 0x00007f21d88fdb88 Unknown symbol
  pc 0x00007f21df3b1743 fp 0x00007f21d88fdc18 Unknown symbol
  pc 0x00007f21de715b79 fp 0x00007f21d88fdc90 Unknown symbol
  pc 0x00007f21de715e8c fp 0x00007f21d88fdcf8 Unknown symbol
  pc 0x00007f21df58a226 fp 0x00007f21d88fdd90 Unknown symbol
  pc 0x00007f21df58a42e fp 0x00007f21d88fdde0 Unknown symbol
  pc 0x00007f21df58beae fp 0x00007f21d88fde40 Unknown symbol
  pc 0x00007f21bb0baeb7 fp 0x00007f21d88fdea8 Unknown symbol
  pc 0x00007f21df47f9eb fp 0x00007f21d88fdef0 Unknown symbol
  pc 0x00007f21df709f05 fp 0x00007f21d88fdf30 Unknown symbol
  pc 0x00007f21df3b10d9 fp 0x00007f21d88fdfd0 Unknown symbol
  pc 0x00007f21de715b79 fp 0x00007f21d88fe048 Unknown symbol
  pc 0x00007f21de715e8c fp 0x00007f21d88fe0b0 Unknown symbol
  pc 0x00007f21df58a226 fp 0x00007f21d88fe148 Unknown symbol
  pc 0x00007f21df58a42e fp 0x00007f21d88fe198 Unknown symbol
  pc 0x00007f21df58beae fp 0x00007f21d88fe1f8 Unknown symbol
  pc 0x00007f21bb0baeb7 fp 0x00007f21d88fe260 Unknown symbol
  pc 0x00007f21df47f9eb fp 0x00007f21d88fe2a8 Unknown symbol
  pc 0x00007f21df709f05 fp 0x00007f21d88fe2e8 Unknown symbol
  pc 0x00007f21df3b08c0 fp 0x00007f21d88fe388 Unknown symbol
  pc 0x00007f21de715b79 fp 0x00007f21d88fe400 Unknown symbol
  pc 0x00007f21de715e8c fp 0x00007f21d88fe468 Unknown symbol
  pc 0x00007f21df58a226 fp 0x00007f21d88fe500 Unknown symbol
  pc 0x00007f21df58a42e fp 0x00007f21d88fe550 Unknown symbol
  pc 0x00007f21df58beae fp 0x00007f21d88fe5b0 Unknown symbol
  pc 0x00007f21bb0baeb7 fp 0x00007f21d88fe618 Unknown symbol
  pc 0x00007f21df47f9eb fp 0x00007f21d88fe660 Unknown symbol
  pc 0x00007f21df58d42d fp 0x00007f21d88fe6a0 Unknown symbol
  pc 0x00007f21df58ff51 fp 0x00007f21d88fe710 Unknown symbol
  pc 0x00007f21df590129 fp 0x00007f21d88fe770 Unknown symbol
  pc 0x00007f21de716853 fp 0x00007f21d88fe800 Unknown symbol
  pc 0x00007f21df5903e0 fp 0x00007f21d88fe850 Unknown symbol
  pc 0x00007f21df595ac3 fp 0x00007f21d88fe898 Unknown symbol
  pc 0x00007f21df59653b fp 0x00007f21d88fe8d8 Unknown symbol
  pc 0x00007f21df596759 fp 0x00007f21d88fe900 Unknown symbol
  pc 0x00007f21df709d6e fp 0x00007f21d88fe940 Unknown symbol
  pc 0x00007f21df70a8d8 fp 0x00007f21d88fe980 Unknown symbol
  pc 0x00007f21de0029af fp 0x00007f21d88fe9f8 Unknown symbol
  pc 0x000055b370e43153 fp 0x00007f21d88feaa0 dart::DartEntry::InvokeCode(dart::Code const&, unsigned long, dart::Array const&, dart::Array const&, dart::Thread*)+0x153
  pc 0x000055b370e42f8c fp 0x00007f21d88feb00 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x14c
  pc 0x000055b370e454ff fp 0x00007f21d88feb50 dart::DartLibraryCalls::HandleMessage(long, dart::Instance const&)+0x16f
  pc 0x000055b370e6c394 fp 0x00007f21d88fec30 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >)+0x374
  pc 0x000055b370e9426c fp 0x00007f21d88feca0 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x14c
  pc 0x000055b370e9496f fp 0x00007f21d88fecf0 dart::MessageHandler::TaskCallback()+0x1df
  pc 0x000055b370fac848 fp 0x00007f21d88fed80 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x138
  pc 0x000055b370faccdc fp 0x00007f21d88fedb0 dart::ThreadPool::Worker::Main(unsigned long)+0x5c
  pc 0x000055b370f28018 fp 0x00007f21d88fee70 /usr/local/flutter/bin/cache/dart-sdk/bin/dart+0x2028018
-- End of DumpStackTrace

Compiling lib/main.dart for the Web...                             87.2s
Exception: Failed to compile application for the Web.

[✓] Flutter (Channel master, 2.6.0-12.0.pre.819, on Debian GNU/Linux 11 (bullseye) 5.4.0-90-generic, locale en_US)
    • Flutter version 2.6.0-12.0.pre.819 at /usr/local/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a1115b8b3f (20 hours ago), 2021-11-23 14:49:13 -0800
    • Engine revision 41b8e57bc4
    • Dart version 2.16.0 (build 2.16.0-38.0.dev)
    • DevTools version 2.8.0

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[!] Connected device
    ! No devices available

! Doctor found issues in 4 categories.

Most likely one of the SSE4 instructions. Might be roundsd. It would help if you take a core dump on the build server and then look at which instruction crashed.
One potential reason is that we generate app-jit snapshots on a newer CPUs but potentially use them on older CPUs - so we should either tell VM not to use optional CPU features (e.g. SSE4.1) or remember which features it used for a specific code so that we could invalidate that code when loading it into the snapshot.
/cc @mkustermann

Possible fix was rolled into Flutter in 45808bab256d92a5cf676eee8055e0e79e4e2796.
@peppetort Could you verify if the crash disappears on the latest Flutter?

I just checked and with the latest version there are no more problems.
Thank you


Custom Button Issue on Font Family

I was following your example on issue #114, but it doesn't seem to work on font family.
I tried using the foreColor icon, but it's not showing up. I've confirmed that the icon is in place, I did that by adding the button to the list, so I'm unsure as to why it won't work.
$('#editor').trumbowyg({
    btnsDef: {
        fontfamily: {
            ico: 'foreColor'
        }
    },
    btns: [
         ['fontfamily']
    ],
    plugins: {
        fontfamily: {
            fontList: [
                {name: 'Montserrat', family: '\'Montserrat\', sans-serif'},
                {name: 'Merriweather', family: '\'Merriweather\', sans-serif'}
            ]
        }
    }

Hi!
I think you missed something. You cannot overwrite the existing fontfamily button via btnsDef.
You need to create a custom button that will call the fontfamily's one. The important part is:
$('#editor').trumbowyg({
    btnsDef: {
        customizedFontfamily: {
            fn: 'fontfamily',
            ico: 'foreColor'
        }
    },
    btns: [
         ['customizedFontfamily']
    ]
})

See documentation for more details: https://alex-d.github.io/Trumbowyg/documentation/#custom-buttons

I tried this, but it did not work. The icon showed up, but the font family did not show below. Unless I need to change the plugin name in plugins: {}

On Feb 18, 2020, at 6:46 PM, Alexandre Demode<EMAIL_ADDRESS>wrote:
Hi!
I think you missed something. You cannot overwrite the existing fontfamily button via btnsDef.
You need to create a custom button that will call the fontfamily's one. The important part is:
$('#editor').trumbowyg({
btnsDef: {
customizedFontfamily: {
fn: 'fontfamily',
ico: 'foreColor'
}
},
btns: [
['customizedFontfamily']
]
})
See documentation for more details: https://alex-d.github.io/Trumbowyg/documentation/#custom-buttons https://alex-d.github.io/Trumbowyg/documentation/#custom-buttons
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/Alex-D/Trumbowyg/issues/1083?email_source=notifications&email_token=AADHFYEL7YPXJR5S76NGKNTRDR6PBA5CNFSM4KXNUCCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMF5JKY#issuecomment-587977899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADHFYH3HN2QNIB2VH5IWXTRDR6PBANCNFSM4KXNUCCA.


Added more article codes

added code for rnn from scratch

Also added code for inception from scratch article

added code for object detection from scratch


dev: Various improvements to bundle downloading

The initial goal was to use the same progress bar as the archive extraction
code, which this PR does. But it also tries to improve the decisions around
when to download the bundle (do it in !release builds).

Rebasing and testing it for dev branch.


Adjust benchmark threshold for mobile GPUs

Now we have removed Galaxy S20 and rely on Pixel 6 Pro,
which gives stable numbers. The threshold should be adjusted.

Hmmm the fact that it's reporting regressed benchmarks here suggests that those thresholds should be larger

Hmmm the fact that it's reporting regressed benchmarks here suggests that those thresholds should be larger

Those are all for CPU now, except DeepLabV3. I added 0da8f25 to tweak DeepLabV3 too. We should also tweak the thresholds for CPU; but that can happen in a later PR to be more targeted.


Dashboard build issue when doing onpremise installation

Getting this error while doing onpremise installation

A variable in the config file has been repeated twice due to which angular failed build the code.
Modified the ansible env file and pushed the code to repo.

@asifbasha61 thanks, @TanushreeSG please recheck this issue and update it asap, as its a blocker

Retested again getting same error

@asifbasha61 pls check this wts the issue

@htvenkatesh @asifbasha61 It was a pull issue. I have retested again, now its working as expected.


redux-form not rerender

I integrated redux-form  with rect-intl
and when I change language my root App component is reRender, causing all the components to show the new languages.
but only components that are wrap with redux-form are not.
how can I fix it?

You'll need to show a demo of your problem.
Start from here: https://codesandbox.io/s/gJjDoKYWl


OS semaphore pend/post return value

The OS pend and post functions return the count value of the semaphore. In the case that a semaphore was pended multiple times, the post function must also post that many times in order to free the semaphore. The only way this can occur is if the pend and post functions return the value of the semaphore so we can check if they have been cleared when posting.
typedef struct {
    void (*pend)(void);
    void (*post)(void);
} bsp_os_t;

should be
typedef struct {
    uint8_t (*pend)(void);
    uint8_t (*post)(void);
} bsp_os_t;

This issue is covered by the RTOS wrapper issue #401


libc++abi: terminating due to uncaught exception of type std::runtime_error: [AddMM::eval_cpu] Currently only supports float32. Abort trap: 6

In my MacBook Pro (intel i5 cpu), with the following config, I did my test like this:

environment

MacOS 14.3
Xcode 15.2
kMDItemVersion = "2.8.5"
Apple clang version 15.0.0 (clang-15<IP_ADDRESS>.5)
Python 3.11.7

install miniconda

conda create -n video_summarize_mlx python=3.11
conda activate video_summarize_mlx
git clone https://github.com/Peter-obi/Video_summarization_mlx
cd Video_summarization_mlx

comment out the following line of requirements.txt

# mlx
# mlx-lm

because they can not be installed by pip
pip install mlx
ERROR: Could not find a version that satisfies the requirement mlx (from versions: none)
ERROR: No matching distribution found for mlx

install pkgs in requirements.txt by pip

pip install --upgrade pip
pip  install -r requirements.txt

install the remaining pkgs by conda

conda install -c conda-forge mlx mlx-lm

and to run the code like this:
python -m spacy download en_core_web_sm
python main.py --input_path "/Users/joshua/video/test1.mp4" --title "test1"

but getting libc++abi: terminating due to uncaught exception of type std::runtime_error: [AddMM::eval_cpu] Currently only supports float32. Abort trap: 6

Fetching 5 files: 100%|█████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 12343.45it/s]
Processing local video file: /Users/joshua/video/test1.mp4
Converting to wav with command:  ffmpeg -y -i "/Users/joshua/video/test1.mp4" -ar 16000 -ac 1 -c:a pcm_s16le "files/audio/test1.wav"
ffmpeg version 4.4.4 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-15<IP_ADDRESS>.5)
  configuration: --prefix=/opt/local --cc=/usr/bin/clang --mandir=/opt/local/share/man --enable-audiotoolbox --disable-indev=jack --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-opencl --disable-outdev=xv --enable-sdl2 --disable-securetransport --enable-videotoolbox --enable-avfilter --enable-avresample --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libzimg --enable-libzvbi --enable-lzma --enable-pthreads --enable-shared --enable-swscale --enable-zlib --enable-libaom --enable-libsvtav1 --arch=x86_64 --enable-x86asm --enable-gpl --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-postproc
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/joshua/video/test1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.29.100
  Duration: 00:56:45.07, start: 0.000000, bitrate: 373 kb/s
  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 242 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'files/audio/test1.wav':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    ISFT            : Lavf58.76.100
  Stream #0:0(und): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc58.134.100 pcm_s16le
size=  106408kB time=00:56:45.06 bitrate= 256.0kbits/s speed= 809x
video:0kB audio:106408kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000072%
ffmpeg return code:  0
Audio extracted to: files/audio/test1.wav
Transcribing files/audio/test1.wav (this may take a while)...
libc++abi: terminating due to uncaught exception of type std::runtime_error: [AddMM::eval_cpu] Currently only supports float32. </span>
Abort trap: 6
(video_summarize_mlx) bash-5.2$ /Users/joshua/miniconda3/envs/video_summarize_mlx/lib/python3.11/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

MLX is an array framework for machine learning on Apple silicon ie M chips (read more here: https://github.com/ml-explore/mlx). Seems you have an Intel chip. First thoughts: you can swap out the whisper part for a compatible whisper one and then change the mlx model portions to 'normal' huggingface models.

Similar issue for me on an M2 Mac Air.

I will try to recreate the issue when I get back on my system.  Some things you can try, make sure you are not running out of memory (happened once when I used a bigger model), also there are discussions on this here: https://github.com/conda/conda/issues/9589, https://github.com/apple/ml-stable-diffusion/issues/8, try also summarize_with_mlx instead of summarize_in_parallel to see if that helps (if it is a memory issue).

it is             decode_result = model.decode(segment, options)
inside decode_with_fallback that is breaking, will continue seeing if I can find out what the issue is.

Could this be apple silicon M1 M2 only issue?
I did it at a intel i5 platform.
If yes , could I run it at a Linux i7 env? How difficult is it to port to Linux x86_ 64 env?

Interesting. I have never faced this particular issue, because I just use the already converted whisper from mlx examples and haven't ran into issues yet. Can you add this and see what happens: mel_segment = mel_segment.astype(mx.float32)?

This didnt work. I changed the transcribe call to def to putting fp16 to false (def transcribe(audio_file, fp16=False, output_path="files/transcripts"):), and that issue is fixed, however I get a similar error when it is doing the summarize_with_mlx. I have the 4bit mixtral.
Audio has been transcribed in 22 seconds
Found 1 chunks. Summarizing using MLX model...
Generating summary with MLX model...
libc++abi: terminating due to uncaught exception of type std::runtime_error: [Matmul::eval_cpu] Currently only supports float32.
zsh: abort      python main.py --input_path  --title "Test"
(video_summarize_mlx) miniconda/envs/video_summarize_mlx/lib/python3.11/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
Looking at this, I may be missing something though. The 4bit model shouldnt need a float 32 I think.

Great that you solved that! Been busy for a couple of weeks. Have you solved the resource_tracker error? I reproduced the error but only at the Whisper level and it was always because I ran a big model or a very long input, and it was always solved by using a smaller model or breaking the input into smaller chunks.


[Select] Fix incorrect selecting of first element

This PR reverts the implementation from #27299, as it was proven to be buggy (#34731), and fixes the root problem. When MenuList sets the initial highlight (by setting the tabIndex prop), it doesn't take into consideration if the element it wants to focus is indeed focusable. Non-focusable items include ListSubheaders and disabled MenuItems.
Detecting a disabled item is fairly easy - by checking its disabled prop. Skipping the ListSubheaders is more tricky. Checking if child.type === ListSubheader wouldn't work, as the header could be wrapped in a custom component. I ended up adding a static boolean field on a ListSubheader component, called muiSkipListHighlight. If the MenuList finds such a field, it does not consider the component when setting focus. The main drawback of this solution is that such a prop will have to be added to any custom wrapper components. If the PR is accepted, I'll add a proper note to the Select docs.
Fixes #34731

There is already a detection mechanism implemented that skips non focusable items in the list that seems to work reliably otherwise keyboard interaction wouldn't work correctly (see grouping in the docs demo). Wouldn't it be better to use the same detection here instead of introducing a new static prop that adds a fairly important implementation detail to all the implementers? The other one works out of the box without anyone thinking or doing anything about it. It just skips non focusable items. It still works if you disable some otherwise focusable MenuItem.
I don't think this PR should be merged. Not yet.


Improve PDF export

Motivation

At the moment, the PDF export feels a bit rudimentary and buggy.
Proposed Solution

[ ] Add cover page with city & integreat logos
[x] Visualize the hierarchy in the table of contents
[x] Fix font of headlines (should be raleway)
[ ] Fix font of mixed alphabets (e.g. links to Arabic pages in German content) - some kind of fallback-font
[ ] Fix images & icons in the content as well as line breaks:

Content
PDF

Alternatives

Additional Context

The Malte PDF should have the Malte Logo in the bottom right hand of the PDF, right?

The Malte PDF should have the Malte Logo in the bottom right hand of the PDF, right?

At the moment, we don't have the possibility to set individual logos other than the Integreat logo, but it's planned (see issue #1093).
Did the PDF export in WordPress have a Malte logo?

I don't remember whether it had a Malte Logo - I just found the Integreat Logo in the Malte PDF confusing...especially for people who only know Malte...
Does the individual logo issue include Kommunen logos? Bcs for Integreat it would be great if they could appear additionally to the Integreat Logo in the top right hand corner (or bottom left hand maybe?)

Regarding the Malte Logo I opened PR #1364 which handles all logos in the CMS, so as soon as this is merged, there will the Malte logo in the PDF footer.
And the individual region logos are already shown in the top right corner, they just have to be set in the region form.

@osmers the PR is now merged and released, so the Malte CMS is now styled in the Malte design which includes the logo in the footer of exported PDFs.

@timoludwig I guess the problems with the images and icons are related to our implementations, but our file migration. It seems a few static files are also linking to the old TUM-Server, which are not redirected on the test system. With new or updated images this is no longer an issue.
BUT we seem to have an issue with the handling of malformed HTML. As you can see in the picture some items are missing because there are some unnecessary HTML entities in the content which are only visible in the source code.
See:
`Meldebescheinigung, An- und Abmelden des Wohnsitzes
Aufenthaltstitel und Niederlassungserlaubnis

Verlängerung des Ankunftsnachweises

Aufenthaltsgestattung ausstellen und verlängern (Asyl)

Beantragung der Arbeitserlaubnis

Aufenthaltserlaubnis und Ausnahmegenehmigungen für Reisen
`

@svenseeberg @osmers As these are pure content issues: Should we handle them somehow in the implementation or is this something our users are supposed to fix by editing the content?

@timoludwig I guess the problems with the images and icons are related to our implementations, but our file migration. It seems a few static files are also linking to the old TUM-Server, which are not redirected on the test system. With new or updated images this is no longer an issue.

What do you mean by files linking to the old TUM-server? We also have this problem on Malte which never was on the servers of TUM afaik, so I don't think this has anything to do with it. What you probably mean are the old wordpress-styled image paths with /wp-content/uploads/, but this is totally expected (since we don't want to run a search/replace on the whole content but rather solve this by apache redirects which support the legacy urls). Our PDF library throws an error because it thinks that /wp-content/uploads/ is not in the static directory /static/ and it thinks that something suspicious is going on, so we probably have to implement a whitelist or something in the link_callback() function.

@svenseeberg @osmers As these are pure content issues: Should we handle them somehow in the implementation or is this something our users are supposed to fix by editing the content?

In my opinion, this should be fixed in the content (and proper <ul>/<li> elements should be used insted of literal * characters).

Okay, I see. I found some Sources linking to the "vkcmar..." URL that weren't working, but right: If the /wp-content/uploads URLs aren't working there seems to be another issue.
@timoludwig Regarding the other issue. Unfortunately Markdown doesn't support raw HTML, but as you can see in the Screenshot we also have this issue with the div inside the list items that are causing troubles. The * are another troubling problem :see_no_evil:

Okay, I see, but this Issue is from 2013 :see_no_evil: We might want to fill a new one :D

Okay, I see, but this Issue is from 2013 see_no_evil We might want to fill a new one :D

Yes, or just update the existing issue with a very detailed explanation how to reproduce the problem and what the expected output would be, probably the original issue was not tackled because it's too vague.

* [ ]  ~Add cover page with city & integreat logos~ polish table of contents

Is this still current? ToC looks fine, what changes are intended?

* [ ]  Fix font of mixed alphabets (e.g. links to Arabic pages in German content) - some kind of fallback-font

Is this still current? Latin characters in arabic text appear to have the font we also use in latin PDFs:

* [ ]  warning **High prio:** Fix images & icons in the content as well as line breaks:

Unable to reproduce. Would be great to get an example of a page where this is happening.

I created a new Issue for it in the upstream repository (see https://github.com/xhtml2pdf/xhtml2pdf/issues/611)
Should be fixed. Also created a PR upstream.

Is this still current? ToC looks fine, what changes are intended?

No, I think the service team does not yet know what they want here :wink:

Is this still current? Latin characters in arabic text appear to have the font we also use in latin PDFs:

I think it's the other way round: Arabic letters in e.g. German pages are not working, e.g.:

Editor
PDF

Unable to reproduce. Would be great to get an example of a page where this is happening.

I took the screenshot from here:
https://malteapp.de/schwerin/de/umgebung/beratungsangebote/migrationsberatung
And the resulting PDF is:
https://cms.malteapp.de/pdf/62a5949595/Malte - Deutsch - Migrationsberatung.pdf
Could also be an infrastructure problem with some broken media links or similar, didn't have time yet to look into it.

Should be fixed. Also created a PR upstream.

Awesome, thanks a lot! :rocket:

Is something keeping us from just using DejaVu for LTR as well as RTL content?
Either Open Sans is providing empty characters to the arabic unicode range, or xhtml2pdf does not support fallback fonts for unknown unicode characters. Since it definitely does not support specifying a unicode-range inside @font-face, using a font supporting arabic out of the box seems the easiest solution.

Probably this is due to the /wp-content/uploads/ media links which work on web because we created an Apache redirect for it, but it does not work in the PDF library, because it thinks the files are not in the static directory.

Yes, looks like it. Is there some location mapping that works for all of these files? Don't think I have access to the Apache config. Alternatively I can leave this issue for someone who has access.

Yes, looks like it. Is there some location mapping that works for all of these files? Don't think I have access to the Apache config. Alternatively I can leave this issue for someone who has access.
Something appears to be wrong with the icons themselves, at least in regards to xhtml2pdf.
Try manually downloading https://cms.malteapp.de/schwerin/wp-content/uploads/sites/124/2020/07/phone.png, then uploading it to the CMS Media Library and insert it into a page. Same issue occurs.
Open the file in an image editor, reexport, add to Media Library again, insert into page, bug is gone.
Unless we want to use PIL ot something to open and reexport every single image being passed to link_callback(), I think this issue should be fixed in content, not by us.

Something appears to be wrong with the icons themselves, at least in regards to xhtml2pdf.
Try manually downloading https://cms.malteapp.de/schwerin/wp-content/uploads/sites/124/2020/07/phone.png, then uploading it to the CMS Media Library and insert it into a page. Same issue occurs.
Open the file in an image editor, reexport, add to Media Library again, insert into page, bug is gone.
Unless we want to use PIL or something to open and reexport every single image being passed to link_callback(), I think this issue should be fixed in content, not by us.

Ohh, interesting, thanks for figuring that out. Ok, then sorry for bothering you, yes this should be fixed in the content.

Is something keeping us from just using DejaVu for LTR as well as RTL content?
Either Open Sans is providing empty characters to the arabic unicode range, or xhtml2pdf does not support fallback fonts for unknown unicode characters. Since it definitely does not support specifying a unicode-range inside @font-face, using a font supporting arabic out of the box seems the easiest solution.

In an ideal world, the PDF looks exactly like the content in the apps, which use Raleway for headings and open sans for the content (see Fonts for Alphabets). However, it's more important that text is actually readable, so if using a different font is the only option, I'd go with it.
xhtml2pdf itself is very pessimistic about custom fonts:

Right now it seems like right-to-left support isn’t working while using a default font-family like p { font-family: Times-Roman }. We’re working on fixing this. However, it works by using the @font-face tag in the CSS definition and defining a custom font. Therefore you need the specified font file. “MarkaziText” for example seems to work. Other fonts might work as well but haven’t been tested.

— https://xhtml2pdf.readthedocs.io/en/latest/reference.html#arabic-hebrew-persian-etc-fonts-support


Please do not use @import

http://stackoverflow.com/questions/32555710/xcode-modules-enabled-in-settings-but-still-cant-use-import

Closed as fixed with commit 4e49b896aadb4305fc87bf78466edc56bab0a8ad.

Not sure, but I think you can fix it this way
#if __has_feature(modules)
    @import Foundation;
#else
    #import <Foundation/Foundation.h>
#endif

Thanks for your contribution @Emailrus.
Would you mind doing some testing and if it works correctly submitting a pull request?

Well, I don't have any Objective-C++ projects, I just saw this pattern used in Mogenerator utility


Secret.data can be sent to Kubernetes

Without the change the fieldname _data_ will be translated to data_ which
is not a valid field in the Kubernetes Secret resource.
Probably this should be fixed in the generator as well.

@loewenstein great. I'll merge this. I've also patched the codegen. Thanks!


emulator and source code

How would I add my source code to view like your examples? And I see that you are using a linker map file and not just a regular map file? How compatible is it with the map file generated from cl65?
I have successfully compiled (and run?) a C program + Asm using cc65. I am not sure what its doing now, since I can only see a portion of raw disassembled instructions.
Thanks!

Hi. I use ACME assembler, so currently only support their report file format. I'll take a look at cc65 and see if I can support it.

Thank you.

ari26squared, what target system did you use when you compiled your code to run on the emulator?


feat(crypto): add FieldMerkleTreeMMCS

Description
This PR implements FieldMerkleTreeMMCS.

LGTM. Please fix lint error before merging.

Since this error happens in the code from chromium, to minimize an effort for maintenance, it's better not to fix this!


containerd.service fails

Host:
Linux ip-10-72-161-211 4.9.9-coreos-r1 #1 SMP Tue Feb 28 00:06:10 UTC 2017 x86_64 Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz GenuineIntel GNU/Linux

containerd version 0.2.4 commit: v0.2.5

docker version
 docker version
Client:
 Version:      1.12.6
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   d5236f0
 Built:        Tue Feb 28 00:07:14 2017
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.6
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   d5236f0
 Built:        Tue Feb 28 00:07:14 2017
 OS/Arch:      linux/amd64

$ systemctl status containerd
● containerd.service - Containerd Container Daemon
   Loaded: loaded (/usr/lib/systemd/system/containerd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-05-01 21:24:29 UTC; 15min ago
     Docs: http://github.com/docker/containerd
  Process: 2335 ExecStart=/usr/bin/containerd --listen unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim /usr/bin/containerd-shim --state-dir /var/run/docker/libcontainerd/containerd --runtime /u
 Main PID: 2335 (code=exited, status=2)
    Tasks: 0
   Memory: 58.5M
      CPU: 4h 11min 28.214s
   CGroup: /system.slice/containerd.service

May 01 21:24:29 ip-10-72-161-211 containerd[2335]: runtime.mcall(0x0)
May 01 21:24:29 ip-10-72-161-211 containerd[2335]:         /usr/lib/go1.6/src/runtime/asm_amd64.s:233 +0x5b
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Killing process 115751 (containerd-shim) with signal SIGKILL.
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Killing process 100456 (containerd-shim) with signal SIGKILL.
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Killing process 103064 (containerd-shim) with signal SIGKILL.
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Killing process 115632 (containerd-shim) with signal SIGKILL.
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Killing process 115688 (containerd-shim) with signal SIGKILL.
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Killing process 115751 (containerd-shim) with signal SIGKILL.
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Unit entered failed state.
May 01 21:24:29 ip-10-72-161-211 systemd[1]: containerd.service: Failed with result 'exit-code'.

docker service:
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─50-need-flannel.conf, 60-add-docker-opts.conf
   Active: active (running) since Sun 2017-04-30 19:09:32 UTC; 1 day 2h ago
     Docs: http://docs.docker.com
 Main PID: 2427 (dockerd)
    Tasks: 110
   Memory: 7.3G
      CPU: 1h 6min 9.526s
   CGroup: /system.slice/docker.service
           └─2427 dockerd --host=fd:// --containerd=/var/run/docker/libcontainerd/docker-containerd.sock --log-driver=json-file --log-opt max-size=100m --log-opt max-file=5 --live-restore --bip=<IP_ADDRESS>/24 --mtu

May 01 20:01:15 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:01:15.567636324Z" level=error msg="Handler for GET /containers/5821f6550549fc4eebb872960c28f211330bbf24dfbe5c21650c3eac2176e01e/json returned er
May 01 20:01:15 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:01:15.567802283Z" level=error msg="Handler for GET /containers/f2c0610999b415264c05bf3a5401fd6d0698cd59c750226c022da3be5bbe2227/json returned er
May 01 20:01:15 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:01:15.567894465Z" level=error msg="Handler for GET /containers/1ee97b9bbef32f6fcd10013bcf9bfe2ca6b647d12fb4d03b798bb89021915d27/json returned er
May 01 20:01:15 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:01:15.567996699Z" level=error msg="Handler for GET /containers/0d2629ff32b6c2052c9bada3b5557306af49763e44eca15119168ebbae5c5a72/json returned er
May 01 20:01:15 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:01:15.568076393Z" level=error msg="Handler for GET /containers/893a71a5697b7f0f4cceac007f44ec53b17a4fe56edff22d50317bea96718a64/json returned er
May 01 20:01:15 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:01:15.568442504Z" level=error msg="Handler for GET /containers/e3da6085d515a62dd05cc76812e73a28a250a11cbd2fbb7bf0dc8080175f112a/json returned er
May 01 20:12:26 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:12:26.495566310Z" level=error msg="Handler for GET /v1.24/images/hbodp.artifactoryonline.com/medusa:<IP_ADDRESS>c3eba/json returned error: No such
May 01 20:12:26 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:12:26.562973477Z" level=error msg="Error trying v2 registry: error parsing HTTP 404 response body: invalid character '<' looking for beginning o
May 01 20:12:26 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T20:12:26.563009015Z" level=error msg="Attempting next endpoint for pull after error: error parsing HTTP 404 response body: invalid character '<' lo
May 01 21:24:29 ip-10-72-161-211 dockerd[2427]: time="2017-05-01T21:24:29.424655995Z" level=error msg="libcontainerd: failed to receive event from containerd: rpc error: code = 13 desc = transport is closing"

Impact:
This results in docker ps hanging.
Work around:
Restarting containerd via systemctl restart containerd restarts docker and ALL running containers.

We would need more of the logs for containerd to investigate this issue, the first 2 lines you provided hint towards a panic, but the rest of it is missing.
Note: There's no official containerd package hence no service file, this is probably provided to you by a 3rd party and the cause of the issue.
I would recommend switching to the official docker packages.

@mlaventure this is the same issue https://github.com/coreos/bugs/issues/1909

@ichekrygin it does look like that coreos/bugs bug.  A newer go version should help as that is what most containerd's are built on.  I'll close this issue here and you can keep tracking on the coreos issue.  Looks to be build and configuration related.
Thanks!

systemctl restart containerd saved my time!

As of 2022-12-08, I had this error while installing docker
240008 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
and issuing systemctl restart containerd and then apt-get install -f resolved my problem


Remove menv

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

10 of 11 (90.91%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 80.992%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

workflowparsers/elastic/parser.py
4
5
80.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
3396

Relevant Lines:
4193

💛  - Coveralls


python 3.5 compatebility issue

if you run the two_layer_fc.py in python 3.5 it will throw an error as
Traceback (most recent call last):
File "D:/workspace/python_dir/tf-image-recognition/run_fc_model.py", line 66, in
batch = next(batches)
File "D:\workspace\python_dir\tf-image-recognition\data_helpers.py", line 71, in gen_batch
index = len(data)
TypeError: len() of unsized object
Please ignore the line number coz I've changed the code a little bit.
And the error says the object created by zip() will no longer be 'Sized' so len() could not read its actual length.
So I modified a little at
batches = data_helpers.gen_batch(list(zipped_data), FLAGS.batch_size, FLAGS.max_steps)
That will do the trick.
Really liked your blog, I've read about both of the How to Build a Simple Image Recognition System with TensorFlow  series, those have been of great help.
Hope to see more.
Thanks

Thank you!
I've implemented your bugfix. Also modified a few other lines to make the code compatible with Python 3.5.
Thanks a lot for the feedback! Hearing that my stuff is useful to others makes me very happy.


Learning in stages?

Hello, your layout seems very promising, but is there any guide on stages of learning similar to the Minimak or Tarmak layouts? I feel like it could certainly help me get a feel for this layout better.
Thanks so much!

I haven't created a training guide, but that is a very nice idea!  Specialized keyboards like the Ergodox and Moonlander provide a live training tool for custom layouts: https://blog.zsa.io/1912-live-training/

@binarybottle do you have an Engram layout for the Moonlander in the community profiles?

I have an Engram layout implementation for the ZSA Ergodox EZ here: see layer 9 (shift) and layers 10-11 (left/right hand shift).
As for learning in stages, the keybr typing tutor introduces a few new keys at a time, only adding more as you gain proficiency.

@sunaku it looks like keybr only has Colemak, Dvorak, and QWERTY. Can I load Engram somehow?

The way to work keybr is to print out a daigram of engram and tape it to
your monitor, haha... And hide or ignore the on-screen assist.
But you can use this site to make custom layouts/lessons too
https://gnusenpai.github.io/colemakclub/
On Thu, Feb 9, 2023, 10:25 AM Spencer Thayer @.***>
wrote:

@sunaku https://github.com/sunaku it looks like keybr only has Colemak,
Dvorak, and QWERTY. Can I load Engram somehow?
—
Reply to this email directly, view it on GitHub
https://github.com/binarybottle/engram/issues/53#issuecomment-1424465840,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUHHNUGANVMAFUS2LRB4YMLWWULBDANCNFSM6AAAAAAUV4UAAE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Another option is Type Fu, which has a lot of options for gradually introducing keys and complexity. It also allows you add your own custom keyboard layout if would like to get familiar with the engram layout before committing to it full time.


HDDS-4899. Add SCM HA to Chaos tests.

What changes were proposed in this pull request?
This jira adds SCM HA to Chaos tests
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4899
How was this patch tested?
Added a new chaos test

Please hold on the merge util we finish merging master back to 2823. Thanks!

Thanks @mukul1987 for the contribution.


Create SECURITY contact and reporting guideline

Setup the SECURITY.md file for the provenance blockchain project.  Ensure that issue templates correctly reference the security reporting document/contacts.  Reference upstream security reporting process (COSMOS-SDK) as required.

@rjmarkel it seems like this work is done.  Was there something else you planned to add or can this be closed out?

Nothing else - this can be closed out.

Complete.


date element bug or question

Hi
Thank you for the great plugin.
Finally, I can insert user input data into my db, but when I added date element, I got a KeyError in Flask (KeyError: 'created_At') and "An error occured updating values"
I'm using SQLite and Python Flask.  I tested two data type (TEXT, BLOB)

Thank you so much.
I'm not sure, but it might be sqlite problem related to data type.
Anyway, I decided to save date on the server side.
Thank you for the help and wonderful plugin!

@farmboy-dev Do you mind sharing your Flask + SqlLite code to add to the documentation?


Add oldest strategy; add foo-any strategies…

Add oldest strategy; add foo-any strategies …
… where you don't care which file to keep
When joining disks after copying some files from old to new, an interrupted
copy may leave newer and broken files, thus add "oldest" strategy
If you want to keep one of the (e.g.) newest files, but all files are
equally new, just keep one of them by writing "-d newest-any". Same applies
to largest and oldest selection strategies

PS, at first I misunderstood the "skipped" lines. I'm not sure anymore weather to keep them because they indicate a problem and only skip the "ignored" lines.

The '-any' is a little confusing to me. The idea is to safeguard against files being different but with the same mtime or size. If you don't care which is selected when choosing 'newest' or 'largest' then you should/could just rerun with 'manual' or 'mostfreespace`.
I think I'd prefer a 'safe' mode or something. I'm about to make some tweaks and I'll look at adding it.

My intention is to not manually look at 20 000 files, so manual isn't applicable (I merged two NAS servers which were partially replicated).
Also I don't randomly want to delete a file unless they have the same mtime - in that case I know it's a successful rsync or mv. In that case I can safely delete all but one of these. If there is a newer file, the newer file is a partial copy and I want to delete that one.
Thus I need -d oldest-any to clean up my mess.
Maybe you can think of a better way to implement this. Combining mostfreespace into the algorithm seems nice.
BUG: Also (by reading your code), your protective algorithm fails if there are three files, two being the same age and one older file (with -d newest); then both new files should be kept and possibly the old one discarded, instead one of the newest files is kept. Maybe I'll do a decent bug report tomorrow.

Thanks for the report but this is a work branch. I'm sure there are bugs as I'm not done working on it. It's random checkins. Rather than PRs it'd be better if you opened tickets indicating what functionality you're looking for so that people aren't duplicating effort or working on things in contrary ways.

I'll push my changes later today then take a look to see if they do what you want.

BTW... I don't see a bug. You are interpreting it's purpose differently than intended. It's to safeguard from situations where all files have the same timestamp or size but the files are different. You'd ignore 'different-*' and do strict newest or whichever. It'd tell you which files need manual attention. It's not for keeping all newest files. If you wanted that you'd use dup.

No, I'm referring to the intended case where you'd have several "best" files to keep, but they might be different.
Case A: echo old > /mnt/3/foo; echo foo > /mnt/1/foo; rsync -a /mnt/1/foo /mnt/2/foo
Case B: echo foo > /mnt/1/foo; rsync -a /mnt/1/foo /mnt/2/foo
In both cases, /mnt/1/foo and /mnt/2/foo should be kept, but in case A, one of them is deleted.

That's beyond what I want to provide with this simple tool. You're getting into a realm esoteric enough to justify people writing their own tool. I don't want to make a whole language for people to have to say "keep 2 of this and 1 of that and delete the rest" or similarly complex.
If you want to copy files across drives use dup. If you really are keeping different files across drives put them in different directories. There is no point in keeping 5 different files with the same path on 5 drives then merging them.

About my use case:
There is nothing esoteric about my use case, it might be quite common for newly created mergerfs to have duplicate files, and dedup should be easily able to handle that. In fact I just needed to remove some lines to make it happen.
I agree that "foo-any" might not the best name, but I'm not a native speaker. It's a useful option to have if you need dedup in the first place.

About the bug:
Your intention of skipping these files is to prevent data loss in case of having two "newest" files with different content, and you say it's an important security feature, so people will depend on that working correctly. Therefore it should, and it's an easy fix: Just keep all the newest files, and if there is none left to remove, skip it.
def newest_dedup(stats):
    stats.sort(key=lambda stat: stat[1].st_mtime)
    #remove files with same mtime as the newest
    while (len(stats) > 1) and (stats[-1][1].st_mtime == stats[-2][1].st_mtime):
        newest = stats[-1]
        stats.remove(newest)
    #also remove the newest
    newest = stats[-1]
    stats.remove(newest)
    #empty list?
    if len(stats) < 1:
        del stats[:]

def oldest_dedup(stats):
    stats.sort(key=lambda stat: -stat[1].st_mtime)
    #remove files with same mtime as the oldest
    while (len(stats) > 1) and (stats[-1][1].st_mtime == stats[-2][1].st_mtime):
        oldest = stats[-1]
        stats.remove(oldest)
    #also remove the oldest
    oldest = stats[-1]
    stats.remove(oldest)
    #empty list?
    if len(stats) < 1:
        del stats[:]

Yes, it does handle combining drives. That's it's purpose. Deduping files across branches. What is esoteric is your case A. Keeping multiple different files. Overlapping files ideally should not be different. Dedup is intended to clean them up. Dup is for providing redundancy. I don't see why ou'd have multiple files with different data you'd want to keep with the same relative path.
It's not a bug. It's doing as it was designed. Remove all but the newest file. If the algo can't figure out "newest"  because there are ties then skip it so a human can look at it. You are suggesting something different. Different != bug.
What exactly do you want to happen? What files should it keep?

https://raw.githubusercontent.com/trapexit/mergerfs-tools/dedup/src/mergerfs.dedup
This version has oldest which is what you seem to want. It select 1 file to keep after sorting by mtime. It has 'strict' mode which will skip a set of files if they all have the same timestamp or size.

Yes (by reading the code), it does what I'd expect by reading the help files and looks like a sane interface.
I spotted one more possible improvement, "ignore" might take multiple arguments (e.g. short-hash, same-size might be a sane combination), but if you append the size to the hash, it would silently do a sane thing.
Also I spotted a logic error in the hash function. `hash_file_1M(..., 2048,1024) will silently return a constant hash, and it will hash $blocksize less than requested. While trying to explain it, I created the next push - that was easier for me.

same-size is already checked before doing a hash. Hashes will (practically) never be the same if files are different sizes.

Yes, I see the error but the function is temporary. I just didn't feel like finishing my final version before pushing it. The intent is to check more than 1 location in the file.


Peer Dependencies Warning

Why does it needs "react": "^15.6.1" when in dev dependencies it could work with 16?
I think that migration to 16 is very important due 15's license issues.
Thanks!

Definitely! I'll look into it soon to see if there is any breaking issue, but PRs are welcome if you have time to look into it

Archiving the repo, closing open issues.


Spurious temporaries break non-copyable types

If I have a C++ API such as the following:
cdef extern from 'arrow/util/compression.h' namespace 'arrow' nogil:
    cdef cppclass CCodec" arrow::util::Codec":
        @staticmethod
        CResult[unique_ptr[CCodec]] Create(CompressionType codec)

cdef extern from "arrow/result.h" namespace "arrow" nogil:
    cdef cppclass CResult "arrow::Result"[T]:
        pass

cdef extern from "arrow/python/common.h" namespace "arrow::py" nogil:
    T GetResultValue[T](CResult[T]) except *

Then the following Cython code:
    cdef:
        CompressionType compression_type = ...
        unique_ptr[CCodec] c_codec
    c_codec = GetResultValue(CCodec.Create(compression_type))

creates this C++ code:
  __pyx_t_6 = arrow::py::GetResultValue<std::unique_ptr< arrow::util::Codec> >( arrow::util::Codec::Create(__pyx_v_compression_type)); if (unlikely(PyErr_Occurred())) __PYX_ERR(6, 1203, __pyx_L1_error)
  __pyx_v_codec = __pyx_t_6;

which fails compiling because it tries to copy a unique_ptr.
Cython should instead move the temporary:
  __pyx_t_6 = arrow::py::GetResultValue<std::unique_ptr< arrow::util::Codec> >( arrow::util::Codec::Create(__pyx_v_compression_type)); if (unlikely(PyErr_Occurred())) __PYX_ERR(6, 1203, __pyx_L1_error)
  __pyx_v_codec = std::move(__pyx_t_6);

(I can add the move() call explicitly in the Cython source, but it's a bit surprising, and also it's also inconvenient because of https://github.com/cython/cython/issues/2169)

I believe this is a bug in your code: except * means "can raise a Python exception with any return value". Since you wouldn't expect __pyx_v_codec to be assigned if the function raises a Python exception then the code generated is correct.
You want except + which means "can raise a C++ exception" - https://cython.readthedocs.io/en/latest/src/userguide/wrapping_CPlusPlus.html#exceptions

You want except + which means "can raise a C++ exception"

No, I do mean a Python exception.

Since you wouldn't expect __pyx_v_codec to be assigned if the function raises a Python exception then the code generated is correct.

I don't see how that relates. Even if it's not assigned to, then you still can std::move(it).
Moreover, in the case where the object is copyable, the copying may be expensive, while moving is cheap, so moving is better in every case.

OK sorry I misunderstood. The existence of the temporary is right, because it's matching the following Python behaviour:
def f():
    raise RuntimeError()

def g():
    try:
        a = f()
    except:
        # "a" shouldn't be assigned here

If the temporary didn't exist then a would be assigned directly exception or not and the behaviour would be incorrect. I think we both agree on this bit, but just making sure.
I'm not 100% sure what C++ standard Cython targets as a baseline. I'm pretty sure it still targets C89, so on that basis I'd assume it aims for the earliest possible standard, and that std::move might not be acceptable for generated code. But I don't know this for certain so I'll stop commenting now.


[stable magento] fix random password generator to include a number

Magento deployment fails of the password does not contain a number. When a
random password is generated, randAlphaNum does not gaurantee that the string
will contain a number.
This commit adds a helper function named password that returns the
user defined password if it exists or else generates a random password
with a random number appended to it.

/ok-to-test


Generating "[object Object]" for placeholders...

I'm hitting a weird bug w/ html-loader, possibly related to webpack 5?  Any ideas/suggestions?
Thanks!
-Isaac
Test repo
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="./index.scss" />
  </head>
  <body>
    <script src="./index.js" />
    Hio
  </body>
</html>

output:
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="[object Object]" />
  </head>
  <body>
    <script src="[object Object]" />
    Hio
  </body>
</html>

Hello!
I am experimenting the same issue in this repo.
Related: https://github.com/webpack-contrib/html-loader/issues/329

@terox I had two issues in my package.

extract-loader does NOT handle script src properly.  Solution: use absolute links to make html-loader ignore them, or turn them off in html-loader options
You cannot combine extract-loader with minicssplugin.

Here's my current config, which works. https://gist.github.com/isaacl/64f689595ad5fb959b0565cc50514ae2
I also wrote this hacky script to fix the script tag manually post-build: https://gist.github.com/isaacl/7f8f3855c151f7fb21d8213b9cbde1ac

@isaacl I updated my master branch with a couple of useful PR from the main project that fix this issue and alises: https://github.com/terox/extract-loader

@isaacl I updated my master branch with a couple of useful PR from the main project that fix this issue and alises: https://github.com/terox/extract-loader


Global option --no-warnings to disable all warnings

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request

Command
All

Versions
node --version: v9.2.0
npm --version: 5.8.0
ng --version: 6.0.8
OS: Windows 10 x64
Repro steps
PowerShell
$defaultProject = ng config defaultProject
$defaultProject

Bash
OUTPUT="$(ng config defaultProject)"
echo "${OUTPUT}"

Both variables now contains the value :
Your global Angular CLI version (6.1.1) is greater than your local
version (6.0.8). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
name-of-the-default-project

Desired functionality
A global option in all Angular CLI commands to disable warnings altogether, in order to make it easier to retrieve the output generated by the command inside a script, without any pollution from warnings.

We should output warnings to the STDERR.


Don't fail make clean if hex is not installed

@mix clean --deps apparently requires hex to be installed. If it's not there, it stops and prompts the user to install it. If configure hasn't run yet, as in the case when building our deb package from the dist tarball, package build fails.
This was mitigated in couchdb-pkg by adding hex to /home/jenkins/.mix for CI images, but let's also handle it better in the Makefile.
Makefile.win already has || true added to it so no need to updated it.

Thanks for figuring out why this was failing and how to properly fix it Nick!

@jaydoane no problem at all. It was a tricky one as it was failing with dist tarball on my docker instance. I remember we tried to use the full CI build to validate this case and it passed there. But I think in the CI jenkins instance we have a mounted shared mix archive cache so it was finding the hex package but on my docker it couldn't.


Can't build project with v1.5.1 – Agent is not exported

Version
@nuxtjs/algolia: v1.5.1
nuxt: v3.0.0
Reproduction Link
https://stackblitz.com/github/michaelvcolianna/chegg-algolia-test
Steps to reproduce
Created a page using the "client side" example in the documentation. At first, used the API key & app ID of my index, then reverted to using the test keys provided in the documentation. This worked in dev mode. Pushed sample page and Netlify build failed. Confirmed building also fails locally and on StackBlitz.
Attempted the fix outlined in https://github.com/nuxt-modules/algolia/issues/119#issuecomment-1384190558 but that also did not change the result.
What is Expected?
Project will build.
What is actually happening?
Building (both build and generate commands) results in an error:
ERROR  'Agent' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>file: /home/projects/nbwiznlol.github/node_modules/@algolia/requester-node-http/dist/requester-node-http.esm.js:2:9
1: import * as http from 'http';
2: import { Agent } from 'http';
            ^
3: import * as https from 'https';
4: import { Agent as Agent$1 } from 'https';

 ERROR  'Agent' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>
Please let me know if I can provide any further information.

I can confirm that on version 3.0.0 of Nuxt this does not work.
I tested the newer versions of nuxt and there it works correctly.
Can you upgrade core nuxt package?

Ah, apologies if that was something I missed in the prior ticket!
Yes updating to latest Nuxt allows the project to build. Whether that breaks any other things remains to be seen (and isn't relevant anyway) but for purposes of the reported issue, Nuxt v3.3.2 works as intended without the Agent is not exported error.
Thanks!

Awesome,
I believe that there was some change in the newer version of the core Nuxt that was making it fail.
Glad that it works right now :)
If you will have any other issues, do not hesitate to create an issue :)


Add MPNowPlayingInfoCenter and MPRemoteCommandCenter capabilities

Please add support for MPNowPlayingInfoCenter on iOS and MPRemoteCommandCenter on Android

We already offer support for MPNowPlayingInfoCenter on iOS.

Closing in favor of https://github.com/luanpotter/audioplayers/issues/654

So how can I set that information for my player using audio player @luanpotter ?


Fix typos

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The original readme file with the typos was rewritten and the section with the typos was removed. Therefore, closing this PR since it's no longer applicable.


How to use bert embeding in Java

Hi~I would like to use bert embending in Java,when I convert the model to .pb,I can obtain the embeding,but the maxmum of the sentence is 128 ,while I would like to modify the maxmum of sentence as 30 . Could you tell me how to solve this problem ?

Hi, how do you load bert in java, having the .pb ? Thanks.

I try to use .pb ,but I cannot change the max_length of the sentence.

I found https://github.com/robrua/easy-bert . This code is much clearer. I think @256785  that you cannot change it, is the one that your model has been trained with in the first place.

Yes，I have read this as well.Maybe I cannot change it.But when I use the python script of extract the features of sentence ,the parms of max_length can change . So I guess I ignore something . Besides,when I use the easy_bert , the cost time is too long,..


[tutorial] do-while loop

Description of the tutorial

What is a do...while loop
How it is different from while loop
Few basic questions on do...while loop

Do you want to be assigned to work on this?
(mark [x])

[x] YES
[ ] NO

Optional: Any additional info you want to add

[x] I've read the CONTRIBUTING.md

@sabderemane could you please assign me for this issue and also label this issue as "good-first" and "hacktoberfest"?

You're assigned now @Parth-ops !

Hey @Parth-ops , I would like to contribute in this task, Could you assign me in this please.. I will give my best

@Saurav013 I am already working on this and have already submitted a PR.


Cannot parse EJS Trim-mode ending tag -%>

Cannot parse -%> tag (trim-mode ending tag):

When change to %> it works:

This is already fixed in the upcoming Release 1.4.
It apparently was some fix in CodeMirror we got for free in our merge.


Figure out way to test multiple Angular versions without having to use different branches

We should be able to have subfolders with each Angular version.
Inside each version folder there is a package.json and it's own tsConfig file which points to the library files.
A npm command should be run to execute all tests.
Is there some tool out there that could help?

The correct solution would be with Docker, however his isn't an issue, at least for Angular 19 since it will introduce changes that won't be easily compatible with older versions (debugName).


Add translation: Japanese

Provide the name and the two-letter code of the new language
Japanese, ja
Steps to add the translation

Add a folder public/_locales/ja/
Copy the file public/_locales/en/messages.json to your new folder
Translate all values of that file (please leave the keys untouched!) and create a pull request

I'll do it.


Add tests

A few more things we can add to check_OpenSpecy that I think would break most of the functions if they weren't true.

@zsteinmetz I think I want the check_OpenSpecy function to only return TRUE or FALSE plus warning messages. I am currently trying to implement it in the Open Specy app and its really difficult to catch warnings, messages, and errors and pass them to messages. Plus how we have it currently set up to return FALSE even if it is a message makes me think the primary use will to return the logical in for loops or other operations then get warnings if there are issues. Going to implement it now but let me know if you want me to revert if you think it should be structured differently.

@zsteinmetz I think I want the check_OpenSpecy function to only return TRUE or FALSE plus warning messages. I am currently trying to implement it in the Open Specy app and its really difficult to catch warnings, messages, and errors and pass them to messages. Plus how we have it currently set up to return FALSE even if it is a message makes me think the primary use will to return the logical in for loops or other operations then get warnings if there are issues. Other thing that is nice about this is all the warning messages are printed so if someone has multiple things wrong they can fix them all at once. Going to implement it now but let me know if you want me to revert if you think it should be structured differently.

Sounds good to me :+1:

Should we go for v1.0.3 soon so that you can add those changes to the Shiny app?

Should we go for v1.0.3 soon so that you can add those changes to the Shiny app?

Yeah, I think I would like to go for more frequent deployment updates than previously, I think for the last two years we were stuck because we overhauled the framework so much didn't want to break everything for everyone but now all the changes are pretty minor. Would be nice to get these changes into the shiny app for sure.


question: does the pipeline stop after the first successful repair attempt?

For weeks, we mostly have kali patches from NopolAllTests.
This is boring and surprising because the other tools should also find some patches, starting with NpeFix and also with the kali patches of jGenProg.
Why do we have no jGenProg-kali patches?
Does the pipeline stop after the first successful repair attempt?
(anyway, we may disable NopolAllTests for now to debug the other tools)

This might be my fault. The current configuration only uses NopolAllTests, AstorJMut and NPEFix. These values are the default in the config and I had for some reason assumed that these were the tools that you and Simon had decided upon using or something of that nature.


fix(openai): don't set openai chat completion seed=0 by default

It seems openai now supports seeds for reproducible responses. The code before this commit sets the openai chatcompletion seed to 0 by default resulting in repeated tests always having the same outcome. I'm pretty new to promptfoo but I'm guessing that is not intentional when using the --repeat cli option for instance. It might be due to the fact that seeds are in beta at openai and their behaviour has changed. see https://platform.openai.com/docs/api-reference/chat/create#chat-create-seed
The patch suggested makes not providing a seed value work as expected (non-deterministic outcome). But I did not dive very deep into the code to check if it might break anything. I'm opening this pull request just to report.

Thank you @Sasja!


Post Processing (Tonemapping + Color Correction)

Implements tonemapping and color correction!
Also has some corrections to the sky shader.
KNOWN ISSUES:

Corrupted LUT on specific maps. Known maps include cs_office and most hlvr maps. No clue why this is happening, this is the main thing to investigate and solve.
Viewmodes are WIP

The code isn't fully cleaned up, and it's not ready to be merged into master yet. There's still some things I need to take care of. The main purpose of this pull request (currently) is so others can look into the corrupted LUT issue, which is completely baffling me.

Add a checkbox to disable color correction / post processing.

The vtex needs to be added as embedded resource here: https://github.com/ValveResourceFormat/ValveResourceFormat/blob/0486309021e6e3c875b42c94cc34d4598542754f/GUI/GUI.csproj#L41