Nuxt3: "StoryblokComponent" does not prerender correctly

hiho,
i don't know, if this is a problem with my config or a general probpem with the SDK, but i really have to figure out a solution for this problem, cause this behavior is the opposite of the reason why we/ people are using nuxt.
I simply want, if i prerender the pages through nuxt with nuxt generate or nuxt build in nuxt3, that the output is simple html, without any web components. it looks like as soon as i use the recommented <StoryblokComponent /> the (pre-)renderer stop to work from this point on (also in tests without fetch/ using static objects for this component).
here i have an example-page with a "normal" component (blue) in it , normal text/ html-element (violet) and once dynamic components with "StoryblokComponent" (green) and "component" (yellow) - in both cases a simple paragraph and a button.

when i generate the static html with nuxt generate, it will output the page as follow:

.. every component is prerendered as expected, but not the components from the <StoryblokComponent /> 🙈. how can i / we change this?
thx 4 help :)

package.json:
  "scripts": {
    "dev": "nuxt dev --https --ssl-cert localhost.pem --ssl-key localhost-key.pem",
    "build": "nuxt build",
    "generate": "nuxt generate",
    "preview": "nuxt preview"
  },
  "devDependencies": {
    "@types/vue-select": "^3.16.1",
    "nuxt": "3.0.0-rc.8"
  },
  "dependencies": {
    "@pinia/nuxt": "^0.4.0",
    "@storyblok/nuxt": "^4.3.0",
    "@vuelidate/core": "^2.0.0-alpha.44",
    "@vuelidate/validators": "^2.0.0-alpha.31",
    "axios": "^0.27.2",
    "pinia": "^2.0.18",
    "vue-select": "^4.0.0-beta.3",
    "vue3-popper": "^1.5.0"
  }

