macOS build failure for v57.5 (Homebrew)

Hello 👋 . I'm a maintainer for the Homebrew project. While packaging v57.5 we are encountering build failures. The relevant GitHub Actions run can be found here: https://github.com/Homebrew/homebrew-core/actions/runs/4557146919/jobs/8038523624
==> make install -f NONWINDOWS/Makefile BINDIR=/opt/homebrew/Cellar/zpaqfranz/57.5/bin/zpaqfranz
  objc[41729]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1fbffb480) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x110e902b8). One of the two will be used. Which one is undefined.
  objc[41729]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1fbffb4d0) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x110e90308). One of the two will be used. Which one is undefined.
  clang  -DNOJIT -O3 -Dunix zpaqfranz.cpp -o zpaqfranz -pthread -lstdc++ -lm
  zpaqfranz.cpp:37744:128: error: a space is required between consecutive right angle brackets (use '> >')
          int64_t         franzparallelhashfiles(string i_hashtype,int64_t i_totalsize,vector<string> i_thefiles,vector<std::pair<string,string>>& o_hashname);
                                                                                ^~
                                                                                > >
  zpaqfranz.cpp:64457:34: error: a space is required between consecutive right angle brackets (use '> >')
          vector<std::pair<uint64_t,string>> bysize;
                                          ^~
                                          > >
  zpaqfranz.cpp:64493:37: error: a space is required between consecutive right angle brackets (use '> >')
                                  vector<std::pair<uint64_t,string>>::iterator basso      = std::lower_bound(bysize.begin(), bysize.end(), p->second.size,mycompareuint64string());
                                                                  ^~
                                                                  > >
  zpaqfranz.cpp:64502:38: error: a space is required between consecutive right angle brackets (use '> >')
                                          vector<std::pair<uint64_t,string>>::iterator alto       = std::upper_bound(bysize.begin(), bysize.end(), p->second.size,mycompareuint64string());
                                                                          ^~
                                                                          > >
  zpaqfranz.cpp:64503:43: error: a space is required between consecutive right angle brackets (use '> >')
                                          for (vector<std::pair<uint64_t,string>>::iterator a=basso; a!=alto; a++)
                                                                               ^~
                                                                               > >
  zpaqfranz.cpp:64529:32: error: a space is required between consecutive right angle brackets (use '> >')
          vector<std::pair<string,string>> tobehashedsource_hashname;
                                        ^~
                                        > >
  zpaqfranz.cpp:64544:32: error: a space is required between consecutive right angle brackets (use '> >')
          vector<std::pair<string,string>> tobehasheddest_hashname;
                                        ^~
                                        > >
  zpaqfranz.cpp:64575:33: error: a space is required between consecutive right angle brackets (use '> >')
                  vector<std::pair<string,string>>::iterator basso        = std::lower_bound(tobehasheddest_hashname.begin(), tobehasheddest_hashname.end(), cerco,mycomparestringstring());
                                                ^~
                                                > >
  zpaqfranz.cpp:64578:34: error: a space is required between consecutive right angle brackets (use '> >')
                          vector<std::pair<string,string>>::iterator alto                 = std::upper_bound(tobehasheddest_hashname.begin(), tobehasheddest_hashname.end(), cerco,mycomparestringstring());
                                                        ^~
                                                        > >
  zpaqfranz.cpp:64580:39: error: a space is required between consecutive right angle brackets (use '> >')
                          for (vector<std::pair<string,string>>::iterator a=basso; a<alto; a++)
                                                             ^~
                                                             > >
  zpaqfranz.cpp:64606:33: error: a space is required between consecutive right angle brackets (use '> >')
                  vector<std::pair<string,string>>::iterator basso        = std::lower_bound(tobehasheddest_hashname.begin(), tobehasheddest_hashname.end(), cerco,mycomparestringstring());
                                                ^~
                                                > >
  zpaqfranz.cpp:64609:34: error: a space is required between consecutive right angle brackets (use '> >')
                          vector<std::pair<string,string>>::iterator alto                 = std::upper_bound(tobehasheddest_hashname.begin(), tobehasheddest_hashname.end(), cerco,mycomparestringstring());
                                                        ^~
                                                        > >
  zpaqfranz.cpp:64613:39: error: a space is required between consecutive right angle brackets (use '> >')
                          for (vector<std::pair<string,string>>::iterator a=basso; a<alto; a++)
                                                             ^~
                                                             > >
  zpaqfranz.cpp:64712:133: error: a space is required between consecutive right angle brackets (use '> >')
  int64_t Jidac::franzparallelhashfiles(string i_hashtype,int64_t i_totalsize,vector<string> i_thefiles,vector<std::pair<string,string>>& o_hashname)
                                                                                ^~
                                                                                > >
  14 errors generated.
  make: *** [zpaqfranz] Error 1

Relates to https://github.com/Homebrew/homebrew-core/pull/126991

Thank you seems a include issue
I'll check tomorrow

(Sorry for the noise above.)
This is actually because the C++ program is compiled with a C compiler. Double right angle brackets has been in the standards since C++11.
Adding a -std=c++11 flag should solve this, but I suggest that a C++ compiler be used instead. Please take a look at #51.

I am rewriting from scratch a couple of functions, to work even without -std=c++11
A couple of days and I'll check better
Can I add you like that?
20 Thanks to https://github.com/ZhongRuoyu				for __linux__ instead of older #defines

A couple of days and I'll check better

Thanks!

Can I add you like that?

Yes, I'm happy with that. And thanks for doing so! :)

The "real" thing I do not know for Homebrew is conditional compiling.
On "everything" different from amd64 CPU a -DNOJIT is mandatory (M1, M2, PPC...)
Is it possible?
I really know nothing of "brew"
If it is impossible then a -DNOJIT must be enforced, even on Intel chips
This will slow down (a lot), but better than nothing
"spiegone". zpaq runs compression and extraction in PAQL, a custom-made language running on a virtual machine embedded in the software (! yes !).
On amd64 (Intel) there is a JIT (!) that translate the code into Intel machine language (! yes !). It is the default.
On "non Intel" the JIT must be excluded, running on software emulation (! yes !), with -DNOJIT
If you think this is crazy, remember that dr. Mahoney, the "father" of zpaq, is one of the world's top compression expert (today retired)
In fact the JIT use some extension, therefore on 32 bit Intel the situation is even more complex (! yessssss !), but I think there aren't Mac 32 bit Intel (all amd64)

On "everything" different from amd64 CPU a -DNOJIT is mandatory (M1, M2, PPC...)
Is it possible?

Thanks for the info @fcorbelli. Yes, it is possible, and actually, it's already there: https://github.com/Homebrew/homebrew-core/blob/6a10c64ef2b12349ad8dbdc7fae2118c03940636/Formula/zpaqfranz.rb#L33-L34
    # JIT only works on Intel (might work on Linux aarch64, but not Apple Silicon)
    ENV.append_to_cflags "-DNOJIT" unless Hardware::CPU.intel?

The code snippet above means that -DNOJIT is added to the compile flags on non-Intel (amd64) platforms.


METRON-1382 Run Stellar in a Zeppelin Notebook

Stellar in a Zeppelin Notebook
The goal of this effort was to have the shell-like experience of the command-line driven REPL, but inside a web-based Zeppelin Notebook.  This makes the existing functionality provided by the REPL more accessible and approachable for the average user.
This also opens up interesting additional scenarios like "executable" use cases or plotting profile data.  Definitely more work to do on those fronts, but this is a first step.
Changes

There was a good amount of refactoring that I needed to do to achieve this.  Prior to this effort different aspects of the REPL's functionality were tied together in the StellarShell class.  To be able to have the same shell-like experience in both the REPL and Zeppelin, I needed to factor this logic out separately to allow for reuse.
This included the following bits.

Console logic tied to the AESH library
Stellar execution logic
Autocomplete logic
Variable assignment (only available in the shell)
Magics
Docstrings
Comments
quit

We had very few automated tests around the shell/REPL, primarily because all these bits were tied together, which made testing difficult.  Separating out this logic allowed me to add a large number of unit tests around each of these pieces of logic.

This also adds a separate project metron-stellar/stellar-zeppelin that provides a Zeppelin interpreter that allow you to run Stellar in a notebook.  The interpreter acts as the front-end that then re-uses all of the bits that I refactored as described above.

What does this do?

This allows you to run Stellar expressions in a Zeppelin Notebook.

This provides auto-complete in the Zeppelin Notebook using "CTRL + ."

What does this not do?
This does not automatically prepare the Zeppelin environment to run Stellar.  Meaning it does not install the Stellar interpreter in Zeppelin.  You have to manually install the zinterpreter in Zeppelin by following the directions described in the metron-stellar/stellar-zepelin README.
Testing
Run Stellar in Notebook

Build Metron.
Follow the instructions in metron-stellar/stellar-zepelin/README.md to download/run Zeppelin locally.
Follow the same instructions to execute Stellar expressions in a Zeppelin Notebook.
Use CTRL+. to try out autocomplete.

Validate the CLI REPL

Deploy Full Dev
Run the existing CLI-driven REPL
Validate that we have feature parity

