Frontend Routing

The aim of this PR is to build frontend routing into Tyrian.
The plan is to do the same as Indigo, i.e. depending on which initial trait you extend you get different behaviour. In this case, SinglePage is the replacement for TyrianApp, and MultiPage will give you almost the same API, but plumbs the routing into your app for you.

Build is failing on unrelated test cases...

Progress so far: I've got the two entry points defined, and I've simply lifted the existing Navigation module (which I have not attempted to improve) to provide location hash based routing just to prove it works.
Ugly, basic, but working.
The next thing will be to replace the hash based navigation with something more general purpose, and to clean up the API so that the requirement is for you to provide a simple function like this:
def router: Location => Msg

You may see failing builds here, but it's a flaky test... https://github.com/PurpleKingdomGames/tyrian/issues/199

@hobnob & @bilki: I've resolved the old discussion points, either by fixing them or because they're out of date - hopefully I didn't missing anything.
(cc @DeamonDev in case you have any thoughts on this. Note that I'm not planning to bake any third party url parsing libs into Tyrian directly, but it would be ideal if this solution optionally worked with libs like url-dsl, as you're doing in #195.)
This all works, but it needs more thought.
Problem 1 - Hyperlinks
The first (and maybe main) problem is that you need to set hyperlinks like this at the moment:
a(href := "#", onClick(Msg.NavigateTo(page)))("my link")

Rather than the more desirable (I think? Probably better for accessibility too?):
a(href := "/my-page")("my link")

To make the latter work, I think we'd have to somehow set preventDefault on all a tags, effectively:
my link

The catch with that is that I think I'd have to patch it into the runtime somewhere as a special case. :thinking:
Problem 2 - Routing UX
The second problem is the routing function. I thought this was all going smoothly until I realised just how nuanced routing can potentially get. :sweat_smile:
At the moment I've dodged the problem by introducing a Location type and basically making all routing decisions the users problem. Want to work on hash changes? Check the hash field. Want to use full paths? Carry on. ...but I feel like we could do better in terms of user experience somehow...
Do we need to do that now? Could it be a future enhancement based on user feedback? Looking up how other frameworks do this is a bit of a minefield. Recommended reading suggestions welcome.
Problem 3 ...what have I missed?
I'm super confident that there is more complexity here I'm missing because I'm sort of building this in abstract without a concrete use case. Suggestions welcome.

Looks good Dave!
You're right that the second option for a tags would be more accessible, and user friendly. Also means that you don't break how links work (for example the user can ctrl+click to open a link in a new tab).
The question of how to achieve it though is a little tricky 🤔 I wonder if we could modify the a so that it took a new attribute called route. You could then write: a(route := Route('/page/{1}/{2}', 'someParam', 'someParam2'))("My text") and Tyrian would render it with the correct markup (in this case My text)
Additionally, you could also create a new Route object that takes a number of additional parameters, such as base URL and route parameters. A simple implementation might look like this (I haven't compiled it, so it's probably wrong):
final case class Route(baseUrl: String, path: String, routeParams: Seq[String]) {
}

object Route:
  def apply(path: String, routeParams: Seq[String]): Route =  Route("", path, routeParams)
  def apply(path: String): Route = Route("", path, [])

The benefit here would be that you could do a check against a string (such as a URL) against a route, and could also use a base URL in case you were using Tyrian in a subfolder on a main site (such as a blog) without having to change loads of code if the Base URL changes.
Hope that helps 🙂

Thanks @hobnob - I've mulled it over and it's a good idea as a way to give us a hook to decide what to do next, I will need something like that. I would like to avoid adding a non-standard entity into the markup however (if possible). Ideally if you can HTML, you should be able to Tyrian (and if you can't HTML, you can google HTML and apply almost 1:1). (Have we already added non-standard stuff with the events? Maybe? Gah! :thinking:)
As usual, all roads lead to Elm. I've had a bit of a snoop around what they do (I haven't read the code, just mooched around the docs to borrow wisdom) and if applied directly, I think it goes something like this:

Intercept a tags with an href.
If the tag has an onClick, do nothing, our programmer has a plan (and preventDefault will happen by default).
If there is no onClick then the user intends a normal link, so we add an onClick that:
Applies preventDefault.
Captures the link and turns it into a type similar to the new Location type, but that is an enum of Internal and External.
Note: There is a problem here to overcome in so much as we don't have access to the user's Msg type, so we may need to wrap it up or something.
The data is then passed to the router, which now runs before any action is taken on the link.
The router is modified so that the signature is something like def router: LocationEnum => NavTo[Msg]
This effectively captures all unhanded links in the App, gives them to the user, and lets them decide whether to just follow them or to modified their app based on the route.
The NavTo type above is then use to decide what sort of pushstate / location update to do.
Open question: What happens with the Sub in this scenario? I think it'll come out in the wash and we'll still need it (in case a link is entered manually for example) but it's relationship with the router is a little unclear. However it may be that we don't reorder when the router is run though (point (4)) and then it's all ok, we'll see how it pans out.

This isn't a perfect translation of the Elm solution, but I think this is the broad strokes of what the shape of the solution needs to be. No doubt I'll discover more problems along the way.
On reflection, I think some of this goes towards a suggestion @bilki had in an earlier comment around having some generic nav types.

This version has a few warts, but appears to work correctly. There's a couple of TODOs to address (called out in comments), and the only other thing is that the initial routing has to happen last, by which time we've briefly (like a flicker) rendered the homepage even if we want some other page.

Getting there, two outstanding issues that I know about:

Following anchor/hash links isn't working in the sandbox, this is because you just get the path from the anchor onwards. Just need to decide how to handle that (and whether it's a user problem or an engine problem.

Following external links is producing an error: Uncaught DOMException: The operation is insecure.

I think I'm done with this now. The end result is that TyrianApp is back and everyone has to do some routing. However I've made it pretty easy (I think).
Your Tyrian web app now need to implement def router: Location => Msg, and there are a few ways to do that (note that in all cases, you're told if the link is considered internal or external):

You can use the helpers if your needs are simple, for example, this one ignores all internal links and just routes external ones. Note that you need to provide suitable msg's:

def router: Location => Msg = Routing.externalOnly(Msg.NoOp, Msg.FollowLink(_))

I've also make Routing.basic (simple string match) and Routing.none variations.

Alternatively, you can do a full match, like this:

  def router: Location => Msg =
    case loc: Location.Internal =>
      loc.pathName match
        case "/"      => Msg.NavigateTo(Page.Page1)
        case "/page1" => Msg.NavigateTo(Page.Page1)
        case "/page2" => Msg.NavigateTo(Page.Page2)
        case "/page3" => Msg.NavigateTo(Page.Page3)
        case "/page4" => Msg.NavigateTo(Page.Page4)
        case "/page5" => Msg.NavigateTo(Page.Page5)
        case "/page6" => Msg.NavigateTo(Page.Page6)
        case _        => Msg.NoOp

    case loc: Location.External =>
      Msg.NavigateToUrl(loc.href)

The Location type comes with all sorts of information in it for you to decide how to route, it is similar to the JavaScript Location type.
I imagine that you could also decide to pull in some fancy url parsing library to build a clever router here if you liked.
One you've done your routing, you'll want to use some of the new Nav cmds. For internal links, you can use Nav.pushUrl to update the address bar, and for external, you can use Nav.loadUrl to tell the browser to follow the link.


Cyb 59 Password Game

First 10 Rules for Password Game - Pretty much finished I think, I am pretty happy with it. Code might need some tweaking to be cleaner.

Added to main indirectly through another branch


Error opening (via double click in azure: cosmos db) mongodb db record.

Repro steps:

Action: cosmosDB.openDocument
Error type: Error
Error Message: TextEditor(vs.editor.ICodeEditor:1,$model1) has been disposed
Version: 0.7.2
OS: win32

@br15 Thanks for reporting this.  We've been having trouble finding a way to repro this.  Does it happen every time for you, or only in some scenarios?
thx,
Stephen

Hi Stephen,
I just installed the mongo plug-in and this happened the first time I
explored my test db. When I try to recreate the issue I get the message
that I'm about to overwrite 'cosmos-document.json' every time I click on a
document in any database.  Hope this helps.
Keith
On 12 June 2018 at 20:35, Stephen Weatherford (MSFT) <
<EMAIL_ADDRESS>wrote:

@br15 https://github.com/br15 Thanks for reporting this. We've been
having trouble finding a way to repro this. Does it happen every time for
you, or only in some scenarios?
thx,
Stephen
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode-cosmosdb/issues/681#issuecomment-396707800,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHQF4JsraLqcFbfdospPOQ5rbfVNYjOSks5t8BgUgaJpZM4UkXmY
.

@br15 Thanks.  Is it only when you double-click?  You only need to single click in VS Code.  (I've seen this message on a double-click, although not the other one.)

This can be fixed by utilizing the new debouce functionality (see https://github.com/Microsoft/vscode-azureappservice/pull/714/files).


Allow template project to work with vanilla react native dependency

Currently the template project is init'd with the Exponent fork of react-native:
https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/src/scripts/init.js#L14
Ideally this would use the plain ol' react-native dependency from npm.
cc @ide

There's an incompatibility between Electron and Node right now that requires the fork for RN to run from Electron. We could either patch RN upstream (one-line fix) or get the PR into Electron.

After slack'ing, the context here is that once these two PRs are merged, we should be able to ditch the fork:
https://github.com/electron/node/pull/21
https://github.com/electron/electron/pull/8382

This has been resolved in a pending release of XDE -- I've already moved the template project over to vanilla JS.


Investigate possible use of Keycloak in Platform Authentication service

We need to investigate features available in Keycloak to see if we can use it for authentication in Platform.

Hi @alexeykazakov and @aslakknutsen ,
I was taking a look at what keycloak does and came across this GH issue which tracks the possible use of keycloak.
I had a few points/questions in my mind and would like some discussion around it -

Would we be adding identity providers like Github,Openshift to Keycloak ?

If yes, would the flow be like

Once you try to access the application for the first time, you'll be redirected to Keycloak's login page. In this page you'll note that there is a "Twitter" button that allows you to authenticate with Twitter Identity Provider.
After clicking the "Twitter" button, you'll be redirected to Twitter's login page from where you must authenticate and grant the necessary permissions to Keycloak in order to access your personal information from Twitter.
If everything is fine, Twitter will redirect you back to Keycloak and at this point you'll be asked to provide some basic profile information in order to create a new user in Keycloak based on your social account. Once you update your profile, you'll be authenticated and redirected to the application.
Ref: https://github.com/keycloak/keycloak/tree/master/examples/broker/twitter-authentication

Does Keycloak have a list of supported external providers, or can any external provider be configured for use? For example, I see a list of 3 ( Facebook, Google, Twitter ) and a generic SAML provider ( https://github.com/keycloak/keycloak/tree/master/examples/broker ). How easy is it to have it work for Github/Openshift indentity providers?

Thanks,
Shoubhik

@sbose78 sorry for the late answer. And you probably already got answers to your questions but anyway... ;)
We are going to use RHD as our main Identity Provider. All social logins should be provided via RHD. Not directly to our Keycloak but as follows: Our Keycloak instance -> RHD -> Social IDP like github, twitter, etc.
RHD already requires updating user's profiles after social registration.
It's not 100% clear to me at the moment what part of registration/updating user's profile will be present in our UI and what will be delegated to RHD completely.
It's pretty easy to configure keycloak to use most popular social identity providers (github, google, facebook, twitter, linkedin, etc) or any generic OpenID Connect provider but as I said above we are currently working on using RHD as our IDP.

Related to https://github.com/almighty/almighty-core/issues/653

Replaced by https://github.com/almighty/almighty-core/issues/661


subscribe to raw messages using .Net  6 and Dapr SDK

I am listening to MQTT provider using Dapr and it will be not be sending events in CloudEvents Format.
My intention is to be able to process messages as raw string and then do any conversion needed.
Currently my setup is as follows.
using Dapr.Client;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
//AddDapr() registers the Dapr integration with controllers.
builder.Services.AddControllers().AddDapr(
     builder => builder.UseJsonSerializationOptions(
          new System.Text.Json.JsonSerializerOptions()
          {
              PropertyNamingPolicy = System.Text.Json.JsonNamingPolicy.CamelCase,
              PropertyNameCaseInsensitive = true
          }));
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI();
}

app.UseRouting();

//registers the Cloud Events middleware in the request processing pipeline.
//This middleware will unwrap requests with Content-Type application/cloudevents+json so that model binding can access the event payload in the request body directly.
app.UseCloudEvents();

app.UseAuthorization();

app.UseEndpoints(endpoints =>
{
    endpoints.MapSubscribeHandler();
    endpoints.MapControllers();
});

In controller
    [Topic("mqtt-pubsub", "testtopic", true)]
    [HttpPost("ReceiveMessages")]
    public ActionResult<string> Process([FromBody] object message, [FromServices] DaprClient daprClient)
    {
        return message.ToString();
    }

I am getting serialization errors.
time="2022-09-20T12:36:11.9731999+05:30" level=error msg="Failed processing MQTT message: testtopic#51: retriable error returned from app while processing pub/sub event 52f1b281-71e9-4bee-bacc-6a12b8c85841, topic: testtopic, body: {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.13\",\"title\":\"Unsupported Media Type","status":415,"traceId":"00-93976651ea98962241a0dd3015eaca01-3db0514083fbbc9f-00"}. status code returned: 415" app_id=order-processor instance=LIN22004804 scope=dapr.contrib type=log ver=1.8.4
If i do not put app.UseCloudEvents() then the subscription doesn't even work.
As you can see in controller, i have enabled raw messages. but how to get around this error if sender is not using cloudevents format at all? I would assume, it's a very common scenario!

I'm actually running into the same error, so I am actually interested if there's a solution :)

I've fixed it by creating a custom input-formatter.
More info can be found here


Tutorial added to Tank Operation activity

Fixes Issue #597

[x] Should display a welcome message to explain the activity (could reuse the help message describing the activity in Sugarizer activities List view)

[x] Should explain usage of each button in the toolbar

[x] Should explain usage of each element in the UI

[x] Should be localized

[x] Should respect the Sugarizer UI, as explained in tutorial

ENGLISH

FRENCH

@llaske Tutorial added to play screen.

Good.
Still few issues:

The arrow to change mission are now invisible

I guess it's related to a conflict with existing icons. In that case, just duplicate icons to avoid the conflict.

Miss a popup to explain missions completed zone
I suggest to set position for popup on start button at top instead of bottom to avoid scrollbar
I suggest you to move popup for Credits, Fullscreen and Stop at the end of the array
I suggest to add a popup in Play mode to explain the meaning of LCD display

@llaske Modifications made as per suggestions.

Fixed Invisible mission changing icon issue
Added a popup for mission completed zone
Changed the position for start button popup to top
Moved the popup for credits, full screen and stop to the last of the array
Added a pop up for the canvas in play mode
Added popups for wave count and score
Modified the popup for virtual keyboard to select the entire keyboard not just first three buttons
Modified the popup for change mission to select the entire thing not just right button

Home Screen

Play Screen

Good job. Thanks.


Emoji search should autofocus the search field, and clarify how to dismiss

It's not clear how to exit emoji search, although you just have to tap the primary button or any keyboard switcher. This should be made a bit more obvious, without adding a "Done" button to the toolbar (which would take up too much space).

The emoji search keyboard will now change the primary button to "Done":


Strong mode should disallow implicit downcasts of ternary operators

This program passes strong mode because the LUB of the arms of the ternary operator is Object, which is allowed to be downcast to int.  If we disallow implicit downcasts we'd catch this, but even in the absence of this I think we could do better.  In a typed context, we should always check the arms of the ternary operator against the type from the context.
void main() {
  bool b;
  int test = b ? "123" : 123;
}

Ob-pedantry: There are two ternary operators in Dart: The conditional operator (o1?o2:o3) and the index-set operator (o1[o2]=o3), so just saying "ternary operator" isn't uniquely identifying the conditional operator by its arity the same way it does in some other language.

Ob-pedantry acknowledged... :)
I think this applies to the ?? operator as well.  In general, any where we do a LUB we have the potential to lose all checking if the LUB is top.

