MINOR: Improve the log output information of SocketServer

The printed object changes from endpoint to endpoint.listenerName, so the prompt information of the log should be kept uniform

Hi @dajac @showuon
please help to review the PR .
Thanks.

@RivenSun2 , thanks for the PR, but I don't think the endpoint output has any problem here. Let's see if there are other opinion from other reviewers. Thanks.

@showuon Thanks for your reply.
Here is the log printed by the previous code:
INFO [SocketServer brokerId=2] Created data-plane acceptor and processors for endpoint : EndPoint(null,9669,ListenerName(PLAIN_PLUGIN_SSL),SASL_SSL) (kafka.network.SocketServer)
Then this is the log printed by the code now:
INFO [SocketServer brokerId=2] Created data-plane acceptor and processors for endpoint : ListenerName(PLAIN_PLUGIN_SSL) (kafka.network.SocketServer)
I think the variable type we print changed and the variable type name for the log output should also change.
WDYT?

@RivenSun2 ,Thanks for the explanation. But I still think the endpoint is a better output. That is:

Created data-plane acceptor and processors for endpoint : ListenerName(PLAIN_PLUGIN_SSL)
Created data-plane acceptor and processors for listenerName : ListenerName(PLAIN_PLUGIN_SSL)

I would choose (1).
Let's see if there are other opinions. Thanks.

@showuon ok, thanks for your review.

I too prefer endpoint over listenerName. listenerName is really an internal concept, while endpoint is commonly used.

Hi @showuon  @mimaison
Thanks for your review.
let me close this PR.
Thanks.


[TensorIR][M1b] Schedule class

This PR is part of the TensorIR upstreaming effort (#7527) as the last PR of M1b stage, introducing the schedule class interface.
The schedule class is designed as an abstract interface, which allows future extension of implementation.
3 kinds of variables are introduced (Right now all "random" variables are deterministic)

Block RV: a random variable that points to a Block sref
Loop RV:  a random variable that points to a Block sref
Int RV: a random variable that evaluates to an integer

The user could manipulate (or more formally, schedule) the IR by using via those variables, e.g. split a loop into 2.

Loop RV: a random variable that points to a Block sref
I think it points to a Loop sref?

@yzh119 Right. Thanks for helping fix the typo :-)

@junrushao1994 please fix the lint error

@tqchen @jroesch @jcf94 @tkonolige @yzh119 Just updated the doc. Would be super helpful if you guys could help proofread :-)

@junrushao1994 there is a warning that needs to be fixed


createOrUpdate on partial objects causes nested objects to reset

Sample project
https://github.com/webstersx/realm-createOrUpdate-example/
For some endpoints, the API I'm working with returns partial objects to reduce DB workload. Trying to put the response through [ModelClass createOrUpdateInDefaultRealm:responseObject] causes the missing values in the nested objects to be replaced with defaults instead of performing a lookup and doing a partial update on that object instead.

An edits which worked for me but fails the unit tests are:
Before setting the value, recurse in and get the actual object based on the values -- this should find the existing object
0.91.4 ~> RLMObjectStore.mm:516
            id propValue = dict[prop.name];

/* from here */
            if (prop.type == RLMPropertyTypeObject) {
                propValue = RLMCreateObjectInRealmWithValue(realm, prop.objectClassName, value[prop.name], options);
            }
/* to here */

            if (propValue && (created || !prop.isPrimary)) {

I have another snippet that works for me but I'm it's late and I'm pretty sure I didn't think it through so I'll save myself the embarassment ;)

@webstersx this is a code path that we know has issues -- we'd love to see a pull request with some of the changes you've been playing around with!

This is likely a duplicate of https://github.com/realm/realm-cocoa/issues/1362


[Outlook] (preview) Remove queuing info and update error in event-bas…

…ed activation article

Docs Build status updates of commit 706199d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/autolaunch.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 9b4cc3d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/autolaunch.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Update webssh

To get the container ip address, try /home/site/ipaddr_ file first. If we hit an exception, try /tmp/ipaddr_ file next.

Updating webssh in both 1.7 and 1.8


Durk's Apology

I want to take a moment to address the mistakes I’ve made and offer a heartfelt apology to everyone affected. First and foremost, to the tiders: I deeply regret my decision to randomly gib. What I thought might be amusing in the moment was, in truth, disruptive, unfair, and entirely disrespectful to the effort and creativity that each of you bring to the game. I’ve come to understand how harmful my actions were—not just to individual players but to the sense of community and fairness that makes our station such a special place. My choices undermined that, and I am truly sorry for betraying your trust and spoiling your experience.
Additionally, I want to apologize for the decision to remove felinids from command roles. I now realize that this change was alienating and unfair, singling out a group of players and diminishing their ability to fully participate and enjoy the game. It’s clear to me that this decision wasn’t just about gameplay mechanics but also about respecting the diversity and inclusivity that keeps our community thriving. By making such a choice, I disregarded the values that make our server vibrant and welcoming to all. For that, I deeply regret my actions.
These mistakes have taught me a hard but important lesson about leadership, fairness, and the responsibility I have to this community. I don’t expect forgiveness right away, but I am committed to doing better—listening, learning, and making changes that restore trust and create a better experience for everyone. I hope you’ll give me the chance to prove that I can do right by you all moving forward.
:cl:

Remove: Revert tider changes.
Remove: Revert felinid changes.

Can we at least keep them as grimlins

its so joever tidebros

should've added "Sincerely, [your name]" to end of PR description

fakest apology ever

coward


Improve local testing

I wanted to pass a specific test to be run with pytest. Initially I came with modifying test.sh script so it accepts additional parameter. Then noticed it's already supported in tests-start.sh.
This PR therefore updates the backend README.md, advising you to run more flexible tests-start.sh which calls the other under the hood. Now that a single test can be run (useful in development), I'm also enabling --no-coverage flag for skipping coverage calculation during development. Additional --message argument is being introduced to ensure alignment with CI coverage message.

Thanks! I recently refactored how it all works to default to run the tests from the Python code directly, this way you can also add or remove any flags you need without having to add a wrapper script.
Given that, I'll pass on this one, but thanks! :coffee:


[get] Update docs to make sure the downside of using it is clear

Codecov Report

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

@@          Coverage Diff          @@
##           master    #11   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          23     23
  Lines         208    208
  Branches        8      8
=====================================
  Hits          208    208

Impacted Files
Coverage Δ

src/hash/index.ts
100% <ø> (ø)
:arrow_up:

src/get/index.ts
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


user status: Add icon for "unavailable".

We need a new availability icon (green/orange/white circle) for "unavailable" (called away in the code).
Currently we use a white circle (i.e. the same as the one for offline).
It should look like

Blown up, it'll maybe look like

All the piping for this is done (thanks Steve!); just need something for
.user_away_me .user-status-indicator, .user_away_them .user-status-indicator in right-sidebar.scss.
I already tried doing this with a linear gradient; I couldn't get something that looked great. I don't know much CSS (so feel free to ignore), but maybe one idea is:

Add a half circle on top (you can create a half circle by putting border radius on the top corners and not the bottom corners)
Add a radial-gradient that's white at the edge.

Add a radial-gradient that's white at the edge.

That is possible but more complicated  than another option that is more popular:
box-shadow.
It is obvious how you do one border with it. Less popular is the knowledge that you can have multiple box shadows.
I guess I can do a PR for that, since I am working on the mobile styling too.

ah, makes sense. Awesome, thanks!

This is what it looks like:
box-shadow: inset 0px 0px 0px 1px black;

Where 'black' is actually the background.
This might not even be needed if the horizontal line is added by something like ::after { content: something? }


Documentation

Svelte NodeGUI literally uses React NodeGUI under-the-hood so I'm somewhat tempted to just point users at that docs site and call it a job done; but at the same time, people like things in one place. Wondering whether there's a low-effort way to move forwards on this?
CC @a7ul

Sure 👍🏽

Works !!!!
https://svelte.nodegui.org/

@a7ul I'm still getting that "This connection is not private" message, even on a browser that won't have cached it yet – I'll wait for a bit and see if it self-resolves.

@a7ul It's working on my end now, too!

Congrats @shirakaba and @mrsauravsahu

Might have missed this 🙈  on the home page. The image has react code

@a7ul Ah, good catch! I may well have missed mentions of React if they were invisible to text search 😅
I'll be taking a break for now. If anyone finds further glaring issues with the docs, let's just collect them in this thread and I can address them in one go.

Woop woop 🚀
Super cool work!

Might have missed this 🙈 on the home page. The image has react code

Fixed in #33!

@shubhamzanwar we may be overthinking this, yeah – I’ll be making the repo public within the next 7 days, probably. Need to add typings for event handlers (ideally) and make the starter app first, but after that, we’re ready for a public alpha (beta?) fairly soon. I need to look into @mrsauravsahu’s issue about the phin package, which I’ll do as part of making the starter template.

An update on these blockers:

I've made a makeshift fix for the phin issue (#26, solved by commit https://github.com/nodegui/svelte-nodegui/commit/a62490ee391634bef6518ef0619ddd9fa4a01897). We can revisit it later to find a cleaner fix than exposing it as a peerDependency.
I've been looking into typings for event handlers on branch https://github.com/nodegui/svelte-nodegui/tree/feat/event-handler-typings. I've not had any luck, unfortunately. I'd rather not burn the weekend on it, so won't hold up the release on it (it's a nice-to-have but doesn't block the minimum viable product).
The starter template is ready for use at https://github.com/nodegui/svelte-nodegui-starter.

It would be extremely nice to have @mrsauravsahu's preprocessor integrated, but it's also not technically a release-blocker, as users can manually write in <svelte:options namespace="foreign"/> in the meantime.

So we could technically make a release announcement any time from now. I'm just thinking of the best time to maximise impact.
I happen to be doing an episode of Svelte Radio to talk about it on Tuesday – but that episode won't be released for 3-4 weeks (and I'm too impatient to wait that long). If we made the official announcement before then, the main benefit is that the hosts would have a chance to read up on it if they wanted to.
That said, my original tweet about the proof-of-concept, posted at 2:49 pm (unclear whether GMT or BST) on Sunday Oct 25th did very well. Which is either 30m or 1h30m from now!
My only other thought is that Tauri (a very similar project) recently made the front page of Hacker News by announcing on a Friday at 8 pm GMT. But I have historically had very poor success on Hacker News. But I've never had any luck on Hacker News anyway, so...

