Doom update error vterm

What did you expect to happen?
Run doom update without error after adding vterm
What actually happened?
➜ ~/.emacs.d/bin/doom update
> (Re)generating core autoloads...
  > Generating core autoloads...
  > Byte-compiling core autoloads file...
  ✓ Generated .local/autoloads.elc
> Updating packages (this may take a while)...
  ! (84/171) Encountered error with vterm
    x (error Failed to run "git"; see buffer *straight-process*)
      - fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
      Use '--' to separate paths from revisions, like this:
      'git <command> [<revision>...] -- [<file>...]'
      HEAD

x Encountered 1 error(s), the offending packages: vterm
✓ All 171 packages are up-to-date
✓ Finished! (61.7180s)

Steps to reproduce:

Running on macOS uncommented vterm
Ran doom update and it throws above error
doom refresh ran successfully
When tried to open terminal it says Cannot open file: No such file or directory, vterm

System information:

➜ ~/.emacs.d/bin/doom info
((emacs
  (version . "26.3")
  (features . "JPEG RSVG IMAGEMAGICK GLIB NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS LCMS2")
  (build . "Aug 30, 2019")
  (buildopts "--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/26.3/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/26.3 --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained")
  (windowsys . batch)
  (daemonp))
 (doom
  (version . "2.0.9")
  (build . "HEAD -> develop, origin/develop, origin/HEAD f82771980 2020-03-11 23:20:06 -0400")
  (dir . "~/.doom.d/"))
 (system
  (type . darwin)
  (config . "x86_64-apple-darwin18.5.0")
  (shell . "/usr/local/bin/fish")
  (uname . "Darwin 18.7.0 Darwin Kernel Version 18.7.0: Thu Jan 23 06:52:12 PST 2020; root:xnu-4903.278.25~1/RELEASE_X86_64 x86_64")
  (path "~/go/bin" "~/.local/bin" "~/Library/Python/3.7/bin" "/usr/local/opt/libpq/bin" "~/.poetry/bin" "~/.config/nvm/12.16.1/bin" "~/.wasmer/bin" "~/.wasmtime/bin" "~/.cargo/bin" "/usr/local/sbin" "~/bin" "~/.cargo/bin" "~/softwares/flutter/bin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/go/bin" "~/.wasmer/globals/wapm_packages/.bin" "/usr/local/Cellar/emacs-plus/26.3/libexec/emacs/26.3/x86_64-apple-darwin18.5.0"))
 (config
  (envfile . envvar-file)
  (elc-files . 0)
  (modules :completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold snippets :emacs dired electric vc :term vterm :checkers syntax :tools (eval +overlay) lookup magit :lang data emacs-lisp markdown (org +dragndrop +present) sh :config (default +bindings +smartparens))
  (packages "n/a")
  (unpin "n/a")
  (elpa "n/a")))

Does this fix your issue?
rm -rf ~/.emacs.d/.local/straight/repos/straight.el
rm -rf ~/.emacs.d/.local/straight/repos/vterm
doom sync

Yeah it solved the issue but running update again throws same error.
Also even after doom sync is successful and it see vterm build is running successful on SPC-o-t it throws error Cannot open file: No such file or directory, vterm

This usually means the build process failed. Press SPC b B and look for a buried vterm or compilation buffer. It should tell you why it failed.

I only one vterm related buffer doom:vterm-popup:main and its completely blank

Is there another wat to solve it? Same error here but the commands mentions above doesn't solve the issues for me


Store Orchard nullifiers in the finalized state

Is your feature request related to a problem? Please describe.
Transaction v5 introduces Orchard nullifiers, which we need to store in the finalized state.
Describe the solution you'd like

[x] Add orchard_nullifiers to the State RFC RocksDB column families

https://github.com/ZcashFoundation/zebra/blob/main/book/src/dev/rfcs/0005-state-updates.md#rocksdb-data-structures

[x] Store orchard_nullifiers in commit_finalized_direct
[x] Implement IntoDisk for orchard::Nullifier
[x] Update the disk state version to force a state rebuild
[ ] Rebuild the cached state for the integration CI tests

Describe alternatives you've considered
These changes are required for NU5.
Additional context
Nullifier sets are validated in #958.

This is blocked by https://github.com/ZcashFoundation/zebra/pull/2116

I made a PR for this at https://github.com/ZcashFoundation/zebra/pull/2185, i am unsure on how to do:

[ ] Rebuild the cached state for the integration CI tests

I made a PR for this at #2185, i am unsure on how to do:

[ ]  Rebuild the cached state for the integration CI tests

@dconnolly can show you how to do this on the Zebra test cloud.


Remove unnecessary workflow steps

Description
Remove unnecessary workflow steps
Issues Resolved
N/A
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@reta: shouldn't the same be done for 2.x then?
the step is also useless there as it won't build it against the snapshot and it won't store this anywhere, from what i can see...

@reta: shouldn't the same be done for 2.x then?
the step is also useless there as it won't build it against the snapshot and it won't store this anywhere, from what i can see...

I think for 2.x we would need to change workflow step a bit to make it useful, I will take care of it shortly


English Curriculum Tasks

Describe the Issue
The English Curriculum has been created as an upcoming superblock via https://github.com/freeCodeCamp/freeCodeCamp/pull/52201. Creating an issue to track things we can fix up and things left to do.
If you are hoping to contribute, please see the linked issues in the task list to see if they are open for contribution.
- [ ] https://github.com/freeCodeCamp/freeCodeCamp/issues/52306
- [ ] Add "Fill in the Blank" style challenge info to docs | https://github.com/freeCodeCamp/freeCodeCamp/pull/52305
- [ ] https://github.com/freeCodeCamp/freeCodeCamp/issues/52307
- [ ] https://github.com/freeCodeCamp/freeCodeCamp/issues/52308
- [ ] https://github.com/freeCodeCamp/freeCodeCamp/issues/52309
- [ ] Create S3 bucket for audio files and client code to get assets from it (I will pair with Mrugesh to get this set up)
- [ ] Create PR to add certification and make it live (We can defer this until later)
- [ ] Add all the blocks and challenges (English curriculum team will add these)
- [ ] Come up with superblock/block descriptions for `intro.json` file
- [ ] Create certification projects/exams
- [ ] Add e2e tests
- [ ] Don't use completion modal on dialogue challenges

I have taken the recent pull from the main but could not find any curriculum on english A2.
could you please provide the steps to reproduce.

Set the SHOW_UPCOMING_CHANGES variable in the .env file to true @Preetam078

@moT01 Is the E2E task available yet? I was planning on contributing to writing some Playwright tests.

@rahulsuresh-git thank you for your interest. The issue is not open to contributions yet.


Create Migratory Birds

Just uploading a hackerrank question with array implementation

@RPK2103  please describe the program in the code file using comment line :)

@RPK2103 waiting for your changes.


Bump minimum Swift version to 5.7

Motivation:
Now that Swift 5.9 is GM we should update the supported versions and remove 5.6
Modifications:

Update Package.swift
Delete the <5.7 docker compose files and make a 5.10 one
Update the 5.9 docker file to stop using nightlies

Result:
Remove support for Swift 5.6, add 5.10

@swift-server-bot add to allowlist

@swift-server-bot test this please

@swift-server-bot test this please

@yim-lee Could you please update the CI here too?

CI updated. @swift-server-bot test this please

@yim-lee any idea why we are continuing to time out on the 5.7 CI? This wasn't the case a few days back and it seems to be stuck during linking. Is this an issue with the node?

@swift-server-bot test this please

Hmm, the 5.7 job timed out on three different nodes, then it just ran on yet another node and finished under 40s. I ran CI cleanup job before which might have helped? Not sure.
@swift-server-bot test this please

@swift-server-bot test this please

@swift-server-bot test this please

With https://github.com/swift-server/swift-service-lifecycle/pull/160/commits/ddee4adce3740022000f8f5574d803dbb22337d8, the 5.7 job has passed two times on one of the nodes that it failed on before. Maybe it's that?

@swift-server-bot test this please

A couple of test failures in 5.9: https://ci.swiftserver.group/job/swift-service-lifecycle-swift59-prb/62/console

@swift-server-bot test this please

@swift-server-bot test this please

@swift-server-bot test this please

@swift-server-bot test this please

I don't know what causes 5.7 build to stuck sometimes.
Some observations:

It seems to always build successfully right after I touch the job config (agents 6 and 5).
So far the job always fails on agent 4 and subsequent runs fail, even on different agent (agent 5).
It might continue to run fine after a successful run if subsequence runs stayed on the same agent (2 consecutive successful runs on agent 5).
I don't think it's agent specific because 5.10 ran fine on agent 4.

Thanks for investigating this a bit @yim-lee. Let's merge this and keep an eye on it.


Setup coverage tracking

It would be useful to find bug such as the one fixed in #30 to setup automatic coverage tracking in the package.

Happy to do this. Do you have an example to hand?

I think it's just this:
https://github.com/mfherbst/ASEconvert.jl/blob/3c4e21aaaf1dad32e1802284410c471e3fcdc66e/.github/workflows/CI.yml#L36--L39
and you have to enable codecov for this project.

In fact I think I already perpared this in the CI when I did the refactor in #29 .


Calculating optimal muscle length

Hello!
I'm working on a project that involves modeling a muscle based system, and we need to know the optimal muscle length that's used by Mujoco. In the documentation, it says
"We assume that the biological tendon is inelastic, with constant length LT...
The length range computation described above already provided the operating range for LT + LM. In addition, we ask the user to specify the operating range for the muscle length LM scaled by the (still unknown) constant L0. This is done with the attribute range; the default scaled range is (0.75, 1.05). Now we can compute the two constants, using the fact that the actual and scaled ranges have to map to each other:
(actuator_lengthrange[0] - LT) / L0 = range[0]
(actuator_lengthrange[1] - LT) / L0 = range[1]"
So the task is tracking down which parameters are the proper ones to use in this calculation. So, after rearranging the above equations to solve for LT and then substitute and solve for L0, and scouring the API, the following is what i'm using:
lengthrange = sim.model.actuator_lengthrange
range[0] = sim.model.actuator_gainprm[0]
range[0] = sim.model.actuator_gainprm[0]

L0 = lengthrange[:,0] / (range[:,0] + range[:,1] + lengthrange[:,1])

The thing that is confusing is that when we try to calculate L0 using the original equations, we get different answers. This could be because we're using the wrong value for LT, or we're using the wrong values for one of the variables somewhere else.
        LT = sim.model.tendon_length0  # tendon length in qpos0
        # the following equations give different answers for L0, but should be the same
        L0 = (lengthrange[:,0] - LT) / gainprm[:,0]
        L0 = (lengthrange[:,1] - LT) / gainprm[:,1]

