Running script dynamically

Hello,
I'm looking for a way to run scripts programmatically. In other words, I'd like users to upload their scripts and I need to have a backend process (probably hosted in kubernetes on a Unix image) that will run those based on schedules.
Is there a way to support this case? I would also need to get data in return to the execution.
I know hat I could kind of start the a process but I'd like avoid that if possible...
Thanks

Hi @georgeslegros
If you take a look at https://github.com/filipw/dotnet-script/blob/master/src/Dotnet.Script/Program.cs, it should give you a pretty good idea how to programatically incorporate dotnet-script into your process. The Program.cs file is just a thin command line wrapper around DotNet.Script.Core which also by the way is available on NuGet as a separate package.

I think you should be able to strip down to the code you need by looking at https://github.com/filipw/dotnet-script/blob/ef3e18d43a9ae6b406790ed890683a9d0d5919f3/src/Dotnet.Script/Program.cs#L220-L260

@seesharper Thanks, it helped a lot. I've managed to get the script running and get an exit code 0, but how can I load some data from source (like load a class and run its methods)?
var logFactory = LogHelper.CreateLogFactory("debug");
var assemblyLoadContext = new ScriptAssemblyLoadContext();
var fileCommandOptions = new ExecuteScriptCommandOptions(
    new ScriptFile(AppContext.BaseDirectory + "Test.csx"),
    new[] { "" },
    OptimizationLevel.Debug,
    null,
    false,
    false
) {
    AssemblyLoadContext = assemblyLoadContext
};

var fileCommand = new ExecuteScriptCommand(ScriptConsole.Default, logFactory);
var r = await fileCommand.Run<int, CommandLineScriptGlobals>(fileCommandOptions);
Console.WriteLine(r);

I've tired using this code in Framework 4.7.2 project and it's not working. I have
"ReadLine, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=e33b67d3bb5581e4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
I don't understand it as I tried this using both Dotnet.Script.Core NuGet as well as project with "project reference" in cloned Dotnet.Script solution... The System.ReadLine is recognized in the editor... Will library even work wit Framework 4.7.2? I've read that it is compatible with .net standard 2.0...


Native VCC support for MaterialReplacer

Could you add VCC support? The latest version is 1.2.0 but there is a legacy version included in VRCQuest Tool VCC, which causes problems.

What do you mean "VCC support"? The tools is already provided via my vpm repository. https://kurotu.github.io/vpm-repos/
(Sorry to not announced in readme.)
By the way, Material Replacer is now a part of new tool, KRT Material Tools. It's recommended to get future updates.

there is a legacy version included in VRCQuest Tool VCC, which causes problems.

Sadly I'm not sure what is your problem. Please describe in detail if it's a bug report.

What do you mean "VCC support"? The tools is already provided via my vpm repository. https://kurotu.github.io/vpm-repos/ (Sorry to not announced in readme.) By the way, Material Replacer is now a part of new tool, KRT Material Tools. It's recommended to get future updates.

there is a legacy version included in VRCQuest Tool VCC, which causes problems.

Sadly I'm not sure what is your problem. Please describe in detail if it's a bug report.

I have not KRT material Tools could be added from your vpm repository. I want you to update material replacer to 1.2.0 so that I could update it through VCC instead of import the unity package. Given that KRT material Tools could replace material, I have no further problems. Thank you a lot!

I have noticed that 1.2.0 was not included to the vpm repository. Thanks to let me know.
KRT Material Tools' material replacer is just an equivalent of the original material replacer. Feel free to make issues when you meet problem.


Broken link for header with inline badge

Example URL(s)

https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/configure-warp/warp-settings/#override-local-interface-ip- (invalid link used in Override local interface IP text).
https://developers.cloudflare.com/cloudflare-one/policies/gateway/dns-policies/#warp-client-block-notifications- (couldn't find anywhere link is referenced).

Actual Behavior
The space between the header text and the badge is converted to - when the url slug is generated.
Expected Behavior
Links referencing header sections with inline badges should be correct. Possible options: link anchors pointing to header ID with inline badges can be suffixed with -, or the - isn't included when the header ID is generated.
Additional information
I didn't want to put up a fix yet since a spacing is recommended in the style guide. However, in a case where the inline badge gets removed, it's likely the space gets trimmed off, which should easily break any existing anchor link referencing it. A few options right off my head:

Keep the spacing and suffixing links with -,
Use a   to represent the spacing.
Or something else?


Invalid value for visibility : 2

I get this error when try to download file with rnfetchblob
Any idea how to deal with ?

+1

I get this error when try to download file with rnfetchblob
Any idea how to deal with ?

i cant solve it even though i added the permision... guys any ideas?

i solved it i tried to change the visibility into visible and then error solve and i able to download file and it will be seen in notification bar.


Common CustomExecutor

@mesosphere-ci Please re-build this.

@mohitsoni Code coverage on master is at 70%.  It shouldn't dip below that.  This PR brings it down.

@gabrielhartmann I added more unit tests, and the coverage is now > 70%


Added registry configuration hash option

Relates to #74, #76
Credits to #77
Added missing registry configuration hash. See https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template#L319

Thanks a lot!

Can you create a new forge release based on #84 please? This is much needed for people with multiple appserver behind external reverse proxy servers (e.g. change token_realm to HTTPS instead of HTTP, registry_http_addr for allowing none-localhost connections from proxys..)

Will do a release asap


Add new extrinsics-list scrape operation. Refactor SubscrapeDB. Add Unit Tests and Github Automations

New Feature
This PR adds a new operation extrinsics-list to scrape extrinsics for a list of extrinsic indexes.
config = {
    "kusama":{
        "extrinsics-list":{
            ["14238250-2"]
        }
    }
}

To showcase the usage, bin/sample_extrinsic_list.py has been added.
Changes to SubscrapeDB
To read and write single extrinsics to and from the DB the write_extrinsic and read_extrinsic methods have been added.
This highlighted the weakness of the current design in SubscrapeDB that extrinsics are assumed to be known my module/call. To work around the issue, a new meta index was introduced. SectorizedStorageManager is replaced with a sqlitedict key-value store wrapper, which itself is a wrapper on top of Sqlite. This is only the first of a few optimization steps I see, but it is non-breaking so far.
Addition of Unit Tests and Github Automations
Since this has a huge impact on the storage, I decided to start adding unit tests. I also added Github CI Automations to automatically run the unit tests upon a PR

since you're adding a new config operation, pls update https://github.com/ChaosDAO-org/subscrape/blob/main/docs/configuration.md


Facing a build issue due to errors in api.hpp

Tried running the main.cpp code just for testing but I was facing these errors. Faced the same in Visual Studio IDE too. Can you help me fix these?

You'll need to use C++17 and higher as inline variables are now supported from that point on.

Ah yes it worked ty. Btw is it possible to modify it to make it work for games like Genshin Impact? Just wondering.

I never got around to testing games with obfuscated metadata but either way it should work properly, you may have to search for the obfuscated/deobfuscated names you're looking for. Can't give too much detail as I haven't been pursuing reverse engineering in a while.


i18n(ja): Add Japanese mpa-vs-spa.md

What kind of changes does this PR include?

Translated content

Description

Translated the MPA vs. SPA page into Japanese.

LGTM. Thanks for this @kyosuke! 🙌


Adding progressive (spin) wait and improved processing queuing

@franz1981 do you work at 1:18am? Or is this a bot you started some time ago? :-)

I got some time while none is crying nor trying to stop me doing crazy experiments eheh
I suggest to give it a shot; tomorrow I'll better explain what's doing (that seems just a stupid way to waste CPU cycle), but
just for the record, I'm getting about 10x improvement (sometime more, sometime less) when the number of used threads are less then the number of cores (a thing that can happen on bare metal with many cores) and same or better performance when 100 threads are used on my poor 12 cores machine.

@belaban Let's close this as thanks to the nice async model we already have an option to better use the CPU time of a single thread ;)
Let's reopen the one to use the JCTools queue if contention over the process queue become relevant on tests (that's likely to happen with many threads submitting tasks via async interface.
Just a note: I still think it would be better to submit load continuation of the async benchmark via the same thread,instead of using the I/O one: this will mimic what would happen in the real world where the load is supposed to happen from the same thread.


STY: Cleanup trailing whitespace in resample module.

Coverage remained the same at 87.486% when pulling 3249d848e91ffe661d422e1646b454391d8435ac on resample-whitespace-cleanup into 6cf81a3f1c540a3d2754969a00a3ec793a18f6b5 on master.


eDiscovery - Export Content Search results - Skipped Items

Skipped Items When you export search results from SharePoint and OneDrive for Business sites, the export will usually include a skipped items report (SkippedItems.csv). The items cited in this report are typically items that won't be downloaded, such as a folder or a document set. Not exporting these types of items is by design. For other items that were skipped, the 'Error Type' and 'Error Details' field in the skipped items report show the reason the item was skipped and wasn't downloaded with the other search results.
https://docs.microsoft.com/en-us/microsoft-365/compliance/export-search-results?view=o365-worldwide
From my understanding (Core eDiscovery). Empty folders from a SPO Document Library are not created at export. Filled folders are created.
Please can you add this detail to the documentation and describe it a little bit more detailed? Questions from the Auditors/Lawyers are very precisely about this topics and it´s not 100 % clear in the documentation.

@LaPhi Can you please add a little more detail about what you're looking for and how it's related to skipped items? What details are you looking for? What exactly are the questions about this that you're receiving from Lawyers/Auditors? Is there an expectation that an empty folder from a doc library should be exported?

@laphi Also, since your are internal Microsoft, you can send email directly to me about this issue.

@LaPhi Hope you are following the given advise. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


[FEATURE]: Don't add quotes for interpolated dataTypes

Describe what you want
From drizzle-kit-mirror: https://github.com/drizzle-team/drizzle-kit-mirror/issues/210.

Was trying to add a fix for it myself, only to find out the code isn't available, or am I wrong?
Related: drizzle-team/drizzle-orm#295 (comment)
This kinda breaks custom types completely.

Implementing this will also close a bunch of issues related to custom types surrounded with double quotes.

Why is this still a long-standing issue? This is basically making customTypes unusable. 😒


[CameraRoll] Add assetThumbnail prop

in reference with this PR
https://github.com/facebook/react-native/pull/1406

ok good point ;)

The modification is done

@brentvatne and @vjeux that sound ok for you ?

This patch works like a charm, by the way... really looking forward to it landing!

Prefered resize rather than a native Thumb extraction ;)


