Personal advice :add  onAttachedToWindow method of PhotoView

  @Override
    protected void onDetachedFromWindow() {
        mAttacher.cleanup();
        super.onDetachedFromWindow();
    }

when resume of the view is not on touch,
I feel we can do :    new PhotoViewAttacher(this)  or resume PhotoViewAttacher in method of the  onAttachedToWindow()

This is acually good idea, I'll add it in dev, thank you


CSS not being compiled in non-pages directory

I currently have my project setup with Emotion but have tried Sass modules as well. It compiles styles in the pages dir, but not elsewhere. Is this a Next.js issue, or is there something wrong with the way I set it up? When I tried with Sass modules I encountered the same problem, where the styles would exist if the component was in pages but not in another root dir.
Styles exist in pages

Styles do not exist in components

The weird thing is, the className is there but just not the styles for it.

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
Has styles in the Header className
Current Behavior
Header className is being referenced but contains no styles. However, the styles in pages does.

Your screenshots appear to be the same.
But, I'm getting a similar behavior when using css modules.
config:

test style (in styles.scss)

markup

result

You can see the class is generated, but no styles are actually being applied (color, background-color)
Is this a known issue?

@pklada try upgrading to next@canary and installing the latest next-css. Should be fixed.

@timneutkens will do. thanks for the quick reply!

Upgrading to next@canary fixed it for me. 🙌


PSD Source File Cannot Open

I'm getting a "Not a proper Photoshop File" when trying to open the PSD with Photoshop CS 5.1.

Hi @iolson, not sure how I missed this, I do apologise!
I created the PSD with CS6 - I'm sure I selected to save it with compatibility mode but perhaps not... I'll see if I can output a compatible file when I get to work on Monday (got a copy of CS5 there).

Seems the file was corrupted; it wouldn't even open in CC2014. Give the new release a spin, should be fine now. Feel free to re-open if not.


DSL2 compatibility

Hi,
Have you tested this on DSL2?

@phelelani Did you manage to sort the pipeline?

@Jokendo-collab, I will be migrating to DSL2 before end of 2022.

Is the DSL2 migration complete? Thanks


cmd/go: avoid work to compute unused fields in 'go list'

We want to get the list of available versions of a module
and the best way is to use go list -m --versions <module>.
Under the hood, the command retrieves the tag list (which we expected)
and also fetches some versions (which is surprising).
Our guess is that the go list does so in order to find information
like the latest version's commit time, etc. For our use case, we don't need
that information and the extra fetch slows down the go list especially
when the repository is large.
Can we have a flag to skip the fetch?
An alternative mentioned by @bcmills is to make go list smarter so it
performs steps necessary to fill in the requested information (e.g. fields
mentioned in -f, or with an additional option to specify fields to prune if
-json is requested)

$ GO111MODULE=on tipgo list -x -m -f '{{.Versions}}' --versions rsc.io/quote

mkdir -p $GOPATH/pkg/mod/cache/vcs # git2 https://github.com/rsc/quote
# lock $GOPATH/pkg/mod/cache/vcs/$HASH.lockmkdir -p $GOPATH/pkg/mod/cache/vcs/$HASH # git2 https://github.com/rsc/quote
cd $GOPATH/pkg/mod/cache/vcs/$HASH; git init --bare
0.006s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git init --bare
cd $GOPATH/pkg/mod/cache/vcs/$HASH; git remote add origin https://github.com/rsc/quote
0.004s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git remote add origin https://github.com/rsc/quote
cd $GOPATH/pkg/mod/cache/vcs/$HASH; git ls-remote -q origin
0.298s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git ls-remote -q origin
cd $GOPATH/pkg/mod/cache/vcs/$HASH; git cat-file --batch
0.004s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git cat-file --batch

cd $GOPATH/pkg/mod/cache/vcs/$HASH; git fetch -f origin refs/tags/v2.0.0:refs/tags/v2.0.0 refs/tags/v2.0.1:refs/tags/v2.0.1 refs/tags/v3.0.0:refs/tags/v3.0.0
0.365s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git fetch -f origin refs/tags/v2.0.0:refs/tags/v2.0.0 refs/tags/v2.0.1:refs/tags/v2.0.1 refs/tags/v3.0.0:refs/tags/v3.0.0

cd $GOPATH/pkg/mod/cache/vcs/$HASH; git cat-file --batch
0.004s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git cat-file --batch
go: finding rsc.io/quote v1.5.2
cd $GOPATH/pkg/mod/cache/vcs/$HASH; git tag -l
0.003s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git tag -l
cd $GOPATH/pkg/mod/cache/vcs/$HASH; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' refs/tags/v1.5.2
0.004s # cd $GOPATH/pkg/mod/cache/vcs/$HASH; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' refs/tags/v1.5.2

[v1.0.0 v1.1.0 v1.2.0 v1.2.1 v1.3.0 v1.4.0 v1.5.0 v1.5.1 v1.5.2 v1.5.3-pre1]

@bcmills @heschik @katiehockman @jayconrod

In CL 270858, we noticed that go list -m all loads .info files for each module in the build list in order to find the version's timestamp. That's printed with -json and maybe -f. If neither of those flags are specified, then .info files aren't used: go build and go get don't need them. We should skip loading those files if we don't need their content.

Closing this issue as the -json=SomeField feature has been released in Go 1.19


Unable to Build project

Hi,
Firstly thank you for this repository.
I am just starting out and was following the Getting Started to run the examples. However I see following error
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve org.apache.lucene:lucene-core:10.0.0-SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.apache.lucene:lucene-core:10.0.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/lucene/lucene-core/10.0.0-SNAPSHOT/maven-metadata.xml.
            > Could not GET 'https://archiva.apache.orgarchiva/repository/snapshots/org/apache/lucene/lucene-core/10.0.0-SNAPSHOT/maven-metadata.xml'.
               > archiva.apache.orgarchiva
   > Could not resolve org.apache.lucene:lucene-queries:10.0.0-SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.apache.lucene:lucene-queries:10.0.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/lucene/lucene-queries/10.0.0-SNAPSHOT/maven-metadata.xml.
            > Could not GET 'https://archiva.apache.orgarchiva/repository/snapshots/org/apache/lucene/lucene-queries/10.0.0-SNAPSHOT/maven-metadata.xml'.
               > archiva.apache.orgarchiva
   > Could not resolve org.apache.lucene:lucene-codecs:10.0.0-SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.apache.lucene:lucene-codecs:10.0.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/lucene/lucene-codecs/10.0.0-SNAPSHOT/maven-metadata.xml.
            > Could not GET 'https://archiva.apache.orgarchiva/repository/snapshots/org/apache/lucene/lucene-codecs/10.0.0-SNAPSHOT/maven-metadata.xml'.
               > archiva.apache.orgarchiva
   > Could not resolve org.apache.lucene:lucene-sandbox:10.0.0-SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.apache.lucene:lucene-sandbox:10.0.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/lucene/lucene-sandbox/10.0.0-SNAPSHOT/maven-metadata.xml.
            > Could not GET 'https://archiva.apache.orgarchiva/repository/snapshots/org/apache/lucene/lucene-sandbox/10.0.0-SNAPSHOT/maven-metadata.xml'.
               > archiva.apache.orgarchiva: nodename nor servname provided, or not known

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1s

I am not sure , how do I get the lucene dependency. The maven url is not accessible.
Thank you

I had to update the maven url and use public lucene 10.0.0 artifacts instead of SNAPSHOT one.
maven { url "https://repository.apache.org/content/groups/public/" }

def version = System.getProperty("lucene.version", "10.0.0")

dependencies {
  implementation "org.apache.lucene:lucene-core:${version}"
  implementation "org.apache.lucene:lucene-queries:${version}"
  implementation "org.apache.lucene:lucene-codecs:${version}"
  implementation "org.apache.lucene:lucene-sandbox:${version}"
}

I don't have the context on why the existing URL is not accessible anymore, Let me know if I should raise a PR to update the URL to the public one

Aha! Yeah... I should have updated after Lucene 10 was released in September.
We have a couple of options. We could go with Lucene 11.0.0 snapshots (in order to get the latest and greatest stuff). Or we could go with the released Lucene 10 series.
I would probably go with Lucene 10.1.0, which was just released last week.

closing this issue, here is the pull request. Had to update gradle version as well as the existing one supports JVM version <= 21


Code Refactoring and Documentation Update

This pull request introduces a significant refactoring of the LangTrans codebase and enhances the documentation. It relates to issue #19 that was assigned to me.
Code Refactoring:

Updated Variable and Function Names: All variable and function names have been updated for improved readability and clarity. This change will make the code easier to understand and maintain in the future.

Type Annotations: Type annotations have been added at the beginning of the script, ensuring better static typing and enhancing code readability.

Code Linting and Formatting: The entire codebase has been formatted using Black, and potential code issues have been addressed based on feedback from Pylint and MyPy. These changes ensure that our code adheres to best practices and is clean and easy to read.

Each commit in this pull request corresponds to changes made to a specific function, ensuring that changes are modular and easier to review.
Documentation:

Updated README: The README has been updated with a new introduction, usage options, and a responsive logo that supports GitHub's dark mode. This provides a more comprehensive and visually pleasing overview of the project.

Improved Code Documentation: The in-code documentation has been enhanced to provide better context and understanding when reading through the code.

Testing:
All changes have been tested before each commit to ensure that the code functions as expected.

It's a substantial refactoring! Going through it all will take some time. This PR is the longest so far. You've done an amazing job! I'm confident that it will be worth it once everything is reviewed and implemented. Thank you immensely for your time and hard work. I truly appreciate it

Thanks @B-R-P, I hope it's helpful for future contributors and maintainers.
You can ignore the refactor and update tknoptions commit. I had broken tknoptions into multiple handlers. But, then something broke the logic, so I reversed those changes in a follow-up commit.
I left the commit, cause I thought it worthwhile to have a look at potentially trying to simplify the logic at some point. But, that would be a larger push to much it more modular. However, I know your reservations, so I kept the layout as you had it (for the most part).
Shout if you have any questions or need me to make adjustments.


