issue with the animation:

I'm developing a Power BI Visual with this library.
The problem i'm facing, is that after applying a filter on some kind of data, the TWEEN animation for flows slows down, until it stops at the end.
is there any way to understand where the problem comes from. I think its related to moveTo() method from _animateCanvasLineSymbol . But I'm not sure.

Is it possible to provide a standalone example illustrating this?  Are you saying you want the animation to repeat infinitely?  Is it running once and then never repeating again?  I want to first understand this better and rule out that this isn't something that can be set in the constructor options.

would you please provide me with an email ?

Can you copy/paste here just the lines of code for the layer constructor options when you are creating the layer?  I'm curious what that looks like.

  var oneToManyFlowmapLayer = new CanvasFlowmap(geoJsonFeatureCollection, {
        originAndDestinationFieldIds: {
            originUniqueIdField: 'origin_city',
            originGeometry: {
                x: 'origin_lon',
                y: 'origin_lat',
                volume : 'volume'
            },
            destinationUniqueIdField: 'destination_city',
            destinationGeometry: {
                x: 'destination_lon',
                y: 'destination_lat'
            }
        },
        canvasBezierStyle: {
            type: 'simple',
            symbol: {
                // use canvas styling options (compare to CircleMarker styling below)
                strokeStyle: 'rgba(255, 0, 51, 0.8)',
                lineWidth: 1,
                lineCap: 'round',
                shadowColor: 'rgb(255, 0, 51)',
                shadowBlur: 1.5
            }
        },
        volumeMax: max,
        pathDisplayMode: 'all',
        animationStarted: true,
        animationEasingFamily: 'Linear',
        animationEasingType: 'None',
        animationDuration: 2000
    }).addTo(this.map);

In fact the problem is with the Offset in:
_valuesStart:
{offset:<PHONE_NUMBER>6753735}
_valuesStartRepeat:
{offset:<PHONE_NUMBER>6753735}
it supposed to be 0

Hey @Zahma I can see what you mean now in your live sample, especially after toggling to one of the other options.
Your layer constructor options look fine to me.
Where are these properties that you are referring to?

I found after several research, Tween needs to set
this._valuesStart[property] *= 1.0; // Ensures we're using numbers, not strings
to 0 line 215 of Tween library.

@Zahma please see this comment: https://github.com/jwasilgeo/Leaflet.Canvas-Flowmap-Layer/issues/5#issuecomment-331879108

Ok, closing for now.


Slider's next, prev buttons and bullets have hidden attribute

I didn't expect such behaviour. Is it your or swiper's issue? I don't see any configuration options to unlock the arrows.
Nevetheless, pagination can be exposed with pagination property.

UPD: It can be activated via template by

But these arrows don't work as expected

Sorry, found


Build using arti.hpc instead of arti.dev

Not sure if this change is necessary, but I noticed it when I was debugging the build failure.

Should this also get backported to master?

@erl-hpe there were already release branches, I take it we opted not to make a release/csm-1.4 then?
I figured we'd stop taking CSM release branches, at least with 1.5 given the recent modernization.


blur -> threshold chaining doesn't work as expected

[x] I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

What are the steps to reproduce?
When chaining .blur().threshold() the threshold step is not perfomed
What is the expected behaviour?
.threshold() should be performed
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
import sharp from 'sharp'
import fs from 'fs/promises'

let file = await fs.readFile('test.png')

let onepass = await sharp(file)
.blur(10)
.threshold()
.toBuffer()

//as a temporary workaround one can do a second pass rather than chaining operations
let twopass = await sharp(onepass)
.threshold()
.toBuffer()

fs.writeFile('blurry_but_not_thresholded.png', onepass)
fs.writeFile('blurry_and_thresholded.png', twopass)

Please provide sample image(s) that help explain this problem
test.png

blurry_but_not_thresholded.png

blurry_and_thresholded.png

Hi, your approach to split this task into two passes is correct. (My understanding is that threshold then blur is more generally useful, or at least this was the case when this feature was added in 2015.)

Is there guidance on how this is supposed to work? Intuitively it seems like I should be able to chain things in whatever order I want but this isn't the case? There's some internal order of precedence? Perhaps there's something I missed in the docs? I'm definitely intending to use the operations in the order listed here.

Please see #241 for discussion about future possible API improvements.

I hope this information helped. Please feel free to re-open with more details if further assistance is required.


feat: change alchemy provider instances to alchemy smart account client

Pull Request Checklist

[ ] Did you add new tests and confirm existing tests pass? (yarn test)
[ ] Did you update relevant docs? (docs are found in the site folder, and guidelines for updating/adding docs can be found in the contribution guide)
[ ] Do your commits follow the Conventional Commits standard?
[ ] Does your PR title also follow the Conventional Commits standard?
[ ] If you have a breaking change, is it correctly reflected in your commit message? (e.g. feat!: breaking change)
[ ] Did you run lint (yarn lint:check) and fix any issues? (yarn lint:write)
[ ] Did you follow the contribution guidelines?

PR-Codex overview
This PR updates the codebase to replace references to AlchemyProvider with AlchemySmartAccountClient.
Detailed summary

Replaced references to AlchemyProvider with AlchemySmartAccountClient in various files.
Updated parameter types and names in documentation.
Updated imports and type references.

The following files were skipped due to too many changes: packages/accounts/src/msca/plugins/multi-owner/plugin.ts, packages/accounts/src/msca/plugins/token-receiver/plugin.ts, packages/accounts/src/msca/plugins/session-key/plugin.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

this should be fixed in the docs now


Regression in CodeNav v8.9.38: #region directives are ignored in NUnit test classes (C#)

Hello Samir,
CodeNav v8.9.38 ignores #region directives in NUnit test classes (C#):

But not in other C# classes.
This was not the case with the previous version I was using (v8.9.35).
Please investigate.
Best regards,
Didier

Thanks for reporting!
Should be fixed in the new release (8.9.40)

Nice response time, Samir!
Yes, the bug appetas to be fixed. Good work!

appears*


How to access declared namespaces?

I'm trying to understand the preferred way to access declared namespaces. I can get a dictionary of the declared namespaces from the root element's attributes. Is there a more direct way?
Also, if process namespaces is set to true, I can't find anywhere where the namespace is saved. #34 covers this; am I correct in understanding that the namespace is just removed and discarded?

Sorry, I'm not really sure what happens with namespaces, I didn't have such use case. Did you figured it out? Maybe someone else can answer this?


Destroying texture loaded through assetLoader, won't remove texture from Base/TextureCache

Calling destroy(true, true) on a sprite that has a texture that was loaded using the assetLoader, doesn't remove the texture from TextureCache or BaseTextureCache as imageURL is not populated when texture is created.
Libary version: Pixi.js 3.0.7
Example usage:
   //aset loading
   loader
    .add('bird', './bird.jpg')
    .load(onAssetsLoaded);

  //on load
  function onAssetsLoaded() {
     bird = new PIXI.Sprite(loader.resources.bird.texture);
     stage.addChild(bird);
  }

   //destroy
   bird.destroy(true, true);

BaseTexture.prototype.destroy = function ()
{
    if (this.imageUrl)   //condition never met
    {

        delete utils.BaseTextureCache[this.imageUrl];
        delete utils.TextureCache[this.imageUrl];
        .....

    }
    .....
};

Thanks for the report!

You're welcome. Looks like it should be a fairly easy fix in the textureParser  (also takes care of adding texture to the BaseTextureCache)
    var baseTexture = new core.BaseTexture(resource.data, null, core.utils.getResolutionOfUrl(resource.url));
    baseTexture.imageUrl = resource.url;
    resource.texture = new core.Texture(baseTexture);
    core.utils.BaseTextureCache[resource.url] = resource.texture;
    core.utils.TextureCache[resource.url] = resource.texture;

I'm happy to edit and send a pull request?

Sounds good, that makes my life a lot easier!


When using Proxying with the ResponseTemplateTransformer the setting proxyUrlPrefixToRemove is ignored

WireMock version: 2.32.0
How to reproduce:
Use the following mapping:
{
  "request": {
    "method": "ANY",
    "urlPattern": "/proxy-test/.*"
  },
  "response": {
    "proxyBaseUrl" : "https://localhost:8099",
    "proxyUrlPrefixToRemove" : "/proxy-test"
  }
}

Use the setting "--global-response-templating".
When sending a request to '/proxy-test/foo'
Expected behaviour: a proxy request to https://localhost:8099/foo
Actual behaviour: a proxy request to https://localhost:8099/proxy-test/foo

I'm facing the same problem, when I try to use this proxy feature. A fix would be great.

Same problem. Tryed to create a mock with a mock/intercept pattern.
First of all, tryed to create proxy: for example, my mock will be at "myserver/smartMock", target request should be "otherserver/original".

{

"mappings": [{
        "request": {
            "urlPath": "/original",
            "method": "POST"
        },
        "response": {
            "body": "ORIGINAL RESPONSE"
        }
    }, {
        "request": {
            "urlPath": "/smartMock",
            "method": "POST"
        },
        "response": {
            "proxyBaseUrl": "http://localhost:8112/original",
            "proxyUrlPrefixToRemove": "/smartMock"
        }
    }
]

}
Result:          Request was not matched
Closest stub     [path] /smartMock
Request  /smartMock/original                                 <<<<< URL does not match
/smartMock should route to /original, but /smartMock didnt cut!
Tryed different variants, nothing works for me.
For this variant:

"proxyBaseUrl": "http://localhost:8112",
request didnt work at all!  Only requests with end "/" is working.

hi - any idea which release (and associated docker container update) this is fix scheduled for? FYI, documentation refers to this feature so newbies (like me) can get confused when it doesn't work as described :)

Still reproduces in version 2.33.2 with option --global-response-templating.
But it works with option --local-response-templating.

hi @sergey-karazhenets awesome news and thanks for the effort!
Just to be clear, this means when we use --local-response-templating it means we need to add "transformers": ["response-template"] to the mappings we want to enabled it for, right? I read through the docs a few times over and this is how I interpreted it, but it never says explicitly that transformers is directly linked.
The reason for asking is I'm experiencing the same issue and some other flaky behaviour but wanted to test my muppetry thoroughly before I give more feedback on the issue.
Thanks for the answer in advance!