Possible belongs_to improvement

I just started to work with adding TypeIDs to my app and immediately ran into issues with belongs_to. I've looked at the other issues and I did get it to work by using define_field: false and a separate field :thing_id. It did however feel like it should work to just do
schema "posts" do
  has_many :comments, Comment
end

schema "comments" do
  belongs_to :post, Post, type: TypeID
end

but when I tried that I got an error about type was only allowed to be :uuid or :string. Without using type: TypeID I got an error about  value #TypeID<"aaa_01j95zhepsf75rfymj6egjqg9m"> in where cannot be cast to type :integer in query.
Digging further I realized that when using type param to belongs_to, the value for type is included in the call to TypeID.init. This means when using type: TypeID, dump will try to see what database type it should convert itself to, but the type is TypeID, which is the Ecto custom type, not the database type.
I have a solution to this which changes the name of the type parameter to column_type, so the primary key definitions become
@primary_key {:id, TypeID, autogenerate: true, prefix: "post", column_type: :uuid}

and the belongs_to definitions becomes
belongs_to :wallet, Wallet, type: TypeID, column_type: :uuid

With a default of :uuid, the column_type can also be dropped.
I'm guessing this is something around the differences of how Ecto handles a ParameterizedType when used as a normal field and an association. Would you be interested in a PR for this if I clean it up? Or am I missing something here that makes it a bad idea?

I'm open to a PR. I'm fine with what you've laid out and my only real reservation is that i just don't love column_type here. But if Ecto is getting in the way of using just type perhaps that's just what has to be done.

what happens if the comments schema does not specify type?
schema "comments" do
  belongs_to :post, Post
end

the existing code should infer all of the TypeID information using the Post schema. what is Post's @primary_key value?

what happens if the comments schema does not specify type?

In that case Ecto assumes type: :integer as per docs. So we do need to specify the type with belongs_to and thus we run into the conflict between TypeID's use of type vs Ecto use of type.
What would an acceptable solution look like? I've just ran into this issue an can write a PR

I started drafting a solution here https://github.com/sloanelybutsurely/typeid-elixir/pull/40/files and the following approach seems to work:
To get the type, we first read column_type from opts, and only if it's not available we read type from opts. This way, one can use column_type everywhere if one wants to, but we can also keep using type and not break existing code.
For belongs_to, the user can use belongs_to(:post, Post, type: TypeID) to use the default_type for the column_type or specify it: belongs_to(:post, Post, type: TypeID, column_type: :string)
If you think the solution makes sense I can polish the PR

Are either of you able to provide a minimal reproducing project to share? My guess is the issues you're running into have something to do with how the project is configured (the values of @primary_key and @foreign_key_type in particular)

I haven't been able to try without specifying type yet, I got pulled into something else. I will try to do it soon and report back.

I've built one in this repo: https://github.com/lurodrigo/typeid_blog
main branch: Vanilla binary_ids
The relevant bits are /lib/blog/post.ex and /lib/blog/comment.ex
defmodule Blog.Post do
  use Ecto.Schema
  import Ecto.Changeset

  @primary_key {:id, :binary_id, autogenerate: true}
  @foreign_key_type :binary_id
  schema "posts" do
    field :title, :string
    field :body, :string

    has_many :comments, Blog.Comment
    timestamps(type: :utc_datetime)
  end
# ...

defmodule Blog.Comment do
  use Ecto.Schema
  import Ecto.Changeset

  @primary_key {:id, :binary_id, autogenerate: true}
  @foreign_key_type :binary_id
  schema "comments" do
    field :body, :string
    belongs_to :post, Blog.Post

    timestamps(type: :utc_datetime)
  end

# ...

In priv/repo/seeds.exs:

Repo.insert!(%Post{
  title: "My First Post",
  body: "This is the body of my first post",
  comments: [%{body: "This is the body of my first comment"}]
})

If you run mix ecto.reset and then iex -S mix phx.server and run Repo.all(Post) |> Repo.preload([:comments]) you get:
[
  %Blog.Post{
    __meta__: #Ecto.Schema.Metadata<:loaded, "posts">,
    id: "791cc4cb-2feb-4eed-9d6e-3e4ef447eff0",
    title: "My First Post",
    body: "This is the body of my first post",
    comments: [
      %Blog.Comment{
        __meta__: #Ecto.Schema.Metadata<:loaded, "comments">,
        id: "e99d9d1f-e72a-4352-9b84-b17a817a40e5",
        body: "This is the body of my first comment",
        post_id: "791cc4cb-2feb-4eed-9d6e-3e4ef447eff0",
        post: #Ecto.Association.NotLoaded<association :post is not loaded>,
        inserted_at: ~U[2024-10-31 17:18:24Z],
        updated_at: ~U[2024-10-31 17:18:24Z]
      }
    ],
    inserted_at: ~U[2024-10-31 17:18:24Z],
    updated_at: ~U[2024-10-31 17:18:24Z]
  }
]

type_id_failing branch
Here I'm using @primary_key and @foreign_key_type as per docs:
  @primary_key {:id, TypeID, autogenerate: true, prefix: "post", type: :uuid}
  @foreign_key_type TypeID

  schema "posts" do
    field :title, :string
    field :body, :string

    has_many :comments, Blog.Comment
    timestamps(type: :utc_datetime)
  end

  @primary_key {:id, TypeID, autogenerate: true, prefix: "comment", type: :uuid}
  @foreign_key_type TypeID

  schema "comments" do
    field :body, :string
    belongs_to :post, Blog.Post

    timestamps(type: :utc_datetime)
  end

