Tracking Issue: pol doc documentation generator

We want to add a documentation generator which can generate HTML documentation for polarity modules.
This issue is for tracking the discussion about features / anti-features that we want to or don't want to support.
Here are some starting questions that we have to answer:

Should we follow the 1 module = 1 html file approach, or should we build a JS-based "single-page" documentation?
We have to agree on some directory for build artefacts. Maybe target/docs/...?
The invocation should probably be pol doc FILENAME at first, at least until we have some  sort of project configuration files.
@timsueberkrueb Is the annotation mechanism of our prettyprinting library ergonomic enough that we can also build a HTML backend which allows to create HTML with clickable links which lead to the definition site?

Should we follow the 1 module = 1 html file approach, or should we build a JS-based "single-page" documentation?

I think there are pros and cons for both options, some that I can think of right now are:
1 module = 1 html file

Easier to maintain (requires only limited web frontend knowledge)
Works without JS enabled
Easier to index by search engines

Single page app

Supports more sophisticated interactive features (e.g. integrate LSP)

Note that frontend apps can also be written in Rust and wasm with (almost) no JavaScript required.

We have to agree on some directory for build artefacts. Maybe target/docs/...?

:+1:

The invocation should probably be pol doc FILENAME at first, at least until we have some sort of project configuration files.

Alternatively, accept a directory and document all files in the directory.

@timsueberkrueb Is the annotation mechanism of our prettyprinting library ergonomic enough that we can also build a HTML backend which allows to create HTML with clickable links which lead to the definition site?

I think it should be possible. The Anno type is entirely user-definable, so we can annotate nodes with anything we want. One thing we need to be careful with is to escape the strings in the pretty::Render implementation (write_str, write_str_all). E.g. see this library.
As long as all we want to do is to annotating syntax nodes and change the HTML output accordingly by wrapping the annotated spans in HTML tags, we should be good. Hover info and jump to definition can be achieved in this fashion. If we want to do anything beyond, we should look into other options.

We should use target_pol instead of target, because target is already used by Rust, and we should avoid interference between the two tools.


Snapshots not generated when using setTimeout

I'm using setTimeout to wait 160ms before snapshotting my components, because it takes 150ms for them to animate into the visual state I want to test. The problem is, when I use setTimeout, Jest does not generate any snapshots, so the tests always pass. The expected behaviour is that Jest will generate snapshots.
import React from 'react';
import renderer from 'react-test-renderer';
import Tabs from '../src/components/tabs/Tabs';
import Tab from '../src/components/tabs/Tab';

test("Display a tab's content which its title is selected", () => {
  for (let i = 0; i < 3; ++i) {
    const component = renderer.create(
      <Tabs activeTabKey={`${i}`} onChangeActiveTabKey={() => {}}>
        <Tab tabKey='0' title='One'>One content</Tab>
        <Tab tabKey='1' title='Two'>Two content</Tab>
        <Tab tabKey='2' title='Three'>Three content</Tab>
      </Tabs>
    );

    setTimeout(() => {
      const tree = component.toJSON();
      expect(tree).toMatchSnapshot();
    }, 160);
  }
});

Tabs.js
import React from 'react';
import classNames from 'classnames';
import Tab from './Tab';

const {func, string} = React.PropTypes;

class Tabs extends React.Component {

  static propTypes = {
    activeTabKey: string,
    onChangeActiveTabKey: func.isRequired
  };

  static childContextTypes = {
    activeTabKey: string,
    visibleTabKey: string
  };

  getChildContext() {
    return {
      activeTabKey: this.state.activeTabKey,
      visibleTabKey: this.state.visibleTabKey
    };
  }

  state = {
    activeTabKey: this._getActiveTabKey(),
    visibleTabKey: this._getActiveTabKey()
  };

  _timer = null;

  _afterDelay = action => {
    if (this._timer) {
      clearTimeout(this._timer);
    }
    this._timer = setTimeout(() => {
      this._timer = null;
      action();
    }, 150);
  };

  _getActiveTabKey() {
    let activeTabKey = this.props.activeTabKey;
    if (activeTabKey == null) {
      const firstTab = this._tabs()[0];
      if (firstTab) {
        activeTabKey = firstTab.props.tabKey;
      }
    }
    return activeTabKey;
  }

  _tabs() {
    return React.Children.toArray(this.props.children).filter(child => child.type === Tab);
  }

  _onClickTab = tabKey => {
    if (this.props.activeTabKey != tabKey) {
      this.props.onChangeActiveTabKey(tabKey);
    }
  };

  _changeVisibleTab(nextActiveTabKey) {
    this.setState({visibleTabKey: null}, () => {
      this._afterDelay(() => {
        this.setState({
          activeTabKey: nextActiveTabKey,
          visibleTabKey: nextActiveTabKey
        });
      });
    });
  }

  componentDidUpdate({activeTabKey: prevActiveTabKey}) {
    if (this.props.activeTabKey != prevActiveTabKey) {
      this._changeVisibleTab(this.props.activeTabKey);
    }
  }

  componentWillUnmount() {
    if (this._timer) {
      clearTimeout(this._timer);
      this._timer = null;
    }
  }

  render() {
    return (

          {this._tabs().map((tab, index) => (

               {
                  e.preventDefault();
                  this._onClickTab(tab.props.tabKey)
                }}
              >
                {tab.props.title}

          ))}

          {this.props.children}

    );
  }
}

export default Tabs;

Tab.js:
import React from 'react';
import classNames from 'classnames';

const Tab = ({tabKey, title, className, style, children, ...props}, {activeTabKey, visibleTabKey}) => (

    {children}

);

const {any, string} = React.PropTypes;

Tab.propTypes = {
  tabKey: string.isRequired,
  title: any.isRequired
};

Tab.contextTypes = {
  activeTabKey: string,
  visibleTabKey: string
};

export default Tab;

Hi, there are several issues with your test.
First of all I would recommend to use Timer Mocks which should be more reliable than your solution. Next you use toMatchSnapshot() in a loop, snapshots are identified by the name of the test, this means that you will only have ONE snapshot, even though it seems you want to have three.
If you want to go with your solution and use setTimeout you should look at Testing Asynchronous Code, it explains how to use a callback to signal to jest that your test is done. Make sure to only call done() after all of your three calls to toMatchSnapshot are done.

Thanks for the tips. I was able to simply remove setTimeout because my assumption about the component needing time to settle was incorrect.
Having said that, it should be noted that the test is created inside the loop and therefore the snapshot file contains an array of three snapshotted renderings, whose names are made unique by appending a 1-based index. Nice!
Thanks for the pointer to mock timers. I'll look into it. Apologies for raising this issue erroneously.


records: change schemas to use local URI scheme

Closes #356.
Test
To test you need to install in the same virtual environment the following packages/PRs:
~/invenio-vocabularies/ $ gh pr checkout 31
~/invenio-vocabularies/ $ cd invenio-rdm-records
~/invenio-rdm-records/ $ pyenv virtualenv 3.8.6 i-rdm-records
~/invenio-rdm-records/ $ pip install -e ".[all,elasticsearch7,postgresql]"
~/invenio-rdm-records/ $ ./run-tests.sh

Passing locally ✅

Tests passing locally, blocked by https://github.com/inveniosoftware/invenio-vocabularies/pull/31 CC @lnielsen


Declare reallyExecutable.script as task's input

Gradle tracks inputs for each task to determine whether the task is UP-TO-DATE or needs to be executed. reallyExecutable.script was not declared as an input file and reported any Capsule task as UP-TO-DATE even though the script file was changed. Consequently Capsule jar was not generated in case only the script changed.
I don't know how I should test this. Any suggestions are welcome.

:+1: Thank you for the PR and enhancement!
I'll be able to get this merged in later today.

@jonas-l How soon do you want a release for this? Based on the noise in the main capsule project, a 1.0.3 release is coming soon and I'd like to do the two changes in one release.

There's no rush. I use the following workaround (in case someone else needs it):
task capsule(type: MavenCapsule) {
  // ...
  ext.launchScript = file('my-script')
  inputs.file launchScript
  reallyExecutable { script launchScript }
}


Fix argument null exception when rendering an error page

@NTaylorMullen @Tratcher

Question: Why was frameContext not being set?

@NTaylorMullen I am not exactly sure but we are populating this data for ContextCode
https://github.com/aspnet/Diagnostics/blob/dev/src/Microsoft.AspNet.Diagnostics/ErrorPageMiddleware.cs#L202
For this particular case it looks like below:

@kichalla Should definitely track down why it's being set to null (why it's failing to locate the responsible code). The original code has null checks for pre/post context code which makes me believe it was purposefully left without the normal context code null checks.
Want to make sure we're not solving the wrong problem here.

So on digging deeper I found that the real cause of this issue is with ErrorPage middleware not showing source code lines of Razor files. I filed a new issue here: https://github.com/aspnet/Diagnostics/issues/157
However the fix in this PR is still good as we want to avoid throwing argument null exception.

Got it, so once #157 is completed the only way an error could occur is if a user put in a faulty #line pragma in their application (which would result in a null frame.ContextCode).
:shipit:

commit 191ffe17219405c6c7c9607c20ba6dd6fbdeecde


Use an assertion to find places where the migration tool fails to produce explanations of changes

There are still several cases where the reason for changes made by the migration tool isn't fully plumbed up to the user interface.  To find these cases (characterize their importance), we should add an assertion in the user interface code to verify that there is a reason for each change, and run migration on various packages to see if the assertion files.

As of 1c7fe7196dd7a542f7f91cd6ea2ac81e1a13146c, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned.
If you still need help, or you believe this issue has been closed in error, please feel free to reopen.


How to disable system suspend when closing laptop lid?

RancherOS Version: (ros os version)
1.4.0
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
Sony VAIO laptop
I saw old closed ticket #1388 and there is a suggestion there to write_file /etc/acpi/suspend.sh with content exit 0. This doesn't seem to work anymore. File doesn't exist in the first place and creating new one doesn't change a thing.
I've also tried to switch console to centos and write_file /etc/systemd/logind.conf with content HandleLidSwitch=ignore. This also didn't help.
In both cases I changed config with ros command, then reboot and in the end checked if the file has been created as it should be. In both cases after closing the lid, laptop suspended.

@MichalMichalak
Could you please paste your write_files content？
I try write_files on ROS-v1.4.0 acpid system-docker container, the result not like you said.
#cloud-config
write_files:
  - container: acpid
    path: /etc/acpid/suspend.sh
    permissions: "0644"
    owner: root
    content: |
      exit 0

