Static type checking in Ansible

Proposal: Static type checking in Ansible
Author: Adam Stevko <@xen0l>
Date: 2016/12/18

Status: New
Proposal type: core design
Targeted Release: future release
Estimated time to implement: not calculated

Motivation
Ansible source code has grown over the years and is changing rapidly. The code base is getting bigger, it's harder to spot bugs and readability might suffer in certain cases. By introducting type hints, we can eliminate some of these points.
Problems
What problems exist that this proposal will solve?

Finding bugs will be easier
Increase readability of the code

Solution proposal

Python type hints (PEP-484)
mypy

from typing import List

def hello(): # type: () -> None
    print 'hello'

class Example:
    def method(self, lst, opt=0, *args, **kwargs):
        # type: (List[str], int, *str, **bool) -> int
        """Docstring comes after type comment."""
        ...

Dependencies (optional)
Type hints by itself do not introduce any runtime or build time dependency. However, to do the static linting, mypy has to be run during build time.
mypy needs Python 3 and for Python 2 'typing' package has to be available.
Documentation (optional)
https://mypy.readthedocs.io
Anything else?
mypy success story on large codebase

@mattclay @abadger Sounds interesting

@xen0l I've added this proposal to the agenda for the next core team meeting on IRC. Do you think you'll be able to attend?

Discussed in Core Meeting 2016-12-20

An interesting idea
May get out of date when someone updates a function
May be too high a bar for Modules

Agreed

This is something that we should revisit for a future release, after we've had time to implement more of the static analysis and linting already on our roadmap for 2.3.
agree on enforcing existing rules before implementing new ones
i (abadger) think in terms of maturity static typing will either be much more mainstream or more obviously niche in two years time.

@mattclay Sorry that I couldn't make it to the core team meeting. Few notes:

May get out of date when someone updates a function

The same problems is also present for docstrings and documentation. It is usually a matter of
review / tests. If function is extended with a new argument and mypy is run, it will complain, so this will be rather easy to spot.

May be too high a bar for Modules
Unsure if we can implement this on just certain files, or if it has to be everything

i wouldn't go that far right from the beginning and leave modules out. Type hints can be only on certain files and not on everything. However, to achieve best results, it should be used everywhere.

Have we seen bugs that this would have caught?

I have been closely watching Ansible development for last couple of months and I am not aware of any bugs. Type hints should help catching typeerrors for example.

Unsure on cost or benefit

There is no performance cost while Ansible is executed. As for other costs, I can see only maintenance costs. I expect it to have the same maintenance cost as docstrings.
Apart from benefits mentioned in  "Benefits of using mypy" part from http://blog.zulip.org/2016/10e/13/static-types-in-python-oh-mypy/:

Static type annotations improve readability.

We can refactor with confidence

We upgraded to Python 3

mypy frequently catches bugs (example)

Static types highlight bad interfaces

potential future performance benefit - there is an initiative to make mypy compile code, which could introduce performance boost (http://www.infoworld.com/article/3148718/open-source-tools/how-mypy-could-simplify-compiling-python.html). However, as of this time, this is rather theoretical.

According to the same blog post, there are few dowsides, which stems from other linters not supporting everything from mypy yet. There should be more research done on this topic.

i (abadger) think in terms of maturity static typing will either be much more mainstream or more obviously niche in two years time.

If we look at trends in other interpreted programming languages (Hack, Flow, Typescript..) and Python itself, static typing will mature and will be much more widespread. Also the fact that Python BDFL himself is working on this makes me certain it won't be niche.
I am interested on working on this and could start with a small PoC if there is an interest from the core team.

@xen0l There's definitely interest. Where were you thinking about starting for a PoC?

@mattclay I have already started some small PoC. I plan to work on a file with few simple functions in it and on also on something more complex with different imports from lib/ansible. I will keep you updated (I will be mostly away from computer in the upcoming days).

the new dependency may be a blocker for this.  Can the dependency be required during testing and not installed for general use?

If we look at trends in other interpreted programming languages (Hack, Flow, Typescript..) and Python itself, static typing will mature and will be much more widespread. Also the fact that Python BDFL himself is working on this makes me certain it won't be niche.

Many things the BDFL works on are niche.

I am interested on working on this and could start with a small PoC if there is an interest from the core team.

I'm for evaluating and possibly adding it in 1.5 to 2 years time (assuming the library dependency is optional).  Adding type hints before it becomes widespread raises the contribution barrier to entry significantly and I would not want to do that to our other contributors.
We're even struggling with docstrings right now... docstrings themselves are a widespread practice in the python community and most contributors understand them.  Sphinx is a widespread format for docstrings but most contributors do not understand it.  This means that the burden of adding and maintaining the docstrings has mostly fallen on us (I don't know of anyone who's added sphinx docstrings to core code besides myself, actually).

the new dependency may be a blocker for this. Can the dependency be required during testing and not installed for general use?

@abadger typing module needs to be installed as it we need to import from it in the source code. Unfortunately, "pip install typing" is a requirement on Python 2, but on Python 3.5+ it is in stdlib. If additional package for Python 2 is considered a blocker, then I'm afraid that type hints will never be adopted with such stance. I don't want to open Python 2 vs Python 3 debate, but given Ansible is slowly moving to Python 3 (and typing module is part of it), couldn't this be also considered for Python 2?

Couldn't we utilize stub files for typing?  Using stub files shouldn't cause all users to have typing as a dependency.
https://www.python.org/dev/peps/pep-0484/#stub-files
As documented in the link I provide, stub files are useful for:

Modules that must be compatible with Python 2 and 3

Many things the BDFL works on are niche.

@abadger is this your opinion or do you have some facts that could justify it?

I'm for evaluating and possibly adding it in 1.5 to 2 years time (assuming the library dependency is optional). Adding type hints before it becomes widespread raises the contribution barrier to entry significantly and I would not want to do that to our other contributors.

Typing syntax is really easy to pick up and anyone who can write Python can write type hint (as he is aware what type function argument and return value has to be) e.g.
from typing import AnyStr
def example_function(str1, str2):
# type: (AnyStr, AnyStr) -> AnyStr
return str1 + str2

If people are unsure about the type hints, the worst case scenario would be that people use type "Any" and mypy would consume. There will be some added value even if not 100% (mypy will warn for cases when no return value is given for example when somebody refactored some function etc.)

We're even struggling with docstrings right now... docstrings themselves are a widespread practice in the python community and most contributors understand them. Sphinx is a widespread format for docstrings but most contributors do not understand it. This means that the burden of adding and maintaining the docstrings has mostly fallen on us (I don't know of anyone who's added sphinx docstrings to core code besides myself, actually).

Well, if people add code, but don't provide docstrings, why Ansible accepts such PRs in the first place? To me this sounds like incomplete part of the contribution process, which can be easily caught during PR review phase. As for type hints, the situation is eventually the same, but with small difference and that people don't have to spend a lot of time of describing what the function does and writing proper documentation - type hints tell only what types the function expects and what type should be returned.

Just take a look at the things that GvR has in the PEP index: "Extensions to the pickle protocol", "Conditional Expressions" "Stop iteration inside generators" "asyncio" "type hints" ;-) ....  Guido works on things that he finds interesting or that he finds necessary.  Sometimes those are also interesting and necessary to the rest of the world.  other times they're only interesting and necessary to a subset of python programmers and thus niche.
Adding the new dependency is almost certainly a blocker.  I've asked about adding various other dependencies in the past and they've always been shot down.  But you can ask as well... they're case-by-case but if run-time feature enhancements fail to pass the bar for adding deps I don't see a bright future for a testing enhancement.  If sivel's note about stubs works, then that will remove this blocker.
Your whole argument about type hints being easy glosses over the problem: "Typing syntax is really easy to pick up".  The problem is that it has to be "picked up" at this point.  It's not something that someone can be expected to know before they contribute.  That's why I think our adoption should be re-evaluated in the 2 year time frame.  If we do this now, we'd be early adopters.  And therefore we'd be suffering the problem of not having contributors who know how to use the hints and a rich, worldwide community of other devs who can help to train contributors.  We have enough difficulty in opening up the process of contributing without introducing this at this time.  Give it two years and we'll either find that the time is ripe, contributors are experienced with it, and many code bases have it to use as examples, or we'll find that the python development community hasn't really adopted type hints so it would still be a constant struggle to implement them.

I will check out @sivel's proposal during the weekend. I will report the findings after that.

@xen0l Let us know when their is something to discuss/show by adding it to the Core Meeting agenda https://github.com/ansible/community/issues?utf8=✓&q=is%3Aissue is%3Aopen label%3Ameeting_agenda
Thanks

I see this has been discussed again in 2021. Was there anything new added? typing is well established now and its benefits are well recognised: catching type errors earlier in the development process, allowing for refactoring that would be impossible without them, clearer API interfaces).
Simple example: I've been using the inventory module to do some checks without re-inventing parsing. It took me a while to figure it out because everything is implicit and tools cannot tell me if what I'm writing makes sense.
Type hint improves readability and discoverability, making it the barrier of entry lower for new contributers.
Notice below how vscode cannnot tell that some fields are actually functions (white instead of yellow), and thus cannot provide any autocomplete.
Without:

With:

Sorry for not updating the ticket, this was logged in the IRC meetings but we should have still reflected it here.
Yes, it was agreed to and we are currently adding typing, but we are not going to do this all at once, but piecemeal as we update the code. Also, we are limited to 'core code' so modules/module_utils will still have to wait until they drop some of the currently targeted Python versions.

Thanks, this is great news!


Still supported?

Hi,
I really love using this library to create C4 models of my applications. But I can't help noticing that the development has stopped. Even simple pull requests with typos aren't merged.
If this library isn't in development anymore, I will need to search for an alternative for future projects.

As there are quite a lot of issues and PRs open, I could offer  @RicardoNiepel to take over the maintenance of the extension. I use the extension in three of my university classes on a regularly base and teach the C4 model in my courses, so I have quite some interest in keeping it up and running. I am also have correspondence with Simon Brown from time to time. However, that's completely up to Ricardo. As I also maintain an EIP extension for PlantUML, there is only a little extra effort. @RicardoNiepel, you can of course DM me at Twitter if you are interested.