I'll close this issue in favour of more specific ones, now that we have a docs site up.
I'll announce the project on Twitter, Hacker News, and Reddit sometime between 8-9 pm GMT on Friday! Will share the link to the GitHub repo rather than the docs website.


Improvements

related to #1

Wow I am glad to see Eddu around.
fre. 31. jul. 2020, 05:53 skrev Eddú Meléndez Gonzales <
<EMAIL_ADDRESS>
Closed #4
https://github.com/openzipkin-contrib/zipkin-storage-forwarder/pull/4.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openzipkin-contrib/zipkin-storage-forwarder/pull/4#event-3606733746,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYAWSC457UE4MUETMR43R6I53RANCNFSM4IW6ISBQ
.


Tags page update

Adding new line in limits on Portal issue when API pages.

@rthorn17 - thank you for your contribution.
#sign-off


Custom interpolation layer. Gluon.

How to realize custom layer (bilinear interpolation) for gluon without input tensor shape?
The issue is hardlink to target size. I want to realize layer for resize arbitrary tensor with some factor.
I found, that SpatialTransformer is what i really need, but target size makes this code inflexible.
Could i realize custom symbol layer with symbol layer?
class Inter(Block):
def init(self, factor, target_size, **kwargs):
super(Inter, self).init(**kwargs)
    self._affine = mx.nd.reshape(mx.nd.array([[1. * factor, 0, 0],
                             [0, 1. * factor, 0]]), shape=(1, 6))

    self.target_size = target_size

def forward(self, x):
    out = mx.nd.SpatialTransformer(x,
                               self.affine_matrix,
                               self.target_size,
                               'affine',
                               'bilinear'
                               )

I guess this is what you are looking for https://github.com/apache/incubator-mxnet/pull/9688
import mxnet as mx
x1 = mx.nd.ones(shape=(2,3,4,4))
y1 = mx.nd.contrib.BilinearResize2D(x1, out_height=5, out_width=5)

class BilinearInterp(Block):
    def __init__(self, factor, target_height, target_width, **kwargs):
        super(BilinearInterp, self).__init__(**kwargs)
        self.height = target_height
        self.width = target_height
    def forward(self, x):
        return mx.nd. BilinearResize2D(x, self.height, self.width)


When pitting someone, save the roles the person had before being pitted. When unpitting them the roles they have prior to being pitted should be applied on them again.

Create a file of the person that was pitted
The filename is the ID of the person who was pitted
Inside the file on each line is the ID of each role the person had
So when we unpit someone we compare the ID of the person being unpitted with the filenames and then when they match it opens the file to get the role ID's and apply them

done
b13db7c


firefox GUI unresponsive

Issue description
I am not sure why but for the past 6 months, firefox sometimes doesn't work. aka the GUI launches, I can type an url but it won't load the url or I can create a tab via the + button, but can't click on the tab itself to switch to it. Or I can click on the menu but it won't open any window ("preferences" for instance)  Basically nothing can be done and I have to exit firefox.
Sometimes I would reboot and firefox would work again. I try with a pristine profile, even removed my ~/.mozilla folder to no avail.
Thus I don't think it's my config.
I didn't want to post an issue as I couldn't find any other issue with a similar problem and tried to use qutebrowser instead but for some surf sessions, I really need firefox.
Here is a log of a session where the GUI was not responsive. There are multiple warnings/errors but even when it works, there are some warnings too so I am not sure what to make of it. Hopefuly someone else can. Just knowing others have the same issue would be nice for my sanity.
$ firefox
(firefox:20913): Gtk-WARNING **: 22:18:34.852: Theme parsing error: <data>:1:34: Expected ')' in color definition

(firefox:20913): Gtk-WARNING **: 22:18:34.852: Theme parsing error: <data>:1:77: Expected ')' in color definition

(firefox:20913): GLib-GIO-CRITICAL **: 22:18:34.902: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(firefox:20913): GLib-GIO-CRITICAL **: 22:18:34.902: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(firefox:20913): GLib-GIO-CRITICAL **: 22:18:34.902: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(firefox:20913): GLib-GIO-CRITICAL **: 22:18:34.903: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(firefox:20913): GLib-GIO-CRITICAL **: 22:18:34.903: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(/nix/store/1w135hy8rglnzhaa382vdm7yfjzzq165-firefox-unwrapped-62.0.3/lib/firefox/firefox:20972): Gtk-WARNING **: 22:18:35.241: cannot open display: :0
[Parent 20913, Gecko_IOThread] WARNING: pipe error: Broken pipe: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 726
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: pipe error (50): Connection reset by peer: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 353
[Parent 20913, Gecko_IOThread] WARNING: pipe error (52): Connection reset by peer: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 353
[Parent 20913, Gecko_IOThread] WARNING: pipe error (54): Connection reset by peer: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 353
[Parent 20913, Gecko_IOThread] WARNING: pipe error (55): Connection reset by peer: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 353
[Parent 20913, Gecko_IOThread] WARNING: pipe error (61): Connection reset by peer: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 353

###!!! [Parent][MessageChannel] Error: (msgtype=0x170061,name=PBrowser::Msg_UpdateDimensions) Channel error: cannot send/recv

###!!! [Parent][MessageChannel] Error: (msgtype=0x170080,name=PBrowser::Msg_Destroy) Channel error: cannot send/recv

JavaScript error: chrome://global/content/bindings/remote-browser.xml, line 233: TypeError: this.frameLoader.tabParent is null

(/nix/store/1w135hy8rglnzhaa382vdm7yfjzzq165-firefox-unwrapped-62.0.3/lib/firefox/firefox:21043): Gtk-WARNING **: 22:18:36.230: cannot open display: :0
[Parent 20913, Gecko_IOThread] WARNING: pipe error: Broken pipe: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 726
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-62.0.3/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 22
[Parent 20913, Gecko_IOThread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-6

Steps to reproduce
I don't know why sometimes it's responsive while sometimes not. I just start it, then I can't do anything.
I run i3 as a WM and i3 is started by home-manager.
Technical details
nixos-unstable for the past months with the same effect.

On the off chance it's caused by lost run-user directory: Check if systemctl --user has a run-user-1100.mount (or whatever your UID is).

I rebooted and it worked. I suspect this might be linked with if I rebuild or not (and I often run nixos-rebuild). I will pay more attention.
In a successful run I see
$ firefox -ProfileManager
(firefox:2072): Gtk-WARNING **: 09:35:21.178: Theme parsing error: <data>:1:34: Expected ')' in color definition

(firefox:2072): Gtk-WARNING **: 09:35:21.178: Theme parsing error: <data>:1:77: Expected ')' in color definition
JavaScript error: jar:file:///nix/store/1w135hy8rglnzhaa382vdm7yfjzzq165-firefox-unwrapped-62.0.3/lib/firefox/omni.ja!/components/XULStore.js, line 65: Error: Can't find profile directory.

(firefox:2072): Gtk-WARNING **: 09:35:22.910: Theme parsing error: <data>:1:34: Expected ')' in color definition

(firefox:2072): Gtk-WARNING **: 09:35:22.910: Theme parsing error: <data>:1:77: Expected ')' in color definition
JavaScript warning: moz-extension://af1b6d11-18d3-47d9-8192-40b947982f84/js/omega_target.min.js, line 4906: unreachable code after return statement
JavaScript warning: moz-extension://af1b6d11-18d3-47d9-8192-40b947982f84/js/omega_target.min.js, line 4906: unreachable code after return statement
JavaScript error: moz-extension://b9f363a5-0d6d-4e9c-b556-8b24b812f399/common/tree.js, line 572: Error: Could not establish connection. Receiving end does not exist.
JavaScript error: moz-extension://b9f363a5-0d6d-4e9c-b556-8b24b812f399/common/tree.js, line 323: Error: Could not establish connection. Receiving end does not exist.
JavaScript error: http://www.lefigaro.fr/, line 188: ReferenceError: FigAnalytics is not defined
Log warning: The log 'Services.Common.RESTRequest' is configured to use the preference 'services.common.log.logger.rest.request' - you must adjust the level by setting this preference, not by using the level setter
JavaScript error: https://a.f1g.fr/flive/static/loop-widget/bundle.js, line 1: ReferenceError:

The error to check for might be then WARNING: pipe error: Broken pipe:

Makes sense. I also have a desktop machine that's subject to regular rebuilds. Also suffers some weird eventual failures. Usually fixed by reboot too.

hasn't happened as of late. Will reopen if it does


Add links to README

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Surface API Team seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


first compilation of the AsYouTypeFormatter

Using pull requests once more for giving you a status report. Please bear with me and DO NOT merge :-)
The good news is that I am able to compile both the Google demo and the master of this project of yours.
This time my spike is about the AsYouTypeFormatter(**). I have modified your libphonenumber.js to include the preparation of a simple member function asYouTypeFormatter(countryCode).
The sample is built around html/loader.html - the task is to read the first input char-by-char and put in the second input the real-time formatted stuff.
It all works fine  in compiling and creating the function, but the created AYTF objects are obfuscated. Since I need to use the inputDigit function in my sample, as it is done inside the official demo script, I see two alternative roads ahead:

create the asYouTypeFormatter as a separated, full-fledged object with all the methods contained in its original source code, the same way you created your phoneUtils. This will possibly need a build.xml on its own.
hardcode the sole usage of inputDigit inside the produced AYTF by acting somehow on the asYouTypeFormatter function