nuxt.config.js:
export default defineNuxtConfig({
    mode: 'universal',

    buildModules: [
        '@pinia/nuxt'
    ],

    /*
    ** Headers of the page
    */
    head: {
      title: pkg.name,
      meta: [
        { charset: 'utf-8' },
        { name: 'viewport', content: 'width=device-width, initial-scale=1' },
        { hid: 'description', name: 'description', content: pkg.description }
      ],
      link: [
        { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
      ]
    },

    modules: [
      [
        '@storyblok/nuxt'
      ]
    ],

    /*
    ** MODULE-CONFIG: Storyblok  --> see: https://github.com/storyblok/storyblok-nuxt
    */
    storyblok: {
      accessToken: 'xxx',
      bridge: process.env.NODE_ENV !== 'production',
      apiOptions: { // --> see: https://github.com/storyblok/storyblok-js-client#class-storyblok
        cache: {
          type: "none"
        }
      },
      useApiClient: true
    },

  /*
  ** Global variables
  */
  runtimeConfig: {
    // The private keys which are only available within server-side
    apiSecret: 'xxx',
    // Keys within public, will be also exposed to the client-side
    public: {
      serverUrl: 'xxx'

    }
  },

  /*
  ** Global CSS
  */
  css: [
    '~/assets/styles/main.css',
    '~/assets/styles/fonts.css',
  ],

  html: {
    minify: {
      collapseBooleanAttributes: true,
      decodeEntities: true,
      minifyCSS: true,
      minifyJS: true,
      processConditionalComments: false,
      removeEmptyAttributes: true,
      removeRedundantAttributes: true,
      trimCustomFragments: true,
      useShortDoctype: true
    }
  },

  ssr: true,  // https://v3.nuxtjs.org/guide/deploy/static-hosting/

  /*
  ** "nuxt generate" config
  */
  generate: {
    crawler: false,  // crawler jumps like google with links trough the app/ site and tries so to get all relevant routes
    devtools: process.env.NODE_ENV === 'development',
    routes: [
      '/',
    ]
  },

  /*
  ** nitro config (e.g.: ssr-prerendering / "nuxt build")
  */
  nitro: {
    prerender: {
      routes: [
        '/services/wizpages/treppenlift',
        '/services/wizpages/rollstuhl',
        '/',
      ]
    }
  }

This one seems to be related https://github.com/storyblok/storyblok-nuxt/issues/142. Let's catch up in our call on the state of this one and if something has changed from that issue or not @alexjoverm.

was resolves in v4.x.x 👍


Is this production ready? MS support suggests to turn this feature on for WAF.

Hello,
Can someone please confirm if this feature can be used in production? Talking to MS support they told us:

https://learn.microsoft.com/en-us/power-pages/configure/azure-front-door documentation is outdated. (as we hit some error following step 2b - Another custom domain with the same host name already exists.

We should just follow https://learn.microsoft.com/en-us/power-pages/admin/add-custom-domain and turn on WAF feature (which I believe still in Preview)

They cannot confirm whether this feature is production ready. Can you please advise?

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

ID: 4a8122ad-5f7b-cedf-707b-7bc056ae43c6
Version Independent ID: 4a8122ad-5f7b-cedf-707b-7bc056ae43c6
Content: Configure Web Application Firewall for Power Pages (preview)
Content Source: power-pages-docs/security/configure-web-application-firewall.md
Service: power-pages
GitHub Login: @dileepsinghmicrosoft
Microsoft Alias: dileeps

You can enable platform provided WAF feature in production. If you want granular control on WAF rules, you can directly use Azure front door.  Closing this issue.


flutter_kakao_login conflict with multi_image_picker

i got issue with https://pub.dev/packages/multi_image_picker and flutter_kakao_login.
the function onActivityResult in multi_image_picker override so that function in flutter_kakao_login not working and that make crash app in android.
error in line => https://github.com/Sh1d0w/multi_image_picker/blob/master/android/src/main/java/com/vitanov/multiimagepicker/MultiImagePickerPlugin.java#L575
because photos value is null.
i have change that and it working for me
`public class FlutterKakaoLoginPlugin implements FlutterPlugin, ActivityAware {
private static final String CHANNEL_NAME = "flutter_kakao_login";
private static final String LOG_TAG = "KakaoTalkPlugin";
private static Registrar registrar;
private Activity activity;
private MethodChannel channel;
private FlutterKakaoLoginHandler handler;
/**

Plugin registration. for legacy Embedding API
*/
public static void registerWith(Registrar registrar) {
Activity activity = registrar.activity();
if (activity == null) {
return;
}
FlutterKakaoLoginPlugin.registrar = registrar;

final FlutterKakaoLoginPlugin instance = new FlutterKakaoLoginPlugin();
instance.onAttachedToEngine(registrar.messenger());
instance.onAttachedToActivity(activity);

}
@Override
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {
onAttachedToEngine(flutterPluginBinding.getBinaryMessenger());
}
private void onAttachedToEngine(BinaryMessenger messenger) {
channel = new MethodChannel(messenger, CHANNEL_NAME);
}
@Override
public void onDetachedFromEngine(FlutterPluginBinding binding) {
channel.setMethodCallHandler(null);
channel = null;
handler = null;
}
@Override
public void onAttachedToActivity(ActivityPluginBinding activityPluginBinding) {
onAttachedToActivity(activityPluginBinding.getActivity());
if(handler != null) {
activityPluginBinding.addActivityResultListener(handler);
}
}
private void onAttachedToActivity(Activity _activity) {
activity = _activity;
if (activity != null && channel != null) {
handler = new FlutterKakaoLoginHandler(activity, channel);
FlutterKakaoLoginPlugin.registrar.addActivityResultListener(handler);
channel.setMethodCallHandler(handler);
}
}
@Override
public void onDetachedFromActivityForConfigChanges() {
onDetachedFromActivity();
}
@Override
public void onReattachedToActivityForConfigChanges(ActivityPluginBinding activityPluginBinding) {
onAttachedToActivity(activityPluginBinding.getActivity());
// after a configuration change.
}
@Override
public void onDetachedFromActivity() {
channel.setMethodCallHandler(null);
activity = null;
handler = null;
}
}`

This issue was fixed in the multi_image_picker plugin.
Note please. https://github.com/Sh1d0w/multi_image_picker/pull/514


Show schema for table in Data Source pane

About You:
Name: Alex K
Company: SQream
Your question:
Please, let us know how to configure JDBC based connector to show schema name for tables in Data Source pane (in case when schema is not default).
As an example PostgreSQL connector:

But if I try to use this sample it does not show.
So, I can assume that probably it can be achieved through some configuration in .taco package.
Thanks.

Hi Alex,
The postgres_jdbc sample you reference is written in Connection Dialog V1 style.  To include schema on the Data Source pane (assuming the underlying database supports it) the following line should be added to connection-dialog.tcd: <has-schemas value="true" />.  XSD for reference.
For writing a new connector I'd also recommend reviewing the documentation on Connection Dialog V2.  Here is a sample.  Based on feedback we've more clearly separated the Connection Dialog and Data Source pane configurations with this design.  See the 'The Connection Metadata File' section for more details.
Thanks.

Hi Alex,
The postgres_jdbc sample you reference is written in Connection Dialog V1 style.  To include schema on the Data Source pane (assuming the underlying database supports it) the following line should be added to connection-dialog.tcd: <has-schemas value="true" />.  XSD for reference.
For writing a new connector I'd also recommend reviewing the documentation on Connection Dialog V2.  Here is a sample.  Based on feedback we've more clearly separated the Connection Dialog and Data Source pane configurations with this design.  See the 'The Connection Metadata File' section for more details.
Thanks.

Hi Ross,
We already has connector written in Dialog V1 style. When I add has-schemas flag it does show database and schema selectors.
And if I want to achieve exactly the same result as on screenshot (show schema next to the table name) I should rewrite connector in Dialob V2 style. Am I right?
Thanks.

Hi Ross,
We already has connector written in Dialog V1 style. When I add has-schemas flag it does show database and schema selectors.
And if I want to achieve exactly the same result as on screenshot (show schema next to the table name) I should rewrite connector in Dialob V2 style. Am I right?
Thanks.

Sorry, I misunderstood your previous question. The abc (test.abc) style of table name shown in the schema viewer is not customizable via the SDK today, either by V1 or V2 style.  What is shown above is a feature of Tableau's built-it PostgreSQL connector.
Thanks for raising this issue.  I'll tag this as an enhancement request for consideration by the team for a future Tableau release.

Sorry, I misunderstood your previous question. The abc (test.abc) style of table name shown in the schema viewer is not customizable via the SDK today, either by V1 or V2 style.  What is shown above is a feature of Tableau's built-it PostgreSQL connector.
Thanks for raising this issue.  I'll tag this as an enhancement request for consideration by the team for a future Tableau release.

Hi, I am a new PM for the Connector SDK and I am looking at our feature backlog and getting things prioritized. I would appreciate if you can give your feedback for our product via this form. It should only take 2-5 mins but would be super valuable to our team. Thanks in advance!!
https://docs.google.com/forms/d/e/1FAIpQLSfs5OreNsxnva_uTO2vTxnoF-oq-37tEdrUpirUKwqud2Ib7g/viewform?usp=sf_link


Update README.md - Fix removed -incubator repository name in the development command section

Fix removed -incubator repository name in the development command section and pointing to the cloudfoundry repository.
Resubmitting to the develop branch based on Marcio's command.
Thanks marcio - in the future I will push to the develop branch only.

Thanks Krishna!


fix: get tenant specific arm tokens for connections

Description
Applies the tenantId from the publishing profile to the auth process, thus requesting a token for the appropriate tenant.
If not present in the publishing profile, falls back to token auth as this indicates a legacy (pre-tenant support in Composer) publishing profile.
Task Item
fixes #7536

Coverage decreased (-0.03%) to 50.809% when pulling 0b9a02d588ec340adabff53eb7fa7592bbb31ca0 on benbrown/connectiontenant into f54b2e8b2d44fe8ac4bdc1d3ebc3619d91d77348 on main.


Feat (theme) - Compatibility with Dark Reader

Dark Reader is a browser extension that automatically converts webpages to dark theme. Unfortunately, DesModder does not play nice with it. As you can see from the screenshots below, the background color in the intelisense menu isn't inverted, and the main text color in the menu isn't inverted. The rest of desmos looks just fine with Dark Reader enabled, so I'm pretty sure the problem isn't Dark Reader.

Dark Reader On
Dark Reader Off

I use Dark Reader personally and even contributed a fix that helps with Text Mode.
I occasionally run into the problem you're describing but can normally fix it by reloading the page or toggling Dark Reader off-then-on-again (Alt-Shift-D twice).
Two questions for you:

Does this problem occur every time you open Desmos with DesModder enabled?
Does the workaround (reload page or toggle off-then-on) work consistently?

Yes, it happens every time I load desmos with desmodder enabled
No, although I have experienced the problem you're talking about before (where you have to toggle dark reader), I haven't ever been able to fix this case by toggling dark reader.

I was checking on this and realized this issue only happens on Firefox. Chrome renders all the components just fine.
It seems to be an issue with the extension most likely.

Glad to see this is easily reproducible on Firefox (I can reproduce it too).
My guess of what's happening is that Firefox doesn't allow Dark Reader access the styles injected by DesModder.


tutorial code does not compile

@Naios

this code from "Connecting continuables" dosnt compile under Visual studio 2019. error is "attempting to reference a deleted function". I think you are missing a std::move() when calling cti::when_all()
// cti::populate just creates a std::vector from the two continuables.
auto v = cti::populate(cti::make_ready_continuable(0),
cti::make_ready_continuable(1));
for (int i = 2; i < 5; ++i) {
// It is possible to  add more continuables
// to the container afterwards
container.emplace_back(cti::make_ready_continuable(i));
}
cti::when_all(v)
.then([](std::vector resolved) {
// ...
});

Commit Hash
{Please write here}
Expected Behavior
{Please write here}
Actual Behavior
{Please write here}
Steps to Reproduce
{Please write here}
Your Environment

OS: {Please write here - Windows/Linux dist/OSX}
Compiler and version: {Please write here - MSVC/Clang/GCC/Other}
Standard library (if non default): {Please write here}

Did you try to move the vector into when_all?
Continuable follows strict move on invalidation and thus the copy constructor and copy assign operator is deleted.
cti::when_all(std::move(v))
  .then([](std::vector<> resolved) {
  // ...
  });

yes, std::move(v) works.

Perfect, was the code without the move somewhere in the documentation and needs a correction?

yes, its here toward the bottom:
https://naios.github.io/continuable/tutorial-connecting-continuables.html


feat(DIA-470): Add news section

This PR resolves DIA-470  and DIA-469
Description
Extracted and adapted from #9741. Now hidden under the feature flag for QA purposes.
iOS
https://github.com/artsy/eigen/assets/15792853/bfa68ef1-5c51-4456-9dd2-7668a7e1026f
Android
https://github.com/artsy/eigen/assets/15792853/8fb89500-2b84-4d18-9a93-beb9be0c8aff
PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

feat: enable news section in the home screen(hidden by ff) - araujobarret

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

This PR contains the following changes:

Cross-platform user-facing changes (feat: enable news section in the home screen(hidden by ff) - araujobarret)

  Generated by :no_entry_sign: dangerJS against bda3befaa2ec209c5248a2f0b588bb04552891dd

Looks nice! I must admit though I am not a big fan of its position - the curator's picks rail is one of the most converting rails in the app, it's now even one position lower and I am afraid this will make fewer users see the rail.

If I notice a big shift in the rail views dashboard in Looker, I will let you folks now

😍

@MounirDhahri a big shift up or down? I don't have access to Looker


Update Node.js examples to use AVIF

Hey!
Thank you for the wonderful library.
I just posted a blog post that shows how using AVIF with thumbhash produces 50% smaller images.
https://pillser.com/engineering/2024-06-20-optimizing-image-loading-with-avif-placeholders-for-enhanced-performance
Perhaps it should be the default?

The idea is to transmit the hash, not the image of the decoded hash. Assuming you are in fact generating them on the server.

@Green-Sky Could you elaborate? I am not confident that I am following

It reads like you are rendering the blurhash to png/avif on the server side and then send it as part of the html to the client.
What you really want to do, if you are not doing it, is send the blurhash to the client and then run some js that renders the image on the client.
also this issue might be of interest to you: https://github.com/evanw/thumbhash/issues/33

oh that was not obvious at all. hah!
Well, I need to update the article it seems.

so, on the client side I would do something like this?
const base64ToUint8Array = (base64: string) => {
  const binaryString = atob(base64);
  const len = binaryString.length;
  const bytes = new Uint8Array(len);
  for (let i = 0; i < len; i++) {
    bytes[i] = binaryString.charCodeAt(i);
  }

  return bytes;
};

const dataUrl = thumbHashToDataURL(
  base64ToUint8Array('a/cNG4L1NUOKhahX+XncHfg='),
);

This is what I have so far...
const base64ToUint8Array = (base64: string): Uint8Array => {
  const binaryString = atob(base64);
  const len = binaryString.length;
  const bytes = new Uint8Array(len);
  for (let i = 0; i < len; i++) {
    // eslint-disable-next-line unicorn/prefer-code-point
    bytes[i] = binaryString.charCodeAt(i);
  }

  return bytes;
};

const dataURLtoBlob = (dataURI: string): Blog => {
  const mime = dataURI.split(',')[0].split(':')[1].split(';')[0];
  const binary = atob(dataURI.split(',')[1]);
  const array = [];

  for (let i = 0; i < binary.length; i++) {
    // eslint-disable-next-line unicorn/prefer-code-point
    array.push(binary.charCodeAt(i));
  }

  return new Blob([new Uint8Array(array)], { type: mime });
};

const SupplementImage = ({
  image,
  loadingStrategy,
}: {
  readonly image: Image;
  readonly loadingStrategy: LoadingStrategy;
}) => {
  const [dataUrl, setDataUrl] = useState<string | null>(null);

  useEffect(() => {
    requestIdleCallback(() => {
      setDataUrl(
        URL.createObjectURL(
          dataURLtoBlob(
            thumbHashToDataURL(base64ToUint8Array('a/cNG4L1NUOKhahX+XncHfg=')),
          ),
        ),
      );
    });
  }, []);

Data URLs are already URLs. You don't need to convert a data URL into an object URL to be able to use it. Doing that is slower, requires more code, and actually introduces a memory leak as URLs returned by URL.createObjectURL keep the blob alive until you call URL.revokeObjectURL. Instead, you can just use the data URL as the URL directly.

The reason I used object URLs is to workaround this issue https://stackoverflow.com/q/78645289/24982554

I ended up moving image generation logic back to server-side. The load experience is far better despite the larger payload size.

I ended up moving image generation logic back to server-side. The load experience is far better despite the larger payload size.

That's kinda sad. You can still try to reduce the image size and transfer a low res version, since the blur is somewhat forgiving in zoom blur. (also check out the other issue i linked)


Update Leaflet T147361

Tested against kartotherian/kartotherian->master

Are there strong reasons to use a new version of this library?
It's nice to stay up to date with 3rd party but it also requires major testing. It's not really something we want to do unless there are good reasons.

tilerator's admin console may depend on this.


[Task]: Investigate why some transactions that are claimed seems to be expired

Task description
Some native token transactions show as "expired" even though they have been claimed.
Transaction that shows expired: https://explorer.shimmer.network/shimmer/transaction/0xe4742f03bf48f8228d6096945f5c2bbfaaa1a21a7c8f981bef1943a21685186f
https://discord.com/channels/397872799483428865/748265907351978115/1105409351381946369
Requirements
TBD
Creation checklist

[ ] I have assigned this task to the correct people
[X] I have added the most appropriate labels
[X] I have linked the correct milestone and/or project

We experience this issue too with l1-l2 transactions, even though they are claimed, firefly sometimes doesnt show the tx as claimed. @brancoder would be nice investigating why, if its an issue in firefly or it comes from the sdk


operators hive-operator (1.2.3427-e50103a)

Update Hive community operator to 1.2.3427-e50103a
/hold

/unhold

/merge possible

/merge possible

/merge possible

/merge possible


[formrecognizer] Fix parameter order on new test

Apparently neural build mode is no longer supported in West US 2: https://docs.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/concept-custom-neural#supported-regions. Skipping the test and fixing the param order.

API change check
API changes are not detected in this pull request.


pg_graphql not returning via API in Supabase

Describe the bug
Not sure if this is a Supabase issue, or an issue with this extension - feel free to move... I can no longer access GraphQL requests in Supbase outside of the .resolve() method in SQL (i.e via an IDE like Postman or Altair).
All I get when I run an introspection query is heartbeat - whereas I can query multiple entities using resolve()... any ideas?
To Reproduce
Steps to reproduce the behavior:

Create a new Supabase project
Create a table
Run a GQL query

Via SQL:
select graphql.resolve($$
    {
      usersCollection(first: 1) {
        edges {
          node {
            id
            email
          }
        }
      }
    }
$$);

<EMAIL_ADDRESS>
VIA API:
{
  usersCollection(first: 1) {
    edges {
      node {
        id
        email
      }
    }
  }
}

{
  "data": null,
  "errors": [
    {
      "message": "Unknown field 'usersCollection' on type 'Query'"
    }
  ]
}

Expected behavior
The API returns the same data as the SQL.
Versions:

pg_graphql commit ref: 0.3.1

Additional context
Add any other context about the problem here.

The error message from the API suggests that everything is talking together correctly
{
  "data": null,
  "errors": [
    {
      "message": "Unknown field 'usersCollection' on type 'Query'"
    }
  ]
}

and getting a correct response out of graphql.resolve means that we don't have a schema cache issue.
Are you sending requests to the API as the anon role? If so, does that role have access to the users table?

Sorry @olirice, we've got two threads going on here - project ref is areluzjrtslwlywijsur.
I am indeed using the anon role. But all I get in the introspection query is the heartbeat query. I created a Random table - but there is no Random reference in the introspection either.
Looks like there are two similar reports on the Discord too.

Similar Discord issues:

https://discord.com/channels/839993398554656828/843999948717555735/976460596574822411
https://discord.com/channels/839993398554656828/843999948717555735/971795935153758280

perfect, thanks
Security in pg_graphql is controlled by postgres roles, just like the postgrest API
When using the supabase dashboard, your queries are executed as a superuser. That gives you permission to see every table/column so the graphql query returns a result.
When querying through the API, the query is executed using the requester's role, which will be anon or authenticated depending on if the user is logged in or not.
Currently, anon and authenticated have not been granted permission to select from the Random  table
select
	pg_catalog.has_table_privilege('anon', 'public."Random"', 'SELECT'),          -- false
	pg_catalog.has_table_privilege('authenticated', 'public."Random"', 'SELECT'), -- false
	pg_catalog.has_table_privilege('postgres', 'public."Random"', 'SELECT'),      -- false
	pg_catalog.has_table_privilege('supabase_admin', 'public."Random"', 'SELECT') -- true

If you grant access to the anon user:
grant select on public."Random" to anon;

you'll see it render in introspection and will be able to resolve the query
Ref:
https://supabase.github.io/pg_graphql/security/

It looks like the public schema is not on the search path for the roles anon and authenticated. That search path determines visibility of entities over the API for GraphQL and REST
You can see that by executing the following from the dashboard
select current_schemas(false) -- {public,auth,extensions}

and then as the anon role
begin;
	set role=anon; -- or authenticated
	select current_schemas(false) -- {auth,extensions}
rollback;

to resolve that make sure your Schema and Extra Search Path API settings look like this

Apologies, on mobile here. But our settings look exactly the same?
I'm fairly new to Supabase and haven't changed them. Could something else be wrong?

@steve-chavez could you please take a look at the previous 2 messages.
Do you have any ideas how the search_path could fail to include public given those settings on the dashboard?

@joesaunderson To confirm public is not being included in the search_path,  try running the following through rpc:
create or replace function show_schemas() returns name[] as $$
  select current_schemas(false);
$$ language sql;

@joesaunderson
the anon and authenticated roles do not have usage permission on the public schema
select
    pg_catalog.has_schema_privilege('anon', 'public', 'USAGE'),         -- false
    pg_catalog.has_schema_privilege('authenticated', 'public', 'USAGE') --false

On newly created projects, both roles have usage permission on public so take a look through you migration files and double check if any of them altering perms
You can resolve the issue by granting usage on public to anon and authenticated. I tested it to confirm
-- Resolves the permissions issue
grant usage on schema public to anon;
grant usage on schema public to authenticated;

-- Verify that anon can select from `organization`
begin;
    set role=anon;

    select graphql.resolve($$
    {
      organizationCollection(first: 1) {
        edges {
          node {
            id
          }
        }
      }
    }
    $$); -- {"data": {"organizationCollection": {"edges": []}}}
rollback;

please lmk if that works for you once you've had a chance to test it out

closing due to inactivity

For anyone who stumbles here... it's very likely that if you've just set up your supabase, and you've got RLS enabled, there are probably no policies assigned to your db.

Adding a couple of basic policies will get you started.

Just a tip: if you're encountering this issue and working with column-grained privileges, don't forget to grant select permission on the column containing the foreign key. 🤓

@joesaunderson
the anon and authenticated roles do not have usage permission on the public schema
select
    pg_catalog.has_schema_privilege('anon', 'public', 'USAGE'),         -- false
    pg_catalog.has_schema_privilege('authenticated', 'public', 'USAGE') -- false

On newly created projects, both roles have usage permission on public so take a look through you migration files and double check if any of them altering perms
You can resolve the issue by granting usage on public to anon and authenticated. I tested it to confirm
-- Resolves the permissions issue
grant usage on schema public to anon;
grant usage on schema public to authenticated;

-- Verify that anon can select from `organization`
begin;
    set role=anon;

    select graphql.resolve($$
    {
      organizationCollection(first: 1) {
        edges {
          node {
            id
          }
        }
      }
    }
    $$); -- {"data": {"organizationCollection": {"edges": []}}}
rollback;

please lmk if that works for you once you've had a chance to test it out

I had dropped the public schema and the first two lines worked for me.


Migrations are invoked only on first schema.

In flywaySbt when set:
flywaySchemas := Seq("public", "test")
Flyway creates schema public and test, but migrations are invoked only on public.
[info] Database: jdbc:postgresql://localhost:5432/test_db (PostgreSQL 9.4)
[info] Validated 1 migration (execution time 00:00.040s)
[info] Creating schema "public" ...
[info] Creating schema "test" ...
[info] Creating Metadata table: "public"."schema_version"
[info] Current version of schema "public": 0
[info] Migrating schema "public" to version 0.0.1 - create
[info] Successfully applied 1 migration to schema "public" (execution time 00:00.181s).
[success] Total time: 1 s, completed Oct 11, 2015 12:56:51 PM
The problem is probably in file: java/org/flywaydb/core/Flyway.java
Code from 1054 line should be invoked for all schemas, not only for schemas[0]

This works as designed: http://flywaydb.org/documentation/faq.html#multiple-schemas
If you want to migrate multiple identical schemas, you must invoke Flyway multiple times with the appropriate configuration


TIM-248 Install Carousel for Testimonials

#20
#19  👈
main

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

Join @tamrivera05 and the rest of your teammates on  Graphite


Multiple LAN Game instances on a single Docker host with multiple IPs.

I'm trying to figure out how to run multiple instances on a single docker server with multiple IPs. I don't want my kids to have to login so I would like them to show up under LAN Games.
Issue 1 is that if I launch a container and specify an IP address for the server port it doesn't show up under LAN games.
SHOWS UP: -p 19132:19132/udp
DOESN'T SHOW UP:  -p <IP_ADDRESS>:19132:19132/udp
When I do "tcpdump" like you've referenced in other replies I do see traffic being received on that IP from my phone even when the server doesn't show up under LAN Games.
Issue 2 is that if I change the server port to say 19135 it doesn't show up under LAN Games either.
I'm also experimenting with "phantom" to see if I can get it to act as a proxy as well but not having much luck with it yet either. https://github.com/jhead/phantom
Thanks

This sounds similar to this issue https://github.com/itzg/docker-minecraft-bedrock-server/issues/28, but that might have been of the places you saw tcpdump mentioned.
As for port 19135, I'm guessing that doesn't up in LAN games since the client is only sending broadcast packets out to port 19132.

Thanks for the reply. Apologies for the duplicate issue. I had looked through the titles and searched but must have been using poorly chosen keywords.
I think that I have it working using the macvlan.....Portainer kept throwing errors on the docker-compose.yml file but when I went to command line I got the below to launch the services.
version: '2.4'
volumes:
  creative-data:
    driver: local
  survival-data:
    driver: local
services:
  creative:
    image: itzg/minecraft-bedrock-server
    environment:
      DIFFICULTY: easy
      EULA: 'TRUE'
      GAMEMODE: creative
      LEVEL_NAME: Creative
      ONLINE_MODE: 'false'
      SERVER_NAME: Creative
      VERSION: 1.14
    volumes:
    - creative-data:/data
    ports:
    - 19132:19132/udp
    hostname: minecraft-creative
    networks:
      lan_network:
        ipv4_address: 192.X.X.216
    stdin_open: true
    tty: true
  survival:
    image: itzg/minecraft-bedrock-server
    environment:
      DIFFICULTY: easy
      EULA: 'TRUE'
      GAMEMODE: survival
      LEVEL_NAME: Survival
      ONLINE_MODE: 'false'
      SERVER_NAME: Survival
      VERSION: 1.14
    volumes:
    - survival-data:/data
    ports:
    - 19132:19132/udp
    hostname: minecraft-survival
    networks:
      lan_network:
        ipv4_address: 192.X.X.217
    stdin_open: true
    tty: true
networks:
  lan_network:
    driver: macvlan
    driver_opts:
      parent: enp2s0
    ipam:
     config:
       - subnet: 192.X.X.0/24
         gateway: 192.X.X.254

Thanks for the reply. Apologies for the duplicate issue. I had looked through the titles and searched but must have been using poorly chosen keywords.
I think that I have it working using the macvlan.....Portainer kept throwing errors on the docker-compose.yml file but when I went to command line I got the below to launch the services.
version: '2.4'
volumes:
  creative-data:
    driver: local
  survival-data:
    driver: local
services:
  creative:
    image: itzg/minecraft-bedrock-server
    environment:
      DIFFICULTY: easy
      EULA: 'TRUE'
      GAMEMODE: creative
      LEVEL_NAME: Creative
      ONLINE_MODE: 'false'
      SERVER_NAME: Creative
      VERSION: 1.14
    volumes:
    - creative-data:/data
    ports:
    - 19132:19132/udp
    hostname: minecraft-creative
    networks:
      lan_network:
        ipv4_address: 192.X.X.216
    stdin_open: true
    tty: true
  survival:
    image: itzg/minecraft-bedrock-server
    environment:
      DIFFICULTY: easy
      EULA: 'TRUE'
      GAMEMODE: survival
      LEVEL_NAME: Survival
      ONLINE_MODE: 'false'
      SERVER_NAME: Survival
      VERSION: 1.14
    volumes:
    - survival-data:/data
    ports:
    - 19132:19132/udp
    hostname: minecraft-survival
    networks:
      lan_network:
        ipv4_address: 192.X.X.217
    stdin_open: true
    tty: true
networks:
  lan_network:
    driver: macvlan
    driver_opts:
      parent: enp2s0
    ipam:
     config:
       - subnet: 192.X.X.0/24
         gateway: 192.X.X.254

can you help me get this working please?
Do you just find your parent nic with ifconfig?
Does this yml file create the docker network?
also im unsure what to put where you have x.x. in the ip addresses??
I tried creating my own network via portainer before spinning up the containers with your yml file but had no luck. They just dont start


[TRACKER] Project converter issues

Godot version
4.x
System information
All
Issue description
There are quite a few issues about the Godot 3->4 project converter, so I guess it makes sense to organize them in one place.
Bugs (wrong conversions etc.)

[x] #74204
[ ] #74171
[x] #73996
[x] #73909
[x] #73505
[ ] #73393
[ ] #71188
[ ] #71134
[x] #70542
[ ] #67556
[ ] #66964
[ ] #66061
[ ] #57779

Missing conversions

[x] #74153
[ ] #73633
[ ] #71678
[ ] #67319
[ ] #67003
[x] #66321
[x] #66125
[ ] #66052
[ ] #65999
[ ] #65481
[ ] #63913
[ ] #63673
[ ] #62580
[ ] #55292
[ ] #50691
[ ] #74408

Steps to reproduce
Convert project.
Minimal reproduction project
N/A

While https://github.com/godotengine/godot/issues/73871 has converted in the title, it is not related to the project converter, just the C# bindings in general.

can we add tileset conversion issues?

https://github.com/godotengine/godot/issues/67556)
https://github.com/godotengine/godot/issues/71188

Adding a note that we should add these renames, most of them at least: https://github.com/godotengine/godot/pull/44194. And maybe some of these: https://github.com/godotengine/godot/pull/65437

As for tilesets/tilemaps my dedicated converter can help workaround issues, but may not work for everyone: https://github.com/tlobig/convert_gd3_togd4_tilemaps

an then this issue here is a treasure trove of things still wrong with the converter:
https://github.com/godotengine/godot/issues/50691

Will update my comment as I find and report issues:
#74408

One find by me, will add more if this is helpful for improving the converter:
#74493

Now, is there any plan to introduce a dedicated conversion system (cf. #50691)?

A bug/unintended refactor in the context of the converter:
#74650

Array slice method: The end argument is exclusive now. It was inclusive before. Conversion could fix this easily by adding -1.

CollisionShape3D fails to carry its shape resource over to 4.0. not sure if it is a bug so I'm mentioning it here.

#63550

#77931

#78069: Project converter unnecessarily removes messages from asserts

Project converter doesn't convert JoystickList to JoyButton #78070

Project converter doesn't remember animations with -loop in AnimationTree #75825


Translation Audit

Description
I was somewhat confused about the management of translations while working on my first PR in this repo. Specifically, in how to handle gaps in translations coverage (the translation key was in the code but not in the translation file) and superfluous translation keys (the key was in the translation file but not in the code).
I threw together this script to try to grasp the scope of the issue. I'm raising this to give visibility to @wadhwamatic. I'm not sure how translations fit into our priorities but hopefully this provides helpful context. Eventually, if we want to get stricter about translation support in the future, we could use parts of this script in our CI/CD process to flag missing translation support during PR reviews.
Some known issues:

it assumes the t() function always wraps a simple string. It doesn't handle variables or template strings.
it assumes all code is used. There's very likely code in this repo which no longer is accessible in the UI

Somewhat relates to:

https://github.com/WFP-VAM/prism-app/issues/1244

Output of the script:

Translation File
Missing Keys (gaps in coverage)
Extra Keys

haiti
Below ThresholdLoading Exposure Analysis DataNo Resultsexposed toThe "Ready, Set & Go!" systemOpacityReverse colorsForecast data as of Period 2Layer selection dateSendAuthentication requiredMap LabelsFooterAdmin AreasCreate AlertMap OptionsError: Impossible to get data forDistrict in new phase this monthTimelineTimestamps reflect local time in CambodiaLoading DataTableForecastRecommended actionsCompare LocationsPeriod 1Admin 2How to read this screenSelect an available date to view dataThe following layer requires authenticationView TableAbove ThresholdACTIONSAllSelect admin areaClear AllCountryNo dataDownload as GeoTIFFStartSizeofImpact Analysis onTablesEndLocation 1PositionDeselect AllDistrictChoose a table${isMobile ? 'Tap' : 'Click'} the map to selectNEWExposure valuePhasesno districtCloseLocation 2Population ExposureOperatorPopulation and percentage by phase classificationmore thanEmail Addressintersecting admin levelPRISM automated reportI STILL NEED HELPAnalysis ResultsRemove layerSelect ChartsPublication dateRemove Admin 1trig.Compare PeriodsDate RangeAdmin 1No DataDownload CSVDistrictsHide TableIndicatorsExposure AnalysisRemove Admin 2Download QML StyleActive Layer(s)PasswordRows Per PageRef. periodSummaryLogoTitleDownload as CSVat LevelSummary data as of Full LayerAlert NameChoose TableLoading documentDownload as GeoJSONSelect AllMap WidthRegionsUsername
SPI - 1-month6-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirps3-monthRainfall AmountTotal number of heavy rain days (rainfall > 95th percentile) within last 30 days of dekadTotal aggregate precipitation over a 1-year period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsChoose hazard layerMonthly precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsStressorsMeanLand Surface TemperatureHazardsIntegrated Context AnalysisRegionalPhase classification3-month Standardized Precipitation Index calculated from dekadal CHIRPS dataSPI - 1-yearICA area classificationNumber of days with heavy rainfall in the last 30 daysMap Preview1-monthHeavy RainFood security and nutrition outcomes1-month rainfall aggregate (mm)Multidimensional risk indexLand Surface Temperature Amplitude refers to the difference between the maximum and minimum temperature in degrees Celsius10-dayTotal aggregate precipitation over a 3-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsRainfall Anomalies10-day rainfall anomaly3-month rainfall aggregate (mm)Number of dry daysIMAGETotal aggregate precipitation over a 6-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsFlood recurrenceMinRainfall AnomalyStructural vulnerability9-month Standardized Precipitation Index calculated from dekadal CHIRPS dataNumber of days with intense rainfall in the last 30 daysNumber of days with extreme rainfall in the last 30 daysExport1-month rainfall anomalyLongest number of consecutive days with less than 2 mm precipitation in the last 30 days6-month rainfall anomaly1-year rainfall anomalyCombined hazard riskDaytime Land Surface Temperature - 10-day (MODIS)Drought recurrenceRainfallNumber of consecutive days with less than 2 mm precipitation in the last 30 days9-month rainfall anomalySPI - 6-monthDry PeriodsNighttime land surface temperatureVulnerabilityDaytime land surface temperatureRisk AnalysisLongest consecutive number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekad1-year Standardized Precipitation Index calculated from dekadal CHIRPS dataIntegrated Context Analysis (ICA)9-month rainfall aggregate (mm)Population in phase 3 to 5Total aggregate precipitation over a 1-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsTotal aggregate precipitation over a 9-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsChoose baseline layerRainfall Aggregate10-day rainfall estimate (mm)6-monthLongest number of consecutive dry daysLand Surface Temperature - 10-day Amplitude (MODIS)Risk10-day NDVI anomaly (MODIS)Click the map to selectTotal number of heavy rain days (rainfall > 90th percentile) within last 30 days of dekadMultidimensional Risk Analysis1-year precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsNormalized Difference Vegetation Index (NDVI) derived from MODIS TERRA/AQUANormalized Difference Vegetation Index (NDVI) anomaly when compared to the long-term average1-month Standardized Precipitation Index calculated from dekadal CHIRPS data6-month Standardized Precipitation Index calculated from dekadal CHIRPS dataCoping capacitySPI - 3-month9-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsVegetation ConditionsExposureTemperature9-month10-day precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsNighttime Land Surface Temperature - 10-day (MODIS)NationalLongest consecutive number of days with heavy rainfall in the last 30 daysMedianDaytime Land Surface Temperature - 10-day Anomaly (MODIS)Estimate of precipitation over a 10-day period derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsFood insecurity recurrenceDaytime land surface temperature anomaly when compared to long-term average10-day NDVI (MODIS)Max3-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsLandslide recurrenceDays since last rain3-month rainfall anomaly1-year rainfall aggregate (mm)SPI - 9-month6-month rainfall aggregate (mm)VegetationTotal number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekad1-year

myanmar
Below ThresholdLoading Exposure Analysis DataNo ResultsThe "Ready, Set & Go!" systemOpacityReverse colorsForecast data as of Period 2Layer selection dateSendAuthentication requiredMap LabelsFooterAdmin AreasCreate AlertMap OptionsError: Impossible to get data forDistrict in new phase this monthAdmin LevelTimelineTimestamps reflect local time in CambodiaLoading DataTableForecastRecommended actionsCompare LocationsPeriod 1Admin 2How to read this screenSelect an available date to view dataThe following layer requires authenticationView TableAbove ThresholdACTIONSAllSelect admin areaClear AllCountryNo dataDownload as GeoTIFFSizeTablesLocation 1PositionDeselect AllDistrictChoose a table${isMobile ? 'Tap' : 'Click'} the map to selectNEWExposure valuePhasesno districtCloseLocation 2OperatorPopulation and percentage by phase classificationEmail Addressintersecting admin levelAboutPRISM automated reportI STILL NEED HELPAnalysis ResultsRemove layerSelect ChartsPublication dateRemove Admin 1trig.Compare PeriodsAdmin 1Download CSVDistrictsHide TableIndicatorsRemove Admin 2Download QML StyleActive Layer(s)PasswordRef. periodSummaryLogoTitleat LevelSummary data as of Full LayerAlert NameChoose TableLoading documentDownload as GeoJSONSelect AllMap WidthRegionsUsername
SPI - 1-monthaboutRainfall AmountField ReportspercentageIDPoorChoose hazard layerMeanLand Surface TemperatureHazardsHistorical Climate ExposureTropical StormsSPI - 1-yearGitHubNumber of days with heavy rainfall in the last 30 daysExpected Annual DamageMap PreviewareaHeavy RainFlood EventsRainfall Anomalies10-day rainfall anomaly1-month rainfall aggregate1 - province / governorate3-month rainfall aggregate (mm)Number of dry daysIMAGENameNumber of days with intense rainfall in the last 30 daysNumber of days with extreme rainfall in the last 30 daysExportMonthly rainfall anomaly6-month rainfall anomaly1-year rainfall anomalyDaytime Land Surface Temperature - 10-day (MODIS)Wfp Hazard RiskThis layer shows number of households of IDPoor level 1 and 2 at commune level. The identification of poor households (IDPoor) is established to collect and share poor household information nationwide in order to enhance targeting services and assistance for poverty reduction.RainfallPopulationHazard Vulnerability9-month rainfall anomalyTap the map to selectDry PeriodsLiving ConditionsVulnerable PopulationsSPI - 6-monthFloodVulnerabilityPotential flooding (Sentinel-2)9-month rainfall aggregate (mm)Floods10-day rainfall estimate (mm)Choose baseline layerLongest number of consecutive dry daysDisaster impact report3 - city / townshipLand Surface Temperature - 10-day Amplitude (MODIS)Potential flooding (Landsat)10-day NDVI anomaly (MODIS)RiskMap ViewClick the map to selectSPI - 3-monthVegetation ConditionsExposureTemperatureVulnerability IndexHazard SensitivityPrismLongest consecutive number of days with heavy rainfall in the last 30 daysMedianDaytime Land Surface Temperature - 10-day Anomaly (MODIS)Estimate of precipitation over a 10-day period derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsOf10-day NDVI (MODIS)Potential flooding (Landsat-8)Mudra Hazard Risk2 - countyTable View3-month rainfall anomaly1-year rainfall aggregate (mm)SPI - 9-monthlabelPoverty6-month rainfall aggregate (mm)Tropical Storms - Wind buffersVegetationPotential flooding (Sentinel-1)Land Surface Temperature - 10-day Anomaly (MODIS)

mongolia
Below ThresholdLoading Exposure Analysis DataNo ResultsThe "Ready, Set & Go!" systemOpacityReverse colorsForecast data as of Period 2Layer selection dateSendAuthentication requiredMap LabelsFooterAdmin AreasCreate AlertMap OptionsError: Impossible to get data forDistrict in new phase this monthAdmin LevelTimelineTimestamps reflect local time in CambodiaLoading DataTableForecastRecommended actionsCompare LocationsPeriod 1Admin 2How to read this screenSelect an available date to view dataThe following layer requires authenticationView TableAbove ThresholdACTIONSAllSelect admin areaClear AllCountryNo dataDownload as GeoTIFFStartSizeImpact Analysis onEndLocation 1PositionDeselect AllDistrictChoose a table${isMobile ? 'Tap' : 'Click'} the map to selectNEWExposure valuePhasesno districtCloseLocation 2Population ExposureOperatorPopulation and percentage by phase classificationEmail Addressintersecting admin levelPRISM automated reportI STILL NEED HELPAnalysis ResultsRemove layerSelect ChartsPublication dateRemove Admin 1trig.Compare PeriodsDate RangeAdmin 1DistrictsHide TableIndicatorsExposure AnalysisRemove Admin 2Download QML StyleActive Layer(s)PasswordRef. periodSummaryLogoTitleat LevelSummary data as of Full LayerAlert NameChoose TableLoading documentDownload as GeoJSONSelect AllMap WidthRegionsUsername
Hay prices (soum)aboutImpact AnalysisAnnual deaths of animals due to disease or natural hazards (including dzud). Source: National Statistics OfficeHay reserves in metric tonnes (soum)Compares the current pasture conditions to the long term average to calculate pasture anomalyPrice of adult cattle by month. Source: National Statistics OfficeChoose hazard layerMonthly hay pricesPrice of hay bale (soum)Number of children under five years of age by Soum. Year: 2019. Source: National Statistics OfficePoverty headcount (aimag)Hay harvest (soum)MeanHazardsLivestock DataImpact analysisMonthly sheep pricesCash reserves in million MNT (soum)Number of livestock (in thousands) within a soum with drought conditions as measured through the Vegetation Health IndexDrought IndicatorsSepThe poverty headcount is the share of the population whose consumption / expenditure is below the poverty line by Aimag. Year: 2018. Source: National Statistics OfficeMap PreviewSmall herder households (aimag)Price of adult camel by month. Source: National Statistics OfficeMonthly camel pricesVulnerable GroupsHay pricesDemographicsPrice of adult goat by month. Source: National Statistics OfficeHerder households (soum)monthly hay pricesWeIMAGEAverageMinCapacityHighNumber of single-headed households with a female head over 55 years old or a male head over 60 years old by Aimag. Year: 2018. Source: National Statistics OfficeNameSurface temperaturePrice of a bail of hay by month. Source: National Statistics OfficeExportJunFebLivestock exposed to extreme cold temperatures in thousands (soum)Location nameHerders exposed to severe pasture anomaly (soum)Vegetation Health Index for a 10-day period. The VHI is a combination of vegetation conditions and temperature conditions.Number of herder households - defined as herding as the main source of income by Soum. Year: 2020. Source: National Statistical OfficeHay PricesJulTap the map to selectVulnerabilityNovTotal population (soum)Number of households with less than 200 heads of livestock by Aimag. Year: 2020. Source: National Statistics OfficePasture biomassSaSnow cover (%)MoFodder reserves in metric tonnes (soum)Market price of a bail of hay by month. Source: National Statistics OfficeMayMonthly horse pricesVegetation index (NDVI)Monthly Hay PricesChoose baseline layerNumber of people whose ability was impaired for more than 12 months by Aimag. Year: 2018. Source: National Statistical OfficeAverage price of bale of hay (20kg) for sale in the soum emergency reserve (10 Jan - 29 April 2020). Source: Mobile data monitoring systemPrice of adult sheep by month. Source: National Statistics OfficeLivestock And HerdersPRISMWinter ConditionsLowHerdersRiskDecMonthly goat pricesMap ViewClick the map to selectMonthSingle-headed elderly households (aimag)Number of herder households within a soum where the median pasture anomaly is <= -25%Median value of Land Surface Temperature in degrees Celsius over a 10-day period (MODIS)Converts the NDVI to pasture (kg/ha) values.Price of adult horse by month. Source: National Statistics OfficeAmount of hay harvested in tonnes by Soum. Year: 2019. Source: National Statistical OfficeAprAverage amount of hay stored in soum emergency reserves in metric tonnes (10 Jan - 29 April 2020). Source: Mobile data monitoring systemSocioeconomic DataAverage amount of fodder stored in soum emergency reserves in metric tonnes (10 Jan - 29 April 2020). Source: Mobile data monitoring systemExposureAverage amount of cash dedicated for soum emergency hay and fodder reserves, in million MNT (10 Jan - 29 April 2020). Source: Mobile data monitoring systemNumber of livestock in thousands (soum)Poverty headcount over two periods. Source: National Statistics OfficeSuThAgricultural drought (VHI)MedianFrAugMonthly average price of bale of hay (20kg) for sale in the soum markets. Source: National Statistical OfficePasture anomalyOctMarMaxPoverty headcount 2016 vs 2018Total number of residents by Soum. Year: 2019. Source: National Statistics OfficeTable ViewShare AnalysisTuLivestock PricesSnow Percentage for a 10-day period, where the value represent the percentage of times that a pixel had snowMonthly cattle pricesNumber of children under 5 (soum)Number of disabled people (aimag)Median averaged Normalized Difference Vegetation Index (NDVI) from composite satellite imageryJanNumber of livestock raised for agricultural purposes in thousands of heads by Soum. Year: 2019. Source: National Statistical OfficeAnimal deaths due to disease or natural hazardsLivestock exposed to drought in thousands (soum)

cameroon
Below ThresholdLoading Exposure Analysis DataNo Resultsexposed toThe "Ready, Set & Go!" systemOpacityReverse colorsForecast data as of Period 2Layer selection dateSendAuthentication requiredMap LabelsFooterAdmin AreasCreate AlertMap OptionsError: Impossible to get data forDistrict in new phase this monthTimelineTimestamps reflect local time in CambodiaLoading DataTableForecastRecommended actionsCompare LocationsPeriod 1Admin 2How to read this screenSelect an available date to view dataThe following layer requires authenticationView TableAbove ThresholdACTIONSAllSelect admin areaClear AllCountryNo dataDownload as GeoTIFFStartSizeofImpact Analysis onTablesEndLocation 1PositionDeselect AllDistrictChoose a table${isMobile ? 'Tap' : 'Click'} the map to selectNEWExposure valuePhasesno districtCloseLocation 2Population ExposureOperatorPopulation and percentage by phase classificationmore thanEmail Addressintersecting admin levelPRISM automated reportI STILL NEED HELPAnalysis ResultsRemove layerSelect ChartsPublication dateRemove Admin 1trig.Compare PeriodsDate RangeAdmin 1No DataDownload CSVDistrictsHide TableIndicatorsExposure AnalysisRemove Admin 2Download QML StyleActive Layer(s)PasswordRows Per PageRef. periodSummaryLogoTitleDownload as CSVat LevelSummary data as of Full LayerAlert NameChoose TableLoading documentDownload as GeoJSONSelect AllMap WidthRegionsUsername
SPI - 1-month6-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirps3-monthRainfall AmountTotal number of heavy rain days (rainfall > 95th percentile) within last 30 days of dekadTotal aggregate precipitation over a 1-year period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsChoose hazard layerMonthly precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsStressorsMeanLand Surface TemperatureHazardsIntegrated Context AnalysisRegionalPhase classification3-month Standardized Precipitation Index calculated from dekadal CHIRPS dataSPI - 1-yearICA area classificationNumber of days with heavy rainfall in the last 30 daysMap Preview1-monthHeavy RainFood security and nutrition outcomes1-month rainfall aggregate (mm)Multidimensional risk indexLand Surface Temperature Amplitude refers to the difference between the maximum and minimum temperature in degrees Celsius10-dayTotal aggregate precipitation over a 3-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsRainfall Anomalies10-day rainfall anomaly3-month rainfall aggregate (mm)Number of dry daysIMAGETotal aggregate precipitation over a 6-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsFlood recurrenceMinRainfall AnomalyStructural vulnerability9-month Standardized Precipitation Index calculated from dekadal CHIRPS dataNumber of days with intense rainfall in the last 30 daysNumber of days with extreme rainfall in the last 30 daysExport1-month rainfall anomalyLongest number of consecutive days with less than 2 mm precipitation in the last 30 days6-month rainfall anomaly1-year rainfall anomalyCombined hazard riskDaytime Land Surface Temperature - 10-day (MODIS)Drought recurrenceRainfallNumber of consecutive days with less than 2 mm precipitation in the last 30 days9-month rainfall anomalySPI - 6-monthDry PeriodsNighttime land surface temperatureVulnerabilityDaytime land surface temperatureRisk AnalysisLongest consecutive number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekad1-year Standardized Precipitation Index calculated from dekadal CHIRPS dataIntegrated Context Analysis (ICA)9-month rainfall aggregate (mm)Population in phase 3 to 5Total aggregate precipitation over a 1-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsTotal aggregate precipitation over a 9-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsChoose baseline layerRainfall Aggregate10-day rainfall estimate (mm)6-monthLongest number of consecutive dry daysLand Surface Temperature - 10-day Amplitude (MODIS)Risk10-day NDVI anomaly (MODIS)Click the map to selectTotal number of heavy rain days (rainfall > 90th percentile) within last 30 days of dekadMultidimensional Risk Analysis1-year precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsNormalized Difference Vegetation Index (NDVI) derived from MODIS TERRA/AQUANormalized Difference Vegetation Index (NDVI) anomaly when compared to the long-term average1-month Standardized Precipitation Index calculated from dekadal CHIRPS data6-month Standardized Precipitation Index calculated from dekadal CHIRPS dataCoping capacitySPI - 3-month9-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsVegetation ConditionsExposureTemperature9-month10-day precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsNighttime Land Surface Temperature - 10-day (MODIS)NationalLongest consecutive number of days with heavy rainfall in the last 30 daysMedianDaytime Land Surface Temperature - 10-day Anomaly (MODIS)Estimate of precipitation over a 10-day period derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsFood insecurity recurrenceDaytime land surface temperature anomaly when compared to long-term average10-day NDVI (MODIS)Max3-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsLandslide recurrenceDays since last rain3-month rainfall anomaly1-year rainfall aggregate (mm)SPI - 9-month6-month rainfall aggregate (mm)VegetationTotal number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekad1-year

rbd
Below ThresholdLoading Exposure Analysis DataNo Resultsexposed toThe "Ready, Set & Go!" systemOpacityReverse colorsForecast data as of Period 2Layer selection dateSendAuthentication requiredMap LabelsFooterAdmin AreasCreate AlertMap OptionsError: Impossible to get data forDistrict in new phase this monthTimelineTimestamps reflect local time in CambodiaLoading DataTableForecastRecommended actionsCompare LocationsPeriod 1Admin 2How to read this screenSelect an available date to view dataThe following layer requires authenticationView TableAbove ThresholdACTIONSAllSelect admin areaClear AllCountryNo dataDownload as GeoTIFFStartSizeofImpact Analysis onTablesEndLocation 1PositionDeselect AllDistrictChoose a table${isMobile ? 'Tap' : 'Click'} the map to selectNEWExposure valuePhasesno districtCloseLocation 2Population ExposureOperatorPopulation and percentage by phase classificationmore thanEmail Addressintersecting admin levelPRISM automated reportI STILL NEED HELPAnalysis ResultsRemove layerSelect ChartsPublication dateRemove Admin 1trig.Compare PeriodsDate RangeAdmin 1No DataDownload CSVDistrictsHide TableIndicatorsExposure AnalysisRemove Admin 2Download QML StyleActive Layer(s)PasswordRows Per PageRef. periodSummaryLogoTitleDownload as CSVat LevelSummary data as of Full LayerAlert NameChoose TableLoading documentDownload as GeoJSONSelect AllMap WidthRegionsUsername
SPI - 1-month6-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirps3-monthRainfall AmountTotal number of heavy rain days (rainfall > 95th percentile) within last 30 days of dekadTotal aggregate precipitation over a 1-year period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsChoose hazard layerMonthly precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsStressorsMeanLand Surface TemperatureHazardsIntegrated Context AnalysisRegionalPhase classification3-month Standardized Precipitation Index calculated from dekadal CHIRPS dataSPI - 1-yearICA area classificationNumber of days with heavy rainfall in the last 30 daysMap Preview1-monthHeavy RainFood security and nutrition outcomes1-month rainfall aggregate (mm)Multidimensional risk indexLand Surface Temperature Amplitude refers to the difference between the maximum and minimum temperature in degrees Celsius10-dayTotal aggregate precipitation over a 3-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsRainfall Anomalies10-day rainfall anomaly3-month rainfall aggregate (mm)Number of dry daysIMAGETotal aggregate precipitation over a 6-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsFlood recurrenceMinRainfall AnomalyStructural vulnerability9-month Standardized Precipitation Index calculated from dekadal CHIRPS dataNumber of days with intense rainfall in the last 30 daysNumber of days with extreme rainfall in the last 30 daysExport1-month rainfall anomalyLongest number of consecutive days with less than 2 mm precipitation in the last 30 days6-month rainfall anomaly1-year rainfall anomalyCombined hazard riskDaytime Land Surface Temperature - 10-day (MODIS)Drought recurrenceRainfallNumber of consecutive days with less than 2 mm precipitation in the last 30 days9-month rainfall anomalySPI - 6-monthDry PeriodsNighttime land surface temperatureVulnerabilityDaytime land surface temperatureRisk AnalysisLongest consecutive number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekad1-year Standardized Precipitation Index calculated from dekadal CHIRPS dataIntegrated Context Analysis (ICA)9-month rainfall aggregate (mm)Population in phase 3 to 5Total aggregate precipitation over a 1-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsTotal aggregate precipitation over a 9-month period, rolling every 10 days. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsChoose baseline layerRainfall Aggregate10-day rainfall estimate (mm)6-monthLongest number of consecutive dry daysLand Surface Temperature - 10-day Amplitude (MODIS)Risk10-day NDVI anomaly (MODIS)Click the map to selectTotal number of heavy rain days (rainfall > 90th percentile) within last 30 days of dekadMultidimensional Risk Analysis1-year precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsNormalized Difference Vegetation Index (NDVI) derived from MODIS TERRA/AQUANormalized Difference Vegetation Index (NDVI) anomaly when compared to the long-term average1-month Standardized Precipitation Index calculated from dekadal CHIRPS data6-month Standardized Precipitation Index calculated from dekadal CHIRPS dataCoping capacitySPI - 3-month9-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsVegetation ConditionsExposureTemperature9-month10-day precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsNighttime Land Surface Temperature - 10-day (MODIS)NationalLongest consecutive number of days with heavy rainfall in the last 30 daysMedianDaytime Land Surface Temperature - 10-day Anomaly (MODIS)Estimate of precipitation over a 10-day period derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsFood insecurity recurrenceDaytime land surface temperature anomaly when compared to long-term average10-day NDVI (MODIS)Max3-month precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsLandslide recurrenceDays since last rain3-month rainfall anomaly1-year rainfall aggregate (mm)SPI - 9-month6-month rainfall aggregate (mm)VegetationTotal number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekad1-year

cambodia
Loading Exposure Analysis DataNo ResultsThe "Ready, Set & Go!" systemOpacityReverse colorsForecast data as of Period 2Layer selection dateMap LabelsFooterAdmin AreasCreate AlertMap OptionsError: Impossible to get data forDistrict in new phase this monthAdmin LevelTimelineLoading DataTableForecastRecommended actionsCompare LocationsPeriod 1How to read this screenSelect an available date to view dataACTIONSAllSelect admin areaClear AllCountryNo dataDownload as GeoTIFFStartSizeTablesEndLocation 1PositionDeselect AllDistrictChoose a table${isMobile ? 'Tap' : 'Click'} the map to selectNEWExposure valuePhasesno districtCloseLocation 2Population ExposureOperatorPopulation and percentage by phase classificationEmail Addressintersecting admin levelPRISM automated reportI STILL NEED HELPAnalysis ResultsRemove layerPublication dateRemove Admin 1trig.Compare PeriodsDate RangeDistrictsIndicatorsExposure AnalysisRemove Admin 2Download QML StyleActive Layer(s)Ref. periodSummaryLogoTitleat LevelSummary data as of Full LayerAlert NameChoose TableLoading documentDownload as GeoJSONSelect AllMap WidthRegions
Flood reportNDVI Anomaly compared to LTADrowningNormalSPI - 1-monthForm status3-monthTotal number of extreme rain days (rainfall > 95th percentile) within last 30 days of dekadRainfall AmountEarly WarningField ReportsVery highBuilding collapseIDPoorChoose hazard layerDaily flood layers are created by compositing the most recent water detected from Sentinel-1 (SAR), Sentinel-2 (optical), and Landsat8 (optical) satellite sensors. Source: SERVIR Mekong HYDRAFloods. Contains modified Copernicus Sentinel data [2022]NDVI Anomaly compared to Long Term AverageSumMeanLand Surface TemperatureHazardsLongest consecutive number of intense rain days (rainfall > 90th percentile) within last 30 days of dekadWatchCreate report1 - provinceHeavy (>75th percentile)SPI - 1-yearGitHub3 - communeNumber of days with heavy rainfall in the last 30 daysEvent dateMap Preview1-monthHeavy RainFlood EventsEWS 1294 river level dataFlood extent10-day daytime land surface temperature derived from MODIS AQUALand Surface Temperature Amplitude refers to the difference between the maximum and minimum temperature in degrees Celsius10-dayIDPoor Level 2Rainfall AnomaliesConsecutive days of rainfall10-day rainfall anomaly1-month rainfall aggregate3-month rainfall aggregate (mm)Number of dry daysExtreme (>95th percentile)IMAGEAveragePermanent WaterMinLongest consecutive extreme rainfall daysMax water levelHighNameNumber of days with intense rainfall in the last 30 daysNumber of days with extreme rainfall in the last 30 daysExportLongest number of consecutive days with less than 2 mm precipitation in the last 30 daysNumber of villages affectedTotal number of intense rain days (rainfall > 90th percentile) within last 30 days of dekadMonthly rainfall anomalyThis layer shows river water level in millimeters (mm). It is reported from People in Need (PIN) automated river water gauge.ExtremeFlood Monitoring6-month rainfall anomalyLocation nameType of disasterNumber of households of IDPoor level 2 at commune level1-year rainfall anomalyDaytime Land Surface Temperature - 10-day (MODIS)MediumRainfallNumber of consecutive days with less than 2 mm precipitation in the last 30 days9-month rainfall anomalyTap the map to selectSPI - 6-monthFloodVulnerabilityDry PeriodsAdmin BoundariesSelect Admin 1Select Admin 2Monthly precipitation anomaly compared to the long term average. Longest consecutive number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekadRainfall anomalyLayersFireStormIDPoor 1 & 2Potential flooding (Sentinel-2)9-month rainfall aggregate (mm)CommuneFloodsMean water level10-day rainfall estimate (mm)Choose baseline layerMenuSevere Warning6-monthLongest number of consecutive dry daysDisaster impact reportFlood hazard indexLowRainfall categoriesAnalysisLand Surface Temperature - 10-day Amplitude (MODIS)Potential flooding (Landsat)10-day NDVI anomaly (MODIS)RiskMap ViewClick the map to selectHeavy10-day daytime land surface temperature anomaly derived from MODIS AQUANormalized Difference Vegetation Index (NDVI) derived from MODIS TERRA/AQUAPopulation exposuremedianAdmin LevelsLightningLongest consecutive number of extreme rain days (rainfall > 95th percentile) within last 30 days of dekadminExploded weaponVery lowRainfall aggregate1-month Standardized Precipitation Index calculated from dekadal CHIRPS dataChartsSPI - 3-month2 - districtVegetation ConditionsExposureFlood RiskExtreme Rain EventsFloodedmeanTemperature9-month10-day precipitation anomaly compared to the long term average. Derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsIntenseInsectPrismLongest consecutive number of days with heavy rainfall in the last 30 daysMedianDaytime Land Surface Temperature - 10-day Anomaly (MODIS)Estimate of precipitation over a 10-day period derived from CHIRPS (UCSB Climate Hazards Group). https://www.chc.ucsb.edu/data/chirpsSeasonal WaterPercentileOfNumber of households of IDPoor level 1 and 2 at commune level10-day NDVI (MODIS)MaxFlood Hazard Index (higher value indicates more frequent floods)maxWarningEpidemicTraffic accidentDays since last rainprintNumber of people affectedNumber of households of IDPoor level 1 at commune levelDrought reportTable View3-month rainfall anomaly1-year rainfall aggregate (mm)SPI - 9-monthIntense (>90th percentile)IDPoor Level 1Poverty6-month rainfall aggregate (mm)VegetationTotal number of heavy rain days (rainfall > 75th percentile) within last 30 days of dekadIncident reportLongest consecutive intense rainfall days1-yearPrintRiverbank collapsePotential flooding (Sentinel-1)Land Surface Temperature - 10-day Anomaly (MODIS)

How to test the feature:

[ ]
[ ]

Checklist - did you ...

Test your changes with

[ ] REACT_APP_COUNTRY=rbd yarn start
[ ] REACT_APP_COUNTRY=cambodia yarn start
[ ] REACT_APP_COUNTRY=mozambique yarn start
[ ] Add / update necessary tests?
[ ] Add / update outdated documentation?

Screenshot/video of feature:

Thanks @gislawill for looking into this. I totally agree that translations has gotten a bit out of hand.
To make things even trickier, parts of the translations are shared by language, so for each country we would need to load the  assosciated

@ericboucher good call, yea I think you're right that a node script makes sense.
I'm going to close this PR and add some thoughts to Amit's feature request


Hi! I tried your generator with latest version of blockly and got errors

I added additional code to demos/code/code.js:323 and demos/code/index.html for testing.
} else if (content.id == 'content_csharp') {
code = Blockly.CSharp.workspaceToCode();
content.textContent = code;
if (typeof prettyPrintOne == 'function') {
code = content.innerHTML;
code = prettyPrintOne(code, 'js');
content.innerHTML = code;
}
}
After  " code = Blockly.CSharp.workspaceToCode(); " i got exception:
Uncaught TypeError: Cannot read property 'getDescendants' of undefined
blockly_compressed.js:1827
Uncaught TypeError: Cannot read property 'getDescendants' of undefinedblockly_compressed.js:1827 Blockly.Variables.allVariablescsharp.js:63
Blockly.CSharp.initblockly_compressed.js:1839
Blockly.Generator.workspaceToCodecode.js:324
Code.renderContentcode.js:283
Code.tabClickcode.js:403 (anonymous function)

@fadnrei - any ideas?

@fandrei, any ideas?

@mrdavidlaing, this needs some digging.

@mrdavidlaing, this is due to some breaking changes in Blockly. Should I work on fixing this?

@fandrei, only if you want to, it's not really on our roadmap
On 13 Feb 2015 08:19, "Andrei Faber"<EMAIL_ADDRESS>wrote:

@mrdavidlaing https://github.com/mrdavidlaing, this is due to some
breaking changes in Blockly. Should I work on fixing this?
—
Reply to this email directly or view it on GitHub
https://github.com/cityindex/blockly-generator-csharp/issues/6#issuecomment-74219461
.

@mrdavidlaing, I don't find this project useful enough to keep on supporting it.

Can you recommend version of blocky or upload supported version? Thank you!

Try a blockly version from the same date as this code.

Hi Fandrei, I am so excited with a new project I am working on, where we would love to use Blockly to generate code to c#. But... I am having the same error Ranux was having last February. Am I doing something wrong? If it is a bug, is this going to be fixed soon? I tryied as well with the commit Ranux mention but.. it didn't work for me. :(

@elenadelvallematute, it's a breaking change in the Blockly codebase. Unfortunately I don't have time to work on this.

@elenadelvallematute, you can try my modified version https://github.com/RANUX/blockly-editor Unfortunately, my Blockly version is not fresh but may be you will get everything you need.

to fix this you have to add three things:

add "Code.workspace" in this line -> var code = Blockly.CSharp.workspaceToCode(Code.workspace);
in csharp.js add "workspace" parameter to function -> Blockly.CSharp.init = function(workspace)...
3.in the Blockly.CSharp.init function add "workspace" to -> var variables = Blockly.Variables.allVariables(workspace);

hope it helped:)


Add formatter config and workflows, format project

Adds changes mentioned in: https://github.com/webui-dev/webui/discussions/242
I think the settings resemble the current style fairly well.
A style I couldn't find a matching setting for is to indent everything in pre-processor directives. Adding IndentPPDirectives: BeforeHash to .clang-format would come closest, but variable declarations still wouldn't be indent, resulting in:

Uniform indent without decls:
#if defined(__clang__) || defined(__GNUC__)
	#define WEBUI_DISABLE_OPTIMIZATION_START _Pragma("GCC optimize (\"O0\")")
	#define WEBUI_DISABLE_OPTIMIZATION_END
#elif defined(_MSC_VER)
	#define WEBUI_DISABLE_OPTIMIZATION_START __pragma(optimize("", off))
	#define WEBUI_DISABLE_OPTIMIZATION_END   __pragma(optimize("", on))
#else
	#define WEBUI_DISABLE_OPTIMIZATION_START
	#define WEBUI_DISABLE_OPTIMIZATION_END
#endif

Not uniform indent for decls:
#ifdef _WIN32
static const char* webui_sep = "\\";
static DWORD WINAPI _webui_run_browser_task(LPVOID _arg);
static int _webui_system_win32(_webui_window_t* win, char* cmd, bool show);
static int _webui_system_win32_out(const char* cmd, char** output, bool show);
static bool _webui_socket_test_listen_win32(size_t port_num);
static bool _webui_get_windows_reg_value(HKEY key, LPCWSTR reg, LPCWSTR value_name, char value[WEBUI_MAX_PATH]);

	#define WEBUI_THREAD_SERVER_START DWORD WINAPI _webui_server_start(LPVOID arg)
	#define WEBUI_THREAD_RECEIVE      DWORD WINAPI _webui_receive_thread(LPVOID _arg)
	#define WEBUI_THREAD_RETURN       return 0;
#else

So I left the setting out to use the default / more commonly used style of not indenting pre-processor directives. The used sections for the directives are usually highlighted by the editor if an lsp is running:

If any changes would further improve things for you let me know.
Example runs:

https://github.com/ttytm/webui/actions/runs/6444738382 [success]
https://github.com/ttytm/webui/actions/runs/6444423773 [fail]

As Microsoft is in the space nazi camp when there is no config like this, here is where you can configure tab width on github to use what you like best for reviews on the page: https://github.com/settings/appearance

Currently the lint assumed that clangd installed used locally, then all common editors could take care of formatting via format on save or running a format command.
I didn't integrated formatting and writing to the repository if formatting is off. We can do it if that's preferred.

Formating on CI is better as we can not guarantee that all contributors have Clang installed.

Okay, I see that automated writing of formatting changes can make sense in our case. I'll look into it.
Though it is be a valid requirement for contribution to meet a projects code style. And it's not guaranteed for most formatters unless a formatter is built into the language itself. Alternatively, a contributor could format manually to satisfy linting for now.

I mean, whatever is easier and efficient we should do it. We can format PR manually.

I will use Clang to format code for my next PRs.


error: username or group is not a DNS-1123 hostname

I am seeing this error by largely following the documentation. Groups in example.yaml and from the Kubernetes docs typically have a colon in them. For example system:masters. However, this is failing authentication because they don't conform. I am not sure whether I should be changing the group name or if this constraint is either in the wrong place or should be removed altogether?

@nckturner @mattmoyer I was digging into the username fields in https://github.com/kubernetes/kubernetes and it doesn't look like they have any validation on the field. Do you know of anything different?

I ran into this as well. Given that k8s doesn't place a dns-1123 restriction on usernames or groups I definitely think this check as well as the replacement of @s should be removed.
Additionally the current regex used to check if a user/group name is conforming contains an error.
"[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*"
The expression isn't end/beginning of line anchored so it will match any string that contains a sub-string that is a valid dns-1123 name.
/reopen
/remove-lifecycle rotten


Support for 64bit adiirc

You can support adiirc 64bit easily enough in your code by instructing users to download tsc64.dll and having them comreg it via
/comreg "path\to\tsc64.dll"

Once done, you only need to add one line to your $jsCreate() alias:
alias jsCreate {
  ; ...

      if (!$~com(%name)) {
        .!comopen %name MSScriptControl.ScriptControl

        ; This line will attempt to create a scriptcontrol using the dll
        if ($~comerr) .!comopen %name ScriptControl

        if (!$~comerr) !return $~com(%name,language,4,bstr,jscript)
      }
  ; ...
}

Thank you for your input.
I have downloaded and installed adiirc (64 bit), I have also downloaded tsc64.dll. Unfortunately I keep getting the following error: * /comreg: Unable to register Com '...\tsc64.dll'. I will continue to get this to work, any help is greatly appreciated.

Oops, it seems he has changed the install process; you do not need to use /comreg

Download the tsc64_1101.cab asset
extract the cab
run setup.exe

From there, my example should work

Updated OP to use name-spaced progid, instead of just the resource name

Thank you so much for your help, everything is working now and I have updated the script.


Non 1 to 1 sidelining

ready for review! will fix tests and revert/edit the supercloud script; but would love feedback on everything else!

don't have time to look till next week, but just want to request @NishanthJKumar for a small QOL thing, can you fix the naming so that it's Op0, Op1, Op2, ... instead of Op, Op1, Op2, ... (that is, make sure the first one has a "0" at the end)


Replace governance auth sigs with proposal NFTs

This should follow the design of unbonding tokens, roughly: there should be a unique denom for each proposal. The ProposalSubmit action consumes the proposal deposit amount of penumbra and produces a single unit of the denomination proposal_N_voting where N is the number of the proposal being made (if a proposal is made for the incorrect number, the tx fails). Then, a ProposalWithdraw action marks a proposal as withdrawn in the public chain state, consuming a single unit of proposal_N_voting and producing a single unit of proposal_N_withdrawn. Finally, a ProposalDepositClaim action (only valid when a proposal has not been vetoed, and only after voting concludes) consumes a single unit of proposal_N_voting or proposal_N_withdrawn and produces a single unit of one of proposal_N_passed, proposal_N_failed, or proposal_N_vetoed, as well as the proposal deposit amount for that proposal (we need to store historical proposal deposit amounts in case this changes by governance), provided the proposal was not vetoed. Stateful checks ensure that the input and output match the actual state transition available.

We should spruce up the docs a bit to mention the workflow changes; will file another ticket to track.


NumberInput panics when overwriting selected number

The number input panics when selected text is overwritten.
thread 'main' panicked at 'slice index starts at 1 but ends at 0', /home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:1735:36

Steps to reproduce this issue:

Create a NumberInput that starts with a value like 5 for example.
Select 5 in the TextInput part of the NumberInput.
Type another number to overwrite the selection.
Panic

Maybe this is caused by the text being empty.

this is caused by replace_range not liking that end and start are in reverse. So the fix is to swap them when start is greater than end. Also to add a bounds check here too so if you do attempt to Select outside of the bounds it wont panic as well.
https://github.com/genusistimelord/iced_aw/commit/bbbbd74901aa89c9cc68fe7b5214aa212b44df5c
I can make these updates and push them once my Selection list is added.

If you could do this, I would be very appreciative. :slightly_smiling_face:
I have just merged your other PR.


The word 'BLADE' doesnt work and it should work according to the valid bip39 word list.

Please help?

As per the image its invalid

try lowercase
https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt

Doesn't work either.. 'BLADE' needs to be added otherwise I can't derive the key unfortunately.

I'm guessing the error message changed to "Invalid mnemonic".  I believe that is because, well, it's not yet valid because it hasn't been completed yet.
Try using this as your entropy:
1702e05c0b81702e 1702e05c0b81702e

For this screenshot, I pasted "blade " twelve times in the "BIP39 Mnemonic" text box, then checked the "Entropy" box.   The twelfth word (checksum word) changed to "bitter"

for this screenshot, I grabbed a random seed phrase from the internet, replaced the first word with "blade", deleted the 12th word, then checked the "Entropy" box.

For copying convenience:
17103f83463c3d332fa41f006414190c
blade limit this midnight sense office salon loop about camera alien blush
d43eb31aacb92cfcc108fe3205e21d2fccb0815af6a7a9ee5a7492a2b121703267a5e04fcb87682ca2462c979f14789c463fa5b0c2cee60bdeb658a4b5fd844f
xprv9s21ZrQH143K3tcZWmdbfTxLwBBQTkypvhjc6Xvb7gLxox1NfnXnKpsZ7KcHttnAgw4VNsCoAKvhKpdGgM7Lgxqb5DFJiK6kiH2xodtykKM

BTC recover could help on this issue


Start kong in 'safe mode' in case of broken plugins

Summary
In the current version when kong starts it tries to load all plugins with an API registered. If the plugin fails to load, kong stops and exists reporting the error.
This logic sounds correct to me in a development environment, but it's risky in a production environment. My suggestion is to add a flag to tell the server that it should continue starting the server with the broken plugins disabled. This is my 'safe mode' flag.
Steps To Reproduce

Start kong
Register any API with a plugin (hello-world plugin for example)
Stop kong
Delete the lua files of the plugin, remove a dependency, whatever can broke the plugin.
Start kong
Kong cancels the startup process abruptly:

Additional Details & Logs
2016/09/13 16:32:37 [debug] searching for OpenResty 'nginx' executable
2016/09/13 16:32:37 [debug] /usr/local/openresty/nginx/sbin/nginx -v: 'nginx version: openresty/<IP_ADDRESS>'
2016/09/13 16:32:37 [debug] found OpenResty 'nginx' executable at /usr/local/openresty/nginx/sbin/nginx
2016/09/13 16:32:37 [debug] starting nginx: /usr/local/openresty/nginx/sbin/nginx -p /usr/local/kong -c nginx.conf
2016/09/13 16:32:37 [verbose] could not start Kong, stopping services
2016/09/13 16:32:37 [verbose] leaving serf cluster
2016/09/13 16:32:37 [verbose] left serf cluster
2016/09/13 16:32:37 [verbose] stopping serf agent at /usr/local/kong/pids/serf.pid
2016/09/13 16:32:37 [verbose] serf agent stopped
2016/09/13 16:32:37 [verbose] stopping dnsmasq at /usr/local/kong/pids/dnsmasq.pid
2016/09/13 16:32:37 [verbose] stopped services
Error:
/usr/local/share/lua/5.1/kong/cmd/start.lua:37: /usr/local/share/lua/5.1/kong/cmd/start.lua:23: nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong.lua:127: hello-world plugin is in use but not enabled
stack traceback:
    [C]: in function 'assert'
    /usr/local/share/lua/5.1/kong.lua:127: in function 'init'
    init_by_lua:4: in main chunk

stack traceback:
    [C]: in function 'error'
    /usr/local/share/lua/5.1/kong/cmd/start.lua:37: in function 'cmd_exec'
    /usr/local/share/lua/5.1/kong/cmd/init.lua:85: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:85>
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.1/kong/cmd/init.lua:85: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:42>
    /usr/local/bin/kong:11: in function 'file_gen'
    init_worker_by_lua:38: in function <init_worker_by_lua:36>
    [C]: in function 'pcall'
    init_worker_by_lua:45: in function <init_worker_by_lua:43>

Kong version 0.9.1
Ubuntu 14.04 (Vagrant environment)

In this proposed safe-mode will Kong be serving any requests? I hope not.

I think this is a very bad idea. What if the failed plugin is an authentication plugin?
errors are errors, and stuff should break on errors. If you do not stop, then the application will be in an undetermined state. No application should be allowed to run in that case.

as per above, I'm in favour of closing this.


To Analyze Google Security Command Center in relate to CloudGuard CSPM, MS  Sentinel

Describe the Issue
To have solid security control for GCP, in GCP Steering committee meeting, Google Security Command Center is mentioned.
An study to find out synergies/gaps exists among Google Security  Command Center, CheckPoint, MS Sentinel is helpful
Additional Context
https://cloud.google.com/security-command-center/docs/concepts-security-command-center-overview
Acceptance Criteria
A set of pre-defined requirement that need to be met in order to mark the user story as “done”.  See below for team agreement details.

Result shared and saved in team sharepoint under security


Can't Trigger Job from Github webhook

I've installed Jenkins 2.138 from a newly deployed CentOS 7 droplet yesterday. And I bumped into almost the same issues as described followed:
https://stackoverflow.com/questions/23906352/git-pullrequest-job-failed-couldnt-find-any-revision-to-build-verify-the-repo
https://stackoverflow.com/questions/37200820/jenkins-how-to-set-build-status-on-github-commit
I thought it was fixed in 1.32.3 for security-170 as described here.
https://wiki.jenkins.io/display/JENKINS/Plugins+affected+by+fix+for+SECURITY-170
If I leave the branches to build as blank, I can successfully trigger jobs manually, and it can be done by polling the SCM. But it just can't trigger by PR.
And I can manually pass the Github Auth, and leave a message on PR in "Test adding comment to Pull Request".
I've been trouble shooting all day, any idea?

Sorry, it seems that I've only allow the push event in Github web hook setting, and it seems working after I selected to open Pull Request web hook.

It's me again...
And I found the root cause. It was because I was not able to add credential in the following path:
[Management]->[Configuration]->[Github]->[Github Servers]->[Credentials].
I've solved this from the following descussion
https://stackoverflow.com/questions/36500729/jenkins-github-plugin-cant-choose-my-credentials
And I'm now able the get the web from Github. However, I still can set ${sha1} in Branch Specifier.
I guess this issue could be closed again.


feat(onyx-705): viewing rooms notification page

The type of this PR is: Feat
This PR solves ONYX-705
Description
Adds new viewing room notification page. There are no designs for this page - I've made it based on my assumptions, but it's better then nothing. I'll ping Barney to review and give feedback.
Demo:

@tam-kis @dariakoko just talked to Barney and he approved the design

thanks @damassi, added tests


Events in libui-ng?

Hey folks,
There may not be a possibility for this suggestion but I wanted to suggest it nonetheless.
Yesterday I wrote a quick and dirty ruby-gtk3 shell interface to my commandline shell
written in ruby. This is super-hackish, written by a hobbyist with only average skills,
and has tons of bugs - but, it also works for some use cases.
The ruby-gtk3 interface currently looks like this:
https://i.imgur.com/Vb0pySJ.png
This is not super-pretty but the functionality works. I input commands in the first
entry, and the text-view buffer below tells me what happens. (To explain this,
"tosongs" is my cd-alias to enter /home/x/songs/ where I keep my directories.
All these aliases are stored in .yml yaml files. All my code is available on
rubygems.org too by the way, but the code is so bad that I can not recommend
anyone using this. I kind of know about the bugs so I can work around it but
others may be surprised, so I can not recommend my own software unless
it is more polished.)
At a later point I may improve this but for now I wanted to have a shell and a terminal
in one, and that works on ruby-gtk3 on linux.
On windows this is different; getting gtk3 to work there is annoying. I hate that.
But libui works as-is thanks to kojix2 writing the bindings.
I had to cut down tons of features though. One thing that annoys me is that I
have to use an entry where I type something but then I have to click on a separate
button. On the ruby-gtk3 entry I hit the "enter" key as-is, while I am inside of
the entry, and then it is evaluated.
Now: I have a work around. I can periodically scan the text of the entry, and
if it changed, I can decide whether I "fire" the event or not. So I can check every
0.3 seconds or so and this is very similar to hitting enter key. But not very
elegant.
So my question is: would it be possible to support SOME events for libui?
I am not asking for all events, but a simple one would be for these kind
of checks:
"if button press event is ENTER key,
respond to this"
I don't know how difficult this is on different platforms. Perhaps it could
be implemented for only one platform. (Ok this may not work, but actually
I use libui primarily for windows only. On linux I can use ruby-gtk or just
the commandline, but on windows I like libui since it cuts down development
time. I can use java + swing or JavaFX and that works too but java is
so verbose and takes significantly longer to write the code in than ruby).
Anyway. I just wanted to mention this here. Perhaps others may also want
events and someone understands C/C++ sufficiently well to add a first
prototype or something. Then we could perhaps extend from this point
eventually until more events would be available.
(I'd also love if we could style up libui-ng, like being able to more easily
embed images, use colours, font sizes and what not via a simpler API.
It's possible to change the font already as-is but I found it a bit cumbersome.
Would be nice if we could have something like "set_font()" and this
function can respond to different input qualifiers. In Ruby I use e. g.
widget.set_font(:hack_15) which is my shortcut for using the font
called Hack with a font size of 15. This may not be super-readable
for other people, but I like being able to use very little characters to
choose what I want. Often I just use a variable of course to style
all widgets in the same font and what not, so the above is just an
example.)

This already has a ticket over here:
https://github.com/andlabs/libui/issues/325
SWT supports that already. You have common keyboard events in all widgets.
See all the addXyzListener methods here:
https://help.eclipse.org/latest/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/widgets/package-summary.html

These are a lot of different ideas/requests mangled together.
Keyboard events are somewhat present in uiArea, but nothing generic, applicable to all controls as far as I can tell. I would say, this is definitely a desired feature. We just need someone to implement this in a more generic way.
As for your particular instance, why not use the uiEntryOnChanged() callback instead of having the user press enter?
Regarding fonts and colors: sure it would be great to have a simpler API, some wrapper for uiArea, if you are only interested in displaying information.
But something akin to widget.set_font looks technically challenging and IMO is contrary to what I, as the application user, actually want. I want my button and all generic widgets to use the system font in the size the system specifies. This is a usability issue for me. A text editor or type setting program is different and uiAttributedString looks like a reasonable API to me for an extremely complex problem.

I just added this statement to my last comment:
“ in any case, I agree that styling all widgets via font, foreground colour, background colour, image background, and vector graphics would be great. SWT also supports that already (though only certain widgets like label can have an image background, but all can have arbitrarily painted vector graphics on top of the native widget rendering)”
I think it’s important to look into competing solutions like SWT, and if they’ve already solved a problem, like allowing customization of fonts on all widgets, libui should not waste time arguing details, yet instead unashamedly copy the solution.

I think it’s important to look into competing solutions like SWT

Definitely, and this is being done on a constant basis.

like allowing customization of fonts on all controls (useful for elderly accessability requirements)

I would argue that each platform handles such matters a lot better and more consistent than any application developer is capable of. Not to say that such an API is undesirable in general, but I would not tout it as an accessibility feature. Quite the opposite actually.

libui should not waste time arguing details, yet instead unashamedly copy the solution.

Pull requests are welcome.
Apart from that I would not say that discussing features is a waste of time. There are many things to consider, like: How complex is the solution? Who is going to maintain it? Does it align with the goals of the library: Simple and portable? etc.

like allowing customization of fonts on all controls (useful for elderly accessability requirements)

I would argue that each platform handles such matters a lot better and more consistent than any application developer is capable of. Not to say that such an API is undesirable in general, but I would not tout it as an accessibility feature. Quite the opposite actually.

Yes the answer is to use your platform's native accessibility stack. Setting custom fonts on controls for text magnification and custom colors for high contrast are definitely important accessibility features. These are both builtin accessibility features to every major platform.
Reimplementing them inside your app would make the situation worse and not better though, as the only reason to do that usually is in self drawn toolkits where you don't have a choice.. this is the benefit of being totally native: we get these sorts of features for free! Unless I'm missing something here?

in any case, I agree that styling all controls via font, foreground colour, background colour, image background, and vector graphics would be great. SWT also supports that already (though only certain controls like label can have an image background, but all can have arbitrarily painted vector graphics on top of the native control rendering)

Definitely supportive of adding a custom theming API, for the edge cases where this is required.
Pull requests are welcome! See original discussion: here.

As a very experienced user of SWT, I’d say having customizations to font, foreground, background, etc… is indispensable. In software teams I’ve been, we’ve used them in teams at businesses to white label (brand) apps (even while using native controls). And, I’ve personally used for personal and open source app projects too.
As such, I had the best of both worlds. I could be fully native in certain cases and I can customize when needed.
I’m looking forward to LibUI supporting this flexibility eventually so that I can use to build apps that start faster than JVM apps.