When running mix ecto.reset, we get
** (DBConnection.EncodeError) Postgrex expected a binary of 16 bytes, got "post_01jbhseaexeh6vp5zfym3tcf5h". Please make sure the value you are passing matches the definition in your table or in your query or convert the value accordingly.
    (postgrex 0.19.2) lib/postgrex/type_module.ex:1084: Postgrex.DefaultTypes.encode_params/3
    (postgrex 0.19.2) lib/postgrex/query.ex:75: DBConnection.Query.Postgrex.Query.encode/3
    (db_connection 2.7.0) lib/db_connection.ex:1449: DBConnection.encode/5
    (db_connection 2.7.0) lib/db_connection.ex:1549: DBConnection.run_prepare_execute/5
    (db_connection 2.7.0) lib/db_connection.ex:772: DBConnection.parsed_prepare_execute/5
    (db_connection 2.7.0) lib/db_connection.ex:764: DBConnection.prepare_execute/4
    (postgrex 0.19.2) lib/postgrex.ex:295: Postgrex.query/4
    (ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1150: Ecto.Adapters.SQL.struct/10
    (ecto 3.12.4) lib/ecto/repo/schema.ex:834: Ecto.Repo.Schema.apply/4
    (ecto 3.12.4) lib/ecto/repo/schema.ex:415: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
    (ecto 3.12.4) lib/ecto/association.ex:948: Ecto.Association.Has.on_repo_change/5
    (ecto 3.12.4) lib/ecto/association.ex:648: anonymous fn/8 in Ecto.Association.on_repo_change/7
    (elixir 1.17.2) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3
    (ecto 3.12.4) lib/ecto/association.ex:644: Ecto.Association.on_repo_change/7
    (elixir 1.17.2) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3
    (ecto 3.12.4) lib/ecto/association.ex:589: Ecto.Association.on_repo_change/4
    (ecto 3.12.4) lib/ecto/repo/schema.ex:1018: Ecto.Repo.Schema.process_children/5
    (ecto 3.12.4) lib/ecto/repo/schema.ex:1096: anonymous fn/3 in Ecto.Repo.Schema.wrap_in_transaction/6
    (ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1400: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
    (db_connection 2.7.0) lib/db_connection.ex:1756: DBConnection.run_transaction/4

type_id_fixed branch:
Here I'm pointing to my fix using column_type as described below:
  @primary_key {:id, TypeID, autogenerate: true, prefix: "post", type: :uuid}
  schema "posts" do
    field :title, :string
    field :body, :string

    has_many :comments, Blog.Comment
    timestamps(type: :utc_datetime)
  end

  @primary_key {:id, TypeID, autogenerate: true, prefix: "comment", type: :uuid}
  schema "comments" do
    field :body, :string
    belongs_to :post, Blog.Post, type: TypeID, column_type: :uuid

    timestamps(type: :utc_datetime)
  end

If you run mix ecto.reset and then iex -S mix phx.server and run Repo.all(Post) |> Repo.preload([:comments]) you get:
[
  %Blog.Post{
    __meta__: #Ecto.Schema.Metadata<:loaded, "posts">,
    id: #TypeID<"post_01jbhsr6mpe74a9tjmtryhwzxw">,
    title: "My First Post",
    body: "This is the body of my first post",
    comments: [
      %Blog.Comment{
        __meta__: #Ecto.Schema.Metadata<:loaded, "comments">,
        id: #TypeID<"comment_01jbhsr6mtewsb2b5e20va8ymj">,
        body: "This is the body of my first comment",
        post_id: #TypeID<"post_01jbhsr6mpe74a9tjmtryhwzxw">,
        post: #Ecto.Association.NotLoaded<association :post is not loaded>,
        inserted_at: ~U[2024-10-31 17:25:11Z],
        updated_at: ~U[2024-10-31 17:25:11Z]
      }
    ],
    inserted_at: ~U[2024-10-31 17:25:11Z],
    updated_at: ~U[2024-10-31 17:25:11Z]
  }
]

So my fix seems to work

I can confirm that I also run into this issue when only using belongs_to :post, Post. This is an old app which means there are a mix of serial integer, uuid and TypeID ids, so I haven't set @foreign_key to anything. @primary_key is set to   @primary_key {:id, TypeID, autogenerate: true, prefix: "post", column_type: :uuid}. Maybe this is related?

thanks for the input here. i'm investigating this issue and coming up with some potential solutions.


change command usage from cat to ls

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Trivial bugfix, not addition. LGTM.

:star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2:
Congrats on your first PR!
:star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2: :star2:


Typo on web clients

Typos corrected.

@nenonix @JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@CarolynRowe PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Converted @mdallaire document to rst and split in sections as to keep…

… all doc in one place. https://github.com/zepiaf/hydroqc/pull/21

@mdallaire / @clauderobi
I merged @mdallaire doc in the actual doc
You can preview it here : https://hydroqc.readthedocs.io/en/master/wintercredit/wintercredit.html
Is that working for you, if yes we'll scrap the other PR (sorry about that :) )

Just updated

It was done on purpose, but maybe I'm wrong.
An event has no type : it's a critical_peak_event
A period can any of normal | peak | reference | anchor | critical | pre_heat
This is a composite indicators as mentioned by @clauderobi

An event of type none is not an event, it's nothing (i mean it won't be in the data). It would make sense to type the event if we had other categories existing.
The big question now is what should the data look like, I'm thinking about something like this:
period: {
  type: PERIOD_TYPE,
  date: DATE,
  start: DATE_TIME,
  end: DATE_TIME,
  start_ts: TIMESTAMP,
  end_ts: TIMESTAMP
}

critical_peak_event: {
  date: DATE,
  start: DATE_TIME,
  end: DATE_TIME,
  start_ts: TIMESTAMP,
  end_ts: TIMESTAMP
}

state: {
  current_period_type: PERIOD_TYPE,
  event_forecast: {
    today : {
      morning: BOOLEAN,
      evening: BOOLEAN
    },
    tomorrow : {
      morning: BOOLEAN,
      evening: BOOLEAN
    }
  }
}

periods: {
  past: [ period, period, ...],
  future: [ period, period, ...]
}
events: {
  past: [critical_peak_event, critical_peak_event, ...]
  future: [critical_peak_event, critical_peak_event, ...]
}


Confuse about offset in kitti_converter

Hi, here i have a question about offset
It means transfer pos to camera_2 coord, right?
suppose pos<x, y, z, 1>
# P_2 @ pos

u = x * P_2[0, 0] + P_2[0, 3]

# after transfer
x_new = x + P_2[0, 3] / P_2[0, 0]
u = x_new * P_2[0, 0] ( x * P_2[0, 0] + P_2[0, 3] )

BUT why minus P_0[0, 3] in code ?
https://github.com/open-mmlab/mmdetection3d/blob/e108340c79ff9fb13dedf883cb3746aab4b03250/tools/data_converter/kitti_converter.py#L428

The offset is CAM2 compared to CAM0 in terms of 3D locations (typically info['calib']['P0'][0, 3] is 0). So it is basically equivalent to your x_new = x + P_2[0, 3] / P_2[0, 0].
When doing projection, we need to use the annotated location (loc instead of loc_3d in the code) that is in the CAM0/referenced camera coordinate to apply P2 matrix.

Got it~
Thanks


GEOMESA-827 Update README for 1.1.x releases/versions

Signed-off-by: Jake Kenneally<EMAIL_ADDRESS>

looks good to me


4.14 VMWare/IPI install: FATAL failed to fetch Terraform Variables: failed to generate asset "Terraform Variables": network '/TS-vRA/VLAN2506' not found

I tried to install 4.14 OKD (VMWare/IPI) but got FATAL failed to fetch Terraform Variables: failed to generate asset "Terraform Variables": network '/TS-vRA/VLAN2506' not found. 4.13 install works fine.
I used openshift-install create install-config. The installer connected to my VMWare and as you can see I chose the correct network

Snippet from my install-config.yaml

can you provide the .openshift-install.log please

can you provide the .openshift-install.log please

openshift_install.log

It is a bug: https://issues.redhat.com/browse/OCPBUGS-23376
Redhat engineering has fixed this issue and the code will be included in the 4.15 release.  They found an issue caused by the double slashes in the resource pool field.

Lets close this as not OKD-specific? It would be picked up automatically in next stable OKD once https://github.com/openshift/installer/pull/7759 merges

@dkoci were you able to confirm? I know QE reached out to the support engineer for you to test.

@vrutkovs yeah I think we can close


GCE - K8s 1.8 - pods is forbidden - Cannot list pods - Unknown user "system:serviceaccount:default:default"

I used the mongo-k8s-sidecar for somewhilte and everythign worked fine.
today i created a new cluster with 1.8.7-gke.1  and deployed mongo db with the sicdecar.
As a result the pods don't get connected (see below)
when i recreate the cluster with k8s 1.7.12-gke.1 everything works fine.
From sidecar log when faliing:
message: 'pods is forbidden: User "system:serviceaccount:default:default" cannot list pods at the cluster scope: Unknown user "system:serviceaccount:default:default"',
mongo-sidecar | Feb 28, 2018, 11:04:19 AM | status: 'Failure',
mongo-sidecar | Feb 28, 2018, 11:04:19 AM | metadata: {},
mongo-sidecar | Feb 28, 2018, 11:04:19 AM | apiVersion: 'v1',
mongo-sidecar | Feb 28, 2018, 11:04:19 AM | { kind: 'Status',
mongo-sidecar | Feb 28, 2018, 11:04:19 AM | message:
mongo-sidecar | Feb 28, 2018, 11:04:19 AM | Error in workloop { [Error: [object Object]]
mongo-sidecar | Feb 28, 2018, 11:04:14 AM | statusCode: 403 }
mongo-sidecar | Feb 28, 2018, 11:04:14 AM | code: 403 },
mongo-sidecar | Feb 28, 2018, 11:04:14 AM | details: { kind: 'pods' },
mongo-sidecar | Feb 28, 2018, 11:04:14 AM | reason: 'Forbidden',
any hints what has changed in gce permission system? Something i need to configure?
configuration
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: fast
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-ssd
---
apiVersion: v1
kind: Service
metadata:
  name: mongo-lp
  labels:
    name: mongo
spec:
  ports:
  - port: 27017
    targetPort: 27017
  clusterIP: None
  selector:
    role: mongo-lp
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
  name: mongo-lp-statefulset
spec:
  serviceName: "mongo"
  replicas: 3
  template:
    metadata:
      labels:
        role: mongo-lp
        environment: test
    spec:
      terminationGracePeriodSeconds: 10
      containers:
        - name: mongo
          image: mongo:3.4.9
          command:
            - mongod
            - "--replSet"
            - rs0
            - "--smallfiles"
            - "--noprealloc"
          ports:
            - containerPort: 27017
          volumeMounts:
            - name: mongo-persistent-storage-lp
              mountPath: /data/db
        - name: mongo-sidecar
          image: cvallance/mongo-k8s-sidecar
          env:
            - name: MONGO_SIDECAR_POD_LABELS
              value: "role=mongo-lp,environment=test"
  volumeClaimTemplates:
  - metadata:
      name: mongo-persistent-storage-lp
      annotations:
        volume.beta.kubernetes.io/storage-class: "fast"
    spec:
      accessModes: [ "ReadWriteOnce" ]
      resources:
        requests:
          storage: 32Gi

One simple fix is to create the following role binding:
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: default-view
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: view
subjects:
  - kind: ServiceAccount
    name: default
    namespace: default

This will grant the default service account view permissions.  A more secure approach would probably be to create a new service account, grant it the view permissions, and then assign that service account to the sidecar.

that worked. thx

Also, just as an FYI, you are correct that this change happened with 1.8.  This note is from Google's page on Kubernetes authorization:

Note: In Kubernetes versions 1.6 and 1.7, Kubernetes Engine clusters also contain a legacy authorization system. In Kubernetes, authorizers interact by granting a permission if any authorizer grants the permission. The legacy authorizer in Kubernetes Engine grants broad, statically defined permissions. To ensure that RBAC limits permissions correctly, you must disable the legacy authorizer.

In my environment I don't have permissions to create ClusterRoleBindings.
Is there a solution with ServiceAccounts?

@BoasE Do we need to restart the pods for this change to take effect after the clusterRolebinding is created.

@grohan2002 By now you probably have figured out, but for the sake of completeness then yes, you need to restart the pods for this to take effect.

this doesn't work in 1.11 ... I get cannot list pods at the cluster scope


auditTime does not emit last value

Similar to https://github.com/ReactiveX/rxjs/issues/3351. auditTime does not emit the last value emitted by a completed source.
Looking at the test spec it is not defined if this is the intended behavior or not. However, we've twice encountered this thinking it's very strange behaviour.
> Observable.timer(1000).auditTime(500).subscribe(x => console.log('value', x), undefined, () => console.log('complete')) && null
null
> complete

audit was,  by design, made to audit the last value only at the time of audit, not at time of completion... so to make it do this would be a new feature, which I'm open to discussing, but it's not a bug.

Possible duplicate of https://github.com/ReactiveX/rxjs/issues/1777

Closing this 'cause, IIRC, the behaviour was changed in v7. See this test:
https://github.com/ReactiveX/rxjs/blob/f3d2e802276545683f488a37a4f094ed4e0230d1/spec/operators/auditTime-spec.ts#L69-L83
And this change https://github.com/ReactiveX/rxjs/pull/5799


Any plan to release a stable release? Let's start promote it.

Dear @t3chguy,
I know it's now working as expected :+1: , but still wonder, do you have any plan to release a stable release?
About "stable", i mean:

steady configuration parameter names
functions are all working as expected
no big refactor requirement in near future

Also, any plan to rename your plugin name? Neither "Roundcube-SQL-Multi-Contacts" nor "wdgrc_sql_contacts " is clear, they don't even relate to "address book".
How about rename it to sql_address_book? Just a suggestion, it's all up to you.
I'm willing to help promote this plugin in iRedMail forum, mailing list.

I do need to pick a better name for it, internally roundcube calls them both address books and contacts, so not sure about changing the name but definitely class, folder, filenames, and config prefixes to something that won't ever change. Maybe change the name to roundcube sql multi address book? I have tested everything as much as I could on my own so just a tidy up to go.

It's a roundcube plugin, we don't need to mention "roundcube" in plugin name (but it's necessary in your github repository name).
Personally, i prefer sql_address_book: short, clear.

I think that it's a little vague, since roundcube ships with an sql address book, I'll have a little think tonight and finalise it later

Okay, I am thinking more along the lines of sql_global_addressbooks
since all of the books are Global to some scope, and then it'll match the MySQL View name of global_addressbook

@zhanghuangbin anything else you think I need to do for it to be considered stable?

I'm fine will this name. :)


Add delete function for AccessPackageResourceRoleScope

Hey @manicminer
Hoping this can help towards resolving https://github.com/hashicorp/terraform-provider-azuread/issues/1091
Once the delete function is merged it can be referenced in this function:
https://github.com/hashicorp/terraform-provider-azuread/blob/main/internal/services/identitygovernance/access_package_resource_package_association_resource.go#L146-L150
Errors should still be expected if a user has been assigned a given resource but this will at least allow things to delete when no assignments are in place
Let me know if any tweaks are needed!

The second commit addresses a bug I've noticed where if a azuread_access_package_resource_package_association is deleted by a user in the console terraform errors rather than seeing the resource has gone and removing it from state
This happens because the AccessPackageResourceRoleScopeClient.Get function returns the status of the HTTP request to the accessPackages endpoint which does succeed but then as it parses the output and fails to find a matching entry it does not update that status to 404
The above results in this if statement never firing
https://github.com/hashicorp/terraform-provider-azuread/blob/main/internal/services/identitygovernance/access_package_resource_package_association_resource.go#L124-L127
If it is more appropriate to always hand back the status code from the endpoint and instead this should be handled in the Terraform code let me know and I'll role this commit back


Replace List iteration with Flux.fromIterable

When parsing bindings, the Stream api was fickle so I used a List operation.

Does this need to be open now, since you're done?

Resolved via https://github.com/r2dbc/r2dbc-h2/commit/d9538ff00a58ea4a6580e0c55c5efa688d3de921


Fix missing special section and run special in test harness

@LinuxBozo looks like you forgot to update the test files, namely errors-quality.json, etc.

@stevejameskent Ding Ding Ding. You win!
Updated..


[google_maps_flutter] [Proposal] Update to Google maps 18 SDK

What package does this bug report belong to?
google_maps_flutter
What target platforms are you seeing this bug on?
Android
Have you already upgraded your packages?
No
Dependency versions
pubspec.lock
name: maps_app_sdk_sample
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1

environment:
  sdk: '>=3.0.0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
     cached_network_image: ^3.3.1
     cupertino_icons: ^1.0.6
     google_maps_flutter: ^2.5.3
     flutter_cache_manager: ^3.3.1
     flutter_riverpod: ^2.4.10
     video_player: ^2.8.2

dev_dependencies:
  flutter_test:
    sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^3.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter packages.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

Steps to reproduce
I received an email from Google Maps Platform highlighting this:

You may have projects using the legacy renderer that will be decommissioned by March 3, 2025. Apps built with the Maps SDK for Android will be automatically updated to the latest renderer beginning March 4, 2024.

I only have one app tied to this Google account, and it is a Flutter app using the google_maps_flutter package.
Expected results
No email highlighting use of the legacy renderer.
Actual results
I received an email from Google Maps Platform highlighting this:

You may have projects using the legacy renderer that will be decommissioned by March 3, 2025. Apps built with the Maps SDK for Android will be automatically updated to the latest renderer beginning March 4, 2024.

Email from Google Maps Platform
Email details
This is only an email referencing the use of the Android SDK.
More from the email:
Hello Google Maps Platform Customer,
This is a follow up to the announcements sent in 2021 and 2022 regarding the new renderer for Maps SDK for Android. To provide an improved user experience and app performance, apps built with the Maps SDK for Android will be automatically updated to the latest renderer beginning March 4, 2024. The legacy renderer is scheduled for decommissioning on March 3, 2025.
What do I need to know?
The new renderer was introduced in Maps SDK for Android version 18.0 in an opt-in manner. It is offered as a default starting on version 18.2, with an option to specify the Legacy renderer (Renderer.LEGACY). Your app may be currently using the legacy renderer in two situations.

Situation 1.If you use Maps SDK for Android version < 18, or 18.0-18.1 without opting in the new renderer: The automatic update to the latest renderer will be rolled out to the Android devices in a gradual ramp up mode and is expected to impact 100% of all supported devices by the end of 2024.
Situation 2. If you specify the legacy renderer (on version 18.0 or later):
Your application will continue receiving the legacy renderer until March 2025. Starting in March 2025, you will get the new renderer even if you specify the Legacy renderer.
During the migration period, Google will continue to provide support and fixes to major bugs and outages on the legacy renderer. New features and improvements are only offered on the new renderer.
The new renderer is currently only available on Android phones. If your app is used on Wear OS or Android Go, the new renderer will be available in Google Play Services at a later time. Please follow the progress on this rollout by starring this issue tracker entry.

What do I need to do?
No action is recommended if your app already uses Maps SDK for Android v18.2.0 and does not specify a renderer during the initialization process.
Updating to the latest renderer in the Maps SDK for Android may introduce a slight change to the performance and behavior of the maps in your app. Google does not expect this to cause any operational issues.
We recommend that developers of mission-critical apps test their application with the new renderer ahead of the automatic update (happening in March 2024 or March 2025 depending on your situation above), in order to limit risks of potential issues. You can do this by updating the dependencies for your app to the Maps SDK for Android version 18.2.0 or later, without specifying the Legacy renderer (Renderer.LEGACY).

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.2.1 23C71 darwin-arm64, locale
    en-KE)
[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.87.0)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

The plugin has been using 18 for several years, and 18.2 for over four months.

@stuartmorgan Should I ignore the email?

That email is about actions you can take at the level of your application; whether you ignore it or not it's up to you.
There's no work needed here in the plugin, which is why I closed the issue.


Fix/applics 794 s51 advice translate date to welsh

Describe your changes

add date translation for advice items on s51 list (for projects) and register of advice list (general)
add translation of "Read more" link on s51 list/register of advice list where advice is over 200 characters

https://pins-ds.atlassian.net.mcas.ms/jira/software/c/projects/APPLICS/boards/242?selectedIssue=APPLICS-794

Useful information to review or test

Type of change 🧩

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[x] I have performed a self-review of my own code
[x] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[x] I have referenced the ticket number above
[x] I have provided a description of the ticket
[x] I have included unit tests to cover any testable code changes

:tada: This PR is included in version 1.14.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.29.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.35.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


.Net: Bug: Azure-hosted Open-Source Models (e.g., Mistral Nemo) fail with Kernel Functions in .NET

Describe the bug
Semantic Kernel Functions in .NET using Microsoft.SemanticKernel.Connectors.AzureAIInference do not work with Azure-hosted open-source models like "Mistral Nemo," even though these models support Function Calls. The same setup works fine with GPT models, and in Python, it works with Azure AI without any issues. This seems to be a .NET-specific issue with Semantic Kernel.
To Reproduce
Steps to reproduce the behavior:

Deploy an open-source model (e.g., "Mistral Nemo") in Azure AI.
Integrate the connector Microsoft.SemanticKernel.Connectors.AzureAIInference.
Use PromptExecutionSettings with FunctionChoiceBehavior.Auto().
Implement and execute a Semantic Kernel Function.

Expected behavior
The Semantic Kernel Function should execute successfully using Function Calls with the Azure-hosted open-source model, similar to how it works with GPT models or with Python implementations.
Screenshots
Not applicable
Platform

OS: Windows
IDE: Visual Studio 2022
Language: C#
Source:

Semantic Kernel version: 1.32.0
Microsoft.SemanticKernel.Connectors.AzureAIInference version: 1.32.0-beta

Additional context

The same functions work locally with models like LM Studio (Beta) or Ollama.
In Python, Function Calls with Azure-hosted models work as expected.
This issue seems specific to the Semantic Kernel in .NET when using Azure AI.

Please provide guidance or a fix to enable Semantic Kernel Functions to work with Azure-hosted open-source models.

@markwallace-microsoft can you take a look?

@GregorBiswanger I created a sample for this and tested with Mistral Nemo and didn't see any issues. Take a look here: https://github.com/microsoft/semantic-kernel/pull/9954

Hi @markwallace-microsoft,
After further investigation, I’ve identified that the issue specifically occurs when streaming is enabled for the Azure-hosted Open Source Models (e.g., Mistral Nemo) using Semantic Kernel in .NET. Here’s what I tested:
What I tested:

Validation of function parameters:

I ensured all functions were configured with their required parameters correctly. There were no missing or misconfigured parameters.

Simplified system prompts:

I reduced the complexity of the system prompt, removing Markdown and special encodings to rule out parsing issues. This worked fine but didn’t resolve the issue when streaming was enabled.

Disabling Streaming:

When I disabled streaming, the function calls worked perfectly. This pinpointed the issue to be specific to the streaming functionality.

Code that does not work with Streaming:
#pragma warning disable SKEXP0070

using Microsoft.Extensions.DependencyInjection;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.Connectors.AzureAIInference;
using OllamaApiFacade.Extensions;
using SemanticFlow.DemoWebApi;

var azureKeyVaultHelper = new AzureKeyVaultHelper("https://XXX.vault.azure.net");
var endpoint = await azureKeyVaultHelper.GetSecretAsync("AZURE-MINISTRAL-NEMO-ENDPOINT");
var apiKey = await azureKeyVaultHelper.GetSecretAsync("AZURE-MINISTRAL-NEMO-KEY");

// Kernel setup
var builder = Kernel.CreateBuilder()
    .AddAzureAIInferenceChatCompletion("Mistral-Nemo-oclsi", apiKey, new Uri(endpoint));

// Use Burp Suite proxy for analysis backend communication
// builder.Services.AddProxyForDebug();

var kernel = builder.Build();

// Import plugin functions
kernel.ImportPluginFromFunctions("HelperFunctions",
[
    kernel.CreateFunctionFromMethod(() => new List<string> { "Squirrel Steals Show", "Dog Wins Lottery" },
        "GetLatestNewsTitles", "Retrieves latest news titles."),
    kernel.CreateFunctionFromMethod(() => DateTime.UtcNow.ToString("R"),
        "GetCurrentUtcDateTime", "Retrieves the current date time in UTC."),
    kernel.CreateFunctionFromMethod((string cityName, string currentDateTime) =>
    {
        if (string.IsNullOrEmpty(cityName) || string.IsNullOrEmpty(currentDateTime))
        {
            throw new ArgumentException("cityName and currentDateTime are required.");
        }
        return cityName switch
        {
            "Boston" => "61 and rainy",
            "London" => "55 and cloudy",
            "Miami" => "80 and sunny",
            "Paris" => "60 and rainy",
            "Tokyo" => "50 and sunny",
            "Sydney" => "75 and sunny",
            "Tel Aviv" => "80 and sunny",
            _ => "31 and snowing",
        };
    }, "GetWeatherForCity", "Gets the current weather for the specified city, using the city name and current UTC date/time.")
]);

// Settings with Streaming Enabled
var settings = new AzureAIInferencePromptExecutionSettings { FunctionChoiceBehavior = FunctionChoiceBehavior.Auto() };

var chatHistory = new ChatHistory();
chatHistory.AddUserMessage("What is the weather in Tokyo based on the current date and time?");

// Streaming with IChatCompletionService
var chatCompletionService = kernel.Services.GetRequiredService<IChatCompletionService>();

try
{
    // Stream the response
    await foreach (var message in chatCompletionService.GetStreamingChatMessageContentsAsync(chatHistory, settings, kernel))
    {
        if (message.Role.HasValue)
        {
            Console.Write($"{message.Role.Value}: ");
        }
        if (!string.IsNullOrEmpty(message.Content))
        {
            Console.Write(message.Content);
        }
    }
    Console.WriteLine("\nStreaming completed.");
}
catch (Exception ex)
{
    // Log any exceptions
    Console.WriteLine($"Error: {ex.Message}");
}

Cheers,
Gregor

Thanks for the detailed investigation @GregorBiswanger. I suspect this is an issue in the Azure SDK, will continue to investigate.

@markwallace-microsoft In combination with IChatCompletionService and PromptExecutionSettings instead of AzureAIInferencePromptExecutionSettings, it works without duplicating tool entries in the request. The 'Function Call' then works perfectly.


Can you explain more about smpl transform?

Thank you for your amazing jobs!
I have a few questions from the preprocessing codes.

Can you explain more about below function?
Is there a reference world coordinate system?
Is this code translating the camera to a coordinate system based on smpl?
Why do you add hip?
Why do you do inverse?
What is "we assume" reference?

# transform SMPL such that the target camera extrinsic will be met
def transform_smpl(curr_extrinsic, target_extrinsic, smpl_pose, smpl_trans, T_hip):
    R_root = cv2.Rodrigues(smpl_pose[:3])[0]
    transf_global_ori = (
        np.linalg.inv(target_extrinsic[:3, :3]) @ curr_extrinsic[:3, :3] @ R_root
    )

    target_extrinsic[:3, -1] = (
        curr_extrinsic[:3, :3] @ (smpl_trans + T_hip)
        + curr_extrinsic[:3, -1]
        - smpl_trans
        - target_extrinsic[:3, :3] @ T_hip
    )

    smpl_pose[:3] = cv2.Rodrigues(transf_global_ori)[0].reshape(3)
    smpl_trans = np.linalg.inv(target_extrinsic[:3, :3]) @ smpl_trans  # we assume

    return target_extrinsic, smpl_pose, smpl_trans

Thank you once again.

Hi, thank you for your interest. This function mainly transforms the SMPL model properly so that we can still project the SMPL mesh into image space using the target camera extrinsic. And our target camera has the same orientation as the OpenGL camera. So it simply converts the SMPL model to an OpenGL coordinate system so that the normal rendering (color coding) is compatible with off-the-shelf human normal predictors like PIFuHD/ICON etc.
The hip position here plays a role to translate SMPL model to be rooted in the origin since by default, the SMPL model has a translation (hip to origin) to the origin in the SMPL space.
The comment for "we assume" is not complete (sorry for that). It's actually we assume R'_cam @ T'_smpl = T_smpl where ' denotes the values in the target coordinate system. We have the freedom when solving T'_smpl and T'_cam and this assumption just makes the calculation easier.
But of course, this step can be simply removed without hurting the final results. Just a different color coding for the rendered normal maps.


Docker run stuck after certificate generation

After certificate generation it just waits, can someone please help me out with this

Facing the same issue. What to do next?

When you run with the interactive command
docker run -it -p 80:80 -p 443:443 -p 5222:5222 -p 8080:8080 -p 8443:8443 -p 8222:8222 -p 8199:8199 whatsapp_proxy:1.0

it will run and show messages, you can connect now with ports 80, 443 etc.

@mgholam running with the same command but still facing issue

@slawlor this issue occurs even after correcting file endings

Have you tried connecting to the host once this is "stuck"? If you don't daemonize the container (passing -d to docker run) then the host is alive and waiting for connections. Try going to http://localhost:8199


Spaces module not affected by font change

The status_bar_text_font variable is not applying to the spaces module.
To illustrate this issue, I set the font to 18

As you can see, all of the other text in the status bar is size 18 except for the number 1, 2 and 3 in the spaces module which stay the same size no matter what font size I set

This is because even with regular alphanumeric glyphs for your space "icons", it's still considered the icon font.
So, you need to set the size in the  status_bar_icon_font option (or if you're on recent unreleased versions, just the icon_font option).
Hope that makes sense :)

Courtesy tag (sorry I know it's an old issue - I just inherited project ownership) @nwaywood @knowler @bry-guy

Thanks - appreciate the response, and thanks for your contributions 😃


Add ui team as codeowners for ui/ directory

Description
Res ipsa loquitur.
Checklist
Does not apply
Testing Performed
Here I tell how I validated my change
Can only be tested after merge, when I PR which touches the ui/ directory is submitted.
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

Res ipsa loquitur.

Too bad check-title does not read Latin :)


IoT Central promotion content

[x] Add  “What’s new” section on the DevKit landing page. So the IoT Central integration could be our first piece of news for it.
[x] Add a mini solution tile in the Project Catalog, that will point to the tutorial doc.

Resolved.


Added falsy generator

I figured this would be a good small start to test the waters. I essentially copied your bool package and modified it to be equivalent to your falsy code from your 1.X chance.js file. I left your package.json w/ author and license and all in place, only modifying tags and dependencies. Comments were sourced from your docs and I filled in the blanks where needed. There is one breaking change: Your default pool in 1.X didn't actually include undefined. I added it to match the docs. Anything missing? Is there anywhere you wanted contributors to sign off?

@paarthenon this is great! apologies for the delay in review here, but thank you this is just the kind of thing I'd love to accept!


Interface is not on expected channel

Why I am getting this error :

upto 100 times ...
My channels are:

hcxdumptool print an information:
"interface is already in monitor mode"
How did you set this monitor mode?
Please do the following steps:
remove WLAN adapter
insert WLAN adaper
stop all services that take access to the adaper (NetworkManager and wpa_supplicant).
Do not use iw to set monitor mode
run the following commands and comment output
$ sudo hcxdumptool -i wlan0 --check_driver
$ sudo hcxdumptool -i wlan0 --check_injection
If you receive that warning, hcxumptool is not able to set a channel.
This happens if NETLINK (done by iw) is in use or if another tool take access to the device.
Please notice:
The rtl88xxau driver supplied by the kernel doesn't support monitor mode and packet injection. KALI is supplying a third party kernel that depend on NETLINK. I assume it is the aircrack-ng driver from here:
https://github.com/aircrack-ng/rtl8812au
Thiss driver depend on NETLINK. It will not work with hcxdumptool:
https://github.com/aircrack-ng/rtl8812au/issues/587

Are you running airodump-ng in parallel with hcxdumptool? airodump-ng use an internal channel hopper that interfere with hcxdumptool's internal channel hopper. That will not work.

By latest commit, I added an information which tool try to take access to the device while hcxdumptool is running.

Are you running airodump-ng in parallel with hcxdumptool? airodump-ng use an internal channel hopper that interfere with hcxdumptool's internal channel hopper. That will not work.

I got this  after running
$ sudo hcxdumptool -i wlan0 --check_driver
$ sudo hcxdumptool -i wlan0 --check_injection

Ok, thanks for your answers.
First of all some remarks:
airodump-ng is a passive dumper that receive packets. It doesn't transmit, but it will hop on all channels as default.
hcxdumptool is an active attack tool. It transmit and it receive packets. Also it hops on channels (depending on channel options).
Therefore after tranmitting a packet it must stay on the channel until it received the answer from the target. If another tool
changed the channel in this time, hcxdumptool will print an ERROR and terminate after 100 ERRORs, because I can't allow to spam this channels (because we will never get an answer due to third party channel change).
Your command line will not do what you expected, because you're missing some important options.
$ hcxdumptool -i wlan0 -o galleria.pcapng -c 1
will run without any status messages. If you would like to see whats going on, you must enable status messages as described in  help
--enable_status=<digit>            : enable real-time display (waterfall)
                                     only incomming traffic
                                     only once at the first occurrence due to MAC randomization of CLIENTs
                                     bitmask:
                                         0: no status (default)
                                         1: EAPOL
                                         2: ASSOCIATION and REASSOCIATION
                                         4: AUTHENTICATION
                                         8: BEACON and PROBERESPONSE
                                        16: ROGUE AP
                                        32: GPS (once a minute)
                                        64: internal status (once a minute)
                                       128: run as server
                                       256: run as client
                                       512: EAP
                                      1024: EAP NAK
                                     characters < 0x20 && > 0x7e are replaced by .
                                     example: show everything but don't run as server or client (1+2+4+8+16 = 31)
                                              show only EAPOL and ASSOCIATION and REASSOCIATION (1+2 = 3)

$ hcxdumptool -i wlan0 -o galleria.pcapng -c 1 --enable_status=31
will show you what's going on.
You received 2 warnings that other services take access to the device and hcxdumptool is not able to control it:
warning: NetworkManager is running with pid 941
warning: wpa_supplicant is running with pid 1548
You have to stop them before you start hcxdumptool:
$ sudo systemctl stop NetworkManager.service
$ sudo systemctl stop wpa_supplicant.service
Don't forget to restart the 2 services when hcxdumptool terminates, otherwise KALI will not have access to the devices.
$ sudo systemctl start NetworkManager.service
$ sudo systemctl start wpa_supplicant.service
Please notice:
hcxdumptool and hcxtools are analysis tools and totally different to aircrack-ng suite.
I strongly recommend to forget all what you know from aircrack-ng, because that procedure will not work on hcxdumptool/hcxtools/hashcat and/or john!
Also don't expect that the driver is working as expected, mostly due to its NETLINK dependency but also several issues:
https://github.com/aircrack-ng/rtl8812au/issues
https://github.com/aircrack-ng/rtl8814au/issues
https://github.com/aircrack-ng/rtl8188eus/issues
Christian is doing a great job on this drivers, but they are outdated. Successor will be this one after leaving alpha status:
https://github.com/kimocoder/realtek_rtwifi

Closed this issue because it is not related to hcxdumptool, but you can still ask your questions here.
airodump-ng is running in parallel with hcxdumptool,  took access to the device and changed channels.
It is recommended in help not to do this:
usage  : hcxdumptool <options>
         press ctrl+c to terminate hcxdumptool
         press GPIO button to terminate hcxdumptool
         hardware modification is necessary, read more:
         https://github.com/ZerBea/hcxdumptool/tree/master/docs
         do not set monitor mode by third party tools
         do not run hcxdumptool on logical (NETLINK) interfaces (monx, wlanxmon)
         do not run hcxdumptool in combination with tools (channel hopper), that take access to the interface (except: tshark, wireshark, tcpdump)

After Performing the commands as said. I got this driver error now.
On Thu, Feb 4, 2021 at 6:03 PM ZerBea<EMAIL_ADDRESS>wrote:

Closed this issue because it is not related to hcxdumptool, but you can
still ask your questions here.
airodump-ng is running in parallel with hcxdumptool, took access to the
device and changed channels.
It is recommended in help not to do this:
usage  : hcxdumptool
press ctrl+c to terminate hcxdumptool
press GPIO button to terminate hcxdumptool
hardware modification is necessary, read more:
https://github.com/ZerBea/hcxdumptool/tree/master/docs
do not set monitor mode by third party tools
do not run hcxdumptool on logical (NETLINK) interfaces (monx, wlanxmon)
do not run hcxdumptool in combination with tools (channel hopper), that take access to the interface (except: tshark, wireshark, tcpdump)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ZerBea/hcxdumptool/issues/161#issuecomment-773272514,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFM7RTVSD2ECUVDKVC6VEU3S5KHZ5ANCNFSM4XBJ37JA
.

Can you please comment the driver ERROR message?

Stop airopdump-ng before you start hcxdumptool.

Aircrack-ng suite is really a great suite, especially for beginners and all included tools work perfect with each other.
But if you run hcxtools/hcxdumptool in combination with them it will lead to unexpected results.


Choosing object definitions in categories

I'm trying to represent the Z3 Monad as a Kleisli category, because I'd love to write solver equations using simple, boolean+numeric Haskell functions. However, booleans and other types in Z3 are
not distinguished objects in that category: There is only one object, AST, with all morphisms being endomorphisms on that object.

Sounds like a wonderful application of compiling to categories! I'd try using a phantomly typed wrapper. As an example, see the phantom Syn category in ConCat.Syntactic.

One place where I'm having difficulties with the phantom approach is defining IfCat:
newtype Z3Cat a b = Z3Cat { runZ3Cat :: Kleisli Z3 AST AST }

instance Category Z3Cat where
    id  = Z3Cat id
    Z3Cat f . Z3Cat g = Z3Cat (f . g)

instance IfCat Z3Cat a where
    ifC = Z3Cat $ Kleisli $ ???

The function I want to use is mkIte:
mkIte :: MonadZ3 z3 => AST -> AST -> AST -> z3 AST

However, because my phantom types are not communicating the fact that a product is being used for the argument, I have no way of getting the separate arguments to mkIte.

I see. I had a similar challenge with generating circuits. My solution there was to define a GADT that contains a type-based structure that I can manipulate and then later flatten. Something like the following:
data E :: * -> * where
  PrimE :: AST -> E a
  PairE :: E a -> E b -> E (a,b)

newtype Z3Cat a b = Z3Cat { runZ3Cat :: Kleisli Z3 (E a) (E b) }

instance IfCat Z3Cat a where
  ifC = Z3Cat $ Kleisli $ \ (PairE (PrimE c) (PairE (PrimE t) (PrimE e))) ->
          PrimE <$> mkIte c t e

You'll probably really want to allow non-prim Es for t and e (the then and else arguments). See prodIf in ConCat.Category and its use in ConCat.Circuit.
In this style, Z3Cat is no longer a phantom type directly. Instead, E is the phantom type in a more structured way.

Ah, that makes sense, will try it tonight!

OMG

Ok, here's my equation for the solver, written in plain Haskell, using the new Z3Cat:
equation :: (Num a, Ord a) => a -> a -> Bool
equation x y =
    x < y &&
    y < 100 &&
    0 <= x - 3 + 7 * y &&
    (x == y || y + 20 == x + 30)

Here's how I run the solver:
    res <- evalZ3With Nothing opts $ do
        x <- mkFreshIntVar "x"
        y <- mkFreshIntVar "y"
        PrimE ast <-
            runKleisli (runZ3Cat (ccc @Z3Cat (uncurry (equation @Int))))
                       (PairE (PrimE x) (PrimE y))
        assertShow ast
        -- check and get solution
        fmap snd $ withModel $ \m ->
            catMaybes <$> mapM (evalInt m) [x, y]
    case res of
        Nothing  -> error "No solution found."
        Just sol -> do
            putStrLn $ "Solution: " ++ show sol

And here's the result, which also show you the equation we submitted to Z3:
(let ((a!1 (ite (<= 0 (+ (- x!0 3) (* 7 y!1)))
                (ite (= x!0 y!1) true (= (+ y!1 20) (+ x!0 30)))
                false)))
  (ite (< x!0 y!1) (ite (< y!1 100) a!1 false) false))
Solution: [-8,2]

Nice!
Next, how about an easy-to-use "run" function, say
runZ3 :: Z3able a => Z3Cat a Bool -> IO (Maybe a)

This is a great example of compiling to categories. If it's okay with you, I'd love to show it off at work and in my keynote at Lambda Jam in Sydney next month.

Funny, I was just thinking about an easier run function during dinner now. :)  And yes! The example is yours to use as you see fit.  I think I'll package it up and put it on Hackage, once I've done a bit more testing. I'd also like to add support for internal homs, since Z3 allows registering "functions" by specifying the sorts and arity.

