Restore internationalization functionality in toolbars

Broken since https://github.com/ManageIQ/manageiq/pull/9753
Fixes: https://github.com/ManageIQ/manageiq/issues/10748

(Test failure should be resolved now, as of https://github.com/ManageIQ/manageiq/pull/10813)

Hmm, why does this fix that issue? Seems like it shouldn't affect anything but i18n..
Either way, re-kicked the test and hoping :)
Though, I'm not quite sure this is the right place, seems like this should be called when generating the toolbar - which is either already being done in toolbar_helper, or that file is dead and it is done on the angular side .. but then again, buttons_to_html is still called from javascript_pf_toolbar_reload.. so maybe the conversion is not quite complete.. looking into it :)

Code looks good.
toolbar_helper has to go or all the toolbar rendering routines can be moved there from application_helper.
@mzazrivec : please, rebase and fix tests so that I can test this in the UI.

@martinpovolny Rebased & fixed tests.

code looks good, tested in the UI


Where is the java8/Main.java?

Thanks.

Hi @arisc097, if you could please direct all questions to our WDL User forum that would be great.
Our communications team will respond to you there. Thanks!


Toying with GitHub Actions

Ultimately, this should solve #343

So this isn't going to be as easy as I thought. I think I'm going to need to rename the files after generating them.

Cool! This works. Now to loop over all images and clean up file names.

Fixed #343


Reproduce problematic case of Ulf Norell's PhD

In his PhD thesis (https://www.cse.chalmers.se/~ulfn/papers/thesis.pdf)  Ulf Norell describes a problematic case for unification with metavariables in section 3.1. I am trying to reconstruct that example, but I trigger another bug first.
My attempt is here:
-- Example taken from the PhD of Ulf Norell
-- Chapter 3.1

data Bool { True, False }

data Nat { Z, S(pred: Nat) }

def Bool.neg : Bool {
    True => False,
    False => True,
}

codata Fun(a b: Type) {
    Fun(a,b).ap(a b: Type, x: a) : b
}

-- | The dependent function type.
codata Π(a: Type, p: Fun(a, Type)) {
    Π(a, p).pi_elim(a: Type, p: Fun(a, Type), x: a) : p.ap(a, Type, x)
}

codef F: Fun(Bool, Type) {
    .ap(_,_,x) => x.match {
        True => Bool,
        False => Nat,
    }
}

let T : Type {
    Fun(Π(F.ap(Bool, Type, (? : Bool)), \x. F.ap(Bool, Type, x.neg)),Nat)
}

let error : T { \g. g.pi_elim(Nat, \x. F.ap(Bool, Type, x.neg), 0)}

The error I get is:
Error: T-011

  × Type annotation required for typed hole
    ╭─[file:///Users/david/GitRepos/polarity-lang/polarity/examples/norell.pol:29:1]
 29 │ let T : Type {
 30 │     Fun(Π(F.ap(Bool, Type, (? : Bool)), \x. F.ap(Bool, Type, x.neg)),Nat)
    ·                             ─
 31 │ }
    ╰────

That seems to be wrong, since I explicitly provide a type annotation for that hole... I think we are not correctly switching between inference and checking in the case of type annotations.

The trace ends with the following lines:
[[]] |- ?0.match {
        True => Bool,
        False => Nat
    } <= Type

So it seems that we have lost the type annotation during normalization, and then try to infer it?

Ok, the bug really seems to stem from this here: https://github.com/polarity-lang/polarity/blob/db9028bb12e1394ad7372e900a91a34247c71ff2/lang/elaborator/src/normalizer/eval.rs#L259-L266
Because we might normalize a term whose computation is blocked by (? : e) but which we try to typecheck after normalizing in a position where we need to infer a type. I think we need to extend neutral terms by
n := ... | (n : v)


BUG: update c-blosc to 1.17.0 fix compilation on newer compilers

Update c-blosc to 1.17.0 to fix compilation errors about a conflicting
definition for _xgetbv. This affected at least gcc-9.
TODO:

[x] Unit tests and/or doctests in docstrings
[x] tox -e py37 passes locally
[x] tox -e py27 passes locally
[x] Docstrings and API docs for any new/modified user-facing classes and functions
[x] Changes documented in docs/release.rst
[x] tox -e docs passes locally
[x] AppVeyor and Travis CI passes
[x] Test coverage to 100% (Coveralls passes)

Would the zarr-developers team like me to add a newer gcc/clang to the build matrix to test for these issues in the future?

Would the zarr-developers team like me to add a newer gcc/clang to the build matrix to test for these issues in the future?

That sounds like a good idea, if it's not too much trouble.

Thanks for making this PR, much appreciated :+1:
Could you add an item to the release notes (docs/release.rst) to say that c-blosc has been upgraded.

Sorry, I had written a docs entry but forgot to commit, didn't mean to check that box before it was done. Would you like me to add the travis entries in this PR or open a follow up?

i am looking forward for this one to be merged as i have problem compiling numcodecs on arm architecture.
btw. why not to reuse python blosc?

Thanks @llllllllll for the PR and @alimanfoo for the review! 😄


Change LIKE to = when only one oid is given

Use LIKE only if a wildcard * is used in the string

This is already on the API


Issue 315 solved

Fixed the alignment of the services

Hey @riffhi I liked your changes, Thank you for contributing


Bump dev version and update to latest dev to realign after stable release

The alignment is missing the changes in the Directory.props file


The library throws an exception only with a specific string

The library thows an exception when I execute the code with a specific string and the setValidateResult is set to true and ErrorCorrectionLevel::LOW
`
try {
$qrCode = new QrCode('TEST111000747');
$qrCode->setSize(100);
$qrCode->setWriterByName('png');
$qrCode->setMargin(0);
$qrCode->setEncoding('UTF-8');
$qrCode->setErrorCorrectionLevel(new ErrorCorrectionLevel(ErrorCorrectionLevel::LOW));
$qrCode->setValidateResult(true);
return $qrCode->writeString();
} catch (Exception $e) {
    return "The id does not work"; // $e has no messages
}

`
Testing some features of our project I created 1000 incrementals codes, from  TEST1110001 to TEST1110001000, and the error appear only with "TEST111000747". If I change a "T" for  "t" or add any other char to the end or begining or anywhere, the code works properly
I'm running the code on PHP 7.2.14-1 and ubuntu18.04.1

I saw that with ErrorCorrectionLevel::HIGH is failing too with the code TEST111000286 and TEST111000303

Hi @sergiq I created a phpunit test with the code you provided above and I get no errors. If you can provide a failing test case (you can change the one I created) I can see what is wrong. See https://travis-ci.org/endroid/qr-code/builds/494540499


Modal Window on clicking Hotspot

Hi there
Just getting started with Pannellum. Is there a way to launch a modal window inside the panorama view? The idea is to have hotspots and on clicking the hotspots to launch a modal box window inside the view as an overlay on top of the panorama view. Any tips / examples of how to accomplish this?
Thanks

You can use the API, specifically the clickHandlerFunc and clickHandlerArgs hot spot parameters. You can then write a JavaScript function that opens your modal window and use the clickHandlerFunc parameter to assign it to a hot spot (the clickHandlerArgs parameter can be used to specify arguments to pass to this function, such as for assigning content to the modal window). There's currently no example on using these parameters, but the custom hot spots example is similar, except it uses the createTooltipFunc and createTooltipArgs parameters instead.


⚠ Samsung has degraded performance

In d84bdee, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2680 ms

Resolved: Samsung performance has improved in ea61f04.


Faker::Tezos: add block faker

Sorry, the MR #1630 was incorrect.
This new MR adds the block method to Tezos faker.

No problem! :)
Could you add documentation for this new method? It should be in doc/unreleased/blockchain/tezos.rb.
Thanks.

@vbrazo Done!


Need support for AddEpamGraphQLSchema without mutation scheme

Description
You can use AddEpamGraphQLSchema<TQuery, TMutation, TExecutionContext> as extension for IServiceCollection when you configure ASP.NET app. But if you have no mutation scheme you need create one or create your own extension.
Describe the solution you'd like
Want to have this one AddEpamGraphQLSchema<TQuery, TExecutionContext> as extension for IServiceCollection.

Issue was resolved by https://github.com/epam/epam-graphql/pull/34


docker nimbus launch problems with volumes

error messages like
nimbus_1 | cp: cannot create regular file '/app/storm_vol/CHANGELOG.md': Permission denied
reported by OUNL suggest that volume mounting is currently erroring out somehow.

fixed in latest eucm/storm-nimbus images. See https://github.com/e-ucm/dockerized-storm/commit/e605779006c4a41cc3ceb2fd10f98ab1928ae76a


test_drivers.py passes when run alone, but fails when run as part of test suite.

Expected behavior and actual behavior.
Expected:

When running py.test and py.test tests/test_drivers.py test_drivers.py would pass or fail in both cases.

Actual

When running py.test tests/test_drivers.py the test passes.
When running py.test the test fails.

Failure output:
____________________________________________________________________________________________ test_options _____________________________________________________________________________________________

tmpdir = local('/tmp/pytest-of-will/pytest-2/test_options0')

    def test_options(tmpdir):
        """Test that setting CPL_DEBUG=ON works"""
        logfile = str(tmpdir.mkdir('tests').join('test_options.log'))
        logger = logging.getLogger()
        logger.setLevel(logging.DEBUG)
        fh = logging.FileHandler(logfile)
        fh.setLevel(logging.DEBUG)
        logger.addHandler(fh)

        with fiona.drivers(CPL_DEBUG=True):
            path = os.path.join("tests", "data", "coutwildrnp.shp")
            c = fiona.open(path)
            c.close()
            with open(logfile, "r") as f:
                log = f.read()
            if fiona.gdal_version.major >= 2:
>               assert "GDALOpen" in log
E               assert 'GDALOpen' in "Creating a not-responsible GDALEnv in drivers()\nGDAL data files not located, GDAL_DATA not set\nPROJ data files not ...not set\nPROJ data files not located, PROJ_LIB not set\nSet option b'ENCODING': b''\nFlushed buffer\nStopped session\n"

tests/test_drivers.py:30: AssertionError
---------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------
DEBUG:fiona:Creating a not-responsible GDALEnv in drivers()
WARNING:fiona._drivers:GDAL data files not located, GDAL_DATA not set
WARNING:fiona._drivers:PROJ data files not located, PROJ_LIB not set
DEBUG:botocore.session:Loading variable profile from defaults.
DEBUG:botocore.session:Loading variable config_file from defaults.
DEBUG:botocore.session:Loading variable credentials_file from defaults.
DEBUG:botocore.session:Loading variable data_path from defaults.
DEBUG:botocore.session:Loading variable profile from defaults.
DEBUG:botocore.session:Loading variable region from defaults.
DEBUG:botocore.session:Loading variable profile from defaults.
DEBUG:botocore.session:Loading variable credentials_file from defaults.
DEBUG:botocore.session:Loading variable config_file from defaults.
DEBUG:botocore.session:Loading variable profile from defaults.
DEBUG:botocore.session:Loading variable metadata_service_timeout from defaults.
DEBUG:botocore.session:Loading variable profile from defaults.
DEBUG:botocore.session:Loading variable metadata_service_num_attempts from defaults.
DEBUG:botocore.session:Loading variable profile from defaults.
DEBUG:botocore.credentials:Looking for credentials via: env
DEBUG:botocore.credentials:Looking for credentials via: assume-role
DEBUG:botocore.credentials:Looking for credentials via: shared-credentials-file
DEBUG:botocore.credentials:Looking for credentials via: custom-process
DEBUG:botocore.credentials:Looking for credentials via: config-file
DEBUG:botocore.credentials:Looking for credentials via: ec2-credentials-file
DEBUG:botocore.credentials:Looking for credentials via: boto-config
DEBUG:botocore.credentials:Looking for credentials via: container-role
DEBUG:botocore.credentials:Looking for credentials via: iam-role
INFO:botocore.vendored.requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): <IP_ADDRESS>
DEBUG:botocore.utils:Caught exception while trying to retrieve credentials: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /latest/meta-data/iam/security-credentials/ (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)'))
Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 134, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/util/connection.py", line 88, in create_connection
    raise err
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/util/connection.py", line 78, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/awsrequest.py", line 130, in _send_request
    self, method, url, body, headers, *args, **kwargs)
  File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/awsrequest.py", line 157, in _send_output
    self.send(msg)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/awsrequest.py", line 242, in send
    return HTTPConnection.send(self, str)
  File "/usr/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 155, in connect
    conn = self._new_conn()
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 139, in _new_conn
    (self.host, self.timeout))
