add Stacked bar chart type

related issues https://github.com/eventbrite/britecharts/issues/118
Description

a preview version of stacked bar chart,have not run test,code coverage,some methods inefficient。
Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

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

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Could this PR posibilly be merged? ,I'm considering make more chart type ,If there's any parts need to be modification pls let me know.

Hi @bung87, sorry, I am a bit swamped with work. I will tackle it soon!
Thanks a lot for your work, this is great!!

We have uploaded a PR with a couple more commits: https://github.com/eventbrite/britecharts/pull/275
We have a problem with the demo, it's not working and we missed the resize helper. I fixed the first problem, but I need your help for the second, please take a look.
Thanks a lot!!

@Golodhros hi ,I just fixed this problem.sorry for I did not notice miss the resize helper.

Hi @bung87 , it doesn't seem to work yet, check if it resizes the chart demos when you change the viewport size.
Thanks!

@Golodhros I missing add the demos souce files to commit .

We are almost there! We broke the Line chart demo, the tooltip colors don't show up.
I am checking and can't figure out what it is...

Maybe we are missing the color helper, it's on the helpers with the resizer.

well,I changed tooltip one line,this make line chart go wrong ,I revert it but stacked bar demo tooltip circle color share the same since I use nameLabel identify dates,the tooltip share the "name" key.

@Golodhros I'v add a "nameLabel"( default value is "name") to tooltip for making tooltip nameLabel configurable and work well with stacked bar chart,since it'a new feature will not break other chart.

Awesome! Thanks a lot for your hard work!!

@Golodhros Thanks for review my code.good to have seeing stacked bar chart on github.io.


Unpin Dask/distributed versions

Removes the max version constraint on Dask/Distributed post-release.

Codecov Report

Merging #452 (924117c) into main (fa74aef) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #452      +/-   ##
==========================================
- Coverage   84.33%   84.30%   -0.04%
==========================================
  Files          70       70
  Lines        3499     3497       -2
  Branches      700      694       -6
==========================================
- Hits         2951     2948       -3
+ Misses        466      464       -2
- Partials       82       85       +3

Impacted Files
Coverage Δ

dask_sql/_version.py
32.27% <0.00%> (-0.29%)
:arrow_down:

dask_sql/physical/rel/custom/predict.py
95.34% <0.00%> (-0.11%)
:arrow_down:

dask_sql/utils.py
100.00% <0.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Mapping via config files not available

The problem with attribute based mapping is it forces us to reveal specifics of our database implementation in our Domain project.  With config file mapping we would be able to overcome that architectural deficiency by locating the config files in the Storage project of our solution.
Q: Any plans to implement config file mapping in this library?

In general, using your domain objects as database entities is considered a design flaw in itself for most situations. Moving the specifics of this setup to config files would only resolve this issue from a technical point of view and make it look clean on the surface, but would not change the underlying flawed architecture. Unless you have very good reasons for something like this, I would suggest you reconsider the current setup carefully.
As a personal side note: separating these details into config files additionally has the problem of significantly lower discoverability, which in my experience makes it harder for junior devs or new team members to work with a code base. That's why I haven't considered it for now. If someone comes up with good reasoning though, I'm open for adding it to the project.

