More documentation for newcomers

Hi,
I am rather new to data science and Python, and wanted to try your data science template. I am struggling on many fronts, maybe you can address some of them in the documentation?

What is the recommended design pattern for initializations, e.g. for the logger? Shouldn't there be something like an src/init.py file?
Can you please elaborate why you use a makefile? In my understanding it should be possible to do everything from main.py, which to me would make more sense.
Can you please describe the necessary steps to get the makefile working on Windows? It seems I need to install this, e.g. via winget install GnuWin32.Make. But then other commands, like find are missing. So does the makefile work at all on Windows, e.g. in Visual Studio Code?

@KurtP20 With the V2 release the docs have gotten a big update and the code scaffolding has evolved. Feel free to re-open if you've got additional requests.


Function that always throws is not inferred as having never return type

TypeScript Version: 2.5.0-dev.20170618
Code
function fail1() {
  throw new Error()
}

const fail2 = function () {
  throw new Error()
}

Expected behavior:
Inferred return type of both functions is never
Actual behavior:
Only the return type of the second function is never. The return type of fail1 is inferred as void.

This is by design. We had it the way you suggest originally but I was too much of a breaking change. See #8767 for more details.

@ahejlsberg Could we have a compiler flag that unifies this behavior?

Perhaps only class methods should get void inference :rose:

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

I really like @basarat's suggestion.


DocGen broken

The documentation generated from this repo is broken, e.g. parameters are missing:

Not working on https://processes.openeo.org/#aggregate_temporal_period but working on openeo.org

Should be fixed with DocGen v1.1.3


serialization for multiprocessing

Hi again,
as usual I am super-thrilled at how this is coming along.
I found that I often want to pass a PyRanges instance to a function which I want to use in parallel (using multiprocessing). I can of course pass the underlying dataframe, and then reconstruct the PyRanges within the child processes. However, i) PyRanges construction for large sets of regions takes some time ii) if i use the same function outside of the context of multiprocessing, I do want to pass a PyRanges instance directly. So it would be just a little bit more convenient if the PyRanges class would be serializable.
Do you have any plans / thoughts on that? In the simplest case, setstate and getstate could automate the 'serialize the underlying DF, then reconstruct the PyRanges' part. I am not Cython-savy enough to know whether there is a more performant alternative...
Thanks!

PyRanges is already multitCPU with ray. Have you seen https://biocore-ntnu.github.io/pyranges/using-multiple-cores.html ?
No need to do anything yourself

I also have a method apply_chunks for multi-cpu methods which are row-based.

