net: host lookup on Linux non-GNU-libc systems

What version of Go are you using (go version)?

$ go version
go version go1.12.6 linux/arm

Does this issue reproduce with the latest release?
Not tested on 1.12.7 but I don't believe any of the tickets included between 1.12.6 and 1.12.7 affect this issue.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="arm"
GOBIN=""
GOCACHE="/home/vsys/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/vsys/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/go"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_arm"
GCCGO="gccgo"
GOARM="6"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build834352528=/tmp/go-build -gno-record-gcc-switches"

What did you do?
package main

import (
	"net"
	"fmt"
	"os"
)

func main() {
	ips, err := net.LookupIP("localhost")
	if err != nil {
		fmt.Fprintf(os.Stderr, "Could not get IPs: %v\n", err)
		os.Exit(1)
	}
	for _, ip := range ips {
		fmt.Printf("localhost. IN A %s\n", ip.String())
	}
}

The above program gives the wrong address for localhost if:

The system does not use GNU libc AND
The combination of the DNS server configured on the system and the system's default domain do not produce a correct result for localhost.

The system where this was observed is running Alpine Linux 3.9.  This uses the musl libc.  This libc does not support /etc/nsswitch.conf and so that file is usually missing.
On this type of system, it seems that golang's name resolution code looks for /etc/nsswitch.conf, doesn't find it, and then defaults to DNS only, skipping any lookup in /etc/hosts.  The DNS query that is sent is not for localhost but for localhost.x.y.z where x.y.z is the domain setting from resolv.conf.
If the configured DNS server produces a correct response for localhost.x.y.z then all is still well, but if it doesn't then lookup fails (or even worse, as below, returns an address for another host).
My suggestion is that golang on musl libc systems should follow the musl libc convention, which is to check /etc/hosts first and then DNS.
A workaround is to add a file /etc/nsswitch.conf that specifies hosts: files dns.
What did you expect to see?
On a system with IPv6 enabled:
localhost. IN A ::1
localhost. IN A <IP_ADDRESS>

What did you see instead?
The exact output varies with the environment where it is run, but eg:
localhost. IN A <IP_ADDRESS>

When using glibc the default when there is no /etc/nsswitch.conf is dns [!UNAVAIL=return] files, according to https://www.gnu.org/software/libc/manual/html_node/Notes-on-NSS-Configuration-File.html.  It sounds like you are saying that musl behaves differently.  That seems unfortunate.
You can force the use of the C resolver by setting GODEBUG=netdns=cgo.  I guess we could consider adding a GODEBUG setting that looks at /etc/hosts first and then falls back to the Go resolver.
I'm not excited about doing a run-time test for whether we are using musl.

I am hitting an issue on MacOS and am unsure if it is related to this or not. If it is not, please let me know and I will open another issue.
I have a very similar program to the original posted above. If I provide a domain that does not resolve and build and run it using go build I see the following:
Could not get IPs: lookup does-not-exist: no such host

If I build the same program with CGO_ENABLED=0 go build I see the below:
Could not get IPs: lookup does-not-exist on <IP_ADDRESS>:53: no such host

It seems like the resolver is only using DNS and not looking at any of the configs in /etc/resolver.
I ask, because a tool I want to use (kafkactl) builds with CGO_ENABLED=0 which is interfering with the applications ability to resolve a name that can be found in the /etc/resolver directory. If I build that same app without setting the CGO_ENABLED flag, the hostname is resolved as expected and the app works.

@ianlancetaylor Thank you for replying. I created a new issue then to track the behaviour https://github.com/golang/go/issues/51753. We can continue the conversation there.

It seems like this issue was fixed in the meantime.
root@db2:~# cat /etc/resolv.conf
nameserver <IP_ADDRESS>
search .
root@db2:~# cat /etc/nsswitch.conf
cat: /etc/nsswitch.conf: No such file or directory
root@db2:~# GODEBUG=netdns=2 ./main
go package net: confVal.netCgo = false  netGo = false
go package net: dynamic selection of DNS resolver
go package net: hostLookupOrder(localhost) = files,dns
localhost. IN A ::1
localhost. IN A <IP_ADDRESS>

@mateusz834 Where did you find that quote?  Thanks.

@ianlancetaylor On the link you posted here: https://github.com/golang/go/issues/33019#issuecomment-510076310

@mateusz834 Ah, thanks.  Looks like this was changed in December, 2021 for https://sourceware.org/bugzilla/show_bug.cgi?id=28700.
And it does seem that Go does the expected thing, so closing.  Please comment if you disagree.

@ianlancetaylor I'm unclear, sorry - I can see that glibc default behaviour has changed to match the muslc behaviour but has the golang net package also changed to match this behaviour?  I can't see a reference to a PR above but it might just be whoever did the PR wasn't aware of this ticket.

@tomkcook There was a proposal somewhere to change that. #35305

Gotcha.  Looks like this was merged, which implements the change.

Don't know if this is the same issue but on some of my systems, (mostly Arch Linux), net.LookupIP("localhost") don't give the IPv6 value (::1) only IPv4 (<IP_ADDRESS>).
but all other commands like dig, host and resolvctf do.
resolvectl query localhost
localhost: <IP_ADDRESS>                           -- link: lo
           ::1                                 -- link: lo

but on the same machine, this Go code: https://go.dev/play/p/gHlxWsre2Cp
gives:
go run main.go
localhost: <IP_ADDRESS>


fix s390x alpine containerdisk.

What this PR does
Before this PR:
There is some issue with the s390x alpine iso starting from the version v3.9.x. So as a result of this the end to end tests that create alpine virtual machines are crashing for s390x. We have raised the issue in the alpine community for a fix. https://gitlab.alpinelinux.org/alpine/aports/-/issues/16310 .
After this PR:
I have downgraded the alpine version to v3.18 until we get the fix. Now the tests with the alpine container disks are working successfully.

Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer

Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note

      None

/cc @brianmcarey


EditorUndoRedoManager: Use fixed history when a custom context is provided

This makes the custom context feature of the EditorUndoRedoManager behave consistently with the current documentation.
Fixes #100108. Also fixes #76851 by providing a custom context when creating the "Edit Shortcut" action.

Tried to rename my branch because this wasn't the correct solution. I'll link a new PR here in a moment that has a better fix.

New PR with different approach: #100120


What's the meaning of "maxDets" and  "amodalEval.params.occRng" ?

Question 1
After evaluation, I'm confused about the result printed.
The following is only results of "all regions".
######################### both  #################

DONE (t=9.80s).
Accumulating evaluation results...
DONE (t=0.36s).
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.082
 Average Precision  (AP) @[ IoU=0.50      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.148
 Average Precision  (AP) @[ IoU=0.75      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.081
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=  1 ] = 0.065
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets= 10 ] = 0.162
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.361
DONE (t=9.65s).
Accumulating evaluation results...
DONE (t=0.26s).
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.080
 Average Precision  (AP) @[ IoU=0.50      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.128
 Average Precision  (AP) @[ IoU=0.75      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.088
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=  1 ] = 0.107
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets= 10 ] = 0.228
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.438
DONE (t=9.02s).
Accumulating evaluation results...
DONE (t=0.30s).
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.038
 Average Precision  (AP) @[ IoU=0.50      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.070
 Average Precision  (AP) @[ IoU=0.75      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.038
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=  1 ] = 0.062
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets= 10 ] = 0.169
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.399
DONE (t=9.67s).
Accumulating evaluation results...
DONE (t=0.42s).
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.015
 Average Precision  (AP) @[ IoU=0.50      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.034
 Average Precision  (AP) @[ IoU=0.75      | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.012
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=  1 ] = 0.024
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets= 10 ] = 0.074
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=[0,<PHONE_NUMBER>0.0] | maxDets=100 ] = 0.225

And the print funcion:
print('######################### all regions  #################\n')
    amodalEval.params.onlyThings = 0
    amodalEval.params.occRng = [0, 1000]
    amodalEval.evaluate()
    amodalEval.accumulate()
    stats = amodalEval.summarize()
    print_eval_result(amodalEval)

    amodalEval.params.onlyThings = 0
    amodalEval.params.occRng = [0, 0.00001]
    amodalEval.evaluate()
    amodalEval.accumulate()
    stats = amodalEval.summarize()
    print_eval_result(amodalEval)

    amodalEval.params.onlyThings = 0
    amodalEval.params.occRng = [0.00001, 0.25]
    amodalEval.evaluate()
    amodalEval.accumulate()
    stats = amodalEval.summarize()
    print_eval_result(amodalEval)

    amodalEval.params.onlyThings = 0
    amodalEval.params.occRng = [0.25, 1]
    amodalEval.evaluate()
    amodalEval.accumulate()
    stats = amodalEval.summarize()
    print_eval_result(amodalEval)

What do "amodalEval.params.occRng" and "maxDets" mean?
In the definition of "occRng" part, it says self.occRng = [0, 1]  # occluding ratio filter. not yet support multi filter for now. But it's still hard for me to understand its meaning.
Question 2
And it's hard to know which value corresponds to which one in Table 1 of your paper. Can you make the print function to be more clear?

This is a new and meaningful research field and I'm really very grateful for your high-quality open-source code. Thank you!

The details of this evaluation and the meaning of 'occRng','maxDets', please reference to this paper Semantic Amodal Segmentation
'AP' comes from first row,  'AR10 AR100' corresponding to last tow rows, 'ARN ARP ARH' corresponding to last row of the following three section. Thanks.

Thank you!!

Can anyone please explain "IoU=0.50:0.95" means? Is it the range of IoU value?


What is the schedule for a question-answer template (vs. QnA Maker)

Since QnA Maker is now has an official end of life date -- with no new QnA Maker Resources being allowed after 10/1/2022.  What is the schedule for a bot template that uses custom question answering instead?  "Core Bot with Custom Question Answering" is what I am looking for.

I'm also very interested in this... October is not too far away...