$ system-docker exec -it acpid cat /etc/acpid/suspend.sh
> exit 0

I didn't know you have to specify container. After adding container: acpid works fine. Thank you.


Ignore default Meltano Environment on non-execution CLI commands

Per:

https://github.com/meltano/meltano/issues/6677#issuecomment-1228821208

We should ignore default_environment for all of the following commands:

...these are the commands that can't apply an environment and probably shouldn't have a default environment applied:

add
discover
environment
init
install
lock
remove
ui
upgrade
user
version

These could have an environment applied or not, but probably should follow the meltano config behavior of the user specifying it explicitly:

config
job
schedule
select
state

Which then leaves these as applying default_environment automatically:

These could be run without an environment and should auto-apply the default if available:

elt
invoke
test

This should really not be run without an environment, because behaviors like auto-state tracking won't work as expected when no environment is set:

run

@aaronsteers I've already pulled this into:

https://github.com/meltano/meltano/issues/6767

This is likely worth doing an ADR on and then opening issues on the work needed to accomplish it.
Can we close this as a duplicate?


add floating tags push plugin

Add a plugin that runs after koji_import and adds floating tags to the existing manifest lists
produced by group_manifests.
Maintainers will complete the following section:

[x] Commit messages are descriptive enough
[x] "Signed-off-by:" line is present in each commit
[x] Code coverage from testing does not decrease and new code is covered
[x] JSON/YAML configuration changes are updated in the relevant schema
[x] Changes to metadata also update the documentation for the metadata
[x] Pull request includes link to an osbs-docs PR for user documentation updates
(n/a) New feature can be disabled from a configuration file  -- would be too invasive

in  post_group_manifests
104: for image in self.workflow.tag_conf.images:
we don't want to cycle through all images but only through
util.get_primary_images(self.workflow)  + util.get_unique_images(self.workflow)

in exit_floating_tags
instead of recreating manifest list
in post_group_manifests return tuple (digests, list_json)
list_json is created from manifest_util.build_list
and use that in floating_tags plugin

Revised with rcerven's suggestions.  I still need to go back and fix the failing unit tests for other plugins now that group_manifest's return value has changed.

The first commit is missing a Signed-Off-By line.

when we don't use manifest_list / group
we aren't tagging that v2s2 image with floating tags:
https://github.com/containerbuildsystem/atomic-reactor/pull/1282/files#diff-f763f089e65a59d18f50dfefa0f60bc9R178
so we have to tag those as well in new push_floating_tags plugin
as of now we are skipping that plugin:
https://github.com/containerbuildsystem/atomic-reactor/pull/1282/files#diff-b93396a2865903deb32f9c6b1e7555d9R83

Regarding @rcerven comment:

tag_manifest_into_registry could registry the image manifest, media type, and digest
group_manifests's run() would return {"digest": the digest, "media_type": the media type, and "manifest": the actual manifest list or image manifest content}

added a 4th commit to address rcevern's concerns.  I'll still need to address the fallout of the change i the other unit tests downstream from group_manifest but I want to be sure this is the correct approach first.

ok this looks better but can we do this? :
group_manifests plugin will return
dict with : manifest_digest, media_type, image_manifest
we aren't using 'tags' anyway, and we don't need them
and it would be nice if group_manifests plugin would return always same dict
also we could omit media_type if we wanted, since we have manifest_list / image_manifest in 'image_manifest' from where we could get it
what do you think ? @twaugh @mlangsdorf

Yes, I'd rather group_manifests always returned the same keys. I described a set that would work for both group=True and group=False:

group_manifests's run() would return {"digest": the digest, "media_type": the media type, and "manifest": the actual manifest list or image manifest content}

i.e. in the group=False case, the 'manifest' key in the return value will be the image manifest.
In the group=True case, 'manifest' will be for the manifest list.
The push_floating_tags plugin doesn't care about that content of these manifests. It just has to tag that object, whatever it is, with the floating tags. We want:
def add_floating_tags(self, session, manifest_list_data, floating_images):
    manifest = group_manifests["manifest"]
    manifest_digest = group_manifests["manifest_digest"]
    media_type = group_manifests["media_type"]
    ...
        self.manifest_util.store_manifest_in_repository(session, manifest_json, media_type,
                                                            target_repo, target_repo, ref=image.tag)

How does this all this work with verify_media_types if group_manifests is always returning the same type of values whether or not group is true?

How does this all this work with verify_media_types if group_manifests is always returning the same type of values whether or not group is true?

verify_media_types uses output of group_manifest only for expectation of manifest_list only
so you can make there change as well that IF group_manifest returns something and it isn't manifest_list type return that False here : https://github.com/containerbuildsystem/atomic-reactor/blob/master/atomic_reactor/plugins/exit_verify_media_types.py#L101

Changes made.

added to Release Notes under Improvements:

new push_floating_tags plugins that will run after koji_import completes and retag the image with any floating tags


⚠ Bofrost.be has degraded performance

In abec58b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 949 ms

Resolved: Bofrost.be performance has improved in 754234e after 16 minutes.


cat.png is not png

I checked by doing this cmd file -b --mime-type cat.png (prints the mime type of a file) and it says its webp :staring_cat:
Perhaps the file should be renamed to cat.webp

sounds png enough


Support native-tls as a TLS abstraction.

Feature Request
Support native-tls as a TLS abstraction.
Crates

native-tls

Motivation
rustls because of its webpki dependency, can't support certificate with an IP address as its common name: https://github.com/briansmith/webpki/issues/54
It prevents tonic from being used in many situations due to this limitation.

Proposal

Alternatives

@YoEight ah that is unfortunate :( I would like to see rustls support this feature and I don't think it totally makes that much sense to add openssl support back to the transport module. native-tls will not work because it currently doesn't support ALPN negotiation.
That said, it should be possible to supply your own connector which uses something like openssl via https://docs.rs/tonic/0.1.0-beta.1/tonic/transport/struct.Endpoint.html#method.connect_with_connector. If this is the route you want to take I am happy to help :)

Happy new year @LucioFranco !
I'd be glad to use your approach, however, excuse my lack of SSL skills but wouldn't be doing that conflict with the handshake done by rustls?

@YoEight if you don't configure tls with the builders then there will be no tls done. This allows a user to pass in what ever IO type they need. If they want the crate to do tls you can then apply it on top but its not required nor default.
I have seen a couple users have issues with rustls I am considering writing a tower-openssl crate that will implement the correct types for MakeConnection so that all you need to do is pass in the openssl config.

We now have examples of using hyper directly with tonic, so for now you can use hyper-tls or hyper-openssl to achieve what you want.


Cabot Plugin system

Hello all,
This is something that I've been working on for the past couple of weeks. It is almost finished however I'm going to have to take a short break to focus on end of year exams. This is reworking of Cabot's plugin system which will now support StatusCheck plugins. Other changes include:

Upgrade to Django 1.9
A new 'plugins' page which allow you to test alert plugins.
More tests.
A new user preferences page.

The new plugins are stored at https://github.com/cabotapp/ . The plugins are working and tested however there is still documentation to be done. My end of year exams are fast approaching so I'm taking a break however I am hoping to have this ready to merge by the end of the month. The only things left to do are documentation and migrations. I made a pull request for any comments or questions.
I welcome any comments,
Jonny

Commits will be squashed in time for merging.

The plugin system is now finished and working for new installations. I am going to look into doing the migrations this evening. The upgrade from South to the Django's builtin migration system means that the original migration schemes had to be removed and reset. This shouldn't be a problem but I'll take a look.

This sounds like a big change. (We obviously need to rebase to resolve merge commits). @JeanFred can you help @bonniejools work out how to make upgrades seamless?

Merge conflicts have been resolved. Can I request that no new pull requests are accepted for the next few days.

Thanks for this work @bonniejools  − must have been quite a ride to fix the merge conflicts too :)
Sure, let’s get this merged before merging other things. :)

I believe that the migrations are now working but I'll need to write some tests first to make sure. There are also a couple of other loose ends that need to be sorted out :)

The new plugin system is now complete :tada:
The only thing left to do is upload the new and updated plugins to PyPi since they are currently being installed straight from GitHub. The old plugins are owned by the Arachnys account so I'll need access to the Arachnys account temporarily in order to update the plugins (unless you want to do it yourselves). I've emailed @dbuxton about it.

bump

Hey @bonniejools, sorry for the delay.
I’ll look into setting up automatic releases to Pypi (using Travis) − would make things easier in the long run.

@bonniejools Could I get Owner access to @cabotapp organisation?

Yes, David just did it :)

Okay well let me know if there's anything that I can do

@bonniejools sorry that there hasn't been any motion on this, as discussed we'd be happy to merge as long as we can break out into somewhat-digestable mini-PRs that can land individually.
I'm going to close this for the moment but happy to reopen in the future.

@bonniejools @dbuxton is this dead in the water?
As a main priority Cabot really needs to get out of Django 1.6.   Is anyone working on doing that?

Annoyingly, it's complicated by a few things. Most annoying is:

http://stackoverflow.com/questions/27607988/django-class-overrides-fails-system-check - StatusCheckResult models have a check attribute which conflicts with the check() classmethod. Requires renaming to get to ≥ 1.7

I'm sure that once that's resolved there will be a laundry list of things. I was hopeful that @bonniejools would be interested in breaking out the upgrade code from other things but that doesn't (yet?) seem to have happened.


Update network-plugins to use portmap plugin

Portmap allow to use hostPort with CNI plugins. Should fix #1675

I'm not sure how to do it for weave yet, we need to drop a config file on the host like here: https://github.com/weaveworks/weave/issues/3016

Let's run upgrade tests to see if this affects users upgrading.

ci check this

Kubelet cni.go supports conf conflist and  json, flannel already uses Json, maybe we can use json everywhere or conflist, to be consistent between network plugins


Radio and Checkbox Inputs are not tabbable

When creating a form, if you attempt to tab through it which I think is fairly common, it will skip over all radio buttons and checkboxes and go to the next textarea, select, etc. input.
As an example, look at the main site: http://materializecss.com/forms.html
Click the first input field, and then start tabbing like you would on any form. It will completely skip the checkbox and radio button section. I am building a questionaire site and this is proving to be quite the headache.

