Simpler fuzzy matching

The matching algorithm in searcher should be simplified: the matched substrings should not skip any letters (we should just try to match the beginning of the string) except underscores.
For example, for pattern foo we should match the following:

foo
foo_bar
fo_obar
But those strings (which are currently matched) should no longer be considered matched
bar_foo
fo_baro

Hmm, why bar_foo should not be matched? foo is a valid beginning of a word there. If I have a function to_string, I want it to be found when writing string I think.

In some meeting's notes I have an info we want to show greyed-out remainder of the text when selected suggestion. How could it work with patterns starting in the middle of the code?

Regarding your question, @farmaazon, I think we will not show this greyed out thing at all. No fuzzy searcher does it, probably exactly because of this reason.
Fuzzy matching rules
So, to sum up the design:

All hints to the fuzzy matching should be provided in the Enso syntax form, e.g. data.read_file (I'm using lowercase here as we are changing the casing in Enso to lowercase, but upper-case might appear for now in this list, but fuzzy matching should be case-insensitive). These things will be displayed in the component browser in a nicer way, e.g. data read file.
When user types . or _ it should match the dot or underscore as is. However, any non-zero repetition of space should match both dot and underscore.
User input should be interpreted as any sequence of word prefixes, where by "word" we understand entries split by . and _ and the first number in a number sequence. For example, to match data.read_file21, the words are "data", "read", "file", and "21", and thus user can type darefi21, but not daredfi21, as "red" is not a prefix of any of the words. However, user can also type data.re.
A pretty important thing here though is that when typing dot explicitly, fuzzy matching should not work. So typing da.re should not match data.read. Explicit dots should be interpreted literally, always.
Explicit underscores, on the other hand, should always be interpreted as word beginning.

Scoring
We need to work on scoring here as well. This will probably be adjusted on the go, but there are a few rules we know already:

Matching an earlier word should give better scoring than later word. For example, for input dre should give bigger score for data read then for foo_dre (like in IntelliJ).
However, the point 1 makes it a little bit tricky. The thing is that the part after the last dot is most important. So for example, typing read should match data.read_file better than retention.advertising (The hints will have dots only in case of static methods).
No matter what is matched, typing exact next letters of the match should never change a match. This should be somehow "guaranteed" by the algorithm design. For example if the user typed foo_b and the best match is foo_bar, typing "a" and "r" should never switch to another best match, because "a" and "r" are the exact next letters of the best match. This is important for the UX of the searcher and it is one of the most broken things in MacOS spotlight (typing exact next letters can there change the hint to something else).
There should be an easy way to adjust weights by some criteria. For example, we know already that hints in virtual groups should have higher weight (and should be sorted by the group order when user did not type anything yet), or that local variables should have lower weight than static methods and methods, but higher than modules.

@kazcw James recently created a new, better version of matching algorithm (different from one described in the comment). It can be tested here https://jdunkerley.github.io/enso-react/ We should be implemented this one in IDE. Sorry for confusion.
@jdunkerley please post the code here, so Kaz will easily port it into Enso GUI.

Here is the summary of the search:

Case-insensitive search
Search either for "word starts with" or "initials starts with". Does not match contains within words.
If not connected to anything, search within static functions and constructors.
If incoming, then just search within instance methods or extension methods of the type (or parent types).
Does not include PRIVATE, optionally includes ADVANCED/UNSTABLE.
Match within either names or aliases. For static methods or constructors, prefix with either the type name or module name if not in a type.
If search string contains a ., then the first part is used to search within the type (or module name). Only relevant for static methods or constructors.
If the search string contains a _, then each part represents a starts with word and must be matched in the same order they occur.

Examples within Table:

col will match columns, column_count, select_columns.
col_ will match columns, column_count, but not select_columns (because no following word after col).
col_c will match column_count, but not columns or select_columns (because col must be followed by another word starting with c).
sc will match select_columns, but not columns or column_count (because sc must be at the beginning of a word or initials of word).
drop will match drop, drop_duplicates, dropna.

Examples within Static:

read will match Data.read, Image.read, Data.read_text, Environment.get.
rt will match Data.read_text.
drt will match Data.read_text.
dp will match Date.parse, Decimal.parse.
dtp will match Date_Time.parse.
d. will match all methods within types starting with d (e.g. Data, Date, Date_Time).
dt. will match all methods within types starting with dt or with initials dt (e.g. Date_Time).

For ordering the search, the following scoring was used:

First, based on the type of match:

Name starts with
Type starts with
Alias starts with
Name words match but not the first word
Alias words match but not the first word
Name initials
Alias initials

Then, based on the percentage of the word matched not used (i.e. if looking for col the word column scores higher than columns)
Then, based on the group ranking
Final alphabetically on (Module or Type name and Method name)

The typescript implementation of this isn't quite right but is close to what it should be.


[analyzer] code auto completion doesn't work here.

class Node<SELF extends Node<SELF>> {
  int value;
}

void foo<T extends Node<T>>(T node) {
  final _ = node.value;
  //             ^^^^^ the analyzer doesn't auto complete here
}

Analysis server version: 1.27.4
Dart SDK: 2.8.0-dev.20.0.flutter-1210d27678 (be) (Mon Apr 6 10:36:50 2020 +0000) on "macos_x64"

@jwren

https://dart-review.googlesource.com/c/sdk/+/190723


Clarify renaming capabilities

It's misleading to qualify "Global Rename" as not implemented because neither global nor local rename work. It's more straightforward and clear to say that renaming is not supported at all.
From what I can tell the current wording could be related to a time where local renaming used to work as a refactor action item (https://github.com/apple/sourcekit-lsp/pull/172); this is merely a guess since I was not following this repository's development back then.

@swift-ci please test

From what I can tell the current wording could be related to a time where local renaming used to work as a refactor action item (https://github.com/apple/sourcekit-lsp/pull/172); this is merely a guess since I was not following this repository's development back then.

No, it never worked.  It was accidentally possible to trigger the underlying functionality for local rename from sourcekitd, but there was no way to specify the new name.


Adding a question

Havent used the GUI for making changes / PRs before  - hope this question helps with your quiz!

Havent used the GUI for making changes / PRs before - hope this question helps with your quiz!

Yes, every questions helps! Thanks @lebeerman


dart.js not found in web

I'm going to close this for lack of information. @anilwal if you can provide more info, could you please open a new bug at https://github.com/dart-lang/site-webdev/issues?


Give serverengine the same logger object sneakers uses.  Avoid problems ...

...when Sneakers.configure receives a logger object instead of a log file.
Without this change, I see this stack trace when passing a logger object in :log to Sneakers.configure, and then calling Sneakers::Runner.new.run
Unexpected error no implicit conversion of Logging::Logger into String
  /Users/davidbyron/.rbenv/versions/2.2.1/lib/ruby/2.2.0/open-uri.rb:36:in `open'
  /Users/davidbyron/.rbenv/versions/2.2.1/lib/ruby/2.2.0/open-uri.rb:36:in `open'
  /Users/davidbyron/.rbenv/versions/2.2.1/lib/ruby/2.2.0/logger.rb:628:in `open_logfile'
  /Users/davidbyron/.rbenv/versions/2.2.1/lib/ruby/2.2.0/logger.rb:584:in `initialize'
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/serverengine-1.5.10/lib/serverengine/daemon_logger.rb:64:in `new'
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/serverengine-1.5.10/lib/serverengine/daemon_logger.rb:64:in `logdev='
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/serverengine-1.5.10/lib/serverengine/daemon_logger.rb:47:in `initialize'
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/serverengine-1.5.10/lib/serverengine/config_loader.rb:66:in `new'
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/serverengine-1.5.10/lib/serverengine/config_loader.rb:66:in `create_logger'
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/serverengine-1.5.10/lib/serverengine/daemon.rb:99:in `main'
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/serverengine-1.5.10/lib/serverengine/daemon.rb:90:in `run'
  /Users/davidbyron/src/portal_worker/vendor/bundle/gems/sneakers-1.0.3/lib/sneakers/runner.rb:12:in `run'
  /Users/davidbyron/src/portal_worker/lib/portal_runner.rb:17:in `run'

Change looks most relevant, but would it be possible to also attempt an automated test of it?

I've given it a shot, but I'm not happy with it.   https://github.com/dbyron0/sneakers/commit/582d5427cfa17131d789417b92d2b36d866efdf9 feels like it's close, but it doesn't expose the bug.  If I don't stub Daemon::main, it does expose the bug, but then after I fix it, I get this:
$ bundle exec rake
Run options: --seed 12745

# Running:

............................................................................Coverage report generated for RSpec to /Users/davidbyron/src/sneakers/coverage. 11059 / 24139 LOC (45.81%) covered.
rake aborted!
Command failed with status (1): [ruby -I"lib:spec"  "/Users/davidbyron/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/rake_test_loader.rb" "spec/sneakers/cli_spec.rb" "spec/sneakers/concerns/logging_spec.rb" "spec/sneakers/concerns/metrics_spec.rb" "spec/sneakers/configuration_spec.rb" "spec/sneakers/publisher_spec.rb" "spec/sneakers/queue_spec.rb" "spec/sneakers/runner_spec.rb" "spec/sneakers/sneakers_spec.rb" "spec/sneakers/support/utils_spec.rb" "spec/sneakers/worker_handlers_spec.rb" "spec/sneakers/worker_spec.rb" ]

Tasks: TOP => default => test
(See full trace by running task with --trace)

which I figure is because we've actually got a running process that I'm not sure how to stop.  There's probably some more detailed way to stub Daemon, but I could use a hand figuring out exactly how.

:+1:  also in favor of this fix

Awesome work - thanks! merging!

Thanks much.  Any chance to release a version with this in it soon-ish?

ping.

Thanks much for 1.0.4.

Thank you @dbyron0 and @jondot for this fix!


Unable to run the commandline:Cannot run program "yarn"

Hi!
I already had my environment configured and working to use RN in terminal. I use node 16 and I have yarn installed and globaly. I use nvm to manage my node versions and I have a .nvmrc file in the app folder.
In terminal, when I run yarn run android it work fine but when I try the react-native run-android button from RN Console, I got the error:
Unable to run the commandline:Cannot run program "yarn" (in directory "not-the-real-path-to-app"): error=2, No such file or directory

Hello, can you provide more info, which operation system are you using?

Hi!
I'm using Ubuntu 22.04.
This is my main work computer. I already had other JS projects running inm Vue.JS and Angular.JS. I also had a GoDot and Flutter projects running in this computer.
I also use ZSH and Terminator. I use nvm to manage the Node versions and the version I'm using with RN is 16.20.2 and is the same I build the projects in the others frameworks

Hello, please check if you face issues here: https://github.com/beansoft/react-native-console/issues/17
What's the output of
echo $PATH
You may replace the real username to something fake.

echo $PATH
HOME-FOLDER/.rvm/gems/ruby-3.1.4/bin:HOME-FOLDER/.rvm/gems/ruby-3.1.4@global/bin:HOME-FOLDER/.rvm/rubies/ruby-3.1.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:HOME-FOLDER/.local/share/JetBrains/Toolbox/scripts:HOME-FOLDER/Android/Sdk/tools:HOME-FOLDER/Android/Sdk/platform-tools:/usr/bin/docker:HOME-FOLDER/.rvm/bin
I don't have the issues in this ticket. I had the sdk.for settled and I can run react-native run-android in my terminal with success whether in a emulator or in a physical device.
But whan I try to use the Debug Android I got this error:

Even if the device is connected and I'm running in it in the terminal using Metro.

On Linux, the IDE launched from the desktop shortcut didn't pick up the shell envs, this is because the shell and the desktop are using different env configurations(they are two different processes tree in Linux).
Please try to launch the IDE from a terminal by this guide: https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line
Or try setting envs for desktop apps here:
https://wiki.archlinux.org/title/environment_variables#Graphical_environment
Please talk back if this still does not work, then please attach the logs via the menu Help > Collect logs and Diagnostic Data if possible.


The benchmark kafka got an 'InvocationTargetException'

My JDK is java 11.0.22 2024-01-16 LTS. I got an 'InvocationTargetException' when I ran Kafka. How can I solve this exception?
`root@a100:/dacapobench/benchmarks# java -jar dacapo-evaluation-git-b281fb21.jar -c ExampleCallback kafka
IMPORTANT NOTICE:  This is NOT a release build of the DaCapo suite.
Since it is not an official release of the DaCapo suite, care must be taken when
using the suite, and any use of the build must be sure to note that it is not an
offical release, and should note the relevant git hash.
Feedback is greatly appreciated.   The preferred mode of feedback is via github.
Please use our github page to create an issue or a pull request.
https://github.com/dacapobench/dacapobench.
Using scaled threading model. 256 processors detected, 256 threads used to drive the workload, in a possible range of [1,unlimited]
Version: kafka 3.3.1 (use -p to print nominal benchmark stats)
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.dacapo.harness.Kafka.prepare(Kafka.java:46)
at org.dacapo.harness.Benchmark.run(Benchmark.java:229)
at org.dacapo.harness.TestHarness.runBenchmark(TestHarness.java:225)
at org.dacapo.harness.TestHarness.main(TestHarness.java:170)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at Harness.main(Harness.java:39)
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.server.ZooKeeperServerMain
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at org.dacapo.harness.DacapoClassLoader.loadClass(DacapoClassLoader.java:152)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.dacapo.kafka.ZookeeperStarter.(Unknown Source)
at org.dacapo.kafka.Launcher.launching(Unknown Source)
... 13 more`

I'm not sure what's going on here.  Is there a reason you're not using a release build?  I suggest you see if this is issue arrises on a release build before pursing this further.

I have tried to reproduce this, but cannot.  Please feel free to reopen if you have more specific information.
$ java -jar dacapo-evaluation-git-b281fb21.jar -c ExampleCallback kafka
--------------------------------------------------------------------------------
IMPORTANT NOTICE:  This is NOT a release build of the DaCapo suite.
Since it is not an official release of the DaCapo suite, care must be taken when
using the suite, and any use of the build must be sure to note that it is not an
offical release, and should note the relevant git hash.

Feedback is greatly appreciated.   The preferred mode of feedback is via github.
Please use our github page to create an issue or a pull request.
    https://github.com/dacapobench/dacapobench.
--------------------------------------------------------------------------------

Using scaled threading model. 24 processors detected, 24 threads used to drive the workload, in a possible range of [1,unlimited]
Version: kafka 3.3.1 (use -p to print nominal benchmark stats)
Starting Zookeeper...
Starting Kafka Server...
Example callback starting kafka
===== DaCapo evaluation-git-b281fb21 kafka starting =====
Trogdor is running the workload....
Starting 1000000 requests...
100%
Completed requests
Finished
Example callback stopping
===== DaCapo evaluation-git-b281fb21 kafka PASSED in 6683 msec =====
Example callback PASSED kafka, observed 1000000 requests
===== DaCapo processed 1000000 requests in 5284 msec, 189250 requests per second =====
===== DaCapo simple tail latency: 50% 17221 usec, 90% 54859 usec, 99% 329900 usec, 99.9% 339911 usec, 99.99% 342694 usec, max 344178 usec, measured over 1000000 events =====
===== DaCapo metered tail latency: 50% 157837 usec, 90% 313883 usec, 99% 345952 usec, 99.9% 348139 usec, 99.99% 349177 usec, max 349614 usec, measured over 1000000 events =====


Do you know what id I should specify in appcenter build download command?

Is there more detail parameter sample to see how this command work?
Error: Command 'build download' failed with exception "Missing required option -i / --id"```

Hi @waynemd. The documentation/examples are limited for the moment. I will give you a writeup of how to use it here.
The build download command its -i or --id parameter is required, which you can see in the usage when you run help build download because the parameter is not surrounded by [brackets]. The value you should provide is the ID number of a build of the app for which you want to download something. The app you must specify using the -a parameter, and the thing you want to download (the build binary, logs or symbols) you must specify using the -t parameter.
To find the IDs for older builds, sign in to the App Center portal and go to your app > Build >
your branch, to see the list and the IDs.
There is currently no good way to find the build ID using the CLI. If you run build branches list, you will see the overview of the branches which are configured for build. For each branch you will see the latest build ID, and the build result. If the result is failed, you can't download the build but you can still download the logs.
To give an explicit example, if you wish to download the latest successful build file for your app MyApp, you could first run:
appcenter build branches list --app MyApp
Or, if you know the branch and it is called let's say master:
appcenter build branches show --app MyApp --branch master
This gets you the latest build ID. If it succeeded, use this build ID. If it failed, sign in to App Center through the website to get the build ID for the latest successful one. Then with that build ID, say 17, run:
appcenter build download --app MyApp --type build --id 17
This will download the build file to your current directory. Use the --dest parameter to specify the download folder and --file to specify the file name.
Please let me know if you have any further questions. While we have you here, I would like to ask you something. Where would you expect to find the more detailed examples like the one you asked for in this ticket?

Thanks for the detail writeup.
One more question with this download command
appcenter distribute groups download -g <group> -a <app>
Does it only download the LATEST version of the release package for the distribution group?
appcenter distribute groups show -g <group> -a <app>
shows all the users and releases.

The command distribute groups download downloads the latest release, unless you specify which release you want by using the --id parameter.


new samples for training

I fi not going to use the  CMU_ARCTIC speech synthesis databases, how many samples data I should have for the training?

CMU_ARCTIC contains about an hour of speech per voice and that's the minimum necessary to ensure high quality. Of course, the more the better.


storage(dm): add gcs support for dm(engine)

What problem does this PR solve?

Issue Number: close #8252
What is changed and how it works?
Since the underlying brStorage has good extraction of all buckets we need(s3/gcs), we simply replace s3 pkg with bucket and use ResourceType to distinguish different backends.
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
support gcs backend for dm(engine).

/run-engine-integration-test

/run-engine-integration-test

/run-engine-integration-test

/run-engine-integration-test

/run-verify
/run-engine-integration-test

/run-all-tests

/run-dm-compatibility-test
/run-dm-integration-test
/run-kafka-integration-test
/run-integration-test
/run-engine-integration-test

/run-dm-compatibility-test
/run-dm-integration-test
/run-kafka-integration-test
/run-integration-test
/run-engine-integration-test

/run-dm-compatibility-test
/run-dm-integration-test
/run-kafka-integration-test
/run-integration-test
/run-engine-integration-test

/run-verify

/run-verify

/can-merge

/merge

/merge

/run-verify


Issue has only opened and closed status, what about testing status?

Feature Description
Hi,
It would be very helpful if we could define more statuses for issue. Right now issue can be only in opened and closed status.
Jira has many statuses for tickets and every status is connected to specific Kanban board.
Currently if I put issue in closed status it is not automatically moved to Done board at Kanban project.
Is this posible with some plugin?
Screenshots
No response

Related to and duplicate of both #14893 and #14359


Support for Keras version 3.x.x

At the moment, keras2json.py does not support conversion of json files from keras version 3.x.x.

We should definitely add it. If you have an example of a trained network you'd like to convert I might have some time to take a look at some point, or maybe someone else will.

Adding an example keras 3.3.3 model, would also appreciate an update :)
model.zip

Actually scratch that last upload, that was after a little editing to try to make lwtnn work with it. Fresh version is uploaded here.
model_run3_WH_Zdep.zip
What I had changed: the keras version and backend are no longer saved in the architecture file, tried manually adding them (didn't work)


Update Readme.md

HELLO BOT FILTER

mrkeynan0/mrkeynan0

Remember, contributions to this repository should follow our


UIOperation does not finish

UIOperation does not actually finish after it does the presentation. But it does accept a completion block. This is all a bit strange. There is no need for a completion block, and instead, it should just finish().

Current coverage is 74.30%

Merging #186 into development will increase coverage by +0.01% as of b409689

@@            development   #186   diff @@
==========================================
  Files                51     51
  Stmts              3240   3242     +2
  Branches              0      0
  Methods
==========================================
+ Hit                2407   2409     +2
  Partial               0      0
  Missed              833    833

Review entire Coverage Diff as of b409689

Powered by Codecov. Updated on successful CI builds.


change back to alpine base image

we are sorry we ever left, take us back alpine

Feels like there's a story here.

@tiedotguy I realised that you can't run scripts in distroless images because they don't have a shell. Something that many dependencies would likely want to do, including our own.


reformat Python clode with 'black'

Strange, I ran black earlier on these ... do you use any flags?

Oh, that's interesting - I wonder if it'll revert my changes if you run it. I ran it with no flags, and I used the version of black on Bionic (I juts did apt-get install black; I wonder if there's a "better practice" we can use, like use a Pipfile and install it from there...?)

Oh, that's interesting - I wonder if it'll revert my changes if you run it. I ran it with no flags, and I used the version of black on Bionic (I juts did apt-get install black; I wonder if there's a "better practice" we can use, like use a Pipfile and install it from there...?)

Yep, we should probably Pipfile this thing, I'll wait :)


cpp code for hamiltonian cycle

One more PR and you are set

I suggest do it in this markdown  repo


Semantic blog 4

Added semantic search blog
Check List

[x ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Closing this PR in favor of https://github.com/opensearch-project/project-website/pull/1343. This one had extra commits that did not belong to the PR.


No asset preview in array

When using
import {defineConfig} from 'sanity'
import {deskTool} from 'sanity/desk'
import {visionTool} from '@sanity/vision'
import {schemaTypes} from './schemas'
import {contentGraphView} from 'sanity-plugin-graph-view'
import {
  cloudinarySchemaPlugin,
  cloudinaryImageSource,
  cloudinaryAssetSourcePlugin,
} from 'sanity-plugin-cloudinary'

export default defineConfig({
  name: 'default',
  title: 'backend',

  projectId: '<PROJECT_ID>',
  dataset: 'production',
  form: {
    image: {
      assetSources: (previousAssetSources, context) => {
        if (context.currentUser?.roles.includes('cloudinaryAccess')) {
          // appends cloudinary as an asset source
          return [...previousAssetSources, cloudinaryImageSource]
        }
        if (context.currentUser?.roles.includes('onlyCloudinaryAccess')) {
          // only use clooudinary as an asset source
          return [cloudinaryImageSource]
        }
        // dont add cloudnary as an asset sources
        return previousAssetSources
      },
    },
  },
  plugins: [
    deskTool(),
    cloudinaryAssetSourcePlugin(),
    cloudinarySchemaPlugin(),
    contentGraphView({}),
    visionTool({
      defaultApiVersion: 'v2021-10-21',
      defaultDataset: 'production',
    }),
  ],

  schema: {
    types: schemaTypes,
  },
})

There is no asset preview in array used in reference to :
{
      type: 'array',
      name: 'cloudinaryList',
      description: 'This asset is served from Cloudinary',
      of: [{type: 'cloudinary.asset'}],
    },

End Result:

Looking to have it match the example more closely:

What are the options being used for "Configure" and "Add Multiple" ?

I have the exact same problem. @snorrees @SimeonGriggs any chance you could look into this issue? It's pretty unusable right now without previews.

Just released a a quickfix for the videoplayer and preview: 1.0.2


Version 0.2.6

Closes #23

Introduce the currentCountry, currentState, and currentCity properties to allow previously selected values to remain
Sort CSCPicker constructor first
Move super.initState before other calls in csc_picker.dart
Fix some typos, method names
Fix some async method types

@altafc22 any thoughts on this?

Hey @GroovinChip, let me check the code, we will merge it soon

Hi, this version is not available in pubdev? i can only see 0.2.5 in there, and i need this feature. Can u please make it available on pubdev.

Hi @ShehanAbid, tonight I will be available on pub.dev
Thank you.

Hii @altafc22 on pub.dev version 0.2.5 is showing.
I want features of 0.2.6 like currentstate and currentcountry how can we get it.
Thanks


Client for PinePhone with kali

What would you like the app to enable you to do?
I wonder for a version of the client that run on kali installed on PinePhone, exactly like an app for other smartphone. Tried to connect directly and work only sometimes. Anyway a sort of user friendly app will be better for large user

Hi @psychomad , please also try the Outline CLI: https://github.com/Jigsaw-Code/outline-sdk/tree/main/x/examples/outline-cli .


Documenting BasicErrorController class in spring-boot project

While using swagger-springmvc 9.1 in spring-boot project it is documenting BasicErrorController class.

It will be nice to add method to ignore List of class. I tried customizing and added method to ignore class and it works fine.

@sanju4112 Try moving to 0.9.5. Also its not entirely clear to me what the problem is? Is this a feature request/bug?

I tried customizing and added method to ignore class and it works fine.

What is it not working fine before you had to customize?

My scenario is like this I have to import other projects in my project and i cant add swagger annotations to those projects and it follows similar request mapping pattern. So in such scenario how to exclude those controllers from getting documented.
For this kind of scenario i added method to exclude class based on name by rewriting few class.
It will be nice if this kind of feature is added to handle this kind of scenario.

You can use the include patterns to only document the paths you wish to document.


web3_1.default is not a constructor

Hi,
I received the error message: "web3_1.default is not a constructor"
The project dependencies are:
angular 5,
"web3": "^1.0.0-beta.26",
"@angular/cli": "^1.6.7"
I didn't modified the web3.service.ts as its original, however, the app detected metamask is installed and throw the error when reach below line in the bootstrapWeb3()
this.web3 = new Web3(window.web3.currentProvider);
Please help!!!

This seems related to this error:
https://github.com/Quintor/angular-truffle-box/issues/22

@kmturley: Thanks for your response!
I try with all the possible solutions found and seems like the only workable sol for me is below:
# web3.service.ts
const Web3 = require('web3');
declare var require: any;

Do you have any ideas what may cause this issue?

I think it's also related to the version of Web3. I was getting issues with:
"web3": "^1.0.0-beta.30"
but not with:
"web3": "^0.19.1"
You can downgrade using the command:
npm install<EMAIL_ADDRESS>--save

Also there are other gotchas with the tools, so reset everything when testing:

Close and reopen ganache
Run truffle and angular commands again

truffle compile
truffle migrate
ng serve

If still having issues, try resetting MetaMask:
MetaMask > Settings > Reset Account

https://github.com/Quintor/angular-truffle-box/blob/master/tsconfig.json#L10
This line is what fixed the original issue for me. If anyone has a current configuration in which this error occurs, let me know. Downgrading web3 should not be necessary, but is indeed involved.

Facing the this exact error with a fresh download of this truffle box.
The copy already contains "allowSyntheticDefaultImports": true".

@Muhammad-Altabba Could you let me know versions of: node, npm, angular-cli, truffle?

Kindly find bellow:
node -v

v8.11.1

truffle version

Truffle v4.1.5 (core: 4.1.5)
Solidity v0.4.21 (solc-js)

npm version

{ 'angular-truffle-box': '0.0.0',
npm: '5.8.0',
ares: '1.10.1-DEV',
cldr: '32.0',
http_parser: '2.8.0',
icu: '60.1',
modules: '57',
nghttp2: '1.25.0',
node: '8.11.1',
openssl: '1.0.2o',
tz: '2017c',
unicode: '10.0',
uv: '1.19.1',
v8: '6.2.414.50',
zlib: '1.2.11' }

ng version

Angular CLI: 1.7.3
Node: 8.11.1
OS: linux x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router
@'angular/cli: 1.7.3
@'angular/language-service: 4.4.6
@'angular-devkit/build-optimizer: 0.3.2
@'angular-devkit/core: 0.4.8
@'angular-devkit/schematics: 0.3.2
@'ngtools/json-schema: 1.2.0
@'ngtools/webpack: 1.10.2
@'schematics/angular: 0.3.2
@'schematics/package-update: 0.3.2
typescript: 2.4.2
webpack: 3.11.0

Thank you! And web3 version? The error occurring is exactly the same, with web3, rather than some other package?

I am facing the issue while using the current fresh version of this box. So web3 version is the same mentioned at current package.json:
    "web3": "1.0.0-beta.33"

I take it you've used truffle unbox? Does the problem also exist if you git clone the repo to a clean directory and run npm install instead? (All other instructions are the same)

Unfortunately, both truffle unbox , and cloning the repository to a clean directory and running npm install , led to the same issue.

Does it also occur when using ng serve -prod, instead of ng serve?

It works with ng serve -prod (1.0.0-beta.33 is also the web3 version in the package-lock.json)
However, I noticed at at package-lock.json that web3 required version for the project is 1.0.0-beta.33:
    "web3": {
      "version": "1.0.0-beta.33",
      "resolved": "https://registry.npmjs.org/web3/-/web3-1.0.0-beta.33.tgz",
      "integrity": "sha1-xgIbV2mSdyY3HBhLhoRFMRsTkpU=",
      "requires": {
        "web3-bzz": "1.0.0-beta.33",
        "web3-core": "1.0.0-beta.33",
        "web3-eth": "1.0.0-beta.33",
        "web3-eth-personal": "1.0.0-beta.33",
        "web3-net": "1.0.0-beta.33",
        "web3-shh": "1.0.0-beta.33",
        "web3-utils": "1.0.0-beta.33"
      }
    },

But truffle-contract depends on version 0.20.6 of web3:
    "truffle-contract": {
      "version": "3.0.4",
      "resolved": "https://registry.npmjs.org/truffle-contract/-/truffle-contract-3.0.4.tgz",
      "integrity": "sha512-/1LCtJFf5Jvm5Rv88T0d/rZSKvaiW/yO1SHXLGJgKzLsiG1F/2spFs4HrI1mRxP00opfrYXloEmLtkVV/kcndQ==",
      "dev": true,
      "requires": {
        "ethjs-abi": "0.1.8",
        "truffle-blockchain-utils": "0.0.4",
        "truffle-contract-schema": "2.0.0",
        "truffle-error": "0.0.2",
        "web3": "0.20.6"
      },
      "dependencies": {
        "crypto-js": {
          "version": "3.1.8",
          "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.8.tgz",
          "integrity": "sha1-cV8HC/YBTyrpkqmLOSkli3E/CNU=",
          "dev": true
        },
        "web3": {
          "version": "0.20.6",
          "resolved": "https://registry.npmjs.org/web3/-/web3-0.20.6.tgz",
          "integrity": "sha1-PpcwauAk+yThCj11yIQwJWIhUSA=",
          "dev": true,
          "requires": {
            "bignumber.js": "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934",
            "crypto-js": "3.1.8",
            "utf8": "2.1.1",
            "xhr2": "0.1.4",
            "xmlhttprequest": "1.8.0"
          }
        }
      }
    }

Yep. The difference between web 1.x and 0.20 is by design.
Does ng test result in successful tests?
This issue looks a lot like #31, which I resolved in #33. Does it work if you change the module system and/or target in https://github.com/Quintor/angular-truffle-box/blob/master/src/tsconfig.app.json.
Also, what browser are you using?

@Muhammad-Altabba Above pull request should have fixed it. If not, could you let me know?

ERROR TypeError: web3_1.default is not a constructor
This problem was made me crazy a few days.
I used "npm install web3 --save" command and import Web3 from 'web3';
So, the error occurred!
In my experience, I removed "import Web3 from 'web3';" and added new lines like
"declare let Web3: any;
declare let web3;"
It works correctly for me.
I hope that this is correct resolve.
Thanks


Ability to accept split domain files in rasa x

**Status **:

Added support for split domain files in rasa x

Thanks for submitting a pull request 🚀 @rgstephens will take a look at it as soon as possible ✨

@tabergma could you look at this?

@degiz does this work properly with the split domain implementation in rasa x?

@tmbo yes, I was working on both of them in parallel. Could you review it?


Plex Editions Re-Naming not Working with AMC Script

Here is my docker-compose file:
version: "3.8"
services:
  filebot:
    container_name: filebot
    image: jlesage/filebot
    ports:
      - 5800:5800
    volumes:
      - ./filebot_config:/config:rw
      - /mnt/n/newmedia:/watch:rw
      - /mnt/n/outputmedia:/output:rw
      - /mnt/n/testmedia:/storage:rw
    environment:
      - LANG=en_us.UTF-8
      - TZ=America/New_York
      - FILEBOT_GUI=1
      - WEB_LISTENING_PORT=5800
      - AMC_ENABLED=1
      - AMC_INTERVAL=1800 #Time (s) between each invocation of the AMC script
      - AMC_INPUT_STABLE_TIME=10 #Time (s) during which properties (size, time, etc.) but be constant in the /watch folder before invoking the AMC script.
      - AMC_ACTION=move #The action performed by the AMC script. Options are: test, copy, move, symlink, hardlink, keeplink, duplicate, clone.
      - AMC_LANG=English
      - AMC_MUSIC_FORMAT={plex}
      - AMC_MOVIE_FORMAT={plex} {"{edition-$edition}"}
      - AMC_SERIES_FORMAT={plex}
      - AMC_PROCESS_MUSIC=n

When I perform a manual rename using the web interface and using the same expression to rename movies ({plex} {"{edition-$edition}"}) it performs the match correctly.
When I run the AMC script after starting the docker container using the above docker-compose, it renames this file as such:
Original File: /newmedia/The Iron Giant (1999) {edition-Signature}
New Name: /outputmedia/Media/Movies/The Iron Giant (1999) {edition-}
Here are my logs if they help (In this run of the AMC script, I even tried re-naming the original file with an edition binding from the list of available options shown here...same issue):
Run script [fn:amc] at [Mon May 08 20:38:08 EDT 2023]

[PSA] Important Discussion of Proposed Changes:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: artwork = n
Parameter: music = n
Parameter: clean = y
Parameter: excludeList = /config/amc-exlude-list.txt
Parameter: movieFormat = {plex} {"{edition-}"}
Parameter: musicFormat = {plex}
Parameter: seriesFormat = {plex}
Parameter: animeFormat = {plex}
Argument[0]: /watch
Use excludes: /config/amc-exlude-list.txt (0)
Input: /watch/The Iron Giant {edition-Theatrical}.mkv
Group: {Movie=The Iron Giant (1999), Series=null} => [The Iron Giant {edition-Theatrical}.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/watch/The Iron Giant {edition-Theatrical}.mkv]
[MOVE] from [/watch/The Iron Giant {edition-Theatrical}.mkv] to [/output/Movies/The Iron Giant (1999)/The Iron Giant (1999) {edition-}.mkv]
Processed 1 file
Clean clutter files and empty folders
Keep /watch (root folder)
Done ヾ(＠⌒ー⌒＠)ノ

Can you verify that the AMC_MOVIE_FORMAT variable is correctly set in the output of docker inspect <container name> ?

You need to escape the $ character, by using $$.  Try something like this in your Docker compose file:
AMC_MOVIE_FORMAT={plex} {"{edition-$$edition}"}

Brilliant! That worked. Thank you very much!
Also, you may want to consider enabling Discussions for this repo...I raised an issue because I wasn't sure how else to get help (searching Reddit & the official forum weren't helpful), but this was definitely more of a me problem rather than a problem with the code itself.

Yes enabling Discussions was in my plans.  This is now done :)


feat: move SQL template functions into new migration box

Related issue
Migrating to embed in Keto.

So we have some facky tests in configx: https://app.circleci.com/pipelines/github/ory/x/967/workflows/8e3fcf4e-a167-4e98-ad7e-67f55574da90/jobs/2096
and httpx: https://app.circleci.com/pipelines/github/ory/x/967/workflows/fe230e9b-e844-464f-b2ba-baadaebad45e/jobs/2078
The popx tests are passing locally for me.

https://app.circleci.com/pipelines/github/ory/x/975/workflows/646175a1-c61a-4ea1-a696-1a359be6d728/jobs/2099


Build fails "../src/libmkldnn.so.0.12.0: undefined reference to `cblas_gemm_s8u8s32'"

Description
I'm not able to build master (commit https://github.com/intel/mkl-dnn/commit/283c4a8c24b4e1dea05fbc7941594a7375babad1) on Ubuntu 14.04.
Environment
Ubuntu 14.04 (Linux ubuntusystest 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux)
Steps to reproduce
$ git clone https://github.com/intel/mkl-dnn.git
$ cd mkl-dnn
$ cd scripts && ./prepare_mkl.sh && cd ..
$ mkdir -p build && cd build && cmake .. && make
Dies with:
-- CMAKE_BUILD_TYPE is unset, defaulting to Release
-- Detecting Intel(R) MKL: trying mklml_intel
-- Intel(R) MKL: include /home/parviz/Git/mkl-dnn/external/mklml_lnx_2<IP_ADDRESS>71227/include
-- Intel(R) MKL: lib /home/parviz/Git/mkl-dnn/external/mklml_lnx_2<IP_ADDRESS>70424/lib/libmklml_intel.so
-- Intel(R) MKL: OpenMP lib /home/parviz/Git/mkl-dnn/external/mklml_lnx_2<IP_ADDRESS>70424/lib/libiomp5.so
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- VTune profiling environment is unset
-- Configuring done
-- Generating done
-- Build files have been written to: /home/parviz/Git/mkl-dnn/build
[ 37%] Built target mkldnn
[ 38%] Linking C executable simple-net-c
../src/libmkldnn.so.0.12.0: undefined reference to `cblas_gemm_s8u8s32'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/simple-net-c] Error 1
make[1]: *** [examples/CMakeFiles/simple-net-c.dir/all] Error 2
make: *** [all] Error 2```

Hi. Thanks for the report. How did you set up the MKL environment? Seems like CMAKE detects headers from one mklml version (2018.0.1) while libraries and openmp from another (2017.0.3).  Can you please remove all the stuff from the mkl-dnn/external and run cmake again?

Oh your right, that had an old version. Doing a fresh clone fixed that problem.
Thanks!


Discussion: Detection of parallel uploads - respond with "423 Locked"

Saw this issue happen today:

User began uploading a large file, the url was stored in local storage
User began uploading the same file again (but to a different object)

Currently, one of them will return "409 Conflict" as the spec instructs and thus halts, while the other is was able to continue uploading fine.
"409" is good when the client does something it shouldn't and thus acts as a safeguard. But could we provide a better http status code when the server detects that the file is being uploaded already? e.g. The http status code "423" is defined as Locked, which could be more appropriate in this case.
This would allow us to catch "423" errors, and handle them appropriately.
Thoughts?

User began uploading the same file again (but to a different object)

But isn't that a different upload? How is the server supposed to find out that it is the same file?

@ronag No, because the fingerprint matches, and thus is uses the same resumable url that it locates from the local storage. So it ends up uploading the same file to the same resumable url, causing the 409 conflict.
When I said "to a different object", I meant object within our own platform. So the user tried uploading the same file at the same time but to two different places within the platform.

I'm confused too. So you are uploading the same file from the same client to the same PATCH URL? How does the server know it is a conflict at all? Is the metadata different?

e.g. The http status code "423" is defined as Locked, which could be more appropriate in this case.

The tusd server implements locking which will return a 423 if multiple client try to access the same upload simultaneously. However, this is custom behavior and is not defined in the specification.

No, because the fingerprint matches, and thus is uses the same resumable url that it locates from the local storage. So it ends up uploading the same file to the same resumable url, causing the 409 conflict.

If you configure tus-js-client correctly using its retryDelays property, it will automatically catch those errors and start a new upload to a different upload URL.
I think the underlying question is what should actually happen in the scenario @KieranP described? What did you expect? Should the same file be uploaded to two different upload URLs? Should one wait until the other is finished since they assume they are uploading the same file?

@cjhenck Yes, same file, same client, same PATCH URL because it pulls it from local storage. I imagine that

The tusd server implements locking which will return a 423 if multiple client try to access the same upload simultaneously. However, this is custom behavior and is not defined in the specification.

@Acconut Cool to hear that tusd already does this. It would be good to get this in as a plugin on the spec though so that other servers implement this behaviour.

I think the underlying question is what should actually happen in the scenario @KieranP described? What did you expect? Should the same file be uploaded to two different upload URLs? Should one wait until the other is finished since they assume they are uploading the same file?

I'd much rather catch a 423 error and report to the user that the file is already being uploaded. It makes no sense to me to have an identical copy of a 30GB file uploading to the same server. But this could always be a client setting if the server supports it, something like preventDuplicate: true

I think I was tired this week and failed to read the title of the issue, everything you've said makes complete sense.  If a 423 is returned in the reference implementation then I would think that it would be good to define that as a recommendation.

The way we solve this issue is to actually allow parallel uploads under the assumption that both clients are uploading the same data and we don't check that upload-offset is actually at the end.

@KieranP: I'd much rather catch a 423 error and report to the user that the file is already being uploaded. It makes no sense to me to have an identical copy of a 30GB file uploading to the same server. But this could always be a client setting if the server supports it, something like preventDuplicate: true

I agree that should a setting for the client would make sense. I will look into how this can be achieved. Furthermore, this may be a good opportunity to add a recommendation for this to the specification. However, I am currently not sure whether this should be a short sentence in the core protocol or deserves its own extension as there are some more cases to consider:
The tusd server will also return 423 Locked when a HEAD request is issued while a PATCH request is running to the same upload URL. The reason is that the Upload-Offset header may not be correct anymore as the offset is only updated once, if the PATCH request completes but not in between. Personally, I am not sure if this is the best approach but for now it has served the purpose.

@ronag: The way we solve this issue is to actually allow parallel uploads under the assumption that both clients are uploading the same data and we don't check that upload-offset is actually at the current end.

Honestly, this seems very dangerous to me. If we added the locking mechanism as we talked about before, would you benefit from this additional security?

Honestly, this seems very dangerous to me.

I don't see how it is any less dangerous than appending to the file. Currently there is no guarantee that the data appended is from the same source. In what way would you consider just overwriting more dangerous?

@kaharman The problem in your situation is that the server does not always know that the connection broke and therefore still waits for the first client to upload content. In this case, the upload is still locked if the second client attempts to upload. However, time will usually solve this problem. The server will notice after a timeout that the connection to the first client is broken and will unlock the upload again allowing the second client to continue the upload. In summary, you would just have to wait (usually a few seconds in my experience) before retrying.

Yes, same file, same client, same PATCH URL because it pulls it from local storage.

To me this looks like local storage caching in the browser is not properly implemented and it should be keyed based on your platform's object ID as well. So if user is uploading a file to object1 then local storage should cache the file only for object1 uploading. If user tries to upload a file again to object2, it should not go from local storage, thus it would be uploaded normally twice. And you would not have this problem. So this to me looks like a caching in local storage issue.


Morocco is not in Europe

https://github.com/osmlab/osm-community-index/blob/master/resources/europe/morocco/ym-Universit-Mohammed-V-Rabat.json should be moved to the Africa folder.

Good catch, I moved it 👍


Choosing to defer updates and nudge no longer presents itself

A small group of people (myself incl) in the #nudge channel on macadmins slack channel have been experiencing issues when we choose to defer the update.  the ~/Plist file updates with the time to recheck, but nudge doesn't relaunch, even when left overnight.
Filtering the log data using "subsystem == "com.github.macadmins.Nudge"" Timestamp                       (process)[PID]     2022-06-21 10:33:16.692606-0500  localhost Nudge[3022]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true 2022-06-21 10:33:40.286845-0500  localhost Nudge[3022]: [com.github.macadmins.Nudge:softwareupdate-list] softwareupdate found macOS Monterey 12.4-21F79 available for download - attempting download Filtering the log data using "subsystem == "com.github.macadmins.Nudge"" Timestamp                       (process)[PID]     2022-06-21 10:39:16.458901-0500  localhost Nudge[579]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true 2022-06-21 10:39:44.821377-0500  localhost Nudge[579]: [com.github.macadmins.Nudge:softwareupdate-list] softwareupdate did not find 12.4 available for download - skipping download attempt 2022-06-21 10:39:45.075186-0500  localhost Nudge[579]: [com.github.macadmins.Nudge:user-interface] New Nudge event detected - resetting all deferral values 2022-06-21 10:39:45.084553-0500  localhost Nudge[579]: [com.github.macadmins.Nudge:utilities] Device pastRequiredInstallationDate: false 2022-06-21 10:40:10.621208-0500  localhost Nudge[579]: [com.github.macadmins.Nudge:user-interface] User initiated a deferral: 2022-06-21 16:40:10 +0000 2022-06-21 10:40:10.621998-0500  localhost Nudge[579]: [com.github.macadmins.Nudge:user-interface] User clicked primaryQuitButton 2022-06-21 11:00:04.234552-0500  localhost Nudge[1241]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true 2022-06-21 11:01:31.287812-0500  localhost Nudge[1241]: [com.github.macadmins.Nudge:softwareupdate-list] softwareupdate found macOS Monterey 12.4-21F79 available for download - attempting download Filtering the log data using "subsystem == "com.github.macadmins.Nudge"" Filtering the log data using "subsystem == "com.github.macadmins.Nudge"" Timestamp                       (process)[PID]     2022-06-21 13:58:23.807065-0500  localhost Nudge[593]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true 2022-06-21 14:03:49.298433-0500  localhost Nudge[593]: [com.github.macadmins.Nudge:softwareupdate-list] softwareupdate did not find 12.4 available for download - skipping download attempt 2022-06-21 14:03:49.445926-0500  localhost Nudge[593]: [com.github.macadmins.Nudge:utilities] Device pastRequiredInstallationDate: false 2022-06-21 14:04:24.983028-0500  localhost Nudge[593]: [com.github.macadmins.Nudge:user-interface] User initiated a deferral: 2022-06-21 20:04:24 +0000 2022-06-21 14:04:24.983853-0500  localhost Nudge[593]: [com.github.macadmins.Nudge:user-interface] User clicked primaryQuitButton 2022-06-21 14:30:00.118863-0500  localhost Nudge[1116]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true 2022-06-21 14:31:12.500184-0500  localhost Nudge[1116]: [com.github.macadmins.Nudge:softwareupdate-list] softwareupdate did not find 12.4 available for download - skipping download attempt 2022-06-21 14:31:12.617014-0500  localhost Nudge[1116]: [com.github.macadmins.Nudge:utilities] Device pastRequiredInstallationDate: false 2022-06-21 14:31:12.618182-0500  localhost Nudge[1116]: [com.github.macadmins.Nudge:user-interface] User has selected a deferral date (2022-06-21 20:04:24 +0000) that is greater than the launch date (2022-06-21 19:31:12 +0000) 2022-06-21 14:31:12.618222-0500  localhost Nudge[1116]: [com.github.macadmins.Nudge:user-interface] Nudge is terminating due to condition met 2022-06-21 15:00:05.692247-0500  localhost Nudge[1396]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true 2022-06-21 15:00:18.646766-0500  localhost Nudge[1396]: [com.github.macadmins.Nudge:softwareupdate-list] softwareupdate found macOS Monterey 12.4-21F79 available for download - attempting download

When I restart nudge kicks off, Async Updates is set to False.  And yes, once I force quit the software update command nudge pops up immediately.  is nudge just calling the binary softwareupdate then for macOS 12+?

@n0brainer Yes, Nudge calls softwareupdate:
https://github.com/macadmins/nudge/blob/b77495ce405d2166a72a37f5484e8b84e46e9b55/Nudge/Utilities/SoftwareUpdate.swift
Unless you configure it not to:
https://github.com/macadmins/nudge/wiki/optionalFeatures

I'm going to close this as there are too many bugs with softwareupdate that I can't realistically create workarounds for every sub build on macOS and every bug with its corresponding version. Hopefully issues like this eventually go away, but it's on Apple to fix.


migrate FromPyObject for Bound and Py to new APIs

This PR is two commits which refine FromPyObject for our smart pointers:

the first adjusts the bound of FromPyObject for both Bound<T> and Py<T> to just be T: PyTypeCheck, while migrating to extract_bound at the same time. This is loosely a follow-up from #3706
the second implements PyFunctionArgument for &Bound<T>, allowing #[pyfunction] and #[pymethods] to accept &Bound<T>. I think it's desirable to allow this, and it's not possible to implement FromPyObject for &Bound<T> because while the backwards-compatible definition of FromPyObject for the GIL-ref API can't express that lifetime of the reference correctly. In the future we could potentially have FromPyObject<'a, 'py> for &'a Bound<'py, T> if we introduce a second lifetime to FromPyObject.

(I think that second lifetime is necessary if we also wanted FromPyObject<'a, 'py> for Borrowed<'a, 'py, T> too, but I'm less motivated for that and similarly would like to skip adding PyFunctionArgument for Borrowed<T> unless users are reporting it as a useful addition.)

I'll push to add some test coverage to this.

Ok, pushed.

Updated this just to add a note to the migration guide about FromPyObject for &Bound<T> not existing right now.

Thanks! Let's merge this then, and I'll get on with splitting out the rest of the PRs which depend on it.

PyFunctionArgument will need the same treatment as FromPyObject, as in introducing extract_bound, but that can also be a separate PR I think.

As PyFunctionArgument is hidden inside the impl_ submodule I think we can change it without worrying about backwards compatibility. But yes, that's for another PR 👍


Layout.fragment.xml not found in SAPUI5 Explored

Hi,
why Layout.fragment.xml return not found in SAPUI5 Explored - MessageBox ?
http://veui5infra.dhcp.wdf.sap.corp:8080/sapui5-sdk-dist/explored.html#/sample/sap.m.sample.MessageBox/code

The sample had been refactored with 7d0b2e09a9a821da6070a63941c1ba804ab18d13 and this refactoring removed Layout.fragment.xml. But unfortunately the meta information defining the set of files hasn't been updated.
Means: the sample no longer needs Layout.fragment.xml, just ignore it - sample will be fixed.

@codeworrior Thanks for your prompt and detailed reply!


.navbar-nav missing .navbar-toggleable-xx

Upgraded from alpha.6 to beta.
...
**alpha6:**
@media (min-width: 992px)
.navbar-toggleable-md .navbar-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}
**beta:**
the whole query is missing resulting in vertical centered menu instead of inline. All sizes are affected.

Class has been renamed. Please consult the latest docs at https://getbootstrap.com.


Allow a site to supply its own chain of responsbility for publishing a page

This is work in advance of allowing each site to custom define its own url structure.  This allows each site to supply its own hierarchy of rules to determine what url to generate when publishing a page.
You can observe the changes to our implentation that will be required with this update here at: https://github.com/nymag/sites/pull/1236

Coverage decreased (-0.08%) to 99.919% when pulling 96d4d4441a82e81dd83feb23e6e2e657f17633c0 on site-publishpage into d8f4b0ae1f120264bf6d8329fc9044da11f2b0eb on master.

Coverage decreased (-0.08%) to 99.919% when pulling a36825e37e56600e5fdd61e99290b64b73c5ab55 on site-publishpage into d8f4b0ae1f120264bf6d8329fc9044da11f2b0eb on master.

I gotta look into why our coverage went down by -0.08% anyone who knows how to investigate that, lemme know!

Coverage decreased (-0.05%) to 99.946% when pulling 1a1472f21fce55f230e49efa71eb21b5c936e0f5 on site-publishpage into d8f4b0ae1f120264bf6d8329fc9044da11f2b0eb on master.

Coverage decreased (-0.05%) to 99.946% when pulling f39febaa4cf3ad4a3625c826747299fd718e821e on site-publishpage into d8f4b0ae1f120264bf6d8329fc9044da11f2b0eb on master.

I think you're one test/branch away from 100% coverage 😄

Coverage decreased (-0.03%) to 99.973% when pulling 7ce0cd49a530456295386d8832dfcaeca345888f on site-publishpage into d8f4b0ae1f120264bf6d8329fc9044da11f2b0eb on master.

Coverage remained the same at 100.0% when pulling 4ba0ef6b74d8cdb0a2a9c2f19273af3a90a870db on site-publishpage into d8f4b0ae1f120264bf6d8329fc9044da11f2b0eb on master.

💯 👍

Coverage remained the same at 100.0% when pulling 325b21b2cca8a6076b3e2419ad9bdea4d403a1f2 on site-publishpage into d8f4b0ae1f120264bf6d8329fc9044da11f2b0eb on master.


Controller background doesn't extend to notch/cutout area

I have an OnePlus 7T and the control background cuts off on notch area. This is how it looks like:

The 7T notch is a little teardrop on the center so the missing background is not covered by the notch.
I suspect this is an exoplayer problem since it happens on MX Player too (MX is based on exoplayer). Is there any way we can fix this?

FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) controlView.getLayoutParams();
params.leftMargin = -cutoutHeightPixels;
controlView.setLayoutParams(params);

Something like this would work but we need to get the cutout height

Currently this is just a simplest setup to handle cutouts. I'm definitely going to improve that. Last time I tried I learned that I need to take special care about the time bar so it wasn't one liner.

Okay so a solution would be to set windowLayoutInDisplayCutoutMode to never and then set negative margins to everything. getWindow().getDecorView().getRootWindowInsets().getDisplayCutout() returns the pixel height of the cutout. I'm going to try that now and see if I can get it working

@Override
    public void onAttachedToWindow() {
        super.onAttachedToWindow();

        //NOTCH FIX FOR LANDSCAPE
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            WindowManager.LayoutParams lp = this.getWindow().getAttributes();

            lp.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;

            WindowInsets windowInsets = this.getWindow().getDecorView().getRootView().getRootWindowInsets();

            DisplayCutout displayCutout = windowInsets.getDisplayCutout();

            FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) controlView.getLayoutParams();
            // Left or Right depends on landscape orientation
            params.leftMargin = -displayCutout.getSafeInsetLeft();
            params.rightMargin = -displayCutout.getSafeInsetRight();

            //TODO same for exo_progress and exo_controls_background
        }
    }

This seems to be working (with windowLayoutInDisplayCutoutMode set to shortEdges) and fixes the problem but it would be better to extend the background instead of extending the whole controlView/exo_progress and exo_controls_background


Capture the current AsyncContextFrame when Response is created

To support the following case (specifically, a response stream failing after the response has been returned and having the async context properly propagate), we have to capture the current AsyncContext when the Response object is created and ensure that we enter that context before starting the read loop for the given stream.
const als = new AsyncLocalStorage();
addEventListener('unhandledrejection', () => {
  console.log(als.getStore());
});

export default {
  fetch() {
    return als.run(123, () => {
      return new Response(new ReadableStream({
        async pull(c) {
          c.enqueue('this will cause an unhandled rejection');
        }
      }));
    });
  }
};

I assume the snippet is supposed to have a new Response(), like
    return als.run(123, () => {
      return new Response(new ReadableStream({
        async pull(c) {
          c.enqueue('this will cause an unhandled rejection');
        }
      }));
    });

which made me wonder, why doesn't the read loop need the context in the following case?
    return new Response(als.run(123, () => {
      return new ReadableStream({
        async pull(c) {
          c.enqueue('this will cause an unhandled rejection');
        }
      });
    }));

I guess the error is at the call to the Response constructor; it's allowed for the ReadableStream to enqueue a string, just not allowed to use that ReadableStream as a Response body, so it makes sense that the unhandledrejection would not have the context active. Does it mean that the pull(c) code is executed in an async context in the first snippet, but not the second, though?

I think the answer is: it's not exactly clear yet. Is the ReadableStream responsible for capturing the context? Is the Reader responsible for it? Should the read or pipe be executed in the context that the ReadableStream was created in or the context in which the Reader was created or the context in which read() or pipeTo/pipeThrough were called? It's just not clear what anyone would expect, to be honest. Consider the following case:
const als = new AsyncLocalStorage();

const readable = als.run(123, () => new ReadableStream({
  pull(c) {
    c.error(`boom ${als.getStore()}`);
  }
}));
const response = als.run('abc', () => new Response(readable);
const reader = als.run('xyz', () => response.body;
const read = als.run(321, () => reader.read();
const result = await als.run('???', async () => await read);

What should boom ${als.getStore()} resolve to?
This PR takes the approach that Response object captures the context and enters it before reading, using the interpretation that the read flow should use the context in which read() or pipeTo/pipeThrough are called, which means creating the ReadableStream in a specific context does not propagate it.

Updated the sample to add the new Response(...)

Thinking about it, I think we should go forward with this but there's a larger question here about how, when, and where the async context should be captured and propagated by various web standard APIs. At worst if this changes later we'll need a compat flag but this addresses the immediate need that prompted this fix.


HDDS-1008. Invalidate closed container replicas on a failed volume.

What changes were proposed in this pull request?
The hdds volume check will now check for the existence of its root directory. Further the containers pertaining to the volume will be marked unhealthy.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-1008
How was this patch tested?
Unit test

@supratimdeka Thanks for reviewing the PR! I have added a commit which addresses your comments.

@supratimdeka Thanks for the review! I have addressed your review comments in latest commit.


[Homepage] Announcement Teaser

[ ] Mobile
[ ] Tablet
[ ] Desktop

TODO - Confirm whether the item presented in the Teaser is curated or appears by tagging a "Blog" or "Page" with some metadata before starting on the task

@agangam - Yes , it is. Here is how i am thinking about it
author - will create a block in the document with an announcement text and a link to any other page of the website.
markup - will generate a  with the appropriate block wrapper and block so that the css of the block will add the visual elements such as

stretch it to the entire view width
apply a dark blue background color
provides an option to close the teaser

And this block should work in all break points ( desktop , tablet and mobile)


Add new 1.9 block entities

API | Common
Supersedes #1146

@kashike: Is this ready to merge?

@Zidane

[ ] EndGatewayData
[ ] rename exitPortal to exitPosition
[ ] add age (long)
[ ] StructureData
[ ] add mode (Mode - catalog type: SAVE, LOAD, CORNER, DATA)
[ ] add author (String)
[ ] add ignoreEntities (boolean)
[ ] add powered (boolean)
[ ] add showAir (boolean)
[ ] add showBoundingBox (boolean)
[ ] add integrity (float)
[ ] add seed (long)
[ ] add rotation (see net.minecraft.util.Rotation)
[ ] add mirror (see net.minecraft.util.Mirror)
[ ] add metadata (String)


Install SHPC with spack

Might go within the utils environment.

agree, same as singularity

note: has to be at least version 0.1.18 (to provide support for online registries and the full biocontainers collection)
I have tested 0.1.18 myself on Setonix, although it looks like newer versions only have small changes (so should still work)

note also that spack develop and v0.20.x have my recipe for singularity-hpc, as well as a couple of required dependencies

ping me for anything :)

finally, it will be great to update to shpc 0.1.16 or later as soon as feasible (I mean, along with the spack new deployment), as it will enable life science researchers to readily install 8000+ biocontainers.

Thanks for the pointers, Marco. Indeed I thought SHPC had been updated. @ddeeptimahanti seems like there are some packages that you missed during the version updates.. please double check.

SHPC version updated: https://github.com/PawseySC/pawsey-spack-config/pull/170/commits/540fbd6661a08de04ee36da1fbcf8c6229288b68

@dipietrantonio  I updated only those packages which had issues with the tags.

So, with this new version, we need to check all of them again. I'll look into that.


Add Algolia crawler config

Committed here for transparency.

Actually, we've already uploaded them here:
https://github.com/grammyjs/website/blob/main/site/docs/.vitepress/configs/algolia/crawler.js
IIRC, the main difference is, that one, addresses the issue where the hierarchy results are not appearing.

I was not aware of this, I will merge the two files in a subsequent PQ and remove this one.


Prepare release: v0.4.4

Automated changes by create-pull-request GitHub action

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

Comparison is base (1d68707) 65.95% compared to head (1eb6240) 65.95%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1352   +/-   ##
=======================================
  Coverage   65.95%   65.95%
=======================================
  Files         228      228
  Lines       19841    19841
=======================================
  Hits        13087    13087
  Misses       6754     6754

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


Python packaging locally

PR to make python packaging locally.
I write the setup.py file. It successful install after command sudo pip install .. Unfortunately, I cannot import the algorithms package. You can test by creating the file test.py with content:
import algorithms
def main():
    my_list = [1, 8, 3, 5, 6]
    my_list = insertion_sort(my_list)
    print(my_list)

Error:
  File "test.py", line 1, in <module>
    import algorithms
ImportError: No module named 'algorithms'

Am I missing something? What do you think @keon , @goswami-rahul , @christianbender , @SaadBenn

Pull Request Test Coverage Report for Build 209

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 91.076%

Totals

Change from base Build 208:
0.0%

Covered Lines:
2674

Relevant Lines:
2936

💛  - Coveralls

I think it works!. I may mess up with PATH, it stores the package in python2 instead of python3.  Could you (@keon , @goswami-rahul , @christianbender , @SaadBenn ) clone my branch and install by sudo pip install . , and then test with a test.py file in a different directory:. test.py :
from sort import merge_sort

if __name__ == "__main__":
    my_list = [1, 8, 3, 5, 6]
    my_list = merge_sort.merge_sort(my_list)
    print(my_list)

And use command python3 test,py to see we can import them or not? Thanks

@danghai I copied the file setup.py in my local repository and run sudo pip install . in it.
I get this:

The directory '/home/christian/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/christian/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing /home/christian/Programmierung/GitHub/algorithms
Installing collected packages: algorithms
Running setup.py install for algorithms ... done
Successfully installed algorithms-1.0
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Could you try with command python not python3. Does it work?

It works for python3 packaging locally. I am going to merge them. Lets check in README. Let me know if you see any errors


Documentation does not show how to pass the API Key in the request

No explanation here: https://secure.meetup.com/meetup_api
nor here: https://secure.meetup.com/meetup_api/auth/#keys
neither: https://secure.meetup.com/meetup_api/key/

@spaceCamel you can append the request parameter named key with its value to any request to authenticate with the member that owns the key. I'll make sure that's more clear in the docs.

Just had this issue myself. You'd think it would be described here: https://www.meetup.com/meetup_api/auth/
But there's just this cryptic sentence:

Simply access your API Key and append it to any request.

I assume this doesn't mean what it says (i.e. it doesn't mean to append my API key as a string to the end of my request payload).


global: user ID integer conversion

Converts the user ID to an integer throughout various API calls.
(closes #46)

Signed-off-by: Alexander Ioannidis<EMAIL_ADDRESS>

Need a release?

It's a bugfix but since we don't have Sentry at the moment, I wouldn't risk deploying and having to wait for an actual user with releases and repositories come across a 500 error we won't be able to track...


self managed node group fails with default cluster_version = null

Description
The self managed node group uses the cluster_version input used to lookup default AMI ID if one is not provided. But the default for cluster_version is null.
The data.aws_ami.eks_default data resource will fail to filter with the null value. e.g. amazon-eks-node-null-v*
Versions

Terraform: v1.1.7

Provider(s): terraform-aws-modules/eks/aws (0.18.3)

Sub-Module: self-managed-node-group

Reproduction

Steps to reproduce the behavior:

run terraform-aws-modules/eks/aws with self_managed_node_groups sub-module and don't set cluster_version

Code Snippet to Reproduce
module "eks" {
  source  = "terraform-aws-modules/eks/aws"
  version = ">= 18.0.0"

  cluster_name    = local.name
  # cluster_version = "1.21"
  vpc_id          = module.vpc.vpc_id
  subnet_ids      = module.vpc.private_subnets

  self_managed_node_groups = {
    boo = {
      instance_type = "t3.medium"
      instance_market_options = {
        market_type = "spot"
      }
    }
  }
}

Expected behavior
defaults to the cluster version.
Actual behavior
defaults to null
Terminal Output Screenshot(s)

Additional context
one possible solution is to retrieve the cluster_version from a data resource and set that as the default
data "aws_eks_cluster" "example" {
  name = "example"
}

output "dynamic_cluster_version" {
  value = data.aws_eks_cluster.example.version
}

I think its better if we just rely on users specifying the version - it aligns with the other sub-modules as well

The behavior of the self managed node group is inconsistent with the other sub-modules. for example

Self managed node groups by their very nature are different from EKS managed or Fargate profiles because all management is up to users


[CI] Improved error logs. Eliminated some false failures.

Fixed: "failed" at Info logging level leads to false CI failures (as tests assume "failed" is indication of a failure).
Fixed: The default log level was incorrectly used instead of level 5 at stages "Hip Debug COMGR" and "Hip Debug Embedded Vega20".
Improved readability of logs. Whenever some detailed log level are used (5 or more), --verbose added to the tests.

All these are important for triaging/debugging complicated PRs, like @DrizztDoUrden's #473, so high priority & value.

This PR unblocks #473


artifact-dependencies seems to build both cdylib and staticlib when only one is specified

Problem
When an artifact dependency specifies artifact='staticlib', and the dependency declares its crate type as ["staticlib", "cdylib"], cargo will build both the staticlib and cdylib separately. I would expect it to only build the staticlib.
Steps
Create a project with an artifact dependency:
[package]
name = "foo"
version = "0.1.0"
edition = "2021"

[dependencies]
bar = {path = "bar", artifact = "staticlib"}

and in the bar dependency, specify it with multiple crate types:
[package]
name = "bar"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["staticlib", "cdylib"]

Possible Solution(s)
No response
Notes
No response
Version
cargo 1.71.0-nightly (569b648b5 2023-05-05)
release: 1.71.0-nightly
commit-hash: 569b648b5831ae8a515e90c80843a5287c3304ef
commit-date: 2023-05-05
host: aarch64-apple-darwin
libgit2: 1.6.3 (sys:0.17.0 vendored)
libcurl: 7.87.0 (sys:0.4.61+curl-8.0.1 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1t  7 Feb 2023
os: Mac OS 13.3.1 [64-bit]

Hi! Lately I've been playing around with artifact dependencies at work, and I noticed this issue, so I thought I'd try to fix it. I seem to have something working now so I looked into the contribution process. From what I understand it seems that this won't be prioritized as of now since the label is "S-needs-mentor" and not "S-accepted"? Should I wait with my PR or do I still post it?

Thanks for checking in @skogseth! I think it depends on how complex of a change it looks like it might be. Unfortunately artifact-dependencies hasn't been a very high priority for us, and when reviewing PRs it can take a lot of time to bring back all the context of how it works since we aren't actively working on it. If it is a relatively simple change, feel free to open a PR and we can discuss it more. Just make sure it has a test, preferably as the first commit and then include the fix in the second commit to show how the test changes.
If it is a complex change, I'm reluctant to encourage anyone to put too much effort in since the PR might sit for a long while.

Okay, I see. It’s a very simple fix, I think it was less than 10 LoC, so I’ll open a PR. But I’ll make sure to include tests, and also try to include any relevant context in the description. It’s also fine by me if the PR ends up sitting unreviewed for a long time.


[Snyk] Upgrade com.fasterxml.jackson.datatype:jackson-datatype-jsr310 from 2.12.3 to 2.13.2

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade com.fasterxml.jackson.datatype:jackson-datatype-jsr310 from 2.12.3 to 2.13.2.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 8 versions ahead of your current version.
The recommended version was released 3 months ago, on 2022-03-06.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

close in favour of https://github.com/dockstore/dockstore/pull/4919


Dragging the collapsed cursor doesn't match native

When dragging the collapsed cursor in a text field on Android and iOS, 1. the loupe does not appear and 2. edge scrolling doesn't work.  This is referring to dragging the cursor itself, not dragging the collapsed selection handle (which does work on Android and doesn't exist on iOS).

Scenario
Dragging the collapsed handle
Dragging the cursor

Flutter on Android
✅
❌

Flutter on iOS
n/a
❌

Steps to reproduce

Run any app with multiple lines of editable text, such as the one given below.
Tap to place the cursor.
Perform a drag gesture on the cursor.

Expected: The cursor follows the drag, the loupe appears, and edge scrolling works.
Actual: The cursor does follow the drag, but the loupe doesn't appear, and scrolling off the edge causes the cursor to stop following the drag instead of scrolling.

Repro code
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final TextEditingController _controller = TextEditingController(
    text: 'Lorem ipsum dolor sit amet,\nconsetetur sadipscing elitr,\nsed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,\nsed diam voluptua.\nAt vero eos et accusam et justo duo dolores et ea rebum.\nStet clita kasd gubergren,\nno sea takimata sanctus est Lorem ipsum dolor sit amet.',
  );

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            TextField(
              controller: _controller,
              minLines: 4,
              maxLines: 4,
            ),
          ],
        ),
      ),
    );
  }
}

