Darwin and windows ?

Hey @vearutop
I would like to make a static binary for Darwin and Windows for amd64 and arm64.
I just read the way you did on this at:
https://dev.to/vearutop/building-a-portable-face-recognition-application-with-go-and-dlib-12p1
From what I can see this is build with builder to make the static binary by using docker buildx ?

Hi @gedw99, unfortunately, I'm not knowledgeable enough about building with docker for platforms other than Linux.
But I've tried to build a portable binary for Windows with MinGW-w64 (mostly by following https://github.com/Kagami/go-face?tab=readme-ov-file#windows), it didn't work quite as I expected, I ended up having a few .dll files required to run, you can find archived binary and runtime libraries in release attachment: https://github.com/vearutop/faces/releases/tag/v0.1.4. Maybe this can be automated with GitHub Action running on a windows host, I haven't had time to explore that.
I've seen a gist https://gist.github.com/youhide/121750fc4878801ea8e908080b535beb that might be a good starting point for experimentation.
And as for darwin, I haven't tried building a static binary there. Particular details of building process vary from platform to platform.


Warning banner should disappear when no longer actionable

In #26437, we added a warning banner when a user makes a public stream that they aren't subscribed to private. This banner should disappear when the change to make the stream private is saved. Currently, the banner remains, even though the "Subscribe" action button no longer works.

@zulipbot claim

This is also happening for the event where we click the discard button and do not see the banner going away.


resolves #1275 set fit=contain by default on cover and page background images

@heckj Thanks for reviewing!


How can we know the size of the file uploded in busboy? I want to know the exact size of the file

That's up to you to keep track of. busboy just provides the file streams.

It looks like lib/types/multipart.js calculates the file size already to check fileSizeLimit. Would you guys consider implementing/accepting a PR for that size to be emitted as a property on the FileInfo that already gets returned for bb.on('file'...)?

@gazebosx3 That’s not possible in general. fileSizeLimit is checked as the stream for the file is read, i.e. after the file event is emitted.

@gazebosx3 As @charmander said, that's not possible. You will need to count the bytes yourself as the file streams in if you need the total size when the stream ends.


[Docs] Revamp the contributing.md

Current State:
There are several changes in Meshery & contributing document is not clear enough.
Desired State:
Contributing.md needs some revamping & proper structuring so that new contributors may follow it & get started with Meshery.

Contributor Resources

Meshery documentation site
Meshery documentation source
Instructions for contributing to documentation

@kushthedude if you could highlight the changes you are talking then, it would be easier to make the changes for the person who will take up the issue.

@kushthedude if you could highlight the changes you are talking then, it would be easier to make the changes for the person who will take up the issue.

There a lot of changes which need to be then, that is why the issue is not marked as Good-First-Issue. It needs to be someone who already has meshery set-up & can let know what revamping needs to be done. If the issue would have a single area or a heading to change I would have already highlighted it & made it a good first issue.

Hi @kushthedude I wanted to open an issue to help solve the typos and some grammatical error in the contributing.md and then I saw this. Just as @Nikhil-Ladha said, it will be great if you could highlight the changes so I can work on the issue, I'll ask others too then. Thanks.

Hi @kushthedude I wanted to open an issue to help solve the typos and some grammatical error in the contributing.md and then I saw this. Just as @Nikhil-Ladha said, it will be great if you could highlight the changes so I can work on the issue. Thanks.

You can go ahead with typos & grammatical fixes 👍

Do i open a new issue or mention this issue when i'm done with the edit?

Hi @kushthedude I wanted to open an issue to help solve the typos and some grammatical error in the contributing.md and then I saw this. Just as @Nikhil-Ladha said, it will be great if you could highlight the changes so I can work on the issue. Thanks.

You can go ahead with typos & grammatical fixes 👍

Should i reference this issue when i'm done with my edit, or i should create a new issue?

You can mention this issue only, but instead of saying  This PR fixes you should use  This PR updates. That, will suffice.

Please mention this issue when you open the PR.
On Sun, 2 Aug, 2020, 19:40 Kelechi Precious Nwachukwu, <
<EMAIL_ADDRESS>wrote:

Hi @kushthedude https://github.com/kushthedude I wanted to open an
issue to help solve the typos and some grammatical error in the
contributing.md and then I saw this. Just as @Nikhil-Ladha
https://github.com/Nikhil-Ladha said, it will be great if you could
highlight the changes so I can work on the issue. Thanks.
You can go ahead with typos & grammatical fixes 👍
Should i reference this issue when i'm done with my edit, or i should
create a new issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/layer5io/meshery/issues/1344#issuecomment-667678835,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKQMTLRCQTQNTCZKUINZIGDR6VXVXANCNFSM4PQI2JIA
.

@kushthedude If you or someone else is not already working on it, I can take this one up.

Please go ahead!
On Fri, 14 Aug, 2020, 22:02 Shriti Chandra<EMAIL_ADDRESS>wrote:

@kushthedude https://github.com/kushthedude If you or someone else is
not already working on it, I can take this one up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/layer5io/meshery/issues/1344#issuecomment-674157866,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKQMTLXDLCYJVVQGWST3QCLSAVRK7ANCNFSM4PQI2JIA
.

Hey @chandrashritii is there something that still need to be done on this issue?


Toastmessages Change

As an user of ZITADEL console I want to see the errors as easy as possible, and they should not disappear after I while so If i missed it I don't know what happend.
Acceptance Criteria

[ ] Critical error messages do not disappear after a while (for example errors on forms (missing inputs, wrong format, etc..))
[ ] Critical errors disappear only when I close them or when I redo the action (e.g resend the form)
[ ] The error message is shown next to the input that is wrong

will close this issue at the moment, has never been mentioned by a customer


Update version: kilian.fromscratch version 1.4.3

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/115054&drop=dogfoodAlpha

@wingetbot run


Current npm version does not install

Hi,
I can't seem to get version 1.1.10 or the 1.0.* version to install right now, neither on a Mac nor on a Linux box. It seems to fail in microtime compilation.
Gist with the log of npm install: https://gist.github.com/ktk/53bd664ecf023f929148

You could have a look at my fork https://github.com/alanruttenberg/YASGUI - I also had some installation problems and updated some components.

Thanks, could you do a pull-request to the original repository for this? Would make it easier to merge it.