Looks like I'll be very interested in this as well, very soon.
May I suggest that this is an opportunity, when creating the new equivalent of the QnAMaker dialog, to add the often-requested ability to return the answer score to us, so we can take action if the user seems to not be getting through to the bot (eg "looks like the bot doesn't support what you are trying to do, do you want to send feedback to the devs? yes/no"). I currently have to follow every QnAMaker dialog node with a raw HTTP call, so I can get the score :(. See https://github.com/microsoft/BotFramework-Composer/issues/6080, https://github.com/microsoft/BotFramework-Composer/issues/6109, etc.
Thanks!

Same here... we are using QnA Maker a lot at the moment and would be happy to get involved in shaping testing support in Composer for custom question answering.

I also would like to know when this is planned. I guess it needs to be a priority with QnA Maker being retired.

Hope we can have answer soon, still I can't integrate custom question answer in composer

Hi!
Same question here, we have a live project that will need to be migrated.

Bumping this. Currently have a live project that will need to be migrated. Can anyone let us know if this will be officially supported before QnA Maker EOL?

Would be great to get an update from Microsoft about this.
October is coming soon!

Any updates?

More info in #9362 @mukdenchild @sammydeprez @ScrewdriverHyena @davidpp @Seungchul-de @mattatabm

@stevkan - As the only Microsoft representative who has taken any interest in this issue are you able to offer an update on the future of this issue? It feels like this capability is about to fall off a cliff without Microsoft taking any notice.


Plugin Development Guide

Write a plugin development guide

Hi dergraf, great mqtt server in vernemq.
I have a question. How do I go about integrating some additional functionality into the server. For example: I want to be able to detect when a mobile client gets disconnected and then proceed to send Push notifications (APNS) to them. In my specific case my API is using Go and it already knows about the endpoints so essentially im looking for a way to detect client disconnection and then allow vernemq to pass all those messages intended for that disconnected client onto my Go API so that it can send it via APNS until they go online again.

Hi donileo,
that's an interesting use case, which is currently not possible using the plugin infrastructure. However if you are not afraid of hacking VerneMQ yourself it is actually reimplementing https://github.com/erlio/vmq_server/blob/master/src/vmq_msg_store.erl#L175. But, wouldn't it be more useful to just awake your client in this case and deliver the messages once it reconnects via MQTT?

Hi dergaf,
The problem is that on iOS when backgrounding the app embedded with the MQTT client the connection must be terminated so the app cannot run in the background. I guess this bypasses part of the need of the need for using mqtt in the first place but the only way to get the ability to run in the background with ios is by classifying your app as a voip app. Once the app is in the background - no longer running - it must still receive the mqtt messages which in my case are chat messages via push, so thats the reason for this question.

I've just recently learned about this possibility to specify the app as a voip app, as you said. Wouldn't this solve your problem or would you still need apple/android push?

No I think it'd be good to still have the apple/android push. Many apps are not true voip apps so they cant classify themselves as such.

I see. Wouldn't it be possible to just wake up the IoS/Android application, which then reconnects and receives all the outstanding messages?

For mobile apps using MQTT, it is useful to know when a client disconnected. As donileo mention, in the case of a disconnect, one could trigger a number of things when that happens including messaging the user/device via different mediums (e.g APNS). I'd be great if vernemq had a hook to detect client disconnects.
@donileo IOS 7 has two new background execution modes: fetch and remote-notification. This could help address your use case.

@dergraf I cannot find https://github.com/erlio/vmq_server/blob/master/src/vmq_msg_store.erl code anymore. Where did it go?
Thanks for your help!

@leoyey that's gone (refactored out), check the changelogs for this. If you're implementing your own message store, check vmq_lvldb_*.erl modules. The message store backend is initialized and started by the msg_store_childspecs env variable.
{msg_store_childspecs, [{vmq_lvldb_store_sup,
                               {vmq_lvldb_store_sup, start_link, []},
                               permanent, 5000, supervisor, [vmq_lvldb_store_sup]}]},

@dergraf Thanks for your quick response! I am not intend to implement a message store. I am facing the same problem as @donileo . I want to know whether the client is disconnected or not, so I can send a push notification (e.g APNS) to it if it is offline. The push notification just notify the user that he has a new message. When he open the apps again, it will reconnect the MQTT broker and get the message. Could you help to advise where should I hack in?

ah I see.. yeah there are a couple of hooks still missing.. I think this is one of those. If you need it today then no clean solution exist. However if you can wait a few weeks until the next release I could implement the hooks.

@dergraf Thanks for you information. When do you plan to release the next version of VerneMQ?

@dergraf I don't know if it is possible, but it would be great if you can provide a hook which will get called before/after the message send to clients. If multiple clients subscribe the same topic, then the hook will be called multiple times.
If we have this hook, then I just need to implement it and send the notification if the client is offline. For online clients, the hook will do nothing.

long time overdue... finally the plugin guide is here. https://verne.mq/docs/plugin_development.html


ServiceMonitor for elastic cluster with operator

Good day
i already installed prometheus exporter plugin while deploy and elastic with operator.
now i stuck on how deploy a servicemonitor to export target to prometheus
`    apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: elastic-cluster
#namespace: monitoring
spec:
endpoints:

interval: 20s
path: "/_prometheus/metrics"
port: https
scheme: https
tlsConfig:
insecureSkipVerify: true
basicAuth:
password:
name: secrets-values
key: basic_auth_password
username:
name: secrets-values
key: basic_auth_user
namespaceSelector:
matchNames:
elastic-cluster
selector:
matchLabels:
common.k8s.elastic.co/type: elasticsearch
elasticsearch.k8s.elastic.co/cluster-name: elastic-cluster`

maybe someone tell how to deploy the password and the user of elastic to service monitor?
dev tool show that plugin installed
elastic-cluster-es-node-1        prometheus-exporter <IP_ADDRESS>
elastic-cluster-es-coordinator-0 prometheus-exporter <IP_ADDRESS>
elastic-cluster-es-node-0        prometheus-exporter <IP_ADDRESS>
elastic-cluster-es-node-2        prometheus-exporter <IP_ADDRESS>
elastic-cluster-es-coordinator-1 prometheus-exporter <IP_ADDRESS>

Did you create "secrets-values" already ?
you need create "secrets-values" first
be like
apiVersion: v1
kind: Secret
metadata:
  name: secrets-values
data:
  username: $(echo -n "${USERNAME}" | base64)
  password: $(echo -n "${PASSWORD}" | base64)

The service monitor does not need the secrets for elasticsearch. The service monitor is for prometheus to find the exporter which will not have the same auth as elasticsearch. You want the deployment for the elasticsearch exporter to have the secrets for the elasticsearch cluster plugged into the environment variables.


First Name is not truly required when getting users

The query objects used to search for IDIR users require a firstName field in the documentation, but in practice the Keycloak CSS API doesn't require that field. You can search as long as at least one field in the query parameters (firstName, lastName, email, guid) is populated.
It would be nice if the functions to get IDIR users would make the firstName field optional as well, making the new type:
type IDIRUserQuery = {
  firstName?: string;
  lastName?: string;
  email?: string;
  guid?: string;
};

Fixed with this PR: https://github.com/bcgov/citz-imb-kc-css-api/pull/3

Resolved in 1.3.1


Accepting the license for enabling access to the IBM Power Repo not working on RHEL 9

Details follow after the next test.

File /opt/ibm/lop/configure from ibm-power-repo-3.0.0-21.noarch is now using the less instead of the more command for displaying file /opt/ibm/lop/notice. This allows to use the following command sequence to accept the license:
LESS=+q /opt/ibm/lop/configure <<<'y'


Excel Functions - Parameters Info strings not showing

Hi:
In the EXCEL function wizard the parameter info strings are not showing (see attached screenshots) even though they are setup in the XLL.
Any suggestions on what is wrong?
This is a Windows 10 x64 build.
Thanks.
Glenn

Just like VBA! Kidding. Fixed in e553110363e08677aca23cf57ea4b2e5408dcc9b

Just like VBA! Kidding. Fixed in e553110363e08677aca23cf57ea4b2e5408dcc9b

Thanks Kieth - should this update be available.  When I do a GIT PULL I don't see any updates.
Also another point, when passing XLL_CSTRINGs they seem to get truncated after 23/24 characters.  Is there anyway around this?
Thanks

Please send me a https://en.wikipedia.org/wiki/Minimal_working_example.

Sorry - checking further it was my mistake.   Apologies.
Is e553110 checked in so I can update my files?  Thanks again.

No worries. You helped me find a bug in my Args rewrite. If all is well now please close this issue.
As a by-the-by, you can also write {XLL_TYPE, "name", "description"} without the Arg({...}).

Sorry - the parameter string problem still doesn't seem to be fixed in my build.  Is there something else I need to do?

Send me a MWE if you are still seeing problems.

GNGStructuralLib.zip
Hi Keith:
I tried to create a MWE to illustrate the problem.  I deleted the XLL template, reinstalled it and created  a new project.  I started off with just a few routines and it all seems to work ok including displaying the parameter labels correctly.  However, when I add a few more routines, the XLL seems to fall apart and EXCEL won't load it.  These routines have all loaded correctly before.  I have attached the project - if you have any suggestions I would really appreciate it.

Hi @GlennGitHubAcc , I was able to build and run the 64-bit version in MSVC 2019 Preview. Spot checking shows the functions in the function wizard and the argument prompts look okay. Maybe you should try extracting your zip file and doing a fresh build like I just did.
If loading fails you can Debug/Break All then look at the call stack to detect where it is hanging.

Hi:
Loaded the latest update and all seems to work now.  Thanks.

I fixed a bug in OPER memory management. I was neglecting to use placement new on malloced memory. Thanks for pointing me in the right direction.


py-cython being built twice with different hashes

On Orion I'm getting:
[+]  oah2cnu ^py-cython<EMAIL_ADDRESS>arch=linux-centos7-skylake_avx512
And
[+]  lnctc7m  ^py-cython<EMAIL_ADDRESS>arch=linux-centos7-skylake_avx512
because two versions of py-setuptools are being used (57.4.0 and 59.4.0):
[+]  yi6zl45   ^py-setuptools<EMAIL_ADDRESS>arch=linux-centos7-skylake_avx512
[+]  dqwpoqv ^py-setuptools<EMAIL_ADDRESS>arch=linux-centos7-skylake_avx512

With the bufr py-cython from nceplibs-bundle being different than the one from jedi-base-env.
I'm thinking one of the Python packages in JEDI is somehow forcing a different version (a conflict somewhere?) because nceplibs has no other use of Python. It is strange though that the nceplibs-bundle bufr is trying to use an older version of py-setuptools. Adding version 57.4.0 to packages.yaml lets them all be built with the same version, but trying to prefer 59.4.0 doesn't (57.4.0 is still built in one of the concretizations).
I'm going to look into it a little more to see why the concretizations are different, but preferring 57.4.0 should work.

Was did after my PR got mergesd yesterday? I took jedi-tools-env out of the jedi-all and all applications. Can you check if you have jedi-tools-env in your specs?
I have no problem going back to 57.4.0.

Let me check... it's also possible I didn't pass --reuse either.

Still an issue with the most recent develop. Off the top of your head do you know if there's something in JEDI that causes it to use<EMAIL_ADDRESS>We can just pin 57.4.0 as the preferred version as an easy fix.

Still an issue with the most recent develop. Off the top of your head do you know if there's something in JEDI that causes it to use<EMAIL_ADDRESS>We can just pin 57.4.0 as the preferred version as an easy fix.

I am not aware of any, but I am totally fine with using 57.4.0.

Think I found what was happening. py-scipy depends_on(py-setuptools@:57)

And interestingly, I think each bundle is concretized separately. Hypothetically, if we turned the all environment into a single bundle that used the other bundles, everything would be concretized together and prevent this from happening.

And interestingly, I think each bundle is concretized separately (but a single bundle as whole). Hypothetically, if we turned the all environment into a single bundle that used the other bundles, everything would be concretized together and prevent this from happening.

Coming back to this ... we can't concretize everything together, because of the ufs-weather-model-debug-env, i.e. the requirement to have esmf+debug and a consistently built mapl+debug. One environment cannot depend on two different versions of the same package. We can revive the jedi-env mother-of-all environment that has everything except jedi-tools (because of these Python dependency conflicts) and ufs-weather-model-debug-env.

I know we can't concretize together formally (concretization: together), but if we turned 'all' into a bundle instead of listing specs like:
specs:
- jed-env
- ufs-weather-env
- nceplibs-bundle
- ...

And did this instead:
specs:
- all-bundle-env

My hypothesis is that this counts as a single package is concretized as one, instead of going through concretizing jedi-env, ufs-weather-bundle, nceplibs-bundle . And in the case of py-setuptools, nceplibs-bundle would have taken the version required by py-scipy because it's listed as a single spec.

I know we can't concretize together formally (concretization: together), but if we turned 'all' into a bundle instead of listing specs like:
specs:
- jed-env
- ufs-weather-env
- nceplibs-bundle
- ...

And did this instead:
specs:
- all-bundle-env

My hypothesis is that this counts as a single package is concretized as one, instead of going through concretizing jedi-env, ufs-weather-bundle, nceplibs-bundle . And in the case of py-setuptools, nceplibs-bundle would have taken the version required by py-scipy because it's listed as a single spec.

I still don't think that you will get esmf built both with ~debug and +debug though ... (and then the same for mapl). That was the issue I had with the original ufs-weather-model-env that had
depends_on('esmf+debug')
depends_on('esmf~debug')

You could do
depends_on('esmf+debug', when='+debug')
depends_on('esmf~debug', when='~debug')

in ufs-weather-model-env, but then you'd have to install ufs-weather-model-env+debug and ufs-weather-model-env~debug, just moving the switch up one step.

Ah, you may be right. I haven't tried it.

Ah, you may be right. I haven't tried it.

I played this game for a few hours a couple of days ago. We can put everything in a bundle except the debug versions of esmf and mapl, and then have the concretizer process the mother-of-all-env and the additional ufs-weather-model-debug-env.

I just tried concretization: together and it worked as long as I don't use ufs-weather-model-debug-env.


[GSSOC'23] Predict the Cancellation of Hotel Booking

💥 Proposal
We will build such a machine learning model that will predict whether a particular hotel booking done by a user is going to be cancelled or not.

please provide the dataset

Here is the dataset.
hotel_bookings.csv
Please assign me issue.


Game Speed slider setting in game lobbies

From #31 point 3. I.E.:

At least a few months before the competition (so we have time for sufficient training/testing), tell us in the Rules page whether the Game Speed slider in the game lobbies will be set to Normal or Fastest (i.e. LF3 or LF6 respectively). I added a feature request to BWAPI to make organizers' management easier for this (bwapi/bwapi#807). If you want to use "Fastest", I suggest you ask as early as possible whether there are any objections from the big teams like Facebook and Sumsung and other serious competitors, because bots that rely on ML training might need a lot of time/resources to be re-trained.

In the Undermind podcast Episode 18 in the part from 51:03-54:32, Dave (with some comments from Antiga) replied to my question about whether AIIDE 2019 will set the Game Speed slider in the game lobbies to "Normal" or "Fastest".  Just need to clarify the Rules page similarly to how CIG worded their rules (here), depending on whether you want "Normal" or "Fastest", then this issue can be closed.
Background: In GitHub on StarcraftAITournamentManager's "ladder" branch, it's configurable and in the default config file, the "lobbyGameSpeed" setting is set to "Normal".  If last year's bots are re-entered (e.g. SAIDA and/or CherryPi if they don't get updated - note that Dave mentioned that CherryPi used trained models), AIIDE 2019 may want to stick with "Normal" in case last year's bot versions don't work properly using "Fastest".  E.g. CIG 2018 used "Fastest" and Overkill (re-entered without any update from the previous year) seemed to perform badly due to using "Fastest" (refer to the last comment at http://satirist.org/ai/starcraft/blog/archives/678-CIG-2018-Overkill-was-broken.html and http://satirist.org/ai/starcraft/blog/archives/686-CIG-2018-not-only-Overkill-was-broken.html).

We are going to set it to "Normal", and that should be updated soon in the competition page.


The requested module 'vue' does not provide an export named 'default'

Reproduction
https://github.com/nuxt/nuxt/issues/18544
Steps to reproduce the bug
This is what i added to my existing nuxt 3 project

After installing @pinia/nuxt, running pnpm dev produces on nuxt 3 produces

PS: Error only occures on PNPM (switching to YARN fixes the problem)
Expected behavior
No errors
Actual behavior
error
Additional information
https://github.com/stephenjason89/nuxt-vuetify-graphql-pinia
just pnpm install then pnpm dev

I updated the template at https://github.com/piniajs/example-nuxt-3 and everything works. I even tested with the auto import configs. Maybe this is related to the naming of the folder client in client/stores and Nuxt having special treatment of it?
If you manage to reproduce without extra dependencies like vuetify (like it was requested on the nuxt issue), I can take a look

@posva Thank you for replying,
I updated my reproduction as well and have managed to find the culprit
PNPM causes the problem
switching to YARN fixes it.
Please let me know what to do to fix this with PNPM
Thank you

@posva I have just tried cloning the project at https://github.com/piniajs/example-nuxt-3
and doing
pnpm install
pnpm dev

Please let me know if I can be of assistance.
Thank you

please re-open the issue. Thank you

In the project it fails because it requires a .npmrc file with:
shamefully-hoist=true
strict-peer-dependencies=false

I just tested and it works fine too

Thank you @posva , i must have overlooked that on the example repo
On my reproduction repo i believe it already has a shamefully hoist =true
I'll try if adding
strict-peer-dependencies=false
Will fix the problem
I'll get back to you in a while
Thank you

Hello @posva , I think what happened to mine was an edge case scenario.
after adding strict-peer-dependencies=false
It was still failing with the same errors(your repro and my reproduction repo)
What fixed it was doing
pnpm store prune
then removed node_modules again for safety measure
then pnpm install
Thank you for your time to test this out with me.

i have same problem and the prune solutions doesnt work for me :////


Split up the Group component into different components

Description
After #1406, we've come a bit further on the quest to split up the Group component. With different types for each sub-component, it is obvious that we should do the rest of the job and separate these components altogether.
My suggestion:

RepeatingGroup replaces a repeating Group
LikertGroup replaces a repeating Group with edit-mode set to likert
Group stays as-is, or is renamed to Collection or similar. If it is not renamed, we should make sure app developers are given ample warnings if they re-use old configuration.
Group with Panel styling should be moved to the Panel component, using children, if possible
Panels with group-reference should be separated into a distinct component (RepeatingGroupReference?)

Additional Information

#339

Relevant slack discussion: https://altinndevops.slack.com/archives/C045EB3JA9X/p1701786089111159
For info: @lassopicasso @olemartinorg @Febakke @RonnyB71
After fetching all altinn apps currently in production and tt02 using the fetch script i have found these uses of the "Panel" and "Panelgroup" components:
I am disregarding our own e2e test apps.
Panel-group with repeating group reference
No one is using this
Panel-group
"Group" component with "panel" property set.
There are 27 instances of this configuration being used.

Every instance has "showIcon": false. (Not using icon)
25 instances use the "info" color
2 instances in the same app use the "success" color

The app using "success" is the signing app "KRT-1185 Forsikringsforetakets behandling av klientmidler"
It is used to group a button-group used to sign with the tekst reading in the lines of "I am confirming that the form is correct".

Alternatives after removing "panel" property:

with "groupingIndicator" set to panel (will allways be "info" color)

sidenote: alert is being used instead of panel for the top message

using "showGroupingIndicator" and changing the "Paragraph" component to "Alert".

using using "showGroupingIndicator" and changing the "Paragraph" component to "Alert" as info.

We could also not group the text and button group at all and just have the text as an info Alert say "By signing this form I am confirming ..."

Other examples of PanelGroup and an alternative solution:

Panel
"Panel" component with title and body.
There are about 1000 instances of "Panel" being used in this way throughout our apps. Whereas "Alert" is used about 160 times.
Some before and after examples of using "Alert" instead of "Panel":


net: buf: keep memory alignment provided by k_heap_alloc and k_malloc

Allocation callback in net_buf_heap_cb and net_buf_var_cb
used for net_bufs with variable size payloads, defined by
NET_BUF_POOL_HEAP_DEFINE or NET_BUF_POOL_VAR_DEFINE,
allocate one more octet for internal variable ref_count,
used in function generic_data_ref(), which in turn is needed
for net_buf_clone()).
The user gets a buffer which is shifted by one octet in memory
block. This breaks alignment provided k_heap_alloc and k_malloc.

I’m not really opposed to this, curious to hear where you benefit from it considering that in almost all cases the buffer payload is some protocol data that’s not assumed to be properly aligned, ie we access it using packed structs or using the various net buf data getter functions that don’t assume any specific alignment for the payload.

I’m not really opposed to this, curious to hear where you benefit from it considering that in almost all cases the buffer payload is some protocol data that’s not assumed to be properly aligned

I use it in USB device controller API, some controllers allow to use data for transfers directly from RAM without storing it in specific area or FIFO, but data block must be aligned. IMHO it is a kind of bug because it does not keep the alignment provided by k_heap what one could assume. As I see fixed size pools can not provide aligned buffers as well. I could possibly solve it differently by definition of own callbacks and NET_BUF_POOL_UDC_DEFINE macro.

@rlubos @jhedberg @tbursztyka could you please review?

Am I right in that this messes up generic_data_ref? That one still uses 1 insead of sizeof(void*):
ref_count = data - 1;

If true, ref and unref would use different memory locations. I'm not sure how that would not be caught by unit and manual tests though since it would cause memory leaks all over the place.

@jfischer-no could you respond to the comment from @M1cha above? Is there some place in the code that you forgot to update?

Am I right in that this messes up generic_data_ref? That one still uses 1 insead of sizeof(void*):
ref_count = data - 1;

If true, ref and unref would use different memory locations. I'm not sure how that would not be caught by unit and manual tests though since it would cause issues all over the place.

It looks like I screwed up on this one, cloned net_buf data would point to a data block that has already been freed:
https://github.com/zephyrproject-rtos/zephyr/blob/fa5b706871f01bb3bba3b2d9f774d27615855e7e/subsys/net/buf.c#L96-L103
There are net_buf reference count (member ref of struct net_buf) and data reference count at the top of allocated data. This PR is about data reference count.
Probably no one caught it because it is only used for NET_BUF_POOL_VAR_DEFINE() and  NET_BUF_POOL_HEAP_DEFINE() to increase the data reference count in net_buf_clone(). NET_BUF_POOL_HEAP_DEFINE is not used in the tree.
test_net_buf_clone() would not catch it, @jhedberg any ideas other than the one-line fix below?
diff --git a/subsys/net/buf.c b/subsys/net/buf.c
index dc6f5dc8e0d..462a21198e2 100644
--- a/subsys/net/buf.c
+++ b/subsys/net/buf.c
@@ -93,7 +93,7 @@ static uint8_t *generic_data_ref(struct net_buf *buf, uint8_t *data)
 {
        uint8_t *ref_count;

-       ref_count = data - 1;
+       ref_count = data - sizeof(void *);
        (*ref_count)++;

        return data;


🌐 Add Chinese translation for docs/zh/docs/advanced/middleware.md

as title

📝 Docs preview for commit fa9421be9f42f4a17d9b5cb6b52d1b51fce6da03 at: https://6499e03257a4bc00bec94130--fastapi.netlify.app

Thank you @jaystone776! :rocket:
As you are one of the Chinese translations' champions, I'm gonna merge this right away. :tada:


Error in GetClubItemsAsync() with FUT16.

I can connect to FUT16 with new UltimateTeamToolkit. I can retrive my credit and the other thinks
I have not problem when i call GetPileSizeAsync() and GetPurchasedItemsAsync()
but when i call GetClubItemsAsync() the connection lost and the error is:
"Could not find member 'loans' on object of type 'ItemData'. Path 'itemData[0].loans', line 1, position 883."
Any suggestions?

Here is https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/pull/134

Thank you so much! Now works!

xtheokles or spettacolo83 do you have Skype? I am trying to get access to player data from the web app and need to discuss if possible. Thanks

I notice that the function GetClubItemsAsync() last year returned All Club's items (players, contract, ecc..)
This year, this function returns only the player.
Any suggestion for returning all club's items as the last year?


How to see apns-server response?

Hello!
I decided to use your project django-push-notifications.
I have a way to APNS_CERTIFICATE, but my message do not come, although the status OK.
What could be the problem? How to see the response from the APNS server?

+1
Can you test your cert with https://github.com/djacobs/PyAPNs ?


Unable to copy / paste between device and computer

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: custom linux
scrcpy version: 2.1.1
installation method: manual build
Android version: 9

Describe the bug
unable to copy / paste between device and computer
Every time I try to copy text on the device (whether through selecting "copy" in Android or using the Ctrl+C sequence), I get the following on computer terminal:
[server] ERROR: Could not invoke method
java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getPrimaryClip(ClipboardManager.java:80)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:118)
        at com.genymobile.scrcpy.Device.getClipboardText(Device.java:285)
        at com.genymobile.scrcpy.Device$3.dispatchPrimaryClipChanged(Device.java:142)
        at android.content.IOnPrimaryClipChangedListener$Stub.onTransact(IOnPrimaryClipChangedListener.java:52)
        at android.os.Binder.execTransact(Binder.java:731)
Caused by: java.lang.SecurityException: Calling uid 0 does not own package com.android.shell
        at android.os.Parcel.createException(Parcel.java:1950)
        at android.os.Parcel.readException(Parcel.java:1918)
        at android.os.Parcel.readException(Parcel.java:1868)
        at android.content.IClipboard$Stub$Proxy.getPrimaryClip(IClipboard.java:215)
        ... 7 more
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.clipboard.ClipboardService.addActiveOwnerLocked(Unknown Source:57)
        at com.android.server.clipboard.ClipboardService.access$600(Unknown Source:0)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.getPrimaryClip(Unknown Source:30)
        at android.content.IClipboard$Stub.onTransact(IClipboard.java:81)
        at com.android.server.clipboard.ClipboardService$ClipboardImpl.onTransact(Unknown Source:0)

Is your device rooted? #1606
(btw you should upgrade to the latest version)

Is your device rooted? #1606

Yes (unfortunately necessary for two of the most important functions of any computational device - backups and firewall).
Out put from the commands shown in the referenced issue:
# id
uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:su:s0

# getprop ro.build.flavor
franklin-user

Just typing "adb shell" automatically gives me a root shell.

(btw you should upgrade to the latest version)

Did that (to 2.3.1) while anticipating a reply (as expected, no change). :)
I searched settings for "clipboard," and found nothing.
Does some obvious or simple workaround exist (nothing seemed clear to me from reading the issue that you referenced)?

