dockcheck.py  atomindex = waterdata[i,0] out of bounds

Hi,
I receive the following error when running WaterDock2
File "/home/mirix/Downloads/WaterDock-2.0/waterdock2.py", line 59, in
dockcheck.main(proteinfile, ligandfile)
File "/home/mirix/Downloads/WaterDock-2.0/dockcheck.py", line 114, in main
atomindex = waterdata[i,0]
IndexError: index 9 is out of bounds for axis 0 with size 9
A placedwaters.pdb file with 105 atoms is produced but not a predictedwaters.pdb file.
Best,
Miro

Ok, the problem is that I included crystallographic waters along with my ligand. If I remove them, the program runs smoothly.
Which makes me wonder, what happens if one has one ligand plus one cofactor?

I am using QVina instead of Vina. It is significantly faster.

Thanks for this email - that is very useful to note.
Phil
On 13 Dec 2018, at 08:19, mirix <notifications<EMAIL_ADDRESS>wrote:
I am using QVina instead of Vina. It is significantly faster.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/bigginlab/WaterDock-2.0/issues/1#issuecomment-446845972, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APMck5aRp2QYNAwiHIG3kNsU1C0adADVks5u4eNmgaJpZM4ZPF4w.

Phil Biggin, CChem, FRSC.
Professor of Computational Biochemistry
Fellow and Tutor at Lady Margaret Hall, Oxford
Chair of the Molecular Graphics and Modelling Society
Department of Biochemistry
South Parks Road
Oxford
OX1 3QU
E: Philip.biggin<EMAIL_ADDRESS>W: sbcb.bioch.ox.ac.uk/biggin.phphttp://sbcb.bioch.ox.ac.uk/biggin.php
T:  +44 1865 613305
Next MGMS event:
Big Ideas for Big Data in Drug Discovery
Friday 12th April 2019
https://bigdatamgms2019.wordpress.com/


RecordSegmentDuration operating range

Recorded in mpegts format and had option RecordSegmentDuration: 1s.
However, the saving is not done in 1 second increments, but in 6-7 second increments.
Even if it is longer than 1 minute, it is not saved in that time unit.
Which version are you using?
v1.9.0
Which operating system are you using?

[ ] Linux amd64 standard
[ ] Linux amd64 Docker
[ ] Linux arm64 standard
[ ] Linux arm64 Docker
[ ] Linux arm7 standard
[ ] Linux arm7 Docker
[ ] Linux arm6 standard
[ ] Linux arm6 Docker
[ ] Windows amd64 standard
[ ] Windows amd64 Docker (WSL backend)
[ ] macOS amd64 standard
[ ] macOS amd64 Docker
[ ] Other (please describe)

Describe the issue
Description
Describe how to replicate the issue

start the server
publish with ...
read with ...

Did you attach the server logs?

yes / no
Did you attach a network dump?

yes / no

Hello, video segments cannot be cut randomly but they can only be cut in the presence of an I-frame, that in case of you stream, is present once every 6-7 seconds. If you want to change this, re-encode the stream with FFMpeg or change the "I-frame interval" setting inside your camera.


Performance pipeline broken of connection refused error

The perf benchmark pipeline was broken for last two days for same error happened when querying prometheus api for a specific data range.
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=9090): Max retries exceeded with url: /api/v1/query_range?query=irate%28container_cpu_usage_seconds_total%7Bjob%3D%22kubernetes-cadvisor%22%2Ccontainer_name%3D~%22mixer%7Cpolicy%7Cdiscovery%7Cistio-proxy%7Ccaptured%7Cuncaptured%22%7D%5B1m%5D%29&start=1576199632&end=1576199780&step=15 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80a375f320>: Failed to establish a new connection: [Errno 111] Connection refused',))
See the link for more detail: log

/CC @carolynhu @mandarjog

Seems like the test still failed after the fix,  which was still caused by the issue of prometheus. I have a local change that works with prometheus operator, will post a PR tmr.

pipeline was fixed, the issue was caused by namespace change of prometheus components after using istioctl to install


deleteclaim and transferclaim not working

both /deleclaim and /transferclaim commands (there might be more that I don't know of) give "Error occurred while executing command: null" but if i keep walking around the claim and spam the command it will work suddenly

@SnowBlitzz I wasn't able to find any issues with /deleteclaim but I did fix /transferclaim.

I was just standing on another player's claim and did /deleteclaim, for some reason sometimes it works and sometimes it doesn't. I've had cases wherein another player claimed a part of their house so they requested me to remove it, and sometimes I get "Error occurred while executing command: null" and othertimes it runs successfully. Strange behavior


The CrossCat model

It would be nice to implement the CrossCat model using Turing - http://probcomp.csail.mit.edu/crosscat/.

The above link is broken, this one seems like it might work better: http://probcomp.csail.mit.edu/software/crosscat/


Equella Manager: Still has references to the upgrade server

The Equella manager still has the upgrade server configuration tab. Also, the 'Get other versions tab' still has a message telling you that no username or password has been set

Fixed, the upgrade manager is nowhere to be seen


A module to convert annotations to different formats

Description
Now we have a set of scripts which can convert annotations to different formats: https://github.com/opencv/cvat/tree/develop/utils
At the same time CVAT server can do the same task using REST API better. It would be good to extract the functionality into a separate module and implement only one script which uses the module. Old scripts should be removed.
The script should have input parameters:

a directory with images
meta information (labels, attributes)
original annotations in some format

The script should output:

modified annotations in a specified format

Results

[ ] Remove converter scripts from https://github.com/opencv/cvat/tree/develop/utils
[ ] Extract the functionality to convert annotations into a separate module
[ ] Implement one script which can convert annotations from one format to another

As per my understanding, we just need to merge all those util scripts. Keep one as standard.

First of all, thanks for all the work done on CVAT.
I created a basic script to parse the XML. The script creates a Python object representing the information contained in the XML. For now, the <meta> and <images> tags are parsed but no the <track> tag. Anyways, it should be enough in order to use it as a common parser of the XMLs and then write the converters from then. If you want to use it, you can find it here

@zhiltsov-max Looks like solution is Datumaro. Could you confirm and close the issue.

It is.

Dataset management framework: https://github.com/opencv/cvat/tree/develop/datumaro

@kobic8, could you please describe the problem in more details? Did you try the Segmentation Mask format for VOC mask import?

Hello, thank you for the reply. I have a toy example of a single image with an annotation file that includes both bbox/labels and maks in Pascal VOC xml file. Since there was a problem with import process via CVAT, I am interested in "of the shelf" converter function from PAscal VOC to CVAT xml file.
I tried to perform the opposite process: to export from CVAT to Pascal VOC and I saw that it exports two files (not one) that includes a pointer file.


How to avoid changing cursorShape when focus terminal window if I set unfocusedAppearance

Windows Terminal version
1.21.2911.0
Windows build number
10.0.22631.0
Other Software
NVIM v0.10.2
Steps to reproduce

snippet in settings.json

 "opacity": 50,
 "cursorShape": "underscore",
 "unfocusedAppearance": {
      "opacity": 90
 },

open nvim, current cursor shape is block
press alt+tab to focus another window, then press it again to focus back to terminal
cursor shape changes to underscore. (If I delete the unfocusedAppearance in settings.json, the cursor shape does not change after focus back)

Expected Behavior
When I set unfocusedAppearance, do not change my cursor shape after focus back to terminal window.
Actual Behavior
Cursor shape changes to underscore that I set in cursorShape.

Good catch. Thanks for filing! We shouldn't be doing this.


Testsuite failures in tcp_connect_timeout and tcp_close_while_connecting

I get testsuite errors in the latest 1.x. I also get the "tcp_close_while_connecting" failure in the 0.10 branch. When I look at the strace log, I see that the actual error is ECONNREFUSED.
It seems to me that there's a race condition in these tests which relies on the connection not being refused before the first timer is fired. I'm on a network which has a firewall which blocks most ports so that has probably caused the connection to be refused very quickly.
$ make check
make  test/run-tests
make[1]: Entering directory '/tmp/libuv/libuv'
make[1]: 'test/run-tests' is up to date.
make[1]: Leaving directory '/tmp/libuv/libuv'
make  check-TESTS
make[1]: Entering directory '/tmp/libuv/libuv'
[%   0|+   0|-   0|T   0|S   0]: platform_output
Output from process `platform_output`:
uv_get_process_title: /tmp/libuv/libuv/test/.libs/lt-run-tests
uv_cwd: /tmp/libuv/libuv
uv_resident_set_memory: 991232
uv_uptime:<PHONE_NUMBER>00
uv_getrusage:
  user: 0 sec 0 microsec
  system: 0 sec 0 microsec
uv_cpu_info:
  model: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
  speed: 3092
  times.sys: 8762600
  times.user: 200579000
  times.idle:<PHONE_NUMBER>
  times.irq: 2000
  times.nice: 19100
  model: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
  speed: 3092
  times.sys: 6355000
  times.user: 79197300
  times.idle:<PHONE_NUMBER>
  times.irq: 0
  times.nice: 2000
  model: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
  speed: 3092
  times.sys: 197133600
  times.user: 314783400
  times.idle:<PHONE_NUMBER>
  times.irq: 200
  times.nice: 1200
  model: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
  speed: 3092
  times.sys: 6348000
  times.user: 379793800
  times.idle:<PHONE_NUMBER>
  times.irq: 0
  times.nice: 1300
uv_interface_addresses:
  name: lo
  internal: 1
  physical address: 00:00:00:00:00:00
  address: <IP_ADDRESS>
  netmask: <IP_ADDRESS>
  name: eth0
  internal: 0
  physical address: 00:9c:02:a5:ac:be
  address: <IP_ADDRESS>
  netmask: <IP_ADDRESS>
  name: lo
  internal: 1
  physical address: 00:00:00:00:00:00
  address: ::1
  netmask: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  name: eth0
  internal: 0
  physical address: 00:9c:02:a5:ac:be
  address: fe80::29c:2ff:fea5:acbe
  netmask: ffff:ffff:ffff:ffff::
=============================================================
[%  22|+  55|-   0|T   0|S   0]: tcp_connect_timeout
`tcp_connect_timeout` failed: exit code 134
Output from process `tcp_connect_timeout`:
Assertion failed in test/test-tcp-connect-timeout.c on line 42: status == UV_ECANCELED
=============================================================
[%  22|+  55|-   1|T   0|S   0]: tcp_close_while_connecting
`tcp_close_while_connecting` failed: exit code 134
Output from process `tcp_close_while_connecting`:
Assertion failed in test/test-tcp-close-while-connecting.c on line 40: status == UV_ECANCELED
=============================================================
[% 100|+ 243|-   2|T   0|S   0]: Done.
FAIL: test/run-tests
======================================================
1 of 1 test failed
Please report to https://github.com/libuv/libuv/issues
======================================================
Makefile:3781: recipe for target 'check-TESTS' failed
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory '/tmp/libuv/libuv'
Makefile:4037: recipe for target 'check-am' failed
make: *** [check-am] Error 2

That sounds plausible but I'm not sure how to test close-before-connect functionality otherwise.  I picked <IP_ADDRESS> because it's an address that is ultimately non-routable, but yes, if your firewall kills egress traffic with a FIN or RST packet, then the assumption in the test won't hold.  Suggestions welcome.

Closing since it's not a libuv issue but rather an issue on the environment where the tests are run.


Add 'onRemoveCell' callback for plugins

After reviewing this I think it might be better to add the onRemoveCell prop and type to the Decorated component of Trash rather than Provider  as it has no business in the provider
const Trash: React.SFC<ProviderProps> = props => (
  <Provider {...props}>
    <Decorated {...props} />
  </Provider>
);

const Trash: React.SFC<ProviderProps & OwnProps> = ({ onRemoveCell, ...providerProps }) => (
  <Provider {...providerProps}>
    <Decorated onRemoveCell={onRemoveCell} {...providerProps} />
  </Provider>
);

@agustin107 is this still needed? I think we could merge this if you adjust to @davidfurlong s feedback (and rebase with master first)

I close this, feel free to reopen!


Feature/params

Hello @brian-brazil
I've added support for query parameters in the collect() function of custom collectors. This is helpful when you want to provide a "target" parameter, similar to the Blackbox and SNMP exporters.
Unfortunately this means a function signature change but I'm not sure there's a better alternative.

If you want to do blackbox/snmp things you have to use a custom registry. Allowing arbitrary unstructured data to be passed to collectors is not desirable.

 Most web python frameworks provide the query strings as dictionaries in a similar way so I'm not sure what the objection is.

That data is being passed at all. From the Prometheus client library standpoint, you want to pass an arbitrary blob into a collector. That's not sanely supportable.

What if the argument was a list of tuples?
QueryParameter = namedtuple('QueryParameter', ['field', 'value'])
Given that this is a web service written in Python I wouldn't consider a dictionary of query string arguments to be an insane idea. Do you have any suggestions on how to provide arguments to the collector? You mentioned using a custom registry, do you mean writing my own application w/out using client_python?

It makes no difference. No data should be passed to the collector, as that's not the api.
As mentioned you need a custom registry, look at how the old snmp_exporter worked.


A single Scheduler for all queues?

I'm currently using rq-scheduler in one of my projects, and I was a bit confused when I learned that a scheduler has a queue name argument.
I'm not 100% sure why this feels unnatural to me. Could we make it so that the following is always the case?
scheduler = Scheduler(connection=...)
scheduler.enqueue_at('default', datetime.now(), ...)
scheduler.enqueue_at('high', datetime.now(), ...)
scheduler.schedule('low', ...)

Instead of having three different instances of schedulers for this? I do realize putting the callables onto the queues directly would require three different Queue instances, so I understand your choice for a Scheduler instance belonging to a single Queue.
Nevertheless, I think "a scheduler" is useful to have as a "central component" that you can ask to schedule stuff for you to any queue. Thoughts?

+1 for .schedule_at()


Upgrade kernel to >= 4.13

All versions of rancherOS suffer from https://github.com/moby/moby/issues/19647

@ryansch
The latest kernel in rancheros v1.4.0-rc1 was upgraded to 4.14.32.
[root@ip-172-31-31-115 ~]# ros -v
version v1.4.0-rc1 from os image rancher/os:v1.4.0-rc1
[root@ip-172-31-31-115 ~]# uname -r
4.14.32-rancher2


Consuming Java API's using node.js

Ella
Just working in this Node.js native plugin done in C++11 that allows you to load and run Java classes in Javascript, enabling you for example to use Java libraries (PDFBox, Lucene, etc..) in your Node.js code.
Features

You can create Java classes.
Send any Java method call to a background thread and handle the response with a JS callback.
It detect method overloading, you can target various method signature.
JVM to JS exception handling.
Fast, It cache native reference, saving some JVM lookup time.

Need to be done.

Non-empty constructor.
Static class support.

For now i have test this plugin successfully with JDK 1.7 and JDK 8. If you want to give it a try just go to this repo.

What is the action associated with this issue?  What needs to be done?

We're going to close this issue for now, and please re-open if there are more actions or reviews wanted.


Bring explainer up to date.

Please take a look, I updated the API usage and overhauled one of the examples.

LGTM, otherwise


feat: API endpoint to import charts

SUMMARY

This PR is stacked on https://github.com/apache/incubator-superset/pull/11743, and exposes the ImportChartsCommand through an API endpoint.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A
TEST PLAN

Added unit tests.
ADDITIONAL INFORMATION

[X] Has associated issue: https://github.com/apache/incubator-superset/pull/11743
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

Codecov Report

:exclamation: No coverage uploaded for pull request base (SO-1035@4974425). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             SO-1035   #11744   +/-   ##
==========================================
  Coverage           ?   54.74%
==========================================
  Files              ?      408
  Lines              ?    14437
  Branches           ?     3716
==========================================
  Hits               ?     7904
  Misses             ?     6533
  Partials           ?        0

Flag
Coverage Δ

cypress
54.74% <0.00%> (?)

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

Continue to review full report at Codecov.

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


Allow notification plugins to notify about the pipeline status

Clear and concise description of the problem
The env var CI_PIPELINE_STATUS war broken already and has always reported success but was now removed completely in https://github.com/woodpecker-ci/woodpecker/pull/3846
Right now, I don't see any way to use a notification plugin in pipelines to send build status notifications to an external system.
Suggested solution
Add back CI_PIPELINE_STATUS and populate the correct status. We have the correct pipeline status in the UI/API already, why can't we just populate it to the env?
Alternative
No response
Additional context
No response
Validations

[X] Checked that the feature isn't part of the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

CI_PIPELINE_STATUS and populate the correct status

Will always be running :)