I've created a project for this example: https://github.com/jwiegley/z3cat

Cool. How do you build & run the tests? After cabal-installing, I tried the following:
bash-3.2$ cabal test
cabal: Ambiguous build target 'z3cat'. It could be:
lib:z3cat (component)
test:z3cat (component)

Let me rename the test.

Thanks. The test works for me now.


Possible redirect to showcase form

I was thinking if it would be beneficial if we had a potential redirect  eg. /submit or similar, which would redirect to the passenger showcase form.
https://thecodingtrain.com/guides/passenger-showcase-guide

Yes, I agree, great idea!

Thanks again to @M0nica!


#94 file

From #94
List of Container Packages with HIGH CVEs
Container Packages detected
HIGH - file
(RECURRENT) https://github.com/advisories/GHSA-m9jv-2cqm-h52c: Unknown vulnerability in the "Automatic File Content Type Recognition (AFCTR) Tool version of the file package before 3.41, related to "a memory allocation problem," has unknown impact.
(RECURRENT) https://github.com/advisories/GHSA-w22m-7gfq-73mf: Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.
(RECURRENT) https://github.com/advisories/GHSA-h28w-vfj4-vh5j: Integer underflow in the file_printf function in the "file" program before 4.20 allows user-assisted attackers to execute arbitrary code via a file that triggers a heap-based buffer overflow.
(RECURRENT) https://github.com/advisories/GHSA-q6xr-rq9m-h889: The gnu regular expression code in file 4.20 allows context-dependent attackers to cause a denial of service (CPU consumption) via a crafted document with a large number of line feed characters, which is not well handled by OS/2 REXX regular expressions that use wildcards, as originally reported for AMaViS.
(RECURRENT) https://github.com/advisories/GHSA-v5gg-89jv-v8h3: Multiple integer overflows in the (1) cdf_read_property_info and (2) cdf_read_sat functions in file before 5.02.
(RECURRENT) https://github.com/advisories/GHSA-r8jc-hp6c-qc8j: Multiple buffer overflows in the (1) cdf_read_sat, (2) cdf_read_long_sector_chain, and (3) cdf_read_ssat function in file before 5.02.
(RECURRENT) https://github.com/advisories/GHSA-462f-9822-gvw7: Multiple integer overflows in Christos Zoulas file before 5.02 allow user-assisted remote attackers to have an unspecified impact via a malformed compound document (aka cdf) file that triggers a buffer overflow.
(RECURRENT) https://github.com/advisories/GHSA-v7cp-96gw-54m4: file before 5.18, as used in the Fileinfo component in PHP before 5.6.0, allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a zero root_storage value in a CDF file, related to cdf.c and readcdf.c.
(RECURRENT) https://github.com/advisories/GHSA-px78-rrg6-77hf: readelf.c in file before 5.22, as used in the Fileinfo component in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5, does not consider that pread calls sometimes read only a subset of the available data, which allows remote attackers to cause a denial of service (uninitialized memory access) or possibly have unspecified other impact via a crafted ELF file.
(RECURRENT) https://github.com/advisories/GHSA-p546-wvpp-2wvf: The file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo component in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5, mishandles continuation-level jumps, which allows context-dependent attackers to cause a denial of service (buffer overflow and application crash) or possibly execute arbitrary code via a crafted magic file.
(RECURRENT) https://github.com/advisories/GHSA-gg3j-j3hx-hjx5: cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR elements, which allows a heap-based buffer overflow (4-byte out-of-bounds write).
(RECURRENT) https://github.com/advisories/GHSA-4h69-pc3c-cm6j: do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to file_printf and file_vprintf.
(RECURRENT) https://github.com/advisories/GHSA-qvgv-3xc3-r752: do_core_note in readelf.c in libmagic.a in file 5.35 allows remote attackers to cause a denial of service (stack corruption and application crash) or possibly have unspecified other impact.