I have no solution for this clipboard issue with rooted devices.

Just typing "adb shell" automatically gives me a root shell.

You can temporarily execute adb unroot, then adb shell will give a non-root shell (until you execute adb root again).

I have no good solution for this clipboard issue with rooted devices.

Why can't scrcpy automatically run as an ordinary user?

You can temporarily execute adb unroot, then adb shell will give a non-root shell (until you execute adb root again).

That doesn't work. The second that I type adb unroot -s , the device disappears, and I can no longer access it (even by killing and restarting the adb daemon). To access the device again, I have to reboot it.


Issues with phone numbers

Phone number fields behave strangely in some countries.
To fix this, we need to split it into two components:

Country code (wheel)
Text field

Done with #177


DNS problem while connecting to Shopify

Describe the bug
theme watch gives:
DNS problem while connecting to Shopify, this indicates a problem with your internet connection
To Reproduce
Steps to reproduce the behavior:

run command 'theme watch'

Expected behavior
watch for file changes
Environment (please complete the following information):

MacOS High Sierra 10.13.6
Themekit version: 1.0.1

Hey @illia108
This is an issue with Cloudflare https://www.cloudflarestatus.com/ which is causing widespread problems across a lot of the internet.
Shopify is working on mitigating these errors as well and this is a wider platform issue rather than a themekit issue. You can monitor it here: https://status.shopify.com/