Well coming from Drone I can at least tell you there was a working and stable implementation.

there was a working and stable implementation

Sure. I didn't say that it is impossible. Do you know how it's implemented there?
Could you show an example pipeline? Does watched step have to define failure: ignore?
If we are using failure: ignore and step within the same pipeline, then one of implementation could be var like CI_STEPS_STATUS with value like clone:success,test:success,build:fail. Or separate variables CI_STEP_CLONE_STATUS:success and so on.
Another solution could be webhooks to external service.

Sure. I didn't say that it is impossible. Do you know how it's implemented there?

Drone uses some kind of hooks https://github.com/harness/harness/blob/drone/operator/runner/runner.go#L380-L402 which looks kinda similar to what we had in place  already. That's why I'm wondering why it was broken in Woodpecker...

Could you show an example pipeline? Does watched step have to define failure: ignore?

https://github.com/thegeeklab/wp-matrix/blob/main/.woodpecker/notify.yml

Yet another one: use special step type likeservice, but notification. It would always run after pipeline finishes and yes can contain correct CI_PIPELINE_STATUS.

Sure could be done this way also.

Thank you for an example. Wasn't aware of runs_on. It's like my special step type :)
Agree that it was/is a bug and should be fixed.

The agent is pulling the next workflow to execute from the queue but I cant see any way to access the parent pipeline information from the agent. Do I miss something? Is there any existing way to lookup the pipeline e.g. with the workflow.PipelineID from the agent?

You can probably look it up via REST and even make custom GRPC method, but why It's the server responsibility to set (almost) all vars. And this map sends to the agent.

This map is only set once during the pipeline creation and can only contain static values that dont change during workflow executions. For the pipeline state it must be looked up before a workflow is pulled from the queue and executed.

Notifications have to be executed after all ... ~what actually (steps in workflow or workflows)? Do you want notification per workflow or per pipeline?~

~Per pipeline.~ I think you can now define the separate notifications workflow as depends_on other in a way it executes the last (after workflows you want notifications about). So at the time the notifications workflow is ready to execute, the Server will know the statuses of all other executed workflows. The server sets up env CI_WORKFLOW_STATUSES (or separate ones) and sends the notifications workflow into queue. Agent picks it up and all works.
It actually works for both workflows statuses and pipeline. So you have statuses of each workflow. And if all workflows are success, then the pipeline is also success -> you can set PIPELINE_STATUS on the server a bit in advance.

Maybe I miss something, but I don't see how your approach should work:

Pipeline is triggered by event
Pipeline config will be parsed, and all workflows will be compiled and added to the queue. At this point all static env vars from the location you have linked are already added to the workflow metadata before they are added to the queue.
Workflows are executed, one or more failed but the notification workflow which is already in the queue at this point doesnt know about the changed pipeline state (how should it?)

all workflows will be compiled and added to the queue
the notification workflow which is already in the queue

All except notifications. Compile ... maybe, but not put in queue. That was the point in my approach. Agree, that now it might not work, but it could be some mark in syntax to define such workflows.
And still, I wonder

Does the examples work at all?
How do they work then? Because before we (server?) run a step with when.status:failure we need failure of some "entity".

the current pipeline status is just technically undefined till it has finished.
and CI_PREV_PIPELINE_STATUS is still here ... so i dont get what the problem is ...
also taling abaut notification plugin you might wana have a look into CI_PREV_STEP_STATUS

Goal: At the end of a pipeline I want to have a step that sends the ** current pipeline** status (success or failed) to an external system.  Is this possible right now?

It should have been possible with
# build.yaml
skip_clone: true
steps:
  build:
    image: alpine
    commands:
      - echo 'Building the app'
      - exit 1 # 0 - success, 1 - fail

# notifications.yaml
skip_clone: true
depends_on: [build]
runs_on: [success, failure]
steps:
  fail-notification:
    when:
      - status: [failure]
    image: alpine
    commands:
      - echo 'Build failed'
  success-notification:
    when:
      - status: [success]
    image: alpine
    commands:
      - echo 'Build succeed'

But it doesn't work

This is a separate bug IMO. But to make it a bit more clear, even if this bug doesn't exist, this way is a more hack and not proper solution for notifications.