Note: pushing types down from the context when present instead of relying on LUB could avoid other unfortunate examples as well.  Consider this example (abstracted from real code encountered in the wild):
class A{}
class B{}
class C extends B{}

class E extends C implements A {}
class F extends C implements A {}
void main() {
  bool a = true;
  A y = a ? new E() : new F();
}

This is currently an error, because the LUB of E and F is C, which is unrelated to A.  But both arms of the conditional can be typed as A.

@sethladd marked this Flutter and bumped pri for you

To be fair, I'm not sure the Flutter codebase ran into this, or that is is specifically strategic to Flutter's roadmap. That said, sounds like a general nice feature that any Dart developer would love.

ah okay, i misunderstood that because it was on the flutter issue tracker

Maybe we could detect the unusually blatant loss of type information? Considering the original example b ? "123" : 123, the branches of the conditional operator have types with a non-trivial relationship to the type expectation associated with an enclosing expression (the initializing expression as a whole). The reason why the upcast-then-downcast is "unreasonable" is that we seem to forget, very quickly, that one branch is guaranteed to work and the other one is likely to fail (it's actually guaranteed to fail in this particular case, because the type String is known to be exact).
I think, however, that it would be dangerous to say "an implicit downcast cannot be applied to a conditional expression". The problem is that this is a syntactic criterion, and we can easily come up with syntactically different forms where the same kind of problem arises, and hence the same solution should work.
But we have a way to avoid forgetting the typings for the two branches: Just make the type of the conditional expression the union of the types of its branches.
That union type may now propagate through various constructs; in the given example it's directly the type of the whole initializer. We may now special-case downcasts from union types (which is a local rule, concerned with initializing expressions), rather than special-casing downcasts from Object (or whatever it might be), based on the syntactic shape of some subexpression, and that would work in a larger (and more natural) set of situations.

Also encountered here:  https://github.com/dart-lang/sdk/issues/28927

In Strong Mode we can rely on types, so if we have an expected context type, we can check (and require) that both branches are assignable to that type. If we don't have a context type, but we are inferring the type of the conditional, then getting Object is probably a good thing (you could say it's the default context type) - it means that you can't use it for anything.
This issue is the first case: int x = ... ? ... : ...; - we know that we need to assign the result to int, so we should check that both branches are assignable to int.
That's a change in type checking from being entirely bottom-up to ... not being entirely that (read: I haven't considered all the details yet).
We (sadly) still need an upper-bound-algorithm for the actual static type of the expression when there is no context expectation. This would just allow us to give up and not even try if we know that the result will be a downcast that will definitely fail for one of the branches - instead of generating Object and then failing at runtime. I'd be OK with disallowing such programs.

This is exactly what we will get if we consider the type of the conditional expression to be the union of the types of the branches. Checking that union type  for the context where the data flow goes amounts to the same two checks (or more checks if we have some nested conditional expressions).
This is a case where the "overkill" generalization of taking a loose upper bound (rather than a proper least upper bound) produces a real issue.