I could not understand exactly to what package is this item referring to.
I presume that it could be https://pkgs.alpinelinux.org/package/edge/main/x86/file
but that utility does not exist on the image.
(I also do not know what image was used for the scan. Current test environment image is v0.9.7 https://hub.docker.com/layers/pharmaledger-imi-fgt/joaoluispdm/pharmaledger-imi-fgt/v0.9.7/images/sha256-45346da2b972515244f2315a75e56832e4f65c7aaf7ff81b593e1cb62ca42f90?context=explore
)

Considering issue closed (same arguments as #97 or #101).


pdf.js rendering on mobile webkit slow

Just playing around with the example demo, it takes about 6-10 seconds to render each page.
Is there any way to speed up this rendering? Possibly simplify the rendering (remove images, etc.)?

@yurydelendik I am facing same issue. Loading a page on ios is taking so long (~15-20 seconds).
Is there anything I can do or disable in case I don't want that will enhance the performance.

Thanks in advance.

@yurydelendik I am facing same issue. Loading a page on ios is taking so long

@mhh1422 It's almost impossible to recommend anything without seeing PDF and measure which JS functions are slow (via browser's profiler). See https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#what-types-of-pdf-files-are-slow-in-pdfjs-can-i-optimize-a-pdf-file-to-make-pdfjs-faster


