boxes are not detected

I ran train, export and detect without using docker.
The model trained 2500 images (trafiic_sign, traffic_light). It is 100 epochs.
However, the box is not detected.
I have a question here.
・ Does this model need further learning?
・ What is the best number of batches?
・ I would like to see a graph showing how the correct answer rate is improved by verification. Is this possible?
ssd-mobilenet.onnx
https://drive.google.com/drive/folders/1wOMM7RlTwXGbFANknIcqiYLkKA3UuYsL?usp=sharing

Can you try deleting the *.engine file from your model's directory and re-running the detectnet program?
You can try using PyTorch to process an image with your PyTorch model to verify that it works fine on the PyTorch side.   You can try the run_ssd_example.py script:
https://github.com/dusty-nv/pytorch-ssd/blob/e7b5af50a157c50d3bab8f55089ce57c2c812f37/run_ssd_example.py

I removed the *engine and detected it again, but only the photo was output. There was no box in the photo. Below is the code at that time.
abc@abc-desktop:~/test/jetson-inference/python/training/detection/ssd$ sudo detectnet --model=models/traffic_1/ssd-mobilenet.onnx --labels=models/traffic_1/labels.txt --input-blob=input_0 --output-cvg=scores --output-bbox=boxes "~/test/jetson-inference/data/images/traffic_sign.jpg" ~/test/jetson-inference/data/test_1.jpg
[sudo] password for abc:
[video]  created imageLoader from file://~/test/jetson-inference/data/images/traffic_sign.jpg
------------------------------------------------
imageLoader video options:
------------------------------------------------
  -- URI: file://~/test/jetson-inference/data/images/traffic_sign.jpg
     - protocol:  file
     - location:  ~/test/jetson-inference/data/images/traffic_sign.jpg
     - extension: jpg
  -- deviceType: file
  -- ioType:     input
  -- codec:      unknown
  -- width:      0
  -- height:     0
  -- frameRate:  0.000000
  -- bitRate:    0
  -- numBuffers: 4
  -- zeroCopy:   true
  -- flipMethod: none
  -- loop:       0
------------------------------------------------
[video]  created imageWriter from file:///home/abc/test/jetson-inference/data/test_1.jpg
------------------------------------------------
imageWriter video options:
------------------------------------------------
  -- URI: file:///home/abc/test/jetson-inference/data/test_1.jpg
     - protocol:  file
     - location:  /home/abc/test/jetson-inference/data/test_1.jpg
     - extension: jpg
  -- deviceType: file
  -- ioType:     output
  -- codec:      unknown
  -- width:      0
  -- height:     0
  -- frameRate:  0.000000
  -- bitRate:    0
  -- numBuffers: 4
  -- zeroCopy:   true
  -- flipMethod: none
  -- loop:       0
------------------------------------------------
[OpenGL] glDisplay -- X screen 0 resolution:  1920x1080
[OpenGL] glDisplay -- X window resolution:    1920x1080
[OpenGL] glDisplay -- display device initialized (1920x1080)
[video]  created glDisplay from display://0
------------------------------------------------
glDisplay video options:
------------------------------------------------
  -- URI: display://0
     - protocol:  display
     - location:  0
  -- deviceType: display
  -- ioType:     output
  -- codec:      raw
  -- width:      1920
  -- height:     1080
  -- frameRate:  0.000000
  -- bitRate:    0
  -- numBuffers: 4
  -- zeroCopy:   true
  -- flipMethod: none
  -- loop:       0
------------------------------------------------

detectNet -- loading detection network model from:
          -- prototxt     NULL
          -- model        models/traffic_1/ssd-mobilenet.onnx
          -- input_blob   'input_0'
          -- output_cvg   'scores'
          -- output_bbox  'boxes'
          -- mean_pixel   0.000000
          -- mean_binary  NULL
          -- class_labels models/traffic_1/labels.txt
          -- threshold    0.500000
          -- batch_size   1

[TRT]    TensorRT version 7.1.3
[TRT]    loading NVIDIA plugins...
[TRT]    Registered plugin creator - ::GridAnchor_TRT version 1
[TRT]    Registered plugin creator - ::NMS_TRT version 1
[TRT]    Registered plugin creator - ::Reorg_TRT version 1
[TRT]    Registered plugin creator - ::Region_TRT version 1
[TRT]    Registered plugin creator - ::Clip_TRT version 1
[TRT]    Registered plugin creator - ::LReLU_TRT version 1
[TRT]    Registered plugin creator - ::PriorBox_TRT version 1
[TRT]    Registered plugin creator - ::Normalize_TRT version 1
[TRT]    Registered plugin creator - ::RPROI_TRT version 1
[TRT]    Registered plugin creator - ::BatchedNMS_TRT version 1
[TRT]    Could not register plugin creator -  ::FlattenConcat_TRT version 1
[TRT]    Registered plugin creator - ::CropAndResize version 1
[TRT]    Registered plugin creator - ::DetectionLayer_TRT version 1
[TRT]    Registered plugin creator - ::Proposal version 1
[TRT]    Registered plugin creator - ::ProposalLayer_TRT version 1
[TRT]    Registered plugin creator - ::PyramidROIAlign_TRT version 1
[TRT]    Registered plugin creator - ::ResizeNearest_TRT version 1
[TRT]    Registered plugin creator - ::Split version 1
[TRT]    Registered plugin creator - ::SpecialSlice_TRT version 1
[TRT]    Registered plugin creator - ::InstanceNormalization_TRT version 1
[TRT]    detected model format - ONNX  (extension '.onnx')
[TRT]    desired precision specified for GPU: FASTEST
[TRT]    requested fasted precision for device GPU without providing valid calibrator, disabling INT8
[TRT]    native precisions detected for GPU:  FP32, FP16
[TRT]    selecting fastest native precision for GPU:  FP16
[TRT]    attempting to open engine cache file models/traffic_1/ssd-mobilenet.onnx.1.1.7103.GPU.FP16.engine
[TRT]    loading network plan from engine cache... models/traffic_1/ssd-mobilenet.onnx.1.1.7103.GPU.FP16.engine
[TRT]    device GPU, loaded models/traffic_1/ssd-mobilenet.onnx
[TRT]    Deserialize required 2758289 microseconds.
[TRT]
[TRT]    CUDA engine context initialized on device GPU:
[TRT]       -- layers       104
[TRT]       -- maxBatchSize 1
[TRT]       -- workspace    0
[TRT]       -- deviceMemory 19767296
[TRT]       -- bindings     3
[TRT]       binding 0
                -- index   0
                -- name    'input_0'
                -- type    FP32
                -- in/out  INPUT
                -- # dims  4
                -- dim #0  1 (SPATIAL)
                -- dim #1  3 (SPATIAL)
                -- dim #2  300 (SPATIAL)
                -- dim #3  300 (SPATIAL)
[TRT]       binding 1
                -- index   1
                -- name    'scores'
                -- type    FP32
                -- in/out  OUTPUT
                -- # dims  3
                -- dim #0  1 (SPATIAL)
                -- dim #1  3000 (SPATIAL)
                -- dim #2  3 (SPATIAL)
[TRT]       binding 2
                -- index   2
                -- name    'boxes'
                -- type    FP32
                -- in/out  OUTPUT
                -- # dims  3
                -- dim #0  1 (SPATIAL)
                -- dim #1  3000 (SPATIAL)
                -- dim #2  4 (SPATIAL)
[TRT]
[TRT]    binding to input 0 input_0  binding index:  0
[TRT]    binding to input 0 input_0  dims (b=1 c=3 h=300 w=300) size=1080000
[TRT]    binding to output 0 scores  binding index:  1
[TRT]    binding to output 0 scores  dims (b=1 c=3000 h=3 w=1) size=36000
[TRT]    binding to output 1 boxes  binding index:  2
[TRT]    binding to output 1 boxes  dims (b=1 c=3000 h=4 w=1) size=48000
[TRT]
[TRT]    device GPU, models/traffic_1/ssd-mobilenet.onnx initialized.
[TRT]    detectNet -- number object classes:  3
[TRT]    detectNet -- maximum bounding boxes:  3000
[TRT]    detectNet -- loaded 3 class info entries
[TRT]    detectNet -- number of object classes:  3
[image] loaded '/home/abc/test/jetson-inference/data/images/traffic_sign.jpg'  (1280x857, 3 channels)
[OpenGL] glDisplay -- set the window size to 1280x857
[OpenGL] creating 1280x857 texture (GL_RGB8 format, 3290880 bytes)
[cuda]   registered openGL texture for interop access (1280x857, GL_RGB8, 3290880 bytes)
[image] saved '/home/abc/test/jetson-inference/data/test_1.jpg'  (1280x857, 3 channels)

[TRT]    ------------------------------------------------
[TRT]    Timing Report models/traffic_1/ssd-mobilenet.onnx
[TRT]    ------------------------------------------------
[TRT]    Pre-Process   CPU   0.08505ms  CUDA   1.94687ms
[TRT]    Network       CPU 120.78058ms  CUDA 118.44067ms
[TRT]    Post-Process  CPU   1.45568ms  CUDA   1.73281ms
[TRT]    Total         CPU 122.32130ms  CUDA 122.12036ms
[TRT]    ------------------------------------------------

[TRT]    note -- when processing a single image, run 'sudo jetson_clocks' before
                to disable DVFS for more accurate profiling/timing measurements

[image] imageLoader -- End of Stream (EOS) has been reached, stream has been closed
detectnet:  shutting down...
detectnet:  shutdown complete.

I'm a beginner, so about pytorch
So when I run run_ssd_example.py, I get an error. Can you give me a specific command?
abc@abc-desktop:~/test/jetson-inference/python/training/detection/ssd$ python3 run_ssd_example.py mb1-ssd-lite --models=models/traffic_1/ssd-mobilenet.onnx --labels=models/traffic_1/labels.txt "/home/abc/test/jetson-inference/data/images/traffic_sign.jpg" ~/test/jetson-inference/data/images/test3.jpg
Traceback (most recent call last):
  File "run_ssd_example.py", line 19, in <module>
    class_names = [name.strip() for name in open(label_path).readlines()]
FileNotFoundError: [Errno 2] No such file or directory: '--labels=models/traffic_1/labels.txt'

Thank you in advance.

I had the same problem but I noticed, that the default threshold value of detectnet was 0.5. When I set it to a much lower value I started to see boxes in the output. Perhaps my model isn't trained well enough yet.
To lower the output threshold try to use the following flag in your detectnet-command: --threshold=0.05. You may replace '0.05' with any value between 0 and 1.
For learning more about the available detectnet-options, I just used detectnet --help

I had the same problem but I noticed, that the default threshold value of detectnet was 0.5. When I set it to a much lower value I started to see boxes in the output. Perhaps my model isn't trained well enough yet.
To lower the output threshold try to use the following flag in your detectnet-command: --threshold=0.05. You may replace '0.05' with any value between 0 and 1.
For learning more about the available detectnet-options, I just used detectnet --help

I had the same problem but I noticed, that the default threshold value of detectnet was 0.5. When I set it to a much lower value I started to see boxes in the output. Perhaps my model isn't trained well enough yet.
To lower the output threshold try to use the following flag in your detectnet-command: --threshold=0.05. You may replace '0.05' with any value between 0 and 1.
For learning more about the available detectnet-options, I just used detectnet --help