So I'm hoping that someone can clarify what the appropriate parameters are to use in this calculation! LT in particular I'm unsure of. Or, even better, if they could point me towards where in the simulation the actual L0 value that is calculated and used is stored.
Thanks!

Same question here! Would be great if someone can help!!!

Hello,
Let me first answer why the two computations of L0 don't match. In MuJoCo tendons are a very general  thing, you can think of them as strings connecting two points and they're not muscles nor biological tendons. They become muscles when we attach an actuator of type muscle on that tendon.
So the value stored in tendon_length0 is exactly the same as actuator_length at time 0 (in the initial qpos) and not LT. The values of actuator_length should be always within the actuator_lengthrange (now I say should because you could set the model in a weird joint position and the value might be outside).
For reference but not super relevant for this discussion, there's a way to make tendon_length0 and actuator_length different and that's by using gear in the muscle, gear is a way of scaling the muscle length for example a gear=5 will make the actuator_length 5 times larger than tendon_length0.
You can compute L0 and LT in a similar way to what you tried before but as far as I know MuJoCo doesn't expose the computed values of L0 and LT to check that what we have is correct (This is probably the biggest difference between MuJoCo and OpenSim). If they were exposed they should be in the model since they don't change through out the simulation.
The way I computed L0 is (lengthrange[:,1] - lengthrange[:,0]) / (range[:,1] - range[:,0])
My reasoning is the following:
(LR_0 - LT) / L0 = R0
(LR_0 - LT) = R0*L0
LT = -(R0*L0 - LR_0)
LT = LR_0 - R0*L0
you can substitute in the other eqn.
(LR_1 - (LR_0 - R0*L0)) / L0 = R1
LR_1 - (LR_0 - R0*L0)  = R1*L0
LR_1 = R1*L0 + (LR_0 - R0*L0)
LR_1 = (R1 - R0)*L0 + LR0
LR_1 - LR0 = (R1 - R0)*L0
(LR_1 - LR0) / (R1 - R0) = L0
I hope this makes sense and helps the discussion :)
Cheers!

Hello, thank you so much for your response! I wasn't hopeful (had this question open on the Mujoco forums for a while).
So, we actually have been computing L0 this way, found exactly the way you described! We ended up questioning this because it lead to some strange behavior in our muscle spindle model. I'll actually copy/paste the forum question as it provides the whole context for my current question (updated with my current understanding of how to calculate each parameter:

Hello,
I am working to implement the muscle spindle model described in this paper. The parameters that it needs are
FM : The force exerted by the muscle fiber FM (N)
FMmax : Maximal isometric force (N)
lM : Fiber length (mm)
lMopt : Optimal fiber length (mm) == rest sarcomere length
a : Normalized muscle activity
vM : Fiber contraction velocity (mm/s)
I'm working on getting these values out of Mujoco. So far I'm looking at
FM : The force exerted by the muscle fiber FM (N)
-1 * self.interface.sim.data.actuator_force
FMmax : Maximal isometric force (N)
the user specified 'force' if specified (gainprm[ii][2]), otherwise gainprm[ii][3] / interface.sim.model.actuator_acc0[ii])
lM : Fiber length (mm)
want to calculate the actual muscle length, my understanding is actuator length is muscle length + tendon length, so take the actuator length, subtract out the resting state tendon length, add in gainprm[:, 5], which is the minimum length of the muscle (gainprm[:, 6] is the max)
(self.interface.sim.data.actuator_length - self.interface.sim.model.tendon_length0 + self.interface.sim.model.actuator_gainprm[:, 5])
a : Normalized muscle activity
self.interface.sim.data.act ... ?
vM : Fiber contraction velocity (mm/s)
The fiber contraction velocity I'm guessing in this case is sim.data.actuator_velocity ... ? There's also ten_velocity, and it's not clear to me how they interact, exactly.

So, I can scratch the lMopt calculation off the list, are you able to shed light onto getting the other parameters as well??
Any insight that you could provide would be greatly appreciated!
Thanks,

Hello again 😃
I'm happy that our calculations lead to the same result 🥳
So going back to the parameters:
FM and FMmax I'd say are what you say they are.
The Fiber length (assuming we want the muscle length that should change through out the simulation since the muscle stretches) is different from what I would compute. After computing L0 we can then compute LT as:
LT = LR_0 - R0*L0 (and this should be constant because the biological tendon is assumed to be inelastic). Then at runtime I would take  actuator_length and subtract LT from it to to get the fiber length. Note: you might get negative values for your biological tendon since L0 and LT are found via optimization in MuJoCo, there was a question in the previous forum about this (negative biological tendon length) if that happens what I would do is to play with the length_ranges or ranges or the muscle routing which you can tune to get values that you are happy with.
Normalized muscle activity so just to have the same nomenclature in biomechanics we have excitations and activations. Now, let's say you're controlling a muscle in MuJoCo what you're actually feeding in the simulation is an  excitation, that value is then converted in an activation using the muscle dynamics (I'm not referring to how the FL and FV curves are implemented but the tau function in the documentation, which specifies how the activation of a muscle changes through time) in MuJoCo. And yes as you said, the muscle activation is stored in data.act.
Fiber contraction velocity The measurement unit varies on your simulation params since it definitely depends on what do you pass in the lengthrange as this value is dependent on it and the time your simulation is currently running at. The contraction velocity is stored in either actuator_velocity or ten_velocity, here same principle applies to what I explained in my previous answer on the relationship between actuator_length and ten_length, so they are exactly the same unless you start scaling the actuator length using gears (which in my experience with muscle simulation should never do because it causes all sort of inconsistencies).
Hope this clarifies some doubts!
Cheers!

This is excellent, thank you very much. Have been trying to sort this out for a long time!

Actually, quick follow up question: for the fibre length, I think what I actually want is the scaled muscle length L, since that's the value that's passed into the force generating function that Mujoco uses...is that correct? That the force is calculated as a function of L and not LM?

Reopening this just as a bump for my last question!

I unassigned myself by mistake lol

Hello! This is great. I keep forgetting that it's open source now and I can actually just go and look at the code. Super helpful; I am convinced all my questions are answered. Thanks again!


Use buildroot cache to speed up builds

Is your feature request related to a problem? Please describe.
The CI builds take quite long since the github actions runners do not have a lot of CPUs. This makes each PR to take 5+ hours
Describe the solution you'd like
Use buildroot cache and store the cache in github artifacts so it survives across runs.
Describe alternatives you've considered
Dummy builds which are VERY fast but only allow CI test, not building real images.
Additional context
https://buildroot.org/downloads/manual/manual.html#ccache

A speedup of the CI builds would be highly desireable, yes. But I am still unsure

if this does not affect the build consistency in any way if we always carry on an old ccache from build to build
how and where exactly to store the ccache in the artifacts section. This would of course mean we would have to store the ccache in an old build artifact and then pick it up later
we would have to keep a ccache per platform and thus could easily reach the maximum build artifact space. That's the reason why in the workflows we have a purge artifacts step, btw

But of course, feel try to come up with a solution or even PR as I would really appreciate it if we could bring down build times significantly!

A speedup of the CI builds would be highly desireable, yes. But I am still unsure

if this does not affect the build consistency in any way if we always carry on an old ccache from build to build
how and where exactly to store the ccache in the artifacts section. This would of course mean we would have to store the ccache in an old build artifact and then pick it up later
we would have to keep a ccache per platform and thus could easily reach the maximum build artifact space. That's the reason why in the workflows we have a purge artifacts step, btw

But of course, feel try to come up with a solution or even PR as I would really appreciate it if we could bring down build times significantly!

Ok, the latest master now has ccache support enabled. Thought I didn't expect it to work here with the GutHub runners (due to the limited cache space) it seem to have worked out fine. Now the build times in the runners are down to from 6h to 3h! So thanks for the suggestion so that I gave it a try now :) next thing to speedup the build would be to host own runners and use them instead. This could then potentially increase build times once nore of course ;) but for the moment I am quite happy. So thx again!

Ok, the latest master now has ccache support enabled. Thought I didn't expect it to work here with the GutHub runners (due to the limited cache space) it seem to have worked out fine. Now the build times in the runners are down to from 6h to 3h! So thanks for the suggestion so that I gave it a try now :) next thing to speedup the build would be to host own runners and use them instead. This could then potentially increase build times once nore of course ;) but for the moment I am quite happy. So thx again!

Cool that you gave it a try and it worked out!
When I am testing just the ci currently the deployment test does not work with the dummy build so the speed up is appreciated

Cool that you gave it a try and it worked out!
When I am testing just the ci currently the deployment test does not work with the dummy build so the speed up is appreciated


Authentication Failure: AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance

Hi Everyone,
We are trying to connect to sharepoint using the sharepy. Suddenly they stopped working from yesterday.
auth = sharepy.connect(base_path, username=username, password=password)
Error:
Requesting security token...
Authentication Failure: AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance

@ajaysetti101114 -- Ajay, thank you for your feedback.  This repo is solely for documentation issues, and this is implementation-related.  Please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow


small issue w/ queue predictor in cyrpt zones

at this point, i had 9 evilness remaining -- which means i'd done 28/37 evilness. the little popup on the bottom goes wrong, because 25 evil is hardcoded in some part of ezan's old queue predictor. this won't be straightforward to fix but once i figure out where the 25 is it won't be that hard either.

this is a totally unrelated small thing but making an issue just for it seems stupid -- we should take out the boilerplate about how d2 shen is "more optimal". in CMC/trainset meta that extremely is not true and frankly i'm not sure it's been true since like 2019 lol

another totally unrelated thing: when stillsuit isn't equipped the tile should link to your terrarium lol

this is now a christmas tree post

addressed in #152


how to return self reference or dependency with usertype

In luabind, you're able to return a reference to "self" from a usertype function. See http://www.rasterbar.com/products/luabind/docs.html#return-reference-to
In sol2, you seem to only be able to use sol::object as first argument in usertype methods, and manually parse the type, and finally return self as sol::object which is not really nice (if you return it as pointer, it won't be gc'd properly). It would be great if we could have sol::this_self, similar to sol::this_state, so you can simply return the reference of self.
In luabind you can also return a usertype member as reference with a dependency to the self instance:
http://www.rasterbar.com/products/luabind/docs.html#dependency
I would appreciate any help to get similar behaviour without wrapping all my members with std::shared_ptr.
These are just feature requests that would make the code cleaner to look at and you can workaround it, but it would be nice to have regardless :)