Peter,
Thank you very much for your prompt and helpful response.
It is very much appreciated.
Regards,
Bart Clare
Senior Developer
Coyote Logistics
From: Peter Kuhn<EMAIL_ADDRESS>Sent: Saturday, October 6, 2018 4:56 AM
To: MisterGoodcat/Dapper-Extensions-Reloaded<EMAIL_ADDRESS>Cc: Bart Clare<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [MisterGoodcat/Dapper-Extensions-Reloaded] Mapping via config files not available (#1)
In general, using your domain objects as database entities is considered a design flaw in itself for most situations. Moving the specifics of this setup to config files would only resolve this issue from a technical point of view and make it look clean on the surface, but would not change the underlying flawed architecture. Unless you have very good reasons for something like this, I would suggest you reconsider the current setup carefully.
As a personal side note: separating these details into config files additionally has the problem of significantly lower discoverability, which in my experience makes it harder for junior devs or new team members to work with a code base. That's why I haven't considered it for now. If someone comes up with good reasoning though, I'm open for adding it to the project.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_MisterGoodcat_Dapper-2DExtensions-2DReloaded_issues_1-23issuecomment-2D427561274&d=DwMFaQ&c=eGrWY0g0F_oEAIiNvC_bvg&r=zxoVERZ4nLCPY2Ksvk-LQYukb7NCc_6DSdUjKoASEgg&m=5vukNCv5KUUDkUja5orRNQP1mQztVrsAfMfBsAfagKU&s=b96zCfUI4h3W7XcUQ4q_cpaTwWhtYjcvs9VYVw8pQTA&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Ab8r2BYtSpywRn4B4fNmkDsHJtDEZn7kks5uiH4ugaJpZM4XKVi5&d=DwMFaQ&c=eGrWY0g0F_oEAIiNvC_bvg&r=zxoVERZ4nLCPY2Ksvk-LQYukb7NCc_6DSdUjKoASEgg&m=5vukNCv5KUUDkUja5orRNQP1mQztVrsAfMfBsAfagKU&s=NQwsgT68gBsnUEBBwyrEYAEcn_s0oU6rka-8jumu2aU&e=.

Peter,
Based on your answer, we are now mapping our domain objects to ‘repo’ objects so we can use your Reloaded package without exposure to the domain.  Frankly, we were just being lazy before, since we were already mapping contract to domain objects.  However, your answer prompted  us to do it right.
Thanks again for your response and for the good work you are doing on the reloaded package.  We are now enthusiastic users of it as we build out our microservices.
Regards,
Bart
From: Peter Kuhn<EMAIL_ADDRESS>Sent: Saturday, October 6, 2018 4:56 AM
To: MisterGoodcat/Dapper-Extensions-Reloaded<EMAIL_ADDRESS>Cc: Bart Clare<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [MisterGoodcat/Dapper-Extensions-Reloaded] Mapping via config files not available (#1)
In general, using your domain objects as database entities is considered a design flaw in itself for most situations. Moving the specifics of this setup to config files would only resolve this issue from a technical point of view and make it look clean on the surface, but would not change the underlying flawed architecture. Unless you have very good reasons for something like this, I would suggest you reconsider the current setup carefully.
As a personal side note: separating these details into config files additionally has the problem of significantly lower discoverability, which in my experience makes it harder for junior devs or new team members to work with a code base. That's why I haven't considered it for now. If someone comes up with good reasoning though, I'm open for adding it to the project.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_MisterGoodcat_Dapper-2DExtensions-2DReloaded_issues_1-23issuecomment-2D427561274&d=DwMFaQ&c=eGrWY0g0F_oEAIiNvC_bvg&r=zxoVERZ4nLCPY2Ksvk-LQYukb7NCc_6DSdUjKoASEgg&m=5vukNCv5KUUDkUja5orRNQP1mQztVrsAfMfBsAfagKU&s=b96zCfUI4h3W7XcUQ4q_cpaTwWhtYjcvs9VYVw8pQTA&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Ab8r2BYtSpywRn4B4fNmkDsHJtDEZn7kks5uiH4ugaJpZM4XKVi5&d=DwMFaQ&c=eGrWY0g0F_oEAIiNvC_bvg&r=zxoVERZ4nLCPY2Ksvk-LQYukb7NCc_6DSdUjKoASEgg&m=5vukNCv5KUUDkUja5orRNQP1mQztVrsAfMfBsAfagKU&s=NQwsgT68gBsnUEBBwyrEYAEcn_s0oU6rka-8jumu2aU&e=.

Hi, I want do a compound group as dapper extension  but I cannot, how is it?

Hi, I don't fully understand what you are trying to do. Can you elaborate?


Move TypeSpec APIView out of the alps repo

EngSys team is working on moving tooling out of the alps repo.
Security is an important requirement to consider where to move this tech to. According to this tooling and repository will be decided.
Work with @mikeharder on this as he is the owner of the project

PR https://github.com/Azure/azure-rest-api-specs/pull/31656


As a user I want to know the properties of an element so that I can see information associated with it  (Properties list)

Fixed: https://github.com/rangle/batarangle/pull/104


ResourceToRelease is not to be released here

IIRC, this is a pointer to a variable that will receive a pointer to the ERESOURCE structure, that should be passed in RELEASE_FOR_MOD_WRITE (not by the minifilter itself, but the caller).
The resource is not released in this call!

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

ID: dba5be64-293b-e562-0839-7dc4d3790908
Version Independent ID: 29da14fe-0b56-a36a-bb19-db79d5ce801c
Content: FLT_PARAMETERS for IRP_MJ_ACQUIRE_FOR_MOD_WRITE union - Windows drivers
Content Source: windows-driver-docs-pr/ifs/flt-parameters-for-irp-mj-acquire-for-mod-write.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @lorihollasch
Microsoft Alias: loriwhip

FWIW:
I have the scars that it absolutely MUST be set to something if you return FLT_COMPLETE.  Trust me, you'll not regret it
I have a vague memory that in the world without filter managers the resource IS release iff you do not specify the MJ_PRE_RELEASE_FOR_MODWRITER.  Something (FAT, or maybe PINBALL) did exactly that...

@alfaunits , really great catch! I've updated the page to note that ResourceToRelease is actually being acquired here (and is indeed a pointer to a pointer), and will be released in IRP_MJ_RELEASE_FOR_MOD_WRITE. Thanks for reporting these errors.

@alfaunits , really great catch! I've updated the page to note that ResourceToRelease is actually being acquired here (and is indeed a pointer to a pointer), and will be released in IRP_MJ_RELEASE_FOR_MOD_WRITE. Thanks for reporting these errors.


Convert authorization feature test to system test

This fixes Issue #826
Also, I changed the language of the test from "It should.." to "It
does..". I think it makes it more readable. However, now is not
consistent with the rest of the tests, so I'm happy to change it back if
you think it's better in the old way.

:heart: the language change
Thanks!
:+1:


Update Roadmap page

It seems that https://github.com/spyder-ide/spyder/wiki/Roadmap appears to be a little behind - I wonder if this requires a spring clean to update things relevant to the current release <IP_ADDRESS>?

I updated the page so that at least the status is correct. I don't know if there are any highlight to add to 2.3.4 and 2.3.5, those are mostly for bug fixes.

@Nodd great, thanks for this!

@ccordoba12 @Nodd @goanpeca I think the wiki roadmap page has fallen behind again.. Wondering whether updating this is a good idea?


Stock module is broken

RIP, google finance API.
https://www.npmjs.com/package/yahoo-stocks looks like a solid choice but lacks the ability to select stock exchange. It's not clear that that feature was ever really used anyway...

Example API output:
{ symbol: 'AMD',
  name: 'Advanced Micro Devices, Inc.',
  exchange: 'NYSE',
  currentPrice: 10.91,
  highPrice: 27,
  lowPrice: 7,
  meanPrice: 14.64,
  medianPrice: 14 }

@LinuxMercedes the IEX API is actually quite easy to work with as well -- I've futzed with it a bit and think it could be a good substitute for stockscraper...  I believe the Yahoo API is considered to be unstable/unsupported.
https://iextrading.com/developer/docs/#stocks

Nice, there's even an npm package for that already:
https://www.npmjs.com/package/iex-api

@LinuxMercedes I was a little suspicious of the newness/inactivity of that package and was hitting IEX's API directly, but you might be better able to adjudge the situation ;)


Should we only accept uuid for API key

I just noticed that we enforce at both a DB and code level that the API key must be a uuid https://github.com/microsoft/azure-openai-service-proxy/blob/583bb2f110a8aee1d0595c1e9d40b71d17a0fb04/src/proxy/app/authorize.py#L97
This got me wondering about the "single code" scenario, which #80 saw us remove the DB column and instead the expectation is that there will be a registered attendee whose code is shared.
But in this scenario, you may want to have a more "readable" API key, one that you edit via the admin UI and set for the user, but this won't work because the DB column is a uuid and we enforce that in the auth pipeline.
@gloveboxes I think we should explore this a bit more.

@aaronpowell i think we could handle think with a short link service like Ms.aka ?

What would the aka.ms link direct people to? Currently the playground doesn't accept the API Key via a query string, only entry in the textbox.
Microsoft AI Tour, for example, is using a shared key in their workshops, so we'd need to validate with the team running those if registration would be an acceptable addition to the workshop flow.

Done


feat: add report upload to code test [ZEN-494]

[x] Ready for review
[x] Linked to Jira ticket - ZEN-494

What does this PR do?

Adds the report feature to code-client
Adds tests to the report feature

Related: cli PR
This code-client version been successfully tested with the current cli version to confirm no breaking changes were made.
TODO ⚠

[ ] Finish tests when ZEN-495 gets merged

:tada: This PR is included in version 4.16.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Repository website

Hello,
the repository website contains a broken URL (domain):

https://pkl.apple.com/intellij/current/index.html

It should probably be the same as in README:

https://pkl-lang.org/intellij/current/index.html

Thanks.

Thanks. Fixed.


For tests, use a newer version of Devise that supports Ruby on Rails 4.2.

Without this change, bundle exec rspec spec on Ruby on Rails 4.2 results in an error with no tests being run.

Thanks @derikson!


Book a Demo social media graphic

Related Issue
No response
Description
We want to start promoting on social media that CTA to 'Book a Demo'. Ideally we create something fairly unique with the FlowForge brand.  When we do the social media post we will add to the text the reasons to book a demo so these are not needed in the graphic.

Hi @iskerrett, the only text you want in the image is 'Book a Demo', right?
And, do you know the size of the file you need? Would it be the same as these?

Hi, here's the mockup

And here the isolated image

Looks good to me.

Minor points:

Should we capitalize the "d" in demo?
May also want to add a little shadow around the button, as it does clash with the pale blue a little? Shadow would break that transition a little bit better

Here it is with the revisions ;)

Think that standas out better - thanks @Yndira-FlowForge

I am not sure the graphic has been added to the page. When I add a link to a twitter feed I do not get the Book a Demo graphic. I get our standard default graphic. Can someone please check this.

fwiw, I don't think the fixed worked. I still get the old image.

@iskerrett that's because you haven't reviewed and merged the PR:
https://github.com/flowforge/website/pull/678

My apologies, just realize this.

Thank you @joepavitt for taking care of it, and I'm sorry, I didn't understand @iskerrett meant the open graph in the first place... Will check that every time from now on.

Thank you @joepavitt for taking care of it,

@Yndira-FlowForge no big deal at all


Inconsistent attribute handling between netcdf4 and h5netcdf engines

I have found a netCDF file that cannot be decoded by xarray via the h5netcdf engine but CAN be decoded via netCDF4. This could be considered an h5netcdf bug, but I thought I would raise it first here for visibility.
This file will reproduce the bug
! wget 'https://esgf-world.s3.amazonaws.com/CMIP6/CMIP/IPSL/IPSL-CM6A-LR/abrupt-4xCO2/r1i1p1f1/Lmon/cLeaf/gr/v20190118/cLeaf_Lmon_IPSL-CM6A-LR_abrupt-4xCO2_r1i1p1f1_gr_185001-214912.nc'

import netCDF4
import h5netcdf.legacyapi as netCDF4_h5

local_path = "cLeaf_Lmon_IPSL-CM6A-LR_abrupt-4xCO2_r1i1p1f1_gr_185001-214912.nc"
with netCDF4_h5.Dataset(local_path, mode='r') as ncfile:
    print('h5netcdf:', ncfile['cLeaf'].getncattr("coordinates"))
with netCDF4.Dataset(local_path, mode='r') as ncfile:
    #assert "coordinates" not in ncfile['cLeaf'].attrs
    print('netCDF4:', ncfile['cLeaf'].getncattr("coordinates"))

h5netcdf: Empty(dtype=dtype('S1'))
netCDF4:

As we can see, we get an empty string '' in netCDF4 but a <class 'h5py._hl.base.Empty'> object from h5netcdf. This weird attribute prevents xarray from decoding the dataset.
We could:

Fix it in xarray, but having special handling for this sort of Empty object
Fix it in h5netcdf

Environment:
Output of xr.show_versions()

INSTALLED VERSIONS
commit: None
python: 3.8.8 | packaged by conda-forge | (default, Feb 20 2021, 16:22:27)
[GCC 9.3.0]
python-bits: 64
OS: Linux
OS-release: 4.19.150+
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: C.UTF-8
LANG: C.UTF-8
LOCALE: en_US.UTF-8
libhdf5: 1.10.6
libnetcdf: 4.7.4
xarray: 0.17.0
pandas: 1.2.3
numpy: 1.20.2
scipy: 1.6.2
netCDF4: 1.5.6
pydap: installed
h5netcdf: 0.10.0
h5py: 3.1.0
Nio: None
zarr: 2.7.0
cftime: 1.4.1
nc_time_axis: 1.2.0
PseudoNetCDF: None
rasterio: 1.2.1
cfgrib: <IP_ADDRESS>
iris: None
bottleneck: 1.3.2
dask: 2021.03.1
distributed: 2021.03.1
matplotlib: 3.3.4
cartopy: 0.18.0
seaborn: None
numbagg: None
pint: 0.17
setuptools: 49.6.0.post20210108
pip: 20.3.4
conda: None
pytest: None
IPython: 7.22.0
sphinx: None

xref https://github.com/pangeo-forge/pangeo-forge/issues/105

@rabernat
This seems to originate from h5py:
import h5py
with h5py.File(local_path, mode="r", ) as ncfile:
    print(ncfile["cLeaf"].attrs["coordinates"])

Empty(dtype=dtype('S1'))

Yes I agree. Should I just close this and move it to h5netcdf?

@rabernat FYI, and if someone stumbles over this issue first. This is resolved with h5netcdf = 0.11.0.


Remove pre-existing Elemental initrds

Fixes rancher/elemental#1450

This fix should be backported to branch v2.1.x


Add downstream ci and notifications

Work is going on... need to iteratively test CI

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[WebConsoleV2] Introduce PrintLogs component unify the way display logs

Now you can view the Peer side's job details

LGTM


Policy API draft

Pull Request summary:
API:
Policy API is implemented in PolicyAPI class in vmngclient/api/policy_api.py
After vManageSession is created PolicyAPI is also automatically instantiated in api container instance variable.
class PolicyAPI:
    """This is exposing 'UX 1.0' API"""

    def __init__(self, session: vManageSession):
        self._session = session
        self.centralized = CentralizedPolicyAPI(session)
        self.localized = LocalizedPolicyAPI(session)
        self.security = SecurityPolicyAPI(session)
        self.definitions = PolicyDefinitionsAPI(session)
        self.lists = PolicyListsAPI(session)
        ...

PolicyAPI aggregates all methods needed to create, get, edit, delete policies on remote - as well as for policy building blocks (Lists and Definitions)
Item Models:
Diagram below presents generalised relationships between policy configuration items.

Pydantic models which are used as payloads for creating configuration items on remote can be found in modules:
vmngclient.model.policy.centralized
vmngclient.model.policy.localized
vmngclient.model.policy.centralized
vmngclient.model.policy.definitions
vmngclient.model.policy.lists

Models are equipped with builder-like helper methods to add sub-components in sequential manner.
Description of changes:
To run all examples below PRE-RELEASE needed
pip install vmngclient==0.20.0.dev0

Standalone Usage Example:
This example implements workflow based on Forwarding and QoS Configuration Guide for vEdge Routers, Cisco SD-WAN Release 20
Source code can be found in examples directory:
examples/policy_forwarding_qos.py
To run example provide (url, port, username, password) to reachable vmanage instance as command line arguments:
python examples/policy_forwarding_qos.py <IP_ADDRESS> 433 admin p4s$w0rD

Other Usage Examples:
Make sure that each of examples below are inside with block after session is created, api variable contains PolicyAPI instance and protocol_map variable contains map obtained from remote:
from vmngclient.session import create_vManageSession

with create_vManageSession(url="<IP_ADDRESS>", username="admin", password="") as session:
    api = session.api.policy
    protocol_map = api.get_protocol_map()

Localized Policy Example:
    from vmngclient.model.policy.localized import LocalizedPolicy
    from vmngclient.model.policy.definitions.qos_map import QoSMap
    from vmngclient.model.policy.lists import ClassMapList

    # define forwarding class
    class_map = ClassMapList(name="ClassMapExample-1")
    class_map.add_queue(5)
    class_map_id = api.lists.create(class_map) # push on remote

    # define QoSMap policy
    qos_map = QoSMap(name="QoSMapPolicyExample-1")
    qos_map.add_scheduler(queue=5, class_map_ref=class_map_id)
    qos_map_id = api.definitions.create(qos_map) # push on remote

    # create localized policy
    loc_policy = LocalizedPolicy(policy_name="LocalizedPolicyExample-1")
    loc_policy.add_qos_map(qos_map_id)
    loc_policy_id = api.localized.create(loc_policy) # push on remote

    # edit localized policy
    loc_policy.policy_definition.settings.log_frequency = 1000
    api.localized.edit(loc_policy_id, loc_policy) # push on remote

    # obtain created policy info
    print(api.localized.get(loc_policy_id)) # get from remote
    input("\nCheck that Localized Policy was created. Press Enter to do cleanup...")

    # delete created items or remote
    api.localized.delete(loc_policy_id)
    api.definitions.delete(QoSMap, qos_map_id)
    api.lists.delete(ClassMapList, class_map_id)

Security Policy Example:
    from ipaddress import IPv4Network
    from vmngclient.model.policy.security import SecurityPolicy
    from vmngclient.model.policy.definitions.zone_based_firewall import ZoneBasedFWPolicy
    from vmngclient.model.policy.lists import ZoneList

    # define zone list
    zone_list = ZoneList(name="ZoneList-Example-1")
    zone_list.assign_vpns({111, 112})
    zone_list_id = api.lists.create(zone_list) # push on remote

    # define zone based firewall
    zone_based_fw = ZoneBasedFWPolicy(name="ZoneBasedFW-Example-1")
    zone_based_fw.add_zone_pair("self", zone_list_id)

    rule_1 = zone_based_fw.add_ipv4_rule(name="ExampleIPv4Rule-1", log=True)
    rule_1.match_destination_ip([IPv4Network("<IP_ADDRESS>/16")])
    rule_1.match_protocols({22, 130})

    rule_2 = zone_based_fw.add_ipv4_rule(name="ExampleIPv4Rule-2")
    rule_2.match_source_geo_location("FRA")
    rule_2.match_source_port({1100, 1199})
    rule_2.match_protocol_names({"tacacs", "ssh"}, protocol_map) # map is needed to add protocols by names

    zone_based_fw_id = api.definitions.create(zone_based_fw)  # push on remote

    # define security policy
    sec_pol = SecurityPolicy(policy_name="SecurityPolicy-1")
    sec_pol.add_zone_based_fw(zone_based_fw_id)
    sec_pol_id = api.security.create(sec_pol)  # push on remote

    # obtain created policy info
    print(api.security.get(sec_pol_id)) # get from remote
    input("\nCheck that Security Policy was created. Press Enter to do cleanup...")

    # delete created items on remote
    api.security.delete(sec_pol_id)
    api.definitions.delete(ZoneBasedFWPolicy, zone_based_fw_id)
    api.lists.delete(ZoneList, zone_list_id)

Centralized Policy Example
    from ipaddress import IPv4Network
    from vmngclient.model.policy.centralized import CentralizedPolicy
    from vmngclient.model.policy.definitions.traffic_data import TrafficDataPolicy
    from vmngclient.model.policy.lists import SiteList, VPNList

    # define site list
    site_list = SiteList(name="SiteListExample-1")
    site_list.add_sites([100, 101])
    site_list_id = api.lists.create(site_list) # push on remote

    # define vpn list
    vpn_list = VPNList(name="VPNListExample-1")
    vpn_list.add_vpn_range((95, 99))
    vpn_list_id = api.lists.create(vpn_list)  # push on remote

    # define data traffic policy
    traffic_policy = TrafficDataPolicy(name="TrafficDataPolicyExample-1")
    seq_1 = traffic_policy.add_ipv4_sequence(name="SequenceExample-1")
    seq_1.match_destination_ip([IPv4Network("<IP_ADDRESS>/16")])
    seq_1.add_count_action("CounterExample")
    traffic_policy_id = api.definitions.create(traffic_policy)  # push on remote

    # define centralized policy
    cntrl_pol = CentralizedPolicy(policy_name="CentralizedPolicyExmaple-1")
    app_1 = cntrl_pol.add_traffic_data_policy(traffic_policy_id)
    app_1.apply([site_list_id], [vpn_list_id])
    cntrl_pol_id = api.centralized.create(cntrl_pol)  # push on remote

    # obtain created policy info
    print(api.centralized.get(cntrl_pol_id)) # get from remote
    input("\nCheck that Centralized Policy was created. Press Enter to do cleanup...")

    # delete created items on remote
    api.centralized.delete(cntrl_pol_id)
    api.definitions.delete(TrafficDataPolicy, traffic_policy_id)
    api.lists.delete(SiteList, site_list_id)
    api.lists.delete(VPNList, vpn_list_id)

Implementation Status (45%)
Policies

[x] CentralizedPolicy
[x] LocalizedPolicy
[x] SecurityPolicy

Policy Definitions

[ ] AdvancedInspectionProfile
[ ] AMP
[ ] AccessList
[ ] AppRoute
[ ] Cflowd
[ ] Control
[x] TrafficData
[ ] DeviceAccess
[ ] DialPeer
[ ] FXOPort
[ ] FXSDIDPort
[ ] FXSPort
[ ] HubAndSpoke
[ ] IPv6Access
[ ] IPv6DeviceAccess
[ ] IntrusionPrevention
[ ] LocalDomain
[ ] Mesh
[ ] PRIISDNPort
[x] QosMap
[x] RewriteRule
[ ] URLFiltering
[ ] VEdgeRoute
[ ] VPNMembershipGroup
[ ] VPNQosMap
[x] ZoneBasedFirewall
[x] RuleSet
[ ] SSLDecryption
[ ] SSLDecryptionUTDProfile
[x] SecurityGroup

Policy Lists

[x] FQDNList
[x] ASPathList
[x] AppProbeClassList
[x] ApplicationList
[x] ColorList
[x] CommunityList
[x] DataIPV6PrefixList
[ ] DataPrefixAllTypesOfLists
[ ] DataPrefixAndFQDNAllTypesOfLists
[x] DataPrefixList
[x] ExpandedCommunityList
[ ] ExtendedCommunityList
[ ] FaxProtocolList
[x] ForwardingClassList
[x] GeoLocationList
[x] IPSSignatureList
[x] IPv6PrefixList
[ ] IdentityList
[x] LocalDomainNameList
[ ] MediaProfileList
[x] MirrorList
[ ] ModemPassthroughList
[x] PolicerClassList
[x] PortList
[ ] PrefixForAllTypesOfLists
[x] PrefixList
[x] ProtocolNameList
[ ] RegionList
[x] SLAClassList
[ ] ScalableGroupTagList
[x] SiteList
[ ] SupervisoryDiscList
[x] TLOCList
[ ] ThreatGridApiKeyList
[ ] TranslationProfileList
[ ] TranslationRulesList
[ ] TrunkGroupList
[x] URLBlackList
[x] URLWhiteList
[ ] UmbrellaDataList
[x] VPNList
[x] ZoneList
[x] PreferredColorGroupList

Checklist:

[ ] Make sure to run pre-commit before committing changes
[ ] Make sure all checks have passed
[ ] PR description is clear and comprehensive
[ ] Mentioned the issue that this PR solves (if applicable)
[ ] Make sure you test the changes

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/pull/387


Rename master branch to main

I was waiting for consensus to form around this (and kind-of hoping for trunk since I like the tree metaphor) and it looks like main is it.
I've seen convincing arguments against trunk too - it indicates that the branch has some special significance like in Subversion (where all branches come from trunk) when it doesn't. So main is better anyway.

I'll make this change on a few of my other repos first to make sure I haven't missed any tricky edge-cases.

I'm doing https://github.com/simonw/datasette-psutil first.
In my local checkout:
git branch -m master main
git push -u origin main

(Thanks, https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx)
Then in https://github.com/simonw/datasette-psutil/settings/branches I changed the default branch to main.

Links to these docs: https://help.github.com/en/github/administering-a-repository/setting-the-default-branch
That worked! https://github.com/simonw/datasette-psutil
One catch, which I think will impact my most widely used repos the most (like datasette) - linking to a specific file now looks like this:
https://github.com/simonw/datasette-psutil/blob/main/datasette_psutil/__init__.py
The old https://github.com/simonw/datasette-psutil/blob/master/datasette_psutil/init.py link is presumably frozen in time?
I've definitely got links spread around the web to my "most recent version of this code" that would use the master reference, which would need to be updated to main instead. Most of those are probably in the Datasette docs and on my blog though.

The big question is how this impacts CI. datasette-psutil is configured to use Circle CI, what happens if I push a new commit?

This guide is fantastic - I'll be following it closely: https://github.com/chancancode/branch-rename/blob/main/README.md - in particular the Action to mirror master and main for a while.

https://twitter.com/jaffathecake/status/1273983493006077952 concerns what happens to open pull requests - they will automatically close when you remove master unless you repoint them to main first.

I think git add -A . will handle the git side of things. So I need to checkout the repo, generate a clean demo with cookiecutter, then replace the checked out content with the files created by cookiecutter and run the commit.

I mentioned this issue here: https://simonwillison.net/2020/Jun/26/weeknotes-plugins-sqlite-generate/
Repositories created by following the REAME in https://github.com/simonw/datasette-template and https://github.com/simonw/click-app have a main branch instead of master so I have a few examples live now. https://github.com/simonw/datasette-saved-queries is one example.

Watch out for places in the documentation that might link to master - e.g. here:
https://github.com/simonw/datasette/blob/2d7fa8b9058dfbf9c7c371cdeec115d32a177dc9/docs/custom_templates.rst#L247

https://github.com/simonw/datasette/tree/main branch now exists and will automatically mirror master (and vice-versa).

I'm going to change the default branch on the GitHub repository. If something breaks I can always change it back again.

I've been running on main for a while now with no issues.


Fix: periodYear migration

Add migration code in CandidateDao.Builder

Should we also update candidate() and identifier() method in CandidateDao to getters?

We should consider it, yes. In the example in docs, the getters in the class are not prefixed with "get", I think this is the reason they are implemented like this.


bae59608-208f-5cec-39a4-95466faa0646

I'm assuming this is a misfire/test/spam, so closing. If it's valid feedback, please reopen with more information.


Channel Integration V2 Documentation References V1 Components

I am looking at this page which describes how to add Channel Integration Framework as a solution dependency. However, this is linking to a module which as far as I understand relates to CIF1, not CIF2
https://docs.microsoft.com/en-us/dynamics365/customer-service/channel-integration-framework/v2/add-cif-solution-dependent-solution
The Channel Integration Framework only allows V1 CIF integrations to be created.
The document source shows it's including the same docs as for V1, however, the CIF documentation here: https://docs.microsoft.com/en-us/dynamics365/customer-service/channel-integration-framework/v2/configure-channel-provider-app-profile-manager - suggests the module is part of the Customer Service Hub or Omnichannel hub:

Could you provide some clarification whether this is correct, and if the linked dependency should in fact be the Customer Service Hub.
Happy to open a PR to update the documentation accordingly if this is the case.

Hello @Drewdan
Thank you for your comment.  Per my understanding, CIFv1 is used for configuring channel providers for single session apps such as customer service hub, CIFv2 is used for configuring channel providers in multisession apps such as customer service workspace.  Let me know if that resolves your query if you need further information.


Fisher update

I am trying to run EWC on my dataset with resnet50 model. While updating the fisher matrix using your function, My code says Cuda out of memory due to "log_liklihoods.append(output[:, target])" in the code. I read this "https://stackoverflow.com/questions/59805901/unable-to-allocate-gpu-memory-when-there-is-enough-of-cached-memory" and figured out the problem using 'detach()'. After doing detach etc, I get an error: RuntimeError: One of the differentiated Tensors appears to not have been used in the graph. Set allow_unused=True if this is the desired behavior.
To further solve this, I set "allow_unused=True" in autograd. As a result, all my gradients go to 0. Why is this happening?

Did you have a solution? I have a same problem about this.


Automatically populating $HTTP_RAW_POST_DATA is deprecated

Hi,
I have the following error when I run tests of this extension.
      │ --- Failed steps:
      │
      │     And the response should contain json: # features/send_raw.feature:16
      │       Can not convert actual to json:
      │

      │       Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

      │

      │       Warning:  Cannot modify header information - headers already sent in Unknown on line 0

      │       {"warning":"Do not expose this service in production : it is intrinsically unsafe","method":"POST","name":"name","pass":"pass","headers":{"user-agent":["GuzzleHttp\/6.2.1 curl\/7.22.0 PHP\/5.6.5"],"host":["localhost:8080"],"content-type":["application\/json"],"content-length":["35"],"x-php-ob-level":[1]},"query":[]} (Assert\InvalidArgumentException)

The extension does not rely on the deprecation feature. you can turn it off in your php.ini (there is no way to avoid the deprecation warning if the feature is turned on, even though you never read $HTTP_RAW_POST_DATA, as the warning is triggered very early in the request processing)

and we cannot change the ini setting ourselves either, as it would be too late (the processing of the input request happens before calling the userland code)

OK thanks.
In fact it works fine on my production server but not on the travis-ci platform.
I will investigate according to your comments.


Disable of clicking and opening any new windows

Currently, you can click on any links and it will open new window with the new link opened.

so our task is to disable all the links so that no new window will open

Done and done


LocallyConnected2D NullPointerException array values at LocallyConnected2D.java:216

At LocallyConnected2D.class inputArray contains null values when using padding and/or when using ConvolutionMode.Truncate with uneven fit.
Null values causes NullPointerException. SDValidation object is trying to invoke method dataType() of null SDVariable.
SDVariable[] inputArray = new SDVariable[outH * outW];
        for (int i = 0; i < outH; i++) {
            for (int j = 0; j < outW; j++) {
                SDVariable slice = layerInput.get(SDIndex.all(), // miniBatch
                                SDIndex.all(), // nIn
                                SDIndex.interval(i * sH, i * sH + kH), // kernel height
                                SDIndex.interval(j * sW, j * sW + kW) // kernel width
                );

                //argument array contains null values
                inputArray[i * outH + j] = sameDiff.reshape(slice, 1, miniBatch, featureDim);
            }
        }
        SDVariable concatOutput = sameDiff.concat(0, inputArray); // (outH * outW, miniBatch, featureDim)

java.lang.NullPointerException
	at org.nd4j.autodiff.samediff.ops.SDValidation.isSameType(SDValidation.java:230)
	at org.nd4j.autodiff.samediff.ops.SDBaseOps.concat(SDBaseOps.java:418)
	at org.deeplearning4j.nn.conf.layers.LocallyConnected2D.defineLayer(LocallyConnected2D.java:216)
	at org.deeplearning4j.nn.layers.samediff.SameDiffLayer.doInit(SameDiffLayer.java:316)
	at org.deeplearning4j.nn.layers.samediff.SameDiffLayer.activate(SameDiffLayer.java:90)
	at org.deeplearning4j.nn.graph.vertex.impl.LayerVertex.doForward(LayerVertex.java:111)
	at org.deeplearning4j.nn.graph.ComputationGraph.outputOfLayersDetached(ComputationGraph.java:2380)
...

Found fourth bug when using uneven width/height. I guess to leave a comment instead of adding new ticked cause the problem is in not only one for this class. Got ArrayIndexOutOfBoundsException with outH = 10, outW = 2 on third iteration
java.lang.ArrayIndexOutOfBoundsException: 20
	at org.deeplearning4j.nn.conf.layers.LocallyConnected2D.defineLayer(LocallyConnected2D.java:213)

The line is:
inputArray[i * outH + j] = sameDiff.reshape(slice, 1, miniBatch, featureDim);
i guess it should be
 inputArray[i * outW + j] = sameDiff.reshape(slice, 1, miniBatch, featureDim);
or
 inputArray[j * outH + i] = sameDiff.reshape(slice, 1, miniBatch, featureDim);
At least indexing at images is used with index = x + width * y. But here i is vertical and j is horizontal parameters so it's looks like index = x + height * y.

I've fixed some bugs i posted. How can i commit fixes?

Hi, submit a PR to https://github.com/eclipse/deeplearning4j and we'll take a look. Thanks!

Hi, submit a PR to https://github.com/eclipse/deeplearning4j and we'll take a look. Thanks!

Got exception on push: cannot connect to URI... git-receive-pack not permitted on url...

@jljljl  sorry not sure what  issue you're having, that sounds strange. Could you try again? Sorry still catching up on backlog here.

@jljljl  just revisiting backlog again, I take it you're not interested in pursuing this? If not, I'll just flag it for now and see if we can get to it later.

@agibsonccc Sorry for being offline. I've been focused on other things. Seems i don't have permissions for it repository. Please check pull request


URL encoding for Authority should use UTF-8

In http2 we have
type Authority = ByteString
data ClientConfig = ClientConfig { authority :: Authority, .. }

In http2-tls, we have instead
type HostName = String
defaultClientConfig :: Settings -> HostName -> ClientConfig
defaultClientConfig Settings{..} serverName =
    H2Client.defaultClientConfig { H2Client.authority = C8.pack serverName, .. }

That call to C8.pack to turn the String (HostName) into a ByteString (Authority) is not quite right, I think; the spec mandates UTF8.
I don't have an explicit use case for this, I just noticed it as I was integrating the new http2-tls. Changing it is not backwards compatible (it wouldn't have been in PR #6 either). Not urgent, as far as I am concerned.

So, should we change the definition as
type Authority = HostName

in http2 and bumps the major version?

I think that's probably a good idea; I took a look to see if this would result in additional complications, but it seems it's straight-forward, see https://github.com/kazu-yamamoto/http2/pull/105 .
Probably the Right Thing is to then change http2-tls to define Authority instead of (in addition to..?) HostName, or better yet, re-use the definition from http2.
@kazu-yamamoto If you are going to release a new version of http2, would you feel comfortable in including https://github.com/kazu-yamamoto/http2/pull/104 also?

It's Friday evening now in Japan.
Maybe in the next week.

Sure, of course :) Have a good weekend! :)

