"superclass mismatch for class Schema" if running with ActiveRecord <IP_ADDRESS>

nulldb-adapter is configured as primary database for my rails app in database.yml.
If using nulldb-adapter with rails <IP_ADDRESS> / active_record <IP_ADDRESS> it will raise this error with the following stack trace:
TypeError (superclass mismatch for class Schema)
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activerecord-nulldb-adapter-0.3.5/lib/nulldb/extensions.rb:36:in <module:ActiveRecord>' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activerecord-nulldb-adapter-0.3.5/lib/nulldb/extensions.rb:34:in'
org/jruby/RubyKernel.java:944:in require' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:inblock in require'
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:257:in block in load_dependency' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:662:innew_constants_in'
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:257:in load_dependency' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:inrequire'
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activerecord-nulldb-adapter-0.3.5/lib/active_record/connection_adapters/nulldb_adapter.rb:1:in <top>' org/jruby/RubyKernel.java:944:inrequire'
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in block in require' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:257:inblock in load_dependency'
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:662:in new_constants_in' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:257:inload_dependency'
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in require' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activerecord-nulldb-adapter-0.3.5/lib/active_record/connection_adapters/nulldb_adapter.rb:10:in(root)'
/Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/connection_specification.rb:1:in (root)' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/connection_specification.rb:174:inblock in spec'
org/jruby/RubyBasicObject.java:1647:in instance_eval' /Users/ramm/.rvm/gems/jruby-<IP_ADDRESS>/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_handling.rb:53:inestablish_connection'

Same issue here on Rails 5

Think I found the issue;
In Rails 4 and earlier the Schema class inherited from the Migration class.
In Rails 5 this has changed to Migration::Current. Locally modifying the Gem confirmed this fix.
I ask the authors if they would want to see this as a pull request? If so create a seperate branch for rails 5 or include some conditional logic to apply the correct base class depending on the Rails version used.

Hot fix (worked for me before update to 0.3.5):
gem 'activerecord-nulldb-adapter', github: 'mnoack/nulldb', ref: 'aa36e3c'

@rammpeter @edwardmp @merqlove The rails5 branch has been merged, and release as 0.3.6, feel free to use the main gem rather than forks again and hopefully as an additional review we can continue to maintain compatibility with future rails versions.

@mnoack this problem has resurfaced for me in combination with Rails 5.1. Submitted PR to fix.

I am also seeing this issue with activerecord 5.1.1 and activerecord-nulldb-adapter 0.3.6.

@synthead can you point your Gemfile to the master branch and see if there's any issues.
I'm just awaiting a bit more feedback from users before I release the next version which supports rails 5.1, rails-edge (5.2).

@mnoack Please correct this problem as soon as possible. The project on Rails 5.1 refuses to run:
/Users/Colibri/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'activerecord-nulldb-adapter'. (Bundler::GemRequireError)
Gem Load Error is: superclass mismatch for class Schema

@afuno I was holding off so someone with Rails 5.1 could just confirm that changes that had been done work.
Since I haven't got this and it's effecting enough people I've just made a release anyway and we'll find out.
Thanks for reporting the issue and let me know if there are any issues in the latest release (0.3.7)

@synthead @edwardmp @merqlove @rammpeter - 0.3.7 has been released with rails 5.1/5.2 support. Let me know if there are any issues.

@mnoack sorry forgot to give feedback earlier. Seems it works great, good job.


Binding on <select> makes a selected disabled option get skipped

The js doesn't seem to matter, just the view:
<select value.bind="mySelection">
  <option value="showthis" disabled selected>Show This</option>
  <option value="dummyoption">dummyoption</option>
  <option value.bind="item" repeat.for="item of anArray" >${item}</option>
</select>

In the above code, the selected item ("Show This") is skipped, and the dummyoption is selected instead, which is clearly not our intent.
If you remove the value.bind="mySelection" from the <select>, the correct behaviour occurs, but of course then we don't get the value available anywhere.
Using<EMAIL_ADDRESS>

As discussed in z-brooks' PR, the best practice for this is to set the <select value.bind variable to the value of the option you want to be selected (in my example: "showThis"), in your VM, and don't use selected in the HTML.


Add configuration option to disable auto-start

We enabled auto-start in v0.4.5, but to keep @Mpdreamz happy, we need a way to disable this :)

Some anecdotal back story why I think this is important
Back in december 2013 I spiked a real world application for 3 weeks in a team of two trying to develop a .NET website completely on our macs. Both of us were fullstack developers but the other guy being more a ruby dev took on the frontender role so he spent most of his time doing frontendy stuff.
In such a setting the frontender is not completely isolated from c# (razor, small nancyfx module/mvc controller stuff) but doesn't always need the noise or added weight of omnisharp. Emphasising weight here because even if there is none, perceived weight plays a role too.
In the case of that project we already had a watcher in place to recompile on the fly and alert on the console when something was wrong and for the frontend dev this was enough or he was deliberately remodelling the razor views and in those cases it'd be nice to turn the whole machine off, do your shit, and turn it back on.


android:minSdkVersion="23"

android:minSdkVersion="23"???? what about all other 90% users?

SDK version 23 is "Marshmallow". minSdkVersion 23 cover Android 10 to Android 6.0. Can you find market share below android 5.0(Lollipop)?


Option to pull from Sonarr V3 release profiles

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I've noticed when running a preview for a sonarr sync it was pulling from the Sonarr V4 release profiles: https://trash-guides.info/Sonarr/sonarr-collection-of-custom-formats/#web-tier-01 (tier 02 and 03 as well) instead of https://trash-guides.info/Sonarr/Sonarr-Release-Profile-RegEx/#p2p-groups-repackproper-release-profile for Sonarr V3, would really appreciate a way to pull from the guide made for V3.

Sonarr v4 does not have release profiles. It has custom formats.
The preview option will show you what you're syncing. So if you're using Sonarr v3 + release profiles, you'll see release profiles. If you're using Sonarr v4 + custom formats, then you'll see custom formats.
You need to use the right version of Sonarr depending on if you want to sync release profiles or custom formats.
In the future, please use the discussions tab at the top for questions, or if you feel there is a defect, use the Bug issue template instead of requesting a feature.

Sonarr v4 does not have release profiles. It has custom formats.
The preview option will show you what you're syncing. So if you're using Sonarr v3 + release profiles, you'll see release profiles. If you're using Sonarr v4 + custom formats, then you'll see custom formats.
You need to use the right version of Sonarr depending on if you want to sync release profiles or custom formats.
In the future, please use the discussions tab at the top for questions, or if you feel there is a defect, use the Bug issue template instead of requesting a feature.

My apologies. I'll reply here since I've already opened this, but it does seem to be pulling from the custom formats section and while it does add to release profiles on Sonarr V3 the scores/groups etc are clearly from the V4 custom formats as you can see here:

I'm sorry, but there's nothing I can do without logs and other information that the bug template requests users submit. If you'd like me to look into this further, please resubmit as a bug and follow the template.


git status takes a lot of time to complete

