Improve CacheDataCreator

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (df6ba10) 100.00% compared to head (2c6c547) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #336   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          322       322
  Lines        10132     10132
  Branches       974       974
=========================================
  Hits         10132     10132

Impacted Files
Coverage Δ

src/gravitorch/data/datacreators/__init__.py
100.00% <100.00%> (ø)

src/gravitorch/data/datacreators/caching.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


: Some error in erpcgen/test/readme.md

Update erpcgen/test/readme.md:

some case(test_redundant_definitions.yml) cannot get passed while pytest in erpcgen.
pytest cannot work in high version(6.0.0+ for now). I try 5.0.0, and it works.

Thanks, @zuzy


Initializing non-String form values with initialize action creator

After upgrading redux form from 3.0 to the latest, i noticed that a good amount of my more complex form fields that aren't strings stopped working when going to edit (like react select, plus a few custom input widgets I've developed). I think that the issue is related to this:

...with the should only contain String values requirement now being enforced in 3.1.x, where before it wasn't. When I rolled back to 3.0.0 everything works fine.
Curious as to why there is this limitation? A lot of form data isn't string based, and additionally, there is normalization / serialization requirements for managing different input data structures. For example, I have a few react select components that expect an array of objects that are different from my server requirements. I have to serialize these when i make updates and then deserialize when I load a page to edit. When translating back and re-populating within redux-form, the initial values need to be
[
  {
    label: 'some label',
    value: 'some value'
  }
]

which isn't a string, and so the component never gets populated. In my higher order form library that I wrote around redux-form, i'm initializing these values via
dispatch(initialize(formName, deserialize(values))
which performs the sync between the server and my form. To test that the String limitation is indeed the case, if I update my react select related form prop in deserialize(values) to a simple string, the component updates properly, per the documentation.
Lastly, here's a screenshot of 3.0.0 fields.fieldName.value, just after initialize was dispatched. See how it populates any kind of data?

Works as expected, where in the latest version vendor returns undefined.
Any help would be appreciated in understanding why you chose this design and / or idiomatic workarounds. Thanks so much

Yes, as of v3.1, it should allow any kind of deep data, not just strings. The docs were out of date.
I'm not understanding the bug report here. It might be related to known issue #360, with array values.
I apologize for not understanding, but if you could give specific "When I do X, I get Y, but I expected Z" example, that might help.

@erikras apologies, I thought I was being clear. (And yes, I think it may be related to #360)
More tersely:
"When dispatching redux-form's initializing action creator with initial values that have key values that are not strings, those values will be undefined when reading via this.props.values.field or this.props.fields.field.value."
This behavior did not happen in 3.0 - 3.0.12, but now happens in 3.1+. I'm asking why you chose to limit the types to just strings, per the image I posted above from the docs, which you have updated. (Could you provide a brief example of using the initialize action creator with deep values just so there is no confusion?)
import { initialize } from 'redux-form'

// Good, since key values are strings
class App extends Component {
  componentDidMount() {
    const initialFormData = {
      name: 'Chris',
      description: 'Developer',
    }

    this.props.dispatch(initialize('appForm', initialFormData))
  }
}

// Bad in 3.1+ since key values contain types that are NOT strings
class App extends Component {
  componentDidMount() {
    const initialFormData = {
      addresses: [
        {
          label: 'Home'
          value: '111 Something Street'
        },
      ]
    }

    this.props.dispatch(initialize('appForm', initialFormData))
  }
}

^^ The test I just added passes. Is it not the equivalent of your example?

When I provide object
const initialData = {
  application: {
    value: 13,
    label: 'some label'
  }
}

redux-form returns data for application:
{initial: 13, value: 13}

When I provide array of these objects, result is undefined
const initialData = {
  ctfs: [{
    value: 13,
    label: 'some label'
  }]
}

Later on today I'll provide an example project to illustrate

This should be fixed in v4.0.0. Come and get it!

Awesome, thanks so much!

@erikras dispatch(initialize(formName, deserialize(values)) ... will this re-render the component also ?

@erikras dispatch(initialize(formName, deserialize(values)) ... will this re-render the component also ?

@sksahil030,

This issue was for the old v3.
Even if you're using it, why don't you try it, instead of asking?
If whatever you're trying to do still doesn't work even in latest versions of Redux Form, I recommend you to open a new issue instead of asking here.


AR: use the same date/time regex for contact tracing as for the cases

whoops, sorry I accidentally deleted the wrong branch...


Prepare Core Libraries for November 2023 Release

API change check
API changes are not detected in this pull request.


warnings from no-consecutive-blank-lines

I keep getting warnings where there are no blank lines. Can't seem to crack this one.
I could disable in .remarkrc but would like to keep this one enabled.
Travis-CI build
line 10 in: CONTRIBUTING.md
line 15 in: README.md

Sorry, @keegoid, I appreciate you using remark, but I’m not in the habit of debugging other people’s projects. If there’s a problem with remark or remark-lint, I’d like to see it in a small test case which I can run myself.
See “Contributing to Open Source on GitHub: Create an Issue” for more tips.

I understand and I accept your challenge. ;)
After further analysis, I've determined this to be a perfect storm or combinatorial effect of interactions between remark, remark-lint and the remark-inline-links plugin. I didn't realize this, but the order of plugins listed in the .remarkrc file matters.
The error disappears when I move the inline-links plugin after the lint plugin. In this way the lint plugin can do it's linting before the other plugins wreak havoc on the markdown.
The inline-link plugin is doing it's thing on every other referenced link, causing:

extra blank lines to be created, which
lint then warns about, and
remark then fixes

Thus hiding the issue that lint had just warned about causing me a world of confusion. O_o
(I know the inline-links plugin isn't yours. I'll be working on that issue separately.)
With that crazy explanation, here is the test you can perform on the attached file (extract the zip):
This generates a warning from no-consecutive-blank-lines
remark ncbl-test.md --use "inline-links" --use "lint=\"maximum-line-length\": false"

This doesn't generate a warning
remark ncbl-test.md --use "lint=\"maximum-line-length\": false" --use "inline-links"

And this adds blank lines between the referenced urls
remark ncbl-test.md

If I can fix the inline-links plugin and configure remark not to add blank lines between referenced urls, then I think the problem will be solved. Thoughts?
ncbl-test.md.zip

Thanks @keegoid for the detailed explanation, I really appreciate it a lot!!!
Unfortunately im going on holiday now so it'll take two weeks for me to review :(

No worries, vacation time is important. Don't pay it another thought until you get back. I'll post here if I find anything new.

Digging in! :+1:

I’ll release an update to inline-links in a sec. It fixes the problems you outlined above. Please let me know if still run into problems!

Awesome! Thanks @wooorm. It's working well now.
One thing, should remark be adding blank lines between referenced links as it does with remark ncbl-test.md in my example above? I kind of prefer having all the links in one group at the bottom (when not using remark with inline-links). Though, I'm not sure of the convention here.

Yes it is expected behaviour because those nodes are block level, or rather, inside nodes accepting block level elements. And, those blocks are joined by two newlines when compiling.
I haven't seen much interest in this, but I would accept a PR for this if someone's interested!


Fix package.json for use with npm + Browserify

The package,json doesn't actually point to a file that exists and can be used with Browserify.
It would be nice to have a quo.node.js that is a min/merged output that will set module.exports = $$ so that it can be used with Browserify.  Then you'd need to update your main/start script in the package.json and publish to npm.

Should be fixed by just editing the path. The standalone already exports the module, so package.json just needs to point to the right file. #150 should fix this.

@soyjavi can you publish this feature to NPM? Because it does not seem to be available yet in 3.0.8?


feat: only read iterator as far as necessary

fixes #123

I see @j-f1 implemented https://github.com/observablehq/inputs/pull/58 with a similar approach. You can choose whether you prefer this or the other approach.

Thanks for the fix! I’ll make some style tweaks but this looks good.

Btw, here is the example I used to try the table (the dev setup is great!).
import {Table} from "@observablehq/inputs";

const end = 1000;
const seekable = true;

const iter = {
  [Symbol.iterator]() {
    let i = 0;
    return {
      next: () => {
        if (i >= end) {
          console.log('Done');
          return { done: true };
        }
        const value = { i: i };

        if (i % 250 === 0) {
          console.log(i);
        }

        i += 1;
        return { value };
      }
    };
  },
  columns: ['i']
}
document.body.appendChild(Table(iter));

Note that before the refactoring pull request, I had a version where we don't have to materialize the data in array but I used two iterators. This approach felt a bit cleaner but means we create an array (but only if we don't know the overall length of the iterator so that seems like a reasonable tradeoff).

@mbostock If you can make time, it would be great if you could merge this fix.

It’s on my list, just been busy. I’ll get to it.


Automated cherry pick of #2652: 修改 Makefile 获取当前分支的方式

Cherry pick of #2652 on release/2.10.0.
#2652: 修改 Makefile 获取当前分支的方式

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.10.0@4cb4ca9). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             release/2.10.0   #2655   +/-   ##
================================================
  Coverage                  ?   7.63%
================================================
  Files                     ?     411
  Lines                     ?   64419
  Branches                  ?       0
================================================
  Hits                      ?    4921
  Misses                    ?   59074
  Partials                  ?     424

Flag
Coverage Δ

#aFlag
7.63% <ø> (?)

Continue to review full report at Codecov.

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

/approve
/lgtm


Fix issues in the account-recovery/authentication endpoints

Purpose
This PR fixes the following issues.

https://github.com/wso2/api-manager/issues/2544
https://github.com/wso2/api-manager/issues/2551

Resolves https://github.com/wso2/api-manager/issues/2544, https://github.com/wso2/api-manager/issues/2551

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


Potentially incorrect dependencies

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
Hi,
I'm managing the evals feedstock where I ran into the following problem: package langchain-0.0.136-pyhd8ed1ab_0 has constraint openai >=0.0.0,<1.0.0 conflicting with openai-1.0.0-pyhd8ed1ab_0
I couldn't find this upstream, so could it be that this restriction is incorrect?
Ref: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=848027&view=logs&j=656edd35-690f-5c53-9ba3-09c10d0bea97&t=986b1512-c876-5f92-0d81-ba851554a0a3&l=172
Feedstock: https://github.com/conda-forge/evals-feedstock/pull/3
Thanks!

This is fixed now.
https://github.com/conda-forge/langchain-feedstock/blob/b57d9cb14746153a927d5e1967bfa5789e368c0f/recipe/meta.yaml#L52
The issue was probably that the autotick updater was not correctly using grayskull for some reason. I heard that it's been updated internally a bit; maybe these kinds of issues won't happen again.


Use a customized awc client to fetch jwks

I am currently implementing an application using actix-4-jwt-auth that uses a custom certificate CA. actix-4-jwt-auth seems to be using the default client configuration to fetch the issuer info. Do i need to fetch and parse the issuer endpoint myself and extract the jwks or is there a way to customize/inject the awc::Client?

Hi,
You have no control over the discovery document ? (.well-known....)
A custom client may not be the most logical but something that allows you to implement the different retrieval calls maybe - or a constructor method that allows you to put in the details yourself.
Like to understand your use case a bit more

I do have the discovery url available - something like https://sso-server..../.well-known/openid-configuration
it can be retrieved by curl - no problem there.
The situation is that the SSL/TLS certificate of this https-server is not signed by a publicly known certificate authority but the company's own CA. We added the company's root CA's certificate to the system truststore so it is known to all the applications that certificates signed by this root-CA are also valid.
The problem is now that the client you use in your library does not use the system's trust store. so it cannot validate the oidc server's certificate. - There is currently no way to override the awc::default instance you create for retrieving the discovery document with our own awc instance that may have been the customized trust store added for proper validation.
I have found some other projects that do fetch this information by itself because - it seems to me - they also cannot use the default implementation
https://github.com/thomasdarimont/oauth2-oidc-for-rust-developers/tree/main/apps/api-actix

Ok, it took a while but understood. Client construction with trusted CA certificates is a very specific setup indeed. It's possible to add a way to create an OIDC instance that allows to add your own client.
Don't know when I will be able to add that, if you are able to add it,  I am happy to merge it in,


Fix #740 & #741

One thing i am not so sure is how to best determine an actual "WHERE" Expression (https://github.com/abaplint/transpiler/issues/741).
I now check for one token before the first sql condition token and check for "WHERE" as a string. Maybe there is also a nice method like node.getPrevious( ) but didn't finy andything.

if it works its okay for now :)
its the only SQLCond in expression https://syntax.abaplint.org/?filter=select#/abap/expression/Select


can't install dlib on windows 10 for python

hi,
I have windows 10 64 bit and i try and try to install dlib for python with this command:
python setup.py install
but i get error below:
running install
running bdist_egg
running build
Detected Python architecture: 32bit
Detected platform: win32
Removing build directory C:\Users\Avatar\Desktop\dlib-master./tools/python/build
Configuring cmake ...
-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.21005.1
-- The CXX compiler identification is MSVC 18.0.21005.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Boost
-- Found PythonLibs: C:/Python27/libs/python27.lib (found suitable version "2.7.9+", minimum required is "2.6")
error: cmake configuration failed!
i install cmake GUI and dont know haow can i set it.
and i build from source with cmake command like in readme file:
mkdir build; cd build; cmake .. ; cmake --build .
at the end i say that, i want use dlib on python .
does anyone can help me???
Thanks a lot....

-- Could NOT find Boost

you should download and install boost
this is not a problem of dlib itself, please ask such questions on stackoverflow

I have the same problem, and I have installed boost according to their setup instructions.

http://dlib.net/faq.html#Whywon'tthePythonbindingscompilework

Thanks.
How do you actually install boost_python under windows?
I can't find anything about that.
My cmake is getting these errors:
Could not find the following static Boost libraries:
boost_python-py34

CMake should output some instructions that tell you what to do.  There are also instructions on the boost website.   Also, you can pip install dlib for the 64bit version of python 3 on windows.  That's what I would do.

pip install also fails. After about 6 hours of following vague and contradicting boost installation manuals, endless errors, re-installs and whatnots, I've given up on getting DLIB python compiled. My hate towards boost is now intense and all consuming.

Yeah, it's annoying.  Although I would place the blame for this on the
python community.    There are hundreds of different possible python
configurations/environments that all require slightly different build
settings and are all incompatible with each other.
The pip install should work on windows.  I uploaded a compiled binary for
dlib for the 64bit version of the new python 3 interpreter a while ago. It
should just install in a second.  Although, maybe you don't have exactly
that specific version of python and pip thinks it therefore needs to
compile a new one.

I uploaded a compiled binary for dlib for the 64bit version of the new python 3 interpreter a while ago

I haven't been able to find this. Pypi only has the source for 19.1.0; the releases for this repo are only the source. Where is the dlib binary?

Huh, yeah I don't see it on pypi either.  I swear I uploaded it :/
I'll look into this tomorrow.

After some more snooping, I found it: https://pypi.python.org/pypi/dlib/18.17.100

That's the older one.  I made one for the newer version of dlib (which isn't very different if you use only python).  The upload to pypi must not have worked, apparently, and I didn't check since the upload didn't indicate any obvious failure.