Hi @aheil, @jgeudens
did you consider using one of the forks? E.g. you can check my fork: https://github.com/stawirej/C4-PlantUML which is ported to support latest plantuml + some small enhancements.

I've also had a number of people ask me if development has stopped on this...

I would rather push forward and maintain the original Repo instead of a (my or anyone others) fork. Anyway, I have pinged Ricardo directly and just wait for his reply and thoughts. I could imagine priorities have changed.

I have actions for the generation of samples, tests, integration with Percy, and I'm working slowly on resolving all pre-existing issues and PRs over here before pushing forward.

This library is included in the PlantUML-stdlib, so it works in PlantUML  "out of the box".
In am making an ongoing effort to automate the updating of libraries in the stdlib. As part of that, it is helpful if changes in libraries are tagged. (as requested in #26)
This repo hasn't really been updated for the last two years. There seem to be all sorts of active forks (for example those by @adrianvlupu, @fineconstant, @IOrlandoni, @stawirej, and @xmobe). But since I can only use one repo as source, the ideal way forward would be that activity in this repo is revived.
That is also the only way to avoid different people making the same fix and wasting effort.
So I am really hoping @RicardoNiepel allows others onboard as admins.
If (for whatever reason) that does not happen, rather than push an individual fork, it would be better to collaborate and set up a community-based fork (otherwise the current problem will just repeat itself).
I've seen a similar thing happen with bats which eventually moved to a community based organisation.
On a side-note, for those who weren't aware, @simonbrowndotje (three comment ago) is the one who created the C4 model :star_struck:

I try to maintain a working version with different plantUML versions on my fork https://github.com/adrianvlupu/C4-PlantUML. It already includes many of the pull requests on this repo but I kept versioning on branches rather than tags, I think I will change that.
I haven't been active for quite some time on github due to work, but now I can resurrect it and merge some more pull requests there, maybe at some point everything gets merged.
I'm really happy the C4 model gets attention 😊. I've been using it at work successfully in combination with plantUML for 2 years now. Let's not let it die.

I've also started with a fork long time ago and then continued to use the one from @adrianvlupu , because lot of PRs integrated there, Thanks :)
It would be good to have new fork for the community to continue work with!

Ok folks, let me start a separate issue for coordinating it :)
And thank you all for constantly pushing me!


There may be a typo in the first line under first section

In below section, the first line, I guess the "install IDS" should be "install IDs" as that appears in below content.
Original Sentence:
##You did not retain a mapping of your User IDs to Install IDs##
If you did not keep a mapping between your user IDs and install IDS, you must follow some extra steps outlined below.
traced link:
https://docs.microsoft.com/en-us/appcenter/gdpr/diagnostics-delete#you-did-not-retain-a-mapping-of-your-user-ids-to-install-ids

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

ID: 755430a6-1d28-bc01-6d15-ef286bb69004
Version Independent ID: b7cb673a-e6f3-519d-e932-4a23ef84dd6c
Content: Deleting Diagnostics Data - Visual Studio App Center
Content Source: docs/gdpr/diagnostics-delete.md
Service: vs-appcenter
GitHub Login: @blparr
Microsoft Alias: blparr

Looks like this update was already addressed, but we forgot to close the issue. Closing now.


Uncaught TypeError: Cannot read property 'fromId' of undefined

[Enter steps to reproduce:]

Open Atom
Try to start a REPL from Packages>proto-repl>Start REPL.

Atom: 1.40.1 x64
Electron: 3.1.10
OS: Mac OS X 10.14.6
Thrown From: proto-repl package 1.4.24
Stack Trace
Uncaught TypeError: Cannot read property 'fromId' of undefined
At /Users/user/.atom/packages/proto-repl/lib/views/ink-console.coffee:29

TypeError: Cannot read property 'fromId' of undefined
    at InkConsole.module.exports.InkConsole.startConsole (/packages/proto-repl/lib/views/ink-console.coffee:29:29)
    at /packages/proto-repl/lib/views/ink-console.coffee:24:6)
    at Repl.module.exports.Repl.consumeInk (/packages/proto-repl/lib/repl.coffee:50:19)
    at Object.prepareRepl (/packages/proto-repl/lib/proto-repl.coffee:230:10)
    at Object.toggle (/packages/proto-repl/lib/proto-repl.coffee:223:8)
    at /packages/proto-repl/lib/proto-repl.coffee:123:32)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349123)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:347598)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:718718)
    at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:726641)
    at EventEmitter.emit (events.js:182:13)

Commands
     -0:05.3.0 proto-repl:toggle (div.tool-panel.tree-view)

Non-Core Packages
busy-signal 2.0.1
ink 0.11.0
intentions 1.1.5
linter 2.3.1
linter-joker 4.1.0
linter-ui-default 1.8.0
lisp-paredit 0.6.0
parinfer 1.23.0
proto-repl 1.4.24
rainbow-delimiters 2.1.2

Downgrading to 0.10.2 helped with the issue.

To downgrade ink to version 0.10.2 is not a solution for me as I am using Atom to develop in Julia and Juno needs<EMAIL_ADDRESS>A real solution will be highly appreciated, meanwhile I'll move my learning clojure experience to other IDE.

good is running

apm install<EMAIL_ADDRESS>is good solution for me think my friends

Now a days i'm only working with clojure, so apm install<EMAIL_ADDRESS>do the trick to me.

Downgrading to @0.10.2 works for me, but with this version I lost autocomplete in my proto-REPL window, as follows

Atom 1.49.0
proto-repl 2.10.0
Ubuntu 18.04

Hi,
Any news regarding this?

Hi,
Any news regarding this?

Also encountering this problem:
TypeError: Cannot read property 'fromId' of undefined
    at InkConsole.module.exports.InkConsole.startConsole (/home/paul/.atom/packages/proto-repl/lib/views/ink-console.coffee:29:29)
    at new InkConsole (/home/paul/.atom/packages/proto-repl/lib/views/ink-console.coffee:24:6)
    at Repl.module.exports.Repl.consumeInk (/home/paul/.atom/packages/proto-repl/lib/repl.coffee:50:19)
    at Object.prepareRepl (/home/paul/.atom/packages/proto-repl/lib/proto-repl.coffee:230:10)
    at Object.toggle (/home/paul/.atom/packages/proto-repl/lib/proto-repl.coffee:223:8)
    at HTMLElement.subscriptions.add.atom.commands.add.proto-repl:toggle (/home/paul/.atom/packages/proto-repl/lib/proto-repl.coffee:123:32)
    at CommandRegistry.handleCommandEvent (/usr/lib/atom/src/command-registry.js:405:43)
    at CommandRegistry.dispatch (/usr/lib/atom/src/command-registry.js:292:17)
    at AtomEnvironment.dispatchApplicationMenuCommand (/usr/lib/atom/src/atom-environment.js:1583:19)
    at EventEmitter.outerCallback (/usr/lib/atom/src/application-delegate.js:323:47)
    at EventEmitter.emit (events.js:223:5)
    at Object.onMessage (electron/js2c/renderer_init.js:115:818)


$count parameter doesn't seem to be in the _properties file

Also, some animations it says does not $count. The example on the readme doesn't work due to this.
.your-class-name {
  @include bounceIn(
    $duration: 1s,
    $count: 2,
    $delay: .2s,
    $function: ease,
    $fill: both
  );
}

Hmm, that's strange. The demo animation seems to work for me and I also see that $count is called in the _bounceIn.scss.
Is there perhaps something else at play that I might be missing?

Right, think I found the issue.
Your github is up-to-date, obviously, but I installed via bower.
C:\xampp\htdocs\newwws.io.bs4 [master]> bower install animate.css-scss#latest
bower cached        git://github.com/Igosuki/animate.scss.git#3.1.0
bower validate      3.1.0 against git://github.com/Igosuki/animate.scss.git#*

IGOSUKI... Is 36 commits behind your master.
D


xperm.b / xperm.n /rev.b  mnemonics

It is difficult to be completely consistent in mnemonic convention, but these are parallel packed-SIMD-style instructions. In the P extension, the assembler mnemonic convention has element size (e.g., 8 or 16) in mnemonic.  Also, in vector extension number of bits per element appears in some instructions (e.g., le8.v).  rev8 also has that pattern.
The .b appears in sext.b as single-byte operand (not packed).
Zbb orc.b is an unfortunate outlier as it probably should have been orc8.
xperm8 and xperm4 seem more consistent to me.
rev.b is also awkward.  e.g., brev8  is more consistent to me

These are bitmanip instructions, albeit didn't make it into the document in public review. Change of instruction names should perhaps be debated in the bitmanip mailing list as well.


_ul

https://www.mlit.go.jp/policy/shingikai/s303_jidousha01.html

bf2c4579b7ef8951b5b2289bbea4b4dac35ae3d6


Magicl NG

This PR completely reworks the magicl high level interface, allowing for easier and more intuitive use with more types.

s/probably within/probably not within/

I skimmed this, but I'm having a pretty hard time reviewing it without actually trying to use it.
I am grateful that the LAPACK macros expose the different multiplication options. I still think it'd be great to use some macrology (or perhaps just some metadata attached to matrix objects) to avoid computing intermediate conjugate/transposes and instead shovel that computation off to the loop structure in zgemm.

I skimmed this, but I'm having a pretty hard time reviewing it without actually trying to use it.
I am grateful that the LAPACK macros expose the different multiplication options. I still think it'd be great to use some macrology (or perhaps just some metadata attached to matrix objects) to avoid computing intermediate conjugate/transposes and instead shovel that computation off to the loop structure in zgemm.

Yeah, Cole wrote some nice LAPACK macros indeed.
I'd also like to have a more parsimonious way of computing with matrices but I'm not entirely sure that that belongs to this specific PR. A lazy evaluator of sorts (see my comment above on expression templates) could be built on top of the current patch.

You can strip it out. Quilc has its own orthonormalize-matrix function
(which we should update later), so you won't be breaking any code.
On Sun, Nov 3, 2019 at 1:03 PM Cole Scott<EMAIL_ADDRESS>wrote:

@colescott commented on this pull request.
In src/high-level/matrix.lisp
https://github.com/rigetti/magicl/pull/63#discussion_r341872317:

(:documentation "Compute the conjugate transpose of a matrix, replacing the elements")

(:method ((matrix matrix))
(map! #'conjugate matrix)))

+(defgeneric dagger (matrix)

(:documentation "Compute the conjugate transpose of a matrix")
(:method ((matrix matrix))
(conjugate-transpose matrix)))

+(defgeneric dagger! (matrix)

(:documentation "Compute the conjugate transpose of a matrix, replacing the elements")
(:method ((matrix matrix))
(conjugate-transpose! matrix)))

+;; TODO: either make this generic or call lapack functions
+(defgeneric orthonormalize! (matrix)
Does it make sense to keep this or do you think I can strip it out?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rigetti/magicl/pull/63?email_source=notifications&email_token=AAADE3KELA65SSG6LHDBJPDQR4VBBA5CNFSM4IYEON42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCKDQPUA#discussion_r341872317,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAADE3PBO3YKZPW7Y2QPLKLQR4VBBANCNFSM4IYEON4Q
.

The current PR causes conflicts with the rest of the Rigetti software. In particular, while compiling Quilc and the QVM, I find that the following interfaces are missing:
conjugate-entrywise
make-complex-matrix
make-identity-matrix
make-zero-matrix
matrix-rows
multiply-complex-matrices
ref

Before approving this PR we need either a (temporary?) backwards-compatible interface or a few PRs updating the Quilc and QVM projects according to the new API.

I have feature/magicl-ng branches on quilc and qvm which have been updated to reflect the interface changes.

The current PR causes conflicts with the rest of the Rigetti software. In particular, while compiling Quilc and the QVM, I find that the following interfaces are missing:
conjugate-entrywise
make-complex-matrix
make-identity-matrix
make-zero-matrix
matrix-rows
multiply-complex-matrices
ref

Before approving this PR we need either a (temporary?) backwards-compatible interface or a few PRs updating the Quilc and QVM projects according to the new API.

I have feature/magicl-ng branches on quilc and qvm which have been updated to reflect the interface changes.

Thank you for pointing that out. Is there a chance that you could post the running times of the quilc and qvm test suites with and without magicl ng?

There are still a number of changes and improvements I'd like to make but I don't feel those necessarily belong to the current PR (they can be succinctly summarized as "be more like numpy"). I'm inclined to approve this PR if there is no performance hit in quilc and the qvm from adopting magicl ng (or if the performance hit is sufficiently low).

An update on the progress of this PR:
The current version of this PR incurs a 30-50% performance hit compared to the existing high-level when tested with the cl-quil tests. I am looking into optimizing the functions that are having the most impact

An update on the progress of this PR:
The current version of this PR incurs a 30-50% performance hit compared to the existing high-level when tested with the cl-quil tests. I am looking into optimizing the functions that are having the most impact

Thanks for the update.

Overall this is shaping up nicely. My main request at this point is to have something like a design doc which discusses

the magicl API vs other common contenders
the organization and specialization of tensor types
anything else relevant to the design

I also mentioned a few features that I saw missing and which I have come to expect. Some of these range from really minor stuff (essentially syntactic sugar) to more serious (the absence of striding is fairly significant, although could be an enhancement for a later PR).

See doc/high-level.md

Yet another item for the wish-list (definitely not within the scope of this PR), in line with my earlier suggestion of using (analogues of) expression templates: compile formal expressions down to BLAS (or preferably PLASMA/BLIS) primitives. It turns out that this has been done before: http://people.cs.uchicago.edu/~mrocklin/storage/dissertation.pdf

Once I get the OK on this I will be redoing the feature/magicl-ng branches in quilc and qvm

Is this backwards incompatible? i.e. are we doing a M A J O R release? What remains to be done before that release?

This is going to be a major release. The version number should probably be bumped to reflect that.
On the list of what still needs to happen:

Test performance of quilc/qvm and optimize to meet 15% performance hit allowance
Do one final read through to make sure nothing crazy showed up during optimizations
Create a release strategy (this will break qvm/quilc if they are not released together, tests on qvm/quilc are broken before release)
:shipit:


alpine doesn't have usermod

/named.sh: line 22: usermod: not found
/named.sh: line 23: groupmod: not found

Hi @majoux ,
Thanks for the feedback. I've implemented a solution #11 and pushed it to the branch  develop.
Please check out this tag on docker hub and try, if it's working now for you. I've tested it on my box and it seems to work. It's sad, that usermod / groupmod is not available on busybox/alpine, so I delete the group/user and create it with the new uid/gid.
I will check the other pull requests tomorrow.
Greets
Pascal

Fixed in develop branch


I wanted to make a libgdx game, but when i launch it, i get an "NSException"

Issue details
repo for this -> https://github.com/Gamer069/illialibgdxproj
Reproduction steps/code

make a libgdx project with maven on macos and maybe this will happen, idk, if it doesn't happen, then i'm probably stupid or something

Version of libGDX and/or relevant dependencies
LibGDX Version: 1.9.13
Java Version: 11
Stacktrace
2022-09-20 16:01:57.821 java[29664:1006508] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1575.405/Foundation/Misc.subproj/NSUndoManager.m:361
2022-09-20 16:01:57.821 java[29664:1006508] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff4faa4035 __exceptionPreprocess + 256
	1   libobjc.A.dylib                     0x00007fff7a30ca17 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff4fabed52 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x00007fff51d64171 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
	4   Foundation                          0x00007fff51c971ee +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 473
	5   AppKit                              0x00007fff4cfdbd6d -[NSApplication run] + 916
	6   libglfw.dylib                       0x000000013317aa85 libglfw.dylib + 68229
	7   libglfw.dylib                       0x0000000133174416 libglfw.dylib + 42006
	8   ???                                 0x0000000118ea1a10 0x0 +<PHONE_NUMBER>
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Please select the affected platforms

[ ] macOS

I think you need to launch your game with -XstartOnFirstThread. Alternatively, you can add the gdx-lwjgl3-glfw-awt-macos` extension (libGDX 1.11.0+ only).
https://libgdx.com/news/2021/07/devlog-7-lwjgl3#do-i-need-to-do-anything-else
https://libgdx.com/news/2022/05/gdx-1-11#lwjgl-3
libGDX 1.11.0 is also the first version to support Apple Silicon chips (with mixed success, inevitably).

I'd strongly recommend using a setup tool, such as gdx-setup or gdx-liftoff to generate a Gradle project that uses the current libGDX version and has the files it needs. If you want to use Maven, you should look for some template project to copy configuration from -- just know that it is a harder route to get help with. 1.9.13 was a good release, but it's a bit behind the times now. If you have an M1 Mac, or think users might use them, then definitely switch to 1.11.0 .

thanks, @Frosty-J, that worked


WIP: Add google oauth

I made edits to all the route in the API, but I think I'm better off with a middle ware the way I have it set up

Reading this is a good starting point.

I'm taking my final pass on this now, then I'll set this ready to review
I have to create the staging oauth client id and staging .env files too


Feedback: Missing load_all()

Include the statement:
devtools::load_all()

in the 'To install please execute the following in R:' block

ae82a556cbd9090c3450a8d56f6dfa8d8bf4ab37


Android Basics: Activities and intents

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-activities-intents?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-activities-intents#6
In which task and step of the codelab can this issue be found?
7.1
Describe the problem
It tells me to add code after the companion object in DetailActivity, but my DetailActivity.kt window code has no companion object, so adding the code throws an error.
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version: Giraffe | 2022.3.1 Patch 1
API version of the emulator: Pixel XL API 34
Additional information
Include screenshots if they would be useful in clarifying the problem.

Close this issue.  I played with putting the code in different places and got it to work.


Animation for the DQN in Chapter 16

This is not an issue as such but a request. In chapter 16, we spend a lot of time getting acquainted with reinforcement learning and finally train a decent DQN, but we don't really see it play Pacman.
I think it'd be good to reuse the code already present in the notebook and create a short animation of our DQN playing.
I tried to do it myself, but ran into difficulties while calling action.eval().

Hi @StrangeTcy ,
That's a great suggestion! :+1:   I am adding this to my To-Do list (however, adding the solutions to the exercises of all chapters is higher priority and quite time consuming, so I can't promise I'll do this very soon).
Thanks!
Aurélien

I gave it a try.  The animation is there, but my code always outputs the same decision (7 in my case).  I am still beginning, so of anybody has  some suggestions, let me know.
def display_game_play(model_path, n_max_steps = 2000):
    env = gym.make('MsPacman-v0')
    obs = env.reset()
    with tf.Session() as sess:
        saver.restore(sess, model_path)
        for step in range(n_max_steps):
            #evaluate what to do
            state = preprocess_observation(obs)
            q_values = critic_q_values.eval(feed_dict={X_state: [state]})  #maybe actor_q_values?

            action_val = np.argmax(q_values)

            print("\rstep: {}, action_val: {}".format(step, action_val), end="")
            obs, reward, done, info = env.step(action_val)
            env.render()

            if done:
                print("DONE - FAILED")
                break
    env.close()
    return

save_path = "./data/ch16/my_dqn.ckpt"
display_game_play(save_path)

I added test code after training in chapter 16, so you can now view Ms Pacman learning to play. Thanks for the great suggestion!


Poor performance on Identify in arcgis experience

Hi,
I have 40 feature layers in webmap
Identify taking very very long time.. and it's not networking related.

Hi @BDvirus, thank you for your question. This GitHub repository is for issues and questions specifically related to the sdk sample widgets and themes (https://github.com/Esri/arcgis-experience-builder-sdk-resources). Since your question is related to a general Experience Builder issue, I would suggest contacting Esri Technical Support via the link here: https://developers.arcgis.com/experience-builder/support/


LXD with LVM (source issue)

I'm not fully understand new technology. tech is good and your work is best, but:
googling in storage backend-working i found it:

Create new pool on "/dev/sdX" with the volume group name "my-pool".
lxc storage create pool1 lvm source=/dev/sdX lvm.vg_name=my-pool

from here: https://github.com/lxc/lxd/blob/master/doc/storage-backends.md
so.  there is a little mistake with some naming and usage LVM. let see:

lvm.vg_name=my-pool

at first '=my-volume-group'

source=/dev/sdX

why sdX? my VG consists of a lot of HDDs. then, how can i describe here a lot of sources? i think it needs to remake and use VolumeGroup as source. then it removes needing in 'lvm.vg_name=my-pool'.

If I understand you correctly then you want to use an already existing volume group. That is certainly possible. You can use a volume group as source you just specify source=my-pool and leave the lvm.vg_name property empty.

See

Use the existing volume group "my-pool"
lxc storage create pool1 lvm source=my-pool

@brauner oh. thanks. reeded not carefull :). so. question stays with source=a_lotOfHDDs for new pool :)

We currently do not support specifying multiple block device sources. This is something which we would need to discuss whether this makes sense design-wise.

@brauner i think this mast be looking a little other way. somthing like

lxc storage create pool1 lvm devices=/dev/sda1,/dev/sdb2 lvm.vg_name=my-pool

then lvm.vg_name will be "source" in storage list. devices in this way will use only for  creating LV

@Laguna-x we don't have plans to support multi-device creation of lvm, btrfs or zfs pools right now.
As @brauner pointed out, for such setups, we'd rather the administrator manually create their LVM VG, ZFS zpool or btrfs filesystem themselves, setup the level of replication they want and tweak whatever other settings they need, and then tell LXD to use it.


ci: merge staging to master

This is an automatic PR generated by the pipeline CI/CD. This will be automatically fast-forward merged if successful.

Pipeline Attempt on 972219762 for bf91fbb22631df2b3e7fb2278e90fdf86f090a4f
https://gitlab.com/MatrixAI/open-source/js-quic/-/pipelines/972219762


New rule: NOT IS -> IS NOT

https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#use-xsdbool-to-set-boolean-variables

https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#prefer-is-not-to-not-is


rs-pose  example run ,with problem :RealSense error calling rs2_pipeline_start_with_config(pipe:0x564d0b946a30, config:0x564d0b93dd00):     Couldn't resolve requests

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
<Describe your issue / question / feature request / etc..>

Hi @WENHUNAN  The rs-pose example program requires the RealSense T265 Tracking Camera RealSense camera model.  If you have a RealSense 400 Series or L515 camera then this example will not work as only the T265 has the necessary built-in support for pose stream data.

Hi @WENHUNAN  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Add CI 2.6.0-preview1 and bump 2 4

Add:

https://www.ruby-lang.org/en/news/2018/02/24/ruby-2-6-0-preview1-released/

I have the related PR I can open for other repos when this is ok.
Feel free to make any comments. 🤙🏻

Related PR add more changes. On Rubocop files for example : https://github.com/rspec/rspec-mocks/compare/master...benoittgt:update-travis-build-scripts-2018-02-24-for-master?expand=1

This looks good to me but be aware you may have to make changes to get builds to pass on it.

Thanks. Waiting for https://github.com/travis-ci/travis-rubies/issues/44 before sending PR to other repos


"Cocoa Touch Library"

Could it be that you mistakenly wrote "Cocoa Touch Library" instead of "Cocoa Touch Framework" in your blog post?

Select iOS → Framework & Library from the left sidebar and select “Cocoa Touch Library” on the right.

+1, I was some confused with this part


[Event Request] Codeunit 90 Purch.-Post - OnAfterInitVATAmounts

Please add a new publisher event to the function InitVATAmounts as follows:
LOCAL InitVATAmounts(PurchLine : Record "Purchase Line";VAR TotalVAT : Decimal;VAR TotalVATACY : Decimal;VAR TotalAmount : Decimal;VAR TotalAmountACY : Decimal)
TotalVAT := PurchLine."Amount Including VAT" - PurchLine.Amount;
TotalVATACY := PurchLineACY."Amount Including VAT" - PurchLineACY.Amount;
TotalAmount := PurchLine.Amount;
TotalAmountACY := PurchLineACY.Amount;
//>> Start New Publisher Call
OnAfterInitVATAmounts(PurchLine, PurchLineACY, TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY);
//<< End New Publisher Call

New Publisher Event:
LOCAL [IntegrationEvent] OnAfterInitVATAmounts(PurchaseLine : Record "Purchase Line";PurchaseLineACY : Record "Purchase Line";VAR TotalVAT : Decimal;VAR TotalVATACY : Decimal;VAR TotalAmount : Decimal;VAR TotalAmountACY : Decimal)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


The multi steps snippit for more than one form

I am trying to set-up the multi steps form validation. I followed the documentation here: "http://parsleyjs.org/doc/examples/multisteps.html" - but the only problem is I am going to have few forms that will have multi steps across the site and on some pages there will be more than one.
Is there a way to tweak the snippet so it automatically detect if the form has more than one step and apply the appropriate behavior/settings accordingly? Rather having to duplicate that snippet over and over for each form...
Thank you for any help

Sure it should be possible. But this is not Parsley's job but yours to create a script that deals with both mutli steps and Parsley validation (parsley only does validation, not steps)
Feel free to ask your question on stackoverflow though.
Best


bug:(engine): fail on autostart STREAM or SERVICE

When you start hopeit.engine app with --start-streams argument, the engine don't start streams or services.
Anyway you can start any stream or service from the management api:
curl localhost:8020/mgmt/simple-example/0x14/streams/process-events/start
it looks related to _start_streams method in the create_task

Fixed in #125 (Release 0.14.1)


TabBar tabs not always rendered when build from stream BLoC

Steps to Reproduce

Create a Widget lets call it HomePage
Create a model called Category
Create a stream that returns List
Wrap Scaffold into DefaultTabController(length: categories.length,...) that is wrapped in StreamBuilder
Add "bottom: TabBar..." into AppBar
Map List as tabs of AppBar
Set scaffold body to TabBarView with children will be Column for each category in List<Category>

Logs

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.523], locale sk-SK)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] VS Code (version 1.30.2)
[√] Connected device (1 available)

• No issues found!

flutter analyze
Analyzing recepty_kulinarium...
No issues found! (ran in 5.4s)

flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.523], locale sk-SK)
    • Flutter version 1.0.0 at C:\flutter
    • Framework revision 5391447fae (9 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\erikk\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] VS Code (version 1.30.2)
    • VS Code at C:\Users\erikk\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.22.1

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

Issue description
While I was manually adding tabs everything worked, until I started generating tabs from state, then tabs won´t show up.
I have also noticed, that when I start the app and swipe right->left to change tab then I get an exception:
I/flutter ( 6758): The following assertion was thrown while handling a gesture:
I/flutter ( 6758): 'package:flutter/src/material/tab_controller.dart': Failed assertion: line 175 pos 12: 'length > 1':
I/flutter ( 6758): is not true.

I have also noticed, then when I change the TabController length attribute, to:
length: categories.length-1

Then I hot restart the app, I get another exception, but suddenly the tabs are rendered and working as expected.
In that case the exception is
I/flutter ( 6758): The following assertion was thrown building StreamBuilder<List<Category>>(state:
I/flutter ( 6758): _StreamBuilderBaseState<List<Category>, AsyncSnapshot<List<Category>>>#268b1):
I/flutter ( 6758): 'package:flutter/src/material/tab_controller.dart': Failed assertion: line 82 pos 14: 'length !=
I/flutter ( 6758): null && length >= 0': is not true.

Code
class HomePage extends StatefulWidget {
  HomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  final _categoriesBloc = CategoriesBloc();

  _HomePageState() {
    _categoriesBloc.categoriesEventSink.add(LoadCategoriesEvent());
  }

  List<Widget> buildTabs(categories) {
    return categories.map<Widget>((Category category) {
      return Column(
        children: <Widget>[
          Expanded(
            child: RecipeList(key: Key('tab_content' + category.id.toString()), category: category),
          ),
        ],
      );
    }).toList();
  }

  @override
  Widget build(BuildContext context) {
    return StreamBuilder<List<Category>>(
      stream: _categoriesBloc.categories,
      initialData: [],
      builder: (BuildContext context, AsyncSnapshot snapshot) {
        List<Category> categories = snapshot.data;

        print(categories.length); // 0 when app starts, 6 after state is filled with data

        return DefaultTabController(
          length: categories.length,
          initialIndex: 0,
          child: Scaffold(
            appBar: AppBar(
              title: Text(widget.title, style: TextStyle(color: Colors.yellow)),
              bottom: TabBar(
                isScrollable: true,
                labelColor: Colors.limeAccent,
                indicatorColor: Colors.limeAccent,
                tabs: categories.map((category) {
                  return Tab(
                    key: Key('category_' + category.id.toString()),
                    text: category.name,
                    icon: Icon(getMaterialIcon(name: category.icon)),
                  );
                }).toList(),
              ),
            ),
            body: TabBarView(children: buildTabs(categories)),
          ),
        );
      },
    );
  }

  void dispose() {
    super.dispose();
    _categoriesBloc.dispose();
  }
}

How to Create TabBar in Flutter Complete Guide To Make TabBar


[authn] add Verifier unsafe mode

This PR adds unsafe mode for token Verifier, which allows cracking the tokens without actually checking the signature.
This is meant to be used in Unified Storage for in-process mode.

I think I would prefer to have this as an seperate implementation of Verifier interface instead of an option on VerifierBase, WDYT?

Sounds good to me. PTAL.


www/nginx: setup.php minor fixes

Hi!
minor fixes for setup.php script

get rid of the "PHP Warning: Use of undefined constant 'next'" message in reporter
make streams block work for single stream server in config (correctly identify the case of a single server)

Merged, thanks! ❤

thanks!!


Homepage linking

Basically adding in lots of ways to get back to /homepage so that exploring the prototype can work with the homepage* and well as the index page.

Does this need rebasing?


return Promise from requestFullscreen()

...to match the spec. Thanks!

I think it already does return a promise since it just returns the result from calling requestFullscreen(), which is a promise. Do you have a failing example?
// if this returns a promise
document.body.requestFullscreen();

// then so does this
const fscreenWrapperFunc = (el) => el.requestFullscreen()
fscreenWrapperFunc(document.body);

https://caniuse.com/#feat=fullscreen under note 3, it mentions that most browsers (including all supported versions of Safari) at one point didn't return a promise, so it's sort of a warty edge in the browser implementations 😢


fold/scan gradient high memory usage

It seems that the gradients for higher order functions (foldl/foldr/scan) require a very large amount of memory.
The following code block will easily compute res (even with swap_memory disabled) but will fail when computing grad:
v = tf.Variable([1.0])
def foo(aggregate, arr):
    arr = v * tf.tile(arr, [10000])
    return aggregate + arr[0, 0]

arr = np.empty([10000, 1000], dtype=np.float32)
res = tf.foldl(foo, arr, 0.0, 1, swap_memory=True)
opt = tf.train.GradientDescentOptimizer(0.001)
grad = opt.compute_gradients(res)

sess = tf.Session()
sess.run(tf.initialize_all_variables())
sess.run(res)
sess.run(grad)

This was tested on a machine with a GTX1070 and 24GB RAM.
I'm guessing that what's happening is that tensorflow is only keeping track of data necessary for one iteration of foldl at a time when computing res (~40MB) but has to keep track of all the memory in all iterations of foldl when computing grad (~400GB).
In fact, reducing arr to be of size 1000x1000, still causes an OOM error, but reducing the size of arr to be 500x1000 ends up with the code block succeeding. This makes sense given that setting arr to these two sizes requires ~40GB and ~20GB respectively, the latter of which just fits on my machine's memory.
From what I understand of automatic differentiation, tensorflow shouldn't need to simultaneously keep track of the data needed across all iterations of foldl when computing gradients. Or am I missing something?

I believe TensorFlow doesn't (yet) have optimized scheduling policies that intelligently trade-offs among latency and memory.  Adding @yuanbyu for further comments.

Thanks for the reply @concretevitamin :)
I'm not entirely sure a complex scheduling policy would be needed in this case. Wouldn't it be enough to just compute the gradient from each iteration individually and then incrementally build up the overall gradient of foldl? This would be similar to the way I imagine the actual value of foldl is currently computed.
Also do you happen to know of any way I could work around this memory issue given the current implementation of tensorflow?

I don't know if the proposed backward algo is doable with the current implementation.  Maybe Yuan can comment.
In the mean time, could you try to break up the long foldl into a few pieces, and perhaps place control dependencies among them?

No. If the backprop needs a forward tensor, it needs its values for all iterations. This is very similar to a very deep network where each iteration can be viewed as a layer. Of course, this can be optimized by for example recomputing the values as opposed to keeping them in memory.


Adsk Contrib - Refactor clamp function.

Use a single clamp function.
Add tests for nan and infinity in source image (CPU and GPU).

24 hour merge warning. Please have a look if you haven't yet.


Transaction shows 0 TEST fee

SUMMARY
I send an EIP-1559 transaction to a contract, passing 1 TEST.
See: https://explorer.oasis.io/testnet/sapphire/tx/0xbafdf0a3c4ba0d3cdb40ba6c7dacd9ec31ce70cfd4b9f8ce19b0cd6d79106784
Fee accumulator receives 0.028913 TEST from tx sender
Tx sender passes 1 TEST to contract A
Contract A sends 0.004493802 TEST to contract B
Contract A refunds 0.995506198 TEST
ISSUE TYPE

Bug Report

STEPS TO REPRODUCE
Submit EIP-1559 transaction which includes a non-zero value.
ACTUAL RESULTS
Explorer shows 0 TEST as the transaction fee.
EXPECTED RESULTS
Explorer should show tx cost as 0.028913 TEST

https://github.com/oasisprotocol/nexus/blob/main/analyzer/uncategorized/evm_raw_tx.go#L36-L40
oh yeah this bit is out of date, there is a base fee now


corrected typo error in README.md file

Issues #434 PR request:
Closes : #434 :
There was a typo error in Local Development Section In the 8 Serial Number where I corrected the word "not" to "now".
Previous Sentence :
8. Your Parse Server is not running and is connected to your local database named dev in which the data is stored that you manage via Parse Server.
Now correct Sentence :
8. Your Parse Server is now running and is connected to your local database named dev in which the data is stored that you manage via Parse Server.

Closes : #434


CLN: Add dataclass DerivedNamedStratigraphy

Adressess: https://github.com/equinor/fmu-dataio/issues/457

As I read it, should be 1:1 with existing functionality for doing lookup in the stratigraphic column and replacing given name with derived actual name.

Correct, there should be no new logical changes here. Expect for that we now use a dataclass insted of a dict to communicate between functions/classes.


Change workflows to auto-add issues to GitHub Project because of deprecation

Change workflows to auto-add issues to GitHub Project
https://www.cloudwithchris.com/blog/github-projects-ga-automation-updates/

aren't we using GH projects @tomkerkhove ?

Yes, but we need to update our automation

Completed through https://github.com/kedacore/keda/pull/4245


Urls

Coverage increased (+1.9%) to 92.014% when pulling 95356a51bd70c3527df074f123e0af1de1face9e on urls into 942b9d0a35c45c52876e36f714fe849731c03df1 on master.

Coverage increased (+2.4%) to 92.535% when pulling b2d479b65d8a1d443cbfc8b836efab19adf590f1 on urls into 942b9d0a35c45c52876e36f714fe849731c03df1 on master.

Coverage increased (+2.4%) to 92.535% when pulling 36bc8c2708ae35fc90d39bd673b9c56427cc0912 on urls into 942b9d0a35c45c52876e36f714fe849731c03df1 on master.

Coverage increased (+2.4%) to 92.535% when pulling 8d902a0b472d2279da323bdc5d5d786a48fd7601 on urls into 942b9d0a35c45c52876e36f714fe849731c03df1 on master.

Coverage increased (+2.4%) to 92.535% when pulling 0fecbd524499e4d69c8a950fef749dc59724f22c on urls into 942b9d0a35c45c52876e36f714fe849731c03df1 on master.

Coverage increased (+2.4%) to 92.535% when pulling be16cb9664c74676b90eb1523e398aa2f2d77b67 on urls into 942b9d0a35c45c52876e36f714fe849731c03df1 on master.


Type error in wallet command

i try to fix it using the vorpal api but it has not implemented .type for the arguments of .command
I found the funcion here but only validates the type without doing a toString or something similar this._types never use again.
so I saw the problem with the type number only occurs in the wallet command because it uses a replace

Thanks :)


Translation format diff problem

@EmileRolley I think we have a quite serious contribution problem consisting of enormous diffs caused by the formatting of the yaml translation files.
Makes PR file diffs confusing for nothing.
E.g. https://github.com/datagir/nosgestesclimat-site/pull/749/files

@EmileRolley is this closed ?


Add copyright and license statements in every source code file

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Add copyright and license statement in every source code file
Describe alternatives you've considered
None
Additional context
None

" Copyright 2023 Simplii from Group74 NCSU CSC510
Licensed under the MIT/X11 License (http://opensource.org/licenses/MIT) "
I added the above two lines of statement in every source code file(.py, .js, .html, .css). We don`t need to add the whole contents of MIT license there which is tedious and unnecessary. Instead, we just declare the license name followed by the official website pointing to the license body


Add methods for finding spec file

recheck

/packit build

* packit-tests-rpm  : FAILURE in 5m 45s

#694 should address that. I'll rebase once it's merged.

recheck

recheck

Hmm, is mergeit label not working anymore?
Merging myself.

@lbarcziova can we have the documentation changed as well, please?

@jpopelka yes, I will change it


Add CLO processing notebook

The Cell Line Ontology (CLO) is a detailed resource, however it does not follow standard OBO modeling pattern for cross-references that either a predicate from SKOS or oboInOwl:hasDbXref to point to a single CURIE encoded as a string. Instead, it uses rdfs:seeAlso with a combination of non-standard CURIEs that are either comma or semi-colon delimited.
Depends on:

https://github.com/biopragmatics/bioregistry/pull/896

@bgyori CLO kind of has mappings available, but they need serious processing effort to get at. How should this relate to biomappings? Should we import directly into the "positive" mappings file? Or should we put them in "predicted" mappings file then allow a second round of curation?
@matentzn I also wasn't sure what the right semapv tag was to tag things extracted from an ontology. In theory, they are manually curated, but there's no actual evidence of how they were done, so I don't think it's fair to assume.

@cthoyt I have struggled with the same! I would keep the mapping predicate as oboInOwl:hasDbXref which already provides a warning sign, and record the semapv:UnspecifiedMatching as the mapping_justification.

@cthoyt it looks like this PR adds xrefs from CLO as predictions and allows us to review and curated them manually to add them to mappings. I think this is appropriate under the assumption that a considerable number of these mappings are non-exact and therefore require review. If, however, we assume that the xrefs CLO provides are almost all actual exact equivalences then going through Biomappings shouldn't be necessary. In my cursory spot checking, to me it looks like these xrefs are exact mappings. So perhaps a better path forward would be to change CLO's representation to move these into proper xrefs rather than "see also" relations?

@bgyori, agreed, a lot of them that point to MeSH, BTO, and Cellosaurus are pretty high quality. Therefore, I moved the processing functionality into SeMRA.
I also added a many-to-many finder pipeline in SeMRA to assess the situation in CLO - I found 26 mappings that I want to manually curate and include in Biomappings as some must be non-exact.
For the rest of the mappings that could be exact, I asked in https://github.com/CLO-ontology/CLO/issues/103 if we can turn some of these into proper xrefs.

See also https://github.com/CLO-ontology/CLO/issues/104


[master] Add reserve flag to get_volume_connector

In the function get_volume_connector, if the reserve flag is True,
reserve the FCP device. If the reserve flag is False and the FCP's
connections is 0 then unreserve it.

please review https://github.com/openmainframeproject/python-zvm-sdk/pull/264/files.
It is based on 1.5.n


Azure publishing hangs when no publishing profile exists

Describe the bug
Created a simple ToDo bot and tried to publish to Azure. Composer reports "Publishing 1 bots" constantly and hasn't actually created any resources in Azure. This is due to a publish profile not being created yet the Publish to Azure functionality lets me proceed to publishing.
Version
1.3.1-nightly.204896.1ed31e1
Browser

[x] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

New
Create from Template
Todo with LUIS
Publish tab
Publish selected bots

Expected behavior
If no publish profile exists (new bot) then put me directly into the "new publish profile" flow and guide me through.
Also - no error is shown?
Screenshots

Additional context

@alanlong9278 Could you take a look

@alanlong9278 Could you take a look

Like the below image show, the publish button can not be clicked if the selected bot has no publish profile currently.

Should we have a guide flow like poping up a notice say U should create a publish profile when clicking or hovering in the publish button?

Like the below image show, the publish button can not be clicked if the selected bot has no publish profile currently.

Should we have a guide flow like poping up a notice say U should create a publish profile when clicking or hovering in the publish button?

@alanlong9278 So, why do we let publishing to happen when there is not publishing profile?

@alanlong9278 So, why do we let publishing to happen when there is not publishing profile?

Publish button is disabled when there is no publish profile. But I have checked that the code is just merged into main branch not for release branch. So maybe we should wait a while for release new version. @srinaath

Publish button is disabled when there is no publish profile. But I have checked that the code is just merged into main branch not for release branch. So maybe we should wait a while for release new version. @srinaath

Close this issue because this is already fixed in the latest main branch. @darrenj please try the latest nightly build.


SendInput not working as expected in .NET Core project

Describe the bug
In a .NET Core project, SendInput for a Keyboard Event does nothing
What code is involved
Versions:

Vanara.User32: 3.3.8
Target: net5.0-windows

Reproduce steps:

Call User32.SendInput with a keyboard down event to press 'm'

Expected behavior
The key 'm' is pressed.

Can I guess that it is 64-bit? I made an assumption on the INPUT structure offset of the union that I'm guessing doesn't align.


Edit this page on github results in 404 for landing page

Looking at this landing page and clicking on "edit this page on github" returns a 404 (src/pages/.md)

fixed with #707


decide epoch num

Hello,
Probably a trivial question:
The fine-tuning does not take a batch_size. It looks like input datasets are somehow grouped. Is there any best practice to decide a proper epoch num for finetuning in LMFlow? (e.g., how to compute the num of epoch for passing the entire dataset)?

Thanks for your interest in LMFLow! That's a very important question and non-trivial at all. The value of number of epochs varies from dataset to dataset. One way is simply trying: you may increase the number of epochs from small to large, e.g. 0.01, 0.1, 1, 10, and narrow the scope according to the output performance.
If you don't want this group behavior, you may pass the option --disable_group_texts True. Notice that long samples will still be cut into small pieces, so that the transformer model can accept the input.

thanks for your prompt reply. may I ask what is the num of epoch used to finetune llama 7B with alpaca for the released ckpt?

We use 3 epochs for both instruction tuning and medical dataset finetuning.

thanks for your response!


fix: add arrayfield component to componentOnly form renderer

Issue #, if available:
Description of changes:

Fix ArrayField component dependency for rendering in Studio

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #644 (3f5bd52) into tagged-release/forms-and-views (c57d477) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@                        Coverage Diff                         @@
##           tagged-release/forms-and-views     #644      +/-   ##
==================================================================
- Coverage                           90.37%   90.34%   -0.03%
==================================================================
  Files                                  96       96
  Lines                                3594     3595       +1
  Branches                              967      967
==================================================================
  Hits                                 3248     3248
- Misses                                321      322       +1
  Partials                               25       25

Impacted Files
Coverage Δ

.../codegen-ui-react/lib/forms/react-form-renderer.ts
78.04% <0.00%> (-0.64%)
: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 c57d477...3f5bd52. Read the comment docs.


Pretty printer missing for synthetic trait params

> import dialects.Dotty
import dialects.Dotty
> "trait T(a: Int)".parse[Stat].get
res4: Stat = trait T(a: Int) // OK
> q"trait T(a: Int)"
res5: Defn.Trait = trait T // Not OK

Working on this issue right now :)

The commit was merged, so this ticket can be closed :)

Thank you @xavier-fernandez !


Add activation event on language

fixes #952

already covered by https://github.com/microsoft/vscode-extension-samples/pull/982


Add execution time

Would like to add run_results.json to the processing engine, including the execution time per model. Have some code written for this locally and would appreciate guidance on how to commit to your repo for review.

Hi Matt,
Many thanks for raising an issue.
I've added some notes on contributing to the repo here
It would be interesting to hear a little more about what you intend to do with the run_results.json file to make sure it fits with the intent behind this repo, as on the face of it this feels as though this may take it beyond a DAG auditing tool.
Using run_results.json will require dbt to be run and not just compiled, so we want to make sure we go into it with our eyes open.

Hi Matt,
Many thanks for raising an issue.
I've added some notes on contributing to the repo here
It would be interesting to hear a little more about what you intend to do with the run_results.json file to make sure it fits with the intent behind this repo, as on the face of it this feels as though this may take it beyond a DAG auditing tool.
Using run_results.json will require dbt to be run and not just compiled, so we want to make sure we go into it with our eyes open.


add riscv32nommu uclibc cross-compile target

Description of changes
this enables running binaries produced by nix on a rv32nommu linux build
nix run github:cleverca22/mini-rv32ima
this demo will build a complete emulator, linux, and a minimal busybox env for testing
Things done

Built on platform(s)

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

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

[x] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

What is happening here?

@AndersonTorres this allows nix to cross-compile to a nommu rv32 target
the branch still needs some work, but i'm open to review comments now

It's a bit difficult to review at the moment, but I'm happy to once the commits are a bit more logically broken up and have proper commit messages.


Nest sensors not loading from 0.32.0

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.32.2
Python release (python3 --version):
Python 3.4.2
Component/platform:
RPi 3
Description of problem:
Since 0.32.0 the nest sensors have not been loading as sensors under Current entities
Expected:
I get the following sensors in 0.31.1 but they do not appear from 0.32.0 onwards
sensor.hallway_humidity
sensor.hallway_humidity_2
sensor.hallway_last_ip
sensor.hallway_temperature
sensor.hallway_temperature_2
debug mode enabled and I get the following logs
16-11-08 11:13:30 homeassistant.components.nest: Structures to include: ['Home']
16-11-08 11:14:27 homeassistant.components.sensor.command_line: Running command: cat /sys/class/thermal/thermal_zone0/temp
16-11-08 11:14:27 homeassistant.components.sensor: Error while setting up platform nest
Traceback (most recent call last):
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 148, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in iter
yield self  # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/hass/.homeassistant/custom_components/sensor/nest.py", line 56, in setup_platform
for structure, device in chain(nest.devices(), nest.protect_devices()):
AttributeError: 'module' object has no attribute 'devices'
Rolling back to 0.31.1 brings all the sensors back.

Duplicate with #4293


Build failure: newt-0.52.24 on darwin

Steps To Reproduce
Steps to reproduce the behavior:

build newt-0.52.24 on darwin

Build log
error: builder for '/nix/store/3gjmcw2j4kafgnhn5mcywdkrf3xzrajn-newt-0.52.24.drv' failed with exit code 1;
       last 10 log lines:
       >         install -c -m 644 $mo //nix/store/2383v92yw3q9x7rqfywq0y68j7izfrpb-newt-0.52.24/share/locale/$l/LC_MESSAGES/newt.mo; \
       >     fi; \
       > done
       > make[1]: Leaving directory '/private/tmp/nix-build-newt-0.52.24.drv-0/newt-0.52.24/po'
       > Running phase: fixupPhase
       > checking for references to /private/tmp/nix-build-newt-0.52.24.drv-0/ in /nix/store/2383v92yw3q9x7rqfywq0y68j7izfrpb-newt-0.52.24...
       > gzipping man pages under /nix/store/2383v92yw3q9x7rqfywq0y68j7izfrpb-newt-0.52.24/share/man/
       > patching script interpreter paths in /nix/store/2383v92yw3q9x7rqfywq0y68j7izfrpb-newt-0.52.24
       > stripping (with command strip and flags -S) in  /nix/store/2383v92yw3q9x7rqfywq0y68j7izfrpb-newt-0.52.24/lib /nix/store/2383v92yw3q9x7rqfywq0y68j7izfrpb-newt-0.52.24/bin
       > error: /nix/store/r4z0c8m95f6gp0zyrcxg0mr6m9fmsnn0-cctools-binutils-darwin-16.0.6-973.0.1/bin/install_name_tool: changing install names or rpaths can't be redone for: /nix/store/2383v92yw3q9x7rqfywq0y68j7izfrpb-newt-0.52.24/bin/whiptail (for architecture arm64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
       For full logs, run 'nix log /nix/store/3gjmcw2j4kafgnhn5mcywdkrf3xzrajn-newt-0.52.24.drv'.
error: 1 dependencies of derivation '/nix/store/q6j0h4mp0lpkwalbv9mz0ys8cpb35dd5-python3-3.11.9-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yxwx10z8vnlrxxhl1svywsv3fn2gk2hi-byobu-6.12.drv' failed to build
error: 1 dependencies of derivation '/nix/store/llx5vgbv1yjiwisy321f3qq2kqgajxlw-system-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5iq0sdz3150qjkplbm68jbsz68cik3yn-darwin-system-24.05.20240903.6f6c45b+darwin4.7655918.drv' failed to build

Additional context
Seems a macOS limitation with the long filename.
I worked around this on my system with an overlay:
pkgs = import nixpkgs {
        inherit system;
        overlays = [
          (self: super: {
            newt = super.newt.overrideAttrs (oldAttrs: rec {
              NIX_LDFLAGS = [ "-headerpad_max_install_names" ];
            });
          })
        ];
      };

Notify maintainers
None specified
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
 - host os: `Darwin 23.6.0, macOS 14.6.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/Users/felix/.nix-defexpr/channels/nixpkgs`

Are you ok to make a Pull Request?

Are you ok to make a Pull Request?

If this command works, I guess someone already fixed it?
nix build github:NixOS/nixpkgs/master#newt

If this command works, I guess someone already fixed it?

The file is unchanged, but I notice you are running 24.05. Might be worth switching to unstable to see if it works for you there?

The file is unchanged

yea, that's why I wondered, too.
Maybe something else changed to fix it?

yea, that's why I wondered, too.
Maybe something else changed to fix it?

Yes most likely. You are building against master when you do nix build github:NixOS/nixpkgs/master#newt, so it works in master. Doesn't work in 24.05. Would be interesting to see whether it works in unstable.

yea, that's why I wondered, too.
Maybe something else changed to fix it?

Yes most likely. You are building against master when you do nix build github:NixOS/nixpkgs/master#newt, so it works in master. Doesn't work in 24.05. Would be interesting to see whether it works in unstable.

If I build with and remove my overlay it works
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    home-manager.url = "github:nix-community/home-manager/release-24.05";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
    nix-darwin.url = "github:LnL7/nix-darwin";
    nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
  };

