how to stub for WITHIN the module?

In #1785 I had a 2nd question where I though the issue would be connected but I begin to wonder there is another issue I was having trouble to grasp actually only with "strict" Type Checking Mode:
While it DOES work to have a .pyi stub file and have NO typing annotations in the .py (so things are py2/3 compatible) and then using your module: everything is nicely highlighted in the "user" module 👍🌈🤘 ...
When working INSIDE the "stubbed" module the type annotations from the stub are completely ignored?
Or am I doing something wrong?
How can I make this work? I mean you only need the annotations in ONE place right?
Again giving:

this example stub code
import typing
import P4

def connect(workspace: str) -> P4.P4: ...

class Connection:
    _p4: typing.Optional[P4.P4] = ...
    _workspace: str = ...
    def __init__(self, workspace: str = ...) -> None: ...
    def __enter__(self) -> P4.P4: ...
    def __exit__(self, *args: typing.Any) -> None: ...

and this context class code
import P4

def connect(workspace):
    p4 = P4.P4()
    p4.client = workspace
    return p4

class Connection(object):
    def __init__(self, workspace=None):
        self._workspace = workspace
        self._p4 = None

    def __enter__(self):
        self._p4 = connect(workspace=self._workspace)
        return self._p4

    def __exit__(self, *args):
        assert self._p4 is not None
        self._p4.disconnect()

I get highlights and declarations as Unknown. There are no highlights with "basic" Type Checking Mode but still the type is in fact not used (No suggestions).

It sounds like you're looking for #1238. Stub files don't propogate types back into their .py files.
In general, it's much preferred to just write the annotations in your .py file unless you have a really compelling reason not to (e.g. compiled code). Python 2 is defunct; I don't think it's worth the effort of maintaining a stub along side your code just for it, personally.
I'm going to close this as a dupe.

A type stub is stand-in for a module, typically used in cases where the module is implemented in a language other than Python or in cases where the type information is being provided by someone other than the author of the module. A ".pyi" file is not applied to a ".py" file itself. Don't think of a type stub as a ".h" file in C++; rather, think of it like a ".d.ts" file in TypeScript.
If you are the author of a Python module and want to benefit from type checking within that module's implementation, you would use inline types rather than a separate companion stub file.

Thanks @erictraut ! Yeah but as I mentioned: We need our modules to be compatible to Python 2 AND 3 at the same time. Which is pretty doable! (but of course I'd also prefer to get rid of that requirement asap)
On the other hand I find it pretty nice to not stuff the code with all that typing voodoo. It adds a LOT of noise and having it tucked away is a plus.
At the end this IS connected to #1785 as the type annotations from the stub do also not propagate into the member functions. Well I'll jump onto the #1238 issue then.
Thank you both for the in-depth explanations!!! 🙏 I can imagine its frustrating to do this over and over again.

If you need to support older versions of Python, you have the option of using type comments rather than syntactic annotations.
def foo(a, b):
    # type: (int, int) -> str
    return str(a + b)

c = [] # type: List[str]

One way to I like to think about type information is that it's like structured comments for your code that can be read not only by humans but also by tooling (linters, type checkers, IDEs, etc.). I've found that when people start to think about it from that perspective, they find that it's less objectionable to include it in the code. After all, it's hard to argue against better code comments. :)

Yeah True! We actually use this :param type name: Description. in the doc strings throughout our library. That once worked with other IDEs but it's deprecated or unused here right?
Is there a way to have a description along with this style of type comments?

Docstrings make good documentation for humans, but they're almost never consistent, precise, or accurate enough for a tool to reason about them. Support for static type annotations was added to Python to address this limitation. If you use the :param type name: Description format, you can remove the type part from the docstring and move it to the code. I find that in most cases, the type by itself is sufficient in many cases to describe the parameter, so in our code base, we often omit the parameter-specific documentation in the docstring, at least for internal functions and methods.


Create appveyor.yml

Appveyor is Continuous Delivery service for Windows.
See https://ci.appveyor.com/project/kozo2/redpen/build/1.0.2

:+1:

Thank you very much @kozo2


Upgrade to work with es 7

Thanks in advance!

Actually this breaks at runtime with
Traceback (most recent call last):
  File "/usr/bin/elastalert", line 11, in <module>
    load_entry_point('elastalert', 'console_scripts', 'elastalert')()
  File "/opt/elastalert/elastalert/elastalert.py", line 2013, in main
    client = ElastAlerter(args)
  File "/opt/elastalert/elastalert/elastalert.py", line 159, in __init__
    self.scheduler = BackgroundScheduler()
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/base.py", line 87, in __init__
    self.configure(gconfig, **options)
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/base.py", line 126, in configure
    self._configure(config)
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/background.py", line 29, in _configure
    super(BackgroundScheduler, self)._configure(config)
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/base.py", line 697, in _configure
    self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
  File "/usr/lib/python2.7/site-packages/tzlocal-2.0.0b2-py2.7.egg/tzlocal/unix.py", line 164, in get_localzone
    _cache_tz = _get_localzone()
  File "/usr/lib/python2.7/site-packages/tzlocal-2.0.0b2-py2.7.egg/tzlocal/unix.py", line 157, in _get_localzone
    raise pytz.UnknownTimeZoneError('Can not find any timezone configuration')
pytz.exceptions.UnknownTimeZoneError: 'Can not find any timezone configuration'

Actually this breaks with following error:
TypeError: search() got an unexpected keyword argument 'doc_type'

Full error:
Elastic Version:7
Mapping used for string:{'type': 'keyword'}
Index elastalert_status already exists. Skipping index creation.
/usr/local/lib/python2.7/site-packages/elastalert/config.py:31: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  rule_schema = jsonschema.Draft4Validator(yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml'))))
Traceback (most recent call last):
  File "/usr/local/bin/elastalert", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/elastalert/elastalert.py", line 1925, in main
    client.start()
  File "/usr/local/lib/python2.7/site-packages/elastalert/elastalert.py", line 1106, in start
    self.run_all_rules()
  File "/usr/local/lib/python2.7/site-packages/elastalert/elastalert.py", line 1158, in run_all_rules
    self.send_pending_alerts()
  File "/usr/local/lib/python2.7/site-packages/elastalert/elastalert.py", line 1534, in send_pending_alerts
    pending_alerts = self.find_recent_pending_alerts(self.alert_time_limit)
  File "/usr/local/lib/python2.7/site-packages/elastalert/elastalert.py", line 1526, in find_recent_pending_alerts
    size=1000)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
    return func(*args, params=params, **kwargs)
TypeError: search() got an unexpected keyword argument 'doc_type'

I don't have an ES7 install available right now so I can't test this myself. However, I noticed you changed how Elastalert is installed, which also removed the line that installed an explicit version of Elasticsearch. Have you tried having pip install a 7.x version of the elasticsearch library, before installing elastalert?
This is the line that I had to add to ensure the compatible version of elasticsearch lib was available for the current version:
   pip install elasticsearch==6.3.1 && \

Good idea to check that. I execed into the container and ran a pip list ... the elasticsearch lib is version 7.0.2 yet the elastalert lib is still 1.39.0
/opt/elastalert # pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Package               Version
--------------------- -----------
asn1crypto            0.24.0
aws-requests-auth     0.4.2
blist                 1.3.6
boto3                 1.9.170
botocore              1.12.170
certifi               2019.6.16
cffi                  1.12.3
chardet               3.0.4
configparser          3.7.4
croniter              0.3.30
cryptography          2.7
defusedxml            0.6.0
docopt                0.6.2
docutils              0.14
elastalert            0.1.39
elasticsearch         7.0.2
enum34                1.1.6
envparse              0.2.0
exotel                0.1.5
funcsigs              1.0.2
functools32           3.2.3.post2
future                0.17.1
futures               3.2.0
idna                  2.8
ipaddress             1.0.22
jira                  1.0.14
jmespath              0.9.4
jsonschema            2.6.0
mock                  3.0.5
oauthlib              3.0.1
ordereddict           1.1
pbr                   5.3.0
pip                   19.1.1
pycparser             2.19
PyJWT                 1.7.1
pyOpenSSL             19.0.0
PyStaticConfiguration 0.10.4
python-dateutil       2.6.1
python-magic          0.4.15
pytz                  2019.1
PyYAML                5.1.1
requests              2.22.0
requests-oauthlib     1.2.0
requests-toolbelt     0.9.1
s3transfer            0.2.1
setuptools            41.0.1
six                   1.12.0
stomp.py              4.1.22

Alright pushed a fix for that.
 Skipping index creation.
Traceback (most recent call last):
  File "/usr/local/bin/elastalert", line 6, in <module>
    from elastalert.elastalert import main
  File "/usr/local/lib/python2.7/site-packages/elastalert/elastalert.py", line 23, in <module>
    from alerts import DebugAlerter
  File "/usr/local/lib/python2.7/site-packages/elastalert/alerts.py", line 32, in <module>
    from thehive4py.api import TheHiveApi
  File "/usr/local/lib/python2.7/site-packages/thehive4py/api.py", line 7, in <module>
    import magic
  File "/usr/local/lib/python2.7/site-packages/magic.py", line 181, in <module>
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

Pushed a fix for that, current error now is:
3 rules loaded
Traceback (most recent call last):
  File "/usr/bin/elastalert", line 11, in <module>
    load_entry_point('elastalert', 'console_scripts', 'elastalert')()
  File "/opt/elastalert/elastalert/elastalert.py", line 2013, in main
    client = ElastAlerter(args)
  File "/opt/elastalert/elastalert/elastalert.py", line 159, in __init__
    self.scheduler = BackgroundScheduler()
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/base.py", line 87, in __init__
    self.configure(gconfig, **options)
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/base.py", line 126, in configure
    self._configure(config)
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/background.py", line 29, in _configure
    super(BackgroundScheduler, self)._configure(config)
  File "/usr/lib/python2.7/site-packages/APScheduler-3.6.0-py2.7.egg/apscheduler/schedulers/base.py", line 697, in _configure
    self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
  File "/usr/lib/python2.7/site-packages/tzlocal-2.0.0b2-py2.7.egg/tzlocal/unix.py", line 164, in get_localzone
    _cache_tz = _get_localzone()
  File "/usr/lib/python2.7/site-packages/tzlocal-2.0.0b2-py2.7.egg/tzlocal/unix.py", line 157, in _get_localzone
    raise pytz.UnknownTimeZoneError('Can not find any timezone configuration')
pytz.exceptions.UnknownTimeZoneError: 'Can not find any timezone configuration'

The culprit is the newly introcduced apscheduler python package. A quick workaround is to set env var TZ