Yes, it is exactly the same in this particular case, but if we introduce the union type as the actual static type of the conditional expression, we also need to handle it being propagated (through parentheses? await? cast? what else?) and eliminated appropriately (we don't want a variable being inferred to have a union type). Instead I'm suggesting to not create a union type, but to type-check the conditional expression in-place with a context provided type. Same effect locally and without the union types.

I really think we want to push the type context down the two branches. Instantiations, tear-offs and (eventually) number literals benefit from type-contexts and without pushing the type down we would miss out on some convenient patterns:
double x = someBool ? 0 : 1;
List<int> listify(int? x) {
  return x == null ? [] : [x];
}
int Function(int, int) maxOrMin(bool pickMax) {
  return pickMax ? max : min;
}

Yes, it's a bit of a change from the way the spec is currently defined, but we need a notion of typed context anyway for inference, and once you have it, it works extremely well for this and related constructs.  The expression e1 ? e2 : e3 is valid in a context of type T and has static type T, if both e2 and e3 are valid in a context of type T.
Similarly, e1 ?? e2 is valid in a context of type T and has static type T if both e1 and e2 are valid in a context of type T.
Probably some other related constructs fall into this as well.

Issue #29607 reports on the issue discussed here for the case e1 ?? e2. I've closed it as a duplicate of this one.

Null safety also bans code like in the original example. I'm going to close this issue as null safety has us covered.
In terms of changing LUB, in an analyzer mode, or as a language feature, I think that is a broader issue.


HBASE-24258 [Hadoop3.3] Update license for org.ow2.asm:*

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
2m  0s
Docker mode activated.

Stack, thanks. This would make sense to go all the way to branch-2.3
My ultimate goal is to get this into our internal fork of branch-2.2. If this PR get cherry picked into Apache branch-2.2 it'll be picked up in our internal build. Otherwise I'll be equally happy to cherrypick this to our internal fork.


Difference between AddHealthActuator() and AddCloudFoundryActuators()

One thing that I observed between AddHealthActuator() and AddCloudFoundryActuators()
AddHealthActuator()
The /health endpoint is without security i.e. anonymous. And status=UP doesn't show up in built-in PCF dashboard.
AddCloudFoundryActuators()
The /health endpoint is secured with OAuth token. And status=Up checks show up in PCF dashboard.
Also, is it possible to enable/disable security through code/configuration, while maintaining status checks (green up arrows) within PCF dashboard in both cases?
Spring Boot Documentation

Assuming the PCF dashboard you're referring to is Pivotal Apps Manager, the way it knows how to find the health endpoint (and any other actuator endpoint) in a Steeltoe-enabled app is from the CloudFoundry endpoint's response (/cloudfoundryapplication).
In the current state of Steeltoe Management, the security middleware that you're referring to is controlled by the same on/off switch as the CloudFoundry actuator. It is possible to turn off security, but at the expense of also turning off the piece that allows the Apps Manager integration to work.
For Steeltoe 2.2, we are planning to enhance Management to be compatible with Spring Boot 2.0, including changes to the way the security middleware works with regard to this big on/off switch, but that could be a couple months away as we haven't started on it yet.
For an immediate solution, you could roll your own version of .UseCloudFoundryActuators() that does not use the security middleware at all.
As an intermediate solution, we could add a discrete switch for the Security middleware, but that might be a bit of a sledgehammer approach. If you'd like this done, it shouldn't be much effort, but I wouldn't do the work without an actual request that its what you wanted.
Does that help?

I am reading your comment, "It is possible to turn off security, but at the expense of also turning off the piece that allows the Apps Manager integration to work". I guess, this is what I observed.
I also played with requiredPermission attribute of Steeltoe. But, setting it to NONE doesn't disable Pivotal Apps Manager OAuth based security. Maybe it's a different thing.
I would stick to the standards, instead of a sledgehammer, or even a short-term thing.
Example, (as a developer) following the Spring Boot documentation, finding an appropriate attribute within Steeltoe (or Apps Mgr), and finally getting/observing what the standard says in action.
Thank you!

In the upcoming 2.2 release there are two features that help resolve this issue. PR #40 lets you add a Discovery endpoint that helps expose the health(and/or other) endpoints independent of apps manager integration. #41 Allows you to show hide details based on configuration - by default you should be able to see the up/down feature in apps manager or another app of your choice. In the mean time I would love your feedback on this.

Closing this issue for now. We can reopen if needed.

Nice! I will try it out on the next available opportunity. Thank you.


Crash when used same name from copy

https://github.com/feagi/brain-visualizer/assets/65916520/3fdc7398-938c-4589-9616-e4fdce8fc161
(FYI, got it from Nadji)

fixed


RedirectException causing TypeError

I just posted this to SO -- sorry for the issue noise as there's a good chance it is user error.
I'm trying to redirect unauthenticated users to a login page by throwing a RedirectException. To get the ball rolling, I'm using the relay-todomvc-found-modern demo and trying to redirect the user to a login page if the status variable is active. The redirect works if I visit /completed and click the link for /active, but throws TypeError: Cannot read property 'getHostNode' of null if I directly visit /active.
Starting with the relay-todomvc-found-modern demo, I added the following lines:
import { RedirectException } from 'found';

...
render() {
     if (status === 'active') {
         throw new RedirectException({pathname: '/login'})
     }
}
...

where /login leads to a component that is copy/pasted from TodoList (with name changes as necessary) that is set up with the following route:
<Route
  path="/"

...

    <Route
        path="login"
        Component={Login}
        query={LoginQuery}
        prepareVariables={params => ({ ...params, status: 'any' })}
    />

...

</Route>

And the LoginQuery is
const LoginQuery = graphql`
    query routes_Login_Query($status: String!) {
        viewer {
            ...Login_viewer
        }
    }
`;

The Login component is exactly the same as the TodoList components, except without the RedirectException and with name changes as necessary.

You need to throw it in prerender (for now, might get changed by https://github.com/4Catalyzer/found-relay/issues/43 at some point).
See https://github.com/4Catalyzer/found-relay/blob/master/test/prerender.test.js.

Would be resolved by #45.

Thanks for the quick response!


Notification from Wallet for Pool changes

Throughout the delegation specifications, we have various citations of wallet notifying users for things like when a pool is deregistered or when pool parameters are changed (ofcourse, when they're next online). Daedalus is yet to see this feature.

@nikolaglumac - might be a typo in changelog referring to this issue? 🙂

You are right @rdlrt - the link should be pointing to https://github.com/input-output-hk/daedalus/pull/2177
Sorry for the false alarm!

Any updates on this one?
With nOpt about to increase, this feature being absent might come more into visibility (for folks who do rely on Daedalus and not use community tools for notification).
At the very least, until this feature is built by Daedalus, maybe you'd want to direct users to existing notifications systems (pooltool, ADAStat, cardanoscan, adapools all offer notifications via social media) - perhaps help adoption of good work further while doing so.

Hi @rdlrt,
We will have this feature ready before the k-parameter is increased.
Thank you for your patience!

Thanks @nikolaglumac , pleasantly surprised to know notification for pool changes will get in before 6th of December (date when k is to be increased), looking forward to it 🙂

This is an important feature and we can not allow our users to face 6th of December update without it :)
Thank you for your support!

So, it's December 15th now - did this feature get implemented and rolled out, @nikolaglumac ?

Hi @hodlonaut,
We had a newsfeed announcement before the 6th of December but that was it...
We are still planning on how to deal with the tracking of stake pool saturation and ranking changes.
However, this is not a simple challenge since Daedalus is not constantly running.
Fear not, we will get there - we do understand the importance of this feature.
Thank you for your patience!

This issue has nothing to do with saturation or ranking changes - it's about changes to the pool definition (e.g. fee raised, pledge lowered) and status (active -> retirement pending)...

Ranking and saturation changes are part of the issue alongside the other data you mentioned.

What is implemented (news feed) is absolutely not what we were hoping with notification mentioned in specs and the issue description. I was quite surprised to see that it was mentioned as viable for 6th December, apparently not without a reason 😢
Also, I see that this is now being labelled as a feature request. Daedalus is a wallet that adheres to the delegation specs (giving it more importance than human sense). I just feel its a bit dishonest to label this as a feature request, when it is something that we should have expected from get go, even more so when changing nOpt
I am absolutely fine with this being a backlog item that you didn't have time to get to yet (as dependency or otherwise), but labelling this as feature request is really worrying if this becomes something like #605 which is now open for over 3 years

What is implemented (news feed) is absolutely not what we were hoping with notification mentioned in specs and the issue description.

Yes, I share the same view - this is why this ticket has not been closed. The feature is still to be implemented.

Also, I see that this is now being labelled as a feature request. Daedalus is a wallet that adheres to the delegation specs (giving it more importance than human sense). I just feel its a bit dishonest to label this as a feature request, when it is something that we should have expected from get go, even more so when changing nOpt

The label plays no role in prioritization of this issue. We only have 3 labels for the user tickets: bug, feature-request, and question. Out of these 3, I find the feature-request to be the best match.

I am absolutely fine with this being a backlog item that you didn't have time to get to yet (as dependency or otherwise), but labelling this as feature request is really worrying if this becomes something like #605 which is now open for over 3 years

I am sorry for the delays with #605. Please understand that we have limited resources and a lot of things to implement. We are doing the best we can to make everyone happy.
Thank you for your patience!

Where are we at with regards to notifications in Daedalus front? Any progress made since the start of the year that is coming to mainnet?

Sorry to disappoint, but there is still no way for Daedalus to actively track pool changes. We can not collect historical data as we depend on the data we get while Daedalus is running. We might explore the idea of tracking those changes (AKA. between now and last time you ran Daedalus) but that's about it for now :-(
cc @daniloprates @alexander-rukin @mariusb

This is an important feature and we can not allow our users to face 6th of December update without it :)

I feel horribly wrong to comment on how big a gap conceptually could be from above statement to where we are now (which got turned into generic vague news feed).
Regardless, as far as I am concerned, this issue can be closed, I didn't expect things to go any different when I commented last. It seems yhe issue is apparently not big enough as UI frontend glitter, besides - from tg support point of view, I am not attending any Ddz queries myself.


Attach mdf file

SQL Operations Studio Version:0.29.3

I have a problem with the attachment of a .mdf file. I don't know ho to do that.
I tried drag and dropping but I have a message saying that the dimension of the file is too big for the window and I have to use the command --max-memory. Where should I put this command?
I have also tried creating a new database from t-sql but I receive the message that the system can't find the .mdf file.
Do you have any solution? Because I'm becoming crazy.
Thanks,
Edoardo

@edob95 we don't currently have the same support for working with MDF files that SSMS.  There is some discussion of this topic in issue https://github.com/Microsoft/sqlopsstudio/issues/415.  Could you please take a look and see if that discussion address your question?

Closing as duplicate of #415


Ignore framechange channels for schedules drawing

Summary
Add an option to ignore channels with just framechange, channels are plotted if framechange_channels=True and not plotted if False, This resolves #3302
Details and comments
def sample_schedule(device):
        """Generate a sample schedule that includes the most common elements of
           pulse schedules."""
        gp0 = pulse_lib.gaussian(duration=20, amp=1.0, sigma=1.0)
        sched = Schedule()
        sched = sched.append(gp0(device.drives[0]))
        sched = sched.insert(60, FrameChange(phase=-1.57)(device.drives[0]))
        sched = sched.insert(0, PersistentValue(value=0.2 + 0.4j)(device.controls[0]))
        sched = sched.insert(30, FrameChange(phase=-1.50)(device.drives[1]))
        sched = sched.insert(70, FrameChange(phase=1.50)(device.drives[1]))
        return sched
schedule = sample_schedule(device)
schedule.draw(framechange_channels=True)

schedule.draw(framechange_channels=False)

@AzizNgoueya looks good to me. please make sure that you get no error when you plot:
sched = Schedule()
sched = sched.insert(30, FrameChange(phase=-1.50)(device.drives[1]))
sched = sched.insert(70, FrameChange(phase=1.50)(device.drives[1]))
sched.draw(framechange_channels=False)

#3003

Looks great! Would you be able to add a test for us? If you follow the pattern of visual pulse tests, and run the new test, it should generate an image file when it fails. Then, you can inspect the image to make sure it does what you want, and when it does, you can move that file to the appropriate references subdirectory in the tests to use as the expected output.

Release note added here: https://github.com/Qiskit/qiskit-terra/pull/3549/commits/2b6e49ff2d283235f298fbf02c01a9ce27ae1d45


Update excess fee inhibitor to 65536

Back in #12 we realized that we need to keep users from submitting requests before fork. The simple way to do this is add a flag to the system contract and set the flag the first time the system call happens.
The downside is that the flag gate imposes an extra 5000 gas on ever user call to the contract forever in the future.
To avoid this, we decided to make the fee too great for anyone to actually pay before the fork. On the first system call, the contract will notice the excess count is the special value and reset it to zero.
We stick with that idea in this PR, but update the value from 1181 to 16384. Originally 1181 was decided because it's the largest value we can use in fake_exponential without it overflowing. Unfortunately we realized that 1181 is a number that might be possible to obtain in the future. The cost is bound mostly by the five sstores in the user routine. If the gas limit changes significantly or storage becomes much cheaper, it's possible to imagine a world where post-Prague, a user could submit 1181 requests in a single block at 1 wei and avoid the fee spike from occurring.
To address this, I'm proposing we bump to 65536. This number is proposed somewhat arbitrarily, but it returns a fee of<PHONE_NUMBER>05217739920341538189009691485399699651503388307248448916147782597 -- so safe to say even though it does overflow during the calculation, it produces a fee that is also impossible to meet before the fork and increases the number of requests needed to organically trigger the short circuit by an order of magnitude.
If we're okay with relying on this fee calculation overflowing, we could potentially choose an even larger number for this inhibitor. Part of the reason I picked this value is foundry seems to have issues with arbitrarily large numbers here.

a user could submit 1181 requests in a single block at 1 wei and avoid the fee spike from occurring

Contracts’ constructors call sstore(EXCESS_SLOT, EXCESS_INHIBITOR), thus the fee will be incredibly high even for the first call to add a new request routine, won’t it?

Contracts’ constructors call sstore(EXCESS_SLOT, EXCESS_INHIBITOR), thus the fee will be incredibly high even for the first call to add a new request routine, won’t it?

Correct, but the issue is after the fork, the code is still there to check the excess value against the inhibitor. When the fee is set back to 1 wei, it may be possible to make the 1181 requests.
I guess what we could actually do here is set the flag on the system side since it would completely stop any possibility of reach the inhibitor number and on the system side we are not really sensitive to gas cost. The extra storage element would forever and always need to be in the witness though (our we'd need to also filter it out). Not sure if the trade off is worth it.

close in favor of #26


65: Support Yanked versions

As referred in the FAQ, changelog should support [YANKED] versions: https://keepachangelog.com/en/1.0.0/#yanked
This PR enables support for versions like ## 0.0.5 - 2014-12-13 [YANKED]
Yanked releases are versions that had to be pulled because of a serious bug or security issue. Often these versions don't even appear in change logs. They should. This is how you should display them:

## 0.0.5 - 2014-12-13 [YANKED]

The [YANKED] tag is loud for a reason. It's important for people to notice it. Since it's surrounded by brackets it's also easier to parse programmatically.

It also enables debug for the action
fixes: #65

@z-merge it


Fixing incorrect rule name in readme

The copy/paste section of the readme has a typo in it (Compose -> Composable).
I had copied this is into the detekt yaml file in my project, and turned off ComposeFunctionName, only to find that the errors persisted. The new name of the rule seems to be ComposableFunctionName. Things worked as expected after updating my yaml file to be
ComposableFunctionName:
  active: false

For context on why I wanted to turn it off - some of the preview composables in my project forward to other composables that return Unit, or use themes which return Unit. The error will go off for things like this
RedButton(text: String) = BaseButton(text, Color.Red)

and this
@Preview MyButtonOnLight() = PreviewThemeLight { RedButton("Hello") }
@Preview MyButtonOnDark() = PreviewThemeDark { RedButton("Hello") }

Thank you for the PR! ComposeFunctionName was an initial name of this rule, but then we've renamed it to be more correct and missed this spot in the README, good catch!
As for you case, I think it should be supported, but it will require rewriting this rule to use detekt's type resolution mode. And in general this is where this rule set is headed (to have rules working in that mode), so I think, eventually your case will be covered, I'll remember it (or we could have an issue for this too).


Should not colorize redirected output

Several of the minitest reporters send escape codes that only a real terminal is able to understand. When the output is redirected to a file or a pager (rake test > notes.txt or rake test | nopaste), or is run through a text editor that parses that output, the color codes (or the progress bar) should fall back to just the text.

could you please be a little bit more specific.  Which particular reporter does this for redirected output?

Good point, I forgot that. I tried SpecReporter, and ProgressReporter. All have the same issue. Oddly, specifying DefaultReporter explicitly I don't have the problem, but not specifying any reporter I do.

The patch I've submitted should address this issue. Non-TTY situations no longer use ANSI.

@suy please try 1.0.10, let me know if it doesn't work for you

Thank you! Works for me.


StateContainerExample.razor: missing delegate

Description
[Enter feedback here]
The example "StateContainerExample.razor:" seems to be missing the "StateHasChanged" method.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/state-management.md
Document ID
e5e1273b-195e-5da1-b4aa-66bbcff1425b
Article author
guardrex

Hello @mjhillman ... That depends on your code. If you load state prior to rendering on initialization or for event callbacks, you wouldn't need to call it. We don't place remarks about calling StateHasChanged in cases like this because we'd need to place remarks about it virtually everywhere. We keep the general guidance on it at ...
https://learn.microsoft.com/aspnet/core/blazor/components/lifecycle?view=aspnetcore-8.0#state-changes-statehaschanged


Astro 4.0 upgrade guide

Description (required)
v3 -> v4 upgrade guide with breaking changes
Related issues & labels (optional)

Closes #5390

Looking good

LGTM! Great work :))
Super excited for the changes, too!