Run GPT4All in Google Colab

I created a notebook to launch this project in Google colab and to be able to access the site from the outside thanks to Localtunnel
Open In Google Colab
Download the notebook file for Google colab

sweet? Do you want to share your work in the project? You can fork the project, add a folder notebooks, put your notebook, then do a pull request.


[issue] very high complexity while reading large qvd file

I tried to use the code to read a file having ~1M records. The performance is very poor as it shows 700 hours to complete.
How can it be improved? What would you suggest as I'm using Linux for this task.
Thank you.

@naivomah3
Can you give an example of your code. I haven't even been able to get this to run on small files. But very interested in getting it to work.
I am also using Linux, but stuck on Windows most of the time for Qviewer.

Hi @Midnex
You can refer to my question here. There I provide a code snippet. Lemme know in case you could find any workaround. I'm about to install windows and load it on Qlikview.


Lack of documentation around packages not auto-installing when using local Nuxt layers

Environment
N/A
Reproduction
N/A
Describe the bug
The current Nuxt documentation doesn't explicitly mention that npm packages won't automatically install when a local Nuxt layer is extended (e.g., extends: ['../base']). This appears to be an oversight, as the only related information is somewhat hidden within the "Git Repository" section of the layer authoring guide. This can be misleading, especially for those who aren't planning to use a git repository for their layer, as they may skip over that section entirely (like I did) or not realise it also applies to local projects.
A dedicated section, perhaps titled "Local Layers," could help clarify this point. If this documentation already exists and I've overlooked it, I'd appreciate a pointer. Otherwise, I'm happy to contribute to the documentation to address this gap.
Additional context
When extending Nuxt 3 layers locally, NPM packages installed in the layer are not auto-installed by the consuming project. This was mentioned as a know limitation of Nuxt layers by @danielroe in issue #19124.
Logs
No response

Hi, so what is the solution when using local layers? Is it possible to auto install the packages?
What you mentioned is exactly my case... I thought it wasn't implemented yet.

@CernyMatej you're actually right. Auto installing deps from remote (GitHub, GitLab, etc..) is not implemented yet (didn't try local layers but according to this issue the same applies). You need to define & install them again in your main app. But it seems it will be implemented soon according to these https://github.com/unjs/c12/issues/51#issuecomment-1770797712, https://github.com/unjs/giget/issues/6.

should dependencies auto-install when using a layer hosted on a local npm registry? Because that also doesn't seem to work for me..

This is now documented.


feat(docs): Implement EnhanceDocs Search

Description:

Implement EnhanceDocs SearchBar powered by AI.
Use Github Actions for Github Pages Docs deployment.
Build and push on Deployment of docs succeed EnhanceDocs to update knowledge database.

Quick Set Up:

Follow the quick start guide:
1.1. Create an account in EnhanceDocs - Create Account
1.2. Set up your first project and get the credentials - Set Up Project
Add your secrets for GitHub Actions in your project and replace the variables (see placeholders <replace_with_project_id> and <replace_with_access_token>).
You are ready to have EnhanceDocs Search 🚀🚀

Screenshots:

@microsoft-github-policy-service agree


Multiple HTMLFields can't have different configurations

All HTMLFields using configuration of the first field.

Nevermind, fixed. Wrong configuration.


Missing code for 'list' property in backbone.sharepoint.soap.js ?

Hi,
I tried to use the SOAP-version of the script and followed the example in the readme, but couldn´t access the contact list.
So I took a look at the code and think I figured out why. There seems to be code missing for the 'list' property, searched the backbone.sharepoint.soap.js file and didn't find any refence  to 'list' at all.
This problem only seems to exist in the SOAP-version, the oData-version seems to be fine, so I'll stick with that instead.
PS! really appreciate that you´ve created this project. Keep up the good work :)

Hi,
Thanks for your interest in backbone.sharepoint.
I re-examined the SOAP example in the readme and noticed there were issues with the quotes in the tpl. These caused a syntax error which halts the example and prevents the loading.
After this fix, the example runs fine with me, so the issue is not with the list property.
The list property is handled through the SoapClient call:
SoapClient.call({
site: collection.site,
service: 'Lists',
method: 'GetListItems',
success: options.success,
error: options.error,
params: {
listName: collection.list,
viewName: collection.view || ''
}
});


Update the max ocp version available from openshift-ci cluster pools

Signed-off-by: Melvin Hillsman<EMAIL_ADDRESS>

/lgtm


New Gradle sync icon in Android Studio 2.2+

In step 6 there is a section 'Optionally sync your project'.  With this section there is a line of text showing the button to sync Gradle.
This button icon has changed in Android Studio 2.2 so it might be worth showing both icons.

Thanks, I have updated the icon for the next release.


Vigenere_Cipher

Submission Title
Vigenere_Cipher
Submission Type
Algorithm
Submission Description
The Vigenère Cipher is a method of encrypting alphabetic text by using a series of interwoven Caesar ciphers, based on the letters of a keyword. It employs a form of polyalphabetic substitution.
Submission Directory
Algorithm => Cryptography_Algorithm => Vigenere_Cipher => Vigenere_Cipher.extension
Contributors

[x]  C++ -
[ ]  C -
[x]  Python -
[ ] Java -
[ ] JavaScript -
[ ] TypeScript -
[ ] Golang -
[ ] Ruby -
[ ] php -
[ ] Swift -
[x] C# -

I'd like to do the C++ task. Please assign me to it.

I'd like to take the C# version if possible.

Hello there. I'd like to work on this in Python if possible! Thank you!

I'll do this in Go

I like to work this in python.Please add me to this issue

thanks everyone :v:


FindoOrCreate arrays of object fix

This is as discussed in https://github.com/balderdashy/waterline-adapter-tests/issues/38
For some reason the unit-test I created did not catch the bug that broke my app. This now fully supports the use case I am using and that is described in https://github.com/balderdashy/waterline-docs/blob/master/query-methods.md#findorcreate-search-criteria-values-callback-, which is passing arrays of objects.
I tested now against https://github.com/balderdashy/waterline-adapter-tests and with sails-memory only get 1 failing test that is unrelated to my change.
@dmarcelino could you review?

I'm uneasy about this.  Can you effectively "document" how you're using findOrCreateEach to make sure I understand?  This includes support for a departure from how it is currently used, while we are trying to deprecate the method altogether.  Additionally, in your usage of the method, it seems as though it is a requisite that the criteria and values arrays be the same length–so this would need to create an error if that were not the case.  There are also breaking cases when mixing object and non-object values in the criteria list.  My initial reaction is that you should loop findOrCreate within your application.

@devinivy you are right, will add an error for that.
I am currently using it as described here: https://github.com/balderdashy/waterline/blob/master/test/unit/query/query.findOrCreate.js#L61
But strangely enough this unit test passes, even though it shows the same issues as my app has. I can console.log that the forEach loop creates bogus but for some reason the model has already been created at this point with the timestamps etc.

Alright!  I'd just like the function signature and accepted values to be reflected more transparently in the code, with violations of that signature provided useful errors.

@devinivy so should the function signature match the one of findOrCreate here https://github.com/balderdashy/waterline/blob/master/lib/waterline/query/composite.js#L24 ?

I guess I'm thinking of either,

The first argument and the second argument are arrays of the same length, respectively criteria and values paired by array index.  Criteria items and value items are both objects.
The first argument is an array of attribute values, and the second argument is an array of values.  Criteria for each value is built by picking the attributes (specified in the first argument) off of the values object.

In the first case the arguments are two arrays of objects, both the same length.  In the second case, the first argument is an array of strings and the second is an array of objects.
If I have that wrong, let me know!

What you said made entire sense, but apparently according to this test https://github.com/balderdashy/waterline/blob/master/test/unit/query/query.findOrCreateEach.js#L91this is not true and the arrays of objects can indeed have different length.
I am not really sure how this behaviour is intended. Intuitively I would say if it does not find name: foo it creates both. Right now I will work on it keeping backwards compatibility to not just break things.
The other way around I suppose you could be searching for multiple models and if one of that does not exist you want to create the one element you passed. Does that make sense?

But thinking more about it that leads to really weird edge-case behaviour. I honestly think the test I posted above makes little sense. But I suppose we could have an edge-case scenario if either of the arrays are or length 1.

Ok I now added edge-case behaviour for the current failing test, if attributesToCheck.length === 1, but I have not added an edge-case behaviour if valuesList.length === 1 since there is no test for it and I see no point in adding unnecessary complexity for that.
Let me know if you want me to implement it any different way.

So, all current tests are passing plus I added more tests here https://github.com/balderdashy/waterline-adapter-tests/pull/45 that are currently failing but passing with this PR.

I'm good with both this PR and balderdashy/waterline-adapter-tests#45 :white_check_mark:

:heavy_check_mark:

Thanks @Globegitter, @devinivy!


Correction for raw affiliation GREThA UMR CNRS 5113, Université Montesquieu‐Bordeaux IV, Pessac, France

Correction needed for raw affiliation GREThA UMR CNRS 5113, Université Montesquieu‐Bordeaux IV, Pessac, France
raw_affiliation_name: GREThA UMR CNRS 5113, Université Montesquieu‐Bordeaux IV, Pessac, France
new_rors: 02feahw73;05h5wna09
previous_rors: 02feahw73
works_examples: W1979740146;W2057794664
contact: a48c0b880a2e0f5c784f3d7f3529221d:1c5eb844bacde1b9f90284 @ free.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


ERROR: [Errno 2] No such file or directory: 'node'

您好，有个问题想咨询一下，利用nni训练xgb的程序我已经跑通了，现在想在linux环境下利用crontab设置定时任务：利用nni训练xgb，但是运行的时候出现了
INFO:  expand codeDir: . to /data/home/lianshuailong/automl/lianshuailong_nni/nni_xgb/.
INFO:  Starting restful server...
ERROR: [Errno 2] No such file or directory: 'node'
~
，请问可以帮忙看一下是不是nni的问题嘛？
Environment:

NNI version:
NNI mode (local|remote|pai):
Client OS:
Server OS (for remote mode only):
Python version:
PyTorch/TensorFlow version:
Is conda/virtualenv/venv used?:
Is running in Docker?:

Log message:

nnimanager.log:
dispatcher.log:
nnictl stdout and stderr:

What issue meet, what's expected?:
How to reproduce it?:
Additional information:

@LianShuaiLong 可以贴一下crontab脚本吗，nni的后端是基于nodejs，看上去似乎是找不到nni的node，您自己之前安装过nodejs吗

Which version of NNI are you using?

I have met this problem too, when I restarted the computer.
I had to reinstall the nni to resolve this issue.  :)

@LianShuaiLong - For current released version, a known resolution from other users is to reinstall node.js. For upcoming 2.0 release, this issue seems fixed in master. cc @liuzhe-lz for confirm.

hi i upgrade my nni with verion 2 its, giving me same error when i run MNIST basic example to check if mt nni is working or not.
When i build using this command , following is the error
`(base) casper@caspe:~/nni$ python3 setup.py build_ts
running build_ts
# Building NNI manager
yarn install v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.28s.
yarn run v1.22.10
$ tsc
Done in 3.35s.
# Building web UI
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.45s.
yarn run v1.22.10
$ node --max-old-space-size=3072 scripts/build.js
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Compiled successfully.

File sizes after gzip:

  804.49 KB          build/static/js/4.426d9949.chunk.js
  202.69 KB          build/static/js/1.33e11246.chunk.js
  66.85 KB           build/static/js/5.dd14e50b.chunk.js
  66.13 KB           build/json.worker.js
  43.34 KB           build/static/js/0.a6fc6d39.chunk.js
  38.79 KB           build/editor.worker.js
  27.72 KB           build/static/js/11.ce3b39f5.chunk.js
  21.1 KB            build/static/js/10.9ae5ecb9.chunk.js
  17.54 KB (+225 B)  build/static/css/4.5e338c54.chunk.css
  16 KB              build/static/js/main.edc4bca4.chunk.js
  13.85 KB           build/static/js/7.0bbd3cfd.chunk.js
  8.81 KB            build/static/js/6.2942e4e6.chunk.js
  4.95 KB            build/static/js/9.be12774e.chunk.js
  4.48 KB            build/static/js/8.630e2937.chunk.js
  2.27 KB            build/static/css/7.2a46f779.chunk.css
  2.25 KB (+23 B)    build/static/css/main.75616bc0.chunk.css
  1.82 KB            build/static/css/6.319e436d.chunk.css
  1.52 KB (-1 B)     build/static/js/runtime~main.a1aee87b.js
  759 B              build/static/css/8.501d43b7.chunk.css
  408 B (+11 B)      build/static/css/5.00ce0611.chunk.css
The project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:

  "homepage" : "http://myname.github.io/myapp",

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  https://bit.ly/CRA-deploy

Done in 22.76s.
# Building NAS UI
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.37s.
yarn run v1.22.10
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `yarn upgrade`
Compiled successfully.

File sizes after gzip:

  245.54 KB  build/static/js/2.9c383d18.chunk.js
  6.34 KB    build/static/js/main.8e6efb80.chunk.js
  779 B      build/static/js/runtime-main.e9ef6ed1.js
  583 B      build/static/css/2.47271137.chunk.css
  454 B      build/static/css/main.03bde5da.chunk.css

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  bit.ly/CRA-deploy

Done in 7.27s.
# Copying files
yarn install v1.22.10
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning<EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning npm > node-gyp ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning npm > node-gyp > request ><EMAIL_ADDRESS>this library is no longer supported
warning azure-storage ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning express-joi-validator ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning express-joi-validator ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning express-joi-validator > joi ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning kubernetes-client ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning kubernetes-client > swagger-fluent ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning sqlite3 > node-gyp ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning sqlite3 ><EMAIL_ADDRESS>Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
warning webhdfs ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
[3/5] Fetching packages...
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=12". Got "10.23.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Traceback (most recent call last):
  File "setup.py", line 242, in <module>
    _setup()
  File "setup.py", line 105, in _setup
    'develop': Develop,
  File "/home/casper/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/casper/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/casper/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/home/casper/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "setup.py", line 172, in run
    setup_ts.build(release)
  File "/home/casper/nni/setup_ts.py", line 44, in build
    copy_nni_node(release)
  File "/home/casper/nni/setup_ts.py", line 200, in copy_nni_node
    _yarn('ts/nni_manager', '--prod', '--cwd', str(Path('nni_node').resolve()))
  File "/home/casper/nni/setup_ts.py", line 218, in _yarn
    subprocess.run([str(_yarn_path), *args], cwd=path, check=True, env=_yarn_env)
  File "/home/casper/anaconda3/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/casper/nni/toolchain/yarn/bin/yarn', '--prod', '--cwd', '/home/casper/nni/nni_node']' returned non-zero exit status 1.
`

when i run the command **nnictl create --config nni/examples/trials/mnist-pytorch/config.yml**
its an output:
ERROR: [Errno 2] No such file or directory: 'node': 'node'

hi i upgrade my nni with verion 2 its, giving me same error when i run MNIST basic example to check if mt nni is working or not.
When i build using this command , following is the error
`(base) casper@caspe:~/nni$ python3 setup.py build_ts
running build_ts
# Building NNI manager
yarn install v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.28s.
yarn run v1.22.10
$ tsc
Done in 3.35s.
# Building web UI
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.45s.
yarn run v1.22.10
$ node --max-old-space-size=3072 scripts/build.js
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Compiled successfully.

File sizes after gzip:

  804.49 KB          build/static/js/4.426d9949.chunk.js
  202.69 KB          build/static/js/1.33e11246.chunk.js
  66.85 KB           build/static/js/5.dd14e50b.chunk.js
  66.13 KB           build/json.worker.js
  43.34 KB           build/static/js/0.a6fc6d39.chunk.js
  38.79 KB           build/editor.worker.js
  27.72 KB           build/static/js/11.ce3b39f5.chunk.js
  21.1 KB            build/static/js/10.9ae5ecb9.chunk.js
  17.54 KB (+225 B)  build/static/css/4.5e338c54.chunk.css
  16 KB              build/static/js/main.edc4bca4.chunk.js
  13.85 KB           build/static/js/7.0bbd3cfd.chunk.js
  8.81 KB            build/static/js/6.2942e4e6.chunk.js
  4.95 KB            build/static/js/9.be12774e.chunk.js
  4.48 KB            build/static/js/8.630e2937.chunk.js
  2.27 KB            build/static/css/7.2a46f779.chunk.css
  2.25 KB (+23 B)    build/static/css/main.75616bc0.chunk.css
  1.82 KB            build/static/css/6.319e436d.chunk.css
  1.52 KB (-1 B)     build/static/js/runtime~main.a1aee87b.js
  759 B              build/static/css/8.501d43b7.chunk.css
  408 B (+11 B)      build/static/css/5.00ce0611.chunk.css
The project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:

  "homepage" : "http://myname.github.io/myapp",

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  https://bit.ly/CRA-deploy

Done in 22.76s.
# Building NAS UI
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.37s.
yarn run v1.22.10
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `yarn upgrade`
Compiled successfully.

File sizes after gzip:

  245.54 KB  build/static/js/2.9c383d18.chunk.js
  6.34 KB    build/static/js/main.8e6efb80.chunk.js
  779 B      build/static/js/runtime-main.e9ef6ed1.js
  583 B      build/static/css/2.47271137.chunk.css
  454 B      build/static/css/main.03bde5da.chunk.css

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  bit.ly/CRA-deploy

Done in 7.27s.
# Copying files
yarn install v1.22.10
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning<EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning npm > node-gyp ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning npm > node-gyp > request ><EMAIL_ADDRESS>this library is no longer supported
warning azure-storage ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning express-joi-validator ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning express-joi-validator ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning express-joi-validator > joi ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning kubernetes-client ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning kubernetes-client > swagger-fluent ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning sqlite3 > node-gyp ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning sqlite3 ><EMAIL_ADDRESS>Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
warning webhdfs ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
[3/5] Fetching packages...
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=12". Got "10.23.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Traceback (most recent call last):
  File "setup.py", line 242, in <module>
    _setup()
  File "setup.py", line 105, in _setup
    'develop': Develop,
  File "/home/casper/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/casper/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/casper/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/home/casper/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "setup.py", line 172, in run
    setup_ts.build(release)
  File "/home/casper/nni/setup_ts.py", line 44, in build
    copy_nni_node(release)
  File "/home/casper/nni/setup_ts.py", line 200, in copy_nni_node
    _yarn('ts/nni_manager', '--prod', '--cwd', str(Path('nni_node').resolve()))
  File "/home/casper/nni/setup_ts.py", line 218, in _yarn
    subprocess.run([str(_yarn_path), *args], cwd=path, check=True, env=_yarn_env)
  File "/home/casper/anaconda3/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/casper/nni/toolchain/yarn/bin/yarn', '--prod', '--cwd', '/home/casper/nni/nni_node']' returned non-zero exit status 1.
`

when i run the command **nnictl create --config nni/examples/trials/mnist-pytorch/config.yml**
its an output:
ERROR: [Errno 2] No such file or directory: 'node': 'node'

@liuzhe-lz any suggestion?

@sharoseali @LianShuaiLong - are you still facing the issues?

@sharoseali @LianShuaiLong - are you still facing the issues?

No responds, closing the issue as overdued. Feel free to reopen if it is still an issue.


Lazyload forRoot

Hello,
How a child module could initialize matomo?
I've got a module-federation architecture in which I want one of my module to use matomo.
But, as forbidden by guidelines, I can't use forRoot in my child module nor provide a root configuration.
I could inject matomo in my shell app, but that's mean my child module would be dependent on my shell deployment.
Bon weekend :)