Note to future readers: --local-response-templating does not mean that you can use the proxyUrlPrefixToRemove in the same mapping as your templated proxy.
here is a pair of working examples, assuming you've ran wiremock with --local-response-templating:
{
  "priority": 2,
  "request": {
    "urlPattern": "/.*",
    "headers": {
      "X-WM-PROXY-TARGET": {
        "matches": ".*"
      }
    }
  },
  "response": {
    "proxyBaseUrl": "https://{{request.headers.X-WM-PROXY-TARGET}}.example.com",
    "transformers": ["response-template"],
    "additionalProxyRequestHeaders": {
      "cf-access-token": "{{systemValue type='ENVIRONMENT' key='CF_OPS_TOKEN'}}"
    }
  }
}

And then you can do a self-redirect like so:
{
  "priority": 1,
  "request": {
    "urlPattern": "/argo-ops/.*",
    "headers": {
      "X-WM-PROXY-TARGET": {
        "absent": true
      }
    }
  },
  "response": {
    "proxyBaseUrl": "http://localhost:8080",
    "proxyUrlPrefixToRemove": "/argo-ops",
    "additionalProxyRequestHeaders": {
      "X-WM-PROXY-TARGET": "argo-ops"
    }
  }
}

I hope this helps! :slightly_smiling_face:

Fixed in 9aad8789d2c470eb9e92df83494a2dcffe90ad06

Fixed in 9aad8789d2c470eb9e92df83494a2dcffe90ad06


Having issues with Quest translations