The first git status command on the just cloned repository took dozens of minutes to complete. I'm assuming it was downloading file info.
Also, now that it is completed and there are no more "querying" of files, it still takes from 30 seconds to 3 minutes to complete.
Is this expected?
Other commands like diff, checkout, commit are instantaneous, but stash also takes a lot of time to "create" and "pop".
This is part of the log of .gvfs/gvfs_mount_process from the first status after the clone:
[2018-06-08 17:03:42] TryAcquireLockExternal {"LockRequest":"git status (44728)","IsElevated":false,"Result":"Accepted"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":1,"ObjectIdJson":"[\"90FD561DE15837325B219DD4A1099FBB5E9C9084\",\"862964FC71CB02BD63D16B362049CBAF453B888B\"]"}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":1,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0023","responseWaitTimeMS":"221.4573"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":2,"ObjectIdJson":"[\"CCC5C1354A3459879973BEA5AD69057132784D56\"]"}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":2,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0019","responseWaitTimeMS":"60.8179"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":3,"ObjectIdJson":"[\"35FC9EF183CB1CEF4008AE6B4E090BA8F4B890EB\"]"}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":3,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0009","responseWaitTimeMS":"59.7861"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":4,"ObjectIdJson":"[\"C638B7DA3552AFB5F0891A5C266DDB82F9842C71\",\"F830E8FCAF8D5622F208141431835D6947BD2261\",\"1CAEA0B454403DA520399C0BBD579F04EAEA91EB\"]"}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":4,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0022","responseWaitTimeMS":"57.3452"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":5,"ObjectIdJson":"[\"CA89152FFA16AF67217FA87245AA661DF530C527\"]"}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":5,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0012","responseWaitTimeMS":"64.9020"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":6,"ObjectIdCount":19}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":6,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0018","responseWaitTimeMS":"59.0417"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":7,"ObjectIdCount":12}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":7,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0022","responseWaitTimeMS":"60.8538"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":8,"ObjectIdJson":"[\"6977E6D391E7478F2CDFB51B6757109C74F56B9C\",\"67FC7245F841084A6AE2F9A28755D08B6825DF64\",\"2D5C59DDE19CB4F094F821EA59F3A68BD03E6B9E\",\"62662DFF790268D466F9CDCC7C37FB0082E733BF\",\"A6EC33F9DF1DD7DC9C61FA63CFBF439527C82D6F\",\"C5F7A3D7C716E1E66D2C5B125677468987D0413A\",\"0EB4A4449B2B35048D0461AFB994DAD6E28206AF\",\"644F8FDF0BB96DF53F934E899E3D607B706CA1CE\"]"}
[2018-06-08 17:04:05] NetworkResponse {"RequestId":8,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0021","responseWaitTimeMS":"58.9836"}
[2018-06-08 17:04:05] QueryFileSizes {"RequestId":9,"ObjectIdJson":"[\"018D47BE130CC631995BED597F90C7A2A20118EA\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":9,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0026","responseWaitTimeMS":"60.4187"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":10,"ObjectIdJson":"[\"2BB6D92BD5F53C008837A1FBCDF0E19ECD8C5238\",\"A34641823103BFA2C83CBF2471B53FBAA62A3288\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":10,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0010","responseWaitTimeMS":"57.4042"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":11,"ObjectIdJson":"[\"21019E073CE785E037C7FD0B6B8C9BB0AE5469C9\",\"B088579AE8A65AD60575F25578A0D4CC2EDB02E4\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":11,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0010","responseWaitTimeMS":"68.6963"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":12,"ObjectIdJson":"[\"29F7EBCFAE3A1057BB6340D2D5ECA09C25B9AC0A\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":12,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0021","responseWaitTimeMS":"59.9183"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":13,"ObjectIdJson":"[\"E7DD55CD194452614B2517727E6C0BF0DE140BE4\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":13,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0009","responseWaitTimeMS":"64.2734"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":14,"ObjectIdJson":"[\"488553B2E515A4FA6AF3AC7CDEDDE4E0703D23D4\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":14,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0010","responseWaitTimeMS":"58.0133"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":15,"ObjectIdJson":"[\"E03235BBE75D89748A32A5C2AC291AEF960AEA3A\",\"001B4A2D509DA9DA067154C3D3A8D00D2E61D131\",\"5743F4077F76005A948C41C2DB40EC8D585ABAD0\",\"D426652A1F7FBAFA0D3C4CAF9BAA5629A2503CA6\",\"733595C9FBADA82FDA3F6EF7D57758B281F0FA61\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":15,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0012","responseWaitTimeMS":"60.3723"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":16,"ObjectIdJson":"[\"E1B8979770FD6F0B2939A8AC40513F1811705542\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":16,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0013","responseWaitTimeMS":"56.5020"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":17,"ObjectIdJson":"[\"02838865A1489D9D564A01AEE2AEFE74D7A16D3D\",\"9EF3D90D24798DAF3666CBA507B136A593A888BB\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":17,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0011","responseWaitTimeMS":"65.1446"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":18,"ObjectIdJson":"[\"A802BE2D45306B88D2A7F3A0AC322489309561A0\",\"35ED62EAE1A136EDD4AA5F218AD2423552F9FD5D\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":18,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0027","responseWaitTimeMS":"61.8677"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":19,"ObjectIdJson":"[\"5BDCD2B90B1E2DECB9F6FDADBEA7A4BE57E75887\",\"0D981B995AD79000219E31A0F68DD1A5AC826B45\",\"535CA4ABF88BD7E602F9A461AB190937A95EF28C\",\"B6F1B0673D8046D462F3B0F7C312452893341FF6\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":19,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0017","responseWaitTimeMS":"82.9472"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":20,"ObjectIdJson":"[\"509CDC82299144F230BDCB378999D1FC3A5CC5F6\",\"8DAD2AB9D345B83C00026EB4F1A3BE52A480D22E\",\"FD9929E1ABB819B8F9441876472272E0A2F68F19\",\"6F4B48A028045EC33C7A2EB95DECEF1C7C800620\",\"11435235E779AA4D17859B832FEBA88C5A5AF467\",\"C63369FCBCD9F63F6367F24A555E724FA441F141\",\"DFFD0CC913159C0DDF91ED5494FB202B8FE8BC9D\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":20,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0022","responseWaitTimeMS":"50.9222"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":21,"ObjectIdJson":"[\"CEE1FD9A430991DFAD38A083258F24B77829023C\",\"64B8FCA16ADAC1A9CEDBD7AF0D969A626B463DE8\",\"682F6EA8E2EAF4BAA2AD4C1DE7B7EB04B7CE2F29\",\"8CD8D1E4057C874EE807A8554F19933ACDAD0962\",\"BA00DE79913DCEE45B31BFAEAD0061FD10DF7C7F\",\"A2731BBCEAAE07CFCB5A397531E091CFE39B636C\",\"FC45376994667E42FDAD08E8480B42FE56488E57\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":21,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0022","responseWaitTimeMS":"55.0667"}
[2018-06-08 17:04:06] QueryFileSizes {"RequestId":22,"ObjectIdJson":"[\"F4912992D6DF0E66BBD85AB671F3E05558CF4705\"]"}
[2018-06-08 17:04:06] NetworkResponse {"RequestId":22,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0014","responseWaitTimeMS":"57.7389"}

This is part of the log of .gvfs/gvfs_mount_process as of now:
[2018-06-08 17:44:54] TryAcquireLockExternal {"LockRequest":"git status --short --branch --untracked-files=all (13784)","IsElevated":false,"Result":"Accepted"}
[2018-06-08 17:44:55] QueryFileSizes {"RequestId":10,"ObjectIdJson":"[\"36E916C35BFEA753C67D1D47E8E3F4BF3CBFC559\"]"}
[2018-06-08 17:44:55] NetworkResponse {"RequestId":10,"availableConnections":4,"CacheName":"","StatusCode":200,"ContentType":"application/json","connectionWaitTimeMS":"0.0022","responseWaitTimeMS":"78.3595"}
[2018-06-08 17:45:42] ReleaseExternalLockRequested
[2018-06-08 17:45:42] ReleaseExternalLock {"CurrentLockHolder":"git status --short --branch --untracked-files=all (13784)","IsElevated":false,"EnlistmentId":"145f5b5eb07840ccba346ab2e6031b4d","Result":"Released","DurationMS":48307,"LockHeldExternallyMS":48307,"ParseGitIndexMS":0,"UpdatePlaceholdersMS":0,"BlobsDownloaded":0,"BlobDownloadTimeMS":0,"CommitsAndTreesDownloaded":0,"CommitsAndTreesDownloadTimeMS":0,"SizeQueries":0,"SizeQueryTimeMS":0}

Context:

Repository size: ~ 350k files, 90k folders
Windows version: 10 Pro x64 (1803)
Git version: 2.17.0.gvfs.1.preview.7
GVFS version: 1.0.18115.1

Thanks in advance!

That is definitely not expected, a first status right after clone should be on the order of a couple seconds.
The log shows that status seems to be crawling through the entire repository. I suspect this is a bug caused by version mismatches between GVFS and Git. Would you mind trying this again, after installing the Git version attached to the GVFS release? https://github.com/Microsoft/GVFS/releases/tag/v1.0.18115.1
Note that the release has Git version 2.17.0.gvfs.1.preview.3, and yours is 2.17.0.gvfs.1.preview.7 (thanks for including those details!).  We have a fix already in progress to make GVFS enforce an exact version check on Git rather than a minimum version check, to prevent exactly this sort of issue.

Hi there!
I installed git version 2.17.0.gvfs.1.preview.3, and git status works almost instantaneously. Thank you very much!
By the way I tested cloning again the repo and the first status was as fast as the already cloned repo was.

Glad to hear that worked!


Loading a pretrained tensorflow.js model into ml5js error

I dont know if this is at all possible, but I have trained my own mobile-net model on two classes in keras. I then converted this model into tensorflow.js and made sure the weigths file was in .bin format to load them into ml5js. It still doesnt seem to work. I even added the "ml5-specs" in the json-file of my model. Now im stuck with this error:
"Uncaught (in promise) TypeError: Cannot read property 'load' of null
at e. (index.js:51)
at x (runtime.js:62)
at Generator._invoke (runtime.js:296)
at Generator.e.(anonymous function) [as next] (https://unpkg.com/ml5@0.1.2/dist/ml5.min.js:106:330884)
at a (asyncToGenerator.js:17)
at asyncToGenerator.js:15
at new Promise ()
at new t (_export.js:36)
at e. (asyncToGenerator.js:14)
at e. (index.js:52)"
Can only ml5js models be loaded into ml5?

We would like this to be possible for sure! Did you try with 0.1.3. It's more likely that you'll need to load your model with the ml5.ImageClassifier() directly (I don't recall if the API will accept a full path but we should add that if not). The FeatureExtractor classifier always passes the image through the original MobileNet model first.

I get the same error with 0.1.3.
When loading the model, i did:
classifier = ml5.imageClassifier("./mobile/model.json", video, modelReady);
However, when first loading ImageNet, and then using a load button to load a model from files, it accepts the model. But now it says: "Error: Mobilenet Feature Extraction has not been set to be a regressor."
Is that because I just have two classes?
When setting it to regression, then the classify-function returns a null error.
TypeError: Cannot read property 'predict' of null
at Mobilenet.js:293
at tf-core.esm.js:17
at e.scopedRun (tf-core.esm.js:17)
at e.tidy (tf-core.esm.js:17)
at Object.t.tidy (tf-core.esm.js:17)
at e. (Mobilenet.js:289)
at x (runtime.js:62)
at Generator._invoke (runtime.js:296)
at Generator.e.(anonymous function) [as next] (https://unpkg.com/ml5@0.1.2/dist/ml5.min.js:106:330884)
at a (asyncToGenerator.js:17)


orientation type UNKNOWN lock  is it Possible?

I want UNKNOWN orientation is lock how can we do it ? Any one

Can you expand on this @lavarajallu? Not sure I understand what you're asking.

Closing for now


Gh 140 proxy store

Current coverage is 61.16% (diff: 37.00%)

No coverage report found for develop at cb43987.

Powered by Codecov. Last update cb43987...18391ea

I've addressed the review comments - with the exception of the 400/500 status one

The 400/500 status will be address as part of issue gh-656


404 Not Found response: 404 page not found

Thank you for building this library!
When I try to use
$db = $service->initializeDatabase('categories', 'id');
$newCategory = ['categoryname' =><EMAIL_ADDRESS>$data = $db->insert($newCategory);
I get the error
Client error: 'POST https://MY_URL_PROJECT.supabase.co/auth/v1/categories' resulted in a '404 Not Found' response: 404 page not found
Do you have any suggestion what might cause this?

Hi BnewVanZuarez,
What base URL are you using? There are 2 different parameters. One for authentication (auth) and one for the database (rest). Look:

Auth:
php $service = new PHPSupabase\Service(   "YOUR_API_KEY",    "https://aaabbbccc.supabase.co/**auth**/v1/" );

-REST
php $service = new PHPSupabase\Service(     "YOUR_API_KEY",      "https://aaabbbccc.supabase.co/**rest**/v1/" );

I See, I didn't read the documentation carefully, thank you

I am also having a problem with this. If I understand correctly, the same Service instance must be used for auth and database manipulation, or else the bearer tokens don't match. How do we switch the base URLs for each use?

Hi Alexpi,
Generally you will have a page to do the authentication, and therefore you will create an instance of the service class using the auth endpoint. After authenticating, you will save the bearer token (in the session, for example) and then in the other pages you will create the instance of the service class according to your needs (generally, using the rest endpoint).
But anyway, I'll take your suggestion and add the setUrlBase method in future versions.
Thank you for your contribution

Hi @rafaelwendel,
I did what you describe roughly, and I am getting a 'new row violates row-level security policy for table' 403 error. I guess this is related to the setup of Supabase rules, and not your library. It's the first time I am using Supabase and I have to study more!
Thanks

Hi Alexpi,
You're right. The RLS (Row Level Security) is controlled by Supabase itself, according to the rules that you create within your own project.
Read more at: https://subase.com/docs/guides/auth/row-level-security


[7.x] Add baseUrl for IDE helper

It's not in alphabetical order.

Easily fixed.

PR author has disallowed maintainers to update the branch, so not so easily fixed. Please fix this and submit a new PR.

It's not in alphabetical order.

sorry, this cause of fixing conflict, but didn't notice that sort is not follow


[Bug]: Error with dts bundle enabled with multiple tsconfig includes

Version
System:
OS: Linux 6.11 Arch Linux
CPU: (16) x64 AMD Ryzen 7 5800U with Radeon Graphics
Memory: 2.49 GB / 13.50 GB
Container: Yes
Shell: 3.7.1 - /usr/bin/fish
Browsers:
Brave Browser: <IP_ADDRESS>
Chromium: 130.0.6723.116
npmPackages:
@rslib/core: ^0.0.15 => 0.0.15
Details
I tried to simplify the setup as much as possible, and ended up left with this:
With dts bundle enabled, a global type definition dependency with a monorepo setup, the build fails with a message that "path does not exist" .rslib/declarations/src/index.d.ts, (but the path .rslib/declarations/index.d.ts does exist).
I suspect the most relevant part is the tsconfig "include": ["src", "node_modules/@types"]? If uninstall the type package (which I'm not even using in this simplified repo) it works, probably because then "src" is consistently treated as the root path?
> rslib build

  Rslib v0.0.15

ready   Built in 0.04 s (esm)

  File (esm)       Size       Gzip
  dist/index.js    0.09 kB    0.09 kB

  Total: 0.09 kB (gzip: 0.09 kB)

start   Generating DTS... (esm)
ready   DTS generated in 0.53 s (esm)
error   API Extractor Error
error   Error: Error parsing the configuration object:
The "mainEntryPointFilePath" path does not exist: /home/albin/src/personal/rslib-dts-bug-repro-monorepo/packages/package/.rslib/declarations/src/index.d.ts
    at bundleDts (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/rsbuild-plugin-dts@0.0.15_@microsoft+api-extractor@7.47.11_@rsbuild+core@1.0.19_typescript@5.4.2/node_modules/rsbuild-plugin-dts/dist/apiExtractor.js:40:15)
    at bundleDtsIfNeeded (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/rsbuild-plugin-dts@0.0.15_@microsoft+api-extractor@7.47.11_@rsbuild+core@1.0.19_typescript@5.4.2/node_modules/rsbuild-plugin-dts/dist/dts.js:84:19)
    at async generateDts (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/rsbuild-plugin-dts@0.0.15_@microsoft+api-extractor@7.47.11_@rsbuild+core@1.0.19_typescript@5.4.2/node_modules/rsbuild-plugin-dts/dist/dts.js:116:19)
    at async process.<anonymous> (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/rsbuild-plugin-dts@0.0.15_@microsoft+api-extractor@7.47.11_@rsbuild+core@1.0.19_typescript@5.4.2/node_modules/rsbuild-plugin-dts/dist/dts.js:121:9)
error   Failed to build.
error   Error occurred in esm DTS generation
    at handler (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/rsbuild-plugin-dts@0.0.15_@microsoft+api-extractor@7.47.11_@rsbuild+core@1.0.19_typescript@5.4.2/node_modules/rsbuild-plugin-dts/dist/index.js:61:57)
    at Object.call (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/@rsbuild+core@1.0.19/node_modules/@rsbuild/core/dist/index.js:5445:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async onDone (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/@rsbuild+core@1.0.19/node_modules/@rsbuild/core/dist/index.js:5613:9)
    at async Object.fn (file:///home/albin/src/personal/rslib-dts-bug-repro-monorepo/node_modules/.pnpm/@rsbuild+core@1.0.19/node_modules/@rsbuild/core/dist/index.js:5572:11)
/home/albin/src/personal/rslib-dts-bug-repro-monorepo/packages/package:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL<EMAIL_ADDRESS>build: `rslib build`
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.

Reproduce link
https://github.com/friday/rslib-dts-bundle-bug
Reproduce Steps

Check out the repo link and install pnpm
Run pnpm install or pnpm i to install the dependencies
Run pnpm run build

There should be an issue with our internal rootDir calculation which does not ignore declaration files that included in tsconfig.json. I will fix it later.


Change AndroidSoftInputMode has no effect

Describe the bug
When changing the AndroidSoftInputMode, neither SOFT_INPUT_ADJUST_PAN or SOFT_INPUT_ADJUST_RESIZE works
Code snippet
export default function ScreenExample({ navigation }: Props) {
  useEffect(() => {
    KeyboardController.setInputMode(
      AndroidSoftInputModes.SOFT_INPUT_ADJUST_PAN
    );
  }, []);

  return (
    <View style={{ flex: 1 }}>
      <View style={styles.inner}>
        <Text style={styles.heading}>Header</Text>
        <View>
          <TextInput
            placeholder="Username"
            placeholderTextColor="#7C7C7C"
            style={styles.textInput}
          />
          <TextInput
            placeholder="Password"
            placeholderTextColor="#7C7C7C"
            style={styles.textInput}
          />
        </View>
        <TouchableOpacity style={styles.button}>
          <Text style={styles.text}>Submit</Text>
        </TouchableOpacity>
      </View>
    </View>
  );
}

Screenshots
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/11976270/9184aeb0-3e2c-40a1-8ea3-5336df19f232
Smartphone (please complete the following information):

Device: redmi pro 8
Library version: 1.7.0

Hello @dayze
Actually it works. The thing is that once you've entered edge-to-edge mode - all resizing stuff will not be applied. I. e. if you wrapped app inside KeyboardProvider - app will behave like iOS does and will not resize the window on its own.
You can read more explanation in this issue - https://github.com/kirillzyusko/react-native-keyboard-controller/issues/198
I'm currently working on a solution in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/227 which gives you an ability to fallback to default resizes mechanism on demand.
Let me know if you have further questions or if you think that documentation should be somehow improved to make it more explicit 👀

Hello @kirillzyusko, thanks for the library btw 👌
Crystal clear thanks, waiting for the enabled feature to integrate inside android apps


added mappings for health facilities boundary

Coverage remained the same at 39.611% when pulling 58a438bd9f146dcd6914ed651788df790d099129 on NyakudyaA:fix-mapping into e2862c1d5793ac5f41af52f9a9467e56952dff72 on healthsites:develop.


Add support for validate via access token in kuberpult

access token is binary blob and can't be read by us


Embedding thumbnails in mp3 fails

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2022.10.04 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
When trying to convert e.g. the YT video referenced in the log output to an mp3 file, yt-dlp fails with this error message:
ERROR: Postprocessing:   Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 1280x720, q=2-31, 200 kb/s, -nan fps,
Both the mp3 and webp file are available though. But the thumbnail is not embedded and further processing fails due to the error exit code.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2022.10.04 [4e0511f] (pip) API
[debug] Python 3.8.14 (CPython 64bit) - Linux-5.15.74-0-lts-x86_64-with
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0.1 (setts), ffprobe 5.0.1
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1690 extractors
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=xI6dqImaQ50
[youtube] xI6dqImaQ50: Downloading webpage
======== Running on http://<IP_ADDRESS>:8081 ========
(Press CTRL+C to quit)
[youtube] xI6dqImaQ50: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
INFO:aiohttp.access:<IP_ADDRESS> [19/Oct/2022:12:34:20 +0000] "POST /add HTTP/1.1" 200 265 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0"
INFO:ytdl:downloading Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere]
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2022.10.04 [4e0511f] (pip) API
[debug] Python 3.8.14 (CPython 64bit) - Linux-5.15.74-0-lts-x86_64-with
[debug] exe versions: ffmpeg 5.0.1 (setts), ffprobe 5.0.1
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1690 extractors
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=xI6dqImaQ50
[youtube] xI6dqImaQ50: Downloading webpage
[youtube] xI6dqImaQ50: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] xI6dqImaQ50: Downloading 1 format(s): 251
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webp
[debug] Invoking http downloader on "https://rr3---sn-5hnednsz.googlevideo.com/videoplayback?expire=1666204463&ei=z-5PY6nULJrtgAeivqjIBQ&ip=185.XXX.XXX.XXX&id=o-ALOxhxE0fy_-3FWoXv1ClITy0QByCcr_NpzE6ZRihgRy&itag=251&source=youtube&requiressl=yes&mh=Ah&mm=31%2C29&mn=sn-5hnednsz%2Csn-5hne6n6e&ms=au%2Crdu&mv=m&mvi=3&pl=24&initcwndbps=1100000&spc=yR2vp1UOvgkianGTTNsHmCNeZ7Xz0c4&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=2956753&dur=178.841&lmt=1592988385675114&mt=1666182326&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAJJq6LHN7KdXh5c7imDRS2VAAneuF4_VpXLHkjjbWvibAiAqltKinSfuRPwHyrbAJc4BLkbc3lXC5wJE5chCenHJWQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgSD3e02-f651PAcyXl8WvIw019UMD9kxbuVsnLtstcuMCIQD4GIcNlaWWlvvzvkY3Ktp5_HcJxi4S3keTcS91p8h-NA%3D%3D"
[download] Destination: /downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm
[download]   0.0% of    2.82MiB at  151.84KiB/s ETA 00:19
[download]   0.1% of    2.82MiB at  338.25KiB/s ETA 00:08
[download]   0.2% of    2.82MiB at  744.82KiB/s ETA 00:03
[download]   0.5% of    2.82MiB at    1.47MiB/s ETA 00:01
[download]   1.1% of    2.82MiB at  885.21KiB/s ETA 00:03
[download]   2.2% of    2.82MiB at    1.02MiB/s ETA 00:02
[download]   4.4% of    2.82MiB at    1.41MiB/s ETA 00:01
[download]   8.8% of    2.82MiB at    2.13MiB/s ETA 00:01
[download]  17.7% of    2.82MiB at    3.40MiB/s ETA 00:00
[download]  35.4% of    2.82MiB at    3.20MiB/s ETA 00:00
[download]  70.9% of    2.82MiB at    6.06MiB/s ETA 00:00
[download] 100.0% of    2.82MiB at    6.38MiB/s ETA 00:00
[download] 100% of    2.82MiB in 00:00:00 at 5.09MiB/s
[debug] ffmpeg command line: ffprobe -show_streams 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm'
[ExtractAudio] Destination: /downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm' -vn -acodec libmp3lame -q:a 0.0 -movflags +faststart 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3'
Deleting original file /downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm (pass -k to keep)
[Metadata] Adding metadata to "/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3' -map 0 -dn -ignore_unknown -c copy -write_id3v1 1 -metadata 'title=Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere]' -metadata date=20200110 -metadata 'description=Subscribe to the channel for all the latest releases: https://mosr.lnk.to/YTSubscribe

Follow Ministry of Sound:
https://www.instagram.com/ministryofsound
http://www.facebook.com/ministryofsound
http://www.twitter.com/ministryofsound
http://www.ministryofsound.com

������
Follow Hosh:
Instagram: https://www.instagram.com/hosh.me/
Facebook: https://www.facebook.com/hosh.me
Twitter: https://twitter.com/hosh_tag

Lyrics:
[Verse]
Are you, are you coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you, are you coming here with me
To run by my side so we can free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you, are you coming here with me
To run by my side so we can be free?
Strange things d0 happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Are you), are you (Are you) coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Are you), are you (Are you) coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree

[Interlude]
Are you, are you coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight

[Verse]
Are you, are you coming here with me
To run by my side so we can be free?
Strange things d0 happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Oh-oh), are you (Oh-oh) coming here with me
To run by my side so we can free?

Strange things d0 happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Oh-oh), are you (Oh-oh) coming here with me
To run by my side so we can free?
Strange things d0 happen here (Oh-oh-oh)
It'"'"'s the time to leave
If we met at midnight at the willow tree

#ministryofsound #ministryofsoundrecords #ministryofsound2020 #hosh #midnight #hangingtree #music #newmusic #newmusicvideo #ministryofsoundanthems #ministryofsoundmixes' -metadata 'synopsis=Subscribe to the channel for all the latest releases: https://mosr.lnk.to/YTSubscribe

Follow Ministry of Sound:
https://www.instagram.com/ministryofsound
http://www.facebook.com/ministryofsound
http://www.twitter.com/ministryofsound
http://www.ministryofsound.com

������
Follow Hosh:
Instagram: https://www.instagram.com/hosh.me/
Facebook: https://www.facebook.com/hosh.me
Twitter: https://twitter.com/hosh_tag

Lyrics:
[Verse]
Are you, are you coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you, are you coming here with me
To run by my side so we can free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you, are you coming here with me
To run by my side so we can be free?
Strange things d0 happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Are you), are you (Are you) coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Are you), are you (Are you) coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree

[Interlude]
Are you, are you coming here with me
To run by my side so we can be free?
Strange things do happen here
It'"'"'s the time to leave
If we met at midnight

[Verse]
Are you, are you coming here with me
To run by my side so we can be free?
Strange things d0 happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Oh-oh), are you (Oh-oh) coming here with me
To run by my side so we can free?

Strange things d0 happen here
It'"'"'s the time to leave
If we met at midnight at the willow tree
Are you (Oh-oh), are you (Oh-oh) coming here with me
To run by my side so we can free?
Strange things d0 happen here (Oh-oh-oh)
It'"'"'s the time to leave
If we met at midnight at the willow tree

#ministryofsound #ministryofsoundrecords #ministryofsound2020 #hosh #midnight #hangingtree #music #newmusic #newmusicvideo #ministryofsoundanthems #ministryofsoundmixes' -metadata 'purl=https://www.youtube.com/watch?v=xI6dqImaQ50' -metadata 'comment=https://www.youtube.com/watch?v=xI6dqImaQ50' -metadata 'artist=Ministry of Sound' -movflags +faststart 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].temp.mp3'
[ThumbnailsConvertor] Converting thumbnail "/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webp" to png
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webp' -movflags +faststart 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].png'
[debug] ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219
  configuration: --prefix=/usr --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --disable-debug
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
Input #0, image2, from 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webp':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: webp, yuv420p(tv, bt470bg/unknown/unknown), 1280x720, 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (webp (native) -> png (native))
Press [q] to stop, [?] for help
Output #0, image2, to 'file:/downloads/Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].png':
  Metadata:
    encoder         : Lavf59.16.100
  Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 1280x720, q=2-31, 200 kb/s, -nan fps,
ERROR: Postprocessing:   Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 1280x720, q=2-31, 200 kb/s, -nan fps,
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 3272, in process_info
    replace_info_dict(self.post_process(dl_filename, info_dict, files_to_move))
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 3449, in post_process
    info = self.run_all_pps('post_process', info, additional_pps=info.get('__postprocessors'))
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 3431, in run_all_pps
    info = self.run_pp(pp, info)
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 3410, in run_pp
    files_to_delete, infodict = pp.run(infodict)
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/postprocessor/common.py", line 24, in run
    ret = func(self, info, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/postprocessor/common.py", line 129, in wrapper
    return func(self, info)
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/postprocessor/embedthumbnail.py", line 86, in run
    thumbnail_filename = convertor.convert_thumbnail(thumbnail_filename, 'png')
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/postprocessor/ffmpeg.py", line 1093, in convert_thumbnail
    self.real_run_ffmpeg(
  File "/usr/local/lib/python3.8/site-packages/yt_dlp/postprocessor/ffmpeg.py", line 361, in real_run_ffmpeg
    raise FFmpegPostProcessorError(stderr.strip().splitlines()[-1])
yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError:   Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 1280x720, q=2-31, 200 kb/s, -nan fps,

INFO:ytdl:waiting for item to download

Are you using some wrapper? Or did you just miss the first line of the log? Either way, you need to show me the options being passed to yt-dlp

My guess is that u r running this
❯ yt-dlp -x --embed-thumb --audio-format mp3 xI6dqImaQ50 -v
[debug] Command-line config: ['--ignore-config', '-x', '--embed-thumb', '--audio-format', 'mp3', 'xI6dqImaQ50', '-v']
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.10.04 [4e0511f27] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: 62e451334
[debug] Python 3.10.8 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-107787-gc469c3c3b1-20220814 (fdk,setts), ffprobe N-107787-gc469c3c3b1-20220814, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.1
[debug] Proxy map: {}
[debug] Loaded 1699 extractors
[debug] [youtube] Extracting URL: xI6dqImaQ50
[youtube] xI6dqImaQ50: Downloading webpage
[youtube] xI6dqImaQ50: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] xI6dqImaQ50: Downloading 1 format(s): 251
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webp
[debug] Invoking http downloader on "https://rr3---sn-gwpa-jv36.googlevideo.com/videoplayback?expire=1666205189&ei=pfFPY7-rBqi-rtoP9KmEsAE&ip=<IP_ADDRESS>&id=o-AE3RC8GFtcvHyMvk-4EEW32HdE5a4bv7-cG_HneY6kJF&itag=251&source=youtube&requiressl=yes&mh=Ah&mm=31%2C29&mn=sn-gwpa-jv36%2Csn-gwpa-h55r&ms=au%2Crdu&mv=m&mvi=3&pl=20&initcwndbps=335000&spc=yR2vpyHrWJiV96keMIQyE0qbmCc9Nfk&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=2956753&dur=178.841&lmt=1592988385675114&mt=1666183051&fvip=6&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgMJUQYSbjSnWa0D3E4DJiAdGY4YSzc9QfDxmMgoGMKgsCIQCy8Br6coXFQG37B9iU3gg7bt57F536dxe2zsenEFq_Tg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAJjKlgWlhnkp8giE5t-J6xCz-EodIfuTVxUFt-3ca9JKAiA8UksWWtkaAErB2RO4OkGn_A5LUWNdAtpbRUy2z54eRQ%3D%3D"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm
[download] 100% of    2.82MiB in 00:00:00 at 3.48MiB/s
[debug] ffmpeg command line: ffprobe -show_streams "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm"
[ExtractAudio] Destination: Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm" -vn -acodec libmp3lame "-q:a" 5.0 -movflags "+faststart" "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3"
Deleting original file Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webm (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webp" to png
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -f image2 -pattern_type none -i "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].webp" -movflags "+faststart" "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].png"
[EmbedThumbnail] ffmpeg: Adding thumbnail to "Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].mp3" -i "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].png" -c copy -map "0:0" -map "1:0" -write_id3v1 1 -id3v2_version 3 "-metadata:s:v" "title=\"Album cover\"" "-metadata:s:v" "comment=Cover (front)" -movflags "+faststart" "file:Hosh & 1979 - Midnight (Hanging Tree) feat. Jalja [Track Premiere] [xI6dqImaQ50].temp.mp3"

but as u can see, that does not repro the issue


Firmware upgrade failed (IDFGH-5048)

Hello,
I'm testing the simple_ota_example.
I have followed every step in the documentation but I receiver always these errors:
I (6696) simple_ota_example: Starting OTA example
E (6756) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700
I (6756) esp-tls-mbedtls: Failed to verify peer certificate!
I (6756) esp-tls-mbedtls: verification info:   ! The certificate Common Name (CN) does not match with the expected CN
! The certificate is not
E (6776) esp-tls: Failed to open new connection
E (6776) TRANS_SSL: Failed to open a new connection
E (6786) HTTP_CLIENT: Connection failed, sock < 0
E (6786) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
E (6796) esp_https_ota: Failed to establish HTTP connection
E (6806) simple_ota_example: Firmware upgrade failed
I have cheched also the https server, but seems to be ok.
Please could you help me with this problem?
Thanks
Simeon

Hi,
The HTTPS client will by default check that the certificate's common name match the address you are connecting, and this check is failing in your example.
What are you trying to connect to? For testing purposes you can by-pass this check by enabling EXAMPLE_SKIP_COMMON_NAME_CHECK in menuconfig, but this could make you your connection less secure and should not be used for production purposes without considering the risk first.

Hello,
thanks for your reply!
I'm trying to connect to an HTTPS server: openssl s_server -WWW -key ca_key.pem -cert ca_cert.pem -port 8070
I have enabled EXAMPLE_SKIP_COMMON_NAME_CHECK, in menuconfig but I have always the same problem.

Hmm, that's strange. You shouldn't be seeing that if you have disabled the check.
Can you please double check that it is active? E.g. add a print next to the line config.skip_cert_common_name_check = true; in the simple OTA example, to be 100% sure it is configured, built and flashed correctly?

Hello,
I have added a printf next to the line  config.skip_cert_common_name_check = true:
#ifdef CONFIG_EXAMPLE_SKIP_COMMON_NAME_CHECK
config.skip_cert_common_name_check = true;
printf("SKIP\n");
#endif
The output is:
I (4196) simple_ota_example: Starting OTA example
SKIP
E (4256) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700
I (4256) esp-tls-mbedtls: Failed to verify peer certificate!
I (4256) esp-tls-mbedtls: verification info:   ! The certificate is not correctly signed by the trusted CA
E (4266) esp-tls: Failed to open new connection
E (4276) TRANS_SSL: Failed to open a new connection
E (4286) HTTP_CLIENT: Connection failed, sock < 0
E (4286) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
E (4296) esp_https_ota: Failed to establish HTTP connection
E (4296) simple_ota_example: Firmware upgrade failed
Skip is printed so the firmware is flashed correctly.
If I go in the local browser: https://<IP_ADDRESS>:8070/hello-world.bin, it work correctly...

Hmm, that's strange. I just tested the same way you did it and it works fine with the default certificates in the example at least (server cert and key copied from example_test.py). With CONFIG_EXAMPLE_SKIP_COMMON_NAME_CHECK disabled it fails with verification info:   ! The certificate Common Name (CN) does not match with the expected CN as expected, but with it active everything is OK.

Which version/commit of IDF are you running?
Are you using the example certificates or are you generating your own?

I think that it's a certificate problem.
If I use the certificted copied from example_test.py and with CONFIG_EXAMPLE_SKIP_COMMON_NAME_CHECK disabled it work correctly but with CONFIG_EXAMPLE_SKIP_COMMON_NAME_CHECK enabled it doesn't work.
To create my certificate I run this command: openssl req -x509 -newkey rsa:2048 -keyout ca_key.pem -out ca_cert.pem -days 365 -nodes
IDF version: 4.2

Ah, I see now. In the second log you posted the issue is no longer the CN; esp-tls-mbedtls: verification info: ! The certificate is not correctly signed by the trusted CA
So now it correctly skips the common name check, but the certificate itself is not correct.
I tested again the same way you did it and it seems to work.
Did you by any chance forget to update the certificate flashed to the ESP? It should be the ca_cert.pem you generated and used for the server. Replaced examples/system/ota/simple_ota_example/server_certs/ca_cert.pem with this new ca_cert.pem, rebuild and reflash and you should be able to connnect.

Hello,
sorry..I forgot to update the certificate flashed to the ESP.
Thanks a lot for your time.
Simeon

No problem, closing this issue then.


colorLib: add buildCOLR and buildCPAL

for now this just adds a buildCOLR and buildCPAL, e.g. so we can use it in ufo2ft here https://github.com/googlefonts/ufo2ft/pull/359

I see 0..255 color values as similar to 0.8 fixed point numbers. It's a low level representation that is tied to the binary format. We generally don't use fixed point numbers directly in text formats, either, but convert to float.

I was worried about round tripping, my other problem with floats (if I were to save it to file, but I don’t have to here) is that I get from Python stuff like [0.8235294117647058, 0.1803921568627451, 0.12156862745098039, 1.0] (for [210, 46, 31, 255]) and my simple brain wouldn’t know what safe rounding can I apply to it to get readable numbers.

3 decimal positions are enough to roundtrip
this still passes
assert list(range(256)) == [round(float(f"{v/255:.03f}") * 255) for v in range(256)]

with 2 decimals, it doesn't roundtrip

We use 3 decimal positions in glyphsLib and it works well.


Raise ValidationError immediately

Question
For bugs/questions:

OS: macOS Majove
Python version: 3.7.2
Pydantic version: 0.21

Is it possible to tell pydantic to raise the ValidationError immediately, instead of trying to validate the whole input? If validating an attribute fails, that will be referenced later by validating a different one, this will raise completely different exception and suppresses the first one caught by pydantic:
import pydantic

class A(List(str)):
    @classmethod
    def __get_validators__(cls):
        yield cls.validate

    @classmethod
    def validate(cls, v):
        if sorted(v, key=str.lower) != v:
            raise ValidationError(
                "list is not sorted:\n"
                f"{sorted(v, key=str.lower)} != {v}"
            )
        return v

class B(BaseModel):
    a: A
    b: Dict[str, str]

    @validator("b", whole=True, always=True)
     def validate_b(cls, v, values):
     a = values["a"]
     # do stuff with values from a, but get KeyError because the Exception was suppressed
     return v
...

no possible, you'll need to update validate_b to cope with the case that 'a' is missing from values.
You don't need to do any validation in validate_b in that case since you know something else has already gone wrong.


Update _index.html

update an url

Probably the community/_index.md file needs to be updated to be aligned with the latest English version.
For now, thanks for fixing and removing a redirect ;)
/lgtm
/approve


Quick Open is hard to use on large projects

It looks like because of the asynchronous file scanning (?), quick open is very hard to use on large projects - it takes time to populate the list, and as the list is being populated the selection jumps around unpredictably. It also seems that scanning either never finishes, or is restarted on key presses.
Attaching a video capture using Unreal Engine 4.
Welcome - unrealengine - Onivim 2 2020-04-07 23-02-56.zip
/mnt/c/work/unrealengine $ time find . | wc -l
183378

real    0m2.805s
user    0m0.328s
sys     0m2.484s

Worth noting is that Sublime Text (which is what I normally use) handles this very smoothly.

I'm currently in the process of swapping the filtering logic out (#1566) and am doing testing/benchmarking against different repos. I'll try and grab a copy of the Unreal Engine 4 source and test how my changes are affecting that repo as well as the other repos I was looking at.
The internal benchmark we have, and the filtering logic itself is much faster, so hopefully it helps! Though both of those don't have elements of streaming the data in from ripgrep.


[Doris On ES]fix bug of value in like not translate correcttly

case is desc in #3576
Why this case happened
In current implement, translation into dsl only if it is not the first charactor.
Thus, when sql is write like '%abc', translation would not run.
How fixed

Now, translation will trigger with charactor '?' or '*'
if it is the first charactor, translate directly
else,  check the preceding char is escaped or not to determin translation or not

@imay pls have a look?

reopened https://github.com/apache/incubator-doris/pull/3602


Improve CollapseAction to support custom duration and interpolation

Collapse animation in CollapsibleWidget is very basic, I've made a variant that extends FloatAction in order to get a better visual effect during animation.
Duration and Interpolation are also customizable by the user, to better fit some custom needs.
Thanks

Thanks, I'll try to look at this (and your other PR) during the weekend.

Thanks, I'll try to look at this (and your other PR) during the weekend.


Can't validate field containing accents with rule alpha

I suggest you replace alpha regex by this one /^[a-z\u00C0-\u017F]+$/i to validate fields containing accents or just add a new rule like 'alpha_accents'

Pull request would be much appreciated.


Removing USF from custom installation

Summary by Sourcery
This pull request removes support for UFS file systems from the custom installation process, refactors method names to follow snake_case convention, adds detailed docstrings for better documentation, and updates GUI element initialization for consistency.

Enhancements:

Removed support for UFS file systems from the partitioning logic, simplifying the code and focusing on ZFS and SWAP file systems.
Refactored method names to follow snake_case convention for consistency and readability.
Added detailed docstrings to several methods to improve code documentation and maintainability.
Updated GUI elements to use the 'label' parameter for Gtk.Label initialization for consistency.

Close https://github.com/ghostbsd/gbi/pull/75


Fix document finders

The finders inside of the Document class don't currently work without passing in an api client.
I've fixed .all and .find and added tests.
I suggest that .each gets removed or deprecated. The all method that it calls just flat out returns a nil and doesn't even refer to the all method defined on the Document class. But that's your call.

I've got this working in production, btw!

Should I remove the tests to get this merged?


Provide Feature: Chaincode-Access via Scala

Provide Feature: Chaincode-Access via Scala
Co-authored-by: Niklas Doppelstein<EMAIL_ADDRESS>Co-authored-by: Steffen Luis<EMAIL_ADDRESS>Co-authored-by: Marie-Christin Oczko<EMAIL_ADDRESS>Co-authored-by: Matthias Geuchen<EMAIL_ADDRESS>

Looks good to me


Multiple pytest/hypothesis fixes

A few fixes to pytest/hypothesis-related problems:

Unbind pytest dep because old version of pytest caused hypothesis tests to be skipped.
Fix hypothesis health checks due to one_compressed_file fixture missing scope.
Fix pytest warning due to unregistered marks.

As is customary with python-hyper I've sent you an invite to become a contributor to the python-hyper org.

As is customary with python-hyper I've sent you an invite to become a contributor to the python-hyper org.

Thanks.

Thanks.


Probably incorrect VS Output visualisation (Vulkan + viewport negative height)

We use viewport's negative height extension when specifying VkViewport to match D3D output because of different NDC y-axis orientation. RenderDoc in VS Output window mirrors mesh vertically as expected comparing to D3D capture. But in addition it also mirrors mesh horizontally which looks like a bug for me.
One explanation I have why this happens is how default 'Aspect Ratio' control value might be computed. If it is computed directly like width/height then we get negative aspect ratio value for negative viewport height and this will probably mirror things horizontally. I tried to change 'Aspect Ratio' to non-default value and set it to 1 (we have square viewport). After this change the mesh was mirrored horizontally in the expect position. That's why I assume that computed default aspect ratio is -1.
Default aspect ratio (wrong output):

Set manually (expected output):

Yes you're exactly right, the v0.91 code just does simple width/height.
In v1.x I do slightly better, checking for positive width & height, but that's still not right. I think I can safely just take abs() on width and height. Thanks!

I've fixed this on both v0.x and v1.x, so the next nightly build should behave correctly.

Thank you!

It works as expected. Thank you.


Safari TP 142: overscroll-behavior

https://webkit.org/blog/12434/release-notes-for-safari-technology-preview-141/

Implemented CSS overscroll-behavior for asynchronous scrolling on macOS (r288777)

Didn't test yet though: https://tests.caniuse.com/css-overscroll-behavior
It's not enabled by default in 141, but it almost certainly will be in 142, hence draft PR for now.

… and ~unfortunately I dug deeper because of that specific "on macOS":
While the iOS issue, the meta issue and all subtickets including on by default are closed now, the revision for on by default, r289683, didn't make it into the revision range for TP 141:

This release covers WebKit revisions<PHONE_NUMBER>13.

WPT is still on TP 140, but maybe soon:

https://wpt.fyi/results/?label=master&label=experimental&aligned&q=overscroll-behavior
or more specifically https://wpt.fyi/results/css/css-overscroll-behavior?label=master&label=experimental&aligned&q=overscroll-behavior

So maybe it's only really enabled for TP 142?

Safari Technology Preview 142

Enabled overscroll-behavior by default (r289683)

https://developer.apple.com/safari/technology-preview/release-notes/


Password value binding triggers updateTarget?

I am observing a strange beahvior that is causing me trouble.
I have a simple value binding + behavior on a password field:
<input type=password value.bind="p & validate" />.
When I type text in the input, I see updateSource is called, as expect.
When I mash keys -- or simply press two keys at the same time -- it seems updateTarget is called as well. But why? This is causing unwanted side-effects in my binding behavior.
This is easy to reproduce in IE11 with a password box: just hit two keys at the same time.
It seems it sometimes happens with a normal textbox as well, but it is a lot harder to reproduce.

does it happen in other browsers too?  Whats the call stack?  Can you provide a plunker?

It does easily happen in Edge as well. Does not seem to happen on Firefox. Untested in Chrome.
Here's a plunker: https://plnkr.co/9cF0XO8FjPK6relatTf5
There's one updateTarget at startup, which is probably because I did not define x on the model, so it gets updated from undefined to "" (I guess).
But then if you hit two keys at the same time, you very easily get a updateTarget on IE11 and Edge.
As for the callstack, I would like to take the opportunity to say that the TaskQueue makes it often quite hard to track causality. All the bindings are updated in this micro-queue... I wonder if there is a way to opt-in long stack traces like built-in async callbacks do in the Edge debugger callstack.

i see it happening in edge too.  not in chrome, or firefox
https://plnkr.co/edit/ahRwzTeRjFeCYKUs0U1c?p=preview

@jdanyow Good that you can reproduce it!
I experienced it first on IE11, not sure why you don't.
Any idea where it comes from?

No, not yet. I also looked at adding a "long stack traces" plugin for the TaskQueue to help with the debugging thing you mentioned.

Did you ever find a fix for this?  I'm experiencing the same problem; I've narrowed it down to Binding.prototype.call in Aurelia-binding.js.
what I'm seeing is that in Chrome when pressing two keys at once in a textarea input that when getting the value from the textarea it only includes the first key typed, but in IE11 it shows both keys - hence it executes the code if (newValue !== oldValue).
I hope that makes sense.
I came across this from users telling me the cursor always jumped to the end of their text if they moved back into the text and typed quickly.

@jdanyow Putting this back on your radar.

Stale since 2016

@jdanyow Can you comment?


[CP Staging] Revert PR #40624, fix flickering when switching from task to parent

Details
Fix a flickering effect when switching from a task report to its parent chat.
Straight revert of https://github.com/Expensify/App/issues/40624
Fixed Issues
$ https://github.com/Expensify/App/issues/41307
Tests / QA

Open any chat, create a task and open the task report
In the task view, click on the header to go back to the parent report
Make sure there is no flickering when switching back to the parent report

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/2229301/57a669b5-cbbb-418b-bed2-b1f29e8def5f

MacOS: Desktop

Straight revert, @yuwenmemon will review

Reviewer Checklist

[ ] I have verified the author checklist is complete (all boxes are checked off).
[ ] I verified the correct issue is linked in the ### Fixed Issues section above
[ ] I verified testing steps are clear and they cover the changes made in this PR

[ ] I verified the steps for local testing are in the Tests section
[ ] I verified the steps for Staging and/or Production testing are in the QA steps section
[ ] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[ ] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[ ] I checked that screenshots or videos are included for tests on all platforms
[ ] I included screenshots or videos for tests on all platforms
[ ] I verified tests pass on all platforms & I tested again on:

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

[ ] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[ ] I verified proper code patterns were followed (see Reviewing the code)

[ ] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[ ] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[ ] I verified that comments were added to code that is not self explanatory
[ ] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[ ] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[ ] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[ ] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[ ] I verified the JSDocs style guidelines (in STYLE.md) were followed

[ ] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[ ] I verified that this PR follows the guidelines as stated in the Review Guidelines
[ ] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[ ] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[ ] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[ ] If a new component is created I verified that:

[ ] A similar component doesn't exist in the codebase
[ ] All props are defined accurately and each prop has a /** comment above it */
[ ] The file is named correctly
[ ] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[ ] The only data being stored in the state is data necessary for rendering and nothing else
[ ] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[ ] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[ ] All JSX used for rendering exists in the render method
[ ] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[ ] If any new file was added I verified that:

[ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[ ] If a new CSS style is added I verified that:

[ ] A similar style doesn't already exist
[ ] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[ ] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[ ] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[ ] I verified that all the inputs inside a form are aligned with each other.
[ ] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[ ] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[ ] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[ ] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.68-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

https://github.com/Expensify/App/issues/41307 is still reproducible in web desktop and android
https://platform.applause.com/services/links/v1/external/36f8b90bf58793c33791ff38fa394e0cf63e0f7ef263d08d440c6ec6c3108b77
https://platform.applause.com/services/links/v1/external/cdc8edf693a0eb8f07a3dc123a6452a3be6bab1afbc5ec9d8c2b2bf77f88aeac
https://platform.applause.com/services/links/v1/external/2c70f7fe7c5640ea0c3c83f5025e6d91a0fe9b5e14928056f4eed48bd20c3475

Huh weird, thanks for testing too. I'll take a look again.

I ran a git bisect and found it was the same PR that we already reverted as the root cause of the issue, so I don't see what else it could be. I also can't reproduce the issue on main anymore. Let's still roll with this for the deploy, the report still eventually loads so nothing is critically broken.

🚀 Deployed to production by https://github.com/francoisl in version: 1.4.68-3 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Add Windows build

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hmm, I'm not sure if I remember it 100%, but I think it was due to a missing dependency, so it makes sense that it's working now.
Yeah, the tests look great. Thanks for working on that!
The build number would have to be 1, as it will publish all builds again and would overwrite the current ones which might lead to clashes when downloading. I'll change it and merge it.

@conda-forge-admin, please rerender


Handle encoding correctly

Right now read_text uses the system encoding only.  We should read bytes and allow libcst to decode/encode.

For posterity: pathlib.Path.read_text() with no arguments uses the encoding specified by locale.getpreferredencoding(). That value defaults to UTF-8 on Linux and macOS, but instead defaults to cp1252 on Windows. PEP 3120 specifies UTF-8 as the default encoding for Python sources, but still allows for PEP 263 coding markers at the top of the file in a different encoding is desired. This means we can't use read_text() without specifying an encoding, and we can't use read_text("utf-8") because it might not be UTF-8, but we also don't know the correct encoding without first reading the bytes and inspecting the contents for PEP 263 coding markers.
For our specific use case, LibCST already handles PEP 263 markers, and µsort already encodes back to bytes when asking LibCST to parse the contents, so µsort should probably just be reading bytes in the first place.
Test case that exposes the current behavior as incorrect on Windows:
diff --git a/usort/tests/cli.py b/usort/tests/cli.py
index 9574c0e..3067afb 100644
--- a/usort/tests/cli.py
+++ b/usort/tests/cli.py
@@ -7,7 +7,7 @@ import os
 import unittest
 from contextlib import contextmanager
 from pathlib import Path
-from typing import Generator
+from typing import AnyStr, Generator

 import volatile
 from click.testing import CliRunner
@@ -24,11 +24,14 @@ def chdir(new_dir: str) -> Generator[None, None, None]:

 @contextmanager
-def sample_contents(s: str) -> Generator[str, None, None]:
+def sample_contents(s: AnyStr) -> Generator[str, None, None]:
     with volatile.dir() as dtmp:
         ptmp = Path(dtmp)
         (ptmp / "pyproject.toml").write_text("")
-        (ptmp / "sample.py").write_text(s)
+        if isinstance(s, bytes):
+            (ptmp / "sample.py").write_bytes(s)
+        else:
+            (ptmp / "sample.py").write_text(s)
         yield dtmp

@@ -155,6 +158,33 @@ import os
         )
         self.assertEqual(result.exit_code, 1)

+    def test_format_unicode_error(self) -> None:
+        """File contains invalid unicode sequences"""
+        with sample_contents(b"print('hello \xd8')\n") as dtmp:
+            runner = CliRunner()
+            with chdir(dtmp):
+                result = runner.invoke(main, ["format", "."])
+
+        self.assertRegex(
+            result.output,
+            r"Error sorting sample\.py: '.+' codec can't decode byte",
+        )
+        self.assertEqual(result.exit_code, 1)
+
     def test_format_with_change(self) -> None:
         with sample_contents("import sys\nimport os\n") as dtmp:
             runner = CliRunner()

The test will pass on Linux and macOS as \xd8 is an invalid character in UTF-8, but will "fail" on Windows because the default encoding cp1252 can "successfully" decode those bytes.


units: remove user-configdrive.path

This path unit is redundant since media-configdrive.mount will explicitly
trigger this. systemd 229 changed the behavior of path units to implicitly
add Requires for all RequiresMountsFor. This ends up unconditionally requiring
user-configdrive.mount, which fails if there is no config drive. Since we really
don't need to support this path outside of a mount, remove the explicit path
unit.

/cc @mischief
Fixes https://github.com/coreos/bugs/issues/1167.

lgtm


Allow overriding global default cluster host

Exporting the bedrock defaults lets us change the default hostname (for example, OpenShift runs on https://localhost:8443 by default)

@deads2k @jlowdermilk PTAL

lgtm

LGTM

mergo.Merge merges defensively, i.e. only fills up members of the left param with those from the right if the left are zero. I think this means the logic in this PR is wrong. The default values must be merged last and the overrides must be merged first.

Fixed in https://github.com/kubernetes/kubernetes/pull/20579

this PR just made the default public... I can try to dig up the original PR that added merging


Timetable v1.4

Pull Request Test Coverage Report for Build 533

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

Totals

Change from base Build 530:
0.0%

Covered Lines:
2484

Relevant Lines:
3088

💛  - Coveralls


dependatool: Ignore empty go.mod files

this is probably a good idea anyway, but turns out not to be immediately necessary due to #704


Update USE_TZ in global_settings.py

If the value of USE_TZ is True, we cannot get the TZ value from the .env file and get ZoneInfo Exception.
To fix this bug We should have moved USE_TZ code above the TIME_ZONE code.

I'm not sure what kind of issue you're trying to fix, however moving USE_TZ in global_settings should not be necessary.  Please create a new ticket if you can debug your issue and provide details about why and where Django is at fault.
If you're having trouble understanding how Django works, see support channels for ways to get help.


Removing JSON escape in reported errors. It makes it confusing to u…

…nderstand the error by escaping string values.
Github import of changes:

Removing JSON escape in reported errors. It makes it confusing to understand the error by escaping string values.

Presenting ThreadExecutor timeouts in a better format:

PiperOrigin-RevId: 145506353

the CI looks all good, ready to merge


[Module Proposal]: API published through API Management

Have you checked this module does not already exist in the registry?
Yes
Why is the module needed?
There is no existing module available in the public registry, but is common deployed by customers developing their own APIs.
Module path
apim/api
Describe the module
Deploy a version REST API from a provided Open API spec with optional:

Policy
OAuth configuration
App Insights diagnostic logs

Dear @BernieWhite , Azure Verified Modules (AVM) will become the single Microsoft standard for Bicep modules. Transitioning to AVM, module proposals for new, non-AVM modules will no longer be accepted and we encourage you to propose a new AVM module, which you can file here: Module Proposal, here.
See this informational notice for more details on the upcoming changes.
Thank you for your understanding!


403: Skeleton should reflect the exact overloaded called method

#403

This pull request #432 is assigned to @fanifieiev/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @paulodamaso/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job

@fanifieiev/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@fanifieiev Thank you for the review.
I've fixed your comments.

@dgarus Two comments, please take a look

@paulodamaso fixed.

@dgarus Thanks!

@rultor merge

@rultor merge

@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@paulodamaso Done! FYI, the full log is here (took me 16min)

@sereshqua/z please review this job completed by @fanifieiev/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@fanifieiev please make sure you will at least 3 issues during next CR, thanks!
@dgarus please make sure you will start all your comments with the name of the user they are addressed to, see for instance

@fanifieiev please make sure you will at least 3 issues during next CR, thanks!
@dgarus please make sure you will start all your comments with the name of the user they are addressed to, see for instance

@sereshqua Sure, thx

@fanifieiev please make sure you will at least 3 issues during next CR, thanks!
@dgarus please make sure you will start all your comments with the name of the user they are addressed to, see for instance

@sereshqua Ok

@0crat quality acceptable


P0879R0 Constexpr for swap and swap related functions

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0879r0.html

実装済み


Add a BlackForest Flux ImageDriver

[x] I have read and agree to the contributing guidelines.

Is your feature request related to a problem? Please describe.
BlackForest has a great image generator using Flux. They have an API available (https://docs.bfl.ml/) and having a driver for image generation would be very useful.

@shhlife I've implemented this as an extension for now. We can evaluate merging upstream in the future.


reduce without explicit initial accumulator value produces incorrect result

It looks like reduce, when provided only two arguments, will invoke f with the first member of sr as acc and the first value of the sequence sf as the next x argument in the sequence. This in effect records the first two items in the sequence.
In other words, the expected behavior of reduce called as:
(reduce f xs)
should be the same as:
(reduce f (first xs) (rest xs))
But it currently is:
(reduce f (second xs) (cons (first xs) (rest (rest xs))))

Fixed.