go/types, types2: 'any' in go/types.Universe should be of type Alias

Just noticed that the predeclared types any, ~byte, and rune~ in go/types.Universe are not actually of type go/types.Alias. This matters: I noticed it while working on type writing for the x/tools inliner.
I'll put together a fix.  I would not be surprised if additional tests fail as a result of this fix, since this would be the first time we have an Alias type in the universe scope.
(EDIT: per discussion, let's just fix this for any. Basic types are special anyway).
CC @griesemer @adonovan

Note: this poses a rather unfortunate problem for switching GODEBUG values inside tests.

@griesemer @adonovan after staring at the implications of this for a minute, I think the only way to do it properly is to insist that the only way to change GODEBUG=gotypesalias is at startup. There's no way that switching in tests can work when universeAny, universeByte, and universeRune are written to types.Universe and types.Typ.
@timothy-king has created a GODEBUG=gotypesalias=1 builder, and we should use that technique for creating a GODEBUG=gotypesalias=0 builder.

Just noticed that the predeclared types any, byte, and rune in go/types.Universe are not actually of type go/types.Alias. This matters: I noticed it while working on type writing for the x/tools inliner.

Why does it matter exactly? Similarly, the defined types string and int are not actually represented like other defined types astypes.Named, because they don't have a declaration or TypeName. It seems to me that byte falls into a similar category.

I'll put together a fix. I would not be surprised if additional tests fail as a result of this fix, since this would be the first time we have an Alias type in the universe scope.

What would be the fix? What would the TypeName before for a universal Alias?

@griesemer @adonovan after staring at the implications of this for a minute, I think the only way to do it properly is to insist that the only way to change GODEBUG=gotypesalias is at startup. There's no way that switching in tests can work when universeAny, universeByte, and universeRune are written to types.Universe and types.Typ.

Arguably this is evidence that it's not the right fix.

@timothy-king has created a GODEBUG=gotypesalias=1 builder, and we should use that technique for creating a GODEBUG=gotypesalias=0 builder.

We should flip that builder to "0", since we don't need a "1" builder: it's the default at tip.

Why does it matter exactly?

The spec says that they are aliases, and there are various places where we need to check for distinguished pointers to print the right name.  (search for types2?.Universe.Lookup("any") to find these special cases). Several of those places also have apologies that the "hack" wouldn't be necessary with proper alias support. Now we have that support.
It is inconsistent for them not to be Aliases. Why shouldn't we fix this properly?

What would be the fix? What would the TypeName for a universal Alias?

A new TypeName? I don't understand the question.

Arguably this is evidence that it's not the right fix.

I don't see how that follows. We have a global that uses the new API. Any time a global is affected by a GODEBUG value, it seems that such a fix would be required. I don't understand the philosophical point.

A new TypeName? I don't understand the question.

Sorry, I was under the misapprehension that all TypeNames had valid positions, but of course that's not true for all the built-in types. Ignore me.

Thanks. Will wait for @griesemer to opine before spending too much more time here.  See the associated CL for the proposed fix. It wasn't hard to get go/types/types2 tests passing, and I suspect just a few more changes are required in the compiler / importers.
Do we want to do this? It's now or never, I suppose.
Aside:

The defined types string and int are not actually represented like other defined types astypes.Named, because they don't have a declaration or TypeName

FWIW, I think that's no problem. Basic types are defined types. But byte and rune are aliases, and suffer from the same loss of information as other aliases.
Put differently, don't we eventually want the definition of TypeName.IsAlias to be _, ok := obj.typ.(*Alias); return ok?

Do we want to do this? It's now or never, I suppose.
Put differently, don't we eventually want the definition of TypeName.IsAlias to be _, ok := obj.typ.(*Alias); return ok?

Yeah, it's definitely a simpler representation. The question is how much churn will it generate. Only experience will tell.

Hmm, well byte and rune are distinguished Basic types, i.e. their type carries their name. Therefore it is less important to make this change for them than for any.

I'm worried about introducing more problems with this than solving.
I think byte and rune can be left alone.
The only other type where it matters is any and I think there it only matters for type equality when any is not at the top level (e.g., func(any) and func(interface{}) must be considered identical). Can we just have a special check for this in the identity check and then remove it once we switch solidly to Alias nodes?

To be clearer about this: we could define any as its own type (definition) but then treat it as identical with interface{}. Maybe the way to do this is to (dynamically) introduce an Alias node (or skip it) depending on the current setting if AliasEnabled.

@findleyr Sounds good. So maybe any is simply always represented with an Alias node?

So maybe any is simply always represented with an Alias node?

@griesemer that would be problematic for tools that still use gotypesalias=0. I think we need to change the representation based on the GODEBUG environment variable at startup. Perhaps we can just get away with inconsistent behavior if GODEBUG is subsequently modified in tests...
This may also be a problem for bootstrapping.

"Once at startup" seems like the only logical way to choose  the representation of a global variable, but many of our tests need to call Setenv to 1 or 0 later on, and this may lead to inconsistency.

@findleyr Sounds good. So maybe any is simply always represented with an Alias node?

Perhaps it would be less trouble to make this change later, once we've ditched gotypesalias=0 forever. Then there is no mode-dependence; we've just made the representation of any a little more faithful to the spec.

@adonovan I think we should rip the band-aid off now. The sooner we make this change, the sooner we can avoid workarounds like https://go-review.git.corp.google.com/c/tools/+/580835/4/internal/refactor/inline/inline.go#2874.

That workaround seems a lot simpler to me than the problem of initializing a global based on the value of an environment variable that we expect tests to modify.

@adonovan that is just one of several, and it's likely there are more workarounds for any that don't exist yet should.

Less ergonomic testing seems easier than having to make another breaking alias-related change in a future Go version.

 Less ergonomic testing seems easier than having to make another breaking alias-related change in a future Go version.

My gut feeling is that the less ergonomic testing could be a major hardship for users of go/types, whereas the specific representation of the type any should be a fairly narrow change.
If I understand correctly, the workaround in the above code is just to detect shadowing declarations of any, which should be very rare. If you had forgotten to add the workaround, you would temporarily have a bug, but this bug is not a new problem due to Aliases, it's one that would have already been present in this tool (and similar ones like rename) due to the lack of aliases. And when Aliases come along, the bug would become fixed.

Decision: we're going to switch the implementation of any based on gotypesalias, and hijack Scope.Lookup to do the right thing based on the current debug value.
I'm doing this in the above CL (as well as adding some safeguards against improper concurrent use), but as always it's proving trickier than one would hope. Should be able to get it working tomorrow morning.


inconsistency across TLDs with domain_status vs status

Hi there,
thanks for this lib, parsing whois is quite the horrible task to achieve :(
I'm wondering why only a handful of TLDs are getting a domain_status field in their results while all others have a status field? This makes checking for this value inconsistent depending on the TLD being asked.
wouldn't it be better if TLDs that currently have a domain_status field get a one-item aray as a value for status instead?

The same kind of inconsistency is also apparent with all *_date values : sometimes they're a datetime.datetime object while others they are a list of datetime.datetime objects.
it would be a lot better to always get a list even though there's only one item in it since it would make using results from the library a lot easier

There's a separate issue for inconsistencies of *_date values in https://github.com/richardpenman/whois/issues/43.


Incorrect fill price with Limit Orders

Expected Behavior
Non-marketable limit orders should be executed at the best price available in the market (unless trade through
exemption is specified), which should never be better by the posted limit order.
For reference, see:
https://www.investopedia.com/terms/r/regulation-nms.asp
https://www.investopedia.com/terms/t/tradethrough.asp
https://tradingqna.com/t/if-the-bid-and-ask-prices-cross-each-other-who-will-get-the-better-trade-buyer-or-the-seller/1303
Actual Behavior
In QuantConnect/Lean it is possible to get fills for limit orders which are better than the  specified limit price.
I believe this is unrealistic in real markets.
Potential Solution
Modify the default Order Fill Strategy to execute at the specified Limit Price in case of non-marketable limit orders.
Reproducing the Problem
Execute the following code on QuantConnect
class FatVioletCoyote(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2020, 1, 8)
        self.SetEndDate(2020, 1, 8)

        self.order_posted = False

        self.SetCash(100000)
        self.AddEquity("CEI", Resolution.Tick)

    def OnData(self, data):
        if not self.order_posted:
            if self.TimeIs(10, 20, 0):
                price = self.Securities['CEI'].Price
                self.Log(f"Current price: {price}")
                self.LimitOrder("CEI", 1, 3.42)
                self.order_posted = True

    def OnOrderEvent(self, order_event):
        self.Log(f"{self.Time} {order_event}")

    def TimeIs(self, hour, minute, second):
        return self.Time.hour == hour and self.Time.minute == minute and self.Time.second == second

It results:
2020-01-08 10:20:00 : | Current price: 3.92
2020-01-08 10:20:00 : | 2020-01-08 10:20:00.011000 Time: 01/08/2020 15:20:00 OrderID: 1 EventID: 1 Symbol: CEI Status: Submitted Quantity: 1 LimitPrice: 3.42
2020-01-08 11:20:12 : | 2020-01-08 11:20:12.553000 Time: 01/08/2020 16:20:12 OrderID: 1 EventID: 2 Symbol: CEI Status: Filled Quantity: 1 FillQuantity: 1 FillPrice: 3.41 USD LimitPrice: 3.42 OrderFee: 1 USD
2020-01-08 16:00:00 : | Algorithm Id:(b57e76b754b542db8aa73552428f78b8) completed in 3.76 seconds at 39k data points per second. Processing total of 148,364 data points.

System Information
QuantConnect platform, also on Lean Latest
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[x] I have provided detailed steps to reproduce the issue

Closing for now since no response, feel free to reopen when replying though 👍


music jolly

An advanced Music Bot, with Button interactivity, Best Filters , Best UI , Own bot channel supported , based on Distube.JS and Discord.JS


Channels: The ability to sort Posts & Reposts into categories (multiple timelines under one account) for users to selectively follow

I want to preface this (frankly, gargantuan) feature request by saying:
I present this request not as an immediate need, but as a larger goal to work towards for the future, as it would require the development of several smaller features in order to achieve it. However, this does represent a larger set of issues currently being felt across Bluesky as a social platform, so I hope this submission prompts some discussions.

Is your feature request related to a problem? Please describe.
Currently, one of the biggest limitations on Bluesky is that users lack control over how posts are displayed and viewed. We lack the ability to tag and flag our posts in meaningful ways for other users, the ability to control what we see from the users we follow on our Home Feed, and the ability to control the privacy of our posts outright.
Adults are being adults online. That alone is great, and I love to see it. But as much as I want and enjoy this freedom to post online, there's still a lot of people whose nudes I'd prefer to control whether I see them in my Home feed or not, without also having to unfollow their accounts outright.
Manual flagging is on the roadmap (#1053), and this is a good first step! But it won't offer enough control, or any meaningful privacy.

Describe the solution you'd like
What I'd like to suggest is a feature that I've yet to see similar platforms implement:
The ability to sort Posts & Reposts into categories, user-defined timelines managed under a single account.
(Platforms like Tumblr and Cohost allow users to create multiple "Blogs" or "Pages" respectively.
Twitter/Mastodon users resort to secondary "alt" accounts to achieve this functionality.)
For brevity, I'm going to call these user-defined timelines "Channels".
The core ideas and goals behind "Channels" are:

Provide ways for users to assign and sort their posts into separate timelines, categorizing them in the process.
The goal would be to mitigate forcing users to create new alternate accounts just to achieve the same result.

Creating new accounts is currently restricted, as new Bluesky accounts require invite codes.

Greater control over the Home Feed:

Give followers the ability to choose specifically which categories of posts they wish to follow, improving the readability of the Home Feed and the functionality any custom-authored Feeds.

Privacy Control:

Allow users to control which of their posts are plainly visible on their profile's "Posts" timeline by default.
User timelines that provide clean and direct access to posts/reposts for specific content or subjects.
True privacy for posts & reposts that feature sensitive, sexual or explicit content.

I've created mock-ups to help communicate these ideas, attached below.

User Profile - "Posts" Timeline displaying posts from specific Channels
Users could configure their "Posts" timeline to only show posts from specific Channels. Channels wouldn't necessarily need to be private in order to be excluded from the Posts Timeline.
This configuration could determine the Channels that new followers see by default. To change this, followers would only need to investigate the Channels tab, or the +Follow Settings dropdown menu.
Specific Channels could also be pinned directly to the User's Profile, to highlight timelines that are most important to the User.

User Profile - "Channel" Tab
The list of available Channels, detailing the number of posts, reposts, latest activity, and a brief (optional) description.
This demonstrates a Locked Private Channel, requiring the User to approve requests before new followers can access that timeline. Channels would have defined privacy settings, so there's never any confusion as to whether a specific Channel's posts are public or not.

User Profile - "Follow" Settings Dropdown Menu
It's important that Channel settings are easy to find, so these could also be made available via a dropdown next to the +Follow button.
Also seen here are stand-ins for "default" channels that everyone would have. Controls for whether you follow a User's everyday uncategorized posts, and the ability to hide a User's Reposts from the Home Feed — with options for whether you only hide Reposts of other users, Self-Reposts, or all Reposts outright.

New Post - "Post to Channel" Selection Bar
Finally, one example of how Posts could be assigned to a Channel. The goal would be to streamline this option and make it as unobtrusive as possible, so reducing the Channel selection to a one-button option (as pictured) or two-button selection (dropdown) would be ideal.

Other examples:

Using a post's "More…" dropdown menu to assign or reassign Channels on a post-by-post basis.
A "Post Management" page, a tool to perform mass-operations on multiple posts at once, using elements like search terms, media types, or content moderation flags.

Describe alternatives you've considered
From what I've seen so far, users are already attempting to use Feeds to achieve this. While this does function to a degree:

It does not solve the issue of being able to control what appears on your Home Feed.
It offers zero privacy control.
Bluesky does not feature any tools for authoring Feeds directly via the App. The creation of Feeds is currently limited to third-party tools, or learning how to code them yourself.
Feed subscription bloat. Bluesky does not have a built-in way to display a "Unified" Feed — a way to group several related Feeds into a single Timeline — so trying to catch up on a large number of single user-specific Feeds quickly becomes cumbersome.

The only other alternative is to create an alternate account. This allows for sorting posts and reposts across separate timelines by... literally having a new account for every new timeline, and micromanaging posts across multiple accounts. This is generally how this issue has been "solved" or worked around on similar platforms, and it works, but it clearly demonstrates that people have always needed a way to do this. This option is also currently restricted, as the ability to create new Bluesky accounts is locked to Invitation Codes.

Your idea of channels is interesting, but most likely out of scope. I actually think there's a better way of implementing (most) of what you're looking for here.
Self-labelling is going to (eventually) be implemented for moderation purposes, but there is the option to have user-created labels give some similar functionality to what you described here.
Rather than channels, you could have "filters" specified on the account for each self-label the account tags on their skeets. (Technically, this is already accomplished using feeds and content labels) This would also allow for you to post to multiple "channels", rather than posting to a "specific channel".
The question is whether everything here could be accomplished with self-labelling and feeds, or not. I'll need to think through it more.

For what it's worth, the reasoning I landed on for limiting posts/reposts to a single category VS labeling posts/repost with multiple categories, is that "one category per post" is unambiguous and simplifies the rules around filtering. I figured if you wanted a post to appear in more than one category, it could be reposted into additional categories afterwards.
That level of simplicity isn't a hard-need requirement though. There's clear benefits to having multiple labels too, and they could be relatively just as easy to filter. EG: Labels could have three levels of filtering - Subscribe, Unfiltered, and Mute, where "Unfiltered" and "Mute" would be the difference between a soft "I don't subscribe to this label, but it's allowed to appear alongside a Subscribed label" and a hard "Never show any posts with this label."
Also, yeah, self-moderation is going to be very important when it's eventually implemented. But I really don't believe it'll be enough on its own - we need true privacy settings here. Privacy per post, privacy per account. Privacy per label/category/feed, whatever that ends up looking like.

I actually feel Feeds could fulfill a lot of the "user-defined timeline" and "controlling what appears on your Following page" aspects, it's just that their current design and implementation really limits their usefulness. I mentioned it at the end of the post, but users are already trying to use Feeds to fulfill the "user-defined timeline" part of what I've described with Channels. SkyFeed.app (on Bluesky here) is one of the more popular tools for authoring custom feeds, and one of its more common use-cases for artists is to create a per-user feed that catches "#art" tags. But there's a lot of issues with using Feeds this way, two of the bigger ones being:

It doesn't aid in controlling what you see on your Following page. (You can't use a Feed to show or hide content from your Following page.)
There's no easy way to display the Feeds you subscribe to in a single unified timeline. (If you follow a bunch of separate Art Feeds, you have to check them all individually.)

The fact that Feeds currently rely on outside servers and tools to make them useful... really limits who can actually use them in the first place. We'd need tools in the app's front-end that can be accessed by everyday users.

Your second point could be solved by creating a unified feed showing all posts which have an "art" self-label created by individuals you follow. But filtering posts through all timelines isn't currently possible, outside of moderation labels (which aren't user-specific).
This doesn't solve your final point, though. However, I think that third-party tools like SkyFeed allow for the creation of better tools which will have capabilities hard to implement within the app itself.

It doesn't aid in controlling what you see on your Following page. (You can't use a Feed to show or hide content from your Following page.)