just realised that. sorry. can be closed

Sorry to be reopening this. But is this a intermitent problem?
I'm getting the same error but while trying to generate a new theme with
To Reproduce
theme new -p=mypassword -store=mystore -name=themename

Expected behavior
create the new theme
Environment
MacOS Catalina 10.15.5
ThemeKit 1.0.3 darwin/amd64

It just started happening to me, too.  My internet connection is normal, Cloudflare's status is normal, and Shopify's status seems to be normal as well.

Just in case anyone else runs into this problem, some examples out on the web use these args with a single hyphen/slash. This might have worked with earlier ThemeKit versions, but not anymore.
Use two hyphens for the args, so theme new --p=mypassword --store=mystore --name=themename
Regardless of this though, the ThemeKit CLI should really show at least a better error about invalid args and show a man- page or similar. Pretty shocking to have arg validation drop into some DNS network catch-all.


[FLINK-5638] [asyncIO] Fix deadlock when closing two chained AsyncWaitOperators

This PR addresses the problem by changing the Emitter's behaviour to first output the
element before removing it from the StreamElementQueue. That way the close method waits
until also the Emitter has outputted the last completed element. Additionally, the
stopResources method now frees the checkpoint lock in order to let the emitter thread
react to the interrupt signal.

Forwarding the review from #3210. Merging this PR.


Fixed Fbo pixels saving in graphics test

I haven't been able to test this due to another issue, but it seems like the right solution. It should fix #3139 .

@inclement could you please rebase? Thanks. :-P

I hope you don't mind,  I added this fix directly.


[SE-0127] stdlib: Remove the ManagedProtoBuffer base class

What's in this pull request?

Resolved bug number: (SR-)

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

A smoke test on macOS does the following:

Builds the compiler incrementally.
Builds the standard library only for macOS. Simulator standard libraries and
device standard libraries are not built.
lldb is not built.
The test and validation-test targets are run only for macOS. The optimized
version of these tests are not run.

A smoke test on Linux does the following:

Builds the compiler incrementally.
Builds the standard library incrementally.
lldb is built incrementally.
The swift test and validation-test targets are run. The optimized version of these
tests are not run.
lldb is tested.

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

Part of SE-0127
https://bugs.swift.org/browse/SR-1955
rdar://problem/26012924

This is approved now.

There was a conflict with Arnold's changes for SE-0125. I don't have access to Erik's fork to resolve that so I'm going to move this to a new pull request.

Here's the new PR: https://github.com/apple/swift/pull/3768


Make Transport Configuration be set up in a separate TransportManager

This is one of a series of requests I'm proposing to make to try to decrease the NetworkManager's god status. Currently, the NetworkManager is way to complicated, it's got a bunch of unrelated things smushed together without much of a reason.
Splitting off Transport configuration/settings into a 'TransportManager' would make much more sense.
The current setup with Transports as Components is very elegant, this can be maintained by just having the Transport stuff in a TransportManager component, so that NetworkManager has less to deal with and can at some point be optional.
The NetworkManager should be an optional component, not a mandatory god object.

#479 should close this issue if it is accepted.


Support phi series SQ

Type of Change
support phi-1, phi-1.5, phi-2, phi-3 do smoothquant with ipex 2.3, transformers 4.38.1
Description
detail description
JIRA ticket: xxx
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed

https://inteltf-jenk.sh.intel.com/view/nlp-toolkit-validation/job/nlp-toolkit-validation-top-mr-extension/1671/


PR - create the PR template

PR requirements (reviewers, license, template, etc)
Checks:

linter
tests

Implemented in https://github.com/pyrsia/pyrsia-vscode-extension/pull/19


Image upload not working

I upload a image and get this exception:
var file = File.ReadAllBytes(imagePath);
var media = Upload.UploadImage(file);
Exception:
Se produjo una excepción de tipo 'System.AggregateException' en Tweetinvi.WebLogic.dll pero no se controló en el código del usuario
Información adicional: Se han producido uno o varios errores.
Thanks
Regards

Hi there,
I will need more information concerning your bug as I cannot reproduce it.
Are you sure that you are correctly setting your credentials and at the same time that the file matches the Twitter image restrictions.
Finally would you please share your full stack trace as well as the InnerException of the AggregateException you are currently receiving.
Thanks

Hi Livi:
Sorry for the incovenience but the error is the credentials, in older versions I have not to set the credential for image uploading.
Thank you so much and sorry again!
Nice day

OK thanks for the feedback :)


#747 add module:make-observer

Hey, everyone. Is this ready to be merged (except for the conflicts)?

It still has unresolved comments. tabs vs spaces, etc.

Hello,
Any updates here ?  :))

@AEK-BKF you can use my fork to use this feature.


[New] give resolvers access to parserServices

Is there a way for resolvers to access parserServices? If not, what do you think about enabling it, maybe like so?

I guess it seems fine, but we’d need tests, and also what’s the use case? Does any parser actually provide info here, and does any resolver look for it?


Update(Fix) CloudFunction.js

I fix some cloud function that have an error in your issues (:

Sorry but it is also doesn't work :(

This merge for the latest node js and firebase.


STM32F030.svd: Incorrect address for register providing the CRC initial value.

https://github.com/posborne/cmsis-svd/blob/0dd8f9af9a69399088a711259af813383bef08d3/data/STMicro/STM32F030.svd#L98
The SVD file states that the register is at offset 0xC whereas the ST's RM0360 states that it is at offset 0x10. I also checked with VSCode and a debugger that in fact offset 0x10 provides all the functionality defined for the INIT regsiter while 0xC does not.

Hello @everclear72216 ,
Thank you very much for your feedback, but this is not the right place for your contribution. The goal of this repository is to provide original SVD file from vendor without any modification, only update from vendor release are accepted.
I suggest you to contact the Open-CMSIS-Pack team and ask for a patch to the
STM32F0x0 Value Line SVDs,  and when it will be fixed propose a patch in this repository.


Add accountStatus back to telemetry

accountStatus was removed from telemetry in https://github.com/microsoft/vscode-azuretools/pull/499 because I didn't have access to actionContext in the new AzureAccountTreeItemBase.loadMoreChildrenImpl, but that's now possible as of https://github.com/microsoft/vscode-azuretools/pull/503.
Also removed some default empty strings in telemetry. They're already marked as optional in index.d.ts and it makes things just a touch cleaner.
Old stuff:

** TELEMETRY("vscode-cosmosdb/AzureTreeDataProvider.getChildren", 0.10.2) properties={"isActivationEvent":"true","cancelStep":"","result":"Succeeded","stack":"","error":"","errorMessage":"","contextValue":"azureextensionui.azureAccount","accountStatus":"LoggedIn","hasMoreChildren":"false"}, measures={"duration":0.004,"childCount":3}

New stuff:

** TELEMETRY("vscode-cosmosdb/AzureTreeDataProvider.getChildren", 0.10.2) properties={"result":"Succeeded","isActivationEvent":"true","contextValue":"azureextensionui.azureAccount","accountStatus":"LoggedIn","hasMoreChildren":"false"}, measures={"childCount":3,"duration":0.005}

@StephenWeatherford reduced this PR to just adding back accountStatus to telemetry. The other stuff as discussed offline was taking me too long, but I might get back to it eventually


nerian_stereo_ros2: 1.2.0-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository nerian_stereo_ros2 to 1.2.0-1:

upstream repository: https://github.com/nerian-vision/nerian_stereo_ros2.git
release repository: https://github.com/nerian-vision/nerian_stereo_ros2-release.git
distro file: rolling/distribution.yaml
bloom version: 0.10.7
previous version for package: null

nerian_stereo
* Fixed parameter issue. Enabled NERIAN_ROS_DEBUG="params" for extra logging.
* Added log messages about actively served topics (based on run-time conf)
* Support for third camera (Ruby), selected for point cloud if active
* Contributors: Dr. Konstantin Schauwecker, Ramin Yaghoubzadeh Torky

No response in 2 weeks, so closing.  Given the nature of the change here, I think the best way forward would be to create the new ros2-gbp release repository and then create a new PR.


Add Faker::Ancient

Includes Ancient Greek gods, primordial deities, titans and common mortal heroes

:+1:

Thanx!


Add a "retry" mode for Pinentry prompts

An incorrect password currently causes the entire kbs2 command to fail, rather than giving the user an opportunity to retry. This should be configurable.
Something like:
pinentry-retry = true

...maybe. Or maybe it should be supported unconditionally, including for the rpassword fallback.

Thinking about this more, this should definitely be supported unconditionally. If a user wants to exit the prompt entirely, they should ^C.


make prep destructive action without double confirm

The make prep command will delete containers / images / volumes, such destructive command should require user READ instructions and DOUBLE even TRIPLE confirm.

Hi @southwolf , you're right there!
I created this repo for my own demoing purposes back then and so I didn't think of additional safety measures.
Fixed it in 48a6d18  now, hoping that two levels of confirmation are enough :+1:


indexing of bim and fam files removed

Removed indexing of bim and fam files. Queries on the variants and individuals are now made using pandas queries on the bim and fam dataframe.

Hi @fpcasale. I just fixed a bug related to Dask no installing all of its dependencies. Would you mind updating your pull request?

Perfect. Thanks =)


correct spelling of interaction

Signed-off-by: Tim Bertenshaw<EMAIL_ADDRESS>
Description:
Correct incorrect spelling.

Affected area:

New Functionality      [ ]
Documentation          [X]
Install                [ ]
Control Plane          [ ]
CLI Tool               [ ]
Certificate Management [ ]
Networking             [ ]
Metrics                [ ]
SMI Policy             [ ]
Security               [ ]
Tests                  [ ]
CI System              [ ]
Demo                   [ ]
Performance            [ ]
Other                  [ ]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
No

@shashankram  not sure how that other commit got into the last pr so closed and recreated.


Sensor fail to detct after first detection

Front door contact on first operation would show open until door closed. If I open the door again it would blip open then show closed even with door open.
Rebooted panel problem still existed
Rebooted HomeBridge problem still exists.
Loaded previous days backup returning to version 0.4 all working Ok

There's nothing between v0.0.4 and v0.0.5 that would cause this kind of issue.
If the issue persists can you try running Homebridge in Debug Mode - and then provide a sample of the Homebridge logs around the time the problem happened.

Gareth thanks for the prompt reply. I reinstalled ver 0.5 same problem. I view on homekit the FrontDoor, first time I open and close the door I can see the change in HomeKit. I Open and close the door again and no change. I have as you requested enabled debug. Have attached the log.
A couple of days ago I update Homebridge to version 1.4.0 which there was an option to update Node.js. Could that be relevant to the problem?
Attached is a file with the log from around this mornings update[](url
homebridge texecom connect problem.txt
)
Hopefully the log file has uploaded. If not please let me know and I shall try again

Sorry I selected "close with comment" now doubt you can discern I am not that computer literate.
thanks for the work you dedicate to this.