Already fixed in unstable


Update dependencies on the word converter

This PR updates all the NuGet packages for the word converter, and the other tools.
The first commit updates every NuGet package to the "latest stable" except the FSharp.Formatting package.
After that, I updated the FSharp.Formatting package iteratively in successive commits to get it to the latest version. In most cases, I fixed issues as they appeared. Many were compilation errors because new arguments were added to methods, or namespaces changed.
v 16.0.1 fixed the issue Jon had noted regarding parsing emphasis blocks. In that update, I removed the block of code that worked around that issue.
That same update introduced some false positive unit test failures. The new version created text nodes with a single space character before changing styles. The appearance was the same. Even after updating the existing results these tests still failed. This is the first area I'd like help fixing. The validation code seems to view those nodes as empty, not having a single space. It also introduced one new bug.  If a block of emphasis text didn't end with at the end of a word, the parser didn't find the end of the emphasis block, but rather added the * character in the text and extended the emphasis text until the next end marker was found. I added a new test for this. It's the test resource for "emphasis-with-plural.md".
v 16.0.2 fixed a parsing error introduced in the previous update. However, the unit test still failed with the same false positive noted above. In addition, it introduced a new failure. Starting in this version, tables that included bold code were are incorrect.
The source is **+x**, with the "+x" also code font:  x. The output is italicized, with the additional *:  *+x*. I added a new test for this, and tried to update the XML output correctly.
Those failures remain through the additional updates until the current version.