As a temporary fix you can remove visibility:hidden
On Sun, Aug 30, 2015 at 7:52 PM, shaun3141<EMAIL_ADDRESS>wrote:

When creating a form, if you attempt to tab through it which I think is
fairly common, it will skip over all radio buttons and checkboxes and go to
the next textarea, select, etc. input.
As an example, look at the main site: http://materializecss.com/forms.html
Click the first input field, and then start tabbing like you would on any
form. It will completely skip the checkbox and radio button section. I am
building a questionaire site and this is proving to be quite the headache.
—
Reply to this email directly or view it on GitHub
https://github.com/Dogfalo/materialize/issues/1979.

--
Doggy sends his greetings from Mars.

Yes, removing visibility: hidden from the input makes.
And I also wanted to make the checkbox different while being focused so I added:
[type="checkbox"]:not(:checked):focus + label:before {
  border-color: $color-green;
}

[type="checkbox"]:not(:checked), [type="checkbox"]:checked {
  visibility: visible;
}

Fixed in 20eb814

Looking forward to seeing this! Thanks - we created an entire dating site using everything we could from Materialize - www.swirlmingle.com if you want to check it out.

any fix for when the inputs are previously hidden and then made visible?


Send data / process request using $websocketBackend

Isn't the $websocketBackend supposed to act like httpbeckend mock, and send data / process messages? If not, how can I achieve this behaviour? So far I've found only nodeJS mock servers, not angular ones
Thank you in advance

I'm not sure I understand the question correctly. Are you asking about how to use $websocketBackend mock with $websocket or how does $websocketBackend work with only one method .create()? Or are you asking how to use $websocket without a server aka including the mock version?

Thank you for your response.
I'll try to explain better what I mean with the following scenario:
I'have this websocket:
var ws = $websocket('ws://samplesite.data');
It sends data some data to samplesite.data using the send method:
ws.send(object);
I've also the following $websocketBackend:
var wsb = $websocketBackend('ws://samplesite.data');
How to make it send data back data to ws at the same way? I can't do:
ws.send(object);
because it doesn't have a send method...
I thought that websockets could communicate in both ways, so if a $websocket can send data to a $websocketBackend, also the contrary should be possible... or am I wrong?
Thanks again

If you're using  $websocketBackend on the server assuming you want to send data down to the client then yeah that doesn't work.
If you want to mock the server responses on the client then that's a different story and I can explain that.

Yes, if it doesn't requires too much of your time I'd be really glad to you for these explainations...
Thank you very very much for you support

I've found a library like angular-websocket that including a real mockserver, if you need some inspiration:
https://github.com/wilk/ng-websocket

sorry I didn't get to this. I think what you were looking for for my version was including angular-websocket.js then angular-websocket-mock.js afterwards to overwrite creating a real WebSocket. ng-websocket has a lot of features I planned on going forward with and they include mocks inside the source itself.
The last time I was working on this repo there was a problem of sticking with the w3c spec of how a websocket interface should be (not that simple) and then there are what others believe the interface should be (which is simple). I was planning on allowing the user to choose which interface they prefer, but that might be a little bit confusing not to mention how I would update the docs

@gdi2290 I'm also curious how you would mock server responses to the client using $websocketBackend.  If you could provide some instruction here or update the docs, I'd appreciate it.

+1
I was looking for this feature today too but this thread confirmed it doesn't yet exist.


Can't retrieve newPillarFourTestsByPublishDate metric via API

I am able to retrieve daily test data for Pilar 1, 2 and 3 from the API - but when I try to query Pilar 4 data it returns HTTP/1.1 204 No Content.

newPillarOneTestsByPublishDate - OK
newPillarTwoTestsByPublishDate - OK
newPillarThreeTestsByPublishDate - OK
newPillarFourTestsByPublishDate - FAILS

Example of Pilar 3 working:
 % curl -si 'https://api.coronavirus-staging.data.gov.uk/v1/data?filters=areaName=England&structure=%7B%22date%22:%22date%22,%22PillarThreeTests%22:%22newPillarThreeTestsByPublishDate%22%7D'
HTTP/1.1 200 OK

Example of Pilar 4 returning empty:
% curl -si 'https://api.coronavirus-staging.data.gov.uk/v1/data?filters=areaName=England&structure=%7B%22date%22:%22date%22,%22PillarFourTests%22:%22newPillarFourTestsByPublishDate%22%7D'
HTTP/1.1 204 No Content

Hi @paulmaunders
Thanks for getting in touch.
I don't think we ever really had the Pillar 4 testing figures for England - I think they are only published at UK level. I'll ask the data team again, but I'm fairly sure.

Hi @paulmaunders
We don't have Pillar 4 data separated out by country, it's a UK-only series.
Test and Trace may have more information, we are dependent on what we receive from them to drop into the dashboard.

No problem, thanks for clarifying!


⚠ ClamAV has degraded performance

In 333a824, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 69 ms

Resolved: ClamAV performance has improved in 23e9705.


fix(amplify-codegen-appsync-model-plugin): update QueryField name (java)

Updated the QueryField name for Computed fields. The field used for input used for BelongsTo field
is an id field and the field itself is computed based on the value of input. Updated codegen to
generate the right input varaible in QueryField
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #2884 into master will decrease coverage by 0.36%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2884      +/-   ##
==========================================
- Coverage   62.11%   61.75%   -0.37%
==========================================
  Files         215      219       +4
  Lines       11215    11287      +72
  Branches     2319     2334      +15
==========================================
+ Hits         6966     6970       +4
- Misses       3938     4005      +67
- Partials      311      312       +1

Impacted Files
Coverage Δ

...-model-plugin/src/visitors/appsync-java-visitor.ts
87.9% <100%> (+0.19%)
:arrow_up:

...ges/amplify-graphql-types-generator/src/loading.ts
74.5% <0%> (ø)
:arrow_up:

...-appsync-simulator/src/data-loader/lambda/index.ts
0% <0%> (ø)

...appsync-simulator/src/mqtt-server/trie-listener.ts
0% <0%> (ø)

...s/amplify-appsync-simulator/src/resolvers/index.ts
0% <0%> (ø)

...y-appsync-simulator/src/resolvers/unit-resolver.ts
0% <0%> (ø)

Continue to review full report at Codecov.

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


add al3xanndru as uipath-automation-package plugin developer

Description
Adding myself as a developer of uipath-automation-package in order to have upload permissions to https://repo.jenkins-ci.org/ui/packages/gav:%2F%2Forg.jenkins-ci.plugins:uipath-automation-package .
I'm already an administrator in uipath-automation-package-plugin repo.
Commit permissions proof
Approved and merged PR

I'm already an administrator in uipath-automation-package-plugin repo.

Please have this request approved by a team member of https://github.com/orgs/jenkinsci/teams/uipath-automation-package-plugin-developers


Documentation needs to be a lot more comprehensive and not simply repeating self explanatory information

It would be really nice to have some kind of description or link to what 'hosted' means. "Gets the value that indicates whether this app view is hosted or not" - this is self explanatory by the name of the property. I come to the documentation to learn more about what the terminology means and how it functions as part of building the application. Most of the UWP documentation is simply a slightly longer sentence repeating what is already evident in the property or event name and it's not at all helpful. More code examples would also be very welcome.

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

ID: 5e51cb8b-df29-177b-58b9-e1746a6aef77
Version Independent ID: ee82d333-9130-97fc-c4e2-1e25aca9ab02
Content: CoreApplicationView.IsHosted Property (Windows.ApplicationModel.Core) - UWP app developer
Content Source: https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=%2fwinrt-api-build%2fwindows.applicationmodel.core.coreapplicationview.yml&version=GBlive&_a=contents
Service: unspecified
GitHub Login: @wdg-dev-content
Microsoft Alias: wdg-dev-content

Hi Amy,
I’m am following up on this issue as it was recently reassigned to me. Thank you for taking the time to leave your honest feedback and I will follow up to see if we can clarify the explanation here.
Nick


Crashing when Android app compileSdkVersion = 30 and targetSdkVersion = 30

I updated my app changing both compileSdkVersion and targetSdkVersion to 30 and I could not perform new builds because of a crash on FileUtils.kt

Did any compileSdkVersion fixed your issue @josechagas ?

This error does not happen when using version 29 of compile and targetSdkVersion

Possibly related to #90

I don't have Twitter but the main contributor appears to be more active on Twitter. Can anyone politely ping @jelenalecic for the rest of us?
There appear to be three (possibly 4?) outstanding issues to address immediately.

Android 30 deprecations (this one)
migrate to null safety for Flutter 2 compatibility #99
kotlin nullable bug? #96
iOS build issues #93


Adding support for booting on Intel NUC

Closing the PR because it does not contain only the changes related to Intel NUC support. Another PR will be prepared.

Closing the PR because it does not contain only the changes related to Intel NUC support. Another PR will be prepared.


Questions about "start_time, proc_time, end_time" for every operations in the running results

I ran your code and made modifications to the test.py file to print the start and end times of each operations, similar to a Gantt chart. However, I found that the durations of different operations within the same job have overlapping. Specifically, I found that operations within the same job can have overlapping processing times when executed on different machines. In the FJSP problem, the subsequent operation cannot begin until the previous one has finished.
I would like to know, if there is an error in my code or if I misunderstood your code. My modified code is as follows, with the addition of a printing section:
def schedule(env, model, memories, flag_sample=False):
    # Get state and completion signal
    state = env.state
    dones = env.done_batch
    done = False  # Unfinished at the beginning

    biases = env.num_ope_biases_batch[0]
    proc_time = env.schedules_batch[0]
    # operation list for every machine
    res = [[] for _ in range(env.num_mas)]
    last_time = time.time()
    i = 0
    while ~done:
        i += 1
        with torch.no_grad():
            actions = model.policy_old.act(state, memories, dones, flag_sample=flag_sample, flag_train=False)
            # print("actions:", actions)
            injob_index = copy.deepcopy(actions[0][0])  # operation global index
            st = round(proc_time[injob_index][2].item(), 3)  # start time
            et = round(proc_time[injob_index][3].item(), 3)  # end time
            # The following code obtains the index of an operation within the job
            if injob_index > biases[-1]:
                injob_index -= biases[-1]
            for j, k in enumerate(biases):
                if injob_index > k:
                        continue
                elif injob_index < k:
                    injob_index -= biases[j-1]
                    break
                else:
                    if j==0:
                        break
                    else:
                        injob_index = 0
                        break
            # print(f"Machine:{actions[1][0]} ; Task({actions[2][0]}-{injob_index})")
            # Task(job_id - operation_id_in_job)[start_time - end_time]
            res[actions[1][0]].append(f"Task({actions[2][0]}-{injob_index})[{st},{et}]")
            # As printed below
            # Machine0: Task(0-0)[0.0,4.5]||Task(4-1)[5.0,9.0]||Task(10-1)[5.0,7.0]||...
            # Machine1: Task(1-0)[0.0,6.0]||Task(4-2)[6.0,12.0]||Task(2-0)[0.0,6.0]||Task(3-1)[13.0,19.0]||...
            # ...
        state, rewards, dones = env.step(actions)  # environment transit
        done = dones.all()
    for i, ma in enumerate(res):
        # print(f"Machine {i}", end=': ')
        for ta in ma:
            print(ta, end='||')
        print()
    spend_time = time.time() - last_time  # The time taken to solve this environment (instance)
    # print("spend_time: ", spend_time)

    # Verify the solution
    gantt_result = env.validate_gantt()[0]
    if not gantt_result:
        print("Scheduling Error！！！！！！")
    return copy.deepcopy(env.makespan_batch), spend_time