test(dag): add test to verify put API overrides hash algorithm

As discussed in https://github.com/ipfs/js-ipfs/pull/1419#issuecomment-402441180
at the time of this commit, dag.put() basically ignores the hashAlg
option, as it passes it down to ipld.put(), which won't honor it until
https://github.com/ipld/js-ipld/pull/133 is merged.
Once https://github.com/ipld/js-ipld/pull/133 is merged, this test verifies
that e.g.
dag.put(cborNode, {
  format: 'dag-cbor',
  hashAlg: 'sha3-512'
}, (err, cid) => {
  ...
})

Actually results in a CID instance that decodes to sha3-512 and not
the sha2-256 default.
License: MIT
Signed-off-by: Pascal Precht<EMAIL_ADDRESS>

@alanshaw let me know if this is what you've been looking for.
I can also rebase this on top of ipld/js-ipld#133 so we don't have to introduce this test and skip it at the same time.

@alanshaw sure I can move it over. Just for clarification, in https://github.com/ipfs/js-ipfs/pull/1419#issuecomment-402441180 you said

Would you be willing to add a test to interface-ipfs-core for using a hash algorithm other than the default?

So that was simply confused with js-ipfs, or do you still want to have anything added to interface-ipfs-core?

The test should stay here, just the instruction to skip should be moved to js-ipfs e.g. https://github.com/ipfs/js-ipfs/blob/master/test/core/interface.spec.js#L27-L30. My point was just that js-ipfs and js-ipfs-api use this same module and we should only need to skip this test in js-ipfs.

Ah now I get it. Phew.. this orchestration of 3+ repo dependencies can be quite confusing 😅

@alanshaw updated this PR and moved the skip over to https://github.com/ipfs/js-ipfs/pull/1421

So it turns out that all tests related to making options optional are failing in js-ipfs-api. The above is the output of running test:node on feat/modular-interface-tests with this PR's branch npm linked.

Looks like you might not have the latest js-ipfs-api?

Ah sorry. feat/modular-interface-tests have evolved in the meantime. Tests are fine on latest.

Oh, please checkout master on js-ipfs-api and git pull...that should fix you up.

And as an FYI: the test that is skipped in js-ipfs is not skipped in js-ipfs-api

hmm, can we unskip it in js-ipfs or is it still failing?

This is still failing in js-ipfs due to https://github.com/ipld/js-ipld/pull/133
Also notice that the test that's supposed to be skipped in js-ipfs isn't skipped in latest master yet as it's still a pending PR: https://github.com/ipfs/js-ipfs/pull/1421


Deprecate old offline analytics post

This adds a deprecation warning to the old Offline Analytics post, with a link to the Workbox equivalent.
Fixes: #4842
Target Live Date: 2018-04-04

[ ] This has been reviewed and approved by (@kosamari)
[X] I have run gulp test locally and all tests pass.
[X] I have added the appropriate type-something label.
[X] I've staged the site and manually verified that my content displays correctly.

CC: @petele

Whoops!
There were 11 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2016/07/offline-google-analytics.md#L68 - Updates post is missing RSS feed widget: '{% include "web/_shared/rss-widget-updates.html" %}'
src/content/en/updates/2016/07/offline-google-analytics.md#L21 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L23 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L25 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L50 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L52 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L54 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L55 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L57 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L63 - Line must be at most 100 characters
src/content/en/updates/2016/07/offline-google-analytics.md#L65 - Line must be at most 100 characters

:tada: This has been pushed live to https://developers.google.com/web/


AltGr+4 (§) (portuguese keyboard) does not get deleted as I'm trying AltGr sequences.

AltGr+4 (§) (portuguese keyboard) does not get deleted as I'm trying AltGr sequences.

Originally posted by @rjfmachado in https://github.com/microsoft/terminal/issues/1375#issuecomment-518975239

There's a good chance conpty isn't handling backspacing double-wide characters correctly. That's my initial theory looking at this bug.

This'll definitely be helped by #2066. Probably so much so that it's just gonna be a duplicate?


 Dan kom ik op dezelfde p-values uit als met de original dataset. Heb ik het goed gedaan? En zo ja, en de p-values zijn dus inderdaad lager door het imputation proces. Wat voor verklaring kan hieraan ten grondslag liggen?
indic <- as.data.frame(indic)
class(indic)
true.reh <- remify(edgelist = indic,
model = "tie")
calculate stats
stats <- remstats(tie_effects = effects,
reh = true.reh)
use the function to create the correct format of the dataframe
true.cox.set <- prepare_coxph_data(stats, PartOfApollo_13)
fit cox model
true.cox.fit <- coxph(Surv(time, status) ~ reciprocity + indegreeSender +
outdegreeReceiver,
data=true.cox.set)
true <- coefficients(true.cox.fit)