[Bug?]: ACCESS_KEY_ID & SECRET_ACCESS_KEY should be renamed by codemod

Self-service

[ ] I'd be willing to implement a fix

Template name
v2-to-v3
Describe the bug
When running the codemod the .env variables ACCESS_KEY_ID and SECRET_ACCESS_KEY are not renamed to their updated versions: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. According to the documentation these are the new names and I was constantly getting access denied errors when uploading to my S3 bucket because these .env variables had to be renamed and I didn't see this change mentioned in the upgrade guide. Here are the two scenarios where it could affect the developer:

Developer uses ACCESS_KEY_ID and SECRET_ACCESS_KEY in their .env and refers to these variables in the code. The codemod should target this use case.

For example,
		const s3 = new S3({
				accessKeyId: process.env.ACCESS_KEY_ID,
				secretAccessKey: process.env.SECRET_ACCESS_KEY,
				region: process.env.REGION,
			});

should be changed by the codemod to
		const s3 = new S3({
				accessKeyId: process.env.AWS_ACCESS_KEY_ID,
				secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
				region: process.env.REGION,
			});

Developer initializes an empty S3 client and uses the CLI to configure their .env variables. Not sure if the codemod can target this use case...might just need a warning in the docs?

		const s3 = new S3({});

Input code
Incorrect code in v3:
		const s3 = new S3({
				accessKeyId: process.env.ACCESS_KEY_ID,
				secretAccessKey: process.env.SECRET_ACCESS_KEY,
				region: process.env.REGION,
			});
			const params = {
				Bucket: process.env.BUCKET_NAME,
				Key: `test.png`,
				Body: 'testBody',
			};
			const { Location } = await new Upload({
				client: s3,
				params,
			}).done();