When did CI_PIPELINE_STATUS stop working? It's been working reliably for me since before 2.0 and still is on 2.7.3 (I use it as part of a notifier script, running both on failure and success).

See the linked PR in the issue description.

I first found the PR thanks to the release notes of the 3.0 release candidate, and then this issue: I didn't see any bisection/mention of when the variable was broken.


Develop Branch

Would you create a develop branch for any other contributors?
Directly Merging codes to master is dangerous.
I think this strategy is good enough to apply
https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow

Thanks for your interest in the project, if the contributors help us to create a quality product, of course we will create a branch developer.


bot reply

I see that some robots can implement this function, but I can't find it in the API documentation.
Operation process: I send instructions to the robot, such as / add, and the robot will reply to my message, and the message I will reply to the robot is prepared in the input box of my telegram client.
Question: why can a robot operate my input box? How does this work?

It can't. Probably, you are talking about https://core.telegram.org/bots/api#inlinekeyboardbutton with switch_inline_query_current_chat, or https://core.telegram.org/bots/api#replykeyboardmarkup.


Failed to run task: 'npm run-script prod' failed

Hi,

I am trying to build the C2S-UI 3.5.0 version,but it is not build succes, getting "npm run-script prod' failed exception.In package.json file ["c2s-ng-shared": "0.1.0"] dependency is not downloaded from "https://registry.npmjs.org/c2s-ng-shared/-/c2s-ng-shared-0.1.0.tgz".Please help me how to solve that issue.

Hi @Nithisha-D,
This is a shared Angular component library and unfortunately it has been never published to npm registry. You can build it locally and install from the local build.

Build the library for local use: https://github.com/bhits/c2s-ng-shared#development-build-for-local-use
Install it to c2s-ui from local build: https://github.com/bhits/c2s-ui/blob/master/client/install-local-c2s-ng-shared.sh

Thank you @burcakulug,
Yes,i cloned and build locally,but still getting the same exception.Please suggest me how to resolve the issue.
Client side error:
ERROR in ./src/app/account/account.module.ts
Module not found: Error: Can't resolve 'c2s-ng-shared' in 'C:\c2s 3.5.0\c2s-ui-0.8.0\c2s-ui-0.8.0\client\src\app\account'
ERROR in ./src/app/account/account-activation/account-activation.component.ts
Module not found: Error: Can't resolve 'c2s-ng-shared' in 'C:\c2s 3.5.0\c2s-ui-0.8.0\c2s-ui-0.8.0\client\src\app\account\account-activation'   etc..........
Server side error:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm run-script prod) on project provider-ui: Failed to run task: 'npm run-script prod' failed. (error code 1) -> [Help 1]
Thank in advance,
Nithisha

@Nithisha-D , did you also do the second step? that is the one that will make the UI project to use that package from local file system instead of npm registry. based on the errors, it looks like it that package still cannot be resolved.


add profiler for develop

Summary
Allows you to profile in the development environment
If you are using macOS, run the following in a terminal in recovery mode to release SIP
csrutil enable --without dtrace

e.g)
cargo install flamegraph
sudo -E CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -o flamegraph-`date +%Y%m%d_%H%M%S`.svg --bin=ultraman -- start -f ./tmp/Procfile

I wrote wiki


Fix merge race for test_corpus global state

Motivation
One PR changed GlobalState in pos test to a unique ptr and go into a merge race with a PR that added stuff using non-indirected GlobalState. This fixes it.
Test plan

See included automated tests.

Thank you


Automatic replace unknown countries by "ZZ" countrycode

https://stackoverflow.com/questions/20973960/i-am-getting-zz-as-country-code-when-using-pytz

#96


Consider using build tags instead of a bash script

This is a really helpful project! I'm trying to get this working with our build but the install is very non-standard so I can just go get it and be done. We'd need to have every developer run the https://github.com/sugarme/gotch/releases/download/v0.9.0/setup-gotch.sh script in order to build the rest of our code base, even if they're not working with the PyTorch parts of it.
I took a look at the script and it seems like the bulk of what it's doing is changing the cgo compiler flags depending on if it's GPU or CPU. It seems like it might be easier for end users if you had two versions of lib.go and used build tags to determine which one gets built as described here. That way users could use your library like any other (assuming they have libtorch installed) and then all they'd have to do is add a -tags option to their go build command. For example, the go-sqlite3 library uses this approach.
If you like the idea I could send you a PR for it.

@oliverdain ,
Thanks for suggestion. I was wondering how would it be in combination with libtorch installation for CPU and GPU or it just handles gotch installation only?
Feel free to PR. Please update installation guide in README.md file as well. Thanks.