@jskeet
This isn't ready to merge, but it's worth taking a look.
Any pointers on fixing the false positive unit tests is appreciated. I'll work on trying to fix the actual issue regarding the math operator tables.

Marking this ready, as I now need help on getting the unit tests to pass.


CLOUD-975 reduce db access and object size

@akanto

Jenkins build failed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1566/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1567/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1568/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1569/

Jenkins build failed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1570/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1571/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1575/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1576/

nice. LGTM


Can't build RealmSwift inside a framework

How frequently does the bug occur?
Always
Description
Tried both Cocoapods and Swift package manager

Podfile:
TARGET_IOS_VERSION = '15.0'

workspace 'Boilerplate'
platform :ios, TARGET_IOS_VERSION

def main_pods
  pod 'MBProgressHUD', '1.2.0'
  pod 'ReachabilitySwift', '5.0.0'

  #https://github.com/wxxsw/GSMessages/tags
  pod "GSMessages", '1.7.5'

  #https://github.com/SDWebImage/SDWebImage/blob/master/CHANGELOG.md
  pod 'SDWebImage', '5.18.2'
  pod 'SDWebImageSVGCoder', '1.7.0'

  #https://github.com/gmarm/BetterSegmentedControl/releases
  pod 'BetterSegmentedControl', '2.0.1'

  #https://help.branch.io/developers-hub/docs/ios-version-history
  pod 'BranchSDK', '2.2.2'

  #https://firebase.google.com/support/release-notes/ios
  pod 'Firebase/AnalyticsWithoutAdIdSupport', '10.16.0'
  pod 'FirebaseCrashlytics', '10.16.0'
  pod 'FirebaseMessaging', '10.16.0'

  #https://github.com/ninjaprox/NVActivityIndicatorView/releases
  pod "NVActivityIndicatorView", '5.1.1'

  #https://github.com/TimOliver/TOCropViewController/
  pod 'CropViewController', '2.6.1'

  #https://github.com/jonkykong/SideMenu
  pod 'SideMenu', '6.5.0'

  #https://github.com/marmelroy/PhoneNumberKit/releases
  pod 'PhoneNumberKit', '3.7.4'

  #https://github.com/google/GoogleSignIn-iOS/releases
  pod 'GoogleSignIn', '7.0.0'

  #https://github.com/SVGKit/SVGKit/releases
  pod 'SVGKit', '3.0.0'