Hi there,
Just trying to add our Texecom Alarm into HomeKit and get the following...
[homebridge-texecom-connect] Connected to SmartCom - <IP_ADDRESS>:10001
[5/12/2022, 4:02:10 PM] [Google Smart Home] Sending Sync Request
[5/12/2022, 4:02:10 PM] [Google Smart Home] Please connect with the Google Home app: https://git.io/JfuHC
[5/12/2022, 4:02:26 PM] [homebridge-texecom-connect] Invalid data from SmartCOM
[5/12/2022, 4:02:26 PM] [homebridge-texecom-connect] Reconnecting to SmartCom - <IP_ADDRESS>:10001
[5/12/2022, 4:02:36 PM] [homebridge-texecom-connect] Connected to SmartCom - <IP_ADDRESS>:10001
[5/12/2022, 4:02:44 PM] [homebridge-texecom-connect] Invalid data from SmartCOM
[5/12/2022, 4:02:44 PM] [homebridge-texecom-connect] Reconnecting to SmartCom - <IP_ADDRESS>:10001
[5/12/2022, 4:02:54 PM] [homebridge-texecom-connect] Connected to SmartCom - <IP_ADDRESS>:10001
[5/12/2022, 4:02:58 PM] [homebridge-texecom-connect] Texecom Alarm : Security System Mode Changed : Night
[5/12/2022, 4:02:58 PM] [homebridge-texecom-connect] Invalid data from SmartCOM
[5/12/2022, 4:02:58 PM] [homebridge-texecom-connect] Reconnecting to SmartCom - <IP_ADDRESS>:10001
2022-05-12T15:03:01.777Z hapNodeJSClient Events [{"host":"<IP_ADDRESS>","port":54792,"aid":2,"iid":10,"value":2,"status":2}]
Any help greatly appreciated. Thanks

Gareth updated to version 0.6 problem remains.
Open door Homebridge indicates open
Close door indicates closed
Open door Homebridge blips open then closed even with door open
Door Contact going closed when open.txt
.

I've extracted the logs specific for the TexecomConnect plugin and, assuming you have set the door up as "Garage Door", it all appears to be working fine. The is a 3-4 second gap between opening and closing the door.
[15/05/2022, 11:44:12] [TexecomConnect] Socket Data: "Z0181
[15/05/2022, 11:44:12] [TexecomConnect] Living Room : Motion Detected : Yes
[15/05/2022, 11:44:20] [TexecomConnect] Socket Data: "Z0271
[15/05/2022, 11:44:20] [TexecomConnect] Garage Door : Contact Sensor State : Open
[15/05/2022, 11:44:22] [TexecomConnect] Socket Data: "Z0180
[15/05/2022, 11:44:22] [TexecomConnect] Living Room : Motion Detected : No
[15/05/2022, 11:44:23] [TexecomConnect] Socket Data: "Z0270
[15/05/2022, 11:44:23] [TexecomConnect] Garage Door : Contact Sensor State : Closed
[15/05/2022, 11:44:34] [TexecomConnect] Socket Data: "Z0271
[15/05/2022, 11:44:34] [TexecomConnect] Garage Door : Contact Sensor State : Open
[15/05/2022, 11:44:38] [TexecomConnect] Socket Data: "Z0270
[15/05/2022, 11:44:38] [TexecomConnect] Garage Door : Contact Sensor State : Closed
[15/05/2022, 11:44:50] [TexecomConnect] Socket Data: "Z0181
[15/05/2022, 11:44:50] [TexecomConnect] Living Room : Motion Detected : Yes

Afternoon,
I am also having this issue - I can't pinpoint when it started, but no more than a month ago, but exactly as above.
First try, door opens, sensor shows open, stays open till door is closed, sensor shows closed.
Second try, door opens, sensor shows open, goes to closed after a second or two without the door actually being closed.
This then repeats in sequence, which is even more odd.
At first I thought it was homekit, but the accessory shows in homebridge as the same. I checked in Wintex and it shows correct open/close status in there.
All very odd.


Initial draft of the workflow training

Would love any comments.

Before diving into permissions I suggest you add one ore more examples for real-life workflows, probably those that are shipped with Plone by default. Also I'd discuss and show a definition.xml.
A bonus would be showing a example for a complex custom workflow from a project with custom permissions, guards and such.

By the way: Great work! 🍺

@calvinhp ping

@calvinhp ping

I will work on an example that can take us through the material, but that might not happen until the end of this week.

@calvinhp I you rebase I can merge it now and you can commit the example later

After much wrangling with git, it is rebased and ready to merge


Auto load next post on Wordpress

Hello,
I'm currently trying to create an infinite scroll to automatically load the next post when you are already viewing a post. In fact, I want to reproduce the behavior of articles from https://qz.com or https://bloomberg.com.
With the following code, I only succeed to load the first next post, but the others... I think I miss something but I don't know what! Any ideas? :)
Here is my PHP:

        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            My content

Loading...

End of content

No more pages to load

    <?php $prev = mod_get_adjacent_post('prev', array('post', 'videos')); ?>
    <?php if($prev) : ?>

            <a class="pagination_previous" href="<?php echo get_permalink($prev->ID)?>"><?php echo $prev->post_title; ?>

    <?php endif; ?>

And my JS:
    $('.articles').infiniteScroll({
        path: '.pagination_previous',
        append: 'article',
        status: '.page-load-status',
    });

Thanks for opening this issue. Others have asked about this. See my answer https://github.com/metafizzy/infinite-scroll/issues/688#issuecomment-316403688


⚠ ClamAV has degraded performance

In e774dcd, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 171 ms

Resolved: ClamAV performance has improved in d96ef73.


allow use of dollar signs in processed class names

@swankjesse @JakeWharton

That wasn't as easy as I was hoping it to be! I assume you didn't see something dumb we were doing that could have made this easier?

@swankjesse, my first approach I ended up tossing because it seemed riskier: it was to change the format of the key strings so that type names get encoded with slashes in the package (instead of dots) and nested classes are separated with dots (instead of dollars). For example com/squareup/Outer.Inner.Foo$Bar.Baz. That way we can unambiguously convert the string into either binary names (replace dots with dollars then replace slashes with dots) or canonical names (replace slashes with dots).
But this was a bigger and more complicated change which had a couple of big downsides:

More work to decode keys. It looks like Keys has had some level of optimization to make it faster (for example, using String#concat instead of + operator). The new encoding would be slower.
The runtime must still support code that was generated with an older version of the compiler. So the encoding must further be unambiguous about whether it was in a new vs. legacy format, and then put multiple paths in all of the decoding logic.

The latter point seemed riskiest because it doesn't seem easy to test. I suppose I could have added support for a system property to force it to generate keys in the legacy format. Then a unit test could run the compiler both ways and verify that the runtime works regardless of the key format that appears in generated code.
(Easier to do, but less thorough, would be to just have unit tests for all of the methods in Keys. But, since it's just a string vs. a Key type [with encapsulation/hiding], I'd be worried that there are places outside of Keys that directly operate on the string.)
So, all said and done, this seemed a lot easier. It does more work in pathological cases (like a class name with a silly number of dollar signs), but in practice should be the same as without the fix since it does at least first check the version of the name with all dollars replaced with dots.
Also, this is not unlike the work that javac must do to resolve a class use into a binary name (it does the inverse work; naively it must do more since there are many more dots that may potentially need to be converted to dollars, but it can employ techniques to prune the search space that I don't think can apply here).

BTW, any tips on getting travis-ci to go green -- is it flaky? That test passes fine locally, and the error message in travis-ci is cryptic enough that I don't know where to start debugging.

Hmm master built successfully on Travis CI 24 days ago when the last PR was merged. Let me try locally.

@jhump it fails for me locally when using JDK 7 but not JDK 8 (which has other problems... #425)

Full exception is:
java.lang.ClassCastException: com.sun.tools.javac.comp.Resolve$SymbolNotFoundError cannot be cast to com.sun.tools.javac.code.Symbol$ClassSymbol
	at com.sun.tools.javac.comp.Attr$IdentAttributer.visitMemberSelect(Attr.java:313)
	at com.sun.tools.javac.comp.Attr$IdentAttributer.visitMemberSelect(Attr.java:302)
	at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1683)
	at com.sun.tools.javac.comp.Attr.attribIdent(Attr.java:298)
	at com.sun.tools.javac.main.JavaCompiler.resolveIdent(JavaCompiler.java:672)
	at com.sun.tools.javac.model.JavacElements.nameToSymbol(JavacElements.java:162)
	at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:144)
	at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:61)
	at dagger.internal.codegen.GraphAnalysisLoader.resolveType(GraphAnalysisLoader.java:90)
	at dagger.internal.codegen.GraphAnalysisLoader.resolveType(GraphAnalysisLoader.java:91)
	at dagger.internal.codegen.GraphAnalysisLoader.resolveType(GraphAnalysisLoader.java:72)
	at dagger.internal.codegen.GraphAnalysisLoader.getAtInjectBinding(GraphAnalysisLoader.java:44)
	at dagger.internal.Linker.createBinding(Linker.java:230)
	at dagger.internal.Linker.linkRequested(Linker.java:142)
	at dagger.internal.Linker.linkAll(Linker.java:109)
	at dagger.internal.codegen.GraphAnalysisProcessor.processCompleteModule(GraphAnalysisProcessor.java:277)
	at dagger.internal.codegen.GraphAnalysisProcessor.process(GraphAnalysisProcessor.java:124)

The issue in CI was a bug in javac. I put together a trivial repro case and filed a bug with Oracle. Under some conditions, it can throw instead of return null when asking Elements#getTypeElement for an unknown type.
I hacked in a work-around here.


Issue with shortcuts and multiple CUs on same platform

The current script copies the executable files to the program files folder and then points the desktop shortcuts to them.
This causes an issue if you are pulling multiple CU images for the same platform. For example pulling 2017 CU2 and 2017 CU5. Whatever version you pull last "wins" as any existing files are deleted.
This will "sometimes" be ok if the 2 CUs are compatible with each other (you'll get a version warning) however if there is a database conversion between the two CUs then you will end up in a situation where you either have to convert your older version to use the newer executables, or if you pulled the older version last, you actually won't be able to access the new version any more until you re-pull the executables.
Perhaps instead of going directly into program files, the executables can be placed within a version-specific folder?

The new-navcontainer creates a folder on the host in
"C:\DEMO\Extensions<containerName>\Program Files
with the container and that is where the container will copy the executables.
This means that the binaries are container specific and the shortcuts for Cside is
"C:\DEMO\Extensions\test\Program Files\110\RoleTailored Client\finsql.exe" servername=test\SQLEXPRESS, Database=CronusDK, ntauthentication=yes, generatesymbolreference=yes
(includes databaseserver, instance and name)
This means that you can have any number of containers with any number of cside links.
the only thing that is shared is the dump of the base objects, but they are stored as version-country and they should never change base on that.

double checked this as it was reported internally on my side.......probably should've made sure that the script being used wasn't modified to change the path :)