https://github.com/agronholm/apscheduler/issues/376 created

I'm unable to merge this right now because it's not backwards compatible with ES 6.x clusters. When I attempt to run the newer Elastalert against 6.4.3 I get this error:
WARNING:elasticsearch:POST http://logit-elasticsearch-client:9200/elastalert_status/_doc [status:400 request:0.010s]
ERROR:root:Error writing alert info to Elasticsearch: RequestError(400, u'illegal_argument_exception', u'Rejecting mapping update to [elastalert_status] as the final mapping would have more than 1 type: [_doc, elastalert_status]')
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/elastalert/elastalert.py", line 1578, in writeback
    res = self.writeback_es.index(index=index, body=body)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/__init__.py", line 364, in index
    "POST", _make_path(index, doc_type, id), params=params, body=body
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/transport.py", line 353, in perform_request
    timeout=timeout,
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_requests.py", line 155, in perform_request
    self._raise_error(response.status_code, raw_data)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/base.py", line 178, in _raise_error
    status_code, error_message, additional_info```

If I get a chance I'll take a closer look.

Thanks @jertel


Include 'extractFromSemiStructured' in dynafunction testing

What type of PR is this?
Improvement

What does this PR do / why is it needed ?
This PR reinstates the testing of the 'extractFromSemiStructured' dynafunction.
The function has been implemented for H2 and Snowflake but does not have tests in the database specific test suite. (See PR #1411).
In addition, the function has been removed from the testsuite for all the databases.

Which issue(s) this PR fixes:

Fixes #
Other notes for reviewers:
Does this PR introduce a user-facing change?
No.

This PR was closed because it has been inactive for 35 days. Please re-open if this PR is still relevant.


"Calling bride.imageLoader is deprecated..." warning fix

Fixed Calling bride.imageLoader is deprecated and will not work in newer versions of RN. Please update to the moduleForClass API or turboModuleLookupDelegate API warning (iOS)

This change is approved and can be merged to fix the error in the next release
I tested it and it works correctly


Simplify tests

Coverage remained the same at 89.327% when pulling 6d13c8a483e3fa273100e0d293031352ffb52fa5 on hluk:simplify-tests into f79982b7d3e1311e1b44d3b635de630c92227574 on product-definition-center:master.

+1 (since this is not really my change)

:+1:

Looks good to me.

Rebased.


[TF Frontend] Rebasing the current developing branch on OV master

layer tests pass
ResNet e2e tests pass


increase test coverage and document deficiencies

Apparently strtoul() for a value larger than 2^32 silently returns 2^32,... is this true ?

use https://github.com/bats-core/bats-assert and switch to using assert_output rather than the $expected_output stuff that isn't as nice.


Add dusk package

As a PythonPackage. Depends on dawn4py and<EMAIL_ADDRESS>

launch jenkins dusk

launch jenkins icondusk-e2e%gcc

launch jenkins -v --test=root icondusk-e2e%gcc

Not sure if it makes sense to test for this:
srun -c 16 -t 02:00:00 spack install -j 16 -v -v --test=root icondusk-e2e%gcc
Should it pass?

launch jenkins --test=root dusk

Not sure if it makes sense to test for this:
srun -c 16 -t 02:00:00 spack install -j 16 -v -v --test=root icondusk-e2e%gcc
Should it pass?
(it failed: http://jenkins-mch.cscs.ch/job/spack_PR/339/)

Probably it fails because it's not run on gpu. To also do such tests, it would be advisable to use icondusk-e2e PR plan (and configure it to use this spack-mch branch instead of master. I will do that before merging.

launch jenkins dusk

launch jenkins icondusk-e2e%gcc

launch jenkins --test=root dusk

And this one timed out: http://jenkins-mch.cscs.ch/job/spack_PR/340/console
Doesn't seem that at the moment we are ready to run tests with spack easily ... Anyways, this https://github.com/dawn-ico/icondusk-e2e/pull/30 tests the importability also.

launch jenkins --test=root dusk

And this one timed out: http://jenkins-mch.cscs.ch/job/spack_PR/340/console
Doesn't seem that at the moment we are ready to run tests with spack easily ... Anyways, this dawn-ico/icondusk-e2e#30 tests the importability also.

yea, I think the postproc queue was pretty busy yesterday (saw some long running jobs that somehow took all nodes).
But I think it should be good then :+1:


Summaries: detecting mistakes early: blob names

As we added blob support, we introduce ".blobs" entry in root of the tree.
Older builds would assume it's data store entry and we would create data store context for it, that results in

failure to summarize if we force full summary
two entities (BlobManager and ".blobs" data store context ) competing when writing out summaries - putting entries into same namespace with same name.

It would be great to

Assert at all levels of summary that all entries are unique.
For Data store context to do some basic validation of a summary in constructor, not delay it to realize() method. Things like - there is attributes blob with reasonable info.

I wonder it we also want to blob datastores from starting with . and reserve that for internal blobs. It will make future proofing easier, as all blobs that start with . can be ignored when initializing data stores

#4485 is the best we can do. validating blobs would be async. I don't think we want an optimistic network call just for this, as those can impact perf/reliablity


Implement support for meilisearch

Depending on the use case, we can either use dumps or snapshots.

snapshots are fast but require exactly the same meilisearch version
dumps require lots of resources during import but are more forward compatible

Use cases:

snapshots: mainly disaster recovery
dumps: meilisearch upgrades

We actually rotate and create a new index on a daily basis. This means that all indexes older than a day are steady. I suggest that we implement a pure backup solution for these indexes.

Yep, and also snapshots are sufficient.

Done.


Dependencies docs are incorrect

https://docs.buildwithfern.com/advanced/depending-on-other-apis
Dependencies should go in dependencies.yml

Docs in another repo


Add test csv files for GazeBase and JuDo1000

Description of the problem
A prerequisite for working on #492 is that we have test data available that is similar to the data in each dataset.
Description of a solution
Create small example files for each dataset.
Each file should contain the same header as in the original, but the rows should be limited to 10.
Minimum acceptance criteria

[ ] gazebase_example.csv in tests/gaze/io/files
[ ] gazebase_on_faces_example.csv in tests/gaze/io/files
[ ] gazebase_vr_example.csv in tests/gaze/io/files
[ ] judo1000_example.csv in tests/gaze/io/files
[ ] add test cases to tests/gaze/io/test_csv.py

why do we want to specificly tests judo and gazebase, or will we do similar things for every dataset?

I think we should do that for every dataset.
In #492 we will implement a fixture to create GazeDataFrame instances from these files.
These can be then used in acceptance / functional tests (instead of unit testing), i.e. we will define short user stories and check outcomes on a higher level. Column and schema checking should be mostly sufficient, as the specific validity of the results must be tested in unit tests.
As long as we don't solve the problem for caching public datasets, this is the best way I can think of to automatically test our pipeline.
This way I guess as a byproduct we will identify a test case that reproduces #517 in a functional test.


[All] Clear serialization language flag

Is your feature request related to a problem? Please describe.
The current Fury implementation (Java/golang/javascript, etc.), the language used for serialization will be added to the Fury Header(Contradicts the current xlang_spec).
Fury Header looks like the following format.
|    2 bytes   |     4 bits    | 1 bit | 1 bit | 1 bit  | 1 bit |  1 byte  |          optional 4 bytes              |
+--------------+---------------+-------+-------+--------+-------+----------+-------------------------------------+
| magic number | reserved bits |  oob  | xlang | endian |  null | language | unsigned int for meta start offset |

code show as below

Describe the solution you'd like
Do we need to remove these redundant language identifiers?
Additional context

cc @chaokunyang

If the deserialization knows the encoding language, it may be able to do better encoding. For example, if sender is golang, and receiver is javascript, golang can use utf16 as the encoding instead of native utf8, then javascript deserialization will be faster.

I think we can keep this currently, and add the design choice to the spec

Yes, we can also keep it and add an explanation in xlang_spec. This will create an extra byte in the Fury Header. I'll update the spec later


Keda Metrics not showing in Prometheus

Report
We were trying to use the metrics listed here : https://keda.sh/docs/2.15/integrations/prometheus/
But none of them are available on Prometheus.
Expected Behavior
once keda is installed, prometheus should be able to pick up the metrics from keda.
A mentioned here: https://keda.sh/docs/2.15/integrations/prometheus/
Actual Behavior
When I look at the metrics being scrapped, I only see few metrics but nothing for keda_scaler_

Steps to Reproduce the Problem
Steps to Reproduce the Problem

Install keda

helm --upgrade install keda kedacore/keda \
  --version 2.15.1 \
  --namespace keda \
  --set operator.replicaCount=2 \
  --set prometheus.metricServer.enabled=true \
  --set prometheus.webhooks.enabled=true \
  --set profiling.metricsServer.enabled=true \
  --timeout 5m

Navigate to Prometheus (We are not using Prometheus Operator)
Type in Keda_, it should be able to list the metrics with keda_scaler

Prometheus Version running prometheus-v2.49.1
Logs from KEDA operator
example

KEDA Version
2.15.1
Kubernetes Version
1.28
Platform
Microsoft Azure
Scaler Details
Auto Scaler object for Pods on K8s
Anything else?
Tried multiple versions of Prometheus enabled metrics flag.
Seems like I am still unable to see the metrics.

"It seems that Prometheus hasn't been enabled for the operator, which provides major metrics such as the scaledobject's metric。Try to add prometheus.operator.enabled = true


documentation issue

Create a cluster using a clean virtual machine,report errors

please supply more info, such as the creation log

/kind document

/kind test

no details to debug, close it


Add support for disabling whole form

Hi,
I just came to problem with disabling whole form (eg. You are user who can only read data, but application has only forms, but you can view them in disabled state)
For that reason I have added:
= simple_form_for some_records, disabled: true do |f|
which in helper I am monkeypatching with:
module FormHelper
  def simple_form_for(record, options = {}, &block)
    if options[:disabled]
      super(record, options) do |f|
        content_tag(:fieldset, disabled: true) do
          block.call(f)
        end
      end
    else
      super
    end
  end
end

Which will produce:
<form>
  <fieldset disabled="disabled">
     <!-- rest of inputs and form -->
  </fieldset>
</form>

in not disabled it will produce normal form as expected.
I would like to hear your comments, and if you like this, pls write me and I will prepare PR.

Does not <%= simple_form_for some_records, html: { disabled: true } do |f| %> work for you?

I have tried it but form property has no disabled, but fieldset does:
https://stackoverflow.com/questions/3507958/how-can-i-make-an-entire-html-form-readonly-server-side-only-please  and selected answer

It will also disable all input type submit and buttons

I feel like this can be done without changing simple form adding the fieldset to the page:
<%= simple_form_for some_records do |f| %>
  <%= content_tag :fieldset, disable: true %>
  <% end %>
<% end %>

And I'd prefer to avoid making the gem more complicated that it is today.

No problem at all, I am adding guard to application with tens of forms so I will leave it in helper method.


Cherry pick from main

What this PR does / why we need it

cherry pick last 3 commits from main

Which issue(s) this PR fixes

Fixes #
Describe testing done for PR

Release note

Additional information
Special notes for your reviewer

This PR was removed by force from the history because the commits were squashed by mistake.
A replacement PR is replacing it: #130


English as main for i18n.

It would be good to see this tool in English, so it can be used devs around the world too :D

Currently, this tool is only for me (but I have a will to publish to everyone)
I have added i18n to the todo list and I will change the main lang to English when  it is implemented.

Thank you very much for your warm response. I hope I'll be able to contribute to the project in the future 😄


pull request for e2e test at 12/24/2016 12:45:10

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Implementation Guide

Hi @kspearrin, I'm really interested in using this library in my solution however I'm not sure where to start or add the var topt = new Totp(secretKey);
line, should this go in Startup.cs or somewhere else?
Is there a quick start quide or any thing you can share or direct me to please?

@cmjchrisjones var topt = new Totp(secretKey) just instantiates it for wherever you need to use it. Guide can be found here: https://github.com/kspearrin/Otp.NET/blob/master/README.md


Create Home_For_Chef.java

Our hardworking chef is bored of sleeping in his restaurants. He has decided to settle down. The first thing he must do is to find a suitable location to build a palatial home.
Think of the city as a two-dimensional grid. There are N restaurants in the city. Each of the chef's restaurant is a point denoted by (X , Y). A house can be located at a grid point (R, S) if the sum of the distances between this point and each of the restaurants is as small as possible. Find the number of possible house locations in the city to help out chef build a home.
More than one restaurant can be located at the same point. Houses and restaurants can be located at the same point. Every house must have integer co-ordinates. In other words, R and S are integers. The distance between two points (A,B) and (C,D) is |A-C| + |B-D|. Here |X| is the absolute function.
Difficulty Rating:1815 !

@Sahiljawale Merge it.
Thank You !


CASMINST-6294: Linting of and linking to SMS health check troubleshooting page

Backport of https://github.com/Cray-HPE/docs-csm/pull/3755

/backport release/1.2 release/1.0


Handle archetypes inside Substitution::subst

With inlining of generics we run into cases, where a replacement can be an archetype with a class requirement or an archetype with a superclass.

@swift-ci please smoke test and merge


Chaosd should use memStress to implement memory stress instead of stress-ng

This has been solved in #184


feat(main): add "--disable-dev-shm-usage" as a default chrome launch arg

Increase shared memory size of Chromium instance by adding --disable-dev-shm-usage. See
https://developers.google.com/web/tools/puppeteer/troubleshooting#tips for details.
fix #517

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Vivecraft and HarvestFestival

Minecraft crashes when running HarvestFestival on Vivecraft.
Mods installed are:
Harvest Festival
ViveCraft
OptiFine
Mercurial
crash-2017-08-24_12.16.34-client.txt

Does this happen without Optifine?

ViveCraft can't be run without Optifine.

The creator of Vivecraft has fixed the issue.


Error 503, "server gave HTTP response to HTTPS client", and EOF

你好。
近期我在使用deeplx时发现，在连续多次成功（200）后，deeplx会报如下错误并停止翻译：
Aug 17 21:53:01 xxx bash[8959]: 2024/08/17 21:53:01 Post "https://www2.deepl.com/jsonrpc": http: server gave HTTP response to HTTPS client
Aug 17 21:53:01 xxx bash[8959]: [GIN] 2024/08/17 - 21:53:01 | 503 |  241.511939ms | yyy | POST     "/translate"
Aug 17 21:53:11 xxx bash[8959]: 2024/08/17 21:53:11 Post "https://www2.deepl.com/jsonrpc": http: server gave HTTP response to HTTPS client
Aug 17 21:53:11 xxx bash[8959]: [GIN] 2024/08/17 - 21:53:11 | 503 |  238.776021ms | yyy | POST     "/translate"

当然，类似的错误也可以是EOF
Aug 17 22:04:19 xxx bash[8959]: 2024/08/17 22:04:19 Post "https://www2.deepl.com/jsonrpc": EOF
Aug 17 22:04:19 xxx bash[8959]: [GIN] 2024/08/17 - 22:04:19 | 503 |  456.237782ms | yyy | POST     "/translate"
Aug 17 22:04:26 xxx bash[8959]: 2024/08/17 22:04:26 Post "https://www2.deepl.com/jsonrpc": http: server gave HTTP response to HTTPS client
Aug 17 22:04:26 xxx bash[8959]: [GIN] 2024/08/17 - 22:04:26 | 503 |  1.259129398s | yyy | POST     "/translate"

这错误也不是429。请问如果要排查这个问题该怎么做？

This situation may be a problem on the server side of DeepL, there is no solution, it may be that the server is overloaded.


[GIT PULL] configure: Allow the configure script to fail with a non-zero exit code

Hi Jens,
One configure script fix for liburing:

Allow the configure script to fail with a non-zero exit code.

Please pull!
Cc: @romange
The following changes since commit 3b52ae980c41b420592e3005199041890a56d6dc:

  test/fixed-reuse: test that linked file slot reuse is correct (2022-03-30 11:33:38 -0600)

are available in the Git repository at:

  https://github.com/ammarfaizi2/liburing tags/liburing-2022-05-01

for you to fetch changes up to 30830bddbfbe9503836bdcb3ed90ec3f945d122d:

  configure: Allow the configure script to fail with a non-zero exit code (2022-04-01 23:23:02 +0700)

----------------------------------------------------------------
Pull a configure script fix from Ammar Faizi:
  - Allow the configure script to fail with a non-zero exit code.

  Link: https://github.com/axboe/liburing/pull/553
  Link: https://github.com/axboe/liburing/pull/554

----------------------------------------------------------------
Ammar Faizi (1):
      configure: Allow the configure script to fail with a non-zero exit code

 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Your branch looks like you're living in the future.

Your branch looks like you're living in the future.

Ah, yes. It's already late here, I really need to sleep, didn't realize that. Should've been liburing-2022-04-01.


Add delete service message in CLI when prune services

https://github.com/rancher/rancher/issues/10110

LGTM


Remove-Fleet does not restore CSV cache value

VMfleet sets the CSV cache to zero for testing, removing the fleet does not restore the default value.

@dl2n Did you catch this issue? Who do we need to tag?


docs: enable Algolia search

Hey there! I enabled VuePress' feature to show the search via DocSearch so there's the extra features, like searching in the content, and typo tolerance.
Thanks!

Thanks for merging, and for your effort in this project!


Runtime upgrade to 0.9.12 (v23)

Description
Basilisk's runtime needs to be upgraded from v19 -> v23 (0.9.10 -> 0.9.12)
Collators are already running v0.9.12 so no need to upgrade them.
Actual status
Currently runtime upgrade is not executing properly.
Tested current version of master upgrading to a new build with bumped version.
After using

using different WASMs produced different errors.
Uncompressed + Compact WASM:

stalling chain afterwards.
Compressed WASM:
Sudo event: OK, but the chain is stalling afterwards
Using SetCodeWithoutChecks produces same results.
Expected status
Runtime upgrade is tested successfully on local chain and a testnet before the actual upgrade.

@green-jay the only difference in the new runtime that you're upgrading is the spec version dump?

yes, I only bumped spec and cargo version. once 0.9.12 -> 0.9.12 is ok, it would be good to test 0.9.10 -> 0.9.12 because some people reported problems with direct upgrade and had to go incrementally 0.9.10->0.9.11->0.9.12

caused by the polkadot 0.9.12 relay chain, fixed in 0.9.13


quickfix guild_edit_member

This is not a bulletproof fix (just a workaround i think) because when you edit a guild_member who has administrator permissions or is admin, it will fail.
See documentation here https://discord.com/developers/docs/resources/guild#modify-guild-member.
#251

calling member.build_json() crash on ts_to_str

calling member.build_json() crash on ts_to_str

what is the error message you get?


Fix null pointer dereference in virt-handler

These functions in virt-handler don't return when errors are encountered, which leads to the potential of using null pointer objects.
For example
	client, err := cmdclient.NewClient(sockFile)
	if err != nil {
		log.Log.Object(vmi).Reason(err).Error("Failed to connect cmd client")
		response.WriteError(http.StatusInternalServerError, err)
	}

	err = client.PauseVirtualMachine(vmi)

the client here is nil, but since we don't return in the if err != nil if block, we attempt to dereference the nil pointer.
NONE

It makes a lot of sense
/approve
/lgtm

/retest


Persistent sceneid v7

I tried all other options now.
this is the way to do it.

[do not merge yet, still testing]

closing because local identifier in file is not always the one in the saved scene file. it can be 0 or completely different at times.


Remove console imports warns

Forked unjs/unimport, added star type import support
Removed TypeScript namespace usage
Changed "{EmoteSource}Api" to "T{EmoteSource}.Api"

resolved #59


Stuck: [Remote - SSH 0.94.0] Setting up SSH Host DEV: (details) Initializing VS Code

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.74
OS Version: x64

Steps to Reproduce:

Open remote explorer.
Connect to host in a new window.

I have been able to use the remote extension successfully in the past. Since the update on the extension this weekend, whenever I try to connect it keeps getting hung up on:
"Setting up SSH Host <HIDDEN_HOST> Copying VS Code Server to host with scp"
[15:59:26.075] Log Level: 2
[15:59:26.097]<EMAIL_ADDRESS>[15:59:26.102] win32 x64
[15:59:26.113] SSH Resolver called for "ssh-remote+", attempt 1
[15:59:26.114] "remote.SSH.useLocalServer": false
[15:59:26.116] "remote.SSH.showLoginTerminal": false
[15:59:26.116] "remote.SSH.remotePlatform": {"Docker":"linux","Ubuntu":"linux"}
[15:59:26.116] "remote.SSH.path": undefined
[15:59:26.116] "remote.SSH.configFile": C:\Users<HIDDEN>.ssh\config
[15:59:26.116] "remote.SSH.useFlock": true
[15:59:26.116] "remote.SSH.lockfilesInTmp": false
[15:59:26.117] "remote.SSH.localServerDownload": auto
[15:59:26.117] "remote.SSH.remoteServerListenOnSocket": false
[15:59:26.117] "remote.SSH.showLoginTerminal": false
[15:59:26.117] "remote.SSH.defaultExtensions": []
[15:59:26.117] "remote.SSH.loglevel": 2
[15:59:26.117] "remote.SSH.enableDynamicForwarding": true
[15:59:26.118] "remote.SSH.enableRemoteCommand": false
[15:59:26.118] "remote.SSH.serverPickPortsFromRange": {}
[15:59:26.118] "remote.SSH.serverInstallPath": {}
[15:59:26.123] SSH Resolver called for host:
[15:59:26.123] Setting up SSH remote ""
[15:59:26.130] Using commit id "5235c6bb189b60b01b1f49062f4ffa42384f8c91" and quality "stable" for server
[15:59:26.136] Install and start server if needed
[15:59:27.509] Checking ssh with "ssh -V"
[15:59:27.583] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[15:59:27.588] Using SSH config file "C:\Users<DEV_NAME>.ssh\config"
[15:59:27.589] Running script with connection command: ssh -T -D 61012 -F "C:\Users<DEV_NAME>.ssh\config" "" bash
[15:59:27.592] Terminal shell path: C:\windows\System32\cmd.exe
[15:59:27.857] > ]0;C:\windows\System32\cmd.exe
[15:59:27.858] Got some output, clearing connection timeout
[15:59:29.443] > start with .bashrc
[15:59:29.466] > Finished .bashrc !
[15:59:29.570] > b3bb2e36db99: running
[15:59:29.615] > Acquiring lock on /users/<DEV_NAME>/.vscode-server/bin/5235c6bb189b60b01b1f49062f4f

fa42384f8c91/vscode-remote-lock.<DEV_NAME>.5235c6bb189b60b01b1f49062f4ffa42384f8c91
[15:59:29.634] > Installing to /users/<DEV_NAME>/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42
384f8c91...
[15:59:29.649] > b3bb2e36db99%%1%%
Downloading with wget
[15:59:30.545] > wget download failed
failed: No route to host.
......
Trigger local server download
b3bb2e36db99:trigger_server_download
platform==linux==
vscodeArch==x64==
destFolder==/users/<DEV_NAME>/.vscode-server/bin/==
destFolder2==5235c6bb189b60b01b1f49062f4ffa42384f8c91==
b3bb2e36db99:trigger_server_download_end
Waiting for client to transfer server archive...
Waiting for /users/<DEV_NAME>/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa4238
4f8c91/vscode-scp-done.flag and vscode-server.tar.gz to exist

[15:59:30.554] Got request to download on client for {"platform":"linux","arch":"x64","destFolder":"/users/<DEV_NAME>/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91"}
[15:59:30.556] Downloading VS Code server locally...
[15:59:38.723] Downloaded VS Code server to c:\Users<DEV_NAME>\AppData\Local\Temp\f2825f67-beca-4062-a398-7472ef568ff0
[15:59:38.725] Renamed VS Code server to c:\Users<DEV_NAME>\AppData\Local\Temp\vscode_server_1670889578723\vscode-server.tar.gz
[15:59:38.729] Checking ssh with "ssh -V"
[15:59:38.794] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[15:59:38.797] Testing scp with "scp"
[15:59:38.866] scp exited with code: 1
[15:59:38.866] Got stderr from scp: usage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
[-J destination] [-l limit] [-o ssh_option] [-P port]
[-S program] source ... target
[15:59:38.867] Using SSH config file "C:\Users<DEV_NAME>.ssh\config"
[15:59:38.867] Copying file to remote with scp -F "C:\Users<DEV_NAME>.ssh\config" "vscode-server.tar.gz" "vscode-scp-done.flag" "":"/users/<DEV_NAME>/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91"
[15:59:38.868] Using cwd: file:///c%3A/Users/<DEV_NAME>/AppData/Local/Temp/vscode_server_1670889578723
[15:59:38.868] Terminal shell path: C:\windows\System32\cmd.exe
[15:59:39.138] > ]0;C:\windows\System32\cmd.exe
[15:59:40.735] > start with .bashrc
[15:59:42.018] "Copy server to host" terminal command done
[16:03:30.713] >

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.74.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

It was an issue with the VScode remote extension update, it was a bad update, something went wrong when it updated this weekend, I had to uninstall VScode but also delete the folder that contained the extensions. Simply removing the extensions on the VScode GUI did not work. Once I cleaned everything VScode related, I did a fresh install and I am now able to SSH into my Ubuntu VM.

Glad it's working now. If it happens again, would be great if you could keep the old extension dir so we can diff it with the new one. If that is the issue, a bad extension install is not very common.

I did save the directory containing the old extensions, let me know if you would like to see the directory and how to send it to you, Github doesn't allow me to paste the directory in a comment.

You can zip it and email to the address in my profile, if you want


add links from ticketmaster to social media icons

will have to use JS api to grab the links from ticketmaster


Upgrade phase1 (azure) to terraform 0.7.0

This shouldn't be merged unless there's a plan for fixing the other phase1 implementation, since this PR modifies the shared tf jsonnet lib.

@mikedanese Would you be willing to make the GCE changes for this? I need to update this to the just-released 0.7.1 for Azure to avoid some failure edge-cases.

Ya sure.


Add topology create/delete/show to topology manager

Add topology create/delete/show handler to topology manager.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

4 of 45 (8.89%)  changed or added relevant lines in 1 file are covered.
20 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-1.0%) to 59.838%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

controller/server/main.go
4
45
8.89%

Files with Coverage Reduction
New Missed Lines
%

controller/server/main.go
20
43.33%

Totals

Change from base Build<PHONE_NUMBER>:
-1.0%

Covered Lines:
1770

Relevant Lines:
2958

💛  - Coveralls


Refactor prepare_model_for_kbit_training

There seems to be 2 issues in prepare_model_for_kbit_training:

gradient_checkpointing_enable can only be used if loaded_in_kbit is True. This PR decouples these two parameters.
By default, the base model is frozen. This PR adds the option not to do so, with the arg freeze_base_model.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Hi Sourab,
Thanks for the review, I will close this PR for now, it seems that it is actually not useful for the PEFT library.


aob_scan

aob_scan(...) only return one address? if i need more address,what to do?

Yes aob_scan returns the first address which is found currently. This will be changed in the future.


Delete App Runs button in the project section

Is your feature request related to a problem? Please describe.
Wasted space, clicking will get you there:

Describe the solution you'd like
Deleted.
Additional context
Just cleaning up -- coming up with easy issues for first-time contributors.

I'm on it

Hello @elijahbenizzy @proftorch @skrawcz was this done, or could I take it up?

Hello @elijahbenizzy @proftorch @skrawcz was this done, or could I take it up?

@AgnesNM please - all yours. Since we haven't had an update in a while.

Hey @AgnesNM -- sorry about this -- turns out I had done this already! If you're looking for some good UI changes to get started, these might be nice:

https://github.com/DAGWorks-Inc/burr/issues/276
https://github.com/DAGWorks-Inc/burr/issues/275

My bad! Should have updated this when it's done. If neither of those seem appealing, feel free to comment, I'm sure we can find you something!

Thanks @skrawcz loooks like it's already done. @elijahbenizzy let me look at the issues you've suggested.

@AgnesNM yes apologies on my part - sorry for the confusion!

No problem @skrawcz


[BUG] Order of @Model and @DiscriminatorValue decorators can result in wrong discriminator value

Information

Version: 7.13.1
Packages: @tsed/schema, @tsed@mongoose

Order of @Model and @DiscriminatorValue decorators can result in wrong (default) discriminator value.
Example
import {DiscriminatorKey, DiscriminatorValue, Property, Required} from "@tsed/schema";

@Model()
export class Event {
  @DiscriminatorKey()
  type: string;

  @Property()
  value: string;
}

@Model()
@DiscriminatorValue("page_view")
export class PageView extends Event {
  @Required()
  url: string;
}

Because of this line here:
https://github.com/tsedio/tsed/blob/production/packages/orm/mongoose/src/decorators/model.ts#L51
the custom discriminator value gets overwritten by the class name, based on the order of the decorators.
This works:
@DiscriminatorValue("page_view")
@Model()
export class PageView extends Event {
// ...

Also still works (but deprecated):
@Model({ discriminatorValue: "page_view" })
export class PageView extends Event {
// ...

Acceptance criteria

[ ] Discriminator value should not depend on the order of the @Model and @DiscriminatorValue decorators.

Haaa okey :D
I don't know why exactly I need to declare discriminator value for all declared model.
Replacing this line:
DiscriminatorValue(options.discriminatorValue || nameOf(target))(target);

by:
options.discriminatorValue && DiscriminatorValue(options.discriminatorValue)(target);

should works as expected!
See you

Ok this line is to init the discriminator value from decorator ...

:tada: This issue has been resolved in version 7.13.4 :tada:
The release is available on:

v7.13.4
GitHub release

Your semantic-release bot :package::rocket:


Clock %S gives microseconds

When using this config:
    "clock": {
        "format": "{:%H:%M:%S}",
        "tooltip": false,
        "interval": 1
    },

I'm getting a time like 14:26:53.00000235431 I thought this might be an issue with the date command but date +"%H:%M:%S" gives the seconds without the decimal places. Is there something else I need to do to format it without the decimals?

sorry I realise this has already been fixed!


6102 job dcs

@DouweM @pandemicsyn here's my second pass at this.
FYI @aaronsteers @tayloramurphy
Closes #6102

Closing in favor of https://github.com/meltano/meltano/pull/6121


[Question] yarn build-storybook always generate typescript declaration file in src

yarn build-storebook will generate typescript declaration in src folder, is this expected behavior?

To reproduce:

npx tsdx create test
cd test
yarn build-storebook

Hi @xiaoyu-tamu , sorry this didn't get responded to earlier, I've gone through nearly every issue since I became a maintainer last month (c.f. #512 ), but this was one I missed over as it required investigation.
You removed the issue template (please don't do that, it's there for a reason), so I don't know what version of TSDX you were on.
I tried this on the latest TSDX v0.13+ and was unable to reproduce this.
v0.13 significantly upgraded the Storybook template (c.f. #435 ) and uses the new configuration available in Storybook 5.3+, which is quite different from the old one. I'm not sure if this problem exists in v0.12.3 or below, but it doesn't seem to exist in latest TSDX. I'd highly recommend upgrading to latest TSDX.

Ok, seems like this indeed occurs with v0.12.3 and no longer occurs with v0.13+, which changes the config. So this was fixed by #435

Sorry about removed the issue template.  Yeah, it works in v13.


Landing - Follow-up Tagline

Agree on a follow-up tagline for the landing page of the website. We have no variation of this as things stand, so need new text.
see #61 for where this will sit in the page design

Added with the most recent commit. Follow up tagline, currently "FlowForge Cloud" - e2c5b96:


text overlapping

oh and also idk if its intended but the camera overlaps the grey area on the left

yeah, i know that problem existed, will be fixed in next patch
same for camera overlaps
i'm currently working on rw mod rn so don't have much time for rwe+


Diffable output for "Export"

Export a .js file that is not converted to a string but raw.
Better diffable :)

will be in 2.2.2


Error: Failed to execute 'setItem' on 'Storage': Setting the value of 'te-ec8b88f-xlsx' exceeded the quota.

I'm running an Angular 4 application and when I switch in and out (several times, like more than 10) into the component that uses the library, I get the following message and blocks the whole app execution.
Error: Failed to execute 'setItem' on 'Storage': Setting the value of 'te-ec8b88f-xlsx' exceeded the quota.     at LocalStorage.setItem (tableexport.js:797)     at TableExport.xlsx (tableexport.js:345)     at tableexport.js:126
line 797: return this.store.setItem(key, value); link to code
line 345: _store.getInstance().setItem(hashKey, dataObject, true); link to code
line 126: context.setExportData(self.exporters[key].call(self, context)); link to code

@jorgeandresserrano - I fixed this is v5.0.0-rc.9 where I switched from LocalStorage to SessionStorage and drastically reduced the size of the objects in storage. I also just fixed  master so that it points to this latest version. If the problem persists, try giving the <table> elements an id property. Lastly, if neither of those fix the issue let me know and I can add a utility to clear our unused export blobs from session storage.

@clarketm hi. Having similar problem with my use case... I have table generated in my react component with dynamic ID that can change even with data change in the table.
Would it be possible to allow something like data-export-id to be used in your hash creating instead of id (if this attribute is set, use it, or fallback to id and your default fallbacks...).
I need dynamic ID on the table to bind some non-react JS code on the table. But in worst case, I can switch to using class name as my unique referrer instead of ID, but using ID seems more logical and is faster.

@soukupl – check out the latest commit a2158d2. I am preparing this for v5.0.0-5c.11.
// Attribute applied to each table element
TableExport.prototype.tableKey = 'tableexport-key'

@clarketm seems to work for me now :) I also did tweak my code to better support your plugin. :)
Anyway, my integration is now working, so big thank you :)

@soukupl – I am always open to suggestions for improvement if it aids in utility. If you don't mind me asking, what was your tweak?

@clarketm I change my code to work in a different way...

I render the table and export button, but not initialize your lib
If user clicks my export button ->
2a. I will add "working" overlay to block the UI
2b. I will initialize your code to prepare the table
2c. I will manually start CSV or XLS export via your API
2d. I will remove my "working" overlay to unblock the UI
2e. I will unload your code.

I have few hooks that can be injected so I can modify table before I initialize your code (didn't use it, but I will have to for my specific table). This way, I can control what I'm displaying and what I'm exporting in single table.
The think is, that my code is changing the table almost all the time as all data in the table are async and may even react to push notifications in one case. So your code needs to refresh it's prepared data and it was slow for big tables... I can change the table like 2 times in one second in extreme case... So this init/deinit on demand is actually faster.
exportTable__do(exportMode) {
      console.log("[ElmTable] Export to: ", exportMode);

      var exportHelper = TableExport(document.getElementById(this.state.tableHtmlId), {
         formats: [exportMode],
         exportButtons: false,
         filename: "table-export"
      });

      var exportData = exportHelper.getExportData();
      console.log(exportData);

      var exportDataKey = Object.keys(exportData)[0];
      exportData = exportData[exportDataKey][exportMode];

      exportHelper.export2file(
         exportData.data,
         exportData.mimeType,
         exportData.filename,
         exportData.fileExtension
      );

      exportHelper.reset();
      exportHelper.remove();

      setTimeout(() => {
         this.setState({ isLoading: false });
      }, 250);
   }

This is just the main part of the export code, but there are some other things going on async to this. The whole table is rendered from the object stored in react's state and the export is in fact executed when specific change to the state happens.
*) and yes, console.log is stripped in production build :D


Clean up Samples and Links to Samples

Need to provide context for UX study participants

The participants got a custom README


[TIR] Bind iter domain in analyzer in CreatePrimFunc

cc @Hzfengsy @junrushao1994

It makes best efforts. But generally arith analyzer doesn't guarantee the result is simplified

Do you think it might make sense to call the Simplify pass upon PrimFunc creation?

We've already called analyzre->Simplify for each expression, but it might still be helpful to call the Simplify pass again


Question: is it possible to get stream of model events?

I'm usig flutter_bloc and I want to listen to user's changes. How can I do that?
final repository = GetIt.instance.get<Repository<AppUser>>();

repository.watchOne(user.id) => _CastError (Null check operator used on a null value)
repository.watchOneNotifier(user.id) => _CastError (Null check operator used on a null value)

At some point I assumed clients all use Riverpod and stopped testing with other libraries like Provider, GetIt or bloc.
You could try repository.remoteAdapter.watchOneNotifier(...) but note that you will have to pass the model's key that you can obtain via DataModel.keyFor(model).


refactor: transform vue to tsx

Checklist

[x] Fix linting errors
[x] Tests have been added / updated (or snapshots)

Change information

Codecov Report

Merging #235 (35736ab) into feat/collapse-menu (d091e11) will decrease coverage by 0.37%.
The diff coverage is 42.85%.

@@                  Coverage Diff                   @@
##           feat/collapse-menu     #235      +/-   ##
======================================================
- Coverage               96.24%   95.87%   -0.38%
======================================================
  Files                     218      218
  Lines                    4771     4802      +31
  Branches                  970      975       +5
======================================================
+ Hits                     4592     4604      +12
- Misses                    177      196      +19
  Partials                    2        2

Impacted Files
Coverage Δ

...ackages/varlet-ui/src/collapse-menu-group/index.ts
100.00% <ø> (ø)

...ackages/varlet-ui/src/collapse-menu-group/props.ts
100.00% <ø> (+100.00%)
:arrow_up:

packages/varlet-ui/src/collapse-menu/props.ts
66.66% <ø> (ø)

...t-ui/src/collapse-menu-group/CollapseMenuGroup.tsx
39.39% <39.39%> (ø)

...kages/varlet-ui/src/collapse-menu/CollapseMenu.tsx
100.00% <100.00%> (ø)

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 c21eae0...35736ab. Read the comment docs.


Cannot run cli without docker

It is not possible to run the cli (without command) if docker is not running.
This should be improved.

Should it be fixed in this repo or close it and wait for cli in js?

Let's leave for to not forget but yes it should be done in JS cli

😞
➜  Downloads ./mesg-core-darwin-amd64
Cannot reach Docker
Please make sure Docker is running
If Docker is not installed on your machine you can install it here: https://store.docker.com/search?type=edition&offering=community
➜  Downloads ./mesg-core-darwin-amd64 --version
Error response from daemon: Bad response from Docker engine

it should be solved in the js implementation but yes let's keep track of this

@mesg-foundation/core todo: close or move to cli issues


Remove forking from TileClient

This removes the ability to use forking with the TileClient (removing the threaded and processes arguments) in order to support
There is no way to programmatically shut down a werkzeug server that is launched in forking mode, only a multithreaded server.
This should have almost no impact on users and frankly, this makes the API a little bit cleaner and more uniform across Mac, Linux, and Windows
related: https://github.com/pallets/werkzeug/issues/2363
Closes #75

Codecov Report

Merging #77 (c78c8ad) into main (28a242e) will increase coverage by 0.11%.
The diff coverage is 92.30%.

@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
+ Coverage   80.70%   80.81%   +0.11%
==========================================
  Files          20       20
  Lines        1104     1100       -4
==========================================
- Hits          891      889       -2
+ Misses        213      211       -2


[oidc] always get issuer/iss from the OIDC Discovery endpoint

So later when the token is verified it can be an exact match.
Before the URL could be different due to some reverse proxies or
credentials embedded in the URL.
/cc @mayorova

Thank you @mikz :) Looks good! 👍


most recent version not starting in Vista

have  deleted ctrl settings file. it hangs. shows 3x ctrlr.exe
in taskman, can't stop any. won't uninstall, hangs. have to
delete folder.

I can't support VISTA as i don't own a copy of it nor do i have the resources to test Ctrlr on it. You are on your own in this.

ok no prob; i'm happy checking things out as is at the moment. when i've completed
current project, i'll find out what the last version i can  run is, and  let you know; i could
see significant changes by the differences in the  install folder.
here's a screenshot of what i'm up to, just using very basic skin, figuring out a way to
work. - i'm getting good feedback on chat, so that is useful.
(see screenshot at foot of emails)
From: Roman Kubiak<EMAIL_ADDRESS>To: RomanKubiak/ctrlr<EMAIL_ADDRESS>Cc: subv0x<EMAIL_ADDRESS>Sent: Thursday, November 12, 2015 3:49 PM
Subject: Re: [ctrlr] most recent version not starting in Vista (#12)
I can't support VISTA as i don't own a copy of it nor do i have the resources to test Ctrlr on it.
Reply to this email directly or view it on GitHub.


Error when trying to access isActive() method

I get this error when i try to access isActive() method.
Return value of Konekt\Concord\Proxies\EnumProxy::targetClass() must be of the type string, null returned

How do you access the method? Do you use a custom model in your application? Do you use the component standalone or within the Vanilo Framework?

I used all approaches. Custom model, Vanillo model, standalone, framework, I downgraded, upgraded. Just same errors. On Aug 5, 2020 11:05 PM, Attila Fulop<EMAIL_ADDRESS>wrote:
How do you access the method? Do you use a custom model in your application? Do you use the component standalone or within the Vanilo Framework?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Can you access other methods on the model? Did you customize the statuses of the product?

Also, which version of Vanilo are you using? 1.2?

Can you access other methods on the model? Did you customize the statuses of the product?

Yes, i can access other methods; i don't think i customised statuses. Is that possible?

Also, which version of Vanilo are you using? 1.2?

Yes, version 1.2. I also downgraded but the error remains.

Yes, customizing of statuses is possible: https://vanilo.io/docs/1.2/enums#customizing-enums
Can you please post here the output of the command:
php artisan concord:enums

?

Yes, customizing of statuses is possible: https://vanilo.io/docs/1.2/enums#customizing-enums
Can you please post here the output of the command:
php artisan concord:enums

?

+------------------+-------------------------------------------+----------------------------------------+
| Shorthand        | Contract                                  | Concrete                               |
+------------------+-------------------------------------------+----------------------------------------+
| address_type     | Konekt\Address\Contracts\AddressType      | Konekt\Address\Models\AddressType      |
| cart_state       | Vanilo\Cart\Contracts\CartState           | Vanilo\Cart\Models\CartState           |
| customer_type    | Konekt\Customer\Contracts\CustomerType    | Konekt\Customer\Models\CustomerType    |
| gender           | Konekt\Address\Contracts\Gender           | Konekt\Address\Models\Gender           |
| gravatar_default | Konekt\AppShell\Contracts\GravatarDefault | Konekt\AppShell\Models\GravatarDefault |
| name_order       | Konekt\Address\Contracts\NameOrder        | Konekt\Address\Models\NameOrder        |
| province_type    | Konekt\Address\Contracts\ProvinceType     | Konekt\Address\Models\ProvinceType     |
| user_type        | Konekt\User\Contracts\UserType            | Konekt\User\Models\UserType            |
+------------------+-------------------------------------------+----------------------------------------+

Product Status is missing as I expected. Can you post the contents of config/concord.php?

Product Status is missing as I expected. Can you post the contents of config/concord.php?

 [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ]
        ],
        Vanilo\Cart\Providers\ModuleServiceProvider::class
    ]
];

The product module hasn't been added.
You have to add it:
<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ]
        ],
        Vanilo\Cart\Providers\ModuleServiceProvider::class,
        Vanilo\Product\Providers\ModuleServiceProvider::class // <- add this line
    ]
];

The product module hasn't been added.
You have to add it:
<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ]
        ],
        Vanilo\Cart\Providers\ModuleServiceProvider::class,
        Vanilo\Product\Providers\ModuleServiceProvider::class // <- add this line
    ]
];

thanks... it works now. btw: why wasn't it there? did i miss something in the docs? is this necessary when using the standalone products module?

I also get the same error when i do this: $taxon->taxonomy. So i added:
Vanilo\Category\Providers\ModuleServiceProvider::class,
Vanilo\Properties\Providers\ModuleServiceProvider::class,

Can these be automatically discovered by the package?

Add Vanilo\Category\Providers\ModuleServiceProvider::class to concord.php.
Basically, every Vanilo module must be added this way.
Concord v2.0 will be hooked with auto-discovery, currently, you have to do this. It's a one-time 5-second change ;)

Add Vanilo\Category\Providers\ModuleServiceProvider::class to concord.php.
Basically, every Vanilo module must be added this way.
Concord v2.0 will be hooked with auto-discovery, currently, you have to do this. It's a one-time 5-second change ;)

Thanks. Issues with concord resolved.


No XR Setting

How could I only use webview and clear XR setting in this project?

What do you mean, like in a non-VR setting? What are you trying to do?

What do you mean, like in a non-VR setting? What are you trying to do?


Placeholders in commands

Hi, first off, this is really neat. I love the idea and thanks for creating this!
I had an idea for a feature, which is to add a placeholder syntax. Let's say I write the following cheat:
# Format as FAT32 with 64 kB clusters
newfs_msdos -F 32 -c 128 -v NAME /dev/rdisk4s1

This command contains parts where we could utilize placeholders:
newfs_msdos -F 32 -c 128 -v [[NAME]] /dev/r[[DISK]]

My idea is that when the user selects this entry (containing placeholders for NAME and DISK), Alfred would prompt for their values before it's pasted/copied to clipboard.
This feature could also help protect against using dangerous hard-coded values (like disk path) which, in this case, could wipe the wrong drive.
PS. I had an idea about using globs as well [[/dev/rdisk*]] which could present a multiple-selection of available values but this only works locally and will quickly become way too complex 😄.

Hi mafredri :)

Hi, first off, this is really neat. I love the idea and thanks for creating this!

Thanks for using :)

My idea is that when the user selects this entry (containing placeholders for NAME and DISK), Alfred would prompt for their values before it's pasted/copied to clipboard.

could u clarify how exactly we can populate the placeholder? i mean is there any user friendly way already in ur mind? because i can think of some ways but those are too cumbersome, i'd rather copy&paste and then move cursor to change parameters.

This feature could also help protect against using dangerous hard-coded values (like disk path) which, in this case, could wipe the wrong drive.

Good point! Maybe I can try to replace sensitive parameters specified by special syntax (e.g. [[DISKPATH]]) with other prompt info (e.g. <REPLACE ME>) when pasting. I'll think about it.

PS. I had an idea about using globs as well [[/dev/rdisk*]] which could present a multiple-selection of available values but this only works locally and will quickly become way too complex smile.

Yeah ur right. Interpretating '*' is the job the of shells. The original design of this tool doesn't include handling those syntax, and the placeholder feature which you requested. Let's not make simple stuff complicated.
I did find a useful point in your request and i'll try to figure out a good way to implement it. But other than that, im not sure if i can add more unless u come up with a way better than simply moving cursor:) Thanks.

Close the issue because it's inactive.


Don’t round voucher net values in basket

Description
Before this PR the net prices of vouchers were rounded to three decimal places in the basket. Articles in contrast have an exact net price, where the precisions is just limited by PHP itself.
This might seem like a minor thing, as only prices rounded to two decimal places are displayed to the customer. However this breaks the PAYONE plugin for certain baskets which calculates the gross value itself. The calculation itself is correct but is off by one cent with some constellations because of the missing precisions of the vouchers net value and PHPs imperfect internal float handling.
Example basket:

Position
Quantity
Value

Sample Article
1
112,50 €

Voucher 5 %

-5,63 €

SUM
106,87 €

But the PAYONE plugin takes the rounded net value of the voucher -5.257 and recomputes it to -5.62499 which is then then rounded to the incorrect value of -5.62 (off by 0,01 €). The code doing this can be found here and is correct, it's just not fed with enough precision in case of vouchers.
Orders like this are rejected by the PAYONE API as the summed basket value displayed to the user is transmitted as well and cross checked against the sum of the individual positions. The error returned is 1610: Article list faulty or incomplete in this case.

Questions
Answers

BC breaks?
no

Tests pass?
yes

Related tickets?
-

How to test?
Test case is included in the PR.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/#/issues/SW-17541.
Please use this issue to track the state of your pull request.

This PR was closed because your change does not fit to our roadmap and therefore won't be implement in the near future.
We are working on a whole new cart process which will cover this issue. This also seems to be a problem with the difference of the vertical and horizontal calculation.
For more information about our contribution guidelines, see https://developers.shopware.com/contributing/contribution-guideline/.

Hi @samuelvogel. I evaluated this one again. For my case I used the above described scenario. If we would save the not rounded value, which would be 4.7268907563025 for this scenario and this value runs through the payone code, I would still get 5.62 which would not be the by the basket calculated value. (round(4.7268907563025 * 1.19, 2)). So maybe your example is incomplete or I miss out a point. But this does not seem to be the solution for the payone calculation. Can you evaluate your example again?

But you used 19 % VAT 😉
The example posted above is based on 7 % VAT (which I should have mentioned obviously), where you can see that the problem really does occur (it's taken from a real world example at https://shop.rapunzel.de BTW).
Don't ask me why I did not use the real world example in the test case itself, I think I wanted to keep it simple without changing the voucher tax config.

That is true. I used default 19% calculation. But shouldn´t this be also compatible with 19% voucher calculation then? I guess we really have to be very careful here to not close one issue and open 3 new ones, because now 19% calculation would be failing. But thank you anyways for your contribution!

Your corner case with 19 % is caused by a PHP floating point precisions issue, see the following PHP 7 output:
php > echo 4.7268907563025 * 1.19;
5.625
php > echo round(5.625, 2);
5.63
php > echo round(4.7268907563025 * 1.19, 2);
5.62

This only happens when you copy the 4.7268907563025 value to your clipboard and then again paste it into a file or the command line. Internally PHP works with higher precisions than when outputting, see here. So in the basket the issue you mentioned will not occur, which you can see here (screenshot taken from Shopware 5.2 master just with the commit from this PR and a 19 % voucher):

The PR adds more precisions for all cases and removes the random rounding to 3 decimal places which accidentally leads to a different value in your manual example.
I've just resent the PR against Shopware 5.3 (just some code style changes): #1204

As you merged most of our other basket improvements for Shopware 5.3 already it would be great to include this one as well, especially as the next good opportunity (a big release like 5.3) will probably still be some time off.

That is the reason why we are again looking at this PR. We also want to improve our code. I also could not yet find an issue in shopware´s calculated basket, I recognized that leave out the early 3 digits rounding of the voucher "seems" to not affect the final result, but we are always very carefully in evaluating basket changes.
I was not aware of the fact that c&p the float value, leads to lose of precision.
We´re still evaluating and maybe this can be merged too. But let us test all the cases first.


Add and test 7-series BRAM

Currently BRAM's have bit-stream definitions, but the arch models don't use them.  First priority is to get BRAM's working in any mode.  Simplest mode to attempt is like 18k x 16-bit.
BRAM segbits: https://github.com/SymbiFlow/prjxray-db/blob/master/artix7/segbits_bram_l.db
BRAM pb type: artix7/primitives/bram/ramb18e1.pb_type.xml

Manual bram test appears to be working.  Next step is an automated R/W test and see about adding initial data support.


Update user|developer guides

Let's collect all changes user/developer guide changes in this branch then merged it in before Friday.

Coverage remained the same at 86.308% when pulling a661559d0a962b6e5c370f6fefb364315579e58c on update-guides into ca4853197ddf0f4e6e44de2c98eab453e6a0399a on master.


Optimize storeObject move process for files on disk

When calling storeObjects for files already on disk, should we skip writing to a tmpFile and continue with only the process of calculating the required hex digests, validation and moving the file to its new permanent address?

Update: A conversation related to this issue was briefly discussed, and it was mentioned that we may want to look into symbolic links rather than actually copying files. When the time comes to move a metacat/var/data/ to a hashstore, we will revisit and further clarify.

This issue is being address via HashStore Utility/Converter


With Bottom Navigation Bar, entering url fails

Hello !
I took the github example to try out Beamer with BottomNavigationBar, and modified it a bit to adapt to null safety, but I get error "Not found" when entering an URL. The only URL that works is '/' specified in SimpleLocationBuilder

flutter --version
Flutter 2.0.5 • channel stable

main.dart
import 'package:flutter/material.dart';
import 'package:beamer/beamer.dart';

// DATA
const List<Map<String, String>> books = [
  {
    'id': '1',
    'title': 'Stranger in a Strange Land',
    'author': 'Robert A. Heinlein',
  },
  {
    'id': '2',
    'title': 'Foundation',
    'author': 'Isaac Asimov',
  },
  {
    'id': '3',
    'title': 'Fahrenheit 451',
    'author': 'Ray Bradbury',
  },
];

const List<Map<String, String>> articles = [
  {
    'id': '1',
    'title': 'Article 1',
    'author': 'Author 1',
  },
  {
    'id': '2',
    'title': 'Article 2',
    'author': 'Author 2',
  },
];

// SCREENS
class BooksScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Books'),
      ),
      body: ListView(
        children: books
            .map((book) => ListTile(
                  title: Text(book['title'] ?? "null"),
                  subtitle: Text(book['author'] ?? "null"),
                  onTap: () => context.currentBeamLocation.update(
                    (state) => state.copyWith(
                      pathBlueprintSegments: ['books', ':bookId'],
                      pathParameters: {'bookId': book['id'] ?? "null"},
                    ),
                  ),
                ))
            .toList(),
      ),
    );
  }
}

class BookDetailsScreen extends StatelessWidget {
  BookDetailsScreen({
    this.bookId = "null",
  }) : book = books.firstWhere((book) => book['id'] == bookId);

  final String bookId;
  final Map<String, String> book;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Book: ${book['title']}')),
      body: Text('Author: ${book['author']}'),
    );
  }
}

class ArticlesScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Articles')),
      body: ListView(
        children: articles
            .map((article) => ListTile(
                  title: Text(article['title'] ?? "null"),
                  subtitle: Text(article['author'] ?? "null"),
                  onTap: () => context.currentBeamLocation.update(
                    (state) => state.copyWith(
                      pathBlueprintSegments: ['articles', ':articleId'],
                      pathParameters: {'articleId': article['id'] ?? "null"},
                    ),
                  ),
                ))
            .toList(),
      ),
    );
  }
}

class ArticleDetailsScreen extends StatelessWidget {
  ArticleDetailsScreen({
    this.articleId = "null",
  }) : article = articles.firstWhere((article) => article['id'] == articleId);

  final String articleId;
  final Map<String, String> article;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Article: ${article['title']}')),
      body: Text('Author: ${article['author']}'),
    );
  }
}

// LOCATIONS
class BooksLocation extends BeamLocation {
  BooksLocation(BeamState state) : super(state);

  @override
  List<String> get pathBlueprints => ['/books/:bookId'];

  @override
  List<BeamPage> pagesBuilder(BuildContext context, BeamState state) => [
        BeamPage(
          key: ValueKey('books'),
          child: BooksScreen(),
        ),
        if (state.pathParameters.containsKey('bookId'))
          BeamPage(
            key: ValueKey('book-${state.pathParameters['bookId']}'),
            child: BookDetailsScreen(
              bookId: state.pathParameters['bookId'] ?? "null",
            ),
          ),
      ];
}

class ArticlesLocation extends BeamLocation {
  ArticlesLocation(BeamState state) : super(state);

  @override
  List<String> get pathBlueprints => ['/articles/:articleId'];

  @override
  List<BeamPage> pagesBuilder(BuildContext context, BeamState state) => [
        BeamPage(
          key: ValueKey('articles'),
          child: ArticlesScreen(),
        ),
        if (state.pathParameters.containsKey('articleId'))
          BeamPage(
            key: ValueKey('articles-${state.pathParameters['articleId']}'),
            child: ArticleDetailsScreen(
              articleId: state.pathParameters['articleId'] ?? "null",
            ),
          ),
      ];
}

// APP
final _beamLocations = [
  BooksLocation(BeamState.fromUri(Uri.parse('/books'))),
  ArticlesLocation(BeamState.fromUri(Uri.parse('/articles'))),
];

class BottomNavigationBarWidget extends StatefulWidget {
  BottomNavigationBarWidget({required this.beamerKey});

  final GlobalKey<BeamerState> beamerKey;

  @override
  _BottomNavigationBarWidgetState createState() => _BottomNavigationBarWidgetState();
}

class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
  int _currentIndex = 0;

  @override
  void initState() {
    widget.beamerKey.currentState?.routerDelegate.addListener(() => _updateCurrentIndex());
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return BottomNavigationBar(
        currentIndex: _currentIndex,
        items: [
          BottomNavigationBarItem(label: 'Books', icon: Icon(Icons.book)),
          BottomNavigationBarItem(label: 'Articles', icon: Icon(Icons.article)),
        ],
        onTap: (index) {
          widget.beamerKey.currentState?.routerDelegate.beamTo(_beamLocations[index]);
        });
  }

  void _updateCurrentIndex() {
    final index = (widget.beamerKey.currentState?.currentLocation is BooksLocation) ? 0 : 1;
    if (index != _currentIndex) {
      setState(() => _currentIndex = index);
    }
  }
}

class MyApp extends StatelessWidget {
  final _beamerKey = GlobalKey<BeamerState>();

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routeInformationParser: BeamerRouteInformationParser(),
      routerDelegate: BeamerRouterDelegate(
        locationBuilder: SimpleLocationBuilder(
          routes: {
            '/': (context) => Scaffold(
                  body: Beamer(
                    key: _beamerKey,
                    routerDelegate: BeamerRouterDelegate(
                      locationBuilder: BeamerLocationBuilder(
                        beamLocations: _beamLocations,
                      ),
                    ),
                  ),
                  bottomNavigationBar: BottomNavigationBarWidget(
                    beamerKey: _beamerKey,
                  ),
                )
          },
        ),
      ),
    );
  }
}

void main() {
  runApp(MyApp());
}

pubspec.yaml
name: beam_bottom_nav
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  beamer: ^0.12.4
  cupertino_icons: ^1.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true
  # To add assets to your application, add an assets section, like this:
  # assets:
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.
  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages
  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

When I change
SimpleLocationBuilder(
          routes: {
            '/': (context) => Scaffold(

For :
SimpleLocationBuilder(
          routes: {
            '/*': (context) => Scaffold(

Every time I enter un URL it is working, but not "/" this time :p

Solved by setting the initalRoutes to /books and with /*

Hi, I'm using this too,
everything works, but only if i stop the app and rebuild it, if i do hot reload, or hot restart, the page appears for a second, and then it shows "Not Found", tried hot restart and hot reload, once again i see the page for a second, and then it shows "Not Found" Again.

Hi, I'm using this too,
everything works, but only if i stop the app and rebuild it, if i do hot reload, or hot restart, the page appears for a second, and then it shows "Not Found", tried hot restart and hot reload, once again i see the page for a second, and then it shows "Not Found" Again.
Update: Even if i don't change anything related to routing, do hot reload/restart, i still get Not Found

This is related to this issue: https://github.com/slovnicki/beamer/issues/193
It's because the BeamerRouterDelegate is inside the build method.
But when we move it out of the build method we cannot access the GlobalKey. So either we have to change this example a bit or fix the hot reload issue.

@devj3ns thanks :smiley: , just after posting this, i found the fix https://github.com/slovnicki/beamer/issues/193#issuecomment-821095836


video: make video write report bytes written

I noticed that the write() call to the video device wasn't returning the number of bytes written on success; it always updated BC (or length pointer param in C) with zero.
This commit sandwiches the print_buffer call between push / pop to retain length. It assumes that the write will always be full-length successful, which seems to be the case.

Thank you @chiralos for your fix! This is indeed a bug :smile:


The klg data cannot be read by the ElasticFusion Program

Dear sir,
It is always have some problems with the klg data.

I choose compressed option, and this is the picture showed in ElastecFusion GUI.
If i switch the compressed option to off, the ElasticFusion Program throw an error, which means : the klg file is not start with 0x00 0x00, not a JPEG file!
I tried out my method, could you help me ?

Fixed.
because of different depth resolution.


Use Absolute URLs in Blog Posts

When mailchimp parses the RSS feed, it needs absolute URLs for the images in order for it to display in the email client properly.

This resource may also be helpful: https://litmus.com/blog/a-guide-to-animated-gifs-in-email


IS4 + Katana

IdentityServer3 .AccessTokenValidation 2.14.0 and Katana/Owin is compatible con IdentityServer4. ?
It does not work for me.
in the examples you have use IdentityServer3.AccessToken 2.15.1.

This repo is about IdentityServer4.
Check this test project
https://github.com/IdentityServer/CrossVersionIntegrationTests


Fixes hwchase17/langchain#1211

Background
This pull request pertains to fixing issue #1211
Changes

The from_texts class method has been implemented. Tests for the weaviate vector store provider have been added in langchain/test/integration_tests/vectorstores/test_weaviate.py.
A docker compose file required for the tests has been added in langchain/tests/integration_tests/vectors/docker_compose/weaviate.yml.
Test dependency has been added in pyproject.toml and poetry.lock

Test Plan
Initial tests for the Weaviate vector store integration have been added.
Change Safety

[x] I have added tests to cover my changes

@hwchase17 yes it can. However the original functionality uses the nearText query which requires a vectorizer to be specified and a module to be loaded in weaviate. If you want I can add the text2vec-openai module in the docker compose file and revert the original function.

@hwchase17 actually, I think I may have misunderstood you. Could you please clarify what you mean in your comment?

@hwchase17 the original similarity_search has been reinstated and added a note that weaviate must be installed with a vectorizer module for it to work (weaviate can be installed without support modules).
As a side note, do you think support for Embedded Waviate would be desirable?


"Select to copy" in integrated terminal

iTerm2 has a very convenient feature which copies any selection to your clipboard immediately upon mouseup. If VS Code could implement this in the integrated terminal, I think it'd be great!
I will also note I fully understand I could use iTerm2 has an external terminal to make use of this feature today.

If implemented, please make this an option. I wouldn't want to overwrite my precious clipboard just by selecting something in the terminal.

The Cygwin mintty has this feature as well and I always miss it when I open use my terminal in Xubuntu. I would immediately enable such a feature.

In the meantime you may want to turn this one on which is common on Windows:
  // When set, this will prevent the context menu from appearing when right clicking
  // within the terminal, instead it will copy when there is a selection and paste when
  // there is no selection.
  "terminal.integrated.rightClickCopyPaste": true,

No plans to implement this, there are already many ways to configure copy/paste in the terminal.

Hey @Tyriar ,
As of now, I am usingcmd+c to copy text in terminal. What is the alternative (as mentioned in the previous comment) there to do the same by just selecting text?

@vikas027 using the setting he mentioned here you can select then right-click to copy.

Thanks @gswalden , I got it now. So it is select, right-click to copy, and then right-click to paste.

@Tyiar "No plans to implement this, there are already many ways to configure copy/paste in the terminal" do you wish to elaborate? Is there a link somewhere we can go see how? Is this tribal knowledge? This may not be evident to new users.

@mikecarr I did a write up on this here http://www.growingwiththeweb.com/2017/03/mastering-vscodes-terminal.html#copy-and-paste

This ended up being added, see https://github.com/Microsoft/vscode/issues/36271. See the terminal.integrated.copyOnSelection setting


How to test vandium api gateway using lambda-tester

Hi,
I'm trying to test my vandium api gateway using the vandium-io/lambda-tester.
handler.js
import vandium from 'vandium';

// WORKING WITH LAMBDA-TESTER
export const handler = (event, context, callback) => {
  callback(null, {
    statusCode: 200,
    body: `Go Serverless v1.0! Your function executed successfully!`
  })
};

// NOT WORKING
export const handler = vandium.api()
  .GET(() => `Go Serverless v1.0! Your function executed successfully!`);

tests/handler.spec.js
'use strict';

var expect = require('chai').expect;

var LambdaTester = require('lambda-tester');

var myLambda = require('../handler.js');

describe('hello', () => {
  it('no event', () =>
    LambdaTester(myLambda.handler)
      .event({})
      .expectResult((result) => {
        console.log(result);
        expect(result.statusCode).to.be.equals(200);
        expect(result.body).to.be.equals('Go Serverless v1.0! Your function executed successfully!');
      }));
});

When I try with vandium I got the following error.
hello › no event

    AssertionError: expected 500 to equal 200

      at tests/handler.test.js:16:41
      at runVerifier (node_modules/lambda-tester/lib/runner.js:178:16)
      at waitForXRay.then (node_modules/lambda-tester/lib/runner.js:291:32)
          at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

  console.log tests/handler.test.js:15
    { statusCode: 500,
      headers: {},
      body: '{"type":"Error","message":"Expected event type of apigateway but identified as unknown"}',
      isBase64Encoded: false }

When I try without vandium I got the following:
hello
    ✓ no event (15ms)

  console.log tests/handler.test.js:15
    { statusCode: 200,
      body: 'Go Serverless v1.0! Your function executed successfully! (with a delay)' }

Thanks guys ! :)

Ok I found the solution at dev.to.


Select all is not working in forms properties panel

Describe the Bug
Executing Cmd+A inside a text input in the forms properties panel does not do anything.

Steps to Reproduce

Create a new form field
Select "field label"
Press Cmd + A
See that the content of the input is not selected

Expected Behavior
The content of the input is selected completely.
Environment

OS: macOS 11.5
Camunda Modeler Version: 4.10.0-rc.0

This is not a regression from the latest release, but already discoverable in Camunda Modeler 4.9.0.

Cannot reproduce on Windows ™

Good catch!
Cannot reproduce on Linux (Arch) either

@barmac @andreasgeier @volkergersabeck @smbea can you reproduce this on your machine? Maybe it's just a personal setup thing...

I am on Mac and have the same issue - can't select the input with Cmd + A

I can reproduce it on Mac 11.5.1 and Modeler 4.9.0

It is related to editing roles being required for CMD+XXX to work on MacOS. Apparently these are not properly integrated yet.

Closed by https://github.com/camunda/camunda-modeler/pull/2665.


Documentation issue: MX Records

In evaluating our setup having routed mail through it for a few days, we found a couple of issues in the Domains & DNS Configuration regarding MX records.
As per https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration, we have an MX record set up.
1 - the postal.yml summary at the bottom doesn't list any mx.whatever records
2 - the documentation should highlight that you must not make your MX record a CNAME
3 - the documentation suggests two records but does not suggest what the second one (i.e. mx2.whatever) should be

I've removed the section about MX records because it was confusing and for more advanced users when you run multiple servers. It is perfectly acceptable to just point domain MX records to the A records of the server.


Update sam and bcftools

The latest change of the hap.py image was to bring the hap.py codebase up to date (inc. the bundled version of RTG tools)
This has not updated the SAM/BCFtools versions which are included, currently 1.4.1 (2017)
This tweak to the build file updates the versions of both tools to 1.15.1, and adds a configurable build hts_version argument to update again in future
Tested on a local build - bcftools and samtools are both distributed with an internal HTSlib that they are compiled with, so this should not have any downstream implications
There is at least one command for Hap.py that uses a deprecated argument, but BCFtools transparently changes this to the correct form and issues a warning

I'm okay to trust it works, but personally at this point I'd switch to a bioconda distribution 🤔

@vladsavelyev  I think I agree... the way that hap.py has bundled all the tools into git, then bot updated the binaries for 5 years is surprising and disappointing...


Update JCS to v1.0.1

This fixes the issue with bare json nulls

fixed by https://github.com/buildkite/agent/pull/2435


Set Fiddler proxy

Where is the most convinient way to set Telerik fiddler proxy '<IP_ADDRESS>:8888'?
I managed to set it by editing tmhOAuth.php, is there more elegant way trough config?
//\vendor\themattharris\tmhoauth\tmhOAuth.php lin 65
'curl_ssl_verifyhost'        => 0,
'curl_ssl_verifypeer'        => false,
'use_ssl'                    => false,
'curl_proxy'                 => 'https://<IP_ADDRESS>:8888',

I did it in Twitter::reconfig(), you can close this.
Twitter::reconfig([
	//fiddler
	'curl_ssl_verifyhost'        => 0,
	'curl_ssl_verifypeer'        => false,
	'curl_proxy'                 => 'https://<IP_ADDRESS>:8888'
]);

Closing this due to inactivity. Please let me know if you are still having an issue and i'll reopen.


ViewComponent Previews  does not support concat

    render(CardComponent.new) do |component|
      component.with_title {
         "Foo"
      }
    end

Works as expected

in Rails view render 👍
in ViewComponent preview 👍

    render(CardComponent.new) do |component|
      component.with_title {
          concat div.small("New")
         concat "Foo"
      }
    end

Works as expected

in Rails view render 👍

Throws error undefined method concat' for an instance of CardComponentPreview`