Thanks to this, I was able to output the box.
So it was caused by low accuracy.
Indeed, 22% of the traffic lights were detected.
I was convinced that I needed to TRAIN more!

I had the same problem but I noticed, that the default threshold value of detectnet was 0.5. When I set it to a much lower value I started to see boxes in the output. Perhaps my model isn't trained well enough yet.
To lower the output threshold try to use the following flag in your detectnet-command: --threshold=0.05. You may replace '0.05' with any value between 0 and 1.
For learning more about the available detectnet-options, I just used detectnet --help

Thanks to this, I was able to output the box.
So it was caused by low accuracy.
Indeed, 22% of the traffic lights were detected.
I was convinced that I needed to TRAIN more!

I had the same problem but I noticed, that the default threshold value of detectnet was 0.5. When I set it to a much lower value I started to see boxes in the output. Perhaps my model isn't trained well enough yet.
To lower the output threshold try to use the following flag in your detectnet-command: --threshold=0.05. You may replace '0.05' with any value between 0 and 1.
For learning more about the available detectnet-options, I just used detectnet --help

Thanks to this, I was able to output the box.
So it was caused by low accuracy.
Indeed, 22% of the traffic lights were detected.
I was convinced that I needed to TRAIN more!

I had the same problem but I noticed, that the default threshold value of detectnet was 0.5. When I set it to a much lower value I started to see boxes in the output. Perhaps my model isn't trained well enough yet.
To lower the output threshold try to use the following flag in your detectnet-command: --threshold=0.05. You may replace '0.05' with any value between 0 and 1.
For learning more about the available detectnet-options, I just used detectnet --help

Thanks to this, I was able to output the box.
So it was caused by low accuracy.
Indeed, 22% of the traffic lights were detected.
I was convinced that I needed to TRAIN more!


fix: sort msg before push

Codecov Report

Merging #202 (0451ff0) into main (58feea4) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

:exclamation: Current head 0451ff0 differs from pull request most recent head 39a6a22. Consider uploading reports for the commit 39a6a22 to get more accurate results

@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
- Coverage   15.66%   15.62%   -0.04%
==========================================
  Files          53       53
  Lines        5134     5145      +11
==========================================
  Hits          804      804
- Misses       4249     4260      +11
  Partials       81       81

Flag
Coverage Δ