https://github.com/kazu-yamamoto/http2/pull/105 has been merged.
It's http2-tls's turn.

@edsko  master now uses http2 v5.1 which is not released yet.
If you want to use Authority instead of HostName, please send a PR.

Coming up! :)

https://github.com/kazu-yamamoto/http2-tls/pull/8

This was closed in #8.


Added SRP project

Pull Request Description
Replace with a description of this pull request. Instructions for adding
projects are available in the README.
Acceptance Criteria
To be accepted into the Swift source compatibility test suite, a project must:

[x] be an Xcode or swift package manager project: SwiftPM
[x] support building on either Linux or macOS: macOS and Linux
[x] target Linux, macOS, or iOS/tvOS/watchOS device: macOS and Linux
[x] be contained in a publicly accessible git repository
[ ] maintain a project branch that builds against Swift 3.0 compatibility mode
and passes any unit tests: 3.1
[x] have maintainers who will commit to resolve issues in a timely manner
[x] be compatible with the latest GM/Beta versions of Xcode and swiftpm
[x] add value not already included in the suite
[x] be licensed with one of the following permissive licenses: MIT
[x] pass ./check SRP

Ensure project meets all listed requirements before submitting a pull request.

Looks good. Thanks!


Added little patch for compatibility with phantomjs

No thanks. Supporting PhantomJS is a slippery slope. Chalk is for Node.js modules. If you need it elsewhere, browserify or webpack it before use ;)