CC @Renzo-Olivares, you mentioned that this was probably caused by your tap and drag work.

This looks its the expected behavior on native iOS and Android. I tried in iMessage and the cursor will not follow the drag unless the drag begins on the cursor itself. If it doesn't the TextField just scrolls up and down.

On native Android I'm noticing that scrolling up and down, the cursor doesn't exactly move with the drag but it is placed somewhere in the current visible text view.


Test coverage: Added coverage file locally and codecov in CI

Signed-off-by: Shay Nehmad<EMAIL_ADDRESS>
Partially Fixes internal RecoLabs Jira ticket RND-2650.
Proposed Changes
See commit.
Checklist

[ ] Does it work? Share logs/screenshots if relevant.
[ ] Does CI pass?
[ ] Have you read the contribution guide?

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@7002b3f). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #3   +/-   ##
=======================================
  Coverage        ?   90.44%
=======================================
  Files           ?        6
  Lines           ?      136
  Branches        ?        0
=======================================
  Hits            ?      123
  Misses          ?       13
  Partials        ?        0

Continue to review full report at Codecov.

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


603: Always generate secondary instance for selects

Closes #603
Interesting git history from 2012: a change to itemsets for everything, then reverted the next day for backwards compatibility.
Why is this the best possible solution? Were any other approaches considered?
Discussed in #603 and references. Lots of changes required but generally explained in commit messages or new docstrings.
What are the regression risks?
Risk that some XForm consuming apps may rely on selects not always generating itemsets. Risk that since there are a lot of code changes there may be bugs, although tests were added / updated.
Does this change require updates to documentation? If so, please file an issue here and include the link below.
It's not a user-facing so probably not.
Before submitting this PR, please make sure you have:

[x] included test cases for core behavior and edge cases in tests
[x] run nosetests and verified all tests pass
[x] run black pyxform tests to format code
[x] verified that any code or assets from external sources are properly credited in comments

Interesting git history from 2012: a change to itemsets for everything, then reverted the next day for backwards compatibility.

There are three reasons we've discussed:

Enketo's support for secondary instances was limited at the time (https://github.com/XLSForm/pyxform/issues/203#issuecomment-391832736). I can't think of a client or server that wouldn't support them fully now.
Some folks have analysis pipelines that depend on internal choices. This might be painful but it's hard to estimate the impact.
Injecting an other choice in a secondary instances to support or_other feels very weird. That said, it won't look any different from an XLSForm user's perspective. The longer-term goal is to support proper open selects (https://github.com/XLSForm/pyxform/issues/203#issuecomment-541936512)

Of those, I think the second point has the highest risk. We've has a post on the forum announcing this change for a year, though, so hopefully folks building downstream tools have had time to adapt.
Have you looked at or_other yet? I think for now it makes sense to inject an other choice.

sorry, I only just noticed this the other day (I get spammed by so many git updates I tend to tune them out... :-( Would it be possible to add a commandline option to continue to generate 'inline' select option when desired? I do actually currently rely on them because I havent completed parsing secondary instances in my (iOS) XForms parser yet. And given it is such a breaking change, it might still be nice to still support it (as deprecated), even if you have you now explicitly enable it via said option. Otherwise I guess I'll have to fork the current version and use that in the interim.

@lognaturel there's a few more translations test to update, then the last implementation thing to look at should be or_other. The search() appearance now generates an itemset - unrelated to this PR (before and after), search() works in Collect but not Enketo.

More conversation with @tiritea on the forum.

The search() appearance now generates an itemset - unrelated to this PR (before and after)

Really. And not an itemset AND static choices, only an itemset? I could have sworn I checked that as part of my comment long ago. Well, that makes that easy at least.

search() works in Collect but not Enketo.

Yes, that's right.

@lognaturel I meant:

The search() appearance now generates an itemset (due to this PR)
unrelated to this PR (before and after), search() works in Collect but not Enketo.

Got it, thanks!

@lognaturel ready for review. It's covering the cases mentioned in #603, and any tests that failed as a result of code changes. I haven't combed through every test case though, e.g. in case there's some way to avoid generating itemsets.

Finally spending some focused time on this after speaking to @lindsay-stevens about it at the ODK Summit. We would like to release this by mid-August at the latest.
My review checklist:

[ ] Verify impact on some real forms

WHO VA: 990kb before, 593kb after (va_before_after.zip). Tried on client, no obvious issues. Central doesn't flag any schema change. Skimmed diff which looks as expected.

[ ] or_other
[ ] translations

@lognaturel thanks for the review! I have responded to the review comments.
About the Enketo issue, I don't see where the pyxform output formatting could cause this. There's no spacing added to the output e.g. near the jr://images/ values, or the coded values in the itemsets. Maybe there is a different code path in Enketo for looking up labels via jr:itext(itextId) + itemset vs. directly e.g. jr:itext('/widgets/grid_test/a:label')"? If Collect is not doing the spacing thing then that also points to an Enketo issue.

I have filed Enketo issues: https://github.com/enketo/enketo-core/issues/987, https://github.com/enketo/enketo-core/issues/988
The first is bad but I don't think it's bad enough to block merge. We can communicate the issues and encourage platforms that use pyxform and Enketo to update both at the same time. I think that we will release this as pyxform 2.0 because there is a compatibility/interface change.

We've identified a number of Enketo bugs as we have done quality assurance on this change. We're holding release until we can resolve those.

All Enketo bugs we know about are fixed! 🎉
But now a user has reported this strange error. I can reproduce it and can't reproduce on v1.12.1. @lindsay-stevens could you please take a look?

@lognaturel Great news about Enketo! I have opened a new PR to fix this error, which occurs when using or_other + translations + group or repeat.


--title - option for search manga on the site

There is a search of all providers.
If the provider has a search() method implemented, use it to search the site.
Questions:

Should manga-py stop after the first manga found?
Should manga-py stop after the first successful provider?
Is it possible to specify several options? For example, download the found manga 1, 2, 5?
Do I need to keep a search history (local)?
Do I need to have an online base of links formed by users? (Fully automated and anonymous)

I would like to know your opinion.
Expected answers:

No
No
Yes
Yes
Maybe

Progress:

[x] Add --title argument.
[ ] Add parsing functional.
[ ] Testing

This is a good idea, but it adds another level.
That is, in this case, you will still need to parse the output and run manga-py for each found option.
While on the other hand, it adds more freedom.
Initially, I thought to make a choice on the id of the found option:
For example:
~:/ manga-py https://mangalife.us --title isekai --search-limit 6

Find results. Please select your id:

1) https://mangalife.us/manga/Moto-Saikyou-No-Kenshi-Wa-Isekai-Mahou-Ni-Akogareru
2) https://mangalife.us/manga/Kuro-No-Shoukanshi
3) https://bato.to/series/64696
4) https://bato.to/series/69445