Also, you can create a PyRanges from a dict of dfs, which is trivial to serialize.
import pyranges as pr
cpg = pr.data.cpg()
print(cpg.dfs)
cpg2 = pr.PyRanges(cpg.dfs)
`
``

Your question has made me realize that I should write a page about the pyranges internals in the docs. It’s simple really; it is just a dict of dfs. Since splitting the data on chromosomes/strands to perform chromosome/strandwise operations and then merging them into one data frame afterwards is silly expensive, pyranges objects contain a dict of dfs. The .df property of pyranges fools you into thinking it is represented in one 2D table, but this is not so :)
So constructing a pyranges from one df might take some time since it splits the data, but if you give a dict of dfs per chromosome (and/or strand it takes no time at all to create a pyranges object.
Anyways, closing this soon if you have no follow-up questions or comments.

See #40 also :)


autoware_web_controller port to .auto

Description
Sport to autoware_auto_msgs
autoware_vehicle_msgs/Engage to autoware_auto_vehicle_msgs/Engage
autoware_system_msgs/AutowareState to autoware_auto_system_msgs/AutowareState
ignore msgs, because, these message not exist in autoware_auto_msgs.
autoware_planning_msgs/msg/Approval
autoware_vehicle_msgs/ControlMode
autoware_planning_msgs/VelocityLimit
Review Procedure
Remarks

Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.

[x] Read pull request guidelines
[x] Code follows coding guidelines
[x] Assign PR to reviewer

Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.

[ ] Commits are properly organized and messages are according to the guideline
[ ] Code follows coding guidelines
[ ] (Optional) Unit tests have been written for new behavior
[ ] PR title describes the changes

Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.

[ ] All open points are addressed and tracked via issues or tickets
[ ] Write release notes

CI Checks

Build and test for PR / build-and-test-pr: Required to pass before the merge.
Build and test for PR / clang-tidy-pr: NOT required to pass before the merge. It is up to the reviewer(s). Found false positives? See the guidelines.
Check spelling: NOT required to pass before the merge. It is up to the reviewer(s). See here if you want to add some words to the spell check dictionary.

@YoheiMishina Please update the PR title to be more specific.

@YoheiMishina Please update the PR title to be more specific.

dane

Could you update this line?
https://github.com/tier4/AutowareArchitectureProposal.iv/blob/6a596a30bb5a1c23b9c20fdebddf3caa530acb7d/common/util/web_controller/autoware_web_controller/www/autoware_web_controller/index.html#L37

Could you update this line?
https://github.com/tier4/AutowareArchitectureProposal.iv/blob/6a596a30bb5a1c23b9c20fdebddf3caa530acb7d/common/util/web_controller/autoware_web_controller/www/autoware_web_controller/index.html#L37

Could you update this line?
https://github.com/tier4/AutowareArchitectureProposal.iv/blob/6a596a30bb5a1c23b9c20fdebddf3caa530acb7d/common/util/web_controller/autoware_web_controller/www/autoware_web_controller/index.html#L37

I update url : f2721d1cf7a4360900b8558db8a9ad4285ad5369


Add an upper limit to iter()

Hello,
I wanted to see your opinion on adding an upper limit to __iter__(). The reason for this is because I ran into a spout problem on streamparse/storm where, though the Kafka Consumer could read all the messages in correctly, the spout seemingly ran into an overflow problem and eventually timed out. For example, my consumer would successfully read in 2000 messages, but the spout would hang on the emit() of message 1771.
My wrapping code looks like this:
def __iter__(self):
        counter = 0
        limit = self.limit
        while True and counter < limit:
            message = self.consumer.consume(block=True)
            if not message:
                return
            counter += 1
            yield message

https://github.com/Parsely/pykafka/blob/3ea3a6b585b6bd1fd8472ff3947eaa8a6fe3f962/pykafka/balancedconsumer.py#L740
-jgujgu

Hi @jgujgu, and thanks for reaching out. I'm not sure that I see enough widely applicable utility in this feature to add it to pykafka. It seems like the example code you've provided here could be easily added to your application code. You could even use slicing syntax in your application code:
for message in consumer[:limit]:
    ...

If you can provide an example of a use case that this would make significantly simpler, it might be worth reconsidering.

I think queued_max_messages provides this functionality. Definitionally, it sounds like it: The maximum number of messages buffered for consumption in the internal


add testcase for issue #1293

Codecov Report

Merging #1294 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1294      +/-   ##
============================================
+ Coverage     86.35%   86.36%   +0.01%
- Complexity     5445     5446       +1
============================================
  Files           126      126
  Lines         19022    19022
  Branches       4218     4218
============================================
+ Hits          16427    16429       +2
+ Misses         1653     1651       -2
  Partials        942      942

Impacted Files
Coverage Δ
Complexity Δ

...json/parser/deserializer/JavaBeanDeserializer.java
88.9% <0%> (+0.28%)
227% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

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


New retention lease

Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Please close this PR as these are no longer required.


Improve configuration tooling

Describe the problem to be solved
Spegel can be configured through the helm chart values which are propagated to the container arguments; however, there is currently no mechanic to allow end users to configure the application through a config map. This will also be useful when other deployment tooling like kustomizations are used.
Proposed solution to the problem
Switch to using github.com/peterbourgon/ff/v3 to parse arguments or env vars.
As an example.
        containers:
        - args:
          - --mirror-resolve-retries=3
          - --mirror-resolve-timeout=3s

Create a config map:
apiVersion: v1
kind: ConfigMap
metadata:
  name: configuration
  namespace: spegel
data:
  MIRROR_RESOLVE_RETRIES: "3"
  MIRROR_RESOLVE_TIMEOUT: 3s

Consume the config map:
        containers:
          envFrom:
          - configMapRef:
              name: configuration

I am not a fan of environment variables for configuration as it forces flat configuration. Your argument has its merits, so the value this would bring could outweigh any future issues. Another idea would be to allow a configuration file instead, but that may take this idea to far for you?
The easy solution is to add environment variable annotations to the existing configuration struct properties.
https://github.com/alexflint/go-arg?tab=readme-ov-file#environment-variables

Generally best to support both (the benefit of github.com/peterbourgon/ff/v3).
Flags get pretty messy and pretty fast, especially when you have flags like --registries that accept multiple inputs. Flags are not convienient for automation, nor for devs wanting to invoke the binary locally for testing.
They are useful for interactive-shell invocations. For instance take a tool with two different modes, monitor and info, you could pass in either --monitor or --info but often avoided for configuration (other than specifying file path to a configuration file).

Support for ConfigMap to load in application configuration (common practice for k8s applications). This is ideal if/when start looking at support for Kustomize since end-users can declaritevly patch application configuration.
Still an option to pass in arguments to the go binary.
Ability to create local .env file that can be loaded in for local dev testing.
Unit-tests can pass in test independant env vars without neededing to exec the binary.


Feature-request: YOLOv4-tiny

Feature-request: YOLOv4-tiny (detector)

source code: https://github.com/AlexeyAB/darknet
cfg: https://raw.githubusercontent.com/AlexeyAB/darknet/master/cfg/yolov4-tiny.cfg
weights: https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-tiny.weights
discussion: https://github.com/AlexeyAB/darknet/issues/6067

There is required only 1 feature:

Add groups= and group_id= to the [route] layer.

[route]
layers=-1
groups=2
group_id=1

So if input is WxHxC, it divides input into 2 groups WxHx(C/2) (there are 2 groups: 0 and 1), and loads the 2nd group_1 WxHx(C/2).
If there are many layers specified in layers= parameter, then this will be done for each of the input layers specified in layer=, then results will be concatenated across channels.

@AlexeyAB  Thanks for support. I have implemented Yolov4-tiny, but results are slighly different, sizes of boxes in my results are approximately 1.5 to 2 times smaller than that of you. I see in yolo.cfg there is a 'resize' parameter = 1.5 in [yolo] layer. What is this mean ?

@hunglc007
Note, that both yolov3-tiny and yolov4-tiny don't use anchor 0, so they use only anchors 1-7:
1st [yolo] layer - mask = 3,4,5
2nd [yolo] layer - mask = 1,2,3

@AlexeyAB
How should we change these parameters to make this code work with yolov4-tiny-3l (https://github.com/AlexeyAB/darknet/blob/master/cfg/yolov4-tiny-3l.cfg)
config.py
#YOLO options
__C.YOLO                      = edict()

__C.YOLO.CLASSES              = "./data/classes/obj_old.names"
__C.YOLO.ANCHORS              = [12,16, 19,36, 40,28, 36,75, 76,55, 72,146, 142,110, 192,243, 459,401]
__C.YOLO.ANCHORS_V3           = [10,13, 16,30, 33,23, 30,61, 62,45, 59,119, 116,90, 156,198, 373,326]
__C.YOLO.ANCHORS_TINY         = [23,27, 37,58, 81,82, 81,82, 135,169, 344,319] # yolov4-tiny-2l.cfg (mask = 1,2,3)
#__C.YOLO.ANCHORS_TINY         = [10,14, 23,27, 37,58, 81,82, 135,169, 344,319] # yolov4-tiny-2l-custom.cfg (mask = 0,1,2)
#__C.YOLO.ANCHORS_TINY         = [12,16, 19,36, 40,28, 36,75, 76,55, 72,146, 142,110, 192,243, 459,401] # yolov4-tiny-3l-custom.cfg (mask = 0,1,2) -> not working
__C.YOLO.STRIDES              = [8, 16, 32]
__C.YOLO.STRIDES_TINY         = [16, 32]
__C.YOLO.XYSCALE              = [1.2, 1.1, 1.05]
__C.YOLO.XYSCALE_TINY         = [1.05, 1.05] #yolov4-tiny-2l
#__C.YOLO.XYSCALE_TINY         = [1.05, 1.05, 1.05] #yolov4-tiny-3l-custom.cfg -> not working
__C.YOLO.ANCHOR_PER_SCALE     = 3
__C.YOLO.IOU_LOSS_THRESH      = 0.5

yolov4.py
def YOLOv4_tiny(input_layer, NUM_CLASS):
    route_1, conv = backbone.cspdarknet53_tiny(input_layer)

    conv = common.convolutional(conv, (1, 1, 512, 256))

    conv_lobj_branch = common.convolutional(conv, (3, 3, 256, 512))
    conv_lbbox = common.convolutional(conv_lobj_branch, (1, 1, 512, 3 * (NUM_CLASS + 5)), activate=False, bn=False)

    conv = common.convolutional(conv, (1, 1, 256, 128))
    conv = common.upsample(conv)
    conv = tf.concat([conv, route_1], axis=-1)

    conv_mobj_branch = common.convolutional(conv, (3, 3, 128, 256))
    conv_mbbox = common.convolutional(conv_mobj_branch, (1, 1, 256, 3 * (NUM_CLASS + 5)), activate=False, bn=False)

    return [conv_mbbox, conv_lbbox]

Thank you!


Dynamic particles in background

Hi,
I would like to add dynamic particles in background to make our website look more attractive.
Kindly assign me this issue under LGMSOC'21.

Okk. If you want to.
But It can make the website ugly, so if I don't like it I will close this issue without merging your PR.

Yeah sure.
But I won't disappoint you.


Log tracking events depending on logged out event type

@caseydoran thoughts on the names of these events?  They don't match webapp, because the app behavior isn't the same (we don't open a registration modal).

Cool with me if @Justin-Holmes is cool with it. For me the key is being able to report on it.


:style on a custom component does not generate code using vue-server-renderer

Vue.js version
2.0.3
Reproduction Link
http://jsfiddle.net/jason_sanjose/0aat08kh/1/
Steps to reproduce

Assume two custom components parent and child. In parent's template, use child with inline styles <child :style="styleComputed"></child>
Render in browser
Render on server
Compare

What is Expected?
Inline styles should work consistently for browser and server environments.
What is actually happening?
Server does not render :style attribute on child
// Browser

// Server

As a workaround, in the child template, I've added :style to the root element and passed down a style as a prop, e.g.

It's not obvious from the docs if <child :style="styleComputed"/> is valid code. I suppose an argument could be made that only custom properties defined in child should be accepted?

I think this should be considered as a bug, it causes inconsistence between client side render and server side render. I am looking into it.

Hi, style is a special module that is available to all elements and components. So I don't think it is a undeclared props issue.
There is no problem with the compiler. I print both render functions' text. They are the same.
The problem is, at runtime, every instance will have an _update, where 'style' module will patch the element. sytle module will find VNode's element and set style to it, which in this case is the div.bug.
But at server rendering, the render function h('bug') will not trigger module code, thus the bug.


Python3 snmpsimd.py and Redis variation

Hello Ilya! I am trying to migrate from py2 version of snmpsim to py3 due to python2 getting deprecated on Fedora. However, I am having some troubles running snmpsimd with python3 and redis variation module. I confirmed that this only happens with snmpsimd for python3.
Error
when querying with snmpwalk/snmpget :
Using /home/l/data/redis.snmprec controller selected by candidate b'86a1b907d54bf7010394bf316e183e67'; transport ID <IP_ADDRESS>.<IP_ADDRESS>, source address <IP_ADDRESS>, context name "b'86a1b907d54bf7010394bf316e183e67'"
SNMP EngineID 0x80004fb8056c6f63616c686f73742e6c6f63616c6418cf1be0, transportDomain (1, 3, 6, 1, 6, 1, 1, 0), transportAddress ('<IP_ADDRESS>', 60710), securityModel 1, securityName 86a1b907d54bf7010394bf316e183e67, securityLevel 1
Request var-binds: <IP_ADDRESS>.2.1=<>, flags: EXACT, GET
ERROR data error at /home/l/data/redis.snmprec controller for <IP_ADDRESS>.2.1: can't concat str to bytes
Response var-binds: <IP_ADDRESS>.2.1=<No Such Instance currently exists at this OID>

Full log: here
Steps to Reproduce

Installing snmpsim & redis

$ python3 -m virtualenv venv
$ source venv/bin/activate
$ pip install snmpsim
$ pip install redis
$ snmpsimd.py --version
SNMP Simulator version 0.4.7, written by Ilya Etingof<EMAIL_ADDRESS>Using foundation libraries: pysnmp 4.4.11, pyasn1 0.4.6.
 Apparently, py-redis operates on bytes on Py3, while it used to be str on Py2. That causes all sorts of weirdness...
Let me see if I can get that back to track.

The latest commit to master hopefully fixes this problem.

Hi again, thanks for a prompt response.
I am not seeing str/bytes error, however snmpsimd.py is terminating with the following now (upon receiving snmpwalk):
Request var-binds: <IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>=<>, flags: NEXT, GET
Response var-binds: <IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>=<22906399>
SNMP EngineID 0x80004fb8056c6f63616c686f73742e6c6f63616c6410528500, transportDomain (1, 3, 6, 1, 6, 1, 1, 0), transportAddress ('<IP_ADDRESS>', 43272), securityModel 1, securityName 86a1b907d54bf7010394bf316e183e67, securityLevel 1
Request var-binds: <IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>=<>, flags: NEXT, GET
Shutting down variation modules:
Variation module "redis" shutdown OK
Variation module "writecache" shutdown OK
Variation module "sql" shutdown OK
Variation module "notification" shutdown OK
Variation module "multiplex" shutdown OK
Variation module "numeric" shutdown OK
Variation module "subprocess" shutdown OK
Variation module "error" shutdown OK
Variation module "delay" shutdown OK
Process terminated
ERROR Traceback (most recent call last):;
ERROR   File "./scripts/snmpsimd.py", line 346, in processVarBinds;    str(univ.OctetString('.'.join(['%s' % x for x in oid]))));
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/snmpsim/record/search/database.py", line 210, in lookup;    return self._db[oid];
ERROR KeyError: '1...3...6...1...2...1...4...3.1...1...1...4...1';
ERROR ;During handling of the above exception, another exception occurred:;;
ERROR Traceback (most recent call last):;
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/carrier/asyncore/dispatch.py", line 46, in runDispatcher;    use_poll=True, map=self.__sockMap, count=1);
ERROR   File "/usr/lib64/python3.7/asyncore.py", line 207, in loop;    poll_fun(timeout, map);
ERROR   File "/usr/lib64/python3.7/asyncore.py", line 188, in poll2;    readwrite(obj, flags);
ERROR   File "/usr/lib64/python3.7/asyncore.py", line 123, in readwrite;    obj.handle_error();
ERROR   File "/usr/lib64/python3.7/asyncore.py", line 108, in readwrite;    obj.handle_read_event();
ERROR   File "/usr/lib64/python3.7/asyncore.py", line 422, in handle_read_event;    self.handle_read();
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/carrier/asyncore/dgram/base.py", line 170, in handle_read;    self._cbFun(self, transportAddress, incomingMessage);
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/carrier/base.py", line 85, in _cbFun;    self, transportDomain, transportAddress, incomingMessage;
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun;    self, transportDomain, transportAddress, wholeMsg;
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/proto/rfc3412.py", line 433, in receiveMessage;    PDU, maxSizeResponseScopedPDU, stateReference);
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 140, in processPdu;    (self.__verifyAccess, snmpEngine));
ERROR   File "./scripts/snmpsimd.py", line 1378, in handleMgmtOperation;    PDU, (None, snmpEngine)  # custom acInfo;
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 297, in handleMgmtOperation;    rspVarBinds = mgmtFun(varBinds, (acFun, acCtx));
ERROR   File "./scripts/snmpsimd.py", line 583, in readNextVars;    varBinds, **self.__getCallContext(acInfo, True));
ERROR   File "./scripts/snmpsimd.py", line 349, in processVarBinds;    offset = searchRecordByOid(oid, text, self.__textParser);
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/snmpsim/record/search/file.py", line 85, in searchRecordByOid;    if midval < oid:;
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pyasn1/type/base.py", line 300, in __lt__;    return self._value < other;
ERROR TypeError: '<' not supported between instances of 'tuple' and 'str';
ERROR ;During handling of the above exception, another exception occurred:;;
ERROR Traceback (most recent call last):;
ERROR   File "./scripts/snmpsimd.py", line 1835, in <module>;    transportDispatcher.runDispatcher();
ERROR   File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/carrier/asyncore/dispatch.py", line 50, in runDispatcher;    raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info())));
ERROR pysnmp.error.PySnmpError: poll error: Traceback (most recent call last):;;  File "./scripts/snmpsimd.py", line 346, in processVarBinds;    str(univ.OctetString('.'.join(['%s' % x for x in oid]))));;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/snmpsim/record/search/database.py", line 210, in lookup;    return self._db[oid];;KeyError: '1...3...6...1...2...1...4...3.1...1...1...4...1';;;During handling of the above exception, another exception occurred:;;;Traceback (most recent call last):;;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/carrier/asyncore/dispatch.py", line 46, in runDispatcher;    use_poll=True, map=self.__sockMap, count=1);;  File "/usr/lib64/python3.7/asyncore.py", line 207, in loop;    poll_fun(timeout, map);;  File "/usr/lib64/python3.7/asyncore.py", line 188, in poll2;    readwrite(obj, flags);;  File "/usr/lib64/python3.7/asyncore.py", line 123, in readwrite;    obj.handle_error();;  File "/usr/lib64/python3.7/asyncore.py", line 108, in readwrite;    obj.handle_read_event();;  File "/usr/lib64/python3.7/asyncore.py", line 422, in handle_read_event;    self.handle_read();;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/carrier/asyncore/dgram/base.py", line 170, in handle_read;    self._cbFun(self, transportAddress, incomingMessage);;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/carrier/base.py", line 85, in _cbFun;    self, transportDomain, transportAddress, incomingMessage;;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun;    self, transportDomain, transportAddress, wholeMsg;;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/proto/rfc3412.py", line 433, in receiveMessage;    PDU, maxSizeResponseScopedPDU, stateReference);;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 140, in processPdu;    (self.__verifyAccess, snmpEngine));;  File "./scripts/snmpsimd.py", line 1378, in handleMgmtOperation;    PDU, (None, snmpEngine)  # custom acInfo;;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 297, in handleMgmtOperation;    rspVarBinds = mgmtFun(varBinds, (acFun, acCtx));;  File "./scripts/snmpsimd.py", line 583, in readNextVars;    varBinds, **self.__getCallContext(acInfo, True));;  File "./scripts/snmpsimd.py", line 349, in processVarBinds;    offset = searchRecordByOid(oid, text, self.__textParser);;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/snmpsim/record/search/file.py", line 85, in searchRecordByOid;    if midval < oid:;;  File "/home/l/snmpsim/venv/lib/python3.7/site-packages/pyasn1/type/base.py", line 300, in __lt__;    return self._value < other;;TypeError: '<' not supported between instances of 'tuple' and 'str';caused by <class 'TypeError'>: '<' not supported between instances of 'tuple' and 'str';


Added colors decoded from a hexadecimal string

Thank you @Joannis, I've just merged a very similar PR #69 this morning, which supports integer literals, which can be hex too:
let color: Color = 0xFF00FF

Do you think there's a benefit in supporting a similar syntax for string hex values? In my opinion the downside is that the string-based initializer becomes optional and requires users to unwrap that value before passing it as an argument to props, while with an integer literal we're always sure it's a valid unsigned 32-bit value. But maybe I'm missing something 🤔

BTW, CI build fails as you need to run swiftformat . in your root clone directory. I'm thinking we should use something like Danger to report these kind of issues, PRs to enable that are very welcome. I've previously asked houndci.com support if they can integrate with SwiftFormat somehow, but got no response so far.

I noticed, and I think your solution is more common in addition to it being performant. The reason I wanted to add an initializer like this is for color configs and colors loaded from APIs. It's a bit more niche for sure, so I'd completely understand it if it shouldn't be a part of the main library.
On the 32-bit integer notice. You're throwing away the highest 8 bits which could hold an alpha value. I'd assert() that those aren't set, so that there's no room for confusion or unclarity.

@Joannis This makes sense, loading from configs is a great use case.
Can you please run swiftformat . with the latest SwiftFormat version in the root of your git clone and fix remaining linter violations highlighted by Hound?
Have you ever seen alpha encoded in hex? I wonder if it's better to decode it when it's available rather than assert. OTOH, default alpha value is 1, while absent bits mean 0, so there is no good way to distinguish between 0 alpha and implied alpha 1, if I understand this correctly?
Thanks!

Codecov Report

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

@@           Coverage Diff           @@
##           master      #70   +/-   ##
=======================================
  Coverage   95.05%   95.05%
=======================================
  Files           5        5
  Lines         384      384
=======================================
  Hits          365      365
  Misses         19       19

Continue to review full report at Codecov.

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

Hound will be the bane of my existence...

I don't think I agree with trimming down comments so that they fit on 80 characters. It feels like I'm fighting against the natural length of a human sentence. Especially considering there's code indentation there.

@Joannis no probs, up to you. I personally prefer to stick to 80 for everything as it improves accessibility for people who use large fonts due to vision problems or people who don't have external wide monitors or read diffs on phones/tablets etc.

And yes, it's more of a problem because of IDEs and GitHub diff viewer, which don't autowrap long lines cleanly

I've never taken that use case as a very strict/serious one 🙈
But yeah, I tend to think of a maximum line length somewhere along the lines of 120 characters.

BTW, do you know if SwiftFormat supports separate settings for comments and code lines? I think I wouldn't mind relaxing comment line length if you find wrapping comment lines not working for you

You can, using - ignores_comments. Shall I add that? It restricts comments to 120 character lines.


Interface for adhoc elements added and removed from the DOM.

Currently, we can add elements to the main container, but there's no way of removing them after they are added. This should take the form of an that returns a "handle" to the element, and then another action which takes in a handle and removes the element.
With this, we should take some things out of EditorState, and deal with them more locally.

This is superceded by #57


Cannot stop(); event reactor not currently active

I am running async producer as a long running script. First and second batch of messages is published successfully, after that it fails with following LogicException
"exception" => LogicException {     #message: "Cannot stop(); event reactor not currently active"     #code: 0     #file: "vendor/amphp/amp/lib/NativeReactor.php"     #line: 138
Using v<IP_ADDRESS> of library.

@smarijic can you please send us a failing functional test that reproduces the behaviour your experiencing?

I've tried to reproduce this behavior isolated from rest of the project and it turns out this exception is thrown when you are using async producer but set $config->setIsAsyn(false), when this setting is not called, producer works normal so far.
Your example for async producer shows this flag to be set to false.
I am not sure how to handle this. So far it looks like misconfiguration issue.

@smarijic humm tbqh I never managed to have something working with $config->setIsAsyn(true)... I'd suggest you to keep it set to false (even in the README it says to use it as false for async producer).

Yes, my first implementation was based on README, but oddly for me it only works with isAsyn set to true. I'll create functional test where this issue in amphp occurs.

@smarijic awesome, thank you!


Question/Feature Request/PR offer - passing **kwargs to compute() within to_parquet()

In the final steps of dataframe's to_parquet() method, .compute() is called to trigger the write action:
https://github.com/dask/dask/blob/master/dask/dataframe/io/parquet/core.py#L455-L457
Is there a reason that there are no **kwargs passed in to the .compute() method?
Context:
I am doing some work on the delayed dataframe to apply resource constraints to certain tasks, and would like to ensure those tasks hang around after I call to_parquet().
I am aware that I could pass in compute=False, and then manually call .compute(optimize_graph=False) on the returned object, but I think it would be neater if we could pass the kwargs straight through to the to_parquet() function.
If there are no objections, I can make a PR to this effect :)

It looks like that function also passes kwargs to the underlying Parquet engine (pyarrow, fastparquet, cudf).  So it might get a bit complicated to pass some kwargs there and the others to compute.
In hindsight, it probably would have been better to add an explicit compute_kwargs=... keyword rather than depend on **kwargs.

If there are no objections, I can make a PR to this effect :)

I think that this change would be good if there is good precedent that other dask dataframe operations, like to_csv or to_hdf do this.  Otherwise, I would suggest something like a compute_kwargs.  Whatever choice we make it should be consistent for all of the saving methods.
(also, thank you for offering to help, regardless)

I'm happy to contribute the compute_kwargs=... changes to the different dataframe to_... methods in one larger PR,  or many smaller ones (guidance wanted on this).
I wonder if trying to pass the kwargs around everywhere would be a more complicated change to make.

The first step to this is to look at the other methods like to_csv and
to_hdf and see what they do.  That will inform what we should do here.
On Thu, Mar 19, 2020 at 1:57 PM Krishan Bhasin<EMAIL_ADDRESS>wrote:

I'm happy to contribute the compute_kwargs=... changes to the different
dataframe to_... methods in one larger PR, or many smaller ones (guidance
wanted on this).
I wonder if trying to pass the kwargs around everywhere would be a more
complicated change to make.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/6026#issuecomment-601412911, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTEYFOQDX4LBEDTMAADRIKBJ3ANCNFSM4LPQBB2Q
.

It looks like it would be relatively simple to pass compute_kwargs=... to to_csv(), to_parquet(), and to_json(), as they all end in a .compute() call.
to_hdf() does some stuff with compute_as_if_collection(); after dropping down the chain I can't see it call .compute() directly.
compute_as_if_collection() looks like it does something to pick up a scheduler, optimise the graph, and then return the computed object? I'm not really sure what happens here, or what this compute kwargs change might look like for it.
def compute_as_if_collection(cls, dsk, keys, scheduler=None, get=None, **kwargs):
    """Compute a graph as if it were of type cls.

    Allows for applying the same optimizations and default scheduler."""
    schedule = get_scheduler(scheduler=scheduler, cls=cls, get=get)
    dsk2 = optimization_function(cls)(ensure_dict(dsk), keys, **kwargs)
    return schedule(dsk2, keys, **kwargs)


Add Production Build

This pull request should resolve #58.

As i discussed in #58 the multistage dockerfile for the production build for the ui container seems to work. But when the when the whole docker-compose is started the startpage will throw a bad 502 Bad Gateway.

As i discussed in #58 the multistage dockerfile for the production build for the ui container seems to work. But when the when the whole docker-compose is started the startpage will throw a bad 502 Bad Gateway.

@NJaku01 Please try out the new compose configurations - the prerendered UI seems to be noticeably quicker.
Note that you have to use a different docker-compose command now to run the development version of the UI - see README.md !

@NJaku01 Please try out the new compose configurations - the prerendered UI seems to be noticeably quicker.
Note that you have to use a different docker-compose command now to run the development version of the UI - see README.md !


Upgrade html5ever to a TendrilSink based API.

Waiting on https://github.com/servo/html5ever/pull/188.

Alright, thanks for your comments!


Add functionality for calculating provincial interim NO2 metric value

Functionality for calculating the NO2 metric should follow the methodologies, procedures, and requirements in the Guidance on Application of Provincial Interim Air Quality Objectives for NO2 and SO2.


Previous day data is not updated in graph eventually.

When I check the data at midnight the daily count is set to 0 and the graph is not updated. It shows data until the day before yesterday. Also, the logarithmic view is not working.

I checked this data around 1 AM.

@Jasmin2895 thanks for filing the issue!
About the data, the timeseries graphs are filled only till T-minus one day, hence if today is April 2, the data for timeseries is only available till April 1 since the day is not over yet. With that said, the graphs are not reset at 12am IST, it takes some time for the data team to sanitize and verify the data for said day before releasing its data, hence the day :)
Regarding logarithm, it is intentionally disabled for dailys. Correct me if I'm wrong, but don't logarithm graphs give meaningful information only for continuous data and not for discrete data?

@jeremyphilemon yes, the logarithmic graph shouldn't be used to show data on a daily basis the best graph is the bar graph or the stacked bar graph which is already used! 😄

Haha glad that got resolved :)


fix. CodeIgniter/View/Parser::render allow other extension

Fix bug from #2086
reference CodeIgniter/View/View::render

The extension should be configurable instead of hardcoded php.
I would expect a constant i.e. VIEW_FILE_EXTENSION

This should have unit tests to demonstrate that a .html or whatever view file can be successfully rendered.


[Question]: ragflow-mysql keep waiting status

Describe your problem
when i check the logs , it shows
ragflow-mysql  |  rosetta error: unhandled auxillary vector type 28

Is it on MAC OS?
If so, change  it to mariaDB and set MACOS=1 in docker/.env

Is it on MAC OS? If so, change it to mariaDB and set MACOS=1 in docker/.env

I tried this, mysql container works, but same error go to ragflow-server container

Seems it's a system issue in old MACOS version, after i upgrade to Sonoma, it works, Thanks for the help


may i know how we get storage id for a storage account, which i dont find anywhere.

[Enter feedback here]

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

ID: 060d171a-aeae-f291-ff7e-3642dbc9e2ba
Version Independent ID: 0f1e37e8-3468-51c5-1e9c-fb60f0fb3149
Content: Enable diagnostic logging in Azure Traffic Manager
Content Source: articles/traffic-manager/traffic-manager-diagnostic-logs.md
Service: traffic-manager
GitHub Login: @KumudD
Microsoft Alias: kumud

need this storage id as to retrieve the logs/enable the logs and this is the place where i see the ATM diagnostic logs are stored, may i know what exact logs are stored in the atm logs.
Set-AzDiagnosticSetting -ResourceId  -StorageAccountId  -Enabled $true
https://docs.microsoft.com/en-us/azure/traffic-manager/traffic-manager-diagnostic-logs#enable-diagnostic-logging

i can get this i think

unable to enable the logs on ATM, i am using azure power shell AZ instead of azureRM module.

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .


prefetch console.log not called

<a onMouseEnter={() => {prefetch('/about') && console.log('prefetching /about!')}}>About
The console.log is never called

Basically, this is your code and an event handler for  tag.
I think there's nothing related to Next.js.
(May be this is a question you could ask on Stack Overflow)

@bestwestern the prefetch function returns undefined so the && will short-circuit and the console.log never executed
https://github.com/zeit/next.js/blob/master/lib/prefetch.js#L102

Sorry - I was too fast to submit. It is not my code. It is from the example https://github.com/zeit/next.js/blob/master/examples/with-prefetching/components/Header.js

@bestwestern Ah ha!
That's our code.
May be we need to fix it with something better.

I would like to try

by changing the a onMouseEnter from:
() => prefetch('/about') && console.log('prefetching /about!')
to
() => {prefetch('/about'); console.log('prefetching /about!');}
I am able to get the console.log to work. In either case, I did not see the prefetch function return "undefined".

See #559

@PStoner3
I am pretty sure it still returns undefined (try console.log(prefetch('/about'))
This issue was due to the fact that prefetch() does not return a truthy value and therefore second part of __ && __ is never called.
prefetch has an 'async nature' and cannot immediately return anything useful - if anything it should have an optional callback parameter.

@bestwestern now we are returning a promise with https://github.com/zeit/next.js/pull/617


reresnet18

Can the ARC module be applied to REResNet-18?

could you please provide the paper name for "REResNet"?

https://github.com/csuhan/ReDet


Update README file

@gareth-knowles  JDIT

@gareth-knowles  which license?

I see it is already done.


Mux Player React stops playing video when tab loses focus in Chrome

Is there an existing issue for this?

[X] I have searched the existing issues

Which Mux Elements/Packages does this apply to? Select all that apply
mux-player-react
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
Using MuxPlayer, when a video is playing and another tab is focused or the browser is minimized, the video automatically stops playing
Reduced test case
No response
Steps to reproduce

Make a MuxPlayer
2.Play a video
Change a tab while the video is playing

Current Behavior
The video stops
Expected Behavior
The video and sound should keep playing (like YouTube or other video sites)
Errors
No response
What version of the package are you using?
No response

thanks for the feedback. I did a quick test but can't reproduce this on my end. do you have an example online? thanks
I tried it out here https://elements-demo-nextjs.vercel.app/MuxPlayer?title="Landscape+VOD+(White+Background)"&playbackId="VcmKA6aqzIzlg3MayLJDnbF55kX00mds028Z65QxvBYaA"&streamType="on-demand"&metadata={"video_id"%3A"videoId1"%2C"video_title"%3A"Title%3A+Landscape+VOD+(White+Background)"}

I'm experiencing the same issue with Safari on MacOs Sonoma. But it works fine on Firefox or Chrome.


Issue Uploading Sketch

I see that it says I can use this to upload sketches aside from just firmware, so I figured I would give it a shot. I've got my Teensy 4.1 plugged in, tyupdater running, and it even appears I'm able to reset the board through the software, but when I tried to upload a sketch it was telling me that it didn't recognize the extension. Is there something I need to do on top of just writing the code for tyupdater to be able to load my program on the Teensy 4.1?
I'm running Arch Linux, and I just pulled the repository today and built it.
I apologize if this isn't the best place to ask this, I just didn't know where else to ask.

Only HEX files are uploaded - built from sketches or other source files when not from within the Arduino IDE.
Tytools doesn't build HEX files or deal with source code - but when supplied a valid HEX can upload it to a Teensy over USB.

Only HEX files are uploaded - built from sketches or other source files when not from within the Arduino IDE.
Tytools doesn't build HEX files or deal with source code - but when supplied a valid HEX can upload it to a Teensy over USB.


How to use? I'm confused.

When I try to enter the following code and hit the "Build" button, I see no output.
import { initializeApp } from "@firebase/app";
import { getAnalytics } from "@firebase/analytics";
import { getAuth, onAuthStateChanged, GoogleAuthProvider, signOut } from "@firebase/auth";
import { getFirestore } from "@firebase/firestore";
Please help me.

 What you need to do is to either use some of your imports of make all those imports exports, e.g.
export { initializeApp } from "@firebase/app";
export { getAnalytics } from "@firebase/analytics";
export { getAuth, onAuthStateChanged, GoogleAuthProvider, signOut } from "@firebase/auth";
export { getFirestore } from "@firebase/firestore";

The final result of switching to exports is
(Open Bundle)(https://bundlejs.com/?q=@firebase/app,@firebase/analytics,@firebase/auth,@firebase/firestore&treeshake=[{+initializeApp+}],[{+getAnalytics+}],[{+getAuth,onAuthStateChanged,GoogleAuthProvider,signOut+}],[{+getFirestore+}])

Thanks for helping me!
But I would like to suggest, what if you add a feature to download the output as a file instead of copying it to the clipboard? because the code can't be copied if there are too many.

That's fair, I'll try to add that


[WIP] vertical tensor recycling

optimize memory by recycling of tensors within a single clone

Codecov Report

Merging #163 into master will increase coverage by 0.31%.
The diff coverage is 98.91%.

@@            Coverage Diff             @@
##           master     #163      +/-   ##
==========================================
+ Coverage   77.15%   77.47%   +0.31%
==========================================
  Files          66       66
  Lines        5270     5349      +79
==========================================
+ Hits         4066     4144      +78
- Misses       1204     1205       +1

Impacted Files
Coverage Δ

onmt/utils/Memory.lua
100% <100%> (ø)
:arrow_up:

onmt/utils/MemoryOptimizer.lua
97.34% <98.87%> (+0.94%)
:arrow_up:

Continue to review full report at Codecov.

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

closing - it is replaced by memory graph


Ingester deadlock

Not many details right now; rolled e515598 to dev, and everything locked up.  Rolled back distributor and querier, still locked up.  Rolled back ingester, and eventually everything worked.
This is what was rolled out:
7846dd7 HTTP over gRPC: encode HTTP requests as gRPC requests (#235)
f01a7a5 Merge pull request #239 from weaveworks/238-ruler-goroutines
d965706 Fix empty-label query semantics (#228)
9fb3d9d Remove UI code. (#230)
365faad Try and flush failed chunks repeatedly when we're shutting down. (#234)
c47661d Merge pull request #237 from weaveworks/grpc-cleanup
9764257 Merge pull request #236 from weaveworks/fix-log

Cant reproduce this locally, even with multiple ingesters and some exiting.  Perhaps this was somehow caused by the panic from the concurrent map writes?  if it paniced whilst holding a lock?

Repro'd on dev, heres the stack trace: https://gist.github.com/tomwilkie/72796e7332db4bc55b55107487c7d55c


feat: Snapshot testing on View version with Paparazzi

!snapshot

!snapshot

!snapshot

!snapshot

!snapshot


CLIAVATAR-167: Stop player thumbnails from being NA

This effects the avatar thumbnails in the social notifications and the
menu player list thumbnails.

Should the Block/FriendPlayerPrompts also be updated to use the new API?

@ConorGriffin37
Yes, the Block/FriendPlayerPrompts could also be update to use this, thanks for volunteering :+1:


CLI Override Is Wrong For Booleans

I'm getting the wrong results with CLI override for something like --run_training false ... this works if you specify the boolean in the config file, but it's just converting the string "false" to True if you try with a CLI override.
I can see here: https://github.com/krandiash/quinine/blob/master/quinine/common/argparse.py where you could just update the value of the args that are booleans (say around line 112) with distutils.util.strtobool (which will turn "false" into False) ... I'm too lazy to figure out how to figure out which params are bools and use distutils.util.strtobool ... maybe I'll see if I see how to fix this ... but I guess it should handle booleans the same way as it does when they are in the config file.

See pull request to debate my solution ...


tests: CONFIG_ARC_INIT is n by default

Commit 8525944c5477e48fb65c7651e28b372da277d011
tests: power: refactor power_states test

Re-introduced CONFIG_ARC_INIT=n that isn't required and causes build
errors for sanitycheck.
Fixes #9444
Signed-off-by: Kumar Gala<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master    #9445   +/-   ##
=======================================
  Coverage   52.17%   52.17%
=======================================
  Files         212      212
  Lines       25892    25892
  Branches     5561     5561
=======================================
  Hits        13508    13508
  Misses      10126    10126
  Partials     2258     2258

Continue to review full report at Codecov.

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


refactor(translation): Replace to use ResourceUrn instead SimpleUrn

Contains
Prepare to extract I18n as Subsystem.
Part of #4304.
It required for extract AutoConfig.
How to test

Run main menu. See that text rendered normally
Run game. See that text rendered normally.

same for all occurrences

@DarkWeird I think a refactor in intellij might've been easier than just merging the suggestions :see_no_evil:


check(PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION) should check the android system location setting

Bug

check(PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION)
CAN ONLY check if location permission of an APP had been turned on/off，but
CAN NOT check if the user sets the location permission of the android system as FINE_LOCATION (High accuracy) or not.
Environment info

React native info output:
 System:
    OS: macOS 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 884.84 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 10.16.3 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 23, 25, 26, 27, 28, 29
      Build Tools: 23.0.1, 23.0.2, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.3, 29.0.2
      System Images: android-24 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8<IP_ADDRESS>91312
    Xcode: 11.1/11A1027 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: 0.60.5 => 0.60.5

Library version: 2.0.3
Android version: 7.0 and 8.1.0
Steps To Reproduce

Copy the following sample code into an android project
Run the app on an android device
Turn on the location permission of the android system
Turn on the location permission of the APP
Turn off the location permission of the android system (OR set to a mode except 'High accuracy')
now the check result would be 'granted' (It shouldn't)

Describe what you expected to happen:

Would get 'denied' or 'blocked', but not 'granted'
(otherwise, the status would be meaningless)

Reproducible sample code
import {check, PERMISSIONS} from 'react-native-permissions';

check(PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION)
      .then(result => {
        console.log(result);  // would be "granted"
      })
      .catch(error => {
        console.log('error')
      });

@evilrescuer The android part of this lib is a slightly upgraded version of PermissionAndroid, thus it does not offers more than permission checking / requesting.
By `check if the user sets the location permission of the android system as FINE_LOCATION (High accuracy), do you mean checking if the Location services are enabled?