I ran your code and made modifications to the test.py file to print the start and end times of each operations, similar to a Gantt chart. However, I found that the durations of different operations within the same job have overlapping. Specifically, I found that operations within the same job can have overlapping processing times when executed on different machines. In the FJSP problem, the subsequent operation cannot begin until the previous one has finished. I would like to know, if there is an error in my code or if I misunderstood your code. My modified code is as follows, with the addition of a printing section:
def schedule(env, model, memories, flag_sample=False):
    # Get state and completion signal
    state = env.state
    dones = env.done_batch
    done = False  # Unfinished at the beginning

    biases = env.num_ope_biases_batch[0]
    proc_time = env.schedules_batch[0]
    # operation list for every machine
    res = [[] for _ in range(env.num_mas)]
    last_time = time.time()
    i = 0
    while ~done:
        i += 1
        with torch.no_grad():
            actions = model.policy_old.act(state, memories, dones, flag_sample=flag_sample, flag_train=False)
            # print("actions:", actions)
            injob_index = copy.deepcopy(actions[0][0])  # operation global index
            st = round(proc_time[injob_index][2].item(), 3)  # start time
            et = round(proc_time[injob_index][3].item(), 3)  # end time
            # The following code obtains the index of an operation within the job
            if injob_index > biases[-1]:
                injob_index -= biases[-1]
            for j, k in enumerate(biases):
                if injob_index > k:
                        continue
                elif injob_index < k:
                    injob_index -= biases[j-1]
                    break
                else:
                    if j==0:
                        break
                    else:
                        injob_index = 0
                        break
            # print(f"Machine:{actions[1][0]} ; Task({actions[2][0]}-{injob_index})")
            # Task(job_id - operation_id_in_job)[start_time - end_time]
            res[actions[1][0]].append(f"Task({actions[2][0]}-{injob_index})[{st},{et}]")
            # As printed below
            # Machine0: Task(0-0)[0.0,4.5]||Task(4-1)[5.0,9.0]||Task(10-1)[5.0,7.0]||...
            # Machine1: Task(1-0)[0.0,6.0]||Task(4-2)[6.0,12.0]||Task(2-0)[0.0,6.0]||Task(3-1)[13.0,19.0]||...
            # ...
        state, rewards, dones = env.step(actions)  # environment transit
        done = dones.all()
    for i, ma in enumerate(res):
        # print(f"Machine {i}", end=': ')
        for ta in ma:
            print(ta, end='||')
        print()
    spend_time = time.time() - last_time  # The time taken to solve this environment (instance)
    # print("spend_time: ", spend_time)

    # Verify the solution
    gantt_result = env.validate_gantt()[0]
    if not gantt_result:
        print("Scheduling Error！！！！！！")
    return copy.deepcopy(env.makespan_batch), spend_time

In addition, if possible, we can have a detailed discussion. My email address is<EMAIL_ADDRESS>, and we can communicate in Chinese.


Error preventing startup

While checking for<EMAIL_ADDRESS>No compatible binary build found for this package
I'm currently running meteor on an arm system if that means anything. Is there way to fix this?

can't reproduce,
can you please specify more informations on how to reproduce this error


glibc executables are not the first output and are hard to find

Issue description
The output layout of glibc package contradicts the section 4.4 of the manual which suggests that the executables provided by the package (such as ldd in case of glibc) should be accessible via the main package (e.g. "${pkgs.glibc}/bin/ldd"):

By convention, the first output should contain the executable programs provided by the package as that output is used by Nix in string conversions, allowing references to binaries like ${pkgs.perl}/bin/perl to always work.

In glibc package one has https://github.com/NixOS/nixpkgs/blob/a0b50eab599005127476e7b3b4ae8bd2d363091b/pkgs/development/libraries/glibc/common.nix#L123
so that ldd and the other executables are not in the main output
~/r/nixpkgs-fork> readlink -e (which ldd)
/nix/store/rk8jv9r9sjc1pz9lkbyj67cj3h0szzhy-glibc-2.25-49-bin/bin/ldd

and are somewhat non-trivial to find
nix-repl> "${pkgs.glibc}"
"/nix/store/xzx1bv1d7z4mgg6sg6ly0jx609qvka4x-glibc-2.25-49"
nix-repl> "${pkgs.glibc.out}"
"/nix/store/xzx1bv1d7z4mgg6sg6ly0jx609qvka4x-glibc-2.25-49"
nix-repl> "${pkgs.glibc.bin}"
"/nix/store/rk8jv9r9sjc1pz9lkbyj67cj3h0szzhy-glibc-2.25-49-bin"
nix-repl> "${pkgs.glibc.bin.out}"
"/nix/store/xzx1bv1d7z4mgg6sg6ly0jx609qvka4x-glibc-2.25-49"

especially because the layout contradicts the documentation.
@edolstra

Yes, glibc is the single exception to that policy, due to lots of existing code using something like:
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/foo

So when the multiple outputs were added to glibc, the output with the libraries was made the first one to not silently break such packages. So yes, it's an unfortunate inconsistency but it's there for a trade-off.

Thanks @dezgeg. I created a PR #31320 that adds a brief description of this. This issue can be closed I guess.


Added support for tvOS and OS X

I added support for tvOS and OS X platforms in the podspec.

Thanks @Dzamir!


Add examples for changing behavior on end slashes input

Added a note on the README.md and add example for targo.Create.
This refers to #1.

Thank you for the PR! If you are not inclined to do the changes, just tell me and I'll make the adjustments myself.

I have no problem to make the changes.
But when you say to tell the way that changes, I wanted to precise it but I didn't find a good way to put it... Any idea ?
For the changes made in the test file, I wanted to try the example feature of the go doc and I find it very explicit. You don't think ? It add two examples on the go documentation associated with the Create function, I find it a cool way to document the different behavior. I didn't find a good way to put the result of the ouput there neither.

I added something about the changing behavior in the documention in the targo.go file, what do you think about it ?
Do you want me to remove the examples (see my note on the change) ?

Well, no, as an afterthought, this is fine as is. Thanks!


🐛 [FIREBASE_AUTH] microsoft signin ios app crashes

Bug report
Describe the bug
Steps to reproduce
Steps to reproduce the behavior:

Using Iphone emulator
Login with email provider.
And then login with microsoft provider with the same email address
Hard crash

Unsupported value: <FIROAuthCredential: 0x600002149810> of type FIROAuthCredential
Unsupported value: <FIROAuthCredential: 0x60000214a9e0> of type FIROAuthCredential
Expected behavior
Login or an exception.
Sample project
   var microsoftProvider = MicrosoftAuthProvider();
   final UserCredential userCredential =
        await _firebaseAuth.signInWithProvider(microsoftProvider);

Additional context
Add any other context about the problem here.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.2.1 23C71 darwin-arm64, locale nl-NL)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.2)
[✓] VS Code (version 1.86.2)
[✓] Connected device (4 available)
[✓] Network resources

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 3.3.0
Flutter SDK 3.19.0
workspaces 1.1.00+83

dependencies:
- animated_text_kit 4.2.2 [flutter characters]
- bloc 8.1.3 [meta]
- bloc_concurrency 0.2.4 [bloc stream_transform]
- cached_network_image 3.3.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image]
- calendar_date_picker2 0.5.3 [flutter]
- carousel_slider 4.2.1 [flutter]
- cloud_firestore 4.15.7 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cloud_functions 4.6.7 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- collection 1.18.0
- crypto 3.0.3 [typed_data]
- cupertino_icons 1.0.6
- custom_sliding_segmented_control 1.8.1 [flutter]
- device_info_plus 9.1.2 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32 win32_registry]
- email_validator 2.1.17
- equatable 2.0.5 [collection meta]
- firebase_analytics 10.8.8 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_auth 4.17.7 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 2.26.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_dynamic_links 5.4.16 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- firebase_storage 11.6.8 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- fl_chart 0.66.2 [equatable flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_bloc 8.1.4 [bloc flutter provider]
- flutter_keyboard_visibility 6.0.0 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_linux flutter_keyboard_visibility_macos flutter_keyboard_visibility_web flutter_keyboard_visibility_windows flutter]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
- flutter_svg 2.0.9 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler]
- get 4.6.6 [flutter]
- google_fonts 6.1.0 [flutter http path_provider crypto]
- http 1.2.0 [async http_parser meta web]
- image 4.1.7 [archive meta xml]
- image_picker 1.0.7 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows]
- intl 0.18.1 [clock meta path]
- lottie 3.0.0 [archive flutter path vector_math]
- package_info_plus 5.0.1 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32]
- path_provider 2.1.2 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- permission_handler 11.3.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_html permission_handler_windows permission_handler_platform_interface]
- qr_code_scanner 0.7.0 [js flutter flutter_web_plugins]
- shared_preferences 2.2.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- sign_in_button 3.2.0 [flutter font_awesome_flutter]
- url_launcher 6.2.4 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- uuid 4.3.3 [crypto sprintf meta fixnum]
- visibility_detector 0.4.0+2 [flutter]
- webview_flutter 4.7.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]

dev dependencies:
- flutter_lints 3.0.1 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]