Hi @sugarme . I've started on this. I got libtorch installed for CPU and exported all the env vars, etc.  go test ./... in the clone of this repo builds some, but not all packages, correctly and throws what look like real compilation errors to me. This is with libtorch 2.1.2 and with libtorch 2.1.0 (the latter being what's in your setup.sh files).
I see that you automatically generated many of the bindings but didn't see much info on how that was done. I think maybe they just need to be re-generated?
There's actually quite a few more failures than this but this should give you the idea:
$ go test ./...
?       github.com/sugarme/gotch        [no test files]
ok      github.com/sugarme/gotch/dutil  0.678s
?       github.com/sugarme/gotch/example/augmentation   [no test files]
?       github.com/sugarme/gotch/example/basic  [no test files]
?       github.com/sugarme/gotch/example/char-rnn       [no test files]
?       github.com/sugarme/gotch/example/cifar  [no test files]
?       github.com/sugarme/gotch/example/convert-model  [no test files]
?       github.com/sugarme/gotch/example/debug-memory   [no test files]
?       github.com/sugarme/gotch/example/jit    [no test files]
?       github.com/sugarme/gotch/example/jit-train      [no test files]
?       github.com/sugarme/gotch/example/mem    [no test files]
# github.com/sugarme/gotch/example/neural-style-transfer
example/neural-style-transfer/main.go:156:19: cannot use &inputLayers[idx] (value of type **ts.Tensor) as *ts.Tensor value in argument to styleLoss
example/neural-style-transfer/main.go:156:38: cannot use &styleLayers[idx] (value of type **ts.Tensor) as *ts.Tensor value in argument to styleLoss
example/neural-style-transfer/main.go:162:38: cannot use &contentLayers[idx] (value of type **ts.Tensor) as *ts.Tensor value in argument to inputLayers[idx].MustMseLoss
?       github.com/sugarme/gotch/example/mnist  [no test files]
?       github.com/sugarme/gotch/example/mnist-fp16     [no test files]
# github.com/sugarme/gotch/example/scheduler
example/scheduler/main.go:39:18: cannot use []ts.Tensor{…} (value of type []ts.Tensor) as []*ts.Tensor value in argument to o.AddParamGroup
?       github.com/sugarme/gotch/example/pickle [no test files]
?       github.com/sugarme/gotch/example/pretrained-model       [no test files]
?       github.com/sugarme/gotch/example/tensor-grad    [no test files]
# github.com/sugarme/gotch/example/translation
example/translation/main.go:84:22: cannot use []ts.Tensor{…} (value of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustCat
example/translation/main.go:106:29: cannot use []ts.Tensor{…} (value of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustCat
example/translation/main.go:110:57: attnWeights.MustBmm(encOutputsTs, true).MustSqueeze1 undefined (type *ts.Tensor has no field or method MustSqueeze1)
example/translation/main.go:113:20: cannot use []ts.Tensor{…} (value of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustCat
example/translation/main.go:159:26: cannot use encOutputs (variable of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustStack
example/translation/main.go:219:26: cannot use encOutputs (variable of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustStack
# github.com/sugarme/gotch/example/yolo
example/yolo/darknet.go:401:29: cannot use []ts.Tensor{…} (value of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustCat
example/yolo/darknet.go:515:23: cannot use layers (variable of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustCat
example/yolo/darknet.go:543:21: cannot use detections (variable of type []ts.Tensor) as []*ts.Tensor value in argument to ts.MustCat
example/yolo/main.go:193:20: imageTmp.MustDiv1 undefined (type *ts.Tensor has no field or method MustDiv1)
?       github.com/sugarme/gotch/example/tensor-io      [no test files]
?       github.com/sugarme/gotch/example/transfer-learning      [no test files]
?       github.com/sugarme/gotch/example/yolo/freetype  [no test files]
?       github.com/sugarme/gotch/libtch [no test files]
ok      github.com/sugarme/gotch/half   (cached)
?       github.com/sugarme/gotch/vision [no test files]
?       github.com/sugarme/gotch/vision/aug     [no test files]
+---------------------------------------------------------------------------+
| Memory Stats: Start                                                       |
+---------------------------------------------------------------------------+
|  Allocated heap objects                                              773  |
|  Released heap objects                                                19  |
|  Living heap objects                                                 754  |
|  Memory in use by heap objects (bytes)                            298272  |
|  Reserved memory (by Go runtime for heap, stack,...) (bytes)    11926544  |
|  Total pause time by GC (nanoseconds)                                  0  |
|  Number of GC called                                                   0  |
+---------------------------------------------------------------------------+
vs created...
vs deleted...
+---------------------------------------------------------------------------+
| Memory Stats: Final                                                       |
+---------------------------------------------------------------------------+
|  Allocated heap objects                                             6726  |
|  Released heap objects                                              5977  |
|  Living heap objects                                                 749  |
|  Memory in use by heap objects (bytes)                            325360  |
|  Reserved memory (by Go runtime for heap, stack,...) (bytes)    83575064  |
|  Total pause time by GC (nanoseconds)                             542866  |
|  Number of GC called                                                  10  |
+---------------------------------------------------------------------------+
Loss: 23.000
Loss: 0.336
Loss: 0.307
Loss: 0.281
Loss: 0.257
2024/01/17 17:16:12 Libtorch API Error: element 0 of tensors does not require grad and does not have a grad_fn
Exception raised from run_backward at ../torch/csrc/autograd/autograd.cpp:109 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x6b (0x7fe8eb5ac1fb in /home/oliver/Documents/code/main/go/dist/libs/libtorch_cpu/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0xbf (0x7fe8eb5a6d6f in /home/oliver/Documents/code/main/go/dist/libs/libtorch_cpu/lib/libc10.so)
frame #2: <unknown function> + 0x45f4db8 (0x7fe8d9bf4db8 in /home/oliver/Documents/code/main/go/dist/libs/libtorch_cpu/lib/libtorch_cpu.so)
frame #3: torch::autograd::backward(std::vector<at::Tensor, std::allocator<at::Tensor> > const&, std::vector<at::Tensor, std::allocator<at::Tensor> > const&, c10::optional<bool>, bool, std::vector<at::Tensor, std::allocator<at::Tensor> > const&) + 0x6a (0x7fe8d9bf82ea in /home/oliver/Documents/code/main/go/dist/libs/libtorch_cpu/lib/libtorch_cpu.so)
frame #4: <unknown function> + 0x46599bd (0x7fe8d9c599bd in /home/oliver/Documents/code/main/go/dist/libs/libtorch_cpu/lib/libtorch_cpu.so)
frame #5: at::Tensor::_backward(c10::ArrayRef<at::Tensor>, c10::optional<at::Tensor> const&, c10::optional<bool>, bool) const + 0x49 (0x7fe8d69a09f9 in /home/oliver/Documents/code/main/go/dist/libs/libtorch_cpu/lib/libtorch_cpu.so)
frame #6: at_backward + 0x4f (0x742edf in /tmp/go-build428359870/b198/nn.test)
frame #7: /tmp/go-build428359870/b198/nn.test() [0x55d2c4]

goroutine 34 [running]:
runtime/debug.Stack()
        /usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/sugarme/gotch/ts.TorchErr()
        /home/oliver/Documents/code/gotch/ts/error.go:45 +0x4b
github.com/sugarme/gotch/ts.(*Tensor).Backward(0x616159?)
        /home/oliver/Documents/code/gotch/ts/tensor.go:813 +0x2a
github.com/sugarme/gotch/ts.(*Tensor).MustBackward(0x681ef9?)
        /home/oliver/Documents/code/gotch/ts/tensor.go:821 +0x19
github.com/sugarme/gotch/nn.(*Optimizer).BackwardStep(0xc00007d3e0, 0xc000014018?)
        /home/oliver/Documents/code/gotch/nn/optimizer.go:316 +0x7b
github.com/sugarme/gotch/nn_test.TestOptimizer(0xc00050ed00)
        /home/oliver/Documents/code/gotch/nn/optimizer_test.go:53 +0x57e
testing.tRunner(0xc00050ed00, 0x83ad18)
        /usr/local/go/src/testing/testing.go:1576 +0x10b
created by testing.(*T).Run
        /usr/local/go/src/testing/testing.go:1629 +0x3ea

FAIL    github.com/sugarme/gotch/nn     17.413s
--- FAIL: ExampleLoadInfo (55.28s)

@oliverdain,
From the log, I think gotch had actually compiled. Some tests failed as result of API changes from []ts.Tensor (older API) to []*ts.Tensor that I thought would have been fixed already.  As long as you can create a simple example with some tensor operations and get what you expect, then I think gotch is Okay with the binding and APIs, just leave out the unit tests in subpackages.
I created a branch https://github.com/sugarme/gotch/tree/buildtag that you can PR for tracking.
Cheers,

Just sent you a PR that fixes the unit tests. I'll work on the build tag thing tomorrow.

@oliverdain,
Thanks for the fix.

I very much agree with this user's suggestion to use Tag to replace script production code. I plan to use this library in the production environment, but because this code is generated, there is no way to execute the script to replace this code using the company's platform, so I can only fork it out. Force lib.go to be hardcoded for CPU use.


change google/apiclient dependencies to =1.1.6 as v2 break the code

change google/apiclient dependencies to =1.1.6 as v2 break the code

Thanks for the heads up. I wasn't aware of the new google/apiclient v2 release candidates.

I've set the version number to >=1.1.4 <2.0.0 which seems to do trick and allows for further v1.. versions.


Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

When running evidently ui locally, I'm getting blank page and the following error message: "Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec."

Running it using separate conda environment with Python 3.11 installed.

Does anyone know what's causing this?
The folders have the following structure

Found solution: https://github.com/golang/go/issues/32350#issuecomment-635859542
The problem is specific to Windows 10


[SPARK-13171] [Core] Replace future calls with Future

Trivial search-and-replace to eliminate deprecation warnings in Scala 2.11.
Also works with 2.10

Can one of the admins verify this patch?

add to whitelist

LGTM

Test build #50791 has started for PR 11085 at commit e7bfb13.

Test build #50791 has finished for PR 11085 at commit e7bfb13.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50791/
Test FAILed.

Merged build finished. Test FAILed.

retest please

Test build #50799 has started for PR 11085 at commit 40fe8a4.

Test build #50799 has finished for PR 11085 at commit 40fe8a4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50799/
Test FAILed.

seems to have been caused by something unrelated, retest please

retest this please

@jodersky Just FYI, the commands you can use are listed below:
  - "ok to test" to accept this pull request for testing
  - "test this please" for a one time test run
  - "retest this please" to start a new build

thanks, I didn't know that :)

Test build #50808 has started for PR 11085 at commit 40fe8a4.

Test build #50808 has finished for PR 11085 at commit 40fe8a4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50808/
Test FAILed.

retest this please

Test build #50829 has started for PR 11085 at commit 40fe8a4.

Test build #50829 has finished for PR 11085 at commit 40fe8a4.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50829/
Test FAILed.

Merged build finished. Test FAILed.

Seems like there is a legitimate compilation failure?

yeah 3 fails in a row, I'll take a look at it

I rebased on master and ran local tests successfully

retest this please

Test build #50846 has started for PR 11085 at commit 055d9c9.

Test build #50846 has finished for PR 11085 at commit 055d9c9.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50846/
Test FAILed.

My local tests didn't include the hive profiles, where the error is originating from.
Retest this please

Test build #50852 has started for PR 11085 at commit 4078df0.

Test build #50852 has finished for PR 11085 at commit 4078df0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50852/
Test PASSed.

Merged build finished. Test PASSed.

Thanks - merging in master.

I am afraid all the recent failure of test cases in HiveSparkSubmitSuite are caused by this merge.
Since this merge, I saw the same errors repeat
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50868/consoleFull
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50869/consoleFull
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50871/consoleFull
...

Someone else also reported that problem. Check out the discussion on the JIRA https://issues.apache.org/jira/browse/SPARK-13171

Thank you for your investigation! Maybe we can let the committers revert this merge or disable these Flaky tests?
cc @rxin @JoshRosen @davies

BTW, I also hit similar issues without this merge in my local environment. Thus, I do not know what is the root causes of this problem.


Can't find go-micro.dev/v4/api for go micro v4

When i run go mod tidy
i got an error like this go-micro.dev/v4/api<EMAIL_ADDRESS>parsing go.mod:         module declares its path as: github.com/micro/go-micro                 but was required as: go-micro.dev/v4/api

First execute the “go get go-micro.dev/v4” command


remove dupe line

hit ctrl+v twice

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/add-ins/addin-tutorial.md
:white_check_mark:Succeeded

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


dc/os v1.11.1 is missinging

breaks https://github.com/dcos/terraform-dcos which got v1.11.1 support

Closing this out since we now have v1.11.1 available: https://github.com/dcos/tf_dcos_core/blob/master/open/download-variables.tf#L39
Thank you Rimas!


Added help_text to fields

Show the help_text for each field in the documentation

:+1: This looks nice!

Hey @alej0varas! Thank you for the PRs! Can you bring this one up to date with master?

By the way @Ivaylo-Bachvarov, I couldn't find your email so.. let me know if you would like push access to the repo! Been really busy lately and still haven't pushed a new version to pypi with your previous PR.

@manosim Do you think @alej0varas (maybe myself?) and @Ivaylo-Bachvarov could get access to get some momentum going here? I love this project! :)


[HUST CSE] fix: Variable not initialized

拉取/合并请求描述：(PR description)
为什么提交这份PR (why to submit this PR)
部分变量未赋初值（三处）
存在问题的文件：

components/amp_adapter/platform/linux/peripheral/aos_hal_lcd.c
hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/i2c_api.c

你的解决方案是什么 (what is your solution)
将未赋初值的变量直接赋值为0

在什么测试环境下测试通过 (what is the test environment)
VSCode
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):

[x]  本拉取/合并请求是一个草稿版本 This PR is for a code-review and is intended to get feedback
[ ]  本拉取/合并请求是一个成熟版本 This PR is mature, and ready to be integrated into the repo

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Book review website

Title and Issue number

Title : Book Review Website
Issue No. : 28
Code Stack : HTML, CSS, Javascript
Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md
[X] I have updated the Index.html file for my contribution

@apu52 Bro i have raised the PR, please merge it.

@RAGHAVS1304 thankyou for your valuable contribution


How to configure the Raku paths (for execution)

First -- thank you for working on this project!

After installing the extension I cannot run Raku scripts with it.
I made a few  changes in the corresponding "settings.json" as suggested in the README. I still cannot run scripts.
I assume I am configuring the paths in the wrong way.
From README is not clear (exactly) where and how to place these configurations:

raku.rakuPath specifies the location of your raku install. Defaults to "raku"
raku.includePaths adds locations to the path via a -I command line switch

Thank you!
I followed your advice in GitHub issue I filed a week ago -- it works.


bugfix: default theme related issue with payload restructure of user theme

as a quick fix "themes[defaultTheme].theme" added to the CoreThemeProvider return statement.
Date: 31-01-24


Rebase/andrew/fine tuning

I believe this successfully rebases @abhigya-sodani 's changes onto merge, and then adds additional cleanup changes.

we've got fine-tuning working in Neo!!!

Fine-tuning strategy working with Neo


perf(core): avoid build field twice.

What kind of change does this PR introduce? feature

This change is

Codecov Report

Merging #697 into master will decrease coverage by 0.1%.
The diff coverage is 90.9%.

@@            Coverage Diff             @@
##           master     #697      +/-   ##
==========================================
- Coverage   93.79%   93.68%   -0.11%
==========================================
  Files          17       17
  Lines         757      760       +3
  Branches      217      218       +1
==========================================
+ Hits          710      712       +2
- Misses         47       48       +1

Impacted Files
Coverage Δ

src/core/src/components/formly.group.ts
100% <ø> (ø)
:arrow_up:

src/core/src/services/formly.form.builder.ts
96.11% <100%> (+0.15%)
:arrow_up:

src/core/src/components/formly.form.ts
90.1% <100%> (-0.62%)
:arrow_down:

src/core/src/services/formly.form.expression.ts
88.4% <50%> (-1.15%)
:arrow_down:

Continue to review full report at Codecov.

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


Aqara Motion Sensor E1(lumi.motion.acn001) cannot update status on Xiaomi Multimode Gateway 2

XiaomiGateway3 Branch Master

LOG:
2022-11-29 21:34:49.841 ERROR (MainThread) [custom_components.xiaomi_gateway3.core.gateway] <IP_ADDRESS> | Processing MQTT: zigbee/send b'{"cmd":"report","id":2000000890,"did":"lumi.54ef44100065d28c","dev_src":"0","time":1669728889566,"rssi":-94,"mi_spec":[{"siid":2,"eiid":1,"**arguments":[{"piid":1,"value":3}]**}]}'
Traceback (most recent call last):
File "/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py", line 163, in mqtt_message
await self.dispatcher_send(SIGNAL_MQTT_PUB, msg=msg)
File "/config/custom_components/xiaomi_gateway3/core/gateway/base.py", line 111, in dispatcher_send
await handler(**kwargs)
File "/config/custom_components/xiaomi_gateway3/core/gateway/lumi.py", line 61, in lumi_mqtt_publish
await self.lumi_process_lumi(msg.json)
File "/config/custom_components/xiaomi_gateway3/core/gateway/lumi.py", line 108, in lumi_process_lumi
payload = device.decode_lumi(data[k])
File "/config/custom_components/xiaomi_gateway3/core/device.py", line 355, in decode_lumi
conv.decode(self, payload, v)
File "/config/custom_components/xiaomi_gateway3/core/converters/base.py", line 84, in decode
payload.update(device.decode_lumi(value))
File "/config/custom_components/xiaomi_gateway3/core/device.py", line 344, in decode_lumi
prop = f"{param['siid']}.p.{param['piid']}"
KeyError: 'siid'

I try to analyze the problem, in the test code test_conv_lumi.py:
  def test_sensor_motion_e1():
      device = XDevice(ZIGBEE, "lumi.motion.acn001", ZDID, ZMAC, ZNWK)
      assert device.info.name == "Aqara Motion Sensor E1"
      device.setup_converters()

      p = device.decode_lumi([{
          "siid": 2, "eiid": 1,
          "arguments": [{"siid": 2, "piid": 1, "value": 9}]
      }])
      assert p == {"illuminance": 9, "motion": True}

      p = device.decode_lumi([
          {"siid": 2, "piid": 1, "value": 10, "code": 0}
      ])
      assert p == {"illuminance": 10}

the argument format is  "arguments": [{"siid": 2, "piid": 1, "value": 9}], but the device report is arguments":[{"piid":1,"value":3}], there is no 'siid' param

Can you show response example?

pull request merged， so close this issue


Simplify configuration validation especially regarding optional, required, and default values.

Description
The old style of validator declaration was an object with two properties: defaultValue, and validate.  This was confusing when an optional value was described.  In this case the defaultValue was set to undefined. This PR simplifies this by using a function instead of an object.  Here are some examples on how to use this:
import { objectOf, string } from "utils/validation";

const configValidator = objectOf({
  // optional string
  prop1: string(),
  // required string
  prop2: string().required(),
  // optional string with default value
  prop3: string().default("my default value")
}).required();

// this will throw an exception if the configCommandOptions are invalid
// if the options are valid, the returned object has the default values applied
const config = configValidator(configCommandOptions);

Validators can be chained together to create more complex validators.  For example:
import { number, string } from "utils/validation";

// a required integer greater than or equal to 0
const validator1 = number().integer().minimum(0).required();
// an optional non-empty string
const validator2 = string().nonEmpty();

Related Issue
https://jira.corp.adobe.com/browse/CORE-36754

Motivation and Context
This PR simplifies the validators.  Additionally this improves the re-usability of the validators so that they can be used to validate all of the command options.  Specifically pulling out the logic from src/core/config/createValidator.js into the objectOf validator allows the logic to be reused for the command options.
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA or I'm an Adobe employee.
[x] I have submitted a documentation pull request or no changes are needed.
[x] I have made any necessary test changes and all tests pass.
[x] I have run the Sandbox successfully.

I added additional comments to chain.js and nullSafeChain.js.  I think those are key to understanding how the validation works.


Provide a method for focusing custom form components.

One of the powerful features of components is being able to create custom form elements. However, there is no easy way to set focus on them. Here is a mockup of the steps required http://jsfiddle.net/sv1ay748/1/. Because it is props down and events up it is pretty complicated to emit an even on the child from the parent. And I don't see any sane way of having focus be reactive data property.
One possible way of handling this is having a special directive that can only occur once in a component and only on inputs and textareas that is set on the form element that is supposed to receive the focus. Then vue also handles when a focus event is emitted on the custom component and focus is set to the input with the directive on it.
Another way is vue handles only the event and it is left to the developer to receive it and set the focus appropriately.
I realize this creates a special case scenario for vue, but form elements are special case scenarios. And I feel this would really help make programming them much more natural.

Why not just this.$refs.name.focus()?

That doesn't seem to work http://jsfiddle.net/sv1ay748/2/.

Also, I personally like the idea of a v-focus directive that can be added to this kind of component.

@qw3n it seems to be working for me - does focus the custom input when the button is clicked.

Ok I must have done something wrong because it works for me now. So do you feel this is a sufficient work around or do you think a directive would be helpful?

I'm not sure how a v-focus directive would help in this situation - but I think calling a method on a ref seems straightforward enough for me. Closing this for now. But feel free to expand on how you think v-focus would help.

@yyx990803 basically v-focus would provide a standardized way of setting focus. While adding
focus(){
  this.$refs.input.focus();
}

to every methods property isn't huge it would add up.
Idea of how it might look
<template
  <div>
    <input v-focus v-model="first">
    <input v-model="last">
  </div>
</template>

Then the parent could just
this.$refs.componentName.$emit('focus');
//or even something like
this.$refs.componentName.$focus();

I think the main benefits would be it would be a bit more intuitive since native inputs already have this functionality and it provides a standard way of doing it. That way if you are using someone else's component, since there is an official directive, they may be more likely to add that functionality.

I don't think what you want should be a directive - it could be a component mixin though.

@yyx990803
This is just an added suggestion off the top of my head (that could be possibly taking it to far), but multiple v-focus directives could also be used in place of tabindex. This would again encourage the component creators to add support for things like tab navigation. I'm thinking mainly in terms of writing components that are shareable and reusable. Since I feel that most component authors aren't going to be thinking about adding support for focus events or tab navigation. Maybe not this, but something like this could help in guiding authors to create more accessible components as well.

Actually, even if you don't have control over a 3rd party component, you can still do this.$refs.someInput.$el.querySelector('input').focus()

@yyx990803 yes, but that could is very dependent on the first input being the one you want. eg they didn't add a checkbox or hidden input first in the markup.
Sorry for going on so long.  Maybe just give some consideration to how vue could promote fully functional and accessible components out the box. I'm not great at accessibility, but anything that could help me remember to add better support for it I think is a good thing.

@qw3n regarding focus as a reactive prop, give vue-focus a whirl. For components you would just pass a :focused prop and use it in the directive within the component.

@simplesmiler that's pretty cool. I'll have to try it out.
On Nov 17, 2016 2:39 AM, Denis Karabaza<EMAIL_ADDRESS>wrote:@qw3n regarding focus as a reactive prop, give vue-focus a whirl. For components you would just pass a :focused prop and use it in the directive within the component.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

Actually, even if you don't have control over a 3rd party component, you can still do this.$refs.someInput.$el.querySelector('input').focus()

from VScode: Property '$el' does not exist on type 'Vue | Element | Vue[] | Element[]

facing same issue.
any solution

Did you guys tried something like this?
const inputLogin = this.$refs.inputLogin as HTMLInputElement;
inputLogin.focus();

Can this issue be re-opened? Vue still doesn't seem to offer a straightforward way to focus a custom input that would work regardless of the input's HTML makeup. The suggested this.$refs.someInput.$el.querySelector('input').focus() makes the parent assume too much knowledge of the internal implementation of the child, which seems fragile design-wise. If one day this custom input component is replaced with another custom input that's implemented differently or even a native input, this way of setting focus will likely stop working.


Channel9 videos won't download

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.11.27. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.11.27

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v https://channel9.msdn.com/Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://channel9.msdn.com/Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.11.27
[debug] Python version 3.5.2 - Linux-4.8.8-2-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2, rtmpdump 2.4
[debug] Proxy map: {}
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading web page
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading RSS
[download] Downloading playlist: Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools
[channel9] playlist Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools: Collected 15 video ids (downloading 15 of them)
[download] Downloading video 1 of 15
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading web page
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading RSS
[download] Downloading playlist: Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools
[channel9] playlist Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools: Collected 15 video ids (downloading 15 of them)
[download] Downloading video 1 of 15
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading web page
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading RSS
[download] Downloading playlist: Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools
[channel9] playlist Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools: Collected 15 video ids (downloading 15 of them)
[download] Downloading video 1 of 15
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading web page
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading RSS
[download] Downloading playlist: Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools
[channel9] playlist Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools: Collected 15 video ids (downloading 15 of them)
[download] Downloading video 1 of 15
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading web page
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading RSS
[download] Downloading playlist: Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools
[channel9] playlist Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools: Collected 15 video ids (downloading 15 of them)
[download] Downloading video 1 of 15
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading web page
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading RSS
[download] Downloading playlist: Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools
[channel9] playlist Comment Feed for Channel 9 - Inside Windows 8: Pedro Teixeira - Thread pools: Collected 15 video ids (downloading 15 of them)
[download] Downloading video 1 of 15
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading web page
[channel9] Shows/Going+Deep/Inside-Windows-8-Pedro-Teixeira-Thread-pool: Downloading RSS
^C
ERROR: Interrupted by user

Description of your issue, suggested solution and other information
Trying to download a video from Channel9 downloads the rss feed instead, which contains a list of comments pointing to the video page, which causes an infinite loop.  Videos without comments (like https://channel9.msdn.com/Events/CPP/CppCon-2015/Ranges-for-the-Standard-Library) are treated as a playlist with no videos in them, and exit without downloading anything.  This happens even when using --no-playlist.

Same problem for me, the website has been redesigned and the channel9 extractor goes into an infinite loop...

same here

Still the same problem with the 2016.12.09 release.


[Bug] direct节点的tfo为True时,无法联网

Verify steps

[X] I have read the documentation and understand the meaning of all configuration items I have written, avoiding a large number of seemingly useful options or default values.
[ ] I have not reviewed the documentation and resolve this issue.
[X] I have not searched the Issue Tracker  for the problem I am going to raise.
[X] I have tested with the latest Alpha branch version, and the issue still persists.
[X] I have provided server and client configuration files and processes that can reproduce the issue locally, rather than a desensitized complex client configuration file.
[X] I have provided the simplest configuration that can reproduce the error I reported, rather than relying on remote servers, TUN, graphical client interfaces, or other closed-source software.
[X] I have provided complete configuration files and logs, rather than providing only parts that I believe are useful due to confidence in my own intelligence.

Operating System
MacOS, Windows
System Version
MacOS13 Win11
Mihomo Version
alpha-c63a851
Configuration File
以下节点配置,TUN下无法正常访问国内网络
proxies:
- {"name":"直连","type":"direct","ip-version":"ipv4-prefer","udp":true,"tfo":true,"mptcp":true}

Description
在TUN模式下,如果"tfo":true,提示"invalid argument",没有返回fakeip是因为filter添加了黑名单
proxies:

{"name":"直连","type":"direct","ip-version":"ipv4-prefer","udp":true,"tfo":true,"mptcp":true}
level=debug msg="[DNS] cache hit www.baidu.com --> [<IP_ADDRESS> <IP_ADDRESS>] A, expire at 2024-10-05 17:02:17"
level=debug msg="[DNS] cache hit www.baidu.com --> [2408:871a:2100:2:0:ff:b09f:237 2408:871a:2100:3:0:ff:b025:348d] AAAA, expire at 2024-10-05 17:02:43"
level=warning msg="[TCP] dial 🎯全球直连 (match RuleSet/ChinaMax_Domain) [fdfe:dcba:9876::1]:62509(Microsoft Edge Helper) --> www.baidu.com:443 error: dial tcp <IP_ADDRESS>:443: invalid argument"

在TUN模式下,如果"tfo":false,正常访问
proxies:

{"name":"直连","type":"direct","ip-version":"ipv4-prefer","udp":true,"tfo":false,"mptcp":true}
level=debug msg="[DNS] cache hit www.baidu.com --> [2408:871a:2100:3:0:ff:b025:348d 2408:871a:2100:2:0:ff:b09f:237] AAAA, expire at 2024-10-05 17:49:21"
level=debug msg="[DNS] resolve www.baidu.com A from https://<IP_ADDRESS>:443/dns-query"
level=debug msg="[DNS] resolve www.baidu.com A from https://<IP_ADDRESS>:443/dns-query"
level=debug msg="[DNS] resolve www.baidu.com AAAA from https://<IP_ADDRESS>:443/dns-query"
level=debug msg="[DNS] resolve www.baidu.com AAAA from https://<IP_ADDRESS>:443/dns-query"
level=info msg="[TCP] <IP_ADDRESS>:57516(Microsoft Edge Helper) --> www.baidu.com:443 match RuleSet(ChinaMax_Domain) using 🎯全球直连[直连]"

Reproduction Steps
当direct节点配置tfo:true时
Logs
No response

测试无问题,请确保你的环境支持tfo


ice: add candidate sdp mdns support

Some browsers anonymize local webrtc sdp candidate ip addresses with mDNS [UUID].local (like "1bbabc05-80d2-4386-8e39-9666b53900d0.local"), this PR uses getaddrinfo to resolve these if needed.
TODO:

[x] - a callback notification is needed (rcand is ready)
[ ] - testing

refs https://github.com/baresip/baresip/discussions/2137

Wow, thanks for the PR! I was eager and patched it on-top of version 3.4.0. It seems to work very good, with the WebRTC demo without any ICE servers set. When i define ICE-Servers on WebRTC-Demo (Backend) and in the JS part of the demo and if i use Firefox (which sends all candidates; Chrome/Safari seem to skip sending external candidates on a loopback connection) then the demo crashes.
See the attached log:
Local network addresses:
        en0:  <IP_ADDRESS>
        en0:  fd4b:a493:d8a7:4a5e:1823:55e6:2bdc:2ae7
medianat: ice
dtls_srtp: use prime256v1 for elliptic curve cryptography
mediaenc: dtls_srtp
DTLS-SRTP ready with profiles SRTP_AES128_CM_SHA1_80:SRTP_AES128_CM_SHA1_32:SRTP_AEAD_AES_128_GCM:SRTP_AEAD_AES_256_GCM
vidcodec: H264
vidcodec: H264
avcodec: using H.264 encoder 'libopenh264' -- OpenH264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
avcodec: using H.264 decoder 'h264' -- H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
ausrc: avformat
vidsrc: avformat
demo: using ICE server: turn:a.relay.metered.ca:80
demo: listening on:
    http://<IP_ADDRESS>:9000/
demo: request: met=GET, path=/, prm=
demo: loaded file '/Users/paresy/baresip/webrtc/src/../www/index.html', 1058 bytes (text/html)
demo: request: met=GET, path=/js/main.js, prm=
demo: loaded file '/Users/paresy/baresip/webrtc/src/../www/js/main.js', 5516 bytes (text/javascript)
demo: request: met=POST, path=/connect, prm=
demo: create session
peerconnection: new: sdp=Offerer
peerconnection: using mnat 'ice'
ice: new session with TURN-server at a.relay.metered.ca (username=4c3e49b5d658489d3b14ec0e)
peerconnection: using menc 'dtls_srtp'
peerconnection: add video (codecs=2)
ice: policy = all
stream: video: starting mediaenc 'dtls_srtp' (wait_secure=1)
ice: resolved TURN-server to address <IP_ADDRESS>:80
video: added interface: en0:<IP_ADDRESS> (local pref 65534)
video: added interface: en0:fd4b:a493:d8a7:4a5e:1823:55e6:2bdc:2ae7 (local pref 65535)
ice: relay gathered for comp 1 (0 OK)
ice: all components gathered.
video: comp1 setting local: <IP_ADDRESS>:45636
ice: video: Default local candidates: <IP_ADDRESS>:45636 / ?
peerconnection: medianat gathered (stable)
demo: session gathered -- send sdp 'offer'
peerconnection: create offer
- - offer - -
- - - - - - -
descr: encode: type='offer'
demo: request: met=PUT, path=/sdp, prm=
demo: handle PUT sdp: content is 'application/json'
descr: decode: type='answer'
peerconnection: set remote description. type=answer
- - answer - -
- - - - - - -
stream: update 'video'
stream: receive: setting SSRC: 7e688c3c
video: RTP/RTCP multiplexing enabled
peerconnection: start ice
demo: request: met=PATCH, path=/candidate, prm=
demo: request: met=PATCH, path=/candidate, prm=
demo: request: met=PATCH, path=/candidate, prm=
demo: request: met=PATCH, path=/candidate, prm=
{      video.1} added PeerReflexive remote candidate with priority<PHONE_NUMBER> (<IP_ADDRESS>:63253)
ice: form: 'video' no remote candidates
ice: form: 'video' no remote candidates
ice: form: 'video' no remote candidates
ice: form: 'video' no remote candidates
stunsrv: {video.1} local candidate not found (checklist=0) (src=<IP_ADDRESS>:63253)
demo: request: met=PATCH, path=/candidate, prm=
{      video. } starting connectivity checks with 4 candidate pairs
{      video.1}  host <---> prflx  FSM:      Frozen ===> InProgress
{      video.1} Tx en0:host:<IP_ADDRESS>:25328 ---> prflx:<IP_ADDRESS>:63253 (InProgress)
{      video.1} Rx en0:host:<IP_ADDRESS>:25328 <--- prflx:<IP_ADDRESS>:63253 '0 OK'
{      video.1}  host <---> prflx  FSM:  InProgress ===> Succeeded
{      video.1}  host <---> srflx  FSM:      Frozen ===> InProgress
{      video.1} Tx en0:host:<IP_ADDRESS>:25328 ---> srflx:<IP_ADDRESS>:63253 (InProgress)
demo: request: met=PATCH, path=/candidate, prm=
{      video. } starting connectivity checks with 4 candidate pairs
{      video.1} srflx <---> prflx  FSM:      Frozen ===> InProgress
{      video.1} Tx en0:srflx:<IP_ADDRESS>:25328 ---> prflx:<IP_ADDRESS>:63253 (InProgress)
{      video.1} Rx en0:srflx:<IP_ADDRESS>:25328 <--- prflx:<IP_ADDRESS>:63253 '0 OK'
{      video.1} New local candidate for mapped <IP_ADDRESS>:25328
{      video.1} srflx <---> prflx  FSM:  InProgress ===> Succeeded
{      video.1} relay <---> prflx  FSM:      Frozen ===> InProgress
{      video.1} Tx relay:<IP_ADDRESS>:45636 ---> prflx:<IP_ADDRESS>:63253 (InProgress)
{      video. } starting connectivity checks with 3 candidate pairs
{      video.1} relay <---> srflx  FSM:      Frozen ===> InProgress
{      video.1} Tx relay:<IP_ADDRESS>:45636 ---> srflx:<IP_ADDRESS>:63253 (InProgress)
{1} TURN Client error: 403 Forbidden IP
ice: gathering srflx for comp 1 ..
{      video. } starting connectivity checks with 3 candidate pairs
{      video. } starting connectivity checks with 3 candidate pairs
{      video.1} Rx relay:<IP_ADDRESS>:45636 <--- prflx:<IP_ADDRESS>:63253 '0 OK'
{      video.1} New local candidate for mapped <IP_ADDRESS>:25328
{      video.1} relay <---> prflx  FSM:  InProgress ===> Succeeded
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
{      video. } starting connectivity checks with 2 candidate pairs
mem: mem_deref: magic check failed 0x00000200 (0x1386049a8)

Process finished with exit code 138 (interrupted by signal 10: SIGBUS)

I tracked down the issue to this line:
mem_deref(rcand->domain); in rcand_dealloc
Maybe a race condition?

Thanks for testing, yes the mem_deref is useless since pl_strcpy does not allocate.


(docs) add more meaningful transformation code to firehose->s3->sqs->lambda->s3 example

Published to DDK workshop


Search comments

Would it be possible to search within the comments?
Thanks a lot!

oh yes. i would like this function, too.

vote for this!

That would be great :) a global search for comments would really be a nice and helpfull feature

indeed, it would be a great addition !

It's now possible in the development branch.

Waiting for this feature.


late-bound constraints

Reading the docs, https://docs.docker.com/swarm/scheduler/filter/ constraints are added when the docker daemon is started.
Is there a way to add constraints after the engine in started? E.g. today I can do this by starting a container with a name that would be my constraint and then use affinity with the container name equal-to that name.
A use case for this may be if a a service is deployed to a set of nodes, you could add a constraint to those docker engines running such a service possibly via an UPDATE or or POST method the engine API.

Hi @wallnerryan. No, you need to restart the engine in that case.
I you need a service to run on a specified set of nodes, why not using node constraints? (you don't need late-binding in that case)

@abronan I guess I could.. the thing is if I deploy a service after my initial docker engine is started up that say "gives a groups of nodes a specific roll in a cluster" as in node1-4 have a specific configuration to them, I would need something like a service discovery tool to let me know that those 4 nodes are now running such a service and are used for that role now, so reference them with node[1234], which in an orchestration systems could be a fair assumption.
Instead, it could be simpler if I give those nodes a unique constraint name like "foo-config" after I deploy my service foo successfully, I could then just use one constraint instead of finding the nodes. This is why container affinity kind-of works but if that containers used to deploy the service are removed once the service is deployed or if that container doesn't have a unique name it can be harder to accomplish. It would be nice to be able to assign/un-assign a role to an engine after it is started.

@wallnerryan I understand the use-case but unfortunately it belongs to the docker engine to support late-binding of labels (because we use the docker API and docker info to retrieve those labels). Feel free to open an issue on docker :) I'll close the issue for now but we might reconsider this in the future if the feature hits the engine.


The sum of the weights of the core is not 1？

I use two-category MKL training, why always there is a segmentation error, and the sum of the weights of the core is not 1？

Thanks for the report
Could you post a stand-alone example to reproduce this, minimally if possible. Thanks

Thanks for the report
Could you post a stand-alone example to reproduce this, minimally if possible. Thanks

print('Using mkl vector machine')
import shogun as sg
try:
from shogun import SVMLight
except ImportError:
print("SVMLight not available")
exit(0)
create combined train features
feats_train = sg.CombinedFeatures()
feats_train.append_feature_obj( sg.RealFeatures(sg.LongIntFeatures(x_tr.T )))
feats_test = sg.CombinedFeatures()
feats_test.append_feature_obj( sg.RealFeatures(sg.LongIntFeatures(x_te.T )) )
and corresponding combined kernel
kernel = sg.CombinedKernel()
kernel.append_kernel(sg.GaussianKernel(3.0))
kernel.append_kernel(sg.PolyKernel(10, 1))
ret = kernel.init(feats_train, feats_train)
print(ret)
for i in range(np.size(y_tr)):
if y_tr[i] == 0:
y_tr[i] = -1
for i in range(np.size(y_te)):
if y_te[i] == 0:
y_te[i] = -1
#train mkl
labels = sg.BinaryLabels(y_tr)
label_te = sg.BinaryLabels(y_te)
mkl = sg.MKLClassification(sg.LibSVM());
mkl.set_interleaved_optimization_enabled(False);
which norm to use for MKL
mkl.set_mkl_norm(2)  # 2,3
set cost (neg, pos)
mkl.set_C(1, 1)
set kernel and labels
mkl.set_kernel(kernel)
mkl.set_labels(labels)
train
mkl.train()
w = kernel.get_subkernel_weights()
print(w)
kernel.set_subkernel_weights(w)
kernel.init(feats_train, feats_test)
mkl.set_kernel(kernel)
out = mkl.apply_binary()
evaluator = sg.MulticlassAccuracy()
accuracy = evaluator.evaluate(out, label_te)
print("Accuracy = %2.2f%%" % (100 * accuracy))

[0.60014169 0.79989371]
experiments.py:267: RuntimeWarning: [WARN] In file /home/zym/shogun/src/shogun/labels/MulticlassLabels.cpp line 225: Converting non-contiguous multiclass labels to contiguous version:
accuracy = evaluator.evaluate(out, label_te)
experiments.py:267: RuntimeWarning: [WARN] In file /home/zym/shogun/src/shogun/labels/MulticlassLabels.cpp line 230: Converting -1 to 0.
accuracy = evaluator.evaluate(out, label_te)
experiments.py:267: RuntimeWarning: [WARN] In file /home/zym/shogun/src/shogun/labels/MulticlassLabels.cpp line 230: Converting 1 to 1.
accuracy = evaluator.evaluate(out, label_te)
Accuracy = 98.50%
*** Error in `python3': corrupted size vs. prev_size: 0x00000000021e08bf ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f6d19e0b7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x7e913)[0x7f6d19e12913]
/lib/x86_64-linux-gnu/libc.so.6(+0x80678)[0x7f6d19e14678]
I would like to ask you to help me see if there are other problems.Thanks！

It seems like a recently introduced bug. I will try to fix it

It seems like a recently introduced bug. I will try to fix it

And this segment error is only after the end of the program run, is there no free space?

No this has to do with a recent re-factoring and comes from a missed reference counter increase ...

No this has to do with a recent re-factoring and comes from a missed reference counter increase ...

I also want to ask, it takes a long time to save and download the svm model. Is there any way to improve it?

No this has to do with a recent re-factoring and comes from a missed reference counter increase ...

I also want to ask, it takes a long time to save and download the svm model. Is there any way to improve it?

That is more for a discussion on the mailing list or IRC, rather than here. But short answer: this is probably because the whole training set is stored (downside of kernel methods). You could try calling store_model_features which prunes all data that have zero coefficients. Not sure that works for MKL, feel free to issue a feature request

Your code snippet is incomplete. Could you provide a minimal stand-alone example that I can just copy paste to run? I need to fill so many gaps here that it is not clear what the error would be

Your code snippet is incomplete. Could you provide a minimal stand-alone example that I can just copy paste to run? I need to fill so many gaps here that it is not clear what the error would be

ok，I will sort it out on Monday, thank you.

Your code snippet is incomplete. Could you provide a minimal stand-alone example that I can just copy paste to run? I need to fill so many gaps here that it is not clear what the error would be
What is your email address, I also need to send the data set to you together.

Does it also crash with minimal random data?
Like x_tr = np.random.randn(100,10) etc? email is on our website

Ok I figured there is a memory bug in CombinedKernel that is at least contributing to your problem.
Reproducible with
import shogun as sg

import numpy as np
x_tr = np.random.randn(10, 2)

temp = sg.RealFeatures(x_tr)
feats_train = sg.CombinedFeatures()
feats_train.append_feature_obj( temp)

kernel = sg.CombinedKernel()
kernel.append_kernel(sg.GaussianKernel(3.0))
kernel.append_kernel(sg.PolyKernel(10, 1))

kernel.init(feats_train, feats_train)

sg.get_global_io().set_loglevel(0)
del kernel
print temp # segfaults as object's refcounter decreases to zero when destroying the kernel


1.2.1 includes breaking change

in 1.2.1 I had to require('phantom-pool').default but in 1.2.0 it was require('phantom-pool').

Oops, sorry about that. It should be work wit both in 1.2.2:
$ node
> p = require('phantom-pool').default
{ [Function: initPhantomPool] default: [Circular] }
> p = require('phantom-pool')
{ [Function: initPhantomPool] default: [Circular] }


toggle to stop accepting request

Command or other implementation, needs to be added to stop accepting requests.

Possible to follow schedule and turn off request automatically based on the schedule.

This feature has been implemented with in the Show Pulse website and will not be part of the plugin.


feat: migrate cra to vite in base-antd

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Please provide enough information so that others can review your pull request:

Explain the details for making this change. What existing problem does the pull request solve?

Test plan (required)
Demonstrate the code is solid. If not, please add WIP: in its title.

Closing issues
Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
Self Check before Merge
Please check all items below before review.

[ ] Corresponding issues are created/updated or not needed
[ ] Docs are updated/provided or not needed
[ ] Examples are updated/provided or not needed
[ ] TypeScript definitions are updated/provided or not needed
[ ] Tests are updated/provided or not needed
[ ] Changesets are provided or not needed

maybe we can add this https://vitejs.dev/guide/features.html#client-types to compilerOptions but it's not a big deal

we can remove react-app-env.d.tsx

I believe we can revert interfaces/index.d.tsx to interfaces/index.d.ts again. I have never seen d.tsx 🤔 is this valid?

I went through several guides, one of them said that you should change it to tsx it was but others didn't had anything on it.

There was an "interfaces" module couldn't be found error, which seemed to be solved when i turned the index.d.tsx to d.ts. I guess the usage was problematic after all.

There seems to be a bug with the refine dev script which will be fixed when https://github.com/refinedev/refine/pull/4138/commits/654cdc9d5aeedbdaf5786f66e294a1ca812a88aa this commit is merged. I will make one more push to change the scripts after that commit is merged, till then, this one should be merged as it only works because it uses vite instead of refine dev

Okay, i was able to make this work in local with new scripts as well, it can be merged.


dockerapp-dockerapp-1 exited with code 1 - Task 8 in Lab 2

Hi Tito and Majid,
Yesterday we had Lab 2, when it came to Task 8, it seemed that the docker-compose up didn't bring up 2 containers as expected, when following steps in the lab manual, and Tito also came across this problem later when presenting this lab:
$ docker-compose up
[+] Running 8/8
 ✔ redis 7 layers [⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                4.8s
   ✔ 51f5c6a04d83 Pull complete                                                                                3.1s
   ✔ 6c8ccd839b1d Pull complete                                                                                3.2s
   ✔ 0fded1c9651d Pull complete                                                                                3.7s
   ✔ 7f1aa6a73799 Pull complete                                                                                3.8s
   ✔ 658be2e58dbd Pull complete                                                                                4.0s
   ✔ 3d3b67be53f9 Pull complete                                                                                4.1s
   ✔ 8a88e1919daf Pull complete                                                                                4.2s
[+] Building 0.5s (10/10) FINISHED
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 196B                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load metadata for docker.io/library/python:3.10                                                                              0.4s
 => [internal] load build context                                                                                0.0s
 => => transferring context: 132B                                                                                0.0s
 => [1/5] FROM docker.io/library/python:3.10@sha256:69a1e3bde8f6d3f1b5a9d3025daa24ccd76ecfe833be1d36cc3fcdf383b575f2                        0.0s
 => => resolve docker.io/library/python:3.10@sha256:69a1e3bde8f6d3f1b5a9d3025daa24ccd76ecfe833be1d36cc3fcdf383b575f2                        0.0s
 => CACHED [2/5] RUN pip install Flask==0.11.1 redis==2.10.5                                                                                0.0s
 => CACHED [3/5] RUN useradd -ms /bin/bash admin                                                                                0.0s
 => CACHED [4/5] WORKDIR /app                                                                                0.0s
 => CACHED [5/5] COPY app /app                                                                                0.0s
 => exporting to image                                                                                0.0s
 => => exporting layers                                                                                0.0s
 => => writing image sha256:e29f51bfce29030295f3f04dc89aeb8ab7d4c272474ee7c76098e83d7e10df7f                                                0.0s
 => => naming to docker.io/library/dockerapp-dockerapp                                                                                0.0s
[+] Running 3/3
 ✔ Network dockerapp_default        Created                                                                                0.1s
 ✔ Container dockerapp-redis-1      Created                                                                                0.0s
 ✔ Container dockerapp-dockerapp-1  Created                                                                                0.0s
Attaching to dockerapp-dockerapp-1, dockerapp-redis-1
dockerapp-redis-1      |                 _._
dockerapp-redis-1      |            _.-``__ ''-._
dockerapp-redis-1      |       _.-``    `.  `_.  ''-._           Redis 3.2.0 (00000000/0) 64 bit
dockerapp-redis-1      |   .-`` .-```.  ```\/    _.,_ ''-._
dockerapp-redis-1      |  (    '      ,       .-`  | `,    )     Running in standalone mode
dockerapp-redis-1      |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
dockerapp-redis-1      |  |    `-._   `._    /     _.-'    |     PID: 1
dockerapp-redis-1      |   `-._    `-._  `-./  _.-'    _.-'
dockerapp-redis-1      |  |`-._`-._    `-.__.-'    _.-'_.-'|
dockerapp-redis-1      |  |    `-._`-._        _.-'_.-'    |           http://redis.io
dockerapp-redis-1      |   `-._    `-._`-.__.-'_.-'    _.-'
dockerapp-redis-1      |  |`-._`-._    `-.__.-'    _.-'_.-'|
dockerapp-redis-1      |  |    `-._`-._        _.-'_.-'    |
dockerapp-redis-1      |   `-._    `-._`-.__.-'_.-'    _.-'
dockerapp-redis-1      |       `-._    `-.__.-'    _.-'
dockerapp-redis-1      |           `-._        _.-'
dockerapp-redis-1      |               `-.__.-'
dockerapp-redis-1      |
dockerapp-redis-1      | 1:M 10 May 16:51:13.034 # Server started, Redis version 3.2.0
dockerapp-redis-1      | 1:M 10 May 16:51:13.034 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
dockerapp-redis-1      | 1:M 10 May 16:51:13.034 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
dockerapp-redis-1      | 1:M 10 May 16:51:13.034 * The server is now ready to accept connections on port 6379
dockerapp-dockerapp-1  | Traceback (most recent call last):
dockerapp-dockerapp-1  |   File "/app/app.py", line 1, in <module>
dockerapp-dockerapp-1  |     from flask import Flask, request, render_template
dockerapp-dockerapp-1  |   File "/usr/local/lib/python3.10/site-packages/flask/__init__.py", line 19, in <module>
dockerapp-dockerapp-1  |     from jinja2 import Markup, escape
dockerapp-dockerapp-1  | ImportError: cannot import name 'Markup' from 'jinja2' (/usr/local/lib/python3.10/site-packages/jinja2/__init__.py)
dockerapp-dockerapp-1 exited with code 1

I searched the second last line ImportError: cannot import name 'Markup' from 'jinja2' (/usr/local/lib/python3.10/site-packages/jinja2/__init__.py), there is a question on StackExchange describing the same error. One of the answers mentioned that the error comes from calling jinja2.Markup() without arguments (see release note and issue). Another answer says that upgrading Flask to 2.0.3 can fix the issue. Honestly I don't know the reason you choose the version of Flask and Jinja in this Dockerfile, but I have forked the repo and changed the version of Flask from 0.11.1 to 2.0.3 in this commit. I can make a pull request if you think it can be accepted, or maybe you have your reasons to use specific versions of packages. Just trying to practice contributing to public repos, even if it is a minor change.

Hi  @kzyr6573
Thanks for opening this issue. Yes i have come across the error too  and i think the Flask version change is the solution.
In the spirit of collaboration, can you make a pull request and i will merge the change.
Thanks a lot.
Tito

Sure, thanks Tito for accepting this minor fix.


Target delivery domain missing during migration batch creation

Hi Roman - my cross-tenant migrations have been working fine for the past few weeks, and I needed to add a new user to a migration batch.
When I create this single mailbox batch, just like all the previous, when I get to the Configuration step to select the "Target delivery domain" there is nothing in dropdown.
I haven't had to create any batches for about 2 weeks.   I ran the verify script and everything passes and appears fine.
Any thoughts on this?  Thanks!
Patrick

Disregard...after stepping away for an hour doing some PowerShell research, I came back and tried again, and the Target Delivery Domain is now appearing.   This issue can be closed.  Thanks!


Add arm64/ppc64le/s390x builds on Travis

Excellent news is coming. Now Travis arch: arm64, arch: ppc64le and arch: s390x have the free unlimited builds without consuming credits for every open repository again!
Here is the official document published today.
https://docs.travis-ci.com/user/billing-overview/#partner-queue-solution
Here is my note when working on the Ruby project to revive Travis.
If we do not want to consume the credits, it's good to avoid using arch: amd64 in Travis, because it consumes credits.
https://bugs.ruby-lang.org/issues/17818#note-3

Not necessarily.  SVE certainly has its advantages, but so does AVX-512.  Overall, I'd say AVX-512 has more powerful instructions which you have to call multiple instructions on Arm to emulate.  If you're careful, you can probably create more optimized versions of your code on x86 than either NEON or SVE.
One of the biggest problems with the x86 SIMD iSA extensions, including AVX-512, is fragmentation.  For years Intel has been reserving AVX-512 support to its higher-end CPUs, and it shows.  According to the latest Steam Hardware Survey, AVX-512F is only available on 1.17% of machines.  And that is machines with Steam installed; a pretty big bias in favor of faster, more powerful machines.  Only now is Intel starting to announce lower-end CPUs with AVX-512 support, and on the AMD side Zen 4 will be the first AMD CPUs to support AVX-512.
Even within AVX-512 there is a lot of fragmentation.  AVX-512F is the "base" AVX-512 instruction set, all the others are optional, and there are already a lot of options, including:

AVX-512BW
AVX-512VL
AVX-512CD
AVX-512DQ
AVX-512ER
AVX-512IFMA52
AVX-512PF
AVX-512VPOPCNTDQ
AVX-512_4FMAPS
AVX-512_4VNNIW
AVX-512_BF16
AVX-512_BITALG
AVX-512_VBMI
AVX-512_VBMI2
AVX-512_VNNI
AVX-512_VP2INTERSECT

The end result is that you often have to write several different versions of your code.  You'll probably want one that is limited to SSE2 (the baseline for x86_64), and one which supports up to SSE4.1 or SSE4.2 (which the Steam Hadrware Survey has at a bit north of 98% penetration right now).  Maybe you want something in between, maybe not; that probably depends on your userbase, how much of a performance boost you might be able to get, and how much time you're willing to invest in development, etc..  You'll likely also want an AVX2 version, since that can be a pretty big performance boost and pretty good availability.  And then there is AVX-512; you'll probably want to start with something which requires AVX-512F and maybe AVX-512BW, then you might want something which also depends on some other extensions, again depending on how much of a performance gain you'll get and how much development time it would take.
And it's not like you can just define preprocessor macro in your code to easily switch between between calling _mm_*, _mm256_* and _mm512_* functions (unless you want to use SIMDe to emulate some functions).  There are lots of 128-bit instructions which aren't available until AVX or AVX-512, or later variants of SSE.  You really do need multiple versions.
With SVE, on the other hand, you can have one version of your code and it will work on any vector width.  One big advantage this gives Arm is that lower-end parts can still just have smaller vector units (i.e., 128-bit) whereas server or HPC parts can have much larger units (512-bits or beyond).  That's huge because Arm doesn't have to offer expensive (in terms of die size and power consumption) 512-bit vector units on low-end chips like Intel is starting to, yet programmers still don't have to write multiple versions.
SVE does have multiple versions; they're on SVE2 right now (AFAIK no hardware was ever built which only supports the original SVE), and there are some optional extensions within SVE/SVE2, so you may still end up switching between different versions.  It's not nearly as common as it is on x86, though, or as random (SVE either supports a feature or doesn't; you don't have to worry about it supporting something for 32-bit integers but not 16-bit, or unsigned versions being in a different extension from signed), and taking vector length out of that equation is a really big deal; different vector lengths pretty much multiplies the number of versions you might want on x86 by 3 (for 128, 256, and 512-bit vectors).

I would close this ticket as I see the Travis adding ppc64le and s390x cases. Thanks!
https://github.com/simd-everywhere/simde/blob/master/.travis.yml


make: *** No rule to make target 'build'.

Hi,
I have followed the readme to build psp-advisor as a binary. But i still got same error
make: *** No rule to make target 'build'.  Stop.
any idea how to resolve this ?
Thank you

@ermusthofa may I know the working directory where you run make?

Hi @Kaizhe ,
I'm sorry for this trouble. I've managed to solve this, and all of the trouble comes from my mistake
I'm new to golang, and even didn't know how to build go project.
Once again, I'm sorry for this. And thank you for your response


Update Get-CsBatchTeamsDeploymentStatus.md

Added a test comment to see how change process is handled

Closed - was just testing


Fix Multiple Repost Of Same Thing

I have made it so it has a 40 day gap and it will choose randomly so there is a very less chance of getting same post :)

Elite i'm going to close this out because it wont have the intended effect as we discussed in chat. goo start though!


Corner ID search

Within a search button on the map, along with the other search options. Operates similarly to the existing tool's implementation, with added functional and artistic license.

Miro reference

This looks great! Working as expected.


Static templates

Given that I am a ui user
When I go to my dashboards page
Then I see that there are a list of static dashboards
And I cannot modify these dashboards

These static dashboards will come from the external templates (i.e. system or local metrics)


Order libraries with lev sort

Old

New

It also boldens exact matches for easier identification, as it's probable that if I type fmt, I'm looking for fmt

This looks kinda of odd when search and there is only 1 results -- as you type the font changes and the text moves as you are trying to read it

goes to

You are the second one to mention it, so let's remove it :)