I'm going to be perfectly honest, I do not fully understand the motivation of this code, so I'm going to try to walk through what you're asking for.
You want to return *this, as a non-const reference into Lua. sol2 already supports that and returning it will return a reference, without making a copy. If you make it const, sol2 will make a copy and push it into Lua. What, exactly, is missing as far as "return reference to"?
Furthermore, I also don't understand the dependency issue here. Are you afraid that this is going to die because there are no references to it, because we keep pushing new userdata that holds pointers to some allocated data that might go out of scope?
In both of these cases, you can reference (and store) a copy of the userdata that's associated with a function call / constructor call by pulling it off the stack. You are right that perhaps there should be some ability to control "self referencing" returns, where we get the reference for you and return it manually if it compares the same as the return value. I'll have to find out a wrapper for it...

Here is an example usecase:
sol::state lua;
lua.open_libraries();
struct vec2 { float x, y; };
lua.new_usertype<vec2>("vec2",
    sol::call_constructor, sol::factories([](){
        return vec2{};
    }, [](vec2 const& v) {
        return vec2{v};
    }),
    sol::meta_function::garbage_collect, sol::destructor([](vec2& self){
        //write bogus data, to show self is now invalid and points to free'd memory
        self.x = std::numeric_limits<float>::quiet_NaN();
        self.y = std::numeric_limits<float>::quiet_NaN();
    }),
    "x", &vec2::x,
    "y", &vec2::y,
    "rotate", [](vec2& self, double theta)->vec2& {
        double x = self.x;
        double y = self.y;
        auto cos_theta = std::cos(theta);
        auto sin_theta = std::sin(theta);
        self.x = (float)(x * cos_theta - y * sin_theta);
        self.y = (float)(x * sin_theta + y * cos_theta);
        return self; //returns c++ reference of self, what I want is that it returns the lua reference or has a dependency (as soon as the gc is executed, this returned reference points to invalid mem)
    },
    "scale", [](vec2& self, float scale)->vec2& {
        self.x *= scale;
        self.y *= scale;
        return self;
    }
);
sol::protected_function_result result = lua.do_string(
    "local v = vec2()"                                                              "\r\n"
    "v.x, v.y = 1, 0"                                                               "\r\n"
    "local t = v:rotate(math.pi / 2):scale(2)"                                      "\r\n"
    "print(tostring(v.x) .. ', ' .. tostring(v.y))"                                 "\r\n"
    //"assert(v == t)"                                                              "\r\n" //test lua reference is same. will fail
    "assert(math.abs(v.x) < 0.0001 and math.abs(v.y - 2) < 0.0001)"                 "\r\n" //test if chain execution worked. will be successful
    "assert(v.x == t.x and v.y == t.y)"                                             "\r\n" //test if t, the reference of v, has the same contents as v. will be successful
    "v = nil"                                                                       "\r\n"
    "collectgarbage()"                                                              "\r\n"
    "assert(math.abs(t.x) < 0.0001 and math.abs(t.y - 2) < 0.0001)"                 "\r\n" //test if the reference t kept the created vector alive (and it also has the same content as old v). will fail
);
if (result.valid()) {
    std::cout << "Success" << std::endl;
} else {
    sol::error e = result;
    std::cout << "Fail: " << e.what() << std::endl;
}

Basically i would love to avoid passing references to lua that will not be kept alive. Having either a dependency, or being able to return the lua reference to a parameter would help tremendously.

Another example where a dependency would be nice (without having to wrap unit::pos in a shared_ptr)
sol::state lua;
lua.open_libraries();
struct vec2 { float x, y; };
struct unit { vec2 pos; };
lua.new_usertype<vec2>("vec2",
    sol::call_constructor, sol::factories([]() {
        return vec2{};
    }),
    "x", &vec2::x,
    "y", &vec2::y
);
lua.new_usertype<unit>("unit",
    sol::call_constructor, sol::factories([](){
        return unit{};
    }),
    "pos", sol::property([](unit& self)->vec2& {
        return self.pos; //somehow return the pos as reference with dependency
    }),
    sol::meta_function::garbage_collect, sol::destructor([](unit& self){
        //write bogus data, to show self is now invalid and points to free'd memory
        self.pos.x = std::numeric_limits<float>::quiet_NaN();
        self.pos.y = std::numeric_limits<float>::quiet_NaN();
    })
);
sol::protected_function_result result = lua.do_string(
    "local u = unit()"                                                              "\r\n"
    "local pos = u.pos"                                                             "\r\n"
    "u.pos.x, u.pos.y = 1, 0"                                                       "\r\n"
    "assert(u.pos.x == 1 and u.pos.y == 0)"                                         "\r\n"
    "assert(pos.x == 1 and pos.y == 0)"                                             "\r\n"
    "u = nil; collectgarbage()"                                                     "\r\n"
    "assert(pos.x == 1 and pos.y == 0)"                                             "\r\n" //test if reference still points to valid mem. will fail (may cause segfault/access violation like this)
);
if (result.valid()) {
    std::cout << "Success" << std::endl;
} else {
    sol::error e = result;
    std::cout << "Fail: " << e.what() << std::endl;
}