end

target 'BoilerplateFramework' do
  project 'BoilerplateFramework.xcodeproj'
  use_frameworks!

  main_pods

end

target 'Main' do
  project 'Main.xcodeproj'
  use_frameworks!

  main_pods

end

post_install do |installer|
   installer.pods_project.targets.each do |target|
     target.build_configurations.each do |config|
       config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = TARGET_IOS_VERSION
       #fix for xcode 14: require bundle target having code signing
       config.build_settings['CODE_SIGN_IDENTITY'] = ''
     end
   end

   installer.aggregate_targets.each do |target|
     target.xcconfigs.each do |variant, xcconfig|
       xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
       IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
     end
   end
   installer.pods_project.targets.each do |target|
     target.build_configurations.each do |config|
       if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
         xcconfig_path = config.base_configuration_reference.real_path
         IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
       end
     end
   end
 end

Anyone can help?
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
10.43.0
What Atlas Services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
iOS Simulator 17.0
Build environment
Xcode version: 14.3.1
Dependency manager and version: COCOAPODS 1.13.0

In your podfile, where is
pod 'Realm', '~>10'

Closing this due to lack of response.


Implement Info in the oci store content implementation

Signed-off-by: oanatmaria<EMAIL_ADDRESS>

Hi @shizhMSFT !
One more please? :)