transitive dependencies:
- _flutterfire_internals 1.3.24 [collection firebase_core firebase_core_platform_interface flutter meta]
- archive 3.4.10 [crypto path pointycastle]
- args 2.4.2
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- cached_network_image_platform_interface 4.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.1.1 [cached_network_image_platform_interface flutter flutter_cache_manager]
- characters 1.3.0
- clock 1.1.1
- cloud_firestore_platform_interface 6.1.8 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.10.7 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- cloud_functions_platform_interface 5.5.18 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.7.1 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js web]
- convert 3.1.1 [typed_data]
- cross_file 0.3.3+8 [meta web]
- device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface]
- fake_async 1.3.1 [clock collection]
- ffi 2.1.2
- file 7.0.0 [meta path]
- file_selector_linux 0.9.2+1 [cross_file file_selector_platform_interface flutter]
- file_selector_macos 0.9.3+3 [cross_file file_selector_platform_interface flutter]
- file_selector_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface]
- file_selector_windows 0.9.3+1 [cross_file file_selector_platform_interface flutter]
- firebase_analytics_platform_interface 3.9.8 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.5+20 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_auth_platform_interface 7.1.7 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.9.7 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser js meta web]
- firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.11.5 [firebase_core_platform_interface flutter flutter_web_plugins js meta web]
- firebase_dynamic_links_platform_interface 0.2.6+24 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_storage_platform_interface 5.1.11 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.7.2 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta web]
- fixnum 1.1.0
- flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid]
- flutter_keyboard_visibility_linux 1.0.0 [flutter_keyboard_visibility_platform_interface flutter]
- flutter_keyboard_visibility_macos 1.0.0 [flutter_keyboard_visibility_platform_interface flutter]
- flutter_keyboard_visibility_platform_interface 2.0.0 [flutter meta plugin_platform_interface]
- flutter_keyboard_visibility_web 2.0.0 [flutter_keyboard_visibility_platform_interface flutter_web_plugins flutter]
- flutter_keyboard_visibility_windows 1.0.0 [flutter_keyboard_visibility_platform_interface flutter]
- flutter_plugin_android_lifecycle 2.0.17 [flutter]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- font_awesome_flutter 10.7.0 [flutter]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image_picker_android 0.8.9+3 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 3.0.2 [flutter flutter_web_plugins image_picker_platform_interface mime]
- image_picker_ios 0.8.9+1 [flutter image_picker_platform_interface]
- image_picker_linux 0.2.1+1 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface]
- image_picker_macos 0.2.1+1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface]
- image_picker_platform_interface 2.9.3 [cross_file flutter http plugin_platform_interface]
- image_picker_windows 0.2.1+1 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface]
- js 0.6.7 [meta]
- leak_tracker 10.0.0 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 2.0.1 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 2.0.1 [leak_tracker matcher meta]
- lints 3.0.0
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.8.0 [collection]
- meta 1.11.0
- mime 1.0.5
- nested 1.0.0 [flutter]
- octo_image 2.0.0 [flutter]
- package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- path 1.9.0
- path_parsing 1.0.1 [vector_math meta]
- path_provider_android 2.2.2 [flutter path_provider_platform_interface]
- path_provider_foundation 2.3.2 [flutter path_provider_platform_interface]
- path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.1.2 [flutter platform plugin_platform_interface]
- path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32]
- permission_handler_android 12.0.5 [flutter permission_handler_platform_interface]
- permission_handler_apple 9.4.0 [flutter permission_handler_platform_interface]
- permission_handler_html 0.1.1 [flutter flutter_web_plugins permission_handler_platform_interface]
- permission_handler_platform_interface 4.2.0 [flutter meta plugin_platform_interface]
- permission_handler_windows 0.2.1 [flutter permission_handler_platform_interface]
- petitparser 6.0.2 [meta]
- platform 3.1.4
- plugin_platform_interface 2.1.8 [meta]
- pointycastle 3.7.4 [collection convert js]
- provider 6.1.1 [collection flutter nested]
- rxdart 0.27.7
- shared_preferences_android 2.2.1 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.3.5 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.3.2 [flutter plugin_platform_interface]
- shared_preferences_web 2.2.2 [flutter flutter_web_plugins shared_preferences_platform_interface web]
- shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- sprintf 7.0.0
- sqflite 2.3.2 [flutter sqflite_common path]
- sqflite_common 2.5.3 [synchronized path meta]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.2 [async]
- stream_transform 2.1.0
- string_scanner 1.2.0 [source_span]
- synchronized 3.1.0+1
- term_glyph 1.2.1
- test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.3.2 [collection]
- url_launcher_android 6.3.0 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.2.4 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.1.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface]
- url_launcher_web 2.2.3 [flutter flutter_web_plugins url_launcher_platform_interface web]
- url_launcher_windows 3.1.1 [flutter url_launcher_platform_interface]
- vector_graphics 1.1.10+1 [flutter vector_graphics_codec]
- vector_graphics_codec 1.1.10+1
- vector_graphics_compiler 1.1.10+1 [args meta path_parsing xml vector_graphics_codec path]
- vector_math 2.1.4
- vm_service 13.0.0
- web 0.4.2
- webview_flutter_android 3.15.0 [flutter webview_flutter_platform_interface]
- webview_flutter_platform_interface 2.10.0 [flutter meta plugin_platform_interface]
- webview_flutter_wkwebview 3.12.0 [flutter path webview_flutter_platform_interface]
- win32 5.2.0 [ffi]
- win32_registry 1.1.2 [ffi win32]
- xdg_directories 1.0.4 [meta path]
- xml 6.5.0 [collection meta petitparser]

Hello @xinoxapps, can you add on which platform it happens?

The problem is still there using the latest libraries.
Steps to reproduce the behavior:

Using Iphone emulator
Login with email provider.
And then login with microsoft provider with the same email address
Hard crash

It happens on IOS emulator which runs on MacOS.
It happens on Iphone devices.


Upload PLDM FileIO Spec v2

Uploading the PLDM fileIO spec to that Inspur systems can be able to access it.
Signed-off-by: Manojkiran Eda<EMAIL_ADDRESS>

Can one of the admins verify this patch?

add to approvelist


Docs no longer building

The scheduled CI and PR CI are failing due to docs not building. This happened in the hole2-mdakit due to Sphinx 7. The quick fix is to pin the version of sphinx to a working one.
We should probably address this properly though since all MDAKits generated from the cookiecutter will probably fail in the same way.

Ok, I'm a bit mystified by this. The error is:
preparing documents... done
writing output... [ 12%] cookiecutter/hooks
Theme error:
An error happened in rendering the page cookiecutter/hooks.
Reason: UndefinedError("'style' is undefined")

There's nothing special about hooks that I can tell, just that it's the first to be rendered. This is clearly because of https://github.com/sphinx-doc/sphinx/pull/11381 , but I can't see that we use the style or styles keyword anywhere, or in sphinx_rtd_theme (just from a ctrl+f through its repo). That being said, changing from sphinx_rtd_theme to anything else does allow docs to build, so it could be something there. We should definitely revisit this but I vote for pinning sphinx lower for now.

Agreed, I think pinning is a good option until we know more.


fix(release): revert extracting CHANGELOG.md in releases (#198)

reverts workflow changes from https://github.com/spinkube/containerd-shim-spin/pull/198

Created a release in my fork and we are back in business 🎉 : https://github.com/kate-goldenring/containerd-shim-spin/actions/runs/11220348515


help me to upload multiple images in database using codeigniter

can anyone send me multiple images upload code ..
mvc

Support questions should be asked on our forum, thanks.
We use github for bug tracking.


Error: ENOENT: no such file or directory, caused by non-atomic timestamp handling

Using:

"db-migrate": "^0.10.0-beta.20",
"db-migrate-mysql": "^1.1.10",

Every once in a while, after creating a migration with something like:
node_modules/db-migrate/bin/db-migrate create --sql-file

entering the desired SQL and then trying to execute it with node_modules/db-migrate/bin/db-migrate up I get an error such as:
> node_modules/db-migrate/bin/db-migrate up

[ERROR] Error: ENOENT: no such file or directory, open '/opt/app/migrations/sqls/20170426175647-[redacted].sql'
    at Error (native)
From previous event:
    at Class.exports.up (/opt/app/migrations/20170426175647-[redacted].js:23:10)
    at Class.<anonymous> (/opt/app/node_modules/db-migrate/lib/skeleton.js:81:41)
From previous event:
    at Class._up (/opt/app/node_modules/db-migrate/lib/skeleton.js:65:12)
    at Class.up (/opt/app/node_modules/db-migrate/lib/skeleton.js:149:17)
    at Object.up (/opt/app/node_modules/db-migrate/lib/migrator.js:112:14)
    at /opt/app/node_modules/db-migrate/lib/migrator.js:178:25
From previous event:
    at /opt/app/node_modules/db-migrate/lib/migrator.js:171:12
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)
From previous event:
    at /opt/app/node_modules/db-migrate/lib/migrator.js:166:39
    at Query._callback (/opt/app/node_modules/db-migrate/lib/migration.js:373:7)
    at Query.Sequence.end (/opt/app/node_modules/mysql/lib/protocol/sequences/Sequence.js:86:24)
    at Query._handleFinalResultPacket (/opt/app/node_modules/mysql/lib/protocol/sequences/Query.js:137:8)
    at Query.EofPacket (/opt/app/node_modules/mysql/lib/protocol/sequences/Query.js:121:8)
    at Protocol._parsePacket (/opt/app/node_modules/mysql/lib/protocol/Protocol.js:280:23)
    at Parser.write (/opt/app/node_modules/mysql/lib/protocol/Parser.js:75:12)
    at Protocol.write (/opt/app/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/opt/app/node_modules/mysql/lib/Connection.js:103:28)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:548:20)

So, the .js file cannot find the SQL file. Ironically, the SQL file is actually there but it is named<PHONE_NUMBER>5648-[redacted].sql (please note how the last digit differs).
Basically, it's obvious that the timestamp for JS and the SQL are created in two different parts of the code and if enough time lapses for the two timestamps to be different - things break. #sadcatemoji
MANUAL FIX: when this happens I usually just edit the name of -up and -down .sql files to make them the same as the name of the .js file, but obviously a proper fix would be preferrable/desired to prevent such occurrences in the first place.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@wzrdtales whould you like a PR to fix this?

@gmanriqueUy I always welcome any PR  :)

@wzrdtales Awesome. I'll work on this. :smile:

Thank you!


Cyber Test: file_test