Hi @raphael22
You typically should import the module using .forRoot in your root module, and import the Matomo module without .forRoot in child (lazy) modules.
If you really want to call .forRoot in your child module, it should still work though... :) (but Matomo will not be accessible in other modules)
If what you want to achieve is lazy-initialization of Matomo (but still use it in the whole app), take a look at how to defer initialization

Well, I tried few settings with defer but always result in a No Matomo configuration found! error :/

Could you please provide a repro to investigate ? Or share your config ?

Will reproduce a basic module-federation later.
Config is either  provideMatomo({ mode: 'deferred' }) or forRoot equivalent.
Maybe loadRemoteModule from "@angular-architects/module-federation-runtime" is not compatible with library as is.

If use Matomo only in one micro-front end (child) module, when you use .forRoot/provideMatomo, what is the error you are getting?

No config found is the error I get if forRoot is coming from a lazyloaded MF module.
Angular 17.3.0
@angular-architects/module-federation 17.0.8
ngx-matomo-client 6.0.2
node 20

repro incoming
I've got my master/shell module which lazyload a child/federation module.
My master module doesn't know matomo, only my child module does and try to provide it in root.
What config do you need?
It's really just a basic provideMatomo with siteId/url or with mode: deferred, I tried a bunch of settings always resulting in the no config error.

Here a basic reproduction
You should be stuck on "loading..." after install/serve with error in browser console.

@raphael22 Thank you for the repro, I understand the use case
It was not initially designed this way, but it seems a valid use case. I will take a look and probably publish a solution soon (PR welcome if you have some time !)

Not familiar with matomo.js but I could take a look if you have a branch to lead me a bit.

You can fork this project then create a PR.
In my mind, the required changes are to remove all {providedIn: ‘root’} on @Injectable annotations, and replace them by providers in existing provideXXX functions instead.
You can sure start working on that, and I will take a look soon, when I have some time. Thank you so much


Connection: Add Licence when connect

For the first connection with FortiOS 7.2.x, add licence

/azp run


NoSQL vs RDBMS backend??

Since we are on AWS, why don't we use a simple NoSQL data store like DynamoDB vs our current plan of RDS?
It will simplify lots of scenarios.

Gr8 idea @atulsaurav except we have like another 6hrs before showing something works, therefore lets leave this as a suggestion for now ;)

Here's a thought...

RDS for Static Content
ElasticCache/Redis for Caching Content
DynamoDB for final wishes
Lambda for BE processing
API gateway for Lambda Invokation
Cognito for user authentication
S3 for static hosting (consider CloudFront)
Route53 for DNS
Azure Face for Facial Recognition
Glacier for Long Term Photo storage

Yay serverless!


PDF miner compatibility may be

When parsing a pdf, with:
doc = minecart.Document(pdf_file)
results in an error AttributeError: module 'pdfminer.pdfparser' has no attribute 'PDFDocument'

Are you using pdfminer3k?

I think so.

What's the output of pip list?

See #13

Well, problem was indeed pdfminer.six. Thanks for the fast and correct response.


Proposal: Duration strings as inputs to logs/events (e.g. --since=1h)