Normalizer will normalize the test data with mean and std of test unless it is used on train data before

Hello, yes, the assumption is that the model will first be trained, or otherwise training set statistics will be provided, before proceeding to evaluation on the test set.

Thanks so much! You are doing it well, but I just think this might be dangerous for someone to reproduce the result.

This is a good point. Maybe it would be best to add a warning, in case someone uses --test_only option but does not use the --norm_from option.


Incompatibility with the latest version of Acorn

It seems that your script doesn't work with Acorn 4.
I'm getting the following error:

In SageHtmlFormsExportSubmissionsServiceProvider.php line 8:
Class Otomaties\SageHtmlFormsExportSubmissions\Providers\SageHtmlFormsExportSubmissionsServiceProvider cannot extend final class Roots\Acorn\ServiceProvider.

Are you still using this script? Does it work for you?

Fixed in 1.4.0

Great work. Thanks a lot @tombroucke. How do you get the export to work? I can't see anything...

Great work. Thanks a lot @tombroucke. How do you get the export to work? I can't see anything...

After installation, there is an extra Export submissions tab when you open / edit the contact form. When you hover over the contact form in HTML Forms > All Forms, there is also a Export submissions quick link.
You might have to run wp acorn optimize:clear after installation.

Great, thanks! I think I needed to run wp acore optimize:clear. Now it works. Many thanks @tombroucke!


fix the doc about upgrading the istio cluster

Q
A

Bug fix?
yes

New feature?
no

API breaks?
no

Deprecations?
no

Related tickets
fixes #X, partially #Y, mentioned in #Z

License
Apache 2.0

What's in this PR?

Why?

Additional context

Checklist

[ ] Implementation tested
[ ] Error handling code meets the guideline
[ ] Logging code meets the guideline
[ ] User guide and development docs updated (if needed)

To Do

[ ] If the PR is not complete but you want to discuss the approach, list what remains to be done here

@Laci21

ref:https://github.com/banzaicloud/istio-operator/issues/434

@tanjunchen, could you please take a look at this PR and specifically this commit if this would be a sufficient fix for you?


Added PnP.PowerShell Set-PnPSite cmdlet

Added PnP.PowerShell Set-PnPSite cmdlet to allow custom scripts on a specific SharePoint site:
Set-PnPSite <SiteURL> -NoScriptSite $false

Further info: Set-PnPSite

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@JohanFreelancer9 done

@kaarins PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


a quick question about 'Designing the Second Toolbox - First Attempt'

Hi there, thx so much for providing us with such a helpful and insightful tool and also this clear jupyter tutorial.
My question is just when you design the first toolbox why did not you use a global mode function as you did in the second toolbox? Look forward to your reply.

Hello @fanision, thanks so much for checking out the tool. I am glad you find the tool helpful!
The first toolbox design is basically an introduction to the Maker mode and Finder mode APIs. As such, the example of the promoter toolbox is kept very simple (sequence constraint only, no structures, and no model functions are used). Of course, that design is probably not very practical, so we show how to design more realistic promoters, optimizing them for characterization experiments and high functionality. All the examples become increasingly more complex and are arranged to show different aspects of non-repetitive genetic part design. Hope this answers your questions!

Hi @fanision, thanks so much for checking the tool out. I am glad you find it helpful!
The first promoter toolbox is just an introductory example of what the Maker algorithm can do. It just shows how to define a sequence constraint, an easy local model function (prevent palindromic hexamers), and finally shows the practice of writing verification functions (to check if all designed promoters indeed have no palindromic hexamers inside them). The second promoter toolbox example shows how to use multiple local and global objectives by wrapping them up in a meta local or meta global model function.
At the end of the first toolbox example, when we used the verification function, it would have been better to pass it as a global model function -- you are absolutely right! This is why in the notebook we say the following

Every promoter has passed our verification so our design objective for the first toolbox was met. As we will see in the next section, the evaluation function final_cutsite_check could have been specified to Maker directly via global_model_fn parameter, which would automatically execute the evaluation on a part, after it was completely designed, and accept/reject it accordingly.

The benefit of passing this check as a global model function to Maker is that the algorithm can adjust the number of trials it needs depending on an auto-estimated probability of evaluation failure. I hope this answers your question.

When I was writing the notebook, I didn't want to dump all the concepts in the first example. So, I showed a simple verification function and explained that it would be better to pass this as a global model function. It would then force the algorithm to continue making parts until the target toolbox size was reached. But, the first example had just one easy model function, and the final checker was to verify if everything went according to plan -- but yes, for practical use you would obviously want to specify that function as a global model function as done for the second toolbox.

