KPDB aggregations have duplicates and odd unit counts

see GIS comment here for background
general build logic

a project is a group of records
Project phase proportions are 5 year buckets to estimate when future units will be online. They are determined in a variety of ways depending on the source of each record. see Phasing Assumptions in the KPDB wiki here

in kpdb table

of the total 86,336 records, 73,478 have no phasing (all phase proportions are 0 or null). these are records without estimated phases for future units

seems be caused by create_kpdb.sql here. if units_net is null after dedup_units.py, we set units_net to be units_gross
there are only 650 records where units_net != units_gross and these seem to records in projects that have had their units removed due to a "higher priority" record in the project

in aggregation tables

there are duplicates

due to duplicates in the kpdb table

when a project is split across multiple geographies, the values in the 5-year unit projection columns aren't split

e.g. a project with two rows for two NTAs shows the total number of units in both rows
of the total 86,528 records in longform_nta_output, 354 represent records split across multiple NTAs

the 5-year unit projection columns don't seem to always add up to units_net

due to lack of project phasing for many records and rounding errors

notes

NTA and CDTA are the primary aggregations of interest for GIS
an example of the units_net problem is record_id = 320911670 which is part of project_id = 1981

have added new boolean columns named has_project_phasing and has_future_units to help identify records that should be use for housing projections
also added an ouput table/csv called summary_record_phasing to show counts of records with future units grouped by the record sources and status that inform the "Phasing Assumptions" that went into the design of KPDB

had added columns like units_net_in_nta and within_5_yearts_in_nta so that we calculate phased units in aggregations. if a record is split between multiple geographies, the phased units must be calculated for each geography

shared latest outputs with GIS today


Hawkular datasources livemetrics

This PR is using #9081. Once it is merged it will be rebased and synced.
This PR adds support for livemetrics at MiddlewareDatasource model and UI.
It shows same metrics layout used in Hawkular UI.

@miq-bot add_label providers/hawkular

This rubocop error is confusing.
The indentation of middleware_datasource_center.rb is similar to every file on toolbar folder.
Perhaps I'm failing to see where is the error, but if not evidence I would leave the file with the same indendation for consistency.

@miq-bot add_label enhancement

Please @abonas could you check why miq-bot is complaining about app/helpers/application_helper/toolbar/middleware_datasource_center.rb This file is just a copy of a similar one in the same folder for adding the buttons. I am failing detecting how to pass miq-bot without changing the style.
Thanks.

Please @abonas could you check why miq-bot is complaining about app/helpers/application_helper/toolbar/middleware_datasource_center.rb This file is just a copy of a similar one in the same folder for adding the buttons. I am failing detecting how to pass miq-bot without changing the style.
Thanks.

A lot of older files in miq are not passing rubocop because it was switched on starting a certain point only on newly added code. So if you copied an older code, it's not necessarily an indicator that it should pass. @ammendonca had similar issues today with similar toolbar warnings and was supposed to discuss them with miq ui team. @ammendonca what were your findings? "to fix or not to fix?"

@lucasponce, @abonas, the conclusion, according to @martinpovolny, is not to fix this specific warnings, to keep the code readability.

This PR is ready from my side.
Travis was complaining due some "vmdb_test" error non related to the context.
I've closed/reopened to trigger travis again to re-test.

Finally travis is passing.
Please, @abonas could you lead this one for merging to unblock depending ones ?
Thanks.

@miq-bot assign @chessbyte
@chessbyte from a brief look - LGTM, I haven't dealt with metrics enough for a thorough review.
Please assign someone to review & merge this. thank you!

After applying those commits, I'm able to see Middleware metrics, it seems to fix a bug.

Assigning to @blomquisg after discussion with him on Gitter
@miq-bot assign @blomquisg


Add a wiki: Xenharmonic Wiki

Link to origin wiki: https://xenharmonic.fandom.com
Link to destination (independent) wiki: https://en.xen.wiki
I didn’t even know there was a Fandom wiki out there. Right now, the “official” wiki is usually at the top in Google but better be safe. Everyone in the microtonal~xenharmonic community uses the latter one. It should be the one since migration from Wikispaces, I have no clue why there is a Fandom one.
Thank you very much for the work you do! 👏

Added in v3.3.0. Thanks for the submission!


Add files via upload