Hi @viovanov ,
I think we can prepare a new release for v1 to include this change. Considering ORAS-go v2 is still experimental, ORAS-go v1 will be maintained by the ORAS community until ORAS v2 GA. Currently, ORAS-go v1 is not under active development, thus the ORAS community will only publish new releases to include necessary fixes/updates at a low rate.


Add Ubuntu 18.04 LTS to OBS

Related to:

https://github.com/kata-containers/ci/issues/21
https://github.com/kata-containers/documentation/pull/61

ubuntu 18.04 already in OBS, will close this one.


CloudTraceExtensions.TryAddGoogleTraceContextProvider is missing

Hi,
I upgraded to Google.Cloud.Diagnostics.AspNetCore3 4.3.0-beta01 and have had to make a few changes to my code to accommodate various obsoletions and changes.
I have this code in my ConfigureServices method:
services.AddSingleton<ITraceContext>(new GoogleTraceProvider());
In the beta this no longer compiles. It tells me to: "Use CloudTraceExtensions.TryAddGoogleTraceContextProvider instead."
That method does not seem to exist.

Thanks for the report - I'll have a look on Monday. It's possible that the message should just be changed to "Use CloudTraceExtensions.AddGoogleTrace instead" - that method definitely does exist.

It's here https://github.com/googleapis/google-cloud-dotnet/blob/ceb62cbb84ff22b9d1c1f94c0b298d2dbc32c3ee/apis/Google.Cloud.Diagnostics.AspNetCore/Google.Cloud.Diagnostics.AspNetCore/Trace/CloudTraceExtension.cs#L157

@amanda-tarafa Is it not in this beta? There is only 1 CloudTraceExtensions class showing up and it looks like this:

@EatonZ: That's a different class - the one Amanda pointed to before is in Google.Cloud.Diagnostics.AspNetCore

@jskeet I figured it out now.
The obsoletion suggested this: CloudTraceExtensions.TryAddGoogleTraceContextProvider
When it should be this: CloudTraceExtension.TryAddGoogleTraceContextProvider
There is a CloudTraceExtensions and a CloudTraceExtension class.
IntelliSense didn't pick up the non-s version immediately.

Ah yes, sorry for the confusion. I'll update the Obsolete suggestion to include the full namespace and remove the s.
The class in Common is new so I named it with the usual naming convention, with the s. The one in AspNetCore* it's older and changing the name now to include the s would be breaking.


[TEST] Ignoring unit tests as UI elements make these unit test unreli…

…able.
@urena-kenny

:white_check_mark: Build finished in 6m 2s
Build command:
mvn clean verify -B -e -Daudit -amd -pl plugins/json/core

:ok_hand: All tests passed!
Tests run: 107, Failures: 0, Skipped: 5    Test Results

:information_source:  This is an automatic message


introduces a startup monitor

Implemented as a controller that watches an operand's health condition
and falls back to the previous version in case the current version is considered unhealthy.
The controller understands a tree structure created by an OCP installation. That is:

The root manifest are looked up in the manifestPath
The revisioned manifest are looked up in the staticPodResourcesPath
The target (operand) name is derived from the targetName.

In short:
The startup-monitor will link the revision to /etc/kubernetes/static-pods/last-known-good and then remove its own pod-manifest from /etc/kubernetes when the target becomes ready.
In case a target becomes unhealthy it will copy the pod-manifest from /etc/kubernetes/static-pods/last-known-good to /etc/kubernetes
xref: https://github.com/openshift/enhancements/pull/833

/assign @sttts @marun

/lgtm

Needs squashing.
Then lgtm.
/approve

/lgtm


SSH authentication issue with netopeer2-server

Hi,
I was installing netopeer2-server and sysrepo in an embedded platform. Both servers came up fine. However when I try an ssh to the server from outside, using the following command:
ssh<EMAIL_ADDRESS>-p 830
I hit the following error from server side:
netopeer2-server[544]: Accepted a connection on <IP_ADDRESS>:830.
[2017/10/18 12:41:30.571123, 1] ssh_bind_options_set_algo:  Setting method: no algorithm for method "server host key algo" (/etc/ssh/ssh_host_rsa_key)
netopeer2-server[544]: Failed to set hostkey "default" (/etc/ssh/ssh_host_rsa_key).
Same error if I use netopeer2-cli to connect and the error on the cli shows:

connect
nc ERROR: Starting the SSH session failed (Socket error: Connection reset by peer).
cmd_connect: Connecting to the localhost:830 as user "ncuser" failed.