botocore.vendored.requests.packages.urllib3.exceptions.ConnectTimeoutError: (<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 597, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/util/retry.py", line 271, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
botocore.vendored.requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /latest/meta-data/iam/security-credentials/ (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/utils.py", line 180, in _get_request
    response = requests.get(url, timeout=timeout)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/api.py", line 69, in get
    return request('get', url, params=params, **kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/adapters.py", line 419, in send
    raise ConnectTimeout(e, request=request)
botocore.vendored.requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /latest/meta-data/iam/security-credentials/ (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)'))
DEBUG:botocore.utils:Max number of attempts exceeded (1) when attempting to retrieve data from metadata service.
WARNING:fiona._drivers:GDAL data files not located, GDAL_DATA not set
WARNING:fiona._drivers:PROJ data files not located, PROJ_LIB not set
DEBUG:fiona._shim:Set option b'ENCODING': b''
GDAL: GDALOpen(tests/data/coutwildrnp.shp, this=0x2f7b620) succeeds as ESRI Shapefile.
DEBUG:fiona.collection:Flushed buffer
GDAL: GDALClose(tests/data/coutwildrnp.shp, this=0x2f7b620)
DEBUG:fiona.collection:Stopped session
------------------------------------------------------------------------------------------ Captured log call ------------------------------------------------------------------------------------------
__init__.py                361 DEBUG    Creating a not-responsible GDALEnv in drivers()
test_drivers.py             23 WARNING  GDAL data files not located, GDAL_DATA not set
test_drivers.py             23 WARNING  PROJ data files not located, PROJ_LIB not set
session.py                 287 DEBUG    Loading variable profile from defaults.
session.py                 287 DEBUG    Loading variable config_file from defaults.
session.py                 287 DEBUG    Loading variable credentials_file from defaults.
session.py                 287 DEBUG    Loading variable data_path from defaults.
session.py                 287 DEBUG    Loading variable profile from defaults.
session.py                 287 DEBUG    Loading variable region from defaults.
session.py                 287 DEBUG    Loading variable profile from defaults.
session.py                 287 DEBUG    Loading variable credentials_file from defaults.
session.py                 287 DEBUG    Loading variable config_file from defaults.
session.py                 287 DEBUG    Loading variable profile from defaults.
session.py                 287 DEBUG    Loading variable metadata_service_timeout from defaults.
session.py                 287 DEBUG    Loading variable profile from defaults.
session.py                 287 DEBUG    Loading variable metadata_service_num_attempts from defaults.
session.py                 287 DEBUG    Loading variable profile from defaults.
credentials.py            1661 DEBUG    Looking for credentials via: env
credentials.py            1661 DEBUG    Looking for credentials via: assume-role
credentials.py            1661 DEBUG    Looking for credentials via: shared-credentials-file
credentials.py            1661 DEBUG    Looking for credentials via: custom-process
credentials.py            1661 DEBUG    Looking for credentials via: config-file
credentials.py            1661 DEBUG    Looking for credentials via: ec2-credentials-file
credentials.py            1661 DEBUG    Looking for credentials via: boto-config
credentials.py            1661 DEBUG    Looking for credentials via: container-role
credentials.py            1661 DEBUG    Looking for credentials via: iam-role
connectionpool.py          203 INFO     Starting new HTTP connection (1): <IP_ADDRESS>
utils.py                   183 DEBUG    Caught exception while trying to retrieve credentials: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /latest/meta-data/iam/security-credentials/ (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)'))
Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 134, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/util/connection.py", line 88, in create_connection
    raise err
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/util/connection.py", line 78, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/awsrequest.py", line 130, in _send_request
    self, method, url, body, headers, *args, **kwargs)
  File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/awsrequest.py", line 157, in _send_output
    self.send(msg)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/awsrequest.py", line 242, in send
    return HTTPConnection.send(self, str)
  File "/usr/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 155, in connect
    conn = self._new_conn()
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 139, in _new_conn
    (self.host, self.timeout))
botocore.vendored.requests.packages.urllib3.exceptions.ConnectTimeoutError: (<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 597, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/packages/urllib3/util/retry.py", line 271, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
botocore.vendored.requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /latest/meta-data/iam/security-credentials/ (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/utils.py", line 180, in _get_request
    response = requests.get(url, timeout=timeout)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/api.py", line 69, in get
    return request('get', url, params=params, **kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/home/will/.local/share/virtualenvs/Fiona-chaMltC8/lib/python3.5/site-packages/botocore/vendored/requests/adapters.py", line 419, in send
    raise ConnectTimeout(e, request=request)
botocore.vendored.requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /latest/meta-data/iam/security-credentials/ (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPConnection object at 0x7f95cc7c8208>, 'Connection to <IP_ADDRESS> timed out. (connect timeout=1)'))
utils.py                   218 DEBUG    Max number of attempts exceeded (1) when attempting to retrieve data from metadata service.
collection.py              151 WARNING  GDAL data files not located, GDAL_DATA not set
collection.py              151 WARNING  PROJ data files not located, PROJ_LIB not set
collection.py              160 DEBUG    Set option b'ENCODING': b''
collection.py              442 DEBUG    Flushed buffer
collection.py              444 DEBUG    Stopped session

Operating system
Ubuntu 16.04
Fiona and GDAL version and provenance
Python 3.5.2,
GDAL: 2.2.2

@GeoWill sorry, a subset of the tests currently require that you have AWS credentials configured on your computer. We're working to fix this. I'll close this one as it's a known bug: https://github.com/Toblerity/Fiona/issues/507.


AppiumDriver.quit() not closing the app

When trying to close the app using the driver command driver.quit() or driver. close() , the app is still opened

We are facing the same issue. Is there a fix for this issue?


Enhanced Sampling in Molecular Dynamics Simulations with Julia | Pablo Zubieta | JuliaCon 2021

Enhanced Sampling in Molecular Dynamics Simulations with Julia, https://www.youtube.com/watch?v=a6sciHRP6m4
This is quite fast talk, so it was hard to do. Someone else should check them.
00:00 Welcome!
00:20 Two the most common approaches to molecular dynamics
00:37 What is enhanced sampling in molecular dynamics?
01:25 Various flavors of enhanced sampling
01:42 State of software suitable for advanced general ensemble simulations
02:10 Enhanced Sampling on GPUs
02:38 Our goal: improve the performance of the existing solutions
03:45 Overview of my workflow
05:16 What Julia brings to my work with C++ and Python?
05:40 Julia libraries that I wrote as a byproduct: DLPack.jl, ReactionCoordinates.jl, SSAGES.jl
05:55 Performance comparison
06:41 Example: alanine dipeptide in water
07:41 Conclusions

Added, thanks!


disable stdout buffer by default

This effect is global, which means it affects all files that import tensorlayer.
without this change, the example command in example/tutorial_mnist_distributed.py isn't actually working.

This PR has typo, re-created https://github.com/zsdonghao/tensorlayer/pull/259


Empty digests not handled properly

We don't quite follow remote execution spec here: https://github.com/TraceMachina/nativelink/blob/e1c495fa68b5d85872c98f9231689da4581161b1/nativelink-proto/build/bazel/remote/execution/v2/remote_execution.proto#L333
The easiest way to handle this would probably be to simply check/upload an empty digest of every support digest hash function at startup.
Finding the right place to put this feature seems a bit more complicated.

@allada can we implement the defaulting logic of empty digests in https://github.com/adam-singer/native-link/blob/e1c495fa68b5d85872c98f9231689da4581161b1/nativelink-util/src/store_trait.rs#L43 with is_empty_digest and proceed to return successful responses before calling the underlying store?


How can I set the bot to run all day?

If I change the times from the current defaults, I get errors. How can I set it to run all day?

Thanks for the feedback @bamtan , I will look into it. The code has been changed a bit since the last time I tested the "all day" mode so I will have to do some debugging.
Could you show me what the errors say?


Android Basics: ViewModel

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-viewmodel?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-viewmodel#4
In which task and step of the codelab can this issue be found?
Add backing property to currentScrambledWord
3. In GameFragment, delete the code inside the methods onSubmitWord() and onSkipWord(). You will implement these methods later. You should be able to compile the code now without errors.
Describe the problem
...\android-basics-kotlin-unscramble-app-starter\android-basics-kotlin-unscramble-app-starter\app\src\main\java\com\example\android\unscramble\ui\game\GameFragment.kt: (36, 5): Conflicting overloads: private final fun updateNextWordOnScreen(): Unit defined in com.example.android.unscramble.ui.game.GameFragment, private final fun updateNextWordOnScreen(): Unit defined in com.example.android.unscramble.ui.game.GameFragment
Steps to reproduce?

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

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

I accidentally duplicated updateNextWordOnScreen(){...


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

scribd-dl version: 0.4.5
Python version: Python 3.8.5
Operating System: Ubuntu 20.10

This Was My Command
scribd-dl https://www.scribd.com/document/440444961/A-Document-Name

Error, That I Was Found
[error]  Chromedriver needs to be in assets directory or in PATH
Traceback (most recent call last):
  File "/usr/local/bin/scribd-dl", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/scribd_dl/__init__.py", line 41, in main
    scribd.download(URLS)
  File "/usr/local/lib/python3.8/dist-packages/scribd_dl/scribd_dl.py", line 140, in download
    self.start_browser()
  File "/usr/local/lib/python3.8/dist-packages/scribd_dl/scribd_dl.py", line 106, in start_browser
    self.driver.set_page_load_timeout(self.LOAD_TIME)
AttributeError: 'NoneType' object has no attribute 'set_page_load_timeout'

I faced the same issue. Any solution?


[STORM-3970] Changes to storm-sql-core/pom.xml to avoid errors in Eclipse

What is the purpose of the change
storm-sql-core extract javacc parser definition from Calcite jar, adds it to distribution, then used javacc to generate classes that parser definition file. These java classes are then used in storm-sql-core. Eclipse does not properly recognize and execute these steps and then shows errors because of missing generated classes.
How was the change tested
Review the project in project explorer tab in eclipse and ensure that errors are gone. Also do a "mvn clean install" to ensure that maven build is not broken.

I verified that this change greatly improves the situation is Eclipse IDE (by manually copying the changes to my local temporary branch for test purposes).
May I merge it ?

Go ahead + close the Jira 🫠

Merging done!
But I cannot close the JIRA https://issues.apache.org/jira/projects/STORM/issues/STORM-3970?filter=allopenissues, as it is owned by Bipin.


fixed gumbel sampler bug

Fixed Gumbel sampler subroutine for MES and MUMBO.
We now fit the Gumbel (minima) distribution instead of the Gumbel (maxima) distribution, which is what we require for function minimisation.
I have also added some comments explaining where the equations come from to avoid future confusions on this issue.

Looks good, thanks Henry. I also see that the build succeeded, but github lost it somehow: https://travis-ci.org/github/EmuKit/emukit/builds/742413881 . Will merge anyway


BUILD_WITH_CONTAINER=1 needs way to run arbitrary commands

Right now you can only run make commands inside the container. This is not enough. Its very common to want to run something like go test ./pilot/foo/bar/... or whatever. Without an easy way to run in the container, you either need to adhoc add a make target, run on local toolchain, or painfully recreate the docker run command.
I would suggest we move the docker run command to some file, say common/scripts/run-docker.sh. We move all of the docker logic to that file. The Makefile then calls common/scripts/run-docker.sh make whatever, and developers can do the same

I don't think we want each target rewritten so that we are repeatedly running docker runs, but being able to run a target without having to recreate the command would be useful.


Keras load LSTM/GRU model with constant mask/initial_state will raise error

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
TF 2.6.3
Custom Code
Yes
OS Platform and Distribution
RedHat 7
Mobile device
No response
Python version
3.8
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Traceback (most recent call last):
  File "/home/runner/work/sample_code/example.py", line 28, in <module>
    dd = tf.keras.models.load_model("./lstm.h5", compile=False, options=load_options)
  File "/home/runner/anaconda3/envs/latest_env/lib/python3.8/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/home/runner/anaconda3/envs/latest_env/lib/python3.8/site-packages/keras/backend.py", line 1470, in int_shape
    shape = x.shape
AttributeError: 'float' object has no attribute 'shape'

Standalone code to reproduce the issue
import numpy as np
import tensorflow as tf
import tensorflow.keras.backend as K

input_t = tf.keras.Input(shape=(28, 10), batch_size=2, dtype="float32")

rdm_value = np.ones([2, 28]).astype(np.float32)
rdm_value[:, 20:] = 0
mask_value = K.constant(np.array(rdm_value), dtype='bool')

m_state = tf.keras.initializers.GlorotUniform()(shape=[2, 6], dtype='float32')
c_state = tf.keras.initializers.GlorotUniform()(shape=[2, 6], dtype='float32')
init_state_value = [m_state, c_state]

# mask_value = tf.keras.Input(shape=(28), batch_size=2, dtype="bool")

lstm = tf.keras.layers.LSTM(6,
                            return_sequences=True,
                            return_state=True,
                            bias_initializer='random_uniform',
                            time_major=False)(inputs=input_t, mask=mask_value,
                                              training=False,
                                              initial_state=init_state_value)
keras_model = tf.keras.Model([input_t], lstm)
keras_model.save('./lstm.h5')

load_options = tf.saved_model.LoadOptions(allow_partial_checkpoint=True)
dd = tf.keras.models.load_model("./lstm.h5", compile=False, options=load_options)
print(dd.inputs)

Relevant log output
No response

@RunnerZhong,
Thanks for opening this issue. Development of keras moved to another repository.
Could you please post this issue on keras-team/keras repo.
To know more please refer:
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999
Thank you!

@RunnerZhong, Thanks for opening this issue. Development of keras moved to another repository.
Could you please post this issue on keras-team/keras repo. To know more please refer: https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999 Thank you!

Sure, thanks your reply.


CesiumDefaultTilesetMaterial not receiving proper directional lighting at certain angles

This might be an issue with the shader itself. As you can see below, lighting and shadows from a directional light are not properly received by the material at certain angles.
We are trying to a do a day and night cycle based on time, date and location so we are utilizing a wide range of rotations from a single directional light as if it is a real world sun light.

X > 140°
X < 140°

Note: "X" represents the angle value at X-Axis of rotation. Y and Z rotations on the preview is set to zero for simplicity.

Can you elaborate on what's wrong in those screenshots? It's not completely obvious from a quick look.
Also, which tilesets are you using here?

In the left screenshot you can see that the platform that is using Unity's Standard material is well lit, but the Cesium tileset is not receiving any light or shadow. We are using a single directional light as a light source and this happens when the angle of the directional light at the X-Axis is greater than 140°.
On the right screenshot you can see that the platform and the tileset are both well lit when the angle is less than 140°.
We are using the the Google Photorealistic 3D Tiles.

The Google Photorealistic Tiles are "unlit".  Do you see the same behavior with Cesium World Terrain + Bing, or only with the Google tiles?

I tried turning the material type to Lit but it still has the same behavior. This issue is appearing in both Built-in and URP rendering pipelines. Also it is just weird that even thought it is explicitly "Unlit" it is still receiving lighting and shadows. One more thing, looking at the shader settings in Built-in it is specified as a Lit material.
This only happens with the Google tiles, the Bing tiles are working as intended. But, we really need the Google tiles since it is more more detailed than the Bing tiles.
Is this really intended as a Unlit material? if so, do you have any suggestions or workarounds for it to receive lighting and shadows?

I tried turning the material type to Lit but it still has the same behavior. This issue is appearing in both Built-in and URP rendering pipelines. Also it is just weird that even thought it is explicitly "Unlit" it is still receiving lighting and shadows. One more thing, looking at the shader settings in Built-in it is specified as a Lit material.
This only happens with the Google tiles, the Bing tiles are working as intended. But, we really need the Google tiles since it is more detailed than the Bing tiles.
Is this really intended as a Unlit material? if so, do you have any suggestions or workarounds for it to receive lighting and shadows?

Same here. Day Night cycle is not working properly with the Cesium shader. Once I turned on "Generate Smooth Normals" in the Cesium 3D Tileset settings it seems to work BUT unfortunately I get this padding effect:


pip install on Windows + Python 3.7?

On Windows and Python 3.7,
pip install leveldb-py

gives:
ERROR: Could not find a version that satisfies the requirement leveldb-py (from versions: none)
ERROR: No matching distribution found for leveldb-py

Would it be possible to release a version on PyPI @jtolio ?

I'm sure someone could! That person will have to not be me though. In the meantime, this module is a single file - I suggest just importing it into your codebase directly.

In the meantime, this module is a single file - I suggest just importing it into your codebase directly.

Oh this is perfect, I love single-file libraries for this precise reason, it's easy to import!
On Windows, which .dll or .pyd or similar file has be in the same folder? Where to download it from?
Currently, I have:
  File "D:\leveldb-py\leveldb.py", line 59, in <module>
    _ldb = ctypes.CDLL(ctypes.util.find_library('leveldb'))
  File "C:\Python37\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
TypeError: LoadLibrary() argument 1 must be str, not None

Oh, I just saw https://github.com/jtolio/leveldb-py/issues/10 and noticed you're also using py3 (good job!). This library was sadly written for py2 and I don't have time to fix it.

try:
pip install lvldb


The file cannot be created in the Web UI

Issue
Development Environment:

[ ] Machine (Local, Container, Virtual):
Container
[ ] Operating System (Name/Version):
Centos7
[ ] Web Browser (Name/Version):
chrome
[ ] Vapor Version:
Vapor Toolbox: 1.0.9
[ ] Swift Version:
Swift version 3.1 (swift-3.1-RELEASE)
when Start the container according to docker-compose. Yml. ,can't create ignore file
###Error info
app_1  | Server error: dispatch(Transport.StreamError.receive("There was a problem while receiving data.", Socket failed with code 11 ("Resource temporarily unavailable") [readFailed]))

Hm... I'm not 100% sure what is needed to start a docker container for this app.  @lucasvalenteds can you help this guy out please since you submitted the docker PR support?

@MrLichangming What the browser shows when you tell what files to ignore and click the Create button? Does the error you've mention happens when you run docker-compose up -d or docker-compose logs?
There is an issue in the vapor repository that describes this behavior.

@joeblau The Docker support was added to avoid the process of installing Swift and Vapor in my system just to host the gitignore.io app and nothing else.
There are instructions to run the container in the README file, right below the instructions commands. You just have to install both Docker and Docker Compose and type docker-compose up -d inside the cloned repository folder and it's done. Do you think the instructions should be rewritten using a more detailed approach?

Docker instructions are great! Thanks for adding them.  Super helpful for debugging as well.


nb-menu item click event | No event outputted when clicking on parent (Group)

Issue type
I'm submitting a ...  (check one with "x")

[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository

Issue description
Current behavior:
Currently no output events are occurring when subscribed to onItemClick() or onItemSelect() when clicking on a parent level node of the menu.
Expected behavior:
When clicking on a collapsed menu item node, it will output the event also to be read by onItemClick() and onItemSelect().
Steps to reproduce:
Create menu item that has children.  When clicking on 'Parent' no event is outputted.
{
   title: 'Parent',
   expanded: false,
   icon: 'home-outline',
   children: [
     {
       title: 'Child 1',
       link: '/pages/child1'
     },
     {
       title: 'Child 2',
       link: '/pages/child2'
     }
   ]
},

Other information:
npm, node, OS, Browser

After further research I found the 'NbSidebarService' is what I need.
this.sideBarService.onExpand().subscribe().


Add my first file

I have created a new branch, created a file

successfully merged first branch back to main


Fix HWPE MAC output streamer for double word writes

This PR resolves issue #19 where HWPE cannot write unto double word format since it only processes 32-bit data but TCDM memory is 64-bit data.
The fix is simple: we make sure we stream 64-bit inputs and output 64-bit outputs. However, we need to take note that the HWPE only considers the lower 32-bits.
One major limitation is that the HWPE itself only outputs 32-bit data, not 64-bits. Hence whenever we write the result back, the upper 32-bits are 0 while the lower word is the result. How do we get the upper 32-bits? We apply a shift by writing unto CSR register 0x3d6's upper 16 bits. See HWPE MAC engine's control.
After this PR there is another PR which tests the simple multiplier. Separating in multiple PRs to avoid cluttering.

@rgantonio can you also edit your description of the PR? I don't think it is valid anymore

@rgantonio can you also edit your description of the PR? I don't think it is valid anymore

Done!


LMS / aiohttp error (0.42-DEV)

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version): 0-42-DEV
Python release (python3 --version):
Component/platform: LMS/aiohttp
Description of problem:
My log is spammed with:
17-04-14 21:01:24 ERROR (MainThread) [homeassistant.components.media_player.squeezebox] Failed communicating with LMS: <class 'aiohttp.client_exceptions.ServerDisconnectedError'>

I still seem to be able to control my SB using HASS
Expected:
Clean log
Problem-relevant configuration.yaml entries and steps to reproduce:

Traceback (if applicable):

Additional info:

Reboot seems to fix it, closing it for now

I´ll reopen this since it came back and spamming log a lot

Upgraded to 0.43-dev made it even worse, now all players are gone:
17-04-18 17:55:37 ERROR (MainThread) [homeassistant.components.media_player.squeezebox] Failed communicating with LMS: <class 'concurrent.futures._base.TimeoutError'>
17-04-18 17:55:37 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform squeezebox
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 150, in _async_setup_platform
    entity_platform.async_schedule_add_entities, discovery_info
  File "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 87, in async_setup_platform
    players = yield from lms.create_players()
  File "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 110, in create_players
    for players in data['players_loop']:
TypeError: 'bool' object is not subscriptable
17-04-18 17:56:48 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-18 17:56:51 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-18 17:56:55 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-18 17:57:01 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

Is the squeezebox server definitely up before home assistant is?

I have the same problem. For every log entry in HA logs there is a matching status query sequence in the LMS server.log:
Slim::Web::JSONRPC::handleURI (109) POST data: [{"id": "1", "params": ["XX:XX:XX:XX:XX:XX", ["status", "-", "1", "tags:adKl"]], "method": "slim.request"}]
Slim::Web::JSONRPC::requestMethod (443) XX:XX:XX:XX:XX:XX: request not dispatchable!

Where XX:XX:XX:XX:XX:XX is the MAC address (player id) of a player currently disconnected from the network.
I think this situation should be handled by HA, because it is common to switch of players completely (Radio, Boom) for a while by disconnecting mains power.

I think it would be better if such a player gets a new status (disconnected instead of off) than if it disappears from HA. If someone wants to forget a disconnected device, he/she can restart HA.

The corresponding player should return false in its available property if disconnected (currently not implemented. also already suggested here: https://github.com/home-assistant/home-assistant/pull/7617#issuecomment-302247305)


Network costs seem to have disappeared from the costs chart in the dashboard

As witnessed during presentation with ECN today

For scaled scenario's it seems that the network cost calculation is missing from the chart indeed although some extra (network?) costs are taken into account in the dashboard item itself:

@antw could it be that the use_network_calculations attribute is set to false for scaled scenario's?

could it be that the use_network_calculations attribute is set to false for scaled scenario's?

Yes. That was done in order to prevent the "Infrastructure" section from appearing in scaled scenarios (edd5400).

Yes. That was done in order to prevent the "Infrastructure" section from appearing in scaled scenarios (edd5400).

Makes sense. What is weird though is that the costs for infra are excluded from the chart but not from the dashboard item. When I check the value of the use_network_calculations attribute in the sand-box for a scaled scenario, I get true which is surprising to me:

Co-assigning @antw

When I check the value of the use_network_calculations attribute in the sand-box for a scaled scenario, I get true which is surprising to me:

The attribute is disabled in ETModel (the front-end) only.
The intention of edd5400 was to hide the infrastructure sidebar item and "Required additional infrastructure investments" chart – not to turn off use_network_calculations for the scenario in ETEngine. This was the simplest way of achieving that since ETModel permits only one area-dependency, and the sidebar item and chart were already set to use_network_calculations.
I expect we could also set use_network_calculations to false in ETEngine, if that is desirable?

I expect we could also set use_network_calculations to false in ETEngine, if that is desirable?

I think it would make sense because the network calculation is not built to work for small regions and the Stakeholder Analysis module typically will override the calculation with more accurate local data.


Data sources

Tar Valon Library: Mediawiki https://library.tarvalon.net/index.php?title=Tar_Valon_Library_Index_-_The_Wheel_of_Time

possible ideas on consumption: https://www.mediawiki.org/wiki/API:Client_code

Seems like there is some interest in this type of data:

https://www.reddit.com/r/WoT/comments/e50b4k/no_spoilers_the_wheel_of_time_api/
https://github.com/nathaniel-speiser/WOT-NLP

Potential other solution is to use an offliner tool https://github.com/openzim/mwoffliner

https://github.com/[hammondkd/hammondkd.github.io](https://github.com/hammondkd/hammondkd.github.io)

https://github.com/chordstricken/wotcc


fix(mapContainer): Checks to make sure layer exists before attempting…

… to remove a feature
Fixes an issue where cls would fail intermittently due to the order of events

This was found while testing with Cypress on calling cls(), but probably also occurs when users perform a settings reset.  If this needs an issue to be created and linked, let me know.


wb.awaitCompletion() and wb.awaitTermination() getting called after stopping wb instance

Currently, wb.awaitCompletion() and wb.awaitTermination() are not throwing any exception when they are called after the 'wb' instance has been stopped.

I don't see any risk in calling those methods after stopping wb instance.  They should just return immediately.  I think current behavior is acceptable.  By the way, I just logged #586 - remove awaitTermination since I don't see any significant difference between awaitCompletion and awaitTermination


[All OSs] .NET 3.1 will be removed from the images on July, 3

Breaking changes
All the pre-cached .NET 3.1 versions will be removed from all operating systems.
Target date
The rollout will start on July, 3 and will take 3-4 days to propagate the image to all the environments.
The motivation for the changes
According to our Software and image guidelines tools and versions have to be removed 6 months after they are deprecated or have reached end-of-life. The .NET 3.1 has reached EOL on 13 December 2023.
Possible impact
If your project depends on a pre-installed .NET 3.1 it can be broken.
Platforms affected

[X] Azure DevOps
[X] GitHub Actions

Runner images affected

[X] Ubuntu 20.04
[X] Ubuntu 22.04
[X] macOS 11
[X] macOS 12
[ ] macOS 13
[X] Windows Server 2019
[ ] Windows Server 2022

Mitigation ways
To install any version in runtime you can use the following action\task:
https://github.com/actions/setup-dotnet for GH actions
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops task for AzDO

The .NET 3.1 has reached EOL on 13 December 2023.

Should read as:

The .NET 3.1 has reached EOL on 13 December 2022.

All the images rolled out.


Ideas for improvement - Winter 2019

Some thoughts on improving algorithm performance.

Currently there is some evidence of search stalling. My approach is usually to run more random seeds, a larger population size, larger number of parent solutions (lower search pressure), or a lower crossover probability (because 1-cx_prob will replace with randomly generated trees).

Idea from @quaquel : Bring some of the tricks from e-NSGAII to policy trees to counteract stalled search: auto-adaptive population sizing and restarts.

Current parallel implementation only uses MPI but not multiprocessing. Could be an option to switch to concurrent.futures api for executors. This will make it easier to switch between mpi4py on a cluster and multiprocessing on a single machine. (again from @quaquel )

No immediate timeline for doing these things, just keeping track.

So with respect to point 2, what API do we want? Something like the following makes the most sense I guess.

with MPIExecutor(algorithm) as executor:
    results = executor.run(nfe, logfrequency)

#or
with ProccessPoolExecutor(algorithm) as executor:
    results = executor.run(nfe, logfrequency)

Looking at concurrent.futures, we could make wrappers around the ProcessPoolExecutor, and the MPIPoolExecutor from MPI4py.
Also, what Python version do you want to support? Concurrent.futures has changed between 3.6 and 3.7. The main change is that the ProcessPoolExecutor from 3.7 onwards accepts an initialiser function. If you want to support 3.6, we could use the Pool from Multiprocessing instead while having the initializer functionality. A counter to supporting the initialiser function is that the MPIPoolExecutor currently does not have it.

I have committed a minimum working example with a ProcessPoolExecutor. See my fork. Will work on it over the coming days some more.

I have added a working MPI version as well. I have, however, a few questions

do you want to run mpi from the command line (mpiexec ...)?
the current code has side effects: running the model changes the state of the candidate solution (i.e. the tree). This is probably unavoidable, but can be a source of confusion. In particular, when running in parallel, the candidate solution is changed in the parallel process, rather than in the main process. If the modified candidate solution is not returned from parallel process to the main process, you have a problem.
Should I move main.py to a separate examples folder?
which doc standard do you want to use (I prefer the numpy doc standard)
I will add a sequential version of the code later this week.
Cleaning of the code might require a few changes to the algorithm (i.e. population and objectives should not be attributes of the algorithm but rather parameters that are used when calling e.g. iterate).

let me know what you think on these issues.

Cool! Let's see ...

I have been running from the command line as mpirun -n 32 python main.py. For HPC jobs it needs to be runnable from the command line, but I have no problem if it's just python main.py and MPI is somehow invoked in the script.

Yes the side effects are a new thing I added that I'm not sure about. I wanted to keep track of the number of occurrences for each action (so in the output, every action node will have a % of the time that it is triggered). This helps with pruning unused actions. I did make sure that it works in parallel and returns the modified object to the main process.

Sure, main.py (with the Folsom model example) probably belongs in the example folder. That would be cleaner.

I don't know what the different doc standards are. Numpy sounds fine :)

Sequential version - sounds good!

Yes, this might make more sense. One issue is that I never set up unit tests, so we'll have to make sure nothing breaks when the object structure changes.

Thank you again!! Post-AGU I should be able to put more time in to help with the modifications.

Excellent, my evaluator code works in the same way so nothing changes
Topic for a later discussion, my guess is that it will be almost unavoidable and thus should be properly documented
Ok, I will reorganize
see https://stackoverflow.com/questions/3898572/what-is-the-standard-python-docstring-format if you want to learn more. SALib also uses numpy from the looks of it.
Will do, is 5 minutes of work
We should add a seperate issue on getting travis set up.

no worries, I have some time and this is relatively easy stuff

Ok, I have done the following:

reorganised the code to an example folder. This folder now contains an MPI, Multiprocessing, and sequential example. They produce identical results
The sequential executor has been added
I made a start with documentation, but in various places your input (after AGU) would be quite welcome

One minor change in my own code is that I slightly changed the API:

    with MPIExecutor() as executor:
        snapshots = algorithm.run(1000, 10, executor)

So a couple of things are going on here. First, I want to have electors as context managers. This means that a pool of processes is nicely cleaned up after code execution. Second, I want to pass the executor to the run method of the algorithm rather than have a run method on the executor. The executor class is now essentially a small class with a map method. Moreover, I can now more cleanly use the the attributes on the algorithm directly.
One remaining question: what should the return of run on the algorithm be?
Currently you only have a return in case of log_frequency not being None, why not return the final population instead? And should these snapshots not be separate from logging? My guess is you want convergence information.

Wow, this is pretty slick. I'm impressed how concise the updates are. Thanks!! This is looking much more professional by the day.
Question about the return of algorithm.run ... yes, I didn't set this up very well, I've only run it with logging turned on. The snapshots include best_f, best_P, nfe, runtime saved at the frequency log_frequency, which helps to analyze convergence. The best option is probably what you described:
if log_frequency: print to CLI and save snapshots, return snapshots
else: do not print or save snapshots; return the final population.
(When logging is turned off, it is very dumb to not return anything, as in the current setup...)

I went a slightly different route. In my view convergence information and logging while running are two different things and should thus be handled differently.
Logging
For logging, I have replaced the print statements with the default python logging module. See the sequential example or multiprocessing example for how to use this. Python logging is very light weight so the performance hit is quite small.
I still have to run some tests under MPI and fine tune the multiprocessing example a bit. Ideally, it should be possible to see from which specific process (main or any subprocess) a log message originates. This makes debugging parallelisation code much easier. For the workbench I have this up and running so I have done it before.
Convergence
For convergence, I have for now added a simply boolean. This makes sure that convergence information is saved at each generation. It might make more sense to also have convergence frequency attribute where you don't save convergence information every generation but only after a specific amount of nfe.

ok multiprocessing logging now works cleanly. This is basically ready to be merged.
getting logging to work with MPI is left for future work. It is a can of worms that I don't won't to touch right now.

Ok great, just two things for now then - (1) the convergence frequency, and (2) the return statements. The way you outlined it here seems fine, other than the single-objective case would return one best solution instead of an archive.
Thanks! I'll keep an eye out for a PR. And happy holidays.

fixed, see documentation of run and examples for how it works

All resolved by #5 , thanks!


Change Label Name

change label name translation to Bible Translation in create projects drop down

#merged & closed


Register this extension as a application/json notebook renderer (Add tag)

As mentioned in https://github.com/dotnet/interactive/issues/1950, when trying out .net interactive notebooks I used javascript and tried to return an object, but it could not be rendered and this extension did not come up with the filter: @tag:notebookrenderer application/json

"

@mika76 did you install the extension? That Search Marketplace notebook output prompt is new.
Currently, this extension is registered to render application/json mime type.
You can see more info about it in this issue comment: https://github.com/RandomFractals/vscode-data-table/issues/118#issuecomment-1083102082

@RandomFractals yeah I did, but only once @jonsequitur told me about it on the other issue. The extension search didn't find it until I searched it by name.

I'll add notebookrender keyword in the next update. Hopefully that will work with new Search Marketplace prompt.

Actually, that notebookRenderer keyword is already in our package.json: https://github.com/RandomFractals/vscode-data-table/blob/main/package.json#L37
New release is coming soon (see #120). You'll be able to see it in v1.9.0 update.


Use provided memoize function for selectors

In addition to memoizedResultFunc.

Coverage remained the same at 100.0% when pulling f0c8af4395102cebc3390ee60a88d6fca70adccb on Mosho1:patch-1 into 92d16dee5fa768c70aec61d6c9d1e21e5005cdac on reactjs:master.

Codecov Report

Merging #297 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #297   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines          15     15
=====================================
  Hits           15     15

Impacted Files
Coverage Δ

src/index.js
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@ellbee could you take a look at this? It would be really handy to have in

Ok, this looks good to me. Will be released in version 4. Thanks!


Integrate checklist component for custom task views

Submitting for initial code review; user research pending.
Data object is passed into the orchestraChecklist directive; if the data belongs to taskAssignment.task.data, it is persisted to the db on save/submit.

lgtm!


New addition: proycon/Vocage

This is a fantastic spaced repetition TUI that works off of plain text files. Fantastic to study. It's pretty and pretty responsive. It has 130+ stars.
https://github.com/proycon/vocage

Added; thanks.


Implementing conditioned LD or SD models in lama-cleaner

If anyone is interested, the code for converting torchscript model is here.
Originally posted by @Sanster in https://github.com/Sanster/lama-cleaner/issues/15#issuecomment-1065881445

to this end, how would one convert a stable diffusion or a conditioned model into a .pt file for lama-cleaner?
load the .bin files from huggingface to make a checkpoint and save it as a .pt?

Use diffusers library to add SD support


Collaboration?

Dear @francescosalvadore ,
maybe you was thinking that due to my last silence-days (Angelica contracted chickenpox) you are free... wrong! I am here :smile:
Do you accept my collaboration?
This will add to you pros (few) and cons (a lot)...

@francescosalvadore thank you for accepting me :smile:


Fixed #  :  Automated Greeting Workflow

📋 Description

This pull request implements a new GitHub Actions workflow named "Greetings," which automatically greets users who open new issues or pull requests in this repository.
🔨 Changes Made

Implementation Details:

Created a workflow file named greetings.yml in the .github/workflows directory.
Configured the workflow to trigger on both new issues and pull requests.
Utilized the actions/first-interaction action to manage the greeting messages.

✅ Checklist
Before submitting the PR, please make sure you have completed the following:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation (if applicable).
[x] My changes generate no new warnings.
[x] I have tested it locally and it works fine.
[x] Any dependent changes have been merged and published in downstream modules.

🏷 Types of Changes
What type of changes does your code introduce? (Check all that apply)

[ ] Bug fix (non-breaking change which fixes an issue) 🐛
[x] New feature (non-breaking change which adds functionality) ✨
[ ] UI enhancement (non-breaking change which enhances UI) 🎨
[ ] Documentation update 📚

🤝 Related Issues

Fixes #46

Reminder:
Please ensure your pull request is made to the test branch, not main.
Thank you for contributing to VigneshDevHub! We look forward to reviewing your PR and getting it merged!

Thankyou for Contributing


enh(angelscript) Improve heredocs, numbers, metadata blocks

Fixed a bug where heredoc strings were not being handled properly:

Fixed some missing number formatting syntaxes, for example binary numbers:

Added missing metadata syntax as a string class: (Angelscript lets implementations treat these as strings)

Looks good, can you please add an entry to CHANGES.md also?

Done. I added it at the end of the list, hope that's okay.

@codecat Thanks for the help! Very much appreciated.


\tt font blank has incorrect width

I switched from MathJax to katex in the hope of avoiding this very bug, but sadly am having the same problem: the space character of the \tt font (KaTeX_Typewriter) is not of the correct width.
\begin{array}{l}
\text{\tt x   y}\\
\text{\tt x123y}
\text{\tt x\ \ \ y}\\
\end{array}

\tt is supposed to be a fixed width font, yet neither the first nor the last line have the y at the same spot as the one in the middle...

@pzinn Thanks for finding this bug! I dealt with this issue when implementing \verb, but didn't realize it still plagued \texttt.  You can use \verb as a workaround for now until we fix it.

thanks for your quick response. yes, there are plenty of workarounds (just like there were in mathJax...) but none of them really work for the app I'm building. IMHO the only correct solution is to fix the font so that it's truly fixed width. I hope this is the option you'll choose.

@pzinn Found the fix. PR https://github.com/KaTeX/katex-fonts/pull/41 should eventually solve this, once reviewed and brought into KaTeX.

awesome thanks :)


Links/Buttons flash on click on mobile devices in Chrome/Edge.

Current Behavior
When you are viewing skeleton.dev on mobile and you click on a button or link, you get a square flash covering the item for a brief moment before remaining click animation occurs.  This does not occur on desktop versions of these browsers.  I have found the issue on the following:

Pixel 8 - Chrome
Windows 11 - Edge - Mobile Emulation
Windows 10 - Chrome & Edge - Mobile Emulation

I am sure it is happening on others, but those are the ones I quickly found it on.
Expected Behavior
The link animation/behavior on mobile should be consistent and match the desktop.  The desktop shows the animation without the flash when clicked.
Steps To Reproduce

Visit the skeleton.dev website and view the button component while using mobile Edge, Chrome.
Click on any button and observe the square box that flashes on click.

Edit - Removed the examples as the video recorded did not record with enough detail to really see the bad behavior.

@Jabronironi you're describing the mobile focus state. Which is very much an intended feature and not a bug:
https://www.skeleton.dev/elements/core#mobile-focus
Skeleton doesn't introduce this, but merely alters the default color (the default is blue in some mobile browsers). We introduce this as part of our core styling, but you are welcome to customize as you see fit. Just note the warnings we've put in our source about removing this - which would be harmful to accessability:
https://github.com/skeletonlabs/skeleton/blob/master/packages/plugin/src/styles/base/core.css#L17

I appreciate the pointer and fast response.  Thank you!


tinycore default "top" not work with batch mode (-b)

top -bn1==>
'dumb': unknown terminal type
==>  /usr/local/bin/top
but  "busybox top -bn1" work fine
in boot2docker should link top to busybox

I just tested on 18.09.0 and cannot reproduce -- are you sure you're running this from a properly configured terminal?  via ssh?  It's definitely not a given for top to be provided by BusyBox, so it would be entirely reasonable for it to require TERM to be set appropriately.

Yes,It's cannot reproduce on 18.09
I'm tested on 18.06 and before version

Awesome, thanks for confirming!


[ BUG ] [ IOS ] getAppSignature

Describe the bug
Getting runtime error on calling .getAppSignature
_otpInteractor = OTPInteractor();
_otpInteractor.getAppSignature()

Unhandled Exception: Instance of 'UnsupportedPlatform'

@Shiba-Kar
On iOS OTP autofill is built in TextField. Code from sms stores for 3 minutes.
Rules for sms:
Sms must contain the word code or it translation to ios supported localizations.
Must be only one digit sequence in sms.
iOS Testing:
iOS can receive number from any other number.


AOS stopped working after https migration

Hi. I installed my SSL and redirected all my traffic to https and after this AOS doesn't work. Elements with animations don't appear, elements without animation appear.
any idea?
thanks

@Dzordzu same thing happened to me too, AOS working fine on my local machine but not working on my dev server and getting init error like: ReferenceError: AOS is not defined

I'm closing due to long overdue. It looks though that you were loading AOS with http link, and thus it wasn't loading on https connection. Feel free to reopen if you'll experience further issues regarding this topic.


bundle external modules for the browser

This is another big PR. It adds support for bundling external modules (called "externals") via Rollup for use in development. Externals must be bundled to make unbundled development work with imports from node_modules/.
Externals are lazily bundled upon request, typically by the browser. This keeps the dev process' startup time fast, but the design was forced by the fact that we currently have no good way to separate browser-only modules from Node-only modules. This means we can't know ahead of time what the browser needs to bundle. Modules imported from Node are not bundled. There are many ways to accomplish a clean separation of Node and browser modules, like defining entrypoints for the browser modules, but it's not a pressing need right now.
Caching to disk for bundles will be handled in one of the upcoming PRs. For now, it re-bundles everything for each new dev process.

I'm not sure why this build failed. It looks like lexer.parse is not defined, but as far as I can tell the lexer's init promise is being awaited, and CI succeeded the other two runs. I'm assuming we'll see this problem again..


errors building with Ogre 2.3

I tried building with Ogre 2.3.
Not sure what the paths need to be, I had to create these subdirs and copy files manualy to:
cgui/Dependencies/Ogre/build/RelWithDebInfo/include/OgreBuildSettings.h
cgui/Dependencies/Ogre/Samples/2.0/Common/include
cgui/Dependencies/Ogre/Samples/Media/2.0, /Hlms and /packs

The build ended with these errors:
I tried quickly copying OgreMain includes but it only made it worse, giving errors from them after.
[ 76%] Linking C static library ../../../Dependencies/build_result/lib/RelWithDebInfo/libharfbuzz-subset.a
[ 76%] Built target harfbuzz-subset
[ 77%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/unorm.cpp.o
[ 77%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uobject.cpp.o
[ 77%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uprops.cpp.o
/home/ch/_dev/og23/Ogre/cgui/Dependencies/icu/common/unistr.cpp:1940:13: warning: ‘void uprv_UnicodeStringDummy()’ defined but not used [-Wunused-function]
 static void uprv_UnicodeStringDummy(void) {
             ^~~~~~~~~~~~~~~~~~~~~~~
[ 77%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uresbund.cpp.o
[ 78%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/ures_cnv.c.o
[ 78%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uresdata.cpp.o
[ 78%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/usc_impl.c.o
[ 79%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/uscript.c.o
[ 79%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uscript_props.cpp.o
[ 79%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uset.cpp.o
[ 79%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/usetiter.cpp.o
[ 80%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uset_props.cpp.o
[ 80%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ushape.cpp.o
[ 80%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/usprep.cpp.o
[ 81%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustack.cpp.o
[ 81%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustrcase.cpp.o
[ 81%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustr_cnv.cpp.o
[ 81%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustrcase_locale.cpp.o
[ 82%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustrenum.cpp.o
[ 82%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustrfmt.c.o
[ 82%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustring.cpp.o
[ 82%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustr_titlecase_brkiter.cpp.o
[ 83%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustrtrns.cpp.o
[ 83%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/ustr_wcs.cpp.o
[ 83%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/utext.cpp.o
[ 84%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/utf_impl.c.o
[ 84%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/util.cpp.o
[ 84%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/util_props.cpp.o
[ 84%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/utrace.c.o
[ 85%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/utrie2_builder.cpp.o
[ 85%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/utrie2.cpp.o
[ 85%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/utrie.cpp.o
[ 86%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uts46.cpp.o
[ 86%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/utypes.c.o
[ 86%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uvector.cpp.o
[ 86%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uvectr32.cpp.o
[ 87%] Building CXX object Dependencies/icu/CMakeFiles/icucommon.dir/common/uvectr64.cpp.o
[ 87%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/common/wintz.c.o
[ 87%] Building C object Dependencies/icu/CMakeFiles/icucommon.dir/stubdata/stubdata.c.o
[ 87%] Linking CXX static library ../../../Dependencies/build_result/lib/RelWithDebInfo/libicucommon.a
[ 87%] Built target icucommon
Scanning dependencies of target ColibriGui
[ 87%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriEditbox.cpp.o
[ 87%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui.cpp.o
[ 87%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriButton.cpp.o
[ 87%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriAssert.cpp.o
[ 88%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriCheckbox.cpp.o
In file included from /home/ch/_dev/og23/Ogre/cgui/include/OgreCommon/BaseSystem.h:5,
                 from /home/ch/_dev/og23/Ogre/cgui/include/OgreCommon/GraphicsSystem.h:5,
                 from /home/ch/_dev/og23/Ogre/cgui/src/ColibriGui.cpp:2:
/home/ch/_dev/og23/Ogre/cgui/include/OgreCommon/Threading/MessageQueueSystem.h:5:10: fatal error: Threading/OgreLightweightMutex.h: No such file or directory
 #include "Threading/OgreLightweightMutex.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ColibriGui.dir/build.make:63: CMakeFiles/ColibriGui.dir/src/ColibriGui.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriWidget.h:6,
                 from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriRenderable.h:4,
                 from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriButton.h:4,
                 from /home/ch/_dev/og23/Ogre/cgui/src/ColibriGui/ColibriButton.cpp:2:
/home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/Layouts/ColibriLayoutCell.h:5:10: fatal error: OgreVector2.h: No such file or directory
 #include "OgreVector2.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ColibriGui.dir/build.make:89: CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriButton.cpp.o] Error 1
In file included from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriWidget.h:6,
                 from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriRenderable.h:4,
                 from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriEditbox.h:4,
                 from /home/ch/_dev/og23/Ogre/cgui/src/ColibriGui/ColibriEditbox.cpp:2:
/home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/Layouts/ColibriLayoutCell.h:5:10: fatal error: OgreVector2.h: No such file or directory
 #include "OgreVector2.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ColibriGui.dir/build.make:115: CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriEditbox.cpp.o] Error 1
In file included from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriWidget.h:6,
                 from /home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/ColibriCheckbox.h:4,
                 from /home/ch/_dev/og23/Ogre/cgui/src/ColibriGui/ColibriCheckbox.cpp:2:
/home/ch/_dev/og23/Ogre/cgui/./include/ColibriGui/Layouts/ColibriLayoutCell.h:5:10: fatal error: OgreVector2.h: No such file or directory
 #include "OgreVector2.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ColibriGui.dir/build.make:102: CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriCheckbox.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/ColibriGui.dir/all] Error 2
make: *** [Makefile:106: all] Error 2

Hi!
Colibri expects Ogre's full repo built from source at Dependencies/Ogre and the built code at Dependencies/Ogre/build/Debug (Linux) or Dependencies/Ogre/build (Windows & XCode).
The paths can be changed by altering CMake options OGRE_BINARIES and OGRE_SOURCE
In this case it seems that the files at Dependencies/Ogre/OgreMain/include are missing

Okay thanks.
I've set OGRE_BINARIES and OGRE_SOURCE
it almost worked.
[ 87%] Linking CXX static library ../../../Dependencies/build_result/lib/RelWithDebInfo/libicucommon.a
[ 87%] Built target icucommon
Scanning dependencies of target ColibriGui
[ 88%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriAssert.cpp.o
[ 88%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriCheckbox.cpp.o
[ 88%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui.cpp.o
[ 88%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriButton.cpp.o
[ 88%] Building CXX object CMakeFiles/ColibriGui.dir/src/ColibriGui/ColibriEditbox.cpp.o
In file included from /home/ch/_dev/og23/Ogre/cgui/src/ColibriGui.cpp:2:
/home/ch/_dev/og23/Ogre/cgui/include/OgreCommon/GraphicsSystem.h:17:14: fatal error: SDL.h: No such file or directory
     #include <SDL.h>
              ^~~~~~~
compilation terminated.

Any idea why isn't Ogre seeing SDL.h? I have got it from apt-get on Debian and I see it here:
/usr/include/SDL2/SDL.h
and here SDL2_DIR in cmake gui has: /usr/lib/x86_64-linux-gnu/cmake/SDL2
which has this file sdl2-config.cmake:
# sdl2 cmake project-config input for ./configure scripts

set(prefix "/usr")
set(exec_prefix "${prefix}")
set(libdir "${prefix}/lib/x86_64-linux-gnu")
set(SDL2_PREFIX "/usr")
set(SDL2_EXEC_PREFIX "/usr")
set(SDL2_INCLUDE_DIRS "${prefix}/include/SDL2")
set(SDL2_LIBRARIES " -lSDL2")
string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)

Seems okay to me.

Okay I got it building. Is some weird issue with my SDL2, nothing can find it.
I had to:

add target_link_libraries( ${PROJECT_NAME} "-lSDL2" )
create RelWithDebInfo/ dir with copy Debug
set OGRE_SOURCE and OGRE_BINARIES to my absolute paths too
Strangely, I have to do this for Ogre examples too.


Incorrect operation of the dictionary in the loop

Godot version:
3.1.1 Stable
Issue description:
The dictionary in the loop is not cleared when the type is assigned.
Steps to reproduce:
Wrong
for i in 5:
    var dict: Dictionary
    dict[i] = i
    print(dict)

Output:

{0:0}
{0:0, 1:1}
{0:0, 1:1, 2:2}
{0:0, 1:1, 2:2, 3:3}
{0:0, 1:1, 2:2, 3:3, 4:4}

Correct
for i in 5:
    var dict: Dictionary = {}
    # or just
    # var dict = {}
    dict[i] = i
    print(dict)

Output:

{0:0}
{1:1}
{2:2}
{3:3}
{4:4}

Minimal reproduction project:
Just use the code written above

Duplicate of  #24134.


Python 3 support

Currently you get a terrible error message if you try to run on Python 3 (#104).  We can easily make a better one.  But the bestest fix would be to support Python 3 as well as 2.7.  This issue is for tracking that.

If you mean this error below, I've just run into it. Unfortunately, the classifiers in setup say nothing about which version of Python one should expect blockstack to work with. :-(
$ blockstack
Traceback (most recent call last):
  File "/Users/dinu/miniconda3/envs/blockchain/bin/blockstack", line 34, in <module>
    from blockstack_client.cli import run_cli, exit_with_error
  File "/Users/dinu/miniconda3/envs/blockchain/lib/python3.5/site-packages/blockstack_client/__init__.py", line 24, in <module>
    import accounts
ImportError: No module named 'accounts'

I've opened a pull request for specifying it only works with Python 2 in the setup.py at #113.  Jude actually made the command itself give an error message when run with Python 3 now, so the traceback should be a lot more friendly in the next version already.
Though the metadata idea was not bad at all :)

Thanks @Velmont!
To add some context, adding support for Python 3 in blockstack CLI/client is probably the right way to go. Blockstack server is more complex and needs more work to be compatible with Python 3, but given that you can simply talk to it over HTTP/RPC there is less need to make it Python 3 compliant.

I'm going to pop a 1 Bitcoin bounty on this (anyone is welcome to boost this amount). I think it'd be really cool for someone to take this up as a project.

lol, that makes me stop working on it, because clearly someone else will do it now :package:
Had a few pull requests lined up.  It goes a bit deep down the rabbit hole of dependencies, but all the things I've found so far are really very simple to fix.  Even just setting use_2to3=True in setup.py is enough in many cases.  Though many of the fixes 2to3 does could just as well work in a code base supporting both Py2 and Py3.
So there's some start help if someone wants to beat me to it.  Since I'm only doing it randomly in evenings when I feel like it ;)

I think the bounty is not widely publicized yet i.e., not announced on Twitter / reddit etc. You might have a head start given you're active in the Slack!

Other than the #104 error reported, Python 3.x also puked at places where print is called like a statement rather than a function (see PEP-3105.
(blockstack)[ye@Yes-MacBook-Pro ~]$ blockstack lookup fredwilson.id
  File "/Users/ye/.envs/blockstack/bin/blockstack", line 71
    print json.dumps(result, indent=4, sort_keys=True)
             ^
SyntaxError: invalid syntax

I started work on this and had a lot of patches lined up.  Wanted to have all tests working before starting to post.  Then I quit Opera and forgot to copy the changes over when I handed in the company computer. :P  So in other words, I don't have any WIP on this anymore.  I'll probably restart at some point if noone beats me to it.
That being said, how would we primarily want to have the Python 3 support?  There's first of all levels, 1) just cli support, 2) full blockstack support.  I was working on 2, I wanted everything to run on Python 3.  Then there's how to do it, there's a) minimal changes and using py2to3 automatically in setup.py, there's b) using six to make code run in both, and c) something else.  I was doing a.  Though I in fact this b is better, but it's also much more invasive.
About diff 1 and 2, the cli drags in a lot of dependencies, so it can be a bit hard to differentiate.  Which was why I thought it safer to just go the route of full Py2 support.
Anyone has some extra ideas to any of the above?

Work on this continues in blockstack-core, where this codebase now lives.


MINOR: move the test cases which don't need brokers from TopicCommand…

This patch can reduce the elapsed time of testing TopicCommandWithAdminClientTest (5m19s -> 4m18s on my local)
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@dajac Could you take a look?

@omkreddy Thanks for your reviews! will merge it to trunk


Inconsistent loading button labels

1 - Describe the bug
Labels for loading buttons are inconsistent with what the button displays.
2 - Expected behavior of what should have happened (if applicable)
Buttons with loading animation on the left side should be labeled "loading left", and those on the right side should be labeled "loading right".
3 - Screenshots (if applicable)

4 - Additional notes
Found in assets/css/examples.css

I will try to fix this.

Hello @d3fau7t thank you for noticing this. Actually the change need to be made in assets/js/buttons-examples.js. Let me know if you would like to work on this.

Hi can I attempt to fix the bug?

Sure @jlieow go ahead


chore: Slack notification for new PRs PSD-38

Review Guidance
📓   Related JIRA
https://genesisglobal.atlassian.net/browse/PSD-38
🤔   What does this PR do?

Posts slack message when a new PR is raised

✅   Checklist

[ ] I have tested my changes.
[ ] I have added tests for my changes.
[ ] I have updated the project documentation to reflect my changes.

I'll merge it in even though it doesn't to be working atm. Config is the same as we use elsewhere (where it works), so it might be something with tokens etc. Having it merged in will trigger it automatically, so will make it easier to debug if nothing else.


Add py.typed file

When using pylance/pyright you get a missing stub file error, see:

And this makes all usages of types trigger an error:

In order to fix this we need to tell the typechecker that this library is typed, by adding the py.typed file :)
See: https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/
@samwillis let me know if I should bump the version too!

@patrick91 I spoke with Sam, and we agreed that I'd fork this project and maintain it.
Please head over to https://github.com/JuroOravec/python-inline-source-2. Or just install sourcetypes2 instead of sourcetypes. The fork already as the py.typed added.


Access denied under Basic Authentication

When the project is protected by Basic Authentication, each subsequent requests (after the first one which prompt for the Username Password) should use the credentials provided by the user (the token provided by the server to be precise).
XHR request works as expected when NO username / password are provided. The browser take care of handling the authentication token. The developer doesn't have to do anything.
With d3-fetch, every request are sent without login token, which cause "Access denied" error.
The library d3-fetch can't be used as a replacement of d3-request when Basic Authentication is in used.

d3-fetch is a tiny wrapper on the Fetch API standard. If you want help using the Fetch API, please use Stack Overflow. If you think the Fetch standard needs to be changed, please reach out to the WHATWG (see the previous link for GitHub, IRC, Twitter, etc.) or your preferred browser vendor. If you want to continue using XHR, please feel free to continue using d3-request, either as part of D3 v4 or as a plugin for D3 v5. Thank you!

Here’s a little demo of basic authentication with Fetch:
https://beta.observablehq.com/@mbostock/fetch-with-basic-auth
So, all you need to do is prompt the user for their username and password, and then initialize the Authorization header accordingly.

Thanks for the reply.
I was not aware of the new fetch method. I though I could use d3-fetch as a direct replacement for d3-request. I understand what I have done wrong now.
For those interested:
const d3request = require('d3-request');
...
d3request.text(url, doSomething);

can be replaced with
const d3fetch = require('d3-fetch');
...
d3fetch(url, {credentials: 'same-origin'}).then(doSomething);


Fix node headers cache

Cache restoration was failing on windows and macos probably due to the use of /tmp.
Made the cache directory local to workspace to avoid issues.
Cache directory is relative (./tmp_node_headers) so that cache works across container / non-container (workspace dir in containers is different).

LGTM, although it would be possible to keep /tmp since there is an environment variable with its location for cross-platform use cases.

I tried to use RUNNER_TEMP but then the issue I had was that on Linux RUNNER_TEMP is set to /home/runner/work/_temp for jobs not running in a container (eg. linux-x64) and something like /__w/_temp for jobs running in a container (eg. linuxmusl-x64). Since the paths are different the cache cannot be shared .
The other way to fix this would be to not use a container for linuxmusl-x64 job and instead use DOCKER_BUILDER: node:12.0.0-alpine, with this change I could probably use RUNNER_TEMP.
What do you prefer ?


RFC: Support for queries

Pollen needs a way to support outputting queries to its final CSS. This would open up support of responsive variables (via @media) and progressive enhancement (via @supports) in a design system straight from config. The former has obvious strong use-cases, and #62 shows a good use case of the latter.
I haven’t yet thought of an elegant config API to support it, so this is a request for comment to get some ideas and feedback.

Closed by 458389eb6bf605f9d134ef73eba9f0537511aa3a


Provide a mock vscode object for testing

I am just now creating my first extension and the testing process has been horrendous and encourages such fragile testing that it's almost not worthwhile to test.
It would be great to see a test-double of the vscode object that contains some helper API's for testing in order to have cleaner, more stable tests and to make engineers more confident in the extensions that we write.

I am just now creating my first extension and the testing process has been horrendous and encourages such fragile testing that it's almost not worthwhile to test.

Not sure what we mean by this but we cannot do a second implementation of vscode for testing, it would likely differ too much from the real environment.

That's one of the issues that I am running into with testing an extension - I need to run it within the context of multiple "environments" in order to make sure that the behavior is working as expected.  Testing the extension within the real environment is great if you are running some kind of user acceptance test.
For example, a plugin that accepts a myExtension.filepath setting needs to be able to test the default file-path and one "provided by the user".  I have managed to get around this by using fs to change the test workspace on the fly, but it has resulted in hacky and brittle tests. This makes me lack confidence in the tests and, therefore, the code supported by them as I iterate on the product.
I can potentially mock out the specific methods that are being used under the hood by my extension. Even with that, in order for me to be confident that I'm not breaking something internally, I would need to inject the vscode object into the top level of my extension and use dependency injection all the way through so that I can inject a fully isolated test-double to each unit as I run my unit and integration tests.  This is where my feature request comes in: whether you are using dependency injection or mocking dependencies, a VSCode-supported mock of the vscode object that houses the API's and extends some test-only functionality would make it so that people can test their extensions with confidence and relative ease.
Note: Maybe there's some testing pattern that is out there currently and I've missed it, but I looked through dozens of extensions to try to find healthy testing patterns and came up empty.

The existing pattern is to the extension testing framework that we offer - that's the only environment of VS Code that exists. If you wanna test parts of your code without that then you need to abstract aways from the API defines in vscode.d.ts. That's comparable to browsers and library code that doesn't have browser dependencies. The latter you can (unit) test in any JS environment, the former requires a browser

Code written for a browser does not require a browser, it requires an implementation of the browser API.  Unit and integration tests should be run in isolation, which requires a new instance of the webpage for every test or using JSDOM to allow tests to run in Node.  My feature request is to have a JSDOM (or Electron Spectron or Enzyme or ...) equivalent for VSCode so that we as engineers can have confidence in the tools we use and build every day.  These types of libraries that provide feature-rich environment equivalents specifically for testing are commonplace.
One of the reasons that I chose VS Code over other editors is because of the rich community and vast collection of extensions.  Now that I've discovered that so many extensions are untested, including ones created by Microsoft itself, I feel like I need to provide feedback about ways that I see to improve the testing experience in order to contribute to that rich community.


Add contracts to System.Windows.Forms, System.Windows.Data classes

Just a bunch of contracts that I noticed were missing.
First pull request; LMK if I did anything wrong.

My pull request was denied due to many lines like
EXEC : error : Method System.Windows.Forms.DataGridViewRowCollection.AddInternal(System.Boolean, System.Object[]) exists only in contract reference assembly [C:\projects\codecontracts\Microsoft.Research\Contracts\System.Windows
.Forms\System.Windows.Forms10.csproj]
But in the system library, this method does exist:
internal int AddInternal(bool newRow, object[] values)
{
...
}
Can you explain what I am doing wrong/how to fix the problem?

@Patashu The problem is that you are specifying contracts for members which are inaccessible from outside of an assembly, i.e. internals and privates. For example internal int AddInternal(bool newRow, object[] values). This method is an internal method which can be accessed only by code contained in System.Windows.Forms.dll assembly. Defining contract for such method is of no use for consumers as they have no knowledge (other than reflection) of this method.
So, why the error mentions that the method exist only in contract reference assembly? It clearly exists also in System.Windows.Forms.dll but is not accessible.
That's correct, but the reason is that the check which reported the error is performed against a contract reference assembly and a reference assemblies contained in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework. These are assemblies which contains only externally visible members of an original framework assemblies and no code. You can check it in ILDasm.
So finally, to make your change work you need to remove all internal and private members/types from your code.

Good explanation, thanks. I'll fix it tomorrow.