Such a thoughtful design of tutorial writing.
Thanks so much for your reply. Everything's perfectly clearly to me now.
Really appreciate it!

Most happy to help! Good luck!


Fix not defined variables and add transpilation note

Fix #6 and #7

Hello @jofftiquez
Can you publish a 0.1.4 release with this fix?
Thanks :)

Hello @Finrod927 of course. Sorry I forgot.

Hi @Finrod927 0.1.4 is now available on npm. Also see source


Is it possible to add event description to the EventSource?

@jmblank09 Yes, you can add a description field in your event object, and use customized weekview normal event template to display it.
You can get more information from View Customization Options section in README.

How can i automatically display the dates with events because when i'm calling the load event function it is not automatically shown when the calendar is opened

The calendar displays events each time the eventSource array is changed.
I suppose you set the queryMode of the calendar to remote?
So you need to set the eventSource array in the rangeChanged callback method.

Is this what are you saying?

@jmblank09 Is this getEvents function async call? If it is, you need to modify the eventSource in the getEvents callback.

angular.module('HIKAlendar.controllers')
.controller('CalendarCtrl', function($scope, $state, ValidationService, CalendarService){
$scope.calendar = {};
$scope.goToaddEvent = function() {
$state.go('menu.calendar-options');
};
$scope.onViewTitleChanged = function (title) {
$scope.viewTitle = title;
};
$scope.today = function () {
$scope.calendar.currentDate = new Date();
};
$scope.loadEvents = function () {
$scope.calendar.eventSource = getEvents();
};
$scope.onTimeSelected = function (selectedTime, events, disabled) {
// console.log('Selected time: ' + selectedTime + ', hasEvents: ' + (events !== undefined && events.length !== 0) + ', disabled: ' + disabled);
};
$scope.onEventSelected = function (event) {
if (event.eventType == 'appointment') {
var title = 'Appointment';
var array = CalendarService.calendarAppointmentDetails(event.description);
var detail = 'Date: ' + array['date'] + ''
+ 'Start Time: ' + array['start_time'] + ''
+ 'End Time: ' + array['end_time'] + ''
+ 'Doctor: Dr. ' + array['doctor_name'] + ''
+ 'Purpose: ' + array['purpose_text'] + '';
  }
  var cssClass = 'createPopupSuccess';
  //
  ValidationService.popUp(title, detail, cssClass);

};
function getEvents() {
var events = [];
$scope.showLoading();
CalendarService.get_calendar_appointments().then(function(data) {
for(var i in data) {
var date = new Date();
var startTime = data[i]['start_time'];
var endTime = data[i]['end_time'];
var day = data[i]['date'];
startTime = new Date(day + ' ' + startTime);
endTime = new Date(day + ' ' +endTime);
events.push({
title: 'Appointment',
startTime: startTime,
endTime: endTime,
allDay: false,
eventType: 'appointment',
description: data[i]['date'] + ',' + data[i]['start_time'] + ',' +
data[i]['end_time'] + ',' + data[i]['doctor_name'] + ',' + data[i]['purpose_text']
});
    };
    $scope.hideLoading();
  });

  return events;

}
$scope.loadEvents();
});
the getEvents is just like your createRandomEvents. I just called the loadEvents function in the controller.

@jmblank09 Oh, you just modify the array element in your callback. The calendar only watches the eventSource variable, not the element change in elementSource for performance reason.
Each time you can rangeChanged, it first returns an empty array, so the calendar gets nothing to display.
To fix that, there are two options.

You can directly set eventSource to the array you constructed in your get_calendar_appointment callback.
You can fire eventSourceChanged event, once you've modify the elements in the eventSource. You can get more information from README.

Your method is not working. How can i reload the calendar after i get the values.

When you get the values you need to assign a new array to eventSource. The calendar will display the events in the new array.

I've assigned the array events to the eventSource but it is still not working. Can you please give a snippet example code?

Try this?
And don't assign the return value of getEvents to $scope.calendar.eventSource.
        function getEvents() {
            var events = [];
            $scope.showLoading();
            CalendarService.get_calendar_appointments().then(function(data) {
                for(var i in data) {
                    var date = new Date();
                    var startTime = data[i]['start_time'];
                    var endTime = data[i]['end_time'];
                    var day = data[i]['date'];
                    startTime = new Date(day + ' ' + startTime);
                    endTime = new Date(day + ' ' +endTime);
                    events.push({
                        title: 'Appointment',
                        startTime: startTime,
                        endTime: endTime,
                        allDay: false,
                        eventType: 'appointment',
                        description: data[i]['date'] + ',' + data[i]['start_time'] + ',' +
                        data[i]['end_time'] + ',' + data[i]['doctor_name'] + ',' + data[i]['purpose_text']
                    });
                };
                $scope.calendar.eventSource = events;
                $scope.hideLoading();
            });
        }

I've tried that but nothing happened

Thanks! I've tried to use broadcast in the documentation along with your solution and it worked! Thanks a lot!


[product request] Product list EXCLUDE product groups

It would be great if the Matching select list on Product List block Filtering had an 'Exclude groups selected' option.

I've pushed up a feature to allow for this kind of filtering, via
https://github.com/concrete5-community-store/community_store/commit/c4803bd2f750679e56334be3f316b68ef4847abc


add video player

I would like to add react-native-video to the gallery app. I would like to add it😁

Adding a page for react-native-video seems reasonable for me. The Windows support details are here. @jonthysell has had some touch on that module on the past; I'm not sure what the current state is. But demonstrating how to get video up and running in an RNW app seems like a good topic to cover in the gallery app. @chiaramooney and @TatianaKapos FYI.
@Victor0814gui, any more thoughts on what you'd like to add here?

Took a crack at roughing it in: https://github.com/microsoft/react-native-gallery/compare/main...chrisglein:videoExample?expand=1
Fails with:

Cannot read property 'getViewManagerConfig' of null

This is on version 5.2.1. I see the module is working on a 6.0 alpha. Next step would be to try that, or see if there's been a break in the Windows implementation on version 5.


Error in TypeScript compilation: Cannot find name 'StdioOverrideFunction'

Hi, I'm trying to use your library in a project for work, but running npm run build in our project fails due to the following error:
node_modules/wasmagic/dist/index.d.ts:63:13 - error TS2304: Cannot find name 'StdioOverrideFunction'.

63     stdio?: StdioOverrideFunction;
               ~~~~~~~~~~~~~~~~~~~~~

Found 1 error in node_modules/wasmagic/dist/index.d.ts:63

I see that the mentioned StdioOverrideFunction is defined in the types folder in this repo, but not in src/index.ts and it's apparent that the TypeScript compiler isn't including that type into the final dist/index.d.ts.
Can you fix this? It's breaking TypeScript builds at the moment.

Note: I created a patch file with patch-package to work around the issue for now. Here's the patch file:
diff --git a/node_modules/wasmagic/dist/index.d.ts b/node_modules/wasmagic/dist/index.d.ts
index a4bc2f5..c59e913 100644
--- a/node_modules/wasmagic/dist/index.d.ts
+++ b/node_modules/wasmagic/dist/index.d.ts
@@ -56,6 +56,10 @@ export declare enum WASMagicFlags {
     /** Don't check for SIMH tape files */
     NO_CHECK_SIMH = 8388608
 }
+export type StdioOverrideFunction = (
+    stdioName: "stdout" | "stderr",
+    text: string,
+) => void;
 export type WASMagicOptions = {
     flags?: WASMagicFlags;
     loadDefaultMagicfile?: boolean;

Thanks! Sorry about that. I'll get this integrated. I haven't run into this when testing myself

A little bit of fighting with the Typescript type system for the type to not only be exposed in the library, but to work in-editor for library maintenance. My original solution, and your patch @bvobart were flawed, in that local development of the library with type checking was broken.
As the StdioOverrideFunction hook is injected when the C wrapper is built with Emscripten, I had to move the type definition into it's own file and re-export it to use ergonomically in the library.
Thank you for the bug report

Thanks for your efforts!! Yeah, my patch was aimed at the final compiled & published artifacts, I don't know exactly how that relates back to your source code.
However, the issue is not yet fixed. It seems that your fix now doubly includes the StdioOverrideFunction: there's both an import StdioOverrideFunction from ..; export { default as StdioOverrideFunction } from .. as well as another declaration export type StdioOverrideFunction, causing the following errors when I try to compile my project with the latest version of wasmagic:
node_modules/wasmagic/dist/index.d.ts:1:8 - error TS2395: Individual declarations in merged declaration 'StdioOverrideFunction' must be all exported or all local.

1 import StdioOverrideFunction from "./StdioOverrideFunction";
         ~~~~~~~~~~~~~~~~~~~~~

node_modules/wasmagic/dist/index.d.ts:1:8 - error TS2440: Import declaration conflicts with local declaration of 'StdioOverrideFunction'.

1 import StdioOverrideFunction from "./StdioOverrideFunction";
         ~~~~~~~~~~~~~~~~~~~~~

node_modules/wasmagic/dist/index.d.ts:2:10 - error TS2484: Export declaration conflicts with exported declaration of 'StdioOverrideFunction'.

2 export { default as StdioOverrideFunction } from "./StdioOverrideFunction";
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/wasmagic/dist/index.d.ts:61:13 - error TS2395: Individual declarations in merged declaration 'StdioOverrideFunction' must be all exported or all local.

61 export type StdioOverrideFunction = (
               ~~~~~~~~~~~~~~~~~~~~~

Found 4 errors in the same file, starting at: node_modules/wasmagic/dist/index.d.ts:1

I'll fork and play around to see if I can fix it in your source code / build process. I'll report back when I have a PR, but of course feel free to fix it yourself in the mean time too :)

Do you have an example of usage / Typescript settings? I'm probably missing something here. When I import into another typescript project it compiles without any complaints. The other solution I arrived at was aliasing the type and re-exporting it.
The only issue with that was more the editor didn't expose the underlying type, but that's not a big deal. Can revert to that if it works.

I made this working Typescript example: https://gist.github.com/moshen/a73cd974547363fc37e26874c925f6ae

Hmmmmm, this is strange. I tried out your working example and it worked just fine. I was trying to compare between my work project and your example, also to make a MWE showing the bug, but now somehow the issue is fixed. Perhaps there was still an old version around on my system somehow, I don't know.
Anyways, it magically started working and my CI is happy too.
Thanks a lot for your help and your quick replies! 😊


Freezed support

I know this library is in the very early stages but I think this package combined with freezed (instead of freezed + json_serializable) would be powerful.
P.S: big fan of your libraries

Thanks for opening this issue. I added freezer support in version 0.0.3.
There's a small sample in the readme :)


Backport HIVE-21899 - Utils.getCanonicalHostName() may return IP address depending on DNS infra

Why are the changes needed?

Fix https://github.com/apache/incubator-kyuubi/issues/3352
It's a regression issue, that came from upgrading from Hive 2.3 to Hive 3.1.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Thanks, merging to master/1.6


USA Adult Clubs, Prostitution Websites

@spirillen I also did a similar thing for other places

@spirillen I have also created pull requests for other places Mexico ,India, Indonesia

All merged here... https://mypdns.org/my-privacy-dns/porn-records/-/merge_requests
As I told you, this is NOT my repo or project, I'm watching (monitoring) it, to pick up useful commits/issues. And in the Spirit of sharing data (matrix.rock's project) I do add refs to where I've obtained the data.
What you should not exoect is, that I will copy your PR's to mypdns.org for.
If you expect your records are being blacklisted by mypdns, you'll need to add them your self. I'm not a slave, I'm kindly helps other who believe adult sites are devastating and spending hours, days and even month maintaining the lists in a high standard and not just those bulk commits where half of it, always turns out to be irrelevant or even better FP's.
I'm also spending the bucks keeping a tracking free server up and running.
So please, if you think any of these records deserves being blacklisted at mypdns, please do commit them there. There is various templates to use for fast commit.