Some docker commands like docker events or docker logs(#12362) accept --since or --until parameters to filter events out. Although these methods accept either RFC3339 timestamps or Unix epoch times.
I can hardly imagine anybody trying to take a look into their container's past hour's logs sitting down and writing a command like :
docker logs \
    --since=(oh what's the time now)2015-05-09T13:00:00(I hope format is correct )\
    mycontainer

Therefore I propose time.Duration inputs in these commands such as:
docker logs --since=1h mycontainer
docker events --since=1d --until=5m

The way that's gonna work is instead of trying to parse specified string into RFC3339 first and then falling back to epoch, we will also try parsing with time.ParseDuration (see pkg/timeutils/utils.go#GetTimestamp I submitted at #12362).
Once the duration is parsed, it will be subtracted from time.Now() and will be converted to Unix epoch time (as the Remote API requires) and that value will be sent. Assumption here is time drift between client vs server is minimal1. Therefore when the durations are used the duration will be relative to client machine's time (different behavior than providing epoch or RFC3339 value).
1: [citation needed] lol.  Computers connected to internet have pretty precise clocks these days, give or take 5-10 secs max, but I don't expect anybody to use durations for precise timing on the engine-side. This is more for “usability”.

+1 looks a lot more usable

ping to get more attention

@ahmetalpbalkan IRC might work better, but don't overdo it, or your nickname will become "Clippy" :smile:

+1 this is reasonable to me

Added a PR about this: #13165 please review.


Add a flag to exclude deprecated warnings from basic_go.

This fixes an issue seen in openconfig/gnoi where we have SA1019 being triggered based on deprecated fields that are in generated protobufs.

This should be done per-repo using a staticcheck.conf file.


lua-wrapper: fix luaPath and luaCpath definitions

Before the change:
$ nix-instantiate --eval --strict --expr 'with import ./. {}; with corsix-th.luaEnv; [luaPath luaCpath]'
error:
   error: attribute 'lib' missing

After the change:
$ nix-instantiate --eval --strict --expr 'with import ./. {}; with corsix-th.luaEnv; [luaPath luaCpath]'
[ "/nix/store/f17ah5zjri1yjacc1c50g9xlr8qqwbgh-lua-5.2.4-env/share/lua/5.2/?.lua;/nix/store/f17ah5zjri1yjacc1c50g9xlr8qqwbgh-lua-5.2.4-env/share/lua/5.2/?/init.lua" "/nix/store/f17ah5zjri1yjacc1c50g9xlr8qqwbgh-lua-5.2.4-env/lib/lua/5.2/?.so" ]

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 277408 run on x86_64-linux 1

"lib" got renamed to "luaLib" (I guess to avoid clash with pkgs.lib) in another PR and this has slipped through ty.


ModuleNotFoundError: No module named 'pkg_resources'

I have a scheduled job on GitHub Actions to setup & run withings-sync twice a day, and it stopped working one week ago.
From the GitHub Actions log, I found out that setuptools was not installed by simply running pip install withings-sync during setup, thus the error “ModuleNotFoundError: No module named 'pkg_resources’” when running withings-sync.
I added a step to install setuptools in my GitHub Actions yaml file as well during setup, and it worked fine.
Is this the expected behavior? My environment is as follows.
Python: 3.12.7
withings-sync: 4.2.7
OS: Ubuntu 22.04.5

Yes it is, your github actions probably upgraded from an older python version to 3.12.
Python 3.12 has removed pkg_resources from the standard library (moved to setuptools):
https://docs.python.org/3/whatsnew/3.12.html

gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.

@stynoo
Understood. Thanks for the clarification. My bad that I upgraded Python to 3.12 w/o taking a closer look first.
BTW, thank you so much for all the time and effort you and @longstone are putting into this project. I really appreciate it.


python3Packages.torch: enable cuDNN & NCCL only if available

Description of changes

Guard use of nccl and cudnn with their existence in the package set -- they're not always available (e.g., Jetson or certain CUDA releases).
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

The configurationPhase succeeds, and I don't think it makes sense to run do the full builds until we have merged the other PRs


fix: incorrect metadata key string

per https://google.aip.dev/client-libraries/4222 and https://github.com/googleapis/googleapis/blob/0a602be7b3835b51d59daf8f6f5dc2dc22f69d7e/google/spanner/admin/database/v1/spanner_database_admin.proto#L125

This change is

At least in theory we could (and should) have a test that compares the metadata against the annotations, for example:
https://github.com/googleapis/google-cloud-cpp/blob/faafc869a93c62f35cfacb0e5f63b8dc6f7c64ef/google/cloud/spanner/internal/database_admin_metadata_test.cc#L50-L70
I think this PR was missing such a test, and we should also look at what other functions are missing it.


Little help needed

Hey,
I am trying to make a bot following this. But there seems to be few errors. Can you please take a look at it. Please help me out
https://github.com/valiantgaming/valiant-bot

I'm also having issues with postbacks. The example repo seems to have removed how posts backs in buttons are fired.

My bot doesn't work:
https://github.com/rfitz9/RyanBot

@rfitz9 The link is broken !

I've found the answer to the question about postbacks in issue 1: actionbuttons,

I have the bot up and running but I can't get it to synch or deploy to github for editing the jason script.https://lukebot.herokuapp.com/ I have it set up for auto deploy but it never deployed to git hub and I don't know where to edit the script file.

@Lukejsmith-yeahtips maybe you missed some step? I'd check the autodeploy in heroku from github step again? or go back further, checking the api key from smooch.io is copied correctly to heroku and heroku is linked to YOUR github account.
Ahh! also I never got the heroku link to work either... I copied the insert code from smooch.io and set it up on a free weebly i got, by inserting that code in to the header of a page. You might want to try that too.

Good advice and going to try a bunch of installs and see if I can get it
working I figure I missed a step as well. Also looks like I need a lot of
software on my Mac to get the terminal up and running - I am not a
developer by the way but willing to try this to hack my resume.

Check your config settings on heroku. One step I think should be more clear is that when you paste your KEY ID, don't include the "app_" part.
And you shouldn't need any additional software for your Mac to get this running either. I'm not a developer either, but I've been able to edit my bot directly within github.
If you do want to download an editor, try out Github's Atom - it's great!
On Thu, May 19, 2016 at 2:58 PM -0700, "Lukejsmith-yeahtips"<EMAIL_ADDRESS>wrote:
Good advice and going to try a bunch of installs and see if I can get it
working I figure I missed a step as well. Also looks like I need a lot of
software on my Mac to get the terminal up and running - I am not a
developer by the way but willing to try this to hack my resume.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Thanks for this - I finally got everything sorted and am now able to make updates using the command line and also using Github Desktop. Having a blast now working on the bot conversation and look forward to going live on SMS and a few other channels.
On Fri, May 20, 2016 at 6:48 AM, Ryan<EMAIL_ADDRESS>wrote:
Check your config settings on heroku. One step I think should be more clear is that when you paste your KEY ID, don't include the "app_" part.
And you shouldn't need any additional software for your Mac to get this running either. I'm not a developer either, but I've been able to edit my bot directly within github.
If you do want to download an editor, try out Github's Atom - it's great!
On Thu, May 19, 2016 at 2:58 PM -0700, "Lukejsmith-yeahtips"<EMAIL_ADDRESS>wrote:
Good advice and going to try a bunch of installs and see if I can get it
working I figure I missed a step as well. Also looks like I need a lot of
software on my Mac to get the terminal up and running - I am not a
developer by the way but willing to try this to hack my resume.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub [https://github.com/esthercrawford/EstherBot/issues/11#issuecomment-220610214]

Hey everybody, I'm still having issues to get the imported bot going. I assume there are some issues with the api-setting or script, cuz neither seems to be running
https://bot-chat.herokuapp.com/
I added the KEY ID without the app_-part, so not what's the problem. Does anybody has a clue, what I missed?

First off relax - and don't beat yourself up over this. Try a new install and follow the instructions to the letter sometimes that works best - I did the steps a few times and ultimately got things working from using the terminal and github desktop and it's been smooth sailing since.
On Sun, May 29, 2016 at 7:44 AM, teekay88<EMAIL_ADDRESS>wrote:
Hey everybody, I'm still having issues to get the imported bot going. I assume there are some issues with the api-setting or script, cuz neither seems to be running
https://bot-chat.herokuapp.com/ [https://bot-chat.herokuapp.com/]
I added the KEY ID without the app_-part, so not what's the problem. Does anybody has a clue, what I missed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [https://github.com/esthercrawford/EstherBot/issues/11#issuecomment-222364344] , or mute the thread [https://github.com/notifications/unsubscribe/ASiS9AAIw3KxI35IOSUaqP7OKrF2LIyZks5qGaZkgaJpZM4ITU3m] .

Hi guys, I'm trying to install the bot but have some issues.
I created a Smooch account and then linked just my telegram account (I previously created a bot on telegram as well).
Then I created an Heroku account, followed all the steps, inserted the key without the app_ part but still got "Application Error" when I launch the app, as you can see here: https://mauriziocassano.herokuapp.com
If I read the log from heroku, I see tons of errors going on... not sure how to handle them...
And of course I tried several instals...

I tried the Smooch bot sample and actually it works!
So I tried to use the EstherBot on my HD, cloning it and makes it work by installing npm as stated in the Smooch Bot readme file. It works on my local machine with "node console" command, but I'm not able to push it on Heroku and make it works.
I think in the EsterBot files probably there is this npm thing that is missing...

similar problem! somethings is broken! i followed the tutorial to the letter! im able to use smooch bot example, it returns the script in messages(web).  however using the script.js and script.json breaks everything. i tried a lot of times with different combinations such as forking smooch example then just changing script.js etc however as soon as i change i get "application error". any clue? i believe using the json version is easier.

Are you config variables on the heroku settings pages like this?

@rahul-thakoor I am the one who opened this Issue. Later I was able to sort all the issues out. Why don't you try to fork my repo and try ?
Here is the link https://github.com/valiantgaming/valiant-bot . Did you configure your settings as @nigelburke showed on top ?

yes, all my settings are like this. ill try to fork yours!  thanks for the quick response. do i need to change aby settings on the github code besides the script json ofcourse

@rahul-thakoor I would say first see if it works without changing anything anywhere. Then later on you can change. I am free so you ping me if you get across anything :)

@leovarmak great support guys! ill be in touch

@leovarmak still no luck :(
Let me summarise:

Create an app in smooch an generate app token + secret keys etc
click deploy button from readme of forked project
input settings in heroku app created by deploy button
add SERVICE_URL
change deploy settings to github
However i still get error

What am I doing wrong?

Is there any other platform where I could contact you ? preferably facebook ?
via CloudMagic Emailhttps://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.4.48&pv=4.1.1&source=email_footer_2
On Wed, Jun 01, 2016 at 11:47 AM, rahul-thakoor <notifications<EMAIL_ADDRESS>wrote:
@leovarmakhttps://github.com/leovarmak still no luck :(
Let me summarise:

Create an app in smooch an generate app token + secret keys etc
click deploy button from readme of forked project
input settings in heroku app created by deploy button
add SERVICE_URL
change deploy settings to github
However i still get error
[screen shot 2016-06-01 at 14 11 35]https://cloud.githubusercontent.com/assets/13220877/15699952/8662e578-2803-11e6-94b0-d842ee5affb2.png
[screen shot 2016-06-01 at 14 11 51]https://cloud.githubusercontent.com/assets/13220877/15699953/8992ce34-2803-11e6-93e5-36ac149c176d.png
[screen shot 2016-06-01 at 14 12 42]https://cloud.githubusercontent.com/assets/13220877/15699963/8bff44d6-2803-11e6-88a4-209f23d49dd6.png
[screen shot 2016-06-01 at 14 11 45]https://cloud.githubusercontent.com/assets/13220877/15699966/8f27168e-2803-11e6-9a84-c13b3b1e3c0b.png

What am I doing wrong?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/esthercrawford/EstherBot/issues/11#issuecomment-222903075, or mute the threadhttps://github.com/notifications/unsubscribe/ANexASJfquzf9wIq5sDKh7Ec8FwL5iuAks5qHSQOgaJpZM4ITU3m.

sorry I live in Mainland China, no facebook! slack?

Sure. Send me your email so that I can send you a request into my organization :-) . Our if you already have something here is my email -<EMAIL_ADDRESS>via CloudMagic Emailhttps://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.4.48&pv=4.1.1&source=email_footer_2
On Wed, Jun 01, 2016 at 11:54 AM, rahul-thakoor <notifications<EMAIL_ADDRESS>wrote:
sorry I live in Mainland China, no facebook! slack?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/esthercrawford/EstherBot/issues/11#issuecomment-222904009, or mute the threadhttps://github.com/notifications/unsubscribe/ANexAZeWmYgpw8kehVP6nG81-ZcPe0JJks5qHSWqgaJpZM4ITU3m.

sent you an invite @leovarmak

I'm gonna try to fork leovarmak's code,try different things and see if I have any luck with that. @leovarmak May I contact you, if I may need help at the end?

@teekay88 we just had a chat! maybe you can try on your end. but @leovarmak  told me that he is also getting the error and will look in the matter soon

@nigelburke yes, my variables are exactly like that!
@leovarmak I also tried to fork another people repository and same issue there!
@rahul-thakoor I see your summary but I don't get the point n. 6, what do you mean for change deploy setting on GitHub? Do you mean connecting my own repository to automatically push any update?
Btw I tried several things yesterday:

I tried to fork the Smooch Bot Example and it works very fine!
I tried to download on my HDD the Esther's Bot, and follow the instruction on the Smooch Bot Example (using $ npm install and then $ node console) and actually the Ester's Bot works on my PC! I can interact with it on the terminal app... so it seems that the code works, but there is something wrong when we deploy it on Heroku!

Any clue on this?
Thank you guys for you help!

Anybody solved this? I am using smooch bot example and it is very difficult to set up conversation using only code!

nope...still not working. A few days ago I could run the interface of the app, but now I got the same error-screen. Tried to fork from other people, but still not success.

I forked from both Smooch-bot-example and Esterbot and my both won't respond.  From all the comments, it seems like Smooch-bot just suddenly stopped working.  I wonder is there a conspiracy (Smooch shut it down cuz' Esterbot author trying to monetize smooch's work?)?

Mine's still working. I don't know what a HDD is, and the heroku link didn't work, but I did get it to work by copying the code from smoochbot into a header of a weekly website. The github update to heroku works that way for me too. I don't know what npm install of $ node are...i didn't need that to make it work, the page i copied was older and didn't use any of this stuff...which i think is confusing as hell unless your a nom install $ node ninja?

Hi Folks.
I have created my own Bot MarkyBot (@LikeMarkyBot) on FaceBook.
I'm really enjoying playing with this new Tech.
I have one issue. Sometimes my Bot spits out the same reply 2 or 3 times!
Does anyone here know how it correct this?
Thanks a mil. From the comments I've been reading there is a great support network here.
All the Best,
MarkyBot (feel free to chat with mine)

I forked from the Esterbot and my bot won't respond. I created an Heroku account, followed all the steps, in the README doc. I edited the script.json and script.js and double checked: https://github.com/SaaSrite/glengarryross
When I go to my app and try to test out the bot it does not respond: https://glengarryross.herokuapp.com/
If I read the log from heroku, I see an error on the field NPM_CONFIG_LOGLEVEL=error but not sure how to handle it.
@leovarmak @mauriziocassano from the previous comments it looks like you figured this out?  can you help?
-----> Using set buildpack heroku/nodejs
-----> Node.js app detected
-----> Creating runtime environment
   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries
engines.node (package.json):  unspecified
engines.npm (package.json):   unspecified (use default)
   Resolving node version (latest stable) via semver.io...
   Downloading and installing node 5.11.1...
   Using default npm version: 3.8.6

-----> Restoring cache
Loading 2 from cacheDirectories (default):
- node_modules
- bower_components (not cached - skipping)
-----> Building dependencies
Installing node modules (package.json)
-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
-----> Build succeeded!
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>(git+https://github.com/skhavari/smooch-bot.git#ccd2d634cdc6cb57caa710f597075f7ad7ce29eb)
└──<EMAIL_ADDRESS>-----> Discovering process types
Procfile declares types     -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 18.9M
-----> Launching...
Released v13
https://glengarryross.herokuapp.com/ deployed to Heroku

@bisaryan I see that its working !

@leovarmak thx for the reply. can you share a screenshot of what the bot replied?

@bisaryan Actaully the bot didnt reply anything. Can I see your repo ? maybe some programming error ?

@leovarmak https://github.com/SaaSrite/glengarryross

@bisaryan Wow. Actually the bot should start the coversation with So you want to learn about Glengarryross? Just say HELLO to get started. . I have no idea as to why Hi how can I help? this message shows up ! Any clues ?

nope @leovarmak only edited script.js and script.json - was expecting to see an exchange that i created in script.json

Hello, I am trying to create a bot resume with the README document of EstherBot, but I am facing issues with the deployment of the Smooch App with Heroku. Could you please help me?
Thanks.

did you ever figure it out? I'm having trouble deploying


Update readme.md in quclassi directory

Summary
Update the readme.md in the quclassi direcotry.

merged to the main branch.


builtin.open_in_split opens first file in list and not selected.

I created a config like your template, but if i want to open a file with "C-s", "C-v", or "C-t" it opens the first element in the list and not the "hovered" one.
My config:
" Options
lua << EOF
    local builtin = require("nnn").builtin
    require("nnn").setup({
        explorer = {
	            width = 40
	        },
        replace_netrw = nil,
        mappings = {
	             { "<C-s>", builtin.open_in_split },
	             { "<C-v>", builtin.open_in_vsplit },
	             { "<C-t>", builtin.open_in_tab },
             },
        auto_close = true,
        auto_open = {
                 setup = "picker",
                 tabpage = "pcker",
                 empty = true
            }

    })
EOF

"autocmd VimEnter * NnnExplorer
if @% != "" && @% != "." && @% != "./"
	autocmd VimEnter * execute  "normal \<C-w>\<right>" | stopinsert
endif

autocmd BufWinLeave,WinLeave term://* startinsert
" Functions
" Shortcuts
nnoremap <C-n> :NnnPicker<CR>
inoremap <C-n> <Esc> :NnnPicker<CR>
tnoremap <C-n> <C-\><C-n> :NnnPicker<CR>

Hmm, I cannot reproduce this. It should open the hovered file or the active selection if it exists.

Maybe the issue is somewhere else in my config:
https://github.com/Svenum/nvim-config

Can you make a screen recording of your problem?

https://user-images.githubusercontent.com/43136984/216831781-2c4ae653-eed9-41ea-9118-261598ab35d7.mp4

I have no idea what could cause this sorry. If it is splitting the window, it must mean it is executing the mapping. Could you try adding a debug print statement?
+++ b/lua/nnn.lua
@@ -422,6 +422,7 @@ end
 local function open_in(files, command)
        for _, file in ipairs(files) do
                c(command.." "..file)
+               vim.pretty_print(command.." "..file)
        end
 end

It should show up in :messages after using a mapping.

But you should just add the single pretty_print() line to the existing open_in() function, not define a new function at the top of the file:
https://github.com/luukvbaal/nnn.nvim/blob/440ddfd4b41315355b5ec7911b9559bc73165b8b/lua/nnn.lua#L421-L426

I got the output:
"vsplit /home/user/test/nnn-test/cloud.txt"
(vsplit first item in the list and not hovered)

I don't understand how it could happen, there must be something interfering. Can you try this in NnnExplorer instead? That way you should be able to see what actually happens in the terminal window as it stays open.

Is it really switching to the first item in a directory with more than two files? Or perhaps just the file above it? The mapping must be feeding either a g, or k key somehow.

Can you check if this fixes the issue?
+++ b/lua/nnn.lua
@@ -221,14 +221,15 @@ local function buffer_setup()
                a.nvim_buf_set_option(0, opt, val)
        end

+       local opts = { noremap = true }
        for i, mapping in ipairs(cfg.mappings) do
-               a.nvim_buf_set_keymap(0, "t", mapping[1], "<C-\\><C-n><cmd>lua require('nnn').handle_mapping("..i..")<CR>", {})
+               a.nvim_buf_set_keymap(0, "t", mapping[1], "<C-\\><C-n><cmd>lua require('nnn').handle_mapping("..i..")<CR>", opts)
        end

-       a.nvim_buf_set_keymap(0, "t", cfg.windownav.left, "<C-\\><C-n><C-w>h", {})
-       a.nvim_buf_set_keymap(0, "t", cfg.windownav.right, "<C-\\><C-n><C-w>l", {})
-       a.nvim_buf_set_keymap(0, "t", cfg.windownav.next, "<C-\\><C-n><C-w>w", {})
-       a.nvim_buf_set_keymap(0, "t", cfg.windownav.prev, "<C-\\><C-n><C-w>W", {})
+       a.nvim_buf_set_keymap(0, "t", cfg.windownav.left, "<C-\\><C-n><C-w>h", opts)
+       a.nvim_buf_set_keymap(0, "t", cfg.windownav.right, "<C-\\><C-n><C-w>l", opts)
+       a.nvim_buf_set_keymap(0, "t", cfg.windownav.next, "<C-\\><C-n><C-w>w", opts)
+       a.nvim_buf_set_keymap(0, "t", cfg.windownav.prev, "<C-\\><C-n><C-w>W", opts)
 end

  -- Restore buffer to previous state

If I add this i get this error:
E5108: Error executing lua vim/_init_packages.lua:0: .../sven/.config/nvim/autoload/plugged/nnn.nvim/lua/nnn.lua:224: unexpe
cted symbol near '{'
stack traceback:
        [C]: in function 'error'
        vim/_init_packages.lua: in function <vim/_init_packages.lua:0>
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
E325: ATTENTION

It resolved it :)

What does this change do?

It uses the non-recursive :h tnoremap instead of the :h tmap command. Meaning that it will use internal vim mappings rather than potential user-defined mappings. I should have included that from the start.


PC of ExceededMaxInstructions is incorrect in JIT mode

This is ret2HAPPY from BlockSec.
When the ExceededMaxInstructions exception is triggered in both JIT and interpretation mode, the PC values are inconsistent:

In Interpreter mode : ExceededMaxInstructions(31, 2240)

In JIT mode : ExceededMaxInstructions(32, 2240)

To reproduce the different runtime error from the attached exceeded_instructions.o program, use the following code snippet:
// path : path_to_exceeded_instructions.o
let program = fs::read(&path).unwrap();
let mut functions = std::collections::BTreeMap::new();
register_bpf_function(&mut functions, 0, "entrypoint", false).unwrap();
let mut executable = Executable::<UserError, TestInstructionMeter>::from_text_bytes(program, None, Config::default(), SyscallRegistry::default(), functions).unwrap();

// run in interpreter, raise ExceededMaxInstructions(31, 2240)
let mut vm1 = EbpfVm::new(&executable, &mut [], &mut []).unwrap();
vm1.execute_program_interpreted(&mut TestInstructionMeter { remaining: 2240 }).unwrap();

// run in jit, raise ExceededMaxInstructions(32, 2240)
let mut vm2 = EbpfVm::new(&executable, &mut [], &mut []).unwrap();
vm2.execute_program_jit(&mut TestInstructionMeter {remaining: 2040,}).unwrap();

exceed_instructions.o.zip
This issue will not trigger serious security risks.

Pretty sure this is expected:

https://github.com/solana-labs/rbpf/blob/main/src/jit.rs#L420
https://github.com/solana-labs/rbpf/blob/main/src/vm.rs#L386


update titles and sidebar labels

Updates the sidebar labels to be more concise and match the language used for the Horizon API resources.

Preview is available here:http://developers-pr107.previews.kube001.services.stellar-ops.com


Add Percentage for Active,Recovered & Deaths

let's add percentages as shown below.

Needs to be discussed.

Closing due to inactivity.


Let hide clear button when input is disabled

Atm when input disabled, it's still possible to clear the input. Just hide the button when the input is disabled

thx


TestPC: added simple simulation for discrete and kci test

Updated files:

tests/TestPC.py: test_pc_simulate_linear_nongaussian_with_kci and test_pc_simulate_discrete_with_chisq.
tests/utils_simulate_data.py: some utils for simulation. Now contains forward sampling (for discrete variables) and linear SEM (for continuous variables).

What this update can do:

Ensure PC's correctness on simple simulated data:

Last time we had tests for PC over loaded dataset and over data simulated from specific graphs.
For the latter one, we expect that PC will return totally correct CPDAG when the given graph is simple.
So except for the linear Gaussian case (using fisherZ) last time, now we added discrete case (using chisq) and linear nonGaussian (exponential) case (using kci).
The simple example graph used are all same: a 5 nodes 7 edges graph.

Some utils for data simulation from DAG [and TODOs, with lower priority]:

simulate_linear_continuous_data: Simulate data by linear mixing of exogenous noises. TODOs:

Now noises are of the same distribution (and variance).
Only support noise components of Gaussian and exponential.
And the parameters to noise generators are fixed.

simulate_discrete_data: Use pgmpy's forward sampling for discrete case. TODOs:

Now the max cardinalities product is fixed (for speed).
Alpha parameters for Dirichlet sampling is also fixed.

Overall TODOs:

Check with existed simulations in Tetrad to see whether parameters here are reasonable.
Also incorporate nonlinear SEM.

Test plan:
python -m unittest TestPC.TestPC.test_pc_simulate_linear_nongaussian_with_kci
# should pass, but in ~17mins (for 5 nodes, samplesize=2500)
# if you reduce the samplesize (e.g., to 2000) for speed consideration, the returned graph will not be totally correct.

# if you need to run forward sampling, please install pgmpy
pip install pgmpy
python -m unittest TestPC.TestPC.test_pc_simulate_discrete_with_chisq  # should pass within one second

@tofuwen Thanks! I will work on the PC benchmarks soon.
And @kunwuz this is ready to go. Thx :))