This is the most important part of your request, because it isn't something that labels and feeds can currently accomplish.
If there was the capability to choose self-labels to "hide / warn / display" per user, then that could be an incredibly powerful tool that would possibly be in scope.

There are some nice ideas in here (and some nice mockups!). The two premises that stand out to me are:

A way to post topically to interested followers
A way to post privately

For 1, I do actually think we can evolve hashtags and related controls in that direction. Feeds will be a factor, but I think some pretty simple controls around hashtags could do a lot of what you're saying (if we choose to invest in it). For a simple example, if it were possible to declare on your profile your main hashtags, a lot of the controls you're proposing with channels would be possible.
For 2, we're going to need to make some protocol updates to make it feasible, so I gotta just say "someday" for now.

I place a lot of value in mock-ups! Way easier to communicate ideas when you don't have to ask others to imagine them. 💁
The big thing about topical posts that I want to keep highlighted, is how much value there is in having control over the kinds of posts that appear on your default Following timeline - especially if that control could be set at a per-Follow level. It'd go a long way in helping people make the most out of the platform and tailor the experience to their own wants/needs. If that could be achieved with tags and Feed controls, I'd be happy.
Understood on Privacy controls, that's what I expected going into this. To boil it down, I'd love to see per-post privacy controls (eg: Mastodon has Public, Follower-only, and "Unlisted" posts that require direct links to view), but even account-level privacy settings (Public & Locked) would be better than nothing.
Thanks for taking the time to read through it all too, I really appreciate it.

https://github.com/bluesky-social/social-app/issues/1532


Selected object not being updated

I have a problem when I highlight the entire selected object and hit backspace. It's as if it doesn't realize that the input has been cleared. Maybe these pictures will help?

In this last image, you can see that the selected object still exists even though the input has been cleared......

.....even when I click out of the box.

It's a bug. I just verified it. Thank you for reporting.

Thank you!

I updated to the latest version but the bug persists.
Is there anything I can do?

Highlighting and hitting backspace works for me.
What is not working?

When I highlight and delete with backspace the text in the input, the selected-object keeps the old value.
When I do the same but using the delete key instead of backspace, it works perfectly.

Oh, it's windows, right?
I'm using mac. I'll have a look.

Ubuntu 14.04, Google Chrome

Yep, linux too.
Max keyboard is inferior when it comes to Backspace.

A code example of what I'm trying to do, I would host it in a Plunker or something similar but it is very coupled to a lot of other modules to make it work on its own easily
div.filters ng-if="layers.list[filterLayerIndex].totalfeatures < 5000 || (layers.list[filterLayerIndex].totalfeatures >= 5000 && layers.list[filterLayerIndex].fixed_schema_map != null && layers.list[filterLayerIndex].fixed_schema_map != undefined)"
  form#layer_filters_simplified ng-if="! filters_show_advanced"
    fieldset.column ng-repeat="(i,column) in layers.list[filterLayerIndex].filters.columns" ng-if="mustAppearInFiltersColumnList(layers.list[filterLayerIndex], column)"
      label.name for="filters_simplified_{{column.name}}"
        | {{column.name}}
      select.op ng-model="column.criteria[0].op" ng-options="op.value as op.label for op in filterStringOperators" ng-if="column.type == 'string'" default-option="Operador..."
      select.op ng-model="column.criteria[0].op" ng-options="op.value as op.label for op in filterNumOperators" ng-if="column.type == 'double'" default-option="Operador..."

      angucomplete-alt placeholder="Valores..." selected-object="column.criteria[0].value" pause="500" remote-url="{{'layers/' + layers.list[filterLayerIndex].id + '/column/info?column_name=' + column.name}}" remote-url-request-formatter="remoteUrlRequestFn" remote-url-data-field="values" title-field="value" minlength="0" match-class="highlight" text-searching="Buscando..." text-no-results="No hay coincidencias" initial-value="(column.criteria[0].value.originalObject.hasOwnProperty('value')) ? column.criteria[0].value.originalObject.value : column.criteria[0].value.originalObject" override-suggestions="true"