Pull Request Checklist

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?
[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[x] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
[x] Have you written or updated unit tests and or integration tests to verify your changes?
[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

There are a few more things I want to clean-up on this, but its 95% there.


coefficient for external temp doesn't accept decimals...

Version 3.8.1
Very straight forward issue... TPI parameters and the external coefficient cannot accept decimal values...

Yes you can. Tell me.more ?
Le ven. 3 nov. 2023, 20:44, MaxWaldorf @.***> a écrit :

Version 3.8.1
Very straight forward issue... TPI parameters and the external coefficient
cannot accept decimal values...
—
Reply to this email directly, view it on GitHub
https://github.com/jmcollin78/versatile_thermostat/issues/157, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AANCB5W53SCCFCKMHH6GF43YCVCTDAVCNFSM6AAAAAA6442BQGVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TMOBSHE3DAMY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I can't modify the second value in that picture with "0.02" it doesn't accept "."

Ah ok. It's a running in the ui but not on VTherm. Thé solution is to
copy/paste the value you want to add.
Le ven. 3 nov. 2023, 21:10, MaxWaldorf @.***> a écrit :

[image: image]
https://user-images.githubusercontent.com/15877853/280402903-49fe8474-6546-4b6b-9170-9a84d9c0f24c.png
I can't modify the second value in that picture with "0.02" it doesn't
accept "."
—
Reply to this email directly, view it on GitHub
https://github.com/jmcollin78/versatile_thermostat/issues/157#issuecomment-1793034669,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANCB5X7ODG6WKPPOY2E5RTYCVFTRAVCNFSM6AAAAAA6442BQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGAZTINRWHE
.
You are receiving this because you commented.Message ID:
@.***>

Same issue on 6.8.0.beta12

OK! Got it! Sorry to have mentioned it!

There is more than 2600 issues open in HA. I suggest, you try to find the good one 😉

There is more than 2600 issues open in HA. I suggest, you try to find the good one 😉

I assume this is where you define the input form? https://github.com/jmcollin78/versatile_thermostat/blob/0a658b7a2a3c6ed329e082b81e363d143dc8cc9d/custom_components/versatile_thermostat/config_schema.py#L206-L211
Based on my current search the issue was fixed in 2022 and that you should not be using vol.Coerce(float) but rather something like this:
import voluptuous as vol
from homeassistant.helpers import selector

STEP_CENTRAL_TPI_DATA_SCHEMA = vol.Schema(
    {
        vol.Required(
            CONF_TPI_COEF_INT,
            default=0.6
        ): selector.NumberSelector(
            selector.NumberSelectorConfig(
                min=0.0,
                max=10.0,
                step=0.1,
                mode=selector.NumberSelectorMode.BOX
            )
        ),
        vol.Required(
            CONF_TPI_COEF_EXT,
            default=0.01
        ): selector.NumberSelector(
            selector.NumberSelectorConfig(
                min=0.0,
                max=1.0,
                step=0.01,
                mode=selector.NumberSelectorMode.BOX
            )
        ),
    }
)

…but as I have no Python experience, I might be completely wrong.

@maia this workaround is working fine. Thank you. It wil be in the next release.
/

https://github.com/jmcollin78/versatile_thermostat/releases/tag/6.8.1


LockOrFail provide a lock or fast fail option for user

sometimes we want to try to lock or fail and do something else.

Coverage decreased (-3.1%) to 76.923% when pulling 8d55a251d1aeec9a350e09bf7c8fee9fde856879 on sinkingsun2:master into c4fab1ac1bec58281ad0667dc3f0907a9476ac47 on samuel:master.


[Flaky Test] python-integration-contrib-test_ethosu-shard-5-ctypes failed on PR with unrelated changes

I'm seeing a CI failure on python-integration-contrib-test_ethosu-shard-5-ctypes: tests/python/contrib/test_ethosu for Cortex-M5 on this PR:  https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-12918/2/pipeline.
A previous run was successful, and the only thing I changed was specific to Hexagon.
Full logs are here:  https://ci.tlcpack.ai/blue/rest/organizations/jenkins/pipelines/tvm/branches/PR-12918/runs/2/nodes/481/steps/1328/log/?start=0.

thanks for reporting! looks like we've seen this before (#12841) so I filed a PR to disable this test. Closing this issue for now to consolidate on #12841


Go: Refactor pktcls

The pktcls.Action interface should be moved out of the pktcls package, as it's not specific to packet classification. A prime example is that it is implemented by the new path policy pacakge (go/lib/pathpcy), which operates only on paths, and never on packets.

As the path policy is not implementing the Action interface anymore, it is not necessary anymore to move out the Action interface until something else might implement it.


[FR] preview for links in the file

I would love the ability to have Telekasten bring up a Telescope window that shows me the contents of all of the wiki links in the file I'm editing (What I'm actually trying to do is functionally replicate embedded files from obsidian, but I don't think trying to do embedding in vim is feasible). This may be a job for a different Telescope plugin, but since Telekasten is already aware of links, this seems like a reasonable place to do it.
(Alternately, if anyone reading this knows of a way to get a preview of just wiki links in a file, or some other way of seeing the contents of multiple links without opening the files, I'll take that too. It is impossible to google that without learning about all the ways one can preview a markdown file.)
I am aware this is probably non-trivial :)

something like this? https://github.com/renerocksai/telekasten.nvim/pull/234


Installing “atom-beautify-0.29.16” failed.

Installing<EMAIL_ADDRESS>failed.Hide output…
npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Users\Sykox\AppData\Local\atom\app-1.13.0\resources\app\apm\bin\node.exe" "C:\Users\Sykox\AppData\Local\atom\app-1.13.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\Sykox\.atom\.apm\.apmrc" "--userconfig" "C:\Users\Sykox\.atom\.apmrc" "install" "C:\Users\Sykox\AppData\Local\Temp\d-117016-7740-g5mo7w\package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=ia32" "--global-style" "--msvs_version=2015"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! shasum check failed for C:\Users\Sykox\AppData\Local\Temp\npm-7696-ca27d1f9\registry.npmjs.org\gherkin-\gherkin-2.12.2.tgz
npm ERR! Expected: 3c74547e466134a0ef83f614b1adfc489b70dc62
npm ERR! Actual:   22e5c2e74c038c79a4c2703808bde30bdbad3c58
npm ERR! From:     https://registry.npmjs.org/gherkin/-/gherkin-2.12.2.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Sykox\AppData\Local\Temp\apm-install-dir-117016-7740-1t4t3xv\npm-debug.log

That happens to me too!
><EMAIL_ADDRESS>postinstall C:\Users\SISTEM~1\AppData\Local\Temp\apm-install-dir-117019-5952-4wx5y4\node_modules\atom-beautify
> npm run build-options

C:\Users\SISTEM~1\AppData\Local\Temp\apm-install-dir-117019-5952-4wx5y4
`-- (empty)

npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Sistemas FS\AppData\Local\atom\app-1.13.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Sistemas FS\AppData\Local\atom\app-1.13.0\resources\app\apm\node_modules\request\request.js:823:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
'C:\Users\Sistemas' n�o � reconhecido como um comando interno
ou externo, um programa oper�vel ou um arquivo em lotes.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\SISTEM~1\AppData\Local\Temp\apm-install-dir-117019-5952-4wx5y4\package.json'
npm WARN apm-install-dir-117019-5952-4wx5y4 No description
npm WARN apm-install-dir-117019-5952-4wx5y4 No repository field.
npm WARN apm-install-dir-117019-5952-4wx5y4 No README data
npm WARN apm-install-dir-117019-5952-4wx5y4 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Users\\Sistemas FS\\AppData\\Local\\atom\\app-1.13.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Sistemas FS\\AppData\\Local\\atom\\app-1.13.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Sistemas FS\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Sistemas FS\\.atom\\.apmrc" "install" "C:\\Users\\SISTEM~1\\AppData\\Local\\Temp\\d-117019-5952-1r762wl\\package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=ia32" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>postinstall: `npm run build-options`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'npm run build-options'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the atom-beautify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build-options
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs atom-beautify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls atom-beautify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\SISTEM~1\AppData\Local\Temp\apm-install-dir-117019-5952-4wx5y4\npm-debug.log
npm ERR! code 1

Me as well.

Try to run atom in Administrator mode, then install the plugin again. This worked to me

I have a space in my Windows username.  I believe that is causing my problem.
'C:\Users\Adam' is not recognized as an internal or external command, operable program or batch file.

Same problem here with the space in the windows username.
'C:\Users\John' is not recognized as an internal or external command, operable program or batch file.

C:\Users\WILLIA~1\AppData\Local\Temp\apm-install-dir-117019-8828-amlgrn
`-- (empty)
It is not including my full username, and I have tried to run it in administrator mode.

The XXXXXX~1 directory convention is Microsoft's legacy support compromise to bridge support from its modern file systems to applications still supporting older file systems.  Back in the days of DOS (8 bit and 16 bit computing) directories would be slided off after 8 characters and filenames followed a 8.3 pattern where the file name could be 0-8 characters long with a file extension 1 to 3 characters long.  These naming conventions were single case and largely alpha-numeric, which means spaces were not supported.
The ~1 bit is there to prevent collisions.  Directories named william goldman and william goldy cannot both be converted to WILLIAMG as the name would have to be unique to its parent.  Instead they would be WILLIA~1 and WILLIA~2.
I have observed, and I am probably wrong on this, that when running in 32bit mode modern Windows will still support legacy naming for backwards compatibility with Windows XP, but in 64bit mode Windows doesn't bother with these legacy conventions, at least not by default.

The same problem with my two-parts Windows user name. Does anybody know a workaround?

This is an APM/NPM defect so unfortunately short of convincing other packages to publish with https://github.com/prettydiff/biddle there isn't a simple solution to this and it is out of our hands.

I have resolved by updating atom to 1.4.0 beta2
https://github.com/atom/apm/issues/666

It seems updating Atom and Atom-Beautify resolves these problems.  Please reopen this issue if there are on-going problems.

I've merged https://github.com/Glavin001/atom-beautify/pull/1598 which should resolve these issues.
Published to v0.29.21.

I'm still getting this error while trying to install the latest version 0.29.24
npm WARN deprecated<EMAIL_ADDRESS>Use uuid module instead
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Users\\user\\AppData\\Local\\atom\\app-1.16.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\user\\AppData\\Local\\atom\\app-1.16.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\user\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\user\\.atom\\.apmrc" "install" "C:\\Users\\user\\AppData\\Local\\Temp\\d-117420-14624-1t5xxam.wu2z30izfr\\package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=x64" "--global-style" "--msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.5

npm ERR! shasum check failed for C:\Users\user\AppData\Local\Temp\npm-7476-b0197b44\registry.npmjs.org\handlebars\-\handlebars-4.0.8.tgz
npm ERR! Expected: 22b875cd3f0e6cbea30314f144e82bc7a72ff420
npm ERR! Actual:   c2dfba1fcb8df8679ba77043c33d438b2ad855bf
npm ERR! From:     https://registry.npmjs.org/handlebars/-/handlebars-4.0.8.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\user\AppData\Local\Temp\apm-install-dir-117420-14624-143lfuv.dbrfojq0k9\npm-debug.log

Getting this error on latest version 1.20.0 x64 with Atom-Beautify only.
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/zh/nbq0rwds3518pbt4bwlsfclh0000gn/T/apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi/package.json'
npm WARN apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi No description
npm WARN apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi No repository field.
npm WARN apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi No README data
npm WARN apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi No license field.
npm ERR! Darwin 16.7.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/fk/.atom/.apm/.apmrc" "--userconfig" "/Users/fk/.atom/.apmrc" "install" "/private/var/folders/zh/nbq0rwds3518pbt4bwlsfclh0000gn/T/d-117818-25329-1m33yu5.vvtg74x6r/package.tgz" "--runtime=electron" "--target=1.6.9" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! path /private/var/folders/zh/nbq0rwds3518pbt4bwlsfclh0000gn/T/apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi/node_modules/atom-beautify/node_modules/js-beautify/js/bin/css-beautify.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/private/var/folders/zh/nbq0rwds3518pbt4bwlsfclh0000gn/T/apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi/node_modules/atom-beautify/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/private/var/folders/zh/nbq0rwds3518pbt4bwlsfclh0000gn/T/apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi/node_modules/atom-beautify/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/zh/nbq0rwds3518pbt4bwlsfclh0000gn/T/apm-install-dir-117818-25329-cx0ne8.s8l3kmaemi/npm-debug.log
npm ERR! code 1```

Hi All,
I am getting this issue when installing atom beautify
Installing<EMAIL_ADDRESS>failed.Hide output…
npm WARN deprecated<EMAIL_ADDRESS>Use uuid module instead
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Linux 4.10.0-40-generic
npm ERR! argv "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/dhananjaya/.atom/.apm/.apmrc" "--userconfig" "/home/dhananjaya/.atom/.apmrc" "install" "/tmp/d-1171030-12236-1ubutxx.nvpe97ldi/package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code EIO
npm ERR! errno -5
npm ERR! syscall read
npm ERR! EIO: i/o error, read
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-1171030-12236-1559unc.2lrd1v2t9/npm-debug.log

I am also getting the same error cloud anyone please help me out

I want help for this problem because again and again reinstalling ,but it is not working ...


HACS and safepay/sensor.fronius broken HA

Describe the bug
HA 0.96 came up with  coming up is Unable to connect to Home Assistant.
Debug log
https://gist.github.com/adtwomey/fb75112770287488b938c21d538802d8
Thanks for your Hard work

The issue here is that in the manifest for safepay/sensor.fronius the domain key changed it's value.

https://community.home-assistant.io/t/fronius-inverter-integration/19274/134?u=ludeeus workaround posted here.


Bump jedi versions (and its dependency parso)

Motivation for this change
I'm using coc.nvim as my auto-completion helper in nvim. Upon updating it, it requires a newer version of jedi (0.17.0 instead of 0.15.2). So I'd like to upgrade jedi to the latest version.
parso is a jedi dependency. The latest jedi requires a newer version of this, so I updated that too.
Things done
I've put these derivations to a local overlay, and they seem to be working on macOS.

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Seems to break python-language-server.

Not sure if jedi 0.17 indeed breaks pyls: https://github.com/palantir/python-language-server/blob/develop/setup.py#L38

Yes. pyls needs https://github.com/palantir/python-language-server/pull/781 before it works with this jedi version.

Then it is better to wait until they support newer jedi. Meanwhile these updates can live in my local overlay.

We could downgrade coc.nvim in nixpkgs to a version that works with the old jedi version in the meantime.

Actually there's no need to downgrade coc-python. The master branch of nixpkgs tracks coc-python 1.2.9, which is released in Feb. This version only requires jedi >= 0.13.0:
pythonFiles/completion.py:    digits = jedi.__version__.split('.')
pythonFiles/completion.py:         raise RuntimeError('Jedi version %s too old, requires >= 0.13.0' % (jedi.__version__))

I was having problem because I use vim-plug to manage my vim plugins, not `nix.

I think pyls now works jedi 0.17.0.

Yes we have it in staging-next now as well as the jedi bump.


Add Permission to prevent keys from giveAll & Fix permission link

Added new permission "crazycrates.command.exclude.player.giveall" which will exclude you from getting crates from /cc giveAll.
Added missing periods in some permission descriptions.
Fixed the permission link in messages.yml so that newer users can get a working link to the permissions page.

Had no clue what the permission name should be and can make changes if needed.
Not sure if it should also tell them who (did/did not) get keys or amount of players that (did/did not) get them.

use Methods.permCheck(onlinePlayer, Permissions.CRAZY_CRATES_PLAYER_EXCLUDE_GIVE_ALL, false) in the If statement

Changed it over to using the method instead, but the only problem here is that now it will tell everyone that gets keys that they don't have permission when giving them a key.

use Methods.permCheck(onlinePlayer, Permissions.CRAZY_CRATES_PLAYER_EXCLUDE_GIVE_ALL, false) in the If statement

Changed it over to using the method instead, but the only problem here is that now it will tell everyone that gets keys that they don't have permission when giving them a key.

well I can't do anything, I lost power since I am in a Hurricane lol.


aww-int4  quantize  chatglm3-6b model  set tp_size=4 ,got some error

awq_weight_path=quantize_model/chatglm3-awq-4bit-trt/chatglm3_6b_4bit_gs128_awq.pt
python build.py \
    --model_dir=$hf_model_path \
    --quant_ckpt_path=$awq_weight_path \
    --output_dir $engine_dir \
    --world_size 4 \
    --tp_size 4 \
    --use_weight_only \
    --weight_only_precision=int4_awq \
    --per_group

error info:
[01/04/2024-07:52:32] [TRT-LLM] [I] ========================================= Build Arguments ==========================================
[01/04/2024-07:52:32] [TRT-LLM] [I]  - model_name..............................: chatglm3_6b_base
[01/04/2024-07:52:32] [TRT-LLM] [I]  - gpus_per_node...........................: 8
[01/04/2024-07:52:32] [TRT-LLM] [I]  - world_size..............................: 4
[01/04/2024-07:52:32] [TRT-LLM] [I]  - tp_size.................................: 4
[01/04/2024-07:52:32] [TRT-LLM] [I]  - pp_size.................................: 1
[01/04/2024-07:52:32] [TRT-LLM] [I]  - model_dir...............................: /models/tcl_finetune/chatglm3
[01/04/2024-07:52:32] [TRT-LLM] [I]  - quant_ckpt_path.........................: quantize_model/chatglm3-awq-4bit-trt/chatglm3_6b_4bit_gs128_awq.pt
[01/04/2024-07:52:32] [TRT-LLM] [I]  - quantized_fp8_model_path................: None
[01/04/2024-07:52:32] [TRT-LLM] [I]  - output_dir..............................: trt_engines/fp16/4-gpu
[01/04/2024-07:52:32] [TRT-LLM] [I]  - dtype...................................: float16
[01/04/2024-07:52:32] [TRT-LLM] [I]  - logits_dtype............................: float32
[01/04/2024-07:52:32] [TRT-LLM] [I]  - strongly_typed..........................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - timing_cache............................: model.cache
[01/04/2024-07:52:32] [TRT-LLM] [I]  - profiling_verbosity.....................: layer_names_only
[01/04/2024-07:52:32] [TRT-LLM] [I]  - log_level...............................: info
[01/04/2024-07:52:32] [TRT-LLM] [I]  - builder_opt.............................: None
[01/04/2024-07:52:32] [TRT-LLM] [I]  - parallel_build..........................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - enable_debug_output.....................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - visualize...............................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - random_seed.............................: None
[01/04/2024-07:52:32] [TRT-LLM] [I]  - max_batch_size..........................: 8
[01/04/2024-07:52:32] [TRT-LLM] [I]  - max_input_len...........................: 1024
[01/04/2024-07:52:32] [TRT-LLM] [I]  - max_output_len..........................: 1024
[01/04/2024-07:52:32] [TRT-LLM] [I]  - max_beam_width..........................: 1
[01/04/2024-07:52:32] [TRT-LLM] [I]  - max_num_tokens..........................:<PHONE_NUMBER>
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_gpt_attention_plugin................: float16
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_gemm_plugin.........................: float16
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_layernorm_plugin....................: float16
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_rmsnorm_plugin......................: float16
[01/04/2024-07:52:32] [TRT-LLM] [I]  - enable_context_fmha.....................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - enable_context_fmha_fp32_acc............: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - multi_block_mode........................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - gather_all_token_logits.................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_custom_all_reduce...................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - remove_input_padding....................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - paged_kv_cache..........................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - tokens_per_block........................: 128
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_inflight_batching...................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_weight_only.........................: True
[01/04/2024-07:52:32] [TRT-LLM] [I]  - weight_only_precision...................: int4_awq
[01/04/2024-07:52:32] [TRT-LLM] [I]  - disable_weight_only_quant_plugin........: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_smooth_quant........................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - per_token...............................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - per_channel.............................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - per_group...............................: True
[01/04/2024-07:52:32] [TRT-LLM] [I]  - group_size..............................: 128
[01/04/2024-07:52:32] [TRT-LLM] [I]  - int8_kv_cache...........................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - enable_fp8..............................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - fp8_kv_cache............................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - apply_query_key_layer_scaling...........: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - apply_residual_connection_post_layernorm: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - ffn_hidden_size.........................: 13696
[01/04/2024-07:52:32] [TRT-LLM] [I]  - hidden_act..............................: swiglu
[01/04/2024-07:52:32] [TRT-LLM] [I]  - hidden_size.............................: 4096
[01/04/2024-07:52:32] [TRT-LLM] [I]  - linear_bias.............................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - max_seq_length..........................: 2048
[01/04/2024-07:52:32] [TRT-LLM] [I]  - multi_query_mode........................: False
[01/04/2024-07:52:32] [TRT-LLM] [I]  - norm_epsilon............................: 1e-05
[01/04/2024-07:52:32] [TRT-LLM] [I]  - num_heads...............................: 32
[01/04/2024-07:52:32] [TRT-LLM] [I]  - num_kv_heads............................: 2
[01/04/2024-07:52:32] [TRT-LLM] [I]  - num_layers..............................: 28
[01/04/2024-07:52:32] [TRT-LLM] [I]  - qkv_bias................................: True
[01/04/2024-07:52:32] [TRT-LLM] [I]  - rmsnorm.................................: True
[01/04/2024-07:52:32] [TRT-LLM] [I]  - rotary_embedding_scaling................: 1.0
[01/04/2024-07:52:32] [TRT-LLM] [I]  - use_cache...............................: True
[01/04/2024-07:52:32] [TRT-LLM] [I]  - vocab_size..............................: 65024
[01/04/2024-07:52:32] [TRT-LLM] [I]  - quant_mode..............................: 33
[01/04/2024-07:52:32] [TRT-LLM] [I] ====================================================================================================
[01/04/2024-07:52:32] [TRT-LLM] [I] Serially build TensorRT engines.
[01/04/2024-07:52:32] [TRT] [I] [MemUsageChange] Init CUDA: CPU +13, GPU +0, now: CPU 111, GPU 238 (MiB)
[01/04/2024-07:52:34] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +1799, GPU +312, now: CPU 2046, GPU 550 (MiB)
[01/04/2024-07:52:34] [TRT-LLM] [I] [MemUsage] Rank 0 Engine build starts - Allocated Memory: Host 2.4801 (GiB) Device 0.5378 (GiB)
[01/04/2024-07:52:34] [TRT-LLM] [I] Loading weights from groupwise AWQ checkpoint
[01/04/2024-07:52:40] [TRT-LLM] [W] Parameter was initialized as DataType.HALF but set to float16
[01/04/2024-07:52:40] [TRT-LLM] [W] Parameter was initialized as DataType.HALF but set to float16
[01/04/2024-07:52:40] [TRT-LLM] [W] Parameter was initialized as DataType.HALF but set to float16
[01/04/2024-07:52:40] [TRT-LLM] [W] Parameter was initialized as DataType.HALF but set to float16
[01/04/2024-07:52:40] [TRT-LLM] [W] Parameter was initialized as DataType.HALF but set to float16
[01/04/2024-07:52:40] [TRT-LLM] [W] Parameter was initialized as DataType.HALF but set to float16
Traceback (most recent call last):
File "/api/example/tensorrt_llm/chatglm/build.py", line 908, in
run_build()
File "/api/example/tensorrt_llm/chatglm/build.py", line 900, in run_build
build(0, args)
File "/api/example/tensorrt_llm/chatglm/build.py", line 840, in build
engine = build_rank_engine(
File "/api/example/tensorrt_llm/chatglm/build.py", line 664, in build_rank_engine
load_func(
File "/api/example/tensorrt_llm/chatglm/weight.py", line 609, in load_from_awq
process_and_assign_weight(op, name, 1)
File "/api/example/tensorrt_llm/chatglm/weight.py", line 572, in process_and_assign_weight
op.weight.value = AWQ_quantize_pack_preprocess(weight, scale)
File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/parameter.py", line 112, in value
assert v.shape == self._shape,
AssertionError: The value updated is not the same shape as the original. Updated: (4096, 288), original: (4096, 320)

hi do u still have further issue or question now? If not, we'll close it soon.


Register a DOI for Leaflet

It has been suggested that Leaflet registers for a DOI (persistent Digital Object Identifier) to make academic citations of Leaflet resilient (and indexed in some academic tools, and copies stored in vaults, etc).

Relevant stuff:

OSGeo projects with DOI: https://wiki.osgeo.org/wiki/DOI
Howto mit Screenshots: https://guides.lib.berkeley.edu/citeyourcode
Youtube Howto Video: https://www.youtube.com/watch?v=A9FGAU9S9Ow
Inclusion of a CFF and a JSON file in the codebase for automated GitHub-Zenodo integration: https://wiki.osgeo.org/wiki/Persistent_identifiers(pid)#Howto_2

There's also relevant info in the Github docs: https://docs.github.com/en/repositories/archiving-a-github-repository/referencing-and-citing-content

This seems pretty straight forward with Zenodo, following the GH docs.
Do we want to allow the following access?

Should I go ahead and attempt to set this up, or maybe you want to do it @IvanSanchez?

@Malvoz I don't see any immediate benefit, so feel free to go ahead.

Ok, automatic preservation has been enabled:

Will be able to add a badge to the README (if desired) after next release.

Let's keep this open until we have the actual DOI though.

The following markdown points to the latest released version:
[![DOI](https://zenodo.org/badge/931135.svg)](https://zenodo.org/badge/latestdoi/931135)

Result:

7335490 is the Concept DOI (all versions) of the Leaflet repo, see https://help.zenodo.org/#versioning for more info. And here's the Zenodo record: https://zenodo.org/record/7335490.


Add basic Core Plugin

Just add basic Core Plugin, noting special.

merge so basic structure is ready


Feature/configuration data file

Updated README for configuration_data_file parameter and readability.

Coverage remained the same at 100.0% when pulling 31698f89c03c003456c4380f4ac9f6b82347771f on feature/configuration-data-file into 652c8d7fa8d0ce72367b634285eca0c973124856 on master.


fix (header): rustsec-2021-0078 deny plus sign in content-length

change of the content-length header parsing to use a parser that expects
the content-length content to be of type digits (u64)
Since Rust Rocket v0.4.x is still using the old hyper library, this is
important applications to parse the security audit.
BREAKING CHANGE: None, unless some systems rely on a security flaw in
hyper.

Thanks for the PR! However, the 0.10.x branch is no longer maintained, and doesn't do new releases. v0.11 was released in June 2017, and the final bug fix release for 0.10.x was 2019. I would recommend either using the newer async Rocket, or switching to something that is using a newer hyper.


I am getting this error from Server.py please update this script

Traceback (most recent call last):
File "server.py", line 68, in
reply = make_reply(message)
File "server.py", line 54, in make_reply
return reply
UnboundLocalError: local variable 'reply' referenced before assignment

Traceback (most recent call last):
File "server.py", line 59, in
updates = updates["result"]
KeyError: 'result'
I got this error


Add transaction details to transactions in wallet history

Upon clicking a transaction one should see some details to the transaction. There are different types of transactions for which a details view is required.

[ ] On chain transaction (potentially add a link to mempool)
[ ] Off-chain transaction (payment or received)

[ ] Invoice description (moved from #886)

[ ] Position transaction (open and close)
[ ] JIT Channel opening fee (potentially add a link to the funding transaction on mempool)
[ ] Order matching fee

Figma mock:
https://www.figma.com/file/Sr3SfZ46sZstKjSwftmTtc/10101-v1-(incl-bitcoin.design)?type=design&node-id=7375%3A45885&mode=design&t=tFOk1Qr2JvlNIaBY-1
E.g. like this
https://github.com/get10101/10101/assets/224613/1e989c69-6ba3-4c32-9117-f7f2ba850024

With reference to the 'fee' row in the lightning payment example - is it not the case that lightning fees are per-channel and not per-transaction?

With reference to the 'fee' row in the lightning payment example - is it not the case that lightning fees are per-channel and not per-transaction?

You are paying fees for outgoing transactions. The amount of fees is defined through the route (channels) you are using.

With reference to the 'fee' row in the lightning payment example - is it not the case that lightning fees are per-channel and not per-transaction?

You are paying fees for outgoing transactions. The amount of fees is defined through the route (channels) you are using.

Ah, I see, thanks!

Do we want to model other timestamps than just the time we 'first learned' about this payment? E.g invoice creation timestamp

With #1213, we will model all information required to fulfill this ticket. Now, onto prettifying it as per the Figma :)

Nit on figma: "you sent -1000" sats would imply that you received 1000 sats, wouldn't it? Maybe we can convey this in a different way?

Nit on figma: "you sent -1000" sats would imply that you received 1000 sats, wouldn't it? Maybe we can convey this in a different way?

Thought: we could have outgoing transactions have red amount text and incoming have green?


DefaultAzureCredential not behaving according to the docs

azure.identity:
1.7.0:
Linux 5.4.0-1083-azure # 87~18.04.1-Ubuntu SMP:
3.8.5:

Describe the bug
In a VM deployed within AzureML, I'm trying to run a Python program from the command line, and authenticate using DefaultAzureCredential(). The docs for this class state that "When an access token is needed, it requests one using these identities in turn, stopping when one provides a token" and provides a list of six different authentication methods. However, it fails after two and then gives up. This is plainly not the behaviour which the linked page describes.
To Reproduce
Steps to reproduce the behavior:
Python 3.8.5 (default, Sep  4 2020, 07:30:14)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from azure.identity import DefaultAzureCredential
>>> DefaultAzureCredential().get_token()
DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
        EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
Visit https://aka.ms/azsdk/python/identity/environmentcredential/troubleshoot to troubleshoot.this issue.
        ManagedIdentityCredential: "get_token" requires at least one scope
To mitigate this issue, please refer to the troubleshooting guidelines here at https://aka.ms/azsdk/python/identity/defaultazurecredential/troubleshoot.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/identity/_credentials/default.py", line 172, in get_token
    return super(DefaultAzureCredential, self).get_token(*scopes, **kwargs)
  File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azure/identity/_credentials/chained.py", line 108, in get_token
    raise ClientAuthenticationError(message=message)
azure.core.exceptions.ClientAuthenticationError: DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
        EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
Visit https://aka.ms/azsdk/python/identity/environmentcredential/troubleshoot to troubleshoot.this issue.
        ManagedIdentityCredential: "get_token" requires at least one scope
To mitigate this issue, please refer to the troubleshooting guidelines here at https://aka.ms/azsdk/python/identity/defaultazurecredential/troubleshoot.

However:
DefaultAzureCredential(exclude_managed_identity_credential=True)

is successful (it retrieves the CLI credential, which is the penultimate one listed in the doc.
Expected behavior
The constructor should behave as described - each method should be tried in turn and if it fails, go onto the next. Having to fiddle around with constructor arguments to DefaultAzureCredential() dependent on which machine is in use defeats the point.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Note, having just created a fresh conda environment and installed all new packages, this does appear to be fixed in 1.10.0 at least.

Thanks for your issue @riedgar-ms. @xiangyan99 to confirm the behavior.


Feature request: Add option for third address

A third address option would allows for a setup as follows:

NAME
Contact details
Mailing address
Portfolio link
Body

This should be very simple but ill need to have a play around to grok the .cls file
Is this something you would be interested in?

While I occasionally merge PRs that seem to fix issues that others have identified, I view this template as a "complete" project, in that I don't actively use or maintain it anymore.
I'm happy to point folks to forks of this template or to other templates. Feel free to link to a fork if you make the changes needed for this.


feature(step2)support nereids load job schedule

Proposed changes
We will  Integrate new load job manager into  new job scheduling framework so that the insert into task can be scheduled after the broker load sql  is converted to insert into TVF(table value function) sql.
issue: https://github.com/apache/doris/issues/24221
Now support:

load data by tvf insert into sql, but just for simple load（columns need to be defined in the table）
show load stmt

job id, label name, job state, time info
simple progress

cancel load from db
support that enable new load through Config.enable_nereids_load
can replay job after restarting doris

TODO:

support partition insert job
support show statistics from BE
support multiple task and collect task statistic
support transactional task
need add ut case

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall

run p0

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

run p0

run clickbench

run pipelinex_p0

run buildall

run buildall

run buildall


Uncaught TypeError: Cannot read property 'initialize' of undefined

Getting the error in subject when trying to draw a chart using Keen.js 3.2.4
The same queries return just fine when being run using a client.run function (which I believe makes the queries valid as they return a normal result)
An example:
var client, config, analysisType, params, query;

client = new Keen(projectId, readKey);
config = { chartType: 'columnchart', title: 'Custom Chart' };
analysisType = 'count';
params = {
  eventCollection: "Session.Begin",
  // etc ...
};

query = new Keen.Query(analysisType, params);
target = document.getElementById('visualization'); // veriied, this exists uplon DOM load

client.draw(query, target, config);

I ran out of ideas on how to debug the issue. Any ideas? Thank you in advance.

I stumbled upon the same problem, can't seem to fix it.

@liquid @robertvanhoesel try changing the new Keen(...) config to this:
client = new Keen({
  projectId: "PROJECT_ID",
  readKey: "READ_KEY"
});

@dustinlarimer that's exactly how I have it right now. Even when I copy the code as mentioned in https://github.com/keen/keen-js/blob/master/docs/visualization.md I get the Uncaught TypeError.

@robertvanhoesel hmm, ok that's strange. Sorry to hear this has snagged ya!
Is this code executed in the Keen.ready(function(){ ... }) wrapper? This ensures the Google Charts lib is loaded and ready. This was missing in a few places from the docs until earlier this morning.
Also, can you share which line of the lib is throwing the error?
Here's a working jsFiddle that seems to be fairly similar to what you're attempting here: http://jsfiddle.net/keen/keux2ry5/
I would be happy to chat 1:1 over email or a hangout, if that's easier<EMAIL_ADDRESS>Perhaps we can set up a quick jsFiddle as well to help debug in a single place?

@dustinlarimer I got it to work after comparing our code. I was using chartType: "area" where this should have been areachart. Been looking at the wrong places to fix it all this time. Thanks, and keep up the awesome work!

@robertvanhoesel awesome! glad you got it running :)
@liquid did any of the last few messages on this thread help?

@dustinlarimer i haven't had the time to look into this possible solution as the user story i'm currently working on has been put on hold. i'll take a look soon tho. thanks for the heads up. :+1:

Closing for now, let me know if this issue persists!


Adding tarfile member sanitization to extractall()

From https://github.com/nodejs/node/pull/44823:

Patching CVE-2007-4559
Hi, we are security researchers from the Advanced Research Center at Trellix. We have began a campaign to patch a widespread bug named CVE-2007-4559. CVE-2007-4559 is a 15 year old bug in the Python tarfile package. By using extract() or extractall() on a tarfile object without sanitizing input, a maliciously crafted .tar file could perform a directory path traversal attack. We found at least one unsantized extractall() in your codebase and are providing a patch for you via pull request. The patch essentially checks to see if all tarfile members will be extracted safely and throws an exception otherwise. We encourage you to use this patch or your own solution to secure against CVE-2007-4559. Further technical information about the vulnerability can be found in this blog.
If you have further questions you may contact us through this projects lead researcher Kasimir Schulz.

@TrellixVulnTeam

Maybe I'm missing something but this change breaks the script on my mac:
$ ./update-gyp.py v0.14.0
Downloading<EMAIL_ADDRESS>into temporary directory...
From: https://github.com/nodejs/gyp-next/archive/v0.14.0.tar.gz
Unzipping...
Traceback (most recent call last):
  File "/Users/targos/git/nodejs/node-gyp/./update-gyp.py", line 54, in <module>
    safe_extract(tar_ref, unzip_target)
  File "/Users/targos/git/nodejs/node-gyp/./update-gyp.py", line 52, in safe_extract
    tar.extractall(path, members, numeric_owner)
TypeError: TarFile.extractall() takes from 1 to 3 positional arguments but 4 were given

I submitted another PR that changed numeric_owner as a keyword argument. That will support Python 3.5 or higher.

I submitted another PR that changed numeric_owner as a keyword argument. That will support Python 3.5 or higher.

@targos python --version ?

@cclauss
$ python --version
Python 3.10.7


Add executable flag to the kubectl infer versioning method downloader

Using ubuntu 16.04
Vscode
Version: 1.32.1
Commit: 05f146c7a8f7f78e80261aa3b2a2e642586f9eb3
Date: 2019-03-08T00:46:10.898Z
Electron: 3.1.3
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-46-generic

With infer kubectl versioning:

vs-kubernetes.kubectlVersioning - By default, the extension uses the kubectl binary you provide on the system PATH or in the vs-kubernetes.kubectl-path configuration setting. If you set this setting to infer, then for each cluster the extension will attempt to identify the cluster version and download a compatible kubectl binary. This improves compatibility if you have multiple Kubernetes versions in play, but may be slower. IMPORTANT: Even if this setting is infer, you need a 'bootstrap' copy of kubectl on your PATH or at the vs-kubernetes.kubectl-path location - we need this to find out the server version so we know which version of kubectl to download! Also note that this setting is checked only when the extension loads; if you change it, you must reload the extension.

When connecting to a kubernetes cluster, the "downloading ..." popup appeared. Went fine.
Then I've received an error:
/bin/sh: 1: /home/username/.vs-kubernetes/tools/kubectl/autoversion/v1.13.4/linux-amd64/kubectl: Permission denied

The reason is that the downloaded executable is not executable:
$ ls -l ~/.vs-kubernetes/tools/kubectl/autoversion/v1.13.4/linux-amd64/kubectl
-rw-rw-r-- 1 user user 39251424 Mar 12 00:24 ~/.vs-kubernetes/tools/kubectl/autoversion/v1.13.4/linux-amd64/kubectl

So a chmod +x would be a nice addition to the download process.

Aargh!  Thanks for reporting this... this is what I get for living almost entirely on Windows.  I'll get this fixed pronto - thanks for your patience and for taking the time to let me know.

Thanks again for the bug report, @Petrox - a fix should land in the marketplace in the next half an hour or so.  And apologies for the inconvenience.


Use dockerize in UI travis script

We should use dockerize for the UI travis.yml script instead of sleeping 10 seconds.
┆Issue is synchronized with this Jira Story
┆Issue Type: Story
┆Issue Number: DOCK-464

https://github.com/dockstore/dockstore-ui2/blob/develop/scripts/wait-for.sh


Specialize GeItem from shape variable

relates to: #289
When kShape tagged ChxVMVar is referenced as chainerx::Array it converts chainerx::Shape internally.
Though I'm not sure whether some member variable needs to be qualified mutable.
Only supports GenericGetItem op in this PR.

I've tried and failed the new return and argument type when writing #289 but I've succeeded this time!


Add specific code for dyads to take 2 args instead of stack

This will allow dyads to be implemented more easily, without manually writing code for popping.
This PR also moves TestHelper into the app folder (I know, I know, this is bad practice and I should've made another PR but I'm lazy).

@cgccuser https://github.com/Vyxal/Myxal/commit/be75206f25bbb0b879506f567c736b91055636c7


feat: 25 trees of each artbot in seed.sql

I added 25 trees of each artbot to seed.sql. Fetched the trees with:
WITH ranked_trees AS (
  SELECT
    *,
    ROW_NUMBER() OVER (PARTITION BY artbot ORDER BY artbot) AS row_num
  FROM trees
)
SELECT "id", "lat", "lng", "artdtsch", "artbot", "gattungdeutsch", "gattung", "strname", "hausnr", "zusatz", "pflanzjahr", "standalter", "kronedurch", "stammumfg", "type", "baumhoehe", "bezirk", "eigentuemer", "adopted", "watered", "radolan_sum", "radolan_days", "geom", "standortnr", "kennzeich", "caretaker", "gmlid"
FROM ranked_trees
WHERE row_num <= 25
ORDER BY artbot;

Ticket: https://app.asana.com/0/1204152181784036/1205697228941634


Proposal for Improving the Binding Generation Process for Windows Headers with bindgen

Hello,
I would like to submit this proposal for enhancing the Rust binding generation process for Windows headers. Currently, the process involves using bindgen multiple times to create separate Rust modules from different header files. This method leads to significant code duplication, as many headers share common functions and structures.
Proposal:
My proposal is to optimize this process by using bindgen once with a complete list of Windows headers, and then segmenting the generated binding file into multiple Rust sub-modules. This approach aims to reduce code duplication and improve the overall efficiency of the process.
To facilitate this segmentation, I suggest developing a function that analyzes the generated binding file, constructs a hashmap linking each element (function, variable, etc.) to its original header, and uses this information to appropriately divide the file into sub-modules. Additionally, this function could identify elements that bindgen was unable to convert, thus maintaining a tracking file for developers, indicating areas that require manual attention or implementation.
Personal Context:
I would like to note that I am a beginner in Rust and system programming. Therefore, it's possible that my proposal might not fully align with the best practices or current standards of the project. If that's the case, I apologize in advance for any inconvenience caused and would be grateful for any advice or suggestions to improve my proposal.
Thank you for your consideration and time.
Best regards

Hi @rthidfrev ! While the current process does have bindgen do multiple passes, it doesnt create a seperate rust module for each header file processed. Could you point to some specific examples of the duplicates you noticed?
Right now, the bindings generated are broken down into internal modules for types, constants, and functions; so there shouldn't be any dupes rn. However, I do have some WIP work to decouple some of the larger modules in the wdk to seperate modules gated by Cargo Features, although this work is still on my fork and not in mainline yet. That WIP work is currently using a simpler approach of using bindgen's allowlisting/blocklisting on parts of the path the headers are in.

Hello,
Thank you for your response and the clarifications regarding the current process. Regarding my initial concern about duplication, let me clarify with a specific example. For instance, in the generated bindings, such as those in ntddk.rs, there are functions like KeGetCurrentIrql, originally defined in wdm.h. If bindings are generated for other headers that potentially include wdm.h, this could lead to duplication of some functions across different Rust modules. While this can be avoided with allowlists/blocklists, it represents a significant amount of work.
My initial proposal aimed to optimize this process. However, after discovering the existence of existing bindings for WDK, available at https://microsoft.github.io/windows-docs-rs/doc/windows/Wdk/index.html, generated through metadata via https://github.com/microsoft/win32metadata and https://github.com/microsoft/wdkmetadata, I question the necessity of generating new bindings with bindgen. However, given the lack of metadata for WDF, we should either develop a base similar to wdkmetadata or win32metadata to obtain metadata for WDF, or continue using bindgen.
Consequently, I would like to refocus my proposal solely on the development of bindings for WDF. Creating a separate crate for WDF bindings with bindgen could be a simpler and more direct solution, avoiding the complexity of generating metadata like in projects such as wdkmetadata or win32metadata. This crate could be structured into modules, with features like Wdf_kmdf, Wdf_umdf, Wdf_DMA, etc.
To achieve this, we could use libclang to retrieve the Abstract Syntax Tree and generate specific allowlists/blocklists for each header. This would enable bindgen to generate bindings specific to the module we want to create, without worrying about duplication. For example, the wdf_io module could be based solely on elements defined in "wdfrequest.h", "wdfiotarget.h", and "wdfio.h".
I am not certain about the technical feasibility of this approach or its relevance in the current project context, and I would appreciate any feedback or suggestions on this matter.
Thank you for considering my proposal and for the time you have taken to review it.

Regarding my initial concern about duplication, let me clarify with a specific example. For instance, in the generated bindings, such as those in ntddk.rs, there are functions like KeGetCurrentIrql, originally defined in wdm.h. If bindings are generated for other headers that potentially include wdm.h, this could lead to duplication of some functions across different Rust modules. While this can be avoided with allowlists/blocklists, it represents a significant amount of work.

Allowlist/Blocklist should not be much because lists of these headers are already required to further increase API coverage gated by cargo features by introducing one new generated module for each new feature. I will probably be using this approach soon to expand the api coverage of WDR.

My initial proposal aimed to optimize this process. However, after discovering the existence of existing bindings for WDK, available at https://microsoft.github.io/windows-docs-rs/doc/windows/Wdk/index.html, generated through metadata via https://github.com/microsoft/win32metadata and https://github.com/microsoft/wdkmetadata, I question the necessity of generating new bindings with bindgen. However, given the lack of metadata for WDF, we should either develop a base similar to wdkmetadata or win32metadata to obtain metadata for WDF, or continue using bindgen.

We are aware of those projects and work with the people running them, and we have different goal as outlined in https://github.com/microsoft/windows-drivers-rs/discussions/20. Our eventual goal is unification by swapping the rust apis to call bindings provided by the metadata, but there are many blockers in the metadata generation process so that is likely to be very far down the line.

Creating a separate crate for WDF bindings with bindgen could be a simpler and more direct solution, avoiding the complexity of generating metadata like in projects such as wdkmetadata or win32metadata. This crate could be structured into modules, with features like Wdf_kmdf, Wdf_umdf, Wdf_DMA, etc.

This is similar to work that we are already planning on doing via features, as I alluded to above :)

To achieve this, we could use libclang to retrieve the Abstract Syntax Tree and generate specific allowlists/blocklists for each header. This would enable bindgen to generate bindings specific to the module we want to create, without worrying about duplication. For example, the wdf_io module could be based solely on elements defined in "wdfrequest.h", "wdfiotarget.h", and "wdfio.h".

Based off some experimenting with bindgen's allowlist/blocklisting, it seems like clang has already resolved the header include to a full path by the time bindgen's allow/blocklisting apis are processed so its possible to allow/block based on the folders in the path. I fail to see how the added complexity of allow/blocklisting individual items in each header, rather than just allow/blocklisting headers or folders, adds any benefit. Am i missing something in your approach?


7FD7G

[]()

This darn thing won't tolerate

[]()

7FD7G

@BertAnthonyRochester -
Thank you for your question.
Can you please share with us the URL of the document that you are having issues with?
Please note that we scope issues on this repo to feedback related to the docs. If you have a product question, please post it on Microsoft QnA or Stack Overflow. Thank you for your understanding.

@BertAnthonyRochester -
Thank you for your question.
Can you please share with us the URL of the document that you are having issues with?
Please note that we scope issues on this repo to feedback related to the docs. If you have a product question, please post it on Microsoft QnA or Stack Overflow. Thank you for your understanding.

@BertAnthonyRochester -
Since we have not heard back from you we will now proceed to close this thread.
However if you can share additional information regarding the documentation you are referring and circle back on this thread , we will gladly reopen the issue and continue the discussion. Thank you.


How to handle hashes in URL?

A lot of OAuth based callback urls will take the form of:
http://site.com/login#state=123&code=123
Is there any way to access that hash? Would be great if props.url had a .hash property (alongside .query)
Or is there an easier way to get this?

@astanciu there is one major problem here. Fragments (#) are unfortunately never sent to the server. So if you'd do a refresh you would lose the state. There is currently no property available to get the hash. Though you could do something like this:
  static getInitialProps ({ req }) {
    let hash = ''
    if(!req)
      hash = window.location.hash
    }

    return { hash }
  }

Then again, this will not get the hash when server side rendering.
@arunoda can you verify this? getInitialProps is only called once if I remember correctly, either server or client. So we can't implement this correctly.

Browsers, by design, don't include URL hash in HTTP requests, so it is simply impossible to handle on the server side. I would just use componentDidMount instead of getInitialProps.

@frol you're right, using componentDidMount is way better. Since it is called on frontend render, thanks ❤


NBadge content color

This function solves the problem (这个功能解决的问题)
I used NBadge component and ran into unexpected behavior
Color of Badge's content is red by default, that unseen from the docs
Can we create prop for text color or at least add demo case in docs?

Expected API (期望的 API)
Add prop text/text-color/text-type for text color or add demo case in docs

add style for the content


ElegantAlertDialogs

Hey,
I've been working with your plugin on a recent project, and the codebase has been a fantastic learning resource. To contribute further, I've developed a cross-platform alert dialog functionality that I believe would be valuable.
While I've thoroughly tested it on Android, I'm confident it will work seamlessly on iOS as well. Unfortunately, I currently lack the resources to test on web or desktop platforms. However, if you consider my pull request, I'd be happy to update the documentation (README) and example application to reflect the new functionality.
Changelog:

added new ElegantAlertDialog
improved quality of life by consolidating imports into barrel files.

Success Dialog:

Info Dialog:

Error Dialog:

@SumeetKumarMulay I've read your message and honestly this means lot to me thanks a lot for you contribution as well as integrating elegant_notification on your project can't wait to see your app live.
As you can see the package name indicates the purpose of the widget is to display a quick notification to users, but an elegant_dialog can be a perfect child package of this package.

@SumeetKumarMulay here's the new package repo I'm happy if you contribute to it with your ideas
https://github.com/koukibadr/ElegantAlertDialog

@koukibadr Thank you for your consideration. I will port the PR to the new repo and update the package ASAP.


The CLI does not display the proper message with a list_users test fails

For example, if the store.fga.yaml file has:
model: |
   model
     schema 1.1
   type user
   type organization
      relations
        define member : [user]
tuples:
    - user: user:anne
      relation: member
      object: organization:acme

tests:
    - name: Test for basic example
      list_users:
        - object: organization:acme
          user_filter:
            - type: user
          assertions:
            member:
              users: []

When runningfga model test --tests store.fga.yaml you get:
ⅹ ListUsers(object={Type:organization Id:acme},relation=member,user_filter={Type:user Relation:<nil>}): expected={Users:[]}, got=N/A

You should get something like:
ⅹ ListUsers(object={Type:organization Id:acme},relation=member,user_filter={Type:user Relation:<nil>}): expected={Users:[]}, got={Users:[user:anne}]

ⅹ ListUsers(object={Type:feature Id:issues},relation=can_access,user_filter={Type:user Relation:}): expected={Users:[user:charles user:beth]}, got=N/A

It tried building the CLI, and then I get the proper message:
ⅹ ListUsers(object={Type:organization Id:acme},relation=member,user_filter={Type:user Relation:<nil>}): expected={Users:[] ExcludedUsers:[]}, got={Users:[user:anne] ExcludedUsers:[]}

The one that wasn't returning the proper error is:
fga version v`0.6.0` (commit: `34fa32f1af6772b3ce3db5ea700699f50f90652e`, date: `2024-09-06T15:55:24Z`)


Capitalize first letter in favorites too

The first letter was not capitalized before in the favorites menu. It is now.

It looks like tests have to be adapted.


Link to all the sample is broken

Link to HTTP data Downloader is broken and also others.

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

ID: 389f4119-1f40-d14d-273d-970828829aba
Version Independent ID: 20c91bc2-121f-c753-80ff-d1c490e03e1d
Content: Use custom activities in an Azure Data Factory pipeline
Content Source: articles/data-factory/v1/data-factory-use-custom-activities.md
Service: data-factory
GitHub Login: @nabhishek
Microsoft Alias: abnarain

@rajukum Thanks for the feedback and bringing this to our notice. At this time we are reviewing the feedback and provide an update as appropriate.

@rajukum The PR for the fix has been created and it will be merged soon. Thanks again for pointing this out, I am closing the issue based on this update, please let us know if there is something else that we can help you with.


Create Event component

Overview
The Event component is a simple function component. It takes in props of type EventProps, which includes title, description, start, end, url, and email as required properties.
The component renders an event container with a title, event details (including formatted start and end times), event description, and event footer with buttons for URL and email. The formatTime function is used to format the start and end times to a localized string.
resolves #7
Thought Process
I was thinking ahead and gave most elements a class name for easier selecting when it comes to styling.
I initially had 2 separate functions for formatting the start and end time props. I figured since both of those functions were exactly the same, I could write a single function that produces the same functionality.
I'm wondering how this component will be used to render props that it receives from a backend.
Testing Steps

Run npm start in the terminal
In src/App.tsx, you can change the properties

Risks
The Event component is a straightforward and relatively simple component without any obvious risks. However, it's worth noting that there are some potential risks that could be present in the implementation or usage of the component:
The component takes in start and end props of type Date. However, JavaScript Date objects can be tricky to work with due to their behavior around time zones, daylight saving time, and other date-related issues. Care should be taken to ensure proper handling of Date objects to avoid potential bugs related to date and time calculations or comparisons.

A few minor points, otherwise, lgtm!


Mastodon database growth research and maintenance

Size has grown over 60% of the 60 GB instance.
Need to check what's happening and if this is normal and what can be done if it isn't.

Managed to use pg_repack to reduce the size of the db.
Also updating the temp_file_limit parameter to prevent future growth.


[fix](tablet invert index) fix tablet invert index leaky caused by auto partition

BUG:
When creating a partition,   it will call InternalCatalog.createPartitionWithIndices  and the partition's tablet will add to tablet invert index.  And drop or discard a partition, need to clean its tablet in tablet invert index.
We found a issue oneline: user create a table with auto partition, they concurrent insert data, and then  concurrent create partitions with the same partition name.  Then the later created partition will be drop.  But it forget to clear the related tablets in tablet invert index.
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run feut


Make @EqualsAndHashCode(callSuper = true) default

I alway revrite @EqualsAndHashCode(callSuper = false) generated by intention on @Data annotation on a POJO with a superclass to callSuper = true. I think its the more natural case than the opposite.
Would you consider changing the default settings for this intention, please?

Good point!

Should be available in the next release!

Thanks!

Pluginversion with changes for this issue was released today


WIP: ContentPresenter improvenments

With this PR i introduce helper methods for arrange and measure of a single child. This helps us to improve code share and makes it easier to maintain.
In addition i have checked several default templates that use a ContentPresenter and added some bindings to Vertical/HorizontalContentAlignment.
This is not complete and probably needs some discussion whether this is a wanted change.

Should i split a PR in smaller peaces to make it easier for review? For excample my changes to arrange and measure in one PR and the rest in the other? Still new to this.

Child_Arrange_With_Zero_Height_When_Padding_Height_Greater_Than_Child_Height is failing for me but i dont understand why. A uniform padding of 32 should end up at (32,32) why is it compared to (48,48) or am i wrong?


Does it work with Windows 10 1903?

Did you try? For me it works fine.

The first example (code based) in the docs worked for me but not the ones involving XAML.
I'm using PowerShell but it should work.
Here's my code
Add-Type –assemblyName PresentationFramework, PresentationCore, WindowsBase
Add-Type -Path Z:\Dropbox\PowerShell\Hardcodet.NotifyIcon.Wpf.1.0.8.nupkg\lib\net45\Hardcodet.Wpf.TaskbarNotification.dll -PassThru

[XML]$xaml =
@'
<Window

  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

  xmlns:tb="http://www.hardcodet.net/taskbar"

>
  <Grid>

    <!--
      in order to create a NotifyIcon, all you need is the
      namespace declaration (see above on line 4) and a simple
      declaration
    -->
    <tb:TaskbarIcon

      IconSource="/Icons/Error.ico"

      ToolTipText="hello world" />

  </Grid>
</Window>
'@

$reader=New-Object System.Xml.XmlNodeReader $xaml
$Form=[Windows.Markup.XamlReader]::Load($reader)

$Form.ShowDialog() | Out-Null

Here's the error message I get :
`

  ToolTipText="hello world" />

                          ~~~~

The string is missing the terminator: ".
+ CategoryInfo          : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
`

Closing this, as I cannot help you with this, and besides there hasn't been any activity since my last remark.


BadgeIcon Tabs

How can I add an badge icon to  an tab item header?
like this:

Same question here

I would love to have an answer to that question

I would also love to have an answer to the question.
Would very much appreciate if some one can give an idea to implement that.

Hi,
I have extended it to include badges. The feature is very basic and I am only 2 month old swift developer :(. So, code is lame. I mean I only did what I need. Its static for the badge color, font, size of badge. Most importantly, I am adding it just at the right side of each menuItemLabel. However, would love to see its added after calculating the menuItem text size.
What I did:

Added a badgeLabel in the MenuItemView in Source File
Added an array of string for passing badgeText from base view controller. ( As viewcontrollers are passed using an array of ViewControllers and there is no way to attach badge Text there.)
If the badgeText is EMPTY (""), setting badgeLable backgournd to CLEAR color when configuring the MenuView in SourceFile
Modified the init and convenience methods in Source File

Let me know if you need code. I will try to create a branch next week and commit.
Regards,
Altaf

Hi Dude,
Please send me the source code if possible.

Hi,
It will be helpful if we refresh the badge value without loading the childview controllers.

@Dharani1984 ,
I will make the code available to you next week. Bit busy with something else.
Regards,
Altaf

Great bro. Very thanks. You could send later next week no problem.

Hi Bro,
Could you send the source code for Badge icon ?

That is cool, Thank you.
Regards.

The best way:

public let menuScrollView = UIScrollView() in CAPSPageMenu.swift
open class MenuItemView: UIView in MenuItemView.swift
Add label in menuScrollView

for (index, item) in pageMenu.menuScrollView.subviews.enumerated() where item is MenuItemView {
    let view = UIView()
    view.backgroundColor = UIColor.hqRed()
    view.layer.cornerRadius = 6.0

    item.addSubview(view)
    view.snp.makeConstraints({ (make) in
        make.leading.equalTo(item.snp.trailing)
        make.centerY.equalTo(item.snp.top).offset(10)
    })

    let label = UILabel()
    view.addSubview(label)
    label.textColor = .white
    label.font = UIFont(name: "Arboria-Medium", size: 10)
    label.superview?.isHidden = !value[index].freshCount.boolValue
    label.text = String(value[index].freshCount)

    label.snp.makeConstraints({ (make) in
        make.leading.equalTo(3)
        make.trailing.equalTo(-3)
        make.top.equalTo(1)
        make.bottom.equalTo(-1)
    })
    self.badgeArray.append(label)
}


Feature/some c11 improvements

In this PR replaced the old functions to get the number of possible threads with c++11 ones

PR #123 should be merged before this one.

This PR has merge conflicts.  The core idea is currently in src/common/os.cc, so I'm going to close this PR.
uint hardware_concurrency() {
    return std::thread::hardware_concurrency();
}


add notice for users don't printf in func init()

if use a printf in func init(){}
This may cause the upgrade check to fail！
user will got sanity check failed
eg:
add
func init() {
	fmt.Println("hahhahahhahahahaaha")
}

to github.com/jpillora/overseer/example/main.go
bogon:example qiantao$ ./example.sh
BUILT APP (1)
RUNNING APP
hahhahahhahahahaaha
2019/03/22 17:22:13 [overseer master] run
2019/03/22 17:22:13 [overseer master] setupSignalling
2019/03/22 17:22:13 [overseer master] checking for updates...
2019/03/22 17:22:13 [overseer master] no updates
2019/03/22 17:22:13 [overseer master] starting /Users/qiantao/work/GoTestSrc/src/github.com/jpillora/overseer/example/my_app
hahhahahhahahahaaha
2019/03/22 17:22:13 [overseer slave#1] run
2019/03/22 17:22:13 [overseer slave#1] slave wait sp.Config.RestartSignal
2019/03/22 17:22:13 [overseer slave#1] start program
app#1 start
app#1 BuildDate=20190322_172211
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) listening...
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
BUILT APP (2)
2019/03/22 17:22:18 [overseer master] streaming update...
2019/03/22 17:22:18 [overseer master] sanity check failed
2019/03/22 17:22:18 [overseer master] checking for updates...
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
2019/03/22 17:22:19 [overseer master] no updates
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=5000000000)
BUILT APP (3)
app#1 work
2019/03/22 17:22:23 [overseer master] streaming update...
2019/03/22 17:22:23 [overseer master] sanity check failed
2019/03/22 17:22:23 [overseer master] checking for updates...
2019/03/22 17:22:24 [overseer master] no updates
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=5000000000)
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
2019/03/22 17:22:27 [overseer master] proxy signal (terminated)
2019/03/22 17:22:27 [overseer master] prog exited with -1

I think the sanity check function should instead look for a string
contained in the output. Then it would ignore any extra strings found.
On Fri, 22 Mar 2019 at 20:27, guhan121<EMAIL_ADDRESS>wrote:

if use a printf in func init(){}
This may cause the upgrade check to fail！
user will got sanity check failed
eg:
add
func init() {
fmt.Println("hahhahahhahahahaaha")
}
to github.com/jpillora/overseer/example/main.go
bogon:example qiantao$ ./example.sh
BUILT APP (1)
RUNNING APP
hahhahahhahahahaaha
2019/03/22 17:22:13 [overseer master] run
2019/03/22 17:22:13 [overseer master] setupSignalling
2019/03/22 17:22:13 [overseer master] checking for updates...
2019/03/22 17:22:13 [overseer master] no updates
2019/03/22 17:22:13 [overseer master] starting /Users/qiantao/work/GoTestSrc/src/github.com/jpillora/overseer/example/my_app
hahhahahhahahahaaha
2019/03/22 17:22:13 [overseer slave#1] run
2019/03/22 17:22:13 [overseer slave#1] slave wait sp.Config.RestartSignal
2019/03/22 17:22:13 [overseer slave#1] start program
app#1 start
app#1 BuildDate=20190322_172211
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) listening...
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
BUILT APP (2)
2019/03/22 17:22:18 [overseer master] streaming update...
2019/03/22 17:22:18 [overseer master] sanity check failed
2019/03/22 17:22:18 [overseer master] checking for updates...
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
2019/03/22 17:22:19 [overseer master] no updates
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=5000000000)
BUILT APP (3)
app#1 work
2019/03/22 17:22:23 [overseer master] streaming update...
2019/03/22 17:22:23 [overseer master] sanity check failed
2019/03/22 17:22:23 [overseer master] checking for updates...
2019/03/22 17:22:24 [overseer master] no updates
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=5000000000)
app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0)
app#1 work
2019/03/22 17:22:27 [overseer master] proxy signal (terminated)
2019/03/22 17:22:27 [overseer master] prog exited with -1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jpillora/overseer/issues/30, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAmr8woRDmNoPcSLpYZDlpFjff7QxzxKks5vZKIUgaJpZM4cDKJx
.

always got "sanity check failed" before remove fmt.Printf in the Init func.
thanks, guhan121

我认为健全性检查函数应该查找输出中包含的字符串。然后它会忽略找到的任何额外的字符串。
…
On Fri, 22 Mar 2019 at 20:27, guhan121 @.***> wrote: if use a printf in func init(){} This may cause the upgrade check to fail！ user will got sanity check failed eg: add func init() { fmt.Println("hahhahahhahahahaaha") } to github.com/jpillora/overseer/example/main.go bogon:example qiantao$ ./example.sh BUILT APP (1) RUNNING APP hahhahahhahahahaaha 2019/03/22 17:22:13 [overseer master] run 2019/03/22 17:22:13 [overseer master] setupSignalling 2019/03/22 17:22:13 [overseer master] checking for updates... 2019/03/22 17:22:13 [overseer master] no updates 2019/03/22 17:22:13 [overseer master] starting /Users/qiantao/work/GoTestSrc/src/github.com/jpillora/overseer/example/my_app hahhahahhahahahaaha 2019/03/22 17:22:13 [overseer slave#1] run 2019/03/22 17:22:13 [overseer slave#1] slave wait sp.Config.RestartSignal 2019/03/22 17:22:13 [overseer slave#1] start program app#1 start app#1 BuildDate=20190322_172211 app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) listening... app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0) app#1 work app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0) app#1 work BUILT APP (2) 2019/03/22 17:22:18 [overseer master] streaming update... 2019/03/22 17:22:18 [overseer master] sanity check failed 2019/03/22 17:22:18 [overseer master] checking for updates... app#1 work app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0) 2019/03/22 17:22:19 [overseer master] no updates app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0) app#1 work app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=5000000000) BUILT APP (3) app#1 work 2019/03/22 17:22:23 [overseer master] streaming update... 2019/03/22 17:22:23 [overseer master] sanity check failed 2019/03/22 17:22:23 [overseer master] checking for updates... 2019/03/22 17:22:24 [overseer master] no updates app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0) app#1 work app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0) app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=5000000000) app#1 (45fb899a1abd7bd65c698fbcbc6525bade97932f) says hello (d=0) app#1 work 2019/03/22 17:22:27 [overseer master] proxy signal (terminated) 2019/03/22 17:22:27 [overseer master] prog exited with -1 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#30>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr8woRDmNoPcSLpYZDlpFjff7QxzxKks5vZKIUgaJpZM4cDKJx .
I fixed it.
see mr


Gauge walks

This PR generalizes the tree_orthogonalize code to tree_gauge code which is based around a generic algorithm which walks through a series of edges of the ITensorNetwork and performs some factorization which can be specified with an alg::Algorithm argument.
This means that we can support other gauges such as interpolative with very minimal additional code (just one function which tells you how to do the edge factorizations).

Looks like a nice improvement. @JoeyT1994 will you be updating the ITensorTCI.jl PR to use a similar gauge_walk / gauge_edge / Algorithm design?

Yes, the idea will be that I can then simplify that PR by removing most functions from the interpolative_gauge.jl file other than the function that tells you how to do the interpolative_decomposition on an edge of a tensor network.

Looks great, thanks! This will be very nice to have.


Compare with null instead of strict with undefined

@Kikobeats hey! I'd love to make you a collaborator so you can merge this and other PRs and roll a new release! Please signup over at https://github.com/KyleAMathews/deepmerge/issues/25 and let's make this happen!

This change causes some tests to break.  What's the motivation for this change?  Overwriting null values in the target would be a breaking change.  Is this a common use case?

Actually I didn't remember... but basically compare with == null is the way for determinate if somehting exists (it means, if the value is null or undefined, it doesn't exist)
function exists(v) { return v != null }

I think that I tried to express something like, but if this breaks tests (how do you know that breaks tests if travis integration isn't enabled? :P) feel free to close that.

I checked out your branch locally and ran the tests.
I know what the == null check does, matching both null and undefined - but those are two different values, so starting to treat them both as the same thing in this case could have unforeseen consequences.
At the very least we should probably have a couple new tests that show off the problems that this would solve.

oh, by the way, I know the PR was originally opened a while ago, so you may not remember the reasoning that prompted this change - no big deal, you can feel free to close this PR and open another issue or PR later if you remember the use case that needed this change. <3


Add basestation, microcontroller and rem to monorepo

The idea was indeed to add everything into one repository. Since submodules are just annoying.
But we eventually decided that having rem as a submodule (and the others as separate repositories) was yet still the better option. Since they didn't have anything else related to one another

Ah check, in that case I will close it


AI wood buying problem

If an AI is subject to a lot of enemy raiding, from knights for example, I have noticed that eventually they don't rebuild their farms, mines or quarries, even if there is a long gap between raids or even if the enemy who is raiding leaves them alone and moves on raid another enemy. Even if they have money to buy wood, or loads of stone in their stockpile to sell and buy wood to rebuild their economic buildings, they don't do so.
Instead they seem to prioritise building a woodcutters hut if there is still wood on the map, and think that is how to get back the wood to rebuild buildings. Unfortunately though, as often happens late game  that the only wood left is in a heavily contested region, they won't be able to rebuild anything, as their woodcutters will keep getting killed, often meaning there is an area of oasis grass, stone, and iron around the AIs castle with nothing being built on it, leading to imminent economic collapse for the AI and an easy win for their enemy.
I propose that if the AI doesn't get wood in a certain amount of time from woodcutters huts to replace destroyed economic buildings that they will buy wood and rebuild the buildings.

Does the AI really have enough gold to buy the wood? Does it have enough food, or does it waste its money on that?
The AI has to buy +2 wood now, which is 4 gold more that is required. Can make a huge difference. (If this is activated in the UCP)

I saw Emir recently late game (after his industries were destroyed by Frederick's knights) still have loads of stone in his stockpile and he didn't sell any of it to raise money to rebuild his destroyed farms/quarries or mines. This is despite the fact that Frederick had switched to raiding another AI and was leaving Emir alone. Eventually he sold a bit to buy food but he still had a lot left.
He had one woodcutter but the woodcutter kept getting shot by enemy archers because the wood was in a contested area.

The AI does not sell resources to get lumber. I don't think so at least.

The AI does not sell resources to get lumber. I don't think so at least.

Well they should do I think. Wood is very cheap to buy in.


minor fix to address referencing types in external, vendored pkgs #188

Describe the PR
If the pkg referenced in importPath is actually a package that is vendored, use the "full path" for the program.Package(..) call. Calling on program.Package(originalmportPath) will cause the return pkg to be nil, even though the .Load(..) succeeded.
Relation issue
#188
Additional context
I added some extra new lines during debugging - sorry! Looking at it now, I suppose the map iteration can happen after initial program.Package(..) call fails.. but that may be a overkill.

Codecov Report

Merging #189 into master will decrease coverage by 0.15%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master     #189      +/-   ##
==========================================
- Coverage   88.54%   88.39%   -0.16%
==========================================
  Files           5        5
  Lines        1004     1008       +4
==========================================
+ Hits          889      891       +2
- Misses         72       73       +1
- Partials       43       44       +1

Impacted Files
Coverage Δ

operation.go
87.64% <50%> (-0.37%)
:arrow_down:

Continue to review full report at Codecov.

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

Sidenote: after codefix is applied, you'll see this output instead:
$ go run /Users/dselans/Code/go/src/github.com/swaggo/swag/cmd/swag/main.go init
2018/08/18 22:58:53 Generate swagger docs....
2018/08/18 22:58:53 Generate general API Info
2018/08/18 22:58:55 Generating types.Action
2018/08/18 22:58:55 Generating types.RequestPayload
2018/08/18 22:58:55 Generating types.Request
2018/08/18 22:58:55 Generating rye.JSONStatus
2018/08/18 22:58:55 create docs.go at  docs/docs.go

Oh Thx!!!!!!!!!


handle_any_iterable_in_bifurcate

i assumed that iter(iter(x)) = iter(x) (and also checked it), could you pls confirm?

i assumed that iter(iter(x)) = iter(x) (and also checked it), could you pls confirm?

I checked the same way. The best way tho is a test :)


fix(cli): only count errors for max diagnostics

Summary

Part of:

#1083

Test Plan

Should I write a test?👀

If you can, that would be great.
We need to test a situation where we have more warnings than errors, and make sure that all the errors are written.

If you can, that would be great.
We need to test a situation where we have more warnings than errors, and make sure that all the errors are written.

Thank you!!
I will try to write a test that creates a situation where there are more warnings than errors, and ensures that the errors are logged!

@ematipico

If you can, that would be great.
We need to test a situation where we have more warnings than errors, and make sure that all the errors are written.

Sorry, I tried to write a test, but I am still not very knowledgeable about Rust and it would take a long time, so if it is not mandatory, can I implement it separately from this PR...?? :eyes:

Thank you @yossydev , that's fine and we appreciate your contribution.
You can implement the tests in a separate pr!