Yes, as we know, there are system location permission and app location permission in android.

The system location permission has three kinds of mode (high accuracy + battery saving + device only).

The app location permission only has a switch

It seems that we would know if the app has the permission of high accuracy using check(PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION)
But, unfortunately, it doesn't work well. Actually, this API shows if we open the switch (in app location permission, it doesn't matter to high accuracy in the system location permission).
I think the result in PermissionAndroid is also wrong and confusing. And this library can be better.
Cause now, I need to write my own native method for RN code to call when checking the permission, like this:
// android code
import android.location.LocationManager;

LocationManager locationManager
        = (LocationManager) reactContext.getSystemService(reactContext.LOCATION_SERVICE);
boolean gps = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
boolean network = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
// if both gps and network is true, then `high accuracy` in `system location permission` is opened.

// RN code
// 1. call the native method to get the status of `system location permission`
// 2. call `check(PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION)` to get the status of `app location permission`
// if both of them are true, then the app is ok to get `high accuracy`

https://github.com/react-native-device-info/react-native-device-info#getAvailableLocationProviders

@zoontek  can we add this method (getAvailableLocationProviders) into this library? It would be nice to have the possibility to detect if location service enabled without installing extra dependencies.
If you OK, I'll make a pr

@tr3v3r No, I'd rather not. This library focus on permissions and if each of the handler come with its own set of helpers, it could become huge.