I could do sol::this_self, but the main problem would be lossless transference of where this is. For constructors, it's at the end of the stack. For regular member functions, it's at the beginning. For lambdas and properties, it may or may not exist at all (static function, write-only one-off properties, etc...). It will take a while to restructure things internally to make this work out just fine.
As for "linked dependencies", where something like a member variable depends on its originator, that's a tiny bit harder to do. I can make it so something like pos.x will go through a function and always reference u before hitting pos. But if you just pass around pos to, say, a print function or something, or you try to do vec2& pos = lua["pos"]; (assuming you don't local it). sol2's code will break down a little. We'd have to detect you're using a special dependency-reference, and then find out where to find the original dependency. As of right now, lua_newuserdata allocates space for me to dump stuff, but doesn't really give me a way to stick things like a lua reference "with" that data (Lua 5.3 actually has something for it, but sol2 is supposed to work across all 3 major lua versions so I'd need to think of something).
Regarding the destructor, sol2 automatically generates a destructor for all your types. It's not missing, and we have tests that check this. In what case are destructors "not firing" for you?

sol::this_self would be nice, especially since self may be a different positions on the stack. I see it's not trivial.
as for the dependencies, i guess you have to store the dependency somewhere along with lua's userdata object for the reference, luabind also works for old lua versions, so there must be some way. From the api perspective, it could maybe look like return sol::dependency(sol::make_object(L, pos), self) with self being that sol::this_self or some other sol::object.
I had something like this and the destructor didn't fire

sol::state lua;
lua.open_libraries();
struct vec2 { float x, y; };
lua.new_usertype<vec2>("vec2",
    sol::call_constructor, sol::factories([](){
        return vec2{};
    }, [](vec2 const& v) {
        return vec2{v};
    }),
    sol::meta_function::garbage_collect, [](vec2& self){
        //write bogus data, to show self is now invalid and points to free'd memory
        self.x = std::numeric_limits<float>::quiet_NaN();
        self.y = std::numeric_limits<float>::quiet_NaN();
    },
    "x", &vec2::x,
    "y", &vec2::y,
);
sol::protected_function_result result = lua.do_string(
    "local v = vec2()"      "\r\n"
    "v = nil"				"\r\n"
    "collectgarbage()"		"\r\n"
);
if (result.valid()) {
    std::cout << "Success" << std::endl;
} else {
    sol::error e = result;
    std::cout << "Fail: " << e.what() << std::endl;
}

Oh, right. You must wrap the gc method with sol::destruct or similar. It's written in the docs, here: http://sol2.readthedocs.io/en/latest/api/usertype.html#usertype-destructor-options
I guess a compile-time error would be nicer...?

Well, it would be best if it would work even without wrapping it in sol::destructor, but a compile time error would be alright. So you see immediatly that it won't work.

I can't quite make this work without making new_usertype even more compile-time and runtime intensive. sol::meta_function::garbage_collect is -- ultimately -- a runtime label. I'd have to go through every key and see you specified it. sol::destruct was specifically make to avoid that problem and give me a way to simply sweep through all the stuff at compile-time and know you specified a destructor.
Plus, the check for seeing if I should automatically generate a destructor is one I can only make at compile time std::is_destructible. If I check if the name exists using runtime checks, and then generate a destructor for you in the bracket of an if statement, I'd break everything (unless I write another level of indirection using std::true_type and std::false_type to switch on that).
And while the solution in the above paragraph sounds nice, you also need to find a way to do all of this in the syntax of a constructor...
... Yeah just specify sol::destruct around your destructors, please!

Added a few runtime checks (debug mode / throwing-enabled) only to explicitly annoy the user when they do not wrap the function in a sol::destruct.

I don't understand how dependencies work, in the case of making a variable depend on another. If I return the original userdata with some extra work into some variable x in Lua, I can't make, for example...
x = v.x
x = 25
print(x)

Because I can't override the setter or the getter for a plain variable. It has to be obj.something or obj.something = something_else for me to make it work. The self-dependency thing I can do fine but this isn't something I can rationalize properly, unless I'm thinking of the "variable" dependency wrong?

Well, I figured it out mostly.
BIKESHED: what is the name for this? sol::policy( stuff ) seems pretty bland.
#define SOL_CHECK_ARGUMENTS 1
#include <sol.hpp>

#include <limits>
#include <iostream>

int main(int argc, char* argv[]) {

	struct dep {
		int value = 20;
		~dep() {
			std::cout << "\t" << "[C++] ~dep" << std::endl;
		}
	};

	struct gc_test {

		dep d;

		~gc_test() {
			std::cout << "\t" << "[C++] ~gc_test" << std::endl;
			d.value = std::numeric_limits<int>::max();
		}
	};

	sol::state lua;
	lua.open_libraries(sol::lib::base);

	lua.new_usertype<dep>("dep",
		"value", &dep::value,
		sol::meta_function::to_string, [](dep& d) {
			return std::to_string(d.value);
		}
	);
	lua.new_usertype<gc_test>("gc_test",
		"d", sol::policy<sol::self_dependency_policy>(&gc_test::d),
		sol::meta_function::to_string, [](gc_test& g) {
			return "{ d: " + std::to_string(g.d.value) + " }";
		}
	);

	lua.script(R"(
local g = gc_test.new()
local d = g.d
print("new gc_test, d = g.d")
print("", g)
print("g = nil, collectgarbage")
g = nil
collectgarbage()
print("", d)
print("d = nil, collectgarbage")
d = nil
collectgarbage()
)");

	return 0;
}

Output:

Mmh, this looks really promising! as for the name, I have no idea, except that maybe the policies can have their own namespace like sol::policysol::policy::self_dependancy(). If you only want to support self dependency, it could even be just sol::self_dependency()
As for returning sol::stack_object(L, 1); this doesn't work sadly, as I think the args of the function are popped from the stack by sol before the return values are pushed again, so (L, 1) is invalid. You can return sol::object(L, 1) fine, but only with the expected performance penalty due to the lua registry reference.

In my latest edits, I fixed returning a stack-based object (that is, anything that derives from sol::stack_reference). Now it will not "clean the stack" when it's done, but if a lot of functions that return a stack-based reference are called within one another over and over again, it can leave a lot of crap on the stack before it all gets cleaned up from the initial call.
Finally, a bikeshed happened and the names changed. Things look like this now:
    struct holder;
    struct depends_on_reference;
    struct composition_related;
    static std::vector<composition_related*> composition_relateds_destroyed;
    static std::vector<holder*> holders_destroyed;
    static std::vector<depends_on_reference*> depends_on_references_destroyed;

    struct composition_related {
        std::string text = "bark";

        ~composition_related() {
            std::cout << "[C++] ~composition_related" << std::endl;
            text = "";
            composition_relateds_destroyed.push_back(this);
        }
    };

    struct holder {
        int value = 20;
        ~holder() {
            std::cout << "[C++] ~holder" << std::endl;
            value = std::numeric_limits<int>::max();
            holders_destroyed.push_back(this);
        }
    };

    struct depends_on_reference {

        std::reference_wrapper<holder> href;
        composition_related comp;

        depends_on_reference(holder& h) : href(h) {}

        ~depends_on_reference() {
            std::cout << "[C++] ~depends_on_reference" << std::endl;
            depends_on_references_destroyed.push_back(this);
        }
    };

    sol::state lua;
    lua.open_libraries(sol::lib::base);

    lua.new_usertype<holder>("holder",
        "value", &holder::value
    );
    lua.new_usertype<depends_on_reference>("depends_on_reference",
        "new", sol::filters(sol::constructors<depends_on_reference(holder&)>(), sol::stack_dependencies(-1, 1)),
        "comp", &depends_on_reference::comp
    );

    lua.script(R"(
h = holder.new()
dor = depends_on_reference.new(h)
c = dor.comp
)");
    REQUIRE(composition_relateds_destroyed.empty());
    REQUIRE(holders_destroyed.empty());
    REQUIRE(depends_on_references_destroyed.empty());

    holder* h = lua["h"];
    composition_related* c = lua["c"];
    depends_on_reference* dor = lua["dor"];

    REQUIRE(h == &dor->href.get());
    REQUIRE(c == &dor->comp);

    lua.script(R"(
h = nil
collectgarbage()
)");
    REQUIRE(composition_relateds_destroyed.empty());
    REQUIRE(holders_destroyed.empty());
    REQUIRE(depends_on_references_destroyed.empty());

    lua.script(R"(
c = nil
collectgarbage()
)");

    REQUIRE(composition_relateds_destroyed.empty());
    REQUIRE(holders_destroyed.empty());
    REQUIRE(depends_on_references_destroyed.empty());

    lua.script(R"(
dor = nil
collectgarbage()
)");

    REQUIRE(composition_relateds_destroyed.size() == 1);
    REQUIRE(holders_destroyed.size() == 1);
    REQUIRE(depends_on_references_destroyed.size() == 1);
    REQUIRE(composition_relateds_destroyed[0] == c);
    REQUIRE(holders_destroyed[0] == h);
    REQUIRE(depends_on_references_destroyed[0] == dor);

So it's called sol::filters now, and things aren't passed as template arguments: they're passed as regular arguments. You can also pass a lambda:
sol::filters( my_function, [](lua_State* L, int push_count) -> int {
         /* do stuff, add or subtract from push count, generally beat up the stack... */
         return push_count;
    }
);

Done. Docs are deployed: http://sol2.readthedocs.io/en/latest/api/filters.html
Thanks for the help.


🐛 [BUG] -

🐛 Bug Report Form

Description
predict crops page contents are not visible ,I am contributor and will make required changes for better user experience!!

Addition of any
If any more changes needed let me know!

Hi @Sameep002,
Thank you for creating the issue but the similar issue is already assigned. If you have any other issues or suggestions related to the project, I would be more than happy to consider them and collaborate on those.

Sure, if any will let you know !!


added better seo

Description
This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@rishabhsharma1997 Any luck?

@rishabhsharma1997 is this completed?

this PR is related to which issue ?

Hi @rishabhsharma1997, just checking in—has this been completed?

@rishabhsharma1997 checking again


(maint) Fixed rendering of code block and image

These were slightly out of line in the raw markdown, meaning that the
rendered HTML didn't look quite right.

@PrateekKumarSingh just wanted to follow up on this PR to see if this is something that you would consider merging.  Thanks!


Content is not allowed in prolog Error

I got this error. How can i fix it?
C:\Users\Rakshith Shetty.android\build-cache\acb394dc94c4798ca4e90f1a36706fa85ceb35ae\output\res\font\montserrat_bold.ttf
Error:(1, 1) Error: Content is not allowed in prolog.
Thanks

what is your version of android?

minSdkVersion 16
targetSdkVersion 26
compileSdkVersion 26
Device: Android M
Android Studio Version: 2.3.2

I think this is because of your android studio version. This lib is created on Android Studio 3.0 with Gradle plugin version 3.0. In Android Studio 2.3.. is used an older version of Gradle plugin. Try to upgrade to a newer version


Need better error handling when commands are not invoked in the expected way

For instance,
vv write

cause the following:
thread 'main' panicked at '`write` needs to consume an input, but no named input is found, specify it using `+input=input_name`', src/pipeline/executor.rs:87:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The error message should guide the users in how to invoke the command correctly and ask users to run --help for details.

Now, some of the panics are removed and replaced with an error message. For instance,
vv write

The output:
Error: `write` needs to consume an input, but no named input is found, specify it using `+input=input_name`
Use --help for more information


Height difference between SQFromTextField and SQFormDropdown

As we aligned the textfields and dropdown horizontally feels height issue identified by Carlos Arroyo

This might have been solved with Issue #212
What version are you using?

we are using  "@selectquotelabs/sqform": "^4.5.0",

Looks like the issue I linked was added in 4.5.7 so yours should be getting that update. So looks like this is a new issue.

Just because the package-json says you're supposed to have the right version you might not be actually using the right version.
Update the package-json to ^4.5.7 and then rm -rf node_modules && rm package-lock.json && npm i to remove your current installed node_modules and get all new ones, the latest versions. And also rebuild your docker container if you're using one.

@20BBrown14 @laurelbean Thanks Its been fixed by getting latest version.


Multiple containers on one external SQL database not possible

Hi,
we tried to setup multiple containers that are connected to the same external SQL database.
Creating the containers (with their own ports, users, names...) works without problem, however, when we are restarting one or more of these containers, only the one created last works.
The problem seems to be the service instance, as running Get-NAVServerInstance in the faulty containers shows, that the instance ist not running. So the newer containers seem to have overwritten the server instance of the previously created containers.
Is this a known issue, or is there any way to prevent that?
Thanks!
Scripts used to create container and cause the issue
[string]$containerName = 'TEST4'
[string]$containerName = $containerName.ToUpper()
[string]$databaseServer = 'srv-sql2019'
[string]$databaseInstance = ''
[string]$databaseName = 'TEST_DOCKER'
[string]$dbCountry = 'de'
[string]$version = '16.3.14238.0'
[string]$selectType = 'Closest'
[string]$dbType = 'OnPrem'

$artifactUrl = Get-BcArtifactUrl -type $dbType -version $version -country $dbCountry -select $selectType

[boolean]$withExtDB = $true

[int]$BasePort = 10400 #Aus SharePoint Liste befüllen
$Ports = @(($BasePort + 80), ($BasePort + 45), ($BasePort + 47), ($BasePort + 48), ($BasePort + 49))
#           WebClientPort     MgtServicePort    SoapServicPort    ODataServicePort    DevPort

    New-BcContainer -accept_eula `
        -containerName $containerName `
        -artifactUrl $artifactUrl `
        -auth NavUserPassword `
        -updateHosts `
        -shortcuts CommonStartMenu `
        -doNotExportObjectsToText `
        -memoryLimit "8g" `
        -WebClientPort $Ports[0] `
        -ManagementServicesPort $Ports[1] `
        -SoapServicesPort $Ports[2] `
        -ODataServicesPort $Ports[3] `
        -DeveloperServicesPort $Ports[4] `
        -PublishPorts $Ports `
        -Credential $credential `
        -databaseServer $databaseServer `
        -databaseInstance $databaseInstance `
        -databaseCredential $databaseCredential `
        -databaseName $databaseName `
        -doNotCheckHealth `
        -assignPremiumPlan:$withPremium `
        -includeCSide:$withCSide `
        -includeTestToolkit:$withTests `
        -includeTestLibrariesOnly:$withTests

Full output of scripts
BcContainerHelper is running as administrator
Host is Microsoft Windows Server 2019 Datacenter - ltsc2019
Docker Client Version is 19.03.12
Docker Server Version is 19.03.12
Removing CR19-TEST2 from host hosts file
Removing CR19-TEST2-* from host hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\CR19-TEST2
Fetching all docker images
Using image mcr.microsoft.com/dynamicsnav:10.0.17763.1577-generic
Publishing port 10380
Publishing port 10345
Publishing port 10347
Publishing port 10348
Publishing port 10349
Disabling Health Check (always report healthy)
Creating Container CR19-TEST2
Version: 16.3.14085.14238-de
Style: onprem
Multitenant: No
Platform: 16.0.14073.14195
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.17763.1577 (ltsc2019)
Host OS Version: 10.0.17763.1577 (ltsc2019)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Files in C:\ProgramData\BcContainerHelper\Extensions\CR19-TEST2\my:
- AdditionalOutput.ps1
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container CR19-TEST2 from image mcr.microsoft.com/dynamicsnav:10.0.17763.1577-generic
07b1f29bd4464cc331b944e39de7ef81fec29c6458e3eebbbaed8ef0875f2862
Waiting for container CR19-TEST2 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/onprem/16.3.14085.14238/de
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Applications
Installation took 61 seconds
Installation complete
Initializing...
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is CR19-TEST2
PublicDnsName is CR19-TEST2
Using NavUserPassword Authentication
Import Encryption Key
Stopping local SQL Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 95A2C6F6D80AB02654E824CD0302803E9301634D
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Creating http download site
Container IP Address: <IP_ADDRESS>
Container Hostname  : CR19-TEST2
Container Dns Name  : CR19-TEST2
Web Client          : http://CR19-TEST2:10380/BC/
Dev. Server         : http://CR19-TEST2
Dev. ServerInstance : BC
Setting CR19-TEST2 to <IP_ADDRESS> in host hosts file

Files:
http://CR19-TEST2:8080/ALLanguage.vsix

Container Total Physical Memory is 32.0Gb
Container Free Physical Memory is 21.4Gb

Initialization took 274 seconds
Ready for connections!
Reading CustomSettings.config from CR19-TEST2
Creating Desktop Shortcuts for CR19-TEST2
Container CR19-TEST2 successfully created

Screenshots

Try to add
-additionalParameters @("--env encryptionPassword=$encryptionPassword")
and set encryption password to the same for both.

We added the additional parameter:

Unfortunately it did not help. The service instance of the first container is still stopped and also cannot be restarted manually (even if the service of the second container is stopped)

Both containers needs to be started using the same encryptionpassword - did you do that?

Yes, we used the same password for both containers.

I forgot that you also need to use the same key file. The first container creates a .key file, which must be shared with the second container.
The following script will create a database on my local SQL Server and then create two containers connecting to this database.
If it still fails, you need to submit a script like this (end 2 end) which is failing, then it will probably take me 2 minutes to see what is wrong.
$licenseFile = $licenseFileSecret.SecretValueText
$credential = New-Object pscredential 'admin', $passwordSecret.SecretValue
$auth = 'UserPassword'
$defaultTenantHasAllowAppDatabaseWrite = $false

$containerName = "mytest1"
$artifactUrl = Get-BCArtifactUrl -type Onprem -country dk -version 16 -select Latest

$databaseServer = 'host.containerhelper.internal'
$databaseInstance = ""
$databasePrefix = "mytest"
$databaseName = "CRONUS"
$databaseCredential = New-Object pscredential -ArgumentList 'sa', $passwordSecret.SecretValue
$encryptionPassword = $passwordSecret.SecretValueText
$multitenant = $true

Remove-BcDatabase -databaseServer $databaseServer -databaseInstance $databaseInstance -databaseName "$($databasePrefix)%"

Restore-BcDatabaseFromArtifacts `
    -artifactUrl $artifactUrl `
    -databaseServer $databaseServer `
    -databaseInstance $databaseInstance `
    -databasePrefix $databasePrefix `
    -databaseName $databaseName `
    -multitenant:$multitenant | Out-Null

New-BcContainer `
    -containerName "$containerName" `
    -accept_eula `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -imageName "my" `
    -memoryLimit 8g `
    -enableTaskScheduler `
    -multitenant:$multitenant `
    -licenseFile $licenseFile `
    -additionalParameters @("--env encryptionPassword=$encryptionPassword") `
    -databaseServer $databaseServer `
    -databaseInstance $databaseInstance `
    -databasePrefix $databasePrefix `
    -databaseName $databaseName `
    -databaseCredential $databaseCredential

if ($multitenant) {
    New-NavContainerTenant `
        -containerName $containerName `
        -tenantId 'default' `
        -sqlCredential $databaseCredential `
        -sourceDatabase "$($databasePrefix)tenant" `
        -destinationDatabase "$($databasePrefix)default" `
        -allowAppDatabaseWrite:$defaultTenantHasAllowAppDatabaseWrite
}

New-NavContainerNavUser `
    -containerName $containerName `
    -tenant 'default' `
    -Credential $credential `
    -PermissionSetId 'SUPER' `
    -ChangePasswordAtNextLogOn:$false

$keyFile = Join-Path $bcContainerHelperConfig.hostHelperFolder "Extensions\$containerName\my\DynamicsNAV.key"
New-BcContainer `
    -containerName "mytest2" `
    -accept_eula `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -imageName "my" `
    -memoryLimit 8g `
    -enableTaskScheduler `
    -multitenant:$multitenant `
    -licenseFile $licenseFile `
    -myScripts @($keyFile) `
    -additionalParameters @("--env encryptionPassword=$encryptionPassword") `
    -databaseServer $databaseServer `
    -databaseInstance $databaseInstance `
    -databasePrefix $databasePrefix `
    -databaseName $databaseName `
    -databaseCredential $databaseCredential

This has done the trick, thank you so much!


Upload to PyPi

Hey @sniner,
could you upload the latest changes from #4 to PyPi?

Hey @sniner,
can you give an estimate on when you would be able to upload this to PyPi? Can I assist you in any way?

Hi @patrick-cichon-gcx , thanks for asking. The current source code can be found in the feature branch. I would like to refactor it before publishing it on PyPI, but unfortunately I don't have the time at the moment. I expect to release it by the end of this year. You could help me by testing the refactored code before the release, as I only have a production system available and cannot test write accesses. I will get in touch with you here in advance.


Allow users to set the icon of their own project as an icon

This could possibly be up for debate as to where the icon should be stored, etc, but it could be pretty sweet to allow the user to set an icon on a per-project basis, and it would show in the rich presence status.

I don't think this is possible since all the images are saved in the discord developer page for this application.

As a solution for adding your own icons, I can add the ability to specify your own Discord application, where your own icons for projects and file extensions will be stored. Then the responsibility for assigning assets names and adding the assets themselves will be on the creator of the Discord application.

Available in 1.4.5 version.
Settings -> General -> Advanced
Then you need to specify the ID of your Discord application.
Important: the names of assets in the application must match the names from the extensions_assets_map.json file


Can't SIGTERM long running processes

Hello,
I noticed that sending a SIGTERM to a long running process has no effect.
I added some logs and signals are correctly forwarded (on this line container.Signal(sigc) doesn't return any error), however they seem to be ignored (even though cat doesn't catch or ignore any signals).
Looking into docker code, docker stop try to send a sigterm and fallback to a sigkill after some times if the container is still running.
Here is my config: Linux ubuntu-vivid-64 3.19.0-14-generic

found a related topic on docker here so this looks like normal behaviour


Concept / spec

https://twitter.com/ryan/status/1157009541625573377
https://twitter.com/ryan/status/1157336684096155648
[tbd]

Ideas I had in no specific order:

You should be able to designate a whole repository, or a directory within a repository, as something to sync. Anytime a file is changed within that directory/repo/whatever, that directory/repo/whatever would get synced across to the target replica repository.
You should also be able to designate a target location for the sync to happen. So say you syncing something like a legal/ folder in a company/policies repository that has Markdown, maybe you want that markdown to go into a view/legal/ directory in the replica.
All syncs should be treated as proposals and Metronome should generate a PR for approval similar to how @dependabot works.

Could imagine a TON of config UI for this - maybe we just start by reading a JSON config file from the master repo?

Yeah I wouldn't want to get bogged down in building a UI to get it going. Start with a simple JSON config to start and go from there.

Let's collect considerations here:
IIRC, GH App installs are scoped to a given account/org
Example:

User Bodega has personal repositories and is a member of org @dogrammers
Bodega installs Metronome to her account

Metronome has access to her personal repos (e.g. github.com/bodega/woof)
However, Metronome cannot access @dogrammers repos

Bodega gains admin privs to @dogrammers, yay! 🎉

Bodega can now create a new Metronome installation into @dogrammers
After doing so, the new Metronome install can now access @dogrammers repos
(Pretty sure how that's how it works, will see.

[more here?]

Example config ideas (in json5 because comments); assuming user bodega.
Let's tear it to pieces!
Define config.allRepos
{
  allRepos: [
    'bodega/foo',   // Valid but redundant
    '@bodega/bar',  // Same
    'baz',          // bodega/baz
    'buz'           // bodega/buz
  ],
  files: {} // Use all files in this repo (except `metronome.json`), with default name + path
}

config.allRepos === true
{
  allRepos: true, // Attempt to use all repos in this org(?)
  files: {}
}

config.files, config.files[file].repos, config.files[file].filename
{
  // Define all scoped repos here
  allRepos: [
    'foo',
    'bar',
    'bodega' // Would attempt to use bodega/bodega
  ],
  // Define files from this repo to Ⓜetronome
  files: {
    'LICENSE': {}, // All repos, same filename
    '.gitignore': {
      // '/./gitignore' also valid; strip leading slashes (eg file.substr(-1) === path.sep ? file.substr(1) : file)
      repos: ['foo', 'bar']
    },
    'code_of_conduct.md': {
      repos: ['bar'],
      filename: '.github/code-of-conduct.md' // Transform folder + name
    }
  }
}

(Anything missing?)

Why allRepos instead of just repos?
This is the config file that would live within Metronome, or would this live within each repository replica repository?

Why allRepos instead of just repos?

Mostly just for clarity / to prevent confusion with config.files[file].repos, but idc!

This is the config file that would live within Metronome, or would this live within each repository replica repository?

(Good question – nomenclature check! source to refer to the originator repo of files, and replica to refer to the target/destination repo of files?)
I think there's just one of these config files in each source repo. BUT, we should probably support .metronomignore to allow a replica to opt out of PRs.
wdyt?

Oh interesting, I was thinking that the replica repos would dictate what gets synced to them, not the primary dictating where its content goes.

Hmm, could do that! Let's tease that apart from a work to be done perspective:
Config in source repo
Update/delete

Change is made to file in source repo
Event fires to Metronome
Metronome then:

Looks at the change
Looks at the config
Builds a queue of jobs based on a single config
Fires off PRs to replica repos

Create

User wants to add a new file to n replica repos
User adds it to source repo
Event fires to Metronome
Metronome then:

Looks at the change
Looks at the config
Builds a queue of jobs based on a single config
Fires off PRs to replica repos

Config in replica repos
Update/delete

Edit is made to file in source repo
Event fires to Metronome
Metronome polls all repos it has access to
Metronome then:

Looks at the change
Looks at many replica configs
Builds a queue of jobs based on each config
Fires off PRs to replica repos

Create

User wants to add a new file to n replica repos
User must then go all the replica repos (that don't subscribe to all files) and alter config to opt them into the new file
User adds it to source repo
Event fires to Metronome
Metronome polls all repos it has access to
Metronome then:

Looks at the change
Looks at many replica configs
Builds a queue of jobs based on each config
Fires off PRs to replica repos

Barring incorrect assumptions or any missing considerations, seems dramatically simpler for both users to configure and for us to build a central config. But I may be wrong!

I'm still not sure on having a source repo config, but from a basic flow standpoint that all looks okay to me.
I'm mostly apprehensive about the source repo stuff because what if you're setting up Metronome to monitor boilerplate repository that you don't own? Like if I want to replicate the Contributor Covenant across all of my open source libraries.

Yooooooo that is a great point. Sounds like we should do both.
whispers scope creeeeeeeep

Actually, thinking about this a bit more, not sure it would work for an MVP – certainly not easily.
In this example, you don't have CC admin privs, so when CC updates their repo, we should assume Metronome isn't installed. Therefore Metronome doesn't get an event from GitHub that a change occurred – thus, the only way to get those updates is to:
a) be an admin and add Metronome to every important repo out there, or
b) poll for updates (expensive and complex)

Oof that's a good point, I didn't think about having to poll for updates because we won't have hooks set up.
Punting non-owned repos to v2 I guess!


Unable to generate records for GB patients

Hello,
I'm exploring SYNTHEA for a local application.  I've created modules and done the basics with the software although all the patients are US based.
I've downloaded the GB geography as per the instructions on Github.  i've also confirmed that all the configuration files are being picked up.  But when I specify a state, e.g. Somerset, I get the following error:
c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset
Exception in thread "main" java.lang.NullPointerException
at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:196)
at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:166)
at org.mitre.synthea.engine.Generator.init(Generator.java:235)
at org.mitre.synthea.engine.Generator.(Generator.java:170)
at org.mitre.synthea.engine.Generator.(Generator.java:155)
at App.main(App.java:199)
If I specify a city as well, I can this error:
_c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset Bristol
ERROR: unable to load demographics
java.lang.Exception: The city Bristol was not found in the demographics file.
at org.mitre.synthea.world.geography.Location.(Location.java:66)
at org.mitre.synthea.engine.Generator.init(Generator.java:205)
at org.mitre.synthea.engine.Generator.(Generator.java:170)
at org.mitre.synthea.engine.Generator.(Generator.java:155)
at App.main(App.java:199)
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.mitre.synthea.world.geography.Location.(Location.java:93)
at org.mitre.synthea.engine.Generator.init(Generator.java:205)
at org.mitre.synthea.engine.Generator.(Generator.java:170)
at org.mitre.synthea.engine.Generator.(Generator.java:155)
at App.main(App.java:199)
Caused by: java.lang.Exception: The city Bristol was not found in the demographics file.
at org.mitre.synthea.world.geography.Location.(Location.java:66)
... 4 more
Is this a known bug?  Any suggestions how to resolve?
many thanks,
Phil

There is now a new repo for international users. Here:
https://github.com/synthetichealth/synthea-international.
Take a look and let us know how you fare.
--Sam
On Fri, Jul 31, 2020 at 11:34 AM Dr Philip Harfield
<EMAIL_ADDRESS>wrote:

Hello,
I'm exploring SYNTHEA for a local application. I've created modules and done the basics with the software although all the patients are US based.
I've downloaded the GB geography as per the instructions on Github. i've also confirmed that all the configuration files are being picked up. But when I specify a state, e.g. Somerset, I get the following error:
c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset
Exception in thread "main" java.lang.NullPointerException
at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:196)
at org.mitre.synthea.world.agents.Payer.loadPayers(Payer.java:166)
at org.mitre.synthea.engine.Generator.init(Generator.java:235)
at org.mitre.synthea.engine.Generator.(Generator.java:170)
at org.mitre.synthea.engine.Generator.(Generator.java:155)
at App.main(App.java:199)
If I specify a city as well, I can this error:
_c:\Dev\Synthea>java -jar synthea-with-dependencies.jar -c synthea.properties -p 10 Somerset Bristol
ERROR: unable to load demographics
java.lang.Exception: The city Bristol was not found in the demographics file.
at org.mitre.synthea.world.geography.Location.(Location.java:66)
at org.mitre.synthea.engine.Generator.init(Generator.java:205)
at org.mitre.synthea.engine.Generator.(Generator.java:170)
at org.mitre.synthea.engine.Generator.(Generator.java:155)
at App.main(App.java:199)
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.mitre.synthea.world.geography.Location.(Location.java:93)
at org.mitre.synthea.engine.Generator.init(Generator.java:205)
at org.mitre.synthea.engine.Generator.(Generator.java:170)
at org.mitre.synthea.engine.Generator.(Generator.java:155)
at App.main(App.java:199)
Caused by: java.lang.Exception: The city Bristol was not found in the demographics file.
at org.mitre.synthea.world.geography.Location.(Location.java:66)
... 4 more
Is this a known bug? Any suggestions how to resolve?
many thanks,
Phil
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I think a bug has slipped in for non US generation.  It is getting a null pointer when trying to find the abbreviation for a state name.  I will open separate issue for that one.
The following steps I was able to generate patients for Somerset/Bristol
git clone https://github.com/synthetichealth/synthea
git clone https://github.com/synthetichealth/synthea-international
cd synthea-international
cp -R gb/ ../synthea
cd ../synthea
Edit file ./main/java/org/mitre/synthea/world/agents/Payer.java 196:
//if (payerStates.contains(abbreviation) || payerStates.contains("")) {
if (payerStates.contains("")) {
./run_synthea -p 5 Somerset Bristol
...
Running with options:
Population: 5
Seed:<PHONE_NUMBER>667
Provider Seed:1596215455667
Reference Time:<PHONE_NUMBER>667
Location: Bristol, Somerset
Min Age: 0
Max Age: 140
5 -- Andreas188 Mitchell808 (13 y/o M) Bristol, Somerset
3 -- Marcos263 Jaskolski867 (39 y/o M) Bristol, Somerset
2 -- Eddie505 Quitzon246 (53 y/o M) Bristol, Somerset
4 -- Carl856 Gleichner915 (67 y/o M) Bristol, Somerset
1 -- Shantelle354 Bernier607 (65 y/o F) Bristol, Somerset
Records: total=5, alive=5, dead=0

I made a lot of edits to my response so please check again and follow the steps outlined for generating Somerset, Bristol.  I did not find any defect except in the README instructions which I am creating a pull request to correct.

Hi,
Thanks for looking at this.  I had been using the release .jar as I was on a Windows machine.  Building from source and editing the payers.java does create a build that accepts international (GB) geographies.
I'll use this local build until this bug is resolved in the source.


validators don't update if changed because of state change

If you pass one set of validators on one state, and then call setState and provide a different set, the previous set of validators is what the form is validating against.

Adding the following to GiftedForm.js did the trick:
componentWillReceiveProps(nextProps) {
  	GiftedFormManager.stores[nextProps.formName].validators = {};

  	if(nextProps.validators !== this.props.validators) {
  		for (var key in nextProps.validators) {
	      if (nextProps.validators.hasOwnProperty(key)) {
	        GiftedFormManager.setValidators(nextProps.formName, key, nextProps.validators[key]);
	      }
	    }
  	}

I'll make a pull request, but perhaps there is a slightly different way you want it done. Let me know.


AttributeError: 'NoneType' object has no attribute 'available_swap_in_buffers'

Hello,
I installed Deepspeed today from master and I would like to do complete NVMe offload. I tried with the old Megatron-LM example (not Megatron-LM-v1.1.5-ZeRO3, because this one gives another error) using an SSD disk. The error I get is the following:
File "pretrain_gpt2.py", line 369, in train_step
    lm_loss = forward_step(data_iterator, model, args, timers)
  File "pretrain_gpt2.py", line 291, in forward_step
    output = model(tokens, position_ids, attention_mask)
  File "/secondary/thies/.virtualenvs/ds-inf/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/secondary/thies/.virtualenvs/ds-inf/lib/python3.7/site-packages/deepspeed/runtime/engine.py", line 943, in forward
    loss = self.module(*inputs, **kwargs)
  File "/secondary/thies/.virtualenvs/ds-inf/lib/python3.7/site-packages/torch/nn/modules/module.py", line 875, in _call_impl
    result = hook(self, input)
  File "/secondary/thies/.virtualenvs/ds-inf/lib/python3.7/site-packages/deepspeed/runtime/zero/stage3.py", line 1413, in _pre_forward_module_hook
    self.pre_sub_module_forward_function(module)
  File "/secondary/thies/.virtualenvs/ds-inf/lib/python3.7/site-packages/deepspeed/runtime/zero/stage3.py", line 1528, in pre_sub_module_forward_function
    nvme=self.params_in_nvme_and_cpu)
  File "/secondary/thies/.virtualenvs/ds-inf/lib/python3.7/site-packages/deepspeed/runtime/zero/stage3.py", line 362, in prefetch_next_sub_modules
    self._prefetch_nvme_param_partitions(sub_module, params_to_prefetch)
  File "/secondary/thies/.virtualenvs/ds-inf/lib/python3.7/site-packages/deepspeed/runtime/zero/stage3.py", line 332, in _prefetch_nvme_param_partitions
    if len(swap_in_params) >= param.nvme_swapper.available_swap_in_buffers():
AttributeError: 'NoneType' object has no attribute 'available_swap_in_buffers'

Configuration:
{
  "train_batch_size": 32,
  "train_micro_batch_size_per_gpu": 4,
  "steps_per_print": 1,
  "optimizer": {
    "type": "Adam",
    "params": {
      "lr": 0.00015,
      "weight_decay": 1e-2
    }
  },
  "scheduler": {
      "type": "WarmupLR",
      "params": {
        "warmup_min_lr": 0,
        "warmup_max_lr": 0.001,
        "warmup_num_steps": 50
    }
  },
  "zero_optimization": {
    "stage": 3,
    "offload_optimizer": {
        "device": "nvme",
        "nvme_path": "/secondary/thies"
    },
    "offload_param": {
        "device": "nvme",
        "nvme_path": "/secondary/thies"
    }
  },
  "gradient_clipping": 1.0,
  "fp16": {
    "enabled": true,
    "loss_scale": 0,
    "loss_scale_window": 1000,
    "hysteresis": 2,
    "min_loss_scale": 1
  },
  "activation_checkpointing": {
    "partition_activations": true,
    "contiguous_memory_optimization": false
  },
  "wall_clock_breakdown": true,
  "zero_allow_untested_optimizer": true,
  "aio": {
    "block_size": 1048576,
    "queue_depth": 16,
    "single_submit": false,
    "overlap_events": true,
    "thread_count": 2
  }
}

@thies1006 can you please share the issue with Megatron-LM-v1.1.5-ZeRO3? The old megatron example does not work with ZeRO-3.

Hello @tjruwase! Ok, that's good to know. Regarding Megatron-LM-v1.1.5-ZeRO3 I was referring to the issue https://github.com/microsoft/DeepSpeedExamples/issues/92. Please feel free to close this issue then. I saw the same error when using the Huggingface integration as well, that's why I assumed that Zero3 would work as well with the old Megatron-LM.

@thies1006, thanks for the clarification. I will close this issue.


Test flakiness issue after upgrading to OS 6.3+

See the comment at https://github.com/realm/realm-cocoa/pull/4478#issuecomment-271723479. This occurs after rebasing onto the commit https://github.com/realm/realm-cocoa/pull/4365.
Will affect https://github.com/realm/product/issues/168 and https://github.com/realm/product/issues/40 (although there are other issues blocking those tickets too).
cc @jpsim

The problem has something to do with the test testOpenRealmWithAdminToken. If that test is disabled all the other tests seem to pass all the time. More investigation is needed.

This problem is fixed, and can be closed.


Implement a configuration management system

Motivation / Context

Design and implement a configuration management system, that can be used by different modules within the node.
Description

The system should be able to read values from “yaml” configuration files, command line flags and defaults defined in the code. The final configuration values should be returned as a struct defined that was defined during the client setup phase. Suggested framework: viper.
Priority order (highest to lowest): Command line flags, configuration file, defaults defined in code.
Relates to

Testing

Priority order is maintained, when configuration is provided from multiple sources.
Able to read configuration values from all three sources.

Thread Safety

The configuration will be loaded during client initialization and hence will not be done concurrently.
Acceptance Criteria

The configuration management system is able to read from “yaml” files, command line flags and defaults defined in code.
Procedure for using it in a module is documented.

Templates for configuration files and functions for parsing them have been added in #82.

Parsing configuration from different sources (flags, config files in yaml syntax) is implemented in #121. However, no defaults are defined in code.
Documentation to use the flag is included as a help message in the perunnode command.


Incoming command queue

As the paho mqtt library subscibes to MQTT with a dedicated thread, it's possible we can get some unwanted concurrency issues if a command is received while handling a different method. This PR synchronizes calls to the serial interface by storing command messages and handling them as soon as the previous command is finished.

Thanks for this. It was on my wish list for a while!


Fix grouping of the "users and groups" control panels (plone-users ca…

…tegory)
Complementary fixes for: https://github.com/plone/plone.restapi/issues/1482
Fixed:

Before:

Totally agree with you. Problem is that in classic it’s been like this for
a while. Check it out. So either we sync (this PR) or we push for changing
it in classic too. Why they have to sync? Translations. They come from the
backend…
On Thu, 1 Sep 2022 at 17:41, Katja Süss @.***> wrote:

I understand that you want to group all panels affecting users and groups
under one category.
This is done already.
Please set up backend with non-english language, for example italian or
german,
and frontend with
config.js:
supportedLanguages: ['en', 'it', 'de'],
defaultLanguage: 'it',

You will see something like the following:
"Users and groups" can be translated, of course.
[image: image]
https://user-images.githubusercontent.com/1144737/187954889-2fcfb5d3-ee88-443c-a48b-0449e55781a9.png
But: I think, it's my personal opinion, the label is about users and
groups not only user or what germans call it "Benutzer".
—
Reply to this email directly, view it on GitHub
https://github.com/plone/volto/pull/3603#issuecomment-1234457620, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADW4D7NU2YJHJFVWFU4743V4DFBJANCNFSM6AAAAAAQCJALQM
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Víctor Fernández de Alba
Github/Twitter: sneridagh

I think this fix is relevant. We've had individual users and groups management under the "user and group settings" section in Volto for quite a long time and it's been left intact since. The classic doesn't have "users and groups" section, hence no translations. I don't know if handling translations from the frontend is worth it for the controlpanel.


CD Pipeline - Behave task (Integration tests)

As a developer
I need my CD pipeline to run integration tests
So that my deployed UI gets tested
Details and Assumptions

A developer account is needed on console.redhat.com
A .tekton/workspace.yaml file is defined
The .tekton/pipeline.yaml file needs to be updated to include the behave task
The behave task needs to be defined in the .tekton/tasks.yaml file
Sample code - lab-openshift

Acceptance Criteria
Given the codebase
When a PR is merged to master branch
Then the `behave` task is run as part of the CD pipeline.

Zenhub is not allowing me to assign this story. But it should be assigned to @Alex-Chen955


Applying user endpoint for Slack Source Integration

Which source is this for
Slack
Describe the data you'd like, be specific, link the docs
I've been testing the Slack source, and it works quite well. However, I'd like to suggest an improvements that could make it even better:
The current pipeline fetches the user_id, which is helpful. However, for more insightful analytics, it would also be valuable to retrieve user_name and email address. This would aid in a more granular analysis and offer a more comprehensive user-centric view.
Additional context
Enriching the data with additional user endpoints can lead to better insights for end-users.
I hope these suggestions help in further refining the Slack source integration. Thanks for the great work so far!

done in #269


Added a rotating cube as well

Not really on theme but pretty fun?
dotnet run -c Release -- cube --duration 30 --parallel --width 80 --height 45

Could you make the cube look more like a piece of cubed bacon? We all know and can agree that bacon slicer are, better, but some people are weird.


"REF_CSIP_1" - Is this how it should look?

Hi Karin,

Is this a feature or a bug? I don't recall seeing this reference notation anywhere else in the specs.

Its the ID's of the sections in the profile that are not described in the SIP but the section is there in the profile to make sure all knows its the CSIP only used for that section. So its a feature.


CI: a collection contract integration test

Overview
Please review this file only.
.github/workflows/tests-contracts.yaml
This is an integration test that performs "submessage/reply" using the packages/finschia-std library from the built collection contract.

When I was creating this branch in parallel, the commit history became unexpected, so I will change the PR.
https://github.com/Finschia/finschia-wasm/pull/15


Revisit state syntax

The current state syntax works well, but has these drawbacks:

You can't set an explicit label for a state, you have to use a comment.
The built-in parameters type, if, and onchange are parallel with operation arguments. Which brings backward-compatibility concerns.

Better:
name: Foo the bar
type: command.Run
args:
    command: cat foo | bar --stdin
    user: baz
if:
    ...
onchange:
    ...

Nope, the real way to do it is with good ol' Python itself. Way more flexible, support for it everywhere, type checking, docstrings, etc.
Something like this:
state = State(
    "test",
    [
        State(
            "Foo the bar",
             command.Run("cat foo | bar --stdin"),
            onchange=service.Restart('blah'),
        ),
        State(
            "Foo the baz",
             command.Run("cat foo | baz "),
             cond=Or(Cmd("test -f /nonexistent"), sys.platform == "linux"),
        ),
        ...
    ]
)

if __name__ == '__main__':
  state.run()

This will also make it easy to implement goodies like having "defer" states that only run once if triggered at least once.

OK, but what about the feature of overriding states defined for a lower-priority group?

After reading about the principle of least power, I've decided against Python. Instead, I'm working on a refined version of the current format, still using YAML but better laid out.

Updated state file format in v0.3.0.


Stub Mappings are not found

I need to build a standalone wiremock service which will act a replacement for a future service. It wont have any tests in it. Just mock templates.
Trying to use the spring-cloud-contract-wiremock, with spring boot... Reason being, it provides some functionalities that i want to use. All my json mappings are located under resources/wiremock/mappings/v1 (5 template files) and the files under resources/wiremock/__files (5 corresponding response body files).
My Dependencies:
       <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-contract-wiremock</artifactId>
            <version>2.1.2.RELEASE</version>
        </dependency>

Configuration:
@Configuration
@AutoConfigureWireMock(stubs = "classpath:/wiremock")
public class WireMockConfig {

    @Bean
    public WireMockConfigurationCustomizer wireMockConfigurationCustomizer() {
        return config -> config.preserveHostHeader(true)
                .containerThreads(150)
                .notifier(new Slf4jNotifier(true))
                .extensions(new ResponseTemplateTransformer(false));
    }

    @Bean
    public ObjectMapper objectMapper() {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.registerModule(new JavaTimeModule());
        return objectMapper;
    }
}

Since, content of resources (src/main/resources) folder is available at classpath, i have given stub location as classpath:/wiremock.
However its unable to find any mappings. I get response that No response could be served as there are no stub mappings in this WireMock instance.
NOTE: My application works fine if i use plain wiremock dependency with spring boot

Please check https://github.com/spring-cloud/spring-cloud-contract/blob/master/spring-cloud-contract-wiremock/src/test/java/org/springframework/cloud/contract/wiremock/AutoConfigureWireMockConfigurationCustomizerTests.java
Can you change the annotation to @AutoConfigureWireMock(port = 0, stubs = "file:src/main/resources/wiremock/mappings")

Tried. Same 404 replay. No stub mappings found.

I guess I'd need you to produce a sample cause we have a test that works so I don't know exactly what the problem might be.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


"Let's Encrypt e-mail" field is not used

Using the nginxconfig.io website, the "Let's Encrypt email" field is not parsed to be utilized for the certbot command.
The certbot certonly command appears to stay "info@" whatever domain name is configured in the previous server tab.

quick look at template commands.html shows that getDomains() needs to track email as well, and amend the email attribute line to _email rather than data.email

Thanks for the feedback!
Fixed. 😉


 How did you resolve it?

Oh I didn't know this issue popped up again. It was solved automatically on my end when I built from Master using Bazel 0.15. I have a few lines in my build call that I add to in the inits, but I haven't built in a recent while. I'll reopen this if my build fails again.

Ooff can confirm that it's indeed back. Reopening.

which commit did you build the above version?
It looks like I made a mistake in our build files, which excluded cloud capabilities by mistake.
It is fixed in the last few days.

I just built on whatever the latest commit was on Master 3 hours ago.

I pulled the fresh master and was able to rebuild it.
On Tue, Nov 20, 2018, 4:41 PM Gunhan Gulsoy<EMAIL_ADDRESS>wrote:

which commit did you build the above version?
It looks like I made a mistake in our build files, which excluded cloud
capabilities by mistake.
It is fixed in the last few days.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/23758#issuecomment-440438308,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEY95TXX5IuyW83YaDYVjS7aFJIzH413ks5uxHb7gaJpZM4Ye0JD
.

Closing then! Thanks!

@gunan Could you please point to commit which resolves ImportError: cannot import name cloud issue?
I have observed this error on test cases failures for v1.12.0

I just did "git checkout master" to make sure I have that fix. I also think
it may be a good idea to just delete "tensorflow" folder after a failed
build and pull a fresh one. I think "bazel clean" does not clean up
everything.
On Thu, Nov 22, 2018 at 12:48 PM Nayana Thorat<EMAIL_ADDRESS>wrote:

@gunan https://github.com/gunan Could you please point to commit which
resolves ImportError: cannot import name cloud issue?
I have observed this error on test cases failures for v1.12.0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/23758#issuecomment-441093672,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEY95RT2nfUsQDAlkGVqww8lMswjkGnhks5uxuN_gaJpZM4Ye0JD
.

@phalexo Thanks for your inputs.
I wanted to know which commit fixes this issue in master so if possible I can apply that patch to v1.12.0 code and rerun test cases.

I think the same commits mentioned in https://github.com/tensorflow/tensorflow/issues/23771 should fix this

@gunan reopening because it's back again.. :(

I think you need to build with GCP support on x86 system to avoid running into this problem
on ppc, we will slve this by disabling access to tf.contrib.cloud as described in #23976

Aha! I just started the bulid with GCP, will report back! THanks!


Change values in kdims of HoloMap widgets

I constructed my HoloMap by going over an index i and thus my widget slider displays this index, but I would like to have the corresponding values a_var[i] as values.
More concretely, my widget controls the slope a of a line that varies between 0.4 and 1.2. This variation is created over 20 discrete points saved in a_var. C.f. the example below:
import holoviews as hv
import numpy as np
hv.extension('bokeh')

# Define line a*x+b
n = 201
a = 0.8  # slope
b = 2  # offset
x = np.linspace(0,25,n)
def fct(a,x,b):
    return a*(x-2)+b
y = fct(a,x,b)

# create HV object for a*x + b together and line y = x
hv_curve = hv.Curve((x,y),'x','y')

# create HoloMap object with varying slope
n_a = 20 # number of slope changes
lower_slope_limit = 0.4
upper_slope_limit = 1.2
redim_range = np.r_[np.repeat(9.0,15),np.array([10.0,12.0, 14.0, 17.0, 21.0])]

# let a vary between lower and upper_slope_limit
a_var = np.linspace(lower_slope_limit,upper_slope_limit,n_a)
y_list = []

for i in range(n_a):
    y_list.append(hv.Curve((x,fct(a_var[i],x,b))))
# create HoloMap object
dict_y = {i:y_list[i] for i in range(n_a)}
hmap_y = hv.HoloMap(dict_y, kdims = ['a'])

hmap_y

Is there an easy way to control the values of the kdim=['a'] without significantly rewriting the code?

Do you mean display a_var[i] instead of i?
If so, you could just do...
dict_y = {a_var:y_list[i] for i, slope in enumerate(a_var[i])}

That was simple. Great thanks!


add tool clipOverlap to usegalaxy.org

Hi,
Would it be possible that the tool clipOverlap (galaxyproject/tools-iuc#3553) is also added to usegalaxy.org?
Many thanks,
Monika

Hi, sorry for asking again but is it possible to add the clipOverlap tool to usegalaxy.org? Thanks

@galaxybot test this

@galaxybot deploy this

Sorry for the wait, and thanks for the PR @monikaheinzl!


[SuperEditor] Fix ActionTagComposingReaction looking for composing tag at selection base twice instead of at base and at extent.

Without this fix, this could cause an exception, as the condition checks if extent.nodePosition is a TextNodePosition and then assumes that base.nodePosition is a TextNodePosition.

Can you please express this bug as a failing test and then show that this change fixes the bug?

Are there any existing tests related to action tags which I could use as a reference?
I currently don't have the setup to test it outside of our app, but essentially it can be triggered for example by:

Have one ParagraphNode with a cancelled ActionTag (careful not to trigger #2177)
Have a HorizontalRuleNode
Select upstream from the end of the HorizontalRuleNode into the ParagraphNode

It seems quite obvious to me that the code is not intended this way, as both the comment, as well as the condition indicate that extent is intended here. Base was already checked in the block before. (And it also fixes the exception, of course.)
https://github.com/user-attachments/assets/b6404371-c62a-4b97-b6ed-a69d1863a620

Are there any existing tests related to action tags which I could use as a reference?

Yeah, we try to do our best to comprehensively test all features. In general, all PRs that modify behavior (non docs) are expected to include corresponding tests.
Here are the current action tag tests:
https://github.com/superlistapp/super_editor/blob/main/super_editor/test/super_editor/text_entry/tagging/action_tags_test.dart

@matthew-carroll Added a test which triggers the exception/demonstrates that the exception is no longer triggered with this fix.

Not sure why the netlify deploys are failing now. Is it because this PR's base is now outdated vs the main branch?

I tried to edit this PR directly so you wouldn't need to push another change, but it looks like I can't do that.
Please replace the test description with this:
"can find tag that surrounds the extent position when the selection is expanded"

Please replace the description at the bottom of the test with this:
// If we reach the end without exception, then ActionTagComposingReaction did not blow up due to the base or extent
// position, and type of content at those positions.
//
// Original bug: https://github.com/superlistapp/super_editor/pull/2201

@matthew-carroll Done.

@angelosilvestre can you cherry pick this?


standard ingress: support/document virtual hosts

OpenWhisk may not be the only piece of software deployed on a Kube cluster.  We need to better support sharing the cluster's Ingress with other deployed services when not using a NodePort ingress.  In particular, our standard ingress template should setup a virtual host for the OpenWhisk URL paths instead of putting them at the top/root level.

Actually it is better to use subdomains.  The google standard ingress documentation already described this.  Updated the IBM public docs in #401


Update all docs + playground to use our CDN

Here is the URL: https://openfpcdn.io/botd/v0.1
Before publishing, please test everywhere to make sure it's working correctly.
See how the fingerprintjs oss repo already did it.
@Romchela cc

Done


Update names.cwt

debug - based on STNH, confirmed by Walschicus on the discord server.

I will test what the real issue here is, perhaps tomorrow

Couldn't find what the reported issue is. Anyway it is not this.


Document moving of constants to go-square

          [discussion] it looks like these constants were moved to go-square. Note to future selves, we should add a line to the v3.0.0 release notes breaking changes section that consumers who imported these constants from `appconsts` can instead get them from go-square. I think we could start a changelog file for release notes like this.

Originally posted by @rootulp in https://github.com/celestiaorg/celestia-app/pull/3765#discussion_r1709912518

I think more broadly it might be beneficial to introduce an UPGRADING.md page

Yea an UPGRADING.md page works for me 👍

Closing in favor of https://github.com/celestiaorg/celestia-app/issues/3791


Json.Json!

Similar to Bytes.Bytes and Bytes.Encode, Bytes.Decode.
I would be nice to have Json.Json type and remove Encode.Value and Decode.Value.
I was confused what is difference between Encode.Value and Decode.Value.
And then I check the source code and realize that it is alias.
I would say that having Json.Json type will make very clear - it is a JSON!
What do you think?

As it's not guaranteed to carry a value in valid JSON format – It's a js value – I'd be in favor of calling it Json.JsMagicValue or something in that direction;
hinting that it's compiler magic which isn't caseable and causes elm to crash on ==
and which can include functions, proxies, getters, bigInts, anything.
and.. of course this can be abused to break elm's promises (sorry for snitching):

randomness without Cmd ellie
web-audio examples

WebAudio.Context.currentTime
WebAudio.Context.AudioContext

getBoundingClientRect
listening to events outside a given element


Fix prompt for empty project files when loaded

Fixes #25541

I think it would be a better solution not to display any pop-ups because the empty project.godot is often created with some reasons and does not cause any irreversible changes.

@qarmin Yes this is another point we can consider. But I was trying to cater to people who may expect something to be in the project file but don't find anything to their surprise

@akien-mga I have made the changes.

Thanks!


Webpack not generating different hashes for .css and .js files

I'm trying to implement long-term caching of my js project.
What I've found is that both .css and .js use the same hash
app.860846ea86c7b67eddd0.js       132 kB       0  [emitted]  app
styles.860846ea86c7b67eddd0.css   21 bytes       0  [emitted]  app

and when I JUST change .css file, both files are updated (I would expect the .js file to stay the same).
app.353477b32cc15ea06465.js     132 kB       0  [emitted]  app
styles.353477b32cc15ea06465.css   20 bytes       0  [emitted]  app

I've verified that the file that wasn't supposed to change has the same md5 sum.
I've created a sample github repo to demonstrate. (The readme has a few more details).
https://github.com/vlod/webpack_chunk_strange/tree/master

I would appreciate some help. I'm fairly new to webpack and it's most likely a config error, but I've spent 2 days trying everything I can.
Thanks.

Oops.. I'll try stackoverflow first.


Transitive Reduction Algorithm

Hey,
I have had a need to use transitive reduction algorithm for some project I am working on. I am willing to contribute the code I used inspired by some matlab library I found(It is based off of V3.0 ). Not sure I will have enough time to implement proper testing thought.
Would that we OK for me to submit a PR ?
Thanks!

Hi!
Yes, please submit PR.  Don't worry about tests. Note that we have temporarily turned off PCL library building due to some problems with build automation and code contracts. So NuGet package contains  .NET 3.5 version only.

Alright, I kinda drifted on working on something else but I think I can still make it. If not, I would update this issue to be closed.
Thank you for your patience!

@RomanBelkov can we close this issue?

Yes, I think so.
@yoadsn I've refactored your code a bit and merged your code along with a couple of basic tests in QG. I've made a note that original code is written by you and not me, so, I guess, everything is just.
If you'd like to add some tests or edit the code -- you are always welcome!

Sorry for not making it to a working PR, I drifted too far.
Glad you could find the time to scavenge something useful - thanks for the attribution!


Standard cells of type buffer are not connected to power

Buffer cells does not connect to power rails.
Here's the screenshot :

I saw a similar issue while running gcd design as well.

I tried uploading file to reproduce the issue but I don't know for some reason it's not uploading.

Only certain file types are allowed by GH so perhaps that is your issue.  Do you have a global_connect statement to connect these instances?

Yes. I have used global_connect statement.
Here's the file to reproduce this case:
detail_route_ldo_sky130hvl_base_2022-10-20_10-22.tar.gz

It appears that you need to run your global connect statements again as the instance in question must have been created afterwards.
@arlpetergadfort does you recent change in odb provide a way to do this from the db or do the commands need to be run again?

@maliberty if the flow is fully in ODB, then yes, the rules are saves in the database and they can be rerun at anytime with global_connect.

@lulu9312 what flow are you using?  ORFS? OL? other?

@maliberty I am using ORFS flow. I have added global_connect statement before grobal route, now the cells are connected to power.


Service invocation blocked in stand-alone mode due to empty SPIFFE ID

In what area(s)?

/area runtime
What version of Dapr?
0.11.0-rc.1
Expected Behavior
The hello-world quick start sample works as instructed.
Actual Behavior
The Python app fails to call the Node.js application through service invocation API.  The HTTP response received was 500, with the following response body
{"errorCode":"ERR_DIRECT_INVOKE","message":"rpc error: code = PermissionDenied desc = access control policy has denied access to appid:  operation: neworder verb: POST"}'

@vinayada1 @youngbupark root caused to SPIFFE ID being empty/nil when using standalone mode, causing the extracted AppID to be empty/nil.
Steps to Reproduce the Problem
Go through the quick start hello-world sample https://github.com/dapr/quickstarts/tree/master/hello-world .

cc @mukundansundar @youngbupark @vinayada1 @msfussell

@vinayada1 just making sure: if no access policy has been applied through configuration, then all methods should be allowed, correct?

I suspect that a.accessControlList isn't nil here when it should be: https://github.com/dapr/dapr/blob/ce89980eda9cc86efbc11a745e2959b1925236ca/pkg/grpc/api.go#L118

This change needs to be merged into master branch.

Merged to master via https://github.com/dapr/dapr/pull/2133


Extension causes high cpu load

Issue Type: Performance
Extension Name: vscode-azurefunctions
Extension Version: 1.2.1
OS Version: Windows_NT x64 10.0.19041
VSCode version: 1.53.2

:warning: Make sure to attach this file from your home-directory:
:warning:c:\Users\GRUPEE~1\AppData\Local\Temp\ms-azuretools.vscode-azurefunctions-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!