Sup, just having trouble with translations for quests (they're all showing up as "unknown") quests when I have them selected. I tried deleting the files in AppData\Roaming\Smooth and Flat and AppData\Local\Smooth and Flat and Smoot_and_Flat. Tried toggling between different languages with the same result. Tried re-extracting files from the original download folder, no effect.
Also attached error log if relevant.
error - Copy.txt

Noticed this with the latest update, the only way to properly load quests is to scroll through the all section until they pop up.

Nup, tried that and they're still not turning up (despite selecting the tab which displays quests in progress)

This is really weird and I am unable to reproduce this yet. Does this also happen with Grabacr07's original builds?

I just downloaded and tried it and still not getting anything.
Interestingly enough, on grabacr's 4.2.7 I'm getting errors on the "Plugins"section for the following files:
Counter.dll
EventMapHPViewer.dll
TaskbarProgress.dll
WindowsNotifier.dll
Each with the following error:
System.IO.FileLoadException: Could not load file or assemply '[PLUGIN NAME], Version=x.x.x.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

I will try merging in some code updates later and upload the results for you guys to test.

IM SORRY FOR WASTING YOUR TIME. It was the going through the "all section" which confused me - I thought you just had to go to the quests in progress section.
And so I wasted everybody's time.
I have to offer my my sincerest apologies. I misunderstood and did all this. Please forgive me TTwTT

Yes, the “All” section is where you can get all of them and KCV can parse it correctly.
In other sections the server provides the number of active quests, but only a subset of them, and since KCV blanks out its quest list every time when a new list is received, this happens.


why PPO needs to store action_log_probs instead of using stop_gradient for better efficiency?

Hi,
I am looking at the PPO implementation, and I am curious about this part (actually many other implementations are using this workflow as well, so I am also curious to see if I miss anything)
So the action_log_probs is created, removed gradient (by setting requires_gradient=False), and inserted into the storage buffer, this action_log_probs is generated by the following function and then will be referred as old_action_log_probs_batch in PPO
def act(self, inputs, rnn_hxs, masks, deterministic=False):
        ...
        action_log_probs = dist.log_probs(action)

        return value, action, action_log_probs, rnn_hxs

In PPO algorithm, the ratio is calculated by the following, the action_log_probs is from evaluate_actions()
values, action_log_probs, dist_entropy, _ = self.actor_critic.evaluate_actions(
                    obs_batch, recurrent_hidden_states_batch, masks_batch,
                    actions_batch)
ratio = torch.exp(action_log_probs - old_action_log_probs_batch)

If I am not understanding wrong, evaluate_actions() and act() will output the same action_log_probs because they are using the same actor_critic and calling log_probs(action), the only difference is the old_action_log_probs_batch has the gradient removed, so backpropagation will not go through it.
So my question is, why we bother to save old_action_log_probs_batch in the storage, but instead, something like this can be created on the fly.
values, action_log_probs, dist_entropy, _ = self.actor_critic.evaluate_actions(
                    obs_batch, recurrent_hidden_states_batch, masks_batch,
                    actions_batch)
old_action_log_probs_batch = action_log_probs.detach()
ratio = torch.exp(action_log_probs - old_action_log_probs_batch)

Thank you for your attention. Look forward to the discussion.
Regards,
Tian

In my understanding, the key point is that after sampling trajectories, the agent parameters would be updated several times (it's up to args.ppo_epoch). At the first updating time, the situation is as you said. However, since the second time, the old_action_log_probs in the PPO implementation is calculated based on the original paramenters, while old_action_log_probs in your implementation is calculated based on paramenters that have been updated once.


Support more environments that just staging, production, and independent

Currently, the goal environment for a KubernetesDeploy is limited to "production", which gets converted to ProductionEnvironment, "testing", which gets converted to StagingEnvironment, and anything else gets converted to "IndependencOfEnvironment". This does not really capture many common scenarios. Determine some way to support more environments that does not break the general categorization of goals by environment.
/cc @cdupuis

Yeah, I've seen that too in one of the SDMs I recently worked on: https://github.com/atomisthq/xxx-sdm/blob/master/lib/machine/goals.ts#L57


Cleans up calls to print/dump for the AST Dumper

The Stmt and Expr classes had both dump and print methods that behaved similarly, making it unclear what each method was for. Following a conversation in https://forums.swift.org/t/unifying-printing-logic-in-astdumper/15995/6 the dump methods will be used to print the S-Expression-like ASTs, and the print methods will be used to print the more textual ASTPrinter-based representations. The Stmt and Expr classes seem to be where this distinction was more ambiguous. These changes should fix that ambiguity.
A few other classes also have print methods used to print straightforward representations that are neither the S-Expressions nor ASTPrinters. These were left as they are, as they don't cause the same ambiguity.
It should be noted that the ASTPrinter implementations themselves haven't yet been finished and aren't a part of these changes.

@swift-ci Please smoke test

@swift-ci Please smoke test


WorkZoneRoadEventFeatureBuilder Question

This isn't issue - it's a question.  And I'm new to GitHub and couldn't figure out how to send a question.
I'm creating a WZDx v4 feed for ODOT using your individual builders to create the feed objects.
From the input file I have a geometry string for each feature. I'm trying to add the geometry to the feature in the output file via the featureBuilder.WithGeometry method.  I having trouble figuring out how to convert strings that contain MultPoint or LineString data into the object needed by the call.
In the example on your website you show this:
featureBuilder.WithGeometry(MultiPoint.FromCoordinates(new[] { Position.From(0, 0), Position.From(10, 10) }));
How would I pass in an container of values in either MultPoint or LineString format?
Do you have any examples?
MultiPoint and LineString strings can vary - for instance:
<geometry_coordinates>POINT (-13810127.935382422 5562522.5054757064)</geometry_coordinates>
<geometry_coordinates>POINT (-13485006.004181771 5717295.2580304639), POINT (-13485058.324342443 5717010.4397202637)</geometry_coordinates>
<geometry_coordinates>LINESTRING (-13691006.0614794 5608225.34169829, -13691120.720555 5608770.83458318, -13691185.2858596 5609258.1903829, -13691197.5310036 5610759.72598123)</geometry_coordinates>
Line  98:       <geometry_coordinates>LINESTRING (-13691006.0614794 5608225.34169829, -13691120.720555 5608770.83458318, -13691185.2858596 5609258.1903829, -13691197.5310036 5610759.72598123, -13691185.2860000 5609258.1900000, -13691197.5310000 5610759.72590000)</geometry_coordinates>
It looks like it needs a MultiPoint.FromCoordinates(IEnumerable value) which I guess is an collection of IPosition values.  However, when I try to create an IPosition value it says I can't set it - it is read only.
Sorry but I have very little experience dealing with Interface objects.
Thanks in advance!

Hopefully this helps, yet if you have any other questions or need help I do not mind helping out. Yes, to create a geometry object here the easiest way is use one of the factory methods and instantiate a new instance of the IPosition interface using the Position class.
// constructor
      IPosition position = new Position(longitude, latitude);

// factory method
      IPosition position = Position.From(new [] { longitude, latitude } );

Moreover, there are several ways to make this work. From your example you would need to read and parse the geometry string from your XML elements, and then convert the geometry string to a geometry object (e.g., IGeometry). Just for fun I wrote a small method to convert from your string into an instance of IGeometry.
      private static IGeometry GeometryFrom(string value)
      {
          const string typeGroup = "type";
          const string coordinateGroup = "coordinates";

          var regex = new Regex($"(?<{typeGroup}>\\w*)\\s\\((?<{coordinateGroup}>.*)\\)");
          var match = regex.Matches(value);

          var groups = match[0].Groups;
          var type = groups[typeGroup].ToString().ToUpper();
          var positions = groups[coordinateGroup].ToString()
              .Split(',')
              .Select(pair => (IPosition)Position.From(pair.Trim().Split(" ").Select(double.Parse)))
              .ToList()
              .AsReadOnly();

          switch (type)
          {
              case "POINT":
                  var position = positions.Single();
                  return GeometryFactory.CreatePoint(position.Longitude, position.Latitude);
              case "LINESTRING":
                  return GeometryFactory.CreateLineString(positions);
              case "MULTIPOINT":
                  return GeometryFactory.CreateMultiPoint(positions);
          }

          return GeometryFactory.CreateNull();
      }

As a note, Position.From probably should return an instance of IPosition not Position itself.

Russ,
I’m able to use the GeometryFrom method with LINESTRING coordinates.  However I’m having trouble with the MULTIPOINT strings.
Can you give me example of what format does it expect the MULTIPOINT string to be in?
Would it be something like this: “MULTIPOINT (-13485006.004181771 5717295.2580304639), (-13485058.324342443 5717010.4397202637)”
Thanks,
Paul
From: Russ H @.>
Sent: Friday, September 2, 2022 9:54 PM
To: WSDOT/wzdx.models @.>
Cc: LOZANCICH Paul @.>; Mention @.>
Subject: Re: [WSDOT/wzdx.models] WorkZoneRoadEventFeatureBuilder Question (Issue #8)
This message was sent from outside the organization. Treat attachments, links and requests with caution. Be conscious of the information you share if you respond.

Hopefully this helps, yet if you have any other questions or need help I do not mind helping out. Yes, to create a geometry object here the easiest way is use one of the factory methods and instantiate a new instance of the IPosition interface using the Position class.
// constructor
  IPosition position = new Position(longitude, latitude);

// factory method
  IPosition position = Position.From(new [] { longitude, latitude } );

Moreover, there are several ways to make this work. From your example you would need to read and parse the geometry string from your XML elements, and then convert the geometry string to a geometry object (e.g., IGeometry). Just for fun I wrote a small method to convert from your string into an instance of IGeometry.
  private static IGeometry GeometryFrom(string value)

  {

      const string typeGroup = "type";

      const string coordinateGroup = "coordinates";

      var regex = new Regex($"(?<{typeGroup}>\\w*)\\s\\((?<{coordinateGroup}>.*)\\)<file://w*)/s/((%3f%3c%7bcoordinateGroup%7d%3e.*)/)>");

      var match = regex.Matches(value);

      var groups = match[0].Groups;

      var type = groups[typeGroup].ToString().ToUpper();

      var positions = groups[coordinateGroup].ToString()

          .Split(',')

          .Select(pair => (IPosition)Position.From(pair.Trim().Split(" ").Select(double.Parse)))

          .ToList()

          .AsReadOnly();

      switch (type)

      {

          case "POINT":

              var position = positions.Single();

              return GeometryFactory.CreatePoint(position.Longitude, position.Latitude);

          case "LINESTRING":

              return GeometryFactory.CreateLineString(positions);

          case "MULTIPOINT":

              return GeometryFactory.CreateMultiPoint(positions);

      }

      return GeometryFactory.CreateNull();

  }

As a note, Position.From probably should return an instance of IPosition not Position itself.
—
Reply to this email directly, view it on GitHubhttps://github.com/WSDOT/wzdx.models/issues/8#issuecomment-1236048795, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A24B32GO2ASFKEJP7BKOCKDV4LKWJANCNFSM6AAAAAAQDSXTHA.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Russ,
Never mind.  I think I figured it out.  This seems to work:
MULTIPOINT (-13485006.004181771 5717295.2580304639, -13485058.324342443 5717010.4397202637)
Thanks,
Paul
From: Russ H @.>
Sent: Friday, September 2, 2022 9:54 PM
To: WSDOT/wzdx.models @.>
Cc: LOZANCICH Paul @.>; Mention @.>
Subject: Re: [WSDOT/wzdx.models] WorkZoneRoadEventFeatureBuilder Question (Issue #8)
This message was sent from outside the organization. Treat attachments, links and requests with caution. Be conscious of the information you share if you respond.

Hopefully this helps, yet if you have any other questions or need help I do not mind helping out. Yes, to create a geometry object here the easiest way is use one of the factory methods and instantiate a new instance of the IPosition interface using the Position class.
// constructor
  IPosition position = new Position(longitude, latitude);

// factory method
  IPosition position = Position.From(new [] { longitude, latitude } );

Moreover, there are several ways to make this work. From your example you would need to read and parse the geometry string from your XML elements, and then convert the geometry string to a geometry object (e.g., IGeometry). Just for fun I wrote a small method to convert from your string into an instance of IGeometry.
  private static IGeometry GeometryFrom(string value)

  {

      const string typeGroup = "type";

      const string coordinateGroup = "coordinates";

      var regex = new Regex($"(?<{typeGroup}>\\w*)\\s\\((?<{coordinateGroup}>.*)\\)<file://w*)/s/((%3f%3c%7bcoordinateGroup%7d%3e.*)/)>");

      var match = regex.Matches(value);

      var groups = match[0].Groups;

      var type = groups[typeGroup].ToString().ToUpper();

      var positions = groups[coordinateGroup].ToString()

          .Split(',')

          .Select(pair => (IPosition)Position.From(pair.Trim().Split(" ").Select(double.Parse)))

          .ToList()

          .AsReadOnly();

      switch (type)

      {

          case "POINT":

              var position = positions.Single();

              return GeometryFactory.CreatePoint(position.Longitude, position.Latitude);

          case "LINESTRING":

              return GeometryFactory.CreateLineString(positions);

          case "MULTIPOINT":

              return GeometryFactory.CreateMultiPoint(positions);

      }

      return GeometryFactory.CreateNull();

  }

As a note, Position.From probably should return an instance of IPosition not Position itself.
—
Reply to this email directly, view it on GitHubhttps://github.com/WSDOT/wzdx.models/issues/8#issuecomment-1236048795, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A24B32GO2ASFKEJP7BKOCKDV4LKWJANCNFSM6AAAAAAQDSXTHA.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Russ,
I’m trying to use the WithLane method on a featurebuilder.  The last parameter is asking for function.   I’m confused on what I should pass it.
Do you have an example?
@.***
Thanks,
Paul
From: Russ H @.>
Sent: Friday, September 2, 2022 9:54 PM
To: WSDOT/wzdx.models @.>
Cc: LOZANCICH Paul @.>; Mention @.>
Subject: Re: [WSDOT/wzdx.models] WorkZoneRoadEventFeatureBuilder Question (Issue #8)
This message was sent from outside the organization. Treat attachments, links and requests with caution. Be conscious of the information you share if you respond.

Hopefully this helps, yet if you have any other questions or need help I do not mind helping out. Yes, to create a geometry object here the easiest way is use one of the factory methods and instantiate a new instance of the IPosition interface using the Position class.
// constructor
  IPosition position = new Position(longitude, latitude);

// factory method
  IPosition position = Position.From(new [] { longitude, latitude } );

Moreover, there are several ways to make this work. From your example you would need to read and parse the geometry string from your XML elements, and then convert the geometry string to a geometry object (e.g., IGeometry). Just for fun I wrote a small method to convert from your string into an instance of IGeometry.
  private static IGeometry GeometryFrom(string value)

  {

      const string typeGroup = "type";

      const string coordinateGroup = "coordinates";

      var regex = new Regex($"(?<{typeGroup}>\\w*)\\s\\((?<{coordinateGroup}>.*)\\)<file://w*)/s/((%3f%3c%7bcoordinateGroup%7d%3e.*)/)>");

      var match = regex.Matches(value);

      var groups = match[0].Groups;

      var type = groups[typeGroup].ToString().ToUpper();

      var positions = groups[coordinateGroup].ToString()

          .Split(',')

          .Select(pair => (IPosition)Position.From(pair.Trim().Split(" ").Select(double.Parse)))

          .ToList()

          .AsReadOnly();

      switch (type)

      {

          case "POINT":

              var position = positions.Single();

              return GeometryFactory.CreatePoint(position.Longitude, position.Latitude);

          case "LINESTRING":

              return GeometryFactory.CreateLineString(positions);

          case "MULTIPOINT":

              return GeometryFactory.CreateMultiPoint(positions);

      }

      return GeometryFactory.CreateNull();

  }

As a note, Position.From probably should return an instance of IPosition not Position itself.
—
Reply to this email directly, view it on GitHubhttps://github.com/WSDOT/wzdx.models/issues/8#issuecomment-1236048795, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A24B32GO2ASFKEJP7BKOCKDV4LKWJANCNFSM6AAAAAAQDSXTHA.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

@PabloCruise2022, the last parameter in the WithLane method is a configuration delegate that allows for using the sub-builder. The builders are designed to set the defaults, ensuring that the resulting object is schema compliant. There are additional options for some, if not most, that are accessible through the configuration delegate.
The simplest usage
builder => builder.WithLane(LaneType.BikeLane, LaneStatus.Closed, 0, laneBuilder => laneBuilder),

In the lane builder allows for building restrictions for the lane.
builder => builder.WithLane(LaneType.BikeLane, LaneStatus.Closed, 0,
                    laneBuilder => laneBuilder.WithNoRestrictions())

builder => builder.WithLane(LaneType.BikeLane, LaneStatus.Closed, 0,
                    laneBuilder => laneBuilder.WithRestriction(RestrictionType.AxleLoadLimit, UnitOfMeasurement.Centimeters, restrictionBuilder => restrictionBuilder)),

Seems the issue has been resolved.


add klaytn mainnet

Fixes # .
Changes proposed in this pull request:

added klaytn mainnet configuration to network.json

@toniya-klaytn Can you try to resolve conflicts plz


Updated goscaleio package for call close bug

This commit fixes the call close logic to ensure it is only called
when there is a valid response.

[Current coverage][cc-pull] is 32.42%

Merging [#213][cc-pull] into [master][cc-base-branch] will decrease coverage by 3.50%

@@             master       #213   diff @@
==========================================
  Files            36         36
  Lines          1909       1909
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits            686        619    -67
  Misses         1223       1223
- Partials          0         67    +67

Powered by Codecov. Last updated by [182a626...ba7b066][cc-compare]
[cc-base-branch]: https://codecov.io/gh/emccode/libstorage/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/emccode/libstorage/compare/182a626937677a081b89651598ee2eac839308e7...ba7b0661c1447ff1ddfbeed63a514f71f74c1b23
[cc-pull]: https://codecov.io/gh/emccode/libstorage/pull/213?src=pr

Hi @clintonskitson,
Please fix this PR's commit and resend it. The issue is the glide.yaml file is updated but the project's glide.lock file is not. Simply run make on the project in order to solve the issue. Once the glide.lock file is updated I will merge this PR.
FWIW, the issue is that when glide sees a glide.lock file the glide.yaml file is ignored. This is is a good thing as the glide.lock file is all the dependencies on which the project relies. Running glide up creates/updates glide.lock based on glide.yaml. However, glide install ignores glide.yaml entirely and only uses glide.lock if the latter is present. This ensures that the project is not rebuilt later using a new set of dependencies if glide.yaml and glide up causes glide.lock to be updated unintentionally.

Ok is this documented as an expectation for the future?
On Friday, July 1, 2016, Schley Andrew Kutz<EMAIL_ADDRESS>wrote:

Hi @clintonskitson https://github.com/clintonskitson,
Please fix this PR's commit and resend it. The issue is the glide.yaml
file is updated but the project's glide.lock file is not. Simply run make
on the project in order to solve the issue. Once the glide.lock file is
updated I will merge this PR.
FWIW, the issue is that when glide sees a glide.lock file the glide.yaml
file is ignored. This is is a good thing as the glide.lock file is all
the dependencies on which the project relies. Running glide up
creates/updates glide.lock based on glide.yaml. However, glide install
ignores glide.yaml entirely and only uses glide.lock if the latter is
present. This ensures that the project is not rebuilt later using a new set
of dependencies if glide.yaml and glide up causes glide.lock to be
updated unintentionally.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/emccode/libstorage/pull/213#issuecomment-230025361,
or mute the thread
https://github.com/notifications/unsubscribe/ABVMMXpYuPk_8c7B-nOREowltpc9j0rRks5qRWVhgaJpZM4JCw6Q
.

Software should always be built and tested prior to submitting a patch that could affect the build process or cause a runtime failure. As any dependency change can do that, and since the build process will cause the glide.lock file to be updated, then adhering to standard best practices would ensure the proper files are updated.

FWIW, I should add that the software should be built and tested prior to submitting a PR when it's possible and not cumbersome to do so, as is the case here. I will add a note in the documentation that the project expects people submitting PRs to do so. However, I also expect that most people already follow this rule based on my 15+ years of experience in the industry.

Where I may have skirted the rules is that when editing the sub-packages, the easiest approach is to edit the package from within the vendor directory to get immediate results. This then involves not using Glide to ensure it works. But a clean use of glide to build the project before checkin would be a good best practice.

This probably leans towards more explicit instructions or best practices for developing things like drivers.
For example (wrong or right just an example), driver development should be done under $GOPATH/src/github.com/emccode/rexray and the subpackages that exist under the vendor directory $GOPATH/src/github.com/emccode/rexray/vendor/github.com/emccode/libstorage and related API binding package $GOPATH/src/github.com/emccode/rexray/vendor/github.com/emccode/goscaleio.
Following the successful implementation of the driver, dependent packages should be committed and pushed to upstream repos and the glide file should be updated to accommodate. The vendor directory should then be cleared and a clean glide up should be performed.
OR
Another successful approach I've had is to remove the package from the vendor/ folder and just build based on packages existing from $GOPATH/src and then pointing glide to the local filesystem path of the package.
Anyways, the conversation just highlights that developing a driver with sub-dependencies and what the best way to do so would be helpful that aligns against the build process etc.

But a clean use of glide to build the project before checkin would be a good best practice.

I do not expect this. I expect only someone build and test the project, not an end-to-end clean build. The provided suggestions regarding build processes will be taken into account, thank you. However, for now I must recommend against ever building or modifying code inside the vendor directory. That is a bad idea and leads to too many issues. Experienced engineers may sometimes do this in a pinch, but even they will often wish they had not due to the problems it can cause.

Hi @clintonskitson,
Your latest commit has a problem. I know we've discussed this before, but I'm not sure where off the top of my head. I also know the problem is more likely to occur when code is modified inside the vendor directory, so please refrain from doing so.
The glide.lock file should not ever refer to the project for which the file exists. Notice in the newly updated file there is a new entry for libstorage. This is because libstorage is cloned inside of the vendor directory due to some references not being properly updated and Glide making up the difference by vendoring libStorage. Please correct this and resubmit to the PR. Thanks!


Extreme Other cases

The FuzzedDataMutator will provide a very long tail of random values and an "Other" value of 0:

@creade can you say more about this? Is the FuzzedDataMutator used anywhere in production? Is this about providing realistic test data?

So we have the test_client target that can be run against a running app on localhost for testing. Normally test_client will make a whole bunch of randomized test incidents similar to production data (i.e. using know field values.) There are a series of mutators that can be run on the data before it is posted to the app though. We built these mainly to see how the ui would function under data values not present in the prod data we had access to, especially extreme cases. FuzzedDataMutator is one of those and can be turned on by uncommenting https://github.com/codeforamerica/comport/blob/master/manage.py#L220 and adding fuzzed_data_mutator to the array here: https://github.com/codeforamerica/comport/blob/master/manage.py#L227
then running python manage.py test_client
The test data generated will not be realistic but it will push some assumptions made by the UI. This particular issue is about how the "Other" bucket is calculated when every value represents less than the threshold set here: https://github.com/codeforamerica/comport/blob/b13278f9000924ab02e99d7ee0873b7b22e1e16a/comport/static/js/charts.js#L242
Which in the end is really just saying that if the Other bucket is empty we shouldn't show it:


Misc: code cleanup and doc updates

Hey guys, was just going through and cleaning up and tweaking a few things.
I implemented xo as discussed in the #gatsby channel.
What are your thoughts?
Also, I need someone to go into a bit more detail about:

Does not support automatic __meta count association

You can commit to this branch directly.
Any and all feedback is appreciated! 👐

you happy with .babelrc?

Example runs no sweat with new build, up at https://github.com/rdela/gatsby-graphcms-testing/tree/master/plugins/gatsby-source-graphcms + https://github.com/hmeissner/gatsby-graphcms-testing/pull/2 for your testing pleasure!
:shipit:

Without the .babelrc we can't use stuff like spread operator or new feature imports or whatever... To the best of my knowledge, at least.
Though I will say, I don't think we need babel-plugin-transform-runtime. Don't see it being used anywhere.


Add CSV Export support for Facility Specific Discharge Page

Is your feature request related to a problem? Please describe.
There is currently no option to export the discharge patient list from the facility-specific discharge patient list page. This limits the ability to extract and analyze this information outside the platform easily.
Describe the solution you'd like

[ ] Add export functionality to the facility-specific discharge patient list page.
[ ] Ensure the export option is enabled only after a 7-day period is selected in the date-based advanced filter.

Note: The export behavior should be similar to the patient list export feature. When the user clicks on the export button, prompt them to select a 7-day period before proceeding.

@nihal467 i would like to work on this issue . assign it to me.

I would like work on this, if that's okay.

Im currently working on these. these issue to be attached with backend so it is taking time


Thread Panic from grenad - must be greater than

Describe the bug
During ingest, and trying to re-create the panic from #3042, I also saw this:
thread '<unnamed>' panicked at '[3, 115, 49, 55, 48, 49, 0, 50] must be greater than [3, 115, 49, 55, 48, 49, 0, 51]', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/grenad-0.4.3/src/block_writer.rs:109:17

thread '<unnamed>' panicked at '[3, 115, 49, 55, 48, 49, 0, 50] must be greater than [3, 115, 49, 55, 48, 49, 0, 53]', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/grenad-0.4.3/src/block_writer.rs:109:17

To Reproduce
Have not found minimal, reproducible example.
Believe it is related to changing the ETL to run in multiple workers who may re-write the same indices/ID's.
I have moved ETL scripts into Airflow and parallelized them, so I am GUESSING there are instances where inserts from different workers are over-writing the same ID in close succession.
Expected behavior
Handle parallel ETL inserts dealing with the same ID without crash
Screenshots
Meilisearch version: v0.30.0rc1
Additional context
This may be related to #3042 -- It was seen during the same ETL trials.

TODO

[x] Implement changes in Milli
[ ] Release a Milli version containing these changes
[ ] Bump this new Milli version in Meilisearch and merge it into release-v0.30.0

Re opening, not fixed until we merged the new milli's version into release-v0.30.0

Closed by https://github.com/meilisearch/meilisearch/pull/3084


Fix update of ttl for database

database ttl is not updated for metric that are always a cache hit.
Force a cache miss when ttl expired in cache to force a re-update on database.
Want to check if it will trigger a thunderclap on database

This change is

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

biggraphite/metadata_cache.py, line 363 at r1 (raw file):

        A timestamp expires when it is older than half the TTL from now
        """
        return int(time.time()) > timestamp + int(self.__ttl / 2)

remove the /2

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

biggraphite/metadata_cache.py, line 363 at r1 (raw file):
Previously, iksaif (Corentin Chary) wrote…
remove the /2

Done.

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.

biggraphite/metadata_cache.py, line 398 at r2 (raw file):

        # Force a cache miss if the timestamp expired
        # It will force to refetch from the database and update its ttl by doing so

After thinking a little bit more this isn't optimal: _cache_has() would return True but then a miss would be returned. That means that the asynchronous creation of metric would not happen. I think it would be better to remove the value, but still return it (this way the next call will return a miss, but we would still have a coherent set of cache_has()/cache_get() calls).

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions.

biggraphite/metadata_cache.py, line 398 at r2 (raw file):
Previously, iksaif (Corentin Chary) wrote…
After thinking a little bit more this isn't optimal: _cache_has() would return True but then a miss would be returned. That means that the asynchronous creation of metric would not happen. I think it would be better to remove the value, but still return it (this way the next call will return a miss, but we would still have a coherent set of cache_has()/cache_get() calls).

Can you be a bit more specific regarding "the creation of asynchronous metric"
For me it will be like:
cache.get_metric()
  cache._get_metric()
    cache_miss // False one
       db.get_metric()
          metric exists and tll expired
            db.touch_metric()
        cache.set_cache()

if you delete the object in the cache, in the next run you will still do a cache.get_metric, which will result in a True cache miss but as the value still exist in the db you will still try to get it and update its tll synchronously.
so  it will be like:
cache.get_metric()
  cache._get_metric()
    cache_hit but ttl expired
    cache. delete()
    return metric

//in the next run
cache.get_metric()
  cache._get_metric()
    cache_miss // True one
       db.get_metric()
          metric exists and tll expired
            db.touch_metric()
        cache.set_cache()
        return metric

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions.

biggraphite/metadata_cache.py, line 398 at r2 (raw file):
Previously, erebe (Erèbe - Romain Gerard) wrote…
Can you be a bit more specific regarding "the creation of asynchronous metric"
For me it will be like:
cache.get_metric()
  cache._get_metric()
    cache_miss // False one
       db.get_metric()
          metric exists and tll expired
            db.touch_metric()
        cache.set_cache()

if you delete the object in the cache, in the next run you will still do a cache.get_metric, which will result in a True cache miss but as the value still exist in the db you will still try to get it and update its tll synchronously.
so  it will be like:
cache.get_metric()
  cache._get_metric()
    cache_hit but ttl expired
    cache. delete()
    return metric

//in the next run
cache.get_metric()
  cache._get_metric()
    cache_miss // True one
       db.get_metric()
          metric exists and tll expired
            db.touch_metric()
        cache.set_cache()
        return metric

In plugins/carbon.py, the following thing happen:
if not cache.cache_has(metric_name):
  create_metric_async()
else
   metric = cache.cache_get(metric_name)
   write(metric, points)

It's important that cache_get() is always fast (no extra cassandra round-trip) because else it will slow down every metric.
If you remove the value in cache_get() but return a hit, the next iteration will call create_metric_async() and this won't slow down writes.
If not clear we can have a hangout :)

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions.

biggraphite/metadata_cache.py, line 398 at r2 (raw file):
Previously, iksaif (Corentin Chary) wrote…
In plugins/carbon.py, the following thing happen:
if not cache.cache_has(metric_name):
  create_metric_async()
else
   metric = cache.cache_get(metric_name)
   write(metric, points)

It's important that cache_get() is always fast (no extra cassandra round-trip) because else it will slow down every metric.
If you remove the value in cache_get() but return a hit, the next iteration will call create_metric_async() and this won't slow down writes.
If not clear we can have a hangout :)

you have the same logic in has_metric in metadata_cache.py
So you will never reach the create_metric_async
def has_metric(self, metric_name):
113         """Check if a metric exists.
114
115         The result is cached and can be stale. Call get_metric()
116         if you want to go to the database on a miss.
117         """
118         found = self._cache_has(metric_name)
119         if not found:
120             with self._accessor_lock:
121                 found = self._accessor.has_metric(metric_name)
122             if found:
123                 # The metric was found in the database but not cached, let's
124                 # cache it now.
125                 metric = self.get_metric(metric_name)
126                 self._cache_set(metric_name, metric)
127         return found

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions.

biggraphite/metadata_cache.py, line 398 at r2 (raw file):
Previously, erebe (Erèbe - Romain Gerard) wrote…
you have the same logic in has_metric in metadata_cache.py
So you will never reach the create_metric_async
def has_metric(self, metric_name):
113         """Check if a metric exists.
114
115         The result is cached and can be stale. Call get_metric()
116         if you want to go to the database on a miss.
117         """
118         found = self._cache_has(metric_name)
119         if not found:
120             with self._accessor_lock:
121                 found = self._accessor.has_metric(metric_name)
122             if found:
123                 # The metric was found in the database but not cached, let's
124                 # cache it now.
125                 metric = self.get_metric(metric_name)
126                 self._cache_set(metric_name, metric)
127         return found

my bad cache_has is different than has_metric ...

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

Comments from Reviewable


Export benchmarkable (Datum, Redeemer, ScriptContext) samples for benchmarking.

In order to benchmark script execution (as well as size), we should have modules in agora-sample export compiled Script samples that can be tested. These should already have all of their parameters applied (including ScriptContext).

For bench-marking purposes, would re-purposing unit tests be a feasible option?
This means we need to bring up some common interface for both testing and benchmark: simple data type that holds Validator, Datum, Redeemer, and ScriptContext would work. I don't think this will be overly complex to implement. This way we don't need to rewrite the spec part of bench-marking.

Hmmm, it may make sense to come up with some sort of interface like that, yeah. But, I should note that it's not a high priority to ensure that they are exactly the same. A list of Scripts would already get us quite far.


Added Pagination Project

Related Issue

Adding a new JavaScript Project called "Pagination".

Closes: #709
Describe the changes you've made
I have added the to-the-point and concise solution of the given issue.
Added the HTML, CSS and JS files. Also added the Project Picture for the Pagination project.
Describe if there is any unusual behaviour of your code (Write NA if there isn't)
NA
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[x] New and existing unit tests pass locally with my changes.

Screenshots

Thank You 🥳


very big number of ports opened

i'm check ocis on my own server and saw that it opens many ports
i'm own projects that looks like you (many microservices combined in single binary) and worked at go-micro.
If you create apigw service that support http rest+grpc you easy can export all services behind this gateway that also easy check token/cert validation.
if you need example - it looks like this https://github.com/unistack-org/micro-tests/blob/master/server/combo/combo_test.go#L194
this is POC for now, but works fine. and can be easy translated to fully functional api gateway that checks in registry services and it endpoints and transfer raw frame to service with needed content-type.

Hm..

@vtolstov we only open one port on our http gateway (9200). The rest is internal.
But i may not understand exactly what you mean.
ocis uses reva (github.com/cs3org/reva). Inside reva is an grpc API gateway. See https://owncloud.dev/ocis/#architecture-overview.
That reva architecture limits us a bit. But we try to step by step use the go micro registry and no static host:port configuration.
What exactly are you proposing


Unexpected end of input (during test run / bundle splitting)

The test suite fails with with Unexpected end of input.
ok 28 should be equivalent
# file outputs

/factor-bundle/node_modules/tape/index.js:75
        throw err
              ^
SyntaxError: Unexpected end of input
    at WriteStream.<anonymous> (/factor-bundle/test/outputs.js:35:12)

This error can be reproduced by trying to actually use the plug-in to factor out bundles using the latest factor-bundle against browserify 8.0 and 5.11.x.

I'm having the same issue on a real world project, even with factor-bundle as far back as 2.2.4.


C# API Client: StringBatchOperations doesn't work

Is this a regression?
No. StringBatchOperations wasn't available in 2.12
In which version?
2.14
Description
We're currently working on the C# Crowdin API’s StringBatchOperations and we faced the following issue:
{ "ClassName": "System.NullReferenceException", "Message": "Object reference not set to an instance of an object.",  "StackTraceString": "   at Crowdin.Api.Core.JsonParser.ParseResponseObject[TData](JToken token)\r\n   at Crowdin.Api.Core.JsonParser.ParseResponseList[TData](JObject rootElement)\r\n   at Crowdin.Api.SourceStrings.SourceStringsApiExecutor.StringBatchOperations(Int32 projectId, IEnumerable1 patches)\r\n", }
When debugging in the SourceStringsApiExecutor.cs, we found that the http response from CrowdinAPI has the status 200 OK and is returning the following jsonObject:
{ "data": [ 		  { 			""data"": { 			  ""id"": 468549, 			  ""projectId"": 11, 			  ""fileId"": 1533, 			  ""branchId"": null, 			  ""directoryId"": 1535, 			  ""identifier"": ""bulk_edit_6"", 			  ""text"": ""Batch operations with send patch request"", 			  ""type"": ""text"", 			  ""context"": ""edited context using patch request"", 			  ""maxLength"": 0, 			  ""isHidden"": false, 			  ""isDuplicate"": false, 			  ""masterStringId"": null, 			  ""revision"": 58, 			  ""hasPlurals"": false, 			  ""isIcu"": false, 			  ""labelIds"": [], 			  ""createdAt"": ""2023-06-05T12:00:32+02:00"", 			  ""updatedAt"": ""2023-06-05T18:38:26+02:00"" 			} 		  } 	] }
As you can see, the response is missing the pagination object (like mentioned in CrowdinAPI) which is probably why the line return _jsonParser.ParseResponseList<SourceString>(crowdinApiResult.JsonObject); in SourceStringsApiExecutor.cs fails to parse it and triggers the NullReferenceException.
Please provide a link to a minimal reproduction of the bug
A simple call of StringBatchOperations.
Please provide the exception or error you saw
{   "ClassName": "System.NullReferenceException",   "Message": "Object reference not set to an instance of an object.",   "Data": null,   "InnerException": null,   "HelpURL": null,   "StackTraceString": "   at Crowdin.Api.Core.JsonParser.ParseResponseObject[TData](JToken token)\r\n   at Crowdin.Api.Core.JsonParser.ParseResponseList[TData](JObject rootElement)\r\n   at Crowdin.Api.SourceStrings.SourceStringsApiExecutor.StringBatchOperations(Int32 projectId, IEnumerable1 patches)\r\n",   "RemoteStackTraceString": null,   "RemoteStackIndex": 0,   "ExceptionMethod": null,   "HResult": -2147467261,   "Source": "Crowdin.Api",   "WatsonBuckets": null }

Hello @seialj. Thanks for this issue, we're currently working on it. Stay tuned!

@andrii-bodnar is it ok that the remote side returned ResponseList object without Pagination properties? If yes - we can make them optional

@innomaxx yes, it can be optional


issue

{
"name": "StorageError",
"message": "Forbidden",
"stack": "StorageError: Forbidden\n    at Function.StorageServiceClient._normalizeError (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\azure-storage\lib\common\services\storageserviceclient.js:1205:23)\n    at Object.StorageServiceClient._processResponse (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\azure-storage\lib\common\services\storageserviceclient.js:751:50)\n    at Request.processResponseCallback [as _callback] (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\azure-storage\lib\common\services\storageserviceclient.js:319:37)\n    at Request.self.callback (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\request\request.js:185:22)\n    at emitTwo (events.js:126:13)\n    at Request.emit (events.js:214:7)\n    at Request. (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\request\request.js:1157:10)\n    at emitOne (events.js:116:13)\n    at Request.emit (events.js:211:7)\n    at IncomingMessage. (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\request\request.js:1079:12)",
"code": "Forbidden",
"statusCode": 403,
"requestId": "8f6048f9-201e-00d4-5b5e-63f321000000"
}

trying to uplload pst to 0365 from azure storage explorer and getting that error.

never mind this was in error. i know what this was about.


Cannot add 'pdf-no-compression' option

Hello.  I'm trying to create non-compressed PDFs with this wrapper.  It's currently set up and working without any issues, until I try to add the 'no-pdf-compression' option.
$pdf = new Pdf($html);
$pdf->setOptions([     'binary' => '/usr/local/bin/wkhtmltopdf.sh',     'no-pdf-compression'     ]);
When I dump the $pdf object after I get
Could not run command /usr/local/bin/wkhtmltopdf.sh --pdf-no-compression '/tmp/tmp_wkhtmlto_pdf_vtHd6S.html' '/tmp/tmp_wkhtmlto_pdf_Ipjn44.pdf'
The protected property _options shows 'pdf-no-compression'.
Is --no-pdf-compression not supported in this wrapper?  Thank you.

Assuming wkhtmltopdf --extended-help shows all available options, it looks like pdf-no-compression is not supported in this wrapper.  :(

The wrapper supports whatever your wkhtmltopdf command provides. We don't restrict this at all. If you miss an option you should update your version of wkhtmltopdf on your machine. But this has nothing to do with this wrapper class.

Thank you, I understand now.


Terminal state isn't cleared on slide change with some effects

explosions and stars do this, but matrix works fine.

Hello!
Issue is also actual for clearing after codio. For instance second slide from following markdown
---

![codio](codio.yml)

---

```
{
    "some_key": "some_value",
    "another_key": "another_value"
}
```

contains both codio and code blocks:

@perminovs I'm also able to reproduce this. I'll look into a fix soon.

+1 ran into this as well :)


Migrate from Query::single and friends to Single

Objective

closes #15866

Solution

Simply migrate where possible.

Testing

Expect that CI will do most of the work. Examples is another way of testing this, as most of the work is in that area.

Notes
For now, this PR doesn't migrate QueryState::single and friends as for now, this look like another issue. So for example, QueryBuilders that used single or World::query that used single wasn't migrated. If there is a easy way to migrate those, please let me know.
Most of the uses of Query::single were removed, the only other uses that I found was related to tests of said methods, so will probably be removed when we remove Query::single.

I've had to open this up in Codespaces to review it, as Github's webpage hates PRs with many files changed 🙃 That said, looks great! I particularly appreciate the use of Option<Single> in tests to ensure that we're still panicking if things aren't found.

Guessing this is going to have conflicts after #15857. Can look after those get fixed up.

@BenjaminBrienen All comments addressed.


Introduce an internal option to enable vertical compaction

In Cortex, we're currently working on an experimental TSDB-storage layer based on Thanos 🎉❤. The next step would be introducing the Thanos compactor in Cortex too, but to do that we would need a way to allow vertical compaction (due to how the replication works, in Cortex we have overlapping blocks).
According to our experiments, enabling vertical compaction is just a matter of disabling the checks done by Thanos to make sure blocks don't overlap. In this PR I'm suggesting to introduce an internal option (not exposed to Thanos users) to allow Cortex enabling it.

[ ] I added CHANGELOG entry for this change.
[x] Change is not relevant to the end user.

Changes

Introduce an internal option to enable vertical compaction

Verification
Manual tests.

This is just as useful for people running the Thanos receive component with replication factor >1. I think it would be useful to have this regardless. The larger question I would have is how is this different from #1276 (I realize #1276 is more, but it is capable of the same, no?)?

The larger question I would have is how is this different from #1276 (I realize #1276 is more, but it is capable of the same, no?)?

Thanks @brancz for your quick feedback. My take on #1276 :

Looks exciting, but I suspect may take some time to get it production-grade
On Cortex side we don't really need offline deduplication (we have series replicated with the same exact timestamp-value pairs), so I think we would feel more comfortable stay on TSDB vertical compaction

What's your take?

I think that's generally fair. If we go ahead with something here though I think it at least needs to work with duplicate blocks due to thanos receive replication, which would just mean that a labelset (usually a single label, but can in theory be mutliple for example when replicating to multiple regions) is removed from the candidate blocks.

I think it at least needs to work with duplicate blocks due to thanos receive replication, which would just mean that a labelset

@brancz I see your point. What do you think if we keep the two things separated, and I work on it in a separate PR? I would like to gather some specs first, while we may move on with this PR to unlock the compactor on the Cortex side.

do you mind adding log/metric for when is the actual vertical compaction is triggered/enabled?

@bwplotka Makes sense. Now an example of compaction-related metrics is:
prometheus_tsdb_compactions_total 30
prometheus_tsdb_vertical_compactions_total 18

thanos_compact_group_compactions_total{group="0@11146230207840493432"} 1
thanos_compact_group_compactions_total{group="0@5679675083797525161"} 29
thanos_compact_group_vertical_compactions_total{group="0@11146230207840493432"} 1
thanos_compact_group_vertical_compactions_total{group="0@5679675083797525161"} 17

About the log there's already a log by TSDB compactor (see below), so I've just added an extra key-value pair to the "compacted blocks" debug log, but I'm open to suggestions.
level=warn ts=2019-12-23T13:04:49.673716Z caller=compact.go:678 msg="found overlapping blocks during compaction" ulid=[REDACTED]

What's your take?

The failing tests looks unrelated. Please advise in case I've misread it.

Rerunning workflow for you.
Thanks for metrics, this should do. Mentioned entry is fine as well. (:


Resource Attribute extended

This pull request adds the support for two additional properties in Spatie\RouteAttributes\Attributes\Resource attribute class:

array|string|null $parameters
bool|null $shallow

Additionally, ApiResource attribute class was added just to make the Attribute declarations shorter when using named arguments.
// Before
#[Resource('posts', shallow: true, apiResource: true)]

// After
#[ApiResource('posts', shallow: true)]

Tests for all additions are included.

Thanks, could you also update the readme?

Updated the README, hope it looks good! :)

Thank you very much!


S3 PutObject default "Cache-Control" value is set to "no-cache"

Describe the bug
When I upload files to Amazon S3 with sdk, their "Cache-Control" in metadata section is always set to "no-cache" even if I didn't set it.
I also uploaded files with Amazon CLI and their metadata don't have any "Cache-Control" keys.
I also tested sample program in aws-doc-sdk-examples repository and the same problem occurs.
Expected Behavior
Don't set anything if cache control is not set.
Current Behavior

S3::Model::PutObjectRequest::SetCacheControl() is not used

"Cache-Control" is set to "no-cache"

S3::Model::PutObjectRequest::SetCacheControl() is used (for example, SetCacheControl("max-age=1000");)

"Cache-Control" is overwritten by the value you set.

Reproduction Steps
Just upload files using S3::S3Client::PutObject() method without using S3::Model::PutObjectRequest::SetCacheControl().
You can reproduce it with sample source.
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.127
Compiler and Version used
Visual Studio 2015 Community / Build Engine version 14.0.25420.1
Operating System and version
Windows 10 Pro 22H2

Hello @ShimYama ,
Thank you very much for your submission.
I am not sure I have understood your submission properly.
If you mean that there is no Control Cache header when not using S3::Model::PutObjectRequest::SetCacheControl(), then this is expected behavior. As you can see from the S3 documentation for PutObject, the Cache Control header is not required (see.

Behavior for the AWS CPP SDK

There is no cache-control header by default for PutObjectRequest : m_cacheControlHasBeenSet(false). Using S3::Model::PutObjectRequest::SetCacheControl() you can set the cache-control value (as observed).
If you take a look at the PutObjectRequest implementation:
 if(m_cacheControlHasBeenSet)
  {
    ss << m_cacheControl;
    headers.emplace("cache-control",  ss.str());
    ss.str("");
  }

Behavior for the AWS CLI

I am not sure with version of AWS CLI you are using however the behavior is as follow:

When you use the AWS CLI version 1 version of commands in the aws s3 namespace to copy a file from one Amazon S3 bucket location to another Amazon S3 bucket location, and that operation uses multipart copy, no file properties from the source object are copied to the destination object.

By default, the AWS CLI version 2 commands in the s3 namespace that perform multipart copies transfers all tags and the following set of properties from the source to the destination copy: content-type, content-language, content-encoding, content-disposition, cache-control, expires, and metadata.

This can result in additional AWS API calls to the Amazon S3 endpoint that would not have been made if you used AWS CLI version 1. These can include: HeadObject, GetObjectTagging, and PutObjectTagging.

If you need to change this default behavior in AWS CLI version 2 commands, use the --copy-props parameter to specify one of the following options:

default – The default value. Specifies that the copy includes all tags attached to the source object and the properties encompassed by the --metadata-directive parameter used for non-multipart copies: content-type, content-language, content-encoding, content-disposition, cache-control, expires, and metadata.

See AWS CLI V2 documentation.

Behavior for the AWS Console

To add a Cache-Control or Expires header field to Amazon S3 objects using the Amazon S3 console:

Sign in to the AWS Management Console and open the Amazon S3 console at : https://console.aws.amazon.com/s3/ .
In the list of buckets, choose the name of the bucket that contains the files that you are adding headers to.
Select the check box next to the name of the file or folder that you are adding headers to. When you add headers to a folder, it affects all the files inside that folder.
Choose Actions, then choose Edit metadata.
In the Add metadata panel, do the following:

Choose Add metadata.
For Type, choose System defined.
For Key, choose the name of the header that you are adding (Cache-Control or Expires).
For Value, enter a header value. For example, for a Cache-Control header, you could enter max-age=86400. For Expires, you could enter an expiration date and time such as Wed, 30 Jun 2021 09:28:00 GMT.

At the bottom of the page, choose Edit metadata.

See documentation.
For reference, you can read more about the cache control header here : https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
Now if you mean that there is a control-cache header present with value set as "no-cache" when not using S3::Model::PutObjectRequest::SetCacheControl(), this is unexcepected  behavior. However, I have attempted to reproduce this behavior and wasn't able to (which makes sense based on the PutObjectRequest implementation shared above). When I make a PutObjectRequest, without using the SetCacheControl(), no header is present.
If this is your experience, I would recommend to check through the console if you have set any metadata set for Cache-Control in the affected folder. (You can refer to the Behavior for the AWS Console above).
Let me know if you have any questions or need further informations.
Best regards,
Yasmine

Now if you mean that there is a control-cache header present with value set as "no-cache" when not using S3::Model::PutObjectRequest::SetCacheControl(), this is unexcepected behavior.

This is what I have experienced.

If this is your experience, I would recommend to check through the console if you have set any metadata set for Cache-Control in the affected folder. (You can refer to the Behavior for the AWS Console above).

I created a new bucket with default settings and uploaded files from sdk but this issue happened, so I don't think I've added a cache-control behavior settings to my bucket or folder...
I also check PutObjectRequest value to confirm that it doesn't have any cache control value.
PutObjectRequest::GetCacheControl() returns empty string and PutObjectRequest::CacheControlHasBeenSet() returns false so it seems ok...
My AWS CLI version
aws-cli/2.13.0 Python/3.11.4 Windows/10 exe/AMD64 prompt/off

I created bucket via AWS console (i.e. on web browser) with default settings; I just set a name and a region of a bucket.
I can reproduce this issue with the sdk sample code below.
https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/cpp/example_code/s3/put_object.cpp
I added some lines for logging but the core process is not modded.
This is the difference from the original sample code.
#ifndef TESTING_BUILD
+#include "aws/core/utils/logging/LogLevel.h"

int main() {
+   _putenv_s("AWS_EC2_METADATA_DISABLED", "true");
+
    Aws::SDKOptions options;
+   options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace;
    Aws::InitAPI(options);
    {
        //TODO(user): Change bucket_name to the name of a bucket in your account.
-       const Aws::String bucket_name = "<Enter bucket name>";
+       const Aws::String bucket_name = "<--MyBucketName-->";
        //TODO(user): Create a file called "my-file.txt" in the local folder where your executables are built to.
-       const Aws::String object_name = "<Enter file>";
+       const Aws::String object_name = "sample.txt";

        Aws::Client::ClientConfiguration clientConfig;
        // Optional: Set to the AWS Region in which the bucket was created (overrides config file).
-       // clientConfig.region = "us-east-1";
+       clientConfig.region = "ap-northeast-1";

        AwsDoc::S3::PutObject(bucket_name, object_name, clientConfig);
    }

    Aws::ShutdownAPI(options);

    return 0;
}

#endif  // TESTING_BUILD

And this is a log file.
aws_sdk_2023-08-02-22_masked.log

Hello @ShimYama ,
Apologies but the log you have provided the header contains no cache-control header. It seems that the SDK is behaving as expected here and is not setting any "Cache-Control" in the metadata section.
Are you seeing this in the metadata section of the object in the console? In anyway, based on the log provided, this doesn't seem to be a CPP SDK issue.
I have also tested the sample provided and can't reproduce the issue (no Cache-Control is set in the object metadata if not using PutObjectRequest::GetCacheControl()).
The behavior with the sample is as follow:

With

Aws::S3::Model::PutObjectRequest my_request;
my_request.SetCacheControl("no-cache");

The request contains the following header : cache-control:no-cache. You can see the following metadata associated with the object in the AWS Console in the object property tab under the metadata:
Type : System defined | Key : Cache-Control | Value : no-cache
PutObjectRequest::GetCacheControl() returns no-cacha and PutObjectRequest::CacheControlHasBeenSet() returns true

With

Aws::S3::Model::PutObjectRequest my_request;
//my_request.SetCacheControl("no-cache");

(That is not: using SetCacheControl)
The request does not contain the cache-control header at all. There is no metadata of Type : System defined | Key : Cache-Control in the AWS Console in the object property tab under the metadata.
PutObjectRequest::GetCacheControl() returns empty string and PutObjectRequest::CacheControlHasBeenSet() returns false
I am not sure why you are seeing metadata associated with your object under the properties metadata tab of the object if you are creating a bucket. Are you doing any other modification/steps besides the one listed above?
I apologies for the redundancy but the question asked in my previous two comments is still unanswered:
If you check under the object properties tab under the metadata section, are you seeing  Type : System defined | Key : Cache-Control | Value : no-cache else where are you seeing this as it is not present in the request header of the log you have provided above?
Best regards,
Yasmine

Thank you for your answer.
I didn't add any SetCacheControl settings, so PutObjectRequest::GetCacheControl() returns empty string and PutObjectRequest::CacheControlHasBeenSet() returns false.
However, if I go to the object properties tab in aws console, I found Type : System defined | Key : Cache-Control | Value : no-cache in the metadata section.
I also tested this source so that I didn't add any special setting to my bucket or something.
#include <aws/core/Aws.h>
#include <aws/core/utils/logging/LogLevel.h>
#include <aws/s3/S3Client.h>
#include <aws/s3/model/BucketLocationConstraint.h>
#include <aws/s3/model/CreateBucketRequest.h>
#include <aws/s3/model/GetObjectRequest.h>
#include <aws/s3/model/PutObjectRequest.h>
#include <iostream>
#include <fstream>

using namespace Aws;

static String bucketName = "<new bucket name>";
static String fileName   = "sample.txt";

int main()
{
	_putenv_s("AWS_EC2_METADATA_DISABLED", "true");

	SDKOptions options;
	options.loggingOptions.logLevel = Utils::Logging::LogLevel::Trace;

	InitAPI(options);
	{
		S3::S3ClientConfiguration clientConfig;
		clientConfig.scheme = Http::Scheme::HTTPS;
		clientConfig.region = Region::AP_NORTHEAST_1;

		S3::S3Client client(clientConfig);

		{
			S3::Model::CreateBucketRequest request;
			request.SetBucket(bucketName);

			S3::Model::CreateBucketConfiguration createBucketConfig;
			createBucketConfig.SetLocationConstraint(S3::Model::BucketLocationConstraintMapper::GetBucketLocationConstraintForName(clientConfig.region));
			request.SetCreateBucketConfiguration(createBucketConfig);

			auto outcome = client.CreateBucket(request);
			if (outcome.IsSuccess()) {
				std::cout << "Created bucket " << bucketName << " in the specified AWS Region." << std::endl;
			}
		}
		{
			S3::Model::PutObjectRequest request;
			request.SetBucket(bucketName);
			request.SetKey(fileName);

			std::shared_ptr<IOStream> inputData = std::make_shared<FStream>(fileName.c_str(), std::ios_base::in | std::ios_base::binary);
			request.SetBody(inputData);

			std::cout << "Cache Control has been set: " << (request.CacheControlHasBeenSet() ? "Yes" : "No") << std::endl;
			std::cout << "Cache Control value: " << request.GetCacheControl() << std::endl;
			auto outcome = client.PutObject(request);
			if (outcome.IsSuccess()) {
				std::cout << "Added object '" << fileName << "' to bucket '" << bucketName << "'." << std::endl;
			}
		}
		{
			S3::Model::GetObjectRequest request;
			request.SetBucket(bucketName);
			request.SetKey(fileName);

			auto outcome = client.GetObject(request);
			if (outcome.IsSuccess()) {
				std::cout << "Cache Control: " << outcome.GetResult().GetCacheControl() << std::endl;
			}
		}
	}

	ShutdownAPI(options);
	return 0;
}

And I got this result and a log.
aws_sdk_2023-08-03-22.log
E:\Develop\aws-test\build\Release>app.exe
Created bucket <new bucket name> in the specified AWS Region.
Cache Control has been set: No
Cache Control value:
Added object 'sample.txt' to bucket '<new bucket name>'.
Cache Control: no-cache

It seems my file was uploaded without cache control settings but for some reason s3 adds cache-control settings automatically.

Hello @ShimYama ,
I have attempted this exact code sample and the file is still uploaded without cache control settings. I will reach out to s3 to see if they have any guidance to provide on why this behavior is happening, however it seems like this is not an SDK issue.
I will update this issue once I receive a response from the S3 team.
Thank you very much for providing all the requested information.
Best regards,
Yasmine

Hello @gbrownewell ,
I unfortunately haven't gotten a response from the S3 team yet. I will raise this again and provide an update here as soon as I hear back from them.
Best regards,
Yasmine

Fixed with this: https://github.com/aws/aws-sdk-cpp/pull/2998


Background element refactor (+ drop targets and fixes)

Closes #25
Closes #683
Closes #644
Closes #631
Maybe closes #678 ?
Closes #739

This rethinks the background element as a first class citizen. The background element is either non-existent or one of the supported element types (shape, image, video), it is no longer given a preferential treatment in code.
Changes

Adds a shape style panel (to allow changing the background color of shapes)
Implements an effect that maintains an empty background (while rectangle shape) on pages by default
Removes the background color panel (replaced by shape color panel when the background is the default one)
Fixes #683 (ensure the same background color/element on the canvas, the preview and the output)
Remove need for a special treatment of the background element in the layers panel
Fix #631 Lasso selection not working on the background element
Added a migration script

@wassgha Was this migration script somehow never added? 🤔


evm -> xcm dispatch revert confirm

function send_xcm() {
    xcm_call();
    revert();
}

After inbound.send_xcm(). Does xcm_call revert?

The revert() you added here will revert the xcm_call the xcm will not be sent out. That's what we expect.
If the send_xcm  is the target function called by messaging layer. That is, any revert happened in send_xcm() will propagate to messaging layer. The messaging layer will emit an MessageDelivered with a success or failure result of send_xcm.


Add namehistory to node 1

The explorer not configured to scan for ROD names. Adding namehistory=1 to config should do the trick.
N.B. It will need quite some time to rescan the blockchain.

hi @spaceexpanse
as I am a blockchain and web3 frontend developer, I would love to engage in your team and contribute in your project

hi @spaceexpanse as I am a blockchain and web3 frontend developer, I would love to engage in your team and contribute in your project

Hey @Oyase-shinobi
Thanks for reaching out! Of course you can contribute, just make a pull request and do your changes, then push them back. If they're worthy, we'll add them. :)

Hello @spaceexpanse
Thank you for reaching out me

Hello @spaceexpanse
Thank you for reaching out me
Could you share your discord ID for better communication?

No expiration invitation https://discord.gg/uPJdncgrBe

No expiration invitation https://discord.gg/uPJdncgrBe I'm Walter Philips there

Thank you for consideration
Could you check your dm?


Update understanding-admx-backed-policies.md

The tool is supposed to encode and decode (it was written "encoding and encoding")

Why

Closes #[Issue Number]

Changes

Learn Build status updates of commit 864a75e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows/client-management/understanding-admx-backed-policies.md
:white_check_mark:Succeeded

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

Learn Build status updates of commit 120ecfb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows/client-management/understanding-admx-backed-policies.md
:white_check_mark:Succeeded

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


Keyboard show/hide will cause the widget repaint inside 'showModalBottomSheet'

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
1, call the showModalBottomSheet
2, put the focus on the TextField
3, the keyboard will popup
4, observe the date & time will be refreshed (rerender many times)
5, hide the keyboard
6, observe the date & time will be refreshed again (rerender many times)
Expected results
keyboard show/hide should not emit the repaint / rerender unless calling 'setState' manually.
Even I drag and release the bottom sheet, it is still rerendered automatically (### the time will change automatically).
Actual results
I put some widgets on Container, and then show them via showModalBottomSheet.
I can input some text on the 'showModalBottomSheet' layer, but once TextField gets the focus and popup the keyboard,
the widgets on the 'showModalBottomSheet' will be rerendered automatically, and the data of those widgets fetched from the HTTP request, finally it causes many unnecessary HTTP requests to be sent.
It wastes network and performance and makes everything mass.
Code sample
Code sample
showModalBottomSheet(
        context: context,
        isScrollControlled: true,
        builder: (context) {
          return SizedBox(
            height: 600,
            child: Scaffold(
              appBar: AppBar(
                title: const Text("ShowModalBottomSheet"),
              ),
              body: SafeArea(
                child: Column(
                  mainAxisSize: MainAxisSize.max,
                  children: [
                    SizedBox(
                      height: 80,
                      child: Text(
                        "${DateTime.now()}",
                        style: const TextStyle(fontSize: 18, color: Colors.red),
                      ),
                    ),
                    const TextField(
                      decoration: InputDecoration(
                        border: OutlineInputBorder(),
                        hintText: 'Enter a search term',
                      ),
                    ),
                  ],
                ),
              ),
            ),
          );
        });

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]
https://github.com/flutter/flutter/assets/17242425/a2fad94e-6c1a-4dd6-9ecc-7a9266fb46db

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.2, on macOS 13.3.1 22E772610a darwin-arm64, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.71.2)
[✓] VS Code (version 1.78.2)
[✓] Connected device (3 available)
[✓] Network resources

@Coder7777
Can you switch to latest master and run your scenario again to see if the issue persists or not ?
flutter channel master
flutter upgrade

@Coder7777 Can you switch to latest master and run your scenario again to see if the issue persists or not ?
flutter channel master flutter upgrade

I follow you recommended, then I can not run my project now. what should I do?
Launching lib/main_dev.dart on Pixel 6a in debug mode... Unhandled exception: Unexpected Kernel Format Version 101 (expected 103) #0      BinaryBuilder.readComponent.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:686:9) #1      Timeline.timeSync (dart:developer/timeline.dart:171:22) #2      BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:673:21) #3      _InitializationFromSdkSummary._prepareSummary (package:front_end/src/fasta/incremental_compiler.dart:2488:12) #4      _InitializationFromUri.initialize (package:front_end/src/fasta/incremental_compiler.dart:2562:23) <asynchronous suspension> #5      IncrementalCompiler._ensurePlatformAndInitialize (package:front_end/src/fasta/incremental_compiler.dart:1423:25) <asynchronous suspension> #6      IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:312:11) <asynchronous suspension> #7      IncrementalCompiler.compile (package:vm/incremental_compiler.dart:75:50) <asynchronous suspension> #8      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:599:11) <asynchronous suspension> #9      listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1312:11) <asynchronous suspension> the Dart compiler exited unexpectedly. the Dart compiler exited unexpectedly.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.12.0-3.0.pre.37, on macOS 13.3.1 22E772610a darwin-arm64, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.79.0)
[✓] VS Code (version 1.71.2)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!

@Coder7777 Can you switch to latest master and run your scenario again to see if the issue persists or not ?
flutter channel master flutter upgrade

I follow you recommended, then I can not run my project now. what should I do?
Launching lib/main_dev.dart on Pixel 6a in debug mode... Unhandled exception: Unexpected Kernel Format Version 101 (expected 103) #0 BinaryBuilder.readComponent.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:686:9) #1 Timeline.timeSync (dart:developer/timeline.dart:171:22) #2 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:673:21) #3 _InitializationFromSdkSummary._prepareSummary (package:front_end/src/fasta/incremental_compiler.dart:2488:12) #4 _InitializationFromUri.initialize (package:front_end/src/fasta/incremental_compiler.dart:2562:23) <asynchronous suspension> #5 IncrementalCompiler._ensurePlatformAndInitialize (package:front_end/src/fasta/incremental_compiler.dart:1423:25) <asynchronous suspension> #6 IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:312:11) <asynchronous suspension> #7 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:75:50) <asynchronous suspension> #8 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:599:11) <asynchronous suspension> #9 listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1312:11) <asynchronous suspension> the Dart compiler exited unexpectedly. the Dart compiler exited unexpectedly.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, 3.12.0-3.0.pre.37, on macOS 13.3.1 22E772610a darwin-arm64, locale en-CA) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.79.0) [✓] VS Code (version 1.71.2) [✓] Connected device (3 available) [✓] Network resources
• No issues found!

I fixed that dev environment.
However, the topic mentioned issue is still there.
It always rerenders while the TextField got the focus and popup keyboard.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.12.0-3.0.pre.37, on macOS 13.3.1 22E772610a darwin-arm64, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.71.2)
[✓] VS Code (version 1.79.0)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!

I think that is a flutter bug.
I try to simulate a similar scenario by 'showBottomSheet', and that result is expected. The widget shown on 'showBottomSheet' will not be effected by keyboard show/hide (the time never changed).
But 'showModalBottomSheet' is fitter for my scenario than 'showBottomSheet'.
Please see the screen recording I made.
Scaffold.of(context).showBottomSheet<void>(
     (context) {
       return SizedBox(
         height: 500,
         child: Scaffold(
           resizeToAvoidBottomInset: false,
           appBar: AppBar(
             title: const Text("ShowBottomSheet"),
           ),
           body: SafeArea(
             child: ListView(
               children: [
                 SizedBox(
                   height: 40,
                   child: Text(
                     "${DateTime.now()}",
                     style: const TextStyle(fontSize: 18, color: Colors.red),
                   ),
                 ),
                 const TextField(
                   decoration: InputDecoration(
                     border: OutlineInputBorder(),
                     hintText: 'Enter a search term',
                   ),
                 ),
               ],
             ),
           ),
         ),
       );
     },
   );

https://github.com/flutter/flutter/assets/17242425/351f7fc8-1bf1-49fd-8231-fbfe15ce284c

Thanks for the update. See this and check if it helps in your case or not.


fix: kakarot invoke returndata and multicall encoding

Fixes the encoding of multicalls (removes unwanted 0x hex prefixes)
Closes https://github.com/apibara/starknet-react/issues/530 by changing the return type for kakarot's wallet_InvokeTransaction route

Looks good!


Share app feature required in Learn from Map application!

I think it will be great if sharing app  with friends feature will be introduced where download link of the app will be shared.

I can work upon that however I am new to open source community and I am looking forward for applying for GSoC 2015. I don't know if I have rights to work on your code so if you can provide me some help and tell me where to start from.

Hi Siddhant,
Thanks for showing interest. Learn from Map is an open source app. Hence
anyone willing to work can contribute. Regarding GSOC, its better to post
your queries on BuildmLearn google group. All the organization members will
be willing to help you there. Feel free to ask me anything regarding Learn
from Map if you are stuck any where.
On 15-Feb-2015 5:07 pm, "Siddhant085"<EMAIL_ADDRESS>wrote:

I can work upon that however I am new to open source community and I am
looking forward for applying for GSoC 2015. I don't know if I have rights
to work on your code so if you can provide me some help and tell me where
to start from.
—
Reply to this email directly or view it on GitHub
https://github.com/BuildmLearn/Mobile-applications/issues/1#issuecomment-74414067
.


cudatoolkit not available on conda-forge?

Perhaps I'm missing something, but with conda-forge set as the default (and only) channel, I get this:
$ conda search cudatoolkit --channel conda-forge
Loading channels: done
# Name                       Version           Build  Channel
cudatoolkit                      9.0      h13b8566_0  pkgs/main
cudatoolkit                      9.2               0  pkgs/main
cudatoolkit                 10.0.130               0  pkgs/main
cudatoolkit                 10.1.168               0  pkgs/main
cudatoolkit                 10.1.243      h6bb024c_0  pkgs/main
cudatoolkit                  10.2.89      hfd86e86_0  pkgs/main
cudatoolkit                  10.2.89      hfd86e86_1  pkgs/main
cudatoolkit                 11.0.221      h6bb024c_0  pkgs/main

Seems cudatoolkit is not available from conda-forge?

Hi @berceanu cudatoolkit on CF is still currently under test, see #15. It would be great to give your packages a try with it!


mkisofs in a container

This PR makes boxen to use container image with mkisofs (based on https://github.com/hellt/dockerfiles/pkgs/container/cdrkit) if binary is not founds locally on the system
fix #8

LGTM!


Transaction logging rel 2.0.x

Change Description
This PR splits the transaction_tracing logger into transaction_success_tracing and transaction_failure_tracing loggers; in addition, it adds logging statement for failed signature condition.
Change Type
Select ONE

[ ] Documentation

[ ] Stability bug fix

[ ] Other

[x] Other - special case

Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[x] Documentation Additions
transaction_tracing logger is removed

The following two loggers are added

transaction_success_tracing - detailed log that emits successful verdicts from relay nodes on the P2P network.
transaction_failure_tracing - detailed log that emits failed verdicts from relay nodes on the P2P network.

Do we want to replace existing logging config in release/2.0.x. My opinion is that we have changed much greater things in release/2.0.x, but this needs to be flagged and well documented.

Need to update programs/nodeos/logging.json. Also in develop.

It was decided with @b1bart that we should keep the existing transaction_trace logging identical to the user and just added transaction_failure_trace to allow user to just get failure logging.


Add pfSense (VM) to Firewall section

https://github.com/pfsense/pfsense
https://www.youtube.com/watch?v=F0LRwuCx4v4

I think this is a bit outside the scope of a Mac hardening guide.