I don't think we should add static pages. it adds absolutely no functionality.
A rules page should be editable by admins (which I don't think should be the same as the django superuser). This task would need a way to input and format the text (for example by supporting Markdown formating.)

PR is stale.


[WIP] saved state quick load

I noticed around 30% speed up for loading saved state.
It would be nice to confirm that the internal has similar gains:
Here is the log I used to make the judgement: (before the changes vs after the changes)
[2022-06-01 16:02:54.090] Reading saved-state file at "/Users/zhanghongbo/git/react-native/.flow.saved_state"
[2022-06-01 16:02:54.093] Decompressing saved-state data
[2022-06-01 16:02:54.112] Loading saved-state data
[2022-06-01 16:02:54.333] Finished loading saved-state
[2022-06-01 16:02:54.334] Saved state script reports 0 files changed & we care about 0 of them
[2022-06-01 16:02:54.334] Loading libraries
[2022-06-01 16:02:55.052] Resolving dependencies
[2022-06-01 16:02:55.077] Indexing files
[2022-06-01 16:02:55.179] Parsing
[2022-06-01 16:02:55.179] Re-resolving parsed and directly dependent files
[2022-06-01 16:02:55.179] Resolved requires are unchanged
[2022-06-01 16:02:55.179] Recalculating dependency graph
[2022-06-01 16:02:55.180] Updating index
[2022-06-01 16:02:55.180] Done updating index
[2022-06-01 16:02:55.181] Server is READY
[2022-06-01 16:02:55.181] Took 1.093185 seconds to initialize.

Duplicate of #


Let F5 and F12 work normally

Remove F5 and F12 from the keyboard mapping.

Fixed on 2.0.0. Also escaped F11, too.


Create WIP-data-modeling-example

Hi there,
Not sure what's happening with this PR. Was it an accident? Or is something missing? 0_0 :D


Do we have RS5 (Build 17763) based ASDK

Hello,
I have ASDK running on Windows Server 2016 with OS Version 10.0.14393. Do we have ASDK for OS Version 17763? Any time line on its availability? Thanks

Thanks for your comment. We are actively investigating and will get back to you shortly. Thanks for your patience.

@TravisCragg-MSFT please note I work for company which has close ties with MSFT. I do have the<EMAIL_ADDRESS>account. If that gives me some special access where ordinary public do not get access give that info to. So please do not restrict your answer to general public. Thanks

@agvardha The ASDK should come with its own 2016 server operating system. Are you looking for when the OS version for the ASDK will be increased to 17763 or greater?

Exactly I am looking for when the OS version of the ASDK will be increased to 17763 05 greater. Thanks

@agvardha We do plan on updating the OS version in the future, but I cannot give a time range at this time.

@TravisCragg-MSFT ok thanks :(


Problem with DEFAULT color extend colors

I can't create a custom color with a DEFAULT option like this:
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      color: {
        brand: {
           DEFAULT: '#feba34',
           light: '#febf34',
           dark: '#feab34',
        }
      }
    }
  }
}```

Example of use that I hope:

```html
// index.html
Link
}```

But bg-brand doesn't works, only if it is used like bg-brand-DEFAULT :frowning_face:

Duplicated with #54 .
And your config file is wrong! should be extend colors, not color.


No priority setting for threads created by uv_thread_create

Hello,
I am Node.js application developer and I found that we could take advantage of the Node.js worker thread feature. For some tasks like logging, event tracking and some CPU intensive tasks (with lower business value), we want to make them running in separate threads and with lower priority, so that they won't contend with the main thread, which is dealing with the user requests. For some more critical tasks like heat beating, we want to make them running with higher priority.
Node.js is calling the uv_thread_create() method in libuv to create worker thread, and there is no parameter or API to set priority.
Could we add this parameter or API in libuv?
Best regards,
Hao

This feature request has come up before but I can't find the issue anymore.
I'm not opposed but what would the API look like? You have to unify pthread_getschedparam() and SetThreadPriority() but how exactly would you do that?

I think the simple way is to extend the structure uv_thread_options_t, by adding a field 'priority', so that to set priority in uv_thread_create_ex after thread is created with _beginthreadex, or with pthread_attr_t on thread creation time pthread_create in uv_thread_create_ex.
The other way is to provide an API for setting it after thread creation. To unify pthread_setschedparam() and SetThreadPriority(), we can name the API uv_thread_set_priority, then implement them in https://github.com/libuv/libuv/blob/v1.x/src/unix/thread.c and https://github.com/libuv/libuv/blob/v1.x/src/win/thread.c separately?

You misunderstand me. Setting the priority is not the issue (although you will also need to think about setting the scheduling policy), the challenge is coming up with a way to declare the priority in a cross-platform manner.
I mean, Unices don't even fully agree between themselves what priorities are possible and how they are numbered, never mind Windows. Libuv needs to abstract over those platform differences somehow.

@bnoordhuis OK, I got it now. I think we can skip the scheduling policy/priority class setting, because it has no relevance to business, although it is related to thread priority. To declare priority in a cross-platform manner, I think from business point of view, we don't need much. I think we can define some enum (with several priority levels, we don't need to set all the numbers) as below, and then mapped them to different priority values or nice values for different platforms underneath. How do you think?
THREAD_PRIORITY_HIGHEST 2
THREAD_PRIORITY_ABOVE_NORMAL 1
THREAD_PRIORITY_NORMAL 0
THREAD_PRIORITY_BELOW_NORMAL -1
THREAD_PRIORITY_LOWEST -2

I looked into the Java. Seems like Java is doing this, that mapping the library thread priority to underlying native thread priority.
https://docs.oracle.com/javase/8/docs/technotes/guides/vm/thread-priorities.html

FWIW, libuv already does something similar to that for uv_os_setpriority() and uv_os_getpriority().

@cjihrig Thank you. But seems like these two utilities are setting and getting priority for processes instead of threads. It says "On Windows, this function utilizes SetPriorityClass()." It doesn't give details on Linux but I guess it applies to threads on Linux. However what we need is to setting priority for threads inside a process (our own application).
If we change priority class for processes, it may impact other processes in the system, and it could happen that, as quote "Use extreme care ... a high-priority class application can use nearly all available CPU time." So setting priority class is another topic.

Sorry, I was not implying that we would adapt the existing functions to support threads. I was only pointing it out as an example in libuv where we used the approach you proposed in https://github.com/libuv/libuv/issues/4051#issuecomment-1593502906.

@cjihrig Sorry I misunderstood it. Yes, you are right. Thank you so much.

Seems we have consensus about how to move forward? Pull request welcome in that case.

Great. If no one will create a PR, I will do it.

PR created. Don't know how to link to this issue.
https://github.com/libuv/libuv/pull/4062

@bnoordhuis  May I ask who should I contact for reviewing the PR? Seems like it is there for a long time.


User story 13 - As a Geopolitical Analyst, I need the ability to retrieve the top N populated capital cities in the world, where N is determined by my analysis requirements, to assess global power centers, study international relations, and evaluate the impact of population density on geopolitical dynamics

tasks to complete
Connect to the existing database.
Add function to retrieve data on population
Add function to retrieve data on capital cities
Generate report

SELECT population, name AS CapitalCity
FROM country;


Add the possibility to customize some words in Attractions

Hello, in the FormField (and probably in other places), there are words like "Required", "Optional". The problem is that this is not suitable for a site in French for example.
It would be cool to be able to change these words !

Hi! You're right, this should definitely be added. I wish Attractions had a comprehensive localization system, but until then we can get away by just defining slots required-message and optional-message`.
You're welcome to contribute by implementing this feature. Would you like that or should we implement it?

