Support multiple probes with disjunction predicate or IN clause

Whenever we see a disjunction operator (OR) in the predicate of the where clause now, we'll do a full table scan to get the correct result. However, if the column referenced by the predicate is indexed, we can do multiple index probes and combine the results together instead of scanning the whole table.
The same with multiple values in the IN clause.
To achieve this requires a co-design of the query optimizer and the executors.

For disjunctions, awhile back Postgres at least didn't use indexes - I
think you should be able to write a test case to make sure that this fact
is still true. Something like
create table A (b int, c int);
-- insert 10 million random values into A
create index a_b_idx on A (b);
create index a_c_idx on A (c);
analyze;
explain select b from a where c = 10;
explain select b from a where b=5 or c = 10;
the first explain should use the index, the second will not.
IN is completely different - if it is IN (..... a bunch of constants) then
you can treat the values as a temporary table and add it to the join,
Similarly, with IN SELECT ... I think you rewrite the IN to be an
additional table in the join.
So,
SELECT a FROM b WHERE c IN (SELECT d in E) --> select a from b, d where c =
d;
I think this works as long as the inner SELECT doesn't reference the outer
query. Otherwise you have https://en.wikipedia.org/wiki/Correlated_subquery
On Wed, Mar 8, 2017 at 1:18 PM, Lin Ma<EMAIL_ADDRESS>wrote:

Whenever we see a disjunction operator (OR) in the predicate of the where
clause now, we'll do a full table scan to get the correct result. However,
if the column referenced by the predicate is indexed, we can do multiple
index probes and combine the results together instead of scanning the whole
table.
The same with multiple values in the IN clause.
To achieve this requires a co-design of the query optimizer and the
executors.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cmu-db/peloton/issues/568, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABS8HFd-dc1LraRlLNxg4gTcWNBvq3UTks5rjv8egaJpZM4MXMVA
.

--
Anthony Tomasic
Language Technologies Institute
Carnegie Mellon University
http://www.tiramisutransit.com
http://mcds.cs.cmu.edu http://mcds.cs.cmu.edu
http://www.cs.cmu.edu/~tomasic

Thanks for sharing, @tomasic ! I'll double check postgres and give a feedback.

So I tested Postgres with the table Anthony suggested and 1 million tuples:
mydb=$ select * from a order by b limit 5;
 b | c
---+---
 0 | 1
 1 | 2
 2 | 3
 3 | 4
 4 | 5
(5 rows)

mydb=$ select count(*) from a;
  count
----------
 10000000
(1 row)

Here are the explain queries for several different select predicates:
mydb=$ explain select b from a where c = 10;
                           QUERY PLAN
-----------------------------------------------------------------
 Index Scan using a_c_idx on a  (cost=0.43..8.45 rows=1 width=4)
   Index Cond: (c = 10)
(2 rows)

mydb=$ explain select b from a where b=5 or c = 10;
                                 QUERY PLAN
----------------------------------------------------------------------------
 Bitmap Heap Scan on a  (cost=8.88..16.87 rows=2 width=4)
   Recheck Cond: ((b = 5) OR (c = 10))
   ->  BitmapOr  (cost=8.88..8.88 rows=2 width=0)
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..4.44 rows=1 width=0)
               Index Cond: (b = 5)
         ->  Bitmap Index Scan on a_c_idx  (cost=0.00..4.44 rows=1 width=0)
               Index Cond: (c = 10)
(7 rows)

mydb=$ explain select b from a where b=5 or b = 10;
                                 QUERY PLAN
----------------------------------------------------------------------------
 Bitmap Heap Scan on a  (cost=8.88..16.87 rows=2 width=4)
   Recheck Cond: ((b = 5) OR (b = 10))
   ->  BitmapOr  (cost=8.88..8.88 rows=2 width=0)
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..4.44 rows=1 width=0)
               Index Cond: (b = 5)
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..4.44 rows=1 width=0)
               Index Cond: (b = 10)
(7 rows)

mydb=$ explain select b from a where (b > 10 and b < 20) or (b > 100 and b < 200);
                                 QUERY PLAN
-----------------------------------------------------------------------------
 Bitmap Heap Scan on a  (cost=9.59..282.64 rows=70 width=4)
   Recheck Cond: (((b > 10) AND (b < 20)) OR ((b > 100) AND (b < 200)))
   ->  BitmapOr  (cost=9.59..9.59 rows=70 width=0)
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..4.49 rows=6 width=0)
               Index Cond: ((b > 10) AND (b < 20))
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..5.06 rows=63 width=0)
               Index Cond: ((b > 100) AND (b < 200))
(7 rows)

mydb=$ explain select b from a where (b > 10 and b < 20) or (b > 100 and b < 200 or (b = 10));
                                     QUERY PLAN
------------------------------------------------------------------------------------
 Bitmap Heap Scan on a  (cost=14.05..291.11 rows=71 width=4)
   Recheck Cond: (((b > 10) AND (b < 20)) OR ((b > 100) AND (b < 200)) OR (b = 10))
   ->  BitmapOr  (cost=14.05..14.05 rows=71 width=0)
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..4.49 rows=6 width=0)
               Index Cond: ((b > 10) AND (b < 20))
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..5.06 rows=63 width=0)
               Index Cond: ((b > 100) AND (b < 200))
         ->  Bitmap Index Scan on a_b_idx  (cost=0.00..4.44 rows=1 width=0)
               Index Cond: (b = 10)
(9 rows)

mydb=$ explain select b from a where (b > 10 and b < 20) or (b > 100);
                         QUERY PLAN
------------------------------------------------------------
 Seq Scan on a  (cost=0.00..162897.16 rows=6779889 width=4)
   Filter: (((b > 10) AND (b < 20)) OR (b > 100))
(2 rows)

Basically when the estimated selectivity is high, Postgres will generate a full table scan; but when the estimated selectivity is low, several bitmap index scans will be generated for disjunction.
For IN clause, Postgres generates an index scan plan with the IN clause as the index scan condition, though I don't know how they're able to do that:
mydb=$ explain (format json) select b from a where b in (10, 20, 30, 50, 5000000);
                              QUERY PLAN
----------------------------------------------------------------------
 [                                                                   +
   {                                                                 +
     "Plan": {                                                       +
       "Node Type": "Index Only Scan",                               +
       "Scan Direction": "Forward",                                  +
       "Index Name": "a_b_idx",                                      +
       "Relation Name": "a",                                         +
       "Alias": "a",                                                 +
       "Startup Cost": 0.43,                                         +
       "Total Cost": 26.38,                                          +
       "Plan Rows": 5,                                               +
       "Plan Width": 4,                                              +
       "Index Cond": "(b = ANY ('{10,20,30,50,5000000}'::integer[]))"+
     }                                                               +
   }                                                                 +
 ]
(1 row)


pytorch-lightning is also installed when pip install lightning

Bug description
Congratulations on the release of lightning2.0.
I tried to install it immediately, but pytorch-lightning was installed as well as lightning.
This was not confirmed with lightning 1.9.3.
Is this expected behavior?
How to reproduce the bug
pip install --dry-run lightning

Error messages and logs
Would install
Jinja2-3.1.2
MarkupSafe-2.1.2
PyJWT-2.6.0
PyYAML-6.0
Pygments-2.14.0
aiohttp-3.8.4
aiosignal-1.3.1
anyio-3.6.2
arrow-1.2.3
async-timeout-4.0.2
attrs-22.2.0
beautifulsoup4-4.11.2
blessed-1.20.0
certifi-2022.12.7
charset-normalizer-3.1.0
click-8.1.3
cmake-3.26.0
croniter-1.3.8
dateutils-0.6.12
deepdiff-6.2.3
dnspython-2.3.0
email-validator-1.3.1
fastapi-0.88.0
filelock-3.10.0
frozenlist-1.3.3
fsspec-2023.3.0
h11-0.14.0
httpcore-0.16.3
httptools-0.5.0
httpx-0.23.3
idna-3.4
inquirer-3.1.3
itsdangerous-2.1.2
lightning-2.0.0  <--
lightning-cloud-0.5.31
lightning-utilities-0.8.0
lit-15.0.7
markdown-it-py-2.2.0
mdurl-0.1.2
mpmath-1.3.0
multidict-6.0.4
networkx-3.0
numpy-1.24.2
nvidia-cublas-cu11-<IP_ADDRESS>
nvidia-cuda-cupti-cu11-11.7.101
nvidia-cuda-nvrtc-cu11-11.7.99
nvidia-cuda-runtime-cu11-11.7.99
nvidia-cudnn-cu11-<IP_ADDRESS>
nvidia-cufft-cu11-<IP_ADDRESS>
nvidia-curand-cu11-<IP_ADDRESS>
nvidia-cusolver-cu11-<IP_ADDRESS>
nvidia-cusparse-cu11-<IP_ADDRESS>
nvidia-nccl-cu11-2.14.3
nvidia-nvtx-cu11-11.7.91
ordered-set-4.1.0
orjson-3.8.7
packaging-23.0
psutil-5.9.4
pydantic-1.10.6
python-dateutil-2.8.2
python-dotenv-1.0.0
python-editor-1.0.4
python-multipart-0.0.6
pytorch-lightning-2.0.0 <--
pytz-2022.7.1
readchar-4.0.4
requests-2.28.2
rfc3986-1.5.0
rich-13.3.2
six-1.16.0
sniffio-1.3.0
soupsieve-2.4
starlette-0.22.0
starsessions-1.3.0
sympy-1.11.1
torch-2.0.0
torchmetrics-0.11.4
tqdm-4.65.0
traitlets-5.9.0
triton-2.0.0
typing_extensions-4.5.0
ujson-5.7.0
urllib3-1.26.15
uvicorn-0.21.0
uvloop-0.17.0
watchfiles-0.18.1
wcwidth-0.2.6
websocket-client-1.5.1
websockets-10.4
yarl-1.8.2

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0): 2.0
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0): 2.0
#- Python version (e.g., 3.9): 3.10.8
#- OS (e.g., Linux): Ubuntu22.04
#- CUDA/cuDNN version: 11.7
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source): pip
#- Running environment of LightningApp (e.g. local, cloud):