as current device-info maintainer, that's what my lib is for, and likewise I won't add any permissions stuff over there ;-)


Anchor box points location

🚀 Feature Request
Is there any way to return the xyxy or xywh of the anchor box when i predict with the model. i dont know if the utils are the same or not
Proposed Solution (Optional)
No response

Hey @Justinfungi, you can access these in the following manner:
for image_prediction in images_predictions:
    class_names = image_prediction.class_names
    labels = image_prediction.prediction.labels
    confidence = image_prediction.prediction.confidence
    bboxes = image_prediction.prediction.bboxes_xyxy

    for i, (label, conf, bbox) in enumerate(zip(labels, confidence, bboxes)):
        print("prediction: ", i)
        print("label_id: ", label)
        print("label_name: ", class_names[int(label)])
        print("confidence: ", conf)
        print("bbox: ", bbox)
        print("--" * 10)

        # You can use the detection results for various tasks, such as:
        # - Filtering objects based on confidence scores or labels
        # - Analyzing object distributions within the images
        # - Calculating object dimensions or areas
        # - Implementing custom visualization techniques
        # - ...

More details about model predictions can be found in our docs

Thank you so much


chore(test): use root module in test helper

removes duplicated code for root patch exists in root util module

This PR applies small refactoring to test-helper removes duplicated code for root patching, use root module instead.