I also ran the code on the 1500 set and did not get any significant p-values.
library(mice)
#>
#> Attaching package: 'mice'
#> The following object is masked from 'package:stats':
#>
#>     filter
#> The following objects are masked from 'package:base':
#>
#>     cbind, rbind
require(lattice)
#> Loading required package: lattice
library(tidyverse)
library(magrittr)
#>
#> Attaching package: 'magrittr'
#> The following object is masked from 'package:purrr':
#>
#>     set_names
#> The following object is masked from 'package:tidyr':
#>
#>     extract
library(dplyr)
library(purrr)
library(furrr)
#> Loading required package: future
library(relevent)
#> Loading required package: trust
#> Loading required package: sna
#> Loading required package: statnet.common
#>
#> Attaching package: 'statnet.common'
#> The following objects are masked from 'package:base':
#>
#>     attr, order
#> Loading required package: network
#>
#> 'network' 1.18.1 (2023-01-24), part of the Statnet Project
#> * 'news(package="network")' for changes since last version
#> * 'citation("network")' for citation information
#> * 'https://statnet.org' for help, support, and other information
#> sna: Tools for Social Network Analysis
#> Version 2.7-1 created on 2023-01-24.
#> copyright (c) 2005, Carter T. Butts, University of California-Irvine
#>  For citation information, type citation("sna").
#>  Type help(package="sna") to get started.
#> Loading required package: coda
#> relevent: Relational Event Models
#> Version 1.2-1 created on 2023-01-24.
#> copyright (c) 2007, Carter T. Butts, University of California-
#> Irvine
#>  For citation information, type citation("relevent").
#>  Type help(package="relevent") to get started.
library(broom.mixed)
library(rem)
library(ggplot2)
library(survival)
#>
#> Attaching package: 'survival'
#> The following object is masked from 'package:future':
#>
#>     cluster
library(remify)
library(remstats)
library(devtools)
#> Loading required package: usethis
#library(remstimate)
library(tibble)
library(reprex)
library(styler)

## 1. Read the data
load("UUsummerschool.Rdata")
rm(Twitter_data_rem3, WTCPoliceCalls, ClassIntercept, ClassIsFemale,
   ClassIsTeacher, WTCPoliceIsICR, Class)

## 2. Ampute and then impute the data
# renaming dataset for later convenience
apollo.renamed <- PartOfApollo_13
apollo.renamed <- apollo.renamed %>%
  rename(
    actor1 = sender,
    actor2 = receiver
  )

#### set with sufficient actors & dyads
set.seed(123) # for some reason the seed 123 was just not working for me, it
# keeps giving me 210 dyads, even with size 1600
# even the seed, it was giving me 210 dyads, so I changed the sample to 1600
fixed.sample <- apollo.renamed[sample(1:nrow(apollo.renamed), 1500),]
remify(fixed.sample, model = "tie") %>% dim()
#>
#> Warning: the `time` variable is not sorted. Sorting will be forced.
#> events actors  dyads
#>   1500     16    240

# creating functions
# Define effects
effects <- ~ -1 + reciprocity(scaling = ("std")) +
  indegreeSender() + outdegreeReceiver()

# Prepare event history
fixed.reh <- remify(edgelist = fixed.sample,
                    model = "tie")
#>
#> Warning: the `time` variable is not sorted. Sorting will be forced.
# calculate stats
stats <- remstats(tie_effects = effects,
                  reh = fixed.reh)

risk_sets <- attr(stats, "riskset") %>% select(-'id')

# creating one set with all risksets for each time point
combined <- merge(risk_sets, fixed.sample$time, by=NULL)  %>%
  rename(time = y) %>%
  .[, c("time", "sender", "receiver")] %>%
  mutate(sender = as.numeric(sender),
         receiver = as.numeric(receiver))

# GV: Calculate divergence
diff <- fixed.sample[rep(seq_len(nrow(fixed.sample)), each = 240), ] %>%
  data.matrix() %>%
  .[, 1:3] - combined
# GV: identify non-divergence
combined$status <-
  rowSums(diff == 0) == ncol(diff)

#combining the dataset with riskset to the statistic
combined$reciprocity <- c(stats[,,1])
combined$indegreeSender <- c(stats[,,2])
combined$outdegreeReceiver <- c(stats[,,3])

fixed.cox.fit <- coxph(Surv(time, status) ~ reciprocity + indegreeSender +
                         outdegreeReceiver,
                       data=combined)
fixed.cox.fit
#> Call:
#> coxph(formula = Surv(time, status) ~ reciprocity + indegreeSender +
#>     outdegreeReceiver, data = combined)
#>
#>                         coef  exp(coef)   se(coef)      z     p
#> reciprocity       -0.0312374  0.9692455  0.0286696 -1.090 0.276
#> indegreeSender     0.0003728  1.0003729  0.0003083  1.209 0.227
#> outdegreeReceiver -0.0003139  0.9996861  0.0003019 -1.040 0.298
#>
#> Likelihood ratio test=4.1  on 3 df, p=0.2509
#> n= 360000, number of events= 1500

Created on 2023-06-21 with reprex v2.0.2

And if you run it on one imputed set, as if the imputed set were observed data?

I hope I understood you correctly, I didn't do any simulations and changed the number of imputations to 1. After analysing just a single imputed dataset I still did not get all significant p-values. Only one is significant, exactly like in the fully observed dataset.
library(mice)
#>
#> Attaching package: 'mice'
#> The following object is masked from 'package:stats':
#>
#>     filter
#> The following objects are masked from 'package:base':
#>
#>     cbind, rbind
require(lattice)
#> Loading required package: lattice
library(tidyverse)
library(magrittr)
#>
#> Attaching package: 'magrittr'
#> The following object is masked from 'package:purrr':
#>
#>     set_names
#> The following object is masked from 'package:tidyr':
#>
#>     extract
library(dplyr)
library(purrr)
library(furrr)
#> Loading required package: future
library(relevent)
#> Loading required package: trust
#> Loading required package: sna
#> Loading required package: statnet.common
#>
#> Attaching package: 'statnet.common'
#> The following objects are masked from 'package:base':
#>
#>     attr, order
#> Loading required package: network
#>
#> 'network' 1.18.1 (2023-01-24), part of the Statnet Project
#> * 'news(package="network")' for changes since last version
#> * 'citation("network")' for citation information
#> * 'https://statnet.org' for help, support, and other information
#> sna: Tools for Social Network Analysis
#> Version 2.7-1 created on 2023-01-24.
#> copyright (c) 2005, Carter T. Butts, University of California-Irvine
#>  For citation information, type citation("sna").
#>  Type help(package="sna") to get started.
#> Loading required package: coda
#> relevent: Relational Event Models
#> Version 1.2-1 created on 2023-01-24.
#> copyright (c) 2007, Carter T. Butts, University of California-
#> Irvine
#>  For citation information, type citation("relevent").
#>  Type help(package="relevent") to get started.
library(broom.mixed)
library(rem)
library(ggplot2)
library(survival)
#>
#> Attaching package: 'survival'
#> The following object is masked from 'package:future':
#>
#>     cluster
library(remify)
library(remstats)
library(devtools)
#> Loading required package: usethis
#library(remstimate)
library(tibble)
library(reprex)
library(styler)

## 1. Read the data
load("UUsummerschool.Rdata")
rm(Twitter_data_rem3, WTCPoliceCalls, ClassIntercept, ClassIsFemale,
   ClassIsTeacher, WTCPoliceIsICR, Class)

## 2. Ampute and then impute the data
# renaming dataset for later convenience
apollo.renamed <- PartOfApollo_13
apollo.renamed <- apollo.renamed %>%
  rename(
    actor1 = sender,
    actor2 = receiver
  )
# making the dataset a tibble
apollo.renamed <- as_tibble(apollo.renamed)

# determine which column to condition on
whichcol <- c("", "actor2", "actor1")
names(whichcol) <- colnames(apollo.renamed)

# create predictor matrix for imoutations
pred <- make.predictorMatrix(apollo.renamed)
pred[ ,"time"] <- 0
pred
#>        time actor1 actor2
#> time      0      1      1
#> actor1    0      0      1
#> actor2    0      1      0

# use the custom pmm method
method <- make.method(apollo.renamed)
method[c(2,3)] <- "pmm.conditional"

MCAR_finite <- apollo.renamed %>%
  ampute(prop = .2,
         patterns = c(1,0,1),
         mech = "MCAR") %>% .$amp %>%
  mice(m = 1,
       maxit = 5,
       method = method,
       pred=pred,
       whichcolumn = whichcol,
       print = F)

one.imp <- complete(MCAR_finite)

# creating functions
# Define effects
effects <- ~ -1 + reciprocity(scaling = ("std")) +
  indegreeSender() + outdegreeReceiver()

# Prepare event history
single.reh <- remify(edgelist = one.imp,
                     model = "tie")
# calculate stats
single.stats <- remstats(tie_effects = effects,
                         reh = single.reh)

risk_sets <- attr(single.stats, "riskset") %>% select(-'id')

# creating one set with all risksets for each time point
combined <- merge(risk_sets, PartOfApollo_13$time, by=NULL)  %>%
  rename(time = y) %>%
  .[, c("time", "sender", "receiver")] %>%
  mutate(sender = as.numeric(sender),
         receiver = as.numeric(receiver))

# GV: Calculate divergence
diff <- PartOfApollo_13[rep(seq_len(nrow(PartOfApollo_13)), each = 240), ] %>%
  data.matrix() %>%
  .[, 1:3] - combined
# GV: identify non-divergence
combined$status <-
  rowSums(diff == 0) == ncol(diff)

#combining the dataset with riskset to the statistic
combined$reciprocity <- c(single.stats[,,1])
combined$indegreeSender <- c(single.stats[,,2])
combined$outdegreeReceiver <- c(single.stats[,,3])

single.cox.fit <- coxph(Surv(time, status) ~ reciprocity + indegreeSender +
                          outdegreeReceiver,
                        data=combined)
single.cox.fit
#> Call:
#> coxph(formula = Surv(time, status) ~ reciprocity + indegreeSender +
#>     outdegreeReceiver, data = combined)
#>
#>                         coef  exp(coef)   se(coef)      z        p
#> reciprocity        2.433e-02  1.025e+00  1.873e-02  1.299    0.194
#> indegreeSender     4.305e-04  1.000e+00  7.399e-05  5.818 5.95e-09
#> outdegreeReceiver -8.757e-05  9.999e-01  7.282e-05 -1.203    0.229
#>
#> Likelihood ratio test=41.29  on 3 df, p=5.664e-09
#> n= 931680, number of events= 3882

Created on 2023-06-22 with reprex v2.0.2