More info
No response

Hi
I find this counter-intuitive too, but I think this was to maximize compatibility for users with existing code that use the pytorch_lightning imports. If you don't want it, you can safely pip uninstall this package.
@Borda @carmocca @justusschock Please fill in the details in case I'm oversimplifying the answer here.

Probably unrelated, but I noticed that there's no MANIFEST.in for lightning (unlike all other namespaces) when working on #17100.

Hi I find this counter-intuitive too, but I think this was to maximize compatibility for users with existing code that use the pytorch_lightning imports. If you don't want it, you can safely pip uninstall this package.
@Borda @carmocca @justusschock Please fill in the details in case I'm explaining the wrong reasons.

I agree that compatibility is a good thing. but I think that users who want to keep compatibility should use the old pytorch-lightning and fixed version. and also the docs are not fully maintained, which may cause confusion for new users who use Lightning. (Because it has been decided to completely migrate to Lightning.)

yes, as requested in #16921 we append PL to lightning as there is zero additional dependency
also, it is installed without a specified version, so it pulls what is on PyPI or you have in the local cache from past installations you can adjust the needed version
pip install lightning pytorch-lightning==1.8.6

or to be aligned you can
pip install lightning --upgrade-strategy=eager

Okay, so closing this since it is expected and planned. In the future, once pytorch-lightning is no longer supported, this won't be installed anymore together.

How much longer will releases be made under both names?


After the system is published to the server, users cannot log in.

I use the source code and everything works fine for local development. After I package the program and publish it to the server. The login user page does not jump. Nor can I see the admin panel. My server OS is Ubutun 22, database MS SQL . I've checked some information that it's a SameSite setting problem, but I still haven't solved it. My server is enabled for SSL access.

I'm browsing through Chrome, the developer way, and I see the browser error message: Cookie
Cookies marked with SameSite=None must also be marked as Secure in order to be set in a cross-site context. This behavior protects user data from being sent over an unsecured connection.

You Have to Use SSL on Your Website for User Login

i have the same issue with him, i use ssl for website.


user_topics: Use user_topics page_param instead of muted_topics in the web app.

This PR aims to replace the usage of the muted_topics page_param with the newer user_topics page_param and the  user_topic event.
I took the liberty to add a new helper function set_user_topic that will be used to initialize the muted_topics map as well as set an incoming user_topic event (from server_events_dispatch.js) accordingly in the muted_topics map ( or a user_topics map in the future).

Merged, thanks @akashaviator!


Pre-trained weights for BertSumAbs

Thank you for your hard work and for releasing the code and some pre-trained weights. I was wondering where I could find the pre-trained weights for the BertSumAbs model.
Thank you in advance.

Thank you for your hard work and for releasing the code and some pre-trained weights. I was wondering where I could find the pre-trained weights for the BertSumAbs model.
Thank you in advance.

The research paper mentions that the encoder is BERTSUMM encoder and decoder needs to be trained from scratch, so you can use BERTSUMM pre-trained weights, I guess?.


Different Encoders for depth and segmentation.

Hello,
I was wondering why did you choose to have the same encoder for depth and segmentation? Did you try with different ones as well? And how may I use different encoders for the two? Are there any restrictions concerning channels in the architecture? Or can I use entirely different encoders, like resnet and efficientnet, for example?
Thank you in andvance!
PS: I tried to make some changes, but I get this error:
Traceback (most recent call last):
  File "train.py", line 376, in <module>
    trainer.train()
  File "train.py", line 344, in train
    self._run_epoch()
  File "train.py", line 253, in _run_epoch
    outputs = model(batch)
  File "/home/diogene/anaconda3/envs/torch_110/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/diogene/Documents/Alexandra/SGDepth-master/models/sgdepth.py", line 314, in forward
    x_depth = self._multi_batch_unpack(dims, *x_depth)
  File "/home/diogene/Documents/Alexandra/SGDepth-master/models/sgdepth.py", line 251, in _multi_batch_unpack
    for x in xs
  File "/home/diogene/Documents/Alexandra/SGDepth-master/models/sgdepth.py", line 251, in <genexpr>
    for x in xs
AttributeError: 'tuple' object has no attribute 'split'

I tried removing this line self.split = layers.ScaledSplit(*grad_scales) from SGDepthCommon but then I get some dimension errors. I don't understand exactly what this split i supposed to do either.
Thank you again!

Hello,
I did choose the same encoder for depth and segmentation to be able to share the weights between both. This yielded improved results for both tasks in the experiments I conducted (cf. Tab. 3 of the paper).
Regarding the channels I think there should be no hard restrictions and you can in principle choose any backbone you like. However, if you change the (number of) scales at which features are passed to the decoder or if you change the number of channels, then the decoder might need to be adapted, too. I did in fact use the VGG-16 backbone for some experiments recently, which was not so hard to integrate beacause the number of scales at which features are produced is equal to the ResNet models.
The split attribute that you refer to takes care that the gradients are weighted on the backward pass to weigh the influence of both tasks on the shared network parts (cf. Eq. 6 of the paper).

Hello,
Thank you for your response. I managed to changed the backbone successfully, but for the depth and segmentation simultaneously. What I really want to achieve now is to have 2 different encoders, one for the depth and one for the segmentation task. This is how I modified the SGDepth class:
        self.depth_encoder = SGDepthCommon(
            18, split_pos, (grad_scale_depth, grad_scale_seg),
            weights_init == 'pretrained'
            )

        self.seg_encoder = SGDepthCommon(
            34, split_pos, (grad_scale_depth, grad_scale_seg),
            weights_init == 'pretrained'
            )

        self.depth = SGDepthDepth( self.depth_encoder, resolutions_depth)
        self.seg = SGDepthSeg( self.seg_encoder)

        # The Pose network has it's own Encoder ("Feature Extractor") and Decoder
        self.pose = SGDepthPose(
            num_layers_pose,
            weights_init == 'pretrained'
        )

The error that I montioned above seems to appear in this function:
    def _multi_batch_unpack(self, dims, *xs):
        xs = tuple(
            tuple(x.split(dims))
            for x in xs
        )

        # xs, as of now, is indexed like this:
        # xs[ENCODER_LAYER][DATASET_IDX], the lines below swap
        # this around to xs[DATASET_IDX][ENCODER_LAYER], so that
        # xs[DATASET_IDX] can be fed into the decoders.
        xs = tuple(zip(*xs))

        return xs

I just don't understant why it says the encoder doesn't have the 'split' attribute, because in the SGDepthcommon class, which I use to create the encoders ( resnet 18 for depth and 34 for segmentation) there is this line:
self.split = layers.ScaledSplit(*grad_scales)
Maybe I don't need the split attribute anymore, because there is no shared encoder. Am I right?
Thank you in advance!

So I managed to get it working by removing every reference to the split attribute and gradient scales in the SGDepthCommon class. I am curious about the results. Do you think this is the right approach?
Thank you!

I think it is totally fine to remove the split attribute, but I would then recommend to think about weighing the losses, in case there are still shared network parts. In case the networks are completely separate, I think the split attribute is not necessary at all and the losses also do not need to be weighted, so your approach seems reasonable to me.


pipeline定时任务功能与描述不符

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened

What you expected to happen
pipeline定时任务功能与描述不符
How to reproduce
pipeline定时任务功能与描述不符
Anything else
No response
Version
0.10.1
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

second is optional. when you select Custom Frequency, you can update the Schedule.

So i think it is right.

I have tried like that but not working

I have tried like that but not working

yes, I tried it and it really doesn't work.

@e2corporation I think we don't have to modify it in the current version, just make sure it's not appeared in the new config-UI in v0.12.0+ versions and it'll be good.

I'll take it and I need a picture to replace it.


Work on item tree updates

The tree is now automatically backed up and replaced when a newer version comes out.


Feature Request - MQTT Will Message

Would it be possible to enhance the MQTT connection to send a Will Message on connection?
Ideally the message payload and topic could be set in the config file.
Thanks for considering.

I've now added support for this and released a new version. The default topic and payloads for this match the ones used by the physical Ruuvi Gateway, but this can be customized in the config


Update README.md

The deletion map syntax in the YAML file was incorrect. Adding in the proper syntax.

This looks to already be in place.


REACT: Sketch Page Enhancements✨

Currently, the home page is a really simple functionality in the sketch page
we can add multiple shapes
Different pen styles
custom images can be dropped on the text area.

Hi, Can i take this sir, although i'm first timer .

@smaranjitghose @anushbhatia Can I work on this?
I would Like to add the following two features:

Change Color
Change Width


feat: ASGI support