Hello, is this package still available? If I take care of this issue now, can someone review my PR and publish a new version of this package on NPM?

@Bluzzi Yes. We have been inactive (in terms of development) recently mainly because both of us (the maintainers) were busy with our university work, but any contribution is still welcome and we try to respond promptly.

Great! I'll take care of that in the next few days


Show content after cursor when completing

Currently the content after the cursor was completely omitted when
entering the completion menu
Addresses it for the simple case of everything fitting on the screen
Question what should take priority if the entry and menu together exceed
the height of the screen remains open!

Merged with #265


Any ways to import AMS packages?

I absolutely need "\Box", "\square", "\lozenge", or "\Diamond" to represent primitive symbols Modal Logic.
I know I can use "\text{□}" which clearly is not ideal.
Otherwise are there any options/library to get these?
Thanks a lot.

We have plans to support extending the library (with new commands, fonts and whatnot; see #47), but right now this is not possible without modification of the main sources.

Aside from WPF-Math, the only similar project I'm aware of is https://github.com/verybadcat/CSharpMath.


Fixing SecretExists function that returns incorrect values

Fixing bug as part of OSD-25199 ticket

/lgtm

/lgtm


Action Center: You Must Restart Your Computer ...

This message is BS, since UAC is re-enabled (it needs to be off during the build). There does not appear to be any way to programmatically clear notifications from the Action Center, and I've already tried throwing in extra restarts for good measure, so I may look into disabling the Action Center until the build is nearly complete and UAC comes back on again.

I believe the secret to this problem lies in the ToastNotificationHistory Class:
https://docs.microsoft.com/en-us/uwp/api/windows.ui.notifications.toastnotificationhistory?view=winrt-19041


[firebase_auth] anonymous sign in fails

Unhandled Exception: PlatformException(FirebaseException, An internal error has occurred., null)
I've seen this discussed numerous times, but not solutions.
I have the latest packages, I tried all the steps, normal email login works just fine, just not anonymous.
I'm on Android.  Crashes on phone and simulator.  Android 10.
E/flutter (30315): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(FirebaseException, An internal error has occurred., null)
E/flutter (30315): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569)
E/flutter (30315): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:321)
E/flutter (30315):
E/flutter (30315): #2      MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:349)
E/flutter (30315): #3      MethodChannelFirebaseAuth.signInAnonymously (package:firebase_auth_platform_interface/src/method_channel_firebase_auth.dart:52)
E/flutter (30315): #4      FirebaseAuth.signInAnonymously (package:firebase_auth/src/firebase_auth.dart:42)
E/flutter (30315): #5      AuthService.anonLogin (package:therapist_training/services/auth.dart:79)
E/flutter (30315): #6      _LoginButtonState.build. (package:therapist_training/widgets/login_button.dart:74)
E/flutter (30315): #7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:706)
E/flutter (30315): #8      _InkResponseState.build. (package:flutter/src/material/ink_well.dart:789)
E/flutter (30315): #9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182)
E/flutter (30315): #10     TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:486)
E/flutter (30315): #11     BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:282)
E/flutter (30315): #12     BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:199)
E/flutter (30315): #13     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:467)
E/flutter (30315): #14     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:76)
E/flutter (30315): #15     PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:117)
E/flutter (30315): #16     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379)
E/flutter (30315): #17     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:115)
E/flutter (30315): #18     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101)
E/flutter (30315): #19     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218)
E/flutter (30315): #20     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198)
E/flutter (30315): #21     GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156)
E/flutter (30315): #22     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102)
E/flutter (30315): #23     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86)
E/flutter (30315): #24     _rootRunUnary (dart:async/zone.dart:1138)
E/flutter (30315): #25     _CustomZone.runUnary (dart:async/zone.dart:1031)
E/flutter (30315): #26     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
E/flutter (30315): #27     _invoke1 (dart:ui/hooks.dart:273)
E/flutter (30315): #28     _dispatchPointerDataPacket (dart:ui/hooks.dart:182)
E/flutter (30315):
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.41.0)
[✓] Connected device (2 available)
• No issues found!

nevermind, you have to go on firebase and enabled anonymous login.  duh.


Syntax highlighting after Installation lost

VSCode Version: 1.1.0
OS Version: windows 10  rel:14342 (german)

No C# Syntax Highlighting and no IntelliSense  after VS Code Update to Version <IP_ADDRESS>
Same Situation on 2 different Machines

C# is now an extension - https://code.visualstudio.com/Docs/languages/csharp
Please install that extension for a better experience https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp


asset links with trailing slash true can be broken

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[X] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
I have a hosting provider where trailing slash true is required, and that works great. However, for direct links to files, it is broken.
I have a file in the docs folder (which is also versioned), and a link in .md doc like so
[Download this docx using Markdown](./assets/docusaurus-asset-example.docx)

However that link is transformed to .../assets/file/haash.docx/ and that link ends up as a 404, as it's treated as path by host, rather than resolving the file.
I think asset links should never get a trailing slash, but I don't have enough knowledge of other platforms to say that definitively.
Steps to reproduce
You can use the docusaurus docs to reproduce