Try "conda install -c menpo dlib"

conda install -c menpo dlib worked for me, however I had to downgrade python to version 3.5

I have been asked to download the dlib library on my windows system. I have followed the instructions given here: http://www.paulvangent.com/2016/08/05/emotion-recognition-using-facial-landmarks/
I have already downloaded nad install cmake, boost and Visual Studio. On the dlib folder
command prompt, on running "python setup.py install" I get the problem that you can see in the picture added.

You don't have a C++ compiler installed.  You need to select C++ when you install visual studio.  Also, make sure to install visual studio 2015 because visual studio 2017 is buggy and won't compile C++11 code, which is a requirement to use dlib.

Thanks for your quick response davisking.
You are right, there was a problem with visual studio 2017 so I installed visual studio 2015 with c++ packs.
However now I have other problem:
http://imgur.com/5DkUTJE
Has you any idea how I can solved it?
Thanks in advance

That error message literally tells you what to do.

I followed that error message literally without luck. Finally I solved that problem downgrading python to version 3.5 and conda install -c menpo dlib. Thanks for the help :)

Try to install dlib.
Get cmake and boost by pip.
Already have Visual C++ Build Tools.
Windows 7 x64
Get this error
$ python -m pip install dlib
Collecting dlib
Using cached dlib-19.4.0.tar.gz
Installing collected packages: dlib
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'
Complete output from command C:\Users\Andrey\AppData\Local\Programs\Python\P                                                                                ython36\python.exe -u -c "import setuptools, tokenize;file='C:\cygwin64\tm                                                                                p\pip-build-_6ur7d39\dlib\setup.py';f=getattr(tokenize, 'open', open)(_file                                                                                _);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'e                                                                                xec'))" install --record C:\cygwin64\tmp\pip-br460pmx-record\install-record.txt                                                                                --single-version-externally-managed --compile:
running install
running build
Detected Python architecture: 64bit
Detected platform: win32
Configuring cmake ...
-- The C compiler identification is MSVC 19.0.23506.0
-- The CXX compiler identification is MSVC 19.0.23506.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Stu                                                                                dio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Stu                                                                                dio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual S                                                                                tudio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual S                                                                                tudio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/                                                                                site-packages/cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:765 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDEN                                                                                CIES)
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:1472 (_Boost_MISSING_DEPENDENC                                                                                IES)
C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/dlib/cmake_utils/add_python_module                                                                                :61 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
CMake Warning at C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/                                                                                site-packages/cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:1536 (message):
No header defined for python-py34; skipping header check
Call Stack (most recent call first):
C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/dlib/cmake_utils/add_python_module                                                                                :61 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
-- Could NOT find Boost
CMake Warning at C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/                                                                                site-packages/cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:765 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDEN                                                                                CIES)
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:1472 (_Boost_MISSING_DEPENDENC                                                                                IES)
C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/dlib/cmake_utils/add_python_module                                                                                :63 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
CMake Warning at C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/                                                                                site-packages/cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:1536 (message):
No header defined for python-py35; skipping header check
Call Stack (most recent call first):
C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/dlib/cmake_utils/add_python_module                                                                                :63 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
-- Could NOT find Boost
CMake Warning at C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/                                                                                site-packages/cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:765 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDEN                                                                                CIES)
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:1472 (_Boost_MISSING_DEPENDENC                                                                                IES)
C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/dlib/cmake_utils/add_python_module                                                                                :66 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
CMake Warning at C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/                                                                                site-packages/cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:1536 (message):
No header defined for python3; skipping header check
Call Stack (most recent call first):
C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/dlib/cmake_utils/add_python_module                                                                                :66 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
-- Could NOT find Boost
CMake Warning at C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/                                                                                site-packages/cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:765 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:869 (_Boost_COMPONENT_DEPENDEN                                                                                CIES)
C:/Users/Andrey/AppData/Local/Programs/Python/Python36/Lib/site-packages/c                                                                                make/data/share/cmake-3.8/Modules/FindBoost.cmake:1472 (_Boost_MISSING_DEPENDENC                                                                                IES)
C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/dlib/cmake_utils/add_python_module                                                                                :69 (FIND_PACKAGE)
CMakeLists.txt:6 (include)
-- Could NOT find Boost
-- Found PythonLibs: C:/Users/Andrey/AppData/Local/Programs/Python/Python36/                                                                                libs/python36.lib (found suitable version "3.6.1", minimum required is "3.4")
--  ************************************************************************                                                                                *****************************
-- We couldn't find the right version of boost python.  If you installed boo                                                                                st and you are still getting this error then you might have installed a version                                                                                of boost that was compiled with a different version of visual studio than the on                                                                                e you are using.  So you have to make sure that the version of visual studio is                                                                                the same version that was used to compile the copy of boost you are using.
--  Set the BOOST_ROOT and BOOST_LIBRARYDIR environment variables before run                                                                                ning cmake.
--  E.g.  Something like this:
--     set BOOST_ROOT=C:\local\boost_1_57_0
--     set BOOST_LIBRARYDIR=C:\local\boost_1_57_0\stage\lib
--
--  You will also likely need to compile boost yourself rather than using on                                                                                e of the precompiled
--  windows binaries.  Do this by going to the folder tools\build\ within bo                                                                                ost and running
--  bootstrap.bat.  Then run the command:
--     b2 install
--  And then add the output bin folder to your PATH.  Usually this is the C:                                                                                \boost-build-engine\bin
--  folder. Finally, go to the boost root and run a command like this:
--     b2 -a --with-python address-model=64 toolset=msvc runtime-link=static
--  When it completes, set BOOST_LIBRARYDIR equal to wherever b2 put the com                                                                                piled libraries.
--  Note that you will need to set the address-model based on if you want a                                                                                32 or 64bit python library.
--
--  Next, when you invoke cmake to compile dlib you may have to use cmake's                                                                                -G option to set the
--  64 vs. 32bit mode of visual studio.  Also, if you want a Python3 library                                                                                you will need to
--  add -DPYTHON3=1.  You do this with a statement like:
--     cmake -G "Visual Studio 12 2013 Win64" -DPYTHON3=1 ....\tools\python
--  Rather than:
--     cmake ....\tools\python
--  Which will build a 32bit Python2 module by default on most systems.
--
--  ************************************************************************                                                                                *****************************
CMake Error at C:/cygwin64/tmp/pip-build-6ur7d39/dlib/dlib/cmake_utils/add                                                                                python_module:116 (message):
Boost python library not found.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
-- Configuring incomplete, errors occurred!
See also "C:/cygwin64/tmp/pip-build-_6ur7d39/dlib/tools/python/build/CMakeFi                                                                                les/CMakeOutput.log".
error: cmake configuration failed!
----------------------------------------