This patch adds the much-anticipated async support to Falcon by way of a
new ASGI interface, additional testing helpers, and updated internals.
Note that only the HTTP ASGI interface is implemented. WebSocket support
is planned to follow.
Docs will be fully fleshed-out in a follow-up PR.
Changelog snippets will also be added in a follow-up PR.
In order to reconcile differences between the WSGI and ASGI interfaces,
several breaking changes were made in this patch, as follows:
BREAKING CHANGE: create_environ no longer sets a default user agent header
BREAKING CHANGE: Renamed protocol kwarg for create_environ() to
http_version and also the renamed kwarg only takes the version string
(no longer prefixed with "HTTP/")
BREAKING CHANGE: Renamed app kwarg for create_environ() to root_path.
and deprecated, may be removed in a future release.
BREAKING CHANGE: get_http_status() is deprecated, no longer accepts floats
BREAKING CHANGE: BoundedStream.writeable() changed to writable() per the
standard file-like I/O interface (the old name was a misspelling).
BREAKING CHANGE: api_helpers.prepare_middleware() no longer accepts a single
object; the value that is passed must be an iterable.
BREAKING CHANGE: Removed outer "finally" block from API and APP; add an
exception handler for the base Exception type if you need to deal with
unhandled exceptions.
BREAKING CHANGE: falcon.request.access_route will now include the value of
the remote_addr property as the last element in the route, if not already present
in one of the headers that are checked.
BREAKING CHANGE: When the 'REMOTE_ADDR' field is not present in the WSGI
environ, Falcon will assume '<IP_ADDRESS>' for the value, rather than
simply returning None for Request.remote_addr.

OK folks, this is ready for review!

Implements #1358

I started the whole thing (testing in progress), issues found so far:
Serious issues:
None so far!
Cosmetic issues/desired improvements etc:

Trying to use a WSGI resource with asgi.App results in a fatal warning with explanation what went wrong, however, the opposite case happily proceeds until a request is handled, and the results are unpredictable (calling such a "responder" produces a coroutine object, which is basically no-op in the sense of request handling, but then very strange warnings are produced)

I've rebased this on master (non-trivial!) and made a few tweaks. I still need to take care of the following:

[ ] Address the remainder of @vytas7's comments
[ ] Add an async_to_sync() helper
[ ] Require the use of awaitables for responders, middleware, and error handlers
[ ] Make sure that recent changes on the WSGI side are all ported over as necessary
[ ] Add all the docstrings (with full docs probably waiting for a followup PR)
[ ] Add towncrier fragments.

@vytas7

One general question regarding Cython, do we need to make them [Cython and ASGI] mutually exclusive?
I'm thinking if we couldn't just exclude ASGI files (basically anything involving async or await keywords) from cythonization? If async stuff is calling "normal" Python functions, those can be well be cythonized, or can't they?

I'm hoping this is the case; I've been looking into it over the past few days. Hopefully I can get it to work!

The gate is all green again. I think I've managed to get Cython working, but let me know if you run into any other Cython issues!

@vytas7

Cosmetic issues/desired improvements etc:

Trying to use a WSGI resource with asgi.App results in a fatal warning with an explanation what went wrong, however, the opposite case happily proceeds until a request is handled, and the results are unpredictable (calling such a "responder" produces a coroutine object, which is basically no-op in the sense of request handling, but then strange warnings are produced)
Could we consider streamlining implementation of custom media handlers somewhat? Right now, serialize and deserialize are defined as abstract methods, so one needs to take care of them even in case one is only interested in the async variants for an ASGI app

Both of these should be addressed in the feature branch now.

Heh, I made a similar fix for uvicorn in parallel but you beat me to it!

Timezones worked in my advantage :slightly_smiling_face:

@kgriffs not to spoil the fun you're having, but daphne might be blocking on the clogged stdout (subprocess.PIPE) since we don't drain it.
I get all the tests to pass in Docker by commenting these out:
--- a/tests/asgi/test_asgi_servers.py
+++ b/tests/asgi/test_asgi_servers.py
@@ -271,8 +271,8 @@ def _daphne_factory(host, port):

             _MODULE_NAME + ':application'
         ),
-        stdout=subprocess.PIPE,
-        stderr=subprocess.STDOUT,
+        # stdout=subprocess.PIPE,
+        # stderr=subprocess.STDOUT,
         cwd=_MODULE_DIR,
     )

@vytas7 OK, I think I've addressed all your feedback so far.

I'm going to start working on docstrings and towncrier fragments. Everyone please let me know if you see any other implementation/design issues.

@vytas7 re SSE testing that may be worth creating a standalone issue so we don't forget about it?

@vytas7 re SSE testing that may be worth creating a standalone issue so we don't forget about it?

Created https://github.com/falconry/falcon/issues/1634.

Due to the cython bug re iscoroutinefunction(), we may have to add some warnings to the docs about cythonizing ASGI apps, since that would hit the same issues we've been experiencing in the framework itself.
In some cases we could simply not do the check (when it is just to highlight a developer mistake), but in other cases it is less clear how we would avoid using iscoroutinefunction() (e.g., jsonschema.validate, hooks) without creating explicitly named functions (e.g., validate_async()). I suppose we could do that, but it puts more burden on the developer to remember to use the right function name.
See also:

https://github.com/cython/cython/issues/2273
https://bugs.python.org/issue38225

Yeah, I guess we'll just have to be transparent in the docs and make sure the warnings are easily discoverable.
OTOH we could make everything explicit, and always expect coroutines where applicable, i.e.

Do not perform developer mistake checks
Do jsonschema the validate_async() way
Hooks could be applied with falcon.asgi.after / falcon.asgi.before instead of falcon.after / falcon.before

Going this path would make porting clumsier, and easier to make mistakes due to lacking checks though...
FWIW I was reading more on the subject, and although Cython maintainers state on https://github.com/cython/cython/issues/2273 they would accept a PR exposing a faux _is_coroutine attribute, I'm not sure if this is a sustainable solution given the whole asyncio.coroutine thing is deprecated and slated for removal in Python 3.10.

I'm not sure if this is a sustainable solution given the whole asyncio.coroutine thing is deprecated and slated for removal in Python 3.10.

Agreed. It seems that the proposed solution will only work for asyncio.iscoroutinefunction() and not for inspect.iscoroutinefunction(), with the former possibly going away in Python 3.10. The alternative is setting co_flags bits, but apparently that will not work in Python 3.8+ because of the new inspect._has_code_flag() function that ignores flags when the function is not a Python function (but a Cython function). So then you would have to check it directly ala hug, but that isn't a general enough solution so I can understand why scoder is reluctant to go there...
...hence the proposal to try and create an attribute-based protocol for it in core python. If a PR does land that makes asyncio.iscoroutinefunction() work, I suppose we could use that in the interim while we wait on https://bugs.python.org/issue38225 .
Regardless, I think it does make sense to provide an escape hatch for anyone using cythonized async functions in their app. I could provide alternative functions that just assume the thing is a coroutine. I would then sprinkle the docs with warnings re the issue and the workaround (using the alternative function names). I could even catch any TypeErrors that are raised while attempting to await the result of calling a non-coroutine function, check for cython in the environment, and finally raise an error with a message that talks about the workaround.
If we are able to come to a rough consensus on this, I can tackle it following 3.0.0a1.


Configgen: Generate collections in top-level config

The per-service collections will be deprecated. Config generation should move the collections definition to the top-level config.

Deprecating the GAPIC config in general.


[bundle-plugin] Bazel support

Hello vespa devs.
Description
I am from Wix.com and we hevely use Vespa  in out systems.
And also utilized bazel as a main build tool (except some parts =/)
Question
We considering idea to fork your plugins and rewrite them to support bazel and open source them (possible under this repo?). Under rewrite I mean:

extract some part of plugin(s) as a core (that do all work) from maven part and possible add some kind of CLI interface to it.

Pleas provide you feedbak regarding this question, thanks.

Hi, this sounds good to me. We should really keep the core + maven wrappers in this repo - if you submit the PR's we'll work to have them merged.
Whether the new bazel wrappers should also be should be up to you, I don't know much about Bazel but i don't see an issue with it.
@gjoranv may have opinions on the structure of a core+wrapper split.

Sounds great. Closing this, hoping you will get back to us with a pull request.


how to change the arrow icon

hi, @rychkog . i want to change the arrow icon. and i found the source icon seems like that : folder-icon = '\25B6' in the styles folder.  so i want to know if it is a third lib? or something else? thanks.

For now all the styles have default encapsulation strategy - in order to easy override defaults I should disable encapsulation. It is the fastest solution I think. Will publish new version once this is ready

thanks, @rychkog , i am looking for it.


Cannot create RepositoryFile due to "sha" wasn't supplied. []

pulumi up -s LinioIT/global
Previewing update (LinioIT/global):
     Type                            Name                 Plan
     pulumi:pulumi:Stack             api-skeleton-global
 +   └─ github:index:RepositoryFile  mergeable            create

Resources:
    + 1 to create
    10 unchanged

Do you want to perform this update? yes
Updating (LinioIT/global):
     Type                            Name                 Status                  Info
     pulumi:pulumi:Stack             api-skeleton-global  **failed**              1 error
 +   └─ github:index:RepositoryFile  mergeable            **creating failed**     1 error

Diagnostics:
  pulumi:pulumi:Stack (api-skeleton-global):
    error: update failed

  github:index:RepositoryFile (mergeable):
    error: PUT https://api.github.com/repos/LinioIT/api-skeleton/contents/.github/mergeable.yml: 422 Invalid request.

    "sha" wasn't supplied. []

Resources:
    10 unchanged

Duration: 11s

https://github.com/terraform-providers/terraform-provider-github/issues/438

I've bumped into this too, just to give context on impact.