The second path is more hazy in my thoughts, because the product of the asYouTypeFormatter function will have to interact with the DOM elements where the text gets typed by the user. This looks also messy to me, we'll see.
Every comment is welcome.
(**) I have done some good progress also about the preparation of the single-country deliverables, I will update the other PR probably tomorrow.

I agree that the first approach you propose would be easier, but I'm not sure what dependencies you would be duplicating if they didn't come out of the same build file. I'd love to see if it's possible to dive in and snag the inputDigit function as describe in your second approach.


discovery/consul: select services using regexp

This feature is useful when you have a lot of services to watch
and these services have the same name pattern.
You will be able to watch all of them with one regexp,
and won't need to list all defined service names.

Is there some reason a keep relabel action won't do what you need?

Taking from consul all services and then filter them with __meta_consul_service label has been tested.
It almost works. But, according to what I have seen, it starts periodically query (watch) each service registered in consul, which is a problem in my case.

Yes, that's how it works. Why is this a problem for you?

Awesome!
We have more than 3-4k services in Consul, more-less dynamic. And after filtering with regexp prometheus was creating 3-4k connections and then requests to Consul to watch each service, even if it not fit regexp. So, prometheus was fully utilize 100% of 12 CPU cores, or Consul was crashing.

This sounds to me like a performance issue on the Consul end.
This is probably a breaking change, so cannot be accepted in 1.0. I suggest manually populating the config with the services you want.

@brian-brazil manually populating config files is kind of what we try to avoid when using consul :)
It's clear that the consul client should not be opening one TCP connection per service.
Howether, it's also a performance issue if prometheus starts watching thousands of services when it only want to look at the ones with a name starting by 'foo'.
Consul services seem to use only [a-zA-Z0-9-], so it should not be a breaking change. Worst case we could add 'service_regexp' on top of 'service'

The other way to do it is to change consul discovery mechanism.
Currently it fetches the service list, filter on exact service name and then open a connection to each service one at a time in order to filter by tags.
As the tags are available when prometheus fetches consul's catalog, it should be possible to filter services by tags before opening connections to them.

@brian-brazil Prometheus that use 12 CPU for 100% for me doesn't looks like performance issue on Consul side

Consul services seem to use only [a-zA-Z0-9-], so it should not be a breaking change.

Consul services are not restricted to that, merely recommended.

@brian-brazil Prometheus that use 12 CPU for 100% for me doesn't looks like performance issue on Consul side

Watching any number of services should take close to no cpu for a client, only actual changes should require cpu. If that's not the case that's a design failure on the part of the system offering discovery.

Consul services are not restricted to that, merely recommended.