Product Roadmap Generator

Describe the project you want to add with tech stack
I want to make a command-line tool that allows you to create, display, and manage a roadmap of tasks and deadlines for your startup's product development. You can easily add, view, save, and load roadmap items from a text file.
@MohitGupta121 @TusharKesarwani Sir kindly assigned me these issue

@MohitGupta121 Sir Can you please assigned me these task


[Bug] propertysheets specified in ExtensionTargets must be evaluated later.

example.vcxproj
...
<ItemDefinitionGroup>
    <ClCompile>
        <!-- Pay attention to omission of %(AdditionalIncludeDirectories) -->
        <AdditionalIncludeDirectories>C:\test</AdditionalIncludeDirectories>
    </ClCompile>
</ItemDefinitionGroup>
...
<!-- The problem occurs when using "PropertySheets" instead of "ExtensionTargets", too. -->
<ImportGroup Label="ExtensionTargets">
    <Import Project="..\packages\boost.<IP_ADDRESS>\build\boost.targets" Condition="Exists('..\packages\boost.<IP_ADDRESS>\build\boost.targets')" />
</ImportGroup>
...

..\packages\boost.<IP_ADDRESS>\build\boost.targets
<?xml version="1.0" encoding="utf-8"?>
<Project ToolVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\lib\native\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
  </ItemDefinitionGroup>
  <ItemGroup />