Unfortunately, the link to the upstream issue doesn't work anymore. Since the issue is three years old, received no additional comments and has no repro, I'll close it as non-actionable


how can i add the lastest ver to my shared proect ?

i try different method ,
and it show me an error  i had referenced a portable version FFimageloading.
and it exited?

Do you already install it in your specific project (Android, and iOS) and also initialize it?

It's all described here: https://github.com/luberda-molinet/FFImageLoading/wiki/Xamarin.Forms-API#step-1


Incorrect result for BETWEEN query that casts column to boolean

Consider the following statements:
CREATE TABLE t0(c0 INT);
INSERT INTO t0 VALUES (-1);
SELECT t0.c0 FROM t0 WHERE NOT (0 BETWEEN 0 AND t0.c0::BOOL); -- expected: {}, actual: {-1}

Unexpectedly, the SELECT fetches a row, although the predicate should evaluate to FALSE. I found this bug based on commit a09d2f484db83ac9e27c9501f439bcd32b0083ec.

Apologies for taking some time to look at this one :)
The problem was that we ended up with a filter in the form of 0 <= t0.c0::BOOL::INTEGER, and an optimizer then trigger to simplify this filter by moving the casts to the other side. So we got 0::BOOL::INTEGER <= t0.c0.
This optimization only works on casts that are invertible, and resulted in a bug here because INTEGER -> BOOLEAN -> INTEGER does not necessarily produce the same integer again. In this case the casts went from -1 -> TRUE -> 1.
I have now fixed this by adding a CastIsInvertible function that is checked before applying this optimization. That fixes the problem here.

No need to apologize. Your response time is still faster than for most of the other DBMS. ;)
Thanks for fixing and the explanation!

Thanks for the report :)


Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones"

Reverts GoogleCloudPlatform/kubernetes#8822
@bprashanth

self-merging for haste


Onboarding

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/27
Originally created by @mbergeron on 2018-04-03 14:18:24

We need an onboarding process for new developers on the BizOps project, on top of my head here are tasks that are needed.

[ ] Add to the BizOps group
[ ] Add the the BizOps 1Password Vault
[ ] Give access to the gitlab-analysis GCP project

View 2 previous comments from the original issue on GitLab


Tapcell: Closed Source PDK Feature Request

I'm using a PDK + Standard Cell Library that has special end cap cells for both the top, bottom, left and right cells. It also has corner cells for each corner of the macro and core area rectangles (TR, TL, BR, BL). It doesn't seem like tapcell supports this. Can we add this feature?

So upon closer inspection it looks like the cells in the PDK are technically named differently, but are really just rotations of each other. I feel like we should probably support the differently named cells, but it's not incorrect per say since OpenROAD seems to be doing to the rotating.


v2.5.11: 新增img2pdf插件实现图片合并为pdf，可替代旧的j2p插件，功能更加强大; 优化文档;

Summary by CodeRabbit

New Features

Added a method in the JmcomicClient class for enhanced type checking and key comparison.
Introduced the Img2pdfPlugin to convert images to PDF, improving file handling capabilities.

Bug Fixes

Improved error handling and control flow in test scenarios to prevent exceptions.

Documentation

Updated the header of the update plan document to Chinese.
Enhanced the Chinese translation, wording, and clarity in the configuration file syntax guide.

Refactor

Updated the version number in the jmcomic module.

#227

#183


fix: ann assignments inside function bodies should never be quoted

Fixes #186

@sondrelg Since I'm already at it anyways I'll do it real quick


robotfindskitten There are only 2 NKIs available (user requested 20).

When try to load robotfindskitten from terminal receive the following error message:
| => robotfindskitten
There are only 2 NKIs available (user requested 20).

We'll accept PRs for this but we're not actively working on it at this time.


Job failure when testing connection to remote

I came across the above problem while trying to debug my main machine which fails on the echo 'Hello' check with the following output:
DEBUG Wed 10 Jul 2024 13:19:24 BST /nix/store/8qvna5qxr8yil5l53lchi9db9r7frfb7-vim-pack-dir/pack/myNeovimPackages/start/remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:866: [ssh][ubuntu-container] Starting remote neovim launch
DEBUG Wed 10 Jul 2024 13:19:24 BST /nix/store/8qvna5qxr8yil5l53lchi9db9r7frfb7-vim-pack-dir/pack/myNeovimPackages/start/remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:141: Did not find any existing configuration. Creating one now..
DEBUG Wed 10 Jul 2024 13:19:24 BST /nix/store/8qvna5qxr8yil5l53lchi9db9r7frfb7-vim-pack-dir/pack/myNeovimPackages/start/remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:995: ["ssh"]["ubuntu-container"] Running "echo 'Hello'"
DEBUG Wed 10 Jul 2024 13:19:25 BST /nix/store/8qvna5qxr8yil5l53lchi9db9r7frfb7-vim-pack-dir/pack/myNeovimPackages/start/remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:1015: ["ssh"]["ubuntu-container"] Running "echo 'Hello'" completed
ERROR Wed 10 Jul 2024 13:19:25 BST /nix/store/8qvna5qxr8yil5l53lchi9db9r7frfb7-vim-pack-dir/pack/myNeovimPackages/start/remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:973: 'Testing remote connection' failed.
stack traceback:
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:974: in function '_handle_job_completion'
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:1017: in function 'run_command'
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:142: in function '_setup_workspace_variables'
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:872: in function '_launch_neovim'
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:883: in function <.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:882>
	[C]: in function 'xpcall'
	.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:759: in function <.../remote-nvim.nvim/lua/remote-nvim/providers/provider.lua:758>