Command "C:\Users\Andrey\AppData\Local\Programs\Python\Python36\python.exe -u -c "import setuptools, tokenize;file='C:\cygwin64\tmp\pip-build-_6ur7d39\dlib\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\cygwin64\tmp\pip-br460pmx-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\cygwin64\tmp\pip-build-_6ur7d39\dlib\

Try "conda install -c menpo dlib"
@rendicahya, would you mind to explain how and why does it work when pip install dlib doesn't? I mean: what else happens when I use conda instead of pip and what is menpo?

. After about 6 hours of following vague and contradicting boost installation manuals, endless errors, re-installs and whatnots, I've given up on getting DLIB python compiled. My hate towards boost is now intense and all consuming.

100% agreed.

Did you download boost from boost.org and follow the exact instructions shown in @hadaev8's post?  The dlib output messages tell you what to type.  They are the commands I use myself to install on Windows.
Also, yes, boost is difficult.  Someone should switch dlib to pybind11 https://github.com/davisking/dlib/issues/293 and then boost won't be required :)

Although I should point out that a lot of the hate I get about boost is really due to python's incredibly horrible build and package management situation.  The only reason pybind11 would be better is because it's header only and therefore you don't have to separately compile it against the correct version of python. For instance, if you have multiple versions of python installed, as many users do, you have to be sure you are compiling all extension modules against the version of python you actually use.
There are many other problems.  And worse of all, I know about all these busted features of the python ecosystem because I'm inundated with people complaining about them :(
Really there needs to be a stable interface for building python extension modules.  That's the root of this problem.
But in any case, those instructions posted in this github thread you are reading should work just fine if you are using a copy of python that you got from python.org.  If it's some other repackaged copy of python then who knows.

This is tutorial to install dlib on windows 10: http://www.learnopencv.com/install-dlib-on-windows/. It works for me. Hope helpful!

Davis, I think it is better to add a note about windows boost pre-built binaries. I spent one day to find the problem. This dll file "boost_python3-vc140-mt-1_65_1.dll" depends still Python27.
Windows Boost binaries still have a bug :
https://github.com/boostorg/python/issues/129
You have to build Boost from source, don't use pre-built windows binaries of Boost.

Yes, I have a million notes that tell people to build boost themselves.  I don't know how many more places I can say it.

I've run  conda install -c conda-forge dlib=19.4  and it worked !

It's come to my attention that a lot of people are landing on this page when looking for instructions on installing dlib's python interface on windows.  THE INSTRUCTIONS IN THIS ISSUE ARE OUTDATED, in particular, boost is no longer used.  All you need to do is install CMake and Microsoft Visual C++.  Then just pip install dlib.  That's it.

I found this repository I think it can be useful for someone
https://github.com/charlielito/install-dlib-python-windows

@davisking
I have CMake(3.12.2) and Microsoft Visual C++ installed on my Windows 10 machine.
After running
python -m pip install dlib
I am getting this error trace:
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\build\lib.win-amd64-3.7 -DPYTHON_EXECUTABLE=C:\Python37\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\build\lib.win-amd64-3.7 -A x64'
-- Building for: NMake Makefiles
**CMake Error in CMakeLists.txt:
Generator
    NMake Makefiles

  does not support platform specification, but platform

    x64

  was specified.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage**
-- Configuring incomplete, errors occurred!
See also "C:/Users/bong/AppData/Local/Temp/pip-install-ld0kss0g/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\setup.py", line 257, in <module>
    'Topic :: Software Development',
  File "C:\Python37\lib\site-packages\setuptools\__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "C:\Python37\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Python37\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Python37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Python37\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Python37\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "C:\Python37\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Python37\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Python37\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\setup.py", line 133, in run
    self.build_extension(ext)
  File "C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\setup.py", line 170, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "C:\Python37\lib\subprocess.py", line 328, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\bong\\AppData\\Local\\Temp\\pip-install-ld0kss0g\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\bong\\AppData\\Local\\Temp\\pip-install-ld0kss0g\\dlib\\build\\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=C:\\Python37\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\bong\\AppData\\Local\\Temp\\pip-install-ld0kss0g\\dlib\\build\\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.

----------------------------------------

Command "C:\Python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\bong\AppData\Local\Temp\pip-record-vq973c50\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\bong\AppData\Local\Temp\pip-install-ld0kss0g\dlib\
What gives?

That error is indicating that you don't have visual studio installed.

@davisking
It seems like that is not the case since I have Visual Studio 2017 installed on the machine described above.

