Crowdsource a list of all the impact measurement models in the world

If we are to create a set of common interfaces to the common measurement models in the world then we need to capture that list of the total number of impact measurement models?

Could this be a crowd sourced survey?
When someone is submitting an IMM to our DB, what questions do we need to know?

WG:

CCF - Cameron
Etsy -
Boavizta - David
Climatiq

===

We should reach out to them to partner but first we need to make our code reach a certain state first.

There are no objections to at least finding out what other models there are out there, including other impacts Water.

Questions that we want to ask of the models that we find:

What are the inputs and outputs?

How do they handle error bars?

What is the granularity?

Given our interface, can their models support out interface? Pros/Cons/Tradeoffs/Risks?

2 pronged approach:

Crowdsource IMMs
Researcher to investigate each IMM and answer the above questions.

Fields to the crowdsourced IMM form:

Link to the IMM?
What impact metrics does it support (carbon, water, energy etc...)
What input telemetry does it accept (utilization, billing)
Is there any information on the methodology?
Is it being used somewhere? (academic, commercial)
Is it open source, closed source?
When was the model last updated/used?

Academia might be a good resource to crowdsource this material.

Closing this issue, it's old and I believe the conversation has moved on!


Smooth animation to new zoom + new center

Issue Type
[v] Improvement
Description and/or steps/code to reproduce the problem
cf. comments in #866
@monsieurtanuki

In a better world we would have an animation that animates at the same time towards a new zoom level and towards a new center.

@MKergall

