Interface Role

As ...
Nelly - Network Engineer
I want ...
To be able to specify a role for interfaces
So that ...
I can track common interface configurations based on role meaning
I know this is done when...

I can create Role instances that can be assigned to interfaces
Interface role assignment is optional

Optional - Feature groups this request pertains to.

DCIM

Database Changes

Add role field to Interface and VMInterface

External Dependencies
No response

For this feature please also add a template of trunk/access + vlans.
This way if you have to add or remove a vlans to a lot of common interfaces you can do it in one place

So glad this idea came up! My team and I brainstormed on this for a bit yesterday and feel that this feature can initially be pretty minimal. I’m thinking the InterfaceRole model would need a name, description, and a list of relevant_device_roles. Custom fields linked from InterfaceRole to VLANs, VLAN_roles, or other models may be used to enhance functionality in the way @nitzan-tz is suggesting.
It may be a good idea to also add a config context schema to InterfaceRole. This schema could live under the interface config context allowing for properties relevant to the specific interface_role to be set.
Example workflows this could enable:

More streamlined interface configuration using a custom Job

Select a device
Select an interface
Based on the device’s device_role, you’d be given a list of interface_roles
Select an interface_role
Fill out the interface_role config_context per the interface_role config_context schema

Classifying existing interfaces into interface_roles
Minimizing the interface details stored in Nautobot

For the record, I'm also interested in this, and like (in theory at least) @aedwardstx 's notion of Config Contexts on interface roles.


Pretrained Model and test.py

Nice work. Do you have a pretrained model to run. Also I do not see a test file to run the trained model. Can you update on these issues.

Hello, thank you for your interest in my work. I added a test file test.py to run the models. You can download them at the link available in the models folder.

Thanks a ton.


BNN image pre-processing on hardware

I have made a image pre-processor ip core which is directly writing the cifar10 based data into the DDR. And from the DDR i have successfully read all the data in linux running on ARM and write to a text file. Now i want to bypass crop resize and flatten and provide that data directly to the BNN hardware accelerator. I am not very good in python. So i am looking for some suggestions to how can i achieve my task and how the hardware accelerator is receiving the cifar10 data.

Hi Nomi070, is your question about how to integrate your preprocessing hardware with the BNN, or (after integrating the hardware) how to modify the software so that it doesn't go through the software preprocessing but provides the hardware with raw images instead?

I want to modify the software. My hardware ip is providing me cifar10 format data. I have done some digging correct me if i am wrong. Cropped images are appended together in a tile format and then pass to classify_images.  And in classify_image image_to_cifar is called. and in image_to_cifar data is written to some file fp. Should i write my data directly to this file. If yes how much data.? 3073 bytes.? and which signal or variable should i wait for to check if there is a stop sign detected or not.?

@maltanar Hello, Need your help, waiting for your reply.