@spirillen I have also created pull requests for other places Mexico ,India, Indonesia

Cool cool, I will submit https://github.com/mypdns/porn-records here, mypdns.org is slow

@spirillen I have also created pull requests for other places Mexico ,India, Indonesia

Cool cool, I will submit at https://github.com/mypdns/porn-records if you enable "issues", mypdns.org is slow.

That should at no point be slow....
But all issue goes here, https://mypdns.org/my-privacy-dns/porn-records/-/issues

... if you enable

I don't support the GH anti-privacy :smirk: that's why I spend the box on running mypdns.org, if you find it slow, instead let me know where you find it slow? and I might be able to tweaks a few things

@spirillen I have also created pull requests for other places Mexico ,India, Indonesia
....
https://mypdns.org/ only works over US VPN, I tried Asia, Europe

That's very weird... as the firewall actually have been disabled since the 7. for a similar reason

but your right, it fails from romaina, vietnam (tor browser) but allowed from Norway, Netherlands,
Started the firewall and now all seems right :confounded: :confused:
Please try again @Rexadev


Unify Die behavior of initial / cloned sprite

In SPX, there are different implementations of the Die method for initial and cloned sprites:
https://github.com/goplus/spx/blob/3df776b555a0532999520609e172f45c1816de49/sprite.go#L483-L494
Ideally, there should be no noticeable differences for game developers, but this is not the case. For example, consider this sprite code:
onStart => {
	for {
		wait 0.1
		println "im alive"
	}
}

onStart => {
	wait 1
	die
}

After calling die, the loop continues, so "im alive" keeps being printed.
In contrast, for a cloned sprite:
onCloned => {
	for {
		wait 0.1
		println "im alive"
	}
}

onCloned => {
	wait 1
	die
}

onStart => {
	clone
}

After calling die, the loop stops, and "im alive" is no longer printed.
Game developers may perform more complex actions than just println "im alive", potentially affecting overall game behavior. Therefore, it is crucial to unify the behavior of die for both sprite types.
Please check this out, @xushiwei @JiepengTan.

Based on the comment here

In Scratch and SPX, the initial instance of a sprite is the prototype (somewhat similar to JavaScript). The prototype instance cannot be destroyed, so the 'die' function behaves differently for prototype instances and cloned instances.

To address compatibility concerns, I suggest:

Rename destroy to destroyThisClone for compatibility with Scratch's Delete This Clone
Ensure that die always destroys the current instance, regardless of whether it's the initial or a cloned instance
If we introduce a destroy method, which is more low-level than die, in the future, it should also destroys current instance, similar to die

closed by #329


Chain of 3 RCfunctions in particular order in compilation fails

Example:
library(nimble)

nlTestFun9 <- nimbleFunction(
  run = function(nlArg1 = double(), doubleArg = double()){
    returnNl <- innerNlTestFun9_1(nlArg1, doubleArg)
    returnNl <- returnNl + 100
    returnType(double())
    return(returnNl)
  }
)

innerNlTestFun9_2 <- nimbleFunction(
  run = function(nlArg1 = double(), doubleArg = double()){
    nlArg1 <- doubleArg
    dummyNl <- nlArg1 + 50
    returnType(double())
    return(dummyNl)
  }
)

innerNlTestFun9_1 <- nimbleFunction(
  run = function(nlArg1 = double(), doubleArg = double()){
    nlArg1 <- innerNlTestFun9_2(nlArg1, doubleArg)
    returnType(double())
    return(nlArg1)
  }
)
CnlTestList9 <- compileNimble(list(innerNlTestFun9_2, innerNlTestFun9_1,  nlTestFun9), showCompilerOutput = TRUE)

(Names are from nimbleList testing, in which this issue was discovered, but it is unrelated to nimbleLists).
When the 3 functions are provided to compileNimble in different order, it works.  The problem is that when nlTestFun9 collects its Hincludes, CPPincludes, and Oincludes, it gets the first CPPinclude but not the nested one, because of a missing recursion in RCfunctionDef$getCPPincludes().  I am about to make a PR to fix this.

pull request #329 to fix this issue passed and is now merged.


Update dependencies to build on node 12+

All of @andrew's helpful work over at https://github.com/ipfs-shipyard/ipld-explorer/pull/56, plus the following thanks to the react18next migration guide:

Replace two instances of translate component with withTranslation
Added useSuspense.false to init

I think this should be good for review - Travis is presumably failing because it's testing against Node 8.11.
Preview looks good.

I also can't switch languages on the live site or the preview in Firefox, I wonder if it ever worked as it looks like all the i18n work is very similar to the code in js.ipfs.io

@andrew Thanks for the confirmation. I'd be inclined to merge this PR in since it looks like i18n is a separate issue. Thoughts?

The test failures look like a remote service at https://bundlesize-store.now.sh was down.
If you want to update the versions of node and npm on travis, the config is here: https://github.com/ipfs-shipyard/ipld-explorer/blob/master/.travis.yml#L3
Otherwise :shipit:

I bumped both travis and circleci to Node 12.17.0 and now both fail.
Will look at this closer: ipfs-webui is using ipld-explorer-components v1.5.1 and works fine, so I'll try to align the deps to that.


[CI][Python][Packaging] Some nightly wheels fail to upload to gemfury