The animation could be improved (I've seen superb animations on other map tools, "flying" from origin to destination)

Version of osmdroid the issue relates to:
6.0.0

Hi,
Do you know where this enhancement will be implemented ?
Or do you know some workaround ?

For the moment we only have MapController.animateTo(IGeoPoint point): if you're already on the same zoom level, that's perfect.
A workaround would be to set the zoom first and then use animateTo, possibly using something like View.post(Runnable) in order to ensure that the zoom is correctly set before the animation starts.
The current animateTo(IGeoPoint point) method uses a Scroller, which scrolls a View step by step in order to play an animation.
But for animateTo(IGeoPoint point, double zoom) we would also need to "scroll the zoom" from the current zoom to the destination zoom. The whole thing can probably be done with a ValueAnimator.
I'll have a look at that in the following weeks.

I confirm: the idea is to use something similar to MapController.ZoomAnimatorListener.
I'll merge the solution within a week.

@pierre-binauld Implemented in #991
@MKergall Enjoy the new "More Samples / Events / Animate To" flying carpet effect


added load_population function in ezy init

Current coverage is 100.00%

Merging #94 into master will not affect coverage as of 57bb442

@@            master     #94   diff @@
======================================
  Files           29      29
  Stmts          952     952
  Branches         0       0
  Methods
======================================
  Hit            952     952
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 57bb442

Powered by Codecov. Updated on successful CI builds.


1227/jurisdictionalized listing meta endpoint

Closes #issue

Description
This fixes a juridictionalization issue with the meta data end point for listings. It was causing the production detroit public site to pull in too many of the programs
How Can This Be Tested/Reviewed?
Head to https://detroit-public-dev.netlify.app/
Go to filter listings, and verify that only programs for detroit still show up on that filter list
for devs you should aim your local at production db and verify that only the programs for detroit are showing up
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have reviewed the changes in a desktop view
[x] I have reviewed the changes in a mobile view
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have assigned reviewers
[x] I have run yarn generate:client and/or created a migration if I made backend changes that require them
[ ] I have exported any new pieces added to ui-components
[x] My commit message(s) is/are polished, and any breaking changes are indicated in the message and are well-described
[x] Commits made across packages purposefully have the same commit message/version change, else are separated into different commits

Reviewer Notes:
Steps to review a PR:

Read and understand the issue
Review the code itself from a style point of view
Pull the changes down locally and test that the acceptance criteria is met
Also review the acceptance criteria on the Netlify deploy preview (noting that these do not yet include any backend changes made in the PR)
Either explicitly ask a clarifying question, request changes, or approve the PR if there are small remaining changes but the PR is otherwise good to go

On Merge:
If you have one commit and message, squash. If you need each message to be applied, rebase and merge.

Closing this PR in favor of removing programs with no jurisdiction

DELETE FROM programs p
WHERE NOT EXISTS (
    SELECT
        1
    FROM jurisdictions_programs_programs jp
    WHERE jp.programs_id = p.id
)
;

is the query used to remove those programs


Import Error: docs not updated?

From Docs here: https://secure.readthedocs.io/en/latest/headers.html
from secure import SecureHeaders
secure_headers = SecureHeaders(csp=True, hsts=False, xfo="DENY")
. . .
secure_headers.framework(response)

but looks like it changed to:
from secure import Secure

Its not updated, feature is removed and docks are quite outdated so cant find what they replaced it with or anything.

Use this: from secure import Secure

and secure_headers.framework.(response)
for me that is secure_headers.framework.sanic(response)
But it does not fix the fact that the docs are severely outdated.

Thanks @klausmyrseth and @chhantyal for alerting me on the issues with the documentation. I think I have updated all references to old version. (28c4b6e126bcb549e2e942a9b617742c5155ae89)
The new version is supposed to leverage and embrace modern Python language features (including type hints), I would be interested in hearing your opinions of the syntax and API changes and/or any overall feedback!


Constraints on types of header, struct, and stack fields

https://p4.org/p4-spec/docs/P4-16-v1.2.0.html#sec-header-types
Failing tests:

examples/checker_tests/bad/issue407-1.p4
examples/checker_tests/bad/header3.p4
examples/checker_tests/bad/stack_e.p4
examples/checker_tests/bad/twovarbit.p4

These tests pass now:

examples/checker_tests/bad/issue407-1.p4
examples/checker_tests/bad/header3.p4
examples/checker_tests/bad/stack_e.p4

However, test examples/checker_tests/bad/twovarbit.p4 still fails.
I am not sure if it is kosher or not for a header to have multiple varbit<w> fields. Section 7.2.2. Header Types does not seem to mention any such restriction for headers in general.
However, as described in Section 12.8.2. Variable width extraction, Headers passed into extract may only have up to one varbit<w> field.
Should the restriction on the number of varbit<w> fields in a header be imposed generally, or just for the case of extract?

Recursive headers are now verboten.
Test examples/checker_tests/bad/issue2290.p4 now passes

Everything's passing except the twovarbit thing. I asked over at the p4c repo about it since it seemed like something that should get checked at extract() calls and not at header definitions: p4lang/p4c#2445

https://github.com/p4lang/p4-spec/issues/876


Added YAML template input support

More and more examples and quickstarts are published in YAML format. This feature enable YAML templates to be ingested and converted to cfndsl

Woohoo - tests passed @allinwonder can you merge?
Cheers


Scrolling through large logs of addons lags

Home Assistant Android version:  v1.3.1 (57)
Android version: 9
Phone model: OnePlus 3T
Home Assistant version: 0.103.3
Last working Home Assistant release (if known): n/a
Description of problem: When I scroll through a long log/output of a HASSIO addon, it lags a lot and scrolling is very slow. Really difficult to get to the end of the output.
Traceback (if applicable): n/a

Additional information:
EDIT: the app sometimes even freezes completely and I have to restart it by swiping it from androids task mgr.

Can you reproduce this in the Chrome app ?

Yes! It's latest Chrome v<IP_ADDRESS>.93.
Is it related to Chrome then? 🙈

Try disabling any accessibility services. If that improves the situation, you're experiencing https://bugs.chromium.org/p/chromium/issues/detail?id=1014945
You must and should complain there then because Chrome devs don't really care so far though

Thanks for your quick reply! Where do I disable such services? Is it just an option inside the Chrome app? I disabled "AutoFill" as mentioned in your linked page but that does not solve the issue. My other "accessibility services" seem to be off, see following screenshots (sry, it's German).

https://github.com/docker/cli/blob/master/contrib/completion/zsh/_docker
Can you open this site without Chrome crashing?

Yes and I can scroll until the end of that page quite fluently. AutoFill enabled. Accessibility services as in the screenshot above.

I guess it's a different issue then. You can try your usecase with another browser not based on Chromium, like Firefox Previewo or so. If you can browse your logs without issues then, you should open an issue on the Chromium bugtracker.

The webview that we use is using an engine similar to Chrome. Since you experience it in Chrome, it's clear that it's not the app (since we don't make any changes to the webview, that would also be surprising)

Would it be possible to make the engine configurable, so that I can also switch to, eg Firefox?
I use Chrome as my daily driver but for Home Assistant, it really sucks (reloading sometimes takes plenty of seconds, scrolling issues, editing issues in Lovelace configs, buttons not being visible / rendered correctly,... )... 🙄

This issue seems to be gone (maybe Chrome and/or the App was updated). Scrolling is very fluent now.


Create climatehealthei.is-local.org.json

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.

Description

our organization Climate Health Education Initiative
Link to Website

https://climatehealthei.wixsite.com/climate-health-educa
Im going to transfer it onto github later, that is why there are IPs

I accept the CLA


[GDB] printValueOfType is not compatible with opaque pointers

This function performs an explicit comparison against the string value of pointer types; in LLVM 16 and onwards these values are all just ptr and so the check breaks.
The fix will be to use the ValueType available at the callsite, rather than the string values.
https://github.com/runtimeverification/llvm-backend/blob/b1f1e9c41322a7e3303eb8b973f379f82462d05c/runtime/util/ConfigurationPrinter.cpp#L343-L367C2

@Baltoli (if you have the time)
can you comment on this with more details about what needs to be done further here?
Is this related to GDB support?

Yes, this is indeed related to GDB support. The code in question is responsible for pretty-printing a runtime term from the backend; to do this, we need to know what type of term we're looking at (e.g. is the term a block pointer, a leaf value, an MPZ integer...). The representation used by the backend doesn't let you figure that out intrinsically, so we need to carry around some extrinsic information about what terms represent when we dispatch based on their type.
Typically in the backend we carry around a value of type ValueType for this purpose. The problematic code here does not do this, but rather dispatches on the textual representation of the LLVM IR type of the term pointer to be printed (is it a %block *, %mpz_t *...). In LLVM 16, a breaking change was made that collapses the type of pointer values into a single %ptr type, which means that the incorrect branch is selected because the textual values concerned have changed.
The fix for this issue is to amend the call site for this function to keep track of a ValueType and pass that information through, rather than checking textual representations of LLVM IR (the latter approach is likely to be fragile in the future for other reasons as well, and I'd consider it a minor code smell generally).
Let me know if any of this doesn't make sense; while I'm still off @Robertorosmaninho probably makes the most sense to fix this as the original author of the code IIRC.

Thanks for the clarification, Bruce! I'll try to investigate and fix this issue!

@Robertorosmaninho I presume that this would be usefully fixed in relation to your changes to enable batched testing of the debugger support?

Yes! That would be very helpful!


ChromeDriver only supports Chrome version 74

Yesterday I did a deployment of this gem in production and I noticed this error when someone tries to fetch an Instagram feed:

session not created: This version of ChromeDriver only supports Chrome version 74 (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 4.15.0-54-generic x86_64)

Is this a know issue? I'm running it with Dokku (should be similar to Heroku)

@jankeesvw thanks for reporting this issue, I've seen similar errors coming in.
✅ I just released version 0.3.0 which should address this.

Great, thanks @richardvenneman. I just deployed this new version and it seems to work!  ✨
Btw I'm using instagrammer in https://rssmailer.app in case you are wondering.

Nice! Glad to hear it's of use to you in your project :)


Using any other element than document while creating the highlighter

I am using the highlighter module to highlight a certain portion of the HTML page. A specific div is going to be using the module only which is actually an angular directive. I am persisting the highlight range in the backend and rendering it again when the page gets loaded again. This is because I want to persist the highlights.
The problem I am facing is that the page has few dynamic components which may or may not change on every page load. This creates problems in rendering the saved highlights.
To resolve this, I tried to use the static element while creating the highlighter, using the following code
var highlighter = rangy.createHighlighter(element);
This gave me the following error -
TypeError: Failed to execute 'setStart' on 'Range': parameter 1 is not of type 'Node'.
    at WrappedRange.api.createCoreModule.rangeProto.setStart (allPluginJsPartTwo.js:42934)
    at WrappedRange.moveToBookmark (allPluginJsPartTwo.js:42427)
    at Object.characterRangeToRange (allPluginJsPartTwo.js:45712)
    at Highlight.getRange (allPluginJsPartTwo.js:45816)
    at Highlight.apply (allPluginJsPartTwo.js:45837)
    at Highlighter.deserialize (allPluginJsPartTwo.js:46203)
    at allCommonJs.js:11098
    at processQueue (allFrameworkJs.js:14804)
    at allFrameworkJs.js:14820
    at Scope.$eval (allFrameworkJs.js:16064)

(Please ignore the JS file names and code lines. They are merged by grunt.)
The error comes, because a particular containerNode is undefined. The containerNode which is basically missing from here is defined as element.body which is undefined for any DOM element except document element.
I tried using the following silly workaround.
element.body = document.body;
which was just doing the exact same stuff as sending document object in createHighlighter().
So I am assuming that the rangy.createHighlighter() needs to have only document object as the parameter. My question is, how can I make it work for any element, not just the document object?

Reader the documentation of options here:
https://github.com/timdown/rangy/wiki/Highlighter-Module#highlightselectionstring-classname-object-options
Probably you are looking for containerElementId


Update README with xpu quantization steps

Type of Change
Update README with xpu quantization steps
fix cpu benchmark example_inputs
Description
Expected Behavior & Potential Risk
How has this PR been tested?
Dependency Change?

need to update this doc as well, https://github.com/intel/neural-compressor/blob/zixuan/xpu_doc/docs/source/quantization.md#specify-quantization-backend-and-device


go get<EMAIL_ADDRESS>doesn't seem to get the tagged version?

Maybe it was just me but when I do go get<EMAIL_ADDRESS>it doesn't get the code that I see in https://github.com/outcaste-io/ristretto/blob/v0.2.0/go.mod
Specifically the one that I download includes golang/glog
My workaround was to specify the commit (https://github.com/outcaste-io/ristretto/commit/bd658a460d49079c51c64cad7c1634c42df7a0ef) as  go.mod/replacement
replace github.com/outcaste-io/ristretto v0.2.0 => github.com/outcaste-io/ristretto v0.1.1-0.20220420003845-bd658a460d49

In the meantime this is what I have in my ~/go/pkg/ directories
<EMAIL_ADDRESS>$ cat go.mod
module github.com/outcaste-io/ristretto

go 1.12

require (
        github.com/cespare/xxhash/v2 v2.1.1
        github.com/davecgh/go-spew v1.1.1 // indirect
        github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2
        github.com/dustin/go-humanize v1.0.0
        github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
        github.com/pkg/errors v0.9.1
        github.com/stretchr/testify v1.4.0
        golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f
)

vs the commit hash version
<EMAIL_ADDRESS>$ cat go.mod
module github.com/outcaste-io/ristretto

go 1.12

require (
        github.com/cespare/xxhash/v2 v2.1.1
        github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2
        github.com/dustin/go-humanize v1.0.0
        github.com/pkg/errors v0.9.1
        github.com/stretchr/testify v1.7.0
        go.uber.org/atomic v1.9.0
        golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f
)

I'm not sure what the exact problem is though 🤷

@manishrjain, seems like github actions automatically closed the issue and points to dgraph-io. Yet, from what I understand the whole point of the fork is that you  don't have relationship with dgraph-io anymore.

Hey @nik-andreev ,
I just tagged v0.2.1. When I go get it, I get this go.mod
module test2

go 1.18

require (
	github.com/cespare/xxhash/v2 v2.1.1 // indirect
	github.com/dustin/go-humanize v1.0.0 // indirect
	github.com/outcaste-io/ristretto v0.2.1 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	go.uber.org/atomic v1.9.0 // indirect
	golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b // indirect
)

Seems to be giving the expected results. So, try with v0.2.1?

Thank you for the speedy response! And yes, v0.2.1 seems to be working as expected.


[QUESTION/FEATURE REQUEST]: Merged header cells ("colspan")

What version of React-Table are you using?
6.8.2
What bug are you experiencing, or what feature are you proposing?
I cannot find a way to mimic a Table's "colspan" within React-Table. I'm aware that it uses
 and not
, and so there is no built-in easy way to include, but it'd be useful to have a way to create merged cells (in my case, for a header).
Note that I'm not referring to the current column grouping, which gives both the column header and a group header, but rather something more like this (Apologies I can't include an image - GitHub isn't allowing me to upload an image, for some reason. Hopefully this standard HTML markup will explain what I'm referring to.):

            Header 1
            Header 2
            Colspan header

            one
            two
            three
            four
            five

Is this possible to do now? Would you be interested in having this feature added?

Note to anyone who wants a (very) hacky way to do what I want above (and don't need any grouped headers). You can set the TheadComponent to NOT render the normal headers, and instead use the grouped headers.
(I am using Typescript for my project, so the following is in TS)
...
columns={[
  {
    Header: 'Header 1',
    columns: [{ Cell: 'one' }],
  },
  {
    Header: 'Header 2',
    columns: [{ Cell: 'two' }],
  },
  {
    Header: 'Colspan header',
    columns: [
      { Cell: 'three' },
      { Cell: 'four' },
      { Cell: 'five' },
    ],
  },
]},
TheadComponent={({ className, ...props }) => {
  const isHeaderGroup = className.indexOf('-headerGroups') >= 0;
  if (!isHeaderGroup) {
    return null;
  }
  const DefaultComponent = ReactTableDefaults.TheadComponent as React.ComponentType;
  return (
    <DefaultComponent
      className={className.replace('-headerGroups', '-header')}
      {...props}
    />
  );
}}

It is not possible to do this in ReactTable and cannot really be done in the current design.
This type of thing may be considered in an upcoming major rewrite (there is no timetable on the delivery of this - so if you need this feature now you should probably use a different package).

@gary-menzel do you know any other package that does this? I can't find anything where I can merge cells based on if they have the same data.

@CallumHemsley Merging of cells is such a very specific rendering issue and dependent on every separate use case.  V7 of react-table detaches the rendering from the internal manage of the data - so you will be able to do anything with the data in your own custom renderer.  Just be aware that V7 is heavily based on React Hooks (which is not a bad thing - you just have to understand how hooks work).
I'm heavily caught up on in other work at present by @tannerlinsley is in the depths of the V7 rewrite (it's even changed a lot since I was looking at it back a few months ago).  But, it is currently in the master branch here and is nearing completion for release.  I am sure once you get the hang of it, you will be able to do any complex rendering of table data that you can think of.
There are already examples on codesandbox but they are evolving rapidly as the code is refined - so check back often.

I you look at the examples for v7, most of them are using a standard HTML table element. You'll also notice if you look at the source, that the column headers are using colspan.
I hope that answers your question :)

@tannerlinsley , is it possible to archive in V7 something like this?

       1

       2.1
       2.2

       3.1
       3.1
       3.3
       3.4

I've tried to add extra nested header to basic example but it still breaks.
{
        Header: 'Extra Top Header',
        columns: [
          {
            Header: 'Name',
            columns: [
              {
                Header: 'First Name',
                accessor: 'firstName',
              },
              {
                Header: 'Last Name',
                accessor: 'lastName',
              },
            ],
          },
          {
            Header: 'Info',
            columns: [
              {
                Header: 'Age',
                accessor: 'age',
              },
              {
                Header: 'Visits',
                accessor: 'visits',
              },
              {
                Header: 'Status',
                accessor: 'status',
              },
              {
                Header: 'Profile Progress',
                accessor: 'progress',
              },
            ],
          }
        ],
      }

This should work just fine and appears to be a bug. Could you please open a new issue with this information?

Any updates?

@AlexGusew - This may help
https://github.com/TanStack/table/discussions/5201


Docker 17.06 with Rancher 1.6.4

Hello,
I have recently upgraded docker version from 17.03 to 17.06. However, It shows unsupported docker version from Rancher UI.
In the documentation, it is stated that docker 17.06 is supported with Rancher v1.6.3+.
Link: http://rancher.com/docs/rancher/v1.6/en/hosts/#supported-docker-versions
Please confirm whether this docker version is supported or not?
Thanks

Can you share a screenshot of Infrastructure -> Hosts view? Or tell what OS you are running and how you are installing Docker?

The documentation is correct, please let me know if you run into any problems.


Dexrewards Give Blue Mending Books Which are Non-functional

As the title says, the dexrewards for Master rank have a Mending book reward, but this book is bugged/not the correct version. By "Blue" book I mean the color of the name "Enchanted Book" when hovering over the item. It should look yellow and not blue in order to function properly.

In this image you can see me attempt to put this book on a vanilla diamond shovel with no output shown on the anvil (output is barely visible behind gui).

In this image I have moved the cursor so you can see more clearly there is no output.

In this image I have put in a normal Mending book (yellow) to show what it should look like, the other enchantments are there because this book was fished up.
To fix this, you have to change the Enchanted book reward for Master rank to be a proper yellow one instead of a blue one. Cursory research led me to this thread on the topic which may be helpful https://www.spigotmc.org/threads/spawned-enchanted-books-wont-work-with-anvils.306557/

mod note: manually refunded him the mending books.

Fixed, thanks for the report!


chore(release): merge release into master

merge release v1.1.0 to master

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: df55f5ebe9d1b0a8325ce2360b041ea63b836365
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 316b3a44c25aece5f10c0b8917563384665a343b
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Failed to get config/highwater/lowwater from broker

Hi there!
Trying out your exporter (because I'm too lazy to rewrite the one I have to natively export metrics for prometheus :-D)
And I'm seeing the following errors:
{"error":"EOF","level":"warning","module":"cluster","msg":"failed to get describe configs response","time":"2019-06-10T13:01:20Z"}
{"broker_id":1,"error":"EOF","level":"error","module":"cluster","msg":"failed to fetch high watermarks from broker","time":"2019-06-10T13:01:20Z"}
{"broker_id":1,"error":"kafka: broker not connected","level":"error","module":"cluster","msg":"failed to fetch low watermarks from broker","time":"2019-06-10T13:01:20Z"}

This is by just running the plain go binary on a regular machine. No docker, no k8s, ...
TELEMETRY_HOST=<IP_ADDRESS> TELEMETRY_PORT=9111 VERSION=0.1.3 EXPORTER_METRICS_PREFIX=kafka_offsets KAFKA_BROKERS=localhost:9092 ./kafka-minion
What am I doing wrong?
Thanks!

Hey, what Kafka version are you running?

<IP_ADDRESS>
You are not allowed to make any derogatory comment about how old this is :-D

I'm also getting {"level":"info","msg":"Offets topic has not yet been consumed until the end","time":"2019-06-10T13:56:20Z"} when I try to curl the /metrics endpoint. I assume it's a side effect of these errors I'm seeing.
Because the cluster I'm running against is not seeing a whole lot of traffic these days. the __consumer_offsets topic is only ~160MB on disk, and kakfa-minion has been running for ~40min.

Oh and if that helps, it complains about every brokers in that cluster, one after the other. Not just 1.

There is a chance that 0.11 is the minimum required version, but I'd need to test it. Additionally I could improve kafka minion so that it would print a more accurate error version if you try to use an unsupported kafka version

The minimum requirement is v<IP_ADDRESS>. I updated the Readme accordingly. I am sorry.


Make Mesh associated type for Gateway

Every Gateway implementation is specific to one Mesh so it makes sense to have Mesh as an associated type. Gateway clients do not need to pull Mesh generic argument anymore and it makes client code simpler

Lets merge this also since this would make some of the protocol code simpler.

cancelling it as #102 addresses these issues too but also changes the Gateway definition


clip_gradient

@WuJie1010
Hi Wujie,
I'm kind of confused with clip_gradient which is this sentence:
"clip_gradient(optimizer, 0.1)"
I only know the gradient is for regularization, but don't know the details, that's also what my second question, which parameter in the network is applied the value 0.1? What does clip gradient really do, and how to choose the threshold value?
Thanks a lot!

@WuJie1010 Hi Wujie,
I'm kind of confused with clip_gradient which is this sentence: "clip_gradient(optimizer, 0.1)" I only know the gradient is for regularization, but don't know the details, that's also what my second question, which parameter in the network is applied the value 0.1? What does clip gradient really do, and how to choose the threshold value?
Thanks a lot!

"clip_gradient" is a function in deep learning that is used to limit the magnitude of the gradients during the backpropagation process. The purpose of this is to prevent the gradients from becoming too large or exploding, which can cause problems during optimization and lead to a failure to converge.
In the code snippet you provided, "clip_gradient(optimizer, 0.1)", the function is being applied to the optimizer, and the threshold value is set to 0.1. The threshold value determines the maximum magnitude of the gradients that are allowed to be backpropagated through the network. If the magnitude of a gradient exceeds the threshold, it will be clipped, or scaled down, so that it falls within the threshold.
As for how to choose the threshold value, it is often determined through trial and error. A common starting point is to set the threshold value to a small value, such as 0.1, and then adjust it based on the results obtained during training. If the gradients are exploding, the threshold can be increased to reduce their magnitude. If the optimization is not making progress, the threshold can be reduced to allow larger gradients to be backpropagated.
It is also important to note that while gradient clipping can be a useful technique, it should be used with caution, as it can also lead to suboptimal optimization if the threshold is set too high.


More read-only notebook previews

If a user's cluster is stopped or non-existent, show a ready-only preview of a notebook when it's clicked, with a small top bar explaining that it's read-only and a progress indicator when resuming. Editable notebook should be loaded once the cluster is in 'running' state

AC:

[ ] with no cluster, I see a read-only version of a notebook
[ ] with a cluster that is creating, I see a read-only version of a notebook
[ ] with a cluster that is running while viewing a read-only version of a notebook, I see a link and message that gives the option of switching to edit
[ ] with Owner/Writer access, if Leo does not respond then I see a read-only version of a notebook (from #1003)
[ ] with Owner/Writer access, I can open a read-only version of a notebook (from #1070) when opening the notebook, and I see a link and message that gives the option of switching to edit

Should we bring forward the labels from the consolidated issues?
#1070 had 2019-March  Beta-response  amp-pd

Splitting this into multiple PRs, the first of which is here: https://github.com/DataBiosphere/saturn-ui/pull/1239

Next PR: #1251

Please provide a comment as to why this is closed.
There is a PR out, but it has not been merged.
If the intent is that the issue can be tracked elsewhere, please state that explicitly.
Thanks!

@mbookman I think there's some confusion going on among a set of related issues here. The present issue is about adding in read-only preview to provide the user with some ability to review the notebook during that unfortunate time span where their VM is creating or un-pausing. This has been merged and released to production.
Your related issue #1070 requests on-demand read-only preview. We are doing that. It is in review with a separate PR https://github.com/DataBiosphere/saturn-ui/pull/1239. So
So I believe the two issues are in the correct respective states. The genesis of the present ticket was as part of our response to removing cluster auto-create. I therefore aded the "internal-ideas label". #1070 will close once the open PR is merged, reviewed and released. It carries the "Beta-response" and "amp-pd" labels, the the request originated with you.
I have a to-do to reach out to you and Nicole with some questions about some particular aspects of the UX around read-only previews.
I think it would be good to have a standing checkin between you me and Nicole to review the status of your top issues so that we can talk about implementation timelines and challenges and hopefully avoid confusion. Would you be interested in that?
Thanks!

Thanks Brad!

BTW, the features added by @katevoss in #1239 are awesome. The read-only view while waiting for my notebook cluster to start is a real time saver!


chore: remove a space from CHANGELOG.md

I found CHANGELOG.md includes an unnecessary space.
$ ls CHANGELOG.md*
'CHANGELOG.md '

@suzuki-shunsuke good catch, thank you!


Fix make file to install jq when running on linux host

This will only work on Debian/Ubuntu systems, you need to identify the Linux release to define the package manager to use


How to send multiple queries?

Just like: https://www.algolia.com/doc/api-client/php/search#multiple-queries
I didn't see multipleQueries method in Laravel Package. How to do this?
Thanks

@tanshiqi Sorry for the delay. You need to use the php client that is installed with the algoliasearch-laravel package.
We use the great vinkla/algolia package that is the bridge between the algolia client and laravel.
See https://github.com/vinkla/laravel-algolia to know how to use it


off button ignore when window open

With VTerm v 5.1.0, when i click on the off buttom during the windows open detection, VTerm will start heat when the window will be closed.

Hello @jfchadeyron ,
If the window is open, the VTherm is off so clicking on off does nothing. Yes, and is that wrong ? Are you describing the expected behavior or the current behavior ?
Can please follow the issue template: have VTherm attributes (what kind of VTherm do you use), what is observed , what is expected, ... It helps me to find is something is wrong.
Thank you.

I want to turn off the heat even the window is open or close. It's not possible : we must wait window is close to turn off the heat.

I want to turn off the thermostat even the window is open or close

If the window is closed, I suppose there is no issue to turn off the VTherm.
If the window is open, the VTherm is already off, so it cannot be turned off more than that.

we must wait window is close to turn off the thermostat

Maybe what you want is that (and I would like you say it like that and not on a single sentence):

Initial state: VTherm is on and heating,
open the window. The VTherm turns off. That is ok,
click on turn off on the VTherm.  The VTherm stays off. That is ok,
close the window. Observed: the VTherm turns on, Expected: the VTherm stays off because the user intentionnaly turns off the VTherm.

If this is what you want, it is not so easy :

the feature is: when window is closed, restore the state before turning off the VTherm,
when clicking on Off on an already Off VTherm there is no state change. So no notification I guess and I think I won't be able to do whatever. I'm not totally sure of that,
If I suppose it will be notified, I have to change the restored state and not the current state.

Thank you very much for this explain (and sorry for my english).
1- why you don't want to replace restored state by off if clicking on off ?
2- a proposition :  create a "suspend mode" when windows is open to see the difference between if a windows is open and if thermostat is off.

I don't want to complexify more. I close the request.


Merge pull request #1 from microsoft/main

update May 22 2022

This PR fixes #

yarrn has network Issues and needs security update for Tar? This is funny

@TomTravis This PR does not change any files. What are you trying to do?

hello
The pull request is to update my fork it worked the first time git ask me
to do this vscode is now yarning away i have not changed the repo yet,
vsciode reset my chroot for some reason, maybe some debug statement  will
be added to see what happens
On Tue, May 24, 2022 at 12:44 AM Christof Marti @.***>
wrote:

@TomTravis https://github.com/TomTravis This PR does not change any
files. What are you trying to do?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/pull/150183#issuecomment-1135525141,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALB4YVNWTBS7QPRU22JHIETVLSCHBANCNFSM5WVZ5EYA
.
You are receiving this because you were mentioned.Message ID:
@.***>

This is the original microsoft/vscode repo. Assuming you inadvertently opened this PR here. Closing.


[posix-netif] reduce excess WARN logs

Added another change in 2nd commit. Please review again. @librasungirl @jinran-google @bukepo

@jinran-google @librasungirl PTAL again.


cosmic-session: fix xdg-desktop-portal-cosmic path

Description of changes
Use the correct path for xdg-desktop-portal-cosmic
And use it as an environment variable, rather than using just to pass the variable.

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

might as well update cosmic-sessions in this pr too tbh :3

@nyabinary,
There were actually 2 separate issues.
Since we don't use just build we need to pass the variable directly.

You also need to add meta.mainProgram to xdg-desktop-portal-cosmic for this, like https://github.com/NixOS/nixpkgs/commit/42f4a7bb436b2a34dee2cb4b33dbefaf882df327

@ofborg eval


[Twitch] TwitchVodIE and TwitchPlaylistBaseIE reports different ID for the same video.

Checklist

[ ] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dlc version 2020.10.31
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Description

The id returned by TwitchPlaylistBaseIE has an extra v in the front as opposed to TwitchVodIE.
I use youtube-dlc --get-id --flat-playlist --download-archive ytdl.archive <url> to check if there are new videos in a playlist. This works perfectly for youtube, but fails for twitch since only TwitchPlaylistBaseIE is invoked due to --flat-playlist but the video id recorded in the archive is the one returned by  TwitchVodIE.
Manually adding a v in front of the id fixes the issue for VODs. But I do not know enough about twitch to tell whether this breaks any other types of videos.

Anybody familiar with the twitch extractor want to help me?


Cleanup 'additional references'

Existing links were either not free(LPTHW), classes to computer science(edx,udacity).

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

I disagree, all these resources are useful. This should be closed.


Evaluation

@ALL
Hey, anyone who knows why the evaluation results (i.e. Car_easy =0.00....) like as follows:
Evaluating detections...
Running: ./src/dataset/kitti-eval/cpp/evaluate_object ./data/KITTI/training ./data/KITTI/ImageSets/val.txt ./data/model_checkpoints/squeezeDet/val/detection_files_200000 3769
/bin/sh: 1: ./src/dataset/kitti-eval/cpp/evaluate_object: not found
Evaluation summary:
Average number of detections per image: 9.59724064739:
Timing:
im_read: 0.031s detect: 0.014s misc: 0.011s
Average precisions:
car_easy: 0.000
car_medium: 0.000
car_hard: 0.000
pedestrian_easy: 0.000
pedestrian_medium: 0.000
pedestrian_hard: 0.000
cyclist_easy: 0.000
cyclist_medium: 0.000
cyclist_hard: 0.000
Mean average precision: 0.000
Analyzing detections...
Detection Analysis:
Number of detections: 16571.0
Number of objects: 17558.0
Percentage of correct detections: 0.759640335526
Percentage of localization error: 0.0990284231489
Percentage of classification error: 0.025164443908
Percentage of background error: 0.114718484099
Percentage of repeated detections: 0.00144831331845
Thank you very much.
Bin Yang

^src/eval.py is calling KITTI's evaluation script. Have you compiled it before running evaluation?

I forgot to do this step before running evaluation. I will try it. Thank you very much.

Does the eval code (eval.py and/or evaluate_object.cpp) need to be altered for use with different dataset?
Thank you

I've added a pull request with additional instructions on how to perform the compilation:  https://github.com/BichenWuUCB/squeezeDet/pull/84

@BichenWuUCB if one is using custom data resolution and want to modify eval script, I mean "evaluate_object.cpp", do you have any ideas on how these KITTI evaluation parameters (see below) were computed?
// evaluation parameter const int32_t MIN_HEIGHT[3]     = {40, 25, 25};     // minimum height for evaluated groundtruth/detections const int32_t MAX_OCCLUSION[3]  = {0, 1, 2};        // maximum occlusion level of the groundtruth used for evaluation const double MAX_TRUNCATION[3] = {0.15, 0.3, 0.5}; // maximum truncation level of the groundtruth used for evaluation
It seems those above parameters works for KITTI image resolution, is there any generic formulation for an arbitrary image resolution?

@BichenWuUCB if one is using custom data resolution and want to modify eval script, I mean "evaluate_object.cpp", do you have any ideas on how these KITTI evaluation parameters (see below) were computed?
// evaluation parameter const int32_t MIN_HEIGHT[3] = {40, 25, 25}; // minimum height for evaluated groundtruth/detections const int32_t MAX_OCCLUSION[3] = {0, 1, 2}; // maximum occlusion level of the groundtruth used for evaluation const double MAX_TRUNCATION[3] = {0.15, 0.3, 0.5}; // maximum truncation level of the groundtruth used for evaluation
It seems those above parameters works for KITTI image resolution, is there any generic formulation for an arbitrary image resolution?

@BichenWuUCB Any update on this? I mean, eval.py is good for other datasets, with other image sizes, but labels in the correct KITTI format or should be changed?


AnySpam

Description
A Python Based Program to spam text.
Fixes #31
Type of change
Choosing one or more options from the following as per the nature of your Pull request.

NOTE: These boxes can be checked using [X]

[ ] Bug fix (non-breaking change which fixes an issue)

[X] New feature (non-breaking change which adds functionality)

[ ] Documentation Update

Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.

[X] I have named my files and folder, according to this project's guidelines.
[X] My code follows the style guidelines of this project.
[X] My Pull Request has a descriptive title. (not a vague title like Update index.md)
[X] I have commented on my code, particularly in hard-to-understand areas.
[X] I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
[X] I have included a requirements.txt file (if external libraries are required.)
[X] My changes do not produce any warnings.
[X] I have added a working sample/screenshot of the script.

Added a Spam code which can type Large amounts of text

@all-contributors please add @Cheemashyper for code


Get HeatMap of evaluation-done event including deep link into Bridge

DRAFT (in work)
When integrating Keptn's Quality Gate into a Jenkins pipeline, it should be possible to get the HeatMap of the sh.keptn.events.evaluation-done event, which will then be displayed in an iFrame of the Jenkins pipeline.

TBD:

[ ] What is the URL to get the HeatMap?

Thanks Johannes for creating that ticket. This would be great as it will allow us to do several integrations with external tools such as Jenkins, Azure DevOps, ...
I think the link should be to the bridge - and - just as we have it for the deep links it would be great to provide a shortlink to a specific keptnContext or even the eventId of the evaluation-done event. Here some thoughts
bridge.keptn.mykeptndomain/evaluation-result/{keptn-context} -> would visualize the last evaluation-done event for that keptn-context if exists
bridge.keptn.mykeptndomain/evaluation-result/{keptn-context}/{evaluation-done-event-id} -> will show exactly the heatmap for that event id of that keptn-context
As an "extended request" we could either return an HTML page or allow the user to specify a content-type, e.g: PDF, PNG, JPG ... which would allow us to build integrations where we can "archive" the heatmap as a build artifact

I'm not sure if this is possible for two reasons:

SSL certificates (if they are invalid, the iframe won't work)
Basic Authentication on Keptn Bridge


Wrong example for responsive images.

It is found here: https://purecss.io/base/#extras

Seems that the issue fixed itself. I am switching between two browser windows, and it has changed whilst posting this issue.


Remove Go versions 1.6 and 1.7 from .travis.yml

1.6
1.7

Required for Snowflake support

@alexanderdean shoud I just remove it from travis.yml, or remove and insert version 1.9.2 also?


401 for all calls to OrientDB 2.0-M2

Any plans to make this work for 2.0?

solved by release 0.5.0


Conecting to worx did not work

Hi,
I can sign in to https://account.worxlandroid.com with my credentials.
But in iobroker it does not work.
Any suggestions?
Here the downloaded settings anonymised
{   "_id": "system.adapter.worx.0",   "common": {     "name": "worx",     "version": "0.3.1",     "title": "Worx Landroid Cloud",     "authors": [       "MeisterTR<EMAIL_ADDRESS>   ],     "keywords": [       "ioBroker",       "mower",       "Landroid",       "Worx",       "Smart Home",       "home automation"     ],     "license": "MIT",     "platform": "Javascript/Node.js",     "main": "main.js",     "icon": "worx.png",     "enabled": true,     "extIcon": "https://raw.githubusercontent.com/MeisterTR/ioBroker.worx/master/admin/worx.png",     "readme": "https://github.com/MeisterTR/ioBroker.worx/blob/master/README.md",     "loglevel": "info",     "mode": "daemon",     "type": "garden",     "compact": true,     "materialize": true,     "installedVersion": "0.3.1",     "host": "nubroker"   },   "native": {     "mail"<EMAIL_ADDRESS>    "password": "yyyy",     "edgeCutDelay": "5000"   } }
regards
Fi

Debug log?

The short one:
host.nubroker	2019-06-30 13:40:30.717	info	Restart adapter system.adapter.worx.0 because enabled host.nubroker	2019-06-30 13:40:30.717	error	instance system.adapter.worx.0 terminated with code 1 () host.nubroker	2019-06-30 13:40:30.715	error	Caught by controller[0]: /opt/iobroker/node_modules/iobroker.worx/main.js:65 host.nubroker	2019-06-30 13:40:30.546	info	instance system.adapter.worx.0 started with pid 7087 host.nubroker	2019-06-30 13:40:00.531	info	Restart adapter system.adapter.worx.0 because enabled host.nubroker	2019-06-30 13:40:00.531	error	instance system.adapter.worx.0 terminated with code 1 () host.nubroker	2019-06-30 13:40:00.529	error	Caught by controller[0]: /opt/iobroker/node_modules/iobroker.worx/main.js:65 host.nubroker	2019-06-30 13:40:00.360	info	instance system.adapter.worx.0 started with pid 7081
With more details:
host.nubroker	2019-06-30 13:41:31.113	info	Restart adapter system.adapter.worx.0 because enabled host.nubroker	2019-06-30 13:41:31.113	error	instance system.adapter.worx.0 terminated with code 1 () host.nubroker	2019-06-30 13:41:31.113	error	Caught by controller[0]: at startup (bootstrap_node.js:160:9) host.nubroker	2019-06-30 13:41:31.113	error	Caught by controller[0]: at run (bootstrap_node.js:394:7) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at Module.runMain (module.js:611:10) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at Function.Module._load (module.js:445:3) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at tryModuleLoad (module.js:453:12) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at Module.load (module.js:494:32) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at Object.Module._extensions..js (module.js:586:10) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at Module._compile (module.js:549:28) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at Object.runInThisContext (vm.js:97:10) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: at createScript (vm.js:56:10) host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: SyntaxError: Unexpected token ... host.nubroker	2019-06-30 13:41:31.112	error	Caught by controller[0]: ^^^ host.nubroker	2019-06-30 13:41:31.111	error	Caught by controller[0]: ...options, host.nubroker	2019-06-30 13:41:31.111	error	Caught by controller[0]: /opt/iobroker/node_modules/iobroker.worx/main.js:65 host.nubroker	2019-06-30 13:41:30.941	info	instance system.adapter.worx.0 started with pid 7107 host.nubroker	2019-06-30 13:41:00.922	info	Restart adapter system.adapter.worx.0 because enabled host.nubroker	2019-06-30 13:41:00.922	error	instance system.adapter.worx.0 terminated with code 1 () host.nubroker	2019-06-30 13:41:00.922	error	Caught by controller[0]: at startup (bootstrap_node.js:160:9) host.nubroker	2019-06-30 13:41:00.922	error	Caught by controller[0]: at run (bootstrap_node.js:394:7) host.nubroker	2019-06-30 13:41:00.922	error	Caught by controller[0]: at Module.runMain (module.js:611:10) host.nubroker	2019-06-30 13:41:00.922	error	Caught by controller[0]: at Function.Module._load (module.js:445:3) host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: at tryModuleLoad (module.js:453:12) host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: at Module.load (module.js:494:32) host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: at Object.Module._extensions..js (module.js:586:10) host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: at Module._compile (module.js:549:28) host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: at Object.runInThisContext (vm.js:97:10) host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: at createScript (vm.js:56:10) host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: SyntaxError: Unexpected token ... host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: ^^^ host.nubroker	2019-06-30 13:41:00.921	error	Caught by controller[0]: ...options, host.nubroker	2019-06-30 13:41:00.920	error	Caught by controller[0]: /opt/iobroker/node_modules/iobroker.worx/main.js:65 host.nubroker	2019-06-30 13:41:00.741	info	instance system.adapter.worx.0 started with pid 7100 host.nubroker	2019-06-30 13:40:30.717	info	Restart adapter system.adapter.worx.0 because enabled host.nubroker	2019-06-30 13:40:30.717	error	instance system.adapter.worx.0 terminated with code 1 () host.nubroker	2019-06-30 13:40:30.717	error	Caught by controller[0]: at startup (bootstrap_node.js:160:9) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at run (bootstrap_node.js:394:7) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at Module.runMain (module.js:611:10) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at Function.Module._load (module.js:445:3) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at tryModuleLoad (module.js:453:12) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at Module.load (module.js:494:32) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at Object.Module._extensions..js (module.js:586:10) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at Module._compile (module.js:549:28) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at Object.runInThisContext (vm.js:97:10) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: at createScript (vm.js:56:10) host.nubroker	2019-06-30 13:40:30.716	error	Caught by controller[0]: SyntaxError: Unexpected token ... host.nubroker	2019-06-30 13:40:30.715	error	Caught by controller[0]: ^^^ host.nubroker	2019-06-30 13:40:30.715	error	Caught by controller[0]: ...options, host.nubroker	2019-06-30 13:40:30.715	error	Caught by controller[0]: /opt/iobroker/node_modules/iobroker.worx/main.js:65 host.nubroker	2019-06-30 13:40:30.546	info	instance system.adapter.worx.0 started with pid 7087 host.nubroker	2019-06-30 13:40:00.531	info	Restart adapter system.adapter.worx.0 because enabled

Er kommt also mit der Zeile 65 "...options" nicht klar

constructor(options) {
super({
...options,
name: 'worx',
});

Node update, 6 wird nicht mehr unterstützt


feat(rollup-relayer): finalize bundle

Purpose or design rationale of this PR

add bundle-proposer.
finalize bundles.

Todo: add a bunch of unit tests.
PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

[x] feat: A new feature

Deployment tag versioning
Has tag in common/version.go been updated or have you added bump-version label to this PR?

[x] No, this PR doesn't involve a new deployment, git tag, docker image tag

Breaking change label
Does this PR have the breaking-change label?

[x] No, this PR is not a breaking change

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 53.92%. Comparing base (e679052) to head (a4995c2).

Additional details and impacted files
@@                Coverage Diff                @@
##           feat/upgrade4    #1411      +/-   ##
=================================================
+ Coverage          53.85%   53.92%   +0.06%
=================================================
  Files                156      156
  Lines              12049    12026      -23
=================================================
- Hits                6489     6485       -4
+ Misses              5055     5036      -19
  Partials             505      505

Flag
Coverage Δ

database
42.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Feature]: search, group and categorize errors in debugger

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Instead of showing a list of errors in debugger.
We could have the option to group and categorize them.

Why should this be worked on?
If the user has a long list of pending errors. (9+)

It's discouraging to skim through the list of errors. (if they decide to clean up their app)
It's not very easy to find errors related to a specific entity.

Entity types (as dropdown):

All (selected by default)
API/Queries
Canvas/Widgets
JsObjects

Group by entity
Say a check box that enables/disables grouping.
Errors from same widget/Api/JsObject are grouped into one accordion.

Search (to filter errors) - perhaps just a search would suffice?

not planned - we will relook at the debugger in the near future as part of the IDE pod roadmap


Using autocomplete from html LSP

According to https://www.andersevenrud.net/neovim.github.io/lsp/configurations/html/
it is necessary to setup up the vscode-langservers-extracted with
--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true

require'lspconfig'.html.setup {
  capabilities = capabilities,
}

In order to get auto-completion working for HTML.
Is there a possibility to add an option for this on https://nix-community.github.io/nixvim/plugins/lsp/servers/html/index.html .
Maybe there is also another way to do this in my user config? Unfortunately I have not been able to get this properly setup.

The following should work:
extraConfigLuaPre = ''
  local hmtl_capabilities = vim.lsp.protocol.make_client_capabilities()
  html_capabilities.textDocument.completion.completionItem.snippetSupport = true
'';

lsp = {
  enable = true;
  servers.html = {
    enable = true;
    extraOptions.capabilities.__raw = "html_capabilities";
  };
};


Fix fingerprint transfer on weapon attack

About the PR

Fixes #22714
Why / Balance

Fingerprints should only transfer in cases that make sense.  This will make the detective's job easier as there won't be unnecessary/illogical fingerprints on items.
Technical details

I didn't remove instances of DoContactInteraction, in case they are used again for viruses or other things in the future. I just added another arg to the event to specify if the interaction logically uses a hand.
Since only ForensicsSystem subscribes to it, I've just removed those instances where we don't want to raise the event.
In the future if/when another system like diseases uses the event, we can consider refactoring it.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

fix: Fixed victim's fingerprints transferring onto an attacker's weapon

awesome cheers.


database records not being saved

Hi,
I'm not being able to save records to db. even when i issue countAll(Model.class) after calling persist on the model instance I get 0 as as number of records (persist is called twice and i'm running the countAll after the first persist). whats wrong?
package .com.mh.model;

import android.content.Context;

import com.yahoo.squidb.android.AndroidOpenHelper;
import com.yahoo.squidb.data.ISQLiteDatabase;
import com.yahoo.squidb.data.ISQLiteOpenHelper;
import com.yahoo.squidb.data.SquidDatabase;
import com.yahoo.squidb.sql.Table;

public class ModelController extends SquidDatabase {
    Context mContext;
    public ModelController(Context context)
    {
        super();
        mContext = context;
    }

    @Override
    public String getName() {
        return "enduser_pets.db";
    }

    @Override
    protected int getVersion() {
        return 9;
    }

    @Override
    protected Table[] getTables() {
        return new Table[]{
               Model.TABLE
        };
    }

    @Override
    protected boolean onUpgrade(ISQLiteDatabase db, int oldVersion, int newVersion) {
        mContext.deleteDatabase(getName());
        return false;
    }

    @Override
    protected ISQLiteOpenHelper createOpenHelper(String databaseName, OpenHelperDelegate delegate, int version) {
        return new AndroidOpenHelper(mContext, getName(), delegate, getVersion());
    }
}

ModelControler mController = new ModelController(getApplicationContext());
ModelClass mclass = new ModelClass();
mclass.setTitle("Hi");
mController.persist(mclass);

I can't say for sure if this is the cause of your specific problem or not, but your onUpgrade() method would definitely cause some major issues:

mContext.deleteDatabase(getName()) would delete the db file out from under the SquidDatabase while it still has an open connection to it. The behavior if you do this is undefined; I think what you want is to call recreate()  which will safely close the db, delete it, and create a new, empty one instead.
Returning false from onUpgrade means that you are indicating to the SquidDatabase that the migration has failed. In this case, the SquidDatabase would throw a MigrationFailedException, and since you're not overriding onMigrationFailed, the default implementation will just rethrow that exception, meaning it may never be attempting to persist your model in the first place.

I'd recommend you check out the Implementing database upgrades wiki page and follow the guidelines there for your onUpgrade method. If that doesn't solve your issue we'll probably need more information.

I modified the above mentioned changes, removed the mContext.deleteDatabase to recreate() and true as onUpgrade return value but still cant save data to the db...so what information is needed to be able to help me more? and thanks

If you come join our gitter chat at https://gitter.im/yahoo/squidb we can help you debug -- I think this will be easier than a back-and-forth on this issue.

@TableModelSpec(className = "ModelClass", tableName = "model")
class Model
{
@PrimaryKey
long model_id;
String title;
}

package com.mh.model;

import android.content.Context;

import com.yahoo.squidb.android.AndroidOpenHelper;
import com.yahoo.squidb.data.ISQLiteDatabase;
import com.yahoo.squidb.data.ISQLiteOpenHelper;
import com.yahoo.squidb.data.SquidDatabase;
import com.yahoo.squidb.sql.Table;

public class ModelController extends SquidDatabase {
    Context mContext;
    public ModelController(Context context)
    {
        super();
        mContext = context;
    }

    @Override
    public String getName() {
        return "enduser_pets.db";
    }

    @Override
    protected int getVersion() {
        return 9;
    }

    @Override
    protected Table[] getTables() {
        return new Table[]{
               Model.TABLE
        };
    }

    @Override
    protected boolean onUpgrade(ISQLiteDatabase db, int oldVersion, int newVersion) {
        mContext.deleteDatabase(getName());
        return false;
    }

    @Override
    protected ISQLiteOpenHelper createOpenHelper(String databaseName, OpenHelperDelegate delegate, int version) {
        return new AndroidOpenHelper(mContext, getName(), delegate, getVersion());
    }
}

My Model class and Model database

package pets_user.mahmoudhaddad.com.mh.pets_end_user.model;
import android.content.Context;
import com.yahoo.squidb.android.AndroidOpenHelper;
import com.yahoo.squidb.data.ISQLiteDatabase;
import com.yahoo.squidb.data.ISQLiteOpenHelper;
import com.yahoo.squidb.data.SquidDatabase;
import com.yahoo.squidb.sql.Table;
/**

Created by mahmoudhadad on 8/23/16.
*/
public class ModelController extends SquidDatabase {
Context mContext;
private static ModelController mModelController;
public static ModelController createDb(Context context)
{
if(mModelController == null)
{
mModelController = new ModelController(context);
}
return mModelController;
}
private ModelController(Context context)
{
super();
mContext = context;
}
@Override
public String getName() {
return "enduser_pets.db";
}
@Override
protected int getVersion() {
return 11;
}
@Override
protected Table[] getTables() {
return new Table[]{
BusinessDetailModel.TABLE,
PetKindModel.TABLE,
ServiceModel.TABLE,
ServiceDetailModel.TABLE,
ProductModel.TABLE,
ProductDetailModel.TABLE,
BoardingServiceModel.TABLE,
BoardingServicePetModel.TABLE,
GroomingServiceModel.TABLE,
GroomingServicePetModel.TABLE,
ImportExportServiceModel.TABLE,
ImportExportServicePetModel.TABLE,
BusinessModel.TABLE
};
}
@Override
protected boolean onUpgrade(ISQLiteDatabase db, int oldVersion, int newVersion) {
recreate();
return true;
}
@Override
protected ISQLiteOpenHelper createOpenHelper(String databaseName, OpenHelperDelegate delegate, int version) {
return new AndroidOpenHelper(mContext, getName(), delegate, getVersion());
}

}

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 23
buildToolsVersion "24.0.1"
defaultConfig {
    applicationId "pets_user.mahmoudhaddad.com.mh.pets_end_user"
    minSdkVersion 23
    targetSdkVersion 23
    multiDexEnabled = true
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.yahoo.squidb:squidb:3.1.2'
compile 'com.yahoo.squidb:squidb-annotations:3.1.2'
compile 'com.yahoo.squidb:squidb-android:3.1.2' // For Android projects only
apt 'com.yahoo.squidb:squidb-processor:3.1.2'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
}

for(int i =0 ; i < jsonArr.length; i++)
{
ModelClass mclass = new ModelClass();
mclass.setTitle("hi");
mController.persist(mclass);
}

I'm only getting this warning
ClassLoader referenced unknown path: /data/app/pets_user.mahmoudhaddad.com.mh.pets_end_user-2/lib/arm64

Caused by: android.database.sqlite.SQLiteException: no such column: service.id (code 1): , while compiling: SELECT service.id AS id, service.serviceId AS serviceId, service.parentServiceId AS parentServiceId, service.nameAr AS nameAr, service.nameEn AS nameEn, service.serviceType AS serviceType, service.isActive AS isActive, service.isPublished AS isPublished, service.price AS price, service.businessId AS businessId FROM service WHERE (service.serviceType=?) LIMIT 10

model spec
package pets_user.mahmoudhaddad.com.mh.pets_end_user.model;

import com.yahoo.squidb.annotations.TableModelSpec;

/**
 * Created by mahmoudhadad on 8/29/16.
 */
@TableModelSpec(className = "ServiceModel", tableName = "service")
public class Service {
    int id;
    long service_id;
    int parent_service_id = 0;
    String name_En = "", service_type = "";
    boolean isActive = false, isPublished = false;
}

Fixed. It was a build tools issue. removed the @PrimaryKey annotations and renamed fields to not have a trailing classname_id names and it worked..Thanks for your help

@mhadad I had a realization about a possible cause of your issue, just wanted to post it here so you saw it and were aware of the behavior. when you said it started working when you removed the @PrimaryKey annotations, I had a suspicion that perhaps the problem was that you were setting an integer primary key column to some value before calling persist(). SquiDB uses the SQLite rowid column as bookkeeping to determine whether or not a row "exists" when deciding on persist() logic. SQLite treats any column that is an integer primary key as an alias to the rowid, so when you declare a column as an integer or long and tag it with @PrimaryKey, SquiDB will use it for this bookkeeping instead. If such a column is set to a non-zero value before calling persist(), the persist method will attempt to do an update on that rowid, rather than an insert -- but if that row doesn't exist yet, the update will of course fail and persist will return false.
You never posted a full example of your persist code using the actual model class you were using so I can't say for sure, but if you had an integer primary key column and were setting it to a value before calling persist, that would be a very likely cause of the behavior you were seeing. Hope it helps.


Subscribe the same channel name with more than one callback

Currently the class Thruway\Role\Subscriber ignores the fact that it can be legitimate to subscribe the same channel multiple times.
https://github.com/voryx/Thruway/blob/master/src/Thruway/Role/Subscriber.php#L164

@jarkt are you trying to register multiple RPCs with the same URI?

Sorry bad wording, I meant subscriptions.

@jarkt - are you using crossbar?

YesAm 15.03.2017 00:46 schrieb Matt Bonneau notifications@github.com:@jarkt - are you using crossbar?
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

@jarkt  - There is an issue open here https://github.com/wamp-proto/wamp-proto/issues/142#issuecomment-81580756
Crossbar returns an identical subscription id if the subscription is exactly the same as an existing subscription. The Subscriber role does not currently handle this.
I will ask for clarification on the spec before figuring out which way to proceed.

@jarkt - After rereading the crossbar issue, it looks like thruway should be updated to handle multiple subscriptions returning the same ids and should have an internal counter that unsubscribes when it gets down to zero.


Use pydantic to parse configs

Previously we used pydantic to parse some of the config settings and did some manually, this just changes it all to use pydantic parsing. This makes it much more reliable, easier to use, and gives us much better error handling.

Thank you, this can be merged as-is.


diff / weekday

Hello,
It would be great if the DIFF function could be set to return the number of working days between the two dates (mon->fri excl sat/sun).
e.g.
Between 01-Sep-2020 and 07-Sep-2020
d1= Tue Sep 01 2020 00:00:00 GMT+0200 (Central European Summer Time)
d2= Mon Sep 07 2020 00:00:00 GMT+0200 (Central European Summer Time)
d2.dif(d1, days) => 6 (I count 7 as  I include the 1st)
As there is one week-end between the 2 dates, it would return 4 (I will count 5 as I include the 1st)

Hi, thanks for this suggestion.
I don't think this is a good idea for Moment.js.
However, it could be useful as a plugin for Moment.js.
Perhaps the "business" plugin might solve your issue.
https://momentjs.com/docs/#/plugins/moment-business/

Please re-open if you still have concerns.

I will take a look. Thank you.


Documentation on where / how to generate or install certs?

Trying to set up a fairly simple re-writing proxy to insert meta into web pages (for use by a web crawler).  I have http working just fine but https is causing me issues.  I have it working locally (request and proxy on the same dev machine) so I'm guessing it's just cert problems.
Any documentation / hints on generating certs for the machine running the proxy and the machine running the crawler?
I tried taking the root cert generated on my dev machine and using it on the proxy server but that didn't seem to work ("The underlying connection was closed: An unexpected error occurred on a send.").  Then I tried letting the proxy server generate it's own cert ("The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.").
Then I tried setting my system proxy to the proxy server and browsing to the end site.  Viewing the cert through Chrome I see "The issuer of this certificate could not be found."  Picking a different site for comparison, I instead see "This certificate has an invalid digital signature."
Given the requests are coming from my dev machine, can the root cert generated locally clash in any way with the root cert on the proxy server?
Suggestions on how to debug further?  Thanks.

FYI each time you clean and build the old root certificate .pfx file is lost. So next time proxy will try to install it again.
Proxy should install the root in current user root certificate store and in current user store. Once its in the store, windows applications including chrome browser can verify the validity of certificates signed by our root certificate. If the browser couldn't verify, it will show the error. So likely you are signing with a certificate not installed in the store.

Is there a publicly exposed mechanism to generate the certificate on the fly?  My organization has adopted this proxy as the base class for a mocking/proxy API (or we will when the generic response code I added moves from the develop branch to the stable branch).  If we try to use this in an unattended lab environment, code progression is blocked waiting for approval in the UI to install the cert.  If we could install the cert beforehand, that would solve the problem.

To avoid warning prompt I think we need to add the Root to Local Machine Store, not to current user Store.
http://stackoverflow.com/questions/4196997/certificate-install-security-warning-workaround
By default the proxy installs it to Current User Store.
https://github.com/justcoding121/Titanium-Web-Proxy/blob/develop/Titanium.Web.Proxy/Network/CertificateManager.cs#L190
We probably can expose this option as public in Proxy Class.

The proxy do generate certificate on fly if not provided one.
https://github.com/justcoding121/Titanium-Web-Proxy/blob/develop/Titanium.Web.Proxy/Network/CertificateManager.cs#L103


Expose more Cgroup CFS metrics for docker containers

What does this PR do?
Expose more Cgroup CFS metrics for docker containers, notably the nr_period and throttle_time values from cpu.stat.
Motivation
Inconsistency with Kubernetes metric collection, and the need to calculate percentage of time throttled (ie. nr_throttled/nr_period).

Hi @adammw, I'm sorry your PR went below our radar.
However, we had to implement something similar recently and did it with:
https://github.com/DataDog/datadog-agent/pull/5716#pullrequestreview-435942180
We do not implement the throttledPct currently but I believe the computation here:
throttlePct = float64(c.CPUThrottled.NrThrottled) / float64(c.CPUThrottled.NrPeriods)

Will not provide the expected results. You'd want to do rate(NrThrottled)/rate(NrPeriod) on Datadog to compute the throttled % for each aggregation unit.
ATM you can rely on the throttled.time that will be introduced in the PR above.


docs: The splash.psd does not work at its current size

Type: docs
Ionic Version: 2.x
Platform: all
The Photoshop Splash Screen Template that is downloadable from http://ionicframework.com/docs/cli/icon-splashscreen.html does not generate anything when 'ionic resources --splash' is run until it is resized from 2732 x 2732 to 2208 x 2008. Would it be a good idea to have it at that size to begin with?

This issue was moved to driftyco/ionic-site#755

Hello! Thanks for opening am issue with us! Since this is an issue with the docs and not the framework I have moved this to the appropriate repo. Thanks for using Ionic!


[dtensor] add reshard suggestion to dfferent sharding on same mesh dim

Stack from ghstack (oldest at bottom):

-> #496

This add reshard suggestion for the case where different inputs shrading
on the same mesh dim. In order to perform local computation, we need to
all_gather one of the inputs on that mesh dimension. We uses a simple
heuristic to determine which input to all_gather (i.e. min comm volume)

ci should be fixed after https://github.com/pytorch/tau/pull/504


HAWQ-978. Fixed deadlock in signal handler which call asynchronous un…

…safe functions elog()
(1) Can not call elog() in signal handler function, because elog() will cascade call some unsafe function.
(2) When CheckStatementTimeout() called, "canceling statement due to statement timeout" will be printed out, so we don't need to re-print it.

+1

+1

LGTM  +1


add copyright

Closing because this isn't actually needed. Only new files and substantial changes to existing files require us to add the copyright.


Other project using your work without naming you as the author

The tilix project IMHO using your work but do not name you as the author.
Please see the screenshot on their README.md.
New visitors to that project thinking that the powerline-shell prompt is produced by tilix. They install it and wonder why it is not their.
There is an issue about that problem. But the maintainers do not aggree to the arguments and are not willing to remove the screenshot nor naming you as the author of that prompt-style.

This is free software licensed under the MIT license, it is nowhere stated in the license or any other place among this entire source package that states that any credit of any kind needs to be given to the author. In fact, what is implied is that you can do whatever you want with this software, even sell it, and claim you made it for a profit.


Civ vehicles do not save

Saving civ vehicles without simply saving everything that isn't an enemy around a FOB requires checking that Civ vehicles have the seizure flag as given by https://github.com/StormCircuit/KP-Lib-Altis-Storm-Edits/blob/main/functions/fn_setVehicleSeized.sqf
However this script currently is failing for some reason. Once this script is fixed further testing is needed in https://github.com/StormCircuit/KP-Lib-Altis-Storm-Edits/blob/main/functions/fn_doSave.sqf

The list of civilian vehicles in game is gotten raw from the civilian vehicles list. When looking for objects to save around a FOB, ALL vehicles are checked as lower case. This results in a mismatch when looking for vehicles to save.
Somehow need to make civ vehicle array lower so when the classname of the vic is checked in all lower it produces a match in KPLIB_classnamesToSave;

Fixed in 190b65e

Fixed in 190b65e

Note: this means that vehicles in the civ list that are built will trigger the seizure code. You can NOT have a vehicle both in the civ vehicle list and in the build list or a built civ vehicle WILL trigger a civ rep loss. This will have to be an enhancement.


Release v2024.1

This PR prepares the release of v2024.1. It should only contain changes from other PRs that have already been approved and merged (and possibly merge commits from the master branch).

I'm noticing that the submodules were rolled back to v2023.3.1, I think in #617. That shouldn't be an issue, because we'll update the submodules to the latest before release. Just thought I'd make a note of it so that no one's confused.


Not every modal has a  grad_fn

I personally think that sometimes self-defined modal might not have grad_fn, so maybe could consider this more general case.
'NetworkCIFAR' object has no attribute 'grad_fn'

Quoting this answer:

make_dot expects a variable (i.e., tensor with grad_fn), not the model itself.

Try this snippet:
out = net(dummy_input) #net is your NetworkCIFAR instance, while dummy_input is a tensor
make_dot(out)

Moreover, grad_fn is a tensor attribute, not of the model itself.

Quoting this answer:

make_dot expects a variable (i.e., tensor with grad_fn), not the model itself.

Try this snippet:
out = net(dummy_input) #net is your NetworkCIFAR instance, while dummy_input is a tensor
make_dot(out)

Moreover, grad_fn is a tensor attribute, not of the model itself.

It seems not work with minGPT https://github.com/karpathy/minGPT

thanks @aitikgupta ! closing

thanks @aitikgupta ! closing


[stable/fluentd-elasticsearch] deprecate fluentd-elasticsearch

Signed-off-by: André Bauer<EMAIL_ADDRESS>
What this PR does / why we need it:

deprecates chart as its move to https://github.com/kiwigrid/helm-charts/tree/master/charts/fluentd-elasticsearch

Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/lgtm


Update enum type generation to use unions of enum keys

Thrift enums should be referenced in js by their string equivalents. This updates the enum type generation to reflect this by generating type unions of the possible enum strings. It leaves the previous method of enum type generation exported under a different namespace.

By default thrift2flow puts the definitions in $PROJECT_ROOT/flow-typed, right? What's the recommended way of getting the enum map strings from the app?

By default thrift2flow puts the definitions in $PROJECT_ROOT/flow-typed, right? What's the recommended way of getting the enum map strings from the app?

I haven't added that bit in just yet. I'm currently leaving two exports. - the type export, and the value export that was previously used. I think we should look at maybe adding another export with is a value map which mirrors the keys.

What's the recommended way of getting the enum map strings from the app?

Good point, we might need to generate an object that has keys map to values and also expose the type.


Generated password should respect password rules

Sometimes it happens that the generated password does not contain all required elements:
Password::make('password')
    ->generatable()
    ->copyable()
    ->rules(
        \Illuminate\Validation\Rules\Password::min(8)
            ->letters()
            ->mixedCase()
            ->numbers()
            ->symbols()
    ),

In some cases the generated password is missing the number.

Fixed #f954e1c3e0509dcbf39e9f9b057f9b18c2995742


fix: dot after command for install is missleading, use code block

instead so there is no confusion

@Kubuxu doesn't render properly as you forgot the closing codeblock backticks

Btw, I love the rendered preview! So handy

Alright, looks nice! Thanks :+1:


Fix shop buy/sell process

Description

Update shop inventory when buying from a player

Update shop inventory with item count sold by player
Pay player accordingly
If player's coins  after buying something are equals to zero, the coin sprite never got removed from the player's inventory, this PR removes also the sprite in this scenario.

Update shop inventory when selling back to a player

Fix re-buy.
Scenario: if a player sells 5 items, wants to re-buy 1 and right after that wants to re-buy another one there would be no items of the same type left in the shop's inventory.
Solution: This PR fixes it by removing the item just when the item count go to zero in shop's inventory.
Note: Items original to shop never get removed, they just get their item count lowered to zero (I just assumed this behavior when looking into the current implementation).

Related Issue

You can only sell 1 item at the General Store #84
Motivation and Context

Shop behavior was not working as expected, see related issue for more context.
How Has This Been Tested?

Q&A (manual testing)
Screenshots (if appropriate):
Types of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Thank you, I'll take a look at this soon. I appreciate the well-written PR!

The Project itself is really cool! I'm glad Hacktoberfest showed me this!

Thank you! This was wonderful. Great write-up, too! You rock!


Add XML files to describe built-in QoS configuration

This is a work in progress PR to introduce some example XML QoS profiles that users can derive from in their own configuration files to replicate the settings applied by default by rmw_connextdds.
These profiles will help applications to remain compatible with other applications when ENDPOINT_QOS_OVERRIDE_POLICY is set to never (or PARTICIPANT_QOS_OVERRIDE_POLICY, when/if #41 is merged).
The profiles are all stored in file rmw_connextdds/resource/xml/ros2_qos_profiles.xml, which contains the following profiles:

ros2::rmw.ros_discovery_info
ros2::rcl.node_parameters
ros2::rcl.log
ros2::rcl.builtin_endpoints
ros2::rmw_connextdds.base_participant
ros2::rmw_connextdds.base_application
ros2::rmw_connextdds.opt.large_data
ros2::rmw_connextdds.opt.unbounded_data
ros2::rmw_connextdds.opt.content_filtered_topic_property
ros2::rmw_connextdds.opt.localhost_only
ros2::rmw_connextdds.opt.fast_endpoint_discovery

Refer to the comments in the file for details about each profile.
Users should have their profiles include ros2::rmw_connextdds.base_application in their parent hierarchy to replicate the configuration used by rmw_connextdds out of the box, and use profiles ros2::rmw_connextdds.opt.* to introduce additional configurations that the RMW only applies optionally.
An example file (USER_QOS_PROFILES.example.xml) provides a template for what users should place in an application's runtime directory. The file contains a single profile which inherits from ros2::rmw_connextdds.base_application and adds rules to configure the QoS of topic "rt/chatter".
File ros2_qos_profiles.xml is now exported by rmw_connextdds and a new environment hook (only for non-Windows users at the moment) will automatically append it to NDDS_QOS_PROFILES, so that the profiles will be available to users without any further configuration.
For example, to use the profiles with the hello world examples and verify that they are compatible with the default settings, after building rmw_connextdds:
# In a terminal, run a talker with default settings
RMW_IMPLEMENTATION=rmw_connextdds \
ros2 run demo_nodes_cpp talker

# In another terminal (and directory, to make sure the talker doesn't pick up the configuration),
# run a listener with "never" policy and the custom XML configuration.
# Load profiles using variable NDDS_QOS_PROFILES.
RMW_IMPLEMENTATION=rmw_connextdds \
RMW_CONNEXT_PARTICIPANT_QOS_OVERRIDE_POLICY=never \
RMW_CONNEXT_ENDPOINT_QOS_OVERRIDE_POLICY=never \
NDDS_QOS_PROFILES="file://install/rmw_connextdds/share/rmw_connextdds/xml/USER_QOS_PROFILES.example.xml" \
ros2 run demo_nodes_cpp talker

I have updated and extended the README quite a bit:

Revised the descriptions of various environment variable to make them more consistent with each other. All variables now have  a brief explanations of their purposes, followed by a few usage examples, and then a more detailed description of their purpose.
Added a section about QoS configuration via XML, which includes a brief introduction to Connext's XML QoS configuration, and an overview of how users may customize the default QoS used by DomainParticipants and various endpoints. The section also includes a brief description of the "built-in" QoS profiles contained in file ros2_qos_profiles.xml.
Added a section about the DDS entities created by the RMW layer. This section goes into quite some detail to describe when the RMW implementation will create DDS entities, when they will delete these entities, and how the QoS configuration used by these entities is ultimately computed.


Avoid hanging on sync-safekeeper with one SK stuck

refer #2569
I created the PR as draft to see if this is the correct approach.

The startedConnAt is not strictly necessary now, we can go back to it with the combination of SS_CONNECTING_WRITE and  SS_CONNECTING_READ.
@petuhovskiy when you said that we have a logic to send a message every second between compute and safekeeper this keep alive is when the SK is in SS_ACTIVE state if i'm not wrong, I updated the latestMsgReceivedAt in AsyncReadMessage to get the most updated data possible, with this we cover other states than SS_ACTIVE.

Let me know what you think please, thanks!!!

The code looks good! I'm going to do some additional testing and will try to get it merged this week.

this keep alive is when the SK is in SS_ACTIVE state if i'm not wrong

Yes, and when SK is not in SS_ACTIVE state, we expect it to work instantly, so we wait only for latency between the compute and the safekeepers in most states.

Thanks! Ping me if u need anything

Force pushed your changes to properly retrigger tests

Wups, I forgot to squash before merge =(


Firefox select box dropdown affected by Tooltip

Hi there
I am having an issue all of a sudden on Firefox 48.02 ( previous recent releases too) where I have wrapped a select box with a div and applied a class of tooltip against the div and a title. This was I believe due to tooltipster not liking the class being directly applied to the select box. For some of my users the select box now won't function. The tooltip works but when clicking on the select box it shows the options and as you move the mouse down to select one of the options the dropdown options disappear. It is fine in Chrome and IE 11 and fine for me in Firefox. If I remove the tooltip class from the div then the users who were affected are then ok and the browser default use of titles/tooltips works.
Any ideas as to what might be causing this? I have at least 3 users who are affected and I just can't see what is causing it.
Test below that doesn't work for these users.
<div class="tooltip" title="test tooltip">
<select name="select_etc">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>

Hello, no, I don't know why it wouldn't work, it's fine in my FF 48.0.2. Shouldn't have to use a wrapping div either. Just make sure you use Tooltipster v4.

Hi thanks for the quick reply.
That seems to have worked (using latest version) although I now see offsety etc has been removed. It has also broken the code you gave me before for dynamically created html via ajax. You gave me the following:
$('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function(){     $(this)         .tooltipster({ ... })         .tooltipster('show'); });
Has something changed as when I display the dynamic html all the tooltips are on display without a mouseover made on each element first.
thanks
James

You can review the changes here: https://github.com/iamceege/tooltipster/issues/566
offsetY has been replaced with distance.
I think the code I gave you should still work though, it's a bit odd. Check the mentioned topic and we'll see afterwards.

I've made some adjustments and I think it is now working
thanks
James

You're welcome.


ChefDK 0.5.0.rc.1 omnibus release

\cc @chef/client-core
Before 0.5.0 can be released, I want to pull in the released versions of the test kitchen dependencies and the final (non-rc) version of ChefDK.

Looks good, might want to check if Foodcritic can be bumped. You'll also need to wait for the chef 12.2.0 gem to be published

Also as long as the Chef 12.0.0 tag is on github, we can build this, though that'll mean that when we bundle install chef-dk it'll pull in the RC from rubygems.

:+1: all looks sane

@jdmundrawala foodcritic is at the latest, v4.0.0

Let's squash these commits down, rebase on master and get this :ship:'d!


Moore's Voting Algorithm

Want to add the solution to this problem using Moore's voting algorithm in c and c++ under LGM SoC'21.
https://practice.geeksforgeeks.org/problems/majority-element-1587115620/1#. Kindly assign it to me.
Programming language

[ ] C
[ ] C++
[ ] Java
[ ] Python

@Ayush7614 @ravikr126 @Saurabh4626 I'd like to work on this issue in C language under HCSSoC. Please assign me this issue.

Please assign me this issue under LGMSOC'21.
@Ayush7614 @ravikr126 @Saurabh4626


Clarify Sequence Type Relationships

In the spec, under Sequence types, it states:

Sequence: a sequence of known length lets us know how many elements it contains without processing them. Examples: dict, list, tuple, but not string or bytes.

However, in the Java implementation, Dict does not implement the Sequence interface. I think this is a mistake in the spec and should be removed:
-Sequence: a sequence of known length lets us know how many elements it contains without processing them. Examples: dict, list, tuple, but not string or bytes.
+Sequence: a sequence of known length lets us know how many elements it contains without processing them. Examples: list, tuple, but not string or bytes.

This exposes a few other questions that the spec mentions:

SetIndexable currently does not exist. The Java implementation relies on EvalUtils#setIndex but is hardcoded to only Dict and List. Should there be a StarlarkSetIndexable interface or should there be a patch to the existing StarlarkIndexable, similar to Evalutils#setField? For example:

+  /**
+   * Updates an object as if by the Starlark statement {@code object[key] = value}.
+   *
+   * @throws EvalException if underlying object is immutable.
+   */
+  void setIndex(StarlarkSemantics semantics, Object key, Object value) throws EvalException;

The concept of a Mapping is in the spec (as per #198), but does not exist. Should that be introduced alongside with the modification for SetIndexable above? For example:

package net.starlark.java.eval;

import java.util.Map;

public interface StarlarkMapping<K, V> extends Map<K, V>, StarlarkSetIndexable, StarlarkIterable<K> {

}

This would also require a change in Starlark#len().

Last, but not least, in the Java implementation Sequence extends the java.util.List interface. Are all sequences a sub-type of List? Did we mean Collection ?

Interesting to hear your thoughts on this.
Thanks.

I think these remarks are all very specific to the Java Starlark, and more than that, the internal implementation of Java Starlark., Whereas this repo is only about the things that can be observed by the source Starlark code. For example there isn't a Sequence interface in Starlark, it's just a bunch of types that can be iterated over. Are you saying that in Java Starlark [x for x in {1:1, 2:2}] doesn't work? Similarly for all the other types, are you saying that the Java Starlark implementation doesn't correctly at the Starlark level implement the spec? Or are you saying that it does implement the spec but the spec should change? If it's merely that the Java implementation should change without changing the Starlark visible behaviour, that's something for a different repo.

Hi @ndmitchell thanks for the response.

I think these remarks are all very specific to the Java Starlark, and more than that, the internal implementation of Java Starlark.,

That's a fair point, I'll clarify this further below.

Whereas this repo is only about the things that can be observed by the source Starlark code. For example there isn't a Sequence interface in Starlark, it's just a bunch of types that can be iterated over. Are you saying that in Java Starlark [x for x in {1:1, 2:2}] doesn't work?

While there isn't a Sequence interface, there are a few different Sequence types, also referred to in the spec as "contracts." I think I may be just equating "contract" to mean "interface," but perfectly happy to use "contracts" over interface.
In your example of [x for x in {1:1, 2:2}], that would be of an iterable contract and that's exactly the kind of ambiguity I'm trying to resolve. For example, if the difference between an Iterable and a Sequence is that a sequence is of known length and an Iterable is of unknown length, that makes sense.

Similarly for all the other types, are you saying that the Java Starlark implementation doesn't correctly at the Starlark level implement the spec? Or are you saying that it does implement the spec but the spec should change?

So this is where it is a bit ambiguous and I'm asking if there needs to be clarification. Take for example the the semantics behind a slice expression. What contracts must a particular type satisfy for a slice expression to work? The spec says that they work on an "indexable sequence". Does that apply to all types that satisfy an "indexable" and a "sequence" contract?
Python's collections.abc has a nice table that helps highlight all the operations available to a particular contract. I'm trying to understand if it makes sense to propose (and that's really the purpose of this Github issue) that the Starlark spec follows similar naming conventions and map the appropriate operations to the corresponding method.

If it's merely that the Java implementation should change without changing the Starlark visible behaviour, that's something for a different repo.

Of course, I think I was just trying to start a conversation to centralize the conversation before suggesting anything on the bazel repo itself. If it still is too Java implementation specific, I'm happy to close this issue and move it to that repo instead.

Starlark only has three compound types - lists, tuples and dictionaries, with strings being a kinda-compound type. I think it's probably easier to remove all ambiguity from the spec and just say "slices work for lists, tuples and strings", "indexing works for lists, tuples, strings and dictionaries", "iteration works for lists, tuples and dictionaries". Given there are only 4 types, it's not too much to type and is 100% explicit.


Txn version not supported: Polkadot staking dashboard

Is the Kusama Ledger app supporting the latest runtime? It is currently unable to sign transactions on staking dashboard.

:link: zboto Link

hi Ross! Yeah, Ledger is taking a bit of time to update the app, but it's on their pipeline. I'll answer here once they release and you'll be able to upgrade in Ledger Live.
Sorry for the inconvenience!

I have the same problem, is there a date for the ledger to release the v23.9430.0 update?

Hi @Halann the update is expected to be released by Ledger before end of this week.

Hi,
Any update ?
Still not possible to do any transaction/stacking.
Just checked nothing available on ledger live.
Thanks

Hey, i had same issue "Txn version not supported" on Kusama ledger app, please push up this case asap 😖

I'm really sorry, this is currently really in Ledger's hands. They are finishing the review and it should really be released soon.

Version 23.9430.0 was been released by Ledger.


Integrate GUI_IN_CLI in the python package

tedlt

Tweak it so that it accepts a command line argument for the Workshop folder.

Done in 12aa28c96cdca1b01be3fd2b935ad4a54a1b4925