in ViewComponent preview 👎

@equivalent thanks for the report. Would you be up for opening a PR with a failing test for this case?

@joelhawksley it's on my todolist 🙂 but right now my todolist is longer than Santa's naughty list, so if anyone gets the opportunity feel free to beat me to it 🏆

@equivalent i would normally offer but I feel exactly like you right now, but if I have some time I will gladly open a pr with an open invitation to you

@equivalent finally added a failing spec at #2070 now I just need to attempt to fix it 😆

one more observation
Given this code:
render(Gen::ActionPanelComponent.new) do |component|
  component.with_body do
    render(Gen::AvatarComponent.new)
  end
end

this works when rendered from Rails app view:

but does not work from ViewComponent preview:

Given:
# app/components/gen/action_panel_component.rb
class Gen::ActionPanelComponent < ApplicationComponent
  renders_one :body
end

Budget limits

  <%= body %>

# app/components/gen/avatar_component.rb
class Gen::AvatarComponent < ApplicationComponent
end

<%= image_tag "https://www.gravatar.com/avatar/c2713a4959692f16d27d2553fb06cc4b.png?r=x&s=75", class: "tw-rounded-full tw-object-cover" %>

Seeing the same issue when using helpers that use concat within my components

for now as a fix to this while a fix is still in the works I would use template's in the affected previews