Observed failure
This code returns an InvalidAccessKeyId response from AWS
Expected output
200 response
Environment
This is the version of the package I ran with npx<EMAIL_ADDRESS>
Additional context
No response

This issue happens, as the accessKeyId and secretAccessKey are required to be passed in credentials object in JS SDK v3 as follows:
const s3 = new S3({
  credentials: {
    accessKeyId: process.env.ACCESS_KEY_ID,
    secretAccessKey: process.env.SECRET_ACCESS_KEY,
  },
  region: process.env.REGION,
});

This can be implemented as part of basic AWS.Config support in https://github.com/awslabs/aws-sdk-js-codemod/issues/528#issuecomment-1663047630

This issue happens, as the accessKeyId and secretAccessKey are required to be passed in credentials object in JS SDK v3 as follows:
const s3 = new S3({
  credentials: {
    accessKeyId: process.env.ACCESS_KEY_ID,
    secretAccessKey: process.env.SECRET_ACCESS_KEY,
  },
  region: process.env.REGION,
});

This can be implemented as part of basic AWS.Config support in #528 (comment)

Hi @trivikr, thanks for your response. I think you meant the opposite? I updated to S3 and the calls fail when using ACCESS_KEY_ID and SECRET_ACCESS_KEY as names. I had to rename both of these to AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Prepending the names w/AWS is what the AWS docs instruct to do for V3:
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/loading-node-credentials-environment.html


Make substitutions in example commands clearer

In section "Push image to registry" example commands use the same name in angle brackets to refer to the login server and the fully qualified version (i.e. with .azurecr.io) in different steps. This is easy to miss - it'd be good to make it clear in the example command that the fully qualified version is needed.

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

ID: ba491964-1f3c-6833-fc0b-ad57606ebced
Version Independent ID: d507f1aa-0e8e-9abc-2dd8-1b152ee530f9
Content: Quickstart - Create registry in portal - Azure Container Registry
Content Source: articles/container-registry/container-registry-get-started-portal.md
Service: container-registry
GitHub Login: @dlepow
Microsoft Alias: danlep

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

@sehaswell - Thanks for the feedback and suggestion. I can see that it's easy to miss the distinction between the registry resource name and the login server name in the example. I'll submit a doc update soon to address this. Cheers
#in-progress

@sehaswell - Update to doc published with better distinction between registry name and login server name. Thanks for raising the issue.
#please-close

Thanks :)


Extract only TCP protocol and communication code

Hi,
I am currently experimenting with a TIM781 and this repository but i would like to integrate it inside my own project.
As ROS_VERSION==0, it does not fit my need for the following reason :

I already have a configuration file so i'd rather not use a launch file
I don't use argc, argv to configure the lidar but SickScanInitByCli always segfault or throw an error if i try to use it by creating argv in code only. It's unclear what i can give it especially since SickScanApiCreate also takes argv.
There is no method available to change the leddar configuration dynamically once it has been init.
It's pure C code which is not great to use inside my c++17 program

As ROS_VERSION>0 i have to start another node on the side which i have to manage on top of my own. I would like to avoid doing that if possible.
I haven't checked so i don't know if i can send ROS command to change internal configuration on the fly.
Maybe i can use installed ROS workspace inside my own program without starting anything else, if possible, do you have an example of that?
What would work best for me is to use only the TCP layer code, add it to my project, do the ROS part and have a better control on when commands are sent.
What files should i copy and modify to achieve that?
I looked at everything in tcp, sick_scan_common_nw and other but it's not easy to know what i need and what i don't.
Some things are also confusing, for example SopasAnswer and SopasEventMessage are declared twice.
Thanks for your insight.

Thanks for your feedback. In general we recommend to use sick_scan_xd in combination with ROS-1 or ROS-2. ROS is a powerful framework not only for robotics but also for general tasks like point cloud visualisation or interprocess communication. If ROS is an option, go for it. Note that ROS_VERSION>0 requires a fully installed ROS-1 or ROS-2.
Dynamic changes of the lidar configuration are not supported. Note that modifications in the lidar configuration may depend on conditions. Using ROS, you can use ros service "ColaMsg" to directly send SOPAS telegrams including configuration parameters to the lidar. See the TiM781 telegram listing for details.
If ROS is not an option (ROS_VERSION==0), we recommend to use the sick_scan_xd API as described at https://github.com/SICKAG/sick_scan_xd/blob/master/doc/sick_scan_api/sick_scan_api.md. It is not recommended to extract, modify or integrate parts of the sick_scan_xd source files. The sick_scan_xd driver provides a C-API, since most programming languages support C-bindings.
A launch file contains the configuration and parameters of a lidar. It is recommended to keep these parameters separate from other application specific configuration files.
If you are not using argc and argv from a main function, you can call SickScanInitByCli with a string array, e.g.
const char* argv[] = { "my_application", "sick_tim_7xx.launch", "hostname:=<IP_ADDRESS>" };
SickScanApiHandle apiHandle = SickScanApiCreate(3, argv);
SickScanApiInitByCli(apiHandle, 3, argv);

See the C++ examples at https://github.com/SICKAG/sick_scan_xd/blob/master/doc/sick_scan_api/sick_scan_api.md#usage-example.


Suggestion: copy constructors

hi, Thanks for the amazing tool. A possibly helpful feature would be to generate copy constructors.
class Foo {
 private int bar;
 public Foo( int bar) { this.bar = bar; } // already supported.
 public Foo( Foo other ) { this.bar = other.bar; } // <-- this kind of stuff here.
}

Hi @raould. It sounds like you want to clone another instance. I think this request exists already as #230.


Enable EKS tagging

Very nice addition, but what if there are multiple clusters on same VPC? It should include possibility to create multiple instances of kubernetes.io/cluster/<cluster_name> tags.

thanks @nehanikam for this PR :tada: I don't know if this is something we will be incorporating into the module at this time. I think the best option for something like this is to have a flexible tagging scheme. This PR looks to make changes to a wide range of networking resources and I don't think that complexity is necessary at this time. There are a number of EKS deployments using this module as is so I think we will have to pass on this proposed change

FYI, subnet tagging is no longer needed

Closing this issue, as discussed above by @bryantbiggs and @DrFaust92


Update tapir-core, tapir-json-zio, ... to 1.10.5

About this PR
📦 Updates

com.softwaremill.sttp.tapir:tapir-core
com.softwaremill.sttp.tapir:tapir-json-zio
com.softwaremill.sttp.tapir:tapir-netty-server

from 1.10.0 to 1.10.5
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.softwaremill.sttp.tapir" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.softwaremill.sttp.tapir" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #294.

Superseded by #350.


added sftp job/task/tests

adds sftp job and tasks as part of in band management
depends on https://github.com/RackHD/on-core/pull/116
@RackHD/corecommitters

*** BUILD #556 ***

:+1: after my comment is either fixed or clarified

test this please

*** BUILD #560 ***

test this please

test this please

👍

:+1:


Add feathers-vue-nuxt to examples

Added my implementation of feathers with both Vue.js or Nuxt.js

Great, thank you!


tfx execution error

Expected Behavior
be able execute tfx without systematic error
Actual Behavior
For any tfx command i have the following error message
Using config file: /home/j.akasse/.tfx.hcl
List Workspaces for Organization: tfe_gop
2024/02/09 12:39:56 failed to list workspaces: invalid character '<' looking for beginning of value
Steps to Reproduce the Problem

Specifications
**tfx version:0.1.2
**Terraform Cloud or Terraform Enterprise:TFC
Terraform Enterprise Version: if applicable
**Terraform Code Version:1.6.6

Thank you for submitting an issue here!
A few questions to help me identify the issue:

Do you have the same issue with version 0.1.1?
What platform are you running on? Windows, Mac, Linux, etc...
Can you share your .tfx.hcl file (secrets redacted of course)?

Cheers!


Added a constraint for the User role

There is a validation in place already, but just to be thorough, I've
added the constrain in the database schema.

Good to merge :+1:


Improve usage details on overriding USER command in Docker run refere…

Improve usage details on overriding USER command in Docker run reference page. Fixes #20232
Signed-off-by: Sian Lerk Lau<EMAIL_ADDRESS>

LGTM

LGTM


Error to open file

I can't open file/folder and i got error message.

Help me!
Thanks.

Which acode version (also include version code) are you using and where did you install it? Also, which device, manufacturer, and android version?


Automine functionality