A bit of a delayed response (holidays):
Strange, I couldnt reproduce this issue. I remember there was an issue with microtime before (see https://github.com/YASGUI/YASGUI/issues/54), but that one is resolved now.
@ktk: What node version and what OS do you use?

@LaurensRietveld yes sorry forgot to mention that. I didn't notice it first, it seems to be a problem with Node 0.12.x but not with 0.10.x.

I've updated to node 0.12.x but did not encounter issues here. Are you working on a clean checked-out version of YASGUI (and YASQE/YASR)?

Interesting it looks like git builds but npm does not. Did you try npm install yasgui?

ha, thanks for catching that one. I simply did not publish YASGUI to npm after resolving #54. I just published a new version to npm, could you try again?

That did the trick, thanks a lot!


move site to S3 instead of github pages

Also deprecate the old cagov/eleventy github action we published to the github actions marketplace because we don't use that anymore

This was completed, site has been running smoothly on AWS S3 + CloudFront for months


defaultVisible

Hello, I can’t seem to pass the "true" value in defaultVisible to a created and registered modal window, how can I do this correctly?
Typescript suggests exactly this method, but no matter how hard I try, I can’t pass the defaultVisible value
const DesktopMenu = loadable(
  () => import('src/entities/menu').then((mod) => mod.DesktopMenu),
  {
    ssr: false,
  }
);

const DesktopMenuWithProps = NiceModal.create(DesktopMenu);

const registar = () => {
  NiceModal.register('desktop-menu', DesktopMenuWithProps, {
    defaultVisible: true,
  });
};

export const ModalProvider: React.FC = ({ children }) => {
  registar();
  return <NiceModal.Provider>{children}</NiceModal.Provider>;
};

defaultVisible is only useful with declarative way: <MyNiceModal defaultVisible .../>
Also, register is expected to be called only once for a modal, don't use it inside a component.
However, to make a modal default visible, you can also use NiceModal.show after registration.

defaultVisible is only useful with declarative way: <MyNiceModal defaultVisible .../>
Also, register is expected to be called only once for a modal, don't use it inside a component.
However, to make a modal default visible, you can also use NiceModal.show after registration.

@supnate I don't know how to use defaultVisible in any NiceModal api，can you provide an example for modal default open scene? It seems that because I haven't manually execute the modal.show() , so modal has not mounted at all.


refactor(clients): Pass log filter string to Session depending on environment

Fixes #2147

Draft because it's stacked on #2148


Added two more apps

Salaam,
I added two more apps so that total number will be 155. I need to edit readme as well but I'm little bit lost because there are two branches. Ok I will do it إن شاء الله when I know how! I'm searching
One small note:
I think we should delete -> Bool from👇🏼
   public func open<E: ExternalApplication>(_ externalApp: E, action: E.ActionType, promptInstall: Bool = false) -> Bool {
And we should delete it here as well:
func openURL(_ url: URL) -> Bool
Because it's really annoying when developer get this warning and then silent it with let _
Result of call to 'open(_:action:promptInstall:)' is unused
I got the above warning for each app when I wrote this for example:
apps.open(Applications.Skitch(), action: .open)
Do you agree with me?

Sorry about the delay with Swift 3. I haven't merged it in the past because there was a bug with Cocoapods, so I couldn't update the podspec. I'll check if the bug has been resolved.
Regarding the comment about the warning, I fixed it using @discardableResult. It will no longer show warnings for you.
Once I merge master, you can submit the PR there.

It's totally fine :) should I close this PR ? Can I help with the Cocoapods bug?

By the way I found this helpful links:
https://drafts4-actions.agiletortoise.com/search?button=&page=49&q=&search_type=apps&utf8=✓
إن شاء الله some day I will try to write script to help us to add all these apps.

Wow, that website is perfect.. I think we should change the framework design a bit before you start writing that script. Adding a swift file per app is not very scalable, and will cause compilation issues and excessive bloat .. So we will need to figure out a way to simplify the framework first.

Ok deal 👍🏼 when you want us to start changing the framework design please could you tell me the suggestions you prefer to do them?

I really don't know yet ... We can discuss possible ideas here

Somehow, I managed to push the new version to Cocoapods. You can now submit the PR again against master branch, if you like.


What happened to negative margins in Bootstrap 5 and above?

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
Note: Entered “macOS” and “Safari” in the drop downs since they are required. But I feel that stuff is not needed for what this issue is reporting.
What happened to negative margins in Bootstrap 5 and above?
A quick check of Bootstrap 4.6.2 still shows them in place. But apparently they are missing from Bootstrap 5.3.3 despite the docs still referencing their use.
The CSS for these classes are as follows; taken from Bootstrap 4.6.2:
.mt-n1,
.my-n1 {
  margin-top: -0.25rem !important;
}

.mr-n1,
.mx-n1 {
  margin-right: -0.25rem !important;
}

.mb-n1,
.my-n1 {
  margin-bottom: -0.25rem !important;
}

.ml-n1,
.mx-n1 {
  margin-left: -0.25rem !important;
}

.m-n2 {
  margin: -0.5rem !important;
}

.mt-n2,
.my-n2 {
  margin-top: -0.5rem !important;
}

.mr-n2,
.mx-n2 {
  margin-right: -0.5rem !important;
}

.mb-n2,
.my-n2 {
  margin-bottom: -0.5rem !important;
}

.ml-n2,
.mx-n2 {
  margin-left: -0.5rem !important;
}

.m-n3 {
  margin: -1rem !important;
}

.mt-n3,
.my-n3 {
  margin-top: -1rem !important;
}

.mr-n3,
.mx-n3 {
  margin-right: -1rem !important;
}

.mb-n3,
.my-n3 {
  margin-bottom: -1rem !important;
}

.ml-n3,
.mx-n3 {
  margin-left: -1rem !important;
}

.m-n4 {
  margin: -1.5rem !important;
}

.mt-n4,
.my-n4 {
  margin-top: -1.5rem !important;
}

.mr-n4,
.mx-n4 {
  margin-right: -1.5rem !important;
}

.mb-n4,
.my-n4 {
  margin-bottom: -1.5rem !important;
}

.ml-n4,
.mx-n4 {
  margin-left: -1.5rem !important;
}

.m-n5 {
  margin: -3rem !important;
}

.mt-n5,
.my-n5 {
  margin-top: -3rem !important;
}

.mr-n5,
.mx-n5 {
  margin-right: -3rem !important;
}

.mb-n5,
.my-n5 {
  margin-bottom: -3rem !important;
}

.ml-n5,
.mx-n5 {
  margin-left: -3rem !important;
}

Reduced test cases
N/A
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Safari
What version of Bootstrap are you using?
5.3.3

But apparently they are missing from Bootstrap 5.3.3 despite the docs still referencing their use.

Hello @JackSzwergold
In this same link, it is mentioned that "These negative margins are disabled by default, but can be enabled in Sass by setting $enable-negative-margins: true."
So if you want to get them back, you'll need to compile Bootstrap with Sass and enable this option.

Makes sense.

But apparently they are missing from Bootstrap 5.3.3 despite the docs still referencing their use.

Hello @JackSzwergold In this same link, it is mentioned that "These negative margins are disabled by default, but can be enabled in Sass by setting $enable-negative-margins: true." So if you want to get them back, you'll need to compile Bootstrap with Sass and enable this option.

Makes sense. Thanks for the quick response!


Where is source code of 3.30 and 5.0 versions?

What a nice and interesting share this repo from MS. But I wonder if they plan to share the sources of 3.3 and 5.0 versions of MS-DOS, the most used versions of the most used OS of computing history

No idea. I checked down the back of the sofa and under the coffee machine, but couldn't find them anywhere ;)
Realistically, I am sure they exist, but they also likely contain 3rd party licensed code for which we do not have rights of distribution.
Sorry!


Add AWS SQS as Broker

Is your feature request related to a problem? Please describe.
Currently, the project supports a variety of message brokers, including RabbitMQ, Kafka, and GCP Pub/Sub. However, many users rely heavily on AWS services and would benefit from the ability to utilize AWS SQS as an additional message broker option.
Describe the solution you'd like
I propose adding support for AWS SQS as a new message broker option. This would involve implementing a new SQS producer and consumer, allowing users to seamlessly integrate their existing AWS infrastructure with the project.
Describe alternatives you've considered
While the existing supported brokers are excellent options, AWS SQS offers unique advantages such as:
Simplified Message Queues: AWS SQS provides a fully managed message queuing service, eliminating the need for complex infrastructure setup and management.
Robustness and Scalability: AWS SQS is highly scalable and durable, ensuring reliable message delivery even under heavy load.
Cost-Effective: AWS SQS offers a flexible pricing model, making it a cost-effective solution for various use cases.
Additional context
I love this project and I'm eager to contribute by developing the necessary code for SQS integration. I'm confident in my ability to deliver a high-quality implementation that aligns with the project's coding standards and best practices.
I'm available to discuss this feature request further and answer any questions you may have.

I would definitely merge a contribution to support SQS and SNS. I only built those that I use myself, apart from Kafka (and that one isn't complete either).


UnexpectedResponse should grab response body

When the KittyCAD API returns a HTTP 4xx or 5xx error to the KittyCAD rust client, it triggers the Error::UnexpectedResponse variant.
Generally our unit tests show the debug output of errors if they occur.
Unfortunately neither the debug nor display implementations for UnexpectedResponse are very helpful, because it doesn't show users the response body. Why not? Well, the UnexpectedResponse variant has one field, reqwest::Response. But this variant doesn't actually show you the response body, because reading the response body consumes the response. This means if you wanted to put the response body in the Display impl, it would consume the error object, so you'd only be able to read the error once.
Solution: the UnexpectedResponse variant should not contain a reqwest::Response. Instead, when the variant is constructed, it should:

Store useful data like headers and HTTP status
read the response body as text
Store the headers and response body in a field of the enum

This way the errors will be helpful, contain the response body, and don't consume data when read.

https://github.com/KittyCAD/kittycad.rs/blob/63bcc0e6a4228eadcc3d0da43dd0089d9e8f0987/openapitor/src/types/error.rs#L32
If I am not wrong this needs to be changed into a struct just like the other error variants and subsequent changes to the codebase.


file transport doesn't support raw mode

file transport doesn't support raw mode

This is not a bug in 3.0.0 since raw mode has been removed in favor of custom transports.


Reimplement EditCampaignCommandHandlerAsync tests

These tests were previously marked as skip due to RTM issues.

I have some code for this

Just seen that we have about 3 classes doing bits of the original tests that will need to be merged. Working on the final pieces of that and should be done before my lunch break is over to get a PR in.


S5+ [User Story] Update project timeline

There are a few legacy project timelines out there:
ProjectPlan_NEXTv1.3.docx
Next Identity (Alys roadmap).pptx
Produce an updated roadmap/timeline that captures new findings since ~Sept '18 to present.
Share the project source and rendered timeline with the project team and leadership for feedback, review, and re-prioritization

Work with Chris & Aly on revamping "Next Identity (Alys roadmap).pptx"


[Bug]: Test script uses incorrect branch for pull requests

Contact Details
No response
What happened?
For PRs, .github/scripts/clone_engine_repo is using the PR tree (ie, tree/171/merge) instead of a branch name. This can be seen here.
Version
BABEL_1_X_DEV (Default)
Extension
babelfishpg_tsql (Default)
What flavour of Linux are you running into the bug?
No response
Relevant log output
No response
Code of Conduct

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

PR #230


Wrong palette for Pocket Camera

Game Boy Color's Up palette and Pocket Camera's Game Boy Color palette are two different distinct palettes, but you treat them as if they were identical.
Exact color values for Pocket Camera's palette:
#FFFFFF | #FFCE00 | #9C6300 | #000000
Up palette:

Pocket Camera's default palette:

Up palette:

Pocket Camera's default palette:

While they might look similar on actual hardware, they're still two different palettes.

Thanks for your contribution. I noticed the difference a while ago, but then totally forgot about it.
In case you expect it to appear in the web-app: It will do so automatically with the next release.


[Refactor] Optimizers

Problem (Why?)
minor lint issues & coverage
Solution (What/How?)

[x] fix pylint issues
[x] pylint score to 9.95

Other changes (bug fixes, small refactors)
nope
Notes
version up to 0.4.2

Codecov Report

Merging #54 (1a9294d) into main (6db0d49) will increase coverage by 0.78%.
The diff coverage is 89.65%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   92.80%   93.58%   +0.78%
==========================================
  Files          27       27
  Lines        1903     1886      -17
==========================================
- Hits         1766     1765       -1
+ Misses        137      121      -16

Impacted Files
Coverage Δ

pytorch_optimizer/radam.py
96.62% <ø> (-0.04%)
:arrow_down:

pytorch_optimizer/ranger.py
97.95% <ø> (-0.03%)
:arrow_down:

pytorch_optimizer/version.py
0.00% <0.00%> (ø)

pytorch_optimizer/ranger21.py
96.57% <66.66%> (+2.09%)
:arrow_up:

pytorch_optimizer/pcgrad.py
98.61% <90.00%> (+1.42%)
:arrow_up:

pytorch_optimizer/adabelief.py
96.29% <100.00%> (+3.37%)
:arrow_up:

pytorch_optimizer/adabound.py
100.00% <100.00%> (+7.14%)
:arrow_up:

pytorch_optimizer/diffgrad.py
100.00% <100.00%> (ø)

pytorch_optimizer/diffrgrad.py
95.78% <100.00%> (ø)

pytorch_optimizer/lars.py
100.00% <100.00%> (ø)

... and 5 more

Continue to review full report at Codecov.

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


Unable to find any GraphQL type definitions - NextJS

Describe the bug
Hey, I recently updated GraphqlQL dependencies in my NextJS project, including:
@envelop/sentry: 3.8.0 => 4.0.4
@graphql-yoga/node 2.13.8 => graphql-yoga 3.0.3
@sentry/nextjs: 7.13.0 => 7.21.1 (+ @sentry/node, @sentry/tracing)
I'm using next 13.0.5.
I started getting an error on Vercel deployments:
      Unable to find any GraphQL type definitions for the following pointers:
          - /var/task/graphql/schema.graphql
    at prepareResult (file:///var/task/node_modules/@graphql-tools/load/esm/load-typedefs.js:88:15)
    at loadTypedefsSync (file:///var/task/node_modules/@graphql-tools/load/esm/load-typedefs.js:75:20)
    at loadSchemaSync (file:///var/task/node_modules/@graphql-tools/load/esm/schema.js:24:21)
    at /var/task/.next/server/pages/api/graphql.js:7259:84
RequestId: 5cce72c9-bce3-406c-a39b-185d91e0e099 Error: Runtime exited with error: exit status 1
Runtime.ExitError

Every GQL API endpoint stopped responding (http error 500). On local environment everything works fine.
My server configuration:
const schema = loadSchemaSync(
  join(process.cwd(), "graphql", "schema.graphql"),
  {
    loaders: [new GraphQLFileLoader()],
  },
);

const schemaWithResolvers = addResolversToSchema({
  schema,
  resolvers: mergeResolvers(resolvers),
});

export default createYoga<{
  req: NextApiRequest;
  res: NextApiResponse;
}>({
  graphqlEndpoint: "/api/graphql",
  schema: schemaWithResolvers,
  maskedErrors: process.env.NODE_ENV === "production",
  context: async (req: any): Promise<GraphQLContext> => {
    // some props

    return {
      // some props
    };
  },
  plugins: [
    // eslint-disable-next-line react-hooks/rules-of-hooks
    useSentry({
      includeRawResult: true,
      includeResolverArgs: true,
      includeExecuteVariables: true,
    }),
    // eslint-disable-next-line react-hooks/rules-of-hooks
    useRateLimiter({
      identifyFn,
    }),
  ],
});

Your Example Website or App
none
Steps to Reproduce the Bug or Issue
none
Expected behavior
none
Screenshots or Videos
No response
Platform
Vercel deployment
@envelop/sentry v4.0.4
graphql-yoga v3.0.3
@sentry/nextjs v7.21.1
@sentry/node v7.21.1
@sentry/tracing v7.21.1
NextJS v13.0.5
NodeJS v16
Additional context
No response

Could you create a reproduction on CodeSandbox or StackBlitz?
Thanks!

Closing this issue due to the lack of reproduction. Feel free to create a new issue with a reproduction.


fix static assertion for iif

this solves the first half of issue #90
The old static_assert failed for bool, as it was already evaluated, to determine the signature
and thus before the function was removed from the overload table. I moved the assert to the
function, where it was actually used.

Thanks. Fixed in 2e2d4c8.


IntelliJ reports error with duplicate AutoValue generated classes

Run ./gradle clean build
Run IntelliJ - build/rebuild project
Error:(9, 8) java: duplicate class: org.dataportabilityproject.spi.cloud.types.AutoValue_LegacyPortabilityJob
Error:(9, 8) java: duplicate class: org.dataportabilityproject.spi.cloud.types.AutoValue_JobAuthorization
Error:(9, 8) java: duplicate class: org.dataportabilityproject.spi.cloud.types.AutoValue_PortabilityJob
Work around is to run ./gradlew clean  (not build) before IntelliJ build or tests

I have such problem
/media/lesharb/Data/Workspace/github/mongo-utils/mongo-info/out/production/classes/generated/by/lesharb/mongo/info/data/AutoValue_HostInfo.java
Error:(9, 8) java: duplicate class: by.lesharb.mongo.info.data.AutoValue_HostInfo

Probably obsolete - chuy can reopen if we want to identify some work that we can prioritize in folks roadmaps!


LocalTile not working

Summary
Example repo: https://github.com/katsimoto/OfflineMapExample
Reproducible sample code
import React from 'react';
import {StyleSheet, View, Text, Dimensions} from 'react-native';
import MapView, {
  MAP_TYPES,
  PROVIDER_DEFAULT,
  LocalTile,
} from 'react-native-maps';

const {width, height} = Dimensions.get('window');

const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;
const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO;

class App extends React.Component<any, any> {
  constructor(props: any, context: any) {
    super(props, context);

    this.state = {
      region: {
        latitude: LATITUDE,
        longitude: LONGITUDE,
        latitudeDelta: LATITUDE_DELTA,
        longitudeDelta: LONGITUDE_DELTA,
      },
    };
  }

  get mapType() {
    // MapKit does not support 'none' as a base map
    return this.props.provider === PROVIDER_DEFAULT
      ? MAP_TYPES.STANDARD
      : MAP_TYPES.NONE;
  }

  render() {
    return (
      <View style={styles.container}>
        <MapView
          provider={this.props.provider}
          mapType={this.mapType}
          style={styles.map}>
          <LocalTile
            pathTemplate="/storage/emulated/0/Documents/mytiles/{z}/{x}/{y}.png"
            tileSize={256}
            zIndex={-1}
          />
        </MapView>
        <View style={styles.buttonContainer}>
          <View style={styles.bubble}>
            <Text>Custom Tiles Local</Text>
          </View>
        </View>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    position: 'absolute',
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
    justifyContent: 'flex-end',
    alignItems: 'center',
  },
  map: {
    position: 'absolute',
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
  },
  bubble: {
    flex: 1,
    backgroundColor: 'rgba(255,255,255,0.7)',
    paddingHorizontal: 18,
    paddingVertical: 12,
    borderRadius: 20,
  },
  latlng: {
    width: 200,
    alignItems: 'stretch',
  },
  button: {
    width: 80,
    paddingHorizontal: 12,
    alignItems: 'center',
    marginHorizontal: 10,
  },
  buttonContainer: {
    flexDirection: 'row',
    marginVertical: 20,
    backgroundColor: 'transparent',
  },
});

export default App;

Steps to reproduce

npx react-native@latest init OfflineMapExample
cd OfflineMapExample
yarn add react-native-maps
Add com.google.android.geo.API_KEY to android/app/src/main/AndroidManifest.xml
Copy example from https://github.com/react-native-maps/react-native-maps/blob/master/example/src/examples/CustomTilesLocal.tsx to App.tsx
Rename class CustomTiles to App.
Change pathTemplate to /storage/emulated/0/Documents/mytiles/{z}/{x}/{y}.png
Remove initialRegion
Download https://drive.google.com/file/d/1MWahbfhwI1WQ4MUm6f2NwIiGQn28oK7F/view?usp=sharing
Start emulator
adb push mytiles/. /sdcard/Documents/mytiles
yarn android
Close app after loading
Enable airplane mode
Open app

Expected result
Displays the global map according to the 0/0/0 tile.
Actual result
The global map displays only in the part that managed to be loaded into the cache at the end of step 12.
React Native Maps Version
1.7.1
What platforms are you seeing the problem on?
Android
React Native Version
0.72.3
What version of Expo are you using?
Not using Expo
Device(s)
Android Emulator - Pixel_5_API_30
Additional information
No response

@katsimoto were you able to get offline maps to work?

@katsimoto were you able to get offline maps to work?

No.

I have the same problem..... suggestions?

I have this problem too, any idea?

I have the same issue with urltile but using file://. Works fine on iOS but not android.

Any solution?

Did you find any solution for this?

Any solution?


Task created but not processed by worker

Sometimes, after extensive processing, tasks are created but are not processed by workers even though they are available. Shutting down and restarting the worker solves the problem: immediately after restarting the agent, the job is processed.

Fixed in https://github.com/maxspl/OSIR/commit/2c5f4e465e9fd2c1a81f0f13af32750575e7dafe


Feature: updated the documentation in the assembly index module

You are right, didn't saw that, the old documantation was saying it was needed but this might not be the case. Fixing that ASAP.

Setting this PR on hold, some work needs to be done first.
Re-creating one, when the work is done, with a more seem less reviewers flow later.


.css file extensions add extra asterisks (*) when not supposed to

Steps to reproduce
vim file_name.css
type * {
press enter
Expected behaviour
There should only be one *.  After pressing enter another * is generated.  This is the css universal selector, not a comment.
Version of Vim
8.2
Environment
. Ubuntu 21.10], terminal [e.g. GNOME Terminal 3.38.1
Logs and stack traces
No response

thank you for the reply


Possible error in Environment stanza

The full definition at https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#environment, indicates that the 'strategy' element can be declared inside the 'environment' stanza, but if you do that you get an error.
/provisioning/azure_devops_templates/jobs/sql.yaml (Line: 12, Col: 7): Unexpected value 'strategy'
My yaml looks like this
jobs:

deployment: deploy_sql
pool: Windows-Domain
environment:
name: ${{ parameters.environment }}
strategy:
runOnce:
deploy:
steps:
- script etc etc

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

ID: 7458d5b2-1bb7-7d87-7ce6-2b0c430b0155
Version Independent ID: edf5bbd3-a3f0-5426-e985-31290f8afd05
Content: YAML schema - Azure Pipelines
Content Source: docs/pipelines/yaml-schema.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

@a30001539 Thank you for the feedback, assigning this to the author review.

#reassign:juliakm

Yaml is space sensitive, it is not clear from the sample, if you are indenting it correctly.
jobs:
- deployment: deploy_sql
  pool:                # see pool schema
    name: Windows-Domain
  environment: ${{ parameters.environment }}
  strategy:
    runOnce:
      deploy:
        steps:
        - script: echo hello world


Update react syntax

Per newer versions of react this needs to

[ ] Drop createClass syntax
[ ] use prop-types package instead of react built-in

@re7eal I discovered your fork and it has fixed this. Feel like making a PR? :)
https://github.com/re7eal/react-flags/commit/87c95ab207aeb5a13b77c9220359af1e74bf4b23

@ryanashcraft There is a pull request which fixes this issue already but it doesn't get merged (#9).

@ryanashcraft @re7eal Sorry for the delay guys. I've merged #9 and published a new version on npm.


test: (SVPI-632, SVPI-633) add remote secrets environments tests

Description
Adds new tests to ensure that:

RemoteSecret is created only in target Environment
RemoteSecret is created in all Environments of certain component and application

Issue ticket number and link
SVPI-632
SVPI-633
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?

Get an Openshift Cluster
Install RHTAP in e2e mode
Run e2e tests make local/test/e2e or only this  specific suite E2E_TEST_SUITE_LABEL=rs-environment make local/test/e2e

Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/test all

/test redhat-appstudio-e2e

/test redhat-appstudio-e2e


Renaming the optcarrot benchmark

The optcarrot benchmark in this repo:
https://github.com/Shopify/yjit-bench/blob/main/benchmarks/optcarrot/benchmark.rb
measures something quite different from the original:
https://github.com/mame/optcarrot#benchmark-example
The original benchmark clearly measures the FPS/frames-per-second.
The benchmark in this repo instead measures:

Create a new NES and associated objects
load the cartridge from disk
emulate 3 seconds/180 frames
stop the emulator

as a single measurement.
I think this is so different that it's worth making that clear in the benchmark name.
Maybe optcarrot-start-stop or something like that?
Of course another option would be to run optcarrot as the original benchmark, measuring FPS.
That would be IMHO a better fix, instead of running the benchmark in a non-standard way.
I understand this other way might make the benchmark a little bit more stable (https://github.com/Shopify/yjit-bench/issues/34), but it also makes it much less realistic, who plays for 3 seconds and switch off the NES?
IMHO the workfload stabilizes soon enough so with a bit of warmup it's not much of an issue to measure FPS and keep the NES instance running, like done in https://github.com/oracle/truffleruby/blob/master/bench/optcarrot/optcarrot.rb or in the original benchmark: https://github.com/mame/optcarrot/blob/22838002b9f091bc0c27520ecaa6daff9683a212/lib/optcarrot/nes.rb#L89
As you can see on https://eregon.me/blog/2016/11/28/optcarrot.html the FPS for CRuby is very stable.

You might say this is a pedestrian concern, but I don't want to give the benchmarks long names because that will make it awkward to fit them in graphs.
I see what you mean about the benchmark being run in a non-standard way but I think our current setup is also valid. I would have liked to exclude the initialization from the benchmark, but I did not want each iteration to perform a different computation from the next.

I made a PR in case it's useful: https://github.com/Shopify/yjit-bench/pull/49


Service page

As a side project from the data annotations we're now having a number of services which do not directly address the main data collections but associated "helpers". For some of those it would be good to have dedicated web pages, usually providing some form fields w/ autocomplete/selection and a response area (single value or list/table).
Basic requirements:

search field w/ autocomplete, multiple values
aggregate search; e.g. a selected value is added to the autocomplete query for the next

example: searching ontologies => a selected icdom term limits the options for the 2nd select to all entries having this code, too

templates for responses (table, single object)

I just added a page /services/ontologymaps.


Cannot resolve method dismiss() in Background Task

Maybe I am just overlooking something or just completely insane right now.  But I am getting this message when I set it up this way.
public class BackgroundTask extends AsyncTask<Void, Void, Void> {
        private MaterialDialog.Builder dialog;

        public BackgroundTask(MainActivity activity) {
            dialog = new MaterialDialog.Builder(activity);
            dialog.content("Doing something, please wait.");
        }

        @Override
        protected void onPreExecute() {
            dialog.show();
        }

        @Override
        protected void onPostExecute(Void result) {
            dialog.dismiss();
        }

        @Override
        protected Void doInBackground(Void... params) {
            // Do something long here
        }
}

Now if I do it like this, dismiss() exists.
new MaterialDialog.Builder(activity)
    .content("Doing something, please wait.")
    .show()
    .dismiss();

dismiss() is a method of android.app.Dialog, not com.afollestad.materialdialogs.MaterialDialog#Builder.
In other words, you call dismiss on the Dialog created by the Builder with build(), not the Builder itself.

dialog.show() also returns the MaterialDialog instance.
MaterialDialog.Builder builder = // ...

// Option one

MaterialDialog dialog = builder.build();
dialog.show();

// Option two

MaterialDialog dialog = builder.show();

By the way, I edited your original comment to include Java syntax highlighting. Indentation doesn't do that.

Yup.  Makes sense.  Thank you very much


Incompatibility with prettier

It looks like prettier is sufficiently opinionated as to be incompatible with the padded-blocks rule.
I have tried to set up prettier-eslint flow but the editor setup I'm currently using (vim/nvim with coc.nvim and coc-prettier) is seemingly deeply broken at being able to feed prettier output into eslint --fix.
Anyway, the immediate workaround is to put an ignore on all files with .prettierignore.

I don't think I understand. Why would you use prettier with an eslint config? This config only works with ESLint. There is no implied compatibility with other lint tools.

To be totally honest, I like the way you have things set up. It's minimalist in a way that web development is sorely lacking and really bucks the trend.
The fact that prettier makes it so tricky to disable itself is mostly prettier's fault.

I see, thanks for clarifying!


update echo_help methods to use https://t.me/zebrunner

replace everywhere qps-infra telgram channels to single Zebrunner (Community Edition) support:
https://t.me/zebrunner
also review docs, old qps-infra.io site.

finished for zebrunner reporting: https://github.com/zebrunner/reporting/commit/675cc6e1586fa0feed870d0c7c5dfdf08876dcab
sonarqube: ???
jenkins-master: ???
mcloud: ???
selenoid: ???

done

1.I see that old site https://www.qps-infra.io/  is not updated yet.
2. telegram channel is updated to https://t.me/zebrunner

Verified:

Run ./zebrunner.sh
Actual result:


Move all linter rules to eslint

Currently we have linter rules defined both in tsconfig.json, handled by the typescript compiler AND linter rules defined in the eslint config, handled by eslint.
The typescript linter rules are really annoying devex, as they prevent building and experimenting with working code because of linter errors.
Describe the solution you'd like

[ ] Replace all typescript linter rules with eslint linter rules

Additional context
https://github.com/ipfs/aegir/blob/72d2fcd061a7aa22cd0fadbff99610eee83cec0c/src/config/tsconfig.aegir.json#L24-L28

@wemeetagain the PR to eslint-config-ipfs has shipped so you should be all good to PR your changes here 👍


Add auto-discovery config for kube_controller_manager and kube_scheduler

For the kube_apiserver_metrics integration, you conveniently have auto-discovery set up, so it will work on kube-apiserver docker image
https://github.com/DataDog/integrations-core/blob/master/kube_apiserver_metrics/datadog_checks/kube_apiserver_metrics/data/auto_conf.yaml
It would be great if you could add similar files for kube_controller_manager and kube_scheduler.  Those components use docker images of the form k8s.gcr.io/kube-controller-manager:v1.x.y and k8s.gcr.io/kube-scheduler:v1.x.y

@jonmoter Thanks for pointing that out.  We'll get this in place for an upcoming release.

PR for this got merged yesterday https://github.com/DataDog/integrations-core/pull/5678 it will be available in agent 7.18


chore(ci): switch cargo udeps to use dedicated github action

The CI fails in this seem to be specific to this crate so will merge this required update anyway & they can be tackled separately


Android Basics: Activity Lifecycle

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-activity-lifecycle?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-activity-lifecycle#4
In which task and step of the codelab can this issue be found?
module 4 Stages of the activity lifecycle
step 4/5 of the codelab
Describe the problem
formatting issues.
the start of step 5 is part of step 4's end , just after transaction too large error.
it should be  as a new paragraph/numbered list

This is a duplicate of issue #15


Documents workflow for private and shared notes

Context: after this discussion in discord, I thought it could be a good idea to integrate @kevins8 's gist https://gist.github.com/kevinslin/0e0f13fedb43732e86938ab1033b7efd into a note within dendron.
I've created a new workflow guide which is not anything but a step-by-step use of a multi-vault strategy. Feel free to integrate if you can see value here or simply ignore it (it was useful for me, at least, as I learned how to do it by writing it).

Not sure if the approach I'm sharing here is the best possible one. Comments are welcome.

Thank you for the contribution! :partying_face: :seedling:

To you for creating Dendron!


pyocd and picoprobe issues

Hi, I have been trying to get pyocd to work with picoprobe and have had some problems, however it works great with the latest version of openocd.
any sugestions?

~# pyocd -V
0.32.3
~# arm-none-eabi-gdb -v
GNU gdb (GNU Arm Embedded Toolchain 9-2020-q2-update) <IP_ADDRESS>91211-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please check TERMINAL tab (gdb-server) for output from pyocd
Launching server: "pyocd" "gdbserver" "--port" "50000" "--telnet-port" "50001" "-v" "--target" "ATSAMD21G18A" "-u" "E6612483CB409221"
Launching GDB: "/home/work/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gdb" "-q" "--interpreter=mi2"
"/home/work/dev/build/zephyr/zephyr.elf"Set "showDevDebugOutput": true in your "launch.json" to see verbose GDB transactions here. Helpful to debug issues or report problems
Reading symbols from /home/work/dev/build/zephyr/zephyr.elf...
...
gdb showns
PC register is not available
...
[2022-01-19T16:10:48.483Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
0000677:DEBUG:session:Project directory: /home/work/dev/build/zephyr/
0000990:INFO:board:Target type is atsamd21g18a
0000992:DEBUG:sequencer:Running task load_svd
0001015:DEBUG:sequencer:Running task pre_connect
0001016:DEBUG:sequencer:Running task dp_init
0001016:DEBUG:sequencer:Running task lock_probe
0001016:DEBUG:sequencer:Running task get_probe_capabilities
0001016:DEBUG:sequencer:Running task connect
0001016:DEBUG:dap:Default wire protocol selected; using SWD
0001022:DEBUG:swj:Sending deprecated SWJ sequence to select SWD
0001065:INFO:dap:DP IDR = 0x0bc11477 (v1 MINDP rev0)
0001067:DEBUG:sequencer:Running task clear_sticky_err
0001068:DEBUG:sequencer:Running task power_up_debug
0001069:DEBUG:sequencer:Running task check_version
0001069:DEBUG:sequencer:Running task unlock_probe
0001069:DEBUG:sequencer:Running task create_discoverer
0001069:DEBUG:sequencer:Running task discovery
0001069:DEBUG:sequencer:Running task find_aps
0001072:DEBUG:sequencer:Running task create_aps
0001072:DEBUG:sequencer:Running task create_ap.0
0001073:INFO:ap:AHB-AP#0 IDR = 0x04770031 (AHB-AP var3 rev0)
0001075:DEBUG:ap:AHB-AP#0 default HPROT=3 HNONSEC=0
0001076:DEBUG:ap:AHB-AP#0 implemented HPROT=3 HNONSEC=0
0001077:DEBUG:sequencer:Running task find_components
0001078:DEBUG:sequencer:Running task init_ap.0
0001083:INFO:rom_table:AHB-AP#0 Class 0x1 ROM table #0 @ 0x41003000 (designer=01f part=cd0)
0001087:INFO:rom_table:[0]<e00ff000:ROM class=1 designer=43b part=4c0>
0001087:INFO:rom_table:  AHB-AP#0 Class 0x1 ROM table #1 @ 0xe00ff000 (designer=43b part=4c0)
0001092:INFO:rom_table:  [0]<e000e000:SCS v6-M class=14 designer=43b part=008>
0001096:INFO:rom_table:  [1]<e0001000:DWT v6-M class=14 designer=43b part=00a>
0001099:INFO:rom_table:  [2]<e0002000:BPU v6-M class=14 designer=43b part=00b>
0001102:INFO:rom_table:[1]<41006000:MTB M0+ class=9 designer=43b part=932 devtype=31 archid=0a31 devid=0:0:0>
0001102:DEBUG:sequencer:Running task create_cores
0001102:DEBUG:discovery:Creating SCS component
0001104:INFO:cortex_m:CPU core #0 is Cortex-M0+ r0p1
0001104:DEBUG:sequencer:Running task set_default_reset_type
0001104:DEBUG:sequencer:Running task create_components
0001104:DEBUG:discovery:Creating DWT component
0001105:INFO:dwt:2 hardware watchpoints
0001107:DEBUG:discovery:Creating BPU component
0001108:INFO:fpb:4 hardware breakpoints, 0 literal comparators
0001109:DEBUG:fpb:fpb has been disabled
0001112:DEBUG:sequencer:Running task check_for_cores
0001112:DEBUG:sequencer:Running task halt_on_connect
0001112:DEBUG:cortex_m:halting core 0
0001113:DEBUG:sequencer:Running task post_connect
0001113:DEBUG:sequencer:Running task post_connect_hook
0001113:DEBUG:sequencer:Running task create_flash
0001113:DEBUG:sequencer:Running task notify
0001114:DEBUG:cortex_m:Setting vector catch to 0x00000001
0001118:INFO:server:Semihost server started on port 50001 (core 0)
0001161:INFO:gdbserver:GDB server started on port 50000 (core 0)
0001211:DEBUG:packet_io:Starting GDB server packet I/O thread
0001211:DEBUG:cortex_m:halting core 0
0001212:INFO:gdbserver:Client connected to port 50000!
0001212:DEBUG:gdbserver:GDB received query: [b'Supported', b'multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+#df']
0001213:DEBUG:gdbserver:GDB general set: b'StartNoAckMode'
0001213:DEBUG:gdbserver:GDB received query: [b'Xfer', b'features', b'read', b'target.xml', b'0,7fb#4a']
0001214:DEBUG:gdbserver:GDB query b'read_feature': offset: 0, size: 2043
0001216:DEBUG:gdbserver:GDB general set: b'NonStop:0'
0001217:DEBUG:gdbserver:GDB received query: [b'TStatus#49']
0001217:DEBUG:gdbserver:Current thread 0 is no longer valid, switching context to target
0001220:DEBUG:register:no accesses
0001220:DEBUG:register:out of date run token; invalidating cache
0001222:DEBUG:gdbserver:Tresponse=b'T05thread:1;'
0001222:DEBUG:gdbserver:GDB received query: [b'Xfer', b'threads', b'read', b'', b'0,7fb#d0']
0001222:DEBUG:gdbserver:GDB query b'threads': offset: 0, size: 2043
0001225:DEBUG:gdbserver:GDB received query: [b'Attached#8f']
0001225:DEBUG:gdbserver:GDB received query: [b'Offsets#4b']
0001226:DEBUG:context_facade:GDB getting register context
0001229:DEBUG:context_facade:GDB get_reg_context: r0 = None -> b'xxxxxxxx'
0001229:DEBUG:context_facade:GDB get_reg_context: r1 = None -> b'xxxxxxxx'
0001229:DEBUG:context_facade:GDB get_reg_context: r2 = None -> b'xxxxxxxx'
0001229:DEBUG:context_facade:GDB get_reg_context: r3 = None -> b'xxxxxxxx'
0001229:DEBUG:context_facade:GDB get_reg_context: r4 = None -> b'xxxxxxxx'
0001229:DEBUG:context_facade:GDB get_reg_context: r5 = None -> b'xxxxxxxx'
0001229:DEBUG:context_facade:GDB get_reg_context: r6 = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: r7 = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: r8 = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: r9 = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: r10 = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: r11 = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: r12 = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: sp = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: lr = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: pc = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: msp = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: psp = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: primask = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: xpsr = None -> b'xxxxxxxx'
0001230:DEBUG:context_facade:GDB get_reg_context: control = None -> b'xxxxxxxx'
0001231:DEBUG:packet_io:GDB packet thread: other side closed connection
0001231:DEBUG:packet_io:GDB packet thread stopping
[2022-01-19T16:10:49.774Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

Hi, I wrote the picoprobe support code, here are some considerations:
At first sight, it would seem that the probe starts correctly - it finds the core and enumerates its AP.
Then something goes wrong, but I'm not able to identify where.
As a test, could you please add -Opicoprobe.safeswd=True to pyocd invocation?
This will slow it down a lot but might catch some SWD fault:
picoprobe is a very basic probe, just translating bits to and from SWD line protocol, the option disables the minimal internal queuing of reads and writes.
Also, is the code using zephyr RTOS?
@flit, I might not be able to follow this up that much (away from my picos).

Just discover that with "-f 400000" it seems to work well, also replug the usb seems to help when problems are shown

Possible signal integrity problems then.
To speed things up I assumed positive acknowledges from the target in the code, this can be disabled with the option mentioned above.
The picoprobe FW code leaves the pins at the default (fast) slew rate, AFAICS - not that the data sheet (🤮 I find it abysmal) tells us anything about the actual values, but too fast and signal integrity will suffer.

@newbrain No problem, I understand. 😄

Closing issue.


Middleware for Phoenix.Ecto.SQL.Sandbox

Hello Tesla team,
thanks for making this great library!
We're using Tesla to run integrated tests against our API endpoints. To make these async: true, we're using Phoenix.Ecto.SQL.Sandbox to share the sandbox transaction with the endpoint (request) process. This tiny middleware helps us doing this:
defmodule OurMagicMiddleware do
  @behaviour Tesla.Middleware
  if Application.compile_env!(:my_app, :sql_sandbox) do
    @impl Tesla.Middleware
    def call(env, next, _opts) do
      user_agent = Tesla.get_header(env, "user-agent")

      encoded_metadata =
        MyApp.Repo
        |> Phoenix.Ecto.SQL.Sandbox.metadata_for(self())
        |> Phoenix.Ecto.SQL.Sandbox.encode_metadata()

      env
      |> Tesla.put_header("user-agent", "#{user_agent} / #{encoded_metadata}")
      |> Tesla.run(next)
    end
  else
    @impl Tesla.Middleware
    def call(env, next, _opts) do
      Tesla.run(env, next)
    end
  end
end

Would you be interested to include this as a middleware shipped with Tesla? We would need to make the dependency on phoenix_ecto optional, but IMO it's a really useful little thing.
Best,
malte

This seems very specific to your application (especially the part about using user agent header).
However, if you provide some description I'd be more than happy to add it to tesla Cookbook

Well it's not really specific to our application, but it's the default header Phoenix.Ecto.SQL.Sandbox uses to transmit the encoded metadata.
It seems I can edit pages in the cookbook, and you're probably right that it is the better place for it, so I'll give it a try. Thanks!


Password Prompt for Criteria

Password Prompt for Criteria
User Story
AS AN employee with access to sensitive data
I WANT to randomly generate a password that meets certain criteria
SO THAT I can create a strong password that provides greater security
Acceptance Criteria
GIVEN I need a new, secure password
WHEN I click the button to generate a password
THEN I am presented with a series of prompts for password criteria

Added while loop to ensure number range is between 8 and 128 only


Second Iteration: Further Improvements

Background
Templates are great, but they quickly get out of date, and arguably you can get the same value by cloning a practical project as a template reference and then selectively pick what you care about when building a new project. On top of that, recent production usage highlighted several short comings as it didn't have a lot of features I would've expected from a "production-ready" template.
When I used this template for a recent project, a couple of boilerplate requirements were missed, for example, logging. Other things were related to testing, since this project did not interact with an external API, it didn't need to do any mocking/stubbing, and hence I had to introduce these on my own despite being a common requirement for many distributed systems.
Therefore, I am now interested to re-purpose this project to be something practical, something that allows me to showcase a production grade application, which is also well-documented so other users can easily copy. It doesn't have to be complex, but it should build towards a more complex objective than a simple FastAPI template.
Requirements

[ ] Have some external API interactions.
[ ] Demonstrate wiremock stubbing and other mocking techniques.
[ ] Introduce logging with global configuration.
[ ] Use Piny for configuration loader.
[ ] Add test coverage reporter.

Other

[ ] As always, CI/CD pipeline should be passing.
[ ] Ensure new features are adequately documented.
[ ] Could we use the /metrics endpoint to demonstrate some alerting as well?
[ ] When onboarding users unfamiliar with Python, hence no python 3.11 installed (Ubuntu 22.04), it was not a smooth experience, even on pychram (e.g. need to mark src as source, test as test source, install missing drivers...etc) It would be nice if:

[ ] Project works out of the box in PyCharm (i.e. provide a single setup make recipe, commit then .gitignore a basic .idea dir, etc...)
[ ] Project works out of the box in VsCode (i.e. provide a single setup make recipe, commit then .gitignore a basic .vscode dir, etc...)
[ ] Works out of the box on Ubuntu 22.04.
[ ] Works out of the box on MacOS.

Update: even further improvements spotted as per recently experience. This project will definitely be improved. 🙂


use hyphen for all command name

Some generated command name uses underline, such as regenerate_keys. According to command guideline, we should use hyphen.

fixed in  0.1.866

verified.


Add Sling TV to mso list

Please add sling TV to the mso list.
FX and other channels will let me watch episodes after I log in with my Sling TV username/password.
So I'd like to be able to download episodes using youtube-dl but Sling is not in the mso list,

Sling TV would be welcome yes

Please add Sling TV

@nevafuse Any update on this? I can provide creds as well if needed.

If anyone needs a set of credentials to test this, please let me know. I can provide them.

If anyone needs a set of credentials to test this, please let me know. I can provide them.


WIP: port to new PAC spinlock syntax

Did the minimal work to get the spinlocks working with the new arrayified registers.
The change in macro style was only because that was the easiest thing for me to get working.
We will want to get a new PAC release out before merging this.

Closed in favour of #281


Compiling bindings from the master branch errors on Linux

As the title says, when I attempt to compile the bindings from the master branch, I get the following errors.  I am using Ubuntu Linux 18.04 LTS.
scons plaform=linux generate_bindings=yes bits=64
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/core/Plane.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m64 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Plane.cpp
g++ -o src/core/RID.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m64 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/RID.cpp
g++ -o src/core/NodePath.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m64 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/NodePath.cpp
g++ -o src/core/Variant.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m64 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Variant.cpp
In file included from include/core/Variant.hpp:9:0,
                 from src/core/Variant.cpp:1:
include/core/Basis.hpp:25:13: error: declaration of template parameter 'column' shadows template parameter
   template <int column, int component>
             ^~~
include/core/Basis.hpp:22:12: note: template parameter 'column' declared here
  template <int column>
            ^~~
include/core/Basis.hpp: In member function 'godot::Basis::ColumnVector3<column>::ColumnVectorComponent<column, component>& godot::Basis::ColumnVector3<column>::ColumnVectorComponent<column, component>::operator=(const real_t&)':
include/core/Basis.hpp:40:5: error: 'element' was not declared in this scope
     element[component][column] = p_value;
     ^~~~~~~
include/core/Basis.hpp:40:5: note: suggested alternative: 'elements'
     element[component][column] = p_value;
     ^~~~~~~
     elements
include/core/Basis.hpp: In member function 'godot::Basis::ColumnVector3<column>::ColumnVectorComponent<column, component>::operator real_t() const':
include/core/Basis.hpp:45:12: error: 'element' was not declared in this scope
     return element[component][column];
            ^~~~~~~
include/core/Basis.hpp:45:12: note: suggested alternative: 'elements'
     return element[component][column];
            ^~~~~~~
            elements
include/core/Basis.hpp: In member function 'godot::Basis::ColumnVector3<column>::operator godot::String() const':
include/core/Basis.hpp:275:3: error: expected ';' before '}' token
   }
   ^
include/core/Basis.hpp: In member function 'const godot::Vector3& godot::Basis::operator[](int) const':
include/core/Basis.hpp:311:23: warning: returning reference to temporary [-Wreturn-local-addr]
   return get_axis(axis);
                       ^
scons: *** [src/core/Variant.o] Error 1

+1, I have the exact same error, meanwhile the build on the "godot-cpp" submodule in the cpp example given in godot official tutorial on gdnative compile successfully(https://github.com/BastiaanOlij/gdnative_cpp_example) it is pointing on bcc39bbf4bf9922c1a5eaea91885eda05cd1202c at the time I am writing this.

Might want to stick with the 3.1 branch for now, we merged a few things into master the other day that may be the cause of this.
@aqnuep can you have a look into this? Maybe check out the fix windfish offered a PR for?

there is another error on the 3.1 branch as I mentioned I am using "Debian GNU/Linux 9 (stretch)" by the way i forgot to mention that :
`scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/core/Rect2.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Rect2.cpp
In file included from /usr/include/stdint.h:25:0,
from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9,
from godot_headers/gdnative/vector2.h:38,
from include/core/Vector2.hpp:4,
from include/core/Rect2.hpp:4,
from src/core/Rect2.cpp:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
include <sys/cdefs.h>
                     ^

compilation terminated.
g++ -o src/core/Variant.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Variant.cpp
g++ -o src/core/Vector2.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Vector2.cpp
In file included from /usr/include/stdint.h:25:0,
from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9,
from godot_headers/gdnative/variant.h:38,
from include/core/Variant.hpp:4,
from src/core/Variant.cpp:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
include <sys/cdefs.h>
                     ^

compilation terminated.
g++ -o src/core/Array.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Array.cpp
In file included from /usr/include/stdint.h:25:0,
from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9,
from godot_headers/gdnative/vector2.h:38,
from include/core/Vector2.hpp:4,
from src/core/Vector2.cpp:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
include <sys/cdefs.h>
                     ^

compilation terminated.
g++ -o src/core/Transform2D.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Transform2D.cpp
In file included from /usr/include/stdint.h:25:0,
from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9,
from godot_headers/gdnative/array.h:38,
from include/core/Array.hpp:4,
from src/core/Array.cpp:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
include <sys/cdefs.h>
                     ^

compilation terminated.
g++ -o src/core/PoolArrays.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/PoolArrays.cpp
In file included from /usr/include/stdint.h:25:0,
from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9,
from godot_headers/gdnative/vector2.h:38,
from include/core/Vector2.hpp:4,
from include/core/Transform2D.hpp:4,
from src/core/Transform2D.cpp:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
include <sys/cdefs.h>
                     ^

compilation terminated.
g++ -o src/core/Quat.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Quat.cpp
In file included from /usr/include/stdio.h:27:0,
from include/core/Defs.hpp:98,
from include/core/PoolArrays.hpp:4,
from src/core/PoolArrays.cpp:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
include <sys/cdefs.h>
                     ^

compilation terminated.
scons: *** [src/core/Rect2.o] Error 1
g++ -o src/core/TagDB.o -c -fPIC -g -std=c++14 -Wwrite-strings -Og -m32 -I. -Igodot_headers -Iinclude -Iinclude/gen -Iinclude/core src/core/TagDB.cpp
scons: *** [src/core/Variant.o] Error 1
scons: *** [src/core/Vector2.o] Error 1
scons: *** [src/core/Array.o] Error 1
scons: *** [src/core/Transform2D.o] Error 1
scons: *** [src/core/PoolArrays.o] Error 1
In file included from include/core/Quat.hpp:4:0,
from src/core/Quat.cpp:1:
/usr/include/c++/6/cmath:41:28: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^
compilation terminated.
scons: *** [src/core/Quat.o] Error 1
In file included from /usr/include/c++/6/unordered_map:38:0,
from src/core/TagDB.cpp:3:
/usr/include/c++/6/utility:68:28: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^
compilation terminated.
scons: *** [src/core/TagDB.o] Error 1
scons: building terminated because of errors.`

Might want to stick with the 3.1 branch for now, we merged a few things into master the other day that may be the cause of this.
@aqnuep can you have a look into this? Maybe check out the fix windfish offered a PR for?

PR https://github.com/GodotNativeTools/godot-cpp/pull/264 and https://github.com/GodotNativeTools/godot-cpp/pull/266 should fix the errors related to the Basis class changes in the OP.

Ok, I merged both in, @karroffel had already approved them. Riot was hacked the other day so the IRC bridge is down, so it's a bit hard keeping in touch :)

Yeah, I had an issue with the 3.1 branch, like @omar-bz, then just kind of gave up for weekend.  Good to hear that there were some fixes merged in!  I'll give it a go next weekend.

I can confirm, that now it works, at least on OSX. I had the same error before.

I can now confirm that compiling bindings on the current master branch works.
That being said, I get issues when trying to compile my plug-in beyond that which seems to be a combination of things.  It appears some changes in the master branch means I have to re-write portions of my plugin.
I presume sticking with the 3.1 branch is the way to go as too many undocumented (for now) changes seem to have occurred in the master branch.
@mudlee   I think it gives it a debug name unless you use target=release.  It'll be named something like godot-cpp.osx.debug.64 or such.  I have the same thing happen in Linux.  I had to re-write the SConstruct file for my plugin because of it.  There are also more changes I now have to fix.

I was just about to edit my edit (lol), it was my bad, I ran it under my test directory in a wrong terminal tab. Apologies. So yes, it works here too.


Update BrandingExtensions.cs

fix as described in issue #233

Hi @PieterVeenstra, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Thx Pieter, we'll have a look on this in upcoming days. Looks good to go, but we'll just double check that in our testing. Thx for your contrbutions.

Hi Pieter, sorry for the delay on this, but we'll need to postpone this for the February release due the amount of work in the Jan release related on the v2.0 core component release. This looks absolutely valid, but we run out of time for testing it. Will process this soon though.

Thanks Pieter, absolutely valid finding and should have been included in the January release. Did miss the criticalness of this one around blocking the page layout usage. We can do a update release on the Core if needed. Now anyway merged to dev branch.


Enable certs on dev

I've rebased, and it works on my machine :trollface:
regarding those files, I've ignored them.

Now I have ERR_CONNECTION_REFUSED with https://poser.local:8002 and http://poser.local:8001.
My steps to reproduce it:
git reset --hard origin/enable-certs-on-dev
git pull origin enable-certs-on-dev
make stop
make run

@JellyBellyDev I've pruned buildx and system, removed all local images and running containers, then cleared my local branches and pulled from origin.
then did make stop and make run. Then when accessing https://poser.local:8002/ I get only Error code: SEC_ERROR_UNKNOWN_ISSUER but I can easily bypass it by accepting the TLS exception.

Ok now works also for me!
But if you execute this?
$ curl -I poser.local:8001
HTTP/1.1 302 Moved Temporarily
Server: openresty
Date: Tue, 24 Sep 2024 13:49:24 GMT
Content-Type: text/html
Content-Length: 142
Connection: keep-alive
Location: https://poser.local

?
Sure that is correct this redirect?


Adding rental controller specs

Referencing issue #65

Both controller coverages are at 100% after this addition according to coverage/index.html

Great!


Badge additions

This PR is to add a ton of badges that I created for versatility. A lot of these seem random but I actually made these because I had specific use-cases for them and there was no good alternative in Minecraft's sprite files.
For example, the moon phase badges that could be used for powers based on the moon phases; all of which are ripped from Minecraft's sprite files but the original file can't be accessed in a badge because they're all combined into one sprite. Or the colors, which look nicer as badges than the sprites for concrete or terracotta that I use in a color-based Origin.
All badges have been tested in-game to ensure that they work and look good. My only concern is that the sun and moon badges in icons/sky/ look a little off due to taking up the entire 9x9 pixel radius. Please do some independent testing before pulling this though.

This has now been merged manually to the 1.20 branch


Custome downloadId

Hi.
How can I force fileDownloader to use my custom downloadId instead of its?

Ref #224


feat(makefile, workflows): add YAML linter to workflow and Makefile

Add lint-yaml target in Makefile to lint YAML files, ignoring Helm template YAML files
Update GitHub Actions workflow to include YAML lint step

We don’t use if ! command -v yamllint because some environments might have a pre-installed Python version. Checking the specific path ensures we're using the Node.js version to avoid conflicts.

Close #128

Hey @spacewander
Could you take a look at my PR when you have a chance? Thanks!

We don’t use if ! command -v yamllint because some environments might have a pre-installed Python version. Checking the specific path ensures we're using the Node.js version to avoid conflicts.

Could you add this reason as a comment in the Makefile?

We don’t use if ! command -v yamllint because some environments might have a pre-installed Python version. Checking the specific path ensures we're using the Node.js version to avoid conflicts.

Could you add this reason as a comment in the Makefile?

Sure! I’ll add that comment in the Makefile. Thank you for the suggestion!

@am6737
Merged. Thanks!

Hey @spacewander
This PR is marked as "Repository Not Participating" in Hacktoberfest. According to the Hacktoberfest rules, the repository needs the "hacktoberfest" topic or the PR should be labeled "hacktoberfest-accepted."
If possible, could you please add the "hacktoberfest-accepted" label to this PR?
Thanks a lot!

@am6737 Sorry for forgetting the operation. Label added.

Thank you for your help, everything looks great now!


How to set 'publicPath' after 'deployUrl' option is deprecated

Command
build
Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
We are loading the angular application JavaScript embedded widget, and our application internally using lazy loading concept. Earlier we used --deployurl to set the domain of the application where the actual scripts were deployed. As the deployUrl is deprecated which property we need to use to set it. We tried with --base-href but its not working as expected.
If we don't set the URL, it will try to load the script from the URL that belong to the main application, but it should be loaded from the widget domain.
Currently this can be achieved by using deploy-url during widgets app build. How to do it without this option?
Minimal Reproduction
"build:prod": "ng build --configuration production --deployUrl http://scorewidget.cdk.com/",
Exception or Error
No response
Your Environment
13.1.0

Anything else relevant?
No response

Duplicate of https://github.com/angular/angular-cli/issues/22113


Theming mdi child window controls

Window Controls - Minimize, Maximize, Close button of a maximized MDI child windows
are realized as ControlBoxMenuItem contained in the MenuStrip
by default they would be painted black on a dark surface
so to make them more visible, we paint them ourselves

Thank you


How to send via SMTP and STARTTLS ?

Hello Andris,
I'm using this transporter:
var transporter = nodemailer.createTransport( smtpTransport(
{	host: "smtp.domain.com",
port: 587, // STARTTLS
auth:
{	user: user,
pass: '???',
},
} ));
Sometimes it's working, mostly I get this error:
Error: Hostname/IP doesn't match certificate's altnames
Any idea, please ?
The same SMTP account runs perfect with Thunderbird.
Was is Thunderbird doing different, than your package ?
Thunderbird is using port: 587 and STARTTLS.
Thanks in advance

You do not need to specify anything for STARTTLS use as Nodemailer upgrades to STARTTLS if STARTTLS is available. If you are useing a self-signed certificate, then you can override the strict check with tls.rejectUnauthorized:
{
    host: 'smtp.domain.com',
    ...
    tls:{
         rejectUnauthorized: false
    }
}

Andris,
1000 thanks.
It's working great.
Best wishes.


security/acme-client SFTP Upload of wildcard Certs

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[x] The title contains the plugin to which this issue belongs

Describe the bug
I used the "Upload Certificate via SFTP" automation to upload my wildcard certificate from the OPNsense to an ubuntu machine. The folder on the ubuntu machine was not named correctly. Instead of the folder name starting with * it instead started with -. So the folder name was -.example.org instead of *.examle.org
To Reproduce
Steps to reproduce the behavior:

Upload a wildcard cert to an Ubuntu machine using the "Upload Certificate via SFTP" automation
A folder named -.example.org appears

Expected behavior
A folder named *.example.org should appear on the Ubuntu machine
Environment
OPNsense 23.1.6-amd64
os-acme-client 3.16

This is caused by input sanitization: https://github.com/opnsense/plugins/blob/c8a3470cda9ca7e160af962cf9b0a524cca4e05e/security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/upload_sftp.php#L423
However I think potential unsafe chars shouldn’t be allowed. Asterisk is valid in folder/filenames but dealing with it can be dangerous as it may expand to multiple paths when referencing the folder, depending on how and where it is used.


Doc about k8s CRD session sticky

Do you want to request a feature or report a bug?

Feature
What did you expect to see?

PR #5711 added support for k8s CRD session sticky. But I cannot find any doc to set it.

After some test, I find solution code. This is example used in IngressRoute.
  - match: PathPrefix(`/ping`)
    kind: Rule
    services:
    - name: name
      port: 8888
      sticky:
        cookie:
          httpOnly: true

There are also some examples of kind: TraefikServiceat docs/content/reference/dynamic-configuration/kubernetes-crd.yml for advanced usage.
Still find nothing in official website doc.

Closed by #6475.


Bug: Testing Angular component result an ResizeObserver not defined error

Describe the bug
Using the basic template example provided in ArcGIS for angular, running a simple unit test just to initiate the component, result an error:
ReferenceError: ResizeObserver is not defined
The error is coming from the MapView, if i'm creating a MapView element, i will get the error.
const view =  new MapView({...mapViewArgs})
Expected behavior
test should run.
Reproduce the issue
Run a simple project of Esri in Angular 13, using Jest for testing.
Operating System (check https://whatsmyos.com):

OS: Mac OSX
Device: Macbook M1

Hi @Or05230 I'll take a look and see if I can repro.

@Or05230 I did get it working with mocks. You'll need to implement mocks for ResizeObserver as well as all the @arcgis/core classes. I'll try to update that sample later today. In the meantime, you can take a look at these tests from a Vite/Vue implementation of Jest: https://github.com/odoe/nearby-app/blob/main/tests/data/map.spec.ts,

@Or05230 I updated the jest sample to work with mocks as well as included the ResizeObserver fix from @odoe: https://github.com/andygup/angular-jsapi-jest/blob/main/src/app/app.component.spec.ts. I'll go ahead and close this for now, let us know if any other showstopper issues come up.


DNS doesn't resolve in codespace

Seems like tailscaled is unable to update the dns resolver settings.
Tailscaled log:
logtail started
Program starting: v1.34.1-t328b49c4d-g921b59a2e, Go 1.19.2-ts3fd24dee31: []string{"tailscaled", "--state=mem:"}
LogID: xxxxx
logpolicy: using system state directory "/var/lib/tailscale"
logpolicy.ConfigFromFile /var/lib/tailscale/tailscaled.log.conf: open /var/lib/tailscale/tailscaled.log.conf: no such file or directory
logpolicy.Config.Validate for /var/lib/tailscale/tailscaled.log.conf: config is nil
wgengine.NewUserspaceEngine(tun "tailscale0") ...
setting link attributes: netlink receive: no such file or directory
router: v6nat = true
dns: resolvedIsActuallyResolver error: resolv.conf doesn't point to systemd-resolved; points to [<IP_ADDRESS> <IP_ADDRESS>]
dns: [rc=resolved resolved=not-in-use ret=direct]
dns: using "direct" mode
dns: using *dns.directManager
link state: interfaces.State{defaultRoute=eth0 ifs={docker0:[<IP_ADDRESS>/16] eth0:[<IP_ADDRESS>/24]} v4=true v6=false}
magicsock: disco key = d:xxxxx
Creating WireGuard device...
Bringing WireGuard device up...
external route: up
Bringing router up...
Clearing router settings...
Starting link monitor...
Engine created.
pm: migrating "_daemon" profile to new format
got LocalBackend in 2.104s
Start
Backend: logs: be:xxxxx fe:
Switching ipn state NoState -> NeedsLogin (WantRunning=false, nm=false)
blockEngineUpdates(true)
wgengine: Reconfig: configuring userspace WireGuard config (with 0/0 peers)
wgengine: Reconfig: configuring router
wgengine: Reconfig: configuring DNS
dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0}
dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[]}
dns: OScfg: {Nameservers:[] SearchDomains:[] MatchDomains:[] Hosts:[]}
health("overall"): error: state=NeedsLogin, wantRunning=false
Start
generating new machine key
machine key written to store
Backend: logs: be:xxxxx fe:
Switching ipn state NoState -> NeedsLogin (WantRunning=true, nm=false)
blockEngineUpdates(true)
control: client.Shutdown()
control: client.Shutdown: inSendStatus=0
control: mapRoutine: quit
control: Client.Shutdown done.
StartLoginInteractive: url=false
control: client.Login(false, 6)
control: LoginInteractive -> regen=true
control: doLogin(regen=true, hasUrl=false)
control: control server key from https://controlplane.tailscale.com: ts2021=[fSeS+], legacy=[nlFWp]
control: Generating a new nodekey.
control: RegisterReq: onode= node=[Zi5HA] fup=false nks=false
control: creating new noise client
control: RegisterReq: got response; nodeKeyExpired=false, machineAuthorized=false; authURL=true
control: AuthURL is https://login.tailscale.com/a/xxxxxxxx
Received auth URL: https://login.tailsc...
popBrowserAuthNow: url=true
blockEngineUpdates(true)
stopEngineAndWait...
requestEngineStatusAndWait
requestEngineStatusAndWait: waiting...
requestEngineStatusAndWait: got status update.
stopEngineAndWait: done.
control: doLogin(regen=false, hasUrl=true)
control: RegisterReq: onode= node=[Zi5HA] fup=true nks=false
control: RegisterReq: got response; nodeKeyExpired=false, machineAuthorized=true; authURL=false
blockEngineUpdates(false)
active login: xxxx
Switching ipn state NeedsLogin -> Starting (WantRunning=true, nm=true)
magicsock: SetPrivateKey called (init)
wgengine: Reconfig: configuring userspace WireGuard config (with 1/5 peers)
wgengine: Reconfig: configuring router
monitor: RTM_NEWROUTE: src=, dst=10.xx.0.0/16, gw=, outif=10, table=52
monitor: RTM_NEWROUTE: src=, dst=10.xx.xx.0/24, gw=, outif=10, table=52
Taildrop disabled; no state directory
peerapi starting without Taildrop directory configured
peerapi: serving on http://<IP_ADDRESS>:33280
peerapi: serving on http://[fd7a:115c:a1e0:efe3::6440:de9e]:33280
Switching ipn state Starting -> Running (WantRunning=true, nm=true)
health("router"): error: setting up filter/ts-input: running [/usr/sbin/ip6tables -t filter -N ts-input --wait]: exit status 3: ip6tables v1.8.4 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)

Perhaps ip6tables or your kernel needs to be upgraded.

This seems to work fine now 🤷♂

Having the same issue here. tailscale status says:
# Health check:
#     - router: setting up filter/ts-input: running [/usr/sbin/ip6tables -t filter -N ts-input --wait]: exit status 3: ip6tables v1.8.7 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.

There are other issues (tailscale/tailscale#3996) that reference this. For me: running ubuntu-2204 image this worked:
rm -f /sbin/ip6tables && ln -s /sbin/ip6tables-nft /sbin/ip6tables
sudo tailscale down # if it's already running
sudo tailscale up --accept-routes

Using this, I didn't need privileged, root or anything else.

Thanks for this, fixed my issue completely. I wanted to add that I had to issue sudo su root first though.


HTTPS REQUEST- UNABLE TO VERIFY CERTIFICATE

after adding the require('ssl-root-cas/latest').inject();
i still get the same error.

any help appreciated.

Hi,
I am having the same problem as well.
Starfield G2

It looks like you're using a company-signed or self-signed CA, but you didn't add it.
You need to use .addFile('/path/to/file') to add your custom CA into the root chain.
If you need to see the certificate and save it to a file, this might help: https://www.tbs-certificates.co.uk/FAQ/en/247.html
(often the company-signed cert will include the root as well)

fixed it by adding rejectUnauthorized:false, to the api options using node https request.

rejectUnauthorized will disable the security verification of the request, defeating the purpose of the certificate.
The correct solution to this problem is the one I mention - you need to put the root certificate (and any intermediates) in the chain.

Correction: you don't add the intermediates. The intermediates must be bundled with the certificate being served by the webserver.
You can test to see if the configuration is an error on their end with:
openssl s_client -showcerts \
  -connect example.com:443 \
  -servername example.com

@coolaj86 the API i was using doesn't have the HTTPS signed. the API doesn't have an HTTPS certificate yet. just an embedded one.  i tried adding the root certificate but still it did not work. which i feel its because the API itself doesn't have a valid HTTPS signed certificate.


Distance between objects in real time

Required Info

Camera Model
D401

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win 11

Platform
PC

SDK Version
Latest

Language
python/opencv

Issue Description
Hi Marty.
I want to find the distance between a pointing stick and the surface it points to. In other words, I want to find the distance from the the stick and the point where its "trace" hits.
I am having trouble figuring out how to detect when and where the trace hits the surface. The surface is non uniform, and messy. So I cannot approximate it with a simple plane equation.
I should have the surface's depth data since I am streaming everything using my realsense. But I suspect there is still some information missing that might prevent any implementation from working.
One idea I had was to loop through the xyz points of the trace and loop through the 3D data of the camera stream and "check" if any of the xyz match an xyz on the surface, but this seems like it would have very inefficient time complexity.
I suppose this problem can be likened to detecting collisions between objects and point clouds.
I was also looking into triangulation, but not sure if it applies here.
If you have any ideas, pointers, or any ideas on how to minimize runtime, I would really appreciate the help.
Thanks!

Hi @willyum00  If the camera is on the end of the pointing script then all that you might need is a script that returns the depth value in meters of the depth coordinate at the center of the camera's view, like the RealSense SDK's C++ rs-hello-realsense example.
https://github.com/IntelRealSense/librealsense/tree/master/examples/hello-realsense
For Python there is the distance_to_object example.
https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb
The most processing-efficient approach for getting the depth value of a single specific coordinate without burdening the computer's CPU with depth-color alignment is likely to be to use the rs2_project_color_pixel_to_depth_pixel SDK instruction to convert a 2D color pixel to a 3D depth pixel - see https://github.com/IntelRealSense/librealsense/issues/5603#issuecomment-574019008 for a Python example of the instruction.

I think I have found a solution. The camera is not on the end of the pointer stick, it's on the side. I can change the position of the camera but I cannot put it on the end of the stick due to restrictions.
A different question I have now, but still related to my current task is:
I can easily obtain the z distance in mm from each pixel on the depth camera using get_depth. However, I have not been able to figure out how to get x-y distance data from the camera. In other words, how can I make it so that if I were to measure the distances between objects in x,y coordinates of the camera screen, how can I make it accurate to the real world in millimeters rather than pixels?

If you wish to make real-world measurements between objects instead of between the camera and an object, there is a Python script for doing so at the link below.
https://github.com/soarwing52/RealsensePython/blob/master/separate functions/measure_new.py
This is a Python conversion of a C++ SDK example called rs-measure.
https://github.com/IntelRealSense/librealsense/tree/master/examples/measure

Hi @willyum00  Do you require further assistance with this case, please?  Thanks!

Hi Marty, yes. I am looking at the code now and it's trying to open a certain bag file. I don't know what bag files are. Also, I want to run this in real time, not a recording. How would I modify this code to do this? Thank you!

I was able to get the code to take the live stream from a camera, but it only works one frame at a time, and hangs on a single frame until I press "q"

Also, there is a strange blue tint on the image, I'm not sure what's causing that.

I was able to solve the blue tint problem using color spaces,  from this article: https://realpython.com/python-opencv-color-spaces/.
Not really sure why this would happen though. I am still trying to figure out how to make this code work with a live stream video.

Bag files are like a video recording that contains raw camera data.  RealSense SDK scripts can treat the data in a bag file as though it is coming from a live camera, and so bag files can be used by scripts with minimal changes to scripting.
By default the SDK uses a live camera, and a cfg.enable_device_from_file() instruction must be deliberately added to scripts in order for them to read data from a bag instead.  So if a script contains cfg.enable_device_from_file(), it can be changed to a live-camera script by removing this instruction.
In regard to the blue tint, OpenCV uses BGR8 as its default colorspace, so a RealSense script that uses OpenCV code should use BGR8 instead of RGB8 in order to avoid the colors of the image being reversed.  https://github.com/IntelRealSense/librealsense/issues/9304#issuecomment-869712832 has further information about this.

Thanks for the help

You are very welcome.  I'm pleased that I could help.  Thanks very much for the update!


Why do we define Lifecycle Management in the artifact-spec?

I think it is unnecessary because:

Manifest spec defines what the manifest is. Lifecycle management is about object storage, and seems out-of-place in a manifest spec. Current OCI manifest specs don’t define lifecycle management.
Differences in lifecycle management between registries does not affect cross-registry portability of artifacts. Therefore there is no immediate need for everyone to agree on one particular behavior.
Registries currently implement object cleanup based on their own use-cases (public vs private, free vs paid). Adding a requirement in the spec will force all registries to adopt the same behavior for reference artifacts, which may be inconsistent with their current object cleanup behavior.

I do agree that the spec should not prevent registries managing object lifecycles efficiently. Preventing reference cycles that could occur due to the reverse-ownership relation introduced by the subjectManifest field is important in this regard.
Therefore I propose that we remove the “Lifecycle Management” section from artifact-manifest.md, and instead document that preventing reference cycles was a goal when designing this spec.

Thanks @lahirurd,
This is a great discussion. With the addition of references and the many inconsistencies with registries, the intent here is to help standardize expectations across registries. Over the last several years, we've all seen registries grow in size, and users struggle to maintain the content within their registries, differentiating the content they've deployed vs. just built. Reverse references adds the risk of dangling documents if not specified.
With the artifact.manifest being a new document that describes the relationships between artifacts, it seemed like the right time to start setting consistent expectations.
Is there something in conflict to ecr behavior?
I believe these are the relevant sections:

Lifecycle management defined, starting to provide standard expectations for how users can manage their content. It doesn't define GC as an internal detail

Lifecycle Management
For Phase 1, artifact types will be limited to reference types. A reference type is an artifact that doesn't have a lifecycle unto itself. A container image is said to have an independent lifecycle. A reference type, such as an SBoM or signature have a lifecycle tied to the subjectManifest. When the subjectManifest is deleted or marked for garbage collection, the defined artifact is subject to deletion as well. A distribution instance SHOULD delete, (refCount -1) the artifact when the subjectManifest is deleted.

I don't think there's anything specific to ECR that's the issue here. ECR does not delete untagged images by default, and based on this neither does ACR?
My concern here is that we're defining an artifact manifest here, and not just a "reference type". subjectManifest is defined to be optional field. Therefore if we push an artifact without a subjectManifest, how would its lifecycle look like? Would this artifact have a lifecycle on its own? Does the presence of the subjectManifest field control the lifecycle of an artifact then, and an artifact with a subjectManifest is "less permanent" than one without?
Perhaps some users might want to keep artifacts around even after their subjectManifest is deleted. subjectManifest relationship is not a parent-child relationship after all. Not defining the behavior in the spec allows registries to choose the behavior they want, based on their users' needs.

For whatever it's worth, I'm a maintainer of the cosign image signing tool. We use a workaround today with tags to ensure signatures do not get prematurely garbage-collected, which has the end result of signatures never getting garbage collected, even if the image they refer to is manually deleted.
I initially expected lots of pushback to this behavior, but I've received literally zero complaints from end users. Cosign is currently in use at scale, in production, by several dozen organizations.

I think OCI should work on defining a common expectation for lifecycle management, but that's not something that belongs in artifact-spec, rather it should be done in distribution-spec. I disagree that we should expect every registry to make their own choices, because the result is very inconsistent behavior for users and any tooling or workflow designed to work with a user's choice of registries becomes brittle and error-prone.
As long as the created artifacts can be cleaned by a GC policy on most registries, we should be fine leaving this out of artifact-spec. The two requirements I see are:

Existing registries without artifact-spec support shouldn't break if they have artifacts pushed (no 5xx errors) and artifacts shouldn't be impossible to GC.
Registries that add support for artifact-spec shouldn't be expected to implement a major redesign of their GC policies (e.g. to handle reference loops).

To @dlorenc's point, tagging an artifact can also be used to alter the lifecycle policy, but I'd like to know that solutions are possible that do not depend on this.

+1, I like that framing of the requirements!

I agree. If/when lifecycle management is added to an OCI spec, it should consider all types of manifests, and clearly define how it should work for all use-cases. It's non-trivial work, and I don't think we should/need to do it here/now.


Use site models in PlantingSiteEdit

Commit ce51d3cd introduced "existing" and "desired" models to the planting zone
and subzone edit classes, replacing fields that pulled values from those models.
Do the same for the top-level edit class for the site as a whole.

#1984
#1983  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sgrimm and the rest of your teammates on  Graphite

Merge activity

May 23, 12:18 PM EDT: @sgrimm started a stack merge that includes this pull request via Graphite.


using addMap() seems to break replication

I'm unsure whether this is a problem with secure-scuttlebutt or scuttlebot, but using the addMap() function seems to stop my messages from being synced to other peers. My intuition is that Scuttlebot might be hashing (or broadcasting?) the mapped data rather than the original, but I'm not familiar enough to understand exactly what's going on.

If the above is the case, maybe we'd need a way for critical message infrastructure like replication/verification to opt out of any message modifications?

This is about your type:blob messages, right? I only looked at it briefly but the only case I could think of why you wouldn’t be able to sync those out is if your createHistoryStream or ebt replication sent out messages with the map applied... if it does this you sent the wrong content for the signature...
The unaltered message (just with the type and blob reference) should be totally fine and go out..
do other messages still get out?

Yeah, any messages before the mapped message (blob) went out just fine, but the blob and all messages afterward didn't get out at all.

buut.. which key / sequence is that?
I got %SUB6xPT0IO2kAGIYamCAjWApx+TDzsCYotU+EZkPWNE=.sha256 as seq:6094 and the latest I got from you 6131.

My messages are getting out now because I've disabled the plugin. The map only happens on read, so as soon as I disabled the plugin and restarted it started replicating all of my messages again.
It seems to me that we need to give an option to disable addMap() functionality on infrastructure that's going to hash/replicate/etc.

honestly, I thought this was just applied on read by clients that want it.
Yes, enabling this by default for other clients will get you in trouble with replication.

Yeah, the idea is that you'd be able to do some changes behind the scenes rather than having to make changes to every single plugin. For example, if you wanted to do a cloud-to-butt find+replace, there's no easy way to do that. With addMap(), you'd do something like:
ssb.addMap((val, cb) => {
  if (val.value.content.type === post) {
    val.value.content.text = val.value.content.text.replace(/cloud/g, 'butt')
  }

  cb(null, val)
})

Do you know why the private unboxing code isn't having this problem? Seems like it's doing the same sort of thing, so I'm wondering what the difference is.

Hmmm.... my guess would be that the private unbox you mentioned doesn’t use this addMap feature but I’m a bit out of my depth here.

No problem, the addMap() was designed to work similarly to the private unbox, but it sounds like I've done something wrong. I'll keep poking around, thanks for your help!

beware: halved finished thinking between stuff and definitely not easy but might be interesting to look into refactoring the private unbox into using this if it is so similary in spirit and features... those should also be tested which might help to untangle this?

I think I've got a pretty good understanding of the problem now. The important functions here are rebox() and reboxValue(), which seem to be the "clean up your room before mom gets home" functions that sweep up any trace of the private unboxer and revert the changes. Unfortunately, these are only added to db.get() but don't trigger on db.stream(), so when we add maps we automatically fail this test because it's a stream.
To make things more complicated, most of our "reboxing" logic is specific to the private unboxer, so I think we're going to need a more general solution. I think the best course of action would be:

Standardize on a metadata location like value.meta so we don't have to remove arbitrary properties (currently "private", "cyphertext", and "unbox"), which will only increase in complexity over time.
Specify that transformers (main_unboxer and addMap, currently) must record the original data in a standard location, like value.meta.original.content, when making a modification, so that we can rebox the values correctly.
Modify the tests so that db.stream() doesn't complain about value.meta being added, or call the reboxer on streams.

Btw @cryptix that was a great call, I don't think I would've found the solution without that suggestion. Thank you!