I'll leave this PR around half day to see if there's suggestion before check in.

Merged with d5adbd4.


Lints

Adds various lints and fixes our implementations. This ensures items are always documented and we don't miss any in CI. Thanks!

I've disabled the router bench temporarily; we don't really use it much anymore, but can always spin it back up if we want to.

And I've restored the router bench. All Server::respond does is clone various things and then call the router. This should be close enough to the original bench.

See also https://github.com/http-rs/async-sse/pull/11


haste-task-jest: change api to allow passing argv directly into jest, resolve immediately if watch is used

Codecov Report

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

@@           Coverage Diff           @@
##           master     #141   +/-   ##
=======================================
  Coverage   95.37%   95.37%
=======================================
  Files          23       23
  Lines         238      238
  Branches       30       30
=======================================
  Hits          227      227
  Misses         10       10
  Partials        1        1

Continue to review full report at Codecov.

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


roAssociativeArray is missing ifEnum methods

https://developer.roku.com/docs/references/brightscript/interfaces/ifenum.md

Merged on PR #323


Could not start plugin

When starting the plugin I get the following message: "Image ghcr.io/lavinir/aarch64-hassonedrive:2.3.1 does not exist for addon_de91e161_hassio_onedrive_backup"
Please can you help me. Thank you so much.
Screenshot attached

I reloaded the plugin again and it worked. I don't know what could have happened.

Seeing the same problem now multiple times. What do you mean with „reload the plugin“ ?


matlab.step() problem

Hi there, im trying to get the stepresponse of a transferfunction.
import numpy as np
import matplotlib.pyplot as plt
import sympy as sym
import control as cl

from control import matlab
from sympy import Symbol, Poly
from scipy import signal

s = Symbol('s')
G = (s+1)/(s**2+s+1)

def System(num,den):

    system = matlab.tf(num,den)
    return system

s1 = System([1, 1],[1, 1, 1])

def Step(system):
    plt.figure()
    yout, T = matlab.step(system)