FAILED JOB OUTPUT (SO FAR)
bash: -c: line 1: unexpected EOF while looking for matching `''
bash: -c: line 2: syntax error: unexpected end of file

Which uses OpenSSH_9.8,  but since I am going from a NixOS machine to a docker container, there are more than a few moving parts to investigate along the lines of  #150 before I feel comfortable opening a new issue. If you have any ideas what might be causing this please let me know!
Originally posted by @TakodaS in https://github.com/amitds1997/remote-nvim.nvim/issues/147#issuecomment-2220992760

Could you please provide a minimal reproducible example for this?

As mentioned in #155 the issue is the result of a call to vim.fn.shellescape. Logging the raw command returns "echo 'Hello'" -> "ssh remote 'echo '\\''Hello'\\'''". Running print(vim.fn.shellescape("echo 'Hello'") returns 'echo '\''Hello'\'''
Running the following commands directly from terminal give the following outputs:
ssh remote 'echo '\\''Hello'\\'' -> \\Hello\
ssh remote 'echo '\''Hello'\''' -> [same error as reported]

The issue arises when calling run_command("echo 'Hello'"). The problem is in how shellescape escapes the command output. Specifically, it incorrectly wraps the argument in single quotes escaping the single qoute, causing issues when executing the command.


FIX: #9703 suspicious behavior in pick function

Thanks for contributing a pull request! Please make sure you have read the
contribution guidelines
before submitting.
Please be aware that we are a loose team of volunteers so patience is
necessary. Assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
Again, thanks for contributing!
Reference issue
Fixes bug #9703
What does this implement/fix?
Before the fix function pick (channels.py) could pick less channels then parameter list contains (see bug description)
and after the fix  it suppose to handle the parameter list better. The actual fix is in the _picks_str_to_idx, pick.py
function. Added some basic tests.
Additional information
_picks_str_to_idx get called by bunch of other functions but, the tests suggests that functionality was not changed

@evgenygoldstein can you fix the flake8 issues?

@agramfort  I'll do my best

@evgenygoldstein glad I could help

thx @evgenygoldstein


Fixed README.

Moved the features and future features to the bottom of the readme.
@stevewirts

thanks for the help


zerubabel: Welcome to javascript, 3 weeks

Learning Objectives
Priorities: 🥚, 🐣, 🐥, 🐔 (click to learn more)

There is a lot to learn in this repository. If you can't master all the material
at once, that's expected! Anything you don't master now will always be waiting
for you to review when you need it. These 4 emoji's will help you prioritize
your study time and to measure your progress:

🥚: Understanding this material is required, it covers the base skills you'll
need for this module and the next. You do not need to finish all of them but
should feel comfortable that you could do them with enough time.
🐣: You have started all of these exercises and feel you could complete them
all if you just had more time. It may not be easy for you but with effort you
can make it through.
🐥: You have studied the examples and started some exercises if you had time.
You should have a big-picture understanding of these concepts/skills, but may
not be confident completing the exercises.
🐔: These concepts or skills are not necessary but are related to this module.
If you are finished with 🥚, 🐣 and 🐥 you can use the 🐔 exercises to push
yourself without getting distracted from the module's main objectives.

1. What is Programming
What is a program? What is a programming language? How do programs and people
fit together?

[x] 🥚 Data in, Data Out: You understand that computer programs are used
to transform data, and can explain a JS program from this module in terms
of the data that goes in and the data that comes out.
🥚 Three Audiences: You can explain how a single file of code is used to
communicate with 3 different audiences:

[x] Developers: You can explain how code formatting, comments, logs and
variable names make it easier (or harder!) for a developer to understand
a program.
[x] Computers: You can explain how a computer follows your instructions
to store, read and modify data in program memory.
[x] Users: You can explain how the computer creates a dynamic user
experience by following different executions paths depending on user
input.

[x] 🥚 Tracing Variables: You can complete a trace table for a program
that uses only variables, and can check your work using the "trace"
button.
🥚 JavaScript Syntax: Given a program, you can identify these parts of
JavaScript syntax:

[x] Primitives
[x] Operators
[x] Identifiers
[x] Keywords
[x] Checks
[x] Blocks
[x] Function Calls

[ ] 🥚 Pseudo Code: You can explain what pseudo code is, how it's used and
why it's helpful.
[ ] 🥚 Program Goals: You understand that a full JavaScript program can be
explained as a series of smaller goals, and can write names for the goals
in a simple working program.
🐣 Program Analysis: You can study a simple working program and identify:

[ ] The program's behavior (data in, data out)
[ ] The program's goals
[ ] The program's syntax and language features
[ ] Which parts of the source code are for which audience (users, devs,
computers)

[ ] 🐥 Same Behavior, Different Code: You can study simple programs with
the same behavior (data in, data out) but different source code and
explain how the differences matter for each audience.

2. Just Enough JavaScript
Go in depth on JavaScript you need to know for writing interactive text-based
programs in the browser. Along the way you will learn how each language feature
works in small programs.

🥚 Listening and Reading: You can read code out loud, and understand your
classmates when they read code to you. You don't need to understand how a
program works to master these learning objectives!

[ ] Listening You can exactly re-write a program that a classmate has
read
[ ] Reading You can read a program out loud and guide your classmates to
re-write exactly the same code without them seeing the program. Every
indentation, semi-colon, comment and spelling in their program must be
identical to yours.

🥚 Static vs. Dynamic Analysis: You can explain and use these two ways of
studying a program, each can help you understand different aspects of your
code. To help understand this concept, the options panel in Study Lenses is
organized into static and dynamic study options:

[ ] Static: Studying the text in a code file without running it. Some
static study methods are creating a flowchart, analyzing variables,
filling out a trace table, and drawing on code.
[ ] Dynamic: Running code and studying the computer's behavior. Some
dynamic study methods are running code and reading console logs, using
the trace button, and stepping through in the debugger or JS Tutor.

[x] 🥚 Tracing Execution: You can complete a "steps" trace table for all
JS language features in Just Enough JavaScript, and can correct your table
using console output from the "trace" button.
[x] 🥚 Analyzing Variables: You can list all the variables in a program,
and answer these 5 questions for each variable:

Where is the variable declared?
What is the variable's scope?
Is the variable initialized with a value?
How many times is its value used (read) in the program?
How many times is the variable assigned a new value?
What types are assigned to this variable during the program's execution?

[ ] 🥚 Completing Programs: You can successfully fill in blanks for a
program when the missing words are provided, including distractors.
[ ] 🐣 Translating Pseudo Code: Given a program written in Pseudo Code,
you can translate it to working JavaScript.
[ ] 🐣 Comparing Programs: You can compare two programs with similar code
and explain if they have the same behavior or not. If they do not, you can
explain how they behave differently and why.
[ ] 🐥 Constructing Programs: You can reconstruct a program's lines and
indentation, successfully ignoring distractor lines.
[ ] 🐥 Linting: You can find and fix simple linting errors in JavaScript
programs.
[ ] 🐔 Writing Programs: You can write small programs that log specific
values, or pass specific test cases.

3. Understanding Programs
Learn how to understand a larger programs by finding connections between the
details and the big picture. By the end of this chapter you will know how to
read a new program and do a simple code review.

[ ] 🥚 Stepping Through: You can pause a script in a your browser's
debugger, arrange the debugger, collapse extra panels, and step through a
script written with Just Enough JS. At each point in execution you can
make a prediction of the next line before executing, and can check your
prediction using the scopes panel.
[ ] 🥚 Imperative Programming: You can explain what the Imperative
Programming paradigm is, and can explain how you know the programs in
Welcome to JS are Imperative.
[ ] 🥚 Logging: You can tracing specific aspects of a program's execution
and log them to the console.
[x] 🐣 Naming Variables: You can analyze how a variable is used in a
program and give it two names:

Generic: You can give a generic name to a variable based on how it is
used in the program.
Specific: You can give a specific name to a variable based on how it's
used and the program's domain (the program's specific data and use-case).

[ ] 🐣 Describing Programs: You can read a program and describe it with
comments using to the methodology from /describing-programs:

Zoom Out
Zoom In
Find Connections
Describe Goals

[ ] 🐥 Code Review: Given a working program you can review the code for
clarity, correctness and style.

I Need Help With:
nothing, thank you
What went well?

variables
commenting and logging
JS Syntax

What went less well?
it's a little more than I expected and it takes time to understand what you doing even while your watching videos.
Sunday Prep Work
i will finish just enough syntax today then i'm trying to finish what is programing, I was working a lot this week so i wasn't active enough.

and it takes time to understand what you doing even while your watching videos.

could we make the videos more helpful, or provide something else as well?

no no thank you it's just my problem I take some time to understand things that's why, thank you.

I Need Help With
What went well?

devtools debugger
writing and reviewing
[computers and developers
just enough javascript 1-9

What went less well?
Sunday Prep Work

I Need Help With
What went well?

debugging!
last week's exercise but the second one was a little hard.
trying to finish just-enough-javascript until tomorrow.
finished UX/UI review.
coding our website with @alexanderism55 so we can't forget HTML & CSS.

What went less well?
Sunday Prep Work

coding our website with @alexanderism55 so we can't forget HTML & CSS.

💪


Error while running onnx runtime

Hi,
I am trying to run onnx-yolo example using miguelaeh/pipeless docker image. Stage is created successfully, but when adding a stream and running the pipeline, I am getting the below error.
ERROR pipeless_ai::stages::languages::python] Error executing hook: AttributeError: 'numpy.ndarray' object has no attribute 'get'
[2024-06-13T06:40:27Z WARN  pipeless_ai::pipeline] No frame returned from path execution, skipping frame forwarding to the output (if any)

Looks like there is no output frame coming from the runtime, not sure why. I was able to use the same input video with the yolo example (pytorch) successfully and get the output video. I am using file input and output. Would really appreciate any help regarding this issue.

Hello @arunbpf ,
I guess there is some error in the post-processing code. Maybe we have some typo I the example. Taking a quick look it could be happening in this line: https://github.com/pipeless-ai/pipeless/blob/a23652b75e380a782ad9e5ee4ab876bde3ec9bde/examples/onnx-yolo/post-process.py#L9 in the model_output.get.
Could you try adding a print before that line to see the actual content of model_output? It seems like it is directly a numpy array and not a dict. You should have the stage locally in a folder so you can directly modify the code there.


How to properly hide element to be slideInRight?

Say I have a sidebar called popmenu that sticks on the right hand side.
I want it to be somewhere offscreen/hidden and then use jquery to append slideInRight.
So far this works for toggling it:
$(".burger").on("click", function(){
        if( $(".popmenu").hasClass("animated slideOutRight") ){

            $(".popmenu").removeClass("animated slideOutRight");
            $(".popmenu").addClass("animated slideInRight");

        }else{

            $(".popmenu").removeClass("animated slideInRight");
            $(".popmenu").addClass("animated slideOutRight");

        }
});

But this means the sidebar is displayed onload. How do I have it initially hidden?
Also... this doesnt seem to be working...
.popmenu{
        -webkit-animation-duration:0.3s;
}

use css animate from to
@-webkit-keyframes slide {
      0% {
        opacity: 0;
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        -o-transform: translateX(-100%);
        transform: translateX(-100%);
      }
      100% {
        opacity: 1;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
        transform: translateX(0%);
      }
    }

Not sure if I got it right. The above code only fixes the problem with the duration but its still there onload.
The element in question has this:
.popmenu{
  padding-top:30px;
  position:fixed;
  top:0;
  right:0;
  background-color:rgb(0,168,80);
  -webkit-animation-duration:0.3s;
}```

I am doing something similar on a project so thought I would see if I can help. I believe I have got your pen to work as you want: https://codepen.io/johnhogan/pen/pRdQEy
Hope that helps,
John

This is great. Thanks a lot @johnhogan87 !

Closing the issue as this seems to be solved.

@eltonmesquita as this does solve the current problem, is this the team's preferred method in initializing an element to be hidden?

This is something that is due to the developer to decide. There's no better way as it depends a lot of the project. My opinion is, just hide it with CSS - like: position: absolute; left: -100% - then add the animate class , an additional class to position the element to the place you need - like left: 0; - on click and you're done. But it's up to you to find the way that best suits your project.


Browser specific pseudo-elements error when used in other browsers

Fixing it is probably as simple as wrapping the insertRule call in a try-catch block to avoid the browser complaining about an unsupported selector.
Error message:
SyntaxError: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '.bc_0::-moz-range-track{background-color:transparent;}'.
toString
src/index.ts:65
  62 |     cssRule = `.${className[0]}{${this.cssHyphenProp}:${value};}`;
  63 |   }
  64 |
> 65 |   sheets[this.screen].insertRule(
     | ^  66 |     this.screen ? screens[this.screen](cssRule) : cssRule
  67 |   );
  68 | }

the following code will give the above error when used in chrome:

import React from 'react'

import { createStyled } from '@stitches/styled'

export const { styled, css } = createStyled({})

export const Slider = styled.div({
  '::-moz-range-track': { backgroundColor: 'transparent' },
})

function App() {
  return (
    <div className="App">
      <Slider> Working </Slider>
    </div>
  )
}

export default App

I believe you could also use this:
https://github.com/modulz/stitches/blob/master/packages/css/src/utils.ts#L281
Here you get a list of all the supported properties of the browser, so could check if it exists there. But yeah, then you would have to do that for every single property which would give some overhead. In support of the try catch here, but just wanted to mention it 😄