set trailing slash true
npm run build
npm run serve as an example server that is broken (I self host with Apache, and have the same problem)

On the /docs/markdown-features/assets#files page, attempt to open the .docx file links.
Expected behavior
It opens the linked file. File assets should probably never have trailing slashes, some hosts seem to be fine with it, but not all. I imagine all however a fine without for file assets.
Actual behavior
Document not found.
Your environment

Public source code:
Public site URL:
Docusaurus version used: beta.14
Environment name and version (e.g. Chrome 89, Node.js 16.4): hosted with apache
Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Reproducible demo
No response
Self-service

[ ] I'd be willing to fix this bug myself.

2

This is actually not very easy to solve since we don't know what's a good heuristic for "assets" vs "pages"... I don't know if the static folder + pathname:// trick works for trailing slashes either, but worth trying out?
Note that our documentation has the same usage as well and a trailing slash is appended in deploy preview (we have trailingSlash: true for deploy preview and false for production). However, seems Netlify is smart enough to serve the correct file.

Yes, the problem can be seen here BTW: https://deploy-preview-6320--docusaurus-2.netlify.app/docs/markdown-features/assets/#files
We can maybe add a new "hidden" prop in <Link> similar to the existing undocumented autoAddBaseUrl, something like autoApplyTrailingSlash, and then use it in the transformLinks MDX code? 🤷♂ (or maybe a asset: true prop?)
We already have some heuristic there:
  const hasAssetLikeExtension =
    path.extname(assetPath) && !assetPath.match(/#|.md|.mdx|.html/);

But this probably doesn't make sense to apply this generically in the Link component
Using pathname:// prefix could work but it's not the same as the asset won't be converted to a require call and it would require to put it in /static

For people experiencing this issue, a workaround is to use absolute URL:s for the links.

I am sorry if that was unclear.
The files folder is in /static/files the link is clickme</
I get the 404 with the url /files/foo.pdf/ unless I use an absolute URL. On 2.0.1.

Ok, got it. Nice that the pathname:// routing worked with html links too!
Found: https://docusaurus.io/docs/advanced/routing#escaping-from-spa-redirects
Thanks.


Shadowrun Sixth World v.45 - quickfix

Changes / Comments
Quick Fix to matrix_overclock errors
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[ Y ] Does the pull request title have the sheet name(s)? Include each sheet name.
[ Y ] Is this a bug fix?
[ N ] Does this add functional enhancements (new features or extending existing features) ?
[ N ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ NA ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ NA ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


AR.js Marker Training Border color not working with iphone

Hi：
I tried with the Border color setting ，I feel it‘s so great if we could use other colors,not only black. so i use red to try,but faild,alos try with other colors still faild ,if come back to black, it's working,so sad
Iphone 7
IOS 12

I need to use a dark one

Hi, what you mean with 'failed'?
We lately added such feature because we saw, testing it, that it works with dark colors, aka colors with high contrast with the contrast used inside the image.
So, your border color MUST have an high contrast with the color of the pattern image.
Otherwise, it won't work.
Please, post here your full marker, the one that works with black and also the one that doesn't work, so we can help you

'failed' means  the model dose not show

I just testing with Android ，it's working  with red Border  and red the pattern image

yea, this way it works, because the red border has an high contrasts with the white of the inner image. Glad to know it's solved !

but  not working with iphone

only Android working well

@

send screenshot, and also send console.logs if there is some log


Calculate overall offence class for maat integration

Adds an offence class virtual attribute to the crime application struct and a offence class trait to calculate the overall offence class of an application for maat integration
CRIMRE-250

Closed as this is now being handled in the datastore
https://github.com/ministryofjustice/laa-criminal-applications-datastore/pull/75


File lastModified

I just just about to add this myself and then saw the PR!
Is there anything holding this back?

not sure

Thanks! I'm going to make a slight change and type this as Instant before releasing though.


Logs: disable invalid upstream warning when api_backend is null and e…

What
Fix https://issues.redhat.com/browse/THREESCALE-5225
PR #1285 only handles the case where api_backend is nil, however, when api_backend is set to an empty string or null json value, the warning log can still be seen in the log.
Verification steps:

Create a apicast-config.json file with the following content

cat <<EOF >apicast-config.json
{
  "services": [
    {
      "backend_version": "1",
      "id": "1",
      "api_backend": null,
      "proxy": {
        "api_backend": null,
        "service_backend_version": "1",
        "hosts": [
          "one"
        ],
        "backend": {
          "endpoint": "http://<IP_ADDRESS>:8081",
          "host": "backend"
        },
        "policy_chain": [
          {
            "name": "apicast.policy.routing",
            "version": "builtin",
            "enabled": true,
            "configuration": {
              "rules": [
                {
                  "url": "https://echo-api.3scale.net:443",
                  "replace_path": "{{uri | remove_first: '/test'}}",
                  "owner_type": "BackendApi",
                  "condition": {
                    "operations": [
                      {
                        "match": "path",
                        "op": "matches",
                        "value": "^(/test/.*|/test/?)"
                      }
                    ]
                  }
                }
              ]
            }
          },
          {
            "name": "apicast.policy.apicast"
          }
        ],
        "proxy_rules": [
          {
            "http_method": "GET",
            "pattern": "/",
            "metric_system_name": "hits",
            "delta": 1,
            "parameters": [],
            "querystring_parameters": {}
          }
        ]
      }
    }
  ]
}
EOF

Checkout this branch and start dev environment

make development
make dependencies

Run apicast locally

THREESCALE_DEPLOYMENT_ENV=staging APICAST_LOG_LEVEL=warn APICAST_WORKER=1 APICAST_CONFIGURATION_LOADER=lazy APICAST_CONFIGURATION_CACHE=0 THREESCALE_CONFIG_FILE=apicast-config.json ./bin/apicast

Capture apicast IP

APICAST_IP=$(docker inspect apicast_build_0-development-1 | yq e -P '.[0].NetworkSettings.Networks.apicast_build_0_default.IPAddress' -)

Send a request

curl -i -k -H "Host: one" "http://${APICAST_IP}:8080/test?user_key="

The response should be HTTP/1.1 200

< HTTP/1.1 200 OK
< Server: openresty
< Date: Thu, 22 Feb 2024 01:44:59 GMT
< Content-Type: application/json
< Content-Length: 564
< Connection: keep-alive
< x-3scale-echo-api: echo-api/1.0.3
< vary: Origin
< x-content-type-options: nosniff
< x-envoy-upstream-service-time: 0

Check that apicast.lua:65: upstream api for the service:1 is invalid, error:Upstream cannot be null, client: XX.XXX.X is not visible in logs

Rebased on top of master. @eguzki this one is ready for review


Clean up the version check error

If an exception is raised during the version check and the exception
doesn't have a message, use the class name as the message.

👍


Create individual instance of editor for column

Currently if there are more than one editor in a page then the content from the last editor is overrides content of all other editor on submit.
This happens because editor is overridden.
$form->json('first_json_mapping_field', 'First');
$form->json('second_json_mapping_field','Second');

--->Submit the form and both the fields will have save data saved

thanks.


[FEATURE]

Is this a unique feature?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.
Support for multi-languages.
Proposed Solution
Support for multi-languages.
Screenshots
No response
Do you want to work on this issue?
No
If "yes" to the above, please explain how you would technically implement this (issue will not be assigned if this is skipped)
No response

Hello @wyvern800! Are you referring to the translation support of the interface?


Fixed Spelling.

Thank you, looks good, I've applied these to the trunk for uima v2, and will also apply them to uima v3

was fixed in uima v2 and v3


Should we skip None and empty lists as children?

Imagine the following code:
message1 = None
print('
{message1}
')
# Result: H(tag='div', props={}, children=[None])
message2 = []
print('
{message2}
')
# Result: H(tag='div', props={}, children=[[]])

I don't think this really causes too much of a problem, as a render() can sort it out. Just curious, though, how htm handles undefined, null, empty sequences, etc.

In my mind that's outside of htm.py's scope. How None and [] should be interpreted really depends on the the renderer. For example, if htm.py's output would be used as an input to Preact then None/null children are considered to be sort of placeholders for items that may appear there later.

Very good, exactly what I needed, thanks.


persistent modify PWM, report IOCTL error, and hung

Describe the bug
run code, and after some indeterminate time, exit and report:
bcm283x-gpio (GPIO21): videocore: failed request to allocate memory: failed to send IOCTL: connection timed out
exit status 1

restart and hung when call PWM(duty > 0) , Ctrl+C will not works.
AND raspberry pi cannot restart normally via init 6, MUST shutdown the power
BUT RPi.GPIO(python) or wiringpi(C) can works normally with the same GPIO after hanged
To Reproduce
Steps to reproduce the behavior:

Run program
Pulse light

package main

import (
	"fmt"
	"log"
	"periph.io/x/conn/v3/gpio"
	"periph.io/x/conn/v3/physic"
	"periph.io/x/host/v3"
	"periph.io/x/host/v3/rpi"
	"time"
)

func main() {

	if _, err := host.Init(); err != nil {
		panic(err.Error())
	}

	p := rpi.P1_40

	i := 0
	plus := true
	for  {
		fmt.Printf("%d\n", i)
		if err := p.PWM(gpio.DutyMax * gpio.Duty(i) / 100, 1000 * physic.Hertz); err != nil {
			log.Fatal(err)
		}
		time.Sleep(10 * time.Millisecond)
		if plus {
			i++
		} else {
			i--
		}
		if i > 100 {
			plus = !plus
			i = 100
		}
		if i < 0 {
			plus = !plus
			i = 0
		}
                if err := p.Halt(); err != nil { // release gpu memory
			log.Fatal(err)
		}
	}

}

Run it.
See error

Expected behavior
An pulse light effect
Platform (please complete the following information):

OS: OpenFans aarch64 2.0 (https://github.com/openfans-community-offical/Debian-Pi-Aarch64)
Board:  Raspberry Pi 4B 4G

Additional context

I read the implement of startPWMbyDMA,  I think a memory leak was caused by allocateCB to /dev/vcio
mailboxTx32(mbReleaseMemory, m.handle) maybe not work correctly
It'll not hung when useDMA=false,
so GPIO_13 GPIO_19 can works without hung
useDMA := false
	switch p.number {
	case 12, 40: // PWM0 alt0: disabled
		useDMA = true
	case 13, 41, 45: // PWM1
		f = alt0
	case 18: // PWM0 alt5: disabled
		useDMA = true
	case 19: // PWM1
		f = alt5
	default:
		useDMA = true
	}


Create a Commit Message Template

Create a commit message template to make it easier to follow agreed upon conventions/spec.
We have chosen to follow this specification, created by Conventional Commits.

There is also a lot of available tooling for this standard which could be worth checking out: tooling


Channels as input

I have a custom setup with home assistant where I am able to customise the inputs to add tv channels to the spinner. This is used not only to switch channels without buttons, but also provides a way to show the active tv channel in the tv button, rather than just displaying “Live TV”.
Is there any way to do this?

You probably should have a look at channelButtons, which allow you to add switches for desired channels. Adding channels to the input spinner is not possible and does not even make sense, as when the Live Tv input is selected and you have a channel added there, which input do you select from the list? You cannot select two elements in the list at the same time.

Thanks for your prompt reply, but as I said I do have this working with Home Assistant and was wondering whether this was possible with your implementation. I did play with the buttons, but configuring a bunch of buttons to control the channels is not what I was looking for, as a workaround I’ve configured the remote control to switch channels up/down which gives me the ability to change channels.
As mentioned in the initial post, it’d be nice to have the channels as an input as you could give you a quick indication of which channel the tv is switched on all from a single button, but if that is not possible and can’t be changed that’s ok.
Great job with the implementation, works very well and it’s very reliable.


Improve the error message when pulling images on incompatible Windows OS version

What is the problem you're trying to solve
Copied from https://github.com/microsoft/Windows-Containers/issues/223
When pulling a Windows Server 2022 image in Windows Server 2019 nodes, check the pod events:
Warning Failed 11s kubelet Failed to pull image "mcr.microsoft.com/windows/servercore:ltsc2022": rpc error: code = NotFound desc = failed to pull and unpack image "mcr.microsoft.com/windows/servercore:ltsc2022": no match for platform in manifest: not found

Users are confused about it.
Describe the solution you'd like
Users want to see a clearer message showing what happens and how to do it.
E.g., the current windows server 2019 node cannot support the ltsc2022 image. Recommend using the ltsc2019 image.
Besides Windows Server 2019/2022, Microsoft will support more and more Windows OS versions to host containers. Users are happy to see a clearer message about this guidance when upgrading/changing their Windows OS version.
Additional context
N/A

Copied from https://github.com/microsoft/Windows-Containers/issues/223
@ShiqianTao

Might be tricky given where this error is thrown but I'll try..

I think for unix it probably gives enough info, on Windows the majority of the time it's just there's no 10.0.xyz present which is mostly a unique problem to windows and users would likely get more out of "no match for platform in manifest: host OS build of 10.0.17763 doesn't match any entries in sha:12345678". Problem is the platform match methods (or rather where this is complaining) doesn't have anything to go off of for windows (e.g no error to wrap that has exactly what it whined about while trying to find an entry in the manifest).

"no match for platform in the manifest" is saying there is not a version of this image that matches the host it is running on.
I don't think it is not confusing.
According the manifest spec about platform,https://docs.docker.com/registry/spec/manifest-v2-2/#manifest-list-field-descriptions, it does not mention windows host OS version compatibility.

platform object
The platform object describes the platform which the image in the manifest runs on. A full list of valid operating system and architecture values are listed in the Go language documentation for $GOOS and $GOARCH

$GOOS and $GOARCH don't include the difference between Windows Server, version 2022 and Windows Server, version 2019

--
$GOOS
$GOARCH

windows
386

windows
amd64

windows
arm

windows
arm64

At least, I think we should add more descriptions there. Or we should optimize the error message.
How about adding some extra instructions for the windows node only?

"no match for platform in the manifest" is enough for unix
"no match for platform in the manifest or host OS version" for windows

https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/version-compatibility?tabs=windows-server-2022%2Cwindows-11-21H2

The relevant documentation on the platform fields is here: https://github.com/opencontainers/image-spec/blob/main/image-index.md

platform object
This OPTIONAL property describes the minimum runtime requirements of the image.
This property SHOULD be present if its target is platform-specific.

architecture string
This REQUIRED property specifies the CPU architecture.
Image indexes SHOULD use, and implementations SHOULD understand, values listed in the Go Language document for [GOARCH][go-environment2].

os string
This REQUIRED property specifies the operating system.
Image indexes SHOULD use, and implementations SHOULD understand, values listed in the Go Language document for [GOOS][go-environment2].

os.version string
This OPTIONAL property specifies the version of the operating system targeted by the referenced blob.
Implementations MAY refuse to use manifests where os.version is not known to work with the host OS version.
Valid values are implementation-defined. e.g. 10.0.14393.1066 on windows.

This at least mentions that os.version could indicate compatibility based on the host OS version.
Regarding the containerd error message, I don't see a good way to make this more actionable. At the level where the error message is determined we have no way of knowing that it's due to matching against the host OS version, or even what specific value we tried to match against.

When an image is pulled through CRI, the host platform is used as the image platform. This platform provides a MatchComparer.
Inside a handler that is run during image pull, the MatchComparer is used to filter the set of manifests.
Inside a subsequent handler, if all manifests were filtered out (e.g. nothing matched the platform), then we return this error message no match for platform in manifest.

Since the underlying image pull code is designed to be flexible, it doesn't directly know what platform is being used, or the significance of that platform.

Regarding the containerd error message, I don't see a good way to make this more actionable. At the level where the error message is determined we have no way of knowing that it's due to matching against the host OS version, or even what specific value we tried to match against.

Right, this was what I was mentioning. Adding anything additional for Windows at the point where this error is returned was a bit challenging

I try to pull this image mcr.microsoft.com/windows/servercore:ltsc2019 in Bibucket pipe, I obtained this message
rpc error: code = NotFound desc = failed to pull and unpack image "mcr.microsoft.com/windows/servercore:ltsc2019": no match for platform in manifest: not found
Following the discussion, I verify the image manifest
docker manifest inspect  mcr.microsoft.com/windows/servercore:ltsc2019
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 886,
"digest": "sha256:2931a444a5d3b8f63026715511116f8685bb6236d238da4d3b2bfa2727bba30e",
"platform": {
"architecture": "amd64",
"os": "windows",
"os.version": "10.0.17763.3770",
"os.features": [
"win32k"
]
}
}
]
}
The platform information exist, and I don't understand in this case, the Bibucket error message
Thanks for help

@aayadico what host OS version are you trying to pull the image on? The error message simply means that the host OS version doesn't match the version that is mentioned in the manifest of mcr.microsoft.com/windows/servercore:ltsc2019


Update Developer Guide

Make sure you change both the .puml and the .png

[x] Change UML diagram from delete to deletep under this section
[ ] Add Cca and Reminder to the UML diagram under this section - currently only has Person
[ ] Change the second UML diagram under this section to the right class names and command syntax (PersonDeleteCommand instead of DeleteCommand)
[ ] Update the Model UML diagram here - if too messy, can exclude the Person/Cca/Reminder attributes and add a note that these attributes are excluded
[x] Update the storage UML diagram here

I think we should change anything that isn't updated to our current app and isn't accurate to our current architecture
everything else should be fine

Yeah that's what I meant, just that there's probably stuff beyond your checklist that we also have to change.

I think an exhaustive checklist is unfeasible - if anyone sees anything just change


When sending request to AWS SQS using Bruno CLI, Its throwing 403 Forbidden. Getting the response as expected when sending the same from Bruno UI.

Hi,
We are in a process of moving from Postman to Bruno but seeing this issue. While using the Bruno CLI in our CI/CD jobs to send request to Amazon SQS we are getting 403 Forbidden error. We are able to send the same request from Bruno UI.

We are still seeing the issue. Any update on this?

Could you provide more info?
Do you see all headers being sent on CLI? Try to log them in your Pre/Post-Request-Script using console.log, they will be printed into stdout / the browser console.

Hello,
Thanks for replying.
Sharing more information below:
This how our auth looks like :

This is the body what we are sending to SQS {We send a Json body to Amazon SQS :

This is the response we are getting back :
If you can see I tried to get both access and secret keys from the env variables and logged them in Pre/Post-Request-Script.
It's logging the keys in pre scripts but not in post script (As you can see below).

Without solving this issue, we are not able to choose Bruno as our replacement.
FYI only that, when sending the same Amazon SQS requests from Newman CLI we are not seeing any issues.
Hope to hear back soon on this issue.

I have also tried to get the headers from the response and logged it in console as below :

I am not adding any headers to the headers tab of my request. Anything I am missing here to make it work .

Hoping for a update or help on this .. Thanks


NOISSUE - Fix provision tool connect error handling

Signed-off-by: Dušan Borovčanin<EMAIL_ADDRESS>What does this do?
This pull request adds error handling for connect errors.
Remove unused params from MQTT bench client.
List any changes that modify/break current functionality
There are no such changes.
Have you included tests for your changes?
No.
Did you document any new/modified functionality?
No.

Codecov Report

Merging #879 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #879      +/-   ##
==========================================
- Coverage   84.58%   84.54%   -0.05%
==========================================
  Files          74       74
  Lines        4879     4879
==========================================
- Hits         4127     4125       -2
- Misses        511      513       +2
  Partials      241      241

Impacted Files
Coverage Δ

things/service.go
86.61% <0%> (-1.41%)
:arrow_down:

Continue to review full report at Codecov.

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


Proposal: Start enumeration values at 0

It isn't uncommon that IDL's do not support setting the value of enumerations, Protocol Buffers being one of them.  In these cases, enumerations start at 0 and increment from there.
I am proposing that enumerations start at 0 and increment by one from there. 0  should always represent an Unknown value while 1 should represent Other, where applicable.
Unknown = 0,
Other = 1,
// Class specific/reserved enumerations

Discussed on the 1/17/2023 call. Initial feedback is supportive; we will leave this open to catch any additional feedback in the meanwhile.

We could change the value of Other as 255, and then we don't have to renumber the enum values. Note, it adds a minor limitation -- the enum values must in the range of 1-254, which is probably good enough for any practical purpose.

@Jthomas54 please note that OCSF schema also support string based enum values, which may not be supported by some IDL's.

@rroupski In what classes are strings used over numeric types for enumerations?

The string enum values are usually used when the values are defined by external standard. For example, see the values of the depth attribute in the the cvss object.

Although the DMTF convention from where we derived the Unknown and Other would have been 0, 1, and then the specific values.  If we don't want to change the specific values at this juncture, have them bookended by 0 for Unknown and 255 for Other would only break people that are using -1 for Other, and obviate the need to renumber every enum.  If this is acceptable it is the least disruptive, to solve @Jthomas54 issue.  I'm ok with that, but if we want to go to 0, 1 like DMTF, raise your voices now !!!

Per this morning's call, we agreed to 'bookend' the enums with 0 = Unknown and 99 = Other.  This also limits how many distinct enum values to 98 within the bookends.  It could extend past 99 but would not be desirable.

done, see PR #436


feat(rules): Add 47 more Control Tower rules.

Fixes #58

Looks like there's a parsing error when giving guard a directory containing non-guard files as the rules directory. I think I will have to separate the metadata JSON files out into another directory so Guard doesn't try to read them as rules. This affects #59 #57 and #53


Auth account signature test utilities

https://github.com/stellar/rs-soroban-sdk/blob/b66355c40288a245b91901c1bfa366793b656672/soroban-auth/src/testutils.rs#L75-L78

Related https://discord.com/channels/897514728459468821/966788672164855829/1034337516712624158

@leighmcculloch I think I have implemented this one for my latest sorobanathon submission, linking it here in case it comes in handy https://github.com/Xycloo/soroban-build-signatures/blob/main/src/main.rs#L42

Closing because auth-next will make soroban-auth obsolete.


Progress emulation in Windows 10 (doesnt work)

This code not update text in console
All time this: N/A% |         |   0.0 s/B   0.0 B/300.0 B Elapsed Time: 0:00:00 ETA:  --:--:--
import collections
import time
import progressbar

struct = collections.namedtuple

def get_progress_info():
    """Return a function callback to update the progressbar."""
    progressinfo = struct("ProgressInfo", ["callback", "finish"])

    if progressbar:
        bar = progressbar.ProgressBar(widgets=[
            progressbar.Percentage(),
            ' ', progressbar.Bar(),
            ' ', progressbar.FileTransferSpeed(),
            ' ', progressbar.DataSize(), '/', progressbar.DataSize('max_value'),
            ' ', progressbar.Timer(),
            ' ', progressbar.AdaptiveETA(),
        ])

        def _callback(total_size, completed):
            if not hasattr(bar, "next_update"):
                if hasattr(bar, "maxval"):
                    bar.maxval = total_size
                else:
                    bar.max_value = total_size
                bar.start()
            bar.update(completed)

        def _finish():
            if hasattr(bar, "next_update"):
                return bar.finish()

        return progressinfo(callback=_callback, finish=_finish)
    else:
        return progressinfo(callback=None, finish=lambda: True)

def upload(progress_callback):

    for x in range(0, 300):
        time.sleep(1)
        progress_callback(300, x)

progress = get_progress_info()
upload(progress.callback)

https://github.com/tokland/youtube-upload/blob/master/youtube_upload/main.py#L63
https://github.com/tokland/youtube-upload/blob/master/youtube_upload/upload_video.py#L22

Not sure how or where it broke, but something is indeed not updating correctly there. I'm investigating the issue :)

Looking more closely at the code, the issue is that it's using next_update to decide what to do. That variable has been removed along the versions... I never expected anyone to depend on that but I'll add it again :)
For the time being the code should be fixable by simplifying it a bit:
import collections
import time
import progressbar

struct = collections.namedtuple

def get_progress_info():
    """Return a function callback to update the progressbar."""
    progressinfo = struct("ProgressInfo", ["callback", "finish"])

    if progressbar:
        bar = progressbar.ProgressBar(widgets=[
            progressbar.Percentage(),
            ' ', progressbar.Bar(),
            ' ', progressbar.FileTransferSpeed(),
            ' ', progressbar.DataSize(), '/', progressbar.DataSize('max_value'),
            ' ', progressbar.Timer(),
            ' ', progressbar.AdaptiveETA(),
        ])

        def _callback(total_size, completed):
            bar.max_value = total_size
            bar.update(completed)

        def _finish():
            return bar.finish()

        return progressinfo(callback=_callback, finish=_finish)
    else:
        return progressinfo(callback=None, finish=lambda: True)

def upload(progress_callback):
    for x in range(0, 300):
        time.sleep(1)
        progress_callback(300, x)

progress = get_progress_info()
upload(progress.callback)

Big thanks 👍 🥇 )

I've got a working patch ready on develop, I'm planning to put out a new release within the next couple of days.


Display eslint/prettier errors visually inside GitHub PR files

🎯 Goal: - When a build fails due to linting error, as a developer I can see visually where exactly the error is in the code

More details here
@itai-autodesk Maybe this one will appeal to Itai?

Hi @goldbergyoni, I'm here first time, so I'd love to contribute this project.


⚠ pishem-otzivi has degraded performance

In 772d6b8, pishem-otzivi (https://пишем-отзывы.рф/) experienced degraded performance:

HTTP code: 200
Response time: 12715 ms

Resolved: pishem-otzivi performance has improved in fbce522.


Scala Stream Collector: use nuid query parameter value to set the 3rd party network id cookie

In order to do some cookie syncing with other systems, i want to call the collector with a regular pageview event request. I want to pass an existing V4 UUID as value for nuid to the collector. I would have expected the collector to set the "sp" cookie using the value which was in the query parameter for the network_userid. But that was not the case.

curl -IvsL "http://collector.url/i?e=pv&aid=cookie-sync-test&p=web&tv=no-js-0.1.1&nuid=$UUID"

Trying xxx.xxx.xxx.xxx...
Connected to collector.url (xxx.xxx.xxx.xxx) port 80 (#0)

HEAD /i?e=pv&aid=cookie-sync-test&p=web&tv=no-js-0.1.1&nuid=89F0F89A-A949-41D8-85E2-458EE6FC161D HTTP/1.1
Host: collector.url
User-Agent: curl/7.43.0
Accept: /

< HTTP/1.1 200 OK
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: *
< Content-Length: 43
< Content-Type: image/gif
< Date: Tue, 08 Mar 2016 15:20:41 GMT
< P3P: policyref="/w3c/p3p.xml", CP="NOI DSP COR NID PSA OUR IND COM NAV STA"
< Server: spray-can/1.2.0
< Set-Cookie: sp=27fdee53-4d57-4f30-ab55-3a20665bc1ca; Expires=Wed, 08 Mar 2017 15:20:41 GMT; Domain=collector.url

This proposal seems sane - the &nuid= was invented to let a server-side tracker pass-through a client-side nuid to the collector, but you are right, the cookie value sent back is not influenced by the &nuid=. So in the case that you want to do a one-time sync and for that to dictate the nuid for all further behavior, yes you will need this ticket...

Presumably this should happen even if the collector has previously set a different value for the cookie?

I think so, yes. Any other behaviour doesn't make sense. But maybe this could be a config option.

@fblundun is there any news on that?

How was i able to unasign people from the issue? @alexanderdean ??

Ah! @fblundun no longer works at Snowplow, so first action on a ticket will unassign him!

That's a bummer. Now what?

I'll bring this forwards...