Describe the bug, including details regarding any error messages, version, and platform.
Some of our Windows wheel nightly packaging jobs:
wheel-windows-cp310-amd64
wheel-windows-cp311-amd64
wheel-windows-cp38-amd64
wheel-windows-cp39-amd64
Have been failing to upload to gemfury:
Run path=$(ls arrow/python/dist/*.whl)
  path=$(ls arrow/python/dist/*.whl)
  curl -F "package=@${path}" <EMAIL_ADDRESS>  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
  env:
    PYTHON: 3.8
    REPO: ghcr.io/ursacomputing/arrow
    ARCHERY_USE_DOCKER_CLI: 1
    pythonLocation: C:\hostedtoolcache\windows\Python\3.8.10\x64
    PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.8.10\x64/lib/pkgconfig
    Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.10\x64
    Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.10\x64
    Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.10\x64
    CROSSBOW_GEMFURY_TOKEN: ***
    CROSSBOW_GEMFURY_ORG: ***
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 20.4M    0     0    0 65535      0  1283k  0:00:16 --:--:--  0:00:16 1333k
curl: (55) Failed sending data to the peer
Error: Process completed with exit code 55.

This seem to be consistent only for those wheels for the last 4-5 days.
Component(s)
Continuous Integration, Packaging, Python

@kszucs @kou can I be added to the arrow-nightlies team on gemfury to investigate if is something about quotas or account related? My gemfury username is the same as my GitHub (raulcd)

@kszucs Could you make me an owner of arrow-nightlies?


npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

"dependencies": {
	"react": "16.0.0-alpha.6",
	"react-native": "0.44.2",
	"reflux": "^6.4.1"
},

please help,thanks

Hi @bossno1
That is a normal warning telling you that Reflux needs React version 15. You are using an alpha version of React 16. Unless you absolutely need to experiment with React 16, I would recommend sticking with a stable version of React 15.
Libraries like Reflux will lag behind the bleeding edge React code, understandably so, as it often takes a lot of effort to upgrade and it is better to wait for the new version to be stable. If you really need to use React 16 now you will likely need to fork and try to upgrade libraries like Reflux yourself. If all goes well you can submit it back here as a PR.
Best of luck learning React and React Native :)
(Also I'm not an owner/member here, just a fan trying to help out :) )

thanks!


Append crowd params to subject urls

Replaced by #16 because I broke the history

Replaced by #16 because I broke the history


Download URLS require authentication

My videos and photos are on S3 with HTTP auth.   What is the best way for me to authenticate, so I can leverage your download/caching mechanism ?   Should I download and cache outside of your gallery ?

@mdaymond this library uses SDWebImage as a caching mechanism. So i think this might be of some assistance

Thanks.. got it.


Trying to see why any of my services aren't working correctly

http://type.googleapis.com/google.rpc.BadRequest

This doesn't seem relevant to Privacy Sandbox, so closing.


Add the HX-Boosted and other missing headers

This PR introduces the HX-Boosted header, which indicates when a request was boosted
https://htmx.org/reference/

@tonyalaribe Oh last thing, may you add the newly added header types to the export list?


Gephi support

Implement GraphStream HTTP endpoint.
Support two modes:

"Raw" nodes and quads

Nodes with properties (use metadata in graph to inline some properties)

Example of the last mode for movies dataset:

P.S. I'm not a visualization expert :P
TODO:

[x] Inline common properties (-type-> person).
[ ] Replace blank node patterns with a single edge (-starring-> (bnode) -actor->).

More information in docs/GephiGraphStream.md.
Note: there is a bug that prevents loading over 200k nodes.

Hey @dennwc .  Looking forward to #533 very much.  Thank you.

Mentioned bug was fixed. I consider this feature done. I'll play a bit more with bnodes, but it may be a feature for another time.


Set proxy hostname and cluster cidr

fixes https://github.com/kubernetes-incubator/bootkube/issues/194
/cc @hongchaodeng @xiang90

Do you know why do we need to set this? Why does non host network service IP work?

@aaronlevy
I'm very new to kube proxy.
Mind explain how the two flags, "hostname-override" and "cluster-cidr", a bit more and how they fix the problem?

When the --cluster-cidr flag is used, the proxy will setup iptables MASQUERADE rules for all traffic which is not part of the pod-network. What I believe is happening with the vagrant/virtualbox installations is that the default interface (eth0) is not actually routable between nodes - so traffic leaves the node but is incorrectly routed on the return path.
Specifically virtualbox will assign all node's eth0 to <IP_ADDRESS>.
Packet will leave one box with a source of <IP_ADDRESS>, then when it gets to the destination, the return address is set to <IP_ADDRESS> -- which is also the remote node's eth0 -- so it essentially routes to itself on the remote node.
With the MASQUERADE rules, it will make sure the return route will use the interface the traffic is actually leaving from (eth1) (not the default route, eth0). Or that is my uninformed networking understanding.
The --hostname-override likely doesn't affect this actual issue (I tested it in isolation, and it did not resolve the issue, but I did not test only --cluster-cidr. However, I was seeing error loglines in the proxy which were stating that because it cannot resolve the hostname, it is assuming a nodename of <IP_ADDRESS>. I'm not sure how this would be used, execpt maybe to try and query its own node object -- in which case localhost is always incorrect. So this flag is actually setting this to an accurate address (the pod-ip of hostNetwork pods will be the hostIP as populated by the kubelet).

LGTM

LGTM. Thanks!


HMR failing

I'm using this setup in my project, but I'm unable to get a successful build, it seems that HMR isn't working correctly. In the console HMR is timing out by the looks.

What does src refer to here? Maybe this is related.
https://github.com/christianalfoni/webpack-express-boilerplate/blob/master/server.js#L18
The only area that I really vary from you setup is having a .bablerc file instead of doing this all in webpack.config.js as I'm using Relay, and Relay needs it's plugin defined in here for some reason.
{
    "env": {
	"development": {
	    "passPerPreset": true,
	    "presets": [
	    {
		"plugins": [
		    "./build/babelRelayPlugin"
		]
	    }, "react", "es2015", "stage-0", "react-hmre"],
	},
	"production": {
	    "passPerPreset": true,
	    "presets": [
	    {
		"plugins": [
		    "./build/babelRelayPlugin"
		]
	    }, "react", "es2015", "stage-0"],
	}
    }
}

Hm, you got any progress on this? Sorry for late reply. Your files needs to be in src folder yes. There has been some updates to the boilerplate if you want to give it another try :)


Add sites with live streams to the map

We would like to add all of the sites with live streams to the map. The idea is that we'll have a button that filters out the sites to only those with live streams connected to them. If you have an idea of how to automatically populate this filter by which sites have a live stream connected to it, we can do so. If manually populating the list of sites with a live stream is easier, I can do that whenever we need to add or remove sites. The sites that have live streams are:

3205
3492
2904
3301
1006
3358
1024
3026

The name of the filter button can be "Sites with live streams only".
Extra: Depending on how easy it would be to simultaneously add a third filter button, we could add a button for 3D models. Pete and I have yet to discuss this, however. The sites that have 3D models are:

1006
3319
3323
3320
3322
3321
3207

The name of the filter button can be "Sites with 3D models only".

@Caesarh97 maybe we could use a dropdown for the 3 filters?


Migrating CI to GIthub Actions

This will actually be nice because we can have clear visualization of the three tests (style, build, and documentation), and who doesn't love being able to add more badges to things.

note to self: It would be very handy to get nektos's act running on my local machine to test actions locally

note to self: It would be very handy to get nektos's act running on my local machine to test actions locally

Okay, seems like all three tests are functioning.
I do want to change the docs build so that it only actually deploys the docs on push to master, though it should still make sure they can build on any PR to master.

Okay, seems like all three tests are functioning.
I do want to change the docs build so that it only actually deploys the docs on push to master, though it should still make sure they can build on any PR to master.


Travis failing for pull requests

Failing with this error message:
The command "tests/travis/run_test.sh" exited with 255.

This error is too generic, there must be many more meaningful errors on top of it.
The error message you've mentioned just says "The tests failed" which doesn't help...
Either a link to the failed travis or a complete error message would help debug it.

Fair enough comment.  I was just testing the waters to see if this was a known issue.  Seems to be affecting all pull requests so thought a head project programmer may already know about this.  I'll investigate in a little while to find exact error...

Okay it seems to be failing here:
test_with_pandas.py
This is the error I get (I've highlighted where the error appears to stem from):

[08:27:55] dmlc-core/include/dmlc/logging.h:235: [08:27:55] src/io/local_filesys.cc:86: LocalFileSystem.ListDirectory demo/data error: No such file or directory
EException AttributeError: "'DMatrix' object has no attribute 'handle'" in <bound method DMatrix.__del__ of <xgboost.core.DMatrix object at 0x000000000A8CAB70>> ignored
   B  A_X  A_Y  A_Z
0  1    1    0    0
1  2    0    1    0
2  3    0    0    1
['int', 'float', 'float', 'float']
F.
======================================================================
ERROR: test_cv_as_pandas (__main__.TestPandas)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_with_pandas.py", line 102, in test_cv_as_pandas
    dm = xgb.DMatrix(dpath + 'agaricus.txt.train')
  File "C:\Users\xyz\Anaconda2\lib\site-packages\xgboost-0.6-py2.7.egg\xgboost\core.py", line 262, in __init__
    ctypes.byref(self.handle)))
  File "C:\Users\xyz\Anaconda2\lib\site-packages\xgboost-0.6-py2.7.egg\xgboost\core.py", line 127, in _check_call
    raise XGBoostError(_LIB.XGBGetLastError())
XGBoostError: [08:27:55] src/io/local_filesys.cc:86: LocalFileSystem.ListDirectory demo/data error: No such file or directory

======================================================================

FAIL: test_pandas (__main__.TestPandas)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_with_pandas.py", line 73, in test_pandas
    assert dm.feature_types == ['int', 'int', 'int', 'int']
AssertionError

----------------------------------------------------------------------
Ran 3 tests in 0.050s

FAILED (failures=1, errors=1)

Seems this python code is failing:
  df = pd.DataFrame({'A': ['X', 'Y', 'Z'], 'B': [1, 2, 3]})
       dummies = pd.get_dummies(df)
       #    B  A_X  A_Y  A_Z
       # 0  1    1    0    0
       # 1  2    0    1    0
       # 2  3    0    0    1
       result, _, _ = xgb.core._maybe_pandas_data(dummies, None, None)
       exp = np.array([[1., 1., 0., 0.],
                       [2., 0., 1., 0.],
                       [3., 0., 0., 1.]])
       np.testing.assert_array_equal(result, exp)
       dm = xgb.DMatrix(dummies)
       assert dm.feature_names == ['B', 'A_X', 'A_Y', 'A_Z']
       assert dm.feature_types == ['int', 'int', 'int', 'int']

dm.feature_types is actually returning ['int', 'float', 'float', 'float'] which is incorrect.  Please can anyone (AbdealiJK) try this on a fresh version of xgboost?  See if you get same error?

It appears from first glance that this is a purely python issue: this function attempts to get feature types in the python DMatrix constructor:
https://github.com/dmlc/xgboost/blob/master/python-package/xgboost/core.py#L168
I'll investigate further...

Okay think I have found the problem, I have simplified here what is happening to this code:
        df = pd.DataFrame({'A': ['X', 'Y', 'Z'], 'B': [1, 2, 3]})
        dummies = pd.get_dummies(df)
        data_dtypes = dummies.dtypes
        print dummies
        print data_dtypes

B  A_X  A_Y  A_Z
0  1    1    0    0
1  2    0    1    0
2  3    0    0    1

B        int64
A_X    float64
A_Y    float64
A_Z    float64
dtype: object

Perhaps somebody can comment on whether this assertion check needs removing or what we should do?

I am using pandas version 17 and found this pandas change:
http://pandas.pydata.org/pandas-docs/version/0.19.1/whatsnew.html#get-dummies-now-returns-integer-dtypes
Maybe travis needs to be using latest pandas version if not already?  I'll install version 19 and see if this corrects problem?

Assertion works fine with 0.19.1 so I think that is the solution.  Travis needs to be using latest version of pandas!

On my local pandas 0.19 it works fine.
Also, I do have travis PRs which don't fail on the pandas tests - https://github.com/dmlc/xgboost/pull/1829
Are you sure you have rebased on master ? Maybe the fix has been merged in master already but not in your PR ?

AbdealiJK - please re-read my posts in particular:

Assertion works fine with 0.19.1 so I think that is the solution. Travis needs to be using latest version of pandas!

So in summary, just to clarify if not clear, when tested locally using Pandas 0.17 it failed, when I updated to 0.19.1 it worked fine.  So the assumption is that Travis is not using latest pandas version (it may now, nobody has mentioned whether this has been updated?)  Or maybe we can somehow find what version Travis is using?  Regardless, with your unit testing, I will cancel my pull requests and use your unit tests. Just need to find the time to edit and re-version git etc.

just to re-emphasise - someone else's pull request is failing with same error:
https://travis-ci.org/dmlc/xgboost/jobs/180733537

@JohnStott I did read all your posts, and suggested a way to test whether it was fixed - i.e. just to update your PR by rebasing it on master ...
Regarding the travis log you mentioned in https://github.com/dmlc/xgboost/issues/1819#issuecomment-264664346:
Here is the Travis pandas version is 0.191 - check L626
Note that the link youAlso, it does not mention a sklear error, it has an error in  xgboost/tests/python/test_basic_models.py. So, this travis log does not seem to be related to this discussion.
In your currently open PR at https://github.com/dmlc/xgboost/pull/1710 (with travis at 179403614) the pandas error does not seem to be appearing again. (Note that this is also using Pandas 0.19.1)
So, all in all:

I don't seem to be able to see this on any of the recent travis builds.
The recent travis builds are using pandas 0.19.1

So, it was either a secondary problem or the problem has already been fixed.
I hope this helped.

Just realized that you recently pushed commits on your PR at https://github.com/dmlc/xgboost/pull/1710 which is probably why the travis error is not the same anymore.
Cool, nice to see it worked :+1:
I think this issue can be closed ?

I will rebase again... see if it is now fixed...be back in half an hour...

Hmmm, seems to have failed again...  Thank you for your help so far...
It is unfortunate that the 'The command "tests/travis/run_test.sh" exited with 255.' error doesn't contain any more detail...  Please have a look at my latest merge attempt link:
https://travis-ci.org/dmlc/xgboost/jobs/181080162L777
it doesn't mention the pandas package at all (unlike the link you posted)?
Maybe this is failing somewhere else?  Perhaps the pandas 0.19 issue has been resolved but now something else is failing?
I have an hour free so I'm going to cancel my pull request, and submit a simple xgboost fix that is in desperate need of being merged, see if this causes this dreaded 255 error?

@JohnStott In the link you've given (link), the error can be seen at:
tests/python/test_api_internals.py:6:1: E302 expected 2 blank lines, found 1

flake8 says it was expecting 2 lines instead of 1 in the file mentioned there in accordance with PEP guidelines for python
Also, the reason pandas is not there in this travis is because it is the TASK=python_lightweight_task which is supposed to run without pandas, sklearn, etc.

Thanks AbdealiJK.  It seems this was a number of issues, Travis was originally giving me this error:
python-package/xgboost/rabit.py:135:1: E305 expected 2 blank lines after class or function definition, found 1
python-package/xgboost/rabit.py:208:1: E305 expected 2 blank lines after class or function definition, found 1
as per (https://travis-ci.org/dmlc/xgboost/jobs/176671938)
but this was nothing to do with my submit, I was therefore thinking this stemmed from somewhere else, something I had done (as I wouldn't expected issues to get merged)!  I.e., I then tested the python "checks" locally, for which I found the above error with regards to Pandas, which I can now see was a "red herring".  It seems in the interim, this "rabit" issue was fixed, but then my python code was then failing as per above (which I missed):
tests/python/test_api_internals.py:6:1: E302 expected 2 blank lines, found 1
I have just submitted a different pull request and it passed all checks fine.  Many thanks for your help and apologies for any inconvenience.  I will now close this.


populateViewHolder(...) - is this method deprecated?

https://firebaseui.com/docs/android/com/firebase/ui/FirebaseRecyclerViewAdapter.html
public void populateViewHolder(ChatMessageViewHolder chatMessageViewHolder, ChatMessage chatMessage)

it appears in here too : https://codelabs.developers.google.com/codelabs/firebase-android/?authuser=0#8
@Override protected void populateViewHolder(final MessageViewHolder viewHolder, FriendlyMessage friendlyMessage, int position)

@johnnyoncode a few things:

firebaseui.com is no longer in use, if you found a link to that somewhere please let me know and I will remove it.
That definitely is a bug, assigning to @kroikie to fix it.

Thanks for catching that @johnnyoncode. Fixed.


react-query skipToken type-safety

Overview
Currently, we have to do non-null assertions everywhere in our react-query args, to match the enabled behavior.
That unfortunately loses type-safety and is error-prone.
react-query v5.25 brought a new type-safe skipToken option, read more about it here:
https://tkdodo.eu/blog/react-query-and-type-script#type-safety-with-the-enabled-option
https://tanstack.com/query/v5/docs/framework/react/guides/disabling-queries#typesafe-disabling-of-queries-using-skiptoken

To leverage type-safety and avoid the current non-null assertion mess, we should bump react-query to latest and leverage this in all queries.
References and additional details
Pretty much everywhere we use react-query - LSP find references of enabled prop in useQuery
Acceptance Criteria

All current queries with enabled are migrated to the new type-safe skipToken

Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

Closed in https://github.com/shapeshift/web/pull/7079 - now a continuous effort


Add support for Instance metadata/userdata endpoint

I'm implementing a function in the aws package that will be able to retrieve instance metadata.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html

This looks related to #153.


Unable to load system services

RancherOS Version: (ros os version)
v1.1.0
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
vSphere Hypervisor 6.5.0 (ESXi) virtual machine, iPXE, diskless
I noticed that open-vm-tools wasn't running. When confirming that it was enabled:
[rancher@myhost ~]$ sudo ros service list
ERRO[0000] Failed to load https://raw.githubusercontent.com/rancher/os-services/v1.1.0/index.yml: Get https://raw.githubusercontent.com/rancher/os-services/v1.1.0/index.yml: x509: certificate signed by unknown authority
enabled  open-vm-tools

Attempting to start it manually shows the same error:
[rancher@myhost ~]$ sudo ros service start open-vm-tools
ERRO[0000] Get https://raw.githubusercontent.com/rancher/os-services/v1.1.0/o/open-vm-tools.yml: x509: certificate signed by unknown authority
ERRO[0000] Failed to load service(open-vm-tools): Get https://raw.githubusercontent.com/rancher/os-services/v1.1.0/o/open-vm-tools.yml: x509: certificate signed by unknown authority
No such service: open-vm-tools

It seems there's a missing CA certificate bundle somewhere.

mmm, is this a cd/iso/pxe booted system, an installed system, or ?
I'm hoping there's something specific in your system setup that we can narrow the problem down to.

Booted via iPXE with state stored on /dev/sda.
#!ipxe
# Boot a persistent RancherOS to RAM

# Location of Kernel/Initrd images
set base-url http://releases.rancher.com/os/v1.1.0

kernel ${base-url}/vmlinuz rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/sda]
initrd ${base-url}/initrd
boot

Incidentally, since this is on VMware, I'm using guestinfo to configure the cloud-init datasource URL. Works well. :+1:

Curiously, a couple of findings:

I can use wget from the standard/default console container to fetch the URL in the error message without any certificate validation trouble.
Both open-vm-tools and ros service list work fine on a similar machine I configured at home.

There are two differences that I am aware of:

On the machine having problems I have an iPXE boot ROM configured. At home I use PXE to load an iPXE booter with an embedded script, which then chain loads the OS.
There's an application aware firewall in front of the machine having problems. Having said that, though, HTTPS traffic is passed through unmolested (except for IP blocks to known risky sites). I think that being able to use wget eliminates the firewall as a potential problem.

I can probably set up a chain loader like I did at home and will report back if/when I'm able to do that, just to eliminate the boot ROM as a potential problem.

Using PXE to load iPXE and then chain load the OS didn't change anything.
One thing I've noticed is that where v1.1.0 immediately returns a certificate validation error, v1.0.1 and v1.0.4 take considerably longer to return a result but end up with the same error (with the URL adjusted according to the OS version, of course). This suggests an environmental problem, in spite of the fact that I can also get the index.yml file from the console container on these versions.
Is there some way to peek under the hood, and perhaps be able to run commands from the same context that the error is being triggered? The logs in /var/log/boot tell me nothing other than what I already know.

yeah, thinking music :/

and in an annoying turn, I'm failing to reproduce this - I'll keep kicking, because I've seen something similar intermittently over the week.

I have collected definitive evidence of a recent, unannounced change to the application aware firewall. This is a local problem. Sorry to waste your time.

I don't believe you :banana:
but in really good news, your issue, and a blog post I started writing yesterday, caused me to find a different dhcp&resolv.conf related issue in 1.1.0 - so 1.1.1 will be even better-er-er

The firewall intercepts HTTPS requests and synthesizes a private-CA-signed cert to present to the client. If the client doesn't trust the private CA, certificate validation fails. The cert I snagged using openssl s_client clearly shows that's what is going on here. :(

I've confirmed with the people who would know that this was in fact the root cause. They were able to add an exception for my machines. All is well again.
Unless you have an objection, I'll open a new issue to suggest that it would be useful to have a way to add private CA certificates to the OS. (I am already doing this for the user Docker instance.)


refactor: replace inquirer with amplify-prompts in amplify-category-analytics package

refactor: replace inquirer with amplify-prompts in amplify-category-analytics package
Converts references to inquirer with amplify-prompts. Specifically, removes automated code designed to handle tens of questions with simple direct questions since there were only 2 questions in each analytics category. Corresponding metadata in supported-services.json have been removed.

Description of how you validated changes
Manual test locally via cli and examination of output json files.
Checklist

[x] PR description included
[x] yarn test passes

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

Codecov Report

Merging #11738 (1a496bd) into dev (984c0f8) will increase coverage by 0.77%.
The diff coverage is 63.67%.

@@            Coverage Diff             @@
##              dev   #11738      +/-   ##
==========================================
+ Coverage   49.45%   50.23%   +0.77%
==========================================
  Files         692      705      +13
  Lines       33424    34087     +663
  Branches     6840     7005     +165
==========================================
+ Hits        16529    17122     +593
- Misses      15370    15484     +114
+ Partials     1525     1481      -44

Impacted Files
Coverage Δ

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

...ages/amplify-appsync-simulator/src/schema/index.ts
70.68% <0.00%> (-1.25%)
:arrow_down:

...tor/src/velocity/util/transform/dynamodb-filter.ts
4.93% <0.00%> (ø)

...ync-simulator/src/velocity/util/transform/index.ts
21.05% <0.00%> (ø)

...c/provider-utils/awscloudformation/import/index.ts
31.02% <ø> (ø)

...vice-walkthrough-types/cognito-user-input-types.ts
100.00% <ø> (ø)

...wscloudformation/utils/auth-sms-workflow-helper.ts
43.75% <0.00%> (ø)

...ges/amplify-category-custom/src/commands/custom.ts
0.00% <0.00%> (ø)

...ion/service-walkthroughs/lambdaLayerWalkthrough.ts
11.21% <0.00%> (ø)

...mation/service-walkthroughs/scheduleWalkthrough.ts
16.49% <0.00%> (ø)

... and 213 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

all e2e tests appear to be passing now except for the integration-test, which doesn't look related to my changes.


Require PRs to be up-to-date with main before merging, plus allow automerge

What feature would you like to have?
I'd like to have the repository set up so that pull requests must always be up-to-date with main before they can be merged.
The idea is to set the branch protection rules for the main branch so that the checkbox "Require branches to be up to date before merging" is ticked.
What problem will be solved by having the feature?
It's a good idea to integrate changes from main often.
This also has the benefit of confirming that changes on main are compatible with the changes from the PR.
I recommend also turning on the ability for you to tell GitHub to merge the branch automatically once the test pass.
That way you don't have to wait around for the test suite to pass and then remember to merge manually.
Do you want to help making the feature?
I'll link to the GitHub docs, for you to review this idea and potentially set up your repo in this way.
GitHub docs, Managing a branch protection rule, search for "Require branches to be up to date before merging".
To setup automerge, read the GitHub docs, automatically merging a pull request.

Good idea. Both options enabled now!

Good idea. Both options enabled now!

Cool, thank you! 😄


Add an ajustable skill level (ELO for example) that works

When using stockfish to implementent it to your chess game, if you currently want to have an adjustable skill level it doesnt really work, the best you can do is change the depth and reaction time but the "skill_level" doenst actually do much, what would be nice is a "set_elo" object that sets the bots elo to anything from 100 to 3900 and actually works

The skill_level should actually already lead to the engine being better or worse. This means that it reaches a significantly lower depth at a lower skill level than at a high skill level. (If this doesn't work, then it's a bug and we will be happily fix it if you describe in more detail the case in which it occurs).
There is also already the function to set an Elo value between 1320 and 3190. This should work the same way as the skill level. We are also happy to fix bugs with this if necessary.

Hi @Zixer1, for skill_level and elo, expected behaviour should be sometimes getting the best move, and sometimes getting a lower ranked move. Stockfish decides this randomly, where the extent of the randomness is related to the strength you set. Is this similar to what you're getting?

Hi, yes, that is what I'm getting, but what would be interesting is if we could have Stockfish play at a specific Elo constantly. So, for example, if I put a very low skill level, it would play very badly.

@Zixer1 Unfortunately that's just Stockfish's behaviour, so it's probably beyond the scope of this python wrapper. I'm not aware of Stockfish having an option to consistently never play the top move. Although it does use some algorithm behind the scenes for the move selection, in order to approximate the elo you've set Stockfish to. I'm not sure how it works, but I'd assume that at lower elos, worse moves have a higher probability of being played. The relevant source code is here: https://github.com/official-stockfish/Stockfish/blob/master/src/search.cpp#L93-L96
If you'd prefer to never choose the best move, maybe what you could do is call the get_top_moves function of the python wrapper. Then, you can choose a suboptimal move from that selection however you wish. Although if you wanted something like say the 15th top move, get_top_moves(15) would have Stockfish use 15 principal variations, so the search would take longer.


Add badges

Current dependencies on/for this PR:

main

PR #16   👈

This comment was auto-generated by Graphite.


识别手写的内容，返回都为空

FlutterTesseractOcr.extractText

https://github.com/tesseract-ocr/tesseract
Just use PC Tesseract to check.

https://github.com/tesseract-ocr/tesseract 只需使用PC Tesseract即可检查。
您好 是运行在手机上的结果，使用的版本是 flutter_tesseract_ocr 0.4.23

This library was created for use in flutter.
https://github.com/adaptech-cz/Tesseract4Android/
It cannot solve Tesseract problems or Tesseract4Android problems.


Fix issue #3

https://github.com/ZEDGR/pychal/issues/3
_parse now never casts certain response fields which are always strings to non-string types.
Version changed to 1.8.1.

Should it be version 1.8.1?

That is an issue with travis. I have to make the environment variables available when someone make a PR.