I think it has to do with the exclusion of the 1500 cases, which artificially deflates the between variance. I'll look into it, but don't worry too much about it 😉


feat: add common serialize package

Signed-off-by: Jim Ma<EMAIL_ADDRESS>
Description

Related Issue

Motivation and Context

Screenshots (if appropriate)
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation Update (if none of the other choices apply)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.

Codecov Report

Merging #1601 (8b19b7a) into main (55f5daf) will decrease coverage by 0.23%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1601      +/-   ##
==========================================
- Coverage   42.46%   42.22%   -0.24%
==========================================
  Files         120      120
  Lines       11356    11330      -26
==========================================
- Hits         4822     4784      -38
- Misses       6025     6043      +18
+ Partials      509      503       -6

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
42.22% <ø> (-0.24%)
:arrow_down:

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

Impacted Files
Coverage Δ

client/config/peerhost.go
38.97% <ø> (+0.71%)
:arrow_up:

manager/config/config.go
0.00% <ø> (ø)

client/daemon/peer/peertask_piecetask_poller.go
31.03% <0.00%> (-15.87%)
:arrow_down:

client/daemon/peer/peertask_conductor.go
56.10% <0.00%> (-0.67%)
:arrow_down:


Shift+arrow left/right MAC = ?

I found what would supposedly be a fix but I can't find those lines in any file, and I can't find "KCKeystrokeTansformer.m".
https://github.com/keycastr/keycastr/issues/106#issuecomment-397196699
I use a macbook pro, wireless apple keyboard.
Please help!

+1

+1

Combinations of Shift key with arrows, enter/return, esc, and delete key are all problematic.
I'm happy to review a PR if it fixes all of these, but I'm also thinking about a fix for the next version.
asdasdasd
asdasdasd

Duplicate of #106 and fixed on master


Mux Insertion Tracker

This issue tracks the different mux insertion passes that are need.

[ ] Par Remove by Mux Insertion #113
[ ] Seq mux insertion #116

I'm realizing that this may not be possible to do in general. We probably should have a series of passes that do this in specialized cases. I'm going to turn this issue into a tracker for such specialized passes.

[ ] Par Remove by Mux Insertion #113

[ ] Par Remove by Mux Insertion #113

Futil has been redesigned to use go/done holes and groups in #139.


Update unit1.ipynb

Added piglet correction to overcome problem with package_to_hub_function

Thanks for sending a PR :fire: :rocket:
I think this was added in https://github.com/huggingface/deep-rl-class/pull/12. Is it ok if we close this PR?

Yes it was added on #12. I close the PR.
Thanks 🤗


config - allow for existing secret

closes #552
remove both checksum and secret if existing secret has been enabled

Any comments on this change, we need that change to securely deploy the API token for DefectDojo - this might be of interest for other use cases/sinks as well.


Command to list all users

Is it possible to get a command that could list all users on the client? /users or something?

Hey, thanks for the suggestion!
There is a button in the menu that lists all the users. Are you talking about a command that lists the users in the chat (as a message), or could it just open the popup with the user list (as the button does)?

The same as the button does, but I was unaware of the button when opening this issue. If you think it functionality is repetitive feel free to close this issue.

Ok, I can make the command trigger the popup as the button does :)

Are you open to PRs on this repo? I was thinking about killing a couple issues.

Sure! Any PR is welcome! :)

Done in #19 - Thanks to @zoo1


how to track the mint progress of a token

how to track the mint progress of a token

The Mint model of XPS references Bitcoin's proof-of-work mechanism.
However, the PoW model is inherently random, which makes it impossible to achieve true progress tracking.


Implement GENERATE REPORT command

It will do the POST genreport REST call, write the payload to a temporary file ending in .html extension. Then it will call xdg-open on that file.
This introduces a dependency on the xdg-utils package.

Version 0.220 has a GENERATE REPORT command for generating reports from arbitrary Mason components.
Version 0.221 has a set of INTERVAL REPORT commands that call the suse-cz-monthly.mc Mason component to generate employee monthly payroll reports.

Added xdg-utils and other dependencies to the spec file in OBS.


Current Gruntfile template puts static files that should be ignored in unignored location

See https://github.com/cfpb/design-manual/pull/292#issuecomment-85526290

Solution could be either modifying Gruntfile template, modifying .gitignore, or some combination of the two.


I have it installed but it's not appearing for any skills

Tested on cooking steaks at lumby range, no progress bar appeared.
Tried in resizable - Classic / Modern + Fixed
Turned off and on resources packs and UI skins but still nothing

At the moment the plugin is broken due to an issue that couldn't have been caught in testing, if the problem persists once the plugin is updated to 1.03.1 then please tell me.
Sorry for the inconvenience.

when do you plan to update it?

when do you plan to update it?

The update has been ready for almost 3 days, I'm just waiting for someone to approve it.

Thankfully the update has been approved, hopefully everything will work well for you now. If the problem persists, open another issue.


[5.x] apt-repos: Remove now-unneeded Ubuntu 21.10 repository on 22.04

Backport of

#22116

Merged, thanks @andersk!


IDatabaseHelpers

I can't find IDatabaseHelpers this file.

Confirmed - recent commit added references to IDatabaseHelpers but the interface is nowhere to be found (forgot to commit), thus breaking the build. Kinda critical ;-)

Oops....will have a look in the morning. Soz

Sorry for the delay, but its back.

Thanks!


[Snyk] Security upgrade nginx from 1.21 to 1.25.2

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

web-server/Dockerfile

We recommend upgrading to nginx:1.25.2, as this image has only 74 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

714
Double Free SNYK-DEBIAN11-CURL-1585150
No Known Exploit

714
Incorrect Default Permissions SNYK-DEBIAN11-CURL-2936229
No Known Exploit

714
Exposure of Resource to Wrong Sphere SNYK-DEBIAN11-CURL-3065656
No Known Exploit

714
Out-of-bounds Write SNYK-DEBIAN11-FREETYPE-2774656
No Known Exploit

900
Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
Mature

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

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


Locate source file in background thread inside a ReadAction

Closes https://github.com/getappmap/appmap-intellij-plugin/issues/139
Needs #189 , because that PR refactors the code updated by this PR.
This PR fixes an exception, which occurred when a user clicked "Show source" inside an AppMap editor.

:tada: This PR is included in version 0.25.0 :tada:
The release is available on:

v0.25.0
GitHub release

Your semantic-release bot :package::rocket:


Validation checks should throw new ValidationFailed-like, not AssertionError

At the moment all checks to validate output data are done using assert. It would be great if we could get these to throw a custom error (like ValidationError or some subclass of this) instead.
People often run python can be run with assertions disabled, and this would disable a key behavior in these functions. Worse still is that validation code would still quietly run and "pass" data with no indication that checks are not being performed.
This addition could also make it easier for people to catch and handle certain types of validation problems, with more helpful error messages.

I've used ValidationError a couple times, but that also makes me feel like validation is throwing some unexpected error, not that it performed as it should and caught bad data... if that makes sense.


[tokenizer] Return if exceed max token length

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report
Attention: 1339 lines in your changes are missing coverage. Please review.

Comparison is base (bb5073f) 72.08% compared to head (75705a2) 72.21%.
Report is 972 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2957      +/-   ##
============================================
+ Coverage     72.08%   72.21%   +0.12%
- Complexity     5126     7280    +2154
============================================
  Files           473      722     +249
  Lines         21970    32508   +10538
  Branches       2351     3392    +1041
============================================
+ Hits          15838    23475    +7637
- Misses         4925     7416    +2491
- Partials       1207     1617     +410

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Remove six.PY2 from a file

Can you do this for all files, please?
If it gets too large, then we can split per directory, maybe around 10 files per PR?

Hm. This is probably too large now and I might have to split it.
Before I do that, can you please trigger CI on this PR? I cannot build from source, and just want to make sure everything works.

This looks good to me and not too large. So let's try first with just one PR.


Need to  search ObservationUnits and Studies by ObservationVariable

https://github.com/plantbreeding/API/blob/d676187253e952648b68953b2486a66ff75e98e1/Specification/BrAPI-Phenotyping/ObservationUnits/Schemas/ObservationUnitSearchRequest.yaml#L16

Ok to add after discussing with Peter


Search step 1 map parsing failed, retyring request in 10 seconds

Scanner had been working great for a few days. Just using it to scan around our home off and on.
Using PTC account.
Around 24 hours ago, scanning started failing with this error (bold):
2016-08-09 19:08:07,038 [ search_worker_0][      auth_ptc][    INFO] PTC User Login successful.
2016-08-09 19:08:07,039 [ search_worker_0][      auth_ptc][    INFO] Request PTC Access Token...
2016-08-09 19:08:07,165 [ search_worker_0][      auth_ptc][    INFO] PTC Access Token successfully retrieved.
2016-08-09 19:08:07,178 [ search_worker_0][        pgoapi][    INFO] Creating a new direct request...
2016-08-09 19:08:07,178 [ search_worker_0][        pgoapi][    INFO] Adding 'GET_MAP_OBJECTS' to RPC request including arguments
2016-08-09 19:08:07,180 [ search_worker_0][        pgoapi][    INFO] Execution of RPC
2016-08-09 19:08:07,855 [ search_worker_0][        pgoapi][    INFO] Cleanup of request!
2016-08-09 19:08:07,858 [ search_worker_0][        search][   ERROR] Search step 1 map parsing failed, retyring request in 10 seconds
I'm just using the compiled windows binary (windows 10).
Not doing anything out of the oridinary to deserve a ban (single scanner, 10 seconds, not jumping, etc) but I figured it might have been an account ban anyway, so I created a new PTC account, but have the same error on either. Girlfriend's smart phone still works connected via wifi to my internet so it doesn't appear to be an IP ban either.
FWIW, as others mention, I also get a few other js errors in the console (specifically the MAP: Uncaught TypeError: Cannot read property 'style' of null error, but it did this before while the scanner was still working).

Hmm okay, I see this is most likely dupe of  #779, #789
Will verify and close if it is the case... sorry.
This should probably be added to the FAQ.


Swoole Demo outdated?