potential bug in the multitask.TaskHierarchy?

Hi,
I'm testing MeTal in multi task settings, and noticed the predicted labels from predict_proba seems wrong. i noticed the code at https://github.com/HazyResearch/metal/blob/master/metal/multitask/task_graph.py#L97 and L98 is bit suspicious, don't we need to sort the predecessors/successors?
thanks,
--terry

Snorkel MeTaL is moving into maintenance mode, as its features have been merged into Snorkel proper (https://github.com/snorkel-team/snorkel). If this feature request still applies, feel free to repost there!


Creating a new (empty) reaction gives 3 validation errors, but the bulleted list isn't legible

I believe this is fixed in #96

I've been working off of that branch (and made some additions at https://github.com/skearnes/ord-editor/pull/1, which might not have been the best way to do it) and this was still an issue.
There actually wasn't anything in the  elements for me:

OK, fixed now


Pass HTTP proxy config during encryption

Add a new --proxy option for specifying one or more HTTPS proxies to use
during encryption.  Proxies are specified as host:port.  When proxies
are specified, we generate a proxy.yaml file and pass it to the
encryptor instance via user data.
To do:

Specify HTTPS proxy when updating an AMI
Read proxy.yaml from a file

Opening a new pull request based on feedback.


[analyzer][clang] Remove external plugin support

Shipping plugins as external dynamic libraries for Clang Static Analyzer is generally frowned upon, and not supported. This patch removes the existing support for using external ClangSA analyzer plugins.

I agree that the plugins could be provided by --saargs, so I approve this patch. But what do you mean by "not supported"? Clang 17 still has a -load flag for loading plugins.

But what do you mean by "not supported"? Clang 17 still has a -load flag for loading plugins.

There is also -fplugin=, which provides a higher-level interface.
It is not supported in the sense that you will get no help ("support") in using that feature, including help about crappy results, crashes, complete and utter corruption of your filesystem, exploits, etc. The official stance of CSA (but not necessarily Clang as a whole!), is that if you use plugins and anything goes wrong, you're — for the lack of a better phrase — SOL. (It's like reporting a kernel panic of a tainted kernel (a kernel that had proprietary kos (drivers) loaded into it), the number one reply you'll get on the mailing list is that your crash report is disregarded.) It is your own and absolute responsibility to deal with every consequence that stems from having a plugin.
And because it is unsupported, there are no guarantees that whatever code you create and potentially distribute as a plugin will work with any arbitrary Clang version. They don't care about API or ABI compatibility.

@bruntib will have comments.


Spyder project renames/creates folders by removing first letter of imported directories

Description
What steps will reproduce the problem?

Right-click in project explorer, import existing directory 'test'
Close Spyder
Reopen Spyder

What is the expected output? What do you see instead?
Expect to see the 'test' directory in the project explorer.
Instead, see 'est' in the project explorer and 'est' folder created in the parent directory.
Please provide any additional information below
The project is located on a linux system mapped to a Windows drive.
Weirdly, if I then open spyder on the linux system, I see 't' in the project explorer, and a corresponding 't' folder has been created.
If I delete 't' from the project explorer and the disk, and then import 'test' it acts as expected on the Linux system when I close then reopen Spyder.
Then going back to Windows, opening Spyder shows the 'test' folder that was imported in the Linux version, closing and then reopening Spyder on Windows again shows the wrong behavior with 'est' appearing in the project explorer and an 'est' folder created in the parent directory.
Version and main components

Spyder Version: <IP_ADDRESS>
Python Version: 2.7.9
Qt Versions:  4.8.6, PyQt4 (API v2) 4.11.3 on Windows

Optional dependencies
pyflakes >=0.5.0:  0.9.2 (OK)
pep8 >=0.6      :  1.6.2 (OK)
IPython >=1.0   :  3.2.0 (OK)
zmq >=2.1.11    :  14.7.0 (OK)
pygments >=1.6  :  2.0.2 (OK)
pandas >=0.13.1 :  0.15.2 (OK)
sphinx >=0.6.6  :  1.3.1 (OK)
rope >=0.9.2    :  0.9.4 (OK)
jedi >=0.8.1    :  0.8.1 (OK)
matplotlib >=1.0:  1.4.3 (OK)
sympy >=0.7.3   :  0.7.6 (OK)
pylint >=0.25   :  None (NOK)

Thanks for reporting. Projects are going to be completely rewritten in our next version.


reactify moved from devDeps to deps

Reactify must be in normal deps, otherwise it doesn't work properly if your project build process is different (for example, I'm using babelify transformation instead of reactify).
Error : Cannot find module 'reactify' from '/Project/node_modules/halogen'

We already discussed that in https://github.com/yuanyan/halogen/issues/1 and you put it back. The other solution is to point package's main to bundled version.

Oh, it was already solved here: https://github.com/yuanyan/halogen/pull/8 and it came back. :-)

@tajo It is javascript source now when you install from npm, still need config reactify to dependencies?

Yep, I do. The problem is with
  "browserify": {
    "transform": [
      "reactify"
    ]
  },
  "browserify-shim": {
    "react": "global:React"
  },

This problem still actual. Maybe it will be better to remove browserify config from package.json and specify transforms in gulpfile directly?

Oh, I saw that transforms already specified in gulpfile.js, so I believe it is no longer needed in package.json.

I'm using babel instead of reactify and I'm still having this error.
I'm using halogen v0.1.10 from npm

+1

Hey, i am still getting this error, using react 0.14 and halogen 0.1.10. Any pointers ?

Well, reactify is based on react-tools which were deprecated since June and are completely removed in React 0.14.0. The official JSX transformer is Babel now. So this lib is broken. You can fork it if @yuanyan will not fix it or just copy&paste needed parts (my solution since all I really needed was just one loader).


[RNN]Cannot get saved .tflite model

System information

OS Platform and Distribution: Ubuntu 16.04
TensorFlow installed from: binary
TensorFlow version: tf-nightly 2.2.0

Command used to run the converter or code if you’re using the Python API
convert_pb2_tflite.txt
The output  log from the converter invocation
log.txt
Failure details
My .pb model is trained and saved in tensorflow 1.15.0 and I want to convert it to .tflite to deploy on CPU for better performance. When I run the uploaded file convert_pb2_tflite.txt(.py actually), the log attached above seems to include no warning and errors. But there is no tflite file in my save path. What's probably going wrong?
Thank you.

tf.Sign op is currently supported by the TFLite builtin operator set. You can use the Select TF op set for covering tf.Sign op. Please refer to the following guide pages.
https://www.tensorflow.org/lite/guide/ops_select
https://www.tensorflow.org/lite/guide/reduce_binary_size

Hi @abattery,
Thank you, I successfully convert following your instruction. But the .pb file before convert is 131MB, and converted .tflite file is 73MB, is this normal?
Thank you.

TFLite converter can trim the given graph based on input/output tensors for inference use cases. Often it can reduce overall binary size and the reduction rate can be varied depending on the given graph internal structure.

Hi @abattery,
I tried to do inference with .tflite model.
interpreter.allocate_tensors()   gives this error:
'RuntimeError: Regular TensorFlow ops are not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. Node number 3 (FlexSign) failed to prepare.'
According to https://github.com/tensorflow/tensorflow/issues/40157#issuecomment-680798660, seems like SELECT_TF_OPS is not supported by tflite_runtime. There is LSTM layer in my model, do I have to reimplement it with keras?https://github.com/tensorflow/tensorflow/issues/40157#issuecomment-691650953
Thank you

To run Select TF ops in android, the android application project requires additional dependency on org.tensorflow:tensorflow-lite-select-tf-ops.
https://www.tensorflow.org/lite/guide/ops_select#android_aar
If you want a trimmed aar, you can follow the below page:
https://www.tensorflow.org/lite/guide/reduce_binary_size

Hi @abattery ，
I'm running on Linux PC.

Great. TensorFlow Lite with select TensorFlow ops will be installed automatically with the TensorFlow pip package. You can also choose to only install the TensorFlow Lite Interpreter pip package.

Hi @abattery ,
Error
'RuntimeError: Regular TensorFlow ops are not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. Node number 3 (FlexSign) failed to prepare.'
seems to caused by tf.sign op in my model since I remove that op, the error is gone.
So do I have to implement this op myself or are there other solutions?
Thank you

How did you build your TFLite inference code? Are you using the PIP installer or building natively?
There are two ways to enable tf.Sign op by 1) implementing your own custom op 2) linking Flex delegate.

Hi @abattery ,
I build with pip installer. Could you please offer an instruction on how to Link Flex delegate?
Thank you

Flex delegate will be automatically enabled on Linux when you use tf 2.3.0 or later versions only.

OK, I will try tf-nightly 2.4.0. Thank you for your help and patience @abattery

Hi, @abattery,
I update to tf-nightly2.4 try to run inference on .tflitemodel, but  error occurs. Here is the log:

INFO: TfLiteFlexDelegate delegate: 11 nodes delegated out of 129 nodes with 3 partitions.
INFO: TfLiteFlexDelegate delegate: 0 nodes delegated out of 3 nodes with 0 partitions.
INFO: TfLiteFlexDelegate delegate: 3 nodes delegated out of 24 nodes with 3 partitions.
INFO: TfLiteFlexDelegate delegate: 0 nodes delegated out of 3 nodes with 0 partitions.
INFO: TfLiteFlexDelegate delegate: 3 nodes delegated out of 24 nodes with 3 partitions.
[{'name': 'input_x', 'index': 0, 'shape': array([ 1, 50], dtype=int32), 'shape_signature': array([-1, 50], dtype=int32), 'dtype': <class 'numpy.int32'>, 'quantization': (0.0, 0), 'quantization_parameters': {'scales': array([], dtype=float32), 'zero_points': array([], dtype=int32), 'quantized_dimension': 0}, 'sparsity_parameters': {}}]
[{'name': 'output/y_hat', 'index': 225, 'shape': array([   1, 2363], dtype=int32), 'shape_signature': array([  -1, 2363], dtype=int32), 'dtype': <class 'numpy.float32'>, 'quantization': (0.0, 0), 'quantization_parameters': {'scales': array([], dtype=float32), 'zero_points': array([], dtype=int32), 'quantized_dimension': 0}, 'sparsity_parameters': {}}]
2020-09-18 18:37:52.699048: W tensorflow/core/framework/op_kernel.cc:1763] OP_REQUIRES failed at tensor_array_ops.cc:1035 : Not found: Container __per_step_0 does not exist. (Could not find resource: __per_step_0/_tensor_arraysrnn/bidirectional_rnn/bw/bw/dynamic_rnn/input_0_1)
Traceback (most recent call last):
File "run_tflite.py", line 60, in
interpreter.invoke()
File "/home/ai/anaconda5/envs/tf-nightly2.4/lib/python3.6/site-packages/tensorflow/lite/python/interpreter.py", line 539, in invoke
self._interpreter.Invoke()
RuntimeError: Container __per_step_0 does not exist. (Could not find resource: __per_step_0/_tensor_arraysrnn/bidirectional_rnn/bw/bw/dynamic_rnn/input_0_1)
(while executing 'TensorArrayScatterV3' via Eager)Node number 129 (TfLiteFlexDelegate) failed to invoke.

Seems like it's the problem with BiLSTM Layer.
The code I define BiLSTM layer is:
from tensorflow.contrib import rnn
with tf.variable_scope("rnn", reuse=reuse):
lstm_fw_cell = rnn.BasicLSTMCell(hidden_size)
lstm_bw_cell = rnn.BasicLSTMCell(hidden_size)
if self.dropout_keep_prob is not None:
    lstm_fw_cell = rnn.DropoutWrapper(lstm_fw_cell, output_keep_prob=self.dropout_keep_prob)
    lstm_bw_cell = rnn.DropoutWrapper(lstm_bw_cell, output_keep_prob=self.dropout_keep_prob)

outputs, _ = tf.nn.bidirectional_dynamic_rnn(lstm_fw_cell, lstm_bw_cell, embedded_chars, dtype=tf.float32)

But I refer to info in https://www.tensorflow.org/lite/convert/rnn, bidirectional_dynamic_rnn() is available.
Refer to https://github.com/tensorflow/tensorflow/issues/40157#issuecomment-691650953, if lstm layer was created by keras, this error was solved. So do I have to implement BiLSTM layer in eras?
Thank you

Hi @le8888e
Sorry for encountering the issue.
TensorArrayScatterV3 op is currently not supported by either TensorFlow Lite builtin op set or Flex delegate. Unfortunately, the above TF graph should be rewritten by replacing the TensorArray with a 1-D TensorList through V2 control flow ops or concatenation operators if possible instead.
When you are creating a TF graph, could you invoke the following call before the TF graph creation part?
https://www.tensorflow.org/api_docs/python/tf/compat/v1/enable_control_flow_v2
Best regards,

Hi @abattery ,
I have tried to invoke 'tf.enable_control_flow_v2()'  before I create my TF graph. But I cannot converted trained .pb to .tflite. Here is the log:

Without 'tf.enable_control_flow_v2()', I can finish converting but collapse in inference like I mentioned before.
I will try to replace tf.nn.bidirectional_dynamic_rnn() by tf.lite.experimental.nn.bidirectional_dynamic_rnn() and let you know the result.
Thank you

Hi @abattery,
I try to replace tf.contirb.cnn.BasicLSTMCell() with tf.lite.experimental.nn.TfLiteLSTMCell()
and
tf.nn.bidirectional_dynamic_rnn() with tf.lite.experimental.nn.bidirectional_dynamic_rnn()
Then retrain my model. My tf version to train is tf 1.15.0
Error occurs:
AttributeError: module 'tensorflow._api.v1.lite.experimental.nn' has no attribute 'TfLiteLSTMCell'
Seems like tf.lite.experimental  is not supported by tf 1.*
Maybe I have to transfer my code to tf 2.* or keras : )

Hi @abattery ,
I implement my BiLSTM layer by Keras and FINALLY convert to .tflite model and successfully do inference.
NEW ISSUE:
The output logits of .pb and .tflite model is different, but both of they get the same classification category. Should the output of .pb and .tflite be exactly the same? Below are my codes for conversion and inference
convert.txt
inference.txt
Thank you

hi @abattery ,
After implementing BiLSTM by Keras, I successfully convert and inference .tflite model.
I want to serve .tflite model by tf-serving  on PC  with python api. Is  this feasible and is there any guidance for this?
THANK YOU

As you already asked the question to the tf-serving project, let's see their answers at https://github.com/tensorflow/serving/issues/1736.

Hi @abattery ,
I was building tf-nightly viac pip. Would XNNPACK built by default? And how can I check it?
Thank you

@le8888e
serving requires model asset to be a saved model, please create a new issue for any new questions. If tgis resolves your issue please move this to closed status.

@multiverse-tf Chao, could you answer @le8888e 's comment at https://github.com/tensorflow/tensorflow/issues/43270#issuecomment-696582237?

Hi @abattery ,
I was building tf-nightly viac pip. Would XNNPACK built by default? And how can I check it?
As for "XNNPACK built by default", do you mean by "applying XNNPACK by default" in the interpreter itself? If yes, this hasn't been enabled yet in tf-nightly build. So use XNNPACK delegate, pls follow this guide: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/xnnpack/README.md#using-xnnpack-engine-with-tensorflow-lite-interpreter

Thank you

@le8888e
Please update, if this issue can be moved to closed status.

@Saduf2019 ,
This issue can be closed, thank you.

Moving the issue to closed status with confirmation


Dockerfile with python image

Another docker build, this time, using a prebuilt image of python.
A less comprehensive git history and usage. Nice to have out of the box, less explanatory.

Don't want to merge it into master, so fetched it and merged it into the docket-with-python-image branch manually.


WIP algolia

Algolia demo

Hello @justinwhall,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


Bump download dependency

Current version doesn't honor strict-ssl option, causing a lot of trouble for users behind a proxy. For example, https://github.com/imagemin/optipng-bin/issues/74. The fix is in 5 branch here https://github.com/kevva/download/commit/559a6f5d576a9f8e3e929f2ae83f19cd14379ad9, but this project uses version 4.

/cc @kevva it is possible to upgrade download to latest version? Also it is avoid security problem using npm audit

I just looked into upgrading to the latest download version.  One test which downloads two tarballs and an uncompress JS file shows a change in behaviour.  In download@4 the 'extract' option meant 'try to extract', for download@>=5 nothing is returned when the file is not compressed (no error or data is returned).  I'm not sure if the solution is for download to fix it's handling of decompress so it returns the original file if it's not compressed, or if the test should be updated to expect non-compressed files to fail.

As mentioned in the reference, due to node version restrictions with got there is a mismatch for the engines requirement >=6 should be >=6 <=7 or got needs to be updated.

PR for this bump is in https://github.com/kevva/bin-wrapper/pull/65


Dynamic Framwork falling ipa validation

Did anyone else come across this?
There's so little information about it on stackoverflow

Me too


add a tutorial for creating a C3 library and importing it into a project or using standalone

Want a tutorial to create a simple C3 library and use it

Let's say you have foo.c with:
int foo_add(int x, int y) {
    int sum = 0;
    sum = x + y;
    return sum;
}

If you have a project then add:
{
  ...
  "c-sources":["foo.c"]
  ...
}

Now in your code, add:
extern int foo_add(int x, int y);

Now you can use it.


using devise_token_auth for API alongside standard devise gem for HTML view

I have a project which uses devise for authentication. Now we need an API. I am trying to use devise_token_auth for my API and standard devise for everything else.
First of all. Is this a good or bad idea?
I see that if I register user on html pages (which use devise) and then try to login with same credential on API (devise_token_auth) I receive:
{"errors":["Invalid login credentials. Please try again."]}
routes.rb
namespace :api, defaults: {format: :json}  do
  namespace :v1 do
    mount_devise_token_auth_for 'User', at: 'auth', skip: [:omniauth_callbacks]
  end
end

devise_for :users

I noticed that the problem was since I was wrapping email & password inside user block (this is how device works).

Hi @knagode , could you please help me as you have the configuration of the drivers, routes and models.
I've been trying for days to work together but I have not been able to achieve it


docs: add missing comma

fixes invalid json

Allow CI Workflow Run

[ ] approve CI run for commit: c5b55793d939a98edaf63f13be9ef5f4756f55c7

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer


Switched to go 1.18 in go.mod

Hi viddy team,
First of all thx for the awesome cross-platform watch alternative
Can I ask you to upgrade the go version (1.18) to pass go mod tidy.
Looks like viddy builds and works correctly on go 1.18.
Thx in advance!

Looks like test not passed because of  old version of golangci-lint.  I try to bump the version with separate commit.


Why is XidNew::new() marked unsafe?

My understanding is that unsafe should be used to mark code that requires that rustc disable some of its memory safety checks.  But I don't see how passing an invalid XID to XidNew::new() can ever cause memory safety issues.  The worst that can happen is that the X server will reply to a request with an error (like BadWindow), which the application will be forced to handle.  This doesn't seem meaningfully different to me than having a valid XID, acquired from Connection::generate_id(), that later becomes invalid due to some code destroying the resource (or even the X server doing so, out of your application's control), and then attempting to use it.  Either way, there do not seem to be any safety issues.
Am I missing something here?
(I also just noticed #167, and I think the same question applies to that.  Passing an invalid or otherwise inappropriate file descriptor obviously will not work very well, but should not cause memory safety issues.  If it does, then the underlying code itself has safety issues that should be worked out.)

You are correct. Unfortunately XidNew::new is a public API, therefore I would need to bump a major version to change it.

Ah, didn't realize removing unsafe from a trait would be a source-incompatible change, but I guess that makes sense that's the case.