Describe the bug
My environment is Ubuntu16.04, and I build a docker for cyber following CyberRT_Docker.md. When run
./apollo.sh build_cyber
bazel test cyber/...

I met the Failed test: //cyber/common:file_test.
The detail shows:
Cyber/common/file_test.cc:75: Failure
Value of: CopyFile("message.binary","/not_exists_file")
Actual:true
Expected:false
I think the problem is that I run the command as root, so 'cp -r message.binary /not_exists_file' can be successful. But users usually enter the container as root and when they test cyber they will fail(the docker needs root permission to run in default, so the script cyber_into.sh will log in as root).
The solution may be changing the EXPECT_FALSE to EXPECT_TRUE or just remove the case because it's meaningless. Or you may better add the requirement to run the test process as a different user from root.
To Reproduce
Steps to reproduce the behavior:
Just follow CyberRT_Docker.md steps
Expected behavior
One test fails
Desktop (please complete the following information):

OS: Ubuntu16.04

Should have been fixed in master HEAD.


Implement RoundedRect

A few people have noted needing RoundedRect, perhaps its time we include one?
https://github.com/jung-kurt/gofpdf/issues/126

This would be suitable for a first-time contributor. Here's a PHP script on which it could be based:
Rounded rectangle

I would like to tackle this, please.
/assign

Thanks, @BeeHam


#116 07 form update dependencies

Updating dependencies.
It was needed to refactor the App due to the changes in react-router.

 component moved to react-router-dom

Nesting routes are not allowed in react-router v4 so router.tsx was refactored using
hashHistory is removed in v4, so Router was changed by  which contains history.

For more details check @arp82 comment in #116.

There is a typings  error in ./src/components/members/page.tsx  pending to pass:
...
-  constructor() {
+  constructor(props) {
-    super();
+    super(props);
}
...

@Nasdan, thank your for your comments!

You're right @arp82, thanks. I've just updated the readme. This is the last issue opened, if there is not more issues to fix in this PR, please @Nasdan @brauliodiez  merge and close this inifinite issue :)


剪枝程序vggprune.py遇见的问题

Traceback (most recent call last):
File "vggprune.py", line 73, in
mask = weight_copy.gt(thre).float().cuda()
RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.FloatTensor for argument #2 'other'
我用的环境是python3.6 torch0.4.1

Have you solved the problem? I encountered the same problem as you.

Have you solved the problem? I encountered the same problem as you.

你们需要将其前面的thre变成cuda()   即  thre.cuda()，后再进行该mask的计算。


How to use Bluetooth low energy MESH on flutter (android/ios)

Dear All,
I’m looking for Blue-tooth low energy MESH source code on flutter for Android/IOS. but I’m not getting the flutter source code . please someone help me on this.
**Questions :-

Blue-tooth low energy MESH Source code available in flutter ?
It is possible to do Blue-tooth low energy MESH on flutter ?**

Thanks

Hello,
This plugin doesn't provide MESH support. You can try creating your own using Nordic Semiconductor's libraries for native backend:
https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library
https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library
Regarding the second question - if it's possible on both iOS and Android (and it is, as there are libraries for it), then it's possible to achieve in Flutter.


Task 36552572: Edit signtool docs /fd /td info

Changes
1)Top Note: "A warning (error code 0, initially) will be thrown if /fd is not specified during signing and if /td is not specified during timestamping. In later versions of SignTool, the warning will become an error. " --> An error (error code 1) will be thrown if /fd is not specified during signing and if /td is not specified during timestamping.

All table rows where /td specified the note in the row needs to be updated to "An error is generated if /td is not provided while timestamping." (there is no default anymore <- does not need to go in doc"

3)All table rows where /fd is specified the note in the row needs to be updated to "An error  is generated if the/fd switch is not provided while signing."

@jjhenry21 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@jjhenry21 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Lager is not really used, but it is in dependencies