unittests
15.62% <0.00%> (-0.04%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

service/message_service.go
0.00% <0.00%> (ø)


Numerical order?

Hi, love this tool! Is it a known issue, or even difficult challenge that values are not in numerical order? Like this:

LCSC and JLC PCB provide all data as text (this is the default type). We have to specify how to interpret the data manually for each possible field. I specified the post-processing process for the most commonly used fields, however, I didn't manage to do it for all fields as it is a very time consuming and laborious process.
Adding new postprocessing isn't hard; you just have to specify a new property in attributes.py and specify the normalization procedure in this function. I cannot promise you to find time to implement this anytime soon, however, if you submit a PR I will be happy to merge it.

This issue is also occurring with common attributes, e.g. "Saturation current (isat)", which gets sorted as a string instead of a current, because the normalizeAttribute() function uses case-sensitive comparisons. Making that function case-insensitive seems to work.


update users permissions for LRC plugin

Link to GitHub repository

When modifying release permission
List the GitHub usernames of the users who should have commit permissions below:

@lrc-pe

This is needed in order to cut releases of the plugin or component.
If you are modifying the release permission of your plugin or component, fill out the following checklist:

### Release permission checklist (for submitters)
- [ ] The usernames of the users added to the "developers" section in the .yml file are the same the users use to log in to [accounts.jenkins.io](https://accounts.jenkins.io/).
- [ ] All users added have logged in to [Artifactory](https://repo.jenkins-ci.org/) and [Jira](https://issues.jenkins.io/) once.
- [ ] I have mentioned an [existing team member](https://github.com/orgs/jenkinsci/teams) of the plugin or component team to approve this request.

When enabling automated releases (cd: true)
Follow the documentation to ensure, your pull request is set up properly. Don't merge it yet.
In case of changes requested by the hosting team, an open PR facilitates future reviews, without derailing work across multiple PRs.
Link to the PR enabling CD in your plugin

### CD checklist (for submitters)
- [ ] I have provided a link to the pull request in my plugin, which enables CD according to the documentation.

### Reviewer checklist
- [ ] Check that the `$pluginId Developers` team has `Admin` permissions while granting the access.
- [ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
- [ ] If security contacts are changed (this includes add/remove), ping the security officer (currently `@Wadeck`) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it.

can you state why it is failing in order to fix it?

You didn't complete the checklist:

https://issues.jenkins.io/secure/ViewProfile.jspa?name=lrc-pe doesn't exist

@NotMyFault and if they are not the same, can that be?

NotMyFault and if they are not the same, can that be?

The usernames specified in the YAML file must match your https://accounts.jenkins.io/ username, which is your artifactory and Jira username. Both are created once you log in with your accounts. credentials.

Fixed :)

@NotMyFault what's the ETA on this after it passed all checks ?

This needs approval from someone who already has access to the plugin:
@narcotics726 @weisun10

Approved

@timja @NotMyFault PR is approved. your action please :)


unpriviledged mode

Description of the new feature / enhancement
We (the IT department) want to give our users easy access to common applications and utilities without giving them admin permissions on their workplace-computers. For this use case we would need a mode in which winget only shows packages that can be installed an updated without elevation.
Proposed technical implementation details
Ideally we would set a system-wide configuration to disable all winget-features that need elevated permissions.
UPDATE:
After reading #388 I assume for this to work consistently, it is necessary to exclude anything that is not an MSI(X) package.

Not sure what valid means in this case. The submission documentation says:

All manifest entries are accurate and not misleading.

So what you say is that even when restricting the InstallerType, there is no way to automatically check if the manifest is lying?

The installer type is validated.
The part that is unknown (because it is not a requirement in the schema) is whether the scope or elevation requirements are completely accurate.
From an automated validation perspective, we test that the properties in the manifest are correct, but we don't try to validate the cases not declared in the manifest.
For example, a manifest could include scope "user", but may exclude scope for "machine". We wouldn't try to validate that a machine wide installation succeeds in that case because it's support or lack thereof is not explicit.
If a manifest has an elevation requirement, we do not validate that the other elevation requirements would not succeed.
I can point to "Spotify" as an example. It will not run elevated, and the manifest declares this. If this were to change in the future and the manifest was not updated, we wouldn't know to automatically check to see if it could succeed elevated during validation.

So this issue depends on mandatory scope definition in the manifest and something analogous for elevation requirements.
I found that similar topics were discussed in https://github.com/microsoft/winget-cli/issues/1898, #3240, #2097 and #847. So I close this issue as it doesn't bring new ideas or requirements to the table.
Thank you for the explanations.


add post build action to record errorprone/checkstyle/findbugs on precommit java

Add another post build action to publish check style and findbugs reports.
Also added java and error prone.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

Yes, running the seed job will affect the global Jenkins configuration. In case of an invalid configuration, the current configuration will not be replaced.
Thanks for taking the time to make these changes!

Thx for merging!


What is needed?

I have a handful of k210 modules and boards on the way so I am wondering what blockers are holding up things like SPI or PWM. Am happy to get stuck into some HAL layer stuff but am unfamiliar with SVD so not sure how much I can help.
Thanks for your work, it is very cool to be able to run go like this.

The main "blocker" is a lack of contributors and a lack of free time. I have to keep the Embedded Go compiler in sync with the original one (it's fast moving point). There is also noos runtime and embedded packages that needs some improvements from time to time (eg. recently added support for PLIC nested interrupts). There are also other supported platforms (nrf5 and stm32).
The k210 platform is very important for Embedded Go because of its two RISC-V cores and unusual capabilities. It helped a lot to revise the noos port design choices.
I'm currently working on hal/uarths driver (Tx is completed but Rx need some work). The next one will be hal/uart (for now only no-DMA version). After that I plan to start working on hal/spi and try to write DMA based driver for it. Eventually I want to send some work to the K210 KPU over onboard Maix Bit USB to UART converter and display the result on a SPI LCD (eg. FT8xx based one). I slowly walk this path...
If you've some free time to contribute to this project please select one peripheral and try to add support for it to the HAL.
You've mentioned SPI and PWM. You can start play with PWM using p/timer I've just generated from SVD.
The K210 timers seem to be derived from DW_apb_timer (Synopsys DesignWare APB Timer). Google it for the documentation. You can find the documentation for the most of K210 APB peripherals in the Cyclone V Hard Processor System
Technical Reference Manual (google for cv_54001.pdf file). See also original Kendryte drivers and Kendryte demos for inspiration.
To start with PWM you probably need to connect a timer channel to some pin. See fpioa.TIMERn_TOGGLEm in hal/fpioa funtion list.
The usual way to add support for a new peripheral to the HAL is to generate p/someperiph from SVD and play with it this way using raw registers. After understand it more you can try write more idiomatic interface in hal/someperiph/periph.go and after testing it write driver in hal/someperiph/driver.go. I don't know this procedure suits K210 timers.
Fill free to ask questions if you have any trouble.

Thanks, I have received hardware and ported some application code over, very seamless so I would say you've done a great job so far. A burn in test lasted >24hrs with some very unoptimized code making use heavy of the HAL, go routines and garbage collector without issue.
I took a quick pass at SPI already to see how in over my head I was, here is the peripheral struct created according to SVD:
// Copyright 2020 The Embedded Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package spi

import (
	"embedded/mmio"
	"unsafe"

	"github.com/embeddedgo/kendryte/hal/internal"
	"github.com/embeddedgo/kendryte/p/bus"
	"github.com/embeddedgo/kendryte/p/mmap"
	"github.com/embeddedgo/kendryte/p/sysctl"
)

// Periph represents SPI peripheral.
type Periph struct {
	ctrlr0           mmio.U32     // Control Register 0
	ctrlr1           mmio.U32     // Control Register 1
	ssienr           mmio.U32     // Enable Register
	mwcr             mmio.U32     // Microwire Control Register
	ser              mmio.U32     // Slave Enable Register
	baudr            mmio.U32     // Baud Rate Select
	txftlr           mmio.U32     // Transmit FIFO Threshold Level
	rxftlr           mmio.U32     // Receive FIFO Threshold Level
	txflr            mmio.U32     // Transmit FIFO Level Register
	rxflr            mmio.U32     // Receive FIFO Level Register
	sr               mmio.U32     // Status Register
	imr              mmio.U32     // Interrupt Mask Register
	isr              mmio.U32     // Interrupt Status Register
	risr             mmio.U32     // Raw Interrupt Status Register
	txoicr           mmio.U32     // Transmit FIFO Overflow Interrupt Clear Register
	rxoicr           mmio.U32     // Receive FIFO Overflow Interrupt Clear Register
	rxuicr           mmio.U32     // Receive FIFO Underflow Interrupt Clear Register
	msticr           mmio.U32     // Multi-Master Interrupt Clear Register
	icr              mmio.U32     // Interrupt Clear Register
	dmacr            mmio.U32     // DMA Control Register
	dmatdlr          mmio.U32     // DMA Transmit Data Level
	dmardlr          mmio.U32     // DMA Receive Data Level
	idr              mmio.U32     // Identification Register
	ssic_version_id  mmio.U32     // DWC_ssi component version
	dr               [36]mmio.U32 // Data Register
	rx_sample_delay  mmio.U32     // RX Sample Delay Register
	spi_ctrlr0       mmio.U32     // SPI Control Register
	_                mmio.U32     // Reserved
	xip_mode_bits    mmio.U32     // XIP Mode bits
	xip_incr_inst    mmio.U32     // XIP INCR transfer opcode
	xip_wrap_inst    mmio.U32     // XIP WRAP transfer opcode
	xip_ctrl         mmio.U32     // XIP Control Register
	xip_ser          mmio.U32     // XIP Slave Enable Register
	xrxoicr          mmio.U32     // XIP Receive FIFO Overflow Interrupt Clear Register
	xip_cnt_time_out mmio.U32     // XIP time out register for continuous transfers
	endian           mmio.U32     // ENDIAN
}

type WorkMode uint8

const (
	MODE0 WorkMode = iota
	MODE1
	MODE2
	MODE3
)

type FrameFormat uint8

const (
	STANDARD FrameFormat = iota
	DUAL
	QUAD
	OCTAL
)

func SPI(n int) *Periph {
	if n < 0 || n > 3 {
		panic("spi: bad number")
	}
	var p *Periph
	switch n {
	case 0:
		p = (*Periph)(unsafe.Pointer(mmap.SPI0_BASE))
	case 1:
		p = (*Periph)(unsafe.Pointer(mmap.SPI1_BASE))
	case 2:
		p = (*Periph)(unsafe.Pointer(mmap.SPI2_BASE))
	case 3:
		p = (*Periph)(unsafe.Pointer(mmap.SPI3_BASE))
	}
	return p
}

func (p *Periph) Bus() bus.Bus {
	return bus.APB0
}

func (p *Periph) n() int {
	switch uintptr(unsafe.Pointer(p)) {
	case mmap.SPI0_BASE:
		return 0
	case mmap.SPI1_BASE:
		return 1
	case mmap.SPI2_BASE:
		return 2
	case mmap.SPI3_BASE:
		return 3
	}
	return -1
}

func (p *Periph) EnableClock() {
	if p.n() == 2 {
		panic("spi: trying to enable clock on slave peripheral")
	}
}

And here is a quick pass at a driver interface:
package spi

type Device struct {
	p *Periph

	workMode      uint8
	frameFormat   uint8
	dataBitLength uint8
	endian        uint8
}

func (d *Device) Init(options ...func(*Device)) {
	for _, opt := range options {
		opt(d)
	}

	var dfsOffset, frfOffset, workModeOffset uint8
	switch d.p.n() {
	case 0:
		fallthrough
	case 1:
		dfsOffset = 16
		frfOffset = 21
		workModeOffset = 6
	case 2:
		panic("spi: cannot init spi2 slave device as master")
	case 3:
		fallthrough
	default:
		dfsOffset = 0
		frfOffset = 22
		workModeOffset = 8
	}
	if d.p.baudr == 0 {
		d.p.baudr = 0x14
	}
	d.p.imr = 0x00
	d.p.dmacr = 0x00
	d.p.dmatdlr = 0x10
	d.p.dmardlr = 0x00
	d.p.ser = 0x00
	d.p.ssienr = 0x00
	d.p.ctrlr0 = (d.workMode << workModeOffset) | (d.frameFormat << frfOffset) | ((d.dataBitLength - 1) << dfsOffset)
	d.p.spi_ctrlr0 = 0
	d.p.endian = d.endian
}

func Simple() func(*Device) {
	return func(d *Device) {
		d.workMode = uint8(MODE0)
		d.frameFormat = uint8(STANDARD)
		d.dataBitLength = 8
		d.endian = 0
	}
}

This is a direct port of the kendryte SDK obviously, my approach here is to allow options to be supplied as functions so that there can be both an easy mode for beginners or people that just want it to work as well as individual parameters for more unusual setups. I am also concerned about the struct visibility, currently only the HAL can access registers directly which would make it quite annoying if someone wanted to poke around, though perhaps it's better left hidden?
Anyway, I will start on the PWM now and leave SPI for later as I think getting timers working would be useful and much more achievable.

I'm very happy to see your work.
Some comments:
Using functions as config options is interesting approach but the options ...func(*Device) looks a little scary especially for non-Go programmers. AFAIK significant number of of people interested in Embedded Go aren't Go programmers.  Some name for func(*Device) type is need. Consider can you avoid dots too. Generally bare metal programmers like simple things that are easy to understand and debug. They very often complain any HAL for bloated code.
I think we can introduce your function based configuration concept as alternate method in spi package and as main method in spi/spiN packages. See for example stm32/hal/spi. There is main spi package for more advanced users and ready to use spi1, spi2, spi3 sub-packages. The sub-packages provide reasonable defaults, easy to use interface and default configuration for many things needed like interrupts and DMA channels.
Name your driver Driver not Device. If you'll develop a DMA version name it DriverDMA or make the DMA version main driver and name no-DMA version DriverNoDMA.
Another thing is iotas. Use iotas only for constants where order doesn't matter. For configuration bits always use explicit numbers. You will come to the same conclusion very quickly as you will start debugging your drivers using GDB.

Anyway, I will start on the PWM now and leave SPI for later as I think getting timers working would be useful and much more achievable.

Fill free to continue your work on SPI too. I didn't started any work on it yet.

I'am also concerned about the struct visibility, currently only the HAL can access registers directly which would make it quite annoying if someone wanted to poke around, though perhaps it's better left hidden?

There will be p/spi package for playing with SPI registers directly. I'll try to generate it from SVD soon. In the HAL the registers should be hidden. A direct register access is allowed if providing a higher level interface doesn't make sense. See kendryte/hal/gpio or kendryte/hal/gpiohs Port as example.
As it seems to be not an issue but rather some kind of discussion I suggest to close it and move to Embedded Go group. You can be a first person that start a topic on this group :) You can copy-paste your last question. I'll do the same with my answer. I think such discussion can be useful for other people. They rarely read github issues  especially closed ones.


NoChatReports plugin seems to break the color in nicknames

Describe the bug
Using the NoChatReports plugin will make it so the colour function of HexNicks will not work properly. This makes the colour of your chat text the same colour as your nickname.
To Reproduce
Steps to reproduce the behavior:

Install NoChatReports and HexNicks
Set your nickname and colour
Type something in chat

Expected behavior
Only the colour of the Nickname should change.
Screenshots

Software (please complete the following information):

Server Implementation: Paper
Minecraft Version: 1.20.1
Java Version: 17
Plugin Version: 3.1.1

Additional context
Don't think I have anything else to add.

Don't use NoChatReports, use FreedomChat instead.


Training dataset not accessible on HuggingFace

Hello,
It seems like the training dataset is not accessible using this URL : https://huggingface.co/datasets/osunlp/Mind2Web, nor using the datasets APIs. Was it removed or is it just a temporary issue with HF servers ?
Thanks for your help !

Hi, very likely it is some issue with HF server since we didn't make any changes recently. Hopefully it will resolve soon. We cannot access the link either but seems the repo is there https://huggingface.co/datasets/osunlp/Mind2Web/tree/main.

Thansk for your help, I'll check the repo !


Create new AuthorizerInterface

I want to implement a custom authorization tool that does not support all the "management" functions defined in ManagerInterface
The only method that is used by the framework is checkAccess.
I propose moving this method to a separate AuthorizerInterface, ManagerInterface would then extend the new interface.
The goal of this split is to separate the management of permissions and the checking of permissions. This change would not break backwards compatibility.
Advantage of this approach is also that it becomes easier to implement adapters to other authorization systems.
Combined with this change I would also change the yii\web\User to accept a configuration for which authorizer it would use:
/**
     * Returns auth manager associated with the user component.
     *
     * By default this is the `authManager` application component.
     * You may override this method to return a different auth manager instance if needed.
     * @return \yii\rbac\ManagerInterface
     * @since 2.0.6
     */
    protected function getAuthManager()
    {
        return Yii::$app->getAuthManager();
    }

Would become:
    public $authorizer;
    protected function getAuthManager()
    {
        return isset($this->authorizer) ? Yii::$app->get('authorizer') : Yii::$app->getAuthManager();
    }

Allowing developers to change the component used via configuration, as is the common approach in the framework.

While we are on the subject - using checkAccess for both checking if a user belongs to a role and whether they have permission to do some task is confusing at least.

Makes sense to me.

Should I implement or will you?

If you have time, it would be great if you'll do it. I'm back from vacation and there's endless list of unread issues :)

Closing this since the only point that needs to be discussed is the name of the interface and that can be done in the PR.

we usually keep issues open until pr is merged.


HTML entities can be cut in half when truncating posts

When truncating post bodies for index pages, HTML entities can be cut in half.
For example, if a post is truncated somewhere at ">" (>), it could end up being cut to just "&", "&g" or "&gt" (invalid).

I should make it remove the broken entity (if existent) from the end with a regular expression.


Failing at the end launch gradio server

To Reproduce
AttributeError: 'Llama2Host' object has no attribute 'gradio_app_chat'

Can i have the code or are you using examples?

Updated


First Balance Pass

Creates an array of ZenScript files in \modpack\default\scripts for organization, and proper loading. This also restores many of the recipes that greg removed from vanilla that are conflicting with stuff like plantball recipes. Overall rundown:
Moves Minetweaker \modpack\default\scripts
Restores Vanilla Recipes (Does not remove GT Recipes)  | Minecraft.zs
Fixes a conflicting recipe with Nether Star Block | Gregtech.zs
Another update to Readme | readme.md
Re-Enables IC2 Cables for GraviSuite, Disables near-unbreakable spawners, Disables Inv Unification. Makes GT Machines easier | \config\GregTech\GregTech.cfg
Enables RF Input to GT, enables GT Solars (Probably unnecessary) | \config\GregTech\OverpoweredStuff.cfg
Returns Thaumcraft to Normal Mode | \config\Thaumcraft.cfg
Begins to attempt to fix some GT Oredicts (like oreNetherrack*) | 1 - OreDict.zs

On a side note... Since this pack for whatever reason disables /mt reload in Singleplayer, These MT files are untested. They should be fine however. If they don't load there's a typo somewhere.

I like where this is going but can you recreate everything against the latest commit


Pretraining instruction

Hi authors,
Awesome work! Thanks for your codes and instructions. Recently, I want to pretrain a new Luke model on my own dataset. Could you write a pretraining instruction so I can learn? Thank you!

@JiachengLi1995  It seems the steps to pretrain is fairly trivial. You can execute python -m luke.cli and follows all listed command step by step and it should be fine

Parse wikipedia dump to database

python -m luke.cli build-dump-db enwiki-latest-pages-articles.xml.bz2 ./enwiki_latest

Generate list of entity vocab from your parsed database, you can refer to utils/ent_vocab.py for the additional parameters (size of vocab, white list etc).

python -m luke.cli build-entity-vocab  ./enwiki_latest ./output_ent-vocab.jsonl

Build your training datasets and metadata needed for pretraining

do note that I am using roberta-base tokenizer as my tokenizer you can use others such as bert-base-cased etc.
python -m luke.cli build-wikipedia-pretraining-dataset ./enwiki_latest roberta-base ./output_ent-vocab.jsonl  ./wikipedia_pretrain_dataset

Finally you can start your pretraining by running the following command

python -m luke.cli pretrain \
    ./wikipedia_pretrain_dataset \
    luke-roberta-base \
    --bert-model-name roberta-base \
    --entity-emb-size 300 \
    --batch-size 28 \
    --gradient-accumulation-steps 1 \
    --learning-rate 0.0005 \
    --warmup-steps 10000 \
    --log-dir logs/luke-roberta-base

@theblackcat102 Thank you for providing the instructions of the pretraining of LUKE! By following these steps with using the hyperparameters specified in the original paper, our system should produce the model that performs similarly to our pretraining model.

Hi @ikuyamada,
Sorry to bother you again. I wanted to fine tune the model on the CoNLL2003 dataset to see if it runs. On the entire dataset it begins the training phase, but it takes 50hrs/epoch. So i only took the first few samples of the CoNLL dataset, but then i get an assertionerror examples/ner/utils.py", line 238, in convert_examples_to_features assert not entity_labels. I really don't understand why this happens, i only made the dataset smaller.

Hi @mgong023,
Please read the source code carefully to investigate why the error happens based on your dataset. The error basically means that some entity spans detected in utils.py (line 122-145) are missing for some reasons.

Alright, your recommendation gave me an insight so i have fixed that error. I now encounter an CUDA out of memory on the second epoch. I use 2x Nvidia Tesla K80. Are the GPUs not powerful enough or does something go wrong? I also get the following warning at the start: Warning:  multi_tensor_applier fused unscale kernel is unavailable, possibly because apex was installed without --cuda_ext --cpp_ext. Using Python fallback.  Original ImportError was: ModuleNotFoundError("No module named 'amp_C'")  Does this have to do with it?

Hi @mgong023,
I do not know the spec of Tesla K80 but the original NER model was trained using Tesla V100 with 16GB memory.

@theblackcat102 following your instruction, I can train new luke on my own dataset. But it seems to mismatch when converting it to transformers huggingface. There is no [MASK2] in the entity vocab and unexpected keys Unexpected keys cls.predictions.bias, cls.predictions.transform.dense.weight, cls.predictions.transform.dense.bias, cls.predictions.transform.LayerNorm.weight, cls.predictions.transform.LayerNorm.bias, cls.predictions.decoder.weight, cls.predictions.decoder.bias, cls.seq_relationship.weight, cls.seq_relationship.bias, embeddings.position_ids
https://github.com/huggingface/transformers/blob/5b7dcc7342/src/transformers/models/luke/convert_luke_original_pytorch_checkpoint_to_pytorch.py

Hi @theblackcat102 and @ikuyamada,
I followed the instructions which you have defined for pre-training LUKE on the Wikipedia corpus. However, using the hyperparams provided, I get a really bad-performing model. Is anyone able to reproduce the reported numbers using the above pre-training code?

Hi @svjan5,
We are working on the updated pretraining code and a documentation and plan to release them soon.
Additionally, as described in our paper (Appendix A), we adopt two-stage pretraining. We freeze the BERT weights (by specifying --fix_bert_weights) and update only the entity embeddings in the first stage, and train the entire model based on the first-stage model (by specifying the checkpoint file of the first-stage training using --model_file) in the second stage.

Thank you for your prompt reply @ikuyamada. I will try following the two-stage pertaining and will be waiting for the pretraining code and instructions.

@ikuyamada
You meant,
Pretraining: first stage
Downstream tasks: second stage
Please confirm.
Regards
Raj

Hi @patelrajnath,
Thank you for your comment. No, our pretraining consists of two stages. This is explained in Appendix A of our paper:

To stabilize training, we update only those parameters that are randomly initialized (i.e., fix the parameters that are initialized
using RoBERTa) in the first 100K steps, and update all parameters in the remaining 100K steps.

@svjan5 Thanks! I will let you know when the pretraining instruction is available.

While you wait @svjan5, here are instructions I created for pretraining LUKE for myself:
https://colab.research.google.com/drive/1lDxvauAAnCtQfybOyTnpv38vQyCI4Whq?usp=sharing
Note that this is for Icelandic and therefore has data and models suited for that language. Something you probably want to change

Thanks a lot, @bennigeir. I will definitely give it a try.

The pretraining instruction is available here.

Great thanks a lot @ikuyamada !


nabox certificate issue (SSL page)

A note for the community

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please let us know in a comment

Problem
There's a wording issue on the SSL page.  The top box is private key, and the second box is labeled "certificate chain" but it's really the server cert.  The actual chain is the bottom box under root certificates.
There's also a typo on the description on the bottom box "Add you enterprise CA ".  "you" should be "your".
NAbox 3.3b2 (2023-03-30)
Configuration
No response
Poller
n/a
Version
3.3b2
Poller logs
No response
OS and platform
NAbox 3.3b2 (2023-03-30) - Alpine Linux 3.15.8
ONTAP or StorageGRID version
n/a
Additional Context
No response
References
No response

You're totally right, the way it's implemented now expects the certificate only, but I don't think it should be.
In general, we want web servers to publish server certificate as well as any intermediate certificate, so I think the fix is on the API more than the typo on the page.
The bottom part is only to let Harvest success strict validation when connecting to systems with private CA, their are not use for the web service of NAbox.
I fixed the typo, thanks !

I was doing some tests and current behavior actually seems to be correct. The certificate chain has to be set in that field otherwise the intermediate certificate is missing and can’t be validated by the browser.

@ewilts is there a change you would like to see here or can we close this one?

@ewilts we can handle this on<EMAIL_ADDRESS>


⚠ Jenkins Plugins Artifactory has degraded performance

In 812db8e, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1272 ms

Resolved: Jenkins Plugins Artifactory performance has improved in e90346f after 12 minutes.


Transaction Error while cancelling multiple (4) open orders

This was chwy's example -- this is a scalar market. Could be bug in the cancel (on contract) or the sdk passing too many cancels in for cancel in one group.
Then:

Cancel 1 works
Cancel 1 works again
Cancel 2 remaining in bulk works.

yes

not able to repro this. I successfully deleted 4 orders.  I successfully cancelled 10 open orders. it showed failed but recovered.

working for me - closing


Documentation incomplete for bind

Hi. Thanks for the plugin. I am going to use it with nuxt (only on client side, of course).
Just to let you know that the README is a bit incomplete. First of all, lacks of examples. Secondly, you forgot to mention that in order to bind to work, you must specify into the options:
  localStorage: {
    someObject: {
      type: Object,
      default: {
        hello: 'world'
      },
      bind: true
    }
}

From index.js
 if ((bind || config.bind) && config.bind !== false) {
              this.$options.computed = this.$options.computed || {}`
}

Thanks @Globerada for pointing it up.
Vue.use(VueLocalStorage, { bind: true }); makes no effect in my case.
Have to set bind: true per each binding.
Also thanks for the plugin.


Improve Readme

The readme is getting better but still needs some work.

How are you feeling about the doc's docs @flooie ?

They're ok but I think we need some cleanup .. let me jump into this today.

Great, once it's ready, I'll get a blog and product page together.
On Mon, May 2, 2022 at 6:33 AM William Palin @.***>
wrote:

They're ok but I think we need some cleanup .. let me jump into this today.
—
Reply to this email directly, view it on GitHub
https://github.com/freelawproject/doctor/issues/125#issuecomment-1114886779,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABZ3KSSLIK2WPVIS5INNH3VH7KSBANCNFSM5Q2RPDVA
.
You are receiving this because you commented.Message ID:
@.***>

--
Mike Lissner
Executive Director
Free Law Project
https://free.law


Fix broken link in #329

Overview/Summary
Replace this with a brief description of what this Pull Request fixes, changes, etc.
This PR fixes/adds/changes/removes

#329

Testing Evidence
(by inspection)
As part of this Pull Request I have

[x] Checked for duplicate Pull Requests
[x] Associated it with relevant issues, for tracking and closure.
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Performed testing and provided evidence.
[x] Updated relevant and associated documentation.
[ ] Updated the "What's New?" wiki page (located in the Enterprise-Scale repo in the directory: /docs/wiki/whats-new.md)

/azp run unit


Overlapping the same modal

I was wondering if there was a way to overlap the same modal over each other? I don't see a way to give the same modal a unique id?
Like a group stack of modals that you can close one by one or all at once.
ExampleModal > ExampleModal > ExampleModal
Thanks for this awesome lib!

It's maybe late, but I have the same need.
And you can do this : https://opensource.ebay.com/nice-modal-react/#promise

@youf-olivier Yes, I noticed that, but it didn't work since I needed the user to be able to click and return to the previous modal-like sites. Finally, I created my own solution.

It's maybe late, but I have the same need.
And you can do this : https://opensource.ebay.com/nice-modal-react/#promise

Yes, I noticed that, but it didn't work since I needed the user to be able to click and return to the previous modal-like pages. Finally, I created my own solution.

@dragonfire1119 Hi can you please share your solution with it using the library?

@dragonfire1119 Hi can you please share your solution with it using the library?

I no longer use nice-modal-react because it lacked the features I required, so I created my own solution. I don't have a solution for this library.

you can code like this:
const modal1 = NiceModal.create(SameModal);
const modal2 = NiceModal.create(SameModal);

NiceModal.show(modal1);
NiceModal.show(modal2);

You can encapsulate it like this
import NiceModal from '@ebay/nice-modal-react'
import type { FC } from 'react'

export const createNiceModal = <P extends {}>(component: FC<P>) => {
  const Dialog = NiceModal.create<P>(component);

  return (modalId: string) => {
    NiceModal.register(modalId, Dialog)

    const create = (props: P = {} as P) => NiceModal.show(modalId, props)

    const hide = () => NiceModal.hide(modalId)

    const remove = () => NiceModal.remove(modalId)

    return {
      create,
      hide,
      remove,
    }
  }
}

use
const modalFactory = createNiceModal(
  () => {
    // modal
    const { visible, remove, resolve } = useModal()
    // form
    const [form] = useForm()

    return (
      <Modal title="登录" open={visible} onCancel={remove} onOk={form.submit}>
        <Form form={form} onFinish={resolve}>
          <FormItem name="username" label="用户名">
            <Input placeholder="请输入密码" />
          </FormItem>
          <FormItem name="password" label="密码">
            <Password placeholder="请输入密码" />
          </FormItem>
        </Form>
      </Modal>
    )
  }
)

export const LoginModal = modalFactory('login')

export const registerModal = modalFactory('register')


chore: update smartlook client

Update smartlook client to 8.x

/ok-to-test sha=06a745f

/ok-to-test sha=3b831f4

/ok-to-test sha=c74f3a8


read commit desc

moved user state into some enum to remove useless comment
renamed interface from user to User to go along with the common TypeScript naming scheme

forgot to merge this earlier, too lazy to go back and retype everything
credit to you though, didnt think about using enums


IP change for DVL

Since the Xaviers static IP had to be changed to match the mc-labs subnet, the DVL IP now also needs to be adjusted. This can be done by a windows software supplied by Nortek. We do not know exactly where to find that program yet, but this pdf should help
New IP of Xavier: <IP_ADDRESS>

The software mentioned in the user manual is on a USB that came with the DVL. I will put it in the top middle locker, if you wish to use it. This is the new configuration:

Closing this since the DVL IP has been set. For future reference:
To change the IP, you need the .exe from the nortek USB stick. As long as your computer is connected to the same physical network as the DVL, the "Discovery" tab should take care of everything for you :smile:


Use built in classification flags to find tracking requests

Wow! wish I'd found this earlier- looks like the API (at least for firefox) has some kind of way to filter for tracking, ads, and analytic flags. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/onSendHeaders
(look under 'The classification flags include')
Definitely will be good to research and implement this.
(part of https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop)

@stanleymarkman, it would be good if you can explain a bit more at our meeting later today.

As we will be concentrating on the privacy flags after our 2.0.0 release, I am closing this. Nice find, @stanleymarkman!


Add SetDefaultDependencyVariation

SetDefaultDependencyVariation sets the variation name that will be used
when a dangling dependency is found while a module is being split. A
dangling dependency can occur if a module is split to a variant that one
of its dependencies is not split into. When the default variation is not
set, such dangling dependency is a hard error. But with the new
function, the default variation can be set and subsequent calls to
CreateVariations and its variations on the same context uses the default
variation when necessary.
(If even the default variation does not exist for the dependent module,
it is an hard error)
Note that this is different from calling SetDependencyVariation("foo")
followed by CreateVariations("foo", "bar"). In that case, regardless of
whether a dependency of the current module has the variant 'bar' or not,
only the 'foo' variant is chosen.
With SetDefaultDependencyVariation("foo") followed by
CreateVariations("foo", "bar"), 'foo' variant is used only when the
'bar' variant of the current module depends on a module that does not
have 'bar' variant.
Bug: 138103882
Test: m
Change-Id: I4520ca87487994de024fdbacda3bef6636225f0d

Reviewed at https://android-review.googlesource.com/c/platform/build/blueprint/+/1093129


Create loops according to storage scope and thread hierarchies

The following small example generates wrong IR and code:
from __future__ import absolute_import, print_function
import tvm
import numpy as np

# Input declarations
m = 1
n = 3
p = 2
A = tvm.te.placeholder((m, n, p), name='A')
B = tvm.te.compute((m, n, p), lambda bi, bj, bk: A[bi, bj, bk], name="B")
C = tvm.te.compute((m, n, p), lambda ci, cj, ck: B[ci, cj, ck], name="C")
s = tvm.te.create_schedule(C.op)
bx = tvm.te.thread_axis("blockIdx.x")
tx = tvm.te.thread_axis("threadIdx.x")
s[B].compute_at(s[C], s[C].op.axis[0])
s[B].set_scope("local")
bno, bni = s[B].split(s[B].op.axis[1], n)
s[C].bind(s[C].op.axis[0], bx)
s[C].bind(s[C].op.axis[1], tx)
s[B].bind(bni, tx)
from tvm.contrib import tedd
tedd.viz_dataflow_graph(s, True, '/tmp/dfg.dot')
tedd.viz_schedule_tree(s, True, '/tmp/scheduletree.dot')
tedd.viz_itervar_relationship_graph(s, True, '/tmp/itervar.dot')
print(tvm.lower(s, [A, C], simple_mode=True))
fcuda = tvm.build(s, [A, C], "cuda")
print(fcuda.imported_modules[0].get_source())
ctx = tvm.context("cuda", 0)

# Random tensors for testing
a = tvm.nd.array(
    np.random.rand(A.shape[0].value, A.shape[1].value,
                   A.shape[2].value).astype("float32"), ctx)
c = tvm.nd.array(
    np.random.rand(C.shape[0].value, C.shape[1].value,
                   C.shape[2].value).astype("float32"), ctx)

fcuda(a, c)
result = c.asnumpy()
answer = a.asnumpy()
tvm.testing.assert_allclose(result, answer, rtol=1e-5)
evaluator = fcuda.time_evaluator(fcuda.entry_name, ctx, number=1)
print(fcuda.entry_name + ': %f ms' % (evaluator(a, c).mean * 1e3))

The IR:
produce C {
  // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 1
  // attr [B] storage_scope = "local"
  allocate B[float32 * 2]
  produce B {
    // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 3
    for (bk, 0, 2) {
      if (likely((threadIdx.x < 1))) {
        if (likely((threadIdx.x < 2))) {
          B[((threadIdx.x*2) + bk)] = A[((threadIdx.x*4) + bk)]
        }
      }
    }
  }
  // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 3
  for (ck, 0, 2) {
    C[((threadIdx.x*2) + ck)] = B[ck]
  }
}

The direct problem is a wrong predicate for stage B:
if (likely((threadIdx.x < 1)))

A more fundamental cause is that loop nest creation doesn't consider thread/memory hierarchies. In this example, stage B's scope is local.  InferBound, needRelax in particular, doesn't relax the IterVar binding to a threadIdx, because the memory space is only used within the thread.  However, when creating loops, schedule_ops uses the IterVar to offset the index to the memory regardless hierarchies.  This is wrong, as the code uses threadIdx to address local memory.
The fix is straightforward -- MakeLoopNest adds the thread bound IterVar to the index only if the storage rank is lower than the thread rank (same the logic as needRelax() in bound.cc).  vthread doesn't need this change, as it doesn't reduce storage scope, i.e. that vthreads still share one local memory space.
Similar issue was identified in this thread: https://discuss.tvm.ai/t/how-to-avoid-allocating-the-wrong-amount-of-registers-in-cuda-scheduling-in-this-example/5310, although it has more to address.  I add this example as a new test.
Questions:

I leave "warp" with existing behavior to avoid one test failure (tests/python/unittest/test_tir_transform_lower_warp_memory.py). The IR from the test doesn't have the undesired predicate.  Please confirm.
The current storage ranks and threads ranks make sense to GPU.  How about other architectures?  Shall these ranks and their relationship be arch specific?
Shall I refactor the rank comparison logic to a central location, such as thread_storage_scope.h?

Thanks @yongfeng-nv ! this PR is now merged


fix: add error message when using a sha for a workflow

cc @rbehjati
This adds a log message that alerts the user that the workflow is failing due to using a workflow pinned by SHA
@ianlewis @laurentsimon if we ever do want to support referencing by SHA the error would obviously need to be removed.

looks like we're both hitting the same errors on different PRs, regarding the dist-matrix pre-submit. Not sure what's happening

I updated ncc and it seems to fix the pre-submit problem. Rebase and you should get the updated version.


Decide if Zebra is at the chain tip

Motivation
Zebra needs a way to tell when it has reached the chain tip.
Closes #2592.
Solution
This PR simply calculates the average recent sync length, and returns true if this value falls below 20. This constant (20) is based on https://github.com/ZcashFoundation/zebra/issues/2592#issuecomment-897304684.
Reviewer Checklist

[ ] Code implements the behavior required in #2592

I think this looks pretty good. Should we create a specific test for it or our current tests covers it ?

I think this looks pretty good. Should we create a specific test for it or our current tests covers it ?

I think the proptest is good, but I'd also like us to test some test vectors.
For example:

totally empty length array is not near tip
length array with all zeroes is near tip
length array with all 500s is not near tip

Those are the 3 basic tests that should keep on working, even if we tweak the algorithm or constants.


Connection refused

Followed steps from documentation but I'm seeing this in the node-red log:
Jul 06 17:38:30 rpi2 Node-RED[5350]: 6 Jul 17:38:30 - [error] [alexa-home-conf:eac45643.46e308] Error: connect ECONNREFUSED <IP_ADDRESS>:8883
Jul 06 17:38:36 rpi2 Node-RED[5350]: 6 Jul 17:38:36 - [error] [alexa-home-conf:eac45643.46e308] Error: Connection refused: Not authorized

This has been going on for a long time so I deleted the node. On the Alexa side I was able to link the account and discover devices correctly. The only thing I did different is that I deployed tab with "Alexa Home" after setting up account credentials and prior to trying to look up devices. As soon as I hit deploy I see these errors.

Ignore that error, 30 seconds later it will connect on port 1883 it is it just using a fail over address that it currently not running.
To prevent seeing the message on every deploy change your deploy type to just changed nodes (click the arrow on the end of the deploy button), since the config node will not change it won't tear the connection down and restart it on each deploy

This error has been going on for minutes, these messages are repeating every 5-6 seconds. Also, I am not seeing the devices in the dropdown (I hit refresh still nothing).

Then your password is wrong (or it contains a @ symbol) change the password by using the forgotten password link here https://alexa-node-red.bm.hardill.me.uk/lostPassword

Actually if it's failing to connect to the MQTT broker then the password is just wrong, it's not the @ symbol

My password contains one uppercase letter and some lowercase letters and a couple of numbers. Is there a limit on the number of characters?

You must have a type when you entered it into Node-RED is the MQTT connection is failing.

Is there a way to delete my account and restart from scratch?

Use the link I posted to change your password

Ok, I'll try that.


JsonResponse not working

Hello,
I try to use the JsonResponse but without success.
I use the following code to send an array as response content
return new JsonResponse( $data, $status );
Then I use the following code to emit the response
$emitter = new SapiStreamEmitter();
$emitter->emit( $response );

But in my browser the response is empty. I always get a HTTP Status code 200 with an empty body. Even if I force status code to 201 (for example).
Can you help me ?
Regards.

I wasn't able to reproduce the issue in the tests.
The behavior appears to be headers already sent and display_errors = Off.
What is your error reporting configuration (in phpinfo(), error reporting and display_errors directives)?

Hi,
the directives are the following:
display_errors = Off
error_reporting = 32767

Hi again,
You're right...if I put display_errors to on then I got a PHP error. After fixing it it's working perfectly.
Thanks for your help.


How to use Olympus with a custom objective function?

I see from the docs that there are facilities for making custom Dataset-s, custom Planner-s, and custom Emulator-s, but what I'm going for would be more like a custom Surface. Does Olympus directly support optimizing an externally supplied (black box) objective function? If so, could you provide a MWE? Alan suggested I use Olympus for self-driving-lab-demo. See this Twitter thread and Alan's replies [1] [2] for context.

Tried out the example notebook and starting playing around with the Planner class (function):
from olympus.planners import Planner
planner = Planner(kind='Gpyopt')
type(planner)

olympus.planners.planner_gpyopt.wrapper_gpyopt.Gpyopt

dir(planner)

> ['RECEIVED_VALUES',
>  'SUBMITTED_PARAMS',
>  '__abstractmethods__',
>  '__class__',
>  '__contains__',
>  '__delattr__',
>  '__dict__',
>  '__dir__',
>  '__doc__',
>  '__eq__',
>  '__format__',
>  '__ge__',
>  '__getattr__',
>  '__getattribute__',
>  '__getitem__',
>  '__gt__',
>  '__hash__',
>  '__init__',
>  '__init_subclass__',
>  '__iter__',
>  '__le__',
>  '__lt__',
>  '__module__',
>  '__ne__',
>  '__new__',
>  '__reduce__',
>  '__reduce_ex__',
>  '__repr__',
>  '__setattr__',
>  '__setitem__',
>  '__sizeof__',
>  '__str__',
>  '__subclasshook__',
>  '__weakref__',
>  '_abc_impl',
>  '_ask',
>  '_get_bo_instance',
>  '_params',
>  '_project_into_domain',
>  '_set_param_space',
>  '_tell',
>  '_validate',
>  '_validate_paramvector',
>  '_values',
>  'acquisition_type',
>  'add',
>  'ask',
>  'attrs',
>  'batch_size',
>  'config',
>  'defaults',
>  'exact_eval',
>  'flip_measurements',
>  'from_dict',
>  'from_json',
>  'get',
>  'goal',
>  'indent',
>  'kind',
>  'max_prop_len',
>  'me',
>  'model_type',
>  'num_generated',
>  'optimize',
>  'param_space',
>  'props',
>  'recommend',
>  'reset',
>  'set_param_space',
>  'tell',
>  'to_dict',
>  'to_json',
>  'update']

I'm guessing the workflow will be something like planner.set_param_space(...) followed by planner.optimize(...) and where the parameter space is defined as described in custom emulators
Related: custom planners

Hello,
Yes, you can use an arbitrary objective function with the Olympus machinery. My suggestion would be to see this example which runs a simulated cross coupling reaction optimization with the help of the Summit package.
#!/usr/bin/env python

import os, sys
import pickle
import time
import numpy as np
import pandas as pd
import subprocess

import olympus
from olympus.campaigns import ParameterSpace
from olympus.objects import ParameterContinuous, ParameterCategorical
from olympus.campaigns import Campaign
from olympus.planners import Planner

from summit.benchmarks import MIT_case1
from summit.strategies import LHS
from summit.utils.dataset import DataSet

#---------------
# Configuration
#---------------

model = 'Gpyopt'

BUDGET = 20
NUM_RUNS = 20
GOAL = 'maximize'

#-----------------------
# build olympus objects
#-----------------------

param_space = ParameterSpace()

# add ligand
param_space.add(
	ParameterCategorical(
		name='cat_index',
		options=[str(i) for i in range(8)],
		descriptors=[None for i in range(8)],        # add descriptors later
	)
)
# add temperature
param_space.add(
	ParameterContinuous(
		name='temperature',
		low=30.,
		high=110.
	)
)
# add residence time
param_space.add(
	ParameterContinuous(
		name='t',
		low=60.,
		high=600.
	)
)
# add catalyst loading
# summit expects this to be in nM
param_space.add(
	ParameterContinuous(
		name='conc_cat',
		low=0.835/1000,
		high=4.175/1000,
	)
)

#-------------------
# begin experiments
#-------------------

run_ix = 0

# loop through the independent runs
while run_ix < NUM_RUNS:

	print(f'\n\n STARTING SEED RUN {run_ix} on SUZUKI RXN CASE {TARGET_IX} using {model_kind}\n\n')

	# build campaign and set param space
	campaign = Campaign()
	campaign.set_param_space(param_space)

	# Olympus planner
	planner = Planner(kind=model_kind, goal=GOAL)

	# set planner param space
	planner.set_param_space(campaign.param_space)

	#-----------------
	# Begin experiment
	#-----------------

	iteration = 0

	while len(campaign.values) < BUDGET:
		print(f'\nITERATION : {iteration}\n')
		# instantiate summit object for evaluation
		exp_pt = MIT_case1(noise_level=1)
		samples = planner.recommend(campaign.observations)
		print(f'SAMPLES : {samples}')
		for sample in samples:
			# turn into dataframe which summit evaluator expects
			columns = ['conc_cat', 't', 'cat_index', 'temperature']
			values= {
				('conc_cat', 'DATA') : sample['conc_cat'],
				('t', 'DATA'): sample['t'],
				('cat_index', 'DATA'): sample['cat_index'],
				('temperature', 'DATA'): sample['temperature'],
			}
			conditions = DataSet([values], columns=columns)

			exp_pt.run_experiments(conditions)

			measurement = exp_pt.data['y'].values[0]

			campaign.add_observation(sample, measurement)

			to_disk = {
				'params': campaign.params,
				'values': campaign.values,
			}
			pickle.dump(to_disk, open(f'runs/run_{model_kind}_{run_ix}.pkl', 'wb'))

		iteration += 1

	run_ix += 1

Thanks for sharing the great example. Do you mind tweaking the example to get it to run to completion? https://colab.research.google.com/drive/1K9jgu58AtKCG3zro2hMZH9TQ7Y8PNGZ5?usp=sharing (editor link)
After that, adapting it should be straightforward (if you don't have time for that, no worries, and I can work with the example as-is). As a note-to-self, the param space would look like this:
param_space = ParameterSpace()
[param_space.add(ParameterContinuous(name=name, low=0.0, high=89.0)) for name in ["R", "G", "B"]]

(89 since max brightness=255 on the NeoPixel is painful to look at).
And given the planner.recommend syntax (nice btw), evaluating the objective function should be really straightforward.

You need to use the dev branch of the repo to access the categorical parameters. If you can't get that to work I would just spin up a continuous-valued parameter example using this same ask-tell framework.


Raw response in Attribute values

Sometimes attributes responses are not valid UTF-8. Instead of returning an error, add another field to let the user handle the packet
Partial fix for #22

Now the user can write raw attribute values with CommandBuilder<Cmd>::attribute_raw(self, key: &str, value: Option<&[u8]>)
And read them from CommandResponse::Reply from the attributes_raw field inside ReplyResponse


Constants should be comentable in blocks

I am referring to #208
// Mobility is how you move on
type Mobility int

const (
	Lame  Mobility = iota // Immobile motion
	Car                   // Motion by car
	Plane                 // Motion by plane
	Ship                  // Motion by ship
)

const (
	// Immobile motion
	Lame2 Mobility = iota
	// Motion by car
	Car2
	// Motion by plane
	Plane2
	// Motion by ship
	Ship2
)

translate perfectly fine into godoc go version go1.7.4 darwin/amd64
generated with godoc
const (
    Lame  Mobility = iota // Immobile motion
    Car                   // Motion by car
    Plane                 // Motion by plane
    Ship                  // Motion by ship
)
const (
    // Immobile motion
    Lame2 Mobility = iota
    // Motion by car
    Car2
    // Motion by plane
    Plane2
    // Motion by ship
    Ship2
)

This works fine for me on 1.8.1.

// Mobility is how you move on
type Mobility int

// Various kinds of Mobility
const (
	Lame  Mobility = iota
	Car
	Plane
	Ship
)


monochromic progress bars not showing

Describe what and where does not get themed by Ultrachromic
A clear on concise description.
The progress bars have no themeing, so they're transparent (can't see what the progress is). Everything from the progress bars in the main menu to the media status prorgress bar and volume.
Screenshots
They really help.

Okay I managed to find the "broken"/missing css rules:
.mdl-slider-background-lower {
    background-color: #fff;
}
.iconOsdProgressInner {
    background: #fff;
}

.itemProgressBarForeground {
    background-color: rgba(255, 255, 255, 0.35);
}

Still seeing this issue occur, and it's quite annoying.

Found the root cause of the issue. It seems that type/light.css and type/colorful.css set the --accent color, but neither type/dark.css (used by the Monochromic preset) and type/dark_withaccent.css set this CSS variable. It seems that itemProgressBarForeground uses this variable to set the color.
If you add this additional line of custom CSS to your Jellyfin "General" config:
@import url('https://cdn.jsdelivr.net/gh/CTalvio/Ultrachromic/presets/monochromic_preset.css');
:root {--accent: 255, 255, 255; } /* New! Add this here. */

you should see itemProgressBar working as expected now, along with all other missing progress bars.
Before

After

This seems like a bug to me. Perhaps @CTalvio can give additional context? (apologies for the direct ping!)


Request your work to be included in the awesome Zepp OS project

Hello @LeKovr
Please allow me to introduce myself, I am Myoung XUE, an engineer from Zepp OS Team.
We have an awesome project https://github.com/zepp-health/awesome-zeppos, as the name suggests, where we include many projects from the community that are relevant to Zepp OS.
We noticed that several of your projects are publicly available on Github and would like to ask your permission to include them in the official awesome zeppos repository.
Hopefully, we can get your approval and your project will help more developers in the community.

Hi, @MyoungXUE.
First of all I would like to thank your team for  Zepp OS itself. Nice OS and it has taken small of time to develop an application for it.
Of  course, I will be glad to see my projects included in awesome list. You have my permission now;-)


Missing imap support

I need php7.1-imap to enable external user backend via imap authentication.
Could you add it to Dockerfile?
Thank You

This is missing in 11.


FFmpegKit.Execute made my Maui app unresponsive!

for Maui android,
private void ExecuteClicked(object sender,EventArgs e)
{
#if ANDROID
var inputPath = Path.Join(FileSystem.Current.AppDataDirectory,"SampleVideo_360x240_1mb.mkv");
var outputPath = Path.Join(FileSystem.Current.AppDataDirectory,"SampleVideo_360x240_1mb.mp4");
var session = FFmpegKit.Execute($"-i {inputPath} {outputPath}");//unresponsive from here
#endif
}

You may want to do this heavy kind of work in a background thread so it doesn't block UI processes.


[GalacticScale] [Bug] Crash at game start if no suitable starting planet

Sometimes when generating a new galaxy there is no suitable planet created in star system 0 to be selected as a 'birth planet' by UniverseGen::CreateGalaxy. This causes a crash at initialization as the GuideMissionStandardMode falls over due to being handed a null localPlanet.
NullReferenceException: Object reference not set to an instance of an object
  at GuideMissionStandardMode.Init (.GameData _gameData) [0x00000] in <filename unknown>:0
  at GameData.StartStandardModeGuide () [0x00000] in <filename unknown>:0
  at GameLoader.FixedUpdate () [0x00000] in <filename unknown>:0

One idea for remediation would be to force the creation of a suitable planet in star 0 if there otherwise isn't one.
Another idea would be to allow the UniverseGen::CreateGalaxy to search the entire galaxy for an eligible birth planet (and then remediate anything that happens to rely on the birth star being index 0 :fire:).

Hey there , yep it's a know bug. I'll be able to fix it by next release. :)
Thanks for the report

PS : in the meantime you can use ChanceBeingHabitable=1 in the configs

should be fixed now - reopen if needed


LineManager.setLineDashArray() documentation question

I would like to be able to draw dashed lines on a map that receive click events.
I have just noticed the LineManager.setLineDashArray() method.
How is this method supposed to be used?
Does this set the dash array property for all lines managed by the instance of the LineManager?
Are there any plans to add these other style properties to the list of LineOptions?

Hey @Yermo, thanks for reaching out!

How is this method supposed to be used?

Please refer to the style specification.

Does this set the dash array property for all lines managed by the instance of the LineManager?

Yes.

Are there any plans to add these other style properties to the list of LineOptions?

In this sepcific case, no, because the line-dasharray is not data-driven and we cannot change the pattern for each separate line in the LineManager based on the provided data. For each new pattern you'll have to create a new instance of the LineManager as mentioned above.

Thank you.


Art1

Merging to Dev

Adding the updated map features and added the loading icon when messages are sent to chatGPT.


Made the changes in the cart

Fixes Issue

closes #1593
Changes proposed
Made the changes in the cart component

Screenshots

Note to reviewers

Summary by CodeRabbit

New Features

Introduced a visually enhanced Lordicon component for item removal in the cart.
Improved UI layout for coupon input, Clear Cart, and Check Out buttons.

Refactor

Simplified state management by removing unnecessary state and functions related to coupon input visibility.

change this delete icon color to red and make it a little bit small
place check out button below to apply coupon
placed apply coupon to redeem and next to input field

@codervivek5 please check now

kindly share your updated changes

@codervivek5 can see now


The default status of the function file is confused

OS: Win10/Mac
Build Version: 20200714.9
Repro steps:

Drill down a PostgreSQL server --> Database --> Functions.
Create a function --> Click the function.
Check the status of the opened file.

Expect:
The status of the opened file is saved.
Actual:
The status of the opened file is unsaved.

This is actually by-design.  Because the file is being pulled from Azure remotely, there is no local version of this file saved.  If the user wants to keep it locally, then they would have to save it (which is why we marked it as dirty).


ImportError: cannot import name 'SafeFunction' from 'joblib.parallel'

It seems that it crashes for joblib (1.3.1).
Downgrading to 0.10.0 seemed to solve the issue (https://github.com/pescadores/pescador/issues/26)
Sample code:
import gbif_dl

data_generator = gbif_dl.dwca.generate_urls(
    "10.15468/dl.pcxfa5", dwca_root_path="dwcas", label="speciesKey"
)
stats = gbif_dl.io.download(data_generator, root="my_dataset", retries=1000000)

Error:
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import gbif_dl
  File "/home/rtcalumby/miniconda3/envs/py38/lib/python3.8/site-packages/gbif_dl/__init__.py", line 15, in <module>
    from .generators import api
  File "/home/rtcalumby/miniconda3/envs/py38/lib/python3.8/site-packages/gbif_dl/generators/api.py", line 9, in <module>
    import pescador
  File "/home/rtcalumby/miniconda3/envs/py38/lib/python3.8/site-packages/pescador/__init__.py", line 8, in <module>
    from .zmq_stream import *
  File "/home/rtcalumby/miniconda3/envs/py38/lib/python3.8/site-packages/pescador/zmq_stream.py", line 33, in <module>
    from joblib._parallel_backends import SafeFunction
ImportError: cannot import name 'SafeFunction' from 'joblib._parallel_backends' (/home/rtcalumby/miniconda3/envs/py38/lib/python3.8/site-packages/joblib/_parallel_backends.py)

Thanks for the update. So we should update the requirements of joblib or pescador?

Thanks for the update. So we should update the requirements of joblib or pescador?

I guess that updating the requirements, although I didn't tested for versions for joblib between 0.10 and 1.3.1 - perhaps there are a bunch of more recent versions other than 1.3.1 still working. Probably there's an incompatibility between pescador and joblib 1.3.1.


Client Script Error in ClientCodeCallback_PlayerSpawned() : Cannot set properties on a null

Game Crashed after death
I don't think I can reproduce this
Gamemode (not sure if relevant): Sticks and Stones
Additional active mods :

AWH.InputDisplay
Ping Leaderboard
S2.PingDisplay
S2.SpeedometerV2

[2022-05-10 17:27:04.198] [info] [CLIENT SCRIPT] SCRIPT ERROR: [CLIENT] Cannot set properties on a null
[2022-05-10 17:27:04.198] [info] [CLIENT SCRIPT]  -> player.cv.lastSpawnTime = Time()
[2022-05-10 17:27:04.198] [info] [CLIENT SCRIPT]
CALLSTACK
*FUNCTION [ClientCodeCallback_PlayerSpawned()] client/cl_player.gnut line [185]

[2022-05-10 17:27:04.198] [
info] [CLIENT SCRIPT] LOCALS
[blankDamageHistory] unknown struct
[player] ENTITY (player [3] (player "Legonzaur" at <-527.875 -652.875 20.5>))
[this] TABLE

video
nslog2022-05-10 16-07-30.txt

Closing this as stale


Go to definition works in a strange way

VS 2017 RC:

F12 does not jump to the definition, but shows the definition location in a tool window.

@OmarTawfik @brettfo Can you take a look please? thanks

@vladima Any pointers on this?  If you review our GotoDefinition code you might spot the mistake? https://github.com/Microsoft/visualfsharp/blob/master/vsintegration/src/FSharp.Editor/GoToDefinitionService.fs

I think that code of TryGotoDefinition in FSharpGoToDefinitionService should be something like this:
        member this.TryGoToDefinition(document: Document, position: int, cancellationToken: CancellationToken) =
            let definitionTask = this.FindDefinitionsAsyncAux(document, position, cancellationToken)

            // REVIEW: document this use of a blocking wait on the cancellation token, explaining why it is ok
            definitionTask.Wait(cancellationToken)

            if definitionTask.Status = TaskStatus.RanToCompletion && definitionTask.Result.Any() then
                let navigableItem = definitionTask.Result.First() // F# API provides only one INavigableItem
                let workspace = document.Project.Solution.Workspace
                let navigationService = workspace.Services.GetService<IDocumentNavigationService>()
                navigationService.TryNavigateToSpan(workspace, navigableItem.Document.Id, navigableItem.SourceSpan)
            else
                false

Reasoning: if GotoDef returns one result then it should try to jump to a discovered location. If it returns multiple results then it should use presenters to render items so user can choose whatever he needs. Given that per comment F# API always returns only one item then we should always navigate to definition and get rid of presenters.

Thanks so much @vladima that works perfectly
Fix ready at https://github.com/Microsoft/visualfsharp/pull/1836


Fix Home screen CSS issue in mobile

Component: home
path: components/home
redirect: /home

I would love to work on it , can you assigned to me ?

Sure @IzacVrushabh :+1:

Please feel free to shoot out your ideas and artwork in the IRC channel mentioned in the README.md
At the same time... please feel free to checkout Issue #69  and #88
Thanks

Please feel free to shoot out your ideas and artwork in the IRC channel mentioned.
At the same time... please feel free to checkout Issue #69 and #88
Thanks

I am working on this responsive part , Can you share the link of IRC channel , so that I can share my ideas . I have some amazing ideas.

That sounds Interesting!
Curious to know your ideas and artwork.
Link:https://gitter.im/canvasbird/canvasboard-frontend
Thanks

Hey , I found that #97 and #73  , both are same issue ,you also assigned someone for #73 issue , so I'm un-assigning myself .
Thankyou.

We are sorry for the duplicates. But #73 is closed.
You can maybe work on #104 and #50 on the contribution page
Suggestions and Improvements are highly appreciated in open source. Please feel free to start a conversation in our IRC channel.


Vue3 v-model should work again

Fixes https://github.com/voerro/vue-tagsinput/issues/168

@james090500 can you please merge the above PR if it looks good to you.
Thank you

Didn't realise this was added. Merging now :)


Any plan to upgrade requests and urllib3 version?

We recently got OAST critical alert with botocore due to the embedded urllib3 (CVE-2018-20060)
and requests module(CVE-2018-18074), OAST suggested to upgrade the urllib3 > 1.24.3 and requests > 2.20.
Is there any plan on the way to upgrade them?

We will get rid of it at some point. Currently we do not use the vendored requests for anything but a backwards compatibility shim on an exception class (as previously it had to be imported from the vendored requests). If you are not importing or using it then you're fine.
A while ago we added a deprecation warning that gets sent if you actually use the vendored requests. I just opened a PR to make that warning print by default: #1748
The next step will be to remove it and add a thin shim for that previously mentioned exception class. This will be a ways off because we want to give people some time to adapt now that the warning will be shown by default. I can't give a specific timeline for that, but we will have to do it before Python 3.8 goes GA since the vendored code imports things that are being removed.

Thanks for the update, this sounds good.


Download link broken

The download link on the README (http://tiny.cc/magicaltools) is broken.

Thanks, it should be working again.


Operation sequence_mask in libnd4j doesn't support arbitrary output types

Currently sequence_mask supports only boolean output types, though there's data type argument.
Tensorflow version supports any data types, including floating.
import tensorflow as tf
sess = tf.InteractiveSession()
res = tf.sequence_mask([1, 3, 2], 5, tf.dtypes.float32)
res.eval()

Result is:
array([[1., 0., 0., 0., 0.],
[1., 1., 1., 0., 0.],
[1., 1., 0., 0., 0.]], dtype=float32)
Also consider changing data type argument type from INT_ARG to D_ARG if feasible.

@shyrma @shugeo ^^^


How to use term-aggregations in elastic search for OR condition

i have the following data:
person1: { city: a, education: x}
person2: { city: a, education: y}
person3: { city: a, education: x}
person4: { city: b, education: y}
person5: { city: c, education: x}
All form items dynamic and come from elasticsearch aggreations.

Cases
Non-Selected
Request :
{
  "aggregations": {
    "cities": {"terms": {"field": "city"}},
    "educations": {"terms": {"field": "education"}}
  },
  "query": {
    "filtered": {
      "query": {"match_all": []}
    }
  }
}

Response :
city:
() "a": 3
() "b": 1
() "c": 1
education:
() "x": 3
() "y": 2

"a" selected
{
  "aggregations": {
    "cities": {"terms": {"field": "city"}},
    "educations": {"terms": {"field": "education"}}
  },
  "query": {
    "filtered": {
      "query": {"match_all": []},
      "filter": {
        "bool": {
          "must": [
            {"bool": {"should": [{"term": {"city": "a"}}]}}
          ]
        }
      }
    }
  }
}

Form :
city:
(x) "a": 3
()   "b": 0 -> this reason its not come from engine
()   "c": 0 -> this reason its not come from engine
education:
() "x": 2
() "y": 1
Now :
I want to get "or" condition for this aggregation.  Like this :
city:
(x) "a": 3
()   "b": 1 -> I wanna see this options too for show posibilities
()   "c": 1
education:
() "x": 2
() "y": 1
how can i do this?

You will need to use a post_filter, rather than a filtered query.  Aggregations use the same "data scope" as the query, meaning that a filtered_query will filter both the query and the aggregation results.  A post_filter filters after the query executes, so the agg results are untouched.
You can read more about it here:  http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_filtering_queries_and_aggregations.html


Revert "Use -Clink-dead-code"

This reverts commit 40fdbd8.

Due to a bug of -Zinstrument-coverage, some files may be ignored. There is a known workaround for this issue, but note that the workaround is likely to cause another problem. See rust-lang/rust#86177 and #26 for more.

bors r+


Add Windows instructions

Instructions here: https://github.com/junegunn/vim-plug
This is also useful in tandem with Visual Studio VsVim.

Not sure what (if possible, any) packages need to be installed with something like Chocolatey.

Ruby and Python definitely need to be installed.

On Windows, convention is to use _vimrc etc, as well as keep files in vimfiles instead of .vim.

Running into an issue with getting Python working for UltiSnips and Ctrl+P.


ping time regression?

Hi,
I have two machines running mylg. One I just updated to test #39 and another built on the 14th of November.
Even though the response time for each ping is around 55ms, the whole ping request took about 30 seconds to complete the whole request:
% /usr/bin/time sudo mylg ping yahoo.com
PING yahoo.com (2001:4998:c:a06::2:4008): 56 data bytes
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=0 time=58.901061 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=1 time=63.529582 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=2 time=59.052757 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=3 time=54.948603 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=4 time=56.835715 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=5 time=56.326712 ms

--- yahoo.com ping statistics ---
6 packets transmitted,  6 packets received, 0% packet loss
round-trip min/avg/max = 54.949/56.758/63.530 ms
       31.74 real         0.44 user         0.03 sys

from the build on the 14th:
% /usr/bin/time sudo mylg ping -c 6 yahoo.com
PING yahoo.com (2001:4998:c:a06::2:4008): 56 data bytes
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=0 time=42.963146 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=1 time=50.286668 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=2 time=42.983244 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=3 time=44.244642 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=4 time=42.963250 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=5 time=42.910109 ms

--- yahoo.com ping statistics ---
6 packets transmitted,  6 packets received, 0% packet loss
round-trip min/avg/max = 42.910/43.327/50.287 ms
        5.86 real         0.48 user         0.00 sys

I'll update the 14th build to the most recent and see what occurs.

Well it seems to be machine specific as updating to from the 14th to the latest worked fine:
% /usr/bin/time sudo bin/mylg ping -c 6 yahoo.com
PING yahoo.com (2001:4998:c:a06::2:4008): 56 data bytes
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=0 time=45.887550 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=1 time=47.157329 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=2 time=45.181935 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=3 time=49.573529 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=4 time=42.725590 ms
64 bytes from 2001:4998:c:a06::2:4008 icmp_seq=5 time=45.531101 ms

--- yahoo.com ping statistics ---
6 packets transmitted,  6 packets received, 0% packet loss
round-trip min/avg/max = 42.726/45.375/49.574 ms
        5.81 real         0.44 user         0.03 sy

Any suggestions?

@jungle-boogie
I haven't changed the ping code recently, the last change date is Sep 15.
31 seconds is weird and no idea why as the response time was ~56 ms per each.

thanks for checking, @mehrdadrad. This is something very specific to my machine but I don't know how to profile go to find the issue. This also happens when running directly as root (without sudo) so it's pretty weird.

@gummiboll,
But would the response time from each packet be so small?
ping without mylg also works fine:
% /usr/bin/time ping -c 5 yahoo.com
PING yahoo.com (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=52 time=59.344 ms
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=52 time=57.601 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=52 time=59.317 ms
64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=52 time=58.847 ms
64 bytes from <IP_ADDRESS>: icmp_seq=4 ttl=52 time=61.031 ms

--- yahoo.com ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 57.601/59.228/61.031/1.101 ms
        4.28 real         0.00 user         0.00 sys

traceroute completes well:
% /usr/bin/time sudo ./bin/gopath/bin/mylg trace yahoo.com
trace route to yahoo.com (2001:4998:44:204::a7), 30 hops max
1  2600:8801:2a7f:ffff::1111 [ASN 22773/ASN-CXA-ALL-CCI-22773-RDC] 7.681 ms 11.249 ms 9.045 ms
2  2001:578:604::2:502 [ASN 22773/ASN-CXA-ALL-CCI-22773-RDC] 9.021 ms 8.805 ms 9.156 ms
3  2001:578:602::12 [ASN 22773/ASN-CXA-ALL-CCI-22773-RDC] 9.668 ms 10.361 ms 10.649 ms
4  2001:578:1:0:172:17:249:78 [ASN 22773/ASN-CXA-ALL-CCI-22773-RDC] 37.033 ms 35.276 ms 41.188 ms
5  2001:4998:f005:1ff:: [ASN 10310/YAHOO-1] 30.857 ms 30.468 ms  *
6  ae-4.pat1.dnx.yahoo.com. (2001:4998:f005:2::1) [ASN 10310/YAHOO-1] 62.361 ms 61.574 ms 61.104 ms
7  ae-6.pat2.nez.yahoo.com. (2001:4998:f000:204::) [ASN 10310/YAHOO-1] 74.516 ms 67.970 ms  *
8  2001:4998:f000:210::1 [ASN 10310/YAHOO-1] 65.706 ms 63.447 ms 63.697 ms
9  2001:4998:44:fc1a::1 [ASN 36646/YAHOO-NE1] 82.325 ms 64.846 ms 67.984 ms
10 v6.e17-1.fab1-1-gdc.ne1.yahoo.com. (2001:4998:44:fa00::1) [ASN 36646/YAHOO-NE1] 66.745 ms 68.460 ms 69.528 ms
11 2001:4998:44:da02::1 [ASN 36646/YAHOO-NE1] 67.579 ms 67.966 ms 76.245 ms
12 ir1.fp.vip.ne1.yahoo.com. (2001:4998:44:204::a7) [ASN 36646/YAHOO-NE1] 65.590 ms 65.639 ms 65.468 ms
       17.50 real         0.62 user         0.08 sys

Also when I don't have root access:
% /usr/bin/time mylg ping yahoo.com
PING yahoo.com (2001:4998:44:204::a7): 56 data bytes
listen ip6:ipv6-icmp : socket: operation not permitted icmp_seq=0
listen ip6:ipv6-icmp : socket: operation not permitted icmp_seq=0
listen ip6:ipv6-icmp : socket: operation not permitted icmp_seq=0
listen ip6:ipv6-icmp : socket: operation not permitted icmp_seq=0

--- yahoo.com ping statistics ---
4 packets transmitted,  0 packets received, 100% packet loss
        3.66 real         0.43 user         0.03 sys

@jungle-boogie The individual response times for each ping could still be small if most of the time was spent resolving the hostname. IIRC mylg ping resolves the domain first and then starts to ping the ip-address.
But since it worked without any issue with the "real" ping, that was probably not the problem.


Need a maintainer?

@alexplumb  I reached out to you on LinkedIn about potentially helping out as a maintainer of this package. Please let me know if it's something you would consider.
It would be great if the existing community could continue to benefit from bug fixes and updates, and there are several PRs already here that are worthy of merging.
Otherwise, I'll have to publish a fork of this package to continue development ☹

@bherila Sorry - I don't see your message in Linkedin. Wrong person, maybe Definitely happy to bring on a maintainer. This package needs a lot of work to support Material-UI 5 (among other things) and it's just not something I have the time to commit to right now.

I've taken a look at your repos. Looks good - added as a collaborator. I'll see if I can carve out some time to update the eslint config and packages.

Seems like https://github.com/alexplumb/material-ui-phone-number/pull/93 might bring MUI5 support, will take a look ater


sdk go install shows wasmvm undefined types (gasmeter, gas...)

Hi everyone,
When I install the sdk-go package :
go install ./...
I show me the following errors :
github.com/ethereum/go-ethereum/crypto/secp256k1: build constraints exclude all Go files in<EMAIL_ADDRESS>github.com/CosmWasm/wasmvm/api
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:192:2: undefined: GasMeter
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:193:20: undefined: Gas
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:197:11: undefined: Gas
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:198:11: undefined: Gas
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:202:28: undefined: Gas
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:209:38: undefined: Gas
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:213:32: undefined: Gas
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:227:42: undefined: Gas
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:326:7: undefined: KVStore
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mock_failure.go:15:27: undefined: GoAPI
/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.0.0/api/mocks.go:326:7: too many errors
In this version v1.0.0, these types are in api/callbacks.go

Talk to a INJECTIVE Dev on the Live support page so that your issue can be looked into. CLICK HERE

The solution is to change the default arg CGO_ENABLED from "0" to "1" when invoking buildGoApplication

@achilleas-kal found the solution,
Btw sdk-go is designed as a library to interact with injective chain, use go get .... Close this as we don't have any further discussion


Intermittent MultiOLAP degreeCounting failures.

https://travis-ci.org/awslabs/dynamodb-titan-storage-backend/jobs/227958916

OLAP tests are not supported in the Multiple Item data model - YMMV.


arch/arm: Fix clang toolchain setting

Summary
Impact
clang user
Testing

Close, it look better to revert gcc-ar/gcc-nm/gcc related patchset.


Update deprecation notice

fixing broken links and giving link to updated repo.

@KumarGanesanIBM could you have a look at this and approve/merge it? I'm not able to make any review or commit to this repo. Thank you!

This commit has DCO (sign off) issue. Created another PR : https://github.com/IBM/dns-svcs-go-sdk/pull/24/files
We need to close this.


Release 1.8.9 NuGet release

Release 1.8.9 NuGet release

Can you check for conflicts please? Are the js commits needed?


KTOR-6016 Migrate all existing descriptors to new YAML format

Now all manifests >= 2.0 are using the new YAML format.
Fixes to facilitate this:

Compilation includes other files in plugin directory.
Added gradle and maven injection options.
Various other minor fixes.

For testing, I...

generated the registry using the JSON files, then
generated the YAML files, and
performed a diff on the directories to ensure nothing unexpected has changed.

There were some inconsistent things that I modified like importing some packages were omitted in some but not others for no clear reason, and the openapi plugins had an extra_files property which seems to already be covered with resources template.  I'll conduct some further testing with locally generated projects for these cases.
Also found one broken plugin configuration that we hadn't noticed - pebble at 2.2.* has a compile error do to a breaking change in their API, so I excluded that version.

Found a couple existing problems that are fixed here:

kotlinx-html group name was wrong and produces a broken build
sse test doesn't work in beta-1 due to it not being supported in test application engine, so I'll remove it for now

This PR should be good to go now, I've tested generating with all the relevant plugins.


Shortcut changed & sometimes it won't measure distance

Hi, I tried to reach you on how to change the shortcut on this since previously I use cmd+shift+3 for measure a distance. Right now it changes to ^+shift+3.
Beside that, sometimes it fails to measure the distance

http://sketchshortcuts.com, Create Custom Shortcuts


User qualifiers

Add support for user defined qualifiers which get checked for well formedness and passed along to liquid-fixpoint

All changes made. I'll go ahead and merge if it is mergable


Handle edge case where we want to preserve null-values for compaction tombstoning

There is an edge case that the new serialization schema doesn't yet address, support for semantic null-values with headers when we want to encrypt headers.
Clients can push a null record value to Kafka to tombstone a key in a compacted topic. We don't want to break this behaviour so we should not modify a null record value in the Encryption Filter.
But we also may want to encrypt some headers that are attached to that record. Currently we propose to use the record value for the parcel, which will break the tombstoning logic if we forward a non-null value.
I'd propose that we defer solving this to another PR. For this PR we can prohibit this combination, making the encryption fail noisily if the record has a null value and non-empty headers and they want the headers encrypted. Otherwise we can forward a null record value when the original record value is null.
In another PR we could do something like stuff the parcel containing encrypted headers into a header when the original record-value is null.
edit: realized this currently does not impact the filter because we have it hard-coded to only encrypt the value, the problem will arrive when we start wanting to encrypt headers.
Originally posted by @robobario in https://github.com/kroxylicious/kroxylicious/issues/798#issuecomment-1846490187

So the proposal buried in there is that for encryption v1 we could expand our mechanism to support two arrangements:
parcel as value
For the case where there is a non-null value in the original record:
headers: [kroxylicious.io/encryption: v1]
value: wrappedParcel

parcel as header
For the case where there is a null value in the original record and there are some headers we want to encrypt:
headers: [kroxylicious.io/encryption: v1, kroxylicious.io/parcel: wrappedParcel]
value: null

If we want to encrypt topic X and there is a null value and no headers, we forward through the record unmodified without adding any headers.
At decrypt time, if the encryption header is present, the logic would change to something like: encryptedBuffer = value == null ? findParcelHeader(): value.

I also wondered if we could exclusively use a parcel header, we might then have to write a magic byte into the forwarded record value for non-null original values. Whatever the smallest thing we can insert into the value to prevent it being tombstoned.


Freeplay bug

Describe your bug here.
FreePlay bug when importing my mod into psych engine it just never responds. with every psych engine version

Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.


allow for passing args directly to the 'open' command

This enables passing args directly to the ‘open’ command.
For instance I want to issue this command:
open ../some-path/a-folder -R

I can now do:
opn("../some-path/a-folder", {args: "-R"})

Currently there's no way to achieve this, as the only way to pass args is passing them directly to the application.

The option name is too generic, as it only works on OS X with the open command. Also needs to be documented.

ping :)