</Project>

Expected Result in verbose mode
Additional include directories:
    C:\Windows
    C:\Users\taeguk\example\packages\boost.<IP_ADDRESS>\build\..\lib\native\include

Actual Result in verbose mode
Additional include directories:
    C:\Windows

A interim solution to this would be to move the Property Sheet includes to the top of the XML hierarchy.

Quick update: We've fixed the underlying ItemDefinitionGroup mechanism which caused this issue to surface. The fix will be available in the next release of Clang Power Tools (v4.9).
Thank you for your feedback and understanding.
Regards,
Gabriel


RuntimeError Output size is too small

Hi,
Thanks a lot for sharing your work. I am trying to run the code but I keep getting some errors. There are some libraries missing e.g. Gauss and it seems some stuff is out of date. I already tried many things but nothing works. Have you tested the exact code recently?
It would be nice if you provide a working demo e.g. that runs with any free dataset or even some random numbers.

Hello,
Even I am having these issues. Have you succeded in running the code

@ginobilinie and this one  :smiling_imp:
It seems this affect other users as well. If you like I can provide some fake data to test with e.g. we can use images from MINST to create a colorful version e.g. red and blue. The idea is not the problem but to provide a working and tested code. I can also build colab notebook if needed.

That would be great

@ginobilinie this code downloads MINST dataset then creates two lists of bumpy arrays, one represents red color, the other represents a blue color. It can be used for demo code to this repository.
        import gzip, urllib.request
        import numpy as np,  matplotlib.pyplot as plt
        from PIL import Image

        minstUrl = "http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz"
        urllib.request.urlretrieve(minstUrl, "./train-images-idx3-ubyte.gz")
        f = gzip.open("./train-images-idx3-ubyte.gz",'r')
        image_size = 28
        num_images = 60000
        f.read(16)
        buf = f.read(image_size * image_size * num_images)
        data = np.frombuffer(buf, dtype=np.uint8).astype(np.float32)
        data = data.reshape(num_images, image_size, image_size, 1)
        trainA = []; trainB = [];
        for i in range (num_images):
            image = np.asarray(data[i]).squeeze()
            imge = Image.fromarray(image.astype('uint8'))
            imgeRGB = imgeRGB.convert("RGB")
            imgRed =  np.array(imgeRGB)
            imgRed [:,:,1:]= 0
            imgBlue =  np.array(imgeRGB)
            imgBlue   [:,:,:1]= 0
            trainA.append(imgRed)
            trainB.append(imgBlue)
        #endfor
        plt.imshow(trainA[0])
        plt.show()
        plt.imshow(trainB[0])
        plt.show()

Thank you.
Can you explain me whats happening in utils.py :
def Generator_2D_slicesV1_OneEpoch():
Since I am getting the error AssertionError: 3D tensors expect 2 values for padding.
I have extracted the image patches ,with size [112,64,64,64].And passing it to the model.
I havent converted  my dataset to h5py .So i created my own patches and loaded using dataloader.
Thanks in advance.

I can only trace the code when it runs. I still have different types of errors and I think the code is not tested. If you get anywhere please let me know ;)

Ok great

@SurbhiKhushu this one works. I am now training the model to see how the results look like.

Yes, but that is using keras framework.


In the json of the Marketplace add the UUID to know if an Agent is installed by the ID and not by the name

In the json of the Marketplace add the UUID to know if an Agent is installed by the ID and not by the name

Bug
Evberything seems to be working properly except this scenario:

Uninstall agent by clicking Uninstall button in Marketplace does uninstall the agent and it dissapear from Agent list, but, in Marketplace, button never change to Install, so you will see always the Uninstall option in Marketplace

In previous image, both agents were already uninstalled but Uninstall option is still present


Integration with TDCI and transport data base

Introduction
GIZ and other MobiliseYourCity partners have been working on two initiatives to archive and publish data obtained from their different projects.
A transport data base has been conceived to archive the data obtained from the use of two different calculation tool : TRIGGER and the MYC excel-based.
Our goal is to make sure that both data base and our tool will be compatible in the future.

[ ] Database formatting or conversion script

Tasks for medium and long-term :

[ ] Publication of input and output data ?

[ ] Import from transport database


Doesn't work with cloud shell

The directions suggest the user to try Azure Cloud Shell. This feature does not appear to work with Azure Cloud Shell. https://github.com/MicrosoftDocs/azure-docs/issues/16791

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 52fe18fe-efc5-3e63-8200-8e20e885b55e
Version Independent ID: 86a4f465-d676-e0e4-7367-2ed9f906340a
Content: Create an Azure virtual network peering - Resource Manager - different subscriptions
Content Source: articles/virtual-network/create-peering-different-subscriptions.md
Service: virtual-network
GitHub Login: @jimdial
Microsoft Alias: jdial;anavin

Can we direct this to the cloud shell owners, @TravisCragg-MSFT? Thanks.

@anavinahar  this is known to not work in cloud shell due to a limitations in switching subscriptions / tenants, and have had a couple issues already. Can we instruct people to not use cloud shell for these instructions?

@TravisCragg-MSFT who is tracking the issue with Cloud Shell? Seems to be a limitation? Where is the bug?

I am the PM for Cloud Shell, I cannot repo this to investigate.


Reduced amount of Docker Image layers

:warning: This is a Pull Request Template :warning:

Checkout all the things you've done by placing an x within the square braces below.

Proposed Changes