Thanks, @eisaev. This is now addressed (via #218).


feature request: Trim whitespace

Hi,
I would like to request a feature to enable option in Maccy to trim whitespaces at the beginning and/or end of the copied text.
Examples:
If I copy: "  test text", I would like to paste it as "test text"
If I copy "test text. ", I would like to paste it as "test text"
If I copy "  test text", I would like to paste it as "test text"

Agree that this doesn't really belong in the core functionality. Seems people want Maccy to become the ultimate do-everything application. While technically possible, it's diverging away from its core purpose.

In most situations, this is not needed since you don't copy the whitespace. Dealing with yml files which relies heavily on indentation, this can be really handy.
I would really appreciate this feature, but I completely understand if the demand is to low that the effort doesn't make sense.
If you have an idea for another way to enable this system-wide that would also work

OK, so in the upcoming version of Maccy, there will be a support to fetch selected item and then you can do whatever you wish with it. In the example below:

I defined a global workflow triggered by pressing ⌥⌘.
It gets the currently selected item in Maccy.
It then trims the leading spaces and dots.
Then trims the trailing spaces and dots.
The copies the result into the system clipboard.
Pastes the result into the active window.

https://user-images.githubusercontent.com/665846/213781278-24bfb30a-7965-4533-bff8-78367e5521c6.mov
There is a noticeable delay while the workflow is running, but there is not much I can do in Maccy about it - that's the workflow execution delay.


updated TP to use API 1.5 and TO perl to use 1.5

What does this PR (Pull Request) do?

[x] This PR is not related to any Issue

Which Traffic Control components are affected by this PR?

Traffic Ops
Traffic Portal

What is the best way to verify this PR?

Verify that requests from TP go to the 1.5 API and that TO perl accepts requests to the 1.5 API
The following criteria are ALL met by this PR

[x] This PR includes tests OR I have explained why tests are unnecessary
[x] This PR includes documentation OR I have explained why documentation is unnecessary
[x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
[x] This PR includes any and all required license headers
[x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

Pretty sure this PR can NOT be merged until #4198 is merged. #4198 is the PR that introduces api 1.5 and is necessary before you can make calls to 1.5.

IDK if that's necessarily true, TO (go) already serves 1.5 and making TO (perl) do it rounds out that support, so TP should be fine. Anything else is pinned to <= 1.4 so it won't care.

IDK if that's necessarily true, TO (go) already serves 1.5 and making TO (perl) do it rounds out that support, so TP should be fine. Anything else is pinned to <= 1.4 so it won't care.

TO-Go doesn't yet serve any 1.5 routes yet

"TO-Go doesn't yet serve any 1.5 routes yet"
That's right, idk what's wrong with me.


Make ptruncate use pquot instead of emulating it

Are we sure QuotientInteger has the same semantics?

I haven't found a specification of what the builtin is supposed to do exactly, but the existing tests would catch if it rounded differently, so pretty sure it behaves like quot in Haskell.
tests/Plutarch/RationalSpec.hs
4:import Plutarch.Rational (pproperFraction, ptruncate)
32:      "5/4" @| ptruncate # rat (5 / 4) @== pconstant @PInteger 1
33:      "7/4" @| ptruncate # rat (7 / 4) @== pconstant @PInteger 1
34:      "1/4" @| ptruncate # rat (1 / 4) @== pconstant @PInteger 0
35:      "-7/4" @| ptruncate # rat (-7 / 4) @== pconstant @PInteger (-1)

you can check the implementation

If PlutusTx.Builtins.Internal is the right place: quotientInteger makes use of the normal quot.


Work with lasagne 0.2 dev only

scripts/test_model.frame.py works with lasagne 0.2 dev only, otherwise the following error may occur.
You may consider to specify this information on README, or simply refer it in your requirements.txt .
Traceback (most recent call last):   File "test_model.frame.py", line 84, in <module>     network_type, n_scales, network_options   File "build/bdist.linux-x86_64/egg/clip2frame/utils.py", line 217, in make_network_multiscale_test   File "build/bdist.linux-x86_64/egg/clip2frame/network_design.py", line 176, in fcn_gaussian_multiscale   File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/merge.py", line 29, in __init__     super(ConcatLayer, self).__init__(incomings, **kwargs) TypeError: __init__() got an unexpected keyword argument 'cropping'

to install the dependcies in a conda env:
conda install -c jaikumarm theano=0.9.0.dev4
pip install scikit-learn==0.18.1
git clone https://github.com/Lasagne/Lasagne.git
cd Lasagne
python setup.py install

It works on my Ubuntu  16.04


Issue #10(Bug): No collision with Boss

When in the final boss stage, the player is able to just run through the boss without taking damage. May become an issue later on but unsure currently. Might be a balance thing.

just added trigger to the boss


Document decision-making based on consensus

The team has been operating on the assumption that decisions are made based on consensus, but it was not documented anywhere.

This is fine, but I don't know how we define "majority", re: "The focus on establishing agreement of at least the majority or the supermajority and avoiding unproductive opinion differentiates consensus from unanimity, which requires all participants to support a decision." from https://en.wikipedia.org/wiki/Consensus_decision-making

My personal opinion is that we should a) strive for concensus  b) as soon as it becomes apparent we can't reach that, we vote according to the W3C rules, and c) if the vote results in a tie, the Director decides.

Added some details to address comments above.

break down types of decisions and decision criteria. Some may require the Director, some may need a team-wide decision specific to a task, and others fall into different categories. Decisions may be based on group consensus or require unanimity. Some decisions may need to be made by those present, may need to be communicated with the rest or ask for feedback, and so on. Identifying when to use each method makes a difference.

Who makes and how are the decision criteria made?
I think @jeff-zucker's suggestion is much more straightforward and actionable, and easier to implement in real life.

Who makes and how are the decision criteria made?

I thought it was implied that the Team would come up with that criteria?
For example, https://www.w3.org/2023/Process-20231103/#decision-types mentions common decisions types - who is involved. It helps to set expectations and how it will eventually be carried out. https://github.com/w3c-cg/solid/blob/main/CONTRIBUTING.md#decisions also provides a guideline on how to process PRs for example - it doesn't necessarily need a "vote" once basic checks are put in place.

I think @jeff-zucker's suggestion is much more straightforward and actionable, and easier to implement in real life.

I wasn't suggesting a particular solution in my comment but was just offering an outline or at least some considerations since the title of the issue calls for it, as well as a couple of people, including you, asked for specifics.
As I understand Virginia's last commit, it encapsulates the core ideas and perspectives that's shared here.

Saying all decisions are consensus based is either inaccurate or unworkable.

Updated to reflect different decisions in f31dc1f0cb9d486546431303672e7cae19389c00

Saying all decisions are consensus based is either inaccurate or unworkable. That would mean we could only ever work one hour per month, during our team plenary, sharing our screen to get consensus about every keystroke. The task forces defined in https://github.com/solid/team/tree/main/tasks can execute tasks during the month, they should be allowed to work on tasks without plenary consensus.
See my suggested improvement in #56.

Have your concerns been addressed? If yes, maybe remove the status of requesting changes? If no, maybe readdress your concerns here as #56 has been closed? (Again, apologies if I closed that prematurely.)

I believe this PR addresses https://github.com/solid/team/issues/52, i.e. if this PR get resolved, we can probably close the issue.
Lmk if anyone disagrees.

I believe this PR addresses https://github.com/solid/team/issues/52

In its original form this PR was actually saying the opposite but https://github.com/solid/team/commit/f31dc1f0cb9d486546431303672e7cae19389c00 fixed that, so yes I'll close it!

In its original form this PR was actually saying the opposite but f31dc1f fixed that, so yes I'll close it!

It wasn't saying "the opposite", and that commit only differentiated two types of decisions. Why would you make the claim that it was saying the opposite when it clearly wasn't?


How to set calendar appear above input

Hi, is there anyway to make the calendar popover stay above the input instead of below it ?
I'm having a select date at near bottom of the page so it would be great to set it above the input

A quick fix might be to use some js to select the element on the fly and set the top or bottom CSS property appropriately based on the scroll position of the wrapping element on the screen.

Sorry for the delay. You can achieve that by customizing the CSS of the popover, something like:
.nice-dates-popover {
  top: 0;
}


Fix data being dropped during compactions

Required for all non-trivial PRs

[ ] Rebased/mergable
[ ] Tests pass
[ ] CHANGELOG.md updated
[ ] Sign CLA (if not already signed)

This fixes #8822 and #8937.
If multiple tombstones exists for a series that ended up causing the
full data to be deleted, the blocks were not removed from the offsets
in the TSM index.  This causes the TSMReader to report that a key exist
but does not have any data which should never happen.
During a compaction, every key should have at least one value.  Since
this invariant was broken, the compaction aborted early and ends up
dropping all series keys that are lexigraphically greater than where
the breakage occured.  This would cause data to be dropped during the
compaction.
To repro this in a live server you can run the following script:
First start the server with:
INFLUXDB_DATA_CACHE_SNAPSHOT_WRITE_COLD_DURATION=1s influxd

Then run:
#!/bin/bash

influx -execute "drop database test; create database test"

curl -v "http://localhost:8086/write?db=test" --data-binary 'cpu value=1 0
cpu value=1 1
mem value=1 1
zzz value=1 2
aaa value=1 3'

echo "Waiting 2 seconds for snapshot"
sleep 2

echo "All data is there"
influx -database test -execute "select * from /.*/"

echo "Delete cpu series by exact times"
influx -database test -execute "delete from cpu where time >= 0 and time <= 0; delete from cpu where time >= 1 and time <= 1;"

echo "Waiting for compaction"
sleep 2
echo "All series lexicographically after aaa are gone"

influx -database test -execute "select * from /.*/"

This fixes a potential bug where the BlockIterator would skip blocks
if the underlying TSMReader had deletes on it concurrently.  This
could possibly occur due to changes in 91eb9de that now use the
existing TSMReaders from the FileStore instead of creating new ones
during compaction.

Are these scenarios ok:
Insert data
cpu,tagkey=v0 value=0 1500
cpu,tagkey=v0 value=0 1800
cpu,tagkey=v0 value=0 2000

Scenario 1
Delete all the individual points
delete from cpu where tagkey=v0 and time=1500
delete from cpu where tagkey=v0 and time=1800
delete from cpu where tagkey=v0 and time=2000

Scenario 2
Delete outer points
delete from cpu where tagkey=v0 and time=1500
delete from cpu where tagkey=v0 and time=2000

@stuartcarnie Scenario 1 is covered in TestTSMReader_MMAP_TombstoneMultipleRangesFull Scenario 2 is covered in TestTSMReader_MMAP_TombstoneMultipleRangesNoOverlap


Check for consistency of shell commands that operate on a table.

There have been recent updates to several shell commands that operate on tables for the purpose of adding the --table/-t option. This option allows a specified table to be the target of the command. This can be useful in situations where the shell command is not be within a table context or if the command needs to operate on a table other than the current table context. It is also especially helpful if using shell commands within a script where it is not possible to provide a table context.
It was suggested that all shell commands that operate on tables should be reviewed and the table/t options be added, if missing, thereby making all table-related shell commands consistent.
This ticket will examine the table-related shell commands to see if they provide a means to indicate the table name. The 'insert' command was updated recently to add the ability to supply a target table. In all, there are 39 shell commands that can take a table name parameter. Each of the 39 should allow a table name to be supplied.
For completeness, the commands are listed here:
deleteiter, deletescaniter, listiter, setiter, setscaniter, grant, revoke, config, deletetable, droptable, du, exporttable, offline, online, summaries, addsplits, compact, constraint, flush, getgroups, getsplits, merge, setgroups, delete, deletemany, deleterows, egrep, formatter, interpreter, grep, importdirectory, insert, maxrow, scan, table, clonetable, createtable, importtable, and renametable.
All but the last six listed above allow the table to be supplied using the -t/--table prefix. The final six do not use of the -t/--table prefix. There are eight that allow the table name to be supplied using both the -t/--table prefix or just the table name (deletetable, droptable, du, offline, online, summaries, compact, and flush).

Mark, thanks for picking this up - when scripting, needed to switch into a table before being able to run a command was a pain point.
As for then it comes to requiring or having -t as an option on the remaining six - my inclination is to always have -t available so the commands take consistent input rather than needing to remember that those six are outliers.  However, there are two that stand out - clonetable and renametable - they take two table names so if only -t was added it could leave confusion unless there was -t (source?) and -n (destination) or something. Without two switches, what table is specified by -t (I'd assume the source, but...)
With these six, the intent is clear that they require a table name, so its fine either way - just wanted to weigh my preference is for consistency over brevity when possible.  For me, the extra typing required if -t was always required is less mental effort than needing to remember when -t not available.

I tend to side with the consistency argument that you present. Granted, with the commands that do not have the option, it is pretty clear that a table name is required. So I can go either way. @ctubbsii commented on the PR with his preference if you would like to take a look. You are correct that the clonetable and renametable would have to be handled slightly differently. Perhaps a few others can weigh in before we decide if we should proceed with additional work. As @ctubbsii pointed out, it could be confusing to have commands that can work without the option as well as taking the option. But it is not unprecedented as eight of the commands already do that.

The main concern with adding the option when it's already a required argument is confusion. A user might not know which to specify. They might specify both. What if the user specified both and they were different?! We'd have to add unnecessary complexity to report errors in those cases that we can avoid by limiting it to just the existing required arguments in those cases. I also prefer consistency, but another way to adhere to consistency is to be consistent between versions, rather than be consistent between commands. For those commands, since the required argument is already present, and it would add confusion and complexity to handle, I'm inclined to prefer consistency with previous versions. The scripting use case already works for these, so there's little compelling reason to at the option to these, in my opinion. But, if they are added, it can be done in a separate PR.


2022: Beautify the console output

Got a good amount of this done in #23. It could still be improved (loading indicators), but it's not just plain text anymore.


Two HTML5 Drag and drop backends

Hello,
does anybody have idea how to use react-big-calendar with drag and drop and my own component with drag and drop? Now when I use both of these components on the same page I get the error about two HTML5 backends, the only (wrong) solution I came with was to delete HTML5 backend from RBC drag and drop index.js...
Does anyone have some ideas? Or would be possible to publish this package with optional use of drag and drop backend? I would like to use touch backend anyway...
Thank you very much

Here you can have a look at my little project (still work in progress so it is messy) https://github.com/martinnov92/TSCalendar

take a look at the addon code you can provide your own backend optionally

Hello @jquense , thanks for your answer, I know about that option, but I don't want to provide anything, as I will provide backend from higher component...

when I delete this DragDropContext(backend) from dragAndDrop/index.js, it works perfectly and that's how I need it :D

I'm not an expert but why don't you share the backend with both your component and the drag and drop?

@jquense I am not expert either :D, so I am not sure what do you think to share backend. When I keep them both I get the error about 2 backends on same page, when I remove it from mine - mine is not working, when I remove it from RBC - it works. You can have a look here and see how it looks/work https://martinnov92.github.io/TSCalendar/. RBC is almost on the bottom of my component tree and I would like to share the backend from the component on very top (), but I need to remove it from RBC first :/. Hope it makes sense, sorry about my english.

Hello again, I created a pull request https://github.com/intljusticemission/react-big-calendar/pull/352 with working solution. I hope this will get merge as I think it would make this component more reusable in case you want to use React DND in other components in your app...
Thank you


Bug: Python and Pip point to different versions of Python in builds

I'm finding that /usr/bin/python and /usr/local/bin/pip are for different versions of Python leading to build problems where PyPI modules are installed to one version of python and failed to be found in the runtime version of Python.
I've worked around this by setting environment variables for my build scripts to use explicit versions of Python but this is very incorrect behaviour.
Here is an example from my builds - note the default python and pip commands found in $PATH where /usr/local/bin is before /usr/bin don't match (I've written detection of this in to my CI libraries here to detect this, and stop the build early rather than getting module not found type errors at the end of the build during tests.
Linux:
for x in python python2 python3 pip pip2 pip3; do \
	which $x && \
	ls -l `which $x` && \
	$x -V || : ; \
	echo; \
done

/usr/bin/python
lrwxrwxrwx 1 root root 9 Apr 16  2018 /usr/bin/python -> python2.7
Python 2.7.17

/usr/bin/python2
lrwxrwxrwx 1 root root 9 Apr 16  2018 /usr/bin/python2 -> python2.7
Python 2.7.17

/usr/bin/python3
lrwxrwxrwx 1 root root 9 Oct 25  2018 /usr/bin/python3 -> python3.6
Python 3.6.9

/usr/local/bin/pip
-rwxr-xr-x 1 root root 223 Apr 16 14:39 /usr/local/bin/pip
pip 20.0.2 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)

/usr/local/bin/pip2
-rwxr-xr-x 1 root root 223 Apr 16 14:39 /usr/local/bin/pip2
pip 20.0.2 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

/usr/local/bin/pip3
-rwxr-xr-x 1 root root 223 Apr 16 14:39 /usr/local/bin/pip3
pip 20.0.2 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)