3 <Enter>

Starting https://bato.to/series/64696

.... processing

Anyway, i definitely like this option and I want to try to implement it.
But the option with json is very good. Thanks for the idea!
Perhaps it will look like this:
manga-py search "manga title" --search-limit 6 <other options>

In this case, the loading of chapters will be as follows:
manga-py download http://manga1 http://manga2 <more urls> <options>

Work with database:
manga-py database <options>

How do you like that? :-)

Can you tell more about the database?
Could it be done like this?:
manga-py --title isekai --search-limit 6 --output-json > isekai_database.json
$EDITOR isekai_database.json # Delete the lines I don't want to download
manga-py download --input-json --the-rest-of-the-options < isekai_database.json

Wait a month for more chapters and download them whith the same file isekai_database.json
manga-py download --input-json --the-rest-of-the-options < isekai_database.json

Could it be done like this?:
...
Wait a month...

Yes it is possible.
But if you make the first parameter optional, it will default to download.
This is more reasonable, in my opinion, because not so much breaks the logic that exists now.
i.e
manga-py search isekai --search-limit 6 --output-json > isekai_database.json
# ...
manga-py download --input-json --the-rest-of-the-options < isekai_database.json
# OR:
manga-py --input-json --the-rest-of-the-options < isekai_database.json