when i call
Step(s1)
i get the following error:
Step(s1)
Traceback (most recent call last):
File "", line 1, in
Step(s1)
File "C:/Users/ruben/Documents/Python Workspace/test.py", line 47, in Step
yout, T = matlab.step(system)
File "C:\Users\ruben\Anaconda3\lib\site-packages\control\matlab.py", line 1328, in step
transpose = True, **keywords)
File "C:\Users\ruben\Anaconda3\lib\site-packages\control\timeresp.py", line 483, in step_response
sys = _get_ss_simo(sys, input, output)
File "C:\Users\ruben\Anaconda3\lib\site-packages\control\timeresp.py", line 409, in _get_ss_simo
sys_ss = _convertToStateSpace(sys)
File "C:\Users\ruben\Anaconda3\lib\site-packages\control\statesp.py", line 668, in _convertToStateSpace
return StateSpace(lti_sys.A, lti_sys.B, lti_sys.C, lti_sys.D,
AttributeError: 'TransferFunctionContinuous' object has no attribute 'A'
The other plots like Nyquist an Bode are working. so i do not undertand the Problem.

Which version of python-control are you using?  The following works under v0.8.0:
import matplotlib.pyplot as plt
from control import matlab

def System(num,den):
    system = matlab.tf(num,den)
    return system

s1 = System([1, 1],[1, 1, 1])

def Step(system):
    plt.figure()
    yout, T = matlab.step(system)
    plt.plot(T, yout)

Step(s1)
plt.show()

(Note that matlab.step just returns the step response; it doesn't actually plot it (unlike MATLAB).  I've flagged that as issue #224.

Thank you!
I think my probleem was the plotting and I didn't notice that I worked on version 0.7.0. Now everything is fine.


HiKey fastboot mode

If I restore HiKey960 using:
$sudo ./hikey_idt -c config -p /dev/ttyUSB1
I will have fastboot available without power cycle after this steep.
Another option is to set switches (board v2) to ON-OFF-ON and then power cycle.
This will also trigger fastboot access to board.
What is difference between those two situations? If fastboot enabled after usage of hikey_idt gives some more access to memory and it is "more powerfull" ?
When I am putting new OP-TEE or AOSP build if there is any difference "which fastboot" I will use?

Both of them are fastboot mode. And there's no difference.
In normal boot mode, you could input "ENTER" key on serial console to exit fastboot. Then UEFI will try to boot after exiting fastboot.
In recovery mode, UEFI shouldn't boot kernel. If the user sticks to boot kernel, he will meet kernel hang.

So there is no difference if I flash new images (via fastboot) directly after board recovery via hikey_idt, or after power cycle with correct set of switches (ON-OFF-ON). I thought that crucial for the board recovery process is to use "this fastboot" enabled after hikey_idt command to put everything in right type of memory.

No. hikey_idt can't flush anything. It just download images into board RAM. Only UEFI could flash images via fastboot mode.

Thank you for answers:)


Front facing camera

Will it be possible to add support for front facing camera. It is really allowing trying to readjust the angle and not being able to see the skeleton since it only supports the back camera

Sorry, but I can't add support for this at the moment, due to ARKit limitations.


UI node gets compressed in ui example scrollable area boundary

Bevy version
v0.11.0-dev (ce33354cee55322b12768d4ef7da58ce02adc43d)
Relevant system information
AdapterInfo { name: "Apple M2 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

What you did

In the ui example, scroll until a node shows at the boundary

What went wrong
See how Item 18 gets vertically compressed when it's on the boundary:

For comparison, this is how it should look like (this image is when the node it's not at the boundary):

I've debugged in XCode and I'm seeing this:

I've compared the Y position & UVs for the letter m from Item 17 and Item 18:

The height of Item 17 m letter is 9.5 (pos 2-1), and vertical UV range is 0.37 (uv 2-1)
The height of Item 18 m letter is 3.5 (36.8% of 9.5)
The UV (v) for 4 is 0.25 (67.6%), instead it should be 0.136 (36.8%)

A previous instance of this bug was dependent on scale factor, and that seems to be the case here too.
Adding
.add_plugins(DefaultPlugins.set(WindowPlugin {
    primary_window: Some(Window {
        resolution: WindowResolution::default().with_scale_factor_override(1.),
        ..default()
    }),
    ..default()
}))

removed the squish.

That "fixes" the issue… but it also scales everything to half the size. 😅
I'm looking /bevy_ui/src/render/mod.rs and I have the hunch that the issue might be here:
https://github.com/bevyengine/bevy/blob/main/crates/bevy_ui/src/render/mod.rs#L492
The clipping should be affecting atlas_extent, no?

this was fixed in https://github.com/bevyengine/bevy/pull/6351 and seems to have been removed

I think fixing this for text broke it for images, then fixing it for image broke it back for text...
Be sure to test both when trying a new fix 👍

I think overflow clipping is just broken, it only supports AABB positions clipping (not UVs). If a node is rotated/scaled inside an Overflow::Hidden node it gets funky. To be fair, there is a comment mentioning that this is not supported.
Without overflow:

With overflow:

OK, I think I'm going to prepare an overflow clipping debug example.

I think this was probably introduced when scale_factor was removed from ExtractedUiNode.


Codestyle in buildinfo and repro

The codestyles differ a bit so we should try stick to one style. I think buildinfo is a good starting ground as most of it is commented and stuff.
@coderobe could probably layout some basics.

Is there a sane linter for bash code style?

/me installs shellcheck

shellcheck is more of a semantic linter rather than a style linter.
buildinfo passes shellcheck, and if the other files don't that should probably be fixed.
i'm not sure whether there is any formalized code style that could even be linted properly - though sticking to the way buildinfo is currently written would be a good idea, i think it's pretty clear and well commented


Feature request: pixel grid aligned box drawing/braile characters

It looks very nice when box drawing graphical characters get special treatment and are always drawn aligned to pixel grid (instead of using font default anti-aliased glyphs) - e.g. always having sharp text indentation lines without gaps (indentline.vim), or precise sharp corners for popup windows with outlines..
Patch that enables it on st:
https://st.suckless.org/patches/boxdraw/
Demontstrations (on top - st, on bottom - neoray):

This will be a good feature but I need to think and do some research on this. I don't promise that it will be added but I will work on this in my free time.

Hi @andis-sprinkis I almost finished all of box drawing and block drawing characters but I used vector library to do that which is same with most of the fonts. This solves gap problem but doesn't solve antialiased smooth lines (which sometimes blurry) and I wanted to ask you which is better? Also who is watching this issue I want to know your ideas.

I do like that the characters are always connected, so I consider it a good improvement over default handling of those glyphs (of font I use - CascadiaCodePL).
Minor thing I keep noticing that radius on round corners chars seems to be off, somewhat stretched (see fzf prompt corners).
Not a fan of antialiasing being applied to rectangular chars as it makes them blurry.
Looks better than what I get in iterm2 or NeovimQt, but worse than the patched st.

Result now is tad closer to patched st rendering :)

Minor thing I keep noticing that radius on round corners chars seems to be off, somewhat stretched (see fzf prompt corners).

Yeah this is my mistake. It's easy to fix.
I like St's drawings but I need to solve a few problems to integrate it directly. The first problem is crosses and curves. I can make the curves by drawing two lines that do not meet in the center as in st, but vector drawing is necessary for the diagonal lines to look good. The second problem is the thickness of the lines. If I set the thin lines to be 1 pixel and the thick lines to be 2, the lines will be very small on high dpi screens (I haven't tested this). Also, since the thin line cannot be drawn in the middle of the thick line, it will still look bad. If I adjust the line thickness dynamically, this time it will be as if I drew vector graphics myself, which will be worse than what the library draws :) If we apply vector and pixel drawing together, the glyphs will not match each other this time. The best solution I've come up with so far is to ignore the thick lines and draw them all the same size. I actually made the current implementation to try it out. Also, I ask you, there is a file named boxdrawingchars.txt in the root folder of the project. I want you to take a screenshot for me by opening the part up to blocks with st in this file. The reason I'm asking you this is because I don't have a linux computer and can't use st. If you post these I can better understand how st draws. Thanks in advance.

Sorry your last image actually shows how st draws. I think they are using 1 pixel for thick lines and 3 pixel for bold lines. And they doesn't draw cross lines with this feature. I think this is enough for me.

Well, I hope these are somewhat useful (output from st 8.2 with boxdraw patch):

)

I think this is fully implemented as requested.

Looks crisp and pleasant to look at 👍


Remove ApiCompat exception for Key Vault once a multi-targeting release has shipped

Similar to what was done in #32280, <RunApiCompatForSrc Condition=" '$(TargetFramework)' == 'net461' ">false</RunApiCompatForSrc> was added to Key Vault client libraries to pass ApiCompat. Once we've shipped a nupkg with net461 binaries in it we should remove this exception.

Alternatively, until we make a comprehensive change, @ericstj recommended we just hardcode a fallback to the "netstandard2.0" assembly if "net461" doesn't exist. This should be a bit easier to handle if we upgrade track 2 projects more piecemeal.

The workaround has a problem where, becuase attributes were encoded slightly differently, you get errors like:

C:\Users\heaths.nuget\packages\microsoft.dotnet.apicompat\5.0.0-beta.20467.1\build\Microsoft.DotNet.ApiCompat.targets(82,5): error : CannotChangeA
ttribute : Attribute 'System.ComponentModel.EditorBrowsableAttribute' on 'Azure.Security.KeyVault.Administration.KeyVaultRoleScope.Equals(System.Ob
ject)' changed from '[EditorBrowsableAttribute(1)]' in the contract to '[EditorBrowsableAttribute(EditorBrowsableState.Never)]' in the implementati
on. [C:\src\azure-sdk-for-net2\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Azure.Security.KeyVault.Administration.csproj::TargetFramewo
rk=net461]

Attributes can be excluded, but there may be others and I don't think we want to ignore these entirely.

There are currently no plans to ship a net461 binary. We can revisit should that change.


setup.py not found

Hi ，
I did not find setup.py in repo which used by pip install -e .
where can download this file?
thanks

understand, need python3.10 and only toml file.


[RFE] Create custom manifest spec for UOR that extends OCI (or the oras artifact spec)

What is the problem you're trying to solve
The UOR client is storing attributes in OCI annotations. The issue with this solution is that attributes are meant to be typed. Since annotations are a map with string as the value, the option has been to store a JSON formatted doc within a custom UOR annotation.
Describe the solution you'd like
A less brittle solution is to create a spec to extend the OCI specification or (oras Artifact specification) to include a new UOR-specific field for attributes.
Additional context
oras.Pack is used to generate and pack the manifest into the content.Store. This functionality would have to be recreated but using the UOR spec.

Related to #63


Doc: Added tutorial documentation for stats distributions ksone and kstwobign

The stats tutorial pages in the doc for these two KS distributions existed but were empty. This adds a body for each of them.

https://2976-1460385-gh.circle-artifacts.com/0/home/ubuntu/scipy/doc/build/html-scipyorg/tutorial/stats/continuous_ksone.html
https://2976-1460385-gh.circle-artifacts.com/0/home/ubuntu/scipy/doc/build/html-scipyorg/tutorial/stats/continuous_kstwobign.html
both look good. change to target and empirical made it clearer

Merged, thanks @pvanmulbregt


Where is Aligning Large Language Models "without Model Training"?

Hi author,
According to my understanding, I don't need to train the model at all, I just need the llms api and datasets.
I don't see it in your project.
Can you show me where it is?
Thanks.

Actually, we emphasise no training of the generator, which can be an open-sourced or API-based LLM. Only a smaller model needs to be fine-tuned for prompt optimization to help further align the generator with human preferences.


Android Release apk images not showing

Hello,
i was using "^4.0.14" untill i upgraded to "^5.0.11" I see that after make a release app for both IOS and Android. Only android one is failing to show the images. I'm very much baffled as Android is showing images very fine when i'm on development. But when i made a release apk to test on my device. it doesn't show any image. while on IOS everything is fine. I am completely lost. If i didn't do the linking correct then why would it be working on IOS and android (development ONLY).
Although the library was working in release and development before upgrading. Ironically react-native-maps also not showing map in release mode now!
I'm having such a hard time from couple of days because of these issues.
Can you please tell me what should i try? i have tested on my real Device which has API 23 and its Samsung J7 Prime.

see this : #324

okay seems that i'm not alone @bbturtle but it seems merged i don't know if the fix is released on npm or not

please update to v5.1.0, it's worked for me

if that so then let me close this issue. for now my Gradle release build is seems to be f** at the moment because firebase + maps + appcenter.


pytorchjob status.completionTime may be nil when backofflimit is nil

when I start a wf like this:
apiVersion: kubeflow.org/v1
kind: PyTorchJob
metadata:
  name: pytorchjob-2022-07-28t20-49-16-v6
  namespace: xxx
  labels:
    test: test
spec:
  runPolicy:
    backoffLimit: 0
  pytorchReplicaSpecs:
    Master:
      replicas: 1
      restartPolicy: Never
      template:
        spec:
          containers:
          - command:
            - /bin/bash
            - /start.sh
            image: xxx
            name: pytorch
            resources:
              limits:
                cpu: "0.1"
                memory: 0.1Gi
                nvidia.com/gpu: 0
    Worker:
      replicas: 1
      restartPolicy: Never
      template:
        spec:
          containers:
          - command:
            - /bin/bash
            - /start.sh
            image: xxx
            name: pytorch
            resources:
              limits:
                cpu: "0.1"
                memory: 0.1Gi
                nvidia.com/gpu: 0

its status is this:
status:
  completionTime: "2022-07-29T11:41:19Z"
  replicaStatuses:
    Master:
      xxx
    Worker:
      xxx

but when backofflimit is nil, the completionTime will be nil.
look for code for common,
if runPolicy.BackoffLimit != nil {
		jobHasNewFailure := failed > prevReplicasFailedNum
		// new failures happen when status does not reflect the failures and active
		// is different than parallelism, otherwise the previous controller loop
		// failed updating status so even if we pick up failure it is not a new one
		exceedsBackoffLimit = jobHasNewFailure && (active != totalReplicas) &&
			(int32(previousRetry)+1 > *runPolicy.BackoffLimit)

		pastBackoffLimit, err = jc.PastBackoffLimit(jobName, runPolicy, replicas, pods)
		if err != nil {
			return err
		}
	}

	if exceedsBackoffLimit || pastBackoffLimit {
		// check if the number of pod restart exceeds backoff (for restart OnFailure only)
		// OR if the number of failed jobs increased since the last syncJob
		jobExceedsLimit = true
		failureMessage = fmt.Sprintf("Job %s has failed because it has reached the specified backoff limit", jobName)
	} else if jc.PastActiveDeadline(runPolicy, jobStatus) {
		failureMessage = fmt.Sprintf("Job %s has failed because it was active longer than specified deadline", jobName)
		jobExceedsLimit = true
	}