We're actually in the process of making a better-documented release in the coming months, but until that time this will take some manual digging through the code to achieve. The Python interface (here for the CNV-w1a1 overlay) calls the C++ host code, which in turns calls the driver to talk to the hardware. If you are more comfortable with C/C++ I suggest taking a look at those files:
https://github.com/Xilinx/BNN-PYNQ/blob/master/bnn/src/network/cnvW1A1/sw/main_python.cpp
...which in turn calls:
https://github.com/Xilinx/BNN-PYNQ/blob/master/bnn/src/library/host/foldedmv-offload.cpp
https://github.com/Xilinx/BNN-PYNQ/blob/master/bnn/src/library/host/foldedmv-offload.h
...which calls the driver to perform register accesses and copy buffers back and forth:
https://github.com/Xilinx/BNN-PYNQ/blob/master/bnn/src/library/driver/xlnkdriver.hpp
You can see how we check if the accelerator is finished in the ExecAccel function here:
https://github.com/Xilinx/BNN-PYNQ/blob/master/bnn/src/library/host/foldedmv-offload.cpp#L381
You may also find the diagrams in this page helpful (Google Translate may help if you don't speak Japanese):
https://tkat0.github.io/study-BNN-PYNQ/soft-overview.html#
By the way, if you are familiar with hardware design using Vivado HLS, you may want to change your hardware so that its output is streamed directly into the BNN accelerator instead of going first into DRAM and then back out. This should give lower latency and higher performance. If you want to try this, have a look at e.g. the DoCompute function here to see how we construct the dataflow pipeline:
https://github.com/Xilinx/BNN-PYNQ/blob/master/bnn/src/network/cnvW1A1/hw/top.cpp#L137

@maltanar Did you guys release any more document with the detailed explanation of the the both hardware and software part?

We're working on a complete redesign of FINN at the moment, it's actually in public development here:
https://github.com/Xilinx/finn/tree/dev/
There's now a project website as well at
http://xilinx.github.io/finn
We don't have a release for this new version yet although it's getting there, hopefully in January. The demos in BNN-PYNQ will eventually be built using this new version of the FINN compiler.


cdp_environments_aws_environment overrides security_group_ids_for_knox with default_security_group_ids

When applying cdp_environments_aws_environment with security_access.default_security_group_ids and security_access.security_group_ids_for_knox set, Terraform eventually terminates with an error, saying that there is a bug in the provider.
Snippet from tf file:
resource "cdp_environments_aws_environment" "cdp_env" {
 ...
  security_access = {
    default_security_group_ids  = ["sg-01234567890a", "sg-01234567890b", "sg-01234567890c"]
    security_group_ids_for_knox =  ["sg-01234567890a", "sg-01234567890b", "sg-01234567890d"]
  }
 ...
}

Error produced by Terraform:
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to cdp_environments_aws_environment.cdp_env, provider "provider[\"registry.terraform.io/cloudera/cdp\"]" produced an unexpected new value: .security_access.security_group_ids_for_knox: planned set element cty.StringVal("sg-01234567890d") does not correlate with any element in actual.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

A quick look into the Terraform state file showed, that the values for security_group_id_for_knox have been overwritten with default_security_group_ids.
{
...
    "security_access": {
      "cidr": "",
      "default_security_group_id": "sg-01234567890a,sg-01234567890b,sg-01234567890c",
      "default_security_group_ids": [
        "sg-01234567890a",
        "sg-01234567890b",
        "sg-01234567890c"
      ],
      "security_group_id_for_knox": "sg-01234567890a,sg-01234567890b,sg-01234567890d",
      "security_group_ids_for_knox": [
        "sg-01234567890a",
        "sg-01234567890b",
        "sg-01234567890c"
      ]
    }
...
}

With the fix implemented in this PR, it works successfully.
Terraform version: v1.9.1
CDP Terraform provider version: 0.6.1

please add the jira id to the commit message

Hello,
is there something I can do?


fprocess cuts out command options which contain '='

Setting a command to fprocess which is containing a '=' character is being cut out after the '=' character.
Expected Behaviour
When setting fprocess="node --max_old_space_size=4096 index.js" it should execute the index.js script with the given --max_old_space_size option set to whatever value is given to it (4096 in this example).

Current Behaviour
When setting fprocess="node --max_old_space_size=4096 index.js" it fails to execute the command and gives the following output when sending a request to the function:
$ fprocess="node --max_old_space_size=4096 index.js" ./of-watchdog
2018/12/28 15:29:40 OperationalMode: streaming
2018/12/28 15:29:40 Writing lock-file to: /tmp/.lock
2018/12/28 15:29:45 Running node
2018/12/28 15:29:45 Started logging stderr from function.
2018/12/28 15:29:45 stderr: Error: missing value for flag --max_old_space_size of type int
Try --help for options
node: bad option: --max_old_space_size

2018/12/28 15:29:45 Error reading stderr: read |0: file already closed
2018/12/28 15:29:45 Took 0.008821 secs
2018/12/28 15:29:45 exit status 9

Cause of the issue
The issue is caused by the mapEnv function in config.go which is called with a slice of strings of the environment variables in key=value form.
It splits the fprocess environmemnt variable with a '=' sign separator to map fprocess as a key to the command as a value.
When the command is containing a '=' sign it splits the string to unknown number of substrings, but the mapped value (the command which is ran by of-watchdog) is only based on the first substring.
This results to fprocess=node --max_old_space_size=4096 index.js being mapped as mapped["fprocess"]="node --max_old_space_size" which causes the error.
Possible Solution
Possible fixes for the mapEnv function in https://github.com/openfaas-incubator/of-watchdog/blob/85505a7210cf413e455f8a03d74ba94d9a9fcd30/config/config.go#L89-L101
1. strings.Join in line 97:
mapped[parts[0]] = strings.Join(parts[1:], "=")
2. strings.SplitN in line 93:
parts := strings.SplitN(val, "=", 2)
Both would result to the mapping correctly as mapped["fprocess"]="node --max_old_space_size=4096 index.js".
3. setting an environment variable for the function (temporal fix):
It's possible to set environment variables in the function's YAML file as described here: https://github.com/openfaas-incubator/node10-express-template
For example node can set NODE_OPTIONS="--max-old-space-size=4096" to use the option, though this may not be suitable for all use cases.
Benchmarks
Benchmark for solution 1 (strings.Join):
func BenchmarkJoin(b *testing.B) {
	val := "fprocess=node --max_old_space_size=4096 index.js"
	parts := strings.Split(val, "=")
	for n := 0; n < b.N; n++ {
		strings.Join(parts[1:], "=")
	}
}

Result:
Running tool: C:\Go\bin\go.exe test -benchmem -run=^$ benchmarks -bench ^(BenchmarkJoin)$

goos: windows
goarch: amd64
pkg: benchmarks
BenchmarkJoin-8   	30000000	        45.8 ns/op	      48 B/op	       1 allocs/op
PASS
ok  	benchmarks	1.557s
Success: Benchmarks passed.

Benchmark for solution 2 (strings.SplitN):
func BenchmarkSplitn(b *testing.B) {
	val := "fprocess=node --max_old_space_size=4096 index.js"
	for n := 0; n < b.N; n++ {
		strings.SplitN(val, "=", 2)
	}
}

Result:
Running tool: C:\Go\bin\go.exe test -benchmem -run=^$ benchmarks -bench ^(BenchmarkSplitn)$

goos: windows
goarch: amd64
pkg: benchmarks
BenchmarkSplitn-8   	20000000	        63.0 ns/op	      32 B/op	       1 allocs/op
PASS
ok  	benchmarks	1.495s
Success: Benchmarks passed.

Overall the use of strings.SplitN (solution 2) to solve this issue seems better.

Steps to Reproduce (for bugs)

git clone https://github.com/openfaas-incubator/of-watchdog.git
go get -u github.com/openfaas-incubator/of-watchdog/config
go get -u github.com/openfaas-incubator/of-watchdog/executor
go build
fprocess="node --max_old_space_size=4096 index.js" ./of-watchdog

Context

I've deployed a nodeJS function based on https://github.com/openfaas-incubator/node10-express-template which required an increase of the maximum memory allocation for the function to run correctly.
I encountered this issue and its temporal fix (solution 3) by setting the --max_old_space_size=4096 option which caused the issue and forced me to set it as an environment variable for the function in the YAML file.
Your Environment

docker version 18.06

I'm using Docker Swarm (FaaS-netes)

Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 16.04, Windows 10 Build 17134

Hi if you are changing the fprocess then you must have your own template.
Why don't you create an entrypoint.sh bash script that runs node with all the various options you care about? An alternative is to look at which of these variables are available as environmental variables and to set them that way.
I do this for debugging Node.js
Hope these two solutions are useful for you.
Alex

@omrishtam I've taken a look at the code and written some unit tests to cover the scenario you raised.
I'll be pushing a fix to address the parsing of the arguments array from fprocess, but using the environmental variable is what I would recommend for you so that you don't have to hack on or fork the templates and then maintain them out of tree from upstream.
You can add NODE_OPTIONS easily without changing any templates by adding it in the environment section of your YAML file or by adding an external environment_file - this currently has to be a local file, but I would accept a PR to allow this to be a HTTP/s URL if that made things easier for you.
Thanks for your thorough suggestions on a fix - I think in this case the benchmarks won't be as relevant since the code only runs once per of-watchdog start.
If you and @omerzamir would like to contribute please join Slack and check out the contributors' getting started guide -> https://docs.openfaas.com/contributing/get-started/
Alex

Hi 😄,
Thanks for the quick response,
I'll be using the environment section in my YAML file for now, until a fix is released.
Omri

I've published a new release as:
https://github.com/openfaas-incubator/of-watchdog/releases/tag/0.4.6
Alex

We welcome contributions to the project, an initial contribution could be to update the of-watchdog version in some of all of the incubator templates listed in the template store?
Would either of you like this or should I find someone else? (please note you have to type in git commit -s rather than git commit or editing in the UI for changes to be accepted by the Developer-Certificate of Origin that OpenFaaS uses.
Regards,
Alex

Sure!
How do you want us to do this?
Should we clone each repo and branch from master and make the change for the Dockerfiles and open a PR for the commit?
Omri

That's basically the pattern right now. We could do with thinking about whether it can be automated in the future.


Auto add to new public channels

Avoid having to explicitly invite uqcsbot to channels.

There's channel created event iirc (tomgr)

This should also be paired with something that makes UQCSBot leave. (maybe just !leave). Incase people don't want the bot.

Turns out, the API prevents bot users from adding themselves to channels.

Could we do an end run around this restriction by using the @UQCSCommittee's non-bot user credentials to add the bot on channel-create.


Fetch data always from client

Is it possible to prevent server side rendering at all (yes, I know this is not isomorphic).
Running locally debug and production execute the constructor and componentDidMount in the client. When deploying with now, this only happens "sometimes".
this app loads the data (websocket) sometimes, sometimes not.
running locally, everything works fine.
this is the source https://github.com/lipp/next-todos
cheers!

It can be related to https://github.com/zeit/next.js/pull/326 .
Can you try to deploy with now again and see if it succeeds?

Just stumbled upon #326 too :) I'm afk right now. Will give it a try in some hours

Yes, re-deploying solved it. THX


Support for dbz column's default value to Bigquery

Hi,
I am trying to stream data from MySQL to BigQuery. For source connector, I am using Debezium CDC Source Connector. But, when I try to create a new field with default value in mysql "default value"  reflects to Kafka but not to Bigquery. The other thing the updated schema in Bigquery is not available unless you make a DML operation. Is there a solution for this ?
Thanks in advance

There isn't a concept of "default" values in BQ so, no, default values are not represented in BQ. (If the default value is part of the kafka schema, and there is no value for that column, it will be sent to BQ, of course).
As for the second, no. The BQ schema will only attempt to update if it cannot successfully send a record to BQ due to a schema mismatch, so some DML is necessary to propagate the schema change.


set --with-gcc=gcc-4.2 on lion + xcode 4.1

The CC export works, but may as well follow the recommendation in https://github.com/ruby/ruby/commit/9151ed22b360ba3d2bde3b51969a682f9a4a3096
(Could replace the CC export, even)

Has there been any progress on this front? I can't install 1.8.7 either b/c it doesn't accept the standard llvm-gcc-4.2 to compile. Thanks for your hard work on this!

What a pain, but I seem to have 1.8.7 working.
You can install gcc-4.2 by downloading and installing Xcode 4.1 from the apple developer site.  Do a tail -f on /var/log/install.log while doing it; looks like if it finds traces of the Xcode 4.2 install or even installer, you can't go back to 4.1.  Not sure this is the only option or the best option, but at least I was able to get Lion with a working gcc-4.2.
Here's what I had to do:

remove xcode 4.2 by running /Developer/Library/uninstall-devtools
spotlight search for Install Xcode.app and get rid of it
download and install Xcode 4.1 for Lion
rvm uninstall 1.8.7 (my prior non-working install)
rvm remove all
rvm get latest
rvm install 1.8.7
gem update --system

finally, good to go!

I actually found an even easier way to get it working without re-installing xcode.  I installed this and then it worked:
https://github.com/kennethreitz/osx-gcc-installer
Good times :D

Excellent.  where were you at 4am when I needed you?  :-)


FSSourceListViewControlller.title should be configurable

Hello,
Please allow the title of FSSourceListViewControlller to be configurable, like it is on the android SDK.
https://github.com/filestack/FSPicker/blob/3a7f0a49b5ca078d9286262cf24e38820317afa6/FSPicker/Platforms/iOS/ViewControllers/FSSourceListViewController.m#L114
Thank you.

Added in 1.1.2.


Switch to Ninja

Currently builds are using make or nmake. It would be faster and more uniform to just ninja for all builds

This might also alleviate some existing pain points (similar to how this user did)
https://github.com/conda-forge/eigen-feedstock/blob/4b0b11cd8b02a97f43dead1e429e622bec3e21f9/recipe/bld.bat#L4-L7


Customizable OSRS Hitsplats

Implement customizable hitsplats from prior versions of RS. (ex; 2010, 2011)

There is a planned hitsplat update from Jagex, delayed due to engine work. Not sure if this is needed.
https://oldschool.runescape.wiki/w/Upcoming_updates#Hitsplat_update

That's just for tinted hit splats. I'm suggesting hitsplats from earlier revisions.

Kinda bumping this again as this same feature has been requested quite a few times. Anyone that could work on this and make this part of the interface styles plugin? I have the all the sprites for this (damage, block, poison, venom, heal -hitsplats) incase needed.

Bumping, hope someone can implement 2010/2011 hitsplats.

Could someone add an interface styles label to this? Thank you.

Supported

Bump. This is much requested... been years and nothing

any update on this?

Any update on this?

Any update on this?

I did a issue request for this i had it all working https://github.com/runelite/runelite/discussions/17089 here but you had to relog to see the changes :/ so did not end up pring yet once the support is added ill be happy to pr it

This is awesome! Do you have a way I can contact you like Discord or telegram?On Feb 3, 2024, at 9:48 AM, Mark7625 @.***> wrote:
Any update on this?
I did a issue request for this i had it all working #17089 here but you had to relog to see the changes :/ so did not end up pring yet once the support is added ill be happy to pr it
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

mark_7625 is my discord


Even the Series 5 screen is too big to be displayed on the iPhone SE

We should probably scale all screens if they don't fit the iOS device's dimensions.

Fixed.


[Listbox] Create useListbox hook

This PR adds a Listbox - a building block for Autocomplete, Select, and possibly other components (as Menu, for example).
It is currently not used anywhere. I am going to build an unstyled Select using it.
I took inspiration from our useAutocomplete and Kent C. Dodds' downshift (especially the state reducer pattern).

I agree it's hard to verify the usefulness and correctness of this feature in isolation. I decided to create a PR in order to simplify the review process. It's easier to review a couple of smaller PRs than one huge one. I am going to start building the Select based on it early next week, so you'll be able to see the implementation as well.

It's easier to review a couple of smaller PRs than one huge one.

@michaldudak Hard agree on smaller PRs. My proposal was to reverse the order. Recently @flaviendelangle was working on a big feature, the tree data. He worked inside one branch on it: #2725. Then, once things started to fit together, started to extra them into individual chunks of value (still providing value in isolation).

Makes sense. I'm going to close this one, then, and will create a new one when unstyled Select is ready.


Add CMakeLists.txt file and fix missing include

So CMakeLists.txt makes people feel convenient to build all these source codes, tested under Windows (MSVC) and Ubuntu (gcc).
However, some compile errors occur in MSVC just because of the missing include<string>, so I also add them to finish building.
Thanks for the project. Hope you have a good day.

Thanks for sharing your changes.


Gather test evidence for 1.48

Description
Playwright, integration, unit test results.
Need to automate this for subsequent releases.
Resourcing
We intend to implement this task

Playwright test results:
playwright_1_48.zip

Unit tests (incl Arch Unit)
unit-tests.zip

Test summary:
6 (playwright) + 47 (service) + 28 (web) + 20 (model) + 625 (common)
=
726 tests / 0 failures


Day60: LeetCode-217. Contains Duplicate - HashTable

Contains Duplicate
https://leetcode.com/problems/contains-duplicate/
Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

Example 1:
Input: nums = [1,2,3,1]
Output: true
Example 2:
Input: nums = [1,2,3,4]
Output: false
Example 3:
Input: nums = [1,1,1,3,3,4,3,2,4,2]
Output: true


test PR with Github API

Please pull this in!

Docs Build status updates of commit ce3e4ba:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

node-azure-tools.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.


chore: 🔧 "register" changes in components when there were only changes in angular/react

Description

Currently the React and Angular wrapper versions are bound to the components package. This means that a bug-fix in the wrappers layer cannot be deployed without doing a change in the components package.
On the other hand this version coupling is needed, so there is no misunderstanding which wrapper version fits to which components version.

Rationale
As a maintainer of the Synergy Design System, I want to be able to make changes in the Angular/React packages (e. g. changes in package.json or README etc.) which should lead to updates of the components package WITHOUT doing fake commits in the components packge.
More context: https://github.com/SickDesignSystem/Internal/discussions/48

@klaarseSICKAG From my perspective everything is clear what the aim of the ticket is. Please have a look if something's missing. Would start with that tomorrow.

Agreed to the aim. I am very curious about the solution idea...

Here is the idea and solution: https://github.com/SickDesignSystem/synergy/pull/194 :)


Cross subscription restore is GA.  Please update the documentation

[Enter feedback here]
Cross subscription restore feature is GA - https://azure.microsoft.com/en-us/updates/generally-available-cross-subscription-restore-for-azure-virtual-machines/
Documentation here shows this is still in preview.  Please update the documentation.

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

ID: 66081bde-1e22-dd9c-8357-a0485b23b0a7
Version Independent ID: eb2a52a5-d290-84fb-c3fe-2a5d8512669a
Content: Restore VMs by using the Azure portal - Azure Backup
Content Source: articles/backup/backup-azure-arm-restore-vms.md
Service: backup
GitHub Login: @AbhishekMallick-MS
Microsoft Alias: v-abhmallick

@ajaynadakuditi - Thanks again for bringing this to our attention. We have updated the doc and it will be live once it's merged.  We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Planned Features for 2.2.1

[x] Add Episode Offset to Anime Exceptions Feature
[x] Ability to download a set of Anime Exceptions List (in JSON format) for split season support weekly by either reading from saved JSON file or using Core Data.
[X] Search cache uses Core Data
[x] Convert Anime Exceptions Feature to use Core Data instead
[x] Omniweb Stream Detection support
[x] Improved Season Detection

2.2.1 will be released next week


mgmt, informatica first beta

Description
release request: https://github.com/Azure/sdk-release-request/issues/5064
namespace review: https://github.com/Azure/azure-sdk-pr/issues/1707
Entry class name: InformaticaDataManagementManager
codegen pipeline stuck at tsp-client init:
https://github.com/Azure/azure-sdk-tools/issues/8368
Generate manually. No major diff between Swagger/TypeSpec.
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

/azp run prepare-pipelines

API change check
APIView has identified API level changes in this PR and created following API reviews.
com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement


No such module SegmentSlide

There is no Module for SefmentSlide..

Thanks for feedback!
Could you tell me how it happened?

fwiw it's SegementSlide - @jiar maybe you can change it to SegmentSlide in a breaking release in the future? it really should be segment :)

emm... But, it should always be SegmentSlide.

It's segment, not seg_e_ment.

...got it.


⚠ Bofrost.es has degraded performance

In 3bb1044, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1471 ms

Resolved: Bofrost.es performance has improved in 235643c after 45 minutes.


Keyboard accessibility nitpicks.

It seems that some components in the default layout are missing keyboard controls. Notably, the sidebar when in expanded mode on small screens cannot be closed using the Esc key, and the custom theme switcher popout cannot be navigated using Home and End keys (to navigate to the first/last item).

Fixed the Home and End shortcuts. I can't repro Esc not working on smaller devices?


Replace "None" group-name with "Empty"

This just renames the "None" group-name to be "Empty".
Currently when used in conjunction with vim-gitgutter, it will remove the syntax highlighting of changed text. Based on discussion in this issue https://github.com/airblade/vim-gitgutter/issues/821, it seems that NONE is a reserved name-group that shouldn't be used.
Whether Empty is a reasonable name replacement is up to you (and trivial to change).

Thanks!


Bugfixing/set real js null to url validator

Closes #19
Add a JS function to validate the URL before pass it to the swagger UI, in order to detect if a JS null value is required instead of passing a string with null

Thanks for handling this!


请问换成其他LLM加载模型权重的时候，hf版本能和sat适配吗，还是说要先把hf的权重转成sat的

sat里支持大多数常见的LLM：https://github.com/THUDM/SwissArmyTransformer/tree/main/examples

sat里支持很多常见的LLM：https://github.com/THUDM/SwissArmyTransformer/tree/main/examples

[transform_param.py]是可以把hf权重转换成sat吗

是的

Dear author
I'm an undergraduate student majoring in Computer Science from the Northwestern Polytechnical University. I recently worked on MLLM research and read your paper "COGVLM: VISUAL EXPERT FOR LARGE LANGUAGEMODELS", I am very interested in and admire your work. Your paper has provided me with a lot of inspiration and enlightenment ，so could you please share your pretraining code with me, for research purposes only? I promise that if I end up using your code, I will cite your work correctly in my paper. Thank you very much.
Sincerely,
Dianyi
---原始邮件---
发件人: "Qingsong @.>
发送时间: 2024年2月4日(周日) 中午12:46
收件人: @.>;
抄送: "Alex<EMAIL_ADDRESS>主题: Re: [THUDM/CogVLM] 请问换成其他LLM加载模型权重的时候，hf版本能和sat适配吗，还是说要先把hf的权重转成sat的 (Issue #366)
是的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Dear authors, I am conducting a research around multimodal large language models, could you share how image and text inputs are encoded or preprocess for the Supervised finetuning as you did with LLAVA instruct? I promise to cite your work correctly in my paper as well


Add setting to be able to create a Day Planner for tomorrow in File mode

Add setting to be able to create a Day Planner for tomorrow in File mode.
Important: I haven't included tests and currently I don't have intentions on adding them, I just modified the code to make it work based on my personal needs and using manual installation until this feature is available on the plugin.

0.7.0 has ways to create tasks in arbitrary daily notes from both daily timeline & weekly views. Closing this as obsolete.


ci: Unify docs build around Makefile

Remove reundant docs build from CI workflow.
Use 'html' Make target for docs workflow to unify the Makefile experience with the GitHub pages deployment.

Amends PR https://github.com/ssl-hep/ServiceX_frontend/pull/442

@ketan96-m this is ready for review. Let me know if you have any questions.


About the mark "x" when a parameter or function is undefined in the code

<!---   *** BEFORE SUBMITTING: PASTE CLIPBOARD HERE TO COMPLETE YOUR REPORT ***   ---!>

Dear Spyder programmer,
sometimes a user uses variables from other files (which are defined in console, i.e. files have been run before), i.e. these variables are defined with respect to console, but Spyder still shows the mark "x",

it would be better if you allow users to remove this mark (if they want, i.e. based on choice)

sometimes a user uses variables from other files (which are defined in console, i.e. files have been run before)

This is a bad practice and is not reproducible work. The editor is correctly indicating that the variable does not exist as it has not been defined, so this is not something we will add a configuration for.

I agree, that's a really, really bad practice: you shouldn't depend on the variables defined in the console to write code in the editor. Besides, the default behavior in Spyder 4 gives an error when that happens.

yes, I agree "it is a bad practice",
however, when some files are supposed to run (let us say:  x) to compute long calculation, it should be run only once (because they take long time),
then their results are used in other codes from other files, this is the reason for which I write

Sorry but we're not going to promote bad practices through Spyder.

Anyway, it is not a big deal, I can copy-paste the code into the console and it will work


Project publish process unclear and pending for a very long time

Hi,
On January 1st 2024, I have created a project publication request for an OAuth2 client id / secret pair.
I have sent a few mails in January towards<EMAIL_ADDRESS>but no response at all.
Is this suppose to take this long? I had read somewhere that it averagely takes 3 weeks.
Could you please tell me if you need anything from my side?
As an additional question, I am wondering if we could also leverage the client_credentials OAuth2 flow (API to API), or are we expected to use the full three legged flow at all times?
kr
Carlo

Hi @CarloDeSutter,
Please note that issues reported here should only relate to the code in this repository. Therefore, I will have to close this issue.
For further questions regarding the API and the process of publishing an application, please contact Volvo Cars' Developer Portal support at<EMAIL_ADDRESS>


docs: modified the local engine name for folders, topics to local storage

Hello @avishnu, please review the changes made to the following sections and share your feedback/approve the PR if it's good to go. Thanks!
@balaharish7 @Abhinandan-Purkait
Note: Bala is working on the replicated engine section.


Query Engine library fails different during schema parsing than binary used to, leading to problems with error handling

Elaboration: https://github.com/prisma/prisma/pull/10205/files
Related: https://github.com/prisma/prisma/issues/10206

Going to be replaced by wasm module soon


Add addHint in java, port solution hinting sample

I have no idea of how c++ and c# works :/

Thanks.


Service discovery fails for a record pointing to a daemonset in GKE cluster

Rancher version: v2.0.13
Cluster : GKE
K8s version: v1.12.7-gke.7
Steps:

Create a GKE cluster with K8s version v1.12.7-gke.7
Create a daemonset
Create a service discovery record pointing to a daemonset OR a service discovery record pointing to a daemonset and workload

Service discovery fails when pointing to a daemonset or to a daemonset and workload.
Service discovery succeeds when pointing only to a workload
Note: This issue persists after upgrade to v2.0.14-rc3 with newly created service discovery records and preexisting records too
Note: This issue does not occur with k8s v1.11.9-gke on a GKE cluster.

The same issue exists for RKE imported cluster in v2.0.13 and v2.0.14-rc3

The issue does not exist in v2.1.8 and after upgrading to v.2.19-rc3
GKE version: v1.12.7-gke.7

This issue will exist for any cluster having k8s version 1.12 and up, in 2.0.x branch. It got fixed in 2.1.x+ release by bumping up k8s vendor version for Rancher server.

This issue exists on

AKS (k8s v1.13.5) on Rancher v2.0.14
Imported RKE cluster (k8s v1.13.5) on Rancher v2.0.14


[wordpress] Drop support column and clarify support policy

Because of the lack of guarantee on security updates, only the latest version should be marked as supported.

This would set the eol to be before the latestReleaseDate for several releases. Maybe we should use that?

This would set the eol to be before the latestReleaseDate for several releases. Maybe we should use that?

With this change eol would be systematically before latestReleaseDate. Despite what they say I think they try very hard to fix security issues even for EOL versions (hence their post : https://wordpress.org/news/2022/09/dropping-security-updates-for-wordpress-versions-3-7-through-4-0/).
But even with that in mind I think we should stick with their official policy and mark all those versions EOL and drop the support column without updating the EOL date each time there is a security update.
A related issue would be #2861. If this PR is merged the latestReleaseDate will be displayed even for EOL releases, so user would still see there are security versions for EOL releases.

I'm still unsure about marking recent releases with security backports as unsupported. Let me ask on the wordpress slack and see what the devs think.

@captn3m0 did you have news from the Wordpress developers ?

Relevant screenshots:

This is what I'd decided upon after reading the above:

Hmm, I'm going to mark these in red in that case and note in the text that security backports are a courtesy, and not officially supported.

Wordpress is "vaguely" supported with these security patches, and "strongly discourage" = marking in red.

Ok, so to sum up we should :

clarify the documented support policy to explain the current Wordpress position,
drop the support column,
apply eo(x) = releaseDate(x+1)for all versions.

Is it what you have in mind @captn3m0 ?

Yes, that sounds good.

Done.


Fixing conda create

Working around this issue: https://github.com/conda/conda/issues/3859

Thank you!


Can't get styling to work with tailwind

I've been trying to do basic things with tailwind like change colours of things by adding a class ex: bg-teal-600 but it doesn't work. I even tried changing config for tailwind. Is there any way to get tailwind to work with its original styling and not this reduced version. It seems almost any class I use doesn't work.

Just tried to reproduce the issue with @latest
Went to template/nav, bg-slate-800 as a tryout and it works well.
Did you init your tailwinds? Maybe a wrong installation on your side
No Issue with tailwinds and latest version of MedusaJS and it can be closed


[aes] Add support for CFB-128 and OFB modes

This PR adds support for two new block cipher modes to our AES module: CFB-128 (required for TPM 2.0, comes for free), OFB (requires one additional mux input). This PR also upgrades the DV accordingly.
This is related to lowRISC/OpenTitan#2727.

Thanks @sjgitty for reviewing and approving the PR.
I am merging this now to push the AES masking PRs forward. If anyone has more feedback related to this one here, I am happy to implement changes in a follow-up PR.

Thanks @cdgori for your feedback.


cannot install current version using pip

ayr@DESKTOP-DPGQQFH:/mnt/p/downloads$ pip install pygtrie
Collecting pygtrie
Using cached https://files.pythonhosted.org/packages/3c/93/557455c974a21dd7ec0da309b9223952457c1999072bfe1f8f47f6091eab/pygtrie-2.4.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/pygtrie.egg-info
writing pip-egg-info/pygtrie.egg-info/PKG-INFO
writing top-level names to pip-egg-info/pygtrie.egg-info/top_level.txt
writing dependency_links to pip-egg-info/pygtrie.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/pygtrie.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-EXlvog/pygtrie/setup.py", line 177, in
distutils.core.setup(**kwargs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/ayr/.local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 296, in run
self.find_sources()
File "/home/ayr/.local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 303, in find_sources
mm.run()
File "/home/ayr/.local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 534, in run
self.add_defaults()
File "/home/ayr/.local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 570, in add_defaults
sdist.add_defaults(self)
File "/home/ayr/.local/lib/python2.7/site-packages/setuptools/command/py36compat.py", line 34, in add_defaults
self._add_defaults_python()
File "/home/ayr/.local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 135, in _add_defaults_python
build_py = self.get_finalized_command('build_py')
File "/usr/lib/python2.7/distutils/cmd.py", line 311, in get_finalized_command
cmd_obj = self.distribution.get_command_obj(command, create)
File "/usr/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
cmd_obj = self.command_obj[command] = klass(self)
TypeError: object() takes no parameters
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-EXlvog/pygtrie/
ayr@DESKTOP-DPGQQFH:/mnt/p/downloads$

This should now be fixed but you should consider migrating to Python 3.x. 2.x is EOL and I will eventually stop caring about it.

This should now be fixed but you should consider migrating to Python 3.x. 2.x is EOL and I will eventually stop caring about it.

Yes, fortunately it was easy to  convert my hobby code to python3.

Yes, fortunately it was easy to  convert my hobby code to python3.


MemoryPool2 Allocate returns newest

Rather than a while loop on Allocate; return last memory block created
rather than returning it to the pool and checking if one can be removed.

:shipit: @lodejard what do you think?

Makes sense


ruff_lsp and bufls are deprecated

Hello again! It seems both ruff_lsp and buffls were deprecated. They cause an error in helper.lua:73 attempt to index field 'document_config' (a nil value). Adding them both to excluded server list is an acceptable workaround for me in the meantime.
Once again, love your plugin and you're awesome!!

Thanks for the report, we got it fixed by another contributor :tada:


add g8scontrolplane validation

I added the webhook config and tested this on giraffe. It's working.
Error from server: error when creating "testg8scp.yaml": admission webhook "g8scontrolplanes.aws-admission-controller-unique.giantswarm.io" denied the request: not allowed error: G8sControlPlane gcat9 with 1 replicas does not match AWSControlPlane gcat9 with 3 availability zones [cn-north-1a cn-north-1a cn-north-1b]


[Event Request] Table 18 Customer - OnBeforeOnDelete

Hi, would it be possible to get an OnBeforeOnDelete event in table 18 (Customer), like this:
trigger OnDelete()
    var
        CampaignTargetGr: Record "Campaign Target Group";
        ContactBusRel: Record "Contact Business Relation";
        Job: Record Job;
        SocialListeningSearchTopic: Record "Social Listening Search Topic";
        StdCustSalesCode: Record "Standard Customer Sales Code";
        CustomReportSelection: Record "Custom Report Selection";
        MyCustomer: Record "My Customer";
        ServHeader: Record "Service Header";
        CampaignTargetGrMgmt: Codeunit "Campaign Target Group Mgt";
        VATRegistrationLogMgt: Codeunit "VAT Registration Log Mgt.";
        ConfirmManagement: Codeunit "Confirm Management";
        IsHandled: Boolean;
    begin
        // New Event begin
        IsHandled := false;
        OnBeforeOnDelete(Rec, IsHandled);
        if IsHandled then
            exit;
        // New Event end

        ApprovalsMgmt.OnCancelCustomerApprovalRequest(Rec);

        ServiceItem.SetRange("Customer No.", "No.");
        if ServiceItem.FindFirst then
            if ConfirmManagement.GetResponseOrDefault(
                 StrSubstNo(Text008, TableCaption, "No.", ServiceItem.FieldCaption("Customer No.")), true)
            then
                ServiceItem.ModifyAll("Customer No.", '')
            else
                Error(Text009);

        Job.SetRange("Bill-to Customer No.", "No.");
        if not Job.IsEmpty() then
            Error(Text015, TableCaption, "No.", Job.TableCaption);

        MoveEntries.MoveCustEntries(Rec);
        ...
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeOnDelete(var Customer: Record Customer; var IsHandled: Boolean)
    begin
    end;

Thanks!

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Revert "Update docker.yml"

Reverts rancher-sandbox/upgradechannel-discovery#10
I can see on the docker stuff that it pushed them correctly, so no need for that, its nice to have the TAG+latest+TAG-GIT all in once. Not sure why it was not working before

Codecov Report

Merging #11 (77b8216) into main (73bc1aa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #11   +/-   ##
=======================================
  Coverage   73.55%   73.55%
=======================================
  Files           3        3
  Lines         208      208
=======================================
  Hits          153      153
  Misses         44       44
  Partials       11       11

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 73bc1aa...77b8216. Read the comment docs.


Don't overshoot ballisitic scroll activities

When we start a ballisitic scroll activity to correct an out-of-range scroll
offset, make sure we start with a velocity that is headed in the right
direction.


Database: prevent double registrations

In the GroupRound table, a UNIQUE index on group_id plus round_id will prevent a double registration of a round for a certain group.
In the PlayerRound table, a UNIQUE index on groupround_id plus player_id will prevent a double registration of a round for a certain player.
These unique indexes help to maintain the integrity of the database.

For playerround, add the following index:
UNIQUE KEY `id_player_groupround` (`player_id`,`groupround_id`),

The same can be done to avoid entering two question scores for the same question in the same round for the same player.
ALTER TABLE `housinggame`.`questionscore`
ADD UNIQUE INDEX `id_playerround_question` (`playerround_id` ASC, `question_id` ASC) VISIBLE;

Database and design have been updated.


fix(runtime-core): resolve dynamic component should respect the app.config.isCustomElement

Fix: #3627

https://github.com/vuejs/vue-next/issues/3627#issuecomment-847383599


chore: tests: use schema builder for columns setup

This PR will change the columns setup in tests to use the schema builder instead of the raw db-agnostic SQL.
The need for this change came from an attempt to add a "datetime" column, where PostgreSQL will throw an error type "datetime" does not exist. Action run example: https://github.com/mohannadnaj-forks/laravel-query-expressions/actions/runs/6211881746/job/16861481277#step:8:274
Pros of this change: Expressive and a guaranteed db-agnostic setup. Cons of this change: More boilerplate for tests.

Edit: The special snowflake SQLite again doesn't have this type. Maybe I should add the testing then to use the blueprint for all tests. I'll have to think about it.
https://github.com/tpetry/laravel-query-expressions/pull/18#issuecomment-1778981253

Looks like it's PostgreSQL not SQLite?
This change is not really necessary since we can just use an additional parameter for unsupported types, like what's currently applied in the pending date format PR #18
P.S: I wasn't familiar with the expression "special snowflake", and I laughed a lot when I read "The conviction that one (or often, one's child) is, in some way, special and should therefore be treated differently than others" lol 😹

I like that change. More boilerplate for the trst helper but the tests feel more laravel-like.
I may make some personal style changes the next days and then merge it

Can you grant me the right to push changes to your branch?


[FIX] Add camera plug in snapcraft.yaml

The snap package does not have access to the camera.
Camera is added in the plugs list. The app still needs to be manually connected
after install tough, because the camera interface is not an
auto-connect one.
(see https://docs.snapcraft.io/reference/interfaces).

@RocketChat/desktopapp

Closes #601

Thanks for this fix :)

@gdelavald No problem! Do you think something should be added to the documentation to tell user to manually connect the camera interface? I would be happy to submit a PR if you need.


Added WP on 16.04

On two out of three tries testing this, I've ended up with "Error establishing a database connection"  and the DB password was not successfully placed in the wp-config file. Looking in the cloud-init logs, I see:
sed: -e expression #1, char 70: unknown option to `s'

:+1: Once the links are update :shipit:


Problems on export a book as pdf

Describe the bug
When exporting a book as pdf there are a lot of problems with tables they look very bad --> But if you export the page all is fine
Steps To Reproduce
Steps to reproduce the behavior:

Go to book
Export as pdf

Screenshots
Export the whole book

Same page just export under page

Same issue here.
Also, the icon of a callout is missing

Thanks @pboatone for reporting with clear examples. I've added a patch (95798a2ebacc617c5883aa0473e474fdfe4f2f8c) which should standardise the export styles used across books, chapters and pages and therefore solve this. Seems to look okay from my development instance testing. This will be part of the next patch release.
Will therefore close this off but if you still have issues after upgrading to v21.04.4 (Once released) feel free to open a new issue, referencing this one, or add a comment again here.


Compilation error when mocking classes with generic type parameter used in the class constructor

ScalaMock Version (e.g. 3.5.0)
4.1.0
Scala Version (e.g. 2.12)
2.12.4
Runtime (JVM or JS)
JVM
Please describe the expected behavior of the issue
it compiles and the class is mocked
Please provide a description of what actually happens
compilation fails because the type of the constructor parameter can't be inferred
 found   : A
 required: String
    val bar = mock[Something[String]]

Reproducible Test Case
package foo

import org.scalamock.scalatest.MockFactory
import org.scalatest.FlatSpec

class Something[A](f: A) {
}

class FooSpec extends FlatSpec with MockFactory {
  "foo" should "bar" in {
    val bar = mock[Something[String]]
  }
}

Workaround
package foo

import org.scalamock.scalatest.MockFactory
import org.scalatest.FlatSpec

class Something[A](f: A) {
}

class FooSpec extends FlatSpec with MockFactory {
  "foo" should "bar" in {
    class SomethingElse(f: String) extends Something[String](f)
    val bar = mock[SomethingElse]
  }
}

Thanks, already have this as #170 and struggle to fix it


Multiple VM test very flaky

https://github.com/istio/istio/pull/25341
https://prow.istio.io/view/gcs/istio-prow/logs/integ-pilot-k8s-tests_istio_postsubmit/2938
https://prow.istio.io/view/gcs/istio-prow/logs/integ-pilot-k8s-tests_istio_postsubmit/2936

I will take a look!

https://prow.istio.io/view/gcs/istio-prow/logs/integ-pilot-k8s-tests_istio_postsubmit/2948 This also fails sometimes? I think it might be the related dns issue? #25242 Like this PR, if DNS capture is enabled for all, multiple tests would fail. Since DNS capture is enabled for all VMs, they might fail as well. Reverting #25341 seems reasonable here, though.

TestVmOSPost/dns:_vmA_to_vmB_using_image_app_sidecar_debian_9: vm_test.go:183: retry.UntilSuccessOrFail: timeout while waiting (last error: failed calling vm-a->'http://vm-3:8090/': rpc error: code = Unknown desc = Get "http://vm-3.virtual-machine-2-55143.svc.cluster.local:8090": dial tcp: lookup vm-3.virtual-machine-2-55143.svc.cluster.local on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:41658-><IP_ADDRESS>:53: read: connection refused)

hmm.. this seems like the DNS listener was not ready?

This one was failing a lot too https://prow.istio.io/view/gs/istio-prow/pr-logs/pull/istio_istio/26028/integ-pilot-k8s-tests_istio/17422

Seems to no longer be flaky


Element flash on push

Hi,
I'm trying to use this package but, even before I tried implementing shared element, I encounter a problem regarding flickering.
Whenever I navigate to a new page, I see the text element flash in black before it appears with it's real color (white in this case).
Here is how I use the navigator
const AppNavigator = createFluidNavigator(
{
    Home: HomeScreen,
    BulbsList,
    BulbDetails
  },
  {
    initialRouteName: "Home",
    headerMode: "none",
    cardStyle: { backgroundColor: "##000000" }
  }
);

Any help would be greatly appreciated, thanks !
EDIT : I tried with just react-naviagtion and this bug doesn't appear

@Weegle99 is this possibly the same as #160 ?

@MarianBe Thanks for the response, no the flicker is realyy about what is gonna be displayed. Say that you have Page1 with Component1 and Page2 with Component2, when transitioning from Page1 to Page2, the text from Component2 will briefly flash in black at the begining of the transition

Have you tried the 'inline' prop yet?

I don't quite understand the inline property, could you explain ?

Try reproducing this with a simple snack on Expo and we'll have a look. Inline is used to avoid creating cloned elements during transitions.

Hi,
I am facing the same issue when navigating  from screen A to ScreenB , screenA components flash .
It works fine on iOS , only shows up the flashing of components on android.
Any update on a solution for this issue ?
Where and how can be the INLINE prop used?

I am facing the same issue, also push and pop is too slow compared to StackNavigator. I am getting this issue only in Android, in iOS its working good.
I have seen all the issues here but nobody is able to reproduce it on a snack on Expo.
Can you guys please have a look into it. Any help into this will be appreciated.

same issue ...


Confusing paragraph in SLC section 15.9

I have issues trying to understand what is written here:

(There is a typo: $T(M,e)$ should be $T(M,w)$.)
I understand it is trying to present a counterexample to the claim: "if $T(M,w)\land E(M,w)$ has a finite model, then the machine $M$ halts on input $w$." I expect the construction of a structure $M'$ with a finite domain that satisfies $M'\models T(M,w)\land E(M,w)$ but the machine $M$ does not halt. The finite model $M'$ introduced in the previous paragraph does not appear to satisfy $T(M,w)\land E(M,w)$, and, since the machine $M$ does not halt, there is no finite model for $E(M,w)$ (?). This makes the antecedent "$T(M,w)\land E(M,w)$ has a finite model" false. The consequent "the machine $M$ halts on input $w$" is also false. So, the example presented in the paragraph does not disprove the claim...
Also, it is not clear what $\overline{n+l} refers to.

Good catch! $\mathbf{M}'$ is indeed not a counterexample. But this is (I hope!): Suppose $k$ is least such that the machine after $k$ steps goes into the described infinite loop where it stays in the same state and doesn't move the head. Let $n$ be the larger of $k$ and the length of $w$. The configurations after $n$, $n+1$, $n+2$, etc. (i.e., $n+l$ for any $l \in \mathbb{N}$) steps are all identical.
Take $|\mathbf{M}''| = \lbrace 0, \dots, n, \infty\rbrace$, the interpretations of $\prime$ and $<$ are as in $\mathbf{M}'$ for anything up to $n$ and $\infty' = \infty$ and $\infty < \infty$. Note that $\infty$ is not the value of any $\overline{n+l}$ for $l \in \mathbb{N}$, so it's a "non-standard" value. Suppose $\delta(q,\sigma)$ is undefined. Let the interpretations of $Q_q$ and $S_\sigma$ be as before for arguments $\le n$ but let's add $\langle \infty,\infty\rangle$ to $Q_q^{\mathbf{M}''}$ and $S_\sigma^{\mathbf{M}''}$. Now both $T(M,w)$ and $E(M,w)$ are true in $\mathbf{M}''$, $\mathbf{M}''$ is finite, but the machine doesn't halt.
Does that (a) make sense (how much explanation would you want?) and (b) does it work (as far as you can tell)?

I see, thanks Dr. Zach. This example might work. So, even though $\mathbf{M}''\models E(M,w)$, the reason that the machine $M$ does not halt is because $M$ cannot be in state $q$ and land on the square printed with $\sigma$ in finite number of steps, right?
(Also, since $\delta(q,\sigma)$ is already defined to return $\langle q,\sigma,N\rangle$, maybe introduce $q'$ and $\sigma'$ instead to prevent confusion.)

Thanks again! (\Lambda is the empty sequence)

(You forgot to fix the typo in problem 15.10.)


proposal: spec: Named constructors

Go Programming Experience
Intermediate
Other Languages Experience
No response
Related Idea

[ ] Has this idea, or one like it, been proposed before?
[ ] Does this affect error handling?
[X] Is this about generics?
[X] Is this change backward compatible? Breaking the Go 1 compatibility guarantee is a large cost and requires a large benefit

Has this idea, or one like it, been proposed before?
No
Does this affect error handling?
No
Is this about generics?
Yes. The proposal describes constructors and how generics would be implemented on them (although generics aren't the main focus of the proposal).
Proposal
Add formalized named constructors to the language
The idiomatic Go way to write a constructor is the pattern
func NewFile(fd int, name string) *File {
    if fd < 0 {
        return nil
    }
    f := File{fd, name, nil, 0}
    return &f
}

For packages with only one constructor for one type, this often becomes New. However, for a package with multiple such types and/or multiple constructors for each type, you have something like
func NewFooFromBaz(...) Foo {...}
func NewFooFromQux(...) Foo {...}
func NewFooFromQuux(...) Foo {...}

func NewBarFromBaz(...) Bar {...}
func NewBarFromQux(...) Bar {...}
func NewBarFromQuux(...) Bar {...}

etc. sometimes without the New prefix, if the function names get too long.
Some would say there's no need for the language to have formal constructors, since you can technically organize this by rewriting the functions as methods with trivial receivers. See this example for the first constructor.
func (Foo) NewFromBaz(...) Foo {...}

(again, with or without the New prefix).
But this produces somewhat awkward code like foo := pkg.Foo{}.NewFromBaz(...) or (if Foo is not a composite literal) foo := new(pkg.Foo).NewFromBaz(...). Also (from a code reader's perspective) it is not immediately obvious whether the contents of the method receiver affect the result of the call. Finally, because this uses methods, it doesn't work for constructors with generic type parameters.
The Init pattern
foo := new(Foo)
foo.InitFromBaz(...)

is also somewhat common, which shows up more often as foo.Init(...) for types that have only one sensible constructor.
But this, too, fails to represent constructors with type parameters. Furthermore, to prevent Init from "initializing" the same instance of Foo again, you need to add OnceFunc (or similar) complexity to your program.
There is, of course, the Options pattern of using methods to configure the individual components of a struct, but the kinds of types that benefit from this pattern are not the subject of this proposal.
This proposal does not affect

the zero values of types
the notion that the zero values of types ought to be usable
the pkg.New idiom (although it could be good practice to define a pkg.TypeName.New constructor and have pkg.New call that)

This proposal only seeks to improve the readability and organization of (the exports of) packages with at least 2 constructors (or code that imports those packages) where pkg.New starts to fall flat. It would also improve readability of the internals of packages that use many unexported constructor-esque functions. This proposal also has the subtle benefit of making type aliasing easier, as programmers would only have to alias a type in a new/wrapper package (rather than alias the type and each of its constructor functions) to extract that type's functionality. As a nice bit of QoL, programmers who know what type they want to "construct" could write pkg.TypeName:: (or just TypeName:: if working in the package itself) and get a dropdown of constructor choices.
A constructor would look like a normal method but with [...] instead of (...) around the (unnamed) receiver. As an example,
func [Type] Constructor(param1 type1, param2 type2) Type { ... }

would be a constructor for Type with two parameters.
You would use Constructor from outside of pkg with pkg.Type::Constructor(arg1, arg2) and inside pkg with Type::Constructor(arg1, arg2). Notice that the use of :: rather than . differentiates this from a standard method call, and the use of an unnamed value receiver in the method conveys the notion of a "type receiver" rather than the value/pointer receiver of an everyday method. While this might look a little long, it's important to remember that this would be used in place of a function with a name like TypeConstructor. So at the cost of including just two more characters (::), you achieve better organization, readability, self-documentation, type-aliasing, and autocompletes (not to mention a cleaner function namespace for pkg).
Since Constructor is a "method" that is strictly defined on a type (rather than a receiver), it would not make sense for Type to implement an interface via Constructor. Hence we can freely define type parameters on Constructor, in addition to those (if any) that the type is parameterized with. For example, if Type is defined with the parameter T, then we would have
func [Type[T]] Constructor1(param1 type1, param2 type2) Type[T] { ... }

which we would call as Type[int]::Constructor1(arg1, arg2) (assuming int satisfies T).
And if we also wanted to use parameters A and B (with constraints c1 and c2 respectively), then we would have
func [Type[T]] Constructor2[A c1, B c2](param1 A, param2 B) Type[T] { ... }

which we would call as Type[int]::Constructor2(arg1, arg2)
Similarly, if we wanted to do the same but for *Type[T], we would have
func [Type[T]] Constructor3[A c1, B c2](param1 A, param2 B) *Type[T] { ... }

which we would call as Type[int]::Constructor3(arg1, arg2).
Notice that (in the last example) the return type was a pointer but the "receiver" remained a value. This is because we are constructing Type[T], regardless of whether we return the value Type[T] or the pointer *Type[T], and having *Type[T] as the "receiver" would require something like (*Type[int])::Constructor3(arg1, arg2) to remove ambiguity around the use of *.
This proposal is meant to enhance organization; it is not meant to introduce code-hiding techniques and not as an opening for inheritance-style programming. Hence, constructors should maybe not work with struct-embedding (but I'm open to other viewpoints). That way, programmers would have to be explicit in their calls (if any) to embedded structs when constructing embedder structs. In fact, since old calls would be using constructor functions (which don't embed) instead of the formalized static method constructors (which also would not embed), old and new calls would be equally explicit. This would also make rewriting those old calls much easier (mostly a matter of adding in a ::, little thought needed). Then, if community consensus were to favor embedding, such a change could be made while maintaining backwards compatibility since calling the constructor of an embedder struct would be seen as an override (of a constructor with the same name defined on the embedded struct, if such a constructor exists, just as with methods).
The use of [] to box in a receiver type that uses [] for its type parameters might be a little hard on the eyes, so the notation for a static method is up in the air (likewise, the use of :: as the static method operator). For the former, I think introducing new keywords (instead of altering the standard function/method formula) should be a last resort.
The only question is that of enforcing what a constructor is allowed to return. Some return multiple things, while others return just a value of the corresponding type. Sometimes you want to return that value and an error. I think it would be reasonable to require either a value or a pointer (in the analog to methods allowing only a value or pointer receiver, and not allowing something like **Type) and pay no mind to the remaining values.
Constructor "receivers" would follow the same rules as method receivers; they can be either a value (indicating that a value is returned) or a pointer (indicating that a pointer is returned) and anything else is incorrect (e.g. **Type[T]).
Language Spec Changes
The :: operator (or a viable alternative) and constructor notation (or, again, a viable alternative) would need to be added to the language.
Informal Change
Constructors that are "tied" to the types they construct and are simple, named, generic, and optional.
Is this change backward compatible?
Yes
Orthogonality: How does this change interact or overlap with existing features?
The change does not improve the performance of the language, but it does improve the performance of programmers (by increasing ease of use). While the builder pattern for type constructors is idiomatic, it only works for libraries with 1 exported constructor (maybe 2?) and then quickly falls apart with more and more types. And on the internal side of things, a library often has many unexported types that would be easier to maintain if the unexported constructor functions (all fundamentally tied to the types they construct) were tied to the types by some mechanism of the language. More positives are outlined in the proposal.
This change does not affect the stdlib much, which makes frequent use of types' zero values and the Options "constructor" pattern, since this change neither requires constructors for types nor enforces the notion of a default constructor; it simply gives you the option to make them.
Would this change make Go easier or harder to learn, and why?
The no-embed property of constructors (which could easily be changed) is not intuitive since normal methods still embed, which would make Go a bit harder to learn. But having constructors that are tied to the type will be familiar to programmers migrating from all sorts of different languages, and enable them to learn how to use third party libraries with less effort and less memorization. It will enable them to develop their own libraries with much less effort.
Cost Description
Marginally slower parsing and compilation.
Changes to Go ToolChain
vet, gopls, gofmt
Performance Costs
The compiler would have to parse/compile new code. There would not be a run time cost because constructors would essentially just be functions.
Prototype
Implementation outlined in the proposal

Related Issues

proposal: Go 2: add mandatory constructors for named type #28939 (closed)
proposal: Go 2: initialise funcs with custom type names #36855 (closed)
proposal: builtin/new: giving new the ability to call init when creating custom types #62240 (closed)
proposal: Go 2: refining Go struct type #21604 (closed)
x/mobile: Java constructor proposal #17086 (closed)
proposal: Go 2: formalized interface initializer / constructor functions #38405 (closed)

Related Discussions

generalizing  the type system? Avoiding reference types.

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

While NewX is a convention, it is not the only, see for example https://github.com/golang/go/issues/28006 .
go/doc already groups constructors under the same type, and you could use a different convention if you wanted, for example, https://github.com/golang/go/discussions/48287 suggested using a For suffix like XFor[T] which would naturally group the functions together by name.
Given the direction that #48287 went in, I don't think a language change for syntax sugar is on the table.


Support full range of files offered by Real Favicon Generator

Currently only the .ico file is downloaded. It would be nice if all the files provided by realfavicongenerator.net could be downloaded.

Implemented in 160a348d387898fd75199cfb3778f09ff411737d.


AuthDelegate Error for installing AVS SDK for arm target

Hi
I am getting the following errors while running Sample App on My ARM target.
2017-10-31 12:01:31.470 [  2] I AlertsCapabilityAgent:executeScheduleNextAlertForRendering::no work to do.
2017-10-31 12:01:31.470 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechSynthesizer,name=Speak,handler=0xc9c70,policy=BLOCKING
2017-10-31 12:01:31.470 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=ClearQueue,handler=0xca1d8,policy=NON_BLOCKING
2017-10-31 12:01:31.470 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Stop,handler=0xca1d8,policy=NON_BLOCKING
2017-10-31 12:01:31.470 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Play,handler=0xca1d8,policy=NON_BLOCKING
2017-10-31 12:01:31.471 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0xc8340,policy=NON_BLOCKING
2017-10-31 12:01:31.471 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=StopCapture,handler=0xc8340,policy=NON_BLOCKING
2017-10-31 12:01:31.471 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlert,handler=0xcadd0,policy=NON_BLOCKING
2017-10-31 12:01:31.471 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetAlert,handler=0xcadd0,policy=NON_BLOCKING
2017-10-31 12:01:31.471 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=SetEndpoint,handler=0xdd708,policy=NON_BLOCKING
2017-10-31 12:01:31.471 [  1] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=ResetUserInactivity,handler=0xc8124,policy=NON_BLOCKING
2017-10-31 12:01:33.218 [  3] E HttpPost:doPostFailed:reason=curl_easy_performFailed,result=60,error=Error
2017-10-31 12:01:33.218 [  3] E AuthDelegate:handleLwaResponseFailed:reason=parseJsonFailed,position=0,error=The document is empty.
2017-10-31 12:01:34.623 [  3] E HttpPost:doPostFailed:reason=curl_easy_performFailed,result=60,error=Error
2017-10-31 12:01:34.623 [  3] E AuthDelegate:handleLwaResponseFailed:reason=parseJsonFailed,position=0,error=The document is empty.
2017-10-31 12:01:36.423 [  3] E HttpPost:doPostFailed:reason=curl_easy_performFailed,result=60,error=Error
2017-10-31 12:01:36.423 [  3] E AuthDelegate:handleLwaResponseFailed:reason=parseJsonFailed,position=0,error=The document is empty.
2017-10-31 12:01:39.418 [  3] E HttpPost:doPostFailed:reason=curl_easy_performFailed,result=60,error=Error
2017-10-31 12:01:39.418 [  3] E AuthDelegate:handleLwaResponseFailed:reason=parseJsonFailed,position=0,error=The document is empty.
2017-10-31 12:01:45.604 [  3] E HttpPost:doPostFailed:reason=curl_easy_performFailed,result=60,error=Error
2017-10-31 12:01:45.604 [  3] E AuthDelegate:handleLwaResponseFailed:reason=parseJsonFailed,position=0,error=The document is empty.
Failed to authorize SDK client!
2017-10-31 12:01:51.482 [  1] I DirectiveSequencer:doShutdown
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=System,name=SetEndpoint,handler=0xdd708,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=DeleteAlert,handler=0xcadd0,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=SetAlert,handler=0xcadd0,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0xc8340,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechRecognizer,name=StopCapture,handler=0xc8340,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=ClearQueue,handler=0xca1d8,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=Stop,handler=0xca1d8,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=Play,handler=0xca1d8,policy=NON_BLOCKING
2017-10-31 12:01:51.483 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=System,name=ResetUserInactivity,handler=0xc8124,policy=NON_BLOCKING
2017-10-31 12:01:51.484 [  1] I DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechSynthesizer,name=Speak,handler=0xc9c70,policy=BLOCKING
2017-10-31 12:01:51.484 [  1] I DirectiveRouter:onDeregisteredCalled:handler=0xdd708
2017-10-31 12:01:51.484 [  1] I DirectiveRouter:onDeregisteredCalled:handler=0xcadd0
2017-10-31 12:01:51.484 [  1] I DirectiveRouter:onDeregisteredCalled:handler=0xc8340
2017-10-31 12:01:51.484 [  1] I DirectiveRouter:onDeregisteredCalled:handler=0xca1d8
2017-10-31 12:01:51.484 [  1] I DirectiveRouter:onDeregisteredCalled:handler=0xc8124
2017-10-31 12:01:51.484 [  1] I DirectiveRouter:onDeregisteredCalled:handler=0xc9c70
(SampleApp:3433): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-10-31 12:01:51.489 [  4] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
(SampleApp:3433): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed
(SampleApp:3433): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed
(SampleApp:3433): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-10-31 12:01:51.491 [  4] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
(SampleApp:3433): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed
(SampleApp:3433): GLib-CRITICAL **: Source ID 583304 was not found when attempting to remove it
Failed to initialize SampleApplication
Failed to create to SampleApplication!
Note:
It looks like related to LWA

I don't have the browser on my target system , so I have followed the refresh token generation process on my ubuntu desktop and copied the same in target system
Also previously I was getting below errors:
E HttpPost:doPostFailed:reason=curl_easy_performFailed,result=60,error=Peer certificate cannot be authenticated with given CA certificates
E AuthDelegate:handleLwaResponseFailed:reason=parseJsonFailed,position=0,error=The document is empty.
As I have built curl without-ca-bundle ,without-ca-path and disabling the authetication support.
After this  Peer certificate cannot be authenticated with given CA certificates error went off.

But still getting the below errors:
HttpPost:doPostFailed:reason=curl_easy_performFailed,result=60,error=Error
2017-10-31 12:01:36.423 [  3] E AuthDelegate:handleLwaResponseFailed:reason=parseJsonFailed,position=0,error=The document is empty.
I am not able to make out whether these errors are related to LWA or SSL ca certification authentication.
I have built curl with nghttp2 and openssl-1.1.0f versions.
Please let me know the way to fix this.

Hi @dhananjayj29, could you provide me your AlexaClientSDKConfig.json file? You can block out any sensitive information with asterisks.
Also could you provide the logs from the start of the application?

AlexaClientSDKConfig.txt
Target_logs.txt
Thanks for the reply...
Attached the required files.

Hi again,
You might need to fill out the config.json file a bit more. Check step 3.2 here. Namely, the lack of a CertifiedSender field could cause issues.

Hi
I have added the CertifiedSender filed on json file , But still issue persists.
Tested with both manually  created the db file  on target and in another step let the SDK create this file.(SDK did not created this db file)
And in both the above test cycles seen the same error SSL certification issue.

Hi
I was able to fix above error by getting ca cert bundle and setting path .
However I am getting further issues on AVS Http2 connection side.
I have attached full log .
Also i fixed ALSA playback and capture related errors by providing the correct ALSA hw device to asoundrc file.
but errors mentioned in the attached log files seems to be either HTTP2 connection issues or gstreamer issues .
Any help to figure this out would be appreciated.
Target_log511.txt

I'm not sure which logs you are referring to. Can you send me the logs again and also tell me what steps you took to reproduce it? Are the errors happening just as you start the app up or are you giving a command to listen to music or something?

Hi Frozenberg,
I was able to fix below issues:

No server response for HTTP2 query

Some Firewall and network setting changed fixed this issue.

Playback erorr.

Gstreamer configuration redone for MP3 plugin and able to fix this issue

But after that below issues are seen

whatever Audio is being played is playing with very low volume and am not able to increase it to appropriate level. I have tried increasing the volume through alexa command but no luck.
Also other audio playback which happened on my system through a Third party player has appropriate volume levels . so my doubt is source streams had a very low amplitude and due to which playback streams are not played at proper volume ,
Need your help in fixing this.

Sometimes after asking question to Alexa , SDK is crashed with below logs.(This issue is seen sometoimes)
Alexa crash issue with slow network:

###########################
Thinking...
###########################
2017-11-08 10:08:49.042 [  d] I InProcessAttachmentReader:readFailed:reason=SDS is closed
< HTTP/2 200
< access-control-allow-origin: *
< x-amzn-requestid: 0292b7fffe85fd8a-00001242-00048d9d-ca6242c41ce4ad07-6e2febb6-5
2017-11-08 10:08:50.572 [  d] 0 HTTP2Stream:receivedRequestId:value=x-amzn-requestid: 0292b7fffe85fd8a-00001242-00048d9d-ca6242c41ce4ad07-6e2febb6-5
< content-type: multipart/related;boundary=98ae684d-e8c6-4e46-a59c-eb267093e6c4;start=metadata.1510549900386;type="application/json"
<
2017-11-08 10:08:50.997 [  6] I DirectiveSequencer:onDirective:directive={"namespace:"Speaker",name:"SetMute",messageId:"b32b4de4-84bb-4135-9f2d-fb506ce867a4",dialogRequestId:"85f63508-56f3-4a46-b5}
2017-11-08 10:08:50.998 [  6] I DirectiveSequencer:onDirective:directive={"namespace:"SpeechSynthesizer",name:"Speak",messageId:"1097ec71-03ff-43a1-81bf-e7bc3b1dd070",dialogRequestId:"85f63508-56f3}
2017-11-08 10:08:50.998 [  b] W DirectiveRouter:preHandleDirectiveFailed:messageId=b32b4de4-84bb-4135-9f2d-fb506ce867a4,reason=noHandlerRegistered
2017-11-08 10:08:50.998 [  b] I DirectiveSequencer:sendingExceptionEncountered:messageId=b32b4de4-84bb-4135-9f2d-fb506ce867a4
2017-11-08 10:08:50.999 [  b] 0 EventBuilder:buildJsonEventString:messageId=446dd4d3-4f86-4047-9bbc-5bf243d9bf3c,namespace=System,name=ExceptionEncountered
2017-11-08 10:08:50.999 [  b] I DirectiveRouter:preHandleDirective:messageId=1097ec71-03ff-43a1-81bf-e7bc3b1dd070,action=calling
2017-11-08 10:08:50.999 [  b] 0 CapabilityAgent:addingMessageIdToMap:messageId=1097ec71-03ff-43a1-81bf-e7bc3b1dd070
2017-11-08 10:08:50.999 [  b] 9 SpeechSynthesizer:preHandleDirective:messageId=1097ec71-03ff-43a1-81bf-e7bc3b1dd070
2017-11-08 10:08:51.000 [  c] I DirectiveRouter:handleDirective:messageId=1097ec71-03ff-43a1-81bf-e7bc3b1dd070,action=calling
2017-11-08 10:08:51.000 [  9] 0 SpeechSynthesizer:executePreHandle:messageId=1097ec71-03ff-43a1-81bf-e7bc3b1dd070
2017-11-08 10:08:51.000 [  c] 9 SpeechSynthesizer:handleDirective:messageId=1097ec71-03ff-43a1-81bf-e7bc3b1dd070
2017-11-08 10:08:51.004 [  9] 0 SpeechSynthesizer:executeHandle:messageId=1097ec71-03ff-43a1-81bf-e7bc3b1dd070
2017-11-08 10:08:51.005 [  f] 0 SpeechSynthesizer:onFocusChanged:newFocus=FOREGROUND
2017-11-08 10:08:51.005 [  a] 0 AudioInputProcessor:executeOnFocusChanged:newFocus=NONE
2017-11-08 10:08:51.005 [  a] 0 AudioInputProcessor:executeOnFocusChanged:reason=Lost focus
2017-11-08 10:08:51.005 [  a] 0 AudioInputProcessor:setState:from=BUSY,to=IDLE
2017-11-08 10:08:51.005 [  9] 0 SpeechSynthesizer:executeStateChange:newState=PLAYING
2017-11-08 10:08:51.006 [  9] 9 SpeechSynthesizer:startPlaying
2017-11-08 10:08:51.006 [  9] 9 MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-08 10:08:51.006 [  2] 0 MediaPlayer:handleSetSourceCalled
2017-11-08 10:08:51.007 [  2] 9 MediaPlayer:tearDownPipeline

Found bundle for host avs-alexa-eu.amazon.com: 0x27af78 [can multiplex]
Conn: 0 (0x238610) Receive pipe weight: (-1/0), penalized: (nil)
Multiplexed connection found!
Found connection 0, with requests in the pipe (2)
Re-using existing connection! (#0) with host avs-alexa-eu.amazon.com
Using Stream ID: 7 (easy handle 0x2b5d48)

POST /v20160207/events HTTP/2
Host: avs-alexa-eu.amazon.com
Accept: /
Authorization: Bearer Atza|IwEBIMfcSGBabhdb8nwbQPjv0jdpoROIZj6iQP0_s_Bjk5g2TuCy-GWTqZ7cvpEPt1ZD5l6J-lsF1i-7rrCd9q8bHezjHmBVOykYKp5YRuQdNzdYOfYVA0wB01ET-Lu3L9nYjytuc8-8xUE5SVsrUMgU9NTyz5yBcKpsP2185B4CaynkSA
Content-Length: 637
Content-Type: multipart/form-data; boundary=------------------------1fffc3d2a29bf6d4

2017-11-08 10:08:51.069 [  9] 9 MediaPlayer:playCalled
2017-11-08 10:08:51.069 [  2] 0 MediaPlayer:handlePlayCalled
2017-11-08 10:08:51.069 [  2] 0 MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-08 10:08:51.070 [  2] 9 MediaPlayer:doStopSuccess
2017-11-08 10:08:51.070 [  2] 0 MediaPlayer:handlePlay:supportsBuffering=0
2017-11-08 10:08:51.083 [  2] 0 MediaPlayer:handlePlay:stateReturn=ASYNC
terminate called after throwing an instance of 'std::future_error'
what():  Promise already satisfied
Aborted (core dumped)
Please provide some pointers.

Hello dhananjayj29,
Sorry for the long delayed response.  Do you know what version of the SDK you were using when you observed the

what(): Promise already satisfied

message?  I am asking because an issue like this was addressed in the 1.1 release.
Regarding the low volume issue, are you still experiencing it?  If so, can you tell us more about your audio configuration?
Thank you,
-SWH

Hi,
I was able to fix the volume issue , it was ALSA conf issue in my system.
But the AVS stack getting crash is still there.
This issue was reported on 1.0.x version and recently I moved to 1.2.1 version of SDK.
I am still getting the same issue. Also only after 2-3 queries/questions to stack it is crashing.
Latest logs are as below:
###########################
Listening...
############################
2018-01-08 23:12:51.661 [  8] 9 MediaPlayer:getSpeakerSettingsCalled
2018-01-08 23:12:51.662 [  2] 9 MediaPlayer:handleGetSpeakerSettingsCalled
method return time=1515453171.663897 sender=:1.50 -> destination=:1.52 serial=13 reply_serial=2
int32 1
2018-01-08 23:12:51.665 [  8] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true
2018-01-08 23:12:51.666 [  8] 9 SpeakerManager:validateSpeakerSettings:volume=100,mute=false
2018-01-08 23:12:51.666 [  8] 0 ContextManager:updateStateLocked:action=updatedState,state={"volume":100,"muted":false},namespace=Speaker,name=VolumeState
2018-01-08 23:12:51.666 [  6] 0 ContextManager:buildContextSuccessful:context={"context":[{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}},{"header}
2018-01-08 23:12:51.667 [  9] 0 AudioInputProcessor:executeOnContextAvailable:jsonContext={"context":[{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}
2018-01-08 23:12:51.667 [  9] 1 FocusManager:acquireChannel:channelName=Dialog,activityId=SpeechRecognizer.Recognize
2018-01-08 23:12:51.667 [  9] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=bb138449-49cc-4115-8774-a99e9636e993,newValue=b60f6d41-a18a-4d19-a92b-2a82ab310186
2018-01-08 23:12:51.668 [  9] 0 DirectiveProcessor:scrubDialogRequestIdLocked:dialogRequestId=bb138449-49cc-4115-8774-a99e9636e993
2018-01-08 23:12:51.668 [  9] 0 EventBuilder:buildJsonEventString:messageId=50861716-ea48-4394-bafb-f957ded89547,namespace=SpeechRecognizer,name=Recognize
2018-01-08 23:12:51.668 [  9] 0 AudioInputProcessor:executeOnFocusChanged:newFocus=FOREGROUND
2018-01-08 23:12:51.668 [  9] 9 HTTP2Transport:enqueueRequest:jsonContent={"context":[{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}},{"header":{}
2018-01-08 23:12:52.008 [ 11] 0 HTTP2Transport:processNextOutgoingMessage:jsonContent={"context":[{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}},}
2018-01-08 23:12:52.009 [ 11] 0 HTTP2StreamPool:getStream:streamId=11,numAcquiredStreams=2
2018-01-08 23:12:52.009 [ 11] 9 HTTP2Transport:insertActiveStream:handle=0xb3db5de8
2018-01-08 23:12:52.009 [ 11] I HTTP2Stream:libcurl:streamId=11,text=Found bundle for host avs-alexa-eu.amazon.com: 0xb3d022a8 [can multiplex]
2018-01-08 23:12:52.010 [ 11] I HTTP2Stream:libcurl:streamId=11,text=Conn: 0 (0xb3d01968) Receive pipe weight: (-1/0), penalized: (nil)
2018-01-08 23:12:52.010 [ 11] I HTTP2Stream:libcurl:streamId=11,text=Multiplexed connection found!
2018-01-08 23:12:52.010 [ 11] I HTTP2Stream:libcurl:streamId=11,text=Found connection 0, with requests in the pipe (1)
2018-01-08 23:12:52.010 [ 11] I HTTP2Stream:libcurl:streamId=11,text=Re-using existing connection! (#0) with host avs-alexa-eu.amazon.com
2018-01-08 23:12:52.010 [ 11] I HTTP2Stream:libcurl:streamId=11,text=Using Stream ID: 7 (easy handle 0xb3db5de8)
root@info3-low:~# 2018-01-08 23:12:55.245 [  c] 0 MessageInterpreter:receive:messageId=d2672482-ea89-4d7e-a0dc-61549025e589:No dialogRequestId attached to message.
2018-01-08 23:12:55.245 [  c] I DirectiveSequencer:onDirective:directive={"namespace:"SpeechRecognizer",name:"StopCapture",messageId:"d2672482-ea89-4d7e-a0dc-61549025e589",dialogRequestId:""}
2018-01-08 23:12:55.245 [  d] I DirectiveRouter:preHandleDirective:messageId=d2672482-ea89-4d7e-a0dc-61549025e589,action=calling
2018-01-08 23:12:55.245 [  d] 0 CapabilityAgent:addingMessageIdToMap:messageId=d2672482-ea89-4d7e-a0dc-61549025e589
2018-01-08 23:12:55.246 [  e] I DirectiveRouter:handleDirective:messageId=d2672482-ea89-4d7e-a0dc-61549025e589,action=calling
2018-01-08 23:12:55.246 [  9] 0 AudioInputProcessor:stopCapture:stopImmediately=true
2018-01-08 23:12:55.246 [  9] 0 AudioInputProcessor:setState:from=RECOGNIZING,to=BUSY
2018-01-08 23:12:55.246 [  9] 0 DirectiveProcessor:onHandlingCompeted:messageId=d2672482-ea89-4d7e-a0dc-61549025e589,directiveBeingPreHandled=(nullptr)
2018-01-08 23:12:55.246 [ 12] 0 DialogUXStateAggregator:setState:from=LISTENING,to=THINKING
2018-01-08 23:12:55.246 [  9] 0 CapabilityAgent:removingMessageIdFromMap:messageId=d2672482-ea89-4d7e-a0dc-61549025e589
###########################
Thinking...
###########################
2018-01-08 23:12:55.273 [ 11] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2018-01-08 23:12:55.719 [ 11] 0 HTTP2Stream:receivedRequestId:value=x-amzn-requestid: 0a6d4efffe8d0e30-00004d37-00017a71-de38fc9a59d24fcf-3e80229a-7
2018-01-08 23:12:55.942 [  c] I DirectiveSequencer:onDirective:directive={"namespace:"SpeechSynthesizer",name:"Speak",messageId:"0e8dbd6c-63c0-4e25-803c-f4630137c28d",dialogRequestId:"b60f6d41-a18a}
2018-01-08 23:12:55.942 [  d] I DirectiveRouter:preHandleDirective:messageId=0e8dbd6c-63c0-4e25-803c-f4630137c28d,action=calling
2018-01-08 23:12:55.942 [  d] 0 CapabilityAgent:addingMessageIdToMap:messageId=0e8dbd6c-63c0-4e25-803c-f4630137c28d
2018-01-08 23:12:55.943 [  d] 9 SpeechSynthesizer:preHandleDirective:messageId=0e8dbd6c-63c0-4e25-803c-f4630137c28d
2018-01-08 23:12:55.943 [  7] 0 SpeechSynthesizer:executePreHandle:messageId=0e8dbd6c-63c0-4e25-803c-f4630137c28d
2018-01-08 23:12:55.944 [  e] I DirectiveRouter:handleDirective:messageId=0e8dbd6c-63c0-4e25-803c-f4630137c28d,action=calling
2018-01-08 23:12:55.944 [  e] 9 SpeechSynthesizer:handleDirective:messageId=0e8dbd6c-63c0-4e25-803c-f4630137c28d
2018-01-08 23:12:55.948 [  7] 0 SpeechSynthesizer:executeHandle:messageId=0e8dbd6c-63c0-4e25-803c-f4630137c28d
2018-01-08 23:12:55.948 [  7] 1 FocusManager:acquireChannel:channelName=Dialog,activityId=SpeechSynthesizer.Speak
2018-01-08 23:12:55.948 [ 13] 0 SpeechSynthesizer:onFocusChanged:newFocus=FOREGROUND
2018-01-08 23:12:55.948 [  9] 0 AudioInputProcessor:executeOnFocusChanged:newFocus=NONE
2018-01-08 23:12:55.949 [  9] 0 AudioInputProcessor:executeOnFocusChanged:reason=Lost focus
2018-01-08 23:12:55.949 [  9] 0 AudioInputProcessor:setState:from=BUSY,to=IDLE
2018-01-08 23:12:55.949 [  7] 0 SpeechSynthesizer:executeStateChange:newState=PLAYING
2018-01-08 23:12:55.950 [ 12] 0 DialogUXStateAggregator:setState:from=THINKING,to=IDLE
2018-01-08 23:12:55.950 [  7] 9 SpeechSynthesizer:startPlaying
2018-01-08 23:12:55.950 [  7] 9 MediaPlayer:setSourceCalled:sourceType=AttachmentReader
########################################
Alexa is currently idle!
########################################
2018-01-08 23:12:55.951 [  2] 0 MediaPlayer:handleSetSourceCalled
2018-01-08 23:12:55.951 [  2] 9 MediaPlayer:tearDownTransientPipelineElements
2018-01-08 23:12:56.030 [  7] 9 MediaPlayer:playCalled
2018-01-08 23:12:56.031 [  2] 0 MediaPlayer:handlePlayCalled:idPassed=1,currentId=1
Please let me know the hint/root cause , I am kind of stuck and can not proceed without this fix.
Also stack strace for this issue is changed:
#5  0xb6c2d73c in __cxxabiv1::__cxa_throw (obj=0xb3e0d928, tinfo=, dest=)
at libstdc++-v3/libsupc++/eh_throw.cc:84
#6  0xb6c80824 in std::__throw_future_error (__i=__i@entry=2) at functexcept.cc:109
#7  0xb6f46ef0 in _M_set_result (__ignore_failure=false, __res=..., this=0xb3401900) at future:360
#8  std::promise::set_value(bool&&) (this=this@entry=0xb6553218 <g_idle_dispatch>,
__r=__r@entry=<unknown type in /usr/lib/libMediaPlayer.so, CU 0x46162, DIE 0x89a5d>)
at  future:994
#9  0xb6f3ebe4 in alexaClientSDK::mediaPlayer::MediaPlayer::handlePlay (this=0x9a248, id=, promise=0xac9fe86c)
at /avs-device-sdk/MediaPlayer/src/MediaPlayer.cpp:1026
#10 0xb6f3efdc in operator() (__closure=) at avs-device-sdk/MediaPlayer/src/MediaPlayer.cpp:228
#11 std::_Function_handler<int(), alexaClientSDK::mediaPlayer::MediaPlayer::play(alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerInterface::SourceId)::__lambda9>::_M_invoke(const std::_Any_data &) (__functor=...) at functional:2056
#12 0xb65568dc in g_main_dispatch (context=0x110e08) at gmain.c:3154


Compile under Arch Linux not working

Under Arch Linux using gcc 6.3.1 20170306 the compilation of version 2 using "./compile_linux_gcc.sh" didn't work. Error message is "cannot find -lgomp"
Solution: Removing the -static flag from the compilation.
I don't know if this has performance related consequences but was able to compile it to a working binary with this bugfix.
Creating a pull request

It's not a performance issue. It's just for universally compatible binaries.
I'm planning to do a version 3 at some point which will use raw threads instead of OpenMP. That will hopefully solve this problem.

That's great news! I appreciate your project, you're doing a great work!

See if this reproduces on version 3. I got rid of the OpenMP dependency. But there's also an ugly hack to statically link pthreads.


[branch-0.7][ZEPPELIN-2060] Make dynamic select form turn on or off using checkbox

What is this PR for?
This PR is same with #2100 with base branch branch-0.7.
What type of PR is it?
Improvement
What is the Jira issue?
ZEPPELIN-2060
How should this be tested?

Apply this patch and run Zeppelin web as dev mode

# under zeppelin-web
$ yarn run dev

Go to Spark tutorial note and try to change value in select form as below screenshot imgs

Screenshots (if appropriate)
Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? yes. updated dynamicform.md

CI failed in two cases with below reason which is irrelevant with this change.
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

The build has been terminated

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

The build has been terminated

So will merge into branch-0.7 if there are no more comment.

It was merged yesterday but seems wan't closed automatically by asfgit. So I'm closing this manually now.


map pathways column in big trait table

Split from #2.
1       trithionate_oxidation
1       carbonmonoxide_oxidation
1       tetrathionate_oxidation, iron_reduction
1       pyrrhotite_oxidation
1       galena_oxidation
1       thiocyanate_oxidation
1       carbonylsulfide_oxidation
...
182     sulfur_reduction
186     thiosulfate_reduction
353     aerobic_chemo_heterotrophy
366     fermentation
371     denitrification
400     nitrite_reduction
983     NA
1420    nitrate_reduction
These should all map to GO

To work on this ticket, make PRs on pathways.sssom.tsv  in schemas/

Transferring earlier discussions here:

Original ideas was to use GO terms for NER mapping. Per Harshad this ran into two issues: 1) underscores delimiters in trait table, and 2) some different wording for pathways which included context of metabolism mode (eg aerobic).

is trivial but 2) may require some manual curation. We may also need to compose terms from say ECOCORE metabolism mode together with GO function.

In the future we could infer some links between carbon growth substrates, metabolism mode, and pathways but may be more useful in the context of linking with KG-Pathways.

Placeholder for ongoing work, edit as needed.
Merge NER results into SSOM mapping file is a next step.
Then update KG build workflow to load mappings from SSOM file instead of hard-coded in ingest script.

Let's start with

[x] automated mapping to GO. I did this using rdfmatch, but runner may give additional hints
[ ] automated mapping to KEGG pathways. @hrshdhgd is working on this

once this is done, we will assess the situation. If KEGG has higher coverage than GO, this is useful information I can take back to GO and figure out why GO has poorer coverage here
If neither gives us the coverage we need we need to look a bit deeper. Is this a matter of insufficient precomposed terms in the ontology? Is there a systematic thing we can address, e.g. by adding synonyms for GO?

I did a quick OGER run through the KEGG Pathways (output file), it seems like all KEGG pathways map to GO. Some pathways map to multiple GO CURIEs.
I still have to code this into kg-microbe but I thought of doing a quick-n-easy OGER run to report this.


duplication of last character of suggested compeltion when user types the completion manually

I'm using copilot.el with Spacemacs (with default vi-like keybindings) and I've set it up exactly as stated in your documentation. What's happenning to me and renders this poorly usable is the following:
I'm in insert mode and typing code, I make (even short) pause in my typing and copilot suggests some completion. If I press Tab, everything is completed. If I do not pres Tab and type the same code myself (so that my typed code equals to the suggested one), after I type last character of suggested code, this last characted gets duplicated. Eg.: I type const a =  and now copilot shows fn(b);. If I type fn(b); then after pressing last ; one additional semicolon is inserted automatically (this is the bug) and I end up with const a = fn(b);;. Now - why would I do it instead of pressing Tab? I do type very fast and sometimes my mind/fingers just type what I need faster then realizing I could press Tab and get it completed, usually it's when the completion is something very short. So I end up correcting what I typed very often, because copilot is messing what I write.

fixed in https://github.com/zerolfx/copilot.el/commit/7cb7beda89145ccb86a4324860584545ec016552


Add support for remote development on Windows Sandbox

Feature Description
Windows Sandbox (WSB) provides a lightweight desktop environment to safely run applications in isolation. Software installed inside the Windows Sandbox environment remains "sandboxed" and runs separately from the host machine. (for more info click here
In the spirit of Microsoft's mission to empower every person and every organization on the planet to achieve more I think it would be extremely useful to add to the remote development features of VSCode the ability to:

Run scripts and binaries developed on my host machine using VSCode in Windows Sandbox so that I can manage my working copy or repository in an environment that stores my changes while making it possible to run the code in a sandboxed windows environment. This is especially useful for testing PowerShell scripts that spin dev environments (because as a precondition they must run in a pristine environment).

Have a context menu (right click) function that enables me to run a script or a piece of code in WSB in a similar way to what has been implemented in damienvanrobaeys/Run-in-Sandbox: Run PS1, VBS, EXE, MSI in Windows Sandbox very quickly just from a right-click (github.com) has implemented. Notice how you can extract and run PowerShell scripts using a context menu, this is advantageous because it empowers people to skip the copy paste and handling of the WSB process

Configure WSB environments using a GUI in a similar way to what has been implemented in https://github.com/leestevetk/WSBEditor

Additional Information

A link to a useful tool that is relevant and brings us closer to realize the goal stated above is https://github.com/jdhitsolutions/WindowsSandboxTools

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


fix: net/nat retain https scheme for external

Keep HTTPS scheme for security and reliability (potentially intercept and modify the response, providing you with incorrect IP information):

Prevents man-in-the-middle attacks
Ensures data integrity
Follows modern security best practices
Maintains compatibility with services that enforce HTTPS

I've updated latest code, please check @Rjected