Can you tell more about the database?

See here
https://github.com/yuru-yuri/manga-dl/blob/master/manga_py/libs/db.py#L25
As you can see, it's pretty simple (at least for now).
The data that will be saved:

manga url,
the name,
the file storage location - path (--destination),
active (this is needed for correct operation --update-all),
the latest_chapter (This is done not to check the presence of chapters on the disk. This will continue to download only new chapters even if you delete the existing ones),
other data (the internal data of the application is stored here: the cookies received on the site, the user-agent that was used during the last work, the arguments with which manga-py was launched. The last thing is necessary for the proper operation of --update-all)

If something is not clear, I will try to justify this decision.


Driftctl completion command

Q
A

🐛 Bug fix?
no

🚀 New feature?
yes

⚠ Deprecations?
no

❌ BC Break
no

🔗 Related issues
#129

❓ Documentation
yes

Description
Completion command for bash, zsh, fish and powershell !

@sjourdan Can you test fish integration on your side using this PR branch ? ZSH support looks good on my side

@sjourdan Can you test fish integration on your side using this PR branch ? ZSH support looks good on my side


Merge refs/heads/v-1.5.48-beta into alpha

Merge refs/heads/v-1.5.48-beta into alpha

This PR has been merged into alpha and tagged as 1.5.49-alpha-202303241955. Thanks for your contribution!