[X I've read the CODE OF CONDUCT and abide to it.
[X] I've read the CONTRIBUTING.md
[X] I've forked the repository.
[X] I've created a branch and made my changes in it.
[X] I understand opening a PULL REQUEST doesn't mean it will be merged for sure.

Thanks a lot, it is good idea to reduce amount of Docker Image layers

Note what now Docker build is broken https://github.com/blockspacer/CXTPL/issues/52

i'll have a lot at it. I have 2 questions:

do you actually need Al the versions of LLVM installed? That a huge image for sure.
all the code relies only on Folly and Gtest for tests,or do you use also other libraries independently? If only folly is your main requirement, bincrafters have a Conan recipe for folly (duckduckgo for 'conan-folly')

We need llvm-6 only for Cling or iwyu. Both optional, so i plan to add ARG enable_llvm to cmakelists. Also multistage builds can be used for separation of dev-env & release build.

I`ll try to add folly from git and use Conan with custom patch, like so https://github.com/studiofuga/conan-proj/blob/master/conanfile.py#L23


optimization：unfold

is False better than == False

Thanks for the suggestion but we will leave it as is.


Delete Component operation Maven plugin

Closed via https://github.com/lordofthejars/odo-java/pull/31


Multi-zoom Level mbtiles

When running mbtiles-extracts on an mbtiles file with multiple zoom levels, the output does not retain the correct data at all zoom levels as found in the input. The resulting file will have the input data split across multiple zoom levels so that it appears to pop in and out as you zoom on the map.
As an example, let's assume a city is broken up into thirds A, B, and C with data in the mbtiles files existing in all three areas at all zoom levels. After running this through mbtiles-extracts, you would find that the data for section A only shows up at z9-z11, the data for section B shows up for z9+, and the data for section C only shows up for z11+. Zooming out, no data would appear for anything < z9.
Desired functionality is that the mbtiles-extracts script handles mbtiles files across all zoom levels of the input data so that we don't have this inconsistent result.
/cc @geohacker @mourner @ryanbaumann @mtirwin

@miles-dev can you link a sample mbtiles file on an s3 bucket we can test with for this issue?

Capturing from chat:
My guess on what’s going on is the mbtiles-extracts determines whether a tile belongs to the boundary by probing the tile’s centerpoint; this doesn’t work well for lower zoom level tiles because their centerpoint can lie outside the boundary. Since the script doesn’t actually do any data clipping along the boundary, but just sorts already present tiles in an mbtiles file, the tiles on the boundary are less likely to get included the lower the zoom.
There’s a relatively easy fix for this — which-polygon module (which is a dependency) can also query by bbox and return boundaries that intersect it; however the effect of that fix will be that lower zooms will have more data than higher zooms (because there’s no splitting along the boundary going on, and lower zoom tiles along the boundary are bigger than higher zoom tiles). If that’s OK, I can make a quick PR.

Actually I just realized that there's already a PR for this exact problem: https://github.com/mapbox/mbtiles-extracts/pull/7 — @miles-dev can you check if that branch works in your case?

Thanks @mourner. The branch you linked to does get us closer. It solved the multi-zoom level issue. We still have an issue from our end goal in that the current mbtiles-extracts functionality cuts via tiles and not geometries. Closing out this ticket as we have addressed the original concerns here and we will continue to investigate the functionality we want elsewhere.


docker.Makefile no longer works on Windows

A few unixisms have crept in which mean this no longer works on Windows. Specifically:

The BUILDTIME option relies on sed and time, which are likely not present. Best to either warn rather than error, or to replace with relevant Windows standard utilities
The addition of /dev/null to the git shell commands causes them to fail, as per the snippet below. Note this worked with the previous version.

make -f docker.Makefile cross
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
docker build --target= -t docker-app-cross --build-arg COMMIT= --build-arg TAG= --build-arg BUILDTIME= .

Should have been fixed by https://github.com/docker/app/pull/225 so I'll close it for now :angel:


Stream redirection implementation may not be valid

The stream redirection feature is causing issues with ffmpeg. It is suggested that the feature, as currently implemented may result in invalid streams. Please advise in a bug discussion for ffmpeg: https://trac.ffmpeg.org/ticket/3553

Do you have more info about this? I'm having this problem with nginx and ffmpeg, both compiled today...

Do you have more info about this? I'm having this problem with nginx and ffmpeg, both compiled today...

I just had the same issue. -use_wallclock_as_timestamps 1 -fflags +genpts did it for me.

@suuuehgi are you using it while transcoding to hls optimised stream? Are you using -re, and/or -vsync options with it?


Testing pre-commit.ci

Opening to track testing of pre-commit.ci support that was added in PR ( https://github.com/conda-forge/conda-forge-repodata-patches-feedstock/pull/569 )

@conda-forge-admin , please re-render

This is now completed. Closing...


Why must a new .deb file be downloaded for every update

Every update a new .deb file has to be downloaded via my browser and then installed. Why must it be this way? I do not understand why the update cannot just replace existing code in the application. Gets even more silly when you realize discord is just a web app.

I think you got the wrong repo buddy?

hey miller you've gotten the wrong repo this github is for the discord linux server which is not affliated with discord, the feedback part is for members to give feedback on our server, but to help with your issue goto syretia github and download the discord stable appimage, when ever theres a new discord version it auto updates and you just have to click next and okay no new downloads

Thank you, my bad


Broadcasting limited in python function

Python 3.6
autograd - 1.2 - py_1 - conda-forge
Consider the following code:
import autograd.numpy as np
x = np.linspace(-10,10,100)
def _sigmoid(x):
    return 1 / (1 + np.exp(-1))

sigmoid = lambda x: (1/1+np.exp(-x))

_s = _sigmoid(x)
s = sigmoid(x)

If you run it you will find that _s is a single value, whereas s is an array as expected. Why ?

Your definition of sigmoid is wrong. You write np.exp(-1) instead of np.exp(x).


Support serializing JsonWebKey to IETF-standard JWK

Add support to serialize an Azure.Security.KeyVault.Keys.JsonWebKey to an IETF-standard JWK.
See https://github.com/Azure/azure-sdk-for-net/issues/16155 for discussion. You might review what you did for track 1, if you had a track 1 library, taking into account current SDK guidelines.

Python's JsonWebKey has IETF-standard-compliant properties (kid, kty, key_ops, etc.) and satisfies these requirements today.


Discrete Event Simulator Project: Discussion on handling Statistics

Summary
Lets discuss how we handle the statistics in the project !
Description
Let me start. I just use an ArrayList with 3 items inside and modify it accordingly when needed. I know it is not the 'correct' way, but cant seem to make other implementations work.

Try using a class called Stats.java, and have a method called Stats updateEvent(Event e, Stats oldStats). So after every event is printed, you can have something like myStats = this.updateStats(e, ,myStats)
Then you just print it at the end of the simulation.

I handle the statistics in my simulator class; for example if my event is a Serve Event then I take the time of the Serve Event and the time of arrival of the customer and find the difference to compute the wait time . I pretty much do the same for the number of departed customers or customers served :)

I handled it similarly to what Jordan has mentioned. I have a List of waiting times and update it in a Serve Event. If a customer leaves without being served, update numOfLeftCustomer. I guess it may not be a good design but it is easy to implement.

My handling of Statistics is like @wjingen! however, instead of having an updateStats(...) method, every time I needed to update values, I just create a new Stats object in the Event class and returned it to my Simulator. After the priority queue is empty, it takes the latest Statistics object and calls methods on them to output the required values

I have also a Statistic.java class
And my implementation uses :

a variable to hold the number of people served
a variable to hold the number of people left
a wait list, a list of time that customers first wait
a served list, complements number 3, holds the value in which the customer that is waiting, finally served

So to get the total waiting time, just get number 3 and number 4, for each index,
waitTime += (served) - (wait)

Looking at all the ans previously (esp the ones using Stats class), I think that my implementation is quite bad 🥲
I only have extra 2 variables:
1 for counting Leave event
1 for counting total waiting time
For the total waiting time, everytime I enqueue a Wait event, I will add the waiting time to that variable. For total customer served, I will just subtract the num of customers initially with num of Leave event.

Looking at all the ans previously (esp the ones using Stats class), I think that my implementation is quite bad 🥲
I only have extra 2 variables: 1 for counting Leave event 1 for counting total waiting time
For the total waiting time, everytime I enqueue a Wait event, I will add the waiting time to that variable. For total customer served, I will just subtract the num of customers initially with num of Leave event.

I did it this way too, thought having 3 extra variables (waitTime, numCustomersServed, numCustomersLeft) inside the simulator seemed the simplest. I don't think it would be that bad as long as it works right...

I used a tracker class which does all the collation of timings / calculation to be output at the end. My tracker class also doubles as a helper class for other processes during the simulation such as for random generating or holding the states of each server

an ArrayList with 3 items inside and modify it accordingly

I also did this but placed it in my Event class, and I used static methods so I can update it anywhere I want by Event.increaseCustomerCount etc.
I think it's cheating but I've come too far to change XD

I feed all the events which need to be kept into a PriorityQueue. I can use a different Comparator for this that differs from the one for operations. This PriorityQueue is passed to a StatTracker class to do calculations after the program finishes running. The degree of compartmentalization has helped me from randomly making changes just to see what sticks.

I used like a "Shop" to hold all the Servers (which are basically like cashiers right), self-checkout counters, and also the statistics (though it's the same private final ArrayList<> implementation). At key events like Serve and Leave I would update the value in the Shop, and the Shop has a method to conduct the calculation of the average waiting time. At the end, the toString method of the Shop is simply printing out the summary statistics.

I also handled the statistics in my Simulator class, storing them as ArrayList, updating them everytime when I create new WAIT, DONE, LEAVE event. For number of customers served and left I just used .size().

I have a stats class that uses a hashmap as the internal data structure to store stats

same as jordan but I might wanna change to class if I have the time (for design purposes)

I have a stats class that uses a hashmap as the internal data structure to store stats

Same, I was thinking that this would be a good way to keep track of the stats


Calculator Usecase

accept three inputs
1 - number
2 - number
3 - operand
Output must be displayed in a message box

working on it

working in progress

working on it

Working in Progress!

working on iy

working on it

working on it

Working on it

working on it

Working on it

working on it

working on it

Working on it

Working on it

working on it

Working on it

working on it

working on it

Working on it

Final Calculator operation with Cognitive Approach


Discovery doc also not https

not HTTPS in .well-known/openid-configuration
my startup.cs[.net core 1.1] add
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
});
but the Discovery doc also not https:
"issuer": "http://api.intime.com",
"jwks_uri": "http://api.intime.com/.well-known/openid-configuration/jwks",
how to set

I've use this code inside Configure method of Startup class
public void Configure(
    ...
    IOptions<ForwardedHeadersOptions> baseForwardOptions)
{
    ...
    if (baseForwardOptions.Value.ForwardedHeaders == ForwardedHeaders.None)
    {
        var options = new ForwardedHeadersOptions
        {
            ForwardedHeaders = ForwardedHeaders.All,
            RequireHeaderSymmetry = false
        };
        app.UseForwardedHeaders(options);
    }
    ...
}

If no forwarded options is specified, that means we works behind IIS, and forwarding was not configured yet, so we override it. This is not the IdentityServer issue, but ASP.NET Core. You can read more about this in IdentityServer docs and in ASP NET Core repository issues.

Thanks for the tip.

I'm added UseForwardedHeaders, but still not https!

@RainingNight .NET Core 1.0/1.1/2.0? Dev/Prod env?

@NoMoreLoad ASP.NET Core 2.0 & .NET Core 2.0 and IdentityServer4 2.0, in Prod env, use nginx proxy.
Source: https://github.com/RainingNight/AspNetCoreSample/blob/master/src/IdentityServerSample/Startup.cs
Demo: https://oidc.faasx.com/.well-known/openid-configuration

@RainingNight Try to read this thread. Maybe it will be helpful. And try to sniff traffic between nginx and kestrel to watch what headers are passed to kestrel. Maybe some headers that passed shema are not defined and didn't passed from nginx to kestrel. I've deploy this on Apache 2.4 and my apache config looks like this
<IfModule mod_ssl.c>
<VirtualHost *:443>
	ServerName asystem-web-api.ru
	ServerAlias www.asystem-web-api.ru
	ServerAdmin<EMAIL_ADDRESS>	ProxyPreserveHost On
	ProxyPass / http://<IP_ADDRESS>:50001/
	ProxyPassReverse / http://<IP_ADDRESS>:50001/
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
	RequestHeader set X-Forwarded-Proto "https"
	Header always set Strict-Transport-Security "max-age=15768000"
	SSLCertificateFile /etc/letsencrypt/live/asystem-web-api.ru/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/asystem-web-api.ru/privkey.pem
	Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

my forwarded headers config described here.

https://leastprivilege.com/2017/10/09/new-in-identityserver4-v2-simplified-configuration-behind-load-balancers-or-reverse-proxies/

@leastprivilege Useful, but looks like a hack)
I think it should solved using web-server configuration and middleware. It's pretty clean and could be reused in different parts of your app, not only inside of identity server's "scope".
@RainingNight If your deadlines are burning - it could be a solution, if you can't solve this trouble using "clear" way.

It is actually wiring up middleware - and you can use it for the reasons I've given in the post.

It's ok. Thanks!


Vue Password Reset steps are broken

What this does
Learned about this issue while using the bootstrapper for a project.
Checklist

[x] Fix "Send me a password reset email" page erring on submit
[x] Fix "Create new password" page not saving a new password
[x] Test on Review App
[x] Write test if possible

Testing evidence that the backend at least tries to send a password reset email. (main bug for this PR)

This should mostly work, but needs someone to help it across the finish line (I don't have the time at the moment)

@oudeismetis is this still a thing we need?

It is. I'm actually implementing emails on a project now so I have a reason to test this.

This is close to done. Everything seems to work (albeit with copy/paste of url from the logs)
Will wait for https://github.com/thinknimble/tn-spa-bootstrapper/pull/162 to be merged before doing a final full test of this PR.

@oudeismetis left you a comment, the gist of it is the MustMatchValidator is a form level validator and needs to be added with the dynamicFormValidators key OR if you wanted to post form creation with the helper method. !