Overview
Properly support disabling and enabling automine
(Sorry I thought there was a ticket for this already but not seeing it and it's been requested by the community)
Specification
class ChainManager:
    def set_automine(automine_active: bool): ...

class ProviderAPI:
    @raises_not_implemented
    def set_automine(automine_active: bool): ...

[ ] Support in EthTester if possible.
[ ] Support in geth if possible (only applies to ephemeral, local geth)
[ ] Definitely add support to hardhat plugin next
[ ] Definitely add support to foundry plugin next

Dependencies
Include links to any open issues that must be resolved before this feature can be implemented.

I approve of this design

could it be a property with a setter?
>>> chain.automine
True
>>> chain.automine = False
(sends rpc request to disable automine if it's enabled)

could it be a property with a setter?
>>> chain.automine
True
>>> chain.automine = False
# sends rpc request to disable automine if it was enabled

the description could read something like

Whether to automatically mine a new block after each transaction submitted. Disable automine to pack multiple transactions into a block by hand using chain.mine()

That works for me!

could it be a property with a setter?

I don't like hiding RPC requests because properties. It seems like anything using HTTP should happen in a method.
However, we abuse this everywhere else in the entire framework so I am good with it for consistency's sake.

could it be a property with a setter?

I don't like hiding RPC requests behind properties. It seems like anything using HTTP should happen in a method.

It may not be an RPC request, depending on provider. Like, one could imagine for eth-tester, it literally is just setting a property.
I think it's important to have it feel consistent, but not entirely sure it should be a property either.

could it be a property with a setter?

I don't like hiding RPC requests behind properties. It seems like anything using HTTP should happen in a method.

It may not be an RPC request, depending on provider. Like, one could imagine for eth-tester, it literally is just setting a property.
I think it's important to have it feel consistent, but not entirely sure it should be a property either.

I think it's important to have it feel consistent, but not entirely sure it should be a property either.

Good points!
One other thing I like about methods vs. properties (in general) is that it is easier to add to them without it being as much of a breaking change. For example, adding an optional kwarg-ument.

I'm in support of a method for this instead!


GET VariantAnnotationSet test

A test of the /variantannotationsets/{id}  endpoint is needed. As ids are server-specific, an id will need to be extracted using /variantannotationsets/search to pull out a VariantAnnotationSet. The two records can then be compared.

Fixed in #157


Error occured while using cypress+BDD

Hello,
Could you please help me with this issue?

@badeball  hello,master,I tried to configurate cypress+cucumber,but it pops up above issue,could u please help？

Hey, and thanks for reporting this issue. You need however to adhere to the guidelines for reporting issues. Please read through it and update your issue accordingly.


DNS Advertise won't work on pico rp2040. It needs DNS PTR response to initiate it.

I have the following code
async def setup_mdns():

    responder = Responder(
                            client,
                            own_ip=lambda: local_ip,
                            host=lambda: "W5500_EVB_PICO-{}".format(0),
                            debug = True
                         )

    responder.advertise(
                        "_RANDOM"
                        , "_tcp"
                        , port=5353
                        #, data={"some": "metadata", "for": ["my", "service"]}
                        )

    while True:
        await asyncio.sleep(1)  # Sleep and keep running indefinitely
    ``````

As the title suggest, I am running this code on W5500-EVB-PICO micropython v.1.24.0-preview with `LWIP_MDNS_RESPONDER 0` flag turned off. Nevertheless, what I noticed is that I can only use mdns hostname when I run 'mdns-scan" linux utility in background which request PTR records from all device constantly. If I don't run mdns-scan, then it won't show up. Upon testing multiple non-trivial solutions (mostly because I don't yet properly understood how to use library). I found using the line `client.send_question(DNSQuestion('W5500_EVB_PICO-0.local', TYPE_PTR_ CLASS_IN))` to resolve the issue. But this is crude solution because it requires you to know the hostname or set it to constant. If I try to use `generate_random_postfix()` to randomly generate an id then I can't use the `.send_question()` method since every so often, the inner library seem rename hostname as it calls this function for some procedure. Even using ServiceDiscovery to query local mdns didn't work for me. it listed every device except the one I am hosting. I suspect I was using the same client object to drive both. But regardless, let me know if you have any thoughts on the issue.

EDIT:  I just want to note, turns out the line `client.send_question(DNSQuestion('W5500_EVB_PICO-0.local', TYPE_PTR_ CLASS_IN))` doesn't work. I assume I reached the earlier conclusion because of DNS record in cache and resolving the mdns from there, Sorry about misleading earlier.

PS. you could also use ping to hostname as an alternative to mdns-scan. In addition, I don't know how make the above line wrap for better readability.  I tried editing it but I don't get it. If its not readable I apologize.

Got the solution.
Turns out the In responder.py file, the response for "A" type query matches the domain but doesn't account for lower case strings. As such it fails to lookup domain name set with upper case string/letters.
I changed the code for the line if question.query != self.host_fqdn: to the following line below. just added .lower() to account for lower case strings which some computer automatically converts.
def _on_a_question(self, question: DNSQuestion) -> None:

     if question.query.lower() != self.host_fqdn.lower():
            return


Aurora not detecting games.

For some reason I cant get aurora to trigger when I launch a game, even ones that ive created myself.
The normal desktop mode does seem to work, which makes this weird.
Windows 10 64bit ultimate. App running in admin mode,
followed setup instructions, did the wrapper patches.

It's an issue with process detection. I will see about adding a toggle between two detection methods in the dev build and releasing a test version of it to public this weekend.


Why >electronize start does not start the application?

I have build the simple app as Gregor showed in youtube.
It was built in VS2019, all is ok.
But when I do

dotnet electronize start
the app does not appear.
That is all what I see:

PS E:\MyProjects\CrossPlatform\Federmesser\fmapp5> electronize start
Start Electron Desktop Application...
Microsoft Windows [Version 10.0.17134.765]
(c) 2018 Microsoft Corporation. All rights reserved.
E:\MyProjects\CrossPlatform\Federmesser\fmapp5>dotnet publish -r win-x64 --output "E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\bin"
Microsoft (R) Build Engine version 16.1.54-preview+gd004974104 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 594.66 ms for E:\MyProjects\CrossPlatform\Federmesser\fmapp5\FMApp5.csproj.
C:\Program Files\dotnet\sdk\3.0.100-preview4-011223\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(151,5): message NETSDK1057: You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview [E:\MyProjects\CrossPlatform\Federmesser\fmapp5\FMApp5.csproj]
FMApp5 -> E:\MyProjects\CrossPlatform\Federmesser\fmapp5\bin\Debug\netcoreapp3.0\win-x64\FMApp5.dll
FMApp5 -> E:\MyProjects\CrossPlatform\Federmesser\fmapp5\bin\Debug\netcoreapp3.0\win-x64\FMApp5.Views.dll
FMApp5 -> E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\bin
E:\MyProjects\CrossPlatform\Federmesser\fmapp5>
Skip npm install, because node_modules directory exists in: E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\node_modules
Invoke electron.cmd - in dir: E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\node_modules.bin
Microsoft Windows [Version 10.0.17134.765]
(c) 2018 Microsoft Corporation. All rights reserved.
E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\node_modules.bin>electron.cmd "....\main.js"
stdout: info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://localhost:5057
stdout: info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: E:\MyProjects\CrossPlatform\Federmesser\fmapp5\obj\Host\bin

and silence...
Then I go to the folder and run FMApp5.exe manually  - the same, no app.
What I do wrong?
I have attached my project
FMApp51.zip

Currently we have version 5.22.12 -> Support for Electron version 5, .NET Core 2.2, our release 12.
You used .NET Core 3 preview. Please try it again with an .NET Core 2.2 project.

Thank you. I have build the new app (.NET Core 2.2), the same reaction, I run it but app does not appear.
WA1.zip

Okay, I found your problem.
You need the UseElectron-WebHost extension in the program.cs:
public class Program
{
    public static void Main(string[] args)
    {
        CreateWebHostBuilder(args).Build().Run();
    }

    public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
        WebHost.CreateDefaultBuilder(args)
            .UseElectron(args)
            .UseStartup<Startup>();
}

And remove your fixed url-port assignment.
A tip, first set your application menu and then open the window:
public async void Bootstrap()
{
    var menu = new MenuItem[]
    {
        new MenuItem
        {
            Label = "File",
            Submenu = new MenuItem[]
            {
                new MenuItem
                {
                    Label = "Выход",
                    Click = () => { Electron.App.Exit(); }
                }
            }
        },
        new MenuItem
        {
            Label = "Инфа",
            Click = async () =>
            {
                await Electron.Dialog.ShowMessageBoxAsync("Go-go Pockemon!");
            }
        }
    };

    Electron.Menu.SetApplicationMenu(menu);

    var options = new BrowserWindowOptions
    {
        Show = false
    };

    var mainWindow = await Electron.WindowManager.CreateWindowAsync(options);
    mainWindow.OnReadyToShow += () => { mainWindow.Show(); };
}

Thank you Gregor! Sorry.
das ist mein Fehler :-)


[Bug]: Action fails when params have EOF characters inside them

Is there an existing issue for this?

[ ] I have searched the existing issues

Current Behavior

Original Binding : "((currentItem) => { navigateTo(currentItem.PRODUCTS_ID, {},'NEW_WINDOW')})(JSON.parse('{"PRODUCTS_ID":"https://snipinternet.my.salesforce.com/0011Q00002PAJShQAP                ","PRODUCTS_NAME":"https://snipinternet.my.salesforce.com/5001Q00001GgPuHQAV","PRODUCTS_DESC":"a\nb\nc","PRODUCTS_COST":"","PRODUCTS_STOCK":"","PRODUCTS_CATEGORY":"","rowIndex":"0"}'))"

When a value has \n in that case JSON.parse seems to fail which in the end cause navigateTo to fail.
Steps To Reproduce
This is a sheet link that has demo data where it is reproducible.  https://docs.google.com/spreadsheets/d/1uRnnqyi44h3qtndthbIAMrPsMB6Mm25tVGu-u0sRess/edit?usp=sharing

Add a List Widget
Connect Data in which one of the value containes \n
Add a button to list widget template
Add onClick {{navigateTo(currentItem.SOME_KEY, {},'NEW_WINDOW')}}
See the error

Environment
Production
Version
Cloud

verify if this is already solved with unescape

Hey team! Please add your planning poker estimate with ZenHub @ajinkyakulkarni @ApekshaBhosale @hetunandu @ohansFavour

This issue is still present after unescape, verified both in release and production.

This use case requires smart substitution to be turned on since the input text needs to be escaped for the new lines to be used in the request. We do need an improvement in UX for users to be told when smart substitution is the solve for a problem, but I'll be closing this issue and we can tackle that separately.

@nidhi-nair smart substitution is only for the request right? Here it seems the response is not escaped

IIUC, the repro for this was to run the update query with the reference from the update form widgets. The text field contains a \n that was causing the update query to fail. @Rishabh-Rathod was there something other than this that I am missing?

@nidhi-nair no, the sheet has the \n in the PRODUCTS_ID column and that is returned to the list widget. The button is bound to currentItem.PRODUCTS_ID