fixed in #120


Use string views instead of strings when extracting query randstrobes

Hi!
I am wrapping strobealign and using it with another C library for processing reads, and my reads are stored in raw C-strings for ABI compatibility with the rest of the code. However, this means that I need to copy the reads to a std::string at every query, which can become expensive.
This PR updates query_randstrobes so that it uses a std::string_view rather than a std::string, avoiding unneeded copies. std::string_view was added in C++17, which is the minimum required version anyway. std::string_view can be obtained cheaply (without copy) from both a C++ std::string and an raw const char* pointer.

Thanks; being able to use string_view was one of the reasons why I bumped the required C++ from 14 to 17 (although we haven’t started using it). It’s good to see that it also helps with making strobealign easier to use from C.
I’ll have a closer look next week. If you want, you could investigate the failing Python bindings, but I can also look into that if not.

Thanks again, also for fixing the Python bindings so quickly.
In case you have other suggestions for making wrapping strobealign easier, please let us know!

Sure thing, thanks for the responsiveness! :+1:


Merge checksums when building for different architectures separately

Upgrades for some projects, such as containerd, runc, etc. are done in a separate CodeBuild job for amd64 and arm64 to leverage the same architecture for the build instance as the binary we're compiling. However, since both of these push to the same branch/PR, the checksums file on the branch gets overwritten by the job that runs second. In order to avoid that, we're using the union merge strategy for the CHECKSUMS files.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


[chef-server-ctl] Incorrect error messages with user-create

Given you have a user created already with the following ctl command:
$ chef-server-ctl user-create testuser-1234 Test User<EMAIL_ADDRESS>password
$ chef-server-ctl user-list
pivotal
testuser-1234

If you try to create a second user with the following command:
$ chef-server-ctl user-create testuser-4567 Test User<EMAIL_ADDRESS>password
ERROR: Conflict
Response: User 'testuser-4567' already exists

Through trial and error I figured out the email address was causing the conflict. Could we improve the error message to make it clear what field has the conflict? Maybe show 'email address already in use'?
Version detected in: chef-server-core-12.6.0-1.el6.x86_64

What does the API return? Does it return the conflicting field? Otherwise, this will be pretty difficult without some API work.

Going to close this as a dup of: https://github.com/chef/chef-server/issues/59

you may created the org-username my mistake, but every problem  has some solution.
sudo -s
chef-server-ctl org-delete learndevops
learndevops is my org-name you may have different org


Adding domain for SSUET, Pakistan

This domain is used for student email by Sir Syed University of Engineering & Technology (SSUET), Pakistan. The official website is: https://ssuet.edu.pk/

@AshhadDevLab I am sorry, the domain ssuet.edu.pk is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Is react-use still being maintained?

Sorry for using a feature request issue, but discussions aren't open so I didn't know where else to ask. It looks like a lot of issues and pull requests have been open for several months, and I can see from the contributors graph that there hasn't been much activity since May 2022. I wouldn't mind helping out if needed, but with 30k github stars I'm surprised there aren't more active maintainers. @streamich do you need help with anything?

looks like no...

@streamich I'm happy to help as-well! I've used this library a lot so I'm happy to give back, plus I've familiarised myself with the codebase so I should be well equiped.

I'm willing to contribute too. I loved these utility hooks

I would be glad to contribute too. But there's no answer since June...

What about @react-hookz/web ? https://react-hookz.github.io/web/?path=/docs/migrating-from-react-use--page

What about @react-hookz/web ? https://react-hookz.github.io/web/?path=/docs/migrating-from-react-use--page

thanks

I'm happy to help too, looks like this lib is dead

I'm willing to help too
cc @streamich


pipenv install for requirement.txt is failing

Issue:
running pipenv install in directory where requirement.txt file already exist is failing.
Environment

Windows 7
Python version: 2.7.14
Pipenv version: 11.1.7

Expected result
should have install all the packages
Actual result
C:\My\TE\flask example\flask-bookshelf>pipenv install
requirements.txt found, instead of Pipfile! Converting.
Warning: Your Pipfile now contains pinned versions, if your requirements.txt did.
We recommend updating your Pipfile to specify the "*" version, instead.
Pipfile.lock not found, creating.
Locking [dev-packages] dependencies.
Locking [packages] dependencies.
Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Could not find a version that matches Flask==0.10.1,>=0.10,>=0.11,>=0.9
Tried: 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.5.2, 0.6, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.9, 0.10, 0.10.1, 0.11, 0.11, 0.11.1, 0.11.1, 0.12, 0.12, 0.12.1, 0.12.1, 0.12.2, 0.12.2
c:\python27\lib\site-packages\pipenv\utils.py:1152: ResourceWarning: Implicitly cleaning up <TemporaryDirectory 'c:\users\xxxxxx\appdata\local\tem
p\pipenv-xaecsz-requirements'>
warnings.warn(warn_message, ResourceWarning)
C:\My\TE\flask example\flask-bookshelf>
Steps to replicate
try to run pipenv install
requirements.txt
Pipfile.txt
ps: pipfile temporary converted to txt file.

try again with v11.1.8 please :)

hi, did try but same result,
What i did:
removed whole project directory to have fresh start, removed .virtualenvs folder from appdata of user.
still the same result as above with version 11.1.8

"Flask==0.10.1,>=0.10,>=0.11,>=0.9"
one of your dependencies says it needs flask > 0.11, so this is an un-resolvable dependency graph

pip doesn't have this problem because it doesn't resolve a dependency graph — it's just first come first serve

Ohh, i see. I did try with pip and it worked so didn’t thought about pip. But pipenv is outsmart that thing which is great! apologies for wasting your time.
Just a feture request: is it possible to have some message showing conflicts of requirements.

Easier said than done :)

@arcan25 the best bet for that is to run pipenv install --skip-lock and then pipenv graph to investigate


Release Google.Cloud.RecommendationEngine.V1Beta1 version 2.0.0-beta06

Changes in this release:
New features

Add IServiceCollection extension methods for client registration where an IServiceProvider is required. (commit 022fab2)

Created release for Google.Cloud.RecommendationEngine.V1Beta1-2.0.0-beta06


Add meta-tag for header; Fixing problem of #24;

Sorry for changes in formatting, please revert them if you want.
See #24.

Sorry, but I am in vacation right now and I will look at this issue just in September 1 st.
Thanks

@fmcarvalho
Did you have a chance to look into this?

Not yet. I will do it this week.

@DNagorny  I already found the problem. It will be solved using the following statement to load the resource:
HtmlView.class
   .getClassLoader()
   .getResource("templates/HtmlView-Header.txt");

I tested this fix in a WAR application depending of HtmlFlow jar and it worked fine.
I will include this fix on release 1.2 and I will try to publish it next Monday.
Thanks

Shall I remove my PR?

You can keep it. I will use your proposal of a meta tag and include it on release 1.2.

Ok, but I should've extended from HtmlSingleElement instead of WriterComposite, just as a remark. :)


Add more tests in crowdfunding example [failing-paths]

Failing Scenarios:

Donate before or after startDate, endDate respectively
Donate with insufficient fund
Claim, reclaim before expiry date
Wrong lsig passed, lsig missing
Transaction missing from group transaction

Please also add (ignore if already added):

trying to update application where sender is not creator (this is imp and should fail)
closing the funds in escrow but closeRemainderTo !== fundReceiver
any one tx where common property is incorrect (eg. ReyTo !== ZeroAddress)

thanks adding these.


Enhance/Danger Actions UI/UX

Explanation

Opens up a warning modal for the danger actions like "Delete", and "Delete All"
Changed the Identity web2providers titles to icons
Solves a bug related to close opened menu automatically when open another menu

More Information

Fixes #193
Fixes #194

Screenshots/Screencaps

Before

After

Manual Testing Steps

Click on the main settings "..." button that has "Delete All" option.
Choose "Delete All"
You will see a Danger Action Modal appear for warning.
Yes means accepting to execute this danger action.
No means rejecting to execute this  this action.

Pre-Merge Checklist

[x] PR template is filled out
[x] IF this PR fixes a bug, a test that would have caught the bug has been added
[x] PR is linked to the appropriate GitHub issue
[x] PR has been added to the appropriate release Milestone

+ If there are functional changes:

[ ] Manual testing complete & passed
[ ] "Extension QA Board" label has been applied

PR template source from github.com/MetaMask

@iskdrews thanks, just found some typo and feel free to merge!


Validate OEV Network proxies

Closes https://github.com/api3dao/contracts/issues/241
This revealed the following issues
OevAuctionHouse collateral rate proxy address is 0xa47Fd122b11CdD7aad7c3e8B740FB91D83Ce43D1 while it should have been 0x5b0cf2b36a65a6BB085D501B971e4c102B9Cd473

OevAuctionHouse native currency rate proxy of conflux with address 0x968eA23acAD164AdaEcb86Cab6C3DEa4BC9d52D6 could not be read from
OevAuctionHouse native currency rate proxy of hashkey with address 0x183ec28c374CE8D0b44477FbED37328F5f950324 could not be read from
OevAuctionHouse native currency rate proxy of lukso with address 0x5741Da3db211e137b72505B7AD05E8455309D67a could not be read from
OevAuctionHouse native currency rate proxy of sonic with address 0x726D2E87d73567ecA1b75C063Bd09c1493655918 could not be read from

The first error is tracked here https://github.com/api3dao/manager-multisig/issues/514
Out of the following four, lukso and sonic appear on the Market, while conflux and hashkey doesn't yet.

@PrenaamD for visibility