Actually in my case I managed to fix my issue by setting config.view_component.capture_compatibility_patch_enabled = true, took me a while to find it so I'm adding it here in case someone else ends up in the same situation


I found 404 error at Official Site.

I want to read the Java example document about publish - subscribe model of 'RethinkDB' official Site. But I found 404 error at official site.
https://rethinkdb.com/docs/publish-subscribe/java/

https://rethinkdb.com/docs/rabbitmq/java/ gives back 404 too.

Still doesn't exist as of April 2020


BYE doesn't terminate transaction

Here is an excerpt from my app using this library. I have to register the srv.OnAck and srv.OnBye otherwise they will be rejected. My issue is that after my successful sip call when the BYE message arrives, the tx.Done() channel will not fire. I've also noticed that after a timeout, regardless if I'm in the middle of a call or not, the transaction gets terminated and then the channel fires and the code runs. How can I control this behaviour? I tried doing a tx.Terminate() in the BYE handler, but even that did not work.

func onBye(req *sip.Request, tx sip.ServerTransaction) {
  _ = tx.Respond(sip.NewResponseFromRequest(req, sip.StatusOK, "OK", nil))
}

func onACK(req *sip.Request, tx sip.ServerTransaction) {
  return
}

func onInvite(req *sip.Request, tx sip.ServerTransaction) {
  // ---- sdp offer & response ---
  sdpOffer, _ := sdp.Parse(req.Body())
  session, _ := engine.NewSession(*sdpOffer)
  defer engine.CloseSession(&session)
  res := sip.NewSDPResponseFromRequest(req, session.Response.Bytes())
  _ = tx.Respond(res)
  // -----------------------------

for {
  select {
  case m := <-tx.Cancels():
    // this never gets called
    _ = tx.Respond(sip.NewResponseFromRequest(m, 200, "OK", nil))
  case <-tx.Done():
    // this doesn't get called on BYE
    return
  case <-tx.Acks():
    // I've also never seen this called
    return
  }
}

func main() {
  ua, _ := sipgo.NewUA()
  srv, _ := sipgo.NewServerDialog(ua)

  srv.OnInvite(onInvite)
  srv.OnAck(onACK)
  srv.OnBye(onBye)
  if err := srv.ListenAndServe(context.TODO(), "udp", *extIP); err != nil {
    panic(err.Error())
  }
}

@half2me This has todo more with SIP protocol and understanding transaction state machine which in this case reason why you see INVITE not closing is timers behind and handling INVITE/responses retransimissions.  INVITE have special way of handling and different state transition.
https://datatracker.ietf.org/doc/html/rfc3261#section-17.2
https://www.rfc-editor.org/rfc/rfc6026#section-7.1
ACKs on 200 is different transaction (per SIP)
ACKs/Cancel on rest are on same transaction => those are channels you see
What you are probably looking is dialog managment which is something I am still exploring, something you can find on sipgox but I also have done this in psip tool.
We have open issue
https://github.com/emiago/sipgo/issues/28
Still all transactions should close after there timers endup.
Buidling this dialog managing is not big deal but is problem to cover all use cases and I guess you can get this easy done in your case.
There are helper func, search for something like MakeDialogID ... which helps you to map your dialog transactions.

Relating also to
https://github.com/emiago/sipgo/issues/47

@half2me Added now dialog support in lib.
Pls check readme