Well, cmake isn't finding it.  There are a lot of options when you install
visual studio.  Maybe you only installed the C# development tools. You need
to install the Visual C++ tools.

Try "conda install -c menpo dlib"

Thanks a lot, it worked for me too.

How do i install dlib and opencv in python anaconda?

How do i install dlib and opencv in python anaconda?

have you tried this?
conda install -c conda-forge dlib=19.4

Of course I did. But cant.. I think the version of anaconda and python are different in my pc..

(base) C:\Users\shashank>pip install dlib
Collecting dlib
Using cached dlib-19.19.0.tar.gz (3.2 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\shashank\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py'"'"'; file='"'"'C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\shashank\AppData\Local\Temp\pip-wheel-nefkgp8f'
cwd: C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib
Complete output (53 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "c:\users\shashank\anaconda3\lib\site-packages\setuptools_init_.py", line 145, in setup
return distutils.core.setup(attrs)
File "c:\users\shashank\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\shashank\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
self.run_command('build')
File "c:\users\shashank\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\shashank\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\shashank\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 125, in get_cmake_version
"\n*****************************************************************\n")
RuntimeError:

CMake must be installed to build the following extensions: dlib

ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\shashank\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py'"'"'; file='"'"'C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\shashank\AppData\Local\Temp\pip-record-v2m0ic28\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\shashank\anaconda3\Include\dlib'
cwd: C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib
Complete output (55 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "c:\users\shashank\anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 261, in <module>
    'Topic :: Software Development',
  File "c:\users\shashank\anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "c:\users\shashank\anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "c:\users\shashank\anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "c:\users\shashank\anaconda3\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "c:\users\shashank\anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "c:\users\shashank\anaconda3\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "c:\users\shashank\anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\users\shashank\anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 129, in run
    cmake_version = self.get_cmake_version()
  File "C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py", line 125, in get_cmake_version
    "\n*******************************************************************\n")
RuntimeError:
*******************************************************************
 CMake must be installed to build the following extensions: dlib
*******************************************************************

----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\shashank\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py'"'"'; file='"'"'C:\Users\shashank\AppData\Local\Temp\pip-install-fu8ll_7f\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\shashank\AppData\Local\Temp\pip-record-v2m0ic28\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\shashank\anaconda3\Include\dlib' Check the logs for full command output.

switch to python 3.5.0

I successfully installed dlib 19.8.1 on Python 3.7 using the following whl,
dlib-19.8.1-cp37-cp37m-win_amd64.zip

hi,
I have windows 10 64 bit and i try and try to install dlib for python with this command:
python setup.py install
but i get error below:
running install
running bdist_egg
running build
Detected Python architecture: 32bit
Detected platform: win32
Removing build directory C:\Users\Avatar\Desktop\dlib-master./tools/python/build
Configuring cmake ...
-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.21005.1
-- The CXX compiler identification is MSVC 18.0.21005.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Boost
-- Found PythonLibs: C:/Python27/libs/python27.lib (found suitable version "2.7.9+", minimum required is "2.6")
error: cmake configuration failed!
i install cmake GUI and dont know haow can i set it.
and i build from source with cmake command like in readme file:
mkdir build; cd build; cmake .. ; cmake --build .
at the end i say that, i want use dlib on python .
does anyone can help me???
Thanks a lot....

may be your error can be resolved by installing cmake
pip install cmake

Refer this video https://youtu.be/xaDJ5xnc8dc .In this video he clearly explained how libraries dlib, face-recognition can be installed in our system

I did this and work:
In PowerShell I used chocolatey to install cmak:
choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"'
after that add cmake to your PATH (windows key + search env + edit the system enviro... + Environment Variables + the define new path by browsing to 'C:/program file/cmake/bin' )
the again try
pip install dlib


Stop the memory "leak"

Related to https://github.com/meilisearch/milli/issues/279
This should be done on Milli's side. Once the Milli's release containing this change is out, the MeiliSearch dependency should be updated.

Closed by https://github.com/meilisearch/milli/issues/279

Closed by #1533


Kite prevents SublimeText new file title behavior

By default in ST, the first line of a new plain text file is used to set its tab's title (and its default filename when you choose to save it). However, with the Kite plugin installed, this behavior seems to be completely disabled.
I'm running Kite Version 0.20170914.0 and ST Version 3.0, Build 3143 (though I saw the same behavior on older builds of ST3 as well)

Hi @astonm!  It looks like this was fixed but please re-open if you're still seeing it.  Cheers!


Works strange with large elements

I want to apply effect to large components and it does not work
https://jsfiddle.net/anton_kob/n5u098x5/4/

Here is a screenshot of this interesting effect.

Having the same issue


Where is this? import {Draggable, Sensors} from '@shopify/draggable'

Trying to understand the documentation here: https://github.com/Shopify/draggable/tree/master/src/Draggable/Sensors/DragSensor
You give this example:
import {Draggable, Sensors} from '@shopify/draggable';
I cannot find an exported member called Sensors in your code.
Where does Sensors come from in this instance?
The example there has this format:
const draggable = new Draggable(containers, {
    sensors: [Sensors.DragSensor],
  });

Where does Sensors.DragSensor come from?
I presume these are somewhere in your repo!
Finally, how do I add sensors: [Sensors.DragSensor], to this paragraph.:
this.draggable = new Draggable(
      headerRow,
      { stop: this.reorderAttributes },
      { direction: 'horizontal' },
    );

It only expects 3 arguments? The constructor looks like this:
constructor(
    container: HTMLElement,
    callbacks: {
      stop: (sourceIndex: number, destinationIndex: number) => void;
    },
    options: {
      // Be careful when changing these values as they are bound to the CSS class names.
      direction: 'horizontal' | 'vertical';
    },
  )

There is no mention of a Sensors argument?

@hellfireSteve Using the latest Github version, I am able to import the Sensors object as demonstrated in the README. Also, sensors are set using the sensors array in the options, they are not specified in the constructor as an argument. The Draggable constructor only takes in 2 arguments, I'm not sure why you think it takes in 3.
One more thing: I think DragSensor is being overridden by the default MouseSensor.
Call this to remove it:  draggable.removeSensor(Sensors.MouseSensor).

I’m closing this issue because it has been inactive for a few months.
Feel free to reopen if you have any else questions. 😄
Thank you!


head is safe if target is ::

.head is safe on a cons, but WartRemover errors on it anyway, telling me to use headOption instead. But using headOption is pointless in this case.
You could say I should use a NonEmptyList type instead, but that's a matter of opinion.

The issue I see here is that it's not a type-directed thing, and feels like a bit of rabbit hole. I.e., it's trivial to detect that List(a, b).head is safe, but is val x = List(a,b); x.head` safe? Do we want to perform partial evaluation in wart remover? Is it even well defined to talk about partial evaluation "up to impurity"? It seems easier (both in terms of implementation and a potential user's mental model of what will work and won't) to stick to more "syntactic" warts.

I understood @greenrd as saying that head should be safe on the :: type. Basically, he takes issue with the fact that the following does not work:
scala> val foo : ::[Int] = ::(1, Nil)
foo: ::[Int] = List(1)

scala> foo.head
<console>:9: error: List#head is disabled - use List#headOption instead
              foo.head

I don't think there is any idiomatic usage of scala where this usage would arise—so I'm not making it a priority—but I'm open to a patch that changes this behavior.

I agree that making this not error in wartremover for :: sounds reasonable. But I would also advise against using it, only because it's called .head in both :: (where it's safe) and List( where it isn't).

It seems super rare that you'd end up with a cons type in practice...


The pipe doesn't work with IE

Hi,
I'm using the ng2-translate pipe, it works good with any browser except internet explorer.
I have nothing in the browser console.
If anyone knows something about this issue, please help!
thank you guys!

ng2-translate version: 5.0.0

Angular version: 2.4.3-rc.X

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]

Happens to me too. Any idea we it might be happening?


fullscreen alt+tab erorrs

alt+tab in fullscreen on windows (8, if it matters) in opengl mode does not properly reset to the prior desktop resolution
in directx mode, it does, however when alt+tabing back to game, the first time, preview shows mismatched window border and playgui, then when it actually gets back 'in-game', scrolling corrpution. a second attempt will crash the application.
attempting to debug the error via visual studio 2013 ends up getting 'caught' (can't tell if it's an ap-hang or not) unable to alt tab a second time to view any breaks.

You should probably consider implementing borderless fullscreen support. Doesn't require mode setting and works nicer on multi-display setups. Plus in the case of linux it's 100x more reliable. ;)

intermediary isolation report: https://github.com/GarageGames/Torque3D/pull/1072 triggered it. (could take a bit to wade through)

Confirmed, we have some problem with this :(
gfxTextureManager.cpp(142,0): {Fatal} - Texture Manager already a zombie!

@Azaezel , can you test if problem is fixed?

verrified

Thx for test :)


Inactivity

This repository has been inactive over the last few weeks.
School started up again and I've been caught up with studies.
I apologize for the inconvenience.

Same here as well, I've got exams coming up also


Add content for the Next.js quickstart guide

Vercel is unable to build these changes. Are you able to build the docs locally with your changes @gdangelo ?

Also what comes to mind when using Nextjs is SSR. Maybe we could add a section about how to use getServerSideProps?

I would also add a link to the Nextjs reference documentation, in particular the explanation on how SSR/CSR works with auth

Also, what comes to mind when using Nextjs is SSR. Maybe we could add a section about how to use getServerSideProps?

I would also add a link to the Nextjs reference documentation, in particular the explanation on how SSR/CSR works with auth

I agree. But as it is a quickstart guide, maybe we could just add a note and link it to the Next.js reference documentation for further details on SSR. What do you think?

Finally, there's a limitation in our Next implementation: the Apollo client cache is not hydrated, meaning the GraphQL operation will run on the client side. It's not trivial to implement as the Apollo and Next hydration patterns are quite different.

Does it mean I can't do something like this with Nhost to fetch data in SSR pages:
export async function getServerSideProps() {
  const { data } = await client.query({
    query: gql`
      query Todos {
        todos {
          id
        }
      }
    `,
  });

  //...
}

But again, in this guide, I'm using Apollo client to fetch data on the client-side. So I'm not sure if it's worth mentioning your point here. I think this is also something to add to the reference guide if Nhost users want further details.


Fix: error while generating embedding for a query using TensorFlow Hub.

Models loaded from TensorFlow Hub expect a list of strings to generate embedding for. However in embed_query method, we directly pass the text instead of converting it to a list. This gives error as the model expects a list but is provided with a string.

This PR fixes this issue: https://github.com/hwchase17/langchain/pull/3284


Question about encode the gama rather than t

Thank you for open source such a nice code! I have a quick question that hope you could help me with. I'm wondering why you encode the gama rather than t? and why using sample_gammas between gama-t1 (gama t-1) and gama-t2 (gama t) instead of using gama at t?
Thank you in advance for your help!

This follows the settings of its predecessor, which you can find in Image Super-Resolution via Iterative Refinement.

Thank you, this is very helpful!


Connection fails since today's app update

I have a new app since today and can no longer connect to the ECU-B (port 8899 can no longer be opened)

Same here :(

What do you mean by "I have a new app"?

The “EMA app” looks a little different and asked me about new policies.
btw, In addition to HA, I also use Node-Red access directly to the TCP port. This no longer works either.

I have this error log
2024-03-08 14:50:54.491 WARNING (SyncWorker_14) [custom_components.apsystems_ecur] Using cached data from last successful communication from ECU. Invalid data error: [Errno 113] Host is unreachable
But in https://www.apsystemsema.com/ all is OK

Hi,
I restart ECU and now is ok ! Just waiting tomorrow for datas but is connected to Hass

@eb-stefan Did you allready restart the ECU or do you still have isseus connecting?

@thomasvanhorde @eb-stefan  Everything still in working order?

@thomasvanhorde @eb-stefan Everything still in working order?

Yes, thank you ! All is okay after reboot ECU

Sorry, I was unfortunately sick last week.
Everything is working fine again.
What solution do you have? I have moderate experience with Node-Red :-)

Hope all is well again. I'm still working on the proxy method. Before the EU is sending the data to EMA it passes the proxy integration to register data in Home Assistant. Disadvantage is that signal data is not present, advantage is that current en voltages of each panel is now visible. (have to do some manual calculations that hopefully will get closer to the values EMA calculates. The ECU values are less accurate.

I'll close this issue, feel free to open a new one when ever needed.

I'm currently using a TCP function in NR. It has been running stable for 3 years.
I've only been working with HA for a few weeks. But my NR script is similar to this one:
https://community.home-assistant.io/t/apsystems-aps-ecu-r-local-inverters-data-pull/260835


Search box not working on website bayeslite documentation

Searching in the search box at http://probcomp.csail.mit.edu/bayesdb/doc/ seems to always come up blank with no results.

Related/duplicate issue at #471. Not sure what is the latest status.

Should be fixed at http://probcomp.csail.mit.edu/bayesdb/doc/ by b2ca081


Patch for /contrib/externs/w3c_midi.js

This issue was imported from Closure Compiler's previous home at http://closure-compiler.googlecode.com
The link to the original issue is:
http://blickly.github.io/closure-compiler-issues/#1272

@retromodular Unfortunately the patch is lost with Google Code... Do you want to submit this as a PR?

@blickly This PR is significantly out of date and no longer actionable as the original patch is gone so this can probably be closed

Thanks for investigating


Update the version of the embedded kubectl binary

Update the version of the embedded kubectl binary to the latest version.

This is currently not required as we currently package the 1.18 version of Kubectl and officially support Kubernetes 1.17-1.19 at the time of writing this.
https://github.com/kubernetes/community/blob/master/contributors/design-proposals/release/versioning.md#supported-releases-and-component-skew


Identity Registration Fails

This must work in order to propose the milestone amendment with this UI as the UI part of the deliverable. It doesn't now, even when I run the directions in #4 -- here is the error log:
➜  sunshine-identity-ui git:(master) ✗ flutter run
Running "flutter pub get" in sunshine-identity-ui...                1.5s
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
Project base configurations detected, removing.
Running pod install...                                              1.9s
Running Xcode build...

 └─Compiling, linking and signing...                         8.7s
Xcode build done.                                           24.0s
Waiting for iPhone SE (2nd generation) to report its views...          3ms
flutter: Pushing /
Syncing files to device iPhone SE (2nd generation)...              123ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on iPhone SE (2nd generation) is available at: http://<IP_ADDRESS>:56843/8UP0G4CTLdE=/
flutter: unhandled element filter; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#3d313(), name: "assets/svg/sun.svg", colorFilter: null)
flutter: \^[[1;32mℹ\^[[0m \^[[32mINFO\^[[0m \^[[1msubstrate_subxt_client\^[[0m > S<…>
flutter: \^[[1;32mℹ\^[[0m \^[[32mINFO\^[[0m \^[[1msubstrate_subxt_client\^[[0m > ✌  v<…>
flutter: \^[[1;32mℹ\^[[0m \^[[32mINFO\^[[0m \^[[1msubstrate_subxt_client\^[[0m > ❤  by David Craven <david@crav<…>
flutter: \^[[1;32mℹ\^[[0m \^[[32mINFO\^[[0m \^[[1msubstrate_subxt_client\^[[0m > 📋 Chain specification: Sta<…>
flutter: \^[[1;32mℹ\^[[0m \^[[32mINFO\^[[0m \^[[1msubstrate_subxt_client\^[[0m > 🏷  Node name: Staging Testnet (s<…>
flutter: \^[[1;32mℹ\^[[0m \^[[32mINFO\^[[0m \^[[1msubstrate_subxt_client\^[[0m > 👤<…>
flutter: Client Started in:
	=> 0 min
	=> 26 sec
flutter: Pushing /main-screen
flutter: Pushing /account-screen
flutter: \^[[1;31m❌\^[[0m \^[[1;4;31mERROR\^[[0m \^[[1midentity_client\^[[0m > "ID :: resolve": Client(Identity<…>
flutter: \^[[1;32mℹ\^[[0m \^[[32mINFO\^[[0m \^[[1msubstrate_subxt::rpc\^[[0m > Submitting Extrinsic `0xa92509237e1a173f16dd5a044ff4acc2e640d037d18f1f9d99ec0<…>
flutter: \^[[1;31m❌\^[[0m \^[[1;4;31mERROR\^[[0m \^[[1midentity_client\^[[0m > "Faucet :: mint": Client(Chain(Rpc(Request(Error { code: ServerError(1013), message: "Transaction Already Imported", data: Some(String("<…>

The first error happens when I click on the account's icon in the upper right corner to go the account's page.
The second error happens when I click on the *null value of the Balances field. The UID is N/A.

Is there some way that a local keystore exists in Xcode that has been initialized and locked in a previous installation of the app? I can't see how that would be possible considering how I followed directions for #4 in a completely new directory.

Best thing you could do is to uninstall the application from the simulator and then try to run flutter run again so it builds and install a new Clean one.
You should wait until it starts, you could wait for a minute or two and then create your account, it take sometime and when it says account created it should show you the UID and the device ID.
If you got to this screen, could you please post a screenshot and also any logs?

I can't see how that would be possible considering how I followed directions for #4 in a completely new directory.

The Files are stored in the iOS simulator it self internally, not the root of the repo.

Registration succeeds


chore(clerk-js,types): Drop experimental_force_oauth_first & experimental__forceOauthFirst

Description
We are dropping the experimental_force_oauth_first & experimental__forceOauthFirst from the DisplayConfig and DisplayConfigJSON. The feature that those 2 were introduced for, is not used anymore, so we will drop those 2 and create an internal ticket to support that use case as part of a more generic solution / feature.
Checklist

[x] npm test runs as expected.
[x] npm run build runs as expected.
[x] (If applicable) JSDoc comments have been added or updated for any package exports
[x] (If applicable) Documentation has been updated

Type of change

[ ] 🐛 Bug fix
[ ] 🌟 New feature
[ ] 🔨 Breaking change
[x] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

Packages affected

[x] @clerk/clerk-js
[ ] @clerk/clerk-react
[ ] @clerk/nextjs
[ ] @clerk/remix
[x] @clerk/types
[ ] @clerk/themes
[ ] @clerk/localizations
[ ] @clerk/clerk-expo
[ ] @clerk/backend
[ ] @clerk/clerk-sdk-node
[ ] @clerk/shared
[ ] @clerk/fastify
[ ] @clerk/chrome-extension
[ ] gatsby-plugin-clerk
[ ] build/tooling/chore

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.


Doublequotes in string field

Describe the bug
Writing string from dart containing
[{"measurement":"Temperature","label":"Temperature","unit":"°C"...

results in this string in influxdb
[{\measurement\:\Temperature\,\label\:\Temperature\,\unit\:\°C\...

Expected behavior
Returned string from query will be same as written one
Specifications:

Client Version: main-git
InfluxDB Version: 2.0.9
Platform: Win/Android

Hi @Sciator,
thanks for using our client.
I've prepared a fixed version within #46.  The stable version of the client will be available in regular release cycle.
If you would like to use the development version, then you can import the library by:
dependencies:
  influxdb_client:
    git:
      url: git@github.com:influxdata/influxdb-client-dart.git
      ref: fix_string_serialization

https://dart.dev/tools/pub/dependencies#git-packages

Regards


Install Documentation

The prerequisites section suggests to install a recent python version to get pip, but then the example uses pip directly:
$> pip install tableauserverclient
but if based on python it should be:
$> python -m pip install tableauserverclient

Generally, in venvs or if using a system python install, pip will be on your path as well as python. Both are supported/standard ways to install

That's not the case for windows I think.
It makes sense that it is expected in linux environments.

Make a note of it in Windows vs Linux if that's the case.

@fpagliar could you say more about the context you encountered this in? I can't repro on either of my Windows boxes.

how to install it on a linux machine

I think we have this covered with the pip install instructions here:
https://tableau.github.io/server-client-python/docs/#install-tsc
This should work on any system which has Python 3.5+ and pip installed.


[Feature] Making action masks compatible with q value modules and e-greedy

Action masks where introduced in #1421.
This PR has the job of making the components in the training pipeline use this mask.
The components that need updating are:

q modules and actors
e-greedy

This addresses some of the issues brought up in  #1404
cc @Kang-SungKu @1030852813 @fedebotu

We have to decide what to do with the wrapper.
As of now i just added a new greedy module.
Do we want to deprecate the wrapper? what is the process for that?

We have to decide what to do with the wrapper. As of now i just added a new greedy module. Do we want to deprecate the wrapper? what is the process for that?

Add a deprecation warning in the constructor, say that it'll be deprecated in v0.3

should be ready


some question with router

I use next's link as matching <IP_ADDRESS>/:id,
i o[en the real route <IP_ADDRESS>/demo still still <IP_ADDRESS>/:id. I then configured the route of <IP_ADDRESS>/demo on the server side to access the current page. Is there a better solution

Seems alright. Please follow the issue template in the future.


[v2.8] bump kubectl to 1.28.3 in security-scan

kubectl binary needs to be bumped to version 1.28.3

Validated on rancher v2.8.3-rc3, installed CIS chart 5.1.0-rc8 on RKE1 v1.28.7-rancher1-1 cluster, v1.8-permissive profile scan passed successfully.
kubectl version in security scan pod:
kubectl version
Client Version: v1.28.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.7


Update the client-base dependency to v0.8.0

We now use the new suggested way to get the stub, so it has proper async type hints.
We also enable the old behavior to retry on stream exhaustion because we don't expect data streaming to end normally, so we want to keep retrying if that happens.

Draft because it needs a release of v0.8.0 (and an update of the dependency in pyproject.toml).

I'm sneaking in a commit to stop getting those annoying warnings about --platform from docker.


context menu scrolling not working consistently on Android

I received an issue for Obsidian Excalidraw reporting problems with the context menu positioning and scrolling #742.
I did my own testing as well:

ok on Samsung Note 8
NOT OK on Pixel 4A
ok on iPhone 5SE

Interestingly on both the Samsung Note 8 and the Pixel 4A the browser was the same Chrome version: 104.0.5112.69
According to @pikatwinky the issue did not appear on Xiaomi Redmi Note 8 Pro and Motorola E4 plus with Firefox and Mi browser, but it did appear when using a chromium browser.
This is the screen recording of the Pixel 4A. As you can see the context menu is displayed, then repositioned. I can't observe this repositioning on the Note 8.
https://user-images.githubusercontent.com/14358394/184549541-89ff166d-cdfb-4af9-ae99-ee4625d9b188.mp4

I'm sorry, i'm not a very technical person, but i did a trivial test about this in my Xiaomi Redmi Note 8 pro (MIUI12 ->Android 10) using the browsers: Brave Browser, Chrome, Firefox and my phone's default MI Browser .
In a new canvas i draw a basic figure near the bottom of the screen and tried to access to it's context menu clicking about the same area 10 times, then counting the ratio of the times the menu was shown properly (e.g 1/10, 5/10, etc). I repeated this with the rest of browsers mentioned above trying to keep the same conditions the best possible
Brave Browser (Chrome-based):  0/10
https://user-images.githubusercontent.com/31860235/184557364-e02f75d9-4b93-4c89-ae2f-c539308db420.mp4
Chrome: 3/10
https://user-images.githubusercontent.com/31860235/184557306-07371f66-315c-4ebc-bc4a-9cd47b8bfccd.mp4
Mi Browser: 10/10
https://user-images.githubusercontent.com/31860235/184557354-a92aabe2-3380-4ae2-95ac-56eac6384f82.mp4
I did the same test using Firefox and the results were as good as the MI Browser ones (but i don't have the video)
I hope this can bring more insight to the issue

I tried to replicate this on a Pixel 6 Pro, Chrome 105.0.5195.79, and found that the behavior of points on a line are inconsistent. Sometimes the context menu moves, and sometimes it does not.

found that the behavior of points on a line are inconsistent.

when you say points on a line, what do you mean exactly (in relation to context menu)?

when you say points on a line, what do you mean exactly (in relation to context menu)?

Sorry for being unclear; I added a recording to my earlier report.

Oh, I see. Thanks! We'll need to figure this one out for sure...


ENH: Use np.dot to speedup spatial.distance.correlation

What does this implement/fix?
This PR changes the implementation of spatial.distance.correlation to rely on dot products for computing the distance (7e85a8894dca17e3c70747265f090ff620f90a60). 77f135df810351e959cbb06054a019b9ade4896f switches to builtin math operations when working on scalars as they have less overhead compared to numpy.
Overall this reduces the runtime of spatial.distance.cosine by ~6 x and the weighted version by ~3.5 x 🚀
Additional information
The above numbers where measured using the script below.
import numpy as np
import scipy.spatial

x = np.random.normal(size=512)
y = np.random.normal(size=512)
w = np.random.uniform(size=512)

%timeit scipy.spatial.distance.cosine(x, y)
# main: 19.2 µs ± 358 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)
# this PR: 3.15 µs ± 54.9 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

%timeit scipy.spatial.distance.cosine(x, y, w)
# main: 46.6 µs ± 1.79 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)
# this PR: 13.6 µs ± 530 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

%timeit scipy.spatial.distance.correlation(x, y)
# main: 34.1 µs ± 326 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each)
# this PR: 14.2 µs ± 168 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

%timeit scipy.spatial.distance.correlation(x, y, w)
# main: 71.3 µs ± 2.42 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)
# this PR: 17.7 µs ± 89 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

Here are the results of the XdistWeighted (Xdist doesn't show a difference since it uses C code instead):
spatial.XdistWeighted.time_cdist (main)    spatial.XdistWeighted.time_cdist (this PR)
============ ============ =============    ============ ============= =============
--                     metric              --                      metric
------------ --------------------------    ------------ ---------------------------
 num_points     cosine     correlation      num_points      cosine     correlation
============ ============ =============    ============ ============= =============
     10       3.99±0.1ms    6.37±0.2ms          10       1.38±0.1ms   1.54±0.07ms
     20       16.5±0.2ms     25.7±1ms           20       5.40±0.5ms    6.14±0.2ms
    100        420±20ms      652±30ms          100        134±10ms      154±20ms
============ ============ =============    ============ ============= =============

spatial.XdistWeighted.time_pdist (main)    spatial.XdistWeighted.time_pdist (this PR)
============ ============= =============   ============ ============= =============
--                      metric             --                      metric
------------ ---------------------------   ------------ ---------------------------
 num_points      cosine     correlation     num_points      cosine     correlation
============ ============= =============   ============ ============= =============
     10       1.99±0.08ms    3.13±0.5ms         10       635±100μs      707±50μs
     20        7.97±0.3ms   11.9±0.03ms         20       2.56±0.1ms    3.07±0.2ms
    100         208±10ms      313±10ms         100        61.8±2ms      79.9±4ms
============ ============= =============   ============ ============= =============

From what I can tell the CI failure seems to be unrelated but happy to have a closer look if you think that's not the case.

From what I can tell the CI failure seems to be unrelated but happy to have a closer look if you think that's not the case.

Yeah, that's unrelated.
Out of interest, is u @ w any faster/slower than np.dot(u, w)?

and thanks for your first contribution to SciPy

Great, thanks for properly running the benchmarks and the fast review.


Code Run

Hello, thank you for your project. I have a question about code execution. python main.py --train -n "your_model_name"。 What does this "your_model_name" mean? what are the specific steps for running the code? Run python main.py -- reload -- previous_ Dir "cpn" appears File "main. py", line 117, in
model_ path = sorted(glob.glob(os.path.join(opt.previous_dir, '*.pth')))[0]
IndexError: list index out of range.How to solve this problem？Looking forward to your reply, thank you. @vefalun

Are the steps to run Exploring Spatial temporal Relationships for 3D Pose Estimation via Graph Convolutional Networks the same? In the first stage, no optimization parameters are given, and a pre training model is obtained. In the second stage, optimization parameters are added, and the pre training model obtained in the first step is added?


pluginsInstall was not removed after refactor

:warning: relies on #33

Current coverage is 100% (diff: 100%)

No coverage report found for develop at 02d9c8c.

Powered by Codecov. Last update 02d9c8c...86ff105


Think about supporting Bean Validation 1.1 annotations on fields

https://docs.jboss.org/hibernate/stable/beanvalidation/api/
http://beanvalidation.org/
It would be useful to support  JSR-349 annotations on case classes.  Unfortunately, the spec only supports property annotations on JavaBean getter methods.  Halva could apply any supplied annotations on the field.
Ex:
@CaseClass
class Foo {
  @NotNull
  @Size(min = 8, max = 12)
  String type();
}

could generate:
class FooCase {
  @NotNull
  @Size(min = 8, max = 12)
  private final String type;
...

One implementation is to take the property annotations, filter out Jackson annotations and copy the remaining onto the field definition.  See http://fasterxml.github.io/jackson-annotations/javadoc/2.7/com/fasterxml/jackson/annotation/JacksonAnnotation.html:
Meta-annotation (annotations used on other annotations) used for marking all annotations that are part of Jackson package. Can be used for recognizing all Jackson annotations generically, and in future also for passing other generic annotation configuration.

From what I remember from the JSR, annotations must be on the field or a getter method.  A case class would need to look like:
@CaseClass
public interface Foo {
  @NotNull
  String getValue();
}

I am not sure if Halva supports the getXXX notation or wants to.

Here is a quick POC implementation with the logic outlined in the initial comment:  https://github.com/azell/halva/commit/faae32dcefeac3213b0c941798e04e25e48d9adc
I am not totally in love with this approach, and would welcome alternate viewpoints.

Fixed by #40


bug(gatsby-source-strapi): 400 Error Type with QueryParams

Describe the bug
Recently upgraded to Strapi 5, gatsby-source-strapi is no longer working. Getting a 400 error for a Single Type with Query Params set:
Failed to fetch data from Strapi /api/global with {"method":"GET","url":"/api/global","params":{"populate":{"favicon":"*","headerImage":"*","defaultSeo":{"populate":"*"}}},"paramsSerializer":{}} Request failed with status code 400
If I remove Global, it gives me a 400 error for /api/pages. If I remove that, then it seems to go through, so not all collections are having issues, seems to be the ones that have Query Params set maybe?
To Reproduce
I'm not sure, maybe just certain nested queries are causing issues?
Expected behavior
gastby-source-strapi should still work after Strapi upgrade.
System Info
Here is my config:
const strapiConfig = {
  version: 5,
  apiURL: process.env.STRAPI_API_URL,
  accessToken: process.env.STRAPI_TOKEN,
  collectionTypes: [
    {
      singularName: "profile",
      queryParams: {
        populate: {
          workSamples: {
            populate: "*",
          },
          disciplines: {
            populate: "*",
          },
          descriptors: {
            populate: "*",
          },
          profilePicture: {
            populate: "*",
          },
        },
      },
    },
    {
      singularName: "author",
    },
    {
      singularName: "category",
    },
    {
      singularName: "resource-tag",
    },
    {
      singularName: "testimonial",
    },
    {
      singularName: "discipline",
    },
    {
      singularName: "work-sample-discipline",
    },
    {
      singularName: "discipline-category",
    },
    {
      singularName: "descriptor",
    },
    {
      singularName: "descriptor-category",
    },
    {
      singularName: "resource",
    },
    {
      singularName: "page",
      queryParams: {
        populate: {
          coverImage: "*",
          image: "*",
          blocks: {
            populate: {
              image: "*",
              qa: "*",
            },
          },
          sideBlocks: {
            populate: {
              image: "*",
              qa: "*",
            },
          },
        },
      },
    },
  ],
  singleTypes: [
    {
      singularName: "global",
      queryParams: {
        populate: {
          favicon: "*",
          headerImage: "*",
          defaultSeo: {
            populate: "*",
          },
        },
      },
    },
  ],
}

I had the same problem. The plugin documentation seems to be bad for the media type field.
In the Strapi documentation (popular-select), the query is:
{
  populate: {
    headerImage: {
      fields: ['name', 'url'],
    },
  },
}

So for your global type, you should try:
{
  singularName: "global",
  queryParams: {
    populate: {
      favicon: {
        fields: ['*'],
      },
      headerImage: {
        fields: ['*'],
      },
      defaultSeo: {
        populate: "*",
      },
    },
  },
}

@aprat-mentaia thanks so much for the suggestion! the fields really helped with the media queries...unfortunately, it doesn't seem to fix the issue with populating dynamic zones (blocks, sideBlocks) or components (defaultSeo). For example, defaultSeo has an image object on the component itself, and it doesn't seem to pull through...
Any advice? Thanks so much!

For me, this code:
defaultSeo: {
  populate: "*",
},

gets all attributes, including the image object.
But if you want only the image object (populate-several-levels-deep-for-specific-relations), you can try:
{
  singularName: "global",
  queryParams: {
    populate: {
      favicon: {
        fields: ['*'],
      },
      headerImage: {
        fields: ['*'],
      },
      defaultSeo: {
        populate: ['image'],
      },
    },
  },
}

I ended up needing to config my collection like this to pull in nested dynamic zones:
{
      singularName: "page",
      queryParams: {
        populate: {
          coverImage: {
            populate: "*"
          },
          sideBlocks: {
            populate: "*"
          },
          blocks: {
            populate: "*"
          },
        }
      }
    },
    ```

    where blocks and sideBlocks are dynamic zones. Thanks for the support!


SAK-32358 - Sitestats: Unable to update or delete a report.

SAK-32358 - Sitestats: Unable to update or delete a report.

This doesn't look to be the right way to fix this, I think the Site Stats beans are currently not wired up correctly. Although transaction proxies are created they have different bean IDs that aren't referenced anywhere. The normal pattern is to have the proxy have the correct bean ID and to have the internal bean have an internal ID.

So, will this require a lot of changes in the bean definitions? I can help but i don't know exactly how to proceed, so probably this will require more expertise.
Thanks

There's an example here: https://github.com/buckett/sakai/tree/SAK-32358 but this doesn't currently work due to the circular dependencies.

Thanks @buckett , i don't want to waste your valuable time, sorry in advance.
I've implemented the changes from your branch and it doesn't work, the log says something like this:
06-jul-2017 09:01:23.746 WARN [http-apr-8080-exec-7] org.sakaiproject.sitestats.impl.report.ReportManagerImpl.lambda$saveReportDefinition$1 Unable to commit transaction:
org.hibernate.TransactionException: nested transactions not supported
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:154)
at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1471)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.orm.hibernate4.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1244)
at com.sun.proxy.$Proxy68.beginTransaction(Unknown Source)
at org.sakaiproject.sitestats.impl.report.ReportManagerImpl.lambda$saveReportDefinition$1(ReportManagerImpl.java:612)
at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:341)
at org.springframework.orm.hibernate4.HibernateTemplate.execute(HibernateTemplate.java:296)
at org.sakaiproject.sitestats.impl.report.ReportManagerImpl.saveReportDefinition(ReportManagerImpl.java:622)

Definitely is something we should discuss with priority, i've raised this Jira:
https://jira.sakaiproject.org/browse/SAK-32358
The Jira is similar to this issue but only affects Oracle, cannot confirm yet it has relation with the Hibernate4 upgrade.

Hi Miguel,
I took a look at this and located the issue will be submitting a new PR soon.
The simple answer is that the transaction proxy (TransactionProxyFactoryBean) for StatsManager was not injected into the beans correctly.

Thanks @ern , let me know where i can help, i'll test your PR when available.
We also found a potential related problem in the JobScheduler, in ContextMappingDao.
Regards, Miguel

The potential related problem is here:
https://github.com/sakaiproject/sakai/pull/4590

Going close this as this will be fixed in pull #4605


Add int64 support for resource_gather

This PR tries to address the issue raised in #31696 where resource_gather on GPU does not support int64. The reason was that only half, float, double have been registered on GPU for ResourceGather kernel.
This PR registers additional kernel supports (no int32 though as int32 on GPU are emulated on CPU)
This fix fixes #31696.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

Can one of the admins verify this patch?

@yongtang can you please check build failures ?

Is this change available on tf-2.2?
I'm still facing the issue.
*** tensorflow.python.framework.errors_impl.NotFoundError: No registered 'ResourceGatherNd' OpKernel for 'GPU' devices compatible with node {{node ResourceGatherNd}}
(OpKernel was found, but attributes didn't match) Requested Attributes: Tindices=DT_INT32, dtype=DT_INT64
.  Registered:  device='GPU'; dtype in [DT_DOUBLE]; Tindices in [DT_INT64]
device='GPU'; dtype in [DT_DOUBLE]; Tindices in [DT_INT32]
device='GPU'; dtype in [DT_FLOAT]; Tindices in [DT_INT64]
device='GPU'; dtype in [DT_FLOAT]; Tindices in [DT_INT32]
device='GPU'; dtype in [DT_HALF]; Tindices in [DT_INT64]
device='GPU'; dtype in [DT_HALF]; Tindices in [DT_INT32]
device='CPU'; dtype in [DT_VARIANT]; Tindices in [DT_INT64]
device='CPU'; dtype in [DT_VARIANT]; Tindices in [DT_INT32]
device='CPU'; dtype in [DT_RESOURCE]; Tindices in [DT_INT64]
device='CPU'; dtype in [DT_RESOURCE]; Tindices in [DT_INT32]

@mingruimingrui Can you open a new issue and provides details such as OS version, install, etc? That will help getting the issue resolved. You can ping me once a new issue is opened.


Add Unsafe Connect methods to TendermintClients

A way to synchronously connect to the rpc without waiting for the resolution of detectVersion

Let's go with https://github.com/cosmos/cosmjs/pull/1380, which should achieve the same without the need for new APIs. Thank you!


Add Ctrl-Q quit hotkey

This is probably doable but I don't know if it's worth the effort. What OS are you on? Can you use the standard Alt-F4 on Windows, Ctrl-W on Linux, or Command-Q on Mac?

Ctrl-W is normally only added by the program itself, instead of the window manager. Alt-F4 is not universally added to Linux window managers either

Good point, I'll put this on the list.

@tutacat I got folder upload and some other stuff done, and version 4.1 is on the releases page! Please let me know what you think if you try it out, and thanks again for the recommendations.


Refactor doctests from the module additional_generators

There are many doctests in additional_generators. In some cases, too many to be constructive examples. They should be refactored out into a separate test suite that nose can use. This affects 15 functions.

The main offenders here are reformat_slice and to a lesser extent len_slice. These are mainly a mess due to attempts to address ( https://github.com/jakirkham/nanshe/issues/161 ).

Already run in nose test suite. Also, provide nice examples in docs.


Calibration doesn't work in Safari

To repoduce

Create a lead part of a song
Go to create a second part and Choirless will attempt to calibrate your audio

Safari plays the piano tones 3 times but the JavaScript console returns:
[Log] detectedFrequenciesSequence: – [] (0) (001joiWN1Hdgfw1smorG09GoUj0B0E8O, line 128)
[Log] detectedFrequenciesSequence: – [] (0) (001joiWN1Hdgfw1smorG09GoUj0B0E8O, line 128)
[Log] detectedFrequenciesSequence: – [] (0) (001joiWN1Hdgfw1smorG09GoUj0B0E8O, line 128)

It appears not to be able to "hear" the played-back tones.

Safari doesn't have the APIs we need to make Choirless work.


Unverified .dylib and ./BattleNetPrefill files

Seems like OSX is flagging each file (in some cases the same DLL multiple times) as coming from an unverified developer. Maybe there's a way to sign it so it doesn't get flagged. Not a blocker since I can go to System Preferences -> Security and Privacy -> General Tab and “Allow Anyway” each instance. This does happen once you can get the CLI running and actually try to download a cache additionally so just a bit of a speed bump.

I did some more digging into this, and it looks like there is ultimately nothing that can be done about this, at least without buying a Mac + an Apple Developer license.  There is also a sizeable amount of work that would need to be done on build pipelines to support this.
Closing this issue since there is nothing more that can be done on it.


issue in installing gabes

I want to use the garbled circuit but
there is an issue while installing gabes on my Mac :
issues like
× python setup.py bdist_wheel did not run successfully.
 error: command '/usr/bin/clang' failed with exit code 1

 ERROR: Failed building wheel for cffi

 error: legacy-install-failure

yes i am also facing the same error
here is the error message
`Building wheel for cffi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [65 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-cpython-38
creating build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/error.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/setuptools_ext.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/init.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/cffi_opcode.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/model.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/api.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/commontypes.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/lock.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/recompiler.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/cparser.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/verifier.py -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/_cffi_include.h -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/parse_c_type.h -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/_embedding.h -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
copying cffi/_cffi_errors.h -> build/lib.macosx-10.9-x86_64-cpython-38/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-10.9-x86_64-cpython-38
creating build/temp.macosx-10.9-x86_64-cpython-38/c
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/local/Cellar/libffi/3.4.2/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.9-x86_64-cpython-38/c/_cffi_backend.o
c/_cffi_backend.c:4197:31: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
*p_printable_filename = PyText_AsUTF8(s);
^ ~~~~~~~~~~~~~~~~
c/_cffi_backend.c:5911:9: warning: 'ffi_prep_closure' is deprecated [-Wdeprecated-declarations]
if (ffi_prep_closure(closure, &cif_descr->cif,
^
/usr/local/Cellar/libffi/3.4.2/include/ffi.h:354:18: note: 'ffi_prep_closure' has been explicitly marked deprecated here
attribute((deprecated))
^
In file included from c/_cffi_backend.c:7370:
In file included from c/cffi1_module.c:20:
c/call_python.c:20:30: error: incomplete definition of type 'struct _is'
builtins = tstate->interp->builtins;
~~~~~~~~~~~~~~^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
struct _is;
^
In file included from c/_cffi_backend.c:7370:
In file included from c/cffi1_module.c:20:
c/call_python.c:160:39: error: incomplete definition of type 'struct _is'
new1 = PyThreadState_GET()->interp->modules;
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
struct _is;
^
In file included from c/_cffi_backend.c:7370:
In file included from c/cffi1_module.c:20:
c/call_python.c:249:63: error: incomplete definition of type 'struct _is'
if (externpy->reserved1 != PyThreadState_GET()->interp->modules) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
struct _is;
^
2 warnings and 3 errors generated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
`


Add Brené Brown on Emphaty animation

As above

Thanks for the contribution! There's just a quick typo to fix and then I can merge.

Damn, sorry @KimberlyMunoz . Done now. Feel free to squash-merge it. Thanks!


There is no "Open in Portal/View Properties/Refresh" action for container app

OS: All
Build Version: 20220706.3
Repro Steps:

Right click a container app -> check its context menu.
Check whether there is "Open in Portal/View Properties/Refresh" action for container app.

Expect:
There is "Open in Portal/View Properties/Refresh" action for container app.

Actual:
There is no "Open in Portal/View Properties/Refresh" action for container app.

More Info:
There is no "View Properties" action for "Ingress" node.

We don't see refresh still, but are the other two context menu items not appearing for you? I see both "Open in Portal" and "View Properties"

Yes, verified on container apps extension 20230412.5, both "Open in Portal" and "View Properties" items exist in context menu, but still don't see the "Refresh" item.


Fix bank account page

Implements #3308, also fixes a regression and a broken link.

The regression comes from 101b87fd3025d0e45452dd59d778ea3bf4b0b55d in #3282. The problem is that you can modify your bank account if you've already connected one, but you can't add one otherwise.

IRC