Good point (https://github.com/hashicorp/consul/commit/6290cb93bd941f6834c7b6caeaccf2ae78a89375)
Still, with the current consul implementation it sounds like a real issue for prometheus users. This can easily be fixed that filtering on tags or names. What about adding an additional config parameter to do that ?

That'd be a bit messy. What does the Consul API offer natively?

When prometheus fetches services from the catalog, it also retrieves tags.
So it's possible to filter by tags with regex before opening a connection to them.

So you're saying Consul has no native features to do filtering?

What I mean is that in consul.go there is a shouldWatch function that do some filtering only by service name.
In consul the method's signature is: func (c *Catalog) Services(q *QueryOptions) (map[string][]string, *QueryMeta, error)
The first element in the return type is a map for serviceName -> tags[]
And in prometheus consul.go#L148
(https://github.com/prometheus/prometheus/blob/master/retrieval/discovery/consul/consul.go#L148)
we only use the keys of that map to filter out services by name.
But in our case we have multiple services names, we cannot do regex to filter them, and then we do some filtering with keep on tags.
However this filtering is done after connecting first to each services.
It is possible to do this filtering before connection to them.

With this sort of thing we want to offer what filtering the SD mechanism natively offers, rather than inventing our own Prometheus-specific way of doing things as we don't want to overcomplicate things by adding yet more abstractions.

Currently no. It seems that there are no filtering on the catalog services end point. :(

Having Similar issue in consul discovery. I tried to to use the same config as shown in Brian's blog by just changing the regex option
    relabel_configs:       - source_labels: [__meta_consul_tags]         regex: .*,jmx-monit,.*         action: keep       - source_labels: [__meta_consul_service]         target_label: job
Though it discovers the service and adds the target properly. I get lot of exception as below. I have 1000s of services registered in Consul.
level=error msg="Error refreshing service task-0: Get http://prometheus.mesos:8500/v1/catalog/service/xyz?index=330336373&wait=30000ms: dial tcp xx.xx.xx.xxx:8500: connect: cannot assign requested address" source="consul.go:218"
Is there any settings that I need to make to fix this error.
Note : I am running Prometheus as a Docker container
It would great if i get some help in addressing this issue. Way too many exceptions in my logs

cannot assign requested address

You ran out of TCP local ports. Does the consul library not using connection pooling?

@brian-brazil I am using Consul version v0.6.2. May be its not using connection pooling? not sure.. any suggestions?

This would be in the client library, not the server.

@brian-brazil Which Client Library are you taking about? I am getting this exception in the prometheus logs. I have a simple setup with Prometheus V1.2.1 discovering the target using Consul SD. So If I dont specify the service name to be filtered, I get this error as its trying to query all the services with this exception level=error msg="Error refreshing service xyz: Get http://prometheus.mesos:8500/v1/catalog/service/xyz?index=330336373&wait=30000ms: dial tcp xx.xx.xx.xxx:8500: connect: cannot assign requested address" source="consul.go:218"

The hashicorp consul client api that Prometheus is using.

@brian-brazil it appears that way, consul library not using connection pooling. So not sure if you can do something on the Prometheus side to overcome this? If thats a possibility, please let me know.
Also I think this PR will help in this scenario as well. Any timeline on when this will be merged with Master?

So not sure if you can do something on the Prometheus side to overcome this?

It needs to be fixed upstream then, which will also make SD faster.

So after multiple months https://github.com/hashicorp/consul/pull/2549 is not getting anywhere.
How could we go forward with this ?


import numba crashed after import torchvision

[x] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

If I import numba after torchvision:
import torchvision
print("import torchvision done...")
import numba
print("import numba done...")

The program can only successfully import torchvision and seems to be stuck in a dead loop. There is nothing happened when I press Ctrl+C. When I use the 'top' command to check the system process, I found that the python process has disappeared.
Import in other way works fine:
import numba
import torchvision

Versions:
Python 3.7.0 (default, Oct  9 2018, 10:31:47)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-66-generic x86_64)
numba: 0.46
torchvision: 0.3.0

Do you see the same freeze if you import torch?:
 import torch
print("import torch done...")
import numba
print("import numba done...")

I wonder if this is an LLVM initialization conflict with PyTorch.

Do you see the same freeze if you import torch?:
import torch
print("import torch done...")
import numba
print("import numba done...")

I wonder if this is an LLVM initialization conflict with PyTorch.

Yes，I see the same freeze after import torch. The program only output "import torch done..." and freezed

This seems to be fixed with the latest Numba (0.51.2) and PyTorch 1.5.0 :
$ conda list | grep 'torch \|numba '
numba                     0.51.2          np1.11py3.7h04863e7_g9d5709615_0    numba
pytorch                   1.5.0           cpu_py37hd91cbb3_0

$ cat issue4870.py
import torch
print("import torch done...")
import numba
print("import numba done...")

$ python issue4870.py
import torch done...
import numba done...

Closing this issue, it is assumed that the above resolved the reported issue, if this is not the case please reopen the issue with new information. Many thanks.


dicomParser skips PixelData if it can not determine the length of an unknown tag

I have an issue with a dicom file that has an unknown tag before Pixel Data. dicomParser tries to determine the length of this unknown tag and checks only ItemDelimitationItem (fffe, e00d), not SequenceDelimitationItem (fffe, e0dd), so it can not determine its length and sets its length to the end of the buffer, so skips Pixel Data.
My quick fix is that i check SequenceDelimitationItem in findItemDelimitationItemAndSetElementLength, but not sure if that is a good fix.
if(elementNumber === 0xe00d || elementNumber === 0xe0dd) {     ... }
This is the end of its dicom dump which shows the unknown tag and Pixel Data:
(0507,1001) SQ (Sequence with undefined length #=1)     # u/l, 1 Unknown Tag & Data
(fffe,e000) na (Item with explicit length #=8)          #  74, 1 Item
(0507,0000) UL 62                                       #   4, 1 PrivateGroupLength
(0507,1002) ?? (no value available)                     #   0, 1 Unknown Tag & Data
(0507,1003) ?? (no value available)                     #   0, 1 Unknown Tag & Data
(0507,1004) ?? (no value available)                     #   0, 1 Unknown Tag & Data
(0507,1005) ?? 30\20                                    #   2, 1 Unknown Tag & Data
(0507,1006) ?? 30\20                                    #   2, 1 Unknown Tag & Data
(0507,1007) ?? (no value available)                     #   0, 1 Unknown Tag & Data
(0507,1008) ?? 30\20                                    #   2, 1 Unknown Tag & Data
(fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem)               #   0, 0 SequenceDelimitationItem
(7fe0,0010) OB (PixelSequence #=2)                      # u/l, 1 PixelData
(fffe,e000) pi (no value available)                     #   0, 1 Item
(fffe,e000) pi ff\d8\ff\c3\00\0b\10\06\01\03\04\01\00\11\00\ff\c4\00\24\00\00\00... # 1250014, 1 Item
(fffe,e0dd) na (SequenceDelimitationItem)               #   0, 0 SequenceDelimitationItem
I can not share the file, because anonymization tools remove that unknown tag.

I don't think that's the fix we want. I'm actually not sure how dicomParser is even getting into findItemDelimitationItemAndSetElementLength. It shouldn't be using that on the SQ element, only on individual items. Do you know?
It's hard to tell from just the dump, but it looks like that item has an explicitly-defined length of 8 bytes, which wouldn't even cover the (0507,0000) element. If that's the case, per the standard there wouldn't even be an item delimitation item and dicomParser should be throwing an exception when it looks for a second item and doesn't find the item tag (see readSequenceItem). That would mean the file isn't standard-compliant.

This sounds like an invalid DICOM file, especially if anonymization tools remove the tag.  Your fix may solve your problem, but it would make the library non standards compliant so is not an acceptable change for the library.  My general philosophy is to keep the library standards compliant but provide hooks when possible for higher levels to implement workarounds for non standard data.  Unfortunately I can't really suggest any hooks for a workaround without looking at the file itself

Rereading the DICOM standard on undefined length handling and it looks like we have the logic wrong for non SQ elements.  Use of undefined length appears to be restricted to specific VR's and is also parsed in the same way as a SQ element.  I need to find some data sets that have this condition so I can verify a fix, if anyone has an anonymized one please send it my way :)

Just pushed version 1.7.3 which should fix this - can you please test and confirm?  Your workaround fix is not correct

actually test 1.7.4, a bug slipped into 1.7.3 on accident :(

1.7.4 works fine for that case


[REEF-844] Allow group comm user to choose topology implementation

This addressed the issue by

Add newCommunicationGroup api with topology argument in GroupCommDriver

JIRA:
REEF-844

Hi, @gyeongin . It looks good to me. I'll merge this.


Avoid O(N) query pitfall for /users endpoint.

We now use a .values query to get just the fields we need
in order to fulfill '/json/users' requests.
The main benefit is that we don't do O(N) queries for bot
owners, but we also have less data on UserProfile to process.

This looks great, merged, thanks @showell!
A good follow-up project that I notice on reading this is that we should probably convert the bot_owner data transmission to be based on user_id, not email.  That one should be pretty safe to do now, since I'm not aware of anyone interacting with that data in mobile/bots code.


Don't force a specific version of ClojureScript and core.async onto t…

…he users of the library.

@arichiardi I would say yes :) Thank you!


CI Update

Docs Build status updates of commit 756a3b5:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

_dependentPackages/ECMA2Yaml/tools/Run.ps1
:x:Error

Details

_dependentPackages/ECMA2Yaml/tools/Run.ps1

Line 89: [Error] Error happened when executing plug-in script _dependentPackages/ECMA2Yaml/tools/Run.ps1 at step docset_prebuild. Please check your .openpublishing.publish.config.json?on the configuration of the plug-ins or ask for help?in Docs Support teams channel. Detailed error message: {"message":"Duplicated DocId found: M:Microsoft.Office.Interop.InfoPath._ApplicationEvents_SinkHelper.XDocumentBeforeSave(Microsoft.Office.Interop.InfoPath._XDocument,System.Boolean@)","source":"ECMA2Yaml","file":"\\officedocs-dev-infopath-form\\xml\\Microsoft.Office.Interop.InfoPath\\_ApplicationEvents_SinkHelper.xml","line":null,"message_severity":0,"message_severity_string":"Error","code":"ECMA2Yaml_DocId_Duplicated","date_time":"2020-03-12T16:41:22.8044632Z","log_item_type":2,"log_item_type_string":"User","category":"ECMA2Yaml"}.

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

Docs Build status updates of commit d83564e:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

_dependentPackages/ECMA2Yaml/tools/Run.ps1
:x:Error

Details

_dependentPackages/ECMA2Yaml/tools/Run.ps1

Line 108: [Error] Error happened when executing plug-in script _dependentPackages/ECMA2Yaml/tools/Run.ps1 at step docset_prebuild. Please check your .openpublishing.publish.config.json?on the configuration of the plug-ins or ask for help?in Docs Support teams channel. Detailed error message: {"message":"Duplicated DocId found: M:Microsoft.Office.Interop.InfoPath._ApplicationEvents_SinkHelper.XDocumentBeforeSave(Microsoft.Office.Interop.InfoPath._XDocument,System.Boolean@)","source":"ECMA2Yaml","file":"\\officedocs-dev-infopath-form\\xml\\Microsoft.Office.Interop.InfoPath\\_ApplicationEvents_SinkHelper.xml","line":null,"message_severity":0,"message_severity_string":"Error","code":"ECMA2Yaml_DocId_Duplicated","date_time":"2020-04-09T13:06:34.5586669Z","log_item_type":2,"log_item_type_string":"User","category":"ECMA2Yaml"}.

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


https://cloudidentity.com -> http://cloudidentity.com

https version of cloudidentity.com is not configured and points to a stub -> switch to http version

Hi @AliakseiT, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


[restinio] update to v.0.6.11

RESTinio updated to the latest version.

Thanks for your contribution!


HTMLColor fields should accept string too

HTMLColor fields should accept string values since HTMLColor is just a color name string.
Currently you can't use anything but named colors for CSSStyleDeclaration.Color.
HTMLColor color = HTMLColor.Blue;
or cast
HTMLColor color = (HTMLColor) "#0000FF";
or static method
HTMLColor color = HTMLColor.FromString("#0000FF");

Hello @ gogglespisano,
I am sorry for the delay. Each property with HTMLColor type has a counterpart with string type.
For example, there are Color and ColorString properties.
Live Example
using Bridge;
using Bridge.Html5;

namespace Test
{
    public class TestCSS
    {
        [Ready]
        public static void Main()
        {
            ButtonElement button = new ButtonElement();
            button.InnerHTML = "Button 1";
            button.Style.Color = HTMLColor.Green;

            Document.Body.AppendChild(button);

            button = new ButtonElement();
            button.InnerHTML = "Button 2";
            button.Style.ColorString = "yellow";

            Document.Body.AppendChild(button);
        }
    }
}

We are discussing changing the Style.Color Type from an Enum to a String.
We would then also change HTMLColor from an Enum to static Class with a list of static String values.
This would represent a breaking-change, but would then allow both the following syntax options:
button.Style.Color = HTMLColor.Green;
button.Style.Color = "yellow";

We would also remove the Style.ColorString Property as it would no longer be required.
If you have any feedback regarding this change, please let us know. Our goal it to incorporate this change into the upcoming 1.10 release.

I agree with the proposed change.  I didn't use HTMLColor as an enum other than setting a Color field.  The only other times I used HTMLColor, I added .ToString(), so converting it to a string would end up being less code for me.
I also think it will avoid confusion, not having to know there's two different properties for the same thing depending on if you want a custom color or a named color.

breaking-change: removed the Style.ColorString property


Set size programmatically

Hi,
Thanks for your useful and simple library.
I'm looking for a way to update height of the panel programmatically but it seems like there is no "controlled" mode.
So how to do it ?

This is currently not supported. Is it same as #17? If so, let's discuss and +1 there.


Reported version information is missing from cargo install'd binaries

After cargo install linera-service, linera --version reports:
$ linera --version
linera
Linera protocol: v0.10.1
RPC API hash: package not used
GraphQL API hash: package not used
WIT API hash: package not used
Source code: https://github.com/linera-io/linera-protocol/tree/v0.10.1

This implies that linera-version was unable to find the component packages in the dependency graph at build time, which shouldn't happen — maybe related to https://github.com/linera-io/linera-protocol/pull/1837.

This can be reproduced by cargo installing from the cache path, e.g.
$ cargo install --path ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linera-service-0.11.0/

but cargo metadata in the offending directory seems correct.


Feat: Feedback form enchancing

Describe the feature
I want to enhance the feedback form by adding icons to it.
Please assign this task to me.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Hello sir I'm Husandeep Singh here GSSOC contributor .  I would like to work on this issue .
BEFORE

AFTER

Hii , @Suchitra-Sahoo please see this Responsive  feedback in both desktop and tablet mode . if you like it then please assign me this issue
by @Husan7

Issue already assigned. But can you work on creating a separate page for contact us where the user gets redirected on clicking with proper design and styling as provided by you in sample.


fs, win: add support for user symlinks

Add SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flag to CreateSymbolicLink call which allows unelevated users to create symbolic link on supported platforms. This requires Windows Creators Update installed (build 15603 is first public Creators Update build) and Developer Mode enabled (we check this trough the registry).
Fixes: https://github.com/libuv/libuv/issues/1157

ping?

@santigimeno Updated, PTAL

Updated, PTAL.
CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/288/

@cjihrig updated

@paulcbetts does it look good to you now?

ping?

I've made a second, simpler version of this, PTAL: https://github.com/libuv/libuv/pull/1466

Closing in favor of https://github.com/libuv/libuv/pull/1466


Attempt using coremltools 5.2.0

Unfortunately, it produces MatMul instead of InnerProduct.
$ ipython
Python 3.9.17 (main, Jul  5 2023, 20:41:20)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.15.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import coremltools as ct
2023-09-12 02:30:17.496151: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2023-09-12 02:30:17.496223: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
WARNING:root:TensorFlow version 2.7.0 has not been tested with coremltools. You may run into unexpected errors. TensorFlow 2.6.2 is the most recent version that has been tested.
WARNING:root:Keras version 2.7.0 has not been tested with coremltools. You may run into unexpected errors. Keras 2.6.0 is the most recent version that has been tested.

In [2]: import keras

In [3]: from keras import layers

In [4]: input_img = keras.Input(shape=(784,))

In [5]: encoded = layers.Dense(128, activation='relu')(input_img)
2023-09-12 02:36:30.107331: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2023-09-12 02:36:30.107381: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2023-09-12 02:36:30.107425: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (Steven-VM): /proc/driver/nvidia/version does not exist
2023-09-12 02:36:30.107728: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

In [6]: encoded = layers.Dense(64, activation='relu')(encoded)

In [7]: encoded = layers.Dense(32, activation='relu')(encoded)

In [8]: decoded = layers.Dense(64, activation='relu')(encoded)

In [9]: decoded = layers.Dense(128, activation='relu')(decoded)

In [10]: decoded = layers.Dense(128, activation='relu')(decoded)

In [11]: autoencoder = keras.Model(input_img, decoded)

In [12]: autoencoder.compile(optimizer='adam', loss='binary_crossentropy')

In [13]: mlmodel = ct.converters.convert(autoencoder)
2023-09-12 02:38:17.113871: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0
2023-09-12 02:38:17.114244: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session
2023-09-12 02:38:17.201999: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:1149] Optimization results for grappler item: graph_to_optimize
  function_optimizer: function_optimizer did nothing. time = 0.027ms.
  function_optimizer: function_optimizer did nothing. time = 0ms.

2023-09-12 02:38:17.262636: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0
2023-09-12 02:38:17.262953: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session
2023-09-12 02:38:17.317282: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:1149] Optimization results for grappler item: graph_to_optimize
  constant_folding: Graph size after: 33 nodes (-12), 44 edges (-12), time = 3.609ms.
  dependency_optimizer: Graph size after: 20 nodes (-13), 19 edges (-25), time = 0.255ms.
  debug_stripper: debug_stripper did nothing. time = 0.058ms.
  constant_folding: Graph size after: 20 nodes (0), 19 edges (0), time = 0.938ms.
  dependency_optimizer: Graph size after: 20 nodes (0), 19 edges (0), time = 0.114ms.
  debug_stripper: debug_stripper did nothing. time = 0.012ms.

2023-09-12 02:38:17.367846: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0
2023-09-12 02:38:17.368121: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session
2023-09-12 02:38:17.413107: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:1149] Optimization results for grappler item: graph_to_optimize
  function_optimizer: function_optimizer did nothing. time = 0.041ms.
  function_optimizer: function_optimizer did nothing. time = 0.001ms.

2023-09-12 02:38:17.470683: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0
2023-09-12 02:38:17.470926: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session
2023-09-12 02:38:17.512472: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:1149] Optimization results for grappler item: graph_to_optimize
  constant_folding: Graph size after: 33 nodes (-12), 44 edges (-12), time = 2.599ms.
  dependency_optimizer: Graph size after: 20 nodes (-13), 19 edges (-25), time = 0.236ms.
  debug_stripper: debug_stripper did nothing. time = 0.047ms.
  constant_folding: Graph size after: 20 nodes (0), 19 edges (0), time = 0.693ms.
  dependency_optimizer: Graph size after: 20 nodes (0), 19 edges (0), time = 0.115ms.
  debug_stripper: debug_stripper did nothing. time = 0.012ms.

Running TensorFlow Graph Passes: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00, 18.48 passes/s]
Converting Frontend ==> MIL Ops: 100%|████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 5867.39 ops/s]
Running MIL Common passes: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████| 34/34 [00:00<00:00, 4350.14 passes/s]
Running MIL Clean up passes: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:00<00:00, 3448.32 passes/s]
Translating MIL ==> NeuralNetwork Ops: 100%|██████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:00<00:00, 3093.83 ops/s]