Mac:
for x in python python2 python3 pip pip2 pip3; do \
		which $x && \
		ls -l `which $x` && \
		$x -V || : ; \
		echo; \
	done
/usr/bin/python
-rwxr-xr-x  1 root  wheel  66880 May  4  2019 /usr/bin/python
Python 2.7.10

/usr/local/bin/python3
lrwxr-xr-x  1 semaphore  wheel  36 Feb 18  2019 /usr/local/bin/python3 -> ../Cellar/python/3.7.2_2/bin/python3
Python 3.7.2

/usr/local/bin/pip3
lrwxr-xr-x  1 semaphore  wheel  33 Feb 18  2019 /usr/local/bin/pip3 -> ../Cellar/python/3.7.2_2/bin/pip3
pip 19.0.2 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

I set my Mac build to use python3 and my Linux build to use explicitly python3.8 but this latter one is brittle as it'll break upon the next change in the Semaphore CI VM build and installed python versions.

👋 Hari,
With the latest deployment this was achieved:
for x in python python2 python3 pip pip2 pip3; do \
 which $x && \
 ls -l `which $x` && \
 $x -V || : ; \
 echo; \
 done
/usr/bin/python
lrwxrwxrwx 1 root root 9 Apr 16  2018 /usr/bin/python -> python2.7
Python 2.7.17

/usr/bin/python2
lrwxrwxrwx 1 root root 9 Apr 16  2018 /usr/bin/python2 -> python2.7
Python 2.7.17

/usr/bin/python3
lrwxrwxrwx 1 root root 9 Oct 25  2018 /usr/bin/python3 -> python3.6
Python 3.6.9

/usr/local/bin/pip
-rwxr-xr-x 1 root root 223 Apr 28 13:06 /usr/local/bin/pip
pip 20.0.2 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

/usr/local/bin/pip2
-rwxr-xr-x 1 root root 223 Apr 28 13:06 /usr/local/bin/pip2
pip 20.0.2 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

/usr/local/bin/pip3
-rwxr-xr-x 1 root root 223 Apr 28 13:06 /usr/local/bin/pip3
pip 20.0.2 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)


0.19.17 Exception thrown: Univalue:get_int(): "JSON value is not an integer as expected"

I've encountered an exception in Univalue:get_int() while attempting to reproduce another issue.  The node appears to get stuck and continues throwing the same exception in a loop with the exception string printed repeatedly to debug.log.
Here is the stack trace from gdb:
#0  0x00007f4756130672 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x000055db8773ac4c in UniValue::get_int() const [clone .cold] () at /usr/include/c++/9/bits/basic_string.h:200
#2  0x000055db87c5eba6 in AntiBot::check_score (this=0x55db8a045440, oitm=..., blockVtx=..., checkMempool=<optimized out>,
    checkTime_19_3=false, checkTime_19_6=<optimized out>, height=1417844, result=@0x7f43330a5b7c: Success)
    at /usr/include/c++/9/ext/new_allocator.h:80
#3  0x000055db87c629a0 in AntiBot::CheckTransactionRIItem (this=0x55db8a045440, oitm=..., blockVtx=..., checkMempool=<optimized out>,
    height=1417844, resultCode=@0x7f43330a5b7c: Success) at antibot/antibot.cpp:2196
#4  0x000055db87c630db in AntiBot::CheckBlock (this=0x55db8a045440, blockVtx=..., height=1417844) at antibot/antibot.cpp:2267
#5  0x000055db87babde2 in CheckBlockAdditional (pindex=0x7f4324032670, block=..., state=...)
    at /usr/include/c++/9/bits/unique_ptr.h:360
#6  0x000055db87bbd730 in CChainState::ConnectBlock (this=<optimized out>, block=..., state=..., pindex=<optimized out>, view=...,
    chainparams=..., fJustCheck=false) at validation.cpp:2203
#7  0x000055db87bc5a04 in CChainState::ConnectTip (this=0x55db884135e0 <g_chainstate>, state=..., chainparams=...,
    pindexNew=0x7f4324032670, pblock=..., connectTrace=..., disconnectpool=...) at validation.cpp:2651
#8  0x000055db87bcae4c in CChainState::ActivateBestChainStep (this=0x55db884135e0 <g_chainstate>, state=..., chainparams=...,
    pindexMostWork=0x7f42d42425b0, pblock=std::shared_ptr<const class CBlock> (empty) = {...}, fInvalidFound=@0x7f43330a6def: false,
    connectTrace=...) at /usr/include/c++/9/bits/shared_ptr_base.h:616
#9  0x000055db87bcc0d0 in CChainState::ActivateBestChain (this=0x55db884135e0 <g_chainstate>, state=..., chainparams=...,
    pblock=std::shared_ptr<const class CBlock> (use count 3, weak count 0) = {...}) at ./uint256.h:47
#10 0x000055db87bcdc75 in ProcessNewBlock (state=..., chainparams=...,
    pblock=std::shared_ptr<const class CBlock> (use count 3, weak count 0) = {...}, fForceProcessing=fForceProcessing@entry=true,
    fReceived=fReceived@entry=true, fNewBlock=fNewBlock@entry=0x7f43330a7400) at /usr/include/c++/9/ext/atomicity.h:96
#11 0x000055db87a3f049 in ProcessMessage (pfrom=0x7f432c001230, strCommand=..., vRecv=..., nTimeReceived=<optimized out>,
    chainparams=..., connman=<optimized out>, interruptMsgProc=..., enable_bip61=false) at /usr/include/c++/9/bits/shared_ptr.h:246
#12 0x000055db87a43a28 in PeerLogicValidation::ProcessMessages (this=0x55db89fd6750, pfrom=<optimized out>, interruptMsgProc=...)
    at net_processing.cpp:3298
#

From GDB, the exception appears to be happening here: https://github.com/pocketnetteam/pocketnet.core/blob/master/src/antibot/antibot.cpp#L946

The mtx Univalue is dumped below.  The check_score function is expecting the "type" key to point to an integer, however from the dumped mtx Univalue struct below it appears mtx["type"] points to a string value "766964656f".

mtx = @0x7f42d4a499a8:
{typ = UniValue::VOBJ, val = "", keys = std::vector of length 12, capacity 12 = {"type", "table", "txid",
"address", "size", "time", "contentType", "data_hash", "asm", "txidEdit", "txidRepost", "dataSize"},
values = std::vector of length 12, capacity 12 = {
{typ = UniValue::VSTR, val = "766964656f", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VSTR, val = "Posts",  keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VSTR, val = "df27e585aa847fb8de421e993601783929c33af40f5f1468bc9a49a5d608739e", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VSTR, val = "PWyjwnA3Rr8Fuc6HQmcYFb3cYXDeaq679j",  keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VNUM, val = "2693", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VNUM, val = "1635605192", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{ typ = UniValue::VNUM, val = "1", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0}, {typ = UniValue::VSTR, val = "f53eb5464ea0e80b5b6b15e62cbed634043d929596575ff1a25abdad44058b1e",  keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VSTR, val = "OP_RETURN 766964656f f53eb5464ea0e80b5b6b15e62cbed634043d929596575ff1a25abdad44058b1e", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VSTR, val = "9284aab6fadbb5734ce7803fb347d6ff772256343bfc965c8ae7dc0cbf51af78", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0},
{typ = UniValue::VSTR, val = "", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0}, {typ = UniValue::VNUM, val = "2325", keys = std::vector of length 0, capacity 0, values = std::vector of length 0, capacity 0}}}

Thanks! I have prepared a fix and am in the process of releasing a release.


The "path" argument must be of type string. Received undefined

After I do ionic build to build my application I run npx cap copy @capacitor-community/electron and get this error
><EMAIL_ADDRESS>capacitor:copy
> node dist/cli-scripts/cap-scripts.js copy

✖ Copying Web App to Electron platform: The "path" argument must be of type string. Received undefined
(node:34948) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (internal/validators.js:124:11)
    at join (path.js:1039:7)
    at ih (/Users/dominiquegoncalves/Documents/Code/2021/desktop-test/docent-base/node_modules/@capacitor-community/electron/dist/cli-scripts/cap-scripts.js:6:1848)
    at /Users/dominiquegoncalves/Documents/Code/2021/desktop-test/docent-base/node_modules/@capacitor-community/electron/dist/cli-scripts/cap-scripts.js:15:316
    at Et (/Users/dominiquegoncalves/Documents/Code/2021/desktop-test/docent-base/node_modules/@capacitor-community/electron/dist/cli-scripts/cap-scripts.js:6:333)
    at qi (/Users/dominiquegoncalves/Documents/Code/2021/desktop-test/docent-base/node_modules/@capacitor-community/electron/dist/cli-scripts/cap-scripts.js:15:259)
    at /Users/dominiquegoncalves/Documents/Code/2021/desktop-test/docent-base/node_modules/@capacitor-community/electron/dist/cli-scripts/cap-scripts.js:15:551
    at Object.<anonymous> (/Users/dominiquegoncalves/Documents/Code/2021/desktop-test/docent-base/node_modules/@capacitor-community/electron/dist/cli-scripts/cap-scripts.js:15:794)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:34948) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:34948) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I have looked through the other issues that mention similar error codes but have not been able to solve this issue.
My project was recently an Angular 8 project but needed to upgrade Angular because I needed a higher version of Typescript for @capacitor/filesystem to be used (I am attempting to do setup a filesystem inside of my electron application).
Before the angular upgrade I was able to use all npx cap ... @capacitor-community/electron functions in my cli but since the upgrade I just keep getting the error above.
I am able to run npx cap ... electron and have the application open correctly but it is just a blank screen when the application opens and there's an error in the electron node modules with that path.
I looked into the INIT_CWD env issue mentioned in #76 in my cap-scripts.js file but when I search the file, INIT_CWD is not included in the cap-scripts.js file.
Let me know if any other information is needed. I cannot share code as it is for a client
This application is a hybrid app as we have a web application, mobile (both iOS and Android) as well as Electron desktop app. The Electron desktop app is an offline application, so it does not reference any backend services.
Ionic 5.3.0
Angular 12
typescript 4.3.5
@capacitor-community/electron 4.0.3
@capacitor/core 3.2.4
@capacitor/cli 2.5.0

Try upgrading the capacitor cli and let me know if that helps at all