Fix build issues on Mac OS X

Original pull request by Volker Enderlein (Bitbucket: VolkerEnderlein, GitHub: VolkerEnderlein).

This PR fixes the build issues that arise on the current Coin3D using CMake as a build system. It also fixed issue #156
Fixed compilation issue on Mac OS X because of not selecting a type for SIM_TIMEVAL_TV_USEC_T.
Added missing private classes to some all-xxxxx-cpp files (surprisingly ./configure used the all-<actions,...>-cpp.cpp files for compilation on Mac OS X)
I checked on Windows MSVC 2015, Ubuntu GCC 7.3 and Mac OS X 10.12.6 with XCode 9.2.
Comment welcome on this PR.

Original comment by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).

Looks good to me.


onPendingDismiss method not present in current build

Hi,
Thanks for the awesome library. I have been using your library for some time now and saw some new functions on GitHub page. I check for gradle build version of your library which still is old one (1.0), so I checked for the new functions on your page like onPendingDismiss which not available in the current version.
Have you updated your repository or is there something else I have to do?

Have you got any solution over this? I want to use this library but can not because of same issue.

i have same issue as above

i think the dependancy is not updated that's why, actually I've clone the library and its is working fine all the methods and all.


Added dtm_sweep.py

Created DTM sweep test based on conn_sweep.py framework.