In [14]: builder = ct.models.neural_network.NeuralNetworkBuilder(spec=mlmodel._spec)

In [15]: builder.inspect_layers()
[Id: 11], Name: model/dense_5/Relu (Type: activation)
          Updatable: False
          Input blobs: ['model/dense_5/MatMul']
          Output blobs: ['Identity']
[Id: 10], Name: model/dense_5/MatMul (Type: batchedMatmul)
          Updatable: False
          Input blobs: ['model/dense_4/Relu']
          Output blobs: ['model/dense_5/MatMul']
[Id: 9], Name: model/dense_4/Relu (Type: activation)
          Updatable: False
          Input blobs: ['model/dense_4/MatMul']
          Output blobs: ['model/dense_4/Relu']
[Id: 8], Name: model/dense_4/MatMul (Type: batchedMatmul)
          Updatable: False
          Input blobs: ['model/dense_3/Relu']
          Output blobs: ['model/dense_4/MatMul']
[Id: 7], Name: model/dense_3/Relu (Type: activation)
          Updatable: False
          Input blobs: ['model/dense_3/MatMul']
          Output blobs: ['model/dense_3/Relu']
[Id: 6], Name: model/dense_3/MatMul (Type: batchedMatmul)
          Updatable: False
          Input blobs: ['model/dense_2/Relu']
          Output blobs: ['model/dense_3/MatMul']
[Id: 5], Name: model/dense_2/Relu (Type: activation)
          Updatable: False
          Input blobs: ['model/dense_2/MatMul']
          Output blobs: ['model/dense_2/Relu']
[Id: 4], Name: model/dense_2/MatMul (Type: batchedMatmul)
          Updatable: False
          Input blobs: ['model/dense_1/Relu']
          Output blobs: ['model/dense_2/MatMul']
[Id: 3], Name: model/dense_1/Relu (Type: activation)
          Updatable: False
          Input blobs: ['model/dense_1/MatMul']
          Output blobs: ['model/dense_1/Relu']
[Id: 2], Name: model/dense_1/MatMul (Type: batchedMatmul)
          Updatable: False
          Input blobs: ['model/dense/Relu']
          Output blobs: ['model/dense_1/MatMul']
[Id: 1], Name: model/dense/Relu (Type: activation)
          Updatable: False
          Input blobs: ['model/dense/MatMul']
          Output blobs: ['model/dense/Relu']
[Id: 0], Name: model/dense/MatMul (Type: batchedMatmul)
          Updatable: False
          Input blobs: ['input_1']
          Output blobs: ['model/dense/MatMul']

In [17]: ct.__version__
Out[17]: '5.2.0'

The Keras model here comes from @danielnugraha's old notebook.

Maybe we have to use these versions?

tf = 1.14 keras = 2.2.4 coreml = 3.0

https://github.com/apple/coremltools/issues/534#issuecomment-975710536

Having read the source code for 5.2, in converters/keras/_keras_converter.py Dense is converted to inner product, so it should work. I'll try again.

Yeah, it doesn't work on Python 3.10: https://colab.research.google.com/drive/1k9HU8wIZs5_Mwb-77Xk3zUilxqvw0nM8#scrollTo=mZ-tvdBrayY-

A Colab notebook with Python 3.9: https://colab.research.google.com/drive/1uqtXiaxjGB4AuhcoDEmb33vjwL2meZDi?usp=sharing

Keras 2.6 does not work with the protobuf version google-colab needs, and manually installing the old version of protobuf broke the notebook runtime via numpy incompatibility: https://colab.research.google.com/drive/1LATvDyR9DBvnfuzokINf3hqQnk46F7By?usp=drive_link.
Setting the environment variable, as the alternative solution to fix protobuf for Keras, did not work: https://colab.research.google.com/drive/1ls_gzOWKrgW-AVbNlRbvSUyLvSqI7DEU?usp=sharing.

If I train the Daniel's model for even only 1 round, it produces innerProduct instead of MatMul. That might be the reason.

6.3 also works, no need to use older versions.


Use the kubeadmin user when bootstrapping the cluster/Wait for Argo CD route to be up

The goal of this PR is to streamline the deployment by:

ensuring the user is logged with the right account (as by default they'll be logged as developer if they followed the CRC install documentation)
Give the user the URL to connect to instead of the route and wait for the URL to be reachable before exiting the script.

/retest


Add option to control setting of completion-in-region-function

I just started using selectrum with prescient and I like it very much.  However, one thing I would like to disable is the feature that normal in-buffer completion (completion-at-point-functions) is now also transferred into the minibuffer.  How can I do that?
As an example of what I mean, here's a recipe for shell:

M-x shell RET
cd ~/R<TAB>

Now the path is going to be read from the minibuffer instead being normally TAB-completed in place (with possibly a *Completions* buffer if there are many choices starting with the current prefix or cycling if there are just a few).

Having an option for this is a good idea, icomplete and ivy have this as well. BTW file completions act like find-file with selectrum so you can navigate through the path levels via completion.

If there is only one file candidate the minibuffer shouldn't open and the result should be inserted in place, we have to update that, too.

@clemera Yes, that in-buffer file completion completes the whole path in one go is actually nice but still I'm distracted by the input switching from one very specific position in a buffer to the bottom left minibuffer.  That might be mitigated with a posframe, though, if you need ideas for things to play with. ;-)

There is also mini-frame but it doesn't feature an "at point" option AFAIK.

If there is only one file candidate the minibuffer shouldn't open and the result should be inserted in place, we have to update that, too.

After some experimentation I think it's better to pop to the minibuffer even if there is only one candidate (for file completion). Inserting the single candidate immediately will only help if you wanted to stop completion there but I think it is more common to navigate through several path levels and in this case the current behaviour has an advantage.

With #261 you only get prompted now if there are multiple candidates for the current input.

As mentioned over there I also added the option you asked for named selectrum-complete-in-buffer.

Inserting the single candidate immediately will only help if you wanted to stop completion there but I think it is more common to navigate through several path levels and in this case the current behaviour has an advantage.

After reconsideration I think the behaviour of #261 is a good compromise, pressing TAB again will let you drop into the minibuffer after single candidate insertion if needed. This is also more similar to how default completion works.

Should be fixed by #261?

@clemera The new option selectrum-complete-in-buffer does the trick for me.  Thanks!


What does Application.resize do?

pixi.js version: 5.2.1
This is more of a question than a bug report I suppose. Not sure where questions should go. The two code pieces below are not doing the same thing. Would it be possible to clarify in the documentation what Application.resize does?

app.renderer.resize(window.innerWidth, window.innerHeight);

and
app.resizeTo = Window;
app.resize ();

These should do the same thing.
Calling app.renderer.resize might create issue since app.resize is a convenience wrapper around renderer.resize and will likely override it. If you aren't using Application, use renderer.resize, if you are using Application stick to resizeTo and resize.

They don't do the same thing for me, here's a fiddle to demonstrate the difference: https://jsfiddle.net/62c9h3pz/

The fiddle looks like it uses an older version, but I get similar behaviour with 5.2.1.

This works: https://jsfiddle.net/bigtimebuddy/tpuw798g/
window not Window

Oops, my bad! Thanks for the help!

No problem.


cups-browsed, driverless: request urf-supported attribute

Fixes bug #22 - at least for me (I have a Canon Pixma MG4250 printer).
I have not tested other Canon models, so can't be certain that this will fix it for other Pixma variants referred to in the bug report (and also can't be sure that requesting this attribute won't be a breaking change for other printers).

As in CUPS (see CUPS issue #5484) I use the attributes "all" and "media-col-database" now. This lets the "urf-supported" and also all page size and margin info get corectly reported.
Fixed in cups-filters with commit 5259bb798.


Failing to create Volumes

Hi there,
I am trying to deploy CF via Bosh and all goes well until it tries to create a volume.
The logs are here:
http://matt.fragilegeek.com/cf/bosh-deploy.log
My cinder api log:

2016-03-02 13:09:30.498 9955 DEBUG eventlet.wsgi.server [-] (9955) accepted ('<IP_ADDRESS>', 36051) server /usr/lib/python2.7/site-packages/eventlet/wsgi.py:826
2016-03-02 13:09:30.503 9955 INFO cinder.api.openstack.wsgi [-] POST http://<IP_ADDRESS>:8776/v1/e0e75c086b5043ecad55dafe5a6a9d26/volumes
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi [-] Exception handling resource: multi() got an unexpected keyword argument 'body'
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi Traceback (most recent call last):
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/cinder/api/openstack/wsgi.py", line 1019, in _process_stack
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/cinder/api/openstack/wsgi.py", line 1099, in dispatch
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi     return method(req=request, **action_args)
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi TypeError: multi() got an unexpected keyword argument 'body'
2016-03-02 13:09:30.504 9955 ERROR cinder.api.openstack.wsgi
2016-03-02 13:09:30.505 9955 INFO cinder.api.openstack.wsgi [-] http://<IP_ADDRESS>:8776/v1/e0e75c086b5043ecad55dafe5a6a9d26/volumes returned with HTTP 400
2016-03-02 13:09:30.506 9955 INFO eventlet.wsgi.server [-] <IP_ADDRESS> - - [02/Mar/2016 13:09:30] "POST /v1/e0e75c086b5043ecad55dafe5a6a9d26/volumes HTTP/1.1" 400 274 0.004179

I'm using an NFS backed store for Cinder. Creating volumes otherwise (via the API or Horizon) works fine, as does attaching them to instances (and booting from them)

Hi @mattsday
when you say that you are already deploying Cloud Foundry, I assume that you installed Bosh using bosh-init before? That should mean that there already is a persistent disk attached to the Bosh VM, could you check that please?
I also see an interesting combination of services going on in your Keystone catalog, which distribution are you using, is that a DevStack environment? Which versions of bosh and the openstack-cpi are your using?
From what I see in the logs is that the call tries to create a disk of size 1GB and somehow fails
{\"volume\":{\"display_name\":\"volume-69d93304-7a7e-41d1-9876-3b42a10a662e\",\"display_description\":\"\",\"size\":1}}

The CPI is making calls to the cinder v1 API, maybe that is different for the volumes you created over Horizon/the CLI. Overall it seems like you're seeing something similar to https://bugs.launchpad.net/nova/+bug/1305997 although that happened in nova. However, the fix introduced body=nil in the multi() function of the API version selector, see https://review.openstack.org/#/c/86983/3/nova/api/openstack/compute/versions.py and cinder doesn't have that parameter in its multi method https://github.com/openstack/cinder/blob/stable/liberty/cinder/api/versions.py#L241-L244

Hi @voelzmo,
When I think about it, the bosh-init didn't create a persistent disk (but still worked) so I just created one and mapped it afterwards and then mounted it to /var/vcap/store
I found the issue - by default RDO packstack sets this for liberty in /etc/cinder/cinder.conf:

enable_v1_api = false

Changing it to true worked a charm. Thanks!

@mattsday: We double checked on this issue, but could not reproduce the exact problem (we don't have PackStack, though). In your logs Cinder v1 is advertised in the service catalog, but the API was not responsive due to the enable_v1_api = false. That is strange, a disabled API should not show up in the service catalog. The CPI shows a helpful error message, if Cinder v1 is not advertised in the service catalog and that should be sufficient.


[Preview 6] Blazor (Server Side) overriding identity via scaffolding throws error

[Preview 6] Blazor Server Side overriding identity via scaffolding throws an error.

dotnet 3.0.100-preview6-012264

Upgrade to .net core 3.0.100-preview6-012264
Create a new asp.net core web application project, select server side blazor.
Change Identity to individual user account

After project creation right click Areas/Identity folder, Add New Scaffold Item, Override all files throws error.

Microsoft.VisualStudio.Web.CodeGeneration.Design nuget package must be updated to 3.0.0-preview6 also.

This error occurs when the page layout field is left blank. You can get around it by creating a dummy layout page and using that as your layout file. But the bigger problem is once the scaffolding templates are generated your Blazor project wont run. I created #11228.

This specific error should now be fixed with the latest preview version of Visual Studio.

@danroth27 Still not able be overriding identity with scaffolding

I have this same issue. I've updated to the latest Version of Visual Studio Preview and Core framework as well.
net core 3.0.100-preview8
Microsoft Visual Studio Community 2019 Preview
Version 16.3.0 Preview 2.0
VisualStudio.16.Preview/16.3.0-pre.2.0+29209.152


Feature request - view message you’re replying to while you’re typing it out

Slide 1.3 (21)
Would love to have a feature where if you swipe down from the reply box, it’ll show the message you’re replying to, so you don’t have to keep going back to the PM overview to check what you’re replying to.
Horrible mock-up here:

Sent with GitHawk

I totally re-wrote that view, now it works like you requested and looks SO MUCH BETTER ;)


Example missing

https://vuejs.org/v2/examples/modal.html is missing the example in the middle of the page.

Can you try disabling/clearing cache and refreshing the page?

Update: https://twitter.com/siddharthkp/status/1234883523510784001.
I think we can close this now 🙂

Yes, I know this issue is close, but the CodeSanbox links are still broken …
Doesn't matter which browser, if cache and cookies are cleared or not.

Seems to be no longer working again. CodeSandbox is saying that it is not found


VSCode crashes without errors when signing in to GitHub or Microsoft

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.73.1
OS Version: CentOS 7

Steps to Reproduce:

Sign in to account (GitHub or Microsoft)
Redicrected to GitHub/Microsoft page
Log in
VSCode immediately closes without any errors or warnings

Can you attach the crash dump following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports
seems like a duplicate of https://github.com/microsoft/vscode/issues/167641

pending.zip
Please find attached the error dump

FYI: I tried version 1.74.0 and the issue still persists.

Duplicate of #164223


winmm: fix broken audio when sample count is overflowed

Microsoft wave audio docs say "samples are the preferred time format in which
to represent the current position", but relying on this causes problems on
Windows XP, the only OS cubeb_winmm is used on.
While the wdmaud.sys driver internally tracks a 64-bit position and ensures no
backward movement, the WinMM API limits the position returned from
waveOutGetPosition() to a 32-bit DWORD (this applies equally to XP x64). The
higher 32 bits are chopped off, and to an API consumer the position can appear
to move backward.
In theory, even a 32-bit TIME_SAMPLES position should provide plenty of
playback time for typical use cases before this pseudo wrap-around, e.g:
(2^32 - 1)/48000 = ~24:51:18 for 48.0 kHz stereo;
(2^32 - 1)/44100 = ~27:03:12 for 44.1 kHz stereo.
In reality, wdmaud.sys doesn't provide a TIME_SAMPLES position at all, only a
32-bit TIME_BYTES position, from which wdmaud.drv derives TIME_SAMPLES:
SamplePos = (BytePos * 8) / BitsPerFrame,
where BitsPerFrame = Channels * BitsPerSample,
Per dom\media\AudioSampleFormat.h, desktop builds always use 32-bit FLOAT32
samples, so the maximum for TIME_SAMPLES should be:
(2^29 - 1)/48000 = ~03:06:25;
(2^29 - 1)/44100 = ~03:22:54.
This might still be OK for typical browser usage, but there's also a bug in the
formula above: BytePos * 8 (BytePos << 3) is done on a 32-bit BytePos, without
first casting it to 64 bits, so the highest 3 bits, if set, would get shifted
out, and the maximum possible TIME_SAMPLES drops unacceptably low:
(2^26 - 1)/48000 = ~00:23:18;
(2^26 - 1)/44100 = ~00:25:22.
To work around these limitations, we just get the position in TIME_BYTES,
recover the 64-bit value, and do our own conversion to samples.
Original patch by mixit @ msfn.org, and permission granted for submitting PR: https://msfn.org/board/topic/182647-my-browser-builds-part-3/?do=findComment&comment=1202896

Many thanks to you and mixit for thoroughly investigating this and reporting it with a fix.  It's a shame this bug has persisted so long - I suspect this is partially due to most of the internal testing being done on Windows 7, which may not have this bug in wdmaud.sys.


[Design kit]: Brief description

Detailed description
Hello there, can you please guide me to the latest ibm.com Shell library, that contains the latest masthead and footer for all breakpoints? I do not see it in my Box folder  (Design Kit).

What version of the Design kit are you using?

I have the latest version that I updated from the Box folder.

Hi @pavolprok we are still evaluating how to update the masthead and footer symbols from our older design kit which you may have received it as an early adopter. We recently made some updates to the L1, which will be going live on our website documentation in the next few days, it's available in Storybook now.
We do have the masthead and footer Sketch files available on Box and they should show the different breakpoints, I would recommend copy and pasting the masthead and footer examples into your file for now, you can also reference storybook to see how it behaves.
https://www.ibm.com/standards/web/carbon-for-ibm-dotcom/components/masthead
https://www.ibm.com/standards/web/carbon-for-ibm-dotcom/components/footer
Please let me know if you have any questions


Bug: No translation when users tries to sign in to an organization they don't have access to.

Prerequisites

[X] I have searched the repository’s issues and Kinde community to ensure my issue isn’t a duplicate
[X] I have checked the latest version of the library to replicate my issue
[X] I have read the contributing guidelines
[X] I agree to the terms within the code of conduct

Describe the issue
When trying to sign in to an organization a user doesn't have access to, you get the following page:

It should be translated, but it isn't. What is interesting it that I couldn't find the translation entry even in the english json file in this repository.
Library URL
https://github.com/kinde-oss/kinde-translations
Library version
latest (14.11.2023)
Operating system(s)
macOS
Operating system version(s)
macOS Sonoma
Further environment details
No response
Reproducible test case URL
No response
Additional information
No response

Hey @matthewrosse thanks for raising this one. I've added the English translations now, it will probably take some time for the other languages to flow through.
Is there a specific language you were after?


fix: ForgetPage bugs

fix: can't switch phone and email in the second step
fix: username parameter submitted in the second step error
fix: defaultValue not work on controlled Field
fix: name is only used for validate React element

@Abingcbc plz review

Fixed in: https://github.com/casdoor/casdoor/commit/cc8c9b32ef6f1ff9dd7fab199659b9396927b9d2


#315 Fix TypeError: fetch is not a function

Import fetch inside the file to fix issue #315
Overview
Fix fetch is not a function on iOS 15
Test Plan
Nothing needed, as there is no change on functionality; just add extra import to cross-fetch

I don't see how this is needed more than 2 years after what appears to be the definitive comment:
https://github.com/react-native-netinfo/react-native-netinfo/issues/315#issuecomment-597024035

If you are having issues where this is not available then it is an issue with React NAtive itself or your configuration of it. From your screenshot it looks like you are running in the Chrome debugger. Make sure you are using an up-to-date very of that to ensure you have access to fetch.

It is still there as a polyfill: https://github.com/facebook/react-native/blob/main/Libraries/Network/fetch.js
Before accepting any dependency like this that alters fundamental behavior (like a polyfill provided by the framework) I need to understand why this is necessary for everyone.

I have same issue in the latest version of net-info any updates regarding this ?

@Uzef1997 it's open source, the updates you see above you are the updates that exist. There are no secret updates.

Before accepting any dependency like this that alters fundamental behavior (like a polyfill provided by the framework) I need to understand why this is necessary for everyone.

That's the closer on this one - there is no explanation of why this is necessary now. it should not be necessary.


Fix issue when using extension for format

In the case where an extension is given, there was a boolean returned from Frapi_Controller_Api->detectAndSetMimeType() which was then passed into Frapi_Action->setAcceptParams(array $params) causing an E_RECOVERABLE_ERROR that results in an exception.

{
    "errors": [
        {
            "message": "Argument 1 passed to Frapi_Action::setAcceptParams() must be an array, boolean given, called in /Library/WebServer/Documents/frapi/src/frapi/library/Frapi/Controller/Api.php on line 245 and defined (Error Number: 4096), (File: /Library/WebServer/Documents/frapi/src/frapi/library/Frapi/Action.php at line 160)",
            "name": "PHP Recoverable error",
            "at": ""
        }
    ]
}

Issue #112 has been resolved by this solution.
Thanks dshafik,


Rainbow highlighting spike 🌈

Very simple approach: For each identifier, set the hash of the range
where it's defined as its 'id' and use it in the VSCode extension to
generate unique colors.
Thus, the generated colors are per-file. They are also quite fragile,
and I'm not entirely sure why. Looks like we need to make sure the
same ranges aren't overwritten by a later request?

For the reference, here's the relevant code from IntelliJ Rust (yes, my life is a groundhog day movie): https://github.com/intellij-rust/intellij-rust/blob/037f43bfd76785dad8aac989e2fd1f2118f212b9/src/main/kotlin/org/rust/ide/highlight/RsRainbowVisitor.kt#L15-L45
RainbowHighlighting is a much better name for this feature....

https://github.com/rust-analyzer/rust-analyzer/pull/1327 adds ability to hightlight rust code as HTML. Also, turns out that ! is a valid character in git branch name, I should use it more

Rebased on top of html output, and added --rainbow to CLI. It now uses the name and a shadowing counter. This of course only works for local variables, which is all that is supported for now. Function/struct/enum names, as well as struct field names and enum variants can be supported if we can get a good unique ID for them.

I wonder whether this could be made an optional feature, as personally I'd never use it and it increases compile-time (again) by requiring rand with all of its dependency-tree.

Runtime-optional, sure. A compile-time feature doesn't seem worth it
though; random was also already in the lock file.
On Sun, 26 May 2019, 08:22 Jens Hausdorf<EMAIL_ADDRESS>wrote:

I wonder whether this could be made an optional feature, as personally I'd
never use it and it increases compile-time (again) by requiring rand with
all of its dependency-tree.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rust-analyzer/rust-analyzer/pull/1319?email_source=notifications&email_token=AAAE4X3J7IJX3ID33PX64NTPXIUA3A5CNFSM4HPJ3HCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWH7GCY#issuecomment-495973131,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAE4XZCQUZOD3LP6GVIWN3PXIUA3ANCNFSM4HPJ3HCA
.

by requiring rand with all of its dependency-tree.

Unfortunately, we already depend on rand :-(
And yeah, one day someone (probably me) would have to look into seriously cutting the number of dependencies and optimizing compile times

r=me with config option added (don't forget to add the docs for it as well, to the docs/user/features.md)
bors delegate+

Unfortunately, we already depend on rand :-(

Ah, pardon me. I didn't saw that.

bors r+
✨ 🌈 ✨


WIP: remove codevt

Bug: https://crbug.com/358567090

having a hard time building on windows, is there any bot infra in this repo?


Command prompt shows wrong shell

I just installed Spyder terminal w Spyder 4.0.1 inside my Anaconda3 environment on a MacBook Pro OS 10.15.3 (Catalina). I'd previously changed my default terminal shell to zsh, as instructed by Apple.
On opening the Terminal tab in Spyder, it seems to think it's using bash, but it's actually using zsh.
What steps will reproduce the problem?
On opening, I see this, as expected:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$

but if I check the shell, I see this:
bash-3.2$ echo $SHELL
/bin/zsh
bash-3.2$

What is the expected output? What do you see instead?
I've run chsh -s /bin/zsh but of course it says nothing to change, as it's already using zsh.
Please provide any additional information below
Versions and main components

Terminal Version: 0.3.0
Spyder Version: 4.0.1
Python Version: 3.7.6
Operating system: MacOS 10.15.3

@steff456 please tale a look at this one

@sjgenco, you are able to change the default terminal shell under the preferences of spyder, bash is the predetermined option.

You have to reset spyder to see the changes. Please let me know if it works for you.

Thank you. That did work.
An additional wrinkle you might want to look at is the fact that I was
actually running the zsh shell already, but Spyder Terminal was showing the
bash prompt even though zsh, not bash, was my current shell. So that's
somewhat different problem than not knowing how to change the shell.
Thanks for the quick reply and solution!
On Tue, Mar 17, 2020 at 2:33 PM Stephannie Jimenez Gacha <
<EMAIL_ADDRESS>wrote:

@sjgenco https://github.com/sjgenco, you are able to change the default
terminal shell under the preferences of spyder, bash is the predetermined
option.
[image: image]
https://user-images.githubusercontent.com/20992645/76903863-c4754d80-686c-11ea-898f-8c6a4b8b57b4.png
You have to reset spyder to see the changes. Please let me know if it
works for you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder-terminal/issues/177#issuecomment-600311841,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEWW7BGQOUF667SNBZLMQWTRH7UBZANCNFSM4LMZZWFA
.

--
Steve Genco
cell:<PHONE_NUMBER>
email<EMAIL_ADDRESS>

@steff456 we need to check the default shell im the system and adjust the configuration accordingly on startup.

@steff456 we need to check the default shell im the system and adjust the configuration accordingly on startup.

We are not able to check the default shell in a direct form. However the user can configure the shell that they want to use.

We are not able to check the default shell in a direct form.

Yes there are ways to do this.

@steff456, I agree with @goanpeca, we need to address this because it's very confusing to select a shell type and always get a bash prompt in return.
Please see this for some ideas on how to do it:
https://stackoverflow.com/questions/3327013/how-to-determine-the-current-shell-im-working-on


Using S3Mock for PHP related projects

Hi. How do I integrate this library into a Drupal project which I am currently working on?

Closing this, as no one was able to provide an answer by now... 🤷


[FLINK-2811][web-dashboard]Add page with Configuration Overview.

Here's a screenshot:

Thank you for resolving the issue so quickly.
I think its good to merge.

Thanks for this! Looks good. I would make the naming consistent though. You mix jmConfig and config. I am for jobManagerConfig to make it really clear what it is. I will try this out and merge if it works as expected.

On the user end, a url '/config' makes more sense IMO. On the server end, config is already mapped to something else, so I chose a /jmconfig there.
If you think /jobManagerConfig is better however, let me know. I will push a commit for that.
On a related note, '/jobmanager/config' might be a better choice for url. Are there any job manager statistics which should be made available under a /jobmanager url? Running jobs and completed jobs are already there.

How about mapping the jobmanager config to /jobmanager/config and later mapping the jobmanager log to jobmanager/logfile?

And the .out file to /jobmanager/stdout or so...

That sounds good enough. I'll push a fix.

Updated as per @StephanEwen's comments. Here's another screenshot:

The /logfile and /stdout urls are dummy and contain nothing right now.

Two comments:

In the old web frontend, we showed the log and out files raw in a new tab. I think that was good, it allows to download/save the files without extra logic.

If it is not too much effort, could you sort the config keys (probably on the backend side)? Would make bigger configs easier to navigate...

I don't know if someone else is working on this, but this way we can provide a log and out file the way it is displayed, say on travis. Updated in real time. And of course, put a button to download them.
Sure. I will add a commit for that and we can decide on 1 after that.

Regarding 1) Great idea Sachin. I never liked it in Travis, but I see how it can be useful for the JM logs. What about addressing Stephans comments for now and then adding the update + download thing later? This is rather time critical, because we want to add it to the release and there is consensus to remove the old interface.

@uce , Great. I think someone else was working on providing job manager log and out access. If not, I'll give it a shot in a few days.
@StephanEwen, is sorting with respect to size of keys okay? Also, there is no need to do this on the backend. Angular can do that pretty straightforward.
Attaching a screenshot again:

Sorting is by key lengths, which isn't exactly ideal.

I think alphabetically is better.

I was thinking more about the actual pixel length but achieving that is proving to be kind of hard.
Alphabetically should be okay I think.

I see. But pixel length or number of characters does not make it easier to navigate when you want to look up a specific key, e.g. jobmanager.X.Y.

Yes. You're right. I'd misunderstood Stephan's comment. The goal is to group similar keys together, and sorting alphabetically will definitely take care of that.
On a separate note, does it make sense to have this type of structure:
Job Manager
jobmanager.*
Akka
akka.
Recovery
ha.*
and so on. Of course, if no keys are available under a group, it won't be displayed at all. Or we can just leave it at sorted alphabetically. Your call.

Here's what it looks like right now:

Let me know if you have something else in mind.

Looks good with alphabetical order imo.
On Tue, Oct 6, 2015 at 10:03 AM, Sachin Goel<EMAIL_ADDRESS>wrote:

Here's what it looks like right now:
[image: capture]
https://cloud.githubusercontent.com/assets/8874261/10303034/73a25630-6c2e-11e5-91b8-9bc675baf65d.PNG
Let me know if you have something else in mind.
—
Reply to this email directly or view it on GitHub
https://github.com/apache/flink/pull/1219#issuecomment-145776217.

Very good, Sachin. Thanks! I will try it out again and then merge it.

Okay. Cool. :)

Sachin, do you also have time to fix the job manager logs? Would be good to have it in the release. Go for the simplest solution and don't try to make it too fancy for the first version. ;)

I can work on it but FLINK-2728 is already assigned to @iampeter.
@iampeter, have you started working on it?

@sachingoel0101 unfortunately haven't had time yet, so I guess you can take on it

Okay. I already have the basic functionality up.


Update numpy_model.py

Hi @sujit4uwbslg ,
Thanks for the PR. Could you provide a description of your proposed change please?

Based on the above discussion, this PR will be now closed.


Camera clear colour is set to 0 alpha in Unity already, which removes the need for the SetLayeredWindowAttributes call which was introducing this problem on certain systems.
Tests Added
Added TF-T450 (1.0) to test this issue in future.
Contributor Tasks
These tasks are for the pull request creator to tick off.

[ ] PO review (optional depending on work type)
[ ] XDR review (optional depending on work type)
[ ] QA review (or another developer if no QA is available)
[ ] Ensure documentation requirements are met e.g., public API is commented
[x] Relevant changelogs have been updated with user-visible changes

[x] TouchFree Windows
[ ] TouchFree BrightSign
[ ] TouchFree Web Tooling

[ ] Consider any licensing/other legal implications e.g., notices required

If there is an associated JIRA issue:

[x] Include a link to the JIRA issue in the summary above
[ ] Make sure the fix version on the issue is set correctly

Reviewer Tasks
Add any instructions or tasks for the reviewer such as specific test considerations before this can be merged.

[ ] Developer testing
[ ] Code reviewed
[ ] Non-code assets reviewed
[ ] Documentation reviewed - includes checking documentation requirements are met and not missing e.g., public API is commented

Reopened the ticket as TF-1163 which more accurately describes the issue.


Decoding Chat::Group(_) fails with Err(EOF)

As can be seen with this test:
#[test]
fn decode_groupchat_chat() {
    use Chat;
    let group = r#"{"title":"This is a group chat","id":-12345678}"#;
    let chat: Chat = json::decode(&group).unwrap();
    assert!(chat.is_group());
}

I guess User::decode(d) consumes the data, so that if it fails, there's nothing left for the second decode call to decode.
impl Decodable for Chat {
    fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error> {
        // If the object can be decoded as User: Return the user. Otherwise
        // try to decode the object as Group.
        match User::decode(d) {
            Ok(user) => Ok(Chat::User(user)),
            Err(_) => Ok(Chat::Group(try!(Decodable::decode(d)))),
        }
    }
}

Thanks for reporting! Will fix that some when today, I think. Except if you want to fix it, since you're adding tests anyway?

I'll let you fix it. Expect a test PR, though.

I don't feel like reading rustc-serialize docs today :)

Fixed.
If you feel like working on tests, you can improve my tests by using raw string literals instead of the escaped stuff I used.


[Bug] remote model clean up does not delete the model_group

Steps to reproduce
Run command with a remote aos model
python main.py --model_type bedrock --host_type aos -c adapters --delete_existing --number_of_docs 10 --cleanup
Even if two confirm deletion on the connector and the model,
Expected behavior
The model group should be deleted. Also, we need to make sure that the ml model is assigned to a model group.

Found that the reason is due to duplicated model groups. The cleaning up function does deletes a model group, but is not enough.


Error in .shlib_internal :  C++14 standard requested but CXX14 is not defined

Summary:
Please provide a short couple sentence summary.
Error in .shlib_internal :  C++14 standard requested but CXX14 is not defined
Description:
Describe the issue as clearly as possible.
I cannot run the 8schools example because of the following error
Error in .shlib_internal(commandArgs(TRUE)) :
C++14 standard requested but CXX14 is not defined
Reproducible Steps:
The error occurred when trying to execute the following code:
Sys.setenv(USE_CXX14 = 1)
library("rstan")
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
schools_dat <- list(J = 8,
y = c(28,  8, -3,  7, -1,  1, 18, 12),
sigma = c(15, 10, 16, 11,  9, 11, 10, 18))
fit <- stan(file = '8schools.stan', data = schools_dat,
iter = 1000, chains = 4)
Version:
Rstan v2.17.4
Rtools v34
R v.3.5.1
Thank you

You need to have
CXX14 = g++ -std=c++1y
in your ~/.R/Makevars file and also probably need to make CXX14FLAGS the
same as CXXFLAGS .
On Tue, Oct 16, 2018 at 3:39 PM MarcoAndrello<EMAIL_ADDRESS>wrote:

Summary:
Please provide a short couple sentence summary.
Error in .shlib_internal : C++14 standard requested but CXX14 is not
defined
Description:
Describe the issue as clearly as possible.
I cannot run the 8schools example because of the following error
Error in .shlib_internal(commandArgs(TRUE)) :
C++14 standard requested but CXX14 is not defined
Reproducible Steps:
The error occurred when trying to execute the following code:
Sys.setenv(USE_CXX14 = 1)
library("rstan")
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
schools_dat <- list(J = 8,
y = c(28, 8, -3, 7, -1, 1, 18, 12),
sigma = c(15, 10, 16, 11, 9, 11, 10, 18))
fit <- stan(file = '8schools.stan', data = schools_dat,
iter = 1000, chains = 4)
Version:
Rstan v2.17.4
Rtools v34
R v.3.5.1
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2666, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADOrqn1FKsKtQAAIcwz6wPJYrgd515pNks5uljX-gaJpZM4Xg0FU
.

Thanks bgoodri.
I understand "~/.R/Makevars" is the name of a file, but where do I find it ?
"make CXX14FLAGS the same as CXXFLAGS": does it mean changing something in the "~/.R/Makevars" file ?
Thanks

It is at whatever
normalizePath("~/.R/Makevars")

evaluates to (note there is a period before the R)
On Tue, Oct 16, 2018 at 4:18 PM MarcoAndrello<EMAIL_ADDRESS>wrote:

Thanks bgoodri.
I understand "/.R/Makevars" is the name of a file, but where do I find it
?
"make CXX14FLAGS the same as CXXFLAGS": does it mean changing something in
the "/.R/Makevars" file ?
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/2666#issuecomment-430385514, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADOrqgD-C03r9fhvCPD_2843zkT8AuMxks5ulj8kgaJpZM4Xg0FU
.

Thanks bgoodri.
I have launched the command, but it seems that no Makevars file is present:

normalizePath("~/.R/Makevars")
[1] "C:\Users\Marco Andrello\Documents\.R\Makevars"
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:/Users/Marco Andrello/Documents/.R/Makevars": The system cannot find the file specified

Maybe something went wrong in the Installation of Rtools, or Stan ?

Yes, but I had overlooked the step to create the Makevars file !
I didi it. Now it works. Thanks very much for your help !


TS-4440 fix truncated content-type for missing stats pages

In addition, it seems odd that we are returning a 400 in this case, I'd think this should be a 404? I have a second commit for that as well (which we can definitely squash if we want).

[approve ci]


How can i send url parameters with .requestCustomJSONEncodable?

I want to send request with JSON and url parameter.
But .requestCustomJSONEncodable send without url parameters.
So how can i do that? Please help! Thank you!

Hey @Lang-le, this doesn't seem to be possible through Moya's Task object. It seems to be related to #1647. My solution for you would be to create a PluginType to add the parameters.

@SD10 Thanks! I try to custom .requestCustomJSONEncodable and it worked.
Can i submit my code?

@Lang-le This has been requested a couple times now so we'll consider adding first class support for this. I was the one who was originally against it because I thought it was an uncommon use case