Add TypeScript declarations

This library have no TypeScript declaration so when a developer want to write TypeScript using this library, need to create declaration every time. So add declaration file to this library.

Hi @tom-konda ,
Thank you for your contribution!!


issues/1120 Upgrade OrientDB dependencies to 3.0.21

Related with https://github.com/strongbox/strongbox/pull/1363


Fix1.0.5

nonmissingtype is not exported in the LTS version 1.0.5.

Ah, shoot, didn't want to include the other PR here.


FAILURE: Build failed with an exception.

FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':twitter_login'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

Flutter version 3.22.2
Gradle Version  8.x

This is probably related to the use of an older Gradle version in this project. To workaround the problem whether downgrade your gradle version to 7.x or temporarily manipulate the flutter package in your cache directory (not recommended since it will be overridden when using flutter pub get).
To manipulate the package update the ~/.pub-cache/hosted/pub.dev/twitter_login-4.4.2/android/build.gradle file and add the namespace argument into the android section`.
...

rootProject.allprojects {
    repositories {
        google()
        mavenLocal()
    }
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
    namespace = "com.maru.twitter_login" // <-- Add this line

    compileSdkVersion 31

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

...


Not obvious how to run as a Windows service

I checked the documentation and the command-line output from buildkite-agent, and I can't see how to start the agent as a Windows service, so that it runs as a daemon.  Not sure if this is a documentation issue or the agent itself needs to add support for this.

@fdstevex howdy! I'm actually not sure how to run it as a service! I'm not super knowledgable about Windows, so any help here would be greatly appreciated :)

Here's what I'm doing - so far it's working for me:
https://gist.github.com/fdstevex/52da0d7e5892fe2965eae105b8cf3883

@fdstevex thanks so much for those clear instructions! That sounds like the best way to set it up. I'll updated the Windows docs with exactly that method.

I did some work to automate those instructions, and wrote up what I learnt in a comment on that gist

Highly recommend using http://nssm.cc/ as a simple solution for this, really lives up to its name.

Thanks @yeungda-rea and @fdstevex, I expanded upon that a bit for https://gist.github.com/lox/e627d6749c8f212a5cf90158f0e8f9e3.

We've got an internal TODO to track writing this guide for the 3.0 release which is happening very soon!


Sync: Showing offline state

Refs: #89358
Handle following offline states

User is offline
Server is offline (403, 404)

macOS Catalina Version 10.15.2
I have sync setup between my Windows machine and my Mac -- while the Windows machine seems fine (no errors in the sync logs), the Mac seems to get Error: Connection refused for the request '<url>' errors sometimes and then that seems to go into a failure loop for a while (with unauthorized errors) but then will seemingly recover on its own.
During these "outages" the sync still shows that it is on, but settings aren't updated (until the issue resolves itself).
[2020-01-28 10:49:11.443] [userDataSync] [info] Auto sync started
[2020-01-28 10:49:11.657] [userDataSync] [info] Settings: Updating remote settings
[2020-01-28 10:49:11.904] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 10:49:12.208] [userDataSync] [info] UI State: Updating remote ui state...
[2020-01-28 10:49:12.364] [userDataSync] [info] UI State: Updating last synchronised ui state...
[2020-01-28 10:49:12.528] [userDataSync] [info] Extensions: Updating remote extensions...
[2020-01-28 10:49:12.710] [userDataSync] [info] Extensions: Updating last synchronised extensions...
[2020-01-28 10:58:52.775] [userDataSync] [info] Auto sync stopped.
[2020-01-28 10:58:53.002] [userDataSync] [info] Completed clearing remote data
[2020-01-28 10:58:53.006] [userDataSync] [info] Completed resetting local cache
[2020-01-28 11:10:47.711] [userDataSync] [info] Settings: Started pulling settings...
[2020-01-28 11:10:47.997] [userDataSync] [info] Settings: Updating local settings
[2020-01-28 11:10:48.025] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 11:10:48.041] [userDataSync] [info] Settings: Finished pulling settings.
[2020-01-28 11:10:48.044] [userDataSync] [info] Keybindings: Started pulling keybindings...
[2020-01-28 11:10:48.339] [userDataSync] [info] Keybindings: Remote keybindings does not exist.
[2020-01-28 11:10:48.339] [userDataSync] [info] Keybindings: Finished pulling keybindings.
[2020-01-28 11:10:48.340] [userDataSync] [info] UI State: Started pulling ui state...
[2020-01-28 11:10:48.508] [userDataSync] [info] UI State: Updating local ui state...
[2020-01-28 11:10:48.509] [userDataSync] [info] UI State: Updating last synchronised ui state...
[2020-01-28 11:10:48.521] [userDataSync] [info] UI State: Finished pulling UI state.
[2020-01-28 11:10:48.521] [userDataSync] [info] Extensions: Started pulling extensions...
[2020-01-28 11:10:48.704] [userDataSync] [info] Extensions: Updating local extensions...
[2020-01-28 11:10:49.059] [userDataSync] [info] Extensions: Installing local extension. jock.svg 1.1.1
[2020-01-28 11:10:49.062] [userDataSync] [info] Extensions: Installing local extension. bierner.markdown-preview-github-styles 0.1.6
[2020-01-28 11:10:49.063] [userDataSync] [info] Extensions: Installing local extension. ms-vsliveshare.vsliveshare-audio 0.1.80
[2020-01-28 11:10:49.067] [userDataSync] [info] Extensions: Installing local extension. humao.rest-client 0.23.1
[2020-01-28 11:10:49.071] [userDataSync] [info] Extensions: Installing local extension. ms-vscode.azure-account 0.8.8
[2020-01-28 11:10:49.075] [userDataSync] [info] Extensions: Installing local extension. ms-vscode.typescript-javascript-grammar 0.0.53
[2020-01-28 11:10:49.079] [userDataSync] [info] Extensions: Installing local extension. ms-vscode.js-debug-nightly 2020.1.38943
[2020-01-28 11:10:49.248] [userDataSync] [info] Extensions: Installing local extension. mrmlnc.vscode-scss 0.9.0
[2020-01-28 11:10:49.250] [userDataSync] [info] Extensions: Installing local extension. eamodio.tsl-problem-matcher 0.1.0
[2020-01-28 11:10:49.252] [userDataSync] [info] Extensions: Installing local extension. slevesque.vscode-autohotkey 0.2.2
[2020-01-28 11:10:49.254] [userDataSync] [info] Extensions: Installing local extension. ms-vscode.powershell-preview 2020.1.0
[2020-01-28 11:10:49.255] [userDataSync] [info] Extensions: Installing local extension. eamodio.toggle-excluded-files 1.7.0
[2020-01-28 11:10:49.258] [userDataSync] [info] Extensions: Installing local extension. visualstudioexptteam.vscodeintellicode 1.2.4
[2020-01-28 11:10:49.260] [userDataSync] [info] Extensions: Installing local extension. eamodio.find-related 0.9.0
[2020-01-28 11:10:49.262] [userDataSync] [info] Extensions: Installing local extension. eamodio.restore-editors 0.2.1
[2020-01-28 11:10:49.263] [userDataSync] [info] Extensions: Installing local extension. codezombiech.gitignore 0.6.0
[2020-01-28 11:10:49.264] [userDataSync] [info] Extensions: Installing local extension. eamodio.remotehub 0.5.0
[2020-01-28 11:10:49.266] [userDataSync] [info] Extensions: Installing local extension. ryu1kn.partial-diff 1.4.1
[2020-01-28 11:10:49.275] [userDataSync] [info] Extensions: Installing local extension. pflannery.vscode-versionlens 0.24.0
[2020-01-28 11:10:49.278] [userDataSync] [info] Extensions: Installing local extension. ms-vscode-remote.remote-wsl 0.42.1
[2020-01-28 11:10:49.280] [userDataSync] [info] Extensions: Installing local extension. alefragnani.bookmarks 10.7.0
[2020-01-28 11:10:49.289] [userDataSync] [info] Extensions: Installing local extension. codestream.codestream 6.0.0
[2020-01-28 11:10:49.293] [userDataSync] [info] Extensions: Installing local extension. esbenp.prettier-vscode 3.18.0
[2020-01-28 11:10:49.306] [userDataSync] [info] Extensions: Installing local extension. ms-vsliveshare.vsliveshare 1.0.1510
[2020-01-28 11:10:49.314] [userDataSync] [info] Extensions: Installing local extension. github.vscode-pull-request-github-insiders 2020.1.32642
[2020-01-28 11:10:58.024] [userDataSync] [info] Extensions: Updating remote extensions...
[2020-01-28 11:10:58.190] [userDataSync] [info] Extensions: Updating last synchronised extensions...
[2020-01-28 11:10:58.206] [userDataSync] [info] Extensions: Finished pulling extensions.
[2020-01-28 11:10:58.559] [userDataSync] [info] Auto sync started
[2020-01-28 11:11:27.768] [userDataSync] [info] Settings: Updating remote settings
[2020-01-28 11:11:27.978] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 11:11:36.126] [userDataSync] [info] Settings: Updating remote settings
[2020-01-28 11:11:36.286] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 11:11:41.198] [userDataSync] [info] Settings: Updating remote settings
[2020-01-28 11:11:41.402] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 11:15:59.825] [userDataSync] [info] Settings: Updating local settings
[2020-01-28 11:15:59.851] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 12:11:13.832] [userDataSync] [error] Error: Connection refused for the request '<url>'.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:431:828)
[2020-01-28 12:11:30.528] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:11:33.023] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:13:30.953] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:23:49.017] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:25:05.303] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:26:43.580] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:28:10.339] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:28:52.910] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:30:07.239] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:32:09.612] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:35:05.650] [userDataSync] [error] Error: Request '<url>' is not authorized.
    at h.request (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:432:33)
    at async h.read (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:430:422)
    at async w.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:384:337)
    at async p.hasRemoteData (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:426:872)
    at async l.isTurnedOffEverywhere (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:417:793)
    at async l.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:416:845)
[2020-01-28 12:45:06.370] [userDataSync] [info] Settings: Updating local settings
[2020-01-28 12:45:06.392] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 12:58:29.742] [userDataSync] [info] Settings: Updating remote settings
[2020-01-28 12:58:29.917] [userDataSync] [info] Settings: Updating last synchronised settings
[2020-01-28 13:05:10.442] [userDataSync] [info] Settings: Updating local settings
[2020-01-28 13:05:10.466] [userDataSync] [info] Settings: Updating last synchronised settings

We show now when was the last time it synced to indicate user about sync activity and clicking on it will guide user to see more detailed activity. This also helps in case of offline (which may or mayn't be purposeful).


__debugbread() occurs when running the example in debug mode using vs2022

I use vs2022 to compile the examples. Works fine in release mode, but in debug mode I get a __debugbreak() error when right clicking.
It seems that an out-of-bounds conflict occurs during QArrayDataPointer destruction when it try to free(d), which ends up in ntdll.dll. If this behavior is safe, please tell me how to skip this warning in visual studio.

I am not able to check it on windows with vs2022 at the moment. Maybe someone else has noticed such a behavior?

Did you try to use any other Qt version?


Add dm notification

closes #34

This also closes #43

Labelling this as blocked until we sort out some procedural stuff around how we'll handle conversing with project submitters.


New README.md for the project that replaces the old README

I think if someone like me is looking for a documentation for this module it's better to see immediately the documentation that comes with pod instead to see inside the File.pm file to see how to use this module.

Good job, thanks a lot!


Unknown command transfergems

The transfergems command has stopped working after the update to ArchiSteamFarm V<IP_ADDRESS>.

Should be fixed now in the latest release

Thank you!


To match puppetlabs/haproxy module parameter "defaults_option"

Also will match your README.

Great project by the way, nice add-on to configure HAProxy with Hiera.

Hello @cmachler thanks for the pull request. Thanks for fixing the mismatch. Must have overlooked it hehe.
Puppetlabs is quite restrictive about adding support for hiera to its modules so therefore this module had to be created as we were heavily implemented in the usage of hiera.

as this change will break the current usage of the module i've created a tag v0.1.0 for the current master.
v1.0.0 will be the next release


Create ECDSA verify and sign utilities

Problem
ECDSA verify and sign utilities don't currently exist in Noir. Adding these would make it easier to integrate Ethereum account information into circuits.
Solution
Write ECDSA verify and sign utilities in Noir.
Additional context
We will consider giving a grant to do this.

@critesjosh Has there been any progress on this? I could be interested in working on it if not.

This is actually cpmplete. You can see how to use it here. https://noir-lang.org/standard_library/cryptographic_primitives/ecdsa_secp256k1


Splash screen logo is smaller

And doesn't have activity indicator.
@csherron do you want to do anything special here?

This happened when we switched to the Splash API: https://docs.expo.io/versions/latest/guides/splash-screens.html

Right, I just figure it's an opportunity to revisit it if we wanna do anything fancy.

Def.

i still see a throbber? what do you mean by activity indicator specifically

Weird. Refresh app from settings? You uh, shouldn't.


Auto-update docker.io repo reademe on release

update the readme manually until their api allows using PAT
releated: docker/hub-tool#172

https://goreleaser.com/customization/dockerhub/


[feature-update] Created a response class for all modules

Overview
This is a long PR (very long, I believe) and I am really sorry for that.
This PR aims to add response class OBISQueryResult to every module.
Changes introduced
A response class in each module has

an __init__ function (to initialize but no specialized function to do
all existing functions as methods to the class
get_search_url returns OBIS API URL for the query
some functions have get_mapper_url methods to get OBIS Mapper URL, we identify functions to show a mapper url using a self.mapper flag (if true for a method then it has a corresponding Mapper URL).
docstrings have also been updated

Additional Changes

Tests have also been updated so this PR has become huge. But each of them are passing and new tests for new methods and an extensive testing to check whether returned url do really exist have been introduced. I believe this will make this package more robust.
Docs for occurrences module have also been changed just to make it easy for figuring out how things would look after this update. But not for other modules. I am working on another PR after this to work on updating all the docs. I stopped from doing all that in this PR to curtail PR length which is already very huge.

Thanks!

Once again, I am sorry for this huge PR.

I don't like the reuse of the name OBISQueryResult for all of these classes.
I also see you have duplicate code for get_search_url in several of these classes. You can define the methods once in a parent class or you can define the functions in a common module and attach them, either will remove the duplication.

Thank you for the review!

I will rename the classes in each module something more tailored say NodesQuery for nodes module and similarly.
I will add a superclass OBISQueryResult in obisutils that is inherited by classes in each module.

relevant discussions regarding this reorganization are on #69 and #70


Shaking of Y Ticks and Y-Axis

Hey Guys!
First of all, thank you so much for your effort with this great tool!
The issue is basically described in the subject. The y-axis labels of all my plots are shaking if any label has a different number of strings and changes the order while racing.
For instance, I have 40 data and I choose the top 10. In the beginning, the longest string is "UC Browser" in the screenshot. Therefore, the y-label space on the left-hand side uses "UC Browser" to calculate the space. However, after a few seconds, the "360 Safe Browser" is in the top 10. But the string length is longer than the previous one. I guess it causes the different sizes of the plot and the width of the x-axis, and it will shake after it generates the animation. Please kindly refer to the below image.

Do you have any idea how to fix the position of the y-axis or the width of the x-axis? Or can we get the longest string number throughout all data and use it to set up space on the left-hand side even that label is not in the top 10 rankings?
Feel free to let me know if you have any suggestions. I truly appreciate your assistance.

Hi Guys,
I think it's because, during the animation when the bars switch the order, I don't know somehow the name contains the longest words was disappeared. The figure size has been changed too. In this example, if it changes the order of "XLRE", it's disappeared during the transition. So the different sizes of plots will let the animation looks like the shaking of the y axis.
Do you have any idea how to solve this issue? Feel free to let me know if you have any suggestions.
Thank you!


GetEntertainmentConfigurationsAsync throwing JsonException

I was trying to get the Entertainment groups but I was getting a JSON exception. Decided to download your project to debug it and come here with more information on that, so:
In ProcessResponseAsync in BaseHueApi.cs it was throwing when trying to do await response.Content.ReadFromJsonAsync<T>(), with the following exception: The JSON value could not be converted to HueApi.Models.EntertainmentConfigurationType.
This is the JSON it got from await client.GetAsync(url) (I masked part of the Ids because I don't know if they are sensible data):
Raw:

Formatted:
{
   "errors":[

   ],
   "data":[
      {
         "id":"xxxxxxxx-xxxx-404f-xxxx-xxxxxxxxxxxx",
         "id_v1":"/groups/2",
         "metadata":{
            "name":"Entertainment area"
         },
         "type":"entertainment_configuration",
         "configuration_type":"monitor",
         "locations":{
            "service_locations":[
               {
                  "service":{
                     "rtype":"entertainment",
                     "rid":"xxxxxxxx-xxxx-4358-xxxx-xxxxxxxxxxxx"
                  },
                  "positions":[
                     {
                        "x":1.0,
                        "y":-1.0,
                        "z":1.0
                     }
                  ],
                  "position":{
                     "x":1.0,
                     "y":-1.0,
                     "z":1.0
                  }
               }
            ]
         },
         "channels":[
            {
               "channel_id":0,
               "position":{
                  "x":1.0,
                  "y":-1.0,
                  "z":1.0
               },
               "members":[
                  {
                     "index":0,
                     "service":{
                        "rtype":"entertainment",
                        "rid":"xxxxxxxx-xxxx-4358-xxxx-xxxxxxxxxxxx"
                     }
                  }
               ]
            }
         ],
         "light_services":[
            {
               "rtype":"light",
               "rid":"xxxxxxxx-xxxx-4d5b-xxxx-xxxxxxxxxxxx"
            }
         ],
         "stream_proxy":{
            "mode":"auto",
            "node":{
               "rtype":"entertainment",
               "rid":"xxxxxxxx-xxxx-469a-xxxx-xxxxxxxxxxxx"
            }
         },
         "status":"inactive",
         "name":"Entertainment area"
      }
   ]
}

I understood the problem, the EntertainmentConfigurationType is missing monitor.
FYI, monitor is defined when I edit the Entertainment Area and select Gaming as the area type in the Philips Hue App on android.
from https://developers.meethue.com/develop/hue-api-v2/api-reference/#resource_entertainment_configuration_get:

Thanks, I added the monitor value. A new release will be on NuGet shortly.

Nice!
Hey, I'm getting trouble trying to locate bridges using only the new HueApi because only HttpBridgeLocator is available and after some few times hitting it, it gives me HTTP ERROR 429.
On Q42.HueApi, LocalNetworkScanBridgeLocator was working great... Could you also add the safer options to the new HueApi?

The Http Error 429 is caused by rate limiting on the HTTP endpoint.
I migrated the other Network bridge locators to the new HueApi. It's in version 0.9.4 on NuGet