I used my usb keyboard but couldn't reproduce it.
@Boshen Your machine is ubuntu, isn't it? Could you try this?

Any news about this one? still a problem, unfortunately.

As I don't see this bug in my environment, I can't really fix this.
My collaborator @Boshen might be able to help but he is always busy.

@ghiden I can't reproduce this :-(

Hi,
I'm facing the same issue.
I've created a plunker to demonstrate the issue with steps to reproduce:
https://plnkr.co/edit/kur0JJg5uXaky2dxnsr1
Hope you can assist.

Hello,
I'm facing this issue too, any news here? The plunker that @lior1990 added perfectly describes the issue. Interesting is that when you add minlength to 1 the problem no longer occurs, however when minlength is 0 then this happens.

Hi,
I have the same issue, (Chrome and Safari - mac) to workaround it I am using the function below assigned to the input-changed property:
autocompleteInputChange(data) {   if (!data) {     //some code here   } }


Change advertise to 4-way, remove dead queries

FYI in general we use local rather than locally

Yes; I wanted to avoid confusing the access-model with the advertising.
Then again, I think the access-model is wrong anyway.
On 23 September 2015 at 12:35, Lloyd Watkin<EMAIL_ADDRESS>wrote:

FYI in general we use local rather than locally
—
Reply to this email directly or view it on GitHub
https://github.com/surevine/buddycloud-server-java/pull/19#issuecomment-142573876
.

--
Dave Cridland
phone  +448454681066
email<EMAIL_ADDRESS>skype  dave.cridland.surevine
[image: Surevine]
Participate | Collaborate | Innovate
Surevine Limited, registered in England and Wales with number 06726289.
Mailing Address : PO Box 1136, Guildford GU1 9ND
If you think you have received this message in error, please notify us.


RSDK-2022 - Add the cartographer module brew package

Ticket: https://viam.atlassian.net/browse/RSDK-2022
Done: Add the cartographer-module brew package
Note: The added file is identical to carto-grpc-server.rb except for two lines that I've highlighted.
Tested on: MacOS x86_64

So a couple of inline comments as well, but overall... this looks to provide "bin/carto_grpc_server" just like the previous formula does. As such, is there a reason this isn't just replacing the old one? If there is, then it needs a conflicts_with warning at least.

The slam team would like to be able to get this new formula out & working before needing to update docs. We are trying to prevent the need for lockstep deployments in coordination with Docs updates.
If we can assume nobody is going to use this new formula outside of viam until we update the docs, is the conflict with the carto formula a big deal?

So a couple of inline comments as well, but overall... this looks to provide "bin/carto_grpc_server" just like the previous formula does. As such, is there a reason this isn't just replacing the old one? If there is, then it needs a conflicts_with warning at least.

The slam team would like to be able to get this new formula out & working before needing to update docs. We are trying to prevent the need for lockstep deployments in coordination with Docs updates.
If we can assume nobody is going to use this new formula outside of viam until we update the docs, is the conflict with the carto formula a big deal?

It's pretty simple to add. It's just one line at the top of the formula, and it'll correctly warn people to uninstall the other formula first. See https://docs.brew.sh/Formula-Cookbook#specifying-conflicts-with-other-formulae


PATRIC workshops - missing workshops

We don't currently separate this out yet, so I've removed references to it for now.


Extracting text from a series of sibling elements

Hi,
This is not an issue report per se, but more like a support request. I am wondering if/how I can scrape the text/html data in the following case.
Let's assume that the HTML looks like this:

...

...

...

...

		Plot

...

...

		Cast

	...

If you are wondering, this is how the movie pages in Wikipedia look like. I am trying to extract the plots of a bunch of movies. So essentially, what I have to do is, get the element corresponding to the "Plot" header (h2), and keep grabbing the texts from the [p] tags following that element, until I hit the next header (h2) tag.
Now, one way I can think of is to get all the elements in the top-level div, and then do this. It would work, but I am wondering if there is a smarter way to extract out these stuff? I can easily get to the "Plot" header (h2) element, but I couldn't figure out how I can get to the next few sibling elements from it till the next header (h2) tag.
Thanks.

Unfortunately I can't think of any way to do that using only CSS queries. I believe you'll have to retrieve and traverse the children of #mw-content-text.
If you want a suggestion of how to do that in a concise/elegant way, I'd probably do something like this:
  def separator(elem: Element): Option[String] = elem >?> text(".mw-headline")

  val movies = (doc >> elements("#mw-content-text > *"))
    .dropWhile(!separator(_).contains("Plot"))
    .drop(1)
    .takeWhile(separator(_).isEmpty)

movies will be a list of p elements from which you can further extract information.

Thanks - was planning something similar. BTW, is there a complete api documentation, or the only way would be to go through the code?

Worked nicely - this can be closed. Thanks again.

Right now the only documentation available is the README and the source code itself (with Scaladoc in most of the core classes). I'm aware it's not much, it could certainly be improved... I hope you can find your way through the API :)


Error while trying to call 'api/v1/media/configure_to_igtv/' manually

General Question
This question is not related to api library, instead related to instagram api.
Notes
I'm trying to manually call instagram api endpoints to upload video in post.
All endpoints return successful results, ids, etc..
Headers, that used in video-related requests:

X-Instagram-Rupload-Params:{
  "is_igtv_video": "1",
  "is_unified_video": "1",
  "upload_media_height": "540",
  "xsharing_user_ids": "[]",
  "upload_media_width": "540",
  "upload_media_duration_ms": "10000",
  "content_tags": "use_default_cover",
  "upload_id": current timestamp for all kinds of this field,
  "retry_context": "{\"num_reupload\":0,\"num_step_auto_retry\":0,\"num_step_manual_retry\":0}",
  "media_type": "2"
}

Segment-Type: 2
Offset: 0
Segment-Start-Offset: segment.offset
Stream-Id: returned from initial phase=start call
X_fb_video_waterfall_id: all video-related endpoints receive same: random(1000000000,<PHONE_NUMBER>)
Retry_context:{
  "num_reupload": 0,
  "num_step_auto_retry": 0,
  "num_step_manual_retry": 0
}

Body, that used in configure_to_igtv request(signed_body=SIGNATURE. included):
  {
    "is_igtv_video": "1",
    "is_unified_video": "1",
    "igtv_ads_toggled_on": "0",
    "camera_entry_point": "173",
    "filter_type": "0",
    "timezone_offset": "10800",
    "media_folder": "Camera",
    "source_type": "4",
    "_uid": "xxx",
    "device_id": "xxx",
    "keep_shoppable_products": "0",
    "_uuid": "xxx",
    "caption": "",
    "date_time_original": "19040101T000000.000Z",
    "igtv_share_preview_to_feed": "0",
    "upload_id": "the same, that used in previous requests",
    "igtv_composer_session_id": "5bd65f86-68a2-4e3f-a094-2e51bfc7144b",
    "device": {
      "manufacturer": "Xiaomi",
      "model": "Mi 9T",
      "android_version": 29,
      "android_release": "10"
    },
    "length": 10.000,
    "clips": [
      {
        "length": 10.000,
        "source_type": "4"
      }
    ],
    "extra": {
      "source_width": 540,
      "source_height": 540
    },
    "audio_muted": false,
    "poster_frame_index": 0
  }

Flow that i use:

GET /api/v1/igtv/igtv_creation_tools/
Start segments uploading POST /rupload_igvideo/{uuid4::random()}?segmented=true&phase=start
Init segment upload(before transfer) GET /rupload_igvideo/{uuid4(without '-')-0-segment_size}?segmented=true&phase=transfer
Transfer segment POST /rupload_igvideo/{uuid4(without '-')-0-segment_size}?segmented=true&phase=transfer
End segments uploading POST /rupload_igvideo/{uuid4::random()}?segmented=true&phase=end
Upload photo POST /rupload_igphoto/{uuid4::random()}
Finish video upload(configure) POST /api/v1/media/configure_to_igtv/?video=1 <- this fail

Form

[x] I've searched the Issues
[x] I've read the basic concepts
[ ] I'm using the latest version

Question
Why i receive server processing error: um_request_failure error while trying to manually upload video in post?, how i can fix that?
Code

Nothing

Error and Output
{
	"message": "server processing error: um_request_failure",
	"status": "fail"
}

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Vary: Accept-Language, Cookie
Content-Language: en
Date: Sat, 05 Feb 2022 16:11:05 GMT
Strict-Transport-Security: max-age=31536000
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Sat, 01 Jan 2000 00:00:00 GMT
X-Frame-Options: SAMEORIGIN
content-security-policy: report-uri https://www.instagram.com/security/csp_report/; default-src 'self' https://www.instagram.com; navigate-to 'none'; object-src 'none'; form-action 'none'; base-uri 'none'; upgrade-insecure-requests; sandbox; img-src https://*.giphy.com
cross-origin-embedder-policy-report-only: require-corp;report-to="coep"
report-to: {"group": "coep", "max_age": 86400, "endpoints": [{"url": "/security/coep_report/"}]},{"group": "coop", "max_age": 86400, "endpoints": [{"url": "/security/coop_report/"}]}
origin-trial: xxx
cross-origin-opener-policy: same-origin-allow-popups;report-to="coop"
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
x-ig-push-state: c2
x-aed: 48
x-ig-set-www-claim: xxx
Access-Control-Expose-Headers: X-IG-Set-WWW-Claim
x-ig-request-elapsed-time-ms: 663
ig-set-ig-u-ig-direct-region-hint: 0
ig-set-ig-u-ds-user-id: xxx
x-ig-origin-region: xxx
X-FB-TRIP-ID: xxx
X-FB-Client-IP-Forwarded: x.x.x.x
X-FB-Server-Cluster-Forwarded: arn2c01
Alt-Svc: h3=":443"; ma=3600,h3-29=":443"; ma=3600
Content-Length: 73
Connection: keep-alive

{"message":"server processing error: um_request_failure","status":"fail"}

Hello! Were you able to resolve this issue with um_request_failure?

this is maybe the problem with upload video.
you should upload video with  'Content-Type': 'video/mp4'

up


cordova-plugin-ms-azure-mobile-apps plugin does not install on Cordova 7/8 #52

I still have the same issue when I try to install the plugin.
https://github.com/Azure/azure-mobile-apps-cordova-client/issues/52

@simya846 Can you share more information?

Which OS version did you experience the issue on?
What version of Cordova, Cordova platforms are you using?

Thanks for your quick reply!
OS: Windows 7 (Version 6.1.7601)
Cordova: 8.0.0
npm:  5.6.0

Hi @simya846
I tried to reproduce your issue with no success - all seems to be working as expected in my case. These are steps I did:
D:\work\support\cordova-client>cordova -v
8.0.0

D:\work\support\cordova-client>npm -v
5.6.0

D:\work\support\cordova-client>node -v
v9.5.0

D:\work\support\cordova-client>cordova create issue55
Creating a new cordova project.

D:\work\support\cordova-client>cd issue55

D:\work\support\cordova-client\issue55>cordova platform add android
Using cordova-fetch for<EMAIL_ADDRESS>Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: io.cordova.hellocordova
        Name: HelloCordova
        Activity: MainActivity
        Android target: android-26
Subproject Path: CordovaLib
Subproject Path: app
Android project created with<EMAIL_ADDRESS>Android Studio project detected
Android Studio project detected
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the pro
ject
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android gr
eater than 4.0. If you have a previous platform version, you do *not* need this
plugin since the whitelist will be built in.

Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving<EMAIL_ADDRESS>into config.xml file ...

D:\work\support\cordova-client\issue55>cordova plugin add cordova-plugin-ms-azure-mobile-apps
Installing "cordova-plugin-ms-azure-mobile-apps" for android
Installing "cordova-plugin-inappbrowser" for android
Android Studio project detected
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
npm install of external dependencies ok
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-ms-azure-mobile-apps to package.json
Saved plugin info for "cordova-plugin-ms-azure-mobile-apps" to config.xml

D:\work\support\cordova-client\issue55>cordova plugin list
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-ms-azure-mobile-apps 2.0.1 "Azure Mobile Apps"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.2.0 "Cordova sqlite storage plugin"

Could you please provide us a little bit more information:

Show us what plugins (cordova plugin list), version of cordova-android engine are you using
Share with us output from console produced after running cordova plugin add cordova-plugin-ms-azure-mobile-apps command


Fix anonymous frame handling in Cyphal/UDP; support Python 3.11; synchronize the default MTU setting with LibUDPard

Also, update the GitHub Actions workflow to allow testing third-party PRs via the #test hashtag.

coverage: 95.519% (+0.1%) from 95.41% when pulling 1ab90bd51e49e71eb08d6bf9dc07ca3d1a79da4e on udp-anon into f83ec3d7f941b63f7ff000e879b33c2f2d72e174 on master.


undefined-field not runned after opening files

I think this video shows another bug as well. probably not related to this issue, but it also shows the loading time it takes
https://streamable.com/cl047g
The other bug is at the end of the video. You see that it doesn't show the warnings in KitHelper until I modify the file.
Let me know if I should open a separate issue for that.
Originally posted by @FlashHit in https://github.com/sumneko/lua-language-server/issues/903#issuecomment-1019524540

I cannot reproduce this @FlashHit

I moved some parts of the code into this project, so you can reproduce it.
GunSwayRecoil.zip


Update buildHTMLReportURL to safely build url

Took a slightly different approach then originally outlined in https://github.com/YOU54F/cypress-slack-reporter/issues/979
Modifying the ciProvider created issues with other functions that also use the artifact url.
https://github.com/YOU54F/cypress-slack-reporter/blob/2c622e1356b2357e3797f99923f1dae2c4e21494/src/slack/slack-alert.ts#L643-L645
Instead, only updated the buildHTMLReportUrl function to prevent any downstream implications in other functions.

merged as part of https://github.com/YOU54F/cypress-slack-reporter/pull/988
thanks for your contribution @samswartz13 👍🏾


Inconsistent validation on characters allowed in intents

In the documentation, it says that intents should not include the following characters: : $ &
However in the LUIS portal, you get a different set of restrictions:

And if you create intents using the Authoring API, it's possible to use some of the characters that the portal does not allow, for example I am able to create an intent called What day is it? via the API, but not in the portal. If I then try to rename it in the portal I see the validation error:

Can it be made clear in the docs what characters are allowed, and can it be enforced consistently in the portal and the API?

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

ID: f926bc74-44bc-f015-6d14-da7420b2d5e9
Version Independent ID: cba6e135-1686-00d5-b6b0-b0b1544fab49
Content: Limits - LUIS - Azure Cognitive Services
Content Source: articles/cognitive-services/LUIS/luis-limits.md
Service: cognitive-services
Sub-service: language-understanding
GitHub Login: @aahill
Microsoft Alias: aahi

Thanks for the feedback! We are currently investigating and will update you shortly.

@planty Thanks for reporting this. The discrepancy is reported to our team internally and the documentation/portal will be updated to ensure it is uniform. @aahill FYI.

Thanks, in terms of documentation - I've updated the limits article to be more clear about these invalid characters.
#please-close


tfstate converts lists to #

terraforming version 0.7.1 running
terraforming vpc --tfstate or any other command, terraforming displays lists as # .
I would expect to see all the tags, or the contents of whatever list.
{
  "version": 1,
  "serial": 1,
  "modules": [
    {
    ....
      "resources": {
        "aws_vpc.BaseStack": {
          "type": "aws_vpc",
          "primary": {
            "id": "vpc-fd****",
            "attributes": {
              "cidr_block": "<IP_ADDRESS>/21",
              ...
              "tags.#": "6"
            }
          }
        },

              "ebs_block_device.#": "4",

Some resources to manage lists correctly:
        "aws_route_table.Name-public": {
          "type": "aws_route_table",
          "primary": {
            "id": "rtb-3f****",
            "attributes": {
              "id": "rtb-3fa***",
              "vpc_id": "vpc-6b***",
              "tags.#": "6",
              "tags.cleardata:customer-id": "****",
              "tags.aws:cloudformation:stack-name": "****",
              "tags.aws:cloudformation:stack-id": "arn:aws:cloudformation:us-west-2:66xxx584:stack/

It's okay. If there is the number of items in list tags.#, terraform plan complements other items.
Thanks to this behavior, we don't have to implement to include all list items in generated tfstate.
Actually aws_route_table doesn't have to include all tagged items. I missed this at code review 👀
I'll write this behavior in v1.0.0 document. Thanks!

Actually, I think there is a good use case for having the expanded tags in the output.
soapy1 and I have been working on the filtering issue.
https://github.com/dtan4/terraforming/issues/79
The most common way to filter is on vpc-id or tag.  Without the expanded tags, there's no way to do that.
This is still quite a WIP, but it is working for my needs at the moment:
https://github.com/dtan4/terraforming/pull/215


Issues with new Ambiclimate Component

Home Assistant release with the issue:

Hass.io 0.94.1
Last working Home Assistant release (if known):
N/A
Operating environment (Hass.io/Docker/Windows/etc.):

Windows 8.1
Component/platform:

Ambiclimate https://www.home-assistant.io/components/ambiclimate/
Description of problem:
I installed the new Ambiclimate component via the Integrations UI and I can see my two devices, temperature, humidity etc. I can also turn off the AC via HA, but when I try to turn it back on, I get this error:
Failed to call service climate/turn_on. ‘NoneType’ object has no attribute ‘lower’
Log Details (ERROR)
Sun Jun 09 2019 18:29:46 GMT+0700 (Indochina Time)
'NoneType' object has no attribute 'lower'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
    connection.context(msg))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call
    self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1172, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 194, in handle_service
    required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 316, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/src/homeassistant/homeassistant/components/ambiclimate/climate.py", line 213, in async_turn_on
    await self._heater.turn_on()
  File "/usr/local/lib/python3.7/site-packages/ambiclimate/__init__.py", line 245, in turn_on
    'swing': data.get('swing', 'Oscillate').lower()
AttributeError: 'NoneType' object has no attribute 'lower'

Sorry, it's the first time I report an issue, so I hope I did everything correctly.
Thanks, Marc
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

Additional information:

Does your ac support swing?
Could you set the swing from the ambiclimate app?

Yes, on the Ambi App it's set on Auto

Can you change it?

Yes, I changed it to off, but still I cannot turn the AC back on once it's off.
I understand there is no "Turn On" in the Ambi App. Instead they use Comfort or Temperature settings.

Ok, but for some reason the ambiclimate API is not reporting any swing value for your device. Will make a workaround.

In the app, it's called "Louver" with two settings; auto and off

Oh "Louver" is vertical swing and "Swing" is horizontal swing. My AC has only vertical swing (Louver)


Sassafras Protocol v0.3.2

Delivers:

ticket structures close to the final form
experimental integration with bandersnatch-vrfs
ticket ownership claiming via ed25519 challenge

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate-macos
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2832151

(Not ready. Ignore for the bogus review request...)

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2839219

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2840160

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2843584

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2843582

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2843583

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2846118

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2846119

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2846387

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2857820

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2857928

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2857927

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2857929


update-parent goal ignores version range when allowing snapshots

Consider the following command:
 mvn org.codehaus.mojo:versions-maven-plugin:2.8.1:update-parent "-DparentVersion=(,5)" "-DallowSnapshots=true"

The anticipated behavior is that the parent pom version should be updated to the latest version that is less than version 5. Instead the following happens.
❯ mvn org.codehaus.mojo:versions-maven-plugin:2.8.1:update-parent "-DparentVersion=(,5)" "-DallowSnapshots=true"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.XXXXX:XXX-XXX-XXXX >-------------------
[INFO] Building XXX-XXX-XXXX 2.2-SNAPSHOT
[INFO] --------------------------------[ rpm ]---------------------------------
[INFO]
[INFO] --- versions-maven-plugin:2.8.1:update-parent (default-cli) @ XXX-XXX-XXXX ---
[INFO] Updating parent from 4.1 to 5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.366 s
[INFO] Finished at: 2020-10-28T08:32:46-05:00
[INFO] ------------------------------------------------------------------------

I expected it to update to 4.4-SNAPSHOT (the latest 4.x version deployed).

I expected it to update to 4.4-SNAPSHOT (the latest 4.x version deployed).

I think - your expectation - or parentVersion - need to be adjusted:
$ java -jar maven-artifact-3.6.3.jar 5.0-SNAPSHOT 5.0
Display parameters as parsed by Maven (in canonical form) and comparison result:
1. 5.0-SNAPSHOT == 5-snapshot
   5.0-SNAPSHOT < 5.0
2. 5.0 == 5

Currently you allow SNAPSHOTs and all versions < 5.0, which 5.0-SNAPSHOT satisfies.

Hi @pzygielo,
In hindsight that makes sense. Snapshots always comes before releases and therefore even though I'm specifying that I want everything before 5.0, 5.0-SNAPSHOT would qualify. Thank you for clarifying. I was able to make an adjustment and it works as expected. I appreciate the clarification.


Optimize memory use for blockindex

This pull request optimizes the memory storage of the block indexes.
Block indexes store for every block the block header and some information needed for the chain validation. They are permanently kept in memory to speed up the validation process. Part of this extra data are the votes of the community fund/dao. Even if the votes of a block were empty, they were still using some memory space. This means even the first blocks of the chain (when no community fund was active) were taking memory space as if they had votes. This effect has been exaggerated with the introduction of the dao upgrade.
After the patch, a different set of data structures are used. Only blocks which include votes of a particular type attach data to those structures, hence reducing considerably the memory use. Other unused fields like prevoutStake and nStakeTime are also removed from memory.
What to test:

memory use is effectively reduced when using this branch
stressor tests run succesfully
chain sync tests

Took a while to read the Diff, but changes seem to make sense, will do a build and some tests on mainnet.

[ ] sync from genesis
[ ] sync from genesis (restart in the middle)
[ ] run a the stress test a few times

Btw @aguycalled I saw some lines modified that only changed the whitespace, might make sense to add a linter of some sort to enforce some rules on whitespace, indentation and formatting.

A new build of 67a7a797901dd485d371ff5ca07330042ee00e3c has completed succesfully!
Binaries available at https://build.nav.community/binaries/optimize-blockindex-memory

A new build of f4177a6a9b21a9863fdaf39824c91144e29de639 has completed succesfully!
Binaries available at https://build.nav.community/binaries/optimize-blockindex-memory

Old master build was running 1.75GB RAM on my navcoind node, this branch is using about 1.5GB
So it's a nice ~200MB decrease.

Ran the stress script 2 times for ~400 blocks each time, worked fine with this branch.


Can't distinguish between a lack of value and an empty value

Given these urls:

http://example.com
http://example.com?foo
http://example.com?foo=

evaluating Url.queryString("foo") gives identical result: "".
I expect this behavior instead:

http://example.com -- false or null or undefined
http://example.com?foo -- true
http://example.com?foo= -- ""

This is a major bug to me. Consider this current behavior:
// Given URL http://example.com
const foo = Url.queryString("foo");
Url.updateSearchParam("foo", foo);
// Now the URL is different from what it was initially, even though we set the same value as we got.

I expect this behavior instead:

I agree. :+1: Currently, I work on other things, but feel free to hack it and send us a pull request. I will take care of it.
It should be done in this function, probably. :thought_balloon:

No time to hack into it either, I'm sorry. :(

It should be done in this function, probably. :thought_balloon:

I believe all four main methods require the update. E. g. updateSearchParam('foo', true) currently results in ?foo=true, should be ?foo.

I'm on it. Wish me success. :smile:


Scrollbar for X axis if the data is large

What problem does this feature solve?
Need to show a horizontal scroll bar in bar charts when the amount of data is large
What does the proposed API look like?
xAxis: {
                scrollBar: true
            },

You can use dataZoom: [{type: 'slider'}].
Example

This is not scroll, this is zoom. And while they might look the same, for data visualization purposes they are different.
I have a list of horizontal bar charts that vary in total number from 1 to a couple of thousand. I can not have Zoom, I need a scroll with bars having the same width throughout the data.

Need to show a horizontal scroll bar in bar charts when the amount of data is large. If my data fits into given size no need to show scroll but if data amount is more than the given size of chart container then I need to show scroll, but please I don't want to use dataZoom feature. I need a scroll with bars having the same width throughout the data.


[i18n] Korean translation

Type of Pull Request

[ ] Bug fix
[x] Enhancement

Related Issue #s or links (if any): #67
Description of Changes
Korean Translation added.

I've added additional files based on other PRs.
Let me know if there are more to be done!


Support an equivalent to --exit for Mocha

From the command line, mocha supports an '--exit' parameter that kills the process on exit. This is important to avoid having the process hanging: https://mochajs.org/#--exit----no-exit
When this happens with wdio, mocha hangs and the test run never completes. We should either allow the caller to configure a callback function on Mocha.run to simulate that, orhave an exit configuration and handle the force exit process on this library.

you can apply it within mochaOpts in your wdio config:
mochaOpts: {
  exit: true
}

@christian-bromann I don't think that would work, exit is not on one of the supported mocha options: https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options.
That command line option is only parsed by https://github.com/mochajs/mocha/blob/9d407deb77d9f6bdc44928e25dd8a739069d6a0d/bin/_mocha#L222
and https://github.com/mochajs/mocha/blob/9d407deb77d9f6bdc44928e25dd8a739069d6a0d/bin/_mocha#L650

Well there is no such equivalent in WebdriverIO. WebdriverIO spawns multiple processes and can't just kill all of them once one of the others fail. What is your use case here exactly?

My suggestion is to pass a callback function on mocha.run call from the adapter (https://github.com/webdriverio/wdio-mocha-framework/blob/master/lib/adapter.js#L106) similar to the one that _mocha is using:

const exit = code => {
const clampedCode = Math.min(code, 255);
let draining = 0;

// Eagerly set the process's exit code in case stream.write doesn't
// execute its callback before the process terminates.
process.exitCode = clampedCode;
// flush output for Node.js Windows pipe bug
// https://github.com/joyent/node/issues/6247 is just one bug example
// https://github.com/visionmedia/mocha/issues/333 has a good discussion
const done = () => {
if (!draining--) {
process.exit(clampedCode);
}
};
const streams = [process.stdout, process.stderr];
streams.forEach(stream => {
// submit empty write request and wait for completion
draining += 1;
stream.write('', done);
});
done();
};
My use case here is: about 15% of my webdriverio test runs never exit because the mocha doesn't exit so webdriver never ends the runner ("suite:end" fires but "runner:ends" doesn't).

My use case here is: about 15% of my webdriverio test runs never exit

Why is that?

My use case here is: about 15% of my webdriverio test runs never exit

Why is that?

because the mocha doesn't exit :)  This a known behavior in mocha and their solution for it is the exit flag. What I am asking is to have a way for me to do the same.

@marcelas tests that are getting executed synchronously usually never get stalen .. do you have a reproducible example?

Also .. we always call process.exit in the testrunner per default


Fix source mappings not appearing in fuse:

Move windows path remapping later in the process so that path comparisons for source mappings are unaffected

@dotnet/razor-compiler for review please.
//cc @ryzngard

Is there no way to test this change?

Is there no way to test this change?

Good point, should be able to come up with something. Let me do that.


As a participant in a game, I want to get a summary of the game including the Google Maps links to the winning location submissions to use them for my itinerary

Acceptance Criteria

[ ] The game summary screen should show all submissions that won the voting.
[ ] #111
[ ] The Google Maps link should be a hotlink, leading the user to the place details page on Google Maps

Development Tasks

[ ] sopra-fs24-group-12/PeekSeek-client#27
[ ] sopra-fs24-group-12/PeekSeek-client#29
[ ] Create UI for GameSummary

[ ] Create UI for GameSummary


Fix French translations of document identifiers

From https://github.com/metanorma/bipm-si-brochure/issues/193
From BIPM Janet Miles:
When referring to the Resolutions I’d provided you with the English description but not the French: in French the model for “CGPM Resolution X (YYYY)” would be

Résolution X de la CGPM (YYYY)

And there’s another slight complication in that the wording is “de la” for the CGPM, but “du” for the CIPM and Consultative Committees:

Recommandation 2 du CCDS (1970)

If this proves problematic we’ll have to find another solution… On the French version of the BIPM website my shortest version of the references is:

CCTF - Recommandation 2 (1970)

I believe this is a Relaton issue. The data source at bipm-data-outcomes does not provide this text.
In realton-data-bipm, this text is provided:
https://github.com/relaton/relaton-data-bipm/blob/9fd0943b7b142a23903bee0a8386463736e1a1af/data/cipm/meeting/resolution/1948-00.yaml#L26-L40
docid:
- id: CIPM Resolution (1948)
  type: BIPM
  primary: true
- id: CIPM Resolution (1948)
  type: BIPM
  primary: true
  language: en
  script: Latn
- id: CIPM Résolution (1948)
  type: BIPM
  primary: true
  language: fr
  script: Latn
docnumber: CIPM Resolution (1948)

So this is a task for @andrew2net , and there may be some impact to relator-render (@opoudjis )

We need to decide whether "Résolution X de la CGPM (YYYY)" is an actual document identifier, or an in-content textual reference.
I'm discussing this with the BIPM right now, so please hold off for now.

This issue is active again due to this guide: https://metanorma.github.io/bipm-editor-guides/documents/bipm-outcomes-en.html
@andrew2net can you please help address this? Thanks!

@ronaldtse as I understans, we need to use these translations as references. We don't need to update document identifiers, correct?

We need to add a French conjunctive "de la" for "CGPM" and a conjunctive "du" for other group names, correct?
A conjunctive is placed between resource-specific-id and group-name. Should we add a conjunctive if a document doesn't have resource-specific-id?

Is this ok?

CGPM resolution without number https://github.com/relaton/relaton-data-bipm/blob/19a1414b90ceb31a97bec6549079c8c16e1624c7/data/cgpm/meeting/resolution/1889-00.yaml#L37-L63
CGPM resolution with a number https://github.com/relaton/relaton-data-bipm/blob/19a1414b90ceb31a97bec6549079c8c16e1624c7/data/cgpm/meeting/resolution/1901-01.yaml#L37-L63
Another group name  recommendation https://github.com/relaton/relaton-data-bipm/blob/19a1414b90ceb31a97bec6549079c8c16e1624c7/data/ccem/meeting/recommendation/2005-01.yaml#L37-L63
Decisions of the CIPM (since 2012) https://github.com/relaton/relaton-data-bipm/blob/19a1414b90ceb31a97bec6549079c8c16e1624c7/data/cipm/meeting/decision/2012-101-1.yaml#L35-L61
Recommendations/Resolutions/Decisions of the JCRB https://github.com/relaton/relaton-data-bipm/blob/19a1414b90ceb31a97bec6549079c8c16e1624c7/data/jcrb/meeting/resolution/1999-2-3.yaml#L35-L61

@andrew2net the French long identifiers are wrong.
- id: CGPM Résolution 1 de la (1901)
  type: BIPM-long
  primary: true
  language: fr
  script: Latn
- id: CGPM Resolution 1 (1901) / CGPM Résolution 1 de la (1901)
  type: BIPM-long
  primary: true

They should be:
- id: Résolution 1 de la CGPM (1901)
  type: BIPM-long
  primary: true
  language: fr
  script: Latn
- id: CGPM Resolution 1 (1901) / Résolution 1 de la CGPM (1901)
  type: BIPM-long
  primary: true

Please fix this ASAP.

So, because there is a lot of stuff going on, this is what I need you to do.

There are two types of identifier: BIPM, and BIPM-id (formerly: BIPM-long, and BIPM)
The default remains BIPM, but it is now what we have been calling the long ID
Only BIPM is primary; BIPM-id is not primary
As Ronald points out, the long French ID is not  "CGPM Résolution 1 de la", but "Résolution 1 de la CGPM"

So the complete listing for CGPM Resolution 1 becomes:
  <docidentifier type="BIPM-id">CIPM REC 2 (2002)</docidentifier>
  <docidentifier type="BIPM-id" language="en" script="Latn">CIPM REC 2 (2002, E)</docidentifier>
  <docidentifier type="BIPM-id" language="fr" script="Latn">CIPM REC 2 (2002, F)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="en" script="Latn">CIPM Recommendation 2 (2002)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="fr" script="Latn">Recommandation 2 du CIPM (2002)</docidentifier>
  <docidentifier type="BIPM" primary="true">CIPM Recommendation 2 (2002) / Recommandation 2 du CIPM (2002)</docidentifier>

I also see you use ordinals in the English BIPM identifiers. They need to be correct: right now you have:
bundle exec relaton fetch "CGPM -- Meeting 1 (1889)"
returns
  <docidentifier type="BIPM" primary="true" language="en" script="Latn">CGPM 1th Meeting (1889)</docidentifier>

That needs to be 1st, not 1th!
I recommend you use twitter_cldr, which I do:
For English,
require "twitter_cldr"

n = "1".to_i # the number to form the ordinal of, must be an integer

n.localize(:en).to_rbnf_s("OrdinalRules", "digits-ordinal")

That will return "1st", "2nd", "123rd", "54th", etc.

bundle exec relaton fetch "CGPM -- Meeting 1 (1889)"
in French is returning:
 <docidentifier type="BIPM" primary="true" language="fr" script="Latn">CGPM 1e Meeting (1889)</docidentifier>
That's Réunion, not Meeting! Please check the correct translations are being looked up.

@andrew2net the French long identifiers are wrong.
- id: CGPM Résolution 1 de la (1901)
  type: BIPM-long
  primary: true
  language: fr
  script: Latn
- id: CGPM Resolution 1 (1901) / CGPM Résolution 1 de la (1901)
  type: BIPM-long
  primary: true

They should be:
- id: Résolution 1 de la CGPM (1901)
  type: BIPM-long
  primary: true
  language: fr
  script: Latn
- id: CGPM Resolution 1 (1901) / Résolution 1 de la CGPM (1901)
  type: BIPM-long
  primary: true

Please fix this ASAP.

@ronaldtse fixed https://github.com/relaton/relaton-data-bipm/blob/ccf1c3f8fd8eeba2401c60dcca2779e98a30a005/data/cgpm/meeting/resolution/1901-01.yaml#L55-L60

So, because there is a lot of stuff going on, this is what I need you to do.

There are two types of identifier: BIPM-long, and BIPM

Only BIPM is primary; BIPM-long is not primary

As Ronald points out, the long French ID is not  "CGPM Résolution 1 de la", but "Résolution 1 de la CGPM"

Not your problem, but:

In other flavours, BIPM documents are both cited and referenced with the BIPM identifier
In BIPM itself, documents are referenced (in references) with the BIPM identifier, but cited (in text) with the long identifier. I'm taking care of that.

So the complete listing for CGPM Resolution 1 becomes:
  <docidentifier type="BIPM" primary="true">CIPM REC 2 (2002)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="en" script="Latn">CIPM REC 2 (2002, E)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="fr" script="Latn">CIPM REC 2 (2002, F)</docidentifier>
  <docidentifier type="BIPM-long" language="en" script="Latn">CIPM Recommendation 2 (2002)</docidentifier>
  <docidentifier type="BIPM-long" language="fr" script="Latn">Recommandation 2 du CIPM (2002)</docidentifier>
  <docidentifier type="BIPM-long">CIPM Recommendation 2 (2002) / Recommandation 2 du CIPM (2002)</docidentifier>

@opoudjis fixed https://github.com/relaton/relaton-data-bipm/blob/ccf1c3f8fd8eeba2401c60dcca2779e98a30a005/data/cipm/meeting/recommendation/2002-02.yaml#L37-L60

bundle exec relaton fetch "CGPM -- Meeting 1 (1889)"
in French is returning:
<docidentifier type="BIPM" primary="true" language="fr" script="Latn">CGPM 1e Meeting (1889)</docidentifier>

That's Réunion, not Meeting! Please check the correct translations are being looked up.

@opoudjis fixed https://github.com/relaton/relaton-data-bipm/blob/ccf1c3f8fd8eeba2401c60dcca2779e98a30a005/data/cgpm/meeting/1.yaml#L43-L47

So, because there is a lot of stuff going on, this is what I need you to do.

There are two types of identifier: BIPM-long, and BIPM

Only BIPM is primary; BIPM-long is not primary

As Ronald points out, the long French ID is not  "CGPM Résolution 1 de la", but "Résolution 1 de la CGPM"

Not your problem, but:

In other flavours, BIPM documents are both cited and referenced with the BIPM identifier
In BIPM itself, documents are referenced (in references) with the BIPM identifier, but cited (in text) with the long identifier. I'm taking care of that.

So the complete listing for CGPM Resolution 1 becomes:
  <docidentifier type="BIPM" primary="true">CIPM REC 2 (2002)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="en" script="Latn">CIPM REC 2 (2002, E)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="fr" script="Latn">CIPM REC 2 (2002, F)</docidentifier>
  <docidentifier type="BIPM-long" language="en" script="Latn">CIPM Recommendation 2 (2002)</docidentifier>
  <docidentifier type="BIPM-long" language="fr" script="Latn">Recommandation 2 du CIPM (2002)</docidentifier>
  <docidentifier type="BIPM-long">CIPM Recommendation 2 (2002) / Recommandation 2 du CIPM (2002)</docidentifier>

@opoudjis fixed https://github.com/relaton/relaton-data-bipm/blob/ccf1c3f8fd8eeba2401c60dcca2779e98a30a005/data/cipm/meeting/recommendation/2002-02.yaml#L37-L60

Confirmed:
CIPM:
  <docidentifier type="BIPM" primary="true">CIPM REC 2 (1989)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="en" script="Latn">CIPM REC 2 (1989, E)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="fr" script="Latn">CIPM REC 2 (1989, F)</docidentifier>
  <docidentifier type="BIPM-long" language="en" script="Latn">CIPM Recommendation 2 (1989)</docidentifier>
  <docidentifier type="BIPM-long" language="fr" script="Latn">Recommandation 2 du CIPM (1989)</docidentifier>
  <docidentifier type="BIPM-long">CIPM Recommendation 2 (1989) / Recommandation 2 du CIPM (1989)</docidentifier>

CGPM:
  <docidentifier type="BIPM" primary="true">CGPM RES 1 (1889)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="en" script="Latn">CGPM RES 1 (1889, E)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="fr" script="Latn">CGPM RES 1 (1889, F)</docidentifier>
  <docidentifier type="BIPM-long" language="en" script="Latn">CGPM Resolution 1 (1889)</docidentifier>
  <docidentifier type="BIPM-long" language="fr" script="Latn">Résolution 1 de la CGPM (1889)</docidentifier>
  <docidentifier type="BIPM-long">CGPM Resolution 1 (1889) / Résolution 1 de la CGPM (1889)</docidentifier>

I also see you use ordinals in the English BIPM identifiers. They need to be correct: right now you have:
$ bundle exec relaton fetch "CGPM -- Meeting 1 (1889)"

returns
<docidentifier type="BIPM" primary="true" language="en" script="Latn">CGPM 1th Meeting (1889)</docidentifier>

That needs to be "1st", not "1th"!

@opoudjis fixed https://github.com/relaton/relaton-data-bipm/blob/ccf1c3f8fd8eeba2401c60dcca2779e98a30a005/data/cgpm/meeting/1.yaml#L38-L42

Confirmed:
  <docidentifier type="BIPM" primary="true" language="en" script="Latn">CGPM 1st Meeting (1889)</docidentifier>
  <docidentifier type="BIPM" primary="true" language="fr" script="Latn">CGPM 1e Réunion (1889)</docidentifier>
  <docidentifier type="BIPM" primary="true">CGPM 1st Meeting (1889) / CGPM 1e Réunion (1889)</docidentifier>

@opoudjis this ticket seems solved, any further issue please reopen or file a new ticket. Thanks!


[Bug] docker compose fail from branch 'dev'

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
Execute the Docker Compose build command
docker-compose up -d

It seems to be missing a sql file named 'final.sql'. I found the same file from another branch.
Link is: https://github.com/apache/incubator-streampark/blob/1.2.3-release/streamx-console/streamx-console-service/src/assembly/script/final.sql
I compared the 'final.sql' with '/streampark-console/streampark-console-service/src/assembly/script/schema/mysql-schema.sql'. They look the same, should I copy mysql-schema content to final.sql OR update mysql's DockerFile?
StreamPark Version
branch dev
Java Version
openjdk 11
Flink Version
1.14.5
Scala Version of Flink
2.12
Error Exception
Creating network "docker_default" with the default driver
Creating volume "docker_mysql-data" with default driver
Creating volume "docker_flink1.14.5" with default driver
Building database
[+] Building 3.3s (6/6) FINISHED
 => [internal] load build definition from Dockerfile                                                                                0.1s
 => => transferring dockerfile: 1.16kB                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.1s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load metadata for docker.io/biarms/mysql:5.7                                                                                3.0s
 => [internal] load build context                                                                                0.0s
 => => transferring context: 337B                                                                                0.0s
 => CANCELED [1/2] FROM docker.io/biarms/mysql:5.7@sha256:b39d533d02e6b8f7bf61e9f884b99b6560a106d812eb1a24ca7a842f8334b5a2                                                                                0.1s
 => => resolve docker.io/biarms/mysql:5.7@sha256:b39d533d02e6b8f7bf61e9f884b99b6560a106d812eb1a24ca7a842f8334b5a2                                                                                0.0s
 => => sha256:87e408fb202281a63754ed23780eea349c06f83f3911920411174ec8b6cb5cf7 3.04kB / 3.04kB                                                                                0.0s
 => => sha256:babd77b9be8d7948c4ccc09d185074fcf522ef1cbc3a6a640b32d672380bf84f 10.15kB / 10.15kB                                                                                0.0s
 => => sha256:b39d533d02e6b8f7bf61e9f884b99b6560a106d812eb1a24ca7a842f8334b5a2 1.11kB / 1.11kB                                                                                0.0s
 => ERROR [2/2] COPY streampark-console/streampark-console-service/src/assembly/script/final.sql /docker-entrypoint-initdb.d/01-streampark.sql                                                                                0.0s
------
 > [2/2] COPY streampark-console/streampark-console-service/src/assembly/script/final.sql /docker-entrypoint-initdb.d/01-streampark.sql:
------
failed to compute cache key: "/streampark-console/streampark-console-service/src/assembly/script/final.sql" not found: not found
ERROR: Service 'database' failed to build : Build failed

Screenshots
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

/cc @MonsterChenzhuo PTAL

@wolfboys @MonsterChenzhuo I found schema and data sql file in /streampark-console/streampark-console-service/src/assembly/script. Should fix DockerFile, I guess. Could I commit pr for this?

@wellCh4n  The problem with this piece is that streampark supports multiple data sources this pr, the changes that come with it, and thus the problems that arise.The default is to use h2, I think the mysql part inside docker-compose can be removed? You can try to do modify. modify docker-compse and remove the mysql part. Get it running, make sure it's okay, and I'll review the pr for you.

@MonsterChenzhuo Remove mysql part inside docker-compose is not a good idea in my opinion. Cuz Dockerfile is a fast mode for beginner.
Could we provide multiple docker-compose.yml for this project?

I had commit PR, its a quickly solution for this problem.
We need do something after fix it if we wanna support multiple data source.


About file name decoding.

It will be better to decode file's name in your curlToDisk() function.
private function curlToDisk($url, $target) {
		$fp = fopen($target, 'w');
like this...
private function curlToDisk($url, $target) {
		$strDecodedTarget = urldecode($target);
		$fp = fopen($strDecodedTarget, 'w');
then, it will save file name

6564fa20_20190626_%E7%AE%B1%E5%B4%8E%E6%98%9F%E6%A2%A8%E8%8A%B1.png

to

6564fa20_20190626_箱崎星梨花.png

Thank you, I've added it just as you suggested!


[BUG] Link for piston-demo is dead

The link for the piston-demo is dead.
https://github.com/38/plotters/tree/master/examples/piston-demo

Where is the code for the live CPU plot example?

Thanks for reporting this. Got link fixed on master branch!


Use local mode by default

Fixes #1202

I added the --local flag back so that we don't break our bash scripts and and everyone else's. If you use this flag, a warning is displayed explaining that the flag does nothing and will be removed.


Scheduled CI often fails to download windows dll

Re-running failed tests usually sorts things out suggesting it's an infrastructure issue.

do you know why it's look we install winpcap twice ?
        run: |
          cinst -y winpcap --version <IP_ADDRESS>61116
          (New-Object System.Net.WebClient).DownloadFile("https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip", "C:/WpdPack.zip")
          Expand-Archive -LiteralPath C:/WpdPack.zip -DestinationPath C:/
          echo "LIB=C:/WpdPack/Lib/x64" >> $env:GITHUB_ENV

one with choco and one manually.

@Stargateur
1st line (cinst) is for winpcap (I guess it contains driver and dlls).
2nd line is for WpdPack.zip which is a sdk for winpcap (I guess it contains .h files).

See https://github.com/rust-pcap/pcap/pull/262, I found the problem (I think).


not the default of NGINX log, how to format it

my nginx log like    2014/12/01 15:05:00|<IP_ADDRESS>|333.333.333.333|image|200|………………more then  60 field
hao to use this project  format these log
can this function be realized?

Right now I don't want to make the whole format totally configurable because of the induced performance cost but some formats may still be OK due to some tolerance and auto-adaptation when reading.
Can you provide a small test log file so that I see if it could be read without big change in rhit ?
You may anonymise log files with https://github.com/Canop/anolog (or manually, a log with a dozen lines is enough for my tests)

Right now I don't want to make the whole format totally configurable because of the induced performance cost but some formats may still be OK due to some tolerance and auto-adaptation when reading.
Can you provide a small test log file so that I see if it could be read without big change in rhit ?
You may anonymise log files with https://github.com/Canop/anolog (or manually, a log with a dozen lines is enough for my tests)

How to change the log format for log file

It's not configurable in rhit today.
I'll probably do it at some point.


Fix typo

a Azure -> an Azure

@changeworld : Thanks for your contribution! The author, @kanshiG, has been notified to review your proposed change.

#sign-off

@JasonWHowell: I'm sorry - only the author of this article, @kanshiG, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Bug: Debug bar javascript issue with external script toggle

PHP Version
7.4
CodeIgniter4 Version
4.1.6
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
No response
What happened?
I am using Foundation 6.7 for front-end and CodeIgniter 4.1.6 for the back-end.
I thought it was an issue with a library inside Foundation till I revised what the code did.
I basically get this error when toggling my element:
Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
    at HTMLAnchorElement.toggleRows (<anonymous>:145:45)

That is inside the ciDebugBar element in the toggleRows function:

Steps to Reproduce
I use the off-canvas element of Foundation and a toggle button which uses the data-toggle button.
You can check it here https://get.foundation/sites/docs/off-canvas.html
The smallest reproducible code would be:
<!doctype html>

 <meta charset="utf-8">

 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.7.4/css/foundation.min.css" integrity="sha512-TgmH0v8FUwmsr3yDgd5PTCgR6lRZ2Q5c7KsUNTHcoxZpOExCX16MYECIL4xdRQOhQlz7pCnZlmA4zda58QWxBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />

        Ver menu

Expected Output
I don't expect an error inside console.
Anything else?
No response

Ref. #5334
I believe, that this part here should rather hook the toggleRows function to all data-toggle elements in the CI toolbar and not the whole document:
https://github.com/codeigniter4/CodeIgniter4/blob/ccc4a5e8f45072de35b07da9e639f6f120880532/system/Debug/Toolbar/Views/toolbar.js#L62-L67
Summoning @lonnieezell, who introduced this.

Should be closed by #5544

Probably nobody confirmed the fix.
The current develop has broken Debug Toolbar.

@mihail-minkov Thank you for reporting.
This bug should have been fixed in the latest develop branch.
Could you check?

@mihail-minkov Thank you for reporting. This bug should have been fixed in the latest develop branch. Could you check?

No problem, anytime! So, I suppose the fix would be rolled out with 4.1.7 right? @kenjis

@mihail-minkov Yes, the fix will be included in v4.1.7.


AC Different modes

Hello,

Is there a way to enable/disable different modes such as , quietMode, Health mode, Xfan maybe using switches ?
thank you !

Hey, the plugin doesn't have those features, and I can't add them because I no longer have a Gree AC


Square or grids artifacts when train rrdn on grayscale mass spectrometry images

Hi,
I was training the rrdn model for mass spec images. I converted the grayscale images to 'rgb' by stacking up the same channel.
However, I had a look at the predicted images from low-res files and square or grids artifacts are filled up in the generated images. Here are two examples with the corresponding ground truths:

I noticed in #134 the solution for the grid artifact was to use padding_size. But my images are not huge, they are (176, 92), (176, 144), (200, 152) and (100, 136). What could be a potential solution to get rid of these artifacts?
Thank you!
Tim

Probably a duplicate of #134


Non-compliance?

I appreciate v7 is still in draft, however, UUIDv7 specifies the timestamp part as,
the number of milliseconds seconds since midnight 1 Jan 1970 UTC, leap seconds excluded.
and
For other levels of precision UUIDv8 SHOULD be utilized.
Yet this library appears to use seconds and fractions (ns?) instead of epoch ms?

Hi guys. Thanks for the suggestions. I'll at those references and adjust as soon as work allows.
Feel free to nudge me if you want it to happen quicker!

@stevesimmons just bumping thread this in case you've missed my PR (see above)

I appreciate v7 is still in draft, however, UUIDv7 specifies the timestamp part as,
the number of milliseconds seconds since midnight 1 Jan 1970 UTC, leap seconds excluded. and For other levels of precision UUIDv8 SHOULD be utilized.
Yet this library appears to use seconds and fractions (ns?) instead of epoch ms?

It's not clear to me how the latest version of the draft could actually work. It specifies only 48 bits to store the number of milliseconds since the epoch, but as of this post at least 51 bits are required: log2(<PHONE_NUMBER>075024 ) = 50.6 bits. Or am I missing something?

Got a comment on my blog regarding my site that I put together using this Python implementation (uuid7.com). A reader entered the example UUID7 (017F21CF-D130-7CC3-98C4-DC0C0C07398F) from the draft spec (https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-03.html#name-example-of-a-uuidv7-value), and expected to see 2022-02-22 2:22:22. The result from this library is Fri, 24 Sep 1982 19:18:21 GMT. Another nudge/bump!

Got a comment on my blog regarding my site that I put together using this Python implementation (uuid7.com). A reader entered the example UUID7 (017F21CF-D130-7CC3-98C4-DC0C0C07398F) from the draft spec (https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-03.html#name-example-of-a-uuidv7-value), and expected to see 2022-02-22 2:22:22. The result from this library is Fri, 24 Sep 1982 19:18:21 GMT. Another nudge/bump!
I personally am ok with the extra resolution/precision of the time. Would be great if it could be specified!

It's best to refer to the most recent draft (currently v14) at:
https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/
As this repo clearly shows, draft standards can be moving targets and changes to the draft can cause lots of issues with early implementations. It doesn't look like the standard is too far away from being published, so the latest draft should be quite stable now compared with two years ago.

Ah ok, I assume this'd be why I'm seeing odd UUIDs coming out of it which when you extract the timestamp info resolves to dates ca. 2191. With this kind of bug this library is unusable, author should probably push a warning in the README to that effect as one big reason to use v7 UUIDs is their ability to be sortable (with millisecond resolution) and to be able to extract the date/time out of it (normally UTC).
E.g.,

[datetime.datetime.now().isoformat(), uuid_extensions.uuid7()]
['2024-01-31T13:23:39.126235', UUID('065ba49d-b205-71fc-8000-2cefb0466f7c')]

"065ba49d-b205-71fc-8000-2cefb0466f7c" resolves to "2191-07-11 13:46:28.741+00"
You should be seeing UUIDv7's with values more like this: "018d5fb2-6583-7059-b4b6-eb7fffcb3da1", i.e., starting ~"018..."

Ah ok, I assume this'd be why I'm seeing odd UUIDs coming out of it which when you extract the timestamp info resolves to dates ca. 2191. With this kind of bug this library is unusable.

It's not so much a bug as it is an implementation of an early version of draft standard containing UUIDv7. Even now, it's standardisation is close to being finalised but isn't quite there yet. I wouldn't expect it to change from here, but until it's standardisation has been completed there is small chance that it could.

Hi guys. Thanks for the suggestions. I'll at those references and adjust as soon as work allows.
Feel free to nudge me if you want it to happen quicker!

Hi Steve, I can appreciate you might be short on time with work commitments, but would it be possible to remove the uuid7 python package that's in distribution? It's not helpful to have such a package widely distributed unless it's implementing the most recent version of the draft standard imho.

The new UUID standard has been officially adopted: https://www.rfc-editor.org/rfc/rfc9562
Can the library be updated if necessary? (I just  found out about UUID7 & the RFC)

From the link:
Status:Proposed Standard

Note that the original RFC 4122 is also a "Proposed Standard", and was for almost 20 years. The new UUID formats are now a published RFC and can be relied upon. It might never become an IETF "Internet Standard", as very few RFCs do.

Thanks for the effort on this project. However, I just got burned adding a bunch of UUID7s and then running into glitches when testing our system, finally tracking it back down to this library - pip install uuid7 followed by from uuid_extensions import uuid7str; uuid7str() generating values that I assumed were correct but actually pointed to 2194.
Please, please, I request that you add a MAJOR WARNING to the README that this library is broken and does not work to generate UUID7. Ideally this would be removed from pip.
So again, thanks for the effort, but whoever is managing this repository - please just take that extra moment to add one sentence of warning at the top of the README so others don't get burned.
Thanks!

...For others in the future who are burned with this issue, here is a working library for UUID7:
https://github.com/oittaa/uuid6-python
Yes, that's right - the name of the library is uuid6 and you install/import it via pip install uuid6 and import uuid6, but unlike the current library, it generates correct UUID7s via uuid6.uuid7().

Thanks for the effort on this project. However, I just got burned adding a bunch of UUID7s and then running into glitches when testing our system, finally tracking it back down to this library - pip install uuid7 followed by from uuid_extensions import uuid7str; uuid7str() generating values that I assumed were correct but actually pointed to year 2194.
Please, please, I request that you add a MAJOR WARNING to the README that this library is broken and does not work to generate UUID7. Ideally this would be removed from pip.
So again, thanks for the effort, but whoever is managing this repository - please just take that extra moment to add one sentence of warning at the top of the README so others don't get burned.
Thanks!

There is a process at to take over abandoned projects on PyPI. I'll have a look into that in the coming days to see what's required. It's not hard to see that end users will expect a project named 'uuid7' to implement the latest version of the RFC rather than a very out of date draft.
@stevesimmons can you please either update this code so that it correctly implements the RFC, or remove the 'uuid7' package from PyPI so that end users don't continue to run into issues.

@stevesimmons
I've opened up a PyPi request to take over the package maintenance: https://github.com/pypi/support/issues/4761
Happy to withdraw this if we can resolve this issue.

@stevesimmons I've opened up a PyPi request to take over the package maintenance: pypi/support#4761
Happy to withdraw this if we can resolve this issue.

Cheers Nick. Just make sure you've tried to contact him at the places they specify in their process.

Not great that the PyPI package called uuid7 doesn't generate valid v7 UUIDs according to latest standard. If the author can't fix this can they at least archive this repo?

The new UUID standard has been officially adopted: https://www.rfc-editor.org/rfc/rfc9562
Can the library be updated if necessary? (I just found out about UUID7 & the RFC)

The newest standard does seem to have optional sub-millisecond bits:
https://www.rfc-editor.org/rfc/rfc9562.html#name-uuid-version-7
How does this compare to the current implementation?

The new UUID standard has been officially adopted: https://www.rfc-editor.org/rfc/rfc9562
Can the library be updated if necessary? (I just found out about UUID7 & the RFC)

The newest standard does seem to have optional sub-millisecond bits: https://www.rfc-editor.org/rfc/rfc9562.html#name-uuid-version-7
How does this compare to the current implementation?

Unfortunately this package is still not compliant with the optional sub-milliseconds because the first 48 bits are meant to be the number of milliseconds since epoch and this library counts in nanoseconds. So here we generate a bigger number and thus uuids from this package get sorted differently to UUIDs matching the spec. The sub-millisecond fields of the spec append more bits after the millisecond count (they work like adding numbers after a decimal place), so still get sorted correctly.

@nickhobbs94 should/can we do something in preparation of the maintainer change? Are you requesting the maintainer of the package just to take it down? Or are you open to maintaining a fork?
Because if we want to fork this, then we could start to do this right now, and not wait for pypi to change the maintainer.

@lovetox I've got a fork up (from this PR https://github.com/stevesimmons/uuid7/pull/2) but it's not published to pypi. We could publish it under a different name but I'm not sure I see much point. It was a bit of a hack together so some extra eyes/testing on it might be good.


Add wireviz support to the ruby gem

Add wireviz to the list of supported block types for the Ruby Gem. This were missing in #423.
Fixes functional part of #440. Tests still needed.

Thanks !


Bower Support

Can you please add bower support to this package? We'd like to use react-a11y on the client-side, and bower makes this much easier for us.

I recommend a PR that adds bower support. I know for projects I maintain (not this one) I'm MUCH more likely to add support for something I don't use if someone will provide a PR that does all the work. IIRC bower just requires one json file.
I quit using bower and just moved to using npm for my client side code months ago.

Closing after chatting with @angus-c: per @AsaAyers comment, most people have moved to npm for client side code so no plans for Bower support.


Roll engine 934772dd8772..6dc5dcad32a6 (3 commits)

https://github.com/flutter/engine/compare/934772dd8772...6dc5dcad32a6
git log 934772dd877210443a65fe1d0eec542b3d559b71..6dc5dcad32a68f4b3f5fa0a6e17d362de05cc63d --no-merges --oneline
6dc5dcad3 Revert "Remove unused Settings::ToString. (#8642)" (flutter/engine#8689)
9fa733678 fix toString (flutter/engine#8688)
c12315273 Make Rect and RRect use 64 bit doubles, and make them const-able (flutter/engine#8565)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop
the roller if necessary.

Trybots failed. These were the failed builds: https://cirrus-ci.com/task/4855267136110592 , https://cirrus-ci.com/task/5558954577887232 , https://cirrus-ci.com/task/6262642019663872 , https://cirrus-ci.com/task/4644160903577600 , https://cirrus-ci.com/task/5770060810420224 , https://cirrus-ci.com/task/6121904531308544 , https://cirrus-ci.com/task/6684854484729856

Commit queue failed; closing this roll.


assignment: add ISWAP functionality and unit tests

Before submitting
Context:
Description of the Change:
Add ISWAP functionality in BasicGateFunctors.hpp
Add ISWAP unit tests in :
StateVectorKokkos::applyMatrix/Param-Operation
StateVectorKokkos::applyISWAP
Passed updated/new unit tests.
Benefits:
Possible Drawbacks:
Related GitHub Issues:
Fixes #740.

The ISWAP kernel is launched by Kokkos::parallel_for in applyNC2Functor. The kernel will be executed in parallel over range 0-exp(num_qubits-2)-1. The kernel execution for different indices in the range can be assigned to multiple processing units. The state vector array has size exp(num_qubits), by operating two of the qubits, the state vector indices are grouped by 4 and thus needs to loop over exp(num_qubits-2) groups.
The hardware dependent pattern is passed by template parameter ExecutionSpace. The value passed for it is Kokkos::DefaultExecutionSpace. I think it get value from CMAKE configuration -DKokkos_ENABLE_OPENMP=ON, -DKokkos_ENABLE_CUDA=ON, -DKokkos_ENABLE_SERIAL=ON etc.
I tried to build with -DKokkos_ENABLE_OPENMP=ON and -DKokkos_ENABLE_CUDA=OFF. To see the performance, I added some time collection code in the kernel and also printed out the backend by KokkosExecSpace::name(). But somehow it always show CUDA as the backend. Unfortunately I didn't have more time to figure it out.


Credit screen sometimes shows the Cesium website

When pressing "Play", and clicking the "Data Attribution" immediately after that, the credit screen sometimes shows http://cesium.com:

(It's not sooo hard to reproduce, but may require 2 or 3 attempts. with race That's the conditions! problem)
From a quick look at the widget, cesium.com is used as a "default/dummy" URL for the webbrowser component, and this is only "overruled" by an update of the credits (i.e. by setting the actual HTML contents), which may not have happened yet when it is opened "immediately".
Approaches for solving could be 1. using a blank page as default instead, or 2. somehow making sure that the update of the credits is triggered always (at least once) after making the widget visible (or both...)

This was fixed in the last round of credits improvements.


1511 report filesystem error

Improve error reporting about the resources directory access rights.
At startup, checking:

if the resources directory exists
if the resources directory has read and write rights
if all sub folders of the resources directory has read and write rights

Raising an error at startup + error in log file

Open question:
I'm checking only the sub folder access rights. Is it enough or should I go deeper for better issue detection?
Should I check also the "resource.xml" file in each sub folder, for example?

Open question for @MattBlissett or @timrobertson100 :
I'm checking only the sub folders access rights. Is it enough or should I go deeper for better issue detection?
Should I check also the "resource.xml" file in each sub folder, for example?

That is sufficient I guess

Thank you very much for quick fixes, I've just merged this into the bootstrap-ui


EAS build's icon with a slight offset.

Build/Submit details page URL
No response
Summary
Hello, so I made an app and decided to build it using EAS. Everything is fine, except one thing that irks me is that the app's icon has a slight offset.
As you can see in the following screenshot, the icon has a slight offset to the right.

And this is the image file that I'm using when building the app. It's perfectly centered.

Managed or bare?
Bare
Environment
expo-env-info 1.0.2 environment info:
System:
OS: Windows 10 10.0.19044
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
SDKs:
Android SDK:
API Levels: 30, 31
Build Tools: 30.0.2, 30.0.3
IDEs:
Android Studio: Version     2<IP_ADDRESS> AI-203.7717.56.2031.7678000
npmPackages:
expo: ~44.0.0 => 44.0.6
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
Expo Workflow: managed
Error output
No response
Reproducible demo or steps to reproduce from a blank project
You can try building my app from https://github.com/JorensM/crypto-notifier and see if the same problem occurs. It's a small build.

It's perfectly centered.

The meaning of what center means is not that obvious, but the center of the icon on the screenshot and center of the file you provided seems to be the same


backend error notifications draft

Issue: #73
Hi, I added notifications using Mantine.dev. However, since apiCall() in frontend\src\renderer\utils\api.tsx just returns a response, I'm not sure how to distinguish a normal response from an error. In my current code, the function ErrorNotification(), which makes the error popup appear, is never reached unless there is a network error, I believe.

done in #95


Count mismatches after variant toward total

From @iskandr :
VariantInReadingFrame has a number_mismatch_before_variant, you can add a number_mismatch_after_variant and filter on that unless some flag like —allow-alternate-splicing is supplied

—allow-alternate-splicing should disable alternate splicing detection entirely; for disqualifying reads with N reads after variant, a flag like --max-mismatch-after-variant makes more sense to me.