The SVD action will fail if the source branch of a PR is from a fork. There's a fix for this merged into main already, but this check isn't important for this PR as there were no register or SVD files that were changed.

@EricB-ADI @kevin-gillespie

@kevin-gillespie It is effectively the same as conn_sweep_rsl15. @tim-magnusen did you plan on using any non MAX32 boards as a master such as a nordic? If you want I can add an option to use the vendor specific tx test instead of the vendor specific end test, so the nordic boards will still work.

@tim-magnusen The conn_sweep_rsl15 also uses DTM, it was named incorrectly. That will be changed soon. For now, I will merge this so you can use it. I will integrate options to use the end test vendor specific command so you can get more verbose information for receiver testing on MAX32 boards.


[Enhancement⚡] Optimize PullResult msg_found_list with Option

Before Creating the Enhancement Request

[X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary
No response
Motivation
No response
Describe the Solution You'd Like
No response
Describe Alternatives You've Considered
No response
Additional Context
No response

I'll handle this.

@XmchxUp sure


relay issue

import json
import ssl
import time
from nostr.relay_manager import RelayManager

private_key = PrivateKey()
public_key = private_key.public_key

senderPrivateKey = PrivateKey()
senderPublicKey = senderPrivateKey.public_key

receiverPrivateKey = PrivateKey()
receiverPublicKey = receiverPrivateKey.public_key

sharedSecretPrivate = PrivateKey()
sharedSecretPublic = sharedSecretPrivate.public_key

print(f"Private key: {sharedSecretPrivate.bech32()}")
print(f"Public key: {sharedSecretPublic.bech32()}")

relay_manager = RelayManager()
relay_manager.add_relay("wss://nostr-pub.wellorder.net")
relay_manager.add_relay("wss://relay.damus.io")
relay_manager.open_connections({"cert_reqs": ssl.CERT_NONE}) # NOTE: This disables ssl certificate verification
time.sleep(1.25) # allow the connections to open

while relay_manager.message_pool.has_notices():
  notice_msg = relay_manager.message_pool.get_notice()
  print(notice_msg.content)

relay_manager.close_connections()```

When I run this, I'm getting the following error:

Traceback (most recent call last):
  File "/Users/august/Documents/Nostr/python-nostr/nostr.py", line 5, in <module>
    from nostr.relay_manager import RelayManager
  File "/Users/august/Documents/Nostr/python-nostr/nostr/relay_manager.py", line 11, in <module>
    from .relay import Relay, RelayPolicy, RelayProxyConnectionConfig
  File "/Users/august/Documents/Nostr/python-nostr/nostr/relay.py", line 33, in <module>
    @dataclass
     ^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 1221, in dataclass
    return wrap(cls)
           ^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 1211, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 959, in _process_class
    cls_fields.append(_get_field(cls, name, type, kw_only))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 816, in _get_field
    raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'nostr.relay.RelayPolicy'> for field policy is not allowed: use default_factory

Any ideas?

did you clone the git repo, and used that?
if that's the case, you need to install it using pip: pip install nostr

I cloned the git repo but have also ran pip install nostr (both before I ran into this issue)

I cloned the git repo but have also ran pip install nostr (both before I ran into this issue)

it seems like you're still importing the one you cloned from git. Try removing both before installing the one from pip again

and then how would I change the import statements to still work properly?

and then how would I change the import statements to still work properly?

just do import nostr like you normally would

Yeah that is what I have but it's now saying "NameError: name 'PrivateKey' is not defined"

Yeah that is what I have but it's now saying "NameError: name 'PrivateKey' is not defined"

you sure you're importing everything correctly?
this is what my code looks like:
from nostr.key import PrivateKey
from nostr.filter import Filter, Filters
from nostr.event import Event, EventKind
from nostr.relay_manager import RelayManager
from nostr.message_type import ClientMessageType

it seems like the github version and actual pypi version differ a lot, i miss the react functionary and other stuff too

Just swapped it to be how you have it and now I'm getting 'ModuleNotFoundError: No module named 'nostr.key'; 'nostr' is not a package' which is why I did the git clone option instead originally.

weird, can you do pip install nostr? If it says it already exists something is wrong with your python

Says everything is already satisfied.

try python3 -m pip install nostr

Just ran that. Getting the same issue still
  File "/Users/august/Documents/Nostr/nostr.py", line 4, in <module>
    from nostr.key import PrivateKey
  File "/Users/august/Documents/Nostr/nostr.py", line 4, in <module>
    from nostr.key import PrivateKey
ModuleNotFoundError: No module named 'nostr.key'; 'nostr' is not a package```

i see why, you named your file nostr which confuses Python. Rename it and it should work

it's trying to import the classes from your file, because it think that that is the module

yep wow that fixed it. Thanks for helping out so much!

cheers!