and then jobExceedsLimit will be false when backofflimit is nil and pytorchjobs not expired.
is it a bug?
and the logic of check exceedsBackoffLimit, it used nums of requeue to judge if exceed limit, but it'll also requeue if reconcile has some error such as update conflict version. is it a bug too?

i think we can add code to func SetDefaults_PyTorchJob? set default 0 for BackoffLimit

I search code of pytorch controller,
find this one
msg := fmt.Sprintf("PyTorchJob %s is failed because %d %s replica(s) failed.", pytorchjob.Name, failed, rtype)
r.Recorder.Event(pytorchjob, corev1.EventTypeNormal, commonutil.JobFailedReason, msg)
if pytorchjob.Status.CompletionTime == nil {
	now := metav1.Now()
	pytorchjob.Status.CompletionTime = &now
}
	err := commonutil.UpdateJobConditions(jobStatus, commonv1.JobFailed, commonutil.JobFailedReason, msg)
if err != nil {
	commonutil.LoggerForJob(pytorchjob).Infof("Append job condition error: %v", err)
	return err
}

you set CompletionTime to pytorchjobs.status, and set condition, so I print these address like this:
if pytorchjob.Status.CompletionTime == nil {
        logrus.Error("now need to record completion time")
	now := metav1.Now()
	pytorchjob.Status.CompletionTime = &now
}
logrus.Errorf("jobstatus is %p and pytorchjobs.status is %p", jobStatus, &pytorchjob.Status)
logrus.Errorf("jobstatus is %v and pytorchjobs.status is %v", *jobStatus, pytorchjob.Status)
err := commonutil.UpdateJobConditions(jobStatus, commonv1.JobFailed, commonutil.JobFailedReason, msg)

the log is this:
ERRO[0094] jobstatus is 0xc0002c73c0 and pytorchjobs.status is 0xc00088db50
ERRO[0094] jobstatus is {[{Created True PyTorchJobCreated PyTorchJob pytorchjob-2022-07-28t20-49-16-v10 is created. 2022-08-01 14:50:28 +0800 CST 2022-08-01 14:50:28 +0800 CST} {Running True JobRunning PyTorchJob pytorchjob-2022-07-28t20-49-16-v10 is running. 2022-08-01 14:50:30 +0800 CST 2022-08-01 14:50:30 +0800 CST}] map[Master:0xc00171f8a8 Worker:0xc00171fa58] <nil> <nil> <nil>} and pytorchjobs.status is {[{Created True PyTorchJobCreated PyTorchJob pytorchjob-2022-07-28t20-49-16-v10 is created. 2022-08-01 14:50:28 +0800 CST 2022-08-01 14:50:28 +0800 CST} {Running True JobRunning PyTorchJob pytorchjob-2022-07-28t20-49-16-v10 is running. 2022-08-01 14:50:30 +0800 CST 2022-08-01 14:50:30 +0800 CST}] map[Master:0xc00171f8a8 Worker:0xc00171fa58] <nil> 2022-08-01 14:52:30.728314 +0800 CST m=+94.364590187 <nil>}

maybe its the reason of no completeion time when failed

We should investigate the reasons and should fix this bug.
/reopen
/lifecycle frozen


ctrl-t to start from command-line argument

Category

[x] fzf binary
[ ] fzf-tmux script
[x] Key bindings
[x] Completion
[ ] Vim
[ ] Neovim
[ ] Etc.

OS

[x] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[x] zsh
[ ] fish

First, thanks for this great tool. It's really handy. Here's a new feature proposal. I even include a draft implementation.
Scenario: I'm in my home directory (~). I'm looking for a file foobar.txt that I want to copy. So I go cp <ctrl-t>foobar... but it's not working because my home directory contains too many files and find is too slow listing them all. I know the file is somewhere in ~/projects/. I wish I could type cp projects/<ctrl-t>foobar and fzf would start looking for the file from ~/projects/ rather than from ~.
This may not seem so useful in this trivial example. One could simply cd projects/ first, but imagine you're in a middle of a long command and need to specify a file parameter.
Anyway, I've been missing this feature so I hacked it together. The implementation is pretty lame (I'm not a shell programmer), but it seems to be working. All that's needed is modify the __fsel function. If you like the idea, feel free to use any of my code:
https://bitbucket.org/janpom/.dotfiles/src/8835152582ebcf0ad266448904587b87e8abf6ae/dotfiles/fzf.custom.zsh