Is the example script showcasing the functionality with Swoole still valid? Tried it the whole day without success. I installed Swoole but the example script (https://github.com/hhxsv5/php-sse/blob/master/examples/sse-swoole.php) always throws an Uncaught Error: "Class Swoole\Http\Server not found".
Do you know if something changed and I just overlooked it etc.?
Any help would be much appreciated.

Maybe you forgot to enable swoole extension in php.ini, use php --ri swoole to confirm whether swoole is enabled.

Yeah, it is enabled. Both
/opt/plesk/php/8.0/bin/php -m | grep swoole
swoole
and
php -m | grep swoole
swoole
are showing the correct output but unfortunately I am still not able to use the extension in my php scripts. When using https://github.com/hhxsv5/php-sse/blob/master/examples/sse-swoole.php for testing purposes I am still getting an error
Class "Swoole\Http\Server" not found.
Everything has been restarted multiple times so this shouldn't be an issue.

Whether different versions of php are installed, try to run sse-swoole.php with the php absolute path.
/opt/plesk/php/8.0/bin/php sse-swoole.php
And show me the output about php --ri swoole please.
Similar issue #3246

Okay, so /opt/plesk/php/8.0/bin/php --ri swoole
outputs:
`
swoole
Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 4.5.9
Built => Dec 23 2020 13:24:33
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.1.1g  21 Apr 2020
http2 => enabled
pcre => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
`
Directly running ssw-swoole.php leads to same error as described above.
Don't know if it is relevant in this context but I also asked the swoole maintainers at their GitHub page and they wrote it cannot be run in cli mode. But what's the point when execution by a user from a browser ist not possible? Your example looks like it is possible so I am a bit confused right now.
Link to the mentioned comment: https://github.com/swoole/swoole-src/issues/3952#issuecomment-750646304

Yes, the Swoole example can only be run in cli mode, not in FPM.
Swoole has a built-in Http server, which is started in cli mode, and you should directly access http://<IP_ADDRESS>:5200/ in browser. not http://<IP_ADDRESS>/sse-swoole.php.

Yeah that finally makes sense and would maybe explain the described behavior. I am going to try it out today or the next days.
Thank you very much for your help ☺

Anytime.

For another reason I cannot test it right now unfortunately. But as said before I really think the way you described works out.
Closing the issue now because the former question has been answered. ☺


Simple example "xyz.to" is not a function

TypeError: xy.to is not a function
Used dependencies
    "react": "16.10.2",
    "react-dom": "16.10.2",
    "react-scripts": "3.2.0",
    "react-spring": "8.0.27",
    "react-use-gesture": "6.0.3",

Replacing xy.to with xy.interpolate works fine

Hey @impulse, examples use react-spring beta v9 as it has a simpler API and should be released pretty soon. interpolate is replaced with to and animated accepts simple transform props in its style attribute (see here).
I should probably have written a warning but v9 is really on the edge of being released!

Oh wow this looks way better, thanks for letting me know @dbismut 👍🏻


Allow overwriting headers

Addresses #413

Added ability to either set or add header
Default behavior is to set a header (since this is likely more common)
Modified tests to verify correct methods get called

Thanks for your work on this, but we've decided we don't want to change how the API works due to backwards compatibility. We'll fix this in version 3.0.


How can a dismissed player be un-dismissed?

Hi, thank you so much for building this library.
This might be a silly question but could you help me understand how to un-dismiss the mini-player programatically?
Once dismissed can it be bought back?

Hi @peterscodee! Any answer for this question?

@peterscodee also experiencing this.  Odd behavior.  Suggestions?

@peterscodee any updates on this?

This is crucial as others are running into the same. https://stackoverflow.com/questions/68420576/how-to-create-miniplayer-like-youtube-with-flutter for example.
This will be fixed in a future release.

Any updates?


Forget to add ":" to Arguments="----AppNotificationActivated", which lead to register failed.

[Enter feedback here]

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

ID: 0c0e5014-68c8-fb33-bf35-117c7b217c56
Version Independent ID: 0c0e5014-68c8-fb33-bf35-117c7b217c56
Content: Quickstart App notifications in the Windows App SDK - Windows apps
Content Source: hub/apps/windows-app-sdk/notifications/app-notifications/app-notifications-quickstart.md
Product: reunion
Technology: ****
GitHub Login: @vaheeshta
Microsoft Alias: vmehrshahi

Great catch! Fixed here.


build --watch mode

Does vite support build --watch mode (defaulted to development mode)? If not, any plans to support?
Similar to...

Snowpack (https://github.com/snowpackjs/snowpack/pull/782) &
Vue-Cli (https://github.com/vuejs/vue-cli/issues/1317)

Closing as it's a duplicate of #972

Duplicate of https://github.com/vitejs/vite/issues/972


Bridges tab no longer pads UI elements, creating them all in the same space.

Should be resolved in v2.5


Segmentation fault

Error says:
$ ./bin/sd -m ../models/sd-v1-4-ggml-model-q4_0.bin -p "cat"
[INFO]  stable-diffusion.cpp:2830 - loading model from '../models/sd-v1-4-ggml-model-q4_0.bin'
[INFO]  stable-diffusion.cpp:2858 - model type: SD1.x
[INFO]  stable-diffusion.cpp:2866 - ftype: q4_0
[INFO]  stable-diffusion.cpp:3094 - total params size = 1431.17MB (clip 66.46MB, unet 1270.21MB, vae 94.50MB)
[INFO]  stable-diffusion.cpp:3096 - loading model from '../models/sd-v1-4-ggml-model-q4_0.bin' completed, taking 2.13s
[INFO]  stable-diffusion.cpp:3121 - running in eps-prediction mode
[INFO]  stable-diffusion.cpp:3372 - condition graph use 79.79MB of memory: params 66.46MB, runtime 13.33MB (static 10.40MB, dynamic 2.93MB)
[INFO]  stable-diffusion.cpp:3372 - condition graph use 79.79MB of memory: params 66.46MB, runtime 13.33MB (static 10.40MB, dynamic 2.93MB)
[INFO]  stable-diffusion.cpp:4228 - get_learned_condition completed, taking 0.89s
[INFO]  stable-diffusion.cpp:4244 - start sampling
[INFO]  stable-diffusion.cpp:3565 - sampling using Euler A method
Segmentation fault

Idk what is an issue because nothing is written here.

Could you please provide me with information about your environment? This should include your CPU architecture, operating system, and the compilation parameters for sd.cpp. Or you can use the '-v' flag when executing the command to get detailed output.


Any way to install it on Arch

I am not able to find a AUR package or any Manjaro community package for this and I really like this concept. How can I get it

I can't find the source code. That's fishy.

I'm sorry. I don't know how to create a package for ArchLinux. I will see what I can do.
Tera works on Ubuntu and macOS. I used Bash script.
If anyone knows how to create a ArchLinux package, I will appreciate the contribution.

Please see the release page.

I'll try to make the Arch Package.

Awesome!
Thank you @donnaber.

I just added this, so if you want to close this issue, I believe you would be able to now! :)
Link: https://aur.archlinux.org/packages/tera
@shinokada


Invalid/no generation_config.json file

Inference script throws the following error:
$ python3 infer_alpaca_az.py
../models/mGPT-1.3B-azerbaijan
/home/user/projects/lm_az/env/lib/python3.10/site-packages/transformers/generation/configuration_utils.py:682: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.
  warnings.warn(
/home/user/projects/lm_az/env/lib/python3.10/site-packages/transformers/utils/hub.py:374: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.
  warnings.warn(
Traceback (most recent call last):
  File "/home/user/projects/lm_az/self_instruct/infer_alpaca_az.py", line 30, in <module>
    generation_config = GenerationConfig.from_pretrained('../models/mGPT-1.3B-azerbaijan',max_length=1024,use_auth_token=True,local_files_only=True)
  File "/home/user/projects/lm_az/env/lib/python3.10/site-packages/transformers/generation/configuration_utils.py", line 711, in from_pretrained
    resolved_config_file = cached_file(
  File "/home/user/projects/lm_az/env/lib/python3.10/site-packages/transformers/utils/hub.py", line 401, in cached_file
    raise EnvironmentError(
OSError: ../models/mGPT-1.3B-azerbaijan does not appear to have a file named generation_config.json. Checkout 'https://huggingface.co/../models/mGPT-1.3B-azerbaijan/main' for available files.

Thanks for the feedback. The generation config is as usual as other generation configs.  Pls save this dict as json in mGPT model dir.
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"pad_token_id": 0,
"temperature": 0.4,
"top_p": 0.8,
"top_k": 40,
"do_sample": true,
"max_new_tokens": 1536,
"repetition_penalty": 1.1,
"no_repeat_ngram_size": 15,
"transformers_version": "4.28.0.dev0"

}


Update page to include auditing

Are builds/releases/tests deleted due to retention policies logged somewhere?
If so, this help document should be updated to include this information and how to access the logs.

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

ID: 43a285f9-738d-9f76-4de0-a4c4ecf6f5f5
Version Independent ID: 9581a043-4873-bf0a-138f-85f6a61ae950
Content: Retention policies for builds, releases, and test - Azure Pipelines
Content Source: docs/pipelines/policies/retention.md
Product: devops
Technology: devops-cicd-policies
GitHub Login: @juliakm
Microsoft Alias: rabououn

@djeec Thanks for your suggestion. While we look into it, consider these resources:

Azure DevOps Services
Azure DevOps Support Bot
Azure DevOps on Stack Overflow

@juliakm - Could you take a look at this issue as I see you're now the assigned author.

@djeec Those logs are not available. You can submit a support request and we should be able to look up the logs for up to 20 days.
You can also submit a feature request on the Azure DevOps Developer Community


#24 define a mapping rule

Signed-off-by: Emily Jiang<EMAIL_ADDRESS>

@Emily-Jiang this one can be closed as #49 superseded it.

Close this as @jmesnil superseded this PR with the #49


In apostrophe-rich-text-widgets, initialize CKEditor on instanceReady

Fixes #802. Previously, a new CKEditor instance would be initialized after a timeout of 250ms. With this change, it's initialized when the instanceReady event is fired.

Thank you for this fix Fredrik! cc/ @boutell

This has been published to npm.
On Tue, Feb 7, 2017 at 9:44 AM, Austin Starin<EMAIL_ADDRESS>wrote:

Merged #814 https://github.com/punkave/apostrophe/pull/814.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/punkave/apostrophe/pull/814#event-952170691, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAB9fXwGeJQAeuFYUIT5bEAltFXb6_7mks5raIM7gaJpZM4L3Ixe
.

--
*THOMAS BOUTELL, *SUPPORT LEAD
P'UNK AVENUE |<PHONE_NUMBER>  |  punkave.com

Great, thanks for the merge! 👍


Provide a way to disable HTTP/2 for HTTP clients

Motivation:
Some legacy may not properly handle HTTP/2 upgrade requests or preface requests. Many HTTP client libraries provide options to disable HTTP/2 to mitigate the problems.

https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.Builder.html#version(java.net.http.HttpClient.Version)
https://square.github.io/okhttp/3.x/okhttp/okhttp3/OkHttpClient.Builder.html#protocols-java.util.List-

Modifications:

Add preferHttp1(boolean) option to ClientFactoryBuilder and flags.

If enabled, the client does not send upgrade requests and assumes that only HTTP/1.1 protocol can be required instead.

Result:
You can now disable HTTP/2 protocol when sending HTTP or HTTPS requests.
ClientFactory
  .builder()
  .preferHttp1(true)
  .build();

Or use system properties
-Dcom.linecorp.armeria.defaultPreferHttp1=true

@jrhee17 I realized that my previous approach was prone to bugs for future changes such as #5173 So the changes in HttpChannelPool and HttpClientPipelineConfigurator are reverted. preferHttp1 flag is only used to determine the desired session protocol when HttpClientDelete attempts to acquire a connection.

👍 👍 👍


Duplicate import gql from 'graphql-tag'

Duplicate import gql from 'graphql-tag'

codegen.yml

overwrite: true

documents: "src/**/*.graphql"

config:
  skipTypename: true
  avoidOptionals:
    inputValue: false
    object: true
  strict: true
  preResolveTypes: true
  scalars:
    timestamptz: string
    uuid: string
    jsonb: "{ [key: string]: any }"

generates:
  src/generate.ts:
    plugins:
      - add: '/* eslint:disable */'
      - "typescript"
      - "typescript-operations"
      - "typescript-document-nodes"
      - "typescript-graphql-request"

@polRk
I pushed a fix for the duplications, can you please try the alpha? 1.12.3-alpha-c868a2f8.36
Thanks!

@polRk
I pushed a fix for the duplications, can you please try the alpha? 1.12.3-alpha-ed40601c.37
Thanks!

@dotansimha, Yes i can, I'll do it next week.

Is it possible to NOT import gql?
"typescript-graphql-request" uses print to convert it to a string anyways, so it seems like an unnecessary addition to the bundle size..

Fixed in v1.13.0
@Aleksion you can either use documentNode or noGraphQlTag option for that.


Compatibility problem with Litespeed v3.2

Hello, I'm recently having issue with WP Stateless after having updated Litespeed plugin to v3.2
[10-Jun-2020 23:54:25 UTC] PHP Fatal error:  Uncaught Error: Class 'LiteSpeed_Cache_Config' not found in (home)/wp-content/plugins/wp-stateless/lib/classes/compatibility/lite-speed-cache.php:317
Stack trace:
#0 (home)/wp-includes/class-wp-hook.php(287): wpCloud\StatelessMedia\LSCacheWP->update_md5_and_manual_sync(991)
#1 (home)/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#2 (home)/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 (home)/wp-content/plugins/wp-stateless/lib/classes/class-ajax.php(193): do_action('sm:pre::synced:...', 991)
#4 [internal function]: wpCloud\StatelessMedia\Ajax->action_stateless_process_image(Array)
#5 (home)/wp-content/plugins/wp-stateless/lib/classes/class-ajax.php(75): call_user_func_array(Array, Array)
#6 (home)/wp-includes/class-wp-hook.php(287): wpCloud\StatelessMedia\Ajax-> in (home)/wp-content/plugins/wp-stateless/lib/classes/compatibility/lite-speed-cache.php on line 317

Seems like LiteSpeed_Cache and LiteSpeed_Cache_Config have been merged into LiteSpeed/Base since v3.0

Hello @ngxson
The fix will be included in the next release.
Fixed on issue 491.

Good to know that. Thank you!


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/28580

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/28580

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/31540

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/33543


Set up volumes for docker-compose

This one doesn't work, so merge this issue to AWS Setup https://github.com/astrohsy/ZETCH/issues/46


Way to configure differ not go deep into detail about Collection and Map

First, thanks for your great library, this just solves my use case :)
public class App {

    private static final Logger LOGGER = LoggerFactory.getLogger(App.class);

    public static void main(String[] args) throws IOException {

        Map<String, Double> map1 = Collections.singletonMap("lng", 123.45);
        Map<String, Double> map2 = Collections.singletonMap("lat", 67.89);

        final Community c1 = new Community();
        c1.setName("Foo");
        c1.setGeolocation(map1);

        final Community c2 = new Community();
        c2.setName("Bar");
        c2.setGeolocation(map2);

        DiffNode diff = ObjectDifferBuilder.buildDefault().compare(c1, c2);

        if (diff.hasChanges()) {
            diff.visit(new DiffNode.Visitor() {
                @Override
                public void node(DiffNode node, Visit visit) {
                    final Object oldValue = node.canonicalGet(c1);
                    final Object newValue = node.canonicalGet(c2);
                    LOGGER.debug("{}: {} => {}", node.getPath(), oldValue,
                        newValue);
                }
            });
        }

    }

    static class Community {
        private String name;

        private List<String> children;

        private Map<String, Double> geolocation;

        public String getName() {
            return this.name;
        }

        public List<String> getChildren() {
            return this.children;
        }

        public Map<String, Double> getGeolocation() {
            return this.geolocation;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setChildren(List<String> children) {
            this.children = children;
        }

        public void setGeolocation(Map<String, Double> geolocation) {
            this.geolocation = geolocation;
        }
    }
}

This would give
2015/01/06 18:24:59.122 [net.momoka.App.main()] DEBUG net.momoka.App - /: net.momoka.App$Community@17c384c8 => net.momoka.App$Community@254272a8
2015/01/06 18:24:59.125 [net.momoka.App.main()] DEBUG net.momoka.App - /geolocation: {lng=123.45} => {lat=67.89}
2015/01/06 18:24:59.126 [net.momoka.App.main()] DEBUG net.momoka.App - /geolocation{lng}: 123.45 => null
2015/01/06 18:24:59.126 [net.momoka.App.main()] DEBUG net.momoka.App - /geolocation{lat}: null => 67.89
2015/01/06 18:24:59.126 [net.momoka.App.main()] DEBUG net.momoka.App - /name: Foo => Bar

Now I want the Collection/Map differ not going this deep to every detail about the elements in it, but just the content. Like
/geolocation: {lng=123.45} => {lat=67.89}    # <== not going deep into every element of this Map
/name: Foo => Bar

Is there any way to configure the differ? Thanks!

Thanks for the flowers! :smile:
You can achieve the desired behavior either by annotating the getter:
@ObjectDiffProperty(equalsOnly = true)
public Map<String, Double> getGeolocation()
{
	return this.geolocation;
}

Or via configuration API:
ObjectDiffer objectDiffer = ObjectDifferBuilder
		.startBuilding()
		.comparison().ofNode(NodePath.with("geolocation")).toUseEqualsMethod()
		.and()
		.build();
DiffNode diff = objectDiffer.compare(c1, c2);

Hope this helps!

It works! This solves my case. Thanks!
I'm also thinking if there are some example in guide or documentation would be very helpful :smiley:

Awesome! Yeah, I'll add a section to the docs as soon as I can.


Bubble menu still opens when editable: () => false is set

novel.sh doesn't have any good way of rendering the output.
tiptap has 3 methods:
JSON, HTML, and rendering tip-tap in read-only mode by setting editable to false.
However when I pass editable: () => false in editorProps the bubble menu still opens and allows anyone to edit selected the selected content.
I tried converting the JSON to HTML instead, but this has 2 problems.

https://tiptap.dev/guide/output#option-2-generate-html-from-prosemirror-json generating html from the JSON requires passing the extensions. This "would" work if you would please add an export of the extensions from novel, so I can import them.

The styles won't always match. Since my application has default styles, and novel.sh has it's own styles, my content looks different inside the novel Editor, and when it's rendered in plain HTML. I don't want to give my users a bad experience of the output not looking the same as the input. This is why I'm trying to use the Editor to render the output, instead of converting it.

How did you disable editable mode?
I tried this:
<Editor
				disableLocalStorage
				editorProps={{ editable: () => false }}
			/>

But it still lets me type.

Hi! @MarkLyck have you got any luck with setting the editable to false and not showing the bubble menu?

same here, the bubble menu should appears in editable mode only. At this point i cant go to production with this issue :/

Hi.
I had the same situation and raised the PR here.
https://github.com/steven-tey/novel/pull/249
https://tiptap.dev/api/extensions/bubble-menu
The default behavior of the bubble menu seems to hide it when 'editable' is falsy.
However, in the current implementation, it appears to be overridden by shouldShow.
I have modified it within the PR to also consider editor.isEditable.

@motoya-k @MarkLyck  i downloaded novel package using standard npm procdedure, but this editable method still doesnt seem to work for me, any help?

https://novel.sh/docs/components/editor-bubble new approach should be fully customizable
0.2.0-canary.0
As a solution to this problem

Hide the Bubble Menu from React tree
Ovewrite shouldShow from tippyOptions


Deal with 401 exceptions in a better way

I've not tested this. I hope it works. :P

@GrahamCampbell I'll be the guinea pig!

:)

Derp fix, fixes it :+1:

:ship:

I guess we should probably add a unit test for this.

:smile:

Fix is working for me.

Yey. :)

@GrahamCampbell Thanks for getting a fix out so quickly. Looking forward to tomorrow night @jbrooksuk!

There likely won't be many further changes tbh.

Still an amazing achievement/milestone to get an official release out.

Indeed it is! :)


[FLINK-27460][runtime] Remove unused notifyPartitionDataAvailable process

What is the purpose of the change
The notifyPartitionDataAvailable process was used to trigger downstream task scheduling once a pipelined partition has data produced at TM side. It is no longer used and can be removed.
Verifying this change
This change is already covered by existing tests of the scheduler and result partition.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure

Thanks for reviewing and merging this PR! @zentol


fix: import only necessary proto files from panacea-core

Based on a PR #79.
We only need the following files:

consent.proto
deal.proto
coin.proto
gogo.proto

I'm also trying to adopt buf for dependency management. Coming soon. Please focus on rate limiting while I am working on buf.

I'm also trying to adopt buf for dependency management. Coming soon. Please focus on rate limiting while I am working on buf.

@gyuguen I've tried to use buf: https://github.com/medibloc/panacea-oracle/commit/4cc967394481c2d1a2cc2261b1186fc376be4cf4, but there are some limitations for now because we're using cosmos-sdk < v0.46 that doesn't publish their proto files to BSR (Buf Schema Registry). That is, we can use buf with a complete dependency management once we upgrade cosmos-sdk to v0.46+. Until then, let's use our copy&paste strategy.

Yes. it's okay it'll be fine
I've used 'buf' briefly before, and it's a handy feature.
And I will fix Lint at #79