Btw it runs all fine on x86 Linux.
Could anyone shed some light on to it?
Thank you.

Problem solved with help from the community. I posted my solution on another thread.
Problem solved! Thank you @lrodrin for your great suggestion! It looks like ldconfig points to an old version of libssh (4.4.1), while it looks like sysrepo works with libssh 4.5.0.
After I removed /etc/ld.so.cache and regenerate with sudo ldconfig, and re-run sysrepo and netopeer2, it worked well and I am now able to ssh to port 830.

@agva123 I receive the same problem, and Problem solved.
by the way，log as：
‘
root@switch2:/usr/local/lib# VERBOSE: Accepted a connection on <IP_ADDRESS>:830.
ERROR: inet_ntop failed (No space left on device).
[2018/07/20 05:39:04.971238, 1] ssh_bind_options_set_algo:  Setting method: no algorithm for method "server host key algo" (/etc/ssh/ssh_host_rsa_key)
ERROR: Failed to set hostkey "default" (/etc/ssh/ssh_host_rsa_key).
’

Hi @agva123 , is there any way to check which version of libssh the sysrepo and netconf is using? I can see that there is only one version installed on my system through ldconfig:
ldconfig -p | grep libssh:
libssh.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssh.so.4
libssh.so.4 (libc6,x86-64) => /usr/lib/libssh.so.4
libssh.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssh.so
libssh.so (libc6,x86-64) => /usr/lib/libssh.so
But I remember having to install the latest libssh (from source since Ubuntu 16.04 only supports an older version).
Also, I am looking at the netconf code since the error line "Failed to set hostkey" is coming from "libnetconf2/src/session_server_ssh.c line 1315" after it fails to add hostkeys.
Thanks

Hi,
you can learn that with ldd <path-to-binary>. You want to check your netopeer2-server because sysrepo itself does not use libssh.
Regards,
Michal


fix: SASS deprecated lighten, darken and color methods

Description
fixes issue #40849

another deprecation from SASS which is again displaying a load of console warnings
more info on SASS website: https://sass-lang.com/documentation/breaking-changes/color-functions/

Motivation & Context
latest SASS version v1.79.x and higher are now showing a bunch of deprecation warnings as shown below.

Type of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring (non-breaking change)
[ ] Breaking change (fix or feature that would change existing functionality)

Checklist

[x] I have read the contributing guidelines
[x] My code follows the code style of the project (using npm run lint)
[ ] My change introduces changes to the documentation
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[x] All new and existing tests passed

Live previews

https://deploy-preview-{your_pr_number}--twbs-bootstrap.netlify.app/

Related issues

Thanks for your work here @ghiscoding
However, Bootstrap 5 still needs to support node-sass, so we can't use sass:color as done in this PR (see https://github.com/twbs/bootstrap/pull/40864#issuecomment-2365158707).
Thanks for your work on this! I'm going to close it for now to help keep our backlog manageable. Feel free to reopen it if you come up with a different or new solution :)


Upload the half photo on DeepSlice

Hi，Harry，
I have another question about the DeepSlice.
Because of the time-consuming of one confocal photo for whole brain. is it necessary to take the photo for the whole slice?  It can directly save half time. But seemly that I cannot upload photos like that.
May be it can be renewed. Or It is my fault not finding the correct method.
I am looking forward for your kind replying
Best wishes for your life!
Zoey

Hi Zoey,
we do not support hemisections. If possible you could take a low resolution image of the slide and use this for deepslice. Aligning your tissue in this way. Else, QuickNii supports fully manual registrations of hemi sections.
all the best,
Harry

Harry, thank you for your advice， It really works for me!！


Don't use loops to figure out which item is selected

Describe the bug
Currently this code is what is in there:
  for (let optionsIndex = 0; optionsIndex < this.items.length; optionsIndex += 1) {
    if (this.items[optionsIndex].hasAttribute('selected')) {
      focusIndex = optionsIndex;
    }
  }

Instead we should just do something like focusIndex = this.items.indexOf(evt.target);

What issue is this code causing? What is a proposed refactor?

Reference: https://github.com/AlaskaAirlines/auro-select/pull/35#discussion_r809531053

The proposed focusIndex = this.items.indexOf(evt.target); doesn't take into account the selected attribute? This will just return the index of the targeted element?
The purpose of this code is to roll through all the options in a menu and return the index of the one option with the selected attribute.
Although, this will need to be updated to an array since there is a future ask to have multiple selected options. But... future.

This whole section of code is only being used to apply .focus(). Focus is only ever going to go onto the menuoption that was clicked on. Since that menuoption is already known from the click event where this code executes there is no need to re-find the same object that was already passed in with event.target.
That said, since we are looking at moving forward with the aria solution in the future we would not be applying focus to menuoptions in the future. So I propose we ignore this ticket and just close it out.


InfoBadge refactor and Unit Test app

A continued effort in the refactor experiments, adding a logic implementation namespace and unit test app to decouple the logic from the framework details.

/azp run

/azp run


Use lastest version of jsdom to fix build issues with newer versions of Node

I was having similar issues as the ones detailed here https://github.com/arkency/reactjs_koans/issues/45.  The issue is directly related to the contextify package that jsdom was using.  The latest version no longer uses that package (https://github.com/tmpvar/jsdom/issues/1188)

Please merge if working :+1:

Tests doesn't work. Sorry I merged it so fast without actually checking. Ref. #50

Fixed in d7b7a45


feat: Enable writing with a consistency level

Added consistency level as a Spark option.
Updated batch writer to use consistency level when set.

I agree with the Contributor License Agreement.


The following resource(s) failed to create: [OriginAccessControl]

The origin access control step keeps failing. I have followed the steps in the description not sure how I can get more detailed info.

I did a fresh run using this template. I received the following error. I have since given up on using the template and did things manually.
Embedded stack arn:aws:cloudformation:us-east-1:344892229030:stack/TestPlzDelete-CloudFrontStack-17KFHTH7YSBO/31b150b0-5748-11ee-83e7-0e75682bbb33 was not successfully created: The following resource(s) failed to create: [CloudFrontDistribution].


Minor Typo in README

Just a minor typo in the README file: noticed that the player in media player was spelt wrongly.

I'm trying to find it. Can you tell me exactly where it is?

Hi
the typo is in the overview section:
"SmartIR is a custom integration for controlling climate devices, media palyers and fans via infrared controllers."
Bye

Thanks


CRD for configuration

We consider creating a CRD per this whole operator, that handles configuration and deployment options for it.
One of those configuration items could be the default placements we want to export, their namespace, etc.

/kind feature


Users need an escape hatch to be able to arbitrarily tweak Ambassador's generated Envoy configuration

We can likely start with just permitted them to edit the templates Ambassador uses.

ba8c95ebf408bc80ff7a6b8da71b1981305ab178 includes this.

FIxed in 0.13.


Please disregard.

Please disregard.

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

ID: 105783bc-d51e-c199-7c51-1475bc9fbaa0
Version Independent ID: 114c01b8-8b95-ff91-98c5-fd44b12ac6fc
Content: Tutorial - Configure HTTPS on a custom domain for Azure Front Door
Content Source: articles/frontdoor/front-door-custom-domain-https.md
Service: frontdoor
GitHub Login: @duongau
Microsoft Alias: duau

@IDQ-BTahedl Hope you have self resolved and hence closed & edited the issue. Thanks for the update.


Search Bar/Button Component

Many web applications these days offer a searchbar:

Select a webcomponent that suits this purpose

Note:
<paper-search> might be a good fit for this

closed by 854e7c896e75d0acfcc2f2c71664bff337a502c7


fix: chromium downloading hung at 99%

bugfix: https://github.com/puppeteer/puppeteer/issues/5048

checks failing is not my reason, how to fix it to work well


Best way to protect stream key?

Hi,
I'm wondering what would be the best way to protect a stream key somebody enters via OBS for example... Is there a way I can dynamically alias the url as to hide the stream key? Thanks!

you 'll need a database with a unique shortid for each user

I come from an Nginx background and I have successfully used the on_publish directive to authenticate a stream. Others in this project have requested similar functionality but I'm not sure of the current state of hooks/events are since I just installed this project.
https://github.com/illuspas/Node-Media-Server/issues/8
https://github.com/illuspas/Node-Media-Server/issues/13
Point to the same kind of request but then they say making a remote database call is impossible since the events are not asynchronous. Perhaps this has been updated and I just haven't seen it yet?


Allows MSON obejcts to have a description

Currently when defining an MSON object  you need to do something like the following:
## User (object)
+ email (string, required) - the email of the user
+ name (string, required) - the user's name

Which lets you describe the elements of the object, but not the object overall. It would be handy to be able to have the ability to add a description for the object, perhaps like this:
## User (object)
Represents a user of the system.
+ email (string, required) - the email of the user
+ name (string, required) - the user's name

This is a really trivial example, and I'd likely not do it for such an obvious object, however, for more domain specific objects, this would help a lot with understanding.
I bring this up simply because I did this in a Data Structure section on apiary.io and my api's that were referring were simply showing empty objects.  Once I removed the descriptions, things started showing as expected.
Ideally this support would be added in to the Spec.  Alternatively, since this seems to not be allowed in the spec currently, an error should have showed up telling me this was invalid.

Hi @dijitalmunky, it's already possible to attach a description to an object. Check the type sections part of the MSON specification.
For example, here's a data structure for your example User:
## User
Represents a user of the system.

### Properties
+ email (string, required) - the email of the user
+ name (string, required) - the user's name

Ah, thanks I guess I missed that in the documentation!


Can u add logfile?

Programm starts and exits immediately. I have no idea why

Double-clicking on the hex_draw.py file, which causes a popup that immediately exits, is not how you run the tool. Python scripts are run using the python terminal command. Open your command line, navigate to the folder containing the script, and then run python hex_draw.py.
(I should probably add this to the readme)

Yeah. This is literally how I run python scripts.
> .\hex_draw.py

Ok. This is my mistake. But yeah "Usage" section can come in handy in times like this. Or -h arg.


Obsolete information

When creating a new project using a .sql file, the FAQ below needs to be updated to be in sync with the new version (optional backend storage)

Ah yes, thanks! Will change that.