Have you considered using fuzzy completion instead for that purpose?
cp projects/**<tab>

You might want to take a look at https://github.com/junegunn/fzf/wiki/Fuzzy-completion#zsh if you don't like having to type in **.

Looks like I'm reinventing the wheel here. I didn't realize the **<tab> worked that way. The documentation sounded like it would substitute the pattern with the best match. I should have tested that. My bad.
I guess I still prefer ctrl-t to **<tab>. The fuzzy completion tip works for me. Thanks for the link! I can now remove the hack from my dot file.
Thanks for the quick response!

No problem.


vela env：Duplicate environment name

Describe the bug

The command line displays the result that the environment name is duplicate, but the namespace is not。Is this dirty data
eg.
.kube % vela env ls
NAME               	NAMESPACE          	CURRENT
xxx-dev           	api-xxx           	*
xxx-dev           	xxx-dev           	*
KubeVela Version

CLI Version: v1.7.0
Core Version: 1.7.0
GitRevision: git-8ef2513
GolangVersion: go1.19.4

The vela env is confusing, most users even not know this feature, we're going to deprecate it.
Can you please let me know that in which case you'd like this feature to work?


Small Transformation Stack optimization

Instead of using vector's back() in push methoh in renderer2d, you could do:
	void push(const maths::mat4& matrix, bool override = false)
	{
		if (override) {
			m_TransformationStack.push_back(matrix);
		} else {
			maths::mat4* result = m_TransformationBack * matrix;
			m_TransformationStack.push_back(result);
			m_TransformationBack = result;
		}
	}

I haven't tested it, but it should be a bit faster

Don't forget to change m_TransformationBack for the override part:
if (override) {
m_TransformationStack.push_back(matrix);
m_TransformationBack = matrix;
} else {
maths::mat4* result = m_TransformationBack * matrix;
m_TransformationStack.push_back(result);
m_TransformationBack = result;
}

Keep in mind that the transformation stack vector does not hold pointers, so this isn't exactly going to work. Please open another issue if you think I am misunderstanding you. :)


Add Sticky Password Latest

Adding a new cask

[✔] Checked there aren’t open pull requests for the same cask.
[✔] Checked there aren’t closed issues where that cask was already refused.
[✔] When naming the cask, followed the token reference.
[✔] Commit message includes cask’s name.
[✔] brew cask audit --download {{cask_file}} is error-free.
[✔] brew cask style --fix {{cask_file}} left no offenses.
[✔] brew cask install {{cask_file}} worked successfully.
[✔] brew cask uninstall {{cask_file}} worked successfully.

Are you still interested in having this merged, @cedwardsmedia?

Closing on account of no reply.


will this tell me the next occurrence from Time.now?

This is cool parsing.  But if I want to send reminders based on the date, I would want to know whether the next occurrence happened already based on a Cron job.  Is there a way to do that?

That is exactly what I need too.
Any solution for this?


apigee module does not map correctly the organization properties

We are using the v35.0.0 of the apigee module. We have created the organization without properties.
module "apigee" {
  source     = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/apigee?ref=v35.0.0"
  project_id = var.project_id
  organization = {
    display_name            = var.org_display_name
    description             = var.org_description
    runtime_type            = "CLOUD"
    billing_type            = var.billing_type
    database_encryption_key = module.kms-org-db.key_ids["org-db"]
    analytics_region        = var.ax_region
    disable_vpc_peering     = var.disable_vpc_peering
    api_consumer_data_location = "europe-west4"
  }
  envgroups    = local.envgroups
  environments = var.apigee_environments
  instances    = local.instances
}

On trying to run again Terraform tries to recreate the entire organization because it has two new properties namely:

"features.hybrid.enabled"
"features.mart.connect.enabled"

I've tried to set them to match as follows:
module "apigee" {
  source     = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/apigee?ref=v35.0.0"
  project_id = var.project_id
  organization = {
    display_name            = var.org_display_name
    description             = var.org_description
    runtime_type            = "CLOUD"
    billing_type            = var.billing_type
    database_encryption_key = module.kms-org-db.key_ids["org-db"]
    analytics_region        = var.ax_region
    disable_vpc_peering     = var.disable_vpc_peering
    api_consumer_data_location = "europe-west4"
    properties = {
       "features.hybrid.enabled" = "true"
       "features.mart.connect.enabled" = "true"
    }
  }
  envgroups    = local.envgroups
  environments = var.apigee_environments
  instances    = local.instances
}

But even that isn't matched. See part of the trace below.
  # module.apigee-x-core.module.apigee.google_apigee_organization.organization[0] must be replaced
-/+ resource "google_apigee_organization" "organization" {
      + api_consumer_data_location           = "europe-west4" # forces replacement
      ~ apigee_project_id                    = "la939134d21e1f95cp-tp" -> (known after apply)
      ~ ca_certificate                       = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURQekNDQWllZ0F3SUJBZ0lRYTNJT1dMZXlHRzFUZmlzeXVVU3ZWVEFOQmdrcWhraUc5dzBCQVFzRkFEQXYKTVMwd0t3WURWUVFERXlRNVptUm1NREZsTUMxalkyRXpMVFJsTkdFdFlUYzJOUzFsTVRBeU1HRmpNbVk0TVRBdwpIaGNOTWpReE1USXhNRGN6TURJeldoY05NelF4TVRFNU1EY3pNREl6V2pBdk1TMHdLd1lEVlFRREV5UTVabVJtCk1ERmxNQzFqWTJFekxUUmxOR0V0WVRjMk5TMWxNVEF5TUdGak1tWTRNVEF3Z2dFaU1BMEdDU3FHU0liM0RRRUIKQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUURWTGZjU3MxVStSOWZ4QTROYzFManRuWUtiKzAxZGUzS2ttc1NvNlRtUwpUQXNBbVpsd0lwSExiMzFsa2ZYbWpBdUd3T0FxNmlxVmNqK0xYRjF4TjRWRENkQ0dRaWNNZDcrZzBzWkJURXBmCi9Rb2g1WjRibXpFS3NIZEp1WDNnK2hFa2hmTG9OSmVEalNpOHBsOVN3OWZUcjVJVlV1ZStPMENrNm1NRU0rU0UKdmFDRGJaMjdvemh6MHBZZEs5S25JeFAzeXJmYm40emZ6cDhDaWFZK3pxNVBrOTBzTkkzRUlrTE51YkY5YzhPcwp1eWJwaHJhc2QzUEpqc2YzaU9xWXRpZW0xNk1remNWNlJMajRCMUhPSnhmcng1Rm4zVEtUKzZ0US9jeDBsWllPCldURzBPaVRIQ09DUkl2VjJFaWhTWUpjczEwc3d1UzZrZ2VTemhTM0ZhQ2szQWdNQkFBR2pWekJWTUE0R0ExVWQKRHdFQi93UUVBd0lDcERBVEJnTlZIU1VFRERBS0JnZ3JCZ0VGQlFjREFUQVBCZ05WSFJNQkFmOEVCVEFEQVFILwpNQjBHQTFVZERnUVdCQlFRU2E4dHF4SkVQVGlTUVl6eTFUSkFRbldMeXpBTkJna3Foa2lHOXcwQkFRc0ZBQU9DCkFRRUFGYjZZcjlSRVdkMTE4ZW0vOTFmY0ZhejNzREk4QzZqRVh4LzZ3eGZzZXBWaGFObEJrYnlLUjJheDdYcmIKdjUwZWkvTE1oREkzMFJpWnR5b096NnRPVWEyU1Y5UHN6ZWVnU1JSajJuWkpiRjB3d1FaT1d5WisvaU9hV25hbgpOM3Q2UjV4d1d2Wk94Y2tEamFzc0NYWkVkbWRYTDJISWtCL1RkenRWYjhsK05tL1p2QXd1SjdZQUlrdUNHREQ1CklGU2R3cElEeW41akNVaVJISENEZGhxbnd3NDlsd2RVb0VNbGNqem02ZHZwYmFtb2hJNWMvaFU2UXMxU0lDRksKMGxycmhvSm83SjJ0a0N2Q3V5dzl0MHVXZ1BFb2MyMllXblMybVdDc0tSNk5KS1R0bnRsbHBFNnpvUGpsbUYragpCN2NsZEZhL0FGTXNJdEUxRlNFMkpGdEtKdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K" -> (known after apply)
      ~ id                                   = "organizations/lhg-eu-w0p-mmg-api01" -> (known after apply)
      ~ name                                 = "lhg-eu-w0p-mmg-api01" -> (known after apply)
      ~ subscription_type                    = "PAID" -> (known after apply)
        # (7 unchanged attributes hidden)

      ~ properties {
          ~ property {
              ~ name  = "features.hybrid.enabled" -> "0"
              - value = "true" -> null
            }
          ~ property {
              ~ name  = "features.mart.connect.enabled" -> "0"
              - value = "true" -> null
            }
        }
    }

So I see two problems, some default properties are created and we have no way to setting the properties to match afterwards.

The management API gives us the following response (I've removed the non-relevant parts):
{
    ...
    "environments": [
        "prod"
    ],
    "properties": {
        "property": [
            {
                "name": "features.mart.connect.enabled",
                "value": "true"
            },
            {
                "name": "features.hybrid.enabled",
                "value": "true"
            }
        ]
    },
    "analyticsRegion": "europe-west4",
    ...
}

Does this mean that api_consumer_data_location is used to create the org but then it is not compared correctly afterwards hence Terraform thinks I'm adding that attribute?

I have commented the attribute and now the only reason to update the org is this difference:
  # module.apigee-x-core.module.apigee.google_apigee_organization.organization[0] will be updated in-place
  ~ resource "google_apigee_organization" "organization" {
        id                                   = "organizations/lhg-eu-w0p-mmg-api01"
        name                                 = "lhg-eu-w0p-mmg-api01"
        # (10 unchanged attributes hidden)

      ~ properties {
          ~ property {
              ~ name  = "features.hybrid.enabled" -> "0"
              - value = "true" -> null
            }
          ~ property {
              ~ name  = "features.mart.connect.enabled" -> "0"
              - value = "true" -> null
            }
        }
    }


Add more get routes

Some functionality is missing which would be useful to have:

getting the U/UB matrices directly.

This PR addresses this, but also modifies the routes for calculating ub and getting the status of it.

Changed set_property route to:

set_lab_reference_vector(XyzModel) & get_lab_reference_vector()
set_miller_reference_vector(HklModel) & get_miller_reference_vector()
set_lab_surface_normal(XyzModel) & get_lab_surface_normal()
set_miller_surface_normal(HklModel) & get_miller_surface_normal()


Move API docs to ReadTheDocs

This is still missing Linking, Metadata endpoints, and Throttling.

All pages from the API docs have been added.


Feed without specifying target?

Is there a way to omit the target div without throwing an error? I am populating feed to different containers via success callback and I don't need the main container.

Yes, you can use the mock option:
var feed = new Instafeed({
  success: function(data) {
    // handle data manually
  },
  mock: true
});
feed.run();


chore(master): release 1.8.1

:robot: I have created a release beep boop
1.8.1 (2022-10-11)
Bug Fixes

修复cutMenu收起时 (993af6b)

Styling

cutMenu层级样式 (32d2408)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/kailong321200875/vue-element-plus-admin/releases/tag/v1.8.1 :sunflower:


Unable to use tmux or screen in execute shell

Would really like to be able to support persisting commands from the execute shell, tmux and screen would be nice ways to do this, but currently don't seem to work.  The containers themselves support tmux  and screen when attaching to them through the docker client on the docker host, so this should also be supported through the UI execute shell.

I believe the problem is docker/docker#8755, but will try some of the script gymnastics in the comments to see if we can get screen/tmux to work.

/usr/bin/script -q -c "/bin/bash" /dev/null seems to work for tmux

version - master jan 07
Verified fixed


Enables monitoring of multiple services on a single physical box.

By setting turbine.instanceInsertPort.default=false and turbine.combineHostPort=true services registered with Eureka running on the same server(ie same hostname) can be monitored with turbine. I'm not sure if this is a good way of enabling this.
Another option is to change TurbineConfiguration to:
@Autowired
private InstanceDiscovery iDiscovery;

@Override
public void start() {
	PluginsFactory.setClusterMonitorFactory(new SpringAggregatorFactory());
	PluginsFactory.setInstanceDiscovery(iDiscovery);
	TurbineInit.init();
}

And allow the user to inject their own InstanceDiscovery implementation, e.g a subclass of EurekaInstanceDiscovery.

Have you signed the contributor's agreement?

Just signed it. My confirmation number is<PHONE_NUMBER>06073646.

@micheal-swiggs I changed turbine recently. I thought I'd just add your changes. When I added this test to EurekaInstanceDiscoveryTest:
	@Test
	public void testCombineHostPort() {
		turbineProperties.setCombineHostPort(true);
		EurekaInstanceDiscovery discovery = getEurekaInstanceDiscovery();
		String appName = "testAppName";
		int port = 8080;
		String hostName = "myhost";
		InstanceInfo instanceInfo = builder.setAppName(appName)
				.setHostName(hostName)
				.setPort(port)
				.build();
		Instance instance = discovery.marshall(instanceInfo);
		assertEquals("hostname is wrong", hostName+":"+port, instance.getHostname());

		String urlPath = SpringClusterMonitor.ClusterConfigBasedUrlClosure.getUrlPath(instance);
		assertEquals("url is wrong", "http://"+hostName+":"+port+"/hystrix.stream", urlPath);
	}

It fails with
java.lang.RuntimeException: Configured to use port, but port or securePort is not in host attributes

	at org.springframework.cloud.netflix.turbine.SpringClusterMonitor$1.getUrlPath(SpringClusterMonitor.java:108)
	at org.springframework.cloud.netflix.turbine.EurekaInstanceDiscoveryTest.testCombineHostPort(EurekaInstanceDiscoveryTest.java:99)

If you want to rework it so a test like that doesn't fail, go for it. Otherwise, you can now create your own InstanceDiscovery beans.

I will try to rework this. So if I add this test into my branch I should be able to reproduce the error?

You should. the getUrlPath fails if there is no port metadata.

I've added the tests and fixed them.

@micheal-swiggs, just looking at this and realized you've made this from the M1 branch, can you do rebase to master instead?

I will try.

I was not able to rebase this branch. So I have created a new pull request forked from master with the changes of this pull request.

Last November I came across this same problem and found an open issue in Turbine's project.
I finally submitted a PR addressing it. The changes introduced here definitely fixed the problem but in my opinion it would make sense that the solution were on Turbine's side. Why? Because this PR only works when you have Eureka, but doesn't when using other discovery server such as Consul.
What do you think?


stop using rspec private APIs

Presently, we use private apis which could change in minor versions, lets try to do it another way.
see: https://github.com/y310/rspec-retry/blob/85754e196361f909615d11013ba2b896e517cf53/lib/rspec_ext/rspec_ext.rb and #25

In RSpec itself we don't ever clear the memoized hash...we just instantiate a new example group instance for each spec.  Maybe you can use a similar strategy?
Alternately, if there's a reason that won't work for you and you want a public API for clearing the memoized values, let us know.

Creating new instances would be the way I would try to do this too...


Remat decorator doesn't save memory under JIT compiled functions

Problem you have encountered:
@nn.remat decorator doesn't save memory under JIT compiled functions.
What you expected to happen:
Expected compiled and vanilla functions to complete successfully.
Logs, error messages, etc:
OOM on TPU device when JIT compiled version is executed.
Steps to reproduce:
https://colab.research.google.com/drive/1_XbQ_oq8APHmlJT-1oo_tU4CwCHj4BNZ?usp=sharing

I reproduced the problem. Adding remat increases memory from 8Gb -> 11Gb.
I rewrote it to use jax.remat directly and the problem persists.
So my guess is something in JAX or XLA is going wrong. I'll investigate some more

Must be JAX or XLA, since I got OOM reimplementing the test in Haiku too. Most likely it's not the wrapper problem.
In case Haiku team needs the test case it is below
https://colab.research.google.com/drive/1V6vR64PYeuh1dFLOZ0VM3jJwMwq292Bw?usp=sharing

The problem doesn't reproduce on a normal TPU machine (non-colab) either. Actually on a normal TPU the model without remat uses 2x less memory and the remat version 10x less.
I'll close this for now because this is clearly not Flax related but some